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
+28
@@ -0,0 +1,28 @@
|
||||
// This file is auto-generated by @hey-api/openapi-ts
|
||||
|
||||
import { oc } from '@orpc/contract'
|
||||
import * as z from 'zod'
|
||||
import { zGetCodeBasedExtensionQuery, zGetCodeBasedExtensionResponse } from './zod.gen.ts'
|
||||
|
||||
/**
|
||||
* Get code-based extension data by module name
|
||||
*/
|
||||
export const get = oc
|
||||
.route({
|
||||
description: 'Get code-based extension data by module name',
|
||||
inputStructure: 'detailed',
|
||||
method: 'GET',
|
||||
operationId: 'getCodeBasedExtension',
|
||||
path: '/code-based-extension',
|
||||
tags: ['console'],
|
||||
})
|
||||
.input(z.object({ query: zGetCodeBasedExtensionQuery }))
|
||||
.output(zGetCodeBasedExtensionResponse)
|
||||
|
||||
export const codeBasedExtension = {
|
||||
get,
|
||||
}
|
||||
|
||||
export const contract = {
|
||||
codeBasedExtension,
|
||||
}
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
// This file is auto-generated by @hey-api/openapi-ts
|
||||
|
||||
export type ClientOptions = {
|
||||
baseUrl: `${string}://${string}/console/api` | (string & {})
|
||||
}
|
||||
|
||||
export type CodeBasedExtensionResponse = {
|
||||
data: Array<CodeBasedExtensionItemResponse>
|
||||
module: string
|
||||
}
|
||||
|
||||
export type ErrorResponse = {
|
||||
code: string
|
||||
details?: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
message: string
|
||||
params?: string
|
||||
status: number
|
||||
}
|
||||
|
||||
export type CodeBasedExtensionItemResponse = {
|
||||
form_schema?: Array<{
|
||||
[key: string]: unknown
|
||||
}> | null
|
||||
label?: {
|
||||
[key: string]: unknown
|
||||
} | null
|
||||
name: string
|
||||
}
|
||||
|
||||
export type GetCodeBasedExtensionData = {
|
||||
body?: never
|
||||
path?: never
|
||||
query: {
|
||||
module: string
|
||||
}
|
||||
url: '/code-based-extension'
|
||||
}
|
||||
|
||||
export type GetCodeBasedExtensionErrors = {
|
||||
default: ErrorResponse
|
||||
}
|
||||
|
||||
export type GetCodeBasedExtensionError =
|
||||
GetCodeBasedExtensionErrors[keyof GetCodeBasedExtensionErrors]
|
||||
|
||||
export type GetCodeBasedExtensionResponses = {
|
||||
200: CodeBasedExtensionResponse
|
||||
}
|
||||
|
||||
export type GetCodeBasedExtensionResponse =
|
||||
GetCodeBasedExtensionResponses[keyof GetCodeBasedExtensionResponses]
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
// 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(),
|
||||
})
|
||||
|
||||
/**
|
||||
* CodeBasedExtensionItemResponse
|
||||
*/
|
||||
export const zCodeBasedExtensionItemResponse = z.object({
|
||||
form_schema: z.array(z.record(z.string(), z.unknown())).nullish(),
|
||||
label: z.record(z.string(), z.unknown()).nullish(),
|
||||
name: z.string(),
|
||||
})
|
||||
|
||||
/**
|
||||
* CodeBasedExtensionResponse
|
||||
*/
|
||||
export const zCodeBasedExtensionResponse = z.object({
|
||||
data: z.array(zCodeBasedExtensionItemResponse),
|
||||
module: z.string(),
|
||||
})
|
||||
|
||||
export const zGetCodeBasedExtensionQuery = z.object({
|
||||
module: z.string(),
|
||||
})
|
||||
|
||||
/**
|
||||
* Success
|
||||
*/
|
||||
export const zGetCodeBasedExtensionResponse = zCodeBasedExtensionResponse
|
||||
Reference in new issue
Block a user