Files
dify/packages/contracts/generated/api/console/system-features/orpc.gen.ts
2026-05-18 07:41:23 +00:00

43 lines
1.6 KiB
TypeScript

// 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.
*
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
*
* @deprecated
*/
export const get = oc
.route({
deprecated: true,
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.\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
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,
}