import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { ApideckError } from "./apideckerror.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * Contains parameter or domain specific information related to the error and why it occurred. */ export type Detail = string | { [k: string]: any; }; export type DownstreamErrors = { /** * Error message from the downstream provider */ message?: string | undefined; /** * Additional error details */ detail?: string | undefined; /** * Error code from the downstream provider */ code?: string | undefined; }; /** * Bad Request */ export type BadRequestResponseData = { /** * HTTP status code */ statusCode?: number | undefined; /** * Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231) */ error?: string | undefined; /** * The type of error returned */ typeName?: string | undefined; /** * A human-readable message providing more details about the error. */ message?: string | undefined; /** * Contains parameter or domain specific information related to the error and why it occurred. */ detail?: string | { [k: string]: any; } | undefined; /** * Link to documentation of error type */ ref?: string | undefined; /** * Contains downstream errors returned from the connector. Only present when type_name is ConnectorExecutionError. */ downstreamErrors?: Array | undefined; }; /** * Bad Request */ export declare class BadRequestResponse extends ApideckError { /** * HTTP status code */ statusCode?: number | undefined; /** * Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231) */ error?: string | undefined; /** * The type of error returned */ typeName?: string | undefined; /** * Contains parameter or domain specific information related to the error and why it occurred. */ detail?: string | { [k: string]: any; } | undefined; /** * Link to documentation of error type */ ref?: string | undefined; /** * Contains downstream errors returned from the connector. Only present when type_name is ConnectorExecutionError. */ downstreamErrors?: Array | undefined; /** The original data that was passed to this error instance. */ data$: BadRequestResponseData; constructor(err: BadRequestResponseData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const Detail$inboundSchema: z.ZodType; export declare function detailFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DownstreamErrors$inboundSchema: z.ZodType; export declare function downstreamErrorsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const BadRequestResponse$inboundSchema: z.ZodType; //# sourceMappingURL=badrequestresponse.d.ts.map