mirror of
https://github.com/langgenius/dify.git
synced 2026-07-26 14:18:35 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: GareArc <garethcxy@dify.ai>
63 lines
2.2 KiB
TypeScript
63 lines
2.2 KiB
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import { oc } from '@orpc/contract'
|
|
import { zGetSystemFeaturesLicenseResponse, zGetSystemFeaturesResponse } from './zod.gen'
|
|
|
|
/**
|
|
* Get full license detail (status, expiry, workspace/seat usage)
|
|
*
|
|
* Get license status and usage detail
|
|
* Authenticated counterpart to the license *status* exposed on the public
|
|
* system-features endpoint.
|
|
*/
|
|
export const get = oc
|
|
.route({
|
|
description:
|
|
'Get license status and usage detail\nAuthenticated counterpart to the license *status* exposed on the public\nsystem-features endpoint.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getSystemFeaturesLicense',
|
|
path: '/system-features/license',
|
|
summary: 'Get full license detail (status, expiry, workspace/seat usage)',
|
|
tags: ['console'],
|
|
})
|
|
.output(zGetSystemFeaturesLicenseResponse)
|
|
|
|
export const license = {
|
|
get,
|
|
}
|
|
|
|
/**
|
|
* 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. Authenticated
|
|
* license detail is served separately by SystemFeatureLicenseApi.
|
|
*/
|
|
export const get2 = 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. Authenticated\nlicense detail is served separately by SystemFeatureLicenseApi.",
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getSystemFeatures',
|
|
path: '/system-features',
|
|
summary: 'Get system-wide feature configuration',
|
|
tags: ['console'],
|
|
})
|
|
.output(zGetSystemFeaturesResponse)
|
|
|
|
export const systemFeatures = {
|
|
get: get2,
|
|
license,
|
|
}
|
|
|
|
export const contract = {
|
|
systemFeatures,
|
|
}
|