@agentuity/schedule 3.0.11 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/types.ts ADDED
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ import { ScheduleSchema, ScheduleDestinationSchema } from './service.ts';
3
+
4
+ // ============================================================================
5
+ // API Response Schemas for Schedule Service
6
+ // ============================================================================
7
+
8
+ /**
9
+ * Response schema for the update-schedule endpoint.
10
+ */
11
+ export const ScheduleUpdateResultSchema = z.object({
12
+ /** The updated schedule record */
13
+ schedule: ScheduleSchema.describe('The updated schedule record.'),
14
+ });
15
+
16
+ export type ScheduleUpdateResult = z.infer<typeof ScheduleUpdateResultSchema>;
17
+
18
+ /**
19
+ * Response schema for the create-schedule-destination endpoint.
20
+ */
21
+ export const ScheduleCreateDestinationResultSchema = z.object({
22
+ /** The newly created destination record */
23
+ destination: ScheduleDestinationSchema.describe('The newly created destination record.'),
24
+ });
25
+
26
+ export type ScheduleCreateDestinationResult = z.infer<typeof ScheduleCreateDestinationResultSchema>;