mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 21:01:18 -04:00
38 lines
1.2 KiB
TypeScript
38 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,
|
|
}
|