import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { OutpostError } from "./outposterror.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * Additional error details. For validation errors, this is an array of human-readable messages. */ export type Data = Array | { [k: string]: any; }; /** * Standard error response format. */ export type APIErrorResponseData = { /** * HTTP status code. */ status?: number | undefined; /** * Human-readable error message. */ message?: string | undefined; /** * Additional error details. For validation errors, this is an array of human-readable messages. */ data?: Array | { [k: string]: any; } | undefined; }; /** * Standard error response format. */ export declare class APIErrorResponse extends OutpostError { /** * HTTP status code. */ status?: number | undefined; /** * Additional error details. For validation errors, this is an array of human-readable messages. */ data?: Array | { [k: string]: any; } | undefined; /** The original data that was passed to this error instance. */ data$: APIErrorResponseData; constructor(err: APIErrorResponseData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const Data$inboundSchema: z.ZodType; /** @internal */ export type Data$Outbound = Array | { [k: string]: any; }; /** @internal */ export declare const Data$outboundSchema: z.ZodType; export declare function dataToJSON(data: Data): string; export declare function dataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const APIErrorResponse$inboundSchema: z.ZodType; /** @internal */ export type APIErrorResponse$Outbound = { status?: number | undefined; message?: string | undefined; data?: Array | { [k: string]: any; } | undefined; }; /** @internal */ export declare const APIErrorResponse$outboundSchema: z.ZodType; //# sourceMappingURL=apierrorresponse.d.ts.map