import { z } from 'zod'; /** * Schema for creating a new schedule. * All fields required except headers and body. */ export declare const createScheduleRequestSchema: z.ZodObject<{ name: z.ZodString; cronSchedule: z.ZodEffects; functionUrl: z.ZodString; httpMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>; headers: z.ZodOptional>; body: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name: string; cronSchedule: string; functionUrl: string; httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; headers?: Record | undefined; body?: Record | undefined; }, { name: string; cronSchedule: string; functionUrl: string; httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; headers?: Record | undefined; body?: Record | undefined; }>; /** * Schema for updating an existing schedule. * All fields optional - supports partial updates including toggling isActive. */ export declare const updateScheduleRequestSchema: z.ZodObject<{ name: z.ZodOptional; cronSchedule: z.ZodOptional>; functionUrl: z.ZodOptional; httpMethod: z.ZodOptional>; headers: z.ZodOptional>; body: z.ZodOptional>; isActive: z.ZodOptional; }, "strip", z.ZodTypeAny, { name?: string | undefined; isActive?: boolean | undefined; headers?: Record | undefined; body?: Record | undefined; cronSchedule?: string | undefined; functionUrl?: string | undefined; httpMethod?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined; }, { name?: string | undefined; isActive?: boolean | undefined; headers?: Record | undefined; body?: Record | undefined; cronSchedule?: string | undefined; functionUrl?: string | undefined; httpMethod?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined; }>; /** * Schema for the response when listing all schedules. */ export declare const listSchedulesResponseSchema: z.ZodArray; headers: z.ZodNullable>; body: z.ZodNullable]>>; cronJobId: z.ZodNullable; lastExecutedAt: z.ZodNullable; isActive: z.ZodDefault; nextRun: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt: string; updatedAt: string; isActive: boolean; headers: Record | null; body: string | Record | null; cronSchedule: string; functionUrl: string; httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; cronJobId: string | null; lastExecutedAt: string | null; nextRun: string | null; }, { name: string; id: string; createdAt: string; updatedAt: string; headers: Record | null; body: string | Record | null; cronSchedule: string; functionUrl: string; httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; cronJobId: string | null; lastExecutedAt: string | null; nextRun: string | null; isActive?: boolean | undefined; }>, "many">; /** * Schema for the response when getting a single schedule. */ export declare const getScheduleResponseSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; cronSchedule: z.ZodString; functionUrl: z.ZodString; httpMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>; headers: z.ZodNullable>; body: z.ZodNullable]>>; cronJobId: z.ZodNullable; lastExecutedAt: z.ZodNullable; isActive: z.ZodDefault; nextRun: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; createdAt: string; updatedAt: string; isActive: boolean; headers: Record | null; body: string | Record | null; cronSchedule: string; functionUrl: string; httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; cronJobId: string | null; lastExecutedAt: string | null; nextRun: string | null; }, { name: string; id: string; createdAt: string; updatedAt: string; headers: Record | null; body: string | Record | null; cronSchedule: string; functionUrl: string; httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; cronJobId: string | null; lastExecutedAt: string | null; nextRun: string | null; isActive?: boolean | undefined; }>; /** * Schema for a single execution log in the response. */ export declare const executionLogResponseSchema: z.ZodObject<{ id: z.ZodString; scheduleId: z.ZodString; executedAt: z.ZodString; statusCode: z.ZodNumber; success: z.ZodBoolean; durationMs: z.ZodNumber; message: z.ZodNullable; }, "strip", z.ZodTypeAny, { message: string | null; id: string; statusCode: number; success: boolean; scheduleId: string; executedAt: string; durationMs: number; }, { message: string | null; id: string; statusCode: number; success: boolean; scheduleId: string; executedAt: string; durationMs: number; }>; /** * Schema for the response when listing execution logs with pagination. */ export declare const listExecutionLogsResponseSchema: z.ZodObject<{ logs: z.ZodArray; }, "strip", z.ZodTypeAny, { message: string | null; id: string; statusCode: number; success: boolean; scheduleId: string; executedAt: string; durationMs: number; }, { message: string | null; id: string; statusCode: number; success: boolean; scheduleId: string; executedAt: string; durationMs: number; }>, "many">; totalCount: z.ZodNumber; limit: z.ZodNumber; offset: z.ZodNumber; }, "strip", z.ZodTypeAny, { limit: number; offset: number; logs: { message: string | null; id: string; statusCode: number; success: boolean; scheduleId: string; executedAt: string; durationMs: number; }[]; totalCount: number; }, { limit: number; offset: number; logs: { message: string | null; id: string; statusCode: number; success: boolean; scheduleId: string; executedAt: string; durationMs: number; }[]; totalCount: number; }>; /** * Schema for the response of a successful create operation. */ export declare const createScheduleResponseSchema: z.ZodObject<{ id: z.ZodString; cronJobId: z.ZodString; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; id: string; cronJobId: string; }, { message: string; id: string; cronJobId: string; }>; /** * Schema for the response of a successful update operation. */ export declare const updateScheduleResponseSchema: z.ZodObject<{ id: z.ZodString; cronJobId: z.ZodOptional; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; id: string; cronJobId?: string | undefined; }, { message: string; id: string; cronJobId?: string | undefined; }>; /** * Schema for the response of a successful delete operation. */ export declare const deleteScheduleResponseSchema: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; export type CreateScheduleRequest = z.infer; export type UpdateScheduleRequest = z.infer; export type CreateScheduleResponse = z.infer; export type UpdateScheduleResponse = z.infer; export type ListSchedulesResponse = z.infer; export type GetScheduleResponse = z.infer; export type ExecutionLogResponse = z.infer; export type ListExecutionLogsResponse = z.infer; export type DeleteScheduleResponse = z.infer; export declare const getSchedulesConfigResponseSchema: z.ZodObject<{ retentionDays: z.ZodNullable; }, "strip", z.ZodTypeAny, { retentionDays: number | null; }, { retentionDays: number | null; }>; export declare const updateSchedulesConfigRequestSchema: z.ZodObject<{ retentionDays: z.ZodNullable; }, "strip", z.ZodTypeAny, { retentionDays: number | null; }, { retentionDays: number | null; }>; export type GetSchedulesConfigResponse = z.infer; export type UpdateSchedulesConfigRequest = z.infer; //# sourceMappingURL=schedules-api.schema.d.ts.map