dify/packages/contracts/generated/api/console/system-features/orpc.gen.ts
Stephen Zhou a84c2d36a3
style: format with vp fmt (#38803)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-12 15:57:46 +00:00

37 lines
1.2 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.
*/
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,
}