import * as z from "zod/v3"; import * as shared from "../shared/index.js"; import { CodatBankFeedsError } from "./codatbankfeedserror.js"; /** * The request made is not valid. */ export type ErrorMessageData = { /** * The HTTP status code returned by the error. */ statusCode?: number | undefined; /** * Codat's service the returned the error. */ service?: string | undefined; /** * A brief description of the error. */ error?: string | undefined; /** * Unique identifier used to propagate to all downstream services and determine the source of the error. */ correlationId?: string | undefined; /** * A human-readable object describing validation decisions Codat has made. If an operation has failed because of validation errors, they will be detailed here. */ validation?: shared.ErrorValidation | null | undefined; /** * `True` if the error occurred transiently and can be retried. */ canBeRetried?: string | undefined; /** * Machine readable error code used to automate processes based on the code returned. */ detailedErrorCode?: number | undefined; }; /** * The request made is not valid. */ export declare class ErrorMessage extends CodatBankFeedsError { /** * Codat's service the returned the error. */ service?: string | undefined; /** * A brief description of the error. */ error?: string | undefined; /** * Unique identifier used to propagate to all downstream services and determine the source of the error. */ correlationId?: string | undefined; /** * A human-readable object describing validation decisions Codat has made. If an operation has failed because of validation errors, they will be detailed here. */ validation?: shared.ErrorValidation | null | undefined; /** * `True` if the error occurred transiently and can be retried. */ canBeRetried?: string | undefined; /** * Machine readable error code used to automate processes based on the code returned. */ detailedErrorCode?: number | undefined; /** The original data that was passed to this error instance. */ data$: ErrorMessageData; constructor(err: ErrorMessageData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const ErrorMessage$inboundSchema: z.ZodType; //# sourceMappingURL=errormessage.d.ts.map