import * as z from "zod"; /** * The type of error returned */ export declare enum SchemasTag { InvalidInputParameter = "invalid_input_parameter" } /** * An error that pertains to validation of a specific field in the request. */ export type FieldErrorData = { /** * The type of error returned */ dotTag: SchemasTag; /** * A human-readable error message, which might include information specific to the request that was made. */ message: string; /** * The field (in its hierarchical form) that is failing validation. */ field: string; /** * Raw HTTP response; suitable for custom response parsing */ rawResponse?: Response | undefined; }; /** * An error that pertains to validation of a specific field in the request. */ export declare class FieldError extends Error { /** * The type of error returned */ dotTag: SchemasTag; /** * The field (in its hierarchical form) that is failing validation. */ field: string; /** * Raw HTTP response; suitable for custom response parsing */ rawResponse?: Response | undefined; /** The original data that was passed to this error instance. */ data$: FieldErrorData; constructor(err: FieldErrorData); } /** @internal */ export declare const SchemasTag$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SchemasTag$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace SchemasTag$ { /** @deprecated use `SchemasTag$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `SchemasTag$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const FieldError$inboundSchema: z.ZodType; /** @internal */ export type FieldError$Outbound = { ".tag": string; message: string; field: string; RawResponse?: never | undefined; }; /** @internal */ export declare const FieldError$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 FieldError$ { /** @deprecated use `FieldError$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `FieldError$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `FieldError$Outbound` instead. */ type Outbound = FieldError$Outbound; } //# sourceMappingURL=fielderror.d.ts.map