import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; import { NovuError } from "./novuerror.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type Message5 = string | number | boolean | { [k: string]: any; }; export type Message4 = {}; /** * Value that failed validation */ export type ValidationErrorDtoMessage = string | number | boolean | Message4 | Array; export type ValidationErrorDtoData = { /** * 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 | Message4 | 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; /** * A record of validation errors keyed by field name */ errors: { [k: string]: components.ConstraintValidation; }; }; export declare class ValidationErrorDto 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; /** * A record of validation errors keyed by field name */ errors: { [k: string]: components.ConstraintValidation; }; /** The original data that was passed to this error instance. */ data$: ValidationErrorDtoData; constructor(err: ValidationErrorDtoData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const Message5$inboundSchema: z.ZodType; export declare function message5FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Message4$inboundSchema: z.ZodType; export declare function message4FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ValidationErrorDtoMessage$inboundSchema: z.ZodType; export declare function validationErrorDtoMessageFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ValidationErrorDto$inboundSchema: z.ZodType; //# sourceMappingURL=validationerrordto.d.ts.map