// This file is auto-generated by @hey-api/openapi-ts

import { oc } from '@orpc/contract'

import { zGetSystemFeaturesResponse } from './zod.gen'

/**
 * Get system-wide feature configuration
 *
 * Get system-wide feature configuration
 * NOTE: This endpoint is unauthenticated by design, as it provides system features
 * data required for dashboard initialization.
 *
 * Authentication would create circular dependency (can't login without dashboard loading).
 *
 * Only non-sensitive configuration data should be returned by this endpoint.
 */
export const get = oc
  .route({
    description:
      'Get system-wide feature configuration\nNOTE: This endpoint is unauthenticated by design, as it provides system features\ndata required for dashboard initialization.\n\nAuthentication would create circular dependency (can\'t login without dashboard loading).\n\nOnly non-sensitive configuration data should be returned by this endpoint.',
    inputStructure: 'detailed',
    method: 'GET',
    operationId: 'getSystemFeatures',
    path: '/system-features',
    summary: 'Get system-wide feature configuration',
    tags: ['console'],
  })
  .output(zGetSystemFeaturesResponse)

export const systemFeatures = {
  get,
}

export const contract = {
  systemFeatures,
}
