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 MessagePayloadValidationExceptionDto5 = string | number | boolean | { [k: string]: any; }; export type MessagePayloadValidationExceptionDto4 = {}; /** * Value that failed validation */ export type PayloadValidationExceptionDtoMessage = string | number | boolean | MessagePayloadValidationExceptionDto4 | Array; /** * The JSON schema that was used for validation */ export type Schema = {}; export type PayloadValidationExceptionDtoData = { /** * 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 | MessagePayloadValidationExceptionDto4 | 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; /** * Type identifier for payload validation errors */ type: string; /** * Array of detailed validation errors */ errors: Array; /** * The JSON schema that was used for validation */ schema?: Schema | undefined; }; export declare class PayloadValidationExceptionDto 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; /** * Type identifier for payload validation errors */ type: string; /** * Array of detailed validation errors */ errors: Array; /** * The JSON schema that was used for validation */ schema?: Schema | undefined; /** The original data that was passed to this error instance. */ data$: PayloadValidationExceptionDtoData; constructor(err: PayloadValidationExceptionDtoData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const MessagePayloadValidationExceptionDto5$inboundSchema: z.ZodType; export declare function messagePayloadValidationExceptionDto5FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const MessagePayloadValidationExceptionDto4$inboundSchema: z.ZodType; export declare function messagePayloadValidationExceptionDto4FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PayloadValidationExceptionDtoMessage$inboundSchema: z.ZodType; export declare function payloadValidationExceptionDtoMessageFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Schema$inboundSchema: z.ZodType; export declare function schemaFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PayloadValidationExceptionDto$inboundSchema: z.ZodType; //# sourceMappingURL=payloadvalidationexceptiondto.d.ts.map