mirror of
https://github.com/langgenius/dify.git
synced 2026-05-26 04:00:39 -04:00
53 lines
1.2 KiB
TypeScript
53 lines
1.2 KiB
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import { oc } from '@orpc/contract'
|
|
|
|
import { zGetFeaturesResponse, zGetFeaturesVectorSpaceResponse } from './zod.gen'
|
|
|
|
/**
|
|
* Get vector-space usage and limit for current tenant
|
|
*
|
|
* Get vector-space usage and limit for current tenant
|
|
*/
|
|
export const get = oc
|
|
.route({
|
|
description: 'Get vector-space usage and limit for current tenant',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getFeaturesVectorSpace',
|
|
path: '/features/vector-space',
|
|
summary: 'Get vector-space usage and limit for current tenant',
|
|
tags: ['console'],
|
|
})
|
|
.output(zGetFeaturesVectorSpaceResponse)
|
|
|
|
export const vectorSpace = {
|
|
get,
|
|
}
|
|
|
|
/**
|
|
* Get feature configuration for current tenant
|
|
*
|
|
* Get feature configuration for current tenant
|
|
*/
|
|
export const get2 = oc
|
|
.route({
|
|
description: 'Get feature configuration for current tenant',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getFeatures',
|
|
path: '/features',
|
|
summary: 'Get feature configuration for current tenant',
|
|
tags: ['console'],
|
|
})
|
|
.output(zGetFeaturesResponse)
|
|
|
|
export const features = {
|
|
get: get2,
|
|
vectorSpace,
|
|
}
|
|
|
|
export const contract = {
|
|
features,
|
|
}
|