UNPKG

tianji-client-sdk

Version:

201 lines (196 loc) 5.53 kB
// This file is auto-generated by @hey-api/openapi-ts export const $error_BAD_REQUEST = { title: 'Invalid input data error (400)', description: 'The error information', example: { code: 'BAD_REQUEST', message: 'Invalid input data', issues: [] }, type: 'object', properties: { message: { description: 'The error message', example: 'Invalid input data', type: 'string' }, code: { description: 'The error code', example: 'BAD_REQUEST', type: 'string' }, issues: { description: 'An array of issues that were responsible for the error', example: [], type: 'array', items: { type: 'object', properties: { message: { type: 'string' } }, required: ['message'], additionalProperties: false } } }, required: ['message', 'code'], additionalProperties: false } as const; export const $error_UNAUTHORIZED = { title: 'Authorization not provided error (401)', description: 'The error information', example: { code: 'UNAUTHORIZED', message: 'Authorization not provided', issues: [] }, type: 'object', properties: { message: { description: 'The error message', example: 'Authorization not provided', type: 'string' }, code: { description: 'The error code', example: 'UNAUTHORIZED', type: 'string' }, issues: { description: 'An array of issues that were responsible for the error', example: [], type: 'array', items: { type: 'object', properties: { message: { type: 'string' } }, required: ['message'], additionalProperties: false } } }, required: ['message', 'code'], additionalProperties: false } as const; export const $error_FORBIDDEN = { title: 'Insufficient access error (403)', description: 'The error information', example: { code: 'FORBIDDEN', message: 'Insufficient access', issues: [] }, type: 'object', properties: { message: { description: 'The error message', example: 'Insufficient access', type: 'string' }, code: { description: 'The error code', example: 'FORBIDDEN', type: 'string' }, issues: { description: 'An array of issues that were responsible for the error', example: [], type: 'array', items: { type: 'object', properties: { message: { type: 'string' } }, required: ['message'], additionalProperties: false } } }, required: ['message', 'code'], additionalProperties: false } as const; export const $error_INTERNAL_SERVER_ERROR = { title: 'Internal server error error (500)', description: 'The error information', example: { code: 'INTERNAL_SERVER_ERROR', message: 'Internal server error', issues: [] }, type: 'object', properties: { message: { description: 'The error message', example: 'Internal server error', type: 'string' }, code: { description: 'The error code', example: 'INTERNAL_SERVER_ERROR', type: 'string' }, issues: { description: 'An array of issues that were responsible for the error', example: [], type: 'array', items: { type: 'object', properties: { message: { type: 'string' } }, required: ['message'], additionalProperties: false } } }, required: ['message', 'code'], additionalProperties: false } as const; export const $error_NOT_FOUND = { title: 'Not found error (404)', description: 'The error information', example: { code: 'NOT_FOUND', message: 'Not found', issues: [] }, type: 'object', properties: { message: { description: 'The error message', example: 'Not found', type: 'string' }, code: { description: 'The error code', example: 'NOT_FOUND', type: 'string' }, issues: { description: 'An array of issues that were responsible for the error', example: [], type: 'array', items: { type: 'object', properties: { message: { type: 'string' } }, required: ['message'], additionalProperties: false } } }, required: ['message', 'code'], additionalProperties: false } as const;