/** * Error classes for SDK runtime errors. */ import type { z } from "zod"; export declare const REDACTED_BINARY_RESPONSE_DATA: Readonly<{ dataType: "binary"; redacted: true; }>; /** * Error thrown when REST API response or request body validation fails. * * Contains the complete Zod error object and the actual data that failed validation, * providing full context for debugging schema mismatches. */ export declare class RestApiValidationError extends Error { readonly details: { data: unknown; zodError: z.ZodError; }; constructor(message: string, details: { data: unknown; zodError: z.ZodError; }); } /** * Error thrown when query results fail schema validation. * * Contains detailed information about which row failed validation * and the specific field-level errors from Zod. */ export declare class QueryValidationError extends Error { readonly details: { /** Index of the row that failed validation (0-based) */ rowIndex: number; /** Array of field-level validation errors from Zod */ errors: Array<{ path: (string | number)[]; message: string; }>; /** The raw row data that failed validation */ row: unknown; }; constructor(message: string, details: { /** Index of the row that failed validation (0-based) */ rowIndex: number; /** Array of field-level validation errors from Zod */ errors: Array<{ path: (string | number)[]; message: string; }>; /** The raw row data that failed validation */ row: unknown; }); } /** * Error thrown when code execution fails. * * Contains context about the code, bindings, and any validation errors * that occurred during execution. */ export declare class CodeExecutionError extends Error { readonly details?: { /** The code that was executed */ code?: string; /** Bindings that were passed to the code */ bindings?: Record; /** The actual result that failed validation */ result?: unknown; /** Zod validation error if validation failed */ zodError?: z.ZodError; /** Original error from the execution runtime */ originalError?: unknown; } | undefined; constructor(message: string, details?: { /** The code that was executed */ code?: string; /** Bindings that were passed to the code */ bindings?: Record; /** The actual result that failed validation */ result?: unknown; /** Zod validation error if validation failed */ zodError?: z.ZodError; /** Original error from the execution runtime */ originalError?: unknown; } | undefined); } //# sourceMappingURL=errors.d.ts.map