import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { NovuError } from "./novuerror.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type Five = string | number | boolean | { [k: string]: any; }; export type Four = {}; /** * Value that failed validation */ export type Message = string | number | boolean | Four | Array; export type ErrorDtoData = { /** * HTTP status code of the error response. */ statusCode: number; /** * Timestamp of when the error occurred. */ timestamp: string; /** * The path where the error occurred. */ path: string; /** * Value that failed validation */ message?: string | number | boolean | Four | Array | null | undefined; /** * Optional context object for additional error details. */ ctx?: { [k: string]: any; } | undefined; /** * Optional unique identifier for the error, useful for tracking using Sentry and * * @remarks * New Relic, only available for 500. */ errorId?: string | undefined; }; export declare class ErrorDto extends NovuError { /** * Timestamp of when the error occurred. */ timestamp: string; /** * The path where the error occurred. */ path: string; /** * Optional context object for additional error details. */ ctx?: { [k: string]: any; } | undefined; /** * Optional unique identifier for the error, useful for tracking using Sentry and * * @remarks * New Relic, only available for 500. */ errorId?: string | undefined; /** The original data that was passed to this error instance. */ data$: ErrorDtoData; constructor(err: ErrorDtoData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const Five$inboundSchema: z.ZodType; export declare function fiveFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Four$inboundSchema: z.ZodType; export declare function fourFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Message$inboundSchema: z.ZodType; export declare function messageFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ErrorDto$inboundSchema: z.ZodType; //# sourceMappingURL=errordto.d.ts.map