recal-sdk 1.0.1 → 1.2.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/README.md +102 -21
- package/dist/client/sdk.gen.d.ts +41 -41
- package/dist/client/sdk.gen.d.ts.map +1 -1
- package/dist/client/sdk.gen.js +131 -131
- package/dist/client/sdk.gen.js.map +1 -1
- package/dist/client/transformers.gen.d.ts +25 -25
- package/dist/client/transformers.gen.d.ts.map +1 -1
- package/dist/client/transformers.gen.js +51 -26
- package/dist/client/transformers.gen.js.map +1 -1
- package/dist/client/types.gen.d.ts +830 -238
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/zod.gen.d.ts +357 -118
- package/dist/client/zod.gen.d.ts.map +1 -1
- package/dist/client/zod.gen.js +235 -180
- package/dist/client/zod.gen.js.map +1 -1
- package/dist/services/calendar.service.d.ts +12 -5
- package/dist/services/calendar.service.d.ts.map +1 -1
- package/dist/services/calendar.service.js +10 -6
- package/dist/services/calendar.service.js.map +1 -1
- package/dist/services/events.service.d.ts +2 -2
- package/dist/services/events.service.d.ts.map +1 -1
- package/dist/services/events.service.js +8 -8
- package/dist/services/events.service.js.map +1 -1
- package/dist/services/oauth.service.d.ts +7 -7
- package/dist/services/oauth.service.d.ts.map +1 -1
- package/dist/services/oauth.service.js +8 -8
- package/dist/services/oauth.service.js.map +1 -1
- package/dist/services/organizations.service.d.ts +35 -17
- package/dist/services/organizations.service.d.ts.map +1 -1
- package/dist/services/organizations.service.js +23 -11
- package/dist/services/organizations.service.js.map +1 -1
- package/dist/services/scheduling.service.d.ts +15 -7
- package/dist/services/scheduling.service.d.ts.map +1 -1
- package/dist/services/scheduling.service.js +34 -3
- package/dist/services/scheduling.service.js.map +1 -1
- package/dist/services/users.service.d.ts +2 -2
- package/dist/services/users.service.d.ts.map +1 -1
- package/dist/services/users.service.js +4 -4
- package/dist/services/users.service.js.map +1 -1
- package/dist/types.d.ts +27 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/response.d.ts +10 -0
- package/dist/utils/response.d.ts.map +1 -1
- package/dist/utils/response.js +20 -0
- package/dist/utils/response.js.map +1 -1
- package/package.json +3 -3
package/dist/client/zod.gen.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export declare const zAuthConnection: z.ZodObject<{
|
|
|
30
30
|
microsoft: "microsoft";
|
|
31
31
|
}>;
|
|
32
32
|
scope: z.ZodArray<z.ZodString>;
|
|
33
|
+
type: z.ZodString;
|
|
33
34
|
accessToken: z.ZodOptional<z.ZodUnknown>;
|
|
34
35
|
refreshToken: z.ZodOptional<z.ZodUnknown>;
|
|
35
36
|
}, z.core.$strip>;
|
|
@@ -40,6 +41,83 @@ export declare const zTimeRange: z.ZodObject<{
|
|
|
40
41
|
end: z.ZodISODateTime;
|
|
41
42
|
start: z.ZodISODateTime;
|
|
42
43
|
}, z.core.$strip>;
|
|
44
|
+
/**
|
|
45
|
+
* Why a calendar or a user could not be read. What each value means and how to resolve it: https://docs.recal.dev/core/troubleshooting
|
|
46
|
+
*/
|
|
47
|
+
export declare const zFreeBusyFailureReason: z.ZodEnum<{
|
|
48
|
+
accessDenied: "accessDenied";
|
|
49
|
+
authorizationInvalid: "authorizationInvalid";
|
|
50
|
+
insufficientScopes: "insufficientScopes";
|
|
51
|
+
invalidCalendarId: "invalidCalendarId";
|
|
52
|
+
mailboxUnavailable: "mailboxUnavailable";
|
|
53
|
+
notFound: "notFound";
|
|
54
|
+
providerError: "providerError";
|
|
55
|
+
providerNotConfigured: "providerNotConfigured";
|
|
56
|
+
rateLimited: "rateLimited";
|
|
57
|
+
tooManyCalendars: "tooManyCalendars";
|
|
58
|
+
}>;
|
|
59
|
+
/**
|
|
60
|
+
* A calendar that could not be read
|
|
61
|
+
*/
|
|
62
|
+
export declare const zFailedCalendar: z.ZodObject<{
|
|
63
|
+
calendarId: z.ZodString;
|
|
64
|
+
message: z.ZodString;
|
|
65
|
+
provider: z.ZodEnum<{
|
|
66
|
+
google: "google";
|
|
67
|
+
microsoft: "microsoft";
|
|
68
|
+
}>;
|
|
69
|
+
reason: z.ZodEnum<{
|
|
70
|
+
accessDenied: "accessDenied";
|
|
71
|
+
authorizationInvalid: "authorizationInvalid";
|
|
72
|
+
insufficientScopes: "insufficientScopes";
|
|
73
|
+
invalidCalendarId: "invalidCalendarId";
|
|
74
|
+
mailboxUnavailable: "mailboxUnavailable";
|
|
75
|
+
notFound: "notFound";
|
|
76
|
+
providerError: "providerError";
|
|
77
|
+
providerNotConfigured: "providerNotConfigured";
|
|
78
|
+
rateLimited: "rateLimited";
|
|
79
|
+
tooManyCalendars: "tooManyCalendars";
|
|
80
|
+
}>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
/**
|
|
83
|
+
* A user whose busy times are missing (failedCalendars empty) or incomplete (failedCalendars names the gaps)
|
|
84
|
+
*/
|
|
85
|
+
export declare const zFailedFreeBusyUser: z.ZodObject<{
|
|
86
|
+
customId: z.ZodString;
|
|
87
|
+
failedCalendars: z.ZodArray<z.ZodObject<{
|
|
88
|
+
calendarId: z.ZodString;
|
|
89
|
+
message: z.ZodString;
|
|
90
|
+
provider: z.ZodEnum<{
|
|
91
|
+
google: "google";
|
|
92
|
+
microsoft: "microsoft";
|
|
93
|
+
}>;
|
|
94
|
+
reason: z.ZodEnum<{
|
|
95
|
+
accessDenied: "accessDenied";
|
|
96
|
+
authorizationInvalid: "authorizationInvalid";
|
|
97
|
+
insufficientScopes: "insufficientScopes";
|
|
98
|
+
invalidCalendarId: "invalidCalendarId";
|
|
99
|
+
mailboxUnavailable: "mailboxUnavailable";
|
|
100
|
+
notFound: "notFound";
|
|
101
|
+
providerError: "providerError";
|
|
102
|
+
providerNotConfigured: "providerNotConfigured";
|
|
103
|
+
rateLimited: "rateLimited";
|
|
104
|
+
tooManyCalendars: "tooManyCalendars";
|
|
105
|
+
}>;
|
|
106
|
+
}, z.core.$strip>>;
|
|
107
|
+
message: z.ZodString;
|
|
108
|
+
reason: z.ZodEnum<{
|
|
109
|
+
accessDenied: "accessDenied";
|
|
110
|
+
authorizationInvalid: "authorizationInvalid";
|
|
111
|
+
insufficientScopes: "insufficientScopes";
|
|
112
|
+
invalidCalendarId: "invalidCalendarId";
|
|
113
|
+
mailboxUnavailable: "mailboxUnavailable";
|
|
114
|
+
notFound: "notFound";
|
|
115
|
+
providerError: "providerError";
|
|
116
|
+
providerNotConfigured: "providerNotConfigured";
|
|
117
|
+
rateLimited: "rateLimited";
|
|
118
|
+
tooManyCalendars: "tooManyCalendars";
|
|
119
|
+
}>;
|
|
120
|
+
}, z.core.$strip>;
|
|
43
121
|
/**
|
|
44
122
|
* Recal Normalized Calendar
|
|
45
123
|
*/
|
|
@@ -58,6 +136,7 @@ export declare const zCalendar: z.ZodObject<{
|
|
|
58
136
|
}>>;
|
|
59
137
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
60
138
|
foregroundColor: z.ZodOptional<z.ZodString>;
|
|
139
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
61
140
|
selected: z.ZodOptional<z.ZodBoolean>;
|
|
62
141
|
subject: z.ZodOptional<z.ZodString>;
|
|
63
142
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
@@ -216,10 +295,10 @@ export declare const zGetV1OrganizationsResponse: z.ZodObject<{
|
|
|
216
295
|
}, z.core.$strip>>;
|
|
217
296
|
}, z.core.$strip>;
|
|
218
297
|
export declare const zPostV1OrganizationsData: z.ZodObject<{
|
|
219
|
-
body: z.
|
|
298
|
+
body: z.ZodObject<{
|
|
220
299
|
name: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
221
300
|
slug: z.ZodString;
|
|
222
|
-
}, z.core.$strip
|
|
301
|
+
}, z.core.$strip>;
|
|
223
302
|
path: z.ZodOptional<z.ZodNever>;
|
|
224
303
|
query: z.ZodOptional<z.ZodNever>;
|
|
225
304
|
}, z.core.$strip>;
|
|
@@ -237,7 +316,7 @@ export declare const zPostV1OrganizationsResponse: z.ZodObject<{
|
|
|
237
316
|
}, z.core.$strip>>>;
|
|
238
317
|
}, z.core.$strip>;
|
|
239
318
|
}, z.core.$strip>;
|
|
240
|
-
export declare const
|
|
319
|
+
export declare const zDeleteV1OrganizationsByOrgSlugData: z.ZodObject<{
|
|
241
320
|
body: z.ZodOptional<z.ZodNever>;
|
|
242
321
|
path: z.ZodObject<{
|
|
243
322
|
orgSlug: z.ZodString;
|
|
@@ -247,7 +326,7 @@ export declare const zDeleteV1OrganizationsOrgSlugData: z.ZodObject<{
|
|
|
247
326
|
/**
|
|
248
327
|
* Deleted organization
|
|
249
328
|
*/
|
|
250
|
-
export declare const
|
|
329
|
+
export declare const zDeleteV1OrganizationsByOrgSlugResponse: z.ZodObject<{
|
|
251
330
|
data: z.ZodObject<{
|
|
252
331
|
createdAt: z.ZodISODateTime;
|
|
253
332
|
name: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
@@ -258,7 +337,7 @@ export declare const zDeleteV1OrganizationsOrgSlugResponse: z.ZodObject<{
|
|
|
258
337
|
}, z.core.$strip>>>;
|
|
259
338
|
}, z.core.$strip>;
|
|
260
339
|
}, z.core.$strip>;
|
|
261
|
-
export declare const
|
|
340
|
+
export declare const zGetV1OrganizationsByOrgSlugData: z.ZodObject<{
|
|
262
341
|
body: z.ZodOptional<z.ZodNever>;
|
|
263
342
|
path: z.ZodObject<{
|
|
264
343
|
orgSlug: z.ZodString;
|
|
@@ -268,7 +347,7 @@ export declare const zGetV1OrganizationsOrgSlugData: z.ZodObject<{
|
|
|
268
347
|
/**
|
|
269
348
|
* Organization
|
|
270
349
|
*/
|
|
271
|
-
export declare const
|
|
350
|
+
export declare const zGetV1OrganizationsByOrgSlugResponse: z.ZodObject<{
|
|
272
351
|
data: z.ZodObject<{
|
|
273
352
|
createdAt: z.ZodISODateTime;
|
|
274
353
|
name: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
@@ -279,11 +358,11 @@ export declare const zGetV1OrganizationsOrgSlugResponse: z.ZodObject<{
|
|
|
279
358
|
}, z.core.$strip>>>;
|
|
280
359
|
}, z.core.$strip>;
|
|
281
360
|
}, z.core.$strip>;
|
|
282
|
-
export declare const
|
|
283
|
-
body: z.
|
|
361
|
+
export declare const zPutV1OrganizationsByOrgSlugData: z.ZodObject<{
|
|
362
|
+
body: z.ZodObject<{
|
|
284
363
|
name: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
285
364
|
slug: z.ZodString;
|
|
286
|
-
}, z.core.$strip
|
|
365
|
+
}, z.core.$strip>;
|
|
287
366
|
path: z.ZodObject<{
|
|
288
367
|
orgSlug: z.ZodString;
|
|
289
368
|
}, z.core.$strip>;
|
|
@@ -292,7 +371,7 @@ export declare const zPutV1OrganizationsOrgSlugData: z.ZodObject<{
|
|
|
292
371
|
/**
|
|
293
372
|
* Updated organization
|
|
294
373
|
*/
|
|
295
|
-
export declare const
|
|
374
|
+
export declare const zPutV1OrganizationsByOrgSlugResponse: z.ZodObject<{
|
|
296
375
|
data: z.ZodObject<{
|
|
297
376
|
createdAt: z.ZodISODateTime;
|
|
298
377
|
name: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
@@ -303,19 +382,19 @@ export declare const zPutV1OrganizationsOrgSlugResponse: z.ZodObject<{
|
|
|
303
382
|
}, z.core.$strip>>>;
|
|
304
383
|
}, z.core.$strip>;
|
|
305
384
|
}, z.core.$strip>;
|
|
306
|
-
export declare const
|
|
307
|
-
body: z.
|
|
385
|
+
export declare const zDeleteV1OrganizationsByOrgSlugMembersData: z.ZodObject<{
|
|
386
|
+
body: z.ZodObject<{
|
|
308
387
|
userIds: z.ZodArray<z.ZodString>;
|
|
309
|
-
}, z.core.$strip
|
|
388
|
+
}, z.core.$strip>;
|
|
310
389
|
path: z.ZodObject<{
|
|
311
390
|
orgSlug: z.ZodString;
|
|
312
391
|
}, z.core.$strip>;
|
|
313
392
|
query: z.ZodOptional<z.ZodNever>;
|
|
314
393
|
}, z.core.$strip>;
|
|
315
|
-
export declare const
|
|
394
|
+
export declare const zDeleteV1OrganizationsByOrgSlugMembersResponse: z.ZodObject<{
|
|
316
395
|
data: z.ZodString;
|
|
317
396
|
}, z.core.$strip>;
|
|
318
|
-
export declare const
|
|
397
|
+
export declare const zGetV1OrganizationsByOrgSlugMembersData: z.ZodObject<{
|
|
319
398
|
body: z.ZodOptional<z.ZodNever>;
|
|
320
399
|
path: z.ZodObject<{
|
|
321
400
|
orgSlug: z.ZodString;
|
|
@@ -330,7 +409,7 @@ export declare const zGetV1OrganizationsOrgSlugMembersData: z.ZodObject<{
|
|
|
330
409
|
/**
|
|
331
410
|
* All members of an organization
|
|
332
411
|
*/
|
|
333
|
-
export declare const
|
|
412
|
+
export declare const zGetV1OrganizationsByOrgSlugMembersResponse: z.ZodObject<{
|
|
334
413
|
data: z.ZodArray<z.ZodObject<{
|
|
335
414
|
createdAt: z.ZodISODateTime;
|
|
336
415
|
id: z.ZodString;
|
|
@@ -343,6 +422,7 @@ export declare const zGetV1OrganizationsOrgSlugMembersResponse: z.ZodObject<{
|
|
|
343
422
|
microsoft: "microsoft";
|
|
344
423
|
}>;
|
|
345
424
|
scope: z.ZodArray<z.ZodString>;
|
|
425
|
+
type: z.ZodString;
|
|
346
426
|
accessToken: z.ZodOptional<z.ZodUnknown>;
|
|
347
427
|
refreshToken: z.ZodOptional<z.ZodUnknown>;
|
|
348
428
|
}, z.core.$strip>>>;
|
|
@@ -357,21 +437,21 @@ export declare const zGetV1OrganizationsOrgSlugMembersResponse: z.ZodObject<{
|
|
|
357
437
|
}, z.core.$strip>>>;
|
|
358
438
|
}, z.core.$strip>>;
|
|
359
439
|
}, z.core.$strip>;
|
|
360
|
-
export declare const
|
|
361
|
-
body: z.
|
|
440
|
+
export declare const zPostV1OrganizationsByOrgSlugMembersData: z.ZodObject<{
|
|
441
|
+
body: z.ZodObject<{
|
|
362
442
|
userIds: z.ZodArray<z.ZodString>;
|
|
363
|
-
}, z.core.$strip
|
|
443
|
+
}, z.core.$strip>;
|
|
364
444
|
path: z.ZodObject<{
|
|
365
445
|
orgSlug: z.ZodString;
|
|
366
446
|
}, z.core.$strip>;
|
|
367
447
|
query: z.ZodOptional<z.ZodNever>;
|
|
368
448
|
}, z.core.$strip>;
|
|
369
|
-
export declare const
|
|
449
|
+
export declare const zPostV1OrganizationsByOrgSlugMembersResponse: z.ZodUnion<readonly [z.ZodObject<{
|
|
370
450
|
data: z.ZodString;
|
|
371
451
|
}, z.core.$strip>, z.ZodObject<{
|
|
372
452
|
data: z.ZodString;
|
|
373
453
|
}, z.core.$strip>]>;
|
|
374
|
-
export declare const
|
|
454
|
+
export declare const zGetV1OrganizationsByOrgSlugCalendarBusyData: z.ZodObject<{
|
|
375
455
|
body: z.ZodOptional<z.ZodNever>;
|
|
376
456
|
path: z.ZodObject<{
|
|
377
457
|
orgSlug: z.ZodString;
|
|
@@ -387,37 +467,73 @@ export declare const zGetV1OrganizationsOrgSlugCalendarBusyData: z.ZodObject<{
|
|
|
387
467
|
}, z.core.$strip>;
|
|
388
468
|
}, z.core.$strip>;
|
|
389
469
|
/**
|
|
390
|
-
* Busy times of all users of an organization
|
|
470
|
+
* Busy times of all users of an organization, plus the users that could not be read
|
|
391
471
|
*/
|
|
392
|
-
export declare const
|
|
472
|
+
export declare const zGetV1OrganizationsByOrgSlugCalendarBusyResponse: z.ZodObject<{
|
|
393
473
|
data: z.ZodArray<z.ZodObject<{
|
|
394
474
|
end: z.ZodISODateTime;
|
|
395
475
|
start: z.ZodISODateTime;
|
|
396
476
|
}, z.core.$strip>>;
|
|
477
|
+
failedUsers: z.ZodArray<z.ZodObject<{
|
|
478
|
+
customId: z.ZodString;
|
|
479
|
+
failedCalendars: z.ZodArray<z.ZodObject<{
|
|
480
|
+
calendarId: z.ZodString;
|
|
481
|
+
message: z.ZodString;
|
|
482
|
+
provider: z.ZodEnum<{
|
|
483
|
+
google: "google";
|
|
484
|
+
microsoft: "microsoft";
|
|
485
|
+
}>;
|
|
486
|
+
reason: z.ZodEnum<{
|
|
487
|
+
accessDenied: "accessDenied";
|
|
488
|
+
authorizationInvalid: "authorizationInvalid";
|
|
489
|
+
insufficientScopes: "insufficientScopes";
|
|
490
|
+
invalidCalendarId: "invalidCalendarId";
|
|
491
|
+
mailboxUnavailable: "mailboxUnavailable";
|
|
492
|
+
notFound: "notFound";
|
|
493
|
+
providerError: "providerError";
|
|
494
|
+
providerNotConfigured: "providerNotConfigured";
|
|
495
|
+
rateLimited: "rateLimited";
|
|
496
|
+
tooManyCalendars: "tooManyCalendars";
|
|
497
|
+
}>;
|
|
498
|
+
}, z.core.$strip>>;
|
|
499
|
+
message: z.ZodString;
|
|
500
|
+
reason: z.ZodEnum<{
|
|
501
|
+
accessDenied: "accessDenied";
|
|
502
|
+
authorizationInvalid: "authorizationInvalid";
|
|
503
|
+
insufficientScopes: "insufficientScopes";
|
|
504
|
+
invalidCalendarId: "invalidCalendarId";
|
|
505
|
+
mailboxUnavailable: "mailboxUnavailable";
|
|
506
|
+
notFound: "notFound";
|
|
507
|
+
providerError: "providerError";
|
|
508
|
+
providerNotConfigured: "providerNotConfigured";
|
|
509
|
+
rateLimited: "rateLimited";
|
|
510
|
+
tooManyCalendars: "tooManyCalendars";
|
|
511
|
+
}>;
|
|
512
|
+
}, z.core.$strip>>;
|
|
397
513
|
}, z.core.$strip>;
|
|
398
|
-
export declare const
|
|
514
|
+
export declare const zGetV1OrganizationsByOrgSlugSchedulingData: z.ZodObject<{
|
|
399
515
|
body: z.ZodOptional<z.ZodNever>;
|
|
400
516
|
path: z.ZodObject<{
|
|
401
517
|
orgSlug: z.ZodString;
|
|
402
518
|
}, z.core.$strip>;
|
|
403
519
|
query: z.ZodObject<{
|
|
404
520
|
end: z.ZodString;
|
|
405
|
-
padding: z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>;
|
|
406
|
-
slotDuration: z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>;
|
|
407
521
|
start: z.ZodString;
|
|
408
522
|
earliestTimeEachDay: z.ZodOptional<z.ZodString>;
|
|
409
523
|
latestTimeEachDay: z.ZodOptional<z.ZodString>;
|
|
410
|
-
maxOverlaps: z.
|
|
524
|
+
maxOverlaps: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
525
|
+
padding: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
411
526
|
provider: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodEnum<{
|
|
412
527
|
google: "google";
|
|
413
528
|
microsoft: "microsoft";
|
|
414
529
|
}>>, z.ZodLiteral<"google">, z.ZodLiteral<"microsoft">]>>;
|
|
530
|
+
slotDuration: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
415
531
|
}, z.core.$strip>;
|
|
416
532
|
}, z.core.$strip>;
|
|
417
533
|
/**
|
|
418
|
-
* Available time slots
|
|
534
|
+
* Available time slots, plus the users that could not be read
|
|
419
535
|
*/
|
|
420
|
-
export declare const
|
|
536
|
+
export declare const zGetV1OrganizationsByOrgSlugSchedulingResponse: z.ZodObject<{
|
|
421
537
|
data: z.ZodObject<{
|
|
422
538
|
availableSlots: z.ZodArray<z.ZodObject<{
|
|
423
539
|
end: z.ZodISODateTime;
|
|
@@ -434,6 +550,42 @@ export declare const zGetV1OrganizationsOrgSlugSchedulingResponse: z.ZodObject<{
|
|
|
434
550
|
latestTimeEachDay: z.ZodOptional<z.ZodString>;
|
|
435
551
|
}, z.core.$strip>;
|
|
436
552
|
}, z.core.$strip>;
|
|
553
|
+
failedUsers: z.ZodArray<z.ZodObject<{
|
|
554
|
+
customId: z.ZodString;
|
|
555
|
+
failedCalendars: z.ZodArray<z.ZodObject<{
|
|
556
|
+
calendarId: z.ZodString;
|
|
557
|
+
message: z.ZodString;
|
|
558
|
+
provider: z.ZodEnum<{
|
|
559
|
+
google: "google";
|
|
560
|
+
microsoft: "microsoft";
|
|
561
|
+
}>;
|
|
562
|
+
reason: z.ZodEnum<{
|
|
563
|
+
accessDenied: "accessDenied";
|
|
564
|
+
authorizationInvalid: "authorizationInvalid";
|
|
565
|
+
insufficientScopes: "insufficientScopes";
|
|
566
|
+
invalidCalendarId: "invalidCalendarId";
|
|
567
|
+
mailboxUnavailable: "mailboxUnavailable";
|
|
568
|
+
notFound: "notFound";
|
|
569
|
+
providerError: "providerError";
|
|
570
|
+
providerNotConfigured: "providerNotConfigured";
|
|
571
|
+
rateLimited: "rateLimited";
|
|
572
|
+
tooManyCalendars: "tooManyCalendars";
|
|
573
|
+
}>;
|
|
574
|
+
}, z.core.$strip>>;
|
|
575
|
+
message: z.ZodString;
|
|
576
|
+
reason: z.ZodEnum<{
|
|
577
|
+
accessDenied: "accessDenied";
|
|
578
|
+
authorizationInvalid: "authorizationInvalid";
|
|
579
|
+
insufficientScopes: "insufficientScopes";
|
|
580
|
+
invalidCalendarId: "invalidCalendarId";
|
|
581
|
+
mailboxUnavailable: "mailboxUnavailable";
|
|
582
|
+
notFound: "notFound";
|
|
583
|
+
providerError: "providerError";
|
|
584
|
+
providerNotConfigured: "providerNotConfigured";
|
|
585
|
+
rateLimited: "rateLimited";
|
|
586
|
+
tooManyCalendars: "tooManyCalendars";
|
|
587
|
+
}>;
|
|
588
|
+
}, z.core.$strip>>;
|
|
437
589
|
}, z.core.$strip>;
|
|
438
590
|
export declare const zGetV1UsersData: z.ZodObject<{
|
|
439
591
|
body: z.ZodOptional<z.ZodNever>;
|
|
@@ -456,6 +608,7 @@ export declare const zGetV1UsersResponse: z.ZodObject<{
|
|
|
456
608
|
microsoft: "microsoft";
|
|
457
609
|
}>;
|
|
458
610
|
scope: z.ZodArray<z.ZodString>;
|
|
611
|
+
type: z.ZodString;
|
|
459
612
|
accessToken: z.ZodOptional<z.ZodUnknown>;
|
|
460
613
|
refreshToken: z.ZodOptional<z.ZodUnknown>;
|
|
461
614
|
}, z.core.$strip>>>;
|
|
@@ -471,10 +624,10 @@ export declare const zGetV1UsersResponse: z.ZodObject<{
|
|
|
471
624
|
}, z.core.$strip>>;
|
|
472
625
|
}, z.core.$strip>;
|
|
473
626
|
export declare const zPostV1UsersData: z.ZodObject<{
|
|
474
|
-
body: z.
|
|
627
|
+
body: z.ZodObject<{
|
|
475
628
|
id: z.ZodString;
|
|
476
629
|
organizationSlugs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
477
|
-
}, z.core.$strip
|
|
630
|
+
}, z.core.$strip>;
|
|
478
631
|
path: z.ZodOptional<z.ZodNever>;
|
|
479
632
|
query: z.ZodOptional<z.ZodNever>;
|
|
480
633
|
}, z.core.$strip>;
|
|
@@ -494,6 +647,7 @@ export declare const zPostV1UsersResponse: z.ZodObject<{
|
|
|
494
647
|
microsoft: "microsoft";
|
|
495
648
|
}>;
|
|
496
649
|
scope: z.ZodArray<z.ZodString>;
|
|
650
|
+
type: z.ZodString;
|
|
497
651
|
accessToken: z.ZodOptional<z.ZodUnknown>;
|
|
498
652
|
refreshToken: z.ZodOptional<z.ZodUnknown>;
|
|
499
653
|
}, z.core.$strip>>>;
|
|
@@ -508,7 +662,7 @@ export declare const zPostV1UsersResponse: z.ZodObject<{
|
|
|
508
662
|
}, z.core.$strip>>>;
|
|
509
663
|
}, z.core.$strip>;
|
|
510
664
|
}, z.core.$strip>;
|
|
511
|
-
export declare const
|
|
665
|
+
export declare const zDeleteV1UsersByUserIdData: z.ZodObject<{
|
|
512
666
|
body: z.ZodOptional<z.ZodNever>;
|
|
513
667
|
path: z.ZodObject<{
|
|
514
668
|
userId: z.ZodString;
|
|
@@ -518,7 +672,7 @@ export declare const zDeleteV1UsersUserIdData: z.ZodObject<{
|
|
|
518
672
|
/**
|
|
519
673
|
* User
|
|
520
674
|
*/
|
|
521
|
-
export declare const
|
|
675
|
+
export declare const zDeleteV1UsersByUserIdResponse: z.ZodObject<{
|
|
522
676
|
data: z.ZodObject<{
|
|
523
677
|
createdAt: z.ZodISODateTime;
|
|
524
678
|
id: z.ZodString;
|
|
@@ -531,6 +685,7 @@ export declare const zDeleteV1UsersUserIdResponse: z.ZodObject<{
|
|
|
531
685
|
microsoft: "microsoft";
|
|
532
686
|
}>;
|
|
533
687
|
scope: z.ZodArray<z.ZodString>;
|
|
688
|
+
type: z.ZodString;
|
|
534
689
|
accessToken: z.ZodOptional<z.ZodUnknown>;
|
|
535
690
|
refreshToken: z.ZodOptional<z.ZodUnknown>;
|
|
536
691
|
}, z.core.$strip>>>;
|
|
@@ -545,7 +700,7 @@ export declare const zDeleteV1UsersUserIdResponse: z.ZodObject<{
|
|
|
545
700
|
}, z.core.$strip>>>;
|
|
546
701
|
}, z.core.$strip>;
|
|
547
702
|
}, z.core.$strip>;
|
|
548
|
-
export declare const
|
|
703
|
+
export declare const zGetV1UsersByUserIdData: z.ZodObject<{
|
|
549
704
|
body: z.ZodOptional<z.ZodNever>;
|
|
550
705
|
path: z.ZodObject<{
|
|
551
706
|
userId: z.ZodString;
|
|
@@ -560,7 +715,7 @@ export declare const zGetV1UsersUserIdData: z.ZodObject<{
|
|
|
560
715
|
/**
|
|
561
716
|
* User
|
|
562
717
|
*/
|
|
563
|
-
export declare const
|
|
718
|
+
export declare const zGetV1UsersByUserIdResponse: z.ZodObject<{
|
|
564
719
|
data: z.ZodObject<{
|
|
565
720
|
createdAt: z.ZodISODateTime;
|
|
566
721
|
id: z.ZodString;
|
|
@@ -573,6 +728,7 @@ export declare const zGetV1UsersUserIdResponse: z.ZodObject<{
|
|
|
573
728
|
microsoft: "microsoft";
|
|
574
729
|
}>;
|
|
575
730
|
scope: z.ZodArray<z.ZodString>;
|
|
731
|
+
type: z.ZodString;
|
|
576
732
|
accessToken: z.ZodOptional<z.ZodUnknown>;
|
|
577
733
|
refreshToken: z.ZodOptional<z.ZodUnknown>;
|
|
578
734
|
}, z.core.$strip>>>;
|
|
@@ -587,10 +743,10 @@ export declare const zGetV1UsersUserIdResponse: z.ZodObject<{
|
|
|
587
743
|
}, z.core.$strip>>>;
|
|
588
744
|
}, z.core.$strip>;
|
|
589
745
|
}, z.core.$strip>;
|
|
590
|
-
export declare const
|
|
591
|
-
body: z.
|
|
746
|
+
export declare const zPutV1UsersByUserIdData: z.ZodObject<{
|
|
747
|
+
body: z.ZodObject<{
|
|
592
748
|
userId: z.ZodString;
|
|
593
|
-
}, z.core.$strip
|
|
749
|
+
}, z.core.$strip>;
|
|
594
750
|
path: z.ZodObject<{
|
|
595
751
|
userId: z.ZodString;
|
|
596
752
|
}, z.core.$strip>;
|
|
@@ -599,7 +755,7 @@ export declare const zPutV1UsersUserIdData: z.ZodObject<{
|
|
|
599
755
|
/**
|
|
600
756
|
* User
|
|
601
757
|
*/
|
|
602
|
-
export declare const
|
|
758
|
+
export declare const zPutV1UsersByUserIdResponse: z.ZodObject<{
|
|
603
759
|
data: z.ZodObject<{
|
|
604
760
|
createdAt: z.ZodISODateTime;
|
|
605
761
|
id: z.ZodString;
|
|
@@ -612,6 +768,7 @@ export declare const zPutV1UsersUserIdResponse: z.ZodObject<{
|
|
|
612
768
|
microsoft: "microsoft";
|
|
613
769
|
}>;
|
|
614
770
|
scope: z.ZodArray<z.ZodString>;
|
|
771
|
+
type: z.ZodString;
|
|
615
772
|
accessToken: z.ZodOptional<z.ZodUnknown>;
|
|
616
773
|
refreshToken: z.ZodOptional<z.ZodUnknown>;
|
|
617
774
|
}, z.core.$strip>>>;
|
|
@@ -626,7 +783,7 @@ export declare const zPutV1UsersUserIdResponse: z.ZodObject<{
|
|
|
626
783
|
}, z.core.$strip>>>;
|
|
627
784
|
}, z.core.$strip>;
|
|
628
785
|
}, z.core.$strip>;
|
|
629
|
-
export declare const
|
|
786
|
+
export declare const zGetV1UsersByUserIdOrganizationsData: z.ZodObject<{
|
|
630
787
|
body: z.ZodOptional<z.ZodNever>;
|
|
631
788
|
path: z.ZodObject<{
|
|
632
789
|
userId: z.ZodString;
|
|
@@ -636,7 +793,7 @@ export declare const zGetV1UsersUserIdOrganizationsData: z.ZodObject<{
|
|
|
636
793
|
/**
|
|
637
794
|
* List of organizations
|
|
638
795
|
*/
|
|
639
|
-
export declare const
|
|
796
|
+
export declare const zGetV1UsersByUserIdOrganizationsResponse: z.ZodObject<{
|
|
640
797
|
data: z.ZodArray<z.ZodObject<{
|
|
641
798
|
createdAt: z.ZodISODateTime;
|
|
642
799
|
name: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
@@ -647,7 +804,7 @@ export declare const zGetV1UsersUserIdOrganizationsResponse: z.ZodObject<{
|
|
|
647
804
|
}, z.core.$strip>>>;
|
|
648
805
|
}, z.core.$strip>>;
|
|
649
806
|
}, z.core.$strip>;
|
|
650
|
-
export declare const
|
|
807
|
+
export declare const zGetV1UsersByUserIdCalendarData: z.ZodObject<{
|
|
651
808
|
body: z.ZodOptional<z.ZodNever>;
|
|
652
809
|
path: z.ZodObject<{
|
|
653
810
|
userId: z.ZodString;
|
|
@@ -662,7 +819,7 @@ export declare const zGetV1UsersUserIdCalendarData: z.ZodObject<{
|
|
|
662
819
|
/**
|
|
663
820
|
* List of calendars
|
|
664
821
|
*/
|
|
665
|
-
export declare const
|
|
822
|
+
export declare const zGetV1UsersByUserIdCalendarResponse: z.ZodObject<{
|
|
666
823
|
data: z.ZodArray<z.ZodObject<{
|
|
667
824
|
id: z.ZodString;
|
|
668
825
|
original: z.ZodUnknown;
|
|
@@ -678,12 +835,13 @@ export declare const zGetV1UsersUserIdCalendarResponse: z.ZodObject<{
|
|
|
678
835
|
}>>;
|
|
679
836
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
680
837
|
foregroundColor: z.ZodOptional<z.ZodString>;
|
|
838
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
681
839
|
selected: z.ZodOptional<z.ZodBoolean>;
|
|
682
840
|
subject: z.ZodOptional<z.ZodString>;
|
|
683
841
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
684
842
|
}, z.core.$strip>>;
|
|
685
843
|
}, z.core.$strip>;
|
|
686
|
-
export declare const
|
|
844
|
+
export declare const zGetV1UsersByUserIdCalendarBusyData: z.ZodObject<{
|
|
687
845
|
body: z.ZodOptional<z.ZodNever>;
|
|
688
846
|
path: z.ZodObject<{
|
|
689
847
|
userId: z.ZodString;
|
|
@@ -691,7 +849,7 @@ export declare const zGetV1UsersUserIdCalendarBusyData: z.ZodObject<{
|
|
|
691
849
|
query: z.ZodObject<{
|
|
692
850
|
end: z.ZodString;
|
|
693
851
|
start: z.ZodString;
|
|
694
|
-
calendarIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
852
|
+
calendarIds: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
695
853
|
provider: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodEnum<{
|
|
696
854
|
google: "google";
|
|
697
855
|
microsoft: "microsoft";
|
|
@@ -699,15 +857,35 @@ export declare const zGetV1UsersUserIdCalendarBusyData: z.ZodObject<{
|
|
|
699
857
|
}, z.core.$strip>;
|
|
700
858
|
}, z.core.$strip>;
|
|
701
859
|
/**
|
|
702
|
-
* List of busy intervals
|
|
860
|
+
* List of busy intervals, plus the calendars that could not be read
|
|
703
861
|
*/
|
|
704
|
-
export declare const
|
|
862
|
+
export declare const zGetV1UsersByUserIdCalendarBusyResponse: z.ZodObject<{
|
|
705
863
|
data: z.ZodArray<z.ZodObject<{
|
|
706
864
|
end: z.ZodISODateTime;
|
|
707
865
|
start: z.ZodISODateTime;
|
|
708
866
|
}, z.core.$strip>>;
|
|
867
|
+
failedCalendars: z.ZodArray<z.ZodObject<{
|
|
868
|
+
calendarId: z.ZodString;
|
|
869
|
+
message: z.ZodString;
|
|
870
|
+
provider: z.ZodEnum<{
|
|
871
|
+
google: "google";
|
|
872
|
+
microsoft: "microsoft";
|
|
873
|
+
}>;
|
|
874
|
+
reason: z.ZodEnum<{
|
|
875
|
+
accessDenied: "accessDenied";
|
|
876
|
+
authorizationInvalid: "authorizationInvalid";
|
|
877
|
+
insufficientScopes: "insufficientScopes";
|
|
878
|
+
invalidCalendarId: "invalidCalendarId";
|
|
879
|
+
mailboxUnavailable: "mailboxUnavailable";
|
|
880
|
+
notFound: "notFound";
|
|
881
|
+
providerError: "providerError";
|
|
882
|
+
providerNotConfigured: "providerNotConfigured";
|
|
883
|
+
rateLimited: "rateLimited";
|
|
884
|
+
tooManyCalendars: "tooManyCalendars";
|
|
885
|
+
}>;
|
|
886
|
+
}, z.core.$strip>>;
|
|
709
887
|
}, z.core.$strip>;
|
|
710
|
-
export declare const
|
|
888
|
+
export declare const zGetV1UsersByUserIdCalendarEventsData: z.ZodObject<{
|
|
711
889
|
body: z.ZodOptional<z.ZodNever>;
|
|
712
890
|
path: z.ZodObject<{
|
|
713
891
|
userId: z.ZodString;
|
|
@@ -715,7 +893,7 @@ export declare const zGetV1UsersUserIdCalendarEventsData: z.ZodObject<{
|
|
|
715
893
|
query: z.ZodObject<{
|
|
716
894
|
end: z.ZodString;
|
|
717
895
|
start: z.ZodString;
|
|
718
|
-
calendarIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
896
|
+
calendarIds: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
719
897
|
provider: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodEnum<{
|
|
720
898
|
google: "google";
|
|
721
899
|
microsoft: "microsoft";
|
|
@@ -725,7 +903,7 @@ export declare const zGetV1UsersUserIdCalendarEventsData: z.ZodObject<{
|
|
|
725
903
|
/**
|
|
726
904
|
* List of events
|
|
727
905
|
*/
|
|
728
|
-
export declare const
|
|
906
|
+
export declare const zGetV1UsersByUserIdCalendarEventsResponse: z.ZodObject<{
|
|
729
907
|
data: z.ZodArray<z.ZodObject<{
|
|
730
908
|
attendees: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
731
909
|
email: z.ZodString;
|
|
@@ -752,8 +930,8 @@ export declare const zGetV1UsersUserIdCalendarEventsResponse: z.ZodObject<{
|
|
|
752
930
|
subject: z.ZodOptional<z.ZodString>;
|
|
753
931
|
}, z.core.$strip>>;
|
|
754
932
|
}, z.core.$strip>;
|
|
755
|
-
export declare const
|
|
756
|
-
body: z.
|
|
933
|
+
export declare const zPostV1UsersByUserIdCalendarEventsMetaData: z.ZodObject<{
|
|
934
|
+
body: z.ZodObject<{
|
|
757
935
|
attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
758
936
|
email: z.ZodEmail;
|
|
759
937
|
}, z.core.$strip>>>;
|
|
@@ -770,7 +948,7 @@ export declare const zPostV1UsersUserIdCalendarEventsMetaData: z.ZodObject<{
|
|
|
770
948
|
}>>>;
|
|
771
949
|
start: z.ZodOptional<z.ZodString>;
|
|
772
950
|
subject: z.ZodOptional<z.ZodString>;
|
|
773
|
-
}, z.core.$strip
|
|
951
|
+
}, z.core.$strip>;
|
|
774
952
|
path: z.ZodObject<{
|
|
775
953
|
userId: z.ZodString;
|
|
776
954
|
}, z.core.$strip>;
|
|
@@ -784,7 +962,7 @@ export declare const zPostV1UsersUserIdCalendarEventsMetaData: z.ZodObject<{
|
|
|
784
962
|
/**
|
|
785
963
|
* Meta event created
|
|
786
964
|
*/
|
|
787
|
-
export declare const
|
|
965
|
+
export declare const zPostV1UsersByUserIdCalendarEventsMetaResponse: z.ZodObject<{
|
|
788
966
|
data: z.ZodObject<{
|
|
789
967
|
attendees: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
790
968
|
email: z.ZodString;
|
|
@@ -809,7 +987,7 @@ export declare const zPostV1UsersUserIdCalendarEventsMetaResponse: z.ZodObject<{
|
|
|
809
987
|
subject: z.ZodOptional<z.ZodString>;
|
|
810
988
|
}, z.core.$strip>;
|
|
811
989
|
}, z.core.$strip>;
|
|
812
|
-
export declare const
|
|
990
|
+
export declare const zDeleteV1UsersByUserIdCalendarEventsMetaByMetaIdData: z.ZodObject<{
|
|
813
991
|
body: z.ZodOptional<z.ZodNever>;
|
|
814
992
|
path: z.ZodObject<{
|
|
815
993
|
metaId: z.ZodString;
|
|
@@ -825,12 +1003,12 @@ export declare const zDeleteV1UsersUserIdCalendarEventsMetaMetaIdData: z.ZodObje
|
|
|
825
1003
|
/**
|
|
826
1004
|
* Meta event deleted
|
|
827
1005
|
*/
|
|
828
|
-
export declare const
|
|
1006
|
+
export declare const zDeleteV1UsersByUserIdCalendarEventsMetaByMetaIdResponse: z.ZodObject<{
|
|
829
1007
|
data: z.ZodObject<{
|
|
830
1008
|
success: z.ZodLiteral<true>;
|
|
831
1009
|
}, z.core.$strip>;
|
|
832
1010
|
}, z.core.$strip>;
|
|
833
|
-
export declare const
|
|
1011
|
+
export declare const zGetV1UsersByUserIdCalendarEventsMetaByMetaIdData: z.ZodObject<{
|
|
834
1012
|
body: z.ZodOptional<z.ZodNever>;
|
|
835
1013
|
path: z.ZodObject<{
|
|
836
1014
|
metaId: z.ZodString;
|
|
@@ -846,7 +1024,7 @@ export declare const zGetV1UsersUserIdCalendarEventsMetaMetaIdData: z.ZodObject<
|
|
|
846
1024
|
/**
|
|
847
1025
|
* Event
|
|
848
1026
|
*/
|
|
849
|
-
export declare const
|
|
1027
|
+
export declare const zGetV1UsersByUserIdCalendarEventsMetaByMetaIdResponse: z.ZodObject<{
|
|
850
1028
|
data: z.ZodObject<{
|
|
851
1029
|
attendees: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
852
1030
|
email: z.ZodString;
|
|
@@ -871,8 +1049,8 @@ export declare const zGetV1UsersUserIdCalendarEventsMetaMetaIdResponse: z.ZodObj
|
|
|
871
1049
|
subject: z.ZodOptional<z.ZodString>;
|
|
872
1050
|
}, z.core.$strip>;
|
|
873
1051
|
}, z.core.$strip>;
|
|
874
|
-
export declare const
|
|
875
|
-
body: z.
|
|
1052
|
+
export declare const zPutV1UsersByUserIdCalendarEventsMetaByMetaIdData: z.ZodObject<{
|
|
1053
|
+
body: z.ZodObject<{
|
|
876
1054
|
attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
877
1055
|
email: z.ZodEmail;
|
|
878
1056
|
}, z.core.$strip>>>;
|
|
@@ -889,7 +1067,7 @@ export declare const zPutV1UsersUserIdCalendarEventsMetaMetaIdData: z.ZodObject<
|
|
|
889
1067
|
}>>>;
|
|
890
1068
|
start: z.ZodOptional<z.ZodString>;
|
|
891
1069
|
subject: z.ZodOptional<z.ZodString>;
|
|
892
|
-
}, z.core.$strip
|
|
1070
|
+
}, z.core.$strip>;
|
|
893
1071
|
path: z.ZodObject<{
|
|
894
1072
|
metaId: z.ZodString;
|
|
895
1073
|
userId: z.ZodString;
|
|
@@ -904,7 +1082,7 @@ export declare const zPutV1UsersUserIdCalendarEventsMetaMetaIdData: z.ZodObject<
|
|
|
904
1082
|
/**
|
|
905
1083
|
* Meta event updated
|
|
906
1084
|
*/
|
|
907
|
-
export declare const
|
|
1085
|
+
export declare const zPutV1UsersByUserIdCalendarEventsMetaByMetaIdResponse: z.ZodObject<{
|
|
908
1086
|
data: z.ZodObject<{
|
|
909
1087
|
attendees: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
910
1088
|
email: z.ZodString;
|
|
@@ -929,8 +1107,8 @@ export declare const zPutV1UsersUserIdCalendarEventsMetaMetaIdResponse: z.ZodObj
|
|
|
929
1107
|
subject: z.ZodOptional<z.ZodString>;
|
|
930
1108
|
}, z.core.$strip>;
|
|
931
1109
|
}, z.core.$strip>;
|
|
932
|
-
export declare const
|
|
933
|
-
body: z.
|
|
1110
|
+
export declare const zPostV1UsersByUserIdCalendarEventsByProviderByCalendarIdData: z.ZodObject<{
|
|
1111
|
+
body: z.ZodObject<{
|
|
934
1112
|
attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
935
1113
|
email: z.ZodEmail;
|
|
936
1114
|
}, z.core.$strip>>>;
|
|
@@ -945,7 +1123,7 @@ export declare const zPostV1UsersUserIdCalendarEventsProviderCalendarIdData: z.Z
|
|
|
945
1123
|
sendNotifications: z.ZodOptional<z.ZodBoolean>;
|
|
946
1124
|
start: z.ZodOptional<z.ZodString>;
|
|
947
1125
|
subject: z.ZodOptional<z.ZodString>;
|
|
948
|
-
}, z.core.$strip
|
|
1126
|
+
}, z.core.$strip>;
|
|
949
1127
|
path: z.ZodObject<{
|
|
950
1128
|
calendarId: z.ZodString;
|
|
951
1129
|
provider: z.ZodEnum<{
|
|
@@ -959,7 +1137,7 @@ export declare const zPostV1UsersUserIdCalendarEventsProviderCalendarIdData: z.Z
|
|
|
959
1137
|
/**
|
|
960
1138
|
* Event created
|
|
961
1139
|
*/
|
|
962
|
-
export declare const
|
|
1140
|
+
export declare const zPostV1UsersByUserIdCalendarEventsByProviderByCalendarIdResponse: z.ZodObject<{
|
|
963
1141
|
data: z.ZodObject<{
|
|
964
1142
|
attendees: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
965
1143
|
email: z.ZodString;
|
|
@@ -986,7 +1164,7 @@ export declare const zPostV1UsersUserIdCalendarEventsProviderCalendarIdResponse:
|
|
|
986
1164
|
subject: z.ZodOptional<z.ZodString>;
|
|
987
1165
|
}, z.core.$strip>;
|
|
988
1166
|
}, z.core.$strip>;
|
|
989
|
-
export declare const
|
|
1167
|
+
export declare const zDeleteV1UsersByUserIdCalendarEventsByProviderByCalendarIdByEventIdData: z.ZodObject<{
|
|
990
1168
|
body: z.ZodOptional<z.ZodNever>;
|
|
991
1169
|
path: z.ZodObject<{
|
|
992
1170
|
calendarId: z.ZodString;
|
|
@@ -1002,12 +1180,12 @@ export declare const zDeleteV1UsersUserIdCalendarEventsProviderCalendarIdEventId
|
|
|
1002
1180
|
/**
|
|
1003
1181
|
* Event deleted
|
|
1004
1182
|
*/
|
|
1005
|
-
export declare const
|
|
1183
|
+
export declare const zDeleteV1UsersByUserIdCalendarEventsByProviderByCalendarIdByEventIdResponse: z.ZodObject<{
|
|
1006
1184
|
data: z.ZodObject<{
|
|
1007
1185
|
success: z.ZodLiteral<true>;
|
|
1008
1186
|
}, z.core.$strip>;
|
|
1009
1187
|
}, z.core.$strip>;
|
|
1010
|
-
export declare const
|
|
1188
|
+
export declare const zGetV1UsersByUserIdCalendarEventsByProviderByCalendarIdByEventIdData: z.ZodObject<{
|
|
1011
1189
|
body: z.ZodOptional<z.ZodNever>;
|
|
1012
1190
|
path: z.ZodObject<{
|
|
1013
1191
|
calendarId: z.ZodString;
|
|
@@ -1023,7 +1201,7 @@ export declare const zGetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdDat
|
|
|
1023
1201
|
/**
|
|
1024
1202
|
* Event found
|
|
1025
1203
|
*/
|
|
1026
|
-
export declare const
|
|
1204
|
+
export declare const zGetV1UsersByUserIdCalendarEventsByProviderByCalendarIdByEventIdResponse: z.ZodObject<{
|
|
1027
1205
|
data: z.ZodObject<{
|
|
1028
1206
|
attendees: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1029
1207
|
email: z.ZodString;
|
|
@@ -1050,8 +1228,8 @@ export declare const zGetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdRes
|
|
|
1050
1228
|
subject: z.ZodOptional<z.ZodString>;
|
|
1051
1229
|
}, z.core.$strip>;
|
|
1052
1230
|
}, z.core.$strip>;
|
|
1053
|
-
export declare const
|
|
1054
|
-
body: z.
|
|
1231
|
+
export declare const zPutV1UsersByUserIdCalendarEventsByProviderByCalendarIdByEventIdData: z.ZodObject<{
|
|
1232
|
+
body: z.ZodObject<{
|
|
1055
1233
|
attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1056
1234
|
email: z.ZodEmail;
|
|
1057
1235
|
}, z.core.$strip>>>;
|
|
@@ -1066,7 +1244,7 @@ export declare const zPutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdDat
|
|
|
1066
1244
|
sendNotifications: z.ZodOptional<z.ZodBoolean>;
|
|
1067
1245
|
start: z.ZodOptional<z.ZodString>;
|
|
1068
1246
|
subject: z.ZodOptional<z.ZodString>;
|
|
1069
|
-
}, z.core.$strip
|
|
1247
|
+
}, z.core.$strip>;
|
|
1070
1248
|
path: z.ZodObject<{
|
|
1071
1249
|
calendarId: z.ZodString;
|
|
1072
1250
|
eventId: z.ZodString;
|
|
@@ -1081,7 +1259,7 @@ export declare const zPutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdDat
|
|
|
1081
1259
|
/**
|
|
1082
1260
|
* Event updated
|
|
1083
1261
|
*/
|
|
1084
|
-
export declare const
|
|
1262
|
+
export declare const zPutV1UsersByUserIdCalendarEventsByProviderByCalendarIdByEventIdResponse: z.ZodObject<{
|
|
1085
1263
|
data: z.ZodObject<{
|
|
1086
1264
|
attendees: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1087
1265
|
email: z.ZodString;
|
|
@@ -1108,7 +1286,7 @@ export declare const zPutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdRes
|
|
|
1108
1286
|
subject: z.ZodOptional<z.ZodString>;
|
|
1109
1287
|
}, z.core.$strip>;
|
|
1110
1288
|
}, z.core.$strip>;
|
|
1111
|
-
export declare const
|
|
1289
|
+
export declare const zGetV1UsersByUserIdOauthData: z.ZodObject<{
|
|
1112
1290
|
body: z.ZodOptional<z.ZodNever>;
|
|
1113
1291
|
path: z.ZodObject<{
|
|
1114
1292
|
userId: z.ZodString;
|
|
@@ -1120,7 +1298,7 @@ export declare const zGetV1UsersUserIdOauthData: z.ZodObject<{
|
|
|
1120
1298
|
/**
|
|
1121
1299
|
* All oauth connections of the user
|
|
1122
1300
|
*/
|
|
1123
|
-
export declare const
|
|
1301
|
+
export declare const zGetV1UsersByUserIdOauthResponse: z.ZodObject<{
|
|
1124
1302
|
data: z.ZodArray<z.ZodObject<{
|
|
1125
1303
|
alive: z.ZodBoolean;
|
|
1126
1304
|
email: z.ZodUnion<readonly [z.ZodEmail, z.ZodNull]>;
|
|
@@ -1130,18 +1308,19 @@ export declare const zGetV1UsersUserIdOauthResponse: z.ZodObject<{
|
|
|
1130
1308
|
microsoft: "microsoft";
|
|
1131
1309
|
}>;
|
|
1132
1310
|
scope: z.ZodArray<z.ZodString>;
|
|
1311
|
+
type: z.ZodString;
|
|
1133
1312
|
accessToken: z.ZodOptional<z.ZodUnknown>;
|
|
1134
1313
|
refreshToken: z.ZodOptional<z.ZodUnknown>;
|
|
1135
1314
|
}, z.core.$strip>>;
|
|
1136
1315
|
}, z.core.$strip>;
|
|
1137
|
-
export declare const
|
|
1316
|
+
export declare const zGetV1UsersByUserIdOauthLinksData: z.ZodObject<{
|
|
1138
1317
|
body: z.ZodOptional<z.ZodNever>;
|
|
1139
1318
|
path: z.ZodObject<{
|
|
1140
1319
|
userId: z.ZodString;
|
|
1141
1320
|
}, z.core.$strip>;
|
|
1142
1321
|
query: z.ZodObject<{
|
|
1143
1322
|
accessType: z.ZodUnion<readonly [z.ZodLiteral<"offline">, z.ZodLiteral<"online">]>;
|
|
1144
|
-
scope: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"edit">, z.ZodLiteral<"free-busy">]>;
|
|
1323
|
+
scope: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"edit">, z.ZodLiteral<"free-busy">, z.ZodLiteral<"read">, z.ZodLiteral<"write">]>;
|
|
1145
1324
|
provider: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodEnum<{
|
|
1146
1325
|
google: "google";
|
|
1147
1326
|
microsoft: "microsoft";
|
|
@@ -1151,7 +1330,7 @@ export declare const zGetV1UsersUserIdOauthLinksData: z.ZodObject<{
|
|
|
1151
1330
|
/**
|
|
1152
1331
|
* Auth urls for the oauth providers
|
|
1153
1332
|
*/
|
|
1154
|
-
export declare const
|
|
1333
|
+
export declare const zGetV1UsersByUserIdOauthLinksResponse: z.ZodObject<{
|
|
1155
1334
|
data: z.ZodArray<z.ZodObject<{
|
|
1156
1335
|
link: z.ZodURL;
|
|
1157
1336
|
provider: z.ZodEnum<{
|
|
@@ -1160,7 +1339,7 @@ export declare const zGetV1UsersUserIdOauthLinksResponse: z.ZodObject<{
|
|
|
1160
1339
|
}>;
|
|
1161
1340
|
}, z.core.$strip>>;
|
|
1162
1341
|
}, z.core.$strip>;
|
|
1163
|
-
export declare const
|
|
1342
|
+
export declare const zGetV1UsersByUserIdOauthByProviderLinkData: z.ZodObject<{
|
|
1164
1343
|
body: z.ZodOptional<z.ZodNever>;
|
|
1165
1344
|
path: z.ZodObject<{
|
|
1166
1345
|
provider: z.ZodEnum<{
|
|
@@ -1171,24 +1350,24 @@ export declare const zGetV1UsersUserIdOauthProviderLinkData: z.ZodObject<{
|
|
|
1171
1350
|
}, z.core.$strip>;
|
|
1172
1351
|
query: z.ZodObject<{
|
|
1173
1352
|
accessType: z.ZodUnion<readonly [z.ZodLiteral<"offline">, z.ZodLiteral<"online">]>;
|
|
1174
|
-
scope: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"edit">, z.ZodLiteral<"free-busy">]>;
|
|
1353
|
+
scope: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"edit">, z.ZodLiteral<"free-busy">, z.ZodLiteral<"read">, z.ZodLiteral<"write">]>;
|
|
1175
1354
|
redirectUrl: z.ZodOptional<z.ZodURL>;
|
|
1176
1355
|
}, z.core.$strip>;
|
|
1177
1356
|
}, z.core.$strip>;
|
|
1178
1357
|
/**
|
|
1179
1358
|
* Auth url for the oauth provider
|
|
1180
1359
|
*/
|
|
1181
|
-
export declare const
|
|
1360
|
+
export declare const zGetV1UsersByUserIdOauthByProviderLinkResponse: z.ZodObject<{
|
|
1182
1361
|
data: z.ZodObject<{
|
|
1183
1362
|
link: z.ZodURL;
|
|
1184
1363
|
}, z.core.$strip>;
|
|
1185
1364
|
}, z.core.$strip>;
|
|
1186
|
-
export declare const
|
|
1187
|
-
body: z.
|
|
1365
|
+
export declare const zPostV1UsersOauthByProviderVerifyData: z.ZodObject<{
|
|
1366
|
+
body: z.ZodObject<{
|
|
1188
1367
|
code: z.ZodString;
|
|
1189
1368
|
scope: z.ZodArray<z.ZodString>;
|
|
1190
1369
|
state: z.ZodString;
|
|
1191
|
-
}, z.core.$strip
|
|
1370
|
+
}, z.core.$strip>;
|
|
1192
1371
|
path: z.ZodObject<{
|
|
1193
1372
|
provider: z.ZodEnum<{
|
|
1194
1373
|
google: "google";
|
|
@@ -1199,7 +1378,7 @@ export declare const zPostV1UsersOauthProviderVerifyData: z.ZodObject<{
|
|
|
1199
1378
|
redirectUrl: z.ZodOptional<z.ZodURL>;
|
|
1200
1379
|
}, z.core.$strip>>;
|
|
1201
1380
|
}, z.core.$strip>;
|
|
1202
|
-
export declare const
|
|
1381
|
+
export declare const zDeleteV1UsersByUserIdOauthByProviderData: z.ZodObject<{
|
|
1203
1382
|
body: z.ZodOptional<z.ZodNever>;
|
|
1204
1383
|
path: z.ZodObject<{
|
|
1205
1384
|
provider: z.ZodEnum<{
|
|
@@ -1210,7 +1389,7 @@ export declare const zDeleteV1UsersUserIdOauthProviderData: z.ZodObject<{
|
|
|
1210
1389
|
}, z.core.$strip>;
|
|
1211
1390
|
query: z.ZodOptional<z.ZodNever>;
|
|
1212
1391
|
}, z.core.$strip>;
|
|
1213
|
-
export declare const
|
|
1392
|
+
export declare const zGetV1UsersByUserIdOauthByProviderData: z.ZodObject<{
|
|
1214
1393
|
body: z.ZodOptional<z.ZodNever>;
|
|
1215
1394
|
path: z.ZodObject<{
|
|
1216
1395
|
provider: z.ZodEnum<{
|
|
@@ -1226,7 +1405,7 @@ export declare const zGetV1UsersUserIdOauthProviderData: z.ZodObject<{
|
|
|
1226
1405
|
/**
|
|
1227
1406
|
* OAuth connection of the user
|
|
1228
1407
|
*/
|
|
1229
|
-
export declare const
|
|
1408
|
+
export declare const zGetV1UsersByUserIdOauthByProviderResponse: z.ZodObject<{
|
|
1230
1409
|
data: z.ZodObject<{
|
|
1231
1410
|
alive: z.ZodBoolean;
|
|
1232
1411
|
email: z.ZodUnion<readonly [z.ZodEmail, z.ZodNull]>;
|
|
@@ -1236,18 +1415,19 @@ export declare const zGetV1UsersUserIdOauthProviderResponse: z.ZodObject<{
|
|
|
1236
1415
|
microsoft: "microsoft";
|
|
1237
1416
|
}>;
|
|
1238
1417
|
scope: z.ZodArray<z.ZodString>;
|
|
1418
|
+
type: z.ZodString;
|
|
1239
1419
|
accessToken: z.ZodOptional<z.ZodUnknown>;
|
|
1240
1420
|
refreshToken: z.ZodOptional<z.ZodUnknown>;
|
|
1241
1421
|
}, z.core.$strip>;
|
|
1242
1422
|
}, z.core.$strip>;
|
|
1243
|
-
export declare const
|
|
1244
|
-
body: z.
|
|
1423
|
+
export declare const zPostV1UsersByUserIdOauthByProviderData: z.ZodObject<{
|
|
1424
|
+
body: z.ZodObject<{
|
|
1245
1425
|
accessToken: z.ZodString;
|
|
1246
1426
|
email: z.ZodUnion<readonly [z.ZodEmail, z.ZodNull]>;
|
|
1247
1427
|
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
1248
1428
|
refreshToken: z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>;
|
|
1249
1429
|
scope: z.ZodArray<z.ZodString>;
|
|
1250
|
-
}, z.core.$strip
|
|
1430
|
+
}, z.core.$strip>;
|
|
1251
1431
|
path: z.ZodObject<{
|
|
1252
1432
|
provider: z.ZodEnum<{
|
|
1253
1433
|
google: "google";
|
|
@@ -1260,7 +1440,7 @@ export declare const zPostV1UsersUserIdOauthProviderData: z.ZodObject<{
|
|
|
1260
1440
|
/**
|
|
1261
1441
|
* OAuth connection created
|
|
1262
1442
|
*/
|
|
1263
|
-
export declare const
|
|
1443
|
+
export declare const zPostV1UsersByUserIdOauthByProviderResponse: z.ZodObject<{
|
|
1264
1444
|
data: z.ZodObject<{
|
|
1265
1445
|
alive: z.ZodBoolean;
|
|
1266
1446
|
email: z.ZodUnion<readonly [z.ZodEmail, z.ZodNull]>;
|
|
@@ -1270,11 +1450,12 @@ export declare const zPostV1UsersUserIdOauthProviderResponse: z.ZodObject<{
|
|
|
1270
1450
|
microsoft: "microsoft";
|
|
1271
1451
|
}>;
|
|
1272
1452
|
scope: z.ZodArray<z.ZodString>;
|
|
1453
|
+
type: z.ZodString;
|
|
1273
1454
|
accessToken: z.ZodOptional<z.ZodUnknown>;
|
|
1274
1455
|
refreshToken: z.ZodOptional<z.ZodUnknown>;
|
|
1275
1456
|
}, z.core.$strip>;
|
|
1276
1457
|
}, z.core.$strip>;
|
|
1277
|
-
export declare const
|
|
1458
|
+
export declare const zGetV1UsersByUserIdOauthByProviderTokenData: z.ZodObject<{
|
|
1278
1459
|
body: z.ZodOptional<z.ZodNever>;
|
|
1279
1460
|
path: z.ZodObject<{
|
|
1280
1461
|
provider: z.ZodEnum<{
|
|
@@ -1288,34 +1469,34 @@ export declare const zGetV1UsersUserIdOauthProviderTokenData: z.ZodObject<{
|
|
|
1288
1469
|
/**
|
|
1289
1470
|
* Access token
|
|
1290
1471
|
*/
|
|
1291
|
-
export declare const
|
|
1472
|
+
export declare const zGetV1UsersByUserIdOauthByProviderTokenResponse: z.ZodObject<{
|
|
1292
1473
|
data: z.ZodObject<{
|
|
1293
1474
|
accessToken: z.ZodString;
|
|
1294
1475
|
}, z.core.$strip>;
|
|
1295
1476
|
}, z.core.$strip>;
|
|
1296
|
-
export declare const
|
|
1477
|
+
export declare const zGetV1UsersByUserIdSchedulingData: z.ZodObject<{
|
|
1297
1478
|
body: z.ZodOptional<z.ZodNever>;
|
|
1298
1479
|
path: z.ZodObject<{
|
|
1299
1480
|
userId: z.ZodString;
|
|
1300
1481
|
}, z.core.$strip>;
|
|
1301
1482
|
query: z.ZodObject<{
|
|
1302
1483
|
end: z.ZodString;
|
|
1303
|
-
padding: z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>;
|
|
1304
|
-
slotDuration: z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>;
|
|
1305
1484
|
start: z.ZodString;
|
|
1306
1485
|
earliestTimeEachDay: z.ZodOptional<z.ZodString>;
|
|
1307
1486
|
latestTimeEachDay: z.ZodOptional<z.ZodString>;
|
|
1308
|
-
maxOverlaps: z.
|
|
1487
|
+
maxOverlaps: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1488
|
+
padding: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1309
1489
|
provider: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodEnum<{
|
|
1310
1490
|
google: "google";
|
|
1311
1491
|
microsoft: "microsoft";
|
|
1312
1492
|
}>>, z.ZodLiteral<"google">, z.ZodLiteral<"microsoft">]>>;
|
|
1493
|
+
slotDuration: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1313
1494
|
}, z.core.$strip>;
|
|
1314
1495
|
}, z.core.$strip>;
|
|
1315
1496
|
/**
|
|
1316
1497
|
* Available time slots
|
|
1317
1498
|
*/
|
|
1318
|
-
export declare const
|
|
1499
|
+
export declare const zGetV1UsersByUserIdSchedulingResponse: z.ZodObject<{
|
|
1319
1500
|
data: z.ZodObject<{
|
|
1320
1501
|
availableSlots: z.ZodArray<z.ZodObject<{
|
|
1321
1502
|
end: z.ZodISODateTime;
|
|
@@ -1332,8 +1513,8 @@ export declare const zGetV1UsersUserIdSchedulingResponse: z.ZodObject<{
|
|
|
1332
1513
|
}, z.core.$strip>;
|
|
1333
1514
|
}, z.core.$strip>;
|
|
1334
1515
|
}, z.core.$strip>;
|
|
1335
|
-
export declare const
|
|
1336
|
-
body: z.
|
|
1516
|
+
export declare const zPostV1UsersByUserIdSchedulingData: z.ZodObject<{
|
|
1517
|
+
body: z.ZodObject<{
|
|
1337
1518
|
schedules: z.ZodArray<z.ZodObject<{
|
|
1338
1519
|
days: z.ZodArray<z.ZodEnum<{
|
|
1339
1520
|
friday: "friday";
|
|
@@ -1347,26 +1528,26 @@ export declare const zPostV1UsersUserIdSchedulingData: z.ZodObject<{
|
|
|
1347
1528
|
end: z.ZodString;
|
|
1348
1529
|
start: z.ZodString;
|
|
1349
1530
|
}, z.core.$strip>>;
|
|
1350
|
-
}, z.core.$strip
|
|
1531
|
+
}, z.core.$strip>;
|
|
1351
1532
|
path: z.ZodObject<{
|
|
1352
1533
|
userId: z.ZodString;
|
|
1353
1534
|
}, z.core.$strip>;
|
|
1354
1535
|
query: z.ZodObject<{
|
|
1355
1536
|
end: z.ZodString;
|
|
1356
|
-
padding: z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>;
|
|
1357
|
-
slotDuration: z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>;
|
|
1358
1537
|
start: z.ZodString;
|
|
1359
|
-
maxOverlaps: z.
|
|
1538
|
+
maxOverlaps: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1539
|
+
padding: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1360
1540
|
provider: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodEnum<{
|
|
1361
1541
|
google: "google";
|
|
1362
1542
|
microsoft: "microsoft";
|
|
1363
1543
|
}>>, z.ZodLiteral<"google">, z.ZodLiteral<"microsoft">]>>;
|
|
1544
|
+
slotDuration: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1364
1545
|
}, z.core.$strip>;
|
|
1365
1546
|
}, z.core.$strip>;
|
|
1366
1547
|
/**
|
|
1367
1548
|
* Available time slots
|
|
1368
1549
|
*/
|
|
1369
|
-
export declare const
|
|
1550
|
+
export declare const zPostV1UsersByUserIdSchedulingResponse: z.ZodObject<{
|
|
1370
1551
|
data: z.ZodObject<{
|
|
1371
1552
|
availableSlots: z.ZodArray<z.ZodObject<{
|
|
1372
1553
|
end: z.ZodISODateTime;
|
|
@@ -1384,11 +1565,11 @@ export declare const zPostV1UsersUserIdSchedulingResponse: z.ZodObject<{
|
|
|
1384
1565
|
}, z.core.$strip>;
|
|
1385
1566
|
}, z.core.$strip>;
|
|
1386
1567
|
export declare const zPostV1UsersSchedulingData: z.ZodObject<{
|
|
1387
|
-
body: z.
|
|
1568
|
+
body: z.ZodObject<{
|
|
1388
1569
|
users: z.ZodArray<z.ZodObject<{
|
|
1389
1570
|
id: z.ZodString;
|
|
1390
|
-
calendarIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1391
|
-
schedules: z.ZodOptional<z.
|
|
1571
|
+
calendarIds: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1572
|
+
schedules: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1392
1573
|
days: z.ZodArray<z.ZodEnum<{
|
|
1393
1574
|
friday: "friday";
|
|
1394
1575
|
monday: "monday";
|
|
@@ -1400,24 +1581,36 @@ export declare const zPostV1UsersSchedulingData: z.ZodObject<{
|
|
|
1400
1581
|
}>>;
|
|
1401
1582
|
end: z.ZodString;
|
|
1402
1583
|
start: z.ZodString;
|
|
1403
|
-
}, z.core.$strip
|
|
1584
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1585
|
+
days: z.ZodArray<z.ZodEnum<{
|
|
1586
|
+
friday: "friday";
|
|
1587
|
+
monday: "monday";
|
|
1588
|
+
saturday: "saturday";
|
|
1589
|
+
sunday: "sunday";
|
|
1590
|
+
thursday: "thursday";
|
|
1591
|
+
tuesday: "tuesday";
|
|
1592
|
+
wednesday: "wednesday";
|
|
1593
|
+
}>>;
|
|
1594
|
+
end: z.ZodString;
|
|
1595
|
+
start: z.ZodString;
|
|
1596
|
+
}, z.core.$strip>>]>>;
|
|
1404
1597
|
}, z.core.$strip>>;
|
|
1405
|
-
}, z.core.$strip
|
|
1598
|
+
}, z.core.$strip>;
|
|
1406
1599
|
path: z.ZodOptional<z.ZodNever>;
|
|
1407
1600
|
query: z.ZodObject<{
|
|
1408
1601
|
end: z.ZodString;
|
|
1409
|
-
padding: z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>;
|
|
1410
|
-
slotDuration: z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>;
|
|
1411
1602
|
start: z.ZodString;
|
|
1412
|
-
maxOverlaps: z.
|
|
1603
|
+
maxOverlaps: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1604
|
+
padding: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1413
1605
|
provider: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodEnum<{
|
|
1414
1606
|
google: "google";
|
|
1415
1607
|
microsoft: "microsoft";
|
|
1416
1608
|
}>>, z.ZodLiteral<"google">, z.ZodLiteral<"microsoft">]>>;
|
|
1609
|
+
slotDuration: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1417
1610
|
}, z.core.$strip>;
|
|
1418
1611
|
}, z.core.$strip>;
|
|
1419
1612
|
/**
|
|
1420
|
-
* Available time slots for each user
|
|
1613
|
+
* Available time slots for each user, plus the calendars that could not be read
|
|
1421
1614
|
*/
|
|
1422
1615
|
export declare const zPostV1UsersSchedulingResponse: z.ZodObject<{
|
|
1423
1616
|
data: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1425,6 +1618,26 @@ export declare const zPostV1UsersSchedulingResponse: z.ZodObject<{
|
|
|
1425
1618
|
end: z.ZodISODateTime;
|
|
1426
1619
|
start: z.ZodISODateTime;
|
|
1427
1620
|
}, z.core.$strip>>;
|
|
1621
|
+
failedCalendars: z.ZodArray<z.ZodObject<{
|
|
1622
|
+
calendarId: z.ZodString;
|
|
1623
|
+
message: z.ZodString;
|
|
1624
|
+
provider: z.ZodEnum<{
|
|
1625
|
+
google: "google";
|
|
1626
|
+
microsoft: "microsoft";
|
|
1627
|
+
}>;
|
|
1628
|
+
reason: z.ZodEnum<{
|
|
1629
|
+
accessDenied: "accessDenied";
|
|
1630
|
+
authorizationInvalid: "authorizationInvalid";
|
|
1631
|
+
insufficientScopes: "insufficientScopes";
|
|
1632
|
+
invalidCalendarId: "invalidCalendarId";
|
|
1633
|
+
mailboxUnavailable: "mailboxUnavailable";
|
|
1634
|
+
notFound: "notFound";
|
|
1635
|
+
providerError: "providerError";
|
|
1636
|
+
providerNotConfigured: "providerNotConfigured";
|
|
1637
|
+
rateLimited: "rateLimited";
|
|
1638
|
+
tooManyCalendars: "tooManyCalendars";
|
|
1639
|
+
}>;
|
|
1640
|
+
}, z.core.$strip>>;
|
|
1428
1641
|
options: z.ZodObject<{
|
|
1429
1642
|
end: z.ZodISODateTime;
|
|
1430
1643
|
maxOverlaps: z.ZodInt;
|
|
@@ -1434,9 +1647,10 @@ export declare const zPostV1UsersSchedulingResponse: z.ZodObject<{
|
|
|
1434
1647
|
earliestTimeEachDay: z.ZodOptional<z.ZodString>;
|
|
1435
1648
|
latestTimeEachDay: z.ZodOptional<z.ZodString>;
|
|
1436
1649
|
}, z.core.$strip>;
|
|
1650
|
+
status: z.ZodLiteral<"ok">;
|
|
1437
1651
|
userId: z.ZodString;
|
|
1438
|
-
calendarIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1439
|
-
schedules: z.ZodOptional<z.
|
|
1652
|
+
calendarIds: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1653
|
+
schedules: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1440
1654
|
days: z.ZodArray<z.ZodEnum<{
|
|
1441
1655
|
friday: "friday";
|
|
1442
1656
|
monday: "monday";
|
|
@@ -1448,10 +1662,35 @@ export declare const zPostV1UsersSchedulingResponse: z.ZodObject<{
|
|
|
1448
1662
|
}>>;
|
|
1449
1663
|
end: z.ZodString;
|
|
1450
1664
|
start: z.ZodString;
|
|
1451
|
-
}, z.core.$strip
|
|
1665
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1666
|
+
days: z.ZodArray<z.ZodEnum<{
|
|
1667
|
+
friday: "friday";
|
|
1668
|
+
monday: "monday";
|
|
1669
|
+
saturday: "saturday";
|
|
1670
|
+
sunday: "sunday";
|
|
1671
|
+
thursday: "thursday";
|
|
1672
|
+
tuesday: "tuesday";
|
|
1673
|
+
wednesday: "wednesday";
|
|
1674
|
+
}>>;
|
|
1675
|
+
end: z.ZodString;
|
|
1676
|
+
start: z.ZodString;
|
|
1677
|
+
}, z.core.$strip>>]>>;
|
|
1452
1678
|
}, z.core.$strip>, z.ZodObject<{
|
|
1453
1679
|
error: z.ZodString;
|
|
1680
|
+
status: z.ZodLiteral<"error">;
|
|
1454
1681
|
userId: z.ZodString;
|
|
1682
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1683
|
+
accessDenied: "accessDenied";
|
|
1684
|
+
authorizationInvalid: "authorizationInvalid";
|
|
1685
|
+
insufficientScopes: "insufficientScopes";
|
|
1686
|
+
invalidCalendarId: "invalidCalendarId";
|
|
1687
|
+
mailboxUnavailable: "mailboxUnavailable";
|
|
1688
|
+
notFound: "notFound";
|
|
1689
|
+
providerError: "providerError";
|
|
1690
|
+
providerNotConfigured: "providerNotConfigured";
|
|
1691
|
+
rateLimited: "rateLimited";
|
|
1692
|
+
tooManyCalendars: "tooManyCalendars";
|
|
1693
|
+
}>>;
|
|
1455
1694
|
}, z.core.$strip>]>>;
|
|
1456
1695
|
}, z.core.$strip>;
|
|
1457
1696
|
//# sourceMappingURL=zod.gen.d.ts.map
|