chore: 纳入本地 Dify 1.19.0 源码及品牌与免登改动
演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
60158935f4
commit
6519682885
15831 files changed
+3063428
No files matched your search
@@ -0,0 +1,33 @@
|
||||
// This file is auto-generated by @hey-api/openapi-ts
|
||||
|
||||
import { oc } from '@orpc/contract'
|
||||
import { zGetSpecSchemaDefinitionsResponse } from './zod.gen.ts'
|
||||
|
||||
/**
|
||||
* Get system JSON Schema definitions specification
|
||||
*
|
||||
* Used for frontend component type mapping
|
||||
*/
|
||||
export const get = oc
|
||||
.route({
|
||||
description: 'Used for frontend component type mapping',
|
||||
inputStructure: 'detailed',
|
||||
method: 'GET',
|
||||
operationId: 'getSpecSchemaDefinitions',
|
||||
path: '/spec/schema-definitions',
|
||||
summary: 'Get system JSON Schema definitions specification',
|
||||
tags: ['console'],
|
||||
})
|
||||
.output(zGetSpecSchemaDefinitionsResponse)
|
||||
|
||||
export const schemaDefinitions = {
|
||||
get,
|
||||
}
|
||||
|
||||
export const spec = {
|
||||
schemaDefinitions,
|
||||
}
|
||||
|
||||
export const contract = {
|
||||
spec,
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
// This file is auto-generated by @hey-api/openapi-ts
|
||||
|
||||
export type ClientOptions = {
|
||||
baseUrl: `${string}://${string}/console/api` | (string & {})
|
||||
}
|
||||
|
||||
export type SchemaDefinitionsResponse = Array<SchemaDefinitionItemResponse>
|
||||
|
||||
export type ErrorResponse = {
|
||||
code: string
|
||||
details?: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
message: string
|
||||
params?: string
|
||||
status: number
|
||||
}
|
||||
|
||||
export type SchemaDefinitionItemResponse = {
|
||||
label: string
|
||||
name: string
|
||||
schema: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
}
|
||||
|
||||
export type GetSpecSchemaDefinitionsData = {
|
||||
body?: never
|
||||
path?: never
|
||||
query?: never
|
||||
url: '/spec/schema-definitions'
|
||||
}
|
||||
|
||||
export type GetSpecSchemaDefinitionsErrors = {
|
||||
default: ErrorResponse
|
||||
}
|
||||
|
||||
export type GetSpecSchemaDefinitionsError =
|
||||
GetSpecSchemaDefinitionsErrors[keyof GetSpecSchemaDefinitionsErrors]
|
||||
|
||||
export type GetSpecSchemaDefinitionsResponses = {
|
||||
200: SchemaDefinitionsResponse
|
||||
}
|
||||
|
||||
export type GetSpecSchemaDefinitionsResponse =
|
||||
GetSpecSchemaDefinitionsResponses[keyof GetSpecSchemaDefinitionsResponses]
|
||||
@@ -0,0 +1,38 @@
|
||||
// This file is auto-generated by @hey-api/openapi-ts
|
||||
|
||||
import * as z from 'zod'
|
||||
|
||||
/**
|
||||
* ErrorResponse
|
||||
*
|
||||
* Documented non-2xx body emitted by ``register_external_error_handlers``.
|
||||
*
|
||||
* ``params`` and ``details`` appear only on the errors that set them. The schema
|
||||
* stays open because ``HTTPException.data`` may carry extra keys.
|
||||
*/
|
||||
export const zErrorResponse = z.object({
|
||||
code: z.string(),
|
||||
details: z.record(z.string(), z.unknown()).optional(),
|
||||
message: z.string(),
|
||||
params: z.string().optional(),
|
||||
status: z.int(),
|
||||
})
|
||||
|
||||
/**
|
||||
* SchemaDefinitionItemResponse
|
||||
*/
|
||||
export const zSchemaDefinitionItemResponse = z.object({
|
||||
label: z.string(),
|
||||
name: z.string(),
|
||||
schema: z.record(z.string(), z.unknown()),
|
||||
})
|
||||
|
||||
/**
|
||||
* SchemaDefinitionsResponse
|
||||
*/
|
||||
export const zSchemaDefinitionsResponse = z.array(zSchemaDefinitionItemResponse)
|
||||
|
||||
/**
|
||||
* Success
|
||||
*/
|
||||
export const zGetSpecSchemaDefinitionsResponse = zSchemaDefinitionsResponse
|
||||
Reference in new issue
Block a user