mirror of
https://github.com/langgenius/dify.git
synced 2026-11-13 06:41:07 +08:00
673 lines
22 KiB
TypeScript
Generated
673 lines
22 KiB
TypeScript
Generated
// 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 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 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 zHumanInputFormExpiredError = /* @__PURE__ */ (() =>
|
|
zErrorResponse.and(
|
|
z.object({
|
|
code: z.literal('human_input_form_expired'),
|
|
status: z.literal(412),
|
|
}),
|
|
))()
|
|
|
|
const zHumanInputFormSubmittedError = /* @__PURE__ */ (() =>
|
|
zErrorResponse.and(
|
|
z.object({
|
|
code: z.literal('human_input_form_submitted'),
|
|
status: z.literal(412),
|
|
}),
|
|
))()
|
|
|
|
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 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),
|
|
}),
|
|
))()
|
|
|
|
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_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 get2Errors = {
|
|
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 post14Errors = {
|
|
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 post15Errors = {
|
|
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 post16Errors = {
|
|
account_banned: { status: 400, data: zAccountBannedError },
|
|
authentication_failed: { status: 401, data: zAuthenticationFailedError },
|
|
}
|
|
|
|
export const post18Errors = {
|
|
app_unavailable: { status: 400, data: zAppUnavailableError },
|
|
message_feedback_rating_required: { status: 400, data: zMessageFeedbackRatingRequiredError },
|
|
}
|
|
|
|
export const get4Errors = {
|
|
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 get5Errors = {
|
|
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 get6Errors = {
|
|
app_unavailable: { status: 400, data: zAppUnavailableError },
|
|
not_chat_app: { status: 400, data: zNotChatAppError },
|
|
}
|
|
|
|
export const get7Errors = { app_unavailable: { status: 400, data: zAppUnavailableError } }
|
|
|
|
export const get8Errors = {
|
|
agent_not_published: { status: 400, data: zAgentNotPublishedError },
|
|
app_unavailable: { status: 400, data: zAppUnavailableError },
|
|
}
|
|
|
|
export const post19Errors = {
|
|
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 get10Errors = {
|
|
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 get11Errors = { not_completion_app: { status: 400, data: zNotCompletionAppError } }
|
|
|
|
export const post20Errors = { not_completion_app: { status: 400, data: zNotCompletionAppError } }
|
|
|
|
export const post21Errors = {
|
|
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 get14Errors = { invalid_param: { status: 400, data: zInvalidParamError } }
|
|
|
|
export const get16Errors = { invalid_param: { status: 400, data: zInvalidParamError } }
|
|
|
|
export const post22Errors = {
|
|
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 post23Errors = { not_workflow_app: { status: 400, data: zNotWorkflowAppError } }
|