recal-sdk 1.1.0 → 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 +52 -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 +50 -25
- package/dist/client/transformers.gen.js.map +1 -1
- package/dist/client/types.gen.d.ts +573 -214
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/zod.gen.d.ts +297 -96
- package/dist/client/zod.gen.d.ts.map +1 -1
- package/dist/client/zod.gen.js +137 -96
- 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 +7 -5
- package/dist/services/scheduling.service.d.ts.map +1 -1
- package/dist/services/scheduling.service.js +3 -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 +1 -1
package/dist/client/zod.gen.d.ts
CHANGED
|
@@ -41,6 +41,83 @@ export declare const zTimeRange: z.ZodObject<{
|
|
|
41
41
|
end: z.ZodISODateTime;
|
|
42
42
|
start: z.ZodISODateTime;
|
|
43
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>;
|
|
44
121
|
/**
|
|
45
122
|
* Recal Normalized Calendar
|
|
46
123
|
*/
|
|
@@ -218,10 +295,10 @@ export declare const zGetV1OrganizationsResponse: z.ZodObject<{
|
|
|
218
295
|
}, z.core.$strip>>;
|
|
219
296
|
}, z.core.$strip>;
|
|
220
297
|
export declare const zPostV1OrganizationsData: z.ZodObject<{
|
|
221
|
-
body: z.
|
|
298
|
+
body: z.ZodObject<{
|
|
222
299
|
name: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
223
300
|
slug: z.ZodString;
|
|
224
|
-
}, z.core.$strip
|
|
301
|
+
}, z.core.$strip>;
|
|
225
302
|
path: z.ZodOptional<z.ZodNever>;
|
|
226
303
|
query: z.ZodOptional<z.ZodNever>;
|
|
227
304
|
}, z.core.$strip>;
|
|
@@ -239,7 +316,7 @@ export declare const zPostV1OrganizationsResponse: z.ZodObject<{
|
|
|
239
316
|
}, z.core.$strip>>>;
|
|
240
317
|
}, z.core.$strip>;
|
|
241
318
|
}, z.core.$strip>;
|
|
242
|
-
export declare const
|
|
319
|
+
export declare const zDeleteV1OrganizationsByOrgSlugData: z.ZodObject<{
|
|
243
320
|
body: z.ZodOptional<z.ZodNever>;
|
|
244
321
|
path: z.ZodObject<{
|
|
245
322
|
orgSlug: z.ZodString;
|
|
@@ -249,7 +326,7 @@ export declare const zDeleteV1OrganizationsOrgSlugData: z.ZodObject<{
|
|
|
249
326
|
/**
|
|
250
327
|
* Deleted organization
|
|
251
328
|
*/
|
|
252
|
-
export declare const
|
|
329
|
+
export declare const zDeleteV1OrganizationsByOrgSlugResponse: z.ZodObject<{
|
|
253
330
|
data: z.ZodObject<{
|
|
254
331
|
createdAt: z.ZodISODateTime;
|
|
255
332
|
name: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
@@ -260,7 +337,7 @@ export declare const zDeleteV1OrganizationsOrgSlugResponse: z.ZodObject<{
|
|
|
260
337
|
}, z.core.$strip>>>;
|
|
261
338
|
}, z.core.$strip>;
|
|
262
339
|
}, z.core.$strip>;
|
|
263
|
-
export declare const
|
|
340
|
+
export declare const zGetV1OrganizationsByOrgSlugData: z.ZodObject<{
|
|
264
341
|
body: z.ZodOptional<z.ZodNever>;
|
|
265
342
|
path: z.ZodObject<{
|
|
266
343
|
orgSlug: z.ZodString;
|
|
@@ -270,7 +347,7 @@ export declare const zGetV1OrganizationsOrgSlugData: z.ZodObject<{
|
|
|
270
347
|
/**
|
|
271
348
|
* Organization
|
|
272
349
|
*/
|
|
273
|
-
export declare const
|
|
350
|
+
export declare const zGetV1OrganizationsByOrgSlugResponse: z.ZodObject<{
|
|
274
351
|
data: z.ZodObject<{
|
|
275
352
|
createdAt: z.ZodISODateTime;
|
|
276
353
|
name: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
@@ -281,11 +358,11 @@ export declare const zGetV1OrganizationsOrgSlugResponse: z.ZodObject<{
|
|
|
281
358
|
}, z.core.$strip>>>;
|
|
282
359
|
}, z.core.$strip>;
|
|
283
360
|
}, z.core.$strip>;
|
|
284
|
-
export declare const
|
|
285
|
-
body: z.
|
|
361
|
+
export declare const zPutV1OrganizationsByOrgSlugData: z.ZodObject<{
|
|
362
|
+
body: z.ZodObject<{
|
|
286
363
|
name: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
287
364
|
slug: z.ZodString;
|
|
288
|
-
}, z.core.$strip
|
|
365
|
+
}, z.core.$strip>;
|
|
289
366
|
path: z.ZodObject<{
|
|
290
367
|
orgSlug: z.ZodString;
|
|
291
368
|
}, z.core.$strip>;
|
|
@@ -294,7 +371,7 @@ export declare const zPutV1OrganizationsOrgSlugData: z.ZodObject<{
|
|
|
294
371
|
/**
|
|
295
372
|
* Updated organization
|
|
296
373
|
*/
|
|
297
|
-
export declare const
|
|
374
|
+
export declare const zPutV1OrganizationsByOrgSlugResponse: z.ZodObject<{
|
|
298
375
|
data: z.ZodObject<{
|
|
299
376
|
createdAt: z.ZodISODateTime;
|
|
300
377
|
name: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
@@ -305,19 +382,19 @@ export declare const zPutV1OrganizationsOrgSlugResponse: z.ZodObject<{
|
|
|
305
382
|
}, z.core.$strip>>>;
|
|
306
383
|
}, z.core.$strip>;
|
|
307
384
|
}, z.core.$strip>;
|
|
308
|
-
export declare const
|
|
309
|
-
body: z.
|
|
385
|
+
export declare const zDeleteV1OrganizationsByOrgSlugMembersData: z.ZodObject<{
|
|
386
|
+
body: z.ZodObject<{
|
|
310
387
|
userIds: z.ZodArray<z.ZodString>;
|
|
311
|
-
}, z.core.$strip
|
|
388
|
+
}, z.core.$strip>;
|
|
312
389
|
path: z.ZodObject<{
|
|
313
390
|
orgSlug: z.ZodString;
|
|
314
391
|
}, z.core.$strip>;
|
|
315
392
|
query: z.ZodOptional<z.ZodNever>;
|
|
316
393
|
}, z.core.$strip>;
|
|
317
|
-
export declare const
|
|
394
|
+
export declare const zDeleteV1OrganizationsByOrgSlugMembersResponse: z.ZodObject<{
|
|
318
395
|
data: z.ZodString;
|
|
319
396
|
}, z.core.$strip>;
|
|
320
|
-
export declare const
|
|
397
|
+
export declare const zGetV1OrganizationsByOrgSlugMembersData: z.ZodObject<{
|
|
321
398
|
body: z.ZodOptional<z.ZodNever>;
|
|
322
399
|
path: z.ZodObject<{
|
|
323
400
|
orgSlug: z.ZodString;
|
|
@@ -332,7 +409,7 @@ export declare const zGetV1OrganizationsOrgSlugMembersData: z.ZodObject<{
|
|
|
332
409
|
/**
|
|
333
410
|
* All members of an organization
|
|
334
411
|
*/
|
|
335
|
-
export declare const
|
|
412
|
+
export declare const zGetV1OrganizationsByOrgSlugMembersResponse: z.ZodObject<{
|
|
336
413
|
data: z.ZodArray<z.ZodObject<{
|
|
337
414
|
createdAt: z.ZodISODateTime;
|
|
338
415
|
id: z.ZodString;
|
|
@@ -360,21 +437,21 @@ export declare const zGetV1OrganizationsOrgSlugMembersResponse: z.ZodObject<{
|
|
|
360
437
|
}, z.core.$strip>>>;
|
|
361
438
|
}, z.core.$strip>>;
|
|
362
439
|
}, z.core.$strip>;
|
|
363
|
-
export declare const
|
|
364
|
-
body: z.
|
|
440
|
+
export declare const zPostV1OrganizationsByOrgSlugMembersData: z.ZodObject<{
|
|
441
|
+
body: z.ZodObject<{
|
|
365
442
|
userIds: z.ZodArray<z.ZodString>;
|
|
366
|
-
}, z.core.$strip
|
|
443
|
+
}, z.core.$strip>;
|
|
367
444
|
path: z.ZodObject<{
|
|
368
445
|
orgSlug: z.ZodString;
|
|
369
446
|
}, z.core.$strip>;
|
|
370
447
|
query: z.ZodOptional<z.ZodNever>;
|
|
371
448
|
}, z.core.$strip>;
|
|
372
|
-
export declare const
|
|
449
|
+
export declare const zPostV1OrganizationsByOrgSlugMembersResponse: z.ZodUnion<readonly [z.ZodObject<{
|
|
373
450
|
data: z.ZodString;
|
|
374
451
|
}, z.core.$strip>, z.ZodObject<{
|
|
375
452
|
data: z.ZodString;
|
|
376
453
|
}, z.core.$strip>]>;
|
|
377
|
-
export declare const
|
|
454
|
+
export declare const zGetV1OrganizationsByOrgSlugCalendarBusyData: z.ZodObject<{
|
|
378
455
|
body: z.ZodOptional<z.ZodNever>;
|
|
379
456
|
path: z.ZodObject<{
|
|
380
457
|
orgSlug: z.ZodString;
|
|
@@ -390,15 +467,51 @@ export declare const zGetV1OrganizationsOrgSlugCalendarBusyData: z.ZodObject<{
|
|
|
390
467
|
}, z.core.$strip>;
|
|
391
468
|
}, z.core.$strip>;
|
|
392
469
|
/**
|
|
393
|
-
* 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
|
|
394
471
|
*/
|
|
395
|
-
export declare const
|
|
472
|
+
export declare const zGetV1OrganizationsByOrgSlugCalendarBusyResponse: z.ZodObject<{
|
|
396
473
|
data: z.ZodArray<z.ZodObject<{
|
|
397
474
|
end: z.ZodISODateTime;
|
|
398
475
|
start: z.ZodISODateTime;
|
|
399
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>>;
|
|
400
513
|
}, z.core.$strip>;
|
|
401
|
-
export declare const
|
|
514
|
+
export declare const zGetV1OrganizationsByOrgSlugSchedulingData: z.ZodObject<{
|
|
402
515
|
body: z.ZodOptional<z.ZodNever>;
|
|
403
516
|
path: z.ZodObject<{
|
|
404
517
|
orgSlug: z.ZodString;
|
|
@@ -418,9 +531,9 @@ export declare const zGetV1OrganizationsOrgSlugSchedulingData: z.ZodObject<{
|
|
|
418
531
|
}, z.core.$strip>;
|
|
419
532
|
}, z.core.$strip>;
|
|
420
533
|
/**
|
|
421
|
-
* Available time slots
|
|
534
|
+
* Available time slots, plus the users that could not be read
|
|
422
535
|
*/
|
|
423
|
-
export declare const
|
|
536
|
+
export declare const zGetV1OrganizationsByOrgSlugSchedulingResponse: z.ZodObject<{
|
|
424
537
|
data: z.ZodObject<{
|
|
425
538
|
availableSlots: z.ZodArray<z.ZodObject<{
|
|
426
539
|
end: z.ZodISODateTime;
|
|
@@ -437,6 +550,42 @@ export declare const zGetV1OrganizationsOrgSlugSchedulingResponse: z.ZodObject<{
|
|
|
437
550
|
latestTimeEachDay: z.ZodOptional<z.ZodString>;
|
|
438
551
|
}, z.core.$strip>;
|
|
439
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>>;
|
|
440
589
|
}, z.core.$strip>;
|
|
441
590
|
export declare const zGetV1UsersData: z.ZodObject<{
|
|
442
591
|
body: z.ZodOptional<z.ZodNever>;
|
|
@@ -475,10 +624,10 @@ export declare const zGetV1UsersResponse: z.ZodObject<{
|
|
|
475
624
|
}, z.core.$strip>>;
|
|
476
625
|
}, z.core.$strip>;
|
|
477
626
|
export declare const zPostV1UsersData: z.ZodObject<{
|
|
478
|
-
body: z.
|
|
627
|
+
body: z.ZodObject<{
|
|
479
628
|
id: z.ZodString;
|
|
480
629
|
organizationSlugs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
481
|
-
}, z.core.$strip
|
|
630
|
+
}, z.core.$strip>;
|
|
482
631
|
path: z.ZodOptional<z.ZodNever>;
|
|
483
632
|
query: z.ZodOptional<z.ZodNever>;
|
|
484
633
|
}, z.core.$strip>;
|
|
@@ -513,7 +662,7 @@ export declare const zPostV1UsersResponse: z.ZodObject<{
|
|
|
513
662
|
}, z.core.$strip>>>;
|
|
514
663
|
}, z.core.$strip>;
|
|
515
664
|
}, z.core.$strip>;
|
|
516
|
-
export declare const
|
|
665
|
+
export declare const zDeleteV1UsersByUserIdData: z.ZodObject<{
|
|
517
666
|
body: z.ZodOptional<z.ZodNever>;
|
|
518
667
|
path: z.ZodObject<{
|
|
519
668
|
userId: z.ZodString;
|
|
@@ -523,7 +672,7 @@ export declare const zDeleteV1UsersUserIdData: z.ZodObject<{
|
|
|
523
672
|
/**
|
|
524
673
|
* User
|
|
525
674
|
*/
|
|
526
|
-
export declare const
|
|
675
|
+
export declare const zDeleteV1UsersByUserIdResponse: z.ZodObject<{
|
|
527
676
|
data: z.ZodObject<{
|
|
528
677
|
createdAt: z.ZodISODateTime;
|
|
529
678
|
id: z.ZodString;
|
|
@@ -551,7 +700,7 @@ export declare const zDeleteV1UsersUserIdResponse: z.ZodObject<{
|
|
|
551
700
|
}, z.core.$strip>>>;
|
|
552
701
|
}, z.core.$strip>;
|
|
553
702
|
}, z.core.$strip>;
|
|
554
|
-
export declare const
|
|
703
|
+
export declare const zGetV1UsersByUserIdData: z.ZodObject<{
|
|
555
704
|
body: z.ZodOptional<z.ZodNever>;
|
|
556
705
|
path: z.ZodObject<{
|
|
557
706
|
userId: z.ZodString;
|
|
@@ -566,7 +715,7 @@ export declare const zGetV1UsersUserIdData: z.ZodObject<{
|
|
|
566
715
|
/**
|
|
567
716
|
* User
|
|
568
717
|
*/
|
|
569
|
-
export declare const
|
|
718
|
+
export declare const zGetV1UsersByUserIdResponse: z.ZodObject<{
|
|
570
719
|
data: z.ZodObject<{
|
|
571
720
|
createdAt: z.ZodISODateTime;
|
|
572
721
|
id: z.ZodString;
|
|
@@ -594,10 +743,10 @@ export declare const zGetV1UsersUserIdResponse: z.ZodObject<{
|
|
|
594
743
|
}, z.core.$strip>>>;
|
|
595
744
|
}, z.core.$strip>;
|
|
596
745
|
}, z.core.$strip>;
|
|
597
|
-
export declare const
|
|
598
|
-
body: z.
|
|
746
|
+
export declare const zPutV1UsersByUserIdData: z.ZodObject<{
|
|
747
|
+
body: z.ZodObject<{
|
|
599
748
|
userId: z.ZodString;
|
|
600
|
-
}, z.core.$strip
|
|
749
|
+
}, z.core.$strip>;
|
|
601
750
|
path: z.ZodObject<{
|
|
602
751
|
userId: z.ZodString;
|
|
603
752
|
}, z.core.$strip>;
|
|
@@ -606,7 +755,7 @@ export declare const zPutV1UsersUserIdData: z.ZodObject<{
|
|
|
606
755
|
/**
|
|
607
756
|
* User
|
|
608
757
|
*/
|
|
609
|
-
export declare const
|
|
758
|
+
export declare const zPutV1UsersByUserIdResponse: z.ZodObject<{
|
|
610
759
|
data: z.ZodObject<{
|
|
611
760
|
createdAt: z.ZodISODateTime;
|
|
612
761
|
id: z.ZodString;
|
|
@@ -634,7 +783,7 @@ export declare const zPutV1UsersUserIdResponse: z.ZodObject<{
|
|
|
634
783
|
}, z.core.$strip>>>;
|
|
635
784
|
}, z.core.$strip>;
|
|
636
785
|
}, z.core.$strip>;
|
|
637
|
-
export declare const
|
|
786
|
+
export declare const zGetV1UsersByUserIdOrganizationsData: z.ZodObject<{
|
|
638
787
|
body: z.ZodOptional<z.ZodNever>;
|
|
639
788
|
path: z.ZodObject<{
|
|
640
789
|
userId: z.ZodString;
|
|
@@ -644,7 +793,7 @@ export declare const zGetV1UsersUserIdOrganizationsData: z.ZodObject<{
|
|
|
644
793
|
/**
|
|
645
794
|
* List of organizations
|
|
646
795
|
*/
|
|
647
|
-
export declare const
|
|
796
|
+
export declare const zGetV1UsersByUserIdOrganizationsResponse: z.ZodObject<{
|
|
648
797
|
data: z.ZodArray<z.ZodObject<{
|
|
649
798
|
createdAt: z.ZodISODateTime;
|
|
650
799
|
name: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
@@ -655,7 +804,7 @@ export declare const zGetV1UsersUserIdOrganizationsResponse: z.ZodObject<{
|
|
|
655
804
|
}, z.core.$strip>>>;
|
|
656
805
|
}, z.core.$strip>>;
|
|
657
806
|
}, z.core.$strip>;
|
|
658
|
-
export declare const
|
|
807
|
+
export declare const zGetV1UsersByUserIdCalendarData: z.ZodObject<{
|
|
659
808
|
body: z.ZodOptional<z.ZodNever>;
|
|
660
809
|
path: z.ZodObject<{
|
|
661
810
|
userId: z.ZodString;
|
|
@@ -670,7 +819,7 @@ export declare const zGetV1UsersUserIdCalendarData: z.ZodObject<{
|
|
|
670
819
|
/**
|
|
671
820
|
* List of calendars
|
|
672
821
|
*/
|
|
673
|
-
export declare const
|
|
822
|
+
export declare const zGetV1UsersByUserIdCalendarResponse: z.ZodObject<{
|
|
674
823
|
data: z.ZodArray<z.ZodObject<{
|
|
675
824
|
id: z.ZodString;
|
|
676
825
|
original: z.ZodUnknown;
|
|
@@ -692,7 +841,7 @@ export declare const zGetV1UsersUserIdCalendarResponse: z.ZodObject<{
|
|
|
692
841
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
693
842
|
}, z.core.$strip>>;
|
|
694
843
|
}, z.core.$strip>;
|
|
695
|
-
export declare const
|
|
844
|
+
export declare const zGetV1UsersByUserIdCalendarBusyData: z.ZodObject<{
|
|
696
845
|
body: z.ZodOptional<z.ZodNever>;
|
|
697
846
|
path: z.ZodObject<{
|
|
698
847
|
userId: z.ZodString;
|
|
@@ -708,15 +857,35 @@ export declare const zGetV1UsersUserIdCalendarBusyData: z.ZodObject<{
|
|
|
708
857
|
}, z.core.$strip>;
|
|
709
858
|
}, z.core.$strip>;
|
|
710
859
|
/**
|
|
711
|
-
* List of busy intervals
|
|
860
|
+
* List of busy intervals, plus the calendars that could not be read
|
|
712
861
|
*/
|
|
713
|
-
export declare const
|
|
862
|
+
export declare const zGetV1UsersByUserIdCalendarBusyResponse: z.ZodObject<{
|
|
714
863
|
data: z.ZodArray<z.ZodObject<{
|
|
715
864
|
end: z.ZodISODateTime;
|
|
716
865
|
start: z.ZodISODateTime;
|
|
717
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>>;
|
|
718
887
|
}, z.core.$strip>;
|
|
719
|
-
export declare const
|
|
888
|
+
export declare const zGetV1UsersByUserIdCalendarEventsData: z.ZodObject<{
|
|
720
889
|
body: z.ZodOptional<z.ZodNever>;
|
|
721
890
|
path: z.ZodObject<{
|
|
722
891
|
userId: z.ZodString;
|
|
@@ -734,7 +903,7 @@ export declare const zGetV1UsersUserIdCalendarEventsData: z.ZodObject<{
|
|
|
734
903
|
/**
|
|
735
904
|
* List of events
|
|
736
905
|
*/
|
|
737
|
-
export declare const
|
|
906
|
+
export declare const zGetV1UsersByUserIdCalendarEventsResponse: z.ZodObject<{
|
|
738
907
|
data: z.ZodArray<z.ZodObject<{
|
|
739
908
|
attendees: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
740
909
|
email: z.ZodString;
|
|
@@ -761,8 +930,8 @@ export declare const zGetV1UsersUserIdCalendarEventsResponse: z.ZodObject<{
|
|
|
761
930
|
subject: z.ZodOptional<z.ZodString>;
|
|
762
931
|
}, z.core.$strip>>;
|
|
763
932
|
}, z.core.$strip>;
|
|
764
|
-
export declare const
|
|
765
|
-
body: z.
|
|
933
|
+
export declare const zPostV1UsersByUserIdCalendarEventsMetaData: z.ZodObject<{
|
|
934
|
+
body: z.ZodObject<{
|
|
766
935
|
attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
767
936
|
email: z.ZodEmail;
|
|
768
937
|
}, z.core.$strip>>>;
|
|
@@ -779,7 +948,7 @@ export declare const zPostV1UsersUserIdCalendarEventsMetaData: z.ZodObject<{
|
|
|
779
948
|
}>>>;
|
|
780
949
|
start: z.ZodOptional<z.ZodString>;
|
|
781
950
|
subject: z.ZodOptional<z.ZodString>;
|
|
782
|
-
}, z.core.$strip
|
|
951
|
+
}, z.core.$strip>;
|
|
783
952
|
path: z.ZodObject<{
|
|
784
953
|
userId: z.ZodString;
|
|
785
954
|
}, z.core.$strip>;
|
|
@@ -793,7 +962,7 @@ export declare const zPostV1UsersUserIdCalendarEventsMetaData: z.ZodObject<{
|
|
|
793
962
|
/**
|
|
794
963
|
* Meta event created
|
|
795
964
|
*/
|
|
796
|
-
export declare const
|
|
965
|
+
export declare const zPostV1UsersByUserIdCalendarEventsMetaResponse: z.ZodObject<{
|
|
797
966
|
data: z.ZodObject<{
|
|
798
967
|
attendees: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
799
968
|
email: z.ZodString;
|
|
@@ -818,7 +987,7 @@ export declare const zPostV1UsersUserIdCalendarEventsMetaResponse: z.ZodObject<{
|
|
|
818
987
|
subject: z.ZodOptional<z.ZodString>;
|
|
819
988
|
}, z.core.$strip>;
|
|
820
989
|
}, z.core.$strip>;
|
|
821
|
-
export declare const
|
|
990
|
+
export declare const zDeleteV1UsersByUserIdCalendarEventsMetaByMetaIdData: z.ZodObject<{
|
|
822
991
|
body: z.ZodOptional<z.ZodNever>;
|
|
823
992
|
path: z.ZodObject<{
|
|
824
993
|
metaId: z.ZodString;
|
|
@@ -834,12 +1003,12 @@ export declare const zDeleteV1UsersUserIdCalendarEventsMetaMetaIdData: z.ZodObje
|
|
|
834
1003
|
/**
|
|
835
1004
|
* Meta event deleted
|
|
836
1005
|
*/
|
|
837
|
-
export declare const
|
|
1006
|
+
export declare const zDeleteV1UsersByUserIdCalendarEventsMetaByMetaIdResponse: z.ZodObject<{
|
|
838
1007
|
data: z.ZodObject<{
|
|
839
1008
|
success: z.ZodLiteral<true>;
|
|
840
1009
|
}, z.core.$strip>;
|
|
841
1010
|
}, z.core.$strip>;
|
|
842
|
-
export declare const
|
|
1011
|
+
export declare const zGetV1UsersByUserIdCalendarEventsMetaByMetaIdData: z.ZodObject<{
|
|
843
1012
|
body: z.ZodOptional<z.ZodNever>;
|
|
844
1013
|
path: z.ZodObject<{
|
|
845
1014
|
metaId: z.ZodString;
|
|
@@ -855,7 +1024,7 @@ export declare const zGetV1UsersUserIdCalendarEventsMetaMetaIdData: z.ZodObject<
|
|
|
855
1024
|
/**
|
|
856
1025
|
* Event
|
|
857
1026
|
*/
|
|
858
|
-
export declare const
|
|
1027
|
+
export declare const zGetV1UsersByUserIdCalendarEventsMetaByMetaIdResponse: z.ZodObject<{
|
|
859
1028
|
data: z.ZodObject<{
|
|
860
1029
|
attendees: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
861
1030
|
email: z.ZodString;
|
|
@@ -880,8 +1049,8 @@ export declare const zGetV1UsersUserIdCalendarEventsMetaMetaIdResponse: z.ZodObj
|
|
|
880
1049
|
subject: z.ZodOptional<z.ZodString>;
|
|
881
1050
|
}, z.core.$strip>;
|
|
882
1051
|
}, z.core.$strip>;
|
|
883
|
-
export declare const
|
|
884
|
-
body: z.
|
|
1052
|
+
export declare const zPutV1UsersByUserIdCalendarEventsMetaByMetaIdData: z.ZodObject<{
|
|
1053
|
+
body: z.ZodObject<{
|
|
885
1054
|
attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
886
1055
|
email: z.ZodEmail;
|
|
887
1056
|
}, z.core.$strip>>>;
|
|
@@ -898,7 +1067,7 @@ export declare const zPutV1UsersUserIdCalendarEventsMetaMetaIdData: z.ZodObject<
|
|
|
898
1067
|
}>>>;
|
|
899
1068
|
start: z.ZodOptional<z.ZodString>;
|
|
900
1069
|
subject: z.ZodOptional<z.ZodString>;
|
|
901
|
-
}, z.core.$strip
|
|
1070
|
+
}, z.core.$strip>;
|
|
902
1071
|
path: z.ZodObject<{
|
|
903
1072
|
metaId: z.ZodString;
|
|
904
1073
|
userId: z.ZodString;
|
|
@@ -913,7 +1082,7 @@ export declare const zPutV1UsersUserIdCalendarEventsMetaMetaIdData: z.ZodObject<
|
|
|
913
1082
|
/**
|
|
914
1083
|
* Meta event updated
|
|
915
1084
|
*/
|
|
916
|
-
export declare const
|
|
1085
|
+
export declare const zPutV1UsersByUserIdCalendarEventsMetaByMetaIdResponse: z.ZodObject<{
|
|
917
1086
|
data: z.ZodObject<{
|
|
918
1087
|
attendees: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
919
1088
|
email: z.ZodString;
|
|
@@ -938,8 +1107,8 @@ export declare const zPutV1UsersUserIdCalendarEventsMetaMetaIdResponse: z.ZodObj
|
|
|
938
1107
|
subject: z.ZodOptional<z.ZodString>;
|
|
939
1108
|
}, z.core.$strip>;
|
|
940
1109
|
}, z.core.$strip>;
|
|
941
|
-
export declare const
|
|
942
|
-
body: z.
|
|
1110
|
+
export declare const zPostV1UsersByUserIdCalendarEventsByProviderByCalendarIdData: z.ZodObject<{
|
|
1111
|
+
body: z.ZodObject<{
|
|
943
1112
|
attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
944
1113
|
email: z.ZodEmail;
|
|
945
1114
|
}, z.core.$strip>>>;
|
|
@@ -954,7 +1123,7 @@ export declare const zPostV1UsersUserIdCalendarEventsProviderCalendarIdData: z.Z
|
|
|
954
1123
|
sendNotifications: z.ZodOptional<z.ZodBoolean>;
|
|
955
1124
|
start: z.ZodOptional<z.ZodString>;
|
|
956
1125
|
subject: z.ZodOptional<z.ZodString>;
|
|
957
|
-
}, z.core.$strip
|
|
1126
|
+
}, z.core.$strip>;
|
|
958
1127
|
path: z.ZodObject<{
|
|
959
1128
|
calendarId: z.ZodString;
|
|
960
1129
|
provider: z.ZodEnum<{
|
|
@@ -968,7 +1137,7 @@ export declare const zPostV1UsersUserIdCalendarEventsProviderCalendarIdData: z.Z
|
|
|
968
1137
|
/**
|
|
969
1138
|
* Event created
|
|
970
1139
|
*/
|
|
971
|
-
export declare const
|
|
1140
|
+
export declare const zPostV1UsersByUserIdCalendarEventsByProviderByCalendarIdResponse: z.ZodObject<{
|
|
972
1141
|
data: z.ZodObject<{
|
|
973
1142
|
attendees: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
974
1143
|
email: z.ZodString;
|
|
@@ -995,7 +1164,7 @@ export declare const zPostV1UsersUserIdCalendarEventsProviderCalendarIdResponse:
|
|
|
995
1164
|
subject: z.ZodOptional<z.ZodString>;
|
|
996
1165
|
}, z.core.$strip>;
|
|
997
1166
|
}, z.core.$strip>;
|
|
998
|
-
export declare const
|
|
1167
|
+
export declare const zDeleteV1UsersByUserIdCalendarEventsByProviderByCalendarIdByEventIdData: z.ZodObject<{
|
|
999
1168
|
body: z.ZodOptional<z.ZodNever>;
|
|
1000
1169
|
path: z.ZodObject<{
|
|
1001
1170
|
calendarId: z.ZodString;
|
|
@@ -1011,12 +1180,12 @@ export declare const zDeleteV1UsersUserIdCalendarEventsProviderCalendarIdEventId
|
|
|
1011
1180
|
/**
|
|
1012
1181
|
* Event deleted
|
|
1013
1182
|
*/
|
|
1014
|
-
export declare const
|
|
1183
|
+
export declare const zDeleteV1UsersByUserIdCalendarEventsByProviderByCalendarIdByEventIdResponse: z.ZodObject<{
|
|
1015
1184
|
data: z.ZodObject<{
|
|
1016
1185
|
success: z.ZodLiteral<true>;
|
|
1017
1186
|
}, z.core.$strip>;
|
|
1018
1187
|
}, z.core.$strip>;
|
|
1019
|
-
export declare const
|
|
1188
|
+
export declare const zGetV1UsersByUserIdCalendarEventsByProviderByCalendarIdByEventIdData: z.ZodObject<{
|
|
1020
1189
|
body: z.ZodOptional<z.ZodNever>;
|
|
1021
1190
|
path: z.ZodObject<{
|
|
1022
1191
|
calendarId: z.ZodString;
|
|
@@ -1032,7 +1201,7 @@ export declare const zGetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdDat
|
|
|
1032
1201
|
/**
|
|
1033
1202
|
* Event found
|
|
1034
1203
|
*/
|
|
1035
|
-
export declare const
|
|
1204
|
+
export declare const zGetV1UsersByUserIdCalendarEventsByProviderByCalendarIdByEventIdResponse: z.ZodObject<{
|
|
1036
1205
|
data: z.ZodObject<{
|
|
1037
1206
|
attendees: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1038
1207
|
email: z.ZodString;
|
|
@@ -1059,8 +1228,8 @@ export declare const zGetV1UsersUserIdCalendarEventsProviderCalendarIdEventIdRes
|
|
|
1059
1228
|
subject: z.ZodOptional<z.ZodString>;
|
|
1060
1229
|
}, z.core.$strip>;
|
|
1061
1230
|
}, z.core.$strip>;
|
|
1062
|
-
export declare const
|
|
1063
|
-
body: z.
|
|
1231
|
+
export declare const zPutV1UsersByUserIdCalendarEventsByProviderByCalendarIdByEventIdData: z.ZodObject<{
|
|
1232
|
+
body: z.ZodObject<{
|
|
1064
1233
|
attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1065
1234
|
email: z.ZodEmail;
|
|
1066
1235
|
}, z.core.$strip>>>;
|
|
@@ -1075,7 +1244,7 @@ export declare const zPutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdDat
|
|
|
1075
1244
|
sendNotifications: z.ZodOptional<z.ZodBoolean>;
|
|
1076
1245
|
start: z.ZodOptional<z.ZodString>;
|
|
1077
1246
|
subject: z.ZodOptional<z.ZodString>;
|
|
1078
|
-
}, z.core.$strip
|
|
1247
|
+
}, z.core.$strip>;
|
|
1079
1248
|
path: z.ZodObject<{
|
|
1080
1249
|
calendarId: z.ZodString;
|
|
1081
1250
|
eventId: z.ZodString;
|
|
@@ -1090,7 +1259,7 @@ export declare const zPutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdDat
|
|
|
1090
1259
|
/**
|
|
1091
1260
|
* Event updated
|
|
1092
1261
|
*/
|
|
1093
|
-
export declare const
|
|
1262
|
+
export declare const zPutV1UsersByUserIdCalendarEventsByProviderByCalendarIdByEventIdResponse: z.ZodObject<{
|
|
1094
1263
|
data: z.ZodObject<{
|
|
1095
1264
|
attendees: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1096
1265
|
email: z.ZodString;
|
|
@@ -1117,7 +1286,7 @@ export declare const zPutV1UsersUserIdCalendarEventsProviderCalendarIdEventIdRes
|
|
|
1117
1286
|
subject: z.ZodOptional<z.ZodString>;
|
|
1118
1287
|
}, z.core.$strip>;
|
|
1119
1288
|
}, z.core.$strip>;
|
|
1120
|
-
export declare const
|
|
1289
|
+
export declare const zGetV1UsersByUserIdOauthData: z.ZodObject<{
|
|
1121
1290
|
body: z.ZodOptional<z.ZodNever>;
|
|
1122
1291
|
path: z.ZodObject<{
|
|
1123
1292
|
userId: z.ZodString;
|
|
@@ -1129,7 +1298,7 @@ export declare const zGetV1UsersUserIdOauthData: z.ZodObject<{
|
|
|
1129
1298
|
/**
|
|
1130
1299
|
* All oauth connections of the user
|
|
1131
1300
|
*/
|
|
1132
|
-
export declare const
|
|
1301
|
+
export declare const zGetV1UsersByUserIdOauthResponse: z.ZodObject<{
|
|
1133
1302
|
data: z.ZodArray<z.ZodObject<{
|
|
1134
1303
|
alive: z.ZodBoolean;
|
|
1135
1304
|
email: z.ZodUnion<readonly [z.ZodEmail, z.ZodNull]>;
|
|
@@ -1144,7 +1313,7 @@ export declare const zGetV1UsersUserIdOauthResponse: z.ZodObject<{
|
|
|
1144
1313
|
refreshToken: z.ZodOptional<z.ZodUnknown>;
|
|
1145
1314
|
}, z.core.$strip>>;
|
|
1146
1315
|
}, z.core.$strip>;
|
|
1147
|
-
export declare const
|
|
1316
|
+
export declare const zGetV1UsersByUserIdOauthLinksData: z.ZodObject<{
|
|
1148
1317
|
body: z.ZodOptional<z.ZodNever>;
|
|
1149
1318
|
path: z.ZodObject<{
|
|
1150
1319
|
userId: z.ZodString;
|
|
@@ -1161,7 +1330,7 @@ export declare const zGetV1UsersUserIdOauthLinksData: z.ZodObject<{
|
|
|
1161
1330
|
/**
|
|
1162
1331
|
* Auth urls for the oauth providers
|
|
1163
1332
|
*/
|
|
1164
|
-
export declare const
|
|
1333
|
+
export declare const zGetV1UsersByUserIdOauthLinksResponse: z.ZodObject<{
|
|
1165
1334
|
data: z.ZodArray<z.ZodObject<{
|
|
1166
1335
|
link: z.ZodURL;
|
|
1167
1336
|
provider: z.ZodEnum<{
|
|
@@ -1170,7 +1339,7 @@ export declare const zGetV1UsersUserIdOauthLinksResponse: z.ZodObject<{
|
|
|
1170
1339
|
}>;
|
|
1171
1340
|
}, z.core.$strip>>;
|
|
1172
1341
|
}, z.core.$strip>;
|
|
1173
|
-
export declare const
|
|
1342
|
+
export declare const zGetV1UsersByUserIdOauthByProviderLinkData: z.ZodObject<{
|
|
1174
1343
|
body: z.ZodOptional<z.ZodNever>;
|
|
1175
1344
|
path: z.ZodObject<{
|
|
1176
1345
|
provider: z.ZodEnum<{
|
|
@@ -1188,17 +1357,17 @@ export declare const zGetV1UsersUserIdOauthProviderLinkData: z.ZodObject<{
|
|
|
1188
1357
|
/**
|
|
1189
1358
|
* Auth url for the oauth provider
|
|
1190
1359
|
*/
|
|
1191
|
-
export declare const
|
|
1360
|
+
export declare const zGetV1UsersByUserIdOauthByProviderLinkResponse: z.ZodObject<{
|
|
1192
1361
|
data: z.ZodObject<{
|
|
1193
1362
|
link: z.ZodURL;
|
|
1194
1363
|
}, z.core.$strip>;
|
|
1195
1364
|
}, z.core.$strip>;
|
|
1196
|
-
export declare const
|
|
1197
|
-
body: z.
|
|
1365
|
+
export declare const zPostV1UsersOauthByProviderVerifyData: z.ZodObject<{
|
|
1366
|
+
body: z.ZodObject<{
|
|
1198
1367
|
code: z.ZodString;
|
|
1199
1368
|
scope: z.ZodArray<z.ZodString>;
|
|
1200
1369
|
state: z.ZodString;
|
|
1201
|
-
}, z.core.$strip
|
|
1370
|
+
}, z.core.$strip>;
|
|
1202
1371
|
path: z.ZodObject<{
|
|
1203
1372
|
provider: z.ZodEnum<{
|
|
1204
1373
|
google: "google";
|
|
@@ -1209,7 +1378,7 @@ export declare const zPostV1UsersOauthProviderVerifyData: z.ZodObject<{
|
|
|
1209
1378
|
redirectUrl: z.ZodOptional<z.ZodURL>;
|
|
1210
1379
|
}, z.core.$strip>>;
|
|
1211
1380
|
}, z.core.$strip>;
|
|
1212
|
-
export declare const
|
|
1381
|
+
export declare const zDeleteV1UsersByUserIdOauthByProviderData: z.ZodObject<{
|
|
1213
1382
|
body: z.ZodOptional<z.ZodNever>;
|
|
1214
1383
|
path: z.ZodObject<{
|
|
1215
1384
|
provider: z.ZodEnum<{
|
|
@@ -1220,7 +1389,7 @@ export declare const zDeleteV1UsersUserIdOauthProviderData: z.ZodObject<{
|
|
|
1220
1389
|
}, z.core.$strip>;
|
|
1221
1390
|
query: z.ZodOptional<z.ZodNever>;
|
|
1222
1391
|
}, z.core.$strip>;
|
|
1223
|
-
export declare const
|
|
1392
|
+
export declare const zGetV1UsersByUserIdOauthByProviderData: z.ZodObject<{
|
|
1224
1393
|
body: z.ZodOptional<z.ZodNever>;
|
|
1225
1394
|
path: z.ZodObject<{
|
|
1226
1395
|
provider: z.ZodEnum<{
|
|
@@ -1236,7 +1405,7 @@ export declare const zGetV1UsersUserIdOauthProviderData: z.ZodObject<{
|
|
|
1236
1405
|
/**
|
|
1237
1406
|
* OAuth connection of the user
|
|
1238
1407
|
*/
|
|
1239
|
-
export declare const
|
|
1408
|
+
export declare const zGetV1UsersByUserIdOauthByProviderResponse: z.ZodObject<{
|
|
1240
1409
|
data: z.ZodObject<{
|
|
1241
1410
|
alive: z.ZodBoolean;
|
|
1242
1411
|
email: z.ZodUnion<readonly [z.ZodEmail, z.ZodNull]>;
|
|
@@ -1251,14 +1420,14 @@ export declare const zGetV1UsersUserIdOauthProviderResponse: z.ZodObject<{
|
|
|
1251
1420
|
refreshToken: z.ZodOptional<z.ZodUnknown>;
|
|
1252
1421
|
}, z.core.$strip>;
|
|
1253
1422
|
}, z.core.$strip>;
|
|
1254
|
-
export declare const
|
|
1255
|
-
body: z.
|
|
1423
|
+
export declare const zPostV1UsersByUserIdOauthByProviderData: z.ZodObject<{
|
|
1424
|
+
body: z.ZodObject<{
|
|
1256
1425
|
accessToken: z.ZodString;
|
|
1257
1426
|
email: z.ZodUnion<readonly [z.ZodEmail, z.ZodNull]>;
|
|
1258
1427
|
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
1259
1428
|
refreshToken: z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>;
|
|
1260
1429
|
scope: z.ZodArray<z.ZodString>;
|
|
1261
|
-
}, z.core.$strip
|
|
1430
|
+
}, z.core.$strip>;
|
|
1262
1431
|
path: z.ZodObject<{
|
|
1263
1432
|
provider: z.ZodEnum<{
|
|
1264
1433
|
google: "google";
|
|
@@ -1271,7 +1440,7 @@ export declare const zPostV1UsersUserIdOauthProviderData: z.ZodObject<{
|
|
|
1271
1440
|
/**
|
|
1272
1441
|
* OAuth connection created
|
|
1273
1442
|
*/
|
|
1274
|
-
export declare const
|
|
1443
|
+
export declare const zPostV1UsersByUserIdOauthByProviderResponse: z.ZodObject<{
|
|
1275
1444
|
data: z.ZodObject<{
|
|
1276
1445
|
alive: z.ZodBoolean;
|
|
1277
1446
|
email: z.ZodUnion<readonly [z.ZodEmail, z.ZodNull]>;
|
|
@@ -1286,7 +1455,7 @@ export declare const zPostV1UsersUserIdOauthProviderResponse: z.ZodObject<{
|
|
|
1286
1455
|
refreshToken: z.ZodOptional<z.ZodUnknown>;
|
|
1287
1456
|
}, z.core.$strip>;
|
|
1288
1457
|
}, z.core.$strip>;
|
|
1289
|
-
export declare const
|
|
1458
|
+
export declare const zGetV1UsersByUserIdOauthByProviderTokenData: z.ZodObject<{
|
|
1290
1459
|
body: z.ZodOptional<z.ZodNever>;
|
|
1291
1460
|
path: z.ZodObject<{
|
|
1292
1461
|
provider: z.ZodEnum<{
|
|
@@ -1300,12 +1469,12 @@ export declare const zGetV1UsersUserIdOauthProviderTokenData: z.ZodObject<{
|
|
|
1300
1469
|
/**
|
|
1301
1470
|
* Access token
|
|
1302
1471
|
*/
|
|
1303
|
-
export declare const
|
|
1472
|
+
export declare const zGetV1UsersByUserIdOauthByProviderTokenResponse: z.ZodObject<{
|
|
1304
1473
|
data: z.ZodObject<{
|
|
1305
1474
|
accessToken: z.ZodString;
|
|
1306
1475
|
}, z.core.$strip>;
|
|
1307
1476
|
}, z.core.$strip>;
|
|
1308
|
-
export declare const
|
|
1477
|
+
export declare const zGetV1UsersByUserIdSchedulingData: z.ZodObject<{
|
|
1309
1478
|
body: z.ZodOptional<z.ZodNever>;
|
|
1310
1479
|
path: z.ZodObject<{
|
|
1311
1480
|
userId: z.ZodString;
|
|
@@ -1327,7 +1496,7 @@ export declare const zGetV1UsersUserIdSchedulingData: z.ZodObject<{
|
|
|
1327
1496
|
/**
|
|
1328
1497
|
* Available time slots
|
|
1329
1498
|
*/
|
|
1330
|
-
export declare const
|
|
1499
|
+
export declare const zGetV1UsersByUserIdSchedulingResponse: z.ZodObject<{
|
|
1331
1500
|
data: z.ZodObject<{
|
|
1332
1501
|
availableSlots: z.ZodArray<z.ZodObject<{
|
|
1333
1502
|
end: z.ZodISODateTime;
|
|
@@ -1344,8 +1513,8 @@ export declare const zGetV1UsersUserIdSchedulingResponse: z.ZodObject<{
|
|
|
1344
1513
|
}, z.core.$strip>;
|
|
1345
1514
|
}, z.core.$strip>;
|
|
1346
1515
|
}, z.core.$strip>;
|
|
1347
|
-
export declare const
|
|
1348
|
-
body: z.
|
|
1516
|
+
export declare const zPostV1UsersByUserIdSchedulingData: z.ZodObject<{
|
|
1517
|
+
body: z.ZodObject<{
|
|
1349
1518
|
schedules: z.ZodArray<z.ZodObject<{
|
|
1350
1519
|
days: z.ZodArray<z.ZodEnum<{
|
|
1351
1520
|
friday: "friday";
|
|
@@ -1359,7 +1528,7 @@ export declare const zPostV1UsersUserIdSchedulingData: z.ZodObject<{
|
|
|
1359
1528
|
end: z.ZodString;
|
|
1360
1529
|
start: z.ZodString;
|
|
1361
1530
|
}, z.core.$strip>>;
|
|
1362
|
-
}, z.core.$strip
|
|
1531
|
+
}, z.core.$strip>;
|
|
1363
1532
|
path: z.ZodObject<{
|
|
1364
1533
|
userId: z.ZodString;
|
|
1365
1534
|
}, z.core.$strip>;
|
|
@@ -1378,7 +1547,7 @@ export declare const zPostV1UsersUserIdSchedulingData: z.ZodObject<{
|
|
|
1378
1547
|
/**
|
|
1379
1548
|
* Available time slots
|
|
1380
1549
|
*/
|
|
1381
|
-
export declare const
|
|
1550
|
+
export declare const zPostV1UsersByUserIdSchedulingResponse: z.ZodObject<{
|
|
1382
1551
|
data: z.ZodObject<{
|
|
1383
1552
|
availableSlots: z.ZodArray<z.ZodObject<{
|
|
1384
1553
|
end: z.ZodISODateTime;
|
|
@@ -1396,7 +1565,7 @@ export declare const zPostV1UsersUserIdSchedulingResponse: z.ZodObject<{
|
|
|
1396
1565
|
}, z.core.$strip>;
|
|
1397
1566
|
}, z.core.$strip>;
|
|
1398
1567
|
export declare const zPostV1UsersSchedulingData: z.ZodObject<{
|
|
1399
|
-
body: z.
|
|
1568
|
+
body: z.ZodObject<{
|
|
1400
1569
|
users: z.ZodArray<z.ZodObject<{
|
|
1401
1570
|
id: z.ZodString;
|
|
1402
1571
|
calendarIds: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
@@ -1426,7 +1595,7 @@ export declare const zPostV1UsersSchedulingData: z.ZodObject<{
|
|
|
1426
1595
|
start: z.ZodString;
|
|
1427
1596
|
}, z.core.$strip>>]>>;
|
|
1428
1597
|
}, z.core.$strip>>;
|
|
1429
|
-
}, z.core.$strip
|
|
1598
|
+
}, z.core.$strip>;
|
|
1430
1599
|
path: z.ZodOptional<z.ZodNever>;
|
|
1431
1600
|
query: z.ZodObject<{
|
|
1432
1601
|
end: z.ZodString;
|
|
@@ -1441,7 +1610,7 @@ export declare const zPostV1UsersSchedulingData: z.ZodObject<{
|
|
|
1441
1610
|
}, z.core.$strip>;
|
|
1442
1611
|
}, z.core.$strip>;
|
|
1443
1612
|
/**
|
|
1444
|
-
* Available time slots for each user
|
|
1613
|
+
* Available time slots for each user, plus the calendars that could not be read
|
|
1445
1614
|
*/
|
|
1446
1615
|
export declare const zPostV1UsersSchedulingResponse: z.ZodObject<{
|
|
1447
1616
|
data: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1449,6 +1618,26 @@ export declare const zPostV1UsersSchedulingResponse: z.ZodObject<{
|
|
|
1449
1618
|
end: z.ZodISODateTime;
|
|
1450
1619
|
start: z.ZodISODateTime;
|
|
1451
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>>;
|
|
1452
1641
|
options: z.ZodObject<{
|
|
1453
1642
|
end: z.ZodISODateTime;
|
|
1454
1643
|
maxOverlaps: z.ZodInt;
|
|
@@ -1490,6 +1679,18 @@ export declare const zPostV1UsersSchedulingResponse: z.ZodObject<{
|
|
|
1490
1679
|
error: z.ZodString;
|
|
1491
1680
|
status: z.ZodLiteral<"error">;
|
|
1492
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
|
+
}>>;
|
|
1493
1694
|
}, z.core.$strip>]>>;
|
|
1494
1695
|
}, z.core.$strip>;
|
|
1495
1696
|
//# sourceMappingURL=zod.gen.d.ts.map
|