@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,6 +1,6 @@
1
1
  import * as z from "zod";
2
2
  export declare const schedulingLinks: {
3
- list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3
+ list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
4
4
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
5
5
  cursor: z.ZodOptional<z.ZodString>;
6
6
  }, z.core.$strip>, z.ZodObject<{
@@ -62,7 +62,7 @@ export declare const schedulingLinks: {
62
62
  updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
63
63
  }, z.core.$strip>>;
64
64
  nextCursor: z.ZodNullable<z.ZodString>;
65
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
65
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
66
66
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
67
67
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
68
68
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -79,10 +79,10 @@ export declare const schedulingLinks: {
79
79
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
80
80
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
81
81
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
82
- }>>, import("../errors.js").DeclaredErrors<{
82
+ }>, "invalid_cursor"> & import("../errors.js").DeclaredErrors<{
83
83
  readonly invalid_cursor: "The cursor is not one this list issued.";
84
- }>>, Record<never, never>>;
85
- get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
84
+ }>>;
85
+ get: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
86
86
  linkId: z.ZodUUID;
87
87
  }, z.core.$strip>, z.ZodObject<{
88
88
  title: z.ZodDefault<z.ZodString>;
@@ -140,7 +140,7 @@ export declare const schedulingLinks: {
140
140
  id: z.ZodUUID;
141
141
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
142
142
  updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
143
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
143
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
144
144
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
145
145
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
146
146
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -157,10 +157,10 @@ export declare const schedulingLinks: {
157
157
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
158
158
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
159
159
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
160
- }>>, import("../errors.js").DeclaredErrors<{
160
+ }>, "scheduling_link_not_found"> & import("../errors.js").DeclaredErrors<{
161
161
  readonly scheduling_link_not_found: "The scheduling link does not exist.";
162
- }>>, Record<never, never>>;
163
- create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
162
+ }>>;
163
+ create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
164
164
  title: z.ZodDefault<z.ZodString>;
165
165
  description: z.ZodOptional<z.ZodString>;
166
166
  location: z.ZodOptional<z.ZodString>;
@@ -269,7 +269,7 @@ export declare const schedulingLinks: {
269
269
  id: z.ZodUUID;
270
270
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
271
271
  updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
272
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
272
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
273
273
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
274
274
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
275
275
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -286,26 +286,22 @@ export declare const schedulingLinks: {
286
286
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
287
287
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
288
288
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
289
- }>>, {
289
+ }>, "plan_module_unavailable" | "invalid_working_hours" | "multiple_meeting_options" | "unknown_account" | "invalid_time_zone"> & {
290
290
  invalid_working_hours: {
291
- status: 400;
292
291
  message: string;
293
292
  };
294
293
  multiple_meeting_options: {
295
- status: 400;
296
294
  message: string;
297
295
  };
298
296
  invalid_time_zone: {
299
- status: 400;
300
297
  message: string;
301
298
  };
302
299
  unknown_account: import("../errors.js").DeclaredError<"unknown_account">;
303
300
  plan_module_unavailable: {
304
- status: 403;
305
301
  message: string;
306
302
  };
307
- }>, Record<never, never>>;
308
- update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
303
+ }>;
304
+ update: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
309
305
  linkId: z.ZodUUID;
310
306
  title: z.ZodOptional<z.ZodDefault<z.ZodString>>;
311
307
  onlineMeeting: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -415,7 +411,7 @@ export declare const schedulingLinks: {
415
411
  id: z.ZodUUID;
416
412
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
417
413
  updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
418
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
414
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
419
415
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
420
416
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
421
417
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -432,28 +428,24 @@ export declare const schedulingLinks: {
432
428
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
433
429
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
434
430
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
435
- }>>, {
431
+ }>, "invalid_working_hours" | "multiple_meeting_options" | "unknown_account" | "invalid_time_zone" | "scheduling_link_not_found"> & {
436
432
  invalid_working_hours: {
437
- status: 400;
438
433
  message: string;
439
434
  };
440
435
  multiple_meeting_options: {
441
- status: 400;
442
436
  message: string;
443
437
  };
444
438
  invalid_time_zone: {
445
- status: 400;
446
439
  message: string;
447
440
  };
448
441
  unknown_account: import("../errors.js").DeclaredError<"unknown_account">;
449
442
  scheduling_link_not_found: {
450
- status: 404;
451
443
  message: string;
452
444
  };
453
- }>, Record<never, never>>;
454
- delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
445
+ }>;
446
+ delete: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
455
447
  linkId: z.ZodUUID;
456
- }, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
448
+ }, z.core.$strip>, z.ZodVoid, Omit<import("../errors.js").DeclaredErrors<{
457
449
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
458
450
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
459
451
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -470,10 +462,10 @@ export declare const schedulingLinks: {
470
462
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
471
463
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
472
464
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
473
- }>>, import("../errors.js").DeclaredErrors<{
465
+ }>, "scheduling_link_not_found"> & import("../errors.js").DeclaredErrors<{
474
466
  readonly scheduling_link_not_found: "The scheduling link does not exist.";
475
- }>>, Record<never, never>>;
476
- slots: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
467
+ }>>;
468
+ slots: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
477
469
  linkId: z.ZodUUID;
478
470
  from: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
479
471
  to: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
@@ -484,7 +476,7 @@ export declare const schedulingLinks: {
484
476
  end: z.ZodPreprocess<z.ZodDate, Date>;
485
477
  accountIds: z.ZodArray<z.ZodUUID>;
486
478
  }, z.core.$strip>>;
487
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
479
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
488
480
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
489
481
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
490
482
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -501,23 +493,20 @@ export declare const schedulingLinks: {
501
493
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
502
494
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
503
495
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
504
- }>>, {
496
+ }>, "invalid_range" | "plan_module_unavailable" | "scheduling_link_not_found"> & {
505
497
  invalid_range: {
506
- status: 400;
507
498
  message: string;
508
499
  };
509
500
  plan_module_unavailable: {
510
- status: 403;
511
501
  message: string;
512
502
  };
513
503
  scheduling_link_not_found: {
514
- status: 404;
515
504
  message: string;
516
505
  };
517
- }>, Record<never, never>>;
506
+ }>;
518
507
  };
519
508
  export declare const bookings: {
520
- create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
509
+ create: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
521
510
  linkId: z.ZodUUID;
522
511
  start: z.ZodPreprocess<z.ZodDate, string | Date>;
523
512
  invitee: z.ZodObject<{
@@ -543,7 +532,7 @@ export declare const bookings: {
543
532
  }>;
544
533
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
545
534
  cancelledAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
546
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
535
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
547
536
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
548
537
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
549
538
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -560,105 +549,81 @@ export declare const bookings: {
560
549
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
561
550
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
562
551
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
563
- }>>, {
552
+ }>, "provider_unavailable" | "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_read_only" | "scheduling_link_not_found" | "slot_unavailable" | "slot_taken" | "meeting_service_not_connected" | "meeting_service_reauth_required" | "meeting_recurrence_unsupported" | "meeting_service_rejected" | "meeting_service_unavailable"> & {
564
553
  plan_module_unavailable: {
565
- status: 403;
566
554
  message: string;
567
555
  };
568
556
  multiple_meeting_options: {
569
- status: 400;
570
557
  message: string;
571
558
  };
572
559
  calendar_disabled: {
573
- status: 409;
574
560
  message: string;
575
561
  };
576
562
  calendar_not_found: {
577
- status: 404;
578
563
  message: string;
579
564
  };
580
565
  slot_unavailable: {
581
- status: 409;
582
566
  message: string;
583
567
  };
584
568
  slot_taken: {
585
- status: 409;
586
569
  message: string;
587
570
  };
588
571
  meeting_service_not_connected: {
589
- status: 409;
590
572
  message: string;
591
573
  };
592
574
  meeting_service_reauth_required: {
593
- status: 409;
594
575
  message: string;
595
576
  };
596
577
  meeting_recurrence_unsupported: {
597
- status: 400;
598
578
  message: string;
599
579
  };
600
580
  meeting_service_rejected: {
601
- status: 400;
602
581
  message: string;
603
582
  };
604
583
  meeting_service_unavailable: {
605
- status: 502;
606
584
  message: string;
607
585
  };
608
586
  provider_conflict: {
609
- status: 409;
610
587
  message: string;
611
588
  };
612
589
  calendar_read_only: {
613
- status: 403;
614
590
  message: string;
615
591
  };
616
592
  provider_not_found: {
617
- status: 404;
618
593
  message: string;
619
594
  };
620
595
  provider_forbidden: {
621
- status: 403;
622
596
  message: string;
623
597
  };
624
598
  provider_unsupported: {
625
- status: 400;
626
599
  message: string;
627
600
  };
628
601
  provider_rejected: {
629
- status: 400;
630
602
  message: string;
631
603
  };
632
604
  provider_unavailable: {
633
- status: 502;
634
605
  message: string;
635
606
  };
636
607
  provider_throttled: {
637
- status: 429;
638
608
  message: string;
639
609
  };
640
610
  account_paused: {
641
- status: 409;
642
611
  message: string;
643
612
  };
644
613
  account_disabled: {
645
- status: 409;
646
614
  message: string;
647
615
  };
648
616
  account_reauth_required: {
649
- status: 409;
650
617
  message: string;
651
618
  };
652
619
  account_misconfigured: {
653
- status: 409;
654
620
  message: string;
655
621
  };
656
622
  scheduling_link_not_found: {
657
- status: 404;
658
623
  message: string;
659
624
  };
660
- }>, Record<never, never>>;
661
- cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
625
+ }>;
626
+ cancel: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
662
627
  bookingId: z.ZodUUID;
663
628
  }, z.core.$strip>, z.ZodObject<{
664
629
  id: z.ZodUUID;
@@ -678,7 +643,7 @@ export declare const bookings: {
678
643
  }>;
679
644
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
680
645
  cancelledAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
681
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
646
+ }, z.core.$strip>, Omit<import("../errors.js").DeclaredErrors<{
682
647
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
683
648
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
684
649
  readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
@@ -695,62 +660,48 @@ export declare const bookings: {
695
660
  readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
696
661
  readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
697
662
  readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
698
- }>>, {
663
+ }>, "provider_unavailable" | "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" | "booking_not_found" | "booking_cancelled"> & {
699
664
  calendar_disabled: {
700
- status: 409;
701
665
  message: string;
702
666
  };
703
667
  booking_not_found: {
704
- status: 404;
705
668
  message: string;
706
669
  };
707
670
  booking_cancelled: {
708
- status: 409;
709
671
  message: string;
710
672
  };
711
673
  provider_not_found: {
712
- status: 404;
713
674
  message: string;
714
675
  };
715
676
  provider_forbidden: {
716
- status: 403;
717
677
  message: string;
718
678
  };
719
679
  provider_unsupported: {
720
- status: 400;
721
680
  message: string;
722
681
  };
723
682
  provider_rejected: {
724
- status: 400;
725
683
  message: string;
726
684
  };
727
685
  provider_unavailable: {
728
- status: 502;
729
686
  message: string;
730
687
  };
731
688
  provider_throttled: {
732
- status: 429;
733
689
  message: string;
734
690
  };
735
691
  account_paused: {
736
- status: 409;
737
692
  message: string;
738
693
  };
739
694
  account_disabled: {
740
- status: 409;
741
695
  message: string;
742
696
  };
743
697
  account_reauth_required: {
744
- status: 409;
745
698
  message: string;
746
699
  };
747
700
  account_misconfigured: {
748
- status: 409;
749
701
  message: string;
750
702
  };
751
703
  plan_module_unavailable: {
752
- status: 403;
753
704
  message: string;
754
705
  };
755
- }>, Record<never, never>>;
706
+ }>;
756
707
  };