import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * Contains parameter or domain specific information related to the error and why it occurred. */ export type UnprocessableResponseDetail = string | { [k: string]: any; }; /** * Unprocessable */ export type UnprocessableResponseData = { /** * 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; }; /** * Unprocessable */ export declare class UnprocessableResponse extends Error { /** * 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; /** The original data that was passed to this error instance. */ data$: UnprocessableResponseData; constructor(err: UnprocessableResponseData); } /** @internal */ export declare const UnprocessableResponseDetail$inboundSchema: z.ZodType; /** @internal */ export type UnprocessableResponseDetail$Outbound = string | { [k: string]: any; }; /** @internal */ export declare const UnprocessableResponseDetail$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace UnprocessableResponseDetail$ { /** @deprecated use `UnprocessableResponseDetail$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `UnprocessableResponseDetail$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `UnprocessableResponseDetail$Outbound` instead. */ type Outbound = UnprocessableResponseDetail$Outbound; } export declare function unprocessableResponseDetailToJSON(unprocessableResponseDetail: UnprocessableResponseDetail): string; export declare function unprocessableResponseDetailFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const UnprocessableResponse$inboundSchema: z.ZodType; /** @internal */ export type UnprocessableResponse$Outbound = { status_code?: number | undefined; error?: string | undefined; type_name?: string | undefined; message?: string | undefined; detail?: string | { [k: string]: any; } | undefined; ref?: string | undefined; }; /** @internal */ export declare const UnprocessableResponse$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace UnprocessableResponse$ { /** @deprecated use `UnprocessableResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `UnprocessableResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `UnprocessableResponse$Outbound` instead. */ type Outbound = UnprocessableResponse$Outbound; } //# sourceMappingURL=unprocessableresponse.d.ts.map