// 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 } }