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,155 @@
|
||||
// This file is auto-generated by scripts/add-orpc-error-maps.ts
|
||||
import * as z from 'zod'
|
||||
|
||||
const zErrorResponse = /* @__PURE__ */ (() =>
|
||||
z.object({
|
||||
code: z.string(),
|
||||
details: z.record(z.string(), z.unknown()).optional(),
|
||||
message: z.string(),
|
||||
params: z.string().optional(),
|
||||
status: z.int(),
|
||||
}))()
|
||||
|
||||
const zDatasetNameDuplicateError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('dataset_name_duplicate'),
|
||||
status: z.literal(409),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zPipelineNotFoundError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('pipeline_not_found'),
|
||||
status: z.literal(404),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zDraftWorkflowNotExistError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('draft_workflow_not_exist'),
|
||||
status: z.literal(404),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zDraftWorkflowNotSyncError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('draft_workflow_not_sync'),
|
||||
status: z.literal(409),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zRateLimitError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('rate_limit_error'),
|
||||
status: z.literal(429),
|
||||
}),
|
||||
))()
|
||||
|
||||
export const post2Errors = {
|
||||
dataset_name_duplicate: { status: 409, data: zDatasetNameDuplicateError },
|
||||
}
|
||||
|
||||
export const get4Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const post7Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const get6Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const post8Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const get7Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const get8Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const get9Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const get10Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const get11Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const post9Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const post10Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const get12Errors = {
|
||||
draft_workflow_not_exist: { status: 404, data: zDraftWorkflowNotExistError },
|
||||
pipeline_not_found: { status: 404, data: zPipelineNotFoundError },
|
||||
}
|
||||
|
||||
export const post11Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const post12Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const get13Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const post13Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const delete2Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const get14Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const get15Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const get16Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const post14Errors = {
|
||||
pipeline_not_found: { status: 404, data: zPipelineNotFoundError },
|
||||
rate_limit_error: { status: 429, data: zRateLimitError },
|
||||
}
|
||||
|
||||
export const get17Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const putErrors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const delete3Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const get18Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const patch2Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const delete4Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const get19Errors = {
|
||||
draft_workflow_not_exist: { status: 404, data: zDraftWorkflowNotExistError },
|
||||
pipeline_not_found: { status: 404, data: zPipelineNotFoundError },
|
||||
}
|
||||
|
||||
export const get20Errors = {
|
||||
draft_workflow_not_exist: { status: 404, data: zDraftWorkflowNotExistError },
|
||||
pipeline_not_found: { status: 404, data: zPipelineNotFoundError },
|
||||
}
|
||||
|
||||
export const post15Errors = {
|
||||
draft_workflow_not_sync: { status: 409, data: zDraftWorkflowNotSyncError },
|
||||
pipeline_not_found: { status: 404, data: zPipelineNotFoundError },
|
||||
}
|
||||
|
||||
export const get21Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const post16Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const post17Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const post18Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const get22Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const get23Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const post19Errors = {
|
||||
pipeline_not_found: { status: 404, data: zPipelineNotFoundError },
|
||||
rate_limit_error: { status: 429, data: zRateLimitError },
|
||||
}
|
||||
|
||||
export const post20Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const delete5Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const patch3Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
|
||||
export const get24Errors = { pipeline_not_found: { status: 404, data: zPipelineNotFoundError } }
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user