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,851 @@
|
||||
// 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 zAccountBannedError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('account_banned'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zAgentNotPublishedError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('agent_not_published'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zAgentVersionNotFoundError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('agent_version_not_found_error'),
|
||||
status: z.literal(404),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zAlreadySubmittedError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('already_submitted'),
|
||||
status: z.literal(409),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zAppMoreLikeThisDisabledError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('app_more_like_this_disabled'),
|
||||
status: z.literal(403),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zAppSuggestedQuestionsAfterAnswerDisabledError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('app_suggested_questions_after_answer_disabled'),
|
||||
status: z.literal(403),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zAppUnavailableError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('app_unavailable'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zAudioTooLargeError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('audio_too_large'),
|
||||
status: z.literal(413),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zAuthenticationFailedError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('authentication_failed'),
|
||||
status: z.literal(401),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zCompletionRequestError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('completion_request_error'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zConversationCursorNotFoundError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('conversation_cursor_not_found'),
|
||||
status: z.literal(404),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zConversationFirstMessageNotFoundError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('conversation_first_message_not_found'),
|
||||
status: z.literal(404),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zConversationNotFoundError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('conversation_not_found'),
|
||||
status: z.literal(404),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zEmailCodeError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('email_code_error'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zEmailPasswordResetLimitError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('email_password_reset_limit'),
|
||||
status: z.literal(429),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zEmailSendIpLimitError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('email_send_ip_limit'),
|
||||
status: z.literal(429),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zExpiredError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('expired'),
|
||||
status: z.literal(410),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zFileExtensionBlockedError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('file_extension_blocked'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zFileTooLargeError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('file_too_large'),
|
||||
status: z.literal(413),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zFilenameNotExistsError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('filename_not_exists_error'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zHumanInputAccessDeliveryFailedError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('human_input_access_delivery_failed'),
|
||||
status: z.literal(503),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zHumanInputAccessRateLimitExceededError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('human_input_access_rate_limit_exceeded'),
|
||||
status: z.literal(429),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zHumanInputChallengeExpiredError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('human_input_challenge_expired'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zHumanInputChallengeStaleError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('human_input_challenge_stale'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zHumanInputFormExpiredError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('human_input_form_expired'),
|
||||
status: z.literal(412),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zHumanInputFormNotFoundError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('human_input_form_not_found'),
|
||||
status: z.literal(404),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zHumanInputFormSubmittedError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('human_input_form_submitted'),
|
||||
status: z.literal(412),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zHumanInputInvalidOtpError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('human_input_invalid_otp'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zHumanInputV2UnavailableError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('human_input_v2_unavailable'),
|
||||
status: z.literal(503),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zInvalidEmailError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('invalid_email'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zInvalidFormDataError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('invalid_form_data'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zInvalidInputError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('invalid_input'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zInvalidOrExpiredTokenError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('invalid_or_expired_token'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zInvalidParamError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('invalid_param'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zInvalidUploadTokenError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('invalid_upload_token'),
|
||||
status: z.literal(403),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zMalformedUploadTokenError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('malformed_upload_token'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zMessageFeedbackRatingRequiredError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('message_feedback_rating_required'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zModelCurrentlyNotSupportError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('model_currently_not_support'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zNoAudioUploadedError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('no_audio_uploaded'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zNoFileUploadedError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('no_file_uploaded'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zNotChatAppError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('not_chat_app'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zNotCompletionAppError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('not_completion_app'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zNotWorkflowAppError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('not_workflow_app'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zPasswordMismatchError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('password_mismatch'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zPasswordResetRateLimitExceededError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('password_reset_rate_limit_exceeded'),
|
||||
status: z.literal(429),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zProviderNotInitializeError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('provider_not_initialize'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zProviderNotSupportSpeechToTextError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('provider_not_support_speech_to_text'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zProviderQuotaExceededError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('provider_quota_exceeded'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zRateLimitError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('rate_limit_error'),
|
||||
status: z.literal(429),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zRemoteFileAccessDeniedError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('remote_file_access_denied'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zRemoteFileInvalidResponseError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('remote_file_invalid_response'),
|
||||
status: z.literal(502),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zRemoteFileInvalidUrlError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('remote_file_invalid_url'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zRemoteFileNotFoundError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('remote_file_not_found'),
|
||||
status: z.literal(404),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zRemoteFileUnavailableError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('remote_file_unavailable'),
|
||||
status: z.literal(502),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zRemoteFileUrlBlockedError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('remote_file_url_blocked'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zSpeechToTextDisabledError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('speech_to_text_disabled'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zTooManyFilesError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('too_many_files'),
|
||||
status: z.literal(400),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zTriggerWorkflowServiceModeUnavailableError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('trigger_workflow_service_mode_unavailable'),
|
||||
status: z.literal(403),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zUnsupportedAudioTypeError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('unsupported_audio_type'),
|
||||
status: z.literal(415),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zUnsupportedFileTypeError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('unsupported_file_type'),
|
||||
status: z.literal(415),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zUploadTokenRequiredError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('upload_token_required'),
|
||||
status: z.literal(401),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zWebFormRateLimitExceededError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('web_form_rate_limit_exceeded'),
|
||||
status: z.literal(429),
|
||||
}),
|
||||
))()
|
||||
|
||||
const zWorkflowNotActiveError = /* @__PURE__ */ (() =>
|
||||
zErrorResponse.and(
|
||||
z.object({
|
||||
code: z.literal('workflow_not_active'),
|
||||
status: z.literal(409),
|
||||
}),
|
||||
))()
|
||||
|
||||
export const postErrors = {
|
||||
app_unavailable: { status: 400, data: zAppUnavailableError },
|
||||
audio_too_large: { status: 413, data: zAudioTooLargeError },
|
||||
completion_request_error: { status: 400, data: zCompletionRequestError },
|
||||
model_currently_not_support: { status: 400, data: zModelCurrentlyNotSupportError },
|
||||
no_audio_uploaded: { status: 400, data: zNoAudioUploadedError },
|
||||
provider_not_initialize: { status: 400, data: zProviderNotInitializeError },
|
||||
provider_not_support_speech_to_text: { status: 400, data: zProviderNotSupportSpeechToTextError },
|
||||
provider_quota_exceeded: { status: 400, data: zProviderQuotaExceededError },
|
||||
speech_to_text_disabled: { status: 400, data: zSpeechToTextDisabledError },
|
||||
unsupported_audio_type: { status: 415, data: zUnsupportedAudioTypeError },
|
||||
}
|
||||
|
||||
export const post2Errors = { not_chat_app: { status: 400, data: zNotChatAppError } }
|
||||
|
||||
export const post3Errors = {
|
||||
agent_not_published: { status: 400, data: zAgentNotPublishedError },
|
||||
app_unavailable: { status: 400, data: zAppUnavailableError },
|
||||
completion_request_error: { status: 400, data: zCompletionRequestError },
|
||||
model_currently_not_support: { status: 400, data: zModelCurrentlyNotSupportError },
|
||||
not_chat_app: { status: 400, data: zNotChatAppError },
|
||||
provider_not_initialize: { status: 400, data: zProviderNotInitializeError },
|
||||
provider_quota_exceeded: { status: 400, data: zProviderQuotaExceededError },
|
||||
rate_limit_error: { status: 429, data: zRateLimitError },
|
||||
}
|
||||
|
||||
export const post4Errors = { not_completion_app: { status: 400, data: zNotCompletionAppError } }
|
||||
|
||||
export const post5Errors = {
|
||||
app_unavailable: { status: 400, data: zAppUnavailableError },
|
||||
completion_request_error: { status: 400, data: zCompletionRequestError },
|
||||
model_currently_not_support: { status: 400, data: zModelCurrentlyNotSupportError },
|
||||
not_completion_app: { status: 400, data: zNotCompletionAppError },
|
||||
provider_not_initialize: { status: 400, data: zProviderNotInitializeError },
|
||||
provider_quota_exceeded: { status: 400, data: zProviderQuotaExceededError },
|
||||
}
|
||||
|
||||
export const post6Errors = {
|
||||
conversation_first_message_not_found: {
|
||||
status: 404,
|
||||
data: zConversationFirstMessageNotFoundError,
|
||||
},
|
||||
conversation_not_found: { status: 404, data: zConversationNotFoundError },
|
||||
not_chat_app: { status: 400, data: zNotChatAppError },
|
||||
}
|
||||
|
||||
export const patchErrors = {
|
||||
conversation_not_found: { status: 404, data: zConversationNotFoundError },
|
||||
not_chat_app: { status: 400, data: zNotChatAppError },
|
||||
}
|
||||
|
||||
export const patch2Errors = {
|
||||
conversation_not_found: { status: 404, data: zConversationNotFoundError },
|
||||
not_chat_app: { status: 400, data: zNotChatAppError },
|
||||
}
|
||||
|
||||
export const delete_Errors = {
|
||||
conversation_not_found: { status: 404, data: zConversationNotFoundError },
|
||||
not_chat_app: { status: 400, data: zNotChatAppError },
|
||||
}
|
||||
|
||||
export const getErrors = {
|
||||
conversation_cursor_not_found: { status: 404, data: zConversationCursorNotFoundError },
|
||||
conversation_not_found: { status: 404, data: zConversationNotFoundError },
|
||||
not_chat_app: { status: 400, data: zNotChatAppError },
|
||||
}
|
||||
|
||||
export const post7Errors = {
|
||||
account_banned: { status: 400, data: zAccountBannedError },
|
||||
authentication_failed: { status: 401, data: zAuthenticationFailedError },
|
||||
email_code_error: { status: 400, data: zEmailCodeError },
|
||||
invalid_email: { status: 400, data: zInvalidEmailError },
|
||||
}
|
||||
|
||||
export const post8Errors = {
|
||||
authentication_failed: { status: 401, data: zAuthenticationFailedError },
|
||||
}
|
||||
|
||||
export const post9Errors = {
|
||||
file_extension_blocked: { status: 400, data: zFileExtensionBlockedError },
|
||||
file_too_large: { status: 413, data: zFileTooLargeError },
|
||||
filename_not_exists_error: { status: 400, data: zFilenameNotExistsError },
|
||||
no_file_uploaded: { status: 400, data: zNoFileUploadedError },
|
||||
too_many_files: { status: 400, data: zTooManyFilesError },
|
||||
unsupported_file_type: { status: 415, data: zUnsupportedFileTypeError },
|
||||
}
|
||||
|
||||
export const post10Errors = {
|
||||
authentication_failed: { status: 401, data: zAuthenticationFailedError },
|
||||
invalid_or_expired_token: { status: 400, data: zInvalidOrExpiredTokenError },
|
||||
password_mismatch: { status: 400, data: zPasswordMismatchError },
|
||||
}
|
||||
|
||||
export const post11Errors = {
|
||||
email_code_error: { status: 400, data: zEmailCodeError },
|
||||
email_password_reset_limit: { status: 429, data: zEmailPasswordResetLimitError },
|
||||
invalid_email: { status: 400, data: zInvalidEmailError },
|
||||
invalid_or_expired_token: { status: 400, data: zInvalidOrExpiredTokenError },
|
||||
}
|
||||
|
||||
export const post12Errors = {
|
||||
authentication_failed: { status: 401, data: zAuthenticationFailedError },
|
||||
email_send_ip_limit: { status: 429, data: zEmailSendIpLimitError },
|
||||
password_reset_rate_limit_exceeded: { status: 429, data: zPasswordResetRateLimitExceededError },
|
||||
}
|
||||
|
||||
export const post13Errors = {
|
||||
human_input_access_delivery_failed: { status: 503, data: zHumanInputAccessDeliveryFailedError },
|
||||
human_input_access_rate_limit_exceeded: {
|
||||
status: 429,
|
||||
data: zHumanInputAccessRateLimitExceededError,
|
||||
},
|
||||
human_input_form_expired: { status: 412, data: zHumanInputFormExpiredError },
|
||||
human_input_form_not_found: { status: 404, data: zHumanInputFormNotFoundError },
|
||||
human_input_form_submitted: { status: 412, data: zHumanInputFormSubmittedError },
|
||||
human_input_v2_unavailable: { status: 503, data: zHumanInputV2UnavailableError },
|
||||
}
|
||||
|
||||
export const post14Errors = {
|
||||
human_input_form_expired: { status: 412, data: zHumanInputFormExpiredError },
|
||||
human_input_form_not_found: { status: 404, data: zHumanInputFormNotFoundError },
|
||||
human_input_form_submitted: { status: 412, data: zHumanInputFormSubmittedError },
|
||||
invalid_upload_token: { status: 403, data: zInvalidUploadTokenError },
|
||||
}
|
||||
|
||||
export const get2Errors = {
|
||||
human_input_form_expired: { status: 412, data: zHumanInputFormExpiredError },
|
||||
human_input_form_not_found: { status: 404, data: zHumanInputFormNotFoundError },
|
||||
human_input_form_submitted: { status: 412, data: zHumanInputFormSubmittedError },
|
||||
}
|
||||
|
||||
export const post15Errors = {
|
||||
human_input_challenge_expired: { status: 400, data: zHumanInputChallengeExpiredError },
|
||||
human_input_challenge_stale: { status: 400, data: zHumanInputChallengeStaleError },
|
||||
human_input_form_expired: { status: 412, data: zHumanInputFormExpiredError },
|
||||
human_input_form_not_found: { status: 404, data: zHumanInputFormNotFoundError },
|
||||
human_input_form_submitted: { status: 412, data: zHumanInputFormSubmittedError },
|
||||
human_input_invalid_otp: { status: 400, data: zHumanInputInvalidOtpError },
|
||||
human_input_v2_unavailable: { status: 503, data: zHumanInputV2UnavailableError },
|
||||
invalid_input: { status: 400, data: zInvalidInputError },
|
||||
workflow_not_active: { status: 409, data: zWorkflowNotActiveError },
|
||||
}
|
||||
|
||||
export const get3Errors = {
|
||||
already_submitted: { status: 409, data: zAlreadySubmittedError },
|
||||
expired: { status: 410, data: zExpiredError },
|
||||
}
|
||||
|
||||
export const post16Errors = {
|
||||
already_submitted: { status: 409, data: zAlreadySubmittedError },
|
||||
expired: { status: 410, data: zExpiredError },
|
||||
invalid_input: { status: 400, data: zInvalidInputError },
|
||||
workflow_not_active: { status: 409, data: zWorkflowNotActiveError },
|
||||
}
|
||||
|
||||
export const post17Errors = {
|
||||
human_input_form_expired: { status: 412, data: zHumanInputFormExpiredError },
|
||||
human_input_form_submitted: { status: 412, data: zHumanInputFormSubmittedError },
|
||||
web_form_rate_limit_exceeded: { status: 429, data: zWebFormRateLimitExceededError },
|
||||
}
|
||||
|
||||
export const get4Errors = {
|
||||
human_input_form_expired: { status: 412, data: zHumanInputFormExpiredError },
|
||||
human_input_form_submitted: { status: 412, data: zHumanInputFormSubmittedError },
|
||||
web_form_rate_limit_exceeded: { status: 429, data: zWebFormRateLimitExceededError },
|
||||
}
|
||||
|
||||
export const post18Errors = {
|
||||
human_input_form_expired: { status: 412, data: zHumanInputFormExpiredError },
|
||||
human_input_form_submitted: { status: 412, data: zHumanInputFormSubmittedError },
|
||||
invalid_form_data: { status: 400, data: zInvalidFormDataError },
|
||||
web_form_rate_limit_exceeded: { status: 429, data: zWebFormRateLimitExceededError },
|
||||
}
|
||||
|
||||
export const post19Errors = {
|
||||
file_extension_blocked: { status: 400, data: zFileExtensionBlockedError },
|
||||
file_too_large: { status: 413, data: zFileTooLargeError },
|
||||
filename_not_exists_error: { status: 400, data: zFilenameNotExistsError },
|
||||
human_input_form_expired: { status: 412, data: zHumanInputFormExpiredError },
|
||||
human_input_form_submitted: { status: 412, data: zHumanInputFormSubmittedError },
|
||||
invalid_upload_token: { status: 403, data: zInvalidUploadTokenError },
|
||||
malformed_upload_token: { status: 400, data: zMalformedUploadTokenError },
|
||||
no_file_uploaded: { status: 400, data: zNoFileUploadedError },
|
||||
remote_file_access_denied: { status: 400, data: zRemoteFileAccessDeniedError },
|
||||
remote_file_invalid_response: { status: 502, data: zRemoteFileInvalidResponseError },
|
||||
remote_file_invalid_url: { status: 400, data: zRemoteFileInvalidUrlError },
|
||||
remote_file_not_found: { status: 404, data: zRemoteFileNotFoundError },
|
||||
remote_file_unavailable: { status: 502, data: zRemoteFileUnavailableError },
|
||||
remote_file_url_blocked: { status: 400, data: zRemoteFileUrlBlockedError },
|
||||
too_many_files: { status: 400, data: zTooManyFilesError },
|
||||
unsupported_file_type: { status: 415, data: zUnsupportedFileTypeError },
|
||||
upload_token_required: { status: 401, data: zUploadTokenRequiredError },
|
||||
}
|
||||
|
||||
export const post20Errors = {
|
||||
file_extension_blocked: { status: 400, data: zFileExtensionBlockedError },
|
||||
file_too_large: { status: 413, data: zFileTooLargeError },
|
||||
filename_not_exists_error: { status: 400, data: zFilenameNotExistsError },
|
||||
human_input_form_expired: { status: 412, data: zHumanInputFormExpiredError },
|
||||
human_input_form_not_found: { status: 404, data: zHumanInputFormNotFoundError },
|
||||
human_input_form_submitted: { status: 412, data: zHumanInputFormSubmittedError },
|
||||
invalid_upload_token: { status: 403, data: zInvalidUploadTokenError },
|
||||
malformed_upload_token: { status: 400, data: zMalformedUploadTokenError },
|
||||
no_file_uploaded: { status: 400, data: zNoFileUploadedError },
|
||||
remote_file_access_denied: { status: 400, data: zRemoteFileAccessDeniedError },
|
||||
remote_file_invalid_response: { status: 502, data: zRemoteFileInvalidResponseError },
|
||||
remote_file_invalid_url: { status: 400, data: zRemoteFileInvalidUrlError },
|
||||
remote_file_not_found: { status: 404, data: zRemoteFileNotFoundError },
|
||||
remote_file_unavailable: { status: 502, data: zRemoteFileUnavailableError },
|
||||
remote_file_url_blocked: { status: 400, data: zRemoteFileUrlBlockedError },
|
||||
too_many_files: { status: 400, data: zTooManyFilesError },
|
||||
unsupported_file_type: { status: 415, data: zUnsupportedFileTypeError },
|
||||
upload_token_required: { status: 401, data: zUploadTokenRequiredError },
|
||||
}
|
||||
|
||||
export const post21Errors = {
|
||||
file_extension_blocked: { status: 400, data: zFileExtensionBlockedError },
|
||||
file_too_large: { status: 413, data: zFileTooLargeError },
|
||||
filename_not_exists_error: { status: 400, data: zFilenameNotExistsError },
|
||||
human_input_form_expired: { status: 412, data: zHumanInputFormExpiredError },
|
||||
human_input_form_not_found: { status: 404, data: zHumanInputFormNotFoundError },
|
||||
human_input_form_submitted: { status: 412, data: zHumanInputFormSubmittedError },
|
||||
invalid_upload_token: { status: 403, data: zInvalidUploadTokenError },
|
||||
malformed_upload_token: { status: 400, data: zMalformedUploadTokenError },
|
||||
no_file_uploaded: { status: 400, data: zNoFileUploadedError },
|
||||
remote_file_access_denied: { status: 400, data: zRemoteFileAccessDeniedError },
|
||||
remote_file_invalid_response: { status: 502, data: zRemoteFileInvalidResponseError },
|
||||
remote_file_invalid_url: { status: 400, data: zRemoteFileInvalidUrlError },
|
||||
remote_file_not_found: { status: 404, data: zRemoteFileNotFoundError },
|
||||
remote_file_unavailable: { status: 502, data: zRemoteFileUnavailableError },
|
||||
remote_file_url_blocked: { status: 400, data: zRemoteFileUrlBlockedError },
|
||||
too_many_files: { status: 400, data: zTooManyFilesError },
|
||||
unsupported_file_type: { status: 415, data: zUnsupportedFileTypeError },
|
||||
upload_token_required: { status: 401, data: zUploadTokenRequiredError },
|
||||
}
|
||||
|
||||
export const post22Errors = {
|
||||
account_banned: { status: 400, data: zAccountBannedError },
|
||||
authentication_failed: { status: 401, data: zAuthenticationFailedError },
|
||||
}
|
||||
|
||||
export const post24Errors = {
|
||||
app_unavailable: { status: 400, data: zAppUnavailableError },
|
||||
message_feedback_rating_required: { status: 400, data: zMessageFeedbackRatingRequiredError },
|
||||
}
|
||||
|
||||
export const get6Errors = {
|
||||
app_more_like_this_disabled: { status: 403, data: zAppMoreLikeThisDisabledError },
|
||||
app_unavailable: { status: 400, data: zAppUnavailableError },
|
||||
completion_request_error: { status: 400, data: zCompletionRequestError },
|
||||
model_currently_not_support: { status: 400, data: zModelCurrentlyNotSupportError },
|
||||
not_completion_app: { status: 400, data: zNotCompletionAppError },
|
||||
provider_not_initialize: { status: 400, data: zProviderNotInitializeError },
|
||||
provider_quota_exceeded: { status: 400, data: zProviderQuotaExceededError },
|
||||
}
|
||||
|
||||
export const get7Errors = {
|
||||
agent_version_not_found_error: { status: 404, data: zAgentVersionNotFoundError },
|
||||
app_suggested_questions_after_answer_disabled: {
|
||||
status: 403,
|
||||
data: zAppSuggestedQuestionsAfterAnswerDisabledError,
|
||||
},
|
||||
app_unavailable: { status: 400, data: zAppUnavailableError },
|
||||
completion_request_error: { status: 400, data: zCompletionRequestError },
|
||||
model_currently_not_support: { status: 400, data: zModelCurrentlyNotSupportError },
|
||||
not_chat_app: { status: 400, data: zNotChatAppError },
|
||||
provider_not_initialize: { status: 400, data: zProviderNotInitializeError },
|
||||
provider_quota_exceeded: { status: 400, data: zProviderQuotaExceededError },
|
||||
}
|
||||
|
||||
export const get8Errors = {
|
||||
app_unavailable: { status: 400, data: zAppUnavailableError },
|
||||
not_chat_app: { status: 400, data: zNotChatAppError },
|
||||
}
|
||||
|
||||
export const get9Errors = { app_unavailable: { status: 400, data: zAppUnavailableError } }
|
||||
|
||||
export const get10Errors = {
|
||||
agent_not_published: { status: 400, data: zAgentNotPublishedError },
|
||||
app_unavailable: { status: 400, data: zAppUnavailableError },
|
||||
}
|
||||
|
||||
export const post25Errors = {
|
||||
file_extension_blocked: { status: 400, data: zFileExtensionBlockedError },
|
||||
file_too_large: { status: 413, data: zFileTooLargeError },
|
||||
remote_file_access_denied: { status: 400, data: zRemoteFileAccessDeniedError },
|
||||
remote_file_invalid_response: { status: 502, data: zRemoteFileInvalidResponseError },
|
||||
remote_file_invalid_url: { status: 400, data: zRemoteFileInvalidUrlError },
|
||||
remote_file_not_found: { status: 404, data: zRemoteFileNotFoundError },
|
||||
remote_file_unavailable: { status: 502, data: zRemoteFileUnavailableError },
|
||||
remote_file_url_blocked: { status: 400, data: zRemoteFileUrlBlockedError },
|
||||
unsupported_file_type: { status: 415, data: zUnsupportedFileTypeError },
|
||||
}
|
||||
|
||||
export const get12Errors = {
|
||||
remote_file_access_denied: { status: 400, data: zRemoteFileAccessDeniedError },
|
||||
remote_file_invalid_response: { status: 502, data: zRemoteFileInvalidResponseError },
|
||||
remote_file_invalid_url: { status: 400, data: zRemoteFileInvalidUrlError },
|
||||
remote_file_not_found: { status: 404, data: zRemoteFileNotFoundError },
|
||||
remote_file_unavailable: { status: 502, data: zRemoteFileUnavailableError },
|
||||
remote_file_url_blocked: { status: 400, data: zRemoteFileUrlBlockedError },
|
||||
}
|
||||
|
||||
export const delete2Errors = { not_completion_app: { status: 400, data: zNotCompletionAppError } }
|
||||
|
||||
export const get13Errors = { not_completion_app: { status: 400, data: zNotCompletionAppError } }
|
||||
|
||||
export const post26Errors = { not_completion_app: { status: 400, data: zNotCompletionAppError } }
|
||||
|
||||
export const post27Errors = {
|
||||
app_unavailable: { status: 400, data: zAppUnavailableError },
|
||||
completion_request_error: { status: 400, data: zCompletionRequestError },
|
||||
model_currently_not_support: { status: 400, data: zModelCurrentlyNotSupportError },
|
||||
provider_not_initialize: { status: 400, data: zProviderNotInitializeError },
|
||||
provider_quota_exceeded: { status: 400, data: zProviderQuotaExceededError },
|
||||
}
|
||||
|
||||
export const get16Errors = { invalid_param: { status: 400, data: zInvalidParamError } }
|
||||
|
||||
export const get18Errors = { invalid_param: { status: 400, data: zInvalidParamError } }
|
||||
|
||||
export const post28Errors = {
|
||||
completion_request_error: { status: 400, data: zCompletionRequestError },
|
||||
model_currently_not_support: { status: 400, data: zModelCurrentlyNotSupportError },
|
||||
not_workflow_app: { status: 400, data: zNotWorkflowAppError },
|
||||
provider_not_initialize: { status: 400, data: zProviderNotInitializeError },
|
||||
provider_quota_exceeded: { status: 400, data: zProviderQuotaExceededError },
|
||||
rate_limit_error: { status: 429, data: zRateLimitError },
|
||||
trigger_workflow_service_mode_unavailable: {
|
||||
status: 403,
|
||||
data: zTriggerWorkflowServiceModeUnavailableError,
|
||||
},
|
||||
}
|
||||
|
||||
export const post29Errors = { not_workflow_app: { status: 400, data: zNotWorkflowAppError } }
|
||||
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