@workwae/sdk 0.1.0-alpha.6 → 0.1.0-alpha.7

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.
@@ -1,93 +1,71 @@
1
1
  import * as z from "zod";
2
2
  export declare const CALENDAR_PROVIDER: {
3
3
  provider_not_found: {
4
- status: 404;
5
4
  message: string;
6
5
  };
7
6
  provider_forbidden: {
8
- status: 403;
9
7
  message: string;
10
8
  };
11
9
  provider_unsupported: {
12
- status: 400;
13
10
  message: string;
14
11
  };
15
12
  provider_rejected: {
16
- status: 400;
17
13
  message: string;
18
14
  };
19
15
  provider_unavailable: {
20
- status: 502;
21
16
  message: string;
22
17
  };
23
18
  provider_throttled: {
24
- status: 429;
25
19
  message: string;
26
20
  };
27
21
  account_paused: {
28
- status: 409;
29
22
  message: string;
30
23
  };
31
24
  account_disabled: {
32
- status: 409;
33
25
  message: string;
34
26
  };
35
27
  account_reauth_required: {
36
- status: 409;
37
28
  message: string;
38
29
  };
39
30
  account_misconfigured: {
40
- status: 409;
41
31
  message: string;
42
32
  };
43
33
  };
44
34
  export declare const CALENDAR_WRITE: {
45
35
  provider_conflict: {
46
- status: 409;
47
36
  message: string;
48
37
  };
49
38
  calendar_read_only: {
50
- status: 403;
51
39
  message: string;
52
40
  };
53
41
  provider_not_found: {
54
- status: 404;
55
42
  message: string;
56
43
  };
57
44
  provider_forbidden: {
58
- status: 403;
59
45
  message: string;
60
46
  };
61
47
  provider_unsupported: {
62
- status: 400;
63
48
  message: string;
64
49
  };
65
50
  provider_rejected: {
66
- status: 400;
67
51
  message: string;
68
52
  };
69
53
  provider_unavailable: {
70
- status: 502;
71
54
  message: string;
72
55
  };
73
56
  provider_throttled: {
74
- status: 429;
75
57
  message: string;
76
58
  };
77
59
  account_paused: {
78
- status: 409;
79
60
  message: string;
80
61
  };
81
62
  account_disabled: {
82
- status: 409;
83
63
  message: string;
84
64
  };
85
65
  account_reauth_required: {
86
- status: 409;
87
66
  message: string;
88
67
  };
89
68
  account_misconfigured: {
90
- status: 409;
91
69
  message: string;
92
70
  };
93
71
  };
@@ -99,7 +77,7 @@ export declare const MEETING_SERVICE: import("../errors.js").DeclaredErrors<{
99
77
  readonly meeting_service_unavailable: "The service could not be reached.";
100
78
  }>;
101
79
  export declare const calendars: {
102
- list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
80
+ list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
103
81
  accountId: z.ZodUUID;
104
82
  }, z.core.$strip>, z.ZodObject<{
105
83
  items: z.ZodArray<z.ZodObject<{
@@ -122,7 +100,7 @@ export declare const calendars: {
122
100
  timeZone: z.ZodNullable<z.ZodString>;
123
101
  isHidden: z.ZodBoolean;
124
102
  }, z.core.$strip>>;
125
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
103
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
126
104
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
127
105
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
128
106
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -139,21 +117,18 @@ export declare const calendars: {
139
117
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
140
118
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
141
119
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
142
- }>>, {
120
+ }>, "account_not_found" | "plan_module_unavailable" | "calendar_disabled"> & {
143
121
  calendar_disabled: {
144
- status: 409;
145
122
  message: string;
146
123
  };
147
124
  account_not_found: {
148
- status: 404;
149
125
  message: string;
150
126
  };
151
127
  plan_module_unavailable: {
152
- status: 403;
153
128
  message: string;
154
129
  };
155
- }>, Record<never, never>>;
156
- create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
130
+ }>;
131
+ create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
157
132
  accountId: z.ZodUUID;
158
133
  name: z.ZodString;
159
134
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -178,7 +153,7 @@ export declare const calendars: {
178
153
  color: z.ZodNullable<z.ZodString>;
179
154
  timeZone: z.ZodNullable<z.ZodString>;
180
155
  isHidden: z.ZodBoolean;
181
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
156
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
182
157
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
183
158
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
184
159
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -195,69 +170,54 @@ export declare const calendars: {
195
170
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
196
171
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
197
172
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
198
- }>>, {
173
+ }>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "calendar_disabled" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "provider_conflict" | "provider_unsupported" | "provider_rejected" | "calendar_read_only"> & {
199
174
  provider_conflict: {
200
- status: 409;
201
175
  message: string;
202
176
  };
203
177
  calendar_read_only: {
204
- status: 403;
205
178
  message: string;
206
179
  };
207
180
  provider_not_found: {
208
- status: 404;
209
181
  message: string;
210
182
  };
211
183
  provider_forbidden: {
212
- status: 403;
213
184
  message: string;
214
185
  };
215
186
  provider_unsupported: {
216
- status: 400;
217
187
  message: string;
218
188
  };
219
189
  provider_rejected: {
220
- status: 400;
221
190
  message: string;
222
191
  };
223
192
  provider_unavailable: {
224
- status: 502;
225
193
  message: string;
226
194
  };
227
195
  provider_throttled: {
228
- status: 429;
229
196
  message: string;
230
197
  };
231
198
  account_paused: {
232
- status: 409;
233
199
  message: string;
234
200
  };
235
201
  account_disabled: {
236
- status: 409;
237
202
  message: string;
238
203
  };
239
204
  account_reauth_required: {
240
- status: 409;
241
205
  message: string;
242
206
  };
243
207
  account_misconfigured: {
244
- status: 409;
245
208
  message: string;
246
209
  };
247
210
  calendar_disabled: {
248
- status: 409;
249
211
  message: string;
250
212
  };
251
213
  account_not_found: {
252
- status: 404;
253
214
  message: string;
254
215
  };
255
216
  plan_module_unavailable: {
256
- status: 403;
257
217
  message: string;
258
218
  };
259
- }>, Record<never, never>>;
260
- update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
219
+ }>;
220
+ update: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
261
221
  accountId: z.ZodUUID;
262
222
  calendarId: z.ZodUUID;
263
223
  name: z.ZodOptional<z.ZodString>;
@@ -283,7 +243,7 @@ export declare const calendars: {
283
243
  color: z.ZodNullable<z.ZodString>;
284
244
  timeZone: z.ZodNullable<z.ZodString>;
285
245
  isHidden: z.ZodBoolean;
286
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
246
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
287
247
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
288
248
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
289
249
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -300,76 +260,60 @@ export declare const calendars: {
300
260
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
301
261
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
302
262
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
303
- }>>, {
263
+ }>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "calendar_disabled" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "provider_conflict" | "provider_unsupported" | "provider_rejected" | "calendar_not_found" | "calendar_read_only"> & {
304
264
  provider_conflict: {
305
- status: 409;
306
265
  message: string;
307
266
  };
308
267
  calendar_read_only: {
309
- status: 403;
310
268
  message: string;
311
269
  };
312
270
  provider_not_found: {
313
- status: 404;
314
271
  message: string;
315
272
  };
316
273
  provider_forbidden: {
317
- status: 403;
318
274
  message: string;
319
275
  };
320
276
  provider_unsupported: {
321
- status: 400;
322
277
  message: string;
323
278
  };
324
279
  provider_rejected: {
325
- status: 400;
326
280
  message: string;
327
281
  };
328
282
  provider_unavailable: {
329
- status: 502;
330
283
  message: string;
331
284
  };
332
285
  provider_throttled: {
333
- status: 429;
334
286
  message: string;
335
287
  };
336
288
  account_paused: {
337
- status: 409;
338
289
  message: string;
339
290
  };
340
291
  account_disabled: {
341
- status: 409;
342
292
  message: string;
343
293
  };
344
294
  account_reauth_required: {
345
- status: 409;
346
295
  message: string;
347
296
  };
348
297
  account_misconfigured: {
349
- status: 409;
350
298
  message: string;
351
299
  };
352
300
  calendar_not_found: {
353
- status: 404;
354
301
  message: string;
355
302
  };
356
303
  calendar_disabled: {
357
- status: 409;
358
304
  message: string;
359
305
  };
360
306
  account_not_found: {
361
- status: 404;
362
307
  message: string;
363
308
  };
364
309
  plan_module_unavailable: {
365
- status: 403;
366
310
  message: string;
367
311
  };
368
- }>, Record<never, never>>;
369
- delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
312
+ }>;
313
+ delete: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
370
314
  accountId: z.ZodUUID;
371
315
  calendarId: z.ZodUUID;
372
- }, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
316
+ }, z.core.$strip>, z.ZodVoid, Omit<import("../errors.js").DeclaredErrors<{
373
317
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
374
318
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
375
319
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -386,79 +330,62 @@ export declare const calendars: {
386
330
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
387
331
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
388
332
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
389
- }>>, {
333
+ }>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "calendar_disabled" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "provider_conflict" | "provider_unsupported" | "provider_rejected" | "calendar_not_found" | "calendar_read_only" | "calendar_primary"> & {
390
334
  provider_conflict: {
391
- status: 409;
392
335
  message: string;
393
336
  };
394
337
  calendar_read_only: {
395
- status: 403;
396
338
  message: string;
397
339
  };
398
340
  provider_not_found: {
399
- status: 404;
400
341
  message: string;
401
342
  };
402
343
  provider_forbidden: {
403
- status: 403;
404
344
  message: string;
405
345
  };
406
346
  provider_unsupported: {
407
- status: 400;
408
347
  message: string;
409
348
  };
410
349
  provider_rejected: {
411
- status: 400;
412
350
  message: string;
413
351
  };
414
352
  provider_unavailable: {
415
- status: 502;
416
353
  message: string;
417
354
  };
418
355
  provider_throttled: {
419
- status: 429;
420
356
  message: string;
421
357
  };
422
358
  account_paused: {
423
- status: 409;
424
359
  message: string;
425
360
  };
426
361
  account_disabled: {
427
- status: 409;
428
362
  message: string;
429
363
  };
430
364
  account_reauth_required: {
431
- status: 409;
432
365
  message: string;
433
366
  };
434
367
  account_misconfigured: {
435
- status: 409;
436
368
  message: string;
437
369
  };
438
370
  calendar_not_found: {
439
- status: 404;
440
371
  message: string;
441
372
  };
442
373
  calendar_primary: {
443
- status: 409;
444
374
  message: string;
445
375
  };
446
376
  calendar_disabled: {
447
- status: 409;
448
377
  message: string;
449
378
  };
450
379
  account_not_found: {
451
- status: 404;
452
380
  message: string;
453
381
  };
454
382
  plan_module_unavailable: {
455
- status: 403;
456
383
  message: string;
457
384
  };
458
- }>, Record<never, never>>;
385
+ }>;
459
386
  };
460
387
  export declare const calendarEvents: {
461
- list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
388
+ list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
462
389
  accountId: z.ZodUUID;
463
390
  start: z.ZodPreprocess<z.ZodDate, string | Date>;
464
391
  end: z.ZodPreprocess<z.ZodDate, string | Date>;
@@ -553,7 +480,7 @@ export declare const calendarEvents: {
553
480
  updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
554
481
  }, z.core.$strip>>;
555
482
  nextCursor: z.ZodNullable<z.ZodString>;
556
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
483
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
557
484
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
558
485
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
559
486
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -570,33 +497,27 @@ export declare const calendarEvents: {
570
497
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
571
498
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
572
499
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
573
- }>>, {
500
+ }>, "invalid_range" | "account_not_found" | "plan_module_unavailable" | "invalid_cursor" | "calendar_disabled" | "unknown_calendar"> & {
574
501
  invalid_range: {
575
- status: 400;
576
502
  message: string;
577
503
  };
578
504
  unknown_calendar: {
579
- status: 422;
580
505
  message: string;
581
506
  };
582
507
  invalid_cursor: {
583
- status: 400;
584
508
  message: string;
585
509
  };
586
510
  calendar_disabled: {
587
- status: 409;
588
511
  message: string;
589
512
  };
590
513
  account_not_found: {
591
- status: 404;
592
514
  message: string;
593
515
  };
594
516
  plan_module_unavailable: {
595
- status: 403;
596
517
  message: string;
597
518
  };
598
- }>, Record<never, never>>;
599
- get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
519
+ }>;
520
+ get: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
600
521
  accountId: z.ZodUUID;
601
522
  eventId: z.ZodUUID;
602
523
  }, z.core.$strip>, z.ZodObject<{
@@ -691,7 +612,7 @@ export declare const calendarEvents: {
691
612
  }>;
692
613
  content: z.ZodString;
693
614
  }, z.core.$strip>>;
694
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
615
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
695
616
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
696
617
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
697
618
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -708,65 +629,51 @@ export declare const calendarEvents: {
708
629
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
709
630
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
710
631
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
711
- }>>, {
632
+ }>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "calendar_disabled" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "provider_unsupported" | "provider_rejected" | "calendar_event_not_found"> & {
712
633
  provider_not_found: {
713
- status: 404;
714
634
  message: string;
715
635
  };
716
636
  provider_forbidden: {
717
- status: 403;
718
637
  message: string;
719
638
  };
720
639
  provider_unsupported: {
721
- status: 400;
722
640
  message: string;
723
641
  };
724
642
  provider_rejected: {
725
- status: 400;
726
643
  message: string;
727
644
  };
728
645
  provider_unavailable: {
729
- status: 502;
730
646
  message: string;
731
647
  };
732
648
  provider_throttled: {
733
- status: 429;
734
649
  message: string;
735
650
  };
736
651
  account_paused: {
737
- status: 409;
738
652
  message: string;
739
653
  };
740
654
  account_disabled: {
741
- status: 409;
742
655
  message: string;
743
656
  };
744
657
  account_reauth_required: {
745
- status: 409;
746
658
  message: string;
747
659
  };
748
660
  account_misconfigured: {
749
- status: 409;
750
661
  message: string;
751
662
  };
752
663
  calendar_event_not_found: {
753
- status: 404;
754
664
  message: string;
755
665
  };
756
666
  calendar_disabled: {
757
- status: 409;
758
667
  message: string;
759
668
  };
760
669
  account_not_found: {
761
- status: 404;
762
670
  message: string;
763
671
  };
764
672
  plan_module_unavailable: {
765
- status: 403;
766
673
  message: string;
767
674
  };
768
- }>, Record<never, never>>;
769
- create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
675
+ }>;
676
+ create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
770
677
  accountId: z.ZodUUID;
771
678
  calendarId: z.ZodUUID;
772
679
  subject: z.ZodOptional<z.ZodString>;
@@ -919,7 +826,7 @@ export declare const calendarEvents: {
919
826
  }>;
920
827
  content: z.ZodString;
921
828
  }, z.core.$strip>>;
922
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
829
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
923
830
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
924
831
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
925
832
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -936,121 +843,93 @@ export declare const calendarEvents: {
936
843
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
937
844
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
938
845
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
939
- }>>, {
846
+ }>, "invalid_range" | "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "multiple_meeting_options" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "calendar_disabled" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "provider_conflict" | "provider_unsupported" | "provider_rejected" | "calendar_not_found" | "calendar_event_not_found" | "calendar_read_only" | "invalid_time_zone" | "mixed_event_times" | "invalid_recurrence" | "meeting_service_not_connected" | "meeting_service_reauth_required" | "meeting_host_missing" | "meeting_recurrence_unsupported" | "meeting_service_rejected" | "meeting_service_unavailable"> & {
940
847
  plan_module_unavailable: {
941
- status: 403;
942
848
  message: string;
943
849
  };
944
850
  multiple_meeting_options: {
945
- status: 400;
946
851
  message: string;
947
852
  };
948
853
  calendar_not_found: {
949
- status: 404;
950
854
  message: string;
951
855
  };
952
856
  calendar_event_not_found: {
953
- status: 404;
954
857
  message: string;
955
858
  };
956
859
  meeting_host_missing: {
957
- status: 409;
958
860
  message: string;
959
861
  };
960
862
  meeting_service_not_connected: {
961
- status: 409;
962
863
  message: string;
963
864
  };
964
865
  meeting_service_reauth_required: {
965
- status: 409;
966
866
  message: string;
967
867
  };
968
868
  meeting_recurrence_unsupported: {
969
- status: 400;
970
869
  message: string;
971
870
  };
972
871
  meeting_service_rejected: {
973
- status: 400;
974
872
  message: string;
975
873
  };
976
874
  meeting_service_unavailable: {
977
- status: 502;
978
875
  message: string;
979
876
  };
980
877
  invalid_range: {
981
- status: 400;
982
878
  message: string;
983
879
  };
984
880
  invalid_time_zone: {
985
- status: 400;
986
881
  message: string;
987
882
  };
988
883
  mixed_event_times: {
989
- status: 400;
990
884
  message: string;
991
885
  };
992
886
  invalid_recurrence: {
993
- status: 400;
994
887
  message: string;
995
888
  };
996
889
  provider_conflict: {
997
- status: 409;
998
890
  message: string;
999
891
  };
1000
892
  calendar_read_only: {
1001
- status: 403;
1002
893
  message: string;
1003
894
  };
1004
895
  provider_not_found: {
1005
- status: 404;
1006
896
  message: string;
1007
897
  };
1008
898
  provider_forbidden: {
1009
- status: 403;
1010
899
  message: string;
1011
900
  };
1012
901
  provider_unsupported: {
1013
- status: 400;
1014
902
  message: string;
1015
903
  };
1016
904
  provider_rejected: {
1017
- status: 400;
1018
905
  message: string;
1019
906
  };
1020
907
  provider_unavailable: {
1021
- status: 502;
1022
908
  message: string;
1023
909
  };
1024
910
  provider_throttled: {
1025
- status: 429;
1026
911
  message: string;
1027
912
  };
1028
913
  account_paused: {
1029
- status: 409;
1030
914
  message: string;
1031
915
  };
1032
916
  account_disabled: {
1033
- status: 409;
1034
917
  message: string;
1035
918
  };
1036
919
  account_reauth_required: {
1037
- status: 409;
1038
920
  message: string;
1039
921
  };
1040
922
  account_misconfigured: {
1041
- status: 409;
1042
923
  message: string;
1043
924
  };
1044
925
  calendar_disabled: {
1045
- status: 409;
1046
926
  message: string;
1047
927
  };
1048
928
  account_not_found: {
1049
- status: 404;
1050
929
  message: string;
1051
930
  };
1052
- }>, Record<never, never>>;
1053
- update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
931
+ }>;
932
+ update: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1054
933
  accountId: z.ZodUUID;
1055
934
  eventId: z.ZodUUID;
1056
935
  subject: z.ZodOptional<z.ZodString>;
@@ -1198,7 +1077,7 @@ export declare const calendarEvents: {
1198
1077
  }>;
1199
1078
  content: z.ZodString;
1200
1079
  }, z.core.$strip>>;
1201
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
1080
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
1202
1081
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1203
1082
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1204
1083
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1215,117 +1094,90 @@ export declare const calendarEvents: {
1215
1094
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1216
1095
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1217
1096
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1218
- }>>, {
1097
+ }>, "invalid_range" | "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "calendar_disabled" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "provider_conflict" | "provider_unsupported" | "provider_rejected" | "calendar_event_not_found" | "calendar_read_only" | "invalid_time_zone" | "mixed_event_times" | "invalid_recurrence" | "recurrence_on_instance" | "meeting_service_not_connected" | "meeting_service_reauth_required" | "meeting_recurrence_unsupported" | "meeting_service_rejected" | "meeting_deleted" | "meeting_service_unavailable"> & {
1219
1098
  recurrence_on_instance: {
1220
- status: 400;
1221
1099
  message: string;
1222
1100
  };
1223
1101
  meeting_deleted: {
1224
- status: 409;
1225
1102
  message: string;
1226
1103
  };
1227
1104
  meeting_service_not_connected: {
1228
- status: 409;
1229
1105
  message: string;
1230
1106
  };
1231
1107
  meeting_service_reauth_required: {
1232
- status: 409;
1233
1108
  message: string;
1234
1109
  };
1235
1110
  meeting_recurrence_unsupported: {
1236
- status: 400;
1237
1111
  message: string;
1238
1112
  };
1239
1113
  meeting_service_rejected: {
1240
- status: 400;
1241
1114
  message: string;
1242
1115
  };
1243
1116
  meeting_service_unavailable: {
1244
- status: 502;
1245
1117
  message: string;
1246
1118
  };
1247
1119
  invalid_range: {
1248
- status: 400;
1249
1120
  message: string;
1250
1121
  };
1251
1122
  invalid_time_zone: {
1252
- status: 400;
1253
1123
  message: string;
1254
1124
  };
1255
1125
  mixed_event_times: {
1256
- status: 400;
1257
1126
  message: string;
1258
1127
  };
1259
1128
  invalid_recurrence: {
1260
- status: 400;
1261
1129
  message: string;
1262
1130
  };
1263
1131
  provider_conflict: {
1264
- status: 409;
1265
1132
  message: string;
1266
1133
  };
1267
1134
  calendar_read_only: {
1268
- status: 403;
1269
1135
  message: string;
1270
1136
  };
1271
1137
  provider_not_found: {
1272
- status: 404;
1273
1138
  message: string;
1274
1139
  };
1275
1140
  provider_forbidden: {
1276
- status: 403;
1277
1141
  message: string;
1278
1142
  };
1279
1143
  provider_unsupported: {
1280
- status: 400;
1281
1144
  message: string;
1282
1145
  };
1283
1146
  provider_rejected: {
1284
- status: 400;
1285
1147
  message: string;
1286
1148
  };
1287
1149
  provider_unavailable: {
1288
- status: 502;
1289
1150
  message: string;
1290
1151
  };
1291
1152
  provider_throttled: {
1292
- status: 429;
1293
1153
  message: string;
1294
1154
  };
1295
1155
  account_paused: {
1296
- status: 409;
1297
1156
  message: string;
1298
1157
  };
1299
1158
  account_disabled: {
1300
- status: 409;
1301
1159
  message: string;
1302
1160
  };
1303
1161
  account_reauth_required: {
1304
- status: 409;
1305
1162
  message: string;
1306
1163
  };
1307
1164
  account_misconfigured: {
1308
- status: 409;
1309
1165
  message: string;
1310
1166
  };
1311
1167
  calendar_event_not_found: {
1312
- status: 404;
1313
1168
  message: string;
1314
1169
  };
1315
1170
  calendar_disabled: {
1316
- status: 409;
1317
1171
  message: string;
1318
1172
  };
1319
1173
  account_not_found: {
1320
- status: 404;
1321
1174
  message: string;
1322
1175
  };
1323
1176
  plan_module_unavailable: {
1324
- status: 403;
1325
1177
  message: string;
1326
1178
  };
1327
- }>, Record<never, never>>;
1328
- delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1179
+ }>;
1180
+ delete: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1329
1181
  params: z.ZodObject<{
1330
1182
  accountId: z.ZodUUID;
1331
1183
  eventId: z.ZodUUID;
@@ -1340,7 +1192,7 @@ export declare const calendarEvents: {
1340
1192
  ]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
1341
1193
  comment: z.ZodOptional<z.ZodString>;
1342
1194
  }, z.core.$strip>;
1343
- }, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
1195
+ }, z.core.$strip>, z.ZodVoid, Omit<import("../errors.js").DeclaredErrors<{
1344
1196
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1345
1197
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1346
1198
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1357,73 +1209,57 @@ export declare const calendarEvents: {
1357
1209
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1358
1210
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1359
1211
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1360
- }>>, {
1212
+ }>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "calendar_disabled" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "provider_conflict" | "provider_unsupported" | "provider_rejected" | "calendar_event_not_found" | "calendar_read_only"> & {
1361
1213
  provider_conflict: {
1362
- status: 409;
1363
1214
  message: string;
1364
1215
  };
1365
1216
  calendar_read_only: {
1366
- status: 403;
1367
1217
  message: string;
1368
1218
  };
1369
1219
  provider_not_found: {
1370
- status: 404;
1371
1220
  message: string;
1372
1221
  };
1373
1222
  provider_forbidden: {
1374
- status: 403;
1375
1223
  message: string;
1376
1224
  };
1377
1225
  provider_unsupported: {
1378
- status: 400;
1379
1226
  message: string;
1380
1227
  };
1381
1228
  provider_rejected: {
1382
- status: 400;
1383
1229
  message: string;
1384
1230
  };
1385
1231
  provider_unavailable: {
1386
- status: 502;
1387
1232
  message: string;
1388
1233
  };
1389
1234
  provider_throttled: {
1390
- status: 429;
1391
1235
  message: string;
1392
1236
  };
1393
1237
  account_paused: {
1394
- status: 409;
1395
1238
  message: string;
1396
1239
  };
1397
1240
  account_disabled: {
1398
- status: 409;
1399
1241
  message: string;
1400
1242
  };
1401
1243
  account_reauth_required: {
1402
- status: 409;
1403
1244
  message: string;
1404
1245
  };
1405
1246
  account_misconfigured: {
1406
- status: 409;
1407
1247
  message: string;
1408
1248
  };
1409
1249
  calendar_event_not_found: {
1410
- status: 404;
1411
1250
  message: string;
1412
1251
  };
1413
1252
  calendar_disabled: {
1414
- status: 409;
1415
1253
  message: string;
1416
1254
  };
1417
1255
  account_not_found: {
1418
- status: 404;
1419
1256
  message: string;
1420
1257
  };
1421
1258
  plan_module_unavailable: {
1422
- status: 403;
1423
1259
  message: string;
1424
1260
  };
1425
- }>, Record<never, never>>;
1426
- respond: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1261
+ }>;
1262
+ respond: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1427
1263
  accountId: z.ZodUUID;
1428
1264
  eventId: z.ZodUUID;
1429
1265
  response: z.ZodEnum<{
@@ -1518,7 +1354,7 @@ export declare const calendarEvents: {
1518
1354
  reminderMinutes: z.ZodNullable<z.ZodNumber>;
1519
1355
  webLink: z.ZodNullable<z.ZodString>;
1520
1356
  updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
1521
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
1357
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
1522
1358
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1523
1359
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1524
1360
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1535,75 +1371,59 @@ export declare const calendarEvents: {
1535
1371
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1536
1372
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1537
1373
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1538
- }>>, {
1374
+ }>, "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "calendar_disabled" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "provider_conflict" | "provider_unsupported" | "provider_rejected" | "calendar_event_not_found" | "organizer_cannot_respond"> & {
1539
1375
  provider_conflict: {
1540
- status: 409;
1541
1376
  message: string;
1542
1377
  };
1543
1378
  organizer_cannot_respond: {
1544
- status: 409;
1545
1379
  message: string;
1546
1380
  };
1547
1381
  provider_not_found: {
1548
- status: 404;
1549
1382
  message: string;
1550
1383
  };
1551
1384
  provider_forbidden: {
1552
- status: 403;
1553
1385
  message: string;
1554
1386
  };
1555
1387
  provider_unsupported: {
1556
- status: 400;
1557
1388
  message: string;
1558
1389
  };
1559
1390
  provider_rejected: {
1560
- status: 400;
1561
1391
  message: string;
1562
1392
  };
1563
1393
  provider_unavailable: {
1564
- status: 502;
1565
1394
  message: string;
1566
1395
  };
1567
1396
  provider_throttled: {
1568
- status: 429;
1569
1397
  message: string;
1570
1398
  };
1571
1399
  account_paused: {
1572
- status: 409;
1573
1400
  message: string;
1574
1401
  };
1575
1402
  account_disabled: {
1576
- status: 409;
1577
1403
  message: string;
1578
1404
  };
1579
1405
  account_reauth_required: {
1580
- status: 409;
1581
1406
  message: string;
1582
1407
  };
1583
1408
  account_misconfigured: {
1584
- status: 409;
1585
1409
  message: string;
1586
1410
  };
1587
1411
  calendar_event_not_found: {
1588
- status: 404;
1589
1412
  message: string;
1590
1413
  };
1591
1414
  calendar_disabled: {
1592
- status: 409;
1593
1415
  message: string;
1594
1416
  };
1595
1417
  account_not_found: {
1596
- status: 404;
1597
1418
  message: string;
1598
1419
  };
1599
1420
  plan_module_unavailable: {
1600
- status: 403;
1601
1421
  message: string;
1602
1422
  };
1603
- }>, Record<never, never>>;
1423
+ }>;
1604
1424
  };
1605
1425
  export declare const availability: {
1606
- find: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1426
+ find: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1607
1427
  accountId: z.ZodUUID;
1608
1428
  includeAccount: z.ZodDefault<z.ZodBoolean>;
1609
1429
  start: z.ZodPreprocess<z.ZodDate, string | Date>;
@@ -1652,7 +1472,7 @@ export declare const availability: {
1652
1472
  start: z.ZodPreprocess<z.ZodDate, Date>;
1653
1473
  end: z.ZodPreprocess<z.ZodDate, Date>;
1654
1474
  }, z.core.$strip>>;
1655
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
1475
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
1656
1476
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1657
1477
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1658
1478
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1669,73 +1489,57 @@ export declare const availability: {
1669
1489
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1670
1490
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1671
1491
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1672
- }>>, {
1492
+ }>, "invalid_range" | "provider_unavailable" | "account_not_found" | "plan_module_unavailable" | "invalid_working_hours" | "account_paused" | "account_disabled" | "account_reauth_required" | "account_misconfigured" | "calendar_disabled" | "provider_not_found" | "provider_throttled" | "provider_forbidden" | "provider_unsupported" | "provider_rejected" | "invalid_time_zone"> & {
1673
1493
  invalid_range: {
1674
- status: 400;
1675
1494
  message: string;
1676
1495
  };
1677
1496
  invalid_working_hours: {
1678
- status: 400;
1679
1497
  message: string;
1680
1498
  };
1681
1499
  invalid_time_zone: {
1682
- status: 400;
1683
1500
  message: string;
1684
1501
  };
1685
1502
  provider_not_found: {
1686
- status: 404;
1687
1503
  message: string;
1688
1504
  };
1689
1505
  provider_forbidden: {
1690
- status: 403;
1691
1506
  message: string;
1692
1507
  };
1693
1508
  provider_unsupported: {
1694
- status: 400;
1695
1509
  message: string;
1696
1510
  };
1697
1511
  provider_rejected: {
1698
- status: 400;
1699
1512
  message: string;
1700
1513
  };
1701
1514
  provider_unavailable: {
1702
- status: 502;
1703
1515
  message: string;
1704
1516
  };
1705
1517
  provider_throttled: {
1706
- status: 429;
1707
1518
  message: string;
1708
1519
  };
1709
1520
  account_paused: {
1710
- status: 409;
1711
1521
  message: string;
1712
1522
  };
1713
1523
  account_disabled: {
1714
- status: 409;
1715
1524
  message: string;
1716
1525
  };
1717
1526
  account_reauth_required: {
1718
- status: 409;
1719
1527
  message: string;
1720
1528
  };
1721
1529
  account_misconfigured: {
1722
- status: 409;
1723
1530
  message: string;
1724
1531
  };
1725
1532
  calendar_disabled: {
1726
- status: 409;
1727
1533
  message: string;
1728
1534
  };
1729
1535
  account_not_found: {
1730
- status: 404;
1731
1536
  message: string;
1732
1537
  };
1733
1538
  plan_module_unavailable: {
1734
- status: 403;
1735
1539
  message: string;
1736
1540
  };
1737
- }>, Record<never, never>>;
1738
- findForAccounts: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1541
+ }>;
1542
+ findForAccounts: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
1739
1543
  start: z.ZodPreprocess<z.ZodDate, string | Date>;
1740
1544
  end: z.ZodPreprocess<z.ZodDate, string | Date>;
1741
1545
  durationMinutes: z.ZodDefault<z.ZodNumber>;
@@ -1804,7 +1608,7 @@ export declare const availability: {
1804
1608
  end: z.ZodPreprocess<z.ZodDate, Date>;
1805
1609
  accountIds: z.ZodArray<z.ZodUUID>;
1806
1610
  }, z.core.$strip>>;
1807
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
1611
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
1808
1612
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1809
1613
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
1810
1614
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -1821,23 +1625,19 @@ export declare const availability: {
1821
1625
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
1822
1626
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
1823
1627
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
1824
- }>>, {
1628
+ }>, "invalid_range" | "plan_module_unavailable" | "invalid_working_hours" | "unknown_account" | "invalid_time_zone"> & {
1825
1629
  unknown_account: import("../errors.js").DeclaredError<"unknown_account">;
1826
1630
  invalid_range: {
1827
- status: 400;
1828
1631
  message: string;
1829
1632
  };
1830
1633
  invalid_working_hours: {
1831
- status: 400;
1832
1634
  message: string;
1833
1635
  };
1834
1636
  invalid_time_zone: {
1835
- status: 400;
1836
1637
  message: string;
1837
1638
  };
1838
1639
  plan_module_unavailable: {
1839
- status: 403;
1840
1640
  message: string;
1841
1641
  };
1842
- }>, Record<never, never>>;
1642
+ }>;
1843
1643
  };