/** * incident.io * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { ErrorRateLimit } from './ErrorRateLimit.js'; import type { ErrorSingle } from './ErrorSingle.js'; import type { ErrorDebug } from './ErrorDebug.js'; /** * * @export * @interface ErrorResponse */ export interface ErrorResponse { /** * */ debug?: ErrorDebug; /** * List of errors that caused this request to fail */ errors: Array; /** * */ rate_limit?: ErrorRateLimit; /** * Unique identifier of the request */ request_id: string; /** * HTTP status of the response */ status: number; /** * Machine-readable identifier for the general category of error */ type: ErrorResponseTypeEnum; } /** * @export */ export declare const ErrorResponseTypeEnum: { readonly InvalidRequestError: "invalid_request_error"; readonly AuthenticationError: "authentication_error"; readonly ResourceForbidden: "resource_forbidden"; readonly NotFound: "not_found"; readonly NotAcceptable: "not_acceptable"; readonly MethodNotAllowed: "method_not_allowed"; readonly RequestTimeout: "request_timeout"; readonly Conflict: "conflict"; readonly PreconditionFailed: "precondition_failed"; readonly PayloadTooLarge: "payload_too_large"; readonly ValidationError: "validation_error"; readonly TooManyRequests: "too_many_requests"; readonly ApiError: "api_error"; readonly RateLimitReached: "rate_limit_reached"; readonly ClientTimeout: "client_timeout"; }; export type ErrorResponseTypeEnum = typeof ErrorResponseTypeEnum[keyof typeof ErrorResponseTypeEnum]; /** * Check if a given object implements the ErrorResponse interface. */ export declare function instanceOfErrorResponse(value: object): value is ErrorResponse; export declare function ErrorResponseFromJSON(json: any): ErrorResponse; export declare function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse; export declare function ErrorResponseToJSON(json: any): ErrorResponse; export declare function ErrorResponseToJSONTyped(value?: ErrorResponse | null, ignoreDiscriminator?: boolean): any;