UNPKG

tianji-client-sdk

Version:

200 lines (199 loc) 5.7 kB
"use strict"; // This file is auto-generated by @hey-api/openapi-ts Object.defineProperty(exports, "__esModule", { value: true }); exports.$error_NOT_FOUND = exports.$error_INTERNAL_SERVER_ERROR = exports.$error_FORBIDDEN = exports.$error_UNAUTHORIZED = exports.$error_BAD_REQUEST = void 0; exports.$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 }; exports.$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 }; exports.$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 }; exports.$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 }; exports.$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 };