Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

1.2 KB
Raw Blame
// This file is auto-generated by @hey-api/openapi-ts

import { oc } from '@orpc/contract'
import { zGetFeaturesResponse, zGetFeaturesVectorSpaceResponse } from './zod.gen.ts'

/**
 * 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 current workspace features
 *
 * Get feature availability and limits for the current workspace
 */
export const get2 = oc
  .route({
    description: 'Get feature availability and limits for the current workspace',
    inputStructure: 'detailed',
    method: 'GET',
    operationId: 'getFeatures',
    path: '/features',
    summary: 'Get current workspace features',
    tags: ['console'],
  })
  .output(zGetFeaturesResponse)

export const features = {
  get: get2,
  vectorSpace,
}

export const contract = {
  features,
}