@chronary/schemas 0.1.3 → 0.2.2

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/dist/events.d.ts CHANGED
@@ -2,1085 +2,411 @@ import { z } from 'zod';
2
2
 
3
3
  declare const CreateAgentSchema: z.ZodObject<{
4
4
  name: z.ZodString;
5
- type: z.ZodEnum<["ai", "human", "resource"]>;
5
+ type: z.ZodEnum<{
6
+ ai: "ai";
7
+ human: "human";
8
+ resource: "resource";
9
+ }>;
6
10
  description: z.ZodOptional<z.ZodString>;
7
- metadata: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
8
- }, "strip", z.ZodTypeAny, {
9
- type: "ai" | "human" | "resource";
10
- name: string;
11
- description?: string | undefined;
12
- metadata?: Record<string, unknown> | undefined;
13
- }, {
14
- type: "ai" | "human" | "resource";
15
- name: string;
16
- description?: string | undefined;
17
- metadata?: Record<string, unknown> | undefined;
18
- }>;
19
- declare const UpdateAgentSchema: z.ZodEffects<z.ZodObject<{
11
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
+ }, z.core.$strip>;
13
+ declare const UpdateAgentSchema: z.ZodObject<{
20
14
  name: z.ZodOptional<z.ZodString>;
21
15
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- metadata: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
23
- status: z.ZodOptional<z.ZodEnum<["active", "paused"]>>;
24
- }, "strip", z.ZodTypeAny, {
25
- status?: "active" | "paused" | undefined;
26
- name?: string | undefined;
27
- description?: string | null | undefined;
28
- metadata?: Record<string, unknown> | undefined;
29
- }, {
30
- status?: "active" | "paused" | undefined;
31
- name?: string | undefined;
32
- description?: string | null | undefined;
33
- metadata?: Record<string, unknown> | undefined;
34
- }>, {
35
- status?: "active" | "paused" | undefined;
36
- name?: string | undefined;
37
- description?: string | null | undefined;
38
- metadata?: Record<string, unknown> | undefined;
39
- }, {
40
- status?: "active" | "paused" | undefined;
41
- name?: string | undefined;
42
- description?: string | null | undefined;
43
- metadata?: Record<string, unknown> | undefined;
44
- }>;
16
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
17
+ status: z.ZodOptional<z.ZodEnum<{
18
+ active: "active";
19
+ paused: "paused";
20
+ }>>;
21
+ }, z.core.$strip>;
45
22
  declare const ListAgentsQuerySchema: z.ZodObject<{
46
- type: z.ZodOptional<z.ZodEnum<["ai", "human", "resource"]>>;
47
- status: z.ZodOptional<z.ZodEnum<["active", "paused", "decommissioned"]>>;
48
- limit: z.ZodDefault<z.ZodNumber>;
49
- offset: z.ZodDefault<z.ZodNumber>;
50
- }, "strip", z.ZodTypeAny, {
51
- limit: number;
52
- offset: number;
53
- type?: "ai" | "human" | "resource" | undefined;
54
- status?: "active" | "paused" | "decommissioned" | undefined;
55
- }, {
56
- type?: "ai" | "human" | "resource" | undefined;
57
- status?: "active" | "paused" | "decommissioned" | undefined;
58
- limit?: number | undefined;
59
- offset?: number | undefined;
60
- }>;
23
+ type: z.ZodOptional<z.ZodEnum<{
24
+ ai: "ai";
25
+ human: "human";
26
+ resource: "resource";
27
+ }>>;
28
+ status: z.ZodOptional<z.ZodEnum<{
29
+ active: "active";
30
+ paused: "paused";
31
+ decommissioned: "decommissioned";
32
+ }>>;
33
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
34
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
35
+ }, z.core.$strip>;
36
+ declare const REMINDER_MIN_MINUTES = 1;
37
+ declare const REMINDER_MAX_MINUTES = 40320;
38
+ declare const REMINDER_MAX_COUNT = 5;
39
+ declare const DEFAULT_EVENT_REMINDERS: readonly number[];
40
+ declare const RemindersSchema: z.ZodPipe<z.ZodArray<z.ZodNumber>, z.ZodTransform<number[], number[]>>;
61
41
  declare const CreateCalendarSchema: z.ZodObject<{
62
42
  name: z.ZodString;
63
43
  timezone: z.ZodString;
64
- agent_status: z.ZodOptional<z.ZodEnum<["idle", "working", "waiting", "error"]>>;
65
- metadata: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
66
- }, "strip", z.ZodTypeAny, {
67
- name: string;
68
- timezone: string;
69
- metadata?: Record<string, unknown> | undefined;
70
- agent_status?: "error" | "idle" | "working" | "waiting" | undefined;
71
- }, {
72
- name: string;
73
- timezone: string;
74
- metadata?: Record<string, unknown> | undefined;
75
- agent_status?: "error" | "idle" | "working" | "waiting" | undefined;
76
- }>;
77
- declare const UpdateCalendarSchema: z.ZodEffects<z.ZodObject<{
44
+ agent_status: z.ZodOptional<z.ZodEnum<{
45
+ error: "error";
46
+ idle: "idle";
47
+ working: "working";
48
+ waiting: "waiting";
49
+ }>>;
50
+ default_reminders: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodNumber>, z.ZodTransform<number[], number[]>>>>;
51
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
52
+ }, z.core.$strip>;
53
+ declare const UpdateCalendarSchema: z.ZodObject<{
78
54
  name: z.ZodOptional<z.ZodString>;
79
55
  timezone: z.ZodOptional<z.ZodString>;
80
- agent_status: z.ZodOptional<z.ZodEnum<["idle", "working", "waiting", "error"]>>;
81
- metadata: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
82
- }, "strip", z.ZodTypeAny, {
83
- name?: string | undefined;
84
- metadata?: Record<string, unknown> | undefined;
85
- timezone?: string | undefined;
86
- agent_status?: "error" | "idle" | "working" | "waiting" | undefined;
87
- }, {
88
- name?: string | undefined;
89
- metadata?: Record<string, unknown> | undefined;
90
- timezone?: string | undefined;
91
- agent_status?: "error" | "idle" | "working" | "waiting" | undefined;
92
- }>, {
93
- name?: string | undefined;
94
- metadata?: Record<string, unknown> | undefined;
95
- timezone?: string | undefined;
96
- agent_status?: "error" | "idle" | "working" | "waiting" | undefined;
97
- }, {
98
- name?: string | undefined;
99
- metadata?: Record<string, unknown> | undefined;
100
- timezone?: string | undefined;
101
- agent_status?: "error" | "idle" | "working" | "waiting" | undefined;
102
- }>;
56
+ agent_status: z.ZodOptional<z.ZodEnum<{
57
+ error: "error";
58
+ idle: "idle";
59
+ working: "working";
60
+ waiting: "waiting";
61
+ }>>;
62
+ default_reminders: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodNumber>, z.ZodTransform<number[], number[]>>>>;
63
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
64
+ }, z.core.$strip>;
103
65
  declare const ListCalendarsQuerySchema: z.ZodObject<{
104
- include: z.ZodOptional<z.ZodEnum<["all"]>>;
105
- limit: z.ZodDefault<z.ZodNumber>;
106
- offset: z.ZodDefault<z.ZodNumber>;
107
- }, "strip", z.ZodTypeAny, {
108
- limit: number;
109
- offset: number;
110
- include?: "all" | undefined;
111
- }, {
112
- limit?: number | undefined;
113
- offset?: number | undefined;
114
- include?: "all" | undefined;
115
- }>;
66
+ include: z.ZodOptional<z.ZodEnum<{
67
+ all: "all";
68
+ }>>;
69
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
70
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
71
+ }, z.core.$strip>;
116
72
  declare const EVENT_STATUSES: readonly ["confirmed", "tentative", "cancelled", "hold"];
117
73
  type EventStatus = (typeof EVENT_STATUSES)[number];
118
- declare const CreateEventSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
74
+ declare const CreateEventSchema: z.ZodObject<{
119
75
  title: z.ZodString;
120
76
  start_time: z.ZodString;
121
77
  end_time: z.ZodString;
122
78
  description: z.ZodOptional<z.ZodString>;
123
79
  all_day: z.ZodDefault<z.ZodBoolean>;
124
- status: z.ZodDefault<z.ZodEnum<["confirmed", "tentative", "cancelled", "hold"]>>;
125
- metadata: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
80
+ status: z.ZodDefault<z.ZodEnum<{
81
+ confirmed: "confirmed";
82
+ tentative: "tentative";
83
+ cancelled: "cancelled";
84
+ hold: "hold";
85
+ }>>;
86
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
87
+ reminders: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodNumber>, z.ZodTransform<number[], number[]>>>>;
126
88
  hold_expires_at: z.ZodOptional<z.ZodString>;
127
89
  hold_priority: z.ZodOptional<z.ZodNumber>;
128
- }, "strip", z.ZodTypeAny, {
129
- status: "confirmed" | "tentative" | "cancelled" | "hold";
130
- title: string;
131
- start_time: string;
132
- end_time: string;
133
- all_day: boolean;
134
- description?: string | undefined;
135
- metadata?: Record<string, unknown> | undefined;
136
- hold_expires_at?: string | undefined;
137
- hold_priority?: number | undefined;
138
- }, {
139
- title: string;
140
- start_time: string;
141
- end_time: string;
142
- status?: "confirmed" | "tentative" | "cancelled" | "hold" | undefined;
143
- description?: string | undefined;
144
- metadata?: Record<string, unknown> | undefined;
145
- all_day?: boolean | undefined;
146
- hold_expires_at?: string | undefined;
147
- hold_priority?: number | undefined;
148
- }>, {
149
- status: "confirmed" | "tentative" | "cancelled" | "hold";
150
- title: string;
151
- start_time: string;
152
- end_time: string;
153
- all_day: boolean;
154
- description?: string | undefined;
155
- metadata?: Record<string, unknown> | undefined;
156
- hold_expires_at?: string | undefined;
157
- hold_priority?: number | undefined;
158
- }, {
159
- title: string;
160
- start_time: string;
161
- end_time: string;
162
- status?: "confirmed" | "tentative" | "cancelled" | "hold" | undefined;
163
- description?: string | undefined;
164
- metadata?: Record<string, unknown> | undefined;
165
- all_day?: boolean | undefined;
166
- hold_expires_at?: string | undefined;
167
- hold_priority?: number | undefined;
168
- }>, {
169
- status: "confirmed" | "tentative" | "cancelled" | "hold";
170
- title: string;
171
- start_time: string;
172
- end_time: string;
173
- all_day: boolean;
174
- description?: string | undefined;
175
- metadata?: Record<string, unknown> | undefined;
176
- hold_expires_at?: string | undefined;
177
- hold_priority?: number | undefined;
178
- }, {
179
- title: string;
180
- start_time: string;
181
- end_time: string;
182
- status?: "confirmed" | "tentative" | "cancelled" | "hold" | undefined;
183
- description?: string | undefined;
184
- metadata?: Record<string, unknown> | undefined;
185
- all_day?: boolean | undefined;
186
- hold_expires_at?: string | undefined;
187
- hold_priority?: number | undefined;
188
- }>;
189
- declare const UpdateEventSchema: z.ZodEffects<z.ZodObject<{
90
+ }, z.core.$strip>;
91
+ declare const UpdateEventSchema: z.ZodObject<{
190
92
  title: z.ZodOptional<z.ZodString>;
191
93
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
192
94
  start_time: z.ZodOptional<z.ZodString>;
193
95
  end_time: z.ZodOptional<z.ZodString>;
194
96
  all_day: z.ZodOptional<z.ZodBoolean>;
195
- status: z.ZodOptional<z.ZodEnum<["confirmed", "tentative", "cancelled"]>>;
196
- metadata: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
197
- }, "strip", z.ZodTypeAny, {
198
- status?: "confirmed" | "tentative" | "cancelled" | undefined;
199
- title?: string | undefined;
200
- start_time?: string | undefined;
201
- end_time?: string | undefined;
202
- description?: string | null | undefined;
203
- metadata?: Record<string, unknown> | undefined;
204
- all_day?: boolean | undefined;
205
- }, {
206
- status?: "confirmed" | "tentative" | "cancelled" | undefined;
207
- title?: string | undefined;
208
- start_time?: string | undefined;
209
- end_time?: string | undefined;
210
- description?: string | null | undefined;
211
- metadata?: Record<string, unknown> | undefined;
212
- all_day?: boolean | undefined;
213
- }>, {
214
- status?: "confirmed" | "tentative" | "cancelled" | undefined;
215
- title?: string | undefined;
216
- start_time?: string | undefined;
217
- end_time?: string | undefined;
218
- description?: string | null | undefined;
219
- metadata?: Record<string, unknown> | undefined;
220
- all_day?: boolean | undefined;
221
- }, {
222
- status?: "confirmed" | "tentative" | "cancelled" | undefined;
223
- title?: string | undefined;
224
- start_time?: string | undefined;
225
- end_time?: string | undefined;
226
- description?: string | null | undefined;
227
- metadata?: Record<string, unknown> | undefined;
228
- all_day?: boolean | undefined;
229
- }>;
97
+ status: z.ZodOptional<z.ZodEnum<{
98
+ confirmed: "confirmed";
99
+ tentative: "tentative";
100
+ cancelled: "cancelled";
101
+ }>>;
102
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
103
+ reminders: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodNumber>, z.ZodTransform<number[], number[]>>>>;
104
+ }, z.core.$strip>;
230
105
  declare const ListEventsQuerySchema: z.ZodObject<{
231
106
  start_after: z.ZodOptional<z.ZodString>;
232
107
  start_before: z.ZodOptional<z.ZodString>;
233
- status: z.ZodOptional<z.ZodEnum<["confirmed", "tentative", "cancelled", "hold"]>>;
234
- source: z.ZodOptional<z.ZodEnum<["internal", "external_ical"]>>;
235
- limit: z.ZodDefault<z.ZodNumber>;
236
- offset: z.ZodDefault<z.ZodNumber>;
237
- }, "strip", z.ZodTypeAny, {
238
- limit: number;
239
- offset: number;
240
- status?: "confirmed" | "tentative" | "cancelled" | "hold" | undefined;
241
- start_after?: string | undefined;
242
- start_before?: string | undefined;
243
- source?: "internal" | "external_ical" | undefined;
244
- }, {
245
- status?: "confirmed" | "tentative" | "cancelled" | "hold" | undefined;
246
- limit?: number | undefined;
247
- offset?: number | undefined;
248
- start_after?: string | undefined;
249
- start_before?: string | undefined;
250
- source?: "internal" | "external_ical" | undefined;
251
- }>;
252
- declare const WorkingHoursSchema: z.ZodEffects<z.ZodObject<{
253
- mon: z.ZodOptional<z.ZodEffects<z.ZodObject<{
108
+ status: z.ZodOptional<z.ZodEnum<{
109
+ confirmed: "confirmed";
110
+ tentative: "tentative";
111
+ cancelled: "cancelled";
112
+ hold: "hold";
113
+ }>>;
114
+ source: z.ZodOptional<z.ZodEnum<{
115
+ internal: "internal";
116
+ external_ical: "external_ical";
117
+ }>>;
118
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
119
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
120
+ }, z.core.$strip>;
121
+ declare const WorkingHoursSchema: z.ZodObject<{
122
+ mon: z.ZodOptional<z.ZodObject<{
254
123
  start: z.ZodString;
255
124
  end: z.ZodString;
256
- }, "strip", z.ZodTypeAny, {
257
- start: string;
258
- end: string;
259
- }, {
260
- start: string;
261
- end: string;
262
- }>, {
263
- start: string;
264
- end: string;
265
- }, {
266
- start: string;
267
- end: string;
268
- }>>;
269
- tue: z.ZodOptional<z.ZodEffects<z.ZodObject<{
125
+ }, z.core.$strip>>;
126
+ tue: z.ZodOptional<z.ZodObject<{
270
127
  start: z.ZodString;
271
128
  end: z.ZodString;
272
- }, "strip", z.ZodTypeAny, {
273
- start: string;
274
- end: string;
275
- }, {
276
- start: string;
277
- end: string;
278
- }>, {
279
- start: string;
280
- end: string;
281
- }, {
282
- start: string;
283
- end: string;
284
- }>>;
285
- wed: z.ZodOptional<z.ZodEffects<z.ZodObject<{
129
+ }, z.core.$strip>>;
130
+ wed: z.ZodOptional<z.ZodObject<{
286
131
  start: z.ZodString;
287
132
  end: z.ZodString;
288
- }, "strip", z.ZodTypeAny, {
289
- start: string;
290
- end: string;
291
- }, {
292
- start: string;
293
- end: string;
294
- }>, {
295
- start: string;
296
- end: string;
297
- }, {
298
- start: string;
299
- end: string;
300
- }>>;
301
- thu: z.ZodOptional<z.ZodEffects<z.ZodObject<{
133
+ }, z.core.$strip>>;
134
+ thu: z.ZodOptional<z.ZodObject<{
302
135
  start: z.ZodString;
303
136
  end: z.ZodString;
304
- }, "strip", z.ZodTypeAny, {
305
- start: string;
306
- end: string;
307
- }, {
308
- start: string;
309
- end: string;
310
- }>, {
311
- start: string;
312
- end: string;
313
- }, {
314
- start: string;
315
- end: string;
316
- }>>;
317
- fri: z.ZodOptional<z.ZodEffects<z.ZodObject<{
137
+ }, z.core.$strip>>;
138
+ fri: z.ZodOptional<z.ZodObject<{
318
139
  start: z.ZodString;
319
140
  end: z.ZodString;
320
- }, "strip", z.ZodTypeAny, {
321
- start: string;
322
- end: string;
323
- }, {
324
- start: string;
325
- end: string;
326
- }>, {
327
- start: string;
328
- end: string;
329
- }, {
330
- start: string;
331
- end: string;
332
- }>>;
333
- sat: z.ZodOptional<z.ZodEffects<z.ZodObject<{
141
+ }, z.core.$strip>>;
142
+ sat: z.ZodOptional<z.ZodObject<{
334
143
  start: z.ZodString;
335
144
  end: z.ZodString;
336
- }, "strip", z.ZodTypeAny, {
337
- start: string;
338
- end: string;
339
- }, {
340
- start: string;
341
- end: string;
342
- }>, {
343
- start: string;
344
- end: string;
345
- }, {
346
- start: string;
347
- end: string;
348
- }>>;
349
- sun: z.ZodOptional<z.ZodEffects<z.ZodObject<{
145
+ }, z.core.$strip>>;
146
+ sun: z.ZodOptional<z.ZodObject<{
350
147
  start: z.ZodString;
351
148
  end: z.ZodString;
352
- }, "strip", z.ZodTypeAny, {
353
- start: string;
354
- end: string;
355
- }, {
356
- start: string;
357
- end: string;
358
- }>, {
359
- start: string;
360
- end: string;
361
- }, {
362
- start: string;
363
- end: string;
364
- }>>;
365
- }, "strip", z.ZodTypeAny, {
366
- mon?: {
367
- start: string;
368
- end: string;
369
- } | undefined;
370
- tue?: {
371
- start: string;
372
- end: string;
373
- } | undefined;
374
- wed?: {
375
- start: string;
376
- end: string;
377
- } | undefined;
378
- thu?: {
379
- start: string;
380
- end: string;
381
- } | undefined;
382
- fri?: {
383
- start: string;
384
- end: string;
385
- } | undefined;
386
- sat?: {
387
- start: string;
388
- end: string;
389
- } | undefined;
390
- sun?: {
391
- start: string;
392
- end: string;
393
- } | undefined;
394
- }, {
395
- mon?: {
396
- start: string;
397
- end: string;
398
- } | undefined;
399
- tue?: {
400
- start: string;
401
- end: string;
402
- } | undefined;
403
- wed?: {
404
- start: string;
405
- end: string;
406
- } | undefined;
407
- thu?: {
408
- start: string;
409
- end: string;
410
- } | undefined;
411
- fri?: {
412
- start: string;
413
- end: string;
414
- } | undefined;
415
- sat?: {
416
- start: string;
417
- end: string;
418
- } | undefined;
419
- sun?: {
420
- start: string;
421
- end: string;
422
- } | undefined;
423
- }>, {
424
- mon?: {
425
- start: string;
426
- end: string;
427
- } | undefined;
428
- tue?: {
429
- start: string;
430
- end: string;
431
- } | undefined;
432
- wed?: {
433
- start: string;
434
- end: string;
435
- } | undefined;
436
- thu?: {
437
- start: string;
438
- end: string;
439
- } | undefined;
440
- fri?: {
441
- start: string;
442
- end: string;
443
- } | undefined;
444
- sat?: {
445
- start: string;
446
- end: string;
447
- } | undefined;
448
- sun?: {
449
- start: string;
450
- end: string;
451
- } | undefined;
452
- }, {
453
- mon?: {
454
- start: string;
455
- end: string;
456
- } | undefined;
457
- tue?: {
458
- start: string;
459
- end: string;
460
- } | undefined;
461
- wed?: {
462
- start: string;
463
- end: string;
464
- } | undefined;
465
- thu?: {
466
- start: string;
467
- end: string;
468
- } | undefined;
469
- fri?: {
470
- start: string;
471
- end: string;
472
- } | undefined;
473
- sat?: {
474
- start: string;
475
- end: string;
476
- } | undefined;
477
- sun?: {
478
- start: string;
479
- end: string;
480
- } | undefined;
481
- }>;
149
+ }, z.core.$strip>>;
150
+ }, z.core.$strip>;
482
151
  declare const UpdateAvailabilityRulesSchema: z.ZodObject<{
483
152
  buffer_before_minutes: z.ZodDefault<z.ZodNumber>;
484
153
  buffer_after_minutes: z.ZodDefault<z.ZodNumber>;
485
- working_hours: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodObject<{
486
- mon: z.ZodOptional<z.ZodEffects<z.ZodObject<{
154
+ working_hours: z.ZodDefault<z.ZodNullable<z.ZodObject<{
155
+ mon: z.ZodOptional<z.ZodObject<{
487
156
  start: z.ZodString;
488
157
  end: z.ZodString;
489
- }, "strip", z.ZodTypeAny, {
490
- start: string;
491
- end: string;
492
- }, {
493
- start: string;
494
- end: string;
495
- }>, {
496
- start: string;
497
- end: string;
498
- }, {
499
- start: string;
500
- end: string;
501
- }>>;
502
- tue: z.ZodOptional<z.ZodEffects<z.ZodObject<{
158
+ }, z.core.$strip>>;
159
+ tue: z.ZodOptional<z.ZodObject<{
503
160
  start: z.ZodString;
504
161
  end: z.ZodString;
505
- }, "strip", z.ZodTypeAny, {
506
- start: string;
507
- end: string;
508
- }, {
509
- start: string;
510
- end: string;
511
- }>, {
512
- start: string;
513
- end: string;
514
- }, {
515
- start: string;
516
- end: string;
517
- }>>;
518
- wed: z.ZodOptional<z.ZodEffects<z.ZodObject<{
162
+ }, z.core.$strip>>;
163
+ wed: z.ZodOptional<z.ZodObject<{
519
164
  start: z.ZodString;
520
165
  end: z.ZodString;
521
- }, "strip", z.ZodTypeAny, {
522
- start: string;
523
- end: string;
524
- }, {
525
- start: string;
526
- end: string;
527
- }>, {
528
- start: string;
529
- end: string;
530
- }, {
531
- start: string;
532
- end: string;
533
- }>>;
534
- thu: z.ZodOptional<z.ZodEffects<z.ZodObject<{
166
+ }, z.core.$strip>>;
167
+ thu: z.ZodOptional<z.ZodObject<{
535
168
  start: z.ZodString;
536
169
  end: z.ZodString;
537
- }, "strip", z.ZodTypeAny, {
538
- start: string;
539
- end: string;
540
- }, {
541
- start: string;
542
- end: string;
543
- }>, {
544
- start: string;
545
- end: string;
546
- }, {
547
- start: string;
548
- end: string;
549
- }>>;
550
- fri: z.ZodOptional<z.ZodEffects<z.ZodObject<{
170
+ }, z.core.$strip>>;
171
+ fri: z.ZodOptional<z.ZodObject<{
551
172
  start: z.ZodString;
552
173
  end: z.ZodString;
553
- }, "strip", z.ZodTypeAny, {
554
- start: string;
555
- end: string;
556
- }, {
557
- start: string;
558
- end: string;
559
- }>, {
560
- start: string;
561
- end: string;
562
- }, {
563
- start: string;
564
- end: string;
565
- }>>;
566
- sat: z.ZodOptional<z.ZodEffects<z.ZodObject<{
174
+ }, z.core.$strip>>;
175
+ sat: z.ZodOptional<z.ZodObject<{
567
176
  start: z.ZodString;
568
177
  end: z.ZodString;
569
- }, "strip", z.ZodTypeAny, {
570
- start: string;
571
- end: string;
572
- }, {
573
- start: string;
574
- end: string;
575
- }>, {
576
- start: string;
577
- end: string;
578
- }, {
579
- start: string;
580
- end: string;
581
- }>>;
582
- sun: z.ZodOptional<z.ZodEffects<z.ZodObject<{
178
+ }, z.core.$strip>>;
179
+ sun: z.ZodOptional<z.ZodObject<{
583
180
  start: z.ZodString;
584
181
  end: z.ZodString;
585
- }, "strip", z.ZodTypeAny, {
586
- start: string;
587
- end: string;
588
- }, {
589
- start: string;
590
- end: string;
591
- }>, {
592
- start: string;
593
- end: string;
594
- }, {
595
- start: string;
596
- end: string;
597
- }>>;
598
- }, "strip", z.ZodTypeAny, {
599
- mon?: {
600
- start: string;
601
- end: string;
602
- } | undefined;
603
- tue?: {
604
- start: string;
605
- end: string;
606
- } | undefined;
607
- wed?: {
608
- start: string;
609
- end: string;
610
- } | undefined;
611
- thu?: {
612
- start: string;
613
- end: string;
614
- } | undefined;
615
- fri?: {
616
- start: string;
617
- end: string;
618
- } | undefined;
619
- sat?: {
620
- start: string;
621
- end: string;
622
- } | undefined;
623
- sun?: {
624
- start: string;
625
- end: string;
626
- } | undefined;
627
- }, {
628
- mon?: {
629
- start: string;
630
- end: string;
631
- } | undefined;
632
- tue?: {
633
- start: string;
634
- end: string;
635
- } | undefined;
636
- wed?: {
637
- start: string;
638
- end: string;
639
- } | undefined;
640
- thu?: {
641
- start: string;
642
- end: string;
643
- } | undefined;
644
- fri?: {
645
- start: string;
646
- end: string;
647
- } | undefined;
648
- sat?: {
649
- start: string;
650
- end: string;
651
- } | undefined;
652
- sun?: {
653
- start: string;
654
- end: string;
655
- } | undefined;
656
- }>, {
657
- mon?: {
658
- start: string;
659
- end: string;
660
- } | undefined;
661
- tue?: {
662
- start: string;
663
- end: string;
664
- } | undefined;
665
- wed?: {
666
- start: string;
667
- end: string;
668
- } | undefined;
669
- thu?: {
670
- start: string;
671
- end: string;
672
- } | undefined;
673
- fri?: {
674
- start: string;
675
- end: string;
676
- } | undefined;
677
- sat?: {
678
- start: string;
679
- end: string;
680
- } | undefined;
681
- sun?: {
682
- start: string;
683
- end: string;
684
- } | undefined;
685
- }, {
686
- mon?: {
687
- start: string;
688
- end: string;
689
- } | undefined;
690
- tue?: {
691
- start: string;
692
- end: string;
693
- } | undefined;
694
- wed?: {
695
- start: string;
696
- end: string;
697
- } | undefined;
698
- thu?: {
699
- start: string;
700
- end: string;
701
- } | undefined;
702
- fri?: {
703
- start: string;
704
- end: string;
705
- } | undefined;
706
- sat?: {
707
- start: string;
708
- end: string;
709
- } | undefined;
710
- sun?: {
711
- start: string;
712
- end: string;
713
- } | undefined;
714
- }>>>;
182
+ }, z.core.$strip>>;
183
+ }, z.core.$strip>>>;
715
184
  timezone: z.ZodDefault<z.ZodString>;
716
- }, "strip", z.ZodTypeAny, {
717
- timezone: string;
718
- buffer_before_minutes: number;
719
- buffer_after_minutes: number;
720
- working_hours: {
721
- mon?: {
722
- start: string;
723
- end: string;
724
- } | undefined;
725
- tue?: {
726
- start: string;
727
- end: string;
728
- } | undefined;
729
- wed?: {
730
- start: string;
731
- end: string;
732
- } | undefined;
733
- thu?: {
734
- start: string;
735
- end: string;
736
- } | undefined;
737
- fri?: {
738
- start: string;
739
- end: string;
740
- } | undefined;
741
- sat?: {
742
- start: string;
743
- end: string;
744
- } | undefined;
745
- sun?: {
746
- start: string;
747
- end: string;
748
- } | undefined;
749
- } | null;
750
- }, {
751
- timezone?: string | undefined;
752
- buffer_before_minutes?: number | undefined;
753
- buffer_after_minutes?: number | undefined;
754
- working_hours?: {
755
- mon?: {
756
- start: string;
757
- end: string;
758
- } | undefined;
759
- tue?: {
760
- start: string;
761
- end: string;
762
- } | undefined;
763
- wed?: {
764
- start: string;
765
- end: string;
766
- } | undefined;
767
- thu?: {
768
- start: string;
769
- end: string;
770
- } | undefined;
771
- fri?: {
772
- start: string;
773
- end: string;
774
- } | undefined;
775
- sat?: {
776
- start: string;
777
- end: string;
778
- } | undefined;
779
- sun?: {
780
- start: string;
781
- end: string;
782
- } | undefined;
783
- } | null | undefined;
784
- }>;
785
- declare const AvailabilityQuerySchema: z.ZodEffects<z.ZodObject<{
185
+ }, z.core.$strip>;
186
+ declare const SLOT_DURATIONS: readonly ["15m", "30m", "45m", "1h", "2h"];
187
+ type SlotDuration = (typeof SLOT_DURATIONS)[number];
188
+ declare const AvailabilityQuerySchema: z.ZodPipe<z.ZodObject<{
189
+ include_busy: z.ZodPipe<z.ZodDefault<z.ZodEnum<{
190
+ true: "true";
191
+ false: "false";
192
+ }>>, z.ZodTransform<boolean, "true" | "false">>;
193
+ duration: z.ZodOptional<z.ZodEnum<{
194
+ "15m": "15m";
195
+ "30m": "30m";
196
+ "45m": "45m";
197
+ "1h": "1h";
198
+ "2h": "2h";
199
+ }>>;
200
+ slot_duration: z.ZodOptional<z.ZodEnum<{
201
+ "15m": "15m";
202
+ "30m": "30m";
203
+ "45m": "45m";
204
+ "1h": "1h";
205
+ "2h": "2h";
206
+ }>>;
786
207
  start: z.ZodString;
787
208
  end: z.ZodString;
788
- slot_duration: z.ZodDefault<z.ZodEnum<["15m", "30m", "45m", "1h", "2h"]>>;
789
- include_busy: z.ZodEffects<z.ZodDefault<z.ZodEnum<["true", "false"]>>, boolean, "true" | "false" | undefined>;
790
- }, "strip", z.ZodTypeAny, {
791
- start: string;
792
- end: string;
793
- slot_duration: "15m" | "30m" | "45m" | "1h" | "2h";
209
+ }, z.core.$strip>, z.ZodTransform<Omit<{
794
210
  include_busy: boolean;
795
- }, {
796
211
  start: string;
797
212
  end: string;
213
+ duration?: "15m" | "30m" | "45m" | "1h" | "2h" | undefined;
798
214
  slot_duration?: "15m" | "30m" | "45m" | "1h" | "2h" | undefined;
799
- include_busy?: "true" | "false" | undefined;
800
- }>, {
801
- start: string;
802
- end: string;
803
- slot_duration: "15m" | "30m" | "45m" | "1h" | "2h";
804
- include_busy: boolean;
215
+ }, "duration"> & {
216
+ slot_duration: SlotDuration;
805
217
  }, {
218
+ include_busy: boolean;
806
219
  start: string;
807
220
  end: string;
221
+ duration?: "15m" | "30m" | "45m" | "1h" | "2h" | undefined;
808
222
  slot_duration?: "15m" | "30m" | "45m" | "1h" | "2h" | undefined;
809
- include_busy?: "true" | "false" | undefined;
810
- }>;
811
- declare const CrossAgentAvailabilityQuerySchema: z.ZodEffects<z.ZodObject<{
812
- agents: z.ZodEffects<z.ZodString, string[], string>;
223
+ }>>;
224
+ declare const CrossAgentAvailabilityQuerySchema: z.ZodPipe<z.ZodObject<{
225
+ calendars: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>>;
226
+ include_busy: z.ZodPipe<z.ZodDefault<z.ZodEnum<{
227
+ true: "true";
228
+ false: "false";
229
+ }>>, z.ZodTransform<boolean, "true" | "false">>;
230
+ duration: z.ZodOptional<z.ZodEnum<{
231
+ "15m": "15m";
232
+ "30m": "30m";
233
+ "45m": "45m";
234
+ "1h": "1h";
235
+ "2h": "2h";
236
+ }>>;
237
+ slot_duration: z.ZodOptional<z.ZodEnum<{
238
+ "15m": "15m";
239
+ "30m": "30m";
240
+ "45m": "45m";
241
+ "1h": "1h";
242
+ "2h": "2h";
243
+ }>>;
244
+ agents: z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>;
813
245
  start: z.ZodString;
814
246
  end: z.ZodString;
815
- slot_duration: z.ZodDefault<z.ZodEnum<["15m", "30m", "45m", "1h", "2h"]>>;
816
- calendars: z.ZodOptional<z.ZodEffects<z.ZodString, string[], string>>;
817
- include_busy: z.ZodEffects<z.ZodDefault<z.ZodEnum<["true", "false"]>>, boolean, "true" | "false" | undefined>;
818
- }, "strip", z.ZodTypeAny, {
819
- start: string;
820
- end: string;
821
- slot_duration: "15m" | "30m" | "45m" | "1h" | "2h";
247
+ }, z.core.$strip>, z.ZodTransform<Omit<{
822
248
  include_busy: boolean;
823
249
  agents: string[];
824
- calendars?: string[] | undefined;
825
- }, {
826
250
  start: string;
827
251
  end: string;
828
- agents: string;
252
+ calendars?: string[] | undefined;
253
+ duration?: "15m" | "30m" | "45m" | "1h" | "2h" | undefined;
829
254
  slot_duration?: "15m" | "30m" | "45m" | "1h" | "2h" | undefined;
830
- include_busy?: "true" | "false" | undefined;
831
- calendars?: string | undefined;
832
- }>, {
833
- start: string;
834
- end: string;
835
- slot_duration: "15m" | "30m" | "45m" | "1h" | "2h";
255
+ }, "duration"> & {
256
+ slot_duration: SlotDuration;
257
+ }, {
836
258
  include_busy: boolean;
837
259
  agents: string[];
838
- calendars?: string[] | undefined;
839
- }, {
840
260
  start: string;
841
261
  end: string;
842
- agents: string;
262
+ calendars?: string[] | undefined;
263
+ duration?: "15m" | "30m" | "45m" | "1h" | "2h" | undefined;
843
264
  slot_duration?: "15m" | "30m" | "45m" | "1h" | "2h" | undefined;
844
- include_busy?: "true" | "false" | undefined;
845
- calendars?: string | undefined;
846
- }>;
847
- declare const WEBHOOK_EVENT_TYPES: readonly ["agent.created", "agent.updated", "event.created", "event.updated", "event.deleted", "event.started", "event.ended", "event.hold_created", "event.hold_expired", "event.hold_released", "event.hold_confirmed", "proposal.created", "proposal.responded", "proposal.confirmed", "proposal.expired", "proposal.cancelled", "webhook.deactivated"];
265
+ }>>;
266
+ declare const WEBHOOK_EVENT_TYPES: readonly ["agent.created", "agent.updated", "event.created", "event.updated", "event.deleted", "event.started", "event.ended", "event.reminder", "event.hold_created", "event.hold_expired", "event.hold_released", "event.hold_confirmed", "proposal.created", "proposal.responded", "proposal.confirmed", "proposal.expired", "proposal.cancelled", "webhook.deactivated"];
848
267
  type WebhookEventType = (typeof WEBHOOK_EVENT_TYPES)[number];
849
268
  declare const CreateWebhookSchema: z.ZodObject<{
850
269
  url: z.ZodString;
851
- events: z.ZodArray<z.ZodEnum<["agent.created", "agent.updated", "event.created", "event.updated", "event.deleted", "event.started", "event.ended", "event.hold_created", "event.hold_expired", "event.hold_released", "event.hold_confirmed", "proposal.created", "proposal.responded", "proposal.confirmed", "proposal.expired", "proposal.cancelled", "webhook.deactivated"]>, "many">;
852
- }, "strip", z.ZodTypeAny, {
853
- url: string;
854
- events: ("agent.created" | "agent.updated" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.hold_created" | "event.hold_expired" | "event.hold_released" | "event.hold_confirmed" | "proposal.created" | "proposal.responded" | "proposal.confirmed" | "proposal.expired" | "proposal.cancelled" | "webhook.deactivated")[];
855
- }, {
856
- url: string;
857
- events: ("agent.created" | "agent.updated" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.hold_created" | "event.hold_expired" | "event.hold_released" | "event.hold_confirmed" | "proposal.created" | "proposal.responded" | "proposal.confirmed" | "proposal.expired" | "proposal.cancelled" | "webhook.deactivated")[];
858
- }>;
270
+ events: z.ZodArray<z.ZodEnum<{
271
+ "agent.created": "agent.created";
272
+ "agent.updated": "agent.updated";
273
+ "event.created": "event.created";
274
+ "event.updated": "event.updated";
275
+ "event.deleted": "event.deleted";
276
+ "event.started": "event.started";
277
+ "event.ended": "event.ended";
278
+ "event.reminder": "event.reminder";
279
+ "event.hold_created": "event.hold_created";
280
+ "event.hold_expired": "event.hold_expired";
281
+ "event.hold_released": "event.hold_released";
282
+ "event.hold_confirmed": "event.hold_confirmed";
283
+ "proposal.created": "proposal.created";
284
+ "proposal.responded": "proposal.responded";
285
+ "proposal.confirmed": "proposal.confirmed";
286
+ "proposal.expired": "proposal.expired";
287
+ "proposal.cancelled": "proposal.cancelled";
288
+ "webhook.deactivated": "webhook.deactivated";
289
+ }>>;
290
+ }, z.core.$strip>;
859
291
  declare const UpdateWebhookSchema: z.ZodObject<{
860
292
  url: z.ZodOptional<z.ZodString>;
861
- events: z.ZodOptional<z.ZodArray<z.ZodEnum<["agent.created", "agent.updated", "event.created", "event.updated", "event.deleted", "event.started", "event.ended", "event.hold_created", "event.hold_expired", "event.hold_released", "event.hold_confirmed", "proposal.created", "proposal.responded", "proposal.confirmed", "proposal.expired", "proposal.cancelled", "webhook.deactivated"]>, "many">>;
293
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
294
+ "agent.created": "agent.created";
295
+ "agent.updated": "agent.updated";
296
+ "event.created": "event.created";
297
+ "event.updated": "event.updated";
298
+ "event.deleted": "event.deleted";
299
+ "event.started": "event.started";
300
+ "event.ended": "event.ended";
301
+ "event.reminder": "event.reminder";
302
+ "event.hold_created": "event.hold_created";
303
+ "event.hold_expired": "event.hold_expired";
304
+ "event.hold_released": "event.hold_released";
305
+ "event.hold_confirmed": "event.hold_confirmed";
306
+ "proposal.created": "proposal.created";
307
+ "proposal.responded": "proposal.responded";
308
+ "proposal.confirmed": "proposal.confirmed";
309
+ "proposal.expired": "proposal.expired";
310
+ "proposal.cancelled": "proposal.cancelled";
311
+ "webhook.deactivated": "webhook.deactivated";
312
+ }>>>;
862
313
  active: z.ZodOptional<z.ZodBoolean>;
863
- }, "strip", z.ZodTypeAny, {
864
- url?: string | undefined;
865
- active?: boolean | undefined;
866
- events?: ("agent.created" | "agent.updated" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.hold_created" | "event.hold_expired" | "event.hold_released" | "event.hold_confirmed" | "proposal.created" | "proposal.responded" | "proposal.confirmed" | "proposal.expired" | "proposal.cancelled" | "webhook.deactivated")[] | undefined;
867
- }, {
868
- url?: string | undefined;
869
- active?: boolean | undefined;
870
- events?: ("agent.created" | "agent.updated" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.hold_created" | "event.hold_expired" | "event.hold_released" | "event.hold_confirmed" | "proposal.created" | "proposal.responded" | "proposal.confirmed" | "proposal.expired" | "proposal.cancelled" | "webhook.deactivated")[] | undefined;
871
- }>;
314
+ }, z.core.$strip>;
872
315
  declare const ListWebhooksQuerySchema: z.ZodObject<{
873
- limit: z.ZodDefault<z.ZodNumber>;
874
- offset: z.ZodDefault<z.ZodNumber>;
875
- }, "strip", z.ZodTypeAny, {
876
- limit: number;
877
- offset: number;
878
- }, {
879
- limit?: number | undefined;
880
- offset?: number | undefined;
881
- }>;
316
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
317
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
318
+ }, z.core.$strip>;
882
319
  declare const WEBHOOK_DELIVERY_STATUSES: readonly ["pending", "delivered", "failed"];
883
- declare const WebhookDeliveryStatusSchema: z.ZodEnum<["pending", "delivered", "failed"]>;
884
- declare const ListDeliveriesQuerySchema: z.ZodObject<{
885
- limit: z.ZodDefault<z.ZodNumber>;
886
- offset: z.ZodDefault<z.ZodNumber>;
887
- status: z.ZodOptional<z.ZodEnum<["pending", "delivered", "failed"]>>;
888
- include_payload: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean, "true" | "false" | undefined>;
889
- }, "strip", z.ZodTypeAny, {
890
- limit: number;
891
- offset: number;
892
- include_payload: boolean;
893
- status?: "pending" | "delivered" | "failed" | undefined;
894
- }, {
895
- status?: "pending" | "delivered" | "failed" | undefined;
896
- limit?: number | undefined;
897
- offset?: number | undefined;
898
- include_payload?: "true" | "false" | undefined;
320
+ declare const WebhookDeliveryStatusSchema: z.ZodEnum<{
321
+ pending: "pending";
322
+ delivered: "delivered";
323
+ failed: "failed";
899
324
  }>;
325
+ declare const ListDeliveriesQuerySchema: z.ZodObject<{
326
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
327
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
328
+ status: z.ZodOptional<z.ZodEnum<{
329
+ pending: "pending";
330
+ delivered: "delivered";
331
+ failed: "failed";
332
+ }>>;
333
+ include_payload: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
334
+ true: "true";
335
+ false: "false";
336
+ }>>, z.ZodTransform<boolean, "true" | "false" | undefined>>;
337
+ }, z.core.$strip>;
900
338
  declare const CreateICalSubscriptionSchema: z.ZodObject<{
901
339
  calendar_id: z.ZodString;
902
340
  url: z.ZodString;
903
341
  label: z.ZodOptional<z.ZodString>;
904
- }, "strip", z.ZodTypeAny, {
905
- calendar_id: string;
906
- url: string;
907
- label?: string | undefined;
908
- }, {
909
- calendar_id: string;
910
- url: string;
911
- label?: string | undefined;
912
- }>;
913
- declare const UpdateICalSubscriptionSchema: z.ZodEffects<z.ZodObject<{
342
+ }, z.core.$strip>;
343
+ declare const UpdateICalSubscriptionSchema: z.ZodObject<{
914
344
  label: z.ZodOptional<z.ZodString>;
915
345
  url: z.ZodOptional<z.ZodString>;
916
- }, "strip", z.ZodTypeAny, {
917
- url?: string | undefined;
918
- label?: string | undefined;
919
- }, {
920
- url?: string | undefined;
921
- label?: string | undefined;
922
- }>, {
923
- url?: string | undefined;
924
- label?: string | undefined;
925
- }, {
926
- url?: string | undefined;
927
- label?: string | undefined;
928
- }>;
346
+ }, z.core.$strip>;
929
347
  declare const ListICalSubscriptionsQuerySchema: z.ZodObject<{
930
- status: z.ZodOptional<z.ZodEnum<["active", "error", "paused"]>>;
931
- limit: z.ZodDefault<z.ZodNumber>;
932
- offset: z.ZodDefault<z.ZodNumber>;
933
- }, "strip", z.ZodTypeAny, {
934
- limit: number;
935
- offset: number;
936
- status?: "error" | "active" | "paused" | undefined;
937
- }, {
938
- status?: "error" | "active" | "paused" | undefined;
939
- limit?: number | undefined;
940
- offset?: number | undefined;
941
- }>;
348
+ status: z.ZodOptional<z.ZodEnum<{
349
+ error: "error";
350
+ active: "active";
351
+ paused: "paused";
352
+ }>>;
353
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
354
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
355
+ }, z.core.$strip>;
942
356
  declare const CreateProposalSchema: z.ZodObject<{
943
357
  title: z.ZodString;
944
358
  description: z.ZodOptional<z.ZodString>;
945
359
  organizer_agent_id: z.ZodString;
946
- participant_agent_ids: z.ZodArray<z.ZodString, "many">;
360
+ participant_agent_ids: z.ZodArray<z.ZodString>;
947
361
  calendar_id: z.ZodString;
948
362
  slots: z.ZodArray<z.ZodObject<{
949
363
  start_time: z.ZodString;
950
364
  end_time: z.ZodString;
951
365
  weight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
952
366
  calendar_id: z.ZodOptional<z.ZodString>;
953
- }, "strip", z.ZodTypeAny, {
954
- start_time: string;
955
- end_time: string;
956
- calendar_id?: string | undefined;
957
- weight?: number | undefined;
958
- }, {
959
- start_time: string;
960
- end_time: string;
961
- calendar_id?: string | undefined;
962
- weight?: number | undefined;
963
- }>, "many">;
367
+ }, z.core.$strip>>;
964
368
  expires_at: z.ZodOptional<z.ZodString>;
965
- metadata: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>>;
966
- }, "strip", z.ZodTypeAny, {
967
- calendar_id: string;
968
- title: string;
969
- metadata: Record<string, unknown>;
970
- organizer_agent_id: string;
971
- participant_agent_ids: string[];
972
- slots: {
973
- start_time: string;
974
- end_time: string;
975
- calendar_id?: string | undefined;
976
- weight?: number | undefined;
977
- }[];
978
- description?: string | undefined;
979
- expires_at?: string | undefined;
980
- }, {
981
- calendar_id: string;
982
- title: string;
983
- organizer_agent_id: string;
984
- participant_agent_ids: string[];
985
- slots: {
986
- start_time: string;
987
- end_time: string;
988
- calendar_id?: string | undefined;
989
- weight?: number | undefined;
990
- }[];
991
- description?: string | undefined;
992
- metadata?: Record<string, unknown> | undefined;
993
- expires_at?: string | undefined;
994
- }>;
995
- declare const RespondToProposalSchema: z.ZodEffects<z.ZodObject<{
369
+ metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
370
+ }, z.core.$strip>;
371
+ declare const RespondToProposalSchema: z.ZodObject<{
996
372
  agent_id: z.ZodString;
997
- response: z.ZodEnum<["accept", "decline", "counter"]>;
373
+ response: z.ZodEnum<{
374
+ accept: "accept";
375
+ decline: "decline";
376
+ counter: "counter";
377
+ }>;
998
378
  selected_slot_id: z.ZodOptional<z.ZodString>;
999
379
  counter_slots: z.ZodOptional<z.ZodArray<z.ZodObject<{
1000
380
  start_time: z.ZodString;
1001
381
  end_time: z.ZodString;
1002
382
  weight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1003
383
  calendar_id: z.ZodOptional<z.ZodString>;
1004
- }, "strip", z.ZodTypeAny, {
1005
- start_time: string;
1006
- end_time: string;
1007
- calendar_id?: string | undefined;
1008
- weight?: number | undefined;
1009
- }, {
1010
- start_time: string;
1011
- end_time: string;
1012
- calendar_id?: string | undefined;
1013
- weight?: number | undefined;
1014
- }>, "many">>;
384
+ }, z.core.$strip>>>;
1015
385
  message: z.ZodOptional<z.ZodString>;
1016
- }, "strip", z.ZodTypeAny, {
1017
- agent_id: string;
1018
- response: "accept" | "decline" | "counter";
1019
- message?: string | undefined;
1020
- selected_slot_id?: string | undefined;
1021
- counter_slots?: {
1022
- start_time: string;
1023
- end_time: string;
1024
- calendar_id?: string | undefined;
1025
- weight?: number | undefined;
1026
- }[] | undefined;
1027
- }, {
1028
- agent_id: string;
1029
- response: "accept" | "decline" | "counter";
1030
- message?: string | undefined;
1031
- selected_slot_id?: string | undefined;
1032
- counter_slots?: {
1033
- start_time: string;
1034
- end_time: string;
1035
- calendar_id?: string | undefined;
1036
- weight?: number | undefined;
1037
- }[] | undefined;
1038
- }>, {
1039
- agent_id: string;
1040
- response: "accept" | "decline" | "counter";
1041
- message?: string | undefined;
1042
- selected_slot_id?: string | undefined;
1043
- counter_slots?: {
1044
- start_time: string;
1045
- end_time: string;
1046
- calendar_id?: string | undefined;
1047
- weight?: number | undefined;
1048
- }[] | undefined;
1049
- }, {
1050
- agent_id: string;
1051
- response: "accept" | "decline" | "counter";
1052
- message?: string | undefined;
1053
- selected_slot_id?: string | undefined;
1054
- counter_slots?: {
1055
- start_time: string;
1056
- end_time: string;
1057
- calendar_id?: string | undefined;
1058
- weight?: number | undefined;
1059
- }[] | undefined;
1060
- }>;
1061
- type CreateAgentInput = z.infer<typeof CreateAgentSchema>;
1062
- type UpdateAgentInput = z.infer<typeof UpdateAgentSchema>;
386
+ }, z.core.$strip>;
387
+ type CreateAgentInput = z.input<typeof CreateAgentSchema>;
388
+ type UpdateAgentInput = z.input<typeof UpdateAgentSchema>;
1063
389
  type ListAgentsQuery = z.infer<typeof ListAgentsQuerySchema>;
1064
- type CreateCalendarInput = z.infer<typeof CreateCalendarSchema>;
1065
- type UpdateCalendarInput = z.infer<typeof UpdateCalendarSchema>;
390
+ type CreateCalendarInput = z.input<typeof CreateCalendarSchema>;
391
+ type UpdateCalendarInput = z.input<typeof UpdateCalendarSchema>;
1066
392
  type ListCalendarsQuery = z.infer<typeof ListCalendarsQuerySchema>;
1067
- type CreateEventInput = z.infer<typeof CreateEventSchema>;
1068
- type UpdateEventInput = z.infer<typeof UpdateEventSchema>;
393
+ type CreateEventInput = z.input<typeof CreateEventSchema>;
394
+ type UpdateEventInput = z.input<typeof UpdateEventSchema>;
1069
395
  type ListEventsQuery = z.infer<typeof ListEventsQuerySchema>;
1070
396
  type WorkingHours = z.infer<typeof WorkingHoursSchema>;
1071
397
  type UpdateAvailabilityRules = z.infer<typeof UpdateAvailabilityRulesSchema>;
1072
398
  type AvailabilityQuery = z.infer<typeof AvailabilityQuerySchema>;
1073
399
  type CrossAgentAvailabilityQuery = z.infer<typeof CrossAgentAvailabilityQuerySchema>;
1074
- type CreateWebhookInput = z.infer<typeof CreateWebhookSchema>;
1075
- type UpdateWebhookInput = z.infer<typeof UpdateWebhookSchema>;
400
+ type CreateWebhookInput = z.input<typeof CreateWebhookSchema>;
401
+ type UpdateWebhookInput = z.input<typeof UpdateWebhookSchema>;
1076
402
  type ListWebhooksQuery = z.infer<typeof ListWebhooksQuerySchema>;
1077
403
  type ListDeliveriesQuery = z.infer<typeof ListDeliveriesQuerySchema>;
1078
404
  type WebhookDeliveryStatus = z.infer<typeof WebhookDeliveryStatusSchema>;
1079
- type CreateICalSubscriptionInput = z.infer<typeof CreateICalSubscriptionSchema>;
1080
- type UpdateICalSubscriptionInput = z.infer<typeof UpdateICalSubscriptionSchema>;
405
+ type CreateICalSubscriptionInput = z.input<typeof CreateICalSubscriptionSchema>;
406
+ type UpdateICalSubscriptionInput = z.input<typeof UpdateICalSubscriptionSchema>;
1081
407
  type ListICalSubscriptionsQuery = z.infer<typeof ListICalSubscriptionsQuerySchema>;
1082
- type CreateProposalInput = z.infer<typeof CreateProposalSchema>;
1083
- type RespondToProposalInput = z.infer<typeof RespondToProposalSchema>;
408
+ type CreateProposalInput = z.input<typeof CreateProposalSchema>;
409
+ type RespondToProposalInput = z.input<typeof RespondToProposalSchema>;
1084
410
 
1085
411
  /**
1086
412
  * Webhook event payload schemas and discriminator.
@@ -1092,352 +418,160 @@ type RespondToProposalInput = z.infer<typeof RespondToProposalSchema>;
1092
418
  */
1093
419
 
1094
420
  declare const AgentCreatedPayloadSchema: z.ZodObject<{
1095
- agent: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1096
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1097
- agent: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1098
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1099
- agent: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1100
- }, z.ZodTypeAny, "passthrough">>;
421
+ agent: z.ZodObject<{}, z.core.$loose>;
422
+ }, z.core.$loose>;
1101
423
  declare const AgentUpdatedPayloadSchema: z.ZodObject<{
1102
- agent: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1103
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1104
- agent: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1105
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1106
- agent: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1107
- }, z.ZodTypeAny, "passthrough">>;
424
+ agent: z.ZodObject<{}, z.core.$loose>;
425
+ }, z.core.$loose>;
1108
426
  declare const EventCreatedPayloadSchema: z.ZodObject<{
1109
- event: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1110
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1111
- event: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1112
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1113
- event: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1114
- }, z.ZodTypeAny, "passthrough">>;
427
+ event: z.ZodObject<{}, z.core.$loose>;
428
+ }, z.core.$loose>;
1115
429
  declare const EventUpdatedPayloadSchema: z.ZodObject<{
1116
- event: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1117
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1118
- event: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1119
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1120
- event: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1121
- }, z.ZodTypeAny, "passthrough">>;
430
+ event: z.ZodObject<{}, z.core.$loose>;
431
+ }, z.core.$loose>;
1122
432
  declare const EventDeletedPayloadSchema: z.ZodObject<{
1123
433
  event_id: z.ZodString;
1124
434
  calendar_id: z.ZodString;
1125
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1126
- event_id: z.ZodString;
1127
- calendar_id: z.ZodString;
1128
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1129
- event_id: z.ZodString;
1130
- calendar_id: z.ZodString;
1131
- }, z.ZodTypeAny, "passthrough">>;
435
+ }, z.core.$loose>;
1132
436
  declare const EventHoldCreatedPayloadSchema: z.ZodObject<{
1133
437
  event_id: z.ZodString;
1134
438
  calendar_id: z.ZodString;
1135
439
  title: z.ZodString;
1136
440
  start_time: z.ZodString;
1137
441
  end_time: z.ZodString;
1138
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1139
- event_id: z.ZodString;
1140
- calendar_id: z.ZodString;
1141
- title: z.ZodString;
1142
- start_time: z.ZodString;
1143
- end_time: z.ZodString;
1144
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1145
- event_id: z.ZodString;
1146
- calendar_id: z.ZodString;
1147
- title: z.ZodString;
1148
- start_time: z.ZodString;
1149
- end_time: z.ZodString;
1150
- }, z.ZodTypeAny, "passthrough">>;
442
+ }, z.core.$loose>;
1151
443
  declare const EventStartedPayloadSchema: z.ZodObject<{
1152
444
  event_id: z.ZodString;
1153
445
  calendar_id: z.ZodString;
1154
446
  title: z.ZodString;
1155
447
  start_time: z.ZodString;
1156
448
  end_time: z.ZodString;
1157
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1158
- event_id: z.ZodString;
1159
- calendar_id: z.ZodString;
1160
- title: z.ZodString;
1161
- start_time: z.ZodString;
1162
- end_time: z.ZodString;
1163
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1164
- event_id: z.ZodString;
1165
- calendar_id: z.ZodString;
1166
- title: z.ZodString;
1167
- start_time: z.ZodString;
1168
- end_time: z.ZodString;
1169
- }, z.ZodTypeAny, "passthrough">>;
449
+ }, z.core.$loose>;
1170
450
  declare const EventEndedPayloadSchema: z.ZodObject<{
1171
451
  event_id: z.ZodString;
1172
452
  calendar_id: z.ZodString;
1173
453
  title: z.ZodString;
1174
454
  start_time: z.ZodString;
1175
455
  end_time: z.ZodString;
1176
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
456
+ }, z.core.$loose>;
457
+ declare const EventReminderPayloadSchema: z.ZodObject<{
1177
458
  event_id: z.ZodString;
1178
459
  calendar_id: z.ZodString;
1179
460
  title: z.ZodString;
1180
461
  start_time: z.ZodString;
1181
462
  end_time: z.ZodString;
1182
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1183
- event_id: z.ZodString;
1184
- calendar_id: z.ZodString;
1185
- title: z.ZodString;
1186
- start_time: z.ZodString;
1187
- end_time: z.ZodString;
1188
- }, z.ZodTypeAny, "passthrough">>;
463
+ reminder_minutes: z.ZodNumber;
464
+ }, z.core.$loose>;
1189
465
  declare const EventHoldExpiredPayloadSchema: z.ZodObject<{
1190
466
  event_id: z.ZodString;
1191
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1192
- event_id: z.ZodString;
1193
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1194
- event_id: z.ZodString;
1195
- }, z.ZodTypeAny, "passthrough">>;
467
+ }, z.core.$loose>;
1196
468
  declare const EventHoldReleasedPayloadSchema: z.ZodObject<{
1197
469
  event_id: z.ZodString;
1198
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1199
- event_id: z.ZodString;
1200
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1201
- event_id: z.ZodString;
1202
- }, z.ZodTypeAny, "passthrough">>;
470
+ }, z.core.$loose>;
1203
471
  declare const EventHoldConfirmedPayloadSchema: z.ZodObject<{
1204
472
  event_id: z.ZodString;
1205
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1206
- event_id: z.ZodString;
1207
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1208
- event_id: z.ZodString;
1209
- }, z.ZodTypeAny, "passthrough">>;
473
+ }, z.core.$loose>;
1210
474
  declare const ProposalCreatedPayloadSchema: z.ZodObject<{
1211
- proposal: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1212
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1213
- proposal: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1214
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1215
- proposal: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1216
- }, z.ZodTypeAny, "passthrough">>;
475
+ proposal: z.ZodObject<{}, z.core.$loose>;
476
+ }, z.core.$loose>;
1217
477
  declare const ProposalRespondedPayloadSchema: z.ZodObject<{
1218
478
  proposal_id: z.ZodString;
1219
479
  agent_id: z.ZodString;
1220
480
  response: z.ZodString;
1221
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1222
- proposal_id: z.ZodString;
1223
- agent_id: z.ZodString;
1224
- response: z.ZodString;
1225
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1226
- proposal_id: z.ZodString;
1227
- agent_id: z.ZodString;
1228
- response: z.ZodString;
1229
- }, z.ZodTypeAny, "passthrough">>;
481
+ }, z.core.$loose>;
1230
482
  declare const ProposalConfirmedPayloadSchema: z.ZodObject<{
1231
483
  proposal_id: z.ZodString;
1232
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1233
- proposal_id: z.ZodString;
1234
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1235
- proposal_id: z.ZodString;
1236
- }, z.ZodTypeAny, "passthrough">>;
484
+ }, z.core.$loose>;
1237
485
  declare const ProposalCancelledPayloadSchema: z.ZodObject<{
1238
486
  proposal_id: z.ZodString;
1239
487
  reason: z.ZodOptional<z.ZodString>;
1240
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1241
- proposal_id: z.ZodString;
1242
- reason: z.ZodOptional<z.ZodString>;
1243
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1244
- proposal_id: z.ZodString;
1245
- reason: z.ZodOptional<z.ZodString>;
1246
- }, z.ZodTypeAny, "passthrough">>;
488
+ }, z.core.$loose>;
1247
489
  declare const ProposalExpiredPayloadSchema: z.ZodObject<{
1248
490
  proposal_id: z.ZodString;
1249
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1250
- proposal_id: z.ZodString;
1251
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1252
- proposal_id: z.ZodString;
1253
- }, z.ZodTypeAny, "passthrough">>;
491
+ }, z.core.$loose>;
1254
492
  declare const WebhookDeactivatedPayloadSchema: z.ZodObject<{
1255
493
  webhook_id: z.ZodString;
1256
494
  url: z.ZodString;
1257
495
  reason: z.ZodString;
1258
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1259
- webhook_id: z.ZodString;
1260
- url: z.ZodString;
1261
- reason: z.ZodString;
1262
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1263
- webhook_id: z.ZodString;
1264
- url: z.ZodString;
1265
- reason: z.ZodString;
1266
- }, z.ZodTypeAny, "passthrough">>;
496
+ }, z.core.$loose>;
1267
497
  declare const PAYLOAD_SCHEMAS: {
1268
498
  'agent.created': z.ZodObject<{
1269
- agent: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1270
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1271
- agent: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1272
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1273
- agent: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1274
- }, z.ZodTypeAny, "passthrough">>;
499
+ agent: z.ZodObject<{}, z.core.$loose>;
500
+ }, z.core.$loose>;
1275
501
  'agent.updated': z.ZodObject<{
1276
- agent: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1277
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1278
- agent: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1279
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1280
- agent: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1281
- }, z.ZodTypeAny, "passthrough">>;
502
+ agent: z.ZodObject<{}, z.core.$loose>;
503
+ }, z.core.$loose>;
1282
504
  'event.created': z.ZodObject<{
1283
- event: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1284
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1285
- event: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1286
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1287
- event: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1288
- }, z.ZodTypeAny, "passthrough">>;
505
+ event: z.ZodObject<{}, z.core.$loose>;
506
+ }, z.core.$loose>;
1289
507
  'event.updated': z.ZodObject<{
1290
- event: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1291
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1292
- event: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1293
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1294
- event: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1295
- }, z.ZodTypeAny, "passthrough">>;
508
+ event: z.ZodObject<{}, z.core.$loose>;
509
+ }, z.core.$loose>;
1296
510
  'event.deleted': z.ZodObject<{
1297
511
  event_id: z.ZodString;
1298
512
  calendar_id: z.ZodString;
1299
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1300
- event_id: z.ZodString;
1301
- calendar_id: z.ZodString;
1302
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1303
- event_id: z.ZodString;
1304
- calendar_id: z.ZodString;
1305
- }, z.ZodTypeAny, "passthrough">>;
513
+ }, z.core.$loose>;
1306
514
  'event.started': z.ZodObject<{
1307
515
  event_id: z.ZodString;
1308
516
  calendar_id: z.ZodString;
1309
517
  title: z.ZodString;
1310
518
  start_time: z.ZodString;
1311
519
  end_time: z.ZodString;
1312
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1313
- event_id: z.ZodString;
1314
- calendar_id: z.ZodString;
1315
- title: z.ZodString;
1316
- start_time: z.ZodString;
1317
- end_time: z.ZodString;
1318
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1319
- event_id: z.ZodString;
1320
- calendar_id: z.ZodString;
1321
- title: z.ZodString;
1322
- start_time: z.ZodString;
1323
- end_time: z.ZodString;
1324
- }, z.ZodTypeAny, "passthrough">>;
520
+ }, z.core.$loose>;
1325
521
  'event.ended': z.ZodObject<{
1326
522
  event_id: z.ZodString;
1327
523
  calendar_id: z.ZodString;
1328
524
  title: z.ZodString;
1329
525
  start_time: z.ZodString;
1330
526
  end_time: z.ZodString;
1331
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1332
- event_id: z.ZodString;
1333
- calendar_id: z.ZodString;
1334
- title: z.ZodString;
1335
- start_time: z.ZodString;
1336
- end_time: z.ZodString;
1337
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
527
+ }, z.core.$loose>;
528
+ 'event.reminder': z.ZodObject<{
1338
529
  event_id: z.ZodString;
1339
530
  calendar_id: z.ZodString;
1340
531
  title: z.ZodString;
1341
532
  start_time: z.ZodString;
1342
533
  end_time: z.ZodString;
1343
- }, z.ZodTypeAny, "passthrough">>;
534
+ reminder_minutes: z.ZodNumber;
535
+ }, z.core.$loose>;
1344
536
  'event.hold_created': z.ZodObject<{
1345
537
  event_id: z.ZodString;
1346
538
  calendar_id: z.ZodString;
1347
539
  title: z.ZodString;
1348
540
  start_time: z.ZodString;
1349
541
  end_time: z.ZodString;
1350
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1351
- event_id: z.ZodString;
1352
- calendar_id: z.ZodString;
1353
- title: z.ZodString;
1354
- start_time: z.ZodString;
1355
- end_time: z.ZodString;
1356
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1357
- event_id: z.ZodString;
1358
- calendar_id: z.ZodString;
1359
- title: z.ZodString;
1360
- start_time: z.ZodString;
1361
- end_time: z.ZodString;
1362
- }, z.ZodTypeAny, "passthrough">>;
542
+ }, z.core.$loose>;
1363
543
  'event.hold_expired': z.ZodObject<{
1364
544
  event_id: z.ZodString;
1365
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1366
- event_id: z.ZodString;
1367
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1368
- event_id: z.ZodString;
1369
- }, z.ZodTypeAny, "passthrough">>;
545
+ }, z.core.$loose>;
1370
546
  'event.hold_released': z.ZodObject<{
1371
547
  event_id: z.ZodString;
1372
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1373
- event_id: z.ZodString;
1374
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1375
- event_id: z.ZodString;
1376
- }, z.ZodTypeAny, "passthrough">>;
548
+ }, z.core.$loose>;
1377
549
  'event.hold_confirmed': z.ZodObject<{
1378
550
  event_id: z.ZodString;
1379
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1380
- event_id: z.ZodString;
1381
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1382
- event_id: z.ZodString;
1383
- }, z.ZodTypeAny, "passthrough">>;
551
+ }, z.core.$loose>;
1384
552
  'proposal.created': z.ZodObject<{
1385
- proposal: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1386
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1387
- proposal: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1388
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1389
- proposal: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1390
- }, z.ZodTypeAny, "passthrough">>;
553
+ proposal: z.ZodObject<{}, z.core.$loose>;
554
+ }, z.core.$loose>;
1391
555
  'proposal.responded': z.ZodObject<{
1392
556
  proposal_id: z.ZodString;
1393
557
  agent_id: z.ZodString;
1394
558
  response: z.ZodString;
1395
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1396
- proposal_id: z.ZodString;
1397
- agent_id: z.ZodString;
1398
- response: z.ZodString;
1399
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1400
- proposal_id: z.ZodString;
1401
- agent_id: z.ZodString;
1402
- response: z.ZodString;
1403
- }, z.ZodTypeAny, "passthrough">>;
559
+ }, z.core.$loose>;
1404
560
  'proposal.confirmed': z.ZodObject<{
1405
561
  proposal_id: z.ZodString;
1406
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1407
- proposal_id: z.ZodString;
1408
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1409
- proposal_id: z.ZodString;
1410
- }, z.ZodTypeAny, "passthrough">>;
562
+ }, z.core.$loose>;
1411
563
  'proposal.expired': z.ZodObject<{
1412
564
  proposal_id: z.ZodString;
1413
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1414
- proposal_id: z.ZodString;
1415
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1416
- proposal_id: z.ZodString;
1417
- }, z.ZodTypeAny, "passthrough">>;
565
+ }, z.core.$loose>;
1418
566
  'proposal.cancelled': z.ZodObject<{
1419
567
  proposal_id: z.ZodString;
1420
568
  reason: z.ZodOptional<z.ZodString>;
1421
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1422
- proposal_id: z.ZodString;
1423
- reason: z.ZodOptional<z.ZodString>;
1424
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1425
- proposal_id: z.ZodString;
1426
- reason: z.ZodOptional<z.ZodString>;
1427
- }, z.ZodTypeAny, "passthrough">>;
569
+ }, z.core.$loose>;
1428
570
  'webhook.deactivated': z.ZodObject<{
1429
571
  webhook_id: z.ZodString;
1430
572
  url: z.ZodString;
1431
573
  reason: z.ZodString;
1432
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1433
- webhook_id: z.ZodString;
1434
- url: z.ZodString;
1435
- reason: z.ZodString;
1436
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1437
- webhook_id: z.ZodString;
1438
- url: z.ZodString;
1439
- reason: z.ZodString;
1440
- }, z.ZodTypeAny, "passthrough">>;
574
+ }, z.core.$loose>;
1441
575
  };
1442
576
 
1443
577
  /**
@@ -1475,4 +609,4 @@ declare function parseWebhookEvent(eventType: string | null | undefined, body: u
1475
609
  error: string;
1476
610
  };
1477
611
 
1478
- export { type AvailabilityQuery as A, AgentCreatedPayloadSchema, AgentUpdatedPayloadSchema, RespondToProposalSchema as B, type CreateAgentInput as C, UpdateAgentSchema as D, EVENT_STATUSES as E, EventCreatedPayloadSchema, EventDeletedPayloadSchema, EventEndedPayloadSchema, EventHoldConfirmedPayloadSchema, EventHoldCreatedPayloadSchema, EventHoldExpiredPayloadSchema, EventHoldReleasedPayloadSchema, EventStartedPayloadSchema, EventUpdatedPayloadSchema, type UpdateAvailabilityRules as F, UpdateAvailabilityRulesSchema as G, type UpdateCalendarInput as H, UpdateCalendarSchema as I, type UpdateEventInput as J, UpdateEventSchema as K, type ListAgentsQuery as L, type UpdateICalSubscriptionInput as M, UpdateICalSubscriptionSchema as N, type UpdateWebhookInput as O, UpdateWebhookSchema as P, ProposalCancelledPayloadSchema, ProposalConfirmedPayloadSchema, ProposalCreatedPayloadSchema, ProposalExpiredPayloadSchema, ProposalRespondedPayloadSchema, type WebhookDeliveryStatus as Q, type RespondToProposalInput as R, WebhookDeliveryStatusSchema as S, type WorkingHours as T, type UpdateAgentInput as U, WorkingHoursSchema as V, WEBHOOK_DELIVERY_STATUSES as W, WEBHOOK_EVENT_TYPES, WebhookDeactivatedPayloadSchema, type WebhookEvent, type WebhookEventType, AvailabilityQuerySchema as a, CreateAgentSchema as b, type CreateCalendarInput as c, CreateCalendarSchema as d, type CreateEventInput as e, CreateEventSchema as f, type CreateICalSubscriptionInput as g, CreateICalSubscriptionSchema as h, type CreateProposalInput as i, CreateProposalSchema as j, type CreateWebhookInput as k, CreateWebhookSchema as l, type CrossAgentAvailabilityQuery as m, CrossAgentAvailabilityQuerySchema as n, type EventStatus as o, ListAgentsQuerySchema as p, parseWebhookEvent, type ListCalendarsQuery as q, ListCalendarsQuerySchema as r, type ListDeliveriesQuery as s, ListDeliveriesQuerySchema as t, type ListEventsQuery as u, ListEventsQuerySchema as v, type ListICalSubscriptionsQuery as w, ListICalSubscriptionsQuerySchema as x, type ListWebhooksQuery as y, ListWebhooksQuerySchema as z };
612
+ export { WorkingHoursSchema as $, type AvailabilityQuery as A, AgentCreatedPayloadSchema, AgentUpdatedPayloadSchema, REMINDER_MAX_MINUTES as B, type CreateAgentInput as C, DEFAULT_EVENT_REMINDERS as D, EVENT_STATUSES as E, EventCreatedPayloadSchema, EventDeletedPayloadSchema, EventEndedPayloadSchema, EventHoldConfirmedPayloadSchema, EventHoldCreatedPayloadSchema, EventHoldExpiredPayloadSchema, EventHoldReleasedPayloadSchema, EventReminderPayloadSchema, EventStartedPayloadSchema, EventUpdatedPayloadSchema, REMINDER_MIN_MINUTES as F, RemindersSchema as G, type RespondToProposalInput as H, RespondToProposalSchema as I, UpdateAgentSchema as J, type UpdateAvailabilityRules as K, type ListAgentsQuery as L, UpdateAvailabilityRulesSchema as M, type UpdateCalendarInput as N, UpdateCalendarSchema as O, type UpdateEventInput as P, ProposalCancelledPayloadSchema, ProposalConfirmedPayloadSchema, ProposalCreatedPayloadSchema, ProposalExpiredPayloadSchema, ProposalRespondedPayloadSchema, UpdateEventSchema as Q, REMINDER_MAX_COUNT as R, type UpdateICalSubscriptionInput as S, UpdateICalSubscriptionSchema as T, type UpdateAgentInput as U, type UpdateWebhookInput as V, UpdateWebhookSchema as W, WEBHOOK_EVENT_TYPES, WebhookDeactivatedPayloadSchema, type WebhookEvent, type WebhookEventType, WEBHOOK_DELIVERY_STATUSES as X, type WebhookDeliveryStatus as Y, WebhookDeliveryStatusSchema as Z, type WorkingHours as _, AvailabilityQuerySchema as a, CreateAgentSchema as b, type CreateCalendarInput as c, CreateCalendarSchema as d, type CreateEventInput as e, CreateEventSchema as f, type CreateICalSubscriptionInput as g, CreateICalSubscriptionSchema as h, type CreateProposalInput as i, CreateProposalSchema as j, type CreateWebhookInput as k, CreateWebhookSchema as l, type CrossAgentAvailabilityQuery as m, CrossAgentAvailabilityQuerySchema as n, type EventStatus as o, ListAgentsQuerySchema as p, parseWebhookEvent, type ListCalendarsQuery as q, ListCalendarsQuerySchema as r, type ListDeliveriesQuery as s, ListDeliveriesQuerySchema as t, type ListEventsQuery as u, ListEventsQuerySchema as v, type ListICalSubscriptionsQuery as w, ListICalSubscriptionsQuerySchema as x, type ListWebhooksQuery as y, ListWebhooksQuerySchema as z };