/** * Validation utilities using Zod v4 * * This module uses Zod v4 features for improved performance and type safety. * Key v4 improvements used: * - Enhanced error messages with structured error configuration * - Improved object schema validation with custom messages * - Better union type handling * - More efficient parsing and validation */ import { z } from 'zod/v4'; /** * Schema for validating MongoDB ObjectId strings using Zod v4 */ export declare const objectIdSchema: z.ZodString; /** * Schema for validating ISO date strings using Zod v4 format */ export declare const isoDateSchema: z.ZodString; /** * Schema for validating Date objects or date strings using Zod v4 */ export declare const dateOrStringSchema: z.ZodUnion; /** * Schema for updateTaskComplete arguments using Zod v4 */ export declare const updateTaskCompleteArgsSchema: z.ZodObject<{ taskId: z.ZodString; completeOn: z.ZodOptional>; limitResponsePayload: z.ZodDefault; }, z.core.$strip>; /** * Type for updateTaskComplete arguments */ export type UpdateTaskCompleteArgs = z.infer; /** * Validates and parses updateTaskComplete arguments * @param args - Arguments to validate * @returns Parsed and validated arguments * @throws SunsamaAuthError if validation fails */ export declare function validateUpdateTaskCompleteArgs(args: { taskId: string; completeOn?: Date | string; limitResponsePayload?: boolean; }): UpdateTaskCompleteArgs; /** * Schema for validating updateCalendarEvent arguments */ export declare const updateCalendarEventArgsSchema: z.ZodObject<{ eventId: z.ZodString; options: z.ZodOptional; skipReorder: z.ZodOptional; limitResponsePayload: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; /** * Validates updateCalendarEvent arguments * @throws SunsamaValidationError if validation fails */ export declare function validateUpdateCalendarEventArgs(args: { eventId: string; options?: { isInviteeStatusUpdate?: boolean; skipReorder?: boolean; limitResponsePayload?: boolean; }; }): { eventId: string; options?: { isInviteeStatusUpdate?: boolean; skipReorder?: boolean; limitResponsePayload?: boolean; }; }; /** * Schema for validating createCalendarEvent arguments using Zod v4 */ export declare const createCalendarEventArgsSchema: z.ZodObject<{ title: z.ZodString; startDate: z.ZodCustom; endDate: z.ZodCustom; visibility: z.ZodOptional>; transparency: z.ZodOptional>; }, z.core.$strip>; /** * Converts a Date or string to ISO string for API usage * @param value - Date object or string * @returns ISO string representation */ export declare function toISOString(value: Date | string): string; //# sourceMappingURL=validation.d.ts.map