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 Detail = string | { [k: string]: any; }; /** * 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; }; /** * Bad Request */ export declare class BadRequestResponse 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$: BadRequestResponseData; constructor(err: BadRequestResponseData); } /** @internal */ export declare const Detail$inboundSchema: z.ZodType; /** @internal */ export type Detail$Outbound = string | { [k: string]: any; }; /** @internal */ export declare const Detail$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 Detail$ { /** @deprecated use `Detail$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Detail$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Detail$Outbound` instead. */ type Outbound = Detail$Outbound; } export declare function detailToJSON(detail: Detail): string; export declare function detailFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const BadRequestResponse$inboundSchema: z.ZodType; /** @internal */ export type BadRequestResponse$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 BadRequestResponse$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 BadRequestResponse$ { /** @deprecated use `BadRequestResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BadRequestResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BadRequestResponse$Outbound` instead. */ type Outbound = BadRequestResponse$Outbound; } //# sourceMappingURL=badrequestresponse.d.ts.map