@msm-platform/customer-sdk 0.4.1 → 0.5.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.
@@ -101,6 +101,58 @@ export interface paths {
101
101
  patch?: never;
102
102
  trace?: never;
103
103
  };
104
+ "/web/businesses/{businessId}/payment-methods": {
105
+ parameters: {
106
+ query?: never;
107
+ header?: never;
108
+ path?: never;
109
+ cookie?: never;
110
+ };
111
+ /** List the payment methods a public business takes online payments through, in its order, for the customer to choose one at checkout; none means it takes no online payments */
112
+ get: operations["listOnlinePaymentMethods"];
113
+ put?: never;
114
+ post?: never;
115
+ delete?: never;
116
+ options?: never;
117
+ head?: never;
118
+ patch?: never;
119
+ trace?: never;
120
+ };
121
+ "/web/businesses/{businessId}/products": {
122
+ parameters: {
123
+ query?: never;
124
+ header?: never;
125
+ path?: never;
126
+ cookie?: never;
127
+ };
128
+ /** List a public business's active products, oldest first, each with its price including VAT and its terms */
129
+ get: operations["listPublicProducts"];
130
+ put?: never;
131
+ post?: never;
132
+ delete?: never;
133
+ options?: never;
134
+ head?: never;
135
+ patch?: never;
136
+ trace?: never;
137
+ };
138
+ "/web/businesses/{businessId}/products/{productId}/checkout": {
139
+ parameters: {
140
+ query?: never;
141
+ header?: never;
142
+ path?: never;
143
+ cookie?: never;
144
+ };
145
+ /** Read your newest checkout of a product: pending while unpaid (with the provider's page while it takes payment), paid with `paidAt` once the payment is recorded, abandoned when you started again after its payment ended unpaid */
146
+ get: operations["getProductCheckout"];
147
+ put?: never;
148
+ /** Buy one of a business's active products: the first call sells it to you at its price of now and returns `payment.redirectUrl`, the page of your chosen `paymentMethodId` (one listOnlinePaymentMethods lists, else 422 PaymentProviderNotOffered) to pay the full price at; a repeat returns the same sale and payment, unless that payment ended unpaid, when it sells again. The sale is `paid` once the provider's payment is recorded; read it with getProductCheckout after the provider sends you back. The provider's receipt is your proof of purchase. A product priced 0 is paid at once. You must already be the business's customer (422 CustomerOutsideBusiness). 422 ProductInactive, 404 ProductNotFound, 503 PaymentProviderUnavailable when the provider did not answer (the same request retries the same payment) */
149
+ post: operations["startProductCheckout"];
150
+ delete?: never;
151
+ options?: never;
152
+ head?: never;
153
+ patch?: never;
154
+ trace?: never;
155
+ };
104
156
  "/web/businesses/{businessId}/reservations": {
105
157
  parameters: {
106
158
  query?: never;
@@ -118,6 +170,24 @@ export interface paths {
118
170
  patch?: never;
119
171
  trace?: never;
120
172
  };
173
+ "/web/businesses/{businessId}/reservations/{reservationId}/checkout": {
174
+ parameters: {
175
+ query?: never;
176
+ header?: never;
177
+ path?: never;
178
+ cookie?: never;
179
+ };
180
+ /** Read the checkout of your own reservation: pending while the advance is unpaid (with the provider's page while it takes payment), confirmed with `bookingId` once booked, released when the payment ended unpaid or the hold ended, and unconfirmed_paid when you paid but the seat was gone, for the business to settle with you */
181
+ get: operations["getCheckout"];
182
+ put?: never;
183
+ /** Pay for your own held reservation of an event type with a price: the first call records what you buy, holds the seat while you pay (up to the platform's checkout hold, and no longer than the provider's payment page) and returns `payment.redirectUrl`, the page of the customer's chosen `paymentMethodId` (one listOnlinePaymentMethods lists, else 422 PaymentProviderNotOffered) to pay the advance at; a repeat returns the same payment. The booking is confirmed once the advance is paid; read it with getCheckout after the provider sends you back. With no advance it is confirmed at once. 422 CheckoutNotRequired for an event type with no price, 409 ReservationExpired after the hold, 403 NotAuthorized without access, 403 BookingBanned with `bannedUntil`, 503 PaymentProviderUnavailable when the provider did not answer (the same request retries the same payment) */
184
+ post: operations["startCheckout"];
185
+ delete?: never;
186
+ options?: never;
187
+ head?: never;
188
+ patch?: never;
189
+ trace?: never;
190
+ };
121
191
  "/web/businesses/{businessId}/reservations/{reservationId}/confirm": {
122
192
  parameters: {
123
193
  query?: never;
@@ -127,7 +197,7 @@ export interface paths {
127
197
  };
128
198
  get?: never;
129
199
  put?: never;
130
- /** Confirm your own reservation into exactly one booking, spending one pass credit when a pass covers the event type; a retry returns the same booking, 409 ReservationExpired after its deadline, 403 NotAuthorized without access at the event's start or when the passes for an event type that requires access have run out of credits, 403 BookingBanned with `bannedUntil` when the business's no-show ban policy bans you */
200
+ /** Confirm your own reservation into exactly one booking, spending one pass credit when a pass covers the event type; a retry returns the same booking, 409 ReservationExpired after its deadline, 403 NotAuthorized without access at the event's start or when the passes for an event type that requires access have run out of credits, 403 BookingBanned with `bannedUntil` when the business's no-show ban policy bans you; an event type with a price is 422 CheckoutRequired, booked through startCheckout instead */
131
201
  post: operations["confirmReservation"];
132
202
  delete?: never;
133
203
  options?: never;
@@ -312,7 +382,546 @@ export interface components {
312
382
  message: string;
313
383
  };
314
384
  };
315
- responses: never;
385
+ responses: {
386
+ /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
387
+ BodyTooLarge: {
388
+ headers: {
389
+ [name: string]: unknown;
390
+ };
391
+ content: {
392
+ "application/json": components["schemas"]["ErrorResponse"] & {
393
+ /** @enum {string} */
394
+ code: "BodyTooLarge";
395
+ };
396
+ };
397
+ };
398
+ /**
399
+ * @description - `BookingBanned`: The customer's no-shows at the business ban them from booking online until `bannedUntil`; staff can still book them
400
+ * - `NotAuthorized`: The actor is not permitted to perform this operation
401
+ * - `OutsideClientScope`: The application client serves only its own partner's businesses
402
+ */
403
+ "BookingBanned-NotAuthorized-OutsideClientScope": {
404
+ headers: {
405
+ [name: string]: unknown;
406
+ };
407
+ content: {
408
+ "application/json": components["schemas"]["BookingBannedErrorResponse"] & {
409
+ /** @enum {string} */
410
+ code: "BookingBanned" | "NotAuthorized" | "OutsideClientScope";
411
+ };
412
+ };
413
+ };
414
+ /** @description - `BookingNotFound`: The booking does not exist, or is not the caller's */
415
+ BookingNotFound: {
416
+ headers: {
417
+ [name: string]: unknown;
418
+ };
419
+ content: {
420
+ "application/json": components["schemas"]["ErrorResponse"] & {
421
+ /** @enum {string} */
422
+ code: "BookingNotFound";
423
+ };
424
+ };
425
+ };
426
+ /**
427
+ * @description - `BookingNotFound`: The booking does not exist, or is not the caller's
428
+ * - `BusinessNotFound`: The business does not exist or is not public
429
+ */
430
+ "BookingNotFound-BusinessNotFound": {
431
+ headers: {
432
+ [name: string]: unknown;
433
+ };
434
+ content: {
435
+ "application/json": components["schemas"]["ErrorResponse"] & {
436
+ /** @enum {string} */
437
+ code: "BookingNotFound" | "BusinessNotFound";
438
+ };
439
+ };
440
+ };
441
+ /**
442
+ * @description - `BotCheckFailed`: The visitor's bot-check token did not pass the calling application's Turnstile widget
443
+ * - `NotAuthorized`: The actor is not permitted to perform this operation
444
+ */
445
+ "BotCheckFailed-NotAuthorized": {
446
+ headers: {
447
+ [name: string]: unknown;
448
+ };
449
+ content: {
450
+ "application/json": components["schemas"]["ErrorResponse"] & {
451
+ /** @enum {string} */
452
+ code: "BotCheckFailed" | "NotAuthorized";
453
+ };
454
+ };
455
+ };
456
+ /**
457
+ * @description - `BotCheckUnavailable`: The bot check could not be made: Turnstile did not answer in time, or the calling application has no widget secret; retry after `Retry-After` seconds
458
+ * - `LimiterUnavailable`: The per-address sign-in limit could not be counted; retry after `Retry-After` seconds
459
+ * - `SmsBudgetExhausted`: The client's hourly SMS budget is used up; retry after `Retry-After` seconds
460
+ * - `SmsDeliveryUnavailable`: The SMS could not be confirmed as sent; retry after `Retry-After` seconds
461
+ */
462
+ "BotCheckUnavailable-LimiterUnavailable-SmsBudgetExhausted-SmsDeliveryUnavailable": {
463
+ headers: {
464
+ /** @description Seconds to wait before sending the request again */
465
+ "Retry-After"?: number;
466
+ [name: string]: unknown;
467
+ };
468
+ content: {
469
+ "application/json": components["schemas"]["ErrorResponse"] & {
470
+ /** @enum {string} */
471
+ code: "BotCheckUnavailable" | "LimiterUnavailable" | "SmsBudgetExhausted" | "SmsDeliveryUnavailable";
472
+ };
473
+ };
474
+ };
475
+ /** @description - `BusinessNotFound`: The business does not exist or is not public */
476
+ BusinessNotFound: {
477
+ headers: {
478
+ [name: string]: unknown;
479
+ };
480
+ content: {
481
+ "application/json": components["schemas"]["ErrorResponse"] & {
482
+ /** @enum {string} */
483
+ code: "BusinessNotFound";
484
+ };
485
+ };
486
+ };
487
+ /**
488
+ * @description - `BusinessNotFound`: The business does not exist or is not public
489
+ * - `EventNotFound`: The event does not exist in this business
490
+ * - `EventTypeNotFound`: The event type does not exist in this business
491
+ */
492
+ "BusinessNotFound-EventNotFound-EventTypeNotFound": {
493
+ headers: {
494
+ [name: string]: unknown;
495
+ };
496
+ content: {
497
+ "application/json": components["schemas"]["ErrorResponse"] & {
498
+ /** @enum {string} */
499
+ code: "BusinessNotFound" | "EventNotFound" | "EventTypeNotFound";
500
+ };
501
+ };
502
+ };
503
+ /**
504
+ * @description - `BusinessNotFound`: The business does not exist or is not public
505
+ * - `ProductNotFound`: The product does not exist in this business
506
+ */
507
+ "BusinessNotFound-ProductNotFound": {
508
+ headers: {
509
+ [name: string]: unknown;
510
+ };
511
+ content: {
512
+ "application/json": components["schemas"]["ErrorResponse"] & {
513
+ /** @enum {string} */
514
+ code: "BusinessNotFound" | "ProductNotFound";
515
+ };
516
+ };
517
+ };
518
+ /**
519
+ * @description - `BusinessNotFound`: The business does not exist or is not public
520
+ * - `ReservationNotFound`: The reservation does not exist, or is not the caller's
521
+ */
522
+ "BusinessNotFound-ReservationNotFound": {
523
+ headers: {
524
+ [name: string]: unknown;
525
+ };
526
+ content: {
527
+ "application/json": components["schemas"]["ErrorResponse"] & {
528
+ /** @enum {string} */
529
+ code: "BusinessNotFound" | "ReservationNotFound";
530
+ };
531
+ };
532
+ };
533
+ /**
534
+ * @description - `CheckoutNotFound`: The reservation has no checkout
535
+ * - `ReservationNotFound`: The reservation does not exist, or is not the caller's
536
+ */
537
+ "CheckoutNotFound-ReservationNotFound": {
538
+ headers: {
539
+ [name: string]: unknown;
540
+ };
541
+ content: {
542
+ "application/json": components["schemas"]["ErrorResponse"] & {
543
+ /** @enum {string} */
544
+ code: "CheckoutNotFound" | "ReservationNotFound";
545
+ };
546
+ };
547
+ };
548
+ /**
549
+ * @description - `CheckoutNotRequired`: The event type has no price, so the reservation is confirmed directly, with no checkout
550
+ * - `CustomerOutsideBusiness`: The participant is not a live customer of this business
551
+ * - `EventNotBookable`: Only a scheduled event with a live event type can be reserved or booked
552
+ * - `EventStarted`: The event has started
553
+ * - `PaymentProviderNotConnected`: The business has saved no credentials for this payment provider
554
+ * - `PaymentProviderNotOffered`: The business shows no such payment method online, or it must be reconnected first; list the payment methods again
555
+ * - `PaymentProviderRejected`: The payment provider refused to open the payment, so the attempt failed; check the business's credentials
556
+ */
557
+ "CheckoutNotRequired-CustomerOutsideBusiness-EventNotBookable-EventStarted-PaymentProviderNotConnected-PaymentProviderNotOffered-PaymentProviderRejected": {
558
+ headers: {
559
+ [name: string]: unknown;
560
+ };
561
+ content: {
562
+ "application/json": components["schemas"]["ErrorResponse"] & {
563
+ /** @enum {string} */
564
+ code: "CheckoutNotRequired" | "CustomerOutsideBusiness" | "EventNotBookable" | "EventStarted" | "PaymentProviderNotConnected" | "PaymentProviderNotOffered" | "PaymentProviderRejected";
565
+ };
566
+ };
567
+ };
568
+ /**
569
+ * @description - `CheckoutRequired`: The event type has a price, so the reservation is booked through its checkout, not confirmed directly
570
+ * - `CustomerOutsideBusiness`: The participant is not a live customer of this business
571
+ * - `EventNotBookable`: Only a scheduled event with a live event type can be reserved or booked
572
+ * - `EventStarted`: The event has started
573
+ */
574
+ "CheckoutRequired-CustomerOutsideBusiness-EventNotBookable-EventStarted": {
575
+ headers: {
576
+ [name: string]: unknown;
577
+ };
578
+ content: {
579
+ "application/json": components["schemas"]["ErrorResponse"] & {
580
+ /** @enum {string} */
581
+ code: "CheckoutRequired" | "CustomerOutsideBusiness" | "EventNotBookable" | "EventStarted";
582
+ };
583
+ };
584
+ };
585
+ /**
586
+ * @description - `CustomerOutsideBusiness`: The participant is not a live customer of this business
587
+ * - `PaymentProviderNotConnected`: The business has saved no credentials for this payment provider
588
+ * - `PaymentProviderNotOffered`: The business shows no such payment method online, or it must be reconnected first; list the payment methods again
589
+ * - `PaymentProviderRejected`: The payment provider refused to open the payment, so the attempt failed; check the business's credentials
590
+ * - `ProductInactive`: The product is inactive and is not sold
591
+ */
592
+ "CustomerOutsideBusiness-PaymentProviderNotConnected-PaymentProviderNotOffered-PaymentProviderRejected-ProductInactive": {
593
+ headers: {
594
+ [name: string]: unknown;
595
+ };
596
+ content: {
597
+ "application/json": components["schemas"]["ErrorResponse"] & {
598
+ /** @enum {string} */
599
+ code: "CustomerOutsideBusiness" | "PaymentProviderNotConnected" | "PaymentProviderNotOffered" | "PaymentProviderRejected" | "ProductInactive";
600
+ };
601
+ };
602
+ };
603
+ /**
604
+ * @description - `CustomerSessionRequired`: The operation needs a customer's session
605
+ * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
606
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
607
+ */
608
+ "CustomerSessionRequired-NotAuthenticated-SessionExpired": {
609
+ headers: {
610
+ [name: string]: unknown;
611
+ };
612
+ content: {
613
+ "application/json": components["schemas"]["ErrorResponse"] & {
614
+ /** @enum {string} */
615
+ code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
616
+ };
617
+ };
618
+ };
619
+ /**
620
+ * @description - `DeliveryLimitReached`: The customer already has as many of this product's memberships as one customer may get
621
+ * - `PaymentAlreadySucceeded`: This part of the agreement was already paid, with another amount, collector or provider
622
+ * - `PaymentInProgress`: This part of the agreement has an open payment attempt for another amount, collector or provider; wait until it ends
623
+ */
624
+ "DeliveryLimitReached-PaymentAlreadySucceeded-PaymentInProgress": {
625
+ headers: {
626
+ [name: string]: unknown;
627
+ };
628
+ content: {
629
+ "application/json": components["schemas"]["ErrorResponse"] & {
630
+ /** @enum {string} */
631
+ code: "DeliveryLimitReached" | "PaymentAlreadySucceeded" | "PaymentInProgress";
632
+ };
633
+ };
634
+ };
635
+ /**
636
+ * @description - `EventFull`: The event has no free seat
637
+ * - `ReservationLimitReached`: The customer already holds the most active reservations allowed on Web (5, across the businesses this client reaches); reserve again once a hold lapses or is confirmed
638
+ * - `SlotTaken`: The time slot is taken on every resource that could provide it
639
+ */
640
+ "EventFull-ReservationLimitReached-SlotTaken": {
641
+ headers: {
642
+ [name: string]: unknown;
643
+ };
644
+ content: {
645
+ "application/json": components["schemas"]["ErrorResponse"] & {
646
+ /** @enum {string} */
647
+ code: "EventFull" | "ReservationLimitReached" | "SlotTaken";
648
+ };
649
+ };
650
+ };
651
+ /**
652
+ * @description - `EventNotBookable`: Only a scheduled event with a live event type can be reserved or booked
653
+ * - `EventStarted`: The event has started
654
+ * - `NotATimeSlot`: The start is not an open time slot of the event type on a resource that provides it
655
+ */
656
+ "EventNotBookable-EventStarted-NotATimeSlot": {
657
+ headers: {
658
+ [name: string]: unknown;
659
+ };
660
+ content: {
661
+ "application/json": components["schemas"]["ErrorResponse"] & {
662
+ /** @enum {string} */
663
+ code: "EventNotBookable" | "EventStarted" | "NotATimeSlot";
664
+ };
665
+ };
666
+ };
667
+ /** @description - `EventStarted`: The event has started */
668
+ EventStarted: {
669
+ headers: {
670
+ [name: string]: unknown;
671
+ };
672
+ content: {
673
+ "application/json": components["schemas"]["ErrorResponse"] & {
674
+ /** @enum {string} */
675
+ code: "EventStarted";
676
+ };
677
+ };
678
+ };
679
+ /** @description - `InternalError`: The engine failed unexpectedly */
680
+ InternalError: {
681
+ headers: {
682
+ [name: string]: unknown;
683
+ };
684
+ content: {
685
+ "application/json": components["schemas"]["ErrorResponse"] & {
686
+ /** @enum {string} */
687
+ code: "InternalError";
688
+ };
689
+ };
690
+ };
691
+ /**
692
+ * @description - `InvalidInterval`: An interval ends before it starts
693
+ * - `RangeTooLong`: The range covers more days than one request may
694
+ */
695
+ "InvalidInterval-RangeTooLong": {
696
+ headers: {
697
+ [name: string]: unknown;
698
+ };
699
+ content: {
700
+ "application/json": components["schemas"]["ErrorResponse"] & {
701
+ /** @enum {string} */
702
+ code: "InvalidInterval" | "RangeTooLong";
703
+ };
704
+ };
705
+ };
706
+ /** @description - `MalformedBody`: The JSON body cannot be parsed */
707
+ MalformedBody: {
708
+ headers: {
709
+ [name: string]: unknown;
710
+ };
711
+ content: {
712
+ "application/json": components["schemas"]["ErrorResponse"] & {
713
+ /** @enum {string} */
714
+ code: "MalformedBody";
715
+ };
716
+ };
717
+ };
718
+ /**
719
+ * @description - `MalformedBody`: The JSON body cannot be parsed
720
+ * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
721
+ */
722
+ "MalformedBody-ValidationFailed": {
723
+ headers: {
724
+ [name: string]: unknown;
725
+ };
726
+ content: {
727
+ "application/json": components["schemas"]["ValidationErrorResponse"] & {
728
+ /** @enum {string} */
729
+ code: "MalformedBody" | "ValidationFailed";
730
+ };
731
+ };
732
+ };
733
+ /** @description - `NameRequired`: A new customer's registration needs their name; the ticket can be sent again with it */
734
+ NameRequired: {
735
+ headers: {
736
+ [name: string]: unknown;
737
+ };
738
+ content: {
739
+ "application/json": components["schemas"]["ErrorResponse"] & {
740
+ /** @enum {string} */
741
+ code: "NameRequired";
742
+ };
743
+ };
744
+ };
745
+ /**
746
+ * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
747
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
748
+ */
749
+ "NotAuthenticated-SessionExpired": {
750
+ headers: {
751
+ [name: string]: unknown;
752
+ };
753
+ content: {
754
+ "application/json": components["schemas"]["ErrorResponse"] & {
755
+ /** @enum {string} */
756
+ code: "NotAuthenticated" | "SessionExpired";
757
+ };
758
+ };
759
+ };
760
+ /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
761
+ NotAuthorized: {
762
+ headers: {
763
+ [name: string]: unknown;
764
+ };
765
+ content: {
766
+ "application/json": components["schemas"]["ErrorResponse"] & {
767
+ /** @enum {string} */
768
+ code: "NotAuthorized";
769
+ };
770
+ };
771
+ };
772
+ /**
773
+ * @description - `NotAuthorized`: The actor is not permitted to perform this operation
774
+ * - `OutsideClientScope`: The application client serves only its own partner's businesses
775
+ */
776
+ "NotAuthorized-OutsideClientScope": {
777
+ headers: {
778
+ [name: string]: unknown;
779
+ };
780
+ content: {
781
+ "application/json": components["schemas"]["ErrorResponse"] & {
782
+ /** @enum {string} */
783
+ code: "NotAuthorized" | "OutsideClientScope";
784
+ };
785
+ };
786
+ };
787
+ /** @description - `OutsideClientScope`: The application client serves only its own partner's businesses */
788
+ OutsideClientScope: {
789
+ headers: {
790
+ [name: string]: unknown;
791
+ };
792
+ content: {
793
+ "application/json": components["schemas"]["ErrorResponse"] & {
794
+ /** @enum {string} */
795
+ code: "OutsideClientScope";
796
+ };
797
+ };
798
+ };
799
+ /**
800
+ * @description - `PaymentAlreadySucceeded`: This part of the agreement was already paid, with another amount, collector or provider
801
+ * - `PaymentInProgress`: This part of the agreement has an open payment attempt for another amount, collector or provider; wait until it ends
802
+ * - `ReservationExpired`: The reservation expired and no longer holds its seat or slot
803
+ */
804
+ "PaymentAlreadySucceeded-PaymentInProgress-ReservationExpired": {
805
+ headers: {
806
+ [name: string]: unknown;
807
+ };
808
+ content: {
809
+ "application/json": components["schemas"]["ErrorResponse"] & {
810
+ /** @enum {string} */
811
+ code: "PaymentAlreadySucceeded" | "PaymentInProgress" | "ReservationExpired";
812
+ };
813
+ };
814
+ };
815
+ /**
816
+ * @description - `PaymentCredentialsUnavailable`: The engine cannot store or read payment provider credentials now; retry after `Retry-After` seconds
817
+ * - `PaymentProviderUnavailable`: The payment provider did not answer, or it is not configured here; the same request retries the same attempt after `Retry-After` seconds
818
+ */
819
+ "PaymentCredentialsUnavailable-PaymentProviderUnavailable": {
820
+ headers: {
821
+ /** @description Seconds to wait before sending the request again */
822
+ "Retry-After"?: number;
823
+ [name: string]: unknown;
824
+ };
825
+ content: {
826
+ "application/json": components["schemas"]["ErrorResponse"] & {
827
+ /** @enum {string} */
828
+ code: "PaymentCredentialsUnavailable" | "PaymentProviderUnavailable";
829
+ };
830
+ };
831
+ };
832
+ /** @description - `PhoneDestinationNotAllowed`: SMS is not sent to this phone number's country */
833
+ PhoneDestinationNotAllowed: {
834
+ headers: {
835
+ [name: string]: unknown;
836
+ };
837
+ content: {
838
+ "application/json": components["schemas"]["ErrorResponse"] & {
839
+ /** @enum {string} */
840
+ code: "PhoneDestinationNotAllowed";
841
+ };
842
+ };
843
+ };
844
+ /** @description - `ProductCheckoutNotFound`: You have not started a checkout of this product */
845
+ ProductCheckoutNotFound: {
846
+ headers: {
847
+ [name: string]: unknown;
848
+ };
849
+ content: {
850
+ "application/json": components["schemas"]["ErrorResponse"] & {
851
+ /** @enum {string} */
852
+ code: "ProductCheckoutNotFound";
853
+ };
854
+ };
855
+ };
856
+ /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
857
+ RateLimited: {
858
+ headers: {
859
+ /** @description Seconds to wait before sending the request again */
860
+ "Retry-After"?: number;
861
+ [name: string]: unknown;
862
+ };
863
+ content: {
864
+ "application/json": components["schemas"]["ErrorResponse"] & {
865
+ /** @enum {string} */
866
+ code: "RateLimited";
867
+ };
868
+ };
869
+ };
870
+ /**
871
+ * @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds
872
+ * - `TooManyAttempts`: Too many sign-in codes were requested from this address; retry after `Retry-After` seconds
873
+ * - `TooManyChallenges`: Too many sign-in codes were sent to this number; retry after `Retry-After` seconds
874
+ */
875
+ "RateLimited-TooManyAttempts-TooManyChallenges": {
876
+ headers: {
877
+ /** @description Seconds to wait before sending the request again */
878
+ "Retry-After"?: number;
879
+ [name: string]: unknown;
880
+ };
881
+ content: {
882
+ "application/json": components["schemas"]["ErrorResponse"] & {
883
+ /** @enum {string} */
884
+ code: "RateLimited" | "TooManyAttempts" | "TooManyChallenges";
885
+ };
886
+ };
887
+ };
888
+ /** @description - `ReservationExpired`: The reservation expired and no longer holds its seat or slot */
889
+ ReservationExpired: {
890
+ headers: {
891
+ [name: string]: unknown;
892
+ };
893
+ content: {
894
+ "application/json": components["schemas"]["ErrorResponse"] & {
895
+ /** @enum {string} */
896
+ code: "ReservationExpired";
897
+ };
898
+ };
899
+ };
900
+ /** @description - `UnsupportedMediaType`: The body's content type is not one the operation accepts: `application/json`, or the image types an image upload lists */
901
+ UnsupportedMediaType: {
902
+ headers: {
903
+ [name: string]: unknown;
904
+ };
905
+ content: {
906
+ "application/json": components["schemas"]["ErrorResponse"] & {
907
+ /** @enum {string} */
908
+ code: "UnsupportedMediaType";
909
+ };
910
+ };
911
+ };
912
+ /** @description - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path */
913
+ ValidationFailed: {
914
+ headers: {
915
+ [name: string]: unknown;
916
+ };
917
+ content: {
918
+ "application/json": components["schemas"]["ValidationErrorResponse"] & {
919
+ /** @enum {string} */
920
+ code: "ValidationFailed";
921
+ };
922
+ };
923
+ };
924
+ };
316
925
  parameters: never;
317
926
  requestBodies: never;
318
927
  headers: never;
@@ -385,74 +994,25 @@ export interface operations {
385
994
  };
386
995
  };
387
996
  };
388
- /** @description - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path */
389
- 400: {
390
- headers: {
391
- [name: string]: unknown;
392
- };
393
- content: {
394
- "application/json": components["schemas"]["ValidationErrorResponse"] & {
395
- /** @enum {string} */
396
- code: "ValidationFailed";
397
- };
398
- };
399
- };
400
- /**
401
- * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
402
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
403
- */
404
- 401: {
405
- headers: {
406
- [name: string]: unknown;
407
- };
408
- content: {
409
- "application/json": components["schemas"]["ErrorResponse"] & {
410
- /** @enum {string} */
411
- code: "NotAuthenticated" | "SessionExpired";
412
- };
413
- };
414
- };
415
- /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
416
- 429: {
417
- headers: {
418
- /** @description Seconds to wait before sending the request again */
419
- "Retry-After"?: number;
420
- [name: string]: unknown;
421
- };
422
- content: {
423
- "application/json": components["schemas"]["ErrorResponse"] & {
424
- /** @enum {string} */
425
- code: "RateLimited";
426
- };
427
- };
428
- };
429
- /** @description - `InternalError`: The engine failed unexpectedly */
430
- 500: {
431
- headers: {
432
- [name: string]: unknown;
433
- };
434
- content: {
435
- "application/json": components["schemas"]["ErrorResponse"] & {
436
- /** @enum {string} */
437
- code: "InternalError";
438
- };
439
- };
440
- };
441
- };
442
- };
443
- getPublicBusiness: {
444
- parameters: {
445
- query?: never;
446
- header?: never;
447
- path: {
448
- businessId: string;
449
- };
450
- cookie?: never;
451
- };
452
- requestBody?: never;
453
- responses: {
454
- /** @description OK */
455
- 200: {
997
+ 400: components["responses"]["ValidationFailed"];
998
+ 401: components["responses"]["NotAuthenticated-SessionExpired"];
999
+ 429: components["responses"]["RateLimited"];
1000
+ 500: components["responses"]["InternalError"];
1001
+ };
1002
+ };
1003
+ getPublicBusiness: {
1004
+ parameters: {
1005
+ query?: never;
1006
+ header?: never;
1007
+ path: {
1008
+ businessId: string;
1009
+ };
1010
+ cookie?: never;
1011
+ };
1012
+ requestBody?: never;
1013
+ responses: {
1014
+ /** @description OK */
1015
+ 200: {
456
1016
  headers: {
457
1017
  [name: string]: unknown;
458
1018
  };
@@ -499,83 +1059,12 @@ export interface operations {
499
1059
  };
500
1060
  };
501
1061
  };
502
- /** @description - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path */
503
- 400: {
504
- headers: {
505
- [name: string]: unknown;
506
- };
507
- content: {
508
- "application/json": components["schemas"]["ValidationErrorResponse"] & {
509
- /** @enum {string} */
510
- code: "ValidationFailed";
511
- };
512
- };
513
- };
514
- /**
515
- * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
516
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
517
- */
518
- 401: {
519
- headers: {
520
- [name: string]: unknown;
521
- };
522
- content: {
523
- "application/json": components["schemas"]["ErrorResponse"] & {
524
- /** @enum {string} */
525
- code: "NotAuthenticated" | "SessionExpired";
526
- };
527
- };
528
- };
529
- /** @description - `OutsideClientScope`: The application client serves only its own partner's businesses */
530
- 403: {
531
- headers: {
532
- [name: string]: unknown;
533
- };
534
- content: {
535
- "application/json": components["schemas"]["ErrorResponse"] & {
536
- /** @enum {string} */
537
- code: "OutsideClientScope";
538
- };
539
- };
540
- };
541
- /** @description - `BusinessNotFound`: The business does not exist or is not public */
542
- 404: {
543
- headers: {
544
- [name: string]: unknown;
545
- };
546
- content: {
547
- "application/json": components["schemas"]["ErrorResponse"] & {
548
- /** @enum {string} */
549
- code: "BusinessNotFound";
550
- };
551
- };
552
- };
553
- /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
554
- 429: {
555
- headers: {
556
- /** @description Seconds to wait before sending the request again */
557
- "Retry-After"?: number;
558
- [name: string]: unknown;
559
- };
560
- content: {
561
- "application/json": components["schemas"]["ErrorResponse"] & {
562
- /** @enum {string} */
563
- code: "RateLimited";
564
- };
565
- };
566
- };
567
- /** @description - `InternalError`: The engine failed unexpectedly */
568
- 500: {
569
- headers: {
570
- [name: string]: unknown;
571
- };
572
- content: {
573
- "application/json": components["schemas"]["ErrorResponse"] & {
574
- /** @enum {string} */
575
- code: "InternalError";
576
- };
577
- };
578
- };
1062
+ 400: components["responses"]["ValidationFailed"];
1063
+ 401: components["responses"]["NotAuthenticated-SessionExpired"];
1064
+ 403: components["responses"]["OutsideClientScope"];
1065
+ 404: components["responses"]["BusinessNotFound"];
1066
+ 429: components["responses"]["RateLimited"];
1067
+ 500: components["responses"]["InternalError"];
579
1068
  };
580
1069
  };
581
1070
  listPublicAvailability: {
@@ -638,98 +1127,13 @@ export interface operations {
638
1127
  };
639
1128
  };
640
1129
  };
641
- /** @description - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path */
642
- 400: {
643
- headers: {
644
- [name: string]: unknown;
645
- };
646
- content: {
647
- "application/json": components["schemas"]["ValidationErrorResponse"] & {
648
- /** @enum {string} */
649
- code: "ValidationFailed";
650
- };
651
- };
652
- };
653
- /**
654
- * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
655
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
656
- */
657
- 401: {
658
- headers: {
659
- [name: string]: unknown;
660
- };
661
- content: {
662
- "application/json": components["schemas"]["ErrorResponse"] & {
663
- /** @enum {string} */
664
- code: "NotAuthenticated" | "SessionExpired";
665
- };
666
- };
667
- };
668
- /** @description - `OutsideClientScope`: The application client serves only its own partner's businesses */
669
- 403: {
670
- headers: {
671
- [name: string]: unknown;
672
- };
673
- content: {
674
- "application/json": components["schemas"]["ErrorResponse"] & {
675
- /** @enum {string} */
676
- code: "OutsideClientScope";
677
- };
678
- };
679
- };
680
- /** @description - `BusinessNotFound`: The business does not exist or is not public */
681
- 404: {
682
- headers: {
683
- [name: string]: unknown;
684
- };
685
- content: {
686
- "application/json": components["schemas"]["ErrorResponse"] & {
687
- /** @enum {string} */
688
- code: "BusinessNotFound";
689
- };
690
- };
691
- };
692
- /**
693
- * @description - `InvalidInterval`: An interval ends before it starts
694
- * - `RangeTooLong`: The range covers more days than one request may
695
- */
696
- 422: {
697
- headers: {
698
- [name: string]: unknown;
699
- };
700
- content: {
701
- "application/json": components["schemas"]["ErrorResponse"] & {
702
- /** @enum {string} */
703
- code: "InvalidInterval" | "RangeTooLong";
704
- };
705
- };
706
- };
707
- /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
708
- 429: {
709
- headers: {
710
- /** @description Seconds to wait before sending the request again */
711
- "Retry-After"?: number;
712
- [name: string]: unknown;
713
- };
714
- content: {
715
- "application/json": components["schemas"]["ErrorResponse"] & {
716
- /** @enum {string} */
717
- code: "RateLimited";
718
- };
719
- };
720
- };
721
- /** @description - `InternalError`: The engine failed unexpectedly */
722
- 500: {
723
- headers: {
724
- [name: string]: unknown;
725
- };
726
- content: {
727
- "application/json": components["schemas"]["ErrorResponse"] & {
728
- /** @enum {string} */
729
- code: "InternalError";
730
- };
731
- };
732
- };
1130
+ 400: components["responses"]["ValidationFailed"];
1131
+ 401: components["responses"]["NotAuthenticated-SessionExpired"];
1132
+ 403: components["responses"]["OutsideClientScope"];
1133
+ 404: components["responses"]["BusinessNotFound"];
1134
+ 422: components["responses"]["InvalidInterval-RangeTooLong"];
1135
+ 429: components["responses"]["RateLimited"];
1136
+ 500: components["responses"]["InternalError"];
733
1137
  };
734
1138
  };
735
1139
  getOwnBooking: {
@@ -799,87 +1203,12 @@ export interface operations {
799
1203
  };
800
1204
  };
801
1205
  };
802
- /** @description - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path */
803
- 400: {
804
- headers: {
805
- [name: string]: unknown;
806
- };
807
- content: {
808
- "application/json": components["schemas"]["ValidationErrorResponse"] & {
809
- /** @enum {string} */
810
- code: "ValidationFailed";
811
- };
812
- };
813
- };
814
- /**
815
- * @description - `CustomerSessionRequired`: The operation needs a customer's session
816
- * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
817
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
818
- */
819
- 401: {
820
- headers: {
821
- [name: string]: unknown;
822
- };
823
- content: {
824
- "application/json": components["schemas"]["ErrorResponse"] & {
825
- /** @enum {string} */
826
- code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
827
- };
828
- };
829
- };
830
- /**
831
- * @description - `NotAuthorized`: The actor is not permitted to perform this operation
832
- * - `OutsideClientScope`: The application client serves only its own partner's businesses
833
- */
834
- 403: {
835
- headers: {
836
- [name: string]: unknown;
837
- };
838
- content: {
839
- "application/json": components["schemas"]["ErrorResponse"] & {
840
- /** @enum {string} */
841
- code: "NotAuthorized" | "OutsideClientScope";
842
- };
843
- };
844
- };
845
- /** @description - `BookingNotFound`: The booking does not exist, or is not the caller's */
846
- 404: {
847
- headers: {
848
- [name: string]: unknown;
849
- };
850
- content: {
851
- "application/json": components["schemas"]["ErrorResponse"] & {
852
- /** @enum {string} */
853
- code: "BookingNotFound";
854
- };
855
- };
856
- };
857
- /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
858
- 429: {
859
- headers: {
860
- /** @description Seconds to wait before sending the request again */
861
- "Retry-After"?: number;
862
- [name: string]: unknown;
863
- };
864
- content: {
865
- "application/json": components["schemas"]["ErrorResponse"] & {
866
- /** @enum {string} */
867
- code: "RateLimited";
868
- };
869
- };
870
- };
871
- /** @description - `InternalError`: The engine failed unexpectedly */
872
- 500: {
873
- headers: {
874
- [name: string]: unknown;
875
- };
876
- content: {
877
- "application/json": components["schemas"]["ErrorResponse"] & {
878
- /** @enum {string} */
879
- code: "InternalError";
880
- };
881
- };
882
- };
1206
+ 400: components["responses"]["ValidationFailed"];
1207
+ 401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
1208
+ 403: components["responses"]["NotAuthorized-OutsideClientScope"];
1209
+ 404: components["responses"]["BookingNotFound"];
1210
+ 429: components["responses"]["RateLimited"];
1211
+ 500: components["responses"]["InternalError"];
883
1212
  };
884
1213
  };
885
1214
  cancelOwnBooking: {
@@ -928,147 +1257,33 @@ export interface operations {
928
1257
  };
929
1258
  };
930
1259
  };
931
- /**
932
- * @description - `MalformedBody`: The JSON body cannot be parsed
933
- * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
934
- */
935
- 400: {
936
- headers: {
937
- [name: string]: unknown;
938
- };
939
- content: {
940
- "application/json": components["schemas"]["ValidationErrorResponse"] & {
941
- /** @enum {string} */
942
- code: "MalformedBody" | "ValidationFailed";
943
- };
944
- };
945
- };
946
- /**
947
- * @description - `CustomerSessionRequired`: The operation needs a customer's session
948
- * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
949
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
950
- */
951
- 401: {
952
- headers: {
953
- [name: string]: unknown;
954
- };
955
- content: {
956
- "application/json": components["schemas"]["ErrorResponse"] & {
957
- /** @enum {string} */
958
- code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
959
- };
960
- };
961
- };
962
- /**
963
- * @description - `NotAuthorized`: The actor is not permitted to perform this operation
964
- * - `OutsideClientScope`: The application client serves only its own partner's businesses
965
- */
966
- 403: {
967
- headers: {
968
- [name: string]: unknown;
969
- };
970
- content: {
971
- "application/json": components["schemas"]["ErrorResponse"] & {
972
- /** @enum {string} */
973
- code: "NotAuthorized" | "OutsideClientScope";
974
- };
975
- };
976
- };
977
- /**
978
- * @description - `BookingNotFound`: The booking does not exist, or is not the caller's
979
- * - `BusinessNotFound`: The business does not exist or is not public
980
- */
981
- 404: {
982
- headers: {
983
- [name: string]: unknown;
984
- };
985
- content: {
986
- "application/json": components["schemas"]["ErrorResponse"] & {
987
- /** @enum {string} */
988
- code: "BookingNotFound" | "BusinessNotFound";
989
- };
990
- };
1260
+ 400: components["responses"]["MalformedBody-ValidationFailed"];
1261
+ 401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
1262
+ 403: components["responses"]["NotAuthorized-OutsideClientScope"];
1263
+ 404: components["responses"]["BookingNotFound-BusinessNotFound"];
1264
+ 413: components["responses"]["BodyTooLarge"];
1265
+ 415: components["responses"]["UnsupportedMediaType"];
1266
+ 422: components["responses"]["EventStarted"];
1267
+ 429: components["responses"]["RateLimited"];
1268
+ 500: components["responses"]["InternalError"];
1269
+ };
1270
+ };
1271
+ listPublicEventTypes: {
1272
+ parameters: {
1273
+ query?: {
1274
+ /** @description Tag slugs, repeated as tag=yoga&tag=pilates: only event types that carry any of the partner's tags with these slugs. A slug the partner does not have matches nothing */
1275
+ tag?: string[];
991
1276
  };
992
- /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
993
- 413: {
994
- headers: {
995
- [name: string]: unknown;
996
- };
997
- content: {
998
- "application/json": components["schemas"]["ErrorResponse"] & {
999
- /** @enum {string} */
1000
- code: "BodyTooLarge";
1001
- };
1002
- };
1277
+ header?: never;
1278
+ path: {
1279
+ businessId: string;
1003
1280
  };
1004
- /** @description - `UnsupportedMediaType`: The body's content type is not one the operation accepts: `application/json`, or the image types an image upload lists */
1005
- 415: {
1006
- headers: {
1007
- [name: string]: unknown;
1008
- };
1009
- content: {
1010
- "application/json": components["schemas"]["ErrorResponse"] & {
1011
- /** @enum {string} */
1012
- code: "UnsupportedMediaType";
1013
- };
1014
- };
1015
- };
1016
- /** @description - `EventStarted`: The event has started */
1017
- 422: {
1018
- headers: {
1019
- [name: string]: unknown;
1020
- };
1021
- content: {
1022
- "application/json": components["schemas"]["ErrorResponse"] & {
1023
- /** @enum {string} */
1024
- code: "EventStarted";
1025
- };
1026
- };
1027
- };
1028
- /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
1029
- 429: {
1030
- headers: {
1031
- /** @description Seconds to wait before sending the request again */
1032
- "Retry-After"?: number;
1033
- [name: string]: unknown;
1034
- };
1035
- content: {
1036
- "application/json": components["schemas"]["ErrorResponse"] & {
1037
- /** @enum {string} */
1038
- code: "RateLimited";
1039
- };
1040
- };
1041
- };
1042
- /** @description - `InternalError`: The engine failed unexpectedly */
1043
- 500: {
1044
- headers: {
1045
- [name: string]: unknown;
1046
- };
1047
- content: {
1048
- "application/json": components["schemas"]["ErrorResponse"] & {
1049
- /** @enum {string} */
1050
- code: "InternalError";
1051
- };
1052
- };
1053
- };
1054
- };
1055
- };
1056
- listPublicEventTypes: {
1057
- parameters: {
1058
- query?: {
1059
- /** @description Tag slugs, repeated as tag=yoga&tag=pilates: only event types that carry any of the partner's tags with these slugs. A slug the partner does not have matches nothing */
1060
- tag?: string[];
1061
- };
1062
- header?: never;
1063
- path: {
1064
- businessId: string;
1065
- };
1066
- cookie?: never;
1067
- };
1068
- requestBody?: never;
1069
- responses: {
1070
- /** @description OK */
1071
- 200: {
1281
+ cookie?: never;
1282
+ };
1283
+ requestBody?: never;
1284
+ responses: {
1285
+ /** @description OK */
1286
+ 200: {
1072
1287
  headers: {
1073
1288
  [name: string]: unknown;
1074
1289
  };
@@ -1093,6 +1308,24 @@ export interface operations {
1093
1308
  url: string;
1094
1309
  width: number;
1095
1310
  } | null;
1311
+ noShowFee: {
1312
+ /** @description In the currency's ISO 4217 minor unit; ISK has none, so 12.400 kr. is 12400 */
1313
+ amount: number;
1314
+ /** @description The ISO 4217 currency code, such as ISK */
1315
+ currency: string;
1316
+ /** @description The VAT rate in basis points: 24 % is 2400 */
1317
+ vatRateBp: number;
1318
+ } | null;
1319
+ price: {
1320
+ /** @description In the currency's ISO 4217 minor unit; ISK has none, so 12.400 kr. is 12400 */
1321
+ advanceAmount: number;
1322
+ /** @description In the currency's ISO 4217 minor unit; ISK has none, so 12.400 kr. is 12400 */
1323
+ amount: number;
1324
+ /** @description The ISO 4217 currency code, such as ISK */
1325
+ currency: string;
1326
+ /** @description The VAT rate in basis points: 24 % is 2400 */
1327
+ vatRateBp: number;
1328
+ } | null;
1096
1329
  requiresAccess: boolean;
1097
1330
  resources: {
1098
1331
  /** @description The resource's own description, null without one */
@@ -1131,83 +1364,245 @@ export interface operations {
1131
1364
  };
1132
1365
  };
1133
1366
  };
1134
- /** @description - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path */
1135
- 400: {
1136
- headers: {
1137
- [name: string]: unknown;
1138
- };
1139
- content: {
1140
- "application/json": components["schemas"]["ValidationErrorResponse"] & {
1141
- /** @enum {string} */
1142
- code: "ValidationFailed";
1143
- };
1144
- };
1367
+ 400: components["responses"]["ValidationFailed"];
1368
+ 401: components["responses"]["NotAuthenticated-SessionExpired"];
1369
+ 403: components["responses"]["OutsideClientScope"];
1370
+ 404: components["responses"]["BusinessNotFound"];
1371
+ 429: components["responses"]["RateLimited"];
1372
+ 500: components["responses"]["InternalError"];
1373
+ };
1374
+ };
1375
+ listOnlinePaymentMethods: {
1376
+ parameters: {
1377
+ query?: never;
1378
+ header?: never;
1379
+ path: {
1380
+ businessId: string;
1145
1381
  };
1146
- /**
1147
- * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
1148
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
1149
- */
1150
- 401: {
1382
+ cookie?: never;
1383
+ };
1384
+ requestBody?: never;
1385
+ responses: {
1386
+ /** @description OK */
1387
+ 200: {
1151
1388
  headers: {
1152
1389
  [name: string]: unknown;
1153
1390
  };
1154
1391
  content: {
1155
- "application/json": components["schemas"]["ErrorResponse"] & {
1156
- /** @enum {string} */
1157
- code: "NotAuthenticated" | "SessionExpired";
1392
+ "application/json": {
1393
+ items: {
1394
+ /** Format: uuid */
1395
+ id: string;
1396
+ /** @enum {string} */
1397
+ kind: "CARD_ONLINE" | "PAY_BY_PHONE";
1398
+ label: string;
1399
+ }[];
1158
1400
  };
1159
1401
  };
1160
1402
  };
1161
- /** @description - `OutsideClientScope`: The application client serves only its own partner's businesses */
1162
- 403: {
1403
+ 400: components["responses"]["ValidationFailed"];
1404
+ 401: components["responses"]["NotAuthenticated-SessionExpired"];
1405
+ 403: components["responses"]["OutsideClientScope"];
1406
+ 404: components["responses"]["BusinessNotFound"];
1407
+ 429: components["responses"]["RateLimited"];
1408
+ 500: components["responses"]["InternalError"];
1409
+ };
1410
+ };
1411
+ listPublicProducts: {
1412
+ parameters: {
1413
+ query?: never;
1414
+ header?: never;
1415
+ path: {
1416
+ businessId: string;
1417
+ };
1418
+ cookie?: never;
1419
+ };
1420
+ requestBody?: never;
1421
+ responses: {
1422
+ /** @description OK */
1423
+ 200: {
1163
1424
  headers: {
1164
1425
  [name: string]: unknown;
1165
1426
  };
1166
1427
  content: {
1167
- "application/json": components["schemas"]["ErrorResponse"] & {
1168
- /** @enum {string} */
1169
- code: "OutsideClientScope";
1428
+ "application/json": {
1429
+ items: {
1430
+ /** @description The ISO 4217 currency code, such as ISK */
1431
+ currency: string;
1432
+ description: string | null;
1433
+ /** Format: uuid */
1434
+ id: string;
1435
+ image: {
1436
+ height: number;
1437
+ small: {
1438
+ height: number;
1439
+ /** Format: uri */
1440
+ url: string;
1441
+ width: number;
1442
+ };
1443
+ /** Format: uri */
1444
+ url: string;
1445
+ width: number;
1446
+ } | null;
1447
+ /** @description The price with VAT, in the currency's ISO 4217 minor unit; ISK has none, so 12.400 kr. is 12400 */
1448
+ price: number;
1449
+ terms: string | null;
1450
+ title: string;
1451
+ /** @description The VAT rate in basis points: 24 % is 2400 */
1452
+ vatRateBp: number;
1453
+ }[];
1170
1454
  };
1171
1455
  };
1172
1456
  };
1173
- /** @description - `BusinessNotFound`: The business does not exist or is not public */
1174
- 404: {
1457
+ 400: components["responses"]["ValidationFailed"];
1458
+ 401: components["responses"]["NotAuthenticated-SessionExpired"];
1459
+ 403: components["responses"]["OutsideClientScope"];
1460
+ 404: components["responses"]["BusinessNotFound"];
1461
+ 429: components["responses"]["RateLimited"];
1462
+ 500: components["responses"]["InternalError"];
1463
+ };
1464
+ };
1465
+ getProductCheckout: {
1466
+ parameters: {
1467
+ query?: never;
1468
+ header?: never;
1469
+ path: {
1470
+ businessId: string;
1471
+ productId: string;
1472
+ };
1473
+ cookie?: never;
1474
+ };
1475
+ requestBody?: never;
1476
+ responses: {
1477
+ /** @description OK */
1478
+ 200: {
1175
1479
  headers: {
1176
1480
  [name: string]: unknown;
1177
1481
  };
1178
1482
  content: {
1179
- "application/json": components["schemas"]["ErrorResponse"] & {
1180
- /** @enum {string} */
1181
- code: "BusinessNotFound";
1483
+ "application/json": {
1484
+ /** Format: uuid */
1485
+ businessId: string;
1486
+ /** Format: date-time */
1487
+ createdAt: string;
1488
+ /** @description The ISO 4217 currency code, such as ISK */
1489
+ currency: string;
1490
+ /** Format: date-time */
1491
+ paidAt: string | null;
1492
+ /** @description The provider's payment of the sale, until it is paid */
1493
+ payment: {
1494
+ redirectUrl: string | null;
1495
+ /** Format: date-time */
1496
+ sessionEndsAt: string | null;
1497
+ /** @enum {string} */
1498
+ status: "CREATED" | "PENDING" | "SUCCEEDED" | "FAILED" | "EXPIRED";
1499
+ } | null;
1500
+ /** Format: uuid */
1501
+ productId: string;
1502
+ /** Format: uuid */
1503
+ saleId: string;
1504
+ /**
1505
+ * @description pending until the sale is paid; paid once its payment is recorded in full; abandoned when you started the product's checkout again after its payment ended unpaid
1506
+ * @enum {string}
1507
+ */
1508
+ status: "pending" | "paid" | "abandoned";
1509
+ /** @description The product's title when sold */
1510
+ title: string;
1511
+ /** @description The lines' gross, with VAT */
1512
+ total: number;
1182
1513
  };
1183
1514
  };
1184
1515
  };
1185
- /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
1186
- 429: {
1187
- headers: {
1188
- /** @description Seconds to wait before sending the request again */
1189
- "Retry-After"?: number;
1190
- [name: string]: unknown;
1191
- };
1192
- content: {
1193
- "application/json": components["schemas"]["ErrorResponse"] & {
1194
- /** @enum {string} */
1195
- code: "RateLimited";
1196
- };
1516
+ 400: components["responses"]["ValidationFailed"];
1517
+ 401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
1518
+ 403: components["responses"]["NotAuthorized-OutsideClientScope"];
1519
+ 404: components["responses"]["ProductCheckoutNotFound"];
1520
+ 429: components["responses"]["RateLimited"];
1521
+ 500: components["responses"]["InternalError"];
1522
+ };
1523
+ };
1524
+ startProductCheckout: {
1525
+ parameters: {
1526
+ query?: never;
1527
+ header?: never;
1528
+ path: {
1529
+ businessId: string;
1530
+ productId: string;
1531
+ };
1532
+ cookie?: never;
1533
+ };
1534
+ requestBody: {
1535
+ content: {
1536
+ "application/json": {
1537
+ /**
1538
+ * Format: uri
1539
+ * @description Where the payment provider sends the customer back to
1540
+ */
1541
+ cancelUrl: string;
1542
+ /**
1543
+ * Format: uuid
1544
+ * @description The payment method the customer chose; needed unless the product is free
1545
+ */
1546
+ paymentMethodId?: string;
1547
+ /**
1548
+ * Format: uri
1549
+ * @description Where the payment provider sends the customer back to
1550
+ */
1551
+ successUrl: string;
1197
1552
  };
1198
1553
  };
1199
- /** @description - `InternalError`: The engine failed unexpectedly */
1200
- 500: {
1554
+ };
1555
+ responses: {
1556
+ /** @description OK */
1557
+ 200: {
1201
1558
  headers: {
1202
1559
  [name: string]: unknown;
1203
1560
  };
1204
1561
  content: {
1205
- "application/json": components["schemas"]["ErrorResponse"] & {
1206
- /** @enum {string} */
1207
- code: "InternalError";
1208
- };
1209
- };
1210
- };
1562
+ "application/json": {
1563
+ /** Format: uuid */
1564
+ businessId: string;
1565
+ /** Format: date-time */
1566
+ createdAt: string;
1567
+ /** @description The ISO 4217 currency code, such as ISK */
1568
+ currency: string;
1569
+ /** Format: date-time */
1570
+ paidAt: string | null;
1571
+ /** @description The provider's payment of the sale, until it is paid */
1572
+ payment: {
1573
+ redirectUrl: string | null;
1574
+ /** Format: date-time */
1575
+ sessionEndsAt: string | null;
1576
+ /** @enum {string} */
1577
+ status: "CREATED" | "PENDING" | "SUCCEEDED" | "FAILED" | "EXPIRED";
1578
+ } | null;
1579
+ /** Format: uuid */
1580
+ productId: string;
1581
+ /** Format: uuid */
1582
+ saleId: string;
1583
+ /**
1584
+ * @description pending until the sale is paid; paid once its payment is recorded in full; abandoned when you started the product's checkout again after its payment ended unpaid
1585
+ * @enum {string}
1586
+ */
1587
+ status: "pending" | "paid" | "abandoned";
1588
+ /** @description The product's title when sold */
1589
+ title: string;
1590
+ /** @description The lines' gross, with VAT */
1591
+ total: number;
1592
+ };
1593
+ };
1594
+ };
1595
+ 400: components["responses"]["MalformedBody-ValidationFailed"];
1596
+ 401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
1597
+ 403: components["responses"]["NotAuthorized-OutsideClientScope"];
1598
+ 404: components["responses"]["BusinessNotFound-ProductNotFound"];
1599
+ 409: components["responses"]["DeliveryLimitReached-PaymentAlreadySucceeded-PaymentInProgress"];
1600
+ 413: components["responses"]["BodyTooLarge"];
1601
+ 415: components["responses"]["UnsupportedMediaType"];
1602
+ 422: components["responses"]["CustomerOutsideBusiness-PaymentProviderNotConnected-PaymentProviderNotOffered-PaymentProviderRejected-ProductInactive"];
1603
+ 429: components["responses"]["RateLimited"];
1604
+ 500: components["responses"]["InternalError"];
1605
+ 503: components["responses"]["PaymentCredentialsUnavailable-PaymentProviderUnavailable"];
1211
1606
  };
1212
1607
  };
1213
1608
  reserveCandidate: {
@@ -1257,151 +1652,177 @@ export interface operations {
1257
1652
  };
1258
1653
  };
1259
1654
  };
1260
- /**
1261
- * @description - `MalformedBody`: The JSON body cannot be parsed
1262
- * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
1263
- */
1264
- 400: {
1655
+ 400: components["responses"]["MalformedBody-ValidationFailed"];
1656
+ 401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
1657
+ 403: components["responses"]["BookingBanned-NotAuthorized-OutsideClientScope"];
1658
+ 404: components["responses"]["BusinessNotFound-EventNotFound-EventTypeNotFound"];
1659
+ 409: components["responses"]["EventFull-ReservationLimitReached-SlotTaken"];
1660
+ 413: components["responses"]["BodyTooLarge"];
1661
+ 415: components["responses"]["UnsupportedMediaType"];
1662
+ 422: components["responses"]["EventNotBookable-EventStarted-NotATimeSlot"];
1663
+ 429: components["responses"]["RateLimited"];
1664
+ 500: components["responses"]["InternalError"];
1665
+ };
1666
+ };
1667
+ getCheckout: {
1668
+ parameters: {
1669
+ query?: never;
1670
+ header?: never;
1671
+ path: {
1672
+ businessId: string;
1673
+ reservationId: string;
1674
+ };
1675
+ cookie?: never;
1676
+ };
1677
+ requestBody?: never;
1678
+ responses: {
1679
+ /** @description OK */
1680
+ 200: {
1265
1681
  headers: {
1266
1682
  [name: string]: unknown;
1267
1683
  };
1268
1684
  content: {
1269
- "application/json": components["schemas"]["ValidationErrorResponse"] & {
1270
- /** @enum {string} */
1271
- code: "MalformedBody" | "ValidationFailed";
1685
+ "application/json": {
1686
+ /** Format: uuid */
1687
+ bookingId: string | null;
1688
+ /** Format: uuid */
1689
+ businessId: string;
1690
+ /** Format: date-time */
1691
+ createdAt: string;
1692
+ /** Format: uuid */
1693
+ eventId: string;
1694
+ /** Format: date-time */
1695
+ holdUntil: string;
1696
+ payment: {
1697
+ /** @description Where the customer pays, while the payment is PENDING */
1698
+ redirectUrl: string | null;
1699
+ /**
1700
+ * Format: date-time
1701
+ * @description When the provider stops taking this payment
1702
+ */
1703
+ sessionEndsAt: string | null;
1704
+ /** @enum {string} */
1705
+ status: "CREATED" | "PENDING" | "SUCCEEDED" | "FAILED" | "EXPIRED";
1706
+ } | null;
1707
+ price: {
1708
+ /** @description In the currency's ISO 4217 minor unit; ISK has none, so 12.400 kr. is 12400 */
1709
+ advanceAmount: number;
1710
+ /** @description In the currency's ISO 4217 minor unit; ISK has none, so 12.400 kr. is 12400 */
1711
+ amount: number;
1712
+ /** @description The ISO 4217 currency code, such as ISK */
1713
+ currency: string;
1714
+ /** @description The VAT rate in basis points: 24 % is 2400 */
1715
+ vatRateBp: number;
1716
+ };
1717
+ /** Format: uuid */
1718
+ reservationId: string;
1719
+ /**
1720
+ * @description pending while the advance is unpaid and the seat held; confirmed once booked; released when the payment ended unpaid or the hold ended; unconfirmed_paid when the advance was paid but no booking could be made, for staff to settle
1721
+ * @enum {string}
1722
+ */
1723
+ status: "pending" | "confirmed" | "released" | "unconfirmed_paid";
1272
1724
  };
1273
1725
  };
1274
1726
  };
1275
- /**
1276
- * @description - `CustomerSessionRequired`: The operation needs a customer's session
1277
- * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
1278
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
1279
- */
1280
- 401: {
1281
- headers: {
1282
- [name: string]: unknown;
1283
- };
1284
- content: {
1285
- "application/json": components["schemas"]["ErrorResponse"] & {
1286
- /** @enum {string} */
1287
- code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
1288
- };
1727
+ 400: components["responses"]["ValidationFailed"];
1728
+ 401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
1729
+ 403: components["responses"]["NotAuthorized-OutsideClientScope"];
1730
+ 404: components["responses"]["CheckoutNotFound-ReservationNotFound"];
1731
+ 429: components["responses"]["RateLimited"];
1732
+ 500: components["responses"]["InternalError"];
1733
+ };
1734
+ };
1735
+ startCheckout: {
1736
+ parameters: {
1737
+ query?: never;
1738
+ header?: never;
1739
+ path: {
1740
+ businessId: string;
1741
+ reservationId: string;
1742
+ };
1743
+ cookie?: never;
1744
+ };
1745
+ requestBody: {
1746
+ content: {
1747
+ "application/json": {
1748
+ /**
1749
+ * Format: uri
1750
+ * @description Where the payment provider sends the customer back to
1751
+ */
1752
+ cancelUrl: string;
1753
+ /**
1754
+ * Format: uuid
1755
+ * @description The payment method the customer chose; needed only when an advance is due
1756
+ */
1757
+ paymentMethodId?: string;
1758
+ /**
1759
+ * Format: uri
1760
+ * @description Where the payment provider sends the customer back to
1761
+ */
1762
+ successUrl: string;
1289
1763
  };
1290
1764
  };
1291
- /**
1292
- * @description - `BookingBanned`: The customer's no-shows at the business ban them from booking online until `bannedUntil`; staff can still book them
1293
- * - `NotAuthorized`: The actor is not permitted to perform this operation
1294
- * - `OutsideClientScope`: The application client serves only its own partner's businesses
1295
- */
1296
- 403: {
1765
+ };
1766
+ responses: {
1767
+ /** @description OK */
1768
+ 200: {
1297
1769
  headers: {
1298
1770
  [name: string]: unknown;
1299
1771
  };
1300
1772
  content: {
1301
- "application/json": components["schemas"]["BookingBannedErrorResponse"] & {
1302
- /** @enum {string} */
1303
- code: "BookingBanned" | "NotAuthorized" | "OutsideClientScope";
1304
- };
1305
- };
1306
- };
1307
- /**
1308
- * @description - `BusinessNotFound`: The business does not exist or is not public
1309
- * - `EventNotFound`: The event does not exist in this business
1310
- * - `EventTypeNotFound`: The event type does not exist in this business
1311
- */
1312
- 404: {
1313
- headers: {
1314
- [name: string]: unknown;
1315
- };
1316
- content: {
1317
- "application/json": components["schemas"]["ErrorResponse"] & {
1318
- /** @enum {string} */
1319
- code: "BusinessNotFound" | "EventNotFound" | "EventTypeNotFound";
1320
- };
1321
- };
1322
- };
1323
- /**
1324
- * @description - `EventFull`: The event has no free seat
1325
- * - `ReservationLimitReached`: The customer already holds the most active reservations allowed on Web (5, across the businesses this client reaches); reserve again once a hold lapses or is confirmed
1326
- * - `SlotTaken`: The time slot is taken on every resource that could provide it
1327
- */
1328
- 409: {
1329
- headers: {
1330
- [name: string]: unknown;
1331
- };
1332
- content: {
1333
- "application/json": components["schemas"]["ErrorResponse"] & {
1334
- /** @enum {string} */
1335
- code: "EventFull" | "ReservationLimitReached" | "SlotTaken";
1336
- };
1337
- };
1338
- };
1339
- /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
1340
- 413: {
1341
- headers: {
1342
- [name: string]: unknown;
1343
- };
1344
- content: {
1345
- "application/json": components["schemas"]["ErrorResponse"] & {
1346
- /** @enum {string} */
1347
- code: "BodyTooLarge";
1348
- };
1349
- };
1350
- };
1351
- /** @description - `UnsupportedMediaType`: The body's content type is not one the operation accepts: `application/json`, or the image types an image upload lists */
1352
- 415: {
1353
- headers: {
1354
- [name: string]: unknown;
1355
- };
1356
- content: {
1357
- "application/json": components["schemas"]["ErrorResponse"] & {
1358
- /** @enum {string} */
1359
- code: "UnsupportedMediaType";
1360
- };
1361
- };
1362
- };
1363
- /**
1364
- * @description - `EventNotBookable`: Only a scheduled event with a live event type can be reserved or booked
1365
- * - `EventStarted`: The event has started
1366
- * - `NotATimeSlot`: The start is not an open time slot of the event type on a resource that provides it
1367
- */
1368
- 422: {
1369
- headers: {
1370
- [name: string]: unknown;
1371
- };
1372
- content: {
1373
- "application/json": components["schemas"]["ErrorResponse"] & {
1374
- /** @enum {string} */
1375
- code: "EventNotBookable" | "EventStarted" | "NotATimeSlot";
1376
- };
1377
- };
1378
- };
1379
- /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
1380
- 429: {
1381
- headers: {
1382
- /** @description Seconds to wait before sending the request again */
1383
- "Retry-After"?: number;
1384
- [name: string]: unknown;
1385
- };
1386
- content: {
1387
- "application/json": components["schemas"]["ErrorResponse"] & {
1388
- /** @enum {string} */
1389
- code: "RateLimited";
1390
- };
1391
- };
1392
- };
1393
- /** @description - `InternalError`: The engine failed unexpectedly */
1394
- 500: {
1395
- headers: {
1396
- [name: string]: unknown;
1397
- };
1398
- content: {
1399
- "application/json": components["schemas"]["ErrorResponse"] & {
1400
- /** @enum {string} */
1401
- code: "InternalError";
1773
+ "application/json": {
1774
+ /** Format: uuid */
1775
+ bookingId: string | null;
1776
+ /** Format: uuid */
1777
+ businessId: string;
1778
+ /** Format: date-time */
1779
+ createdAt: string;
1780
+ /** Format: uuid */
1781
+ eventId: string;
1782
+ /** Format: date-time */
1783
+ holdUntil: string;
1784
+ payment: {
1785
+ /** @description Where the customer pays, while the payment is PENDING */
1786
+ redirectUrl: string | null;
1787
+ /**
1788
+ * Format: date-time
1789
+ * @description When the provider stops taking this payment
1790
+ */
1791
+ sessionEndsAt: string | null;
1792
+ /** @enum {string} */
1793
+ status: "CREATED" | "PENDING" | "SUCCEEDED" | "FAILED" | "EXPIRED";
1794
+ } | null;
1795
+ price: {
1796
+ /** @description In the currency's ISO 4217 minor unit; ISK has none, so 12.400 kr. is 12400 */
1797
+ advanceAmount: number;
1798
+ /** @description In the currency's ISO 4217 minor unit; ISK has none, so 12.400 kr. is 12400 */
1799
+ amount: number;
1800
+ /** @description The ISO 4217 currency code, such as ISK */
1801
+ currency: string;
1802
+ /** @description The VAT rate in basis points: 24 % is 2400 */
1803
+ vatRateBp: number;
1804
+ };
1805
+ /** Format: uuid */
1806
+ reservationId: string;
1807
+ /**
1808
+ * @description pending while the advance is unpaid and the seat held; confirmed once booked; released when the payment ended unpaid or the hold ended; unconfirmed_paid when the advance was paid but no booking could be made, for staff to settle
1809
+ * @enum {string}
1810
+ */
1811
+ status: "pending" | "confirmed" | "released" | "unconfirmed_paid";
1402
1812
  };
1403
1813
  };
1404
1814
  };
1815
+ 400: components["responses"]["MalformedBody-ValidationFailed"];
1816
+ 401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
1817
+ 403: components["responses"]["BookingBanned-NotAuthorized-OutsideClientScope"];
1818
+ 404: components["responses"]["BusinessNotFound-ReservationNotFound"];
1819
+ 409: components["responses"]["PaymentAlreadySucceeded-PaymentInProgress-ReservationExpired"];
1820
+ 413: components["responses"]["BodyTooLarge"];
1821
+ 415: components["responses"]["UnsupportedMediaType"];
1822
+ 422: components["responses"]["CheckoutNotRequired-CustomerOutsideBusiness-EventNotBookable-EventStarted-PaymentProviderNotConnected-PaymentProviderNotOffered-PaymentProviderRejected"];
1823
+ 429: components["responses"]["RateLimited"];
1824
+ 500: components["responses"]["InternalError"];
1825
+ 503: components["responses"]["PaymentCredentialsUnavailable-PaymentProviderUnavailable"];
1405
1826
  };
1406
1827
  };
1407
1828
  confirmReservation: {
@@ -1450,146 +1871,16 @@ export interface operations {
1450
1871
  };
1451
1872
  };
1452
1873
  };
1453
- /**
1454
- * @description - `MalformedBody`: The JSON body cannot be parsed
1455
- * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
1456
- */
1457
- 400: {
1458
- headers: {
1459
- [name: string]: unknown;
1460
- };
1461
- content: {
1462
- "application/json": components["schemas"]["ValidationErrorResponse"] & {
1463
- /** @enum {string} */
1464
- code: "MalformedBody" | "ValidationFailed";
1465
- };
1466
- };
1467
- };
1468
- /**
1469
- * @description - `CustomerSessionRequired`: The operation needs a customer's session
1470
- * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
1471
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
1472
- */
1473
- 401: {
1474
- headers: {
1475
- [name: string]: unknown;
1476
- };
1477
- content: {
1478
- "application/json": components["schemas"]["ErrorResponse"] & {
1479
- /** @enum {string} */
1480
- code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
1481
- };
1482
- };
1483
- };
1484
- /**
1485
- * @description - `BookingBanned`: The customer's no-shows at the business ban them from booking online until `bannedUntil`; staff can still book them
1486
- * - `NotAuthorized`: The actor is not permitted to perform this operation
1487
- * - `OutsideClientScope`: The application client serves only its own partner's businesses
1488
- */
1489
- 403: {
1490
- headers: {
1491
- [name: string]: unknown;
1492
- };
1493
- content: {
1494
- "application/json": components["schemas"]["BookingBannedErrorResponse"] & {
1495
- /** @enum {string} */
1496
- code: "BookingBanned" | "NotAuthorized" | "OutsideClientScope";
1497
- };
1498
- };
1499
- };
1500
- /**
1501
- * @description - `BusinessNotFound`: The business does not exist or is not public
1502
- * - `ReservationNotFound`: The reservation does not exist, or is not the caller's
1503
- */
1504
- 404: {
1505
- headers: {
1506
- [name: string]: unknown;
1507
- };
1508
- content: {
1509
- "application/json": components["schemas"]["ErrorResponse"] & {
1510
- /** @enum {string} */
1511
- code: "BusinessNotFound" | "ReservationNotFound";
1512
- };
1513
- };
1514
- };
1515
- /** @description - `ReservationExpired`: The reservation expired and no longer holds its seat or slot */
1516
- 409: {
1517
- headers: {
1518
- [name: string]: unknown;
1519
- };
1520
- content: {
1521
- "application/json": components["schemas"]["ErrorResponse"] & {
1522
- /** @enum {string} */
1523
- code: "ReservationExpired";
1524
- };
1525
- };
1526
- };
1527
- /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
1528
- 413: {
1529
- headers: {
1530
- [name: string]: unknown;
1531
- };
1532
- content: {
1533
- "application/json": components["schemas"]["ErrorResponse"] & {
1534
- /** @enum {string} */
1535
- code: "BodyTooLarge";
1536
- };
1537
- };
1538
- };
1539
- /** @description - `UnsupportedMediaType`: The body's content type is not one the operation accepts: `application/json`, or the image types an image upload lists */
1540
- 415: {
1541
- headers: {
1542
- [name: string]: unknown;
1543
- };
1544
- content: {
1545
- "application/json": components["schemas"]["ErrorResponse"] & {
1546
- /** @enum {string} */
1547
- code: "UnsupportedMediaType";
1548
- };
1549
- };
1550
- };
1551
- /**
1552
- * @description - `CustomerOutsideBusiness`: The participant is not a live customer of this business
1553
- * - `EventNotBookable`: Only a scheduled event with a live event type can be reserved or booked
1554
- * - `EventStarted`: The event has started
1555
- */
1556
- 422: {
1557
- headers: {
1558
- [name: string]: unknown;
1559
- };
1560
- content: {
1561
- "application/json": components["schemas"]["ErrorResponse"] & {
1562
- /** @enum {string} */
1563
- code: "CustomerOutsideBusiness" | "EventNotBookable" | "EventStarted";
1564
- };
1565
- };
1566
- };
1567
- /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
1568
- 429: {
1569
- headers: {
1570
- /** @description Seconds to wait before sending the request again */
1571
- "Retry-After"?: number;
1572
- [name: string]: unknown;
1573
- };
1574
- content: {
1575
- "application/json": components["schemas"]["ErrorResponse"] & {
1576
- /** @enum {string} */
1577
- code: "RateLimited";
1578
- };
1579
- };
1580
- };
1581
- /** @description - `InternalError`: The engine failed unexpectedly */
1582
- 500: {
1583
- headers: {
1584
- [name: string]: unknown;
1585
- };
1586
- content: {
1587
- "application/json": components["schemas"]["ErrorResponse"] & {
1588
- /** @enum {string} */
1589
- code: "InternalError";
1590
- };
1591
- };
1592
- };
1874
+ 400: components["responses"]["MalformedBody-ValidationFailed"];
1875
+ 401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
1876
+ 403: components["responses"]["BookingBanned-NotAuthorized-OutsideClientScope"];
1877
+ 404: components["responses"]["BusinessNotFound-ReservationNotFound"];
1878
+ 409: components["responses"]["ReservationExpired"];
1879
+ 413: components["responses"]["BodyTooLarge"];
1880
+ 415: components["responses"]["UnsupportedMediaType"];
1881
+ 422: components["responses"]["CheckoutRequired-CustomerOutsideBusiness-EventNotBookable-EventStarted"];
1882
+ 429: components["responses"]["RateLimited"];
1883
+ 500: components["responses"]["InternalError"];
1593
1884
  };
1594
1885
  };
1595
1886
  identityCompleteRegistration: {
@@ -1623,110 +1914,14 @@ export interface operations {
1623
1914
  };
1624
1915
  };
1625
1916
  };
1626
- /**
1627
- * @description - `MalformedBody`: The JSON body cannot be parsed
1628
- * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
1629
- */
1630
- 400: {
1631
- headers: {
1632
- [name: string]: unknown;
1633
- };
1634
- content: {
1635
- "application/json": components["schemas"]["ValidationErrorResponse"] & {
1636
- /** @enum {string} */
1637
- code: "MalformedBody" | "ValidationFailed";
1638
- };
1639
- };
1640
- };
1641
- /**
1642
- * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
1643
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
1644
- */
1645
- 401: {
1646
- headers: {
1647
- [name: string]: unknown;
1648
- };
1649
- content: {
1650
- "application/json": components["schemas"]["ErrorResponse"] & {
1651
- /** @enum {string} */
1652
- code: "NotAuthenticated" | "SessionExpired";
1653
- };
1654
- };
1655
- };
1656
- /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
1657
- 403: {
1658
- headers: {
1659
- [name: string]: unknown;
1660
- };
1661
- content: {
1662
- "application/json": components["schemas"]["ErrorResponse"] & {
1663
- /** @enum {string} */
1664
- code: "NotAuthorized";
1665
- };
1666
- };
1667
- };
1668
- /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
1669
- 413: {
1670
- headers: {
1671
- [name: string]: unknown;
1672
- };
1673
- content: {
1674
- "application/json": components["schemas"]["ErrorResponse"] & {
1675
- /** @enum {string} */
1676
- code: "BodyTooLarge";
1677
- };
1678
- };
1679
- };
1680
- /** @description - `UnsupportedMediaType`: The body's content type is not one the operation accepts: `application/json`, or the image types an image upload lists */
1681
- 415: {
1682
- headers: {
1683
- [name: string]: unknown;
1684
- };
1685
- content: {
1686
- "application/json": components["schemas"]["ErrorResponse"] & {
1687
- /** @enum {string} */
1688
- code: "UnsupportedMediaType";
1689
- };
1690
- };
1691
- };
1692
- /** @description - `NameRequired`: A new customer's registration needs their name; the ticket can be sent again with it */
1693
- 422: {
1694
- headers: {
1695
- [name: string]: unknown;
1696
- };
1697
- content: {
1698
- "application/json": components["schemas"]["ErrorResponse"] & {
1699
- /** @enum {string} */
1700
- code: "NameRequired";
1701
- };
1702
- };
1703
- };
1704
- /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
1705
- 429: {
1706
- headers: {
1707
- /** @description Seconds to wait before sending the request again */
1708
- "Retry-After"?: number;
1709
- [name: string]: unknown;
1710
- };
1711
- content: {
1712
- "application/json": components["schemas"]["ErrorResponse"] & {
1713
- /** @enum {string} */
1714
- code: "RateLimited";
1715
- };
1716
- };
1717
- };
1718
- /** @description - `InternalError`: The engine failed unexpectedly */
1719
- 500: {
1720
- headers: {
1721
- [name: string]: unknown;
1722
- };
1723
- content: {
1724
- "application/json": components["schemas"]["ErrorResponse"] & {
1725
- /** @enum {string} */
1726
- code: "InternalError";
1727
- };
1728
- };
1729
- };
1917
+ 400: components["responses"]["MalformedBody-ValidationFailed"];
1918
+ 401: components["responses"]["NotAuthenticated-SessionExpired"];
1919
+ 403: components["responses"]["NotAuthorized"];
1920
+ 413: components["responses"]["BodyTooLarge"];
1921
+ 415: components["responses"]["UnsupportedMediaType"];
1922
+ 422: components["responses"]["NameRequired"];
1923
+ 429: components["responses"]["RateLimited"];
1924
+ 500: components["responses"]["InternalError"];
1730
1925
  };
1731
1926
  };
1732
1927
  identityCustomerLogin: {
@@ -1772,98 +1967,13 @@ export interface operations {
1772
1967
  };
1773
1968
  };
1774
1969
  };
1775
- /**
1776
- * @description - `MalformedBody`: The JSON body cannot be parsed
1777
- * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
1778
- */
1779
- 400: {
1780
- headers: {
1781
- [name: string]: unknown;
1782
- };
1783
- content: {
1784
- "application/json": components["schemas"]["ValidationErrorResponse"] & {
1785
- /** @enum {string} */
1786
- code: "MalformedBody" | "ValidationFailed";
1787
- };
1788
- };
1789
- };
1790
- /**
1791
- * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
1792
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
1793
- */
1794
- 401: {
1795
- headers: {
1796
- [name: string]: unknown;
1797
- };
1798
- content: {
1799
- "application/json": components["schemas"]["ErrorResponse"] & {
1800
- /** @enum {string} */
1801
- code: "NotAuthenticated" | "SessionExpired";
1802
- };
1803
- };
1804
- };
1805
- /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
1806
- 403: {
1807
- headers: {
1808
- [name: string]: unknown;
1809
- };
1810
- content: {
1811
- "application/json": components["schemas"]["ErrorResponse"] & {
1812
- /** @enum {string} */
1813
- code: "NotAuthorized";
1814
- };
1815
- };
1816
- };
1817
- /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
1818
- 413: {
1819
- headers: {
1820
- [name: string]: unknown;
1821
- };
1822
- content: {
1823
- "application/json": components["schemas"]["ErrorResponse"] & {
1824
- /** @enum {string} */
1825
- code: "BodyTooLarge";
1826
- };
1827
- };
1828
- };
1829
- /** @description - `UnsupportedMediaType`: The body's content type is not one the operation accepts: `application/json`, or the image types an image upload lists */
1830
- 415: {
1831
- headers: {
1832
- [name: string]: unknown;
1833
- };
1834
- content: {
1835
- "application/json": components["schemas"]["ErrorResponse"] & {
1836
- /** @enum {string} */
1837
- code: "UnsupportedMediaType";
1838
- };
1839
- };
1840
- };
1841
- /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
1842
- 429: {
1843
- headers: {
1844
- /** @description Seconds to wait before sending the request again */
1845
- "Retry-After"?: number;
1846
- [name: string]: unknown;
1847
- };
1848
- content: {
1849
- "application/json": components["schemas"]["ErrorResponse"] & {
1850
- /** @enum {string} */
1851
- code: "RateLimited";
1852
- };
1853
- };
1854
- };
1855
- /** @description - `InternalError`: The engine failed unexpectedly */
1856
- 500: {
1857
- headers: {
1858
- [name: string]: unknown;
1859
- };
1860
- content: {
1861
- "application/json": components["schemas"]["ErrorResponse"] & {
1862
- /** @enum {string} */
1863
- code: "InternalError";
1864
- };
1865
- };
1866
- };
1970
+ 400: components["responses"]["MalformedBody-ValidationFailed"];
1971
+ 401: components["responses"]["NotAuthenticated-SessionExpired"];
1972
+ 403: components["responses"]["NotAuthorized"];
1973
+ 413: components["responses"]["BodyTooLarge"];
1974
+ 415: components["responses"]["UnsupportedMediaType"];
1975
+ 429: components["responses"]["RateLimited"];
1976
+ 500: components["responses"]["InternalError"];
1867
1977
  };
1868
1978
  };
1869
1979
  identityInitiateLogin: {
@@ -1899,136 +2009,15 @@ export interface operations {
1899
2009
  };
1900
2010
  };
1901
2011
  };
1902
- /**
1903
- * @description - `MalformedBody`: The JSON body cannot be parsed
1904
- * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
1905
- */
1906
- 400: {
1907
- headers: {
1908
- [name: string]: unknown;
1909
- };
1910
- content: {
1911
- "application/json": components["schemas"]["ValidationErrorResponse"] & {
1912
- /** @enum {string} */
1913
- code: "MalformedBody" | "ValidationFailed";
1914
- };
1915
- };
1916
- };
1917
- /**
1918
- * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
1919
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
1920
- */
1921
- 401: {
1922
- headers: {
1923
- [name: string]: unknown;
1924
- };
1925
- content: {
1926
- "application/json": components["schemas"]["ErrorResponse"] & {
1927
- /** @enum {string} */
1928
- code: "NotAuthenticated" | "SessionExpired";
1929
- };
1930
- };
1931
- };
1932
- /**
1933
- * @description - `BotCheckFailed`: The visitor's bot-check token did not pass the calling application's Turnstile widget
1934
- * - `NotAuthorized`: The actor is not permitted to perform this operation
1935
- */
1936
- 403: {
1937
- headers: {
1938
- [name: string]: unknown;
1939
- };
1940
- content: {
1941
- "application/json": components["schemas"]["ErrorResponse"] & {
1942
- /** @enum {string} */
1943
- code: "BotCheckFailed" | "NotAuthorized";
1944
- };
1945
- };
1946
- };
1947
- /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
1948
- 413: {
1949
- headers: {
1950
- [name: string]: unknown;
1951
- };
1952
- content: {
1953
- "application/json": components["schemas"]["ErrorResponse"] & {
1954
- /** @enum {string} */
1955
- code: "BodyTooLarge";
1956
- };
1957
- };
1958
- };
1959
- /** @description - `UnsupportedMediaType`: The body's content type is not one the operation accepts: `application/json`, or the image types an image upload lists */
1960
- 415: {
1961
- headers: {
1962
- [name: string]: unknown;
1963
- };
1964
- content: {
1965
- "application/json": components["schemas"]["ErrorResponse"] & {
1966
- /** @enum {string} */
1967
- code: "UnsupportedMediaType";
1968
- };
1969
- };
1970
- };
1971
- /** @description - `PhoneDestinationNotAllowed`: SMS is not sent to this phone number's country */
1972
- 422: {
1973
- headers: {
1974
- [name: string]: unknown;
1975
- };
1976
- content: {
1977
- "application/json": components["schemas"]["ErrorResponse"] & {
1978
- /** @enum {string} */
1979
- code: "PhoneDestinationNotAllowed";
1980
- };
1981
- };
1982
- };
1983
- /**
1984
- * @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds
1985
- * - `TooManyAttempts`: Too many sign-in codes were requested from this address; retry after `Retry-After` seconds
1986
- * - `TooManyChallenges`: Too many sign-in codes were sent to this number; retry after `Retry-After` seconds
1987
- */
1988
- 429: {
1989
- headers: {
1990
- /** @description Seconds to wait before sending the request again */
1991
- "Retry-After"?: number;
1992
- [name: string]: unknown;
1993
- };
1994
- content: {
1995
- "application/json": components["schemas"]["ErrorResponse"] & {
1996
- /** @enum {string} */
1997
- code: "RateLimited" | "TooManyAttempts" | "TooManyChallenges";
1998
- };
1999
- };
2000
- };
2001
- /** @description - `InternalError`: The engine failed unexpectedly */
2002
- 500: {
2003
- headers: {
2004
- [name: string]: unknown;
2005
- };
2006
- content: {
2007
- "application/json": components["schemas"]["ErrorResponse"] & {
2008
- /** @enum {string} */
2009
- code: "InternalError";
2010
- };
2011
- };
2012
- };
2013
- /**
2014
- * @description - `BotCheckUnavailable`: The bot check could not be made: Turnstile did not answer in time, or the calling application has no widget secret; retry after `Retry-After` seconds
2015
- * - `LimiterUnavailable`: The per-address sign-in limit could not be counted; retry after `Retry-After` seconds
2016
- * - `SmsBudgetExhausted`: The client's hourly SMS budget is used up; retry after `Retry-After` seconds
2017
- * - `SmsDeliveryUnavailable`: The SMS could not be confirmed as sent; retry after `Retry-After` seconds
2018
- */
2019
- 503: {
2020
- headers: {
2021
- /** @description Seconds to wait before sending the request again */
2022
- "Retry-After"?: number;
2023
- [name: string]: unknown;
2024
- };
2025
- content: {
2026
- "application/json": components["schemas"]["ErrorResponse"] & {
2027
- /** @enum {string} */
2028
- code: "BotCheckUnavailable" | "LimiterUnavailable" | "SmsBudgetExhausted" | "SmsDeliveryUnavailable";
2029
- };
2030
- };
2031
- };
2012
+ 400: components["responses"]["MalformedBody-ValidationFailed"];
2013
+ 401: components["responses"]["NotAuthenticated-SessionExpired"];
2014
+ 403: components["responses"]["BotCheckFailed-NotAuthorized"];
2015
+ 413: components["responses"]["BodyTooLarge"];
2016
+ 415: components["responses"]["UnsupportedMediaType"];
2017
+ 422: components["responses"]["PhoneDestinationNotAllowed"];
2018
+ 429: components["responses"]["RateLimited-TooManyAttempts-TooManyChallenges"];
2019
+ 500: components["responses"]["InternalError"];
2020
+ 503: components["responses"]["BotCheckUnavailable-LimiterUnavailable-SmsBudgetExhausted-SmsDeliveryUnavailable"];
2032
2021
  };
2033
2022
  };
2034
2023
  identityLogout: {
@@ -2044,112 +2033,27 @@ export interface operations {
2044
2033
  sessionToken: string;
2045
2034
  };
2046
2035
  };
2047
- };
2048
- responses: {
2049
- /** @description OK */
2050
- 200: {
2051
- headers: {
2052
- [name: string]: unknown;
2053
- };
2054
- content: {
2055
- "application/json": {
2056
- /** @enum {boolean} */
2057
- revoked: true;
2058
- };
2059
- };
2060
- };
2061
- /**
2062
- * @description - `MalformedBody`: The JSON body cannot be parsed
2063
- * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
2064
- */
2065
- 400: {
2066
- headers: {
2067
- [name: string]: unknown;
2068
- };
2069
- content: {
2070
- "application/json": components["schemas"]["ValidationErrorResponse"] & {
2071
- /** @enum {string} */
2072
- code: "MalformedBody" | "ValidationFailed";
2073
- };
2074
- };
2075
- };
2076
- /**
2077
- * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
2078
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
2079
- */
2080
- 401: {
2081
- headers: {
2082
- [name: string]: unknown;
2083
- };
2084
- content: {
2085
- "application/json": components["schemas"]["ErrorResponse"] & {
2086
- /** @enum {string} */
2087
- code: "NotAuthenticated" | "SessionExpired";
2088
- };
2089
- };
2090
- };
2091
- /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
2092
- 403: {
2093
- headers: {
2094
- [name: string]: unknown;
2095
- };
2096
- content: {
2097
- "application/json": components["schemas"]["ErrorResponse"] & {
2098
- /** @enum {string} */
2099
- code: "NotAuthorized";
2100
- };
2101
- };
2102
- };
2103
- /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
2104
- 413: {
2105
- headers: {
2106
- [name: string]: unknown;
2107
- };
2108
- content: {
2109
- "application/json": components["schemas"]["ErrorResponse"] & {
2110
- /** @enum {string} */
2111
- code: "BodyTooLarge";
2112
- };
2113
- };
2114
- };
2115
- /** @description - `UnsupportedMediaType`: The body's content type is not one the operation accepts: `application/json`, or the image types an image upload lists */
2116
- 415: {
2117
- headers: {
2118
- [name: string]: unknown;
2119
- };
2120
- content: {
2121
- "application/json": components["schemas"]["ErrorResponse"] & {
2122
- /** @enum {string} */
2123
- code: "UnsupportedMediaType";
2124
- };
2125
- };
2126
- };
2127
- /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
2128
- 429: {
2129
- headers: {
2130
- /** @description Seconds to wait before sending the request again */
2131
- "Retry-After"?: number;
2132
- [name: string]: unknown;
2133
- };
2134
- content: {
2135
- "application/json": components["schemas"]["ErrorResponse"] & {
2136
- /** @enum {string} */
2137
- code: "RateLimited";
2138
- };
2139
- };
2140
- };
2141
- /** @description - `InternalError`: The engine failed unexpectedly */
2142
- 500: {
2036
+ };
2037
+ responses: {
2038
+ /** @description OK */
2039
+ 200: {
2143
2040
  headers: {
2144
2041
  [name: string]: unknown;
2145
2042
  };
2146
2043
  content: {
2147
- "application/json": components["schemas"]["ErrorResponse"] & {
2148
- /** @enum {string} */
2149
- code: "InternalError";
2044
+ "application/json": {
2045
+ /** @enum {boolean} */
2046
+ revoked: true;
2150
2047
  };
2151
2048
  };
2152
2049
  };
2050
+ 400: components["responses"]["MalformedBody-ValidationFailed"];
2051
+ 401: components["responses"]["NotAuthenticated-SessionExpired"];
2052
+ 403: components["responses"]["NotAuthorized"];
2053
+ 413: components["responses"]["BodyTooLarge"];
2054
+ 415: components["responses"]["UnsupportedMediaType"];
2055
+ 429: components["responses"]["RateLimited"];
2056
+ 500: components["responses"]["InternalError"];
2153
2057
  };
2154
2058
  };
2155
2059
  getMyDetails: {
@@ -2176,60 +2080,10 @@ export interface operations {
2176
2080
  };
2177
2081
  };
2178
2082
  };
2179
- /**
2180
- * @description - `CustomerSessionRequired`: The operation needs a customer's session
2181
- * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
2182
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
2183
- */
2184
- 401: {
2185
- headers: {
2186
- [name: string]: unknown;
2187
- };
2188
- content: {
2189
- "application/json": components["schemas"]["ErrorResponse"] & {
2190
- /** @enum {string} */
2191
- code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
2192
- };
2193
- };
2194
- };
2195
- /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
2196
- 403: {
2197
- headers: {
2198
- [name: string]: unknown;
2199
- };
2200
- content: {
2201
- "application/json": components["schemas"]["ErrorResponse"] & {
2202
- /** @enum {string} */
2203
- code: "NotAuthorized";
2204
- };
2205
- };
2206
- };
2207
- /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
2208
- 429: {
2209
- headers: {
2210
- /** @description Seconds to wait before sending the request again */
2211
- "Retry-After"?: number;
2212
- [name: string]: unknown;
2213
- };
2214
- content: {
2215
- "application/json": components["schemas"]["ErrorResponse"] & {
2216
- /** @enum {string} */
2217
- code: "RateLimited";
2218
- };
2219
- };
2220
- };
2221
- /** @description - `InternalError`: The engine failed unexpectedly */
2222
- 500: {
2223
- headers: {
2224
- [name: string]: unknown;
2225
- };
2226
- content: {
2227
- "application/json": components["schemas"]["ErrorResponse"] & {
2228
- /** @enum {string} */
2229
- code: "InternalError";
2230
- };
2231
- };
2232
- };
2083
+ 401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
2084
+ 403: components["responses"]["NotAuthorized"];
2085
+ 429: components["responses"]["RateLimited"];
2086
+ 500: components["responses"]["InternalError"];
2233
2087
  };
2234
2088
  };
2235
2089
  updateMyName: {
@@ -2262,99 +2116,13 @@ export interface operations {
2262
2116
  };
2263
2117
  };
2264
2118
  };
2265
- /**
2266
- * @description - `MalformedBody`: The JSON body cannot be parsed
2267
- * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
2268
- */
2269
- 400: {
2270
- headers: {
2271
- [name: string]: unknown;
2272
- };
2273
- content: {
2274
- "application/json": components["schemas"]["ValidationErrorResponse"] & {
2275
- /** @enum {string} */
2276
- code: "MalformedBody" | "ValidationFailed";
2277
- };
2278
- };
2279
- };
2280
- /**
2281
- * @description - `CustomerSessionRequired`: The operation needs a customer's session
2282
- * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
2283
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
2284
- */
2285
- 401: {
2286
- headers: {
2287
- [name: string]: unknown;
2288
- };
2289
- content: {
2290
- "application/json": components["schemas"]["ErrorResponse"] & {
2291
- /** @enum {string} */
2292
- code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
2293
- };
2294
- };
2295
- };
2296
- /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
2297
- 403: {
2298
- headers: {
2299
- [name: string]: unknown;
2300
- };
2301
- content: {
2302
- "application/json": components["schemas"]["ErrorResponse"] & {
2303
- /** @enum {string} */
2304
- code: "NotAuthorized";
2305
- };
2306
- };
2307
- };
2308
- /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
2309
- 413: {
2310
- headers: {
2311
- [name: string]: unknown;
2312
- };
2313
- content: {
2314
- "application/json": components["schemas"]["ErrorResponse"] & {
2315
- /** @enum {string} */
2316
- code: "BodyTooLarge";
2317
- };
2318
- };
2319
- };
2320
- /** @description - `UnsupportedMediaType`: The body's content type is not one the operation accepts: `application/json`, or the image types an image upload lists */
2321
- 415: {
2322
- headers: {
2323
- [name: string]: unknown;
2324
- };
2325
- content: {
2326
- "application/json": components["schemas"]["ErrorResponse"] & {
2327
- /** @enum {string} */
2328
- code: "UnsupportedMediaType";
2329
- };
2330
- };
2331
- };
2332
- /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
2333
- 429: {
2334
- headers: {
2335
- /** @description Seconds to wait before sending the request again */
2336
- "Retry-After"?: number;
2337
- [name: string]: unknown;
2338
- };
2339
- content: {
2340
- "application/json": components["schemas"]["ErrorResponse"] & {
2341
- /** @enum {string} */
2342
- code: "RateLimited";
2343
- };
2344
- };
2345
- };
2346
- /** @description - `InternalError`: The engine failed unexpectedly */
2347
- 500: {
2348
- headers: {
2349
- [name: string]: unknown;
2350
- };
2351
- content: {
2352
- "application/json": components["schemas"]["ErrorResponse"] & {
2353
- /** @enum {string} */
2354
- code: "InternalError";
2355
- };
2356
- };
2357
- };
2119
+ 400: components["responses"]["MalformedBody-ValidationFailed"];
2120
+ 401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
2121
+ 403: components["responses"]["NotAuthorized"];
2122
+ 413: components["responses"]["BodyTooLarge"];
2123
+ 415: components["responses"]["UnsupportedMediaType"];
2124
+ 429: components["responses"]["RateLimited"];
2125
+ 500: components["responses"]["InternalError"];
2358
2126
  };
2359
2127
  };
2360
2128
  getMyBackofficeAccess: {
@@ -2377,60 +2145,10 @@ export interface operations {
2377
2145
  };
2378
2146
  };
2379
2147
  };
2380
- /**
2381
- * @description - `CustomerSessionRequired`: The operation needs a customer's session
2382
- * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
2383
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
2384
- */
2385
- 401: {
2386
- headers: {
2387
- [name: string]: unknown;
2388
- };
2389
- content: {
2390
- "application/json": components["schemas"]["ErrorResponse"] & {
2391
- /** @enum {string} */
2392
- code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
2393
- };
2394
- };
2395
- };
2396
- /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
2397
- 403: {
2398
- headers: {
2399
- [name: string]: unknown;
2400
- };
2401
- content: {
2402
- "application/json": components["schemas"]["ErrorResponse"] & {
2403
- /** @enum {string} */
2404
- code: "NotAuthorized";
2405
- };
2406
- };
2407
- };
2408
- /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
2409
- 429: {
2410
- headers: {
2411
- /** @description Seconds to wait before sending the request again */
2412
- "Retry-After"?: number;
2413
- [name: string]: unknown;
2414
- };
2415
- content: {
2416
- "application/json": components["schemas"]["ErrorResponse"] & {
2417
- /** @enum {string} */
2418
- code: "RateLimited";
2419
- };
2420
- };
2421
- };
2422
- /** @description - `InternalError`: The engine failed unexpectedly */
2423
- 500: {
2424
- headers: {
2425
- [name: string]: unknown;
2426
- };
2427
- content: {
2428
- "application/json": components["schemas"]["ErrorResponse"] & {
2429
- /** @enum {string} */
2430
- code: "InternalError";
2431
- };
2432
- };
2433
- };
2148
+ 401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
2149
+ 403: components["responses"]["NotAuthorized"];
2150
+ 429: components["responses"]["RateLimited"];
2151
+ 500: components["responses"]["InternalError"];
2434
2152
  };
2435
2153
  };
2436
2154
  listOwnBookings: {
@@ -2504,72 +2222,11 @@ export interface operations {
2504
2222
  };
2505
2223
  };
2506
2224
  };
2507
- /** @description - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path */
2508
- 400: {
2509
- headers: {
2510
- [name: string]: unknown;
2511
- };
2512
- content: {
2513
- "application/json": components["schemas"]["ValidationErrorResponse"] & {
2514
- /** @enum {string} */
2515
- code: "ValidationFailed";
2516
- };
2517
- };
2518
- };
2519
- /**
2520
- * @description - `CustomerSessionRequired`: The operation needs a customer's session
2521
- * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
2522
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
2523
- */
2524
- 401: {
2525
- headers: {
2526
- [name: string]: unknown;
2527
- };
2528
- content: {
2529
- "application/json": components["schemas"]["ErrorResponse"] & {
2530
- /** @enum {string} */
2531
- code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
2532
- };
2533
- };
2534
- };
2535
- /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
2536
- 403: {
2537
- headers: {
2538
- [name: string]: unknown;
2539
- };
2540
- content: {
2541
- "application/json": components["schemas"]["ErrorResponse"] & {
2542
- /** @enum {string} */
2543
- code: "NotAuthorized";
2544
- };
2545
- };
2546
- };
2547
- /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
2548
- 429: {
2549
- headers: {
2550
- /** @description Seconds to wait before sending the request again */
2551
- "Retry-After"?: number;
2552
- [name: string]: unknown;
2553
- };
2554
- content: {
2555
- "application/json": components["schemas"]["ErrorResponse"] & {
2556
- /** @enum {string} */
2557
- code: "RateLimited";
2558
- };
2559
- };
2560
- };
2561
- /** @description - `InternalError`: The engine failed unexpectedly */
2562
- 500: {
2563
- headers: {
2564
- [name: string]: unknown;
2565
- };
2566
- content: {
2567
- "application/json": components["schemas"]["ErrorResponse"] & {
2568
- /** @enum {string} */
2569
- code: "InternalError";
2570
- };
2571
- };
2572
- };
2225
+ 400: components["responses"]["ValidationFailed"];
2226
+ 401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
2227
+ 403: components["responses"]["NotAuthorized"];
2228
+ 429: components["responses"]["RateLimited"];
2229
+ 500: components["responses"]["InternalError"];
2573
2230
  };
2574
2231
  };
2575
2232
  listMyMemberships: {
@@ -2603,60 +2260,10 @@ export interface operations {
2603
2260
  }[];
2604
2261
  };
2605
2262
  };
2606
- /**
2607
- * @description - `CustomerSessionRequired`: The operation needs a customer's session
2608
- * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
2609
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
2610
- */
2611
- 401: {
2612
- headers: {
2613
- [name: string]: unknown;
2614
- };
2615
- content: {
2616
- "application/json": components["schemas"]["ErrorResponse"] & {
2617
- /** @enum {string} */
2618
- code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
2619
- };
2620
- };
2621
- };
2622
- /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
2623
- 403: {
2624
- headers: {
2625
- [name: string]: unknown;
2626
- };
2627
- content: {
2628
- "application/json": components["schemas"]["ErrorResponse"] & {
2629
- /** @enum {string} */
2630
- code: "NotAuthorized";
2631
- };
2632
- };
2633
- };
2634
- /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
2635
- 429: {
2636
- headers: {
2637
- /** @description Seconds to wait before sending the request again */
2638
- "Retry-After"?: number;
2639
- [name: string]: unknown;
2640
- };
2641
- content: {
2642
- "application/json": components["schemas"]["ErrorResponse"] & {
2643
- /** @enum {string} */
2644
- code: "RateLimited";
2645
- };
2646
- };
2647
- };
2648
- /** @description - `InternalError`: The engine failed unexpectedly */
2649
- 500: {
2650
- headers: {
2651
- [name: string]: unknown;
2652
- };
2653
- content: {
2654
- "application/json": components["schemas"]["ErrorResponse"] & {
2655
- /** @enum {string} */
2656
- code: "InternalError";
2657
- };
2658
- };
2659
- };
2263
+ 401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
2264
+ 403: components["responses"]["NotAuthorized"];
2265
+ 429: components["responses"]["RateLimited"];
2266
+ 500: components["responses"]["InternalError"];
2660
2267
  };
2661
2268
  };
2662
2269
  signOutEverywhere: {
@@ -2679,96 +2286,13 @@ export interface operations {
2679
2286
  };
2680
2287
  };
2681
2288
  };
2682
- /** @description - `MalformedBody`: The JSON body cannot be parsed */
2683
- 400: {
2684
- headers: {
2685
- [name: string]: unknown;
2686
- };
2687
- content: {
2688
- "application/json": components["schemas"]["ErrorResponse"] & {
2689
- /** @enum {string} */
2690
- code: "MalformedBody";
2691
- };
2692
- };
2693
- };
2694
- /**
2695
- * @description - `CustomerSessionRequired`: The operation needs a customer's session
2696
- * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
2697
- * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
2698
- */
2699
- 401: {
2700
- headers: {
2701
- [name: string]: unknown;
2702
- };
2703
- content: {
2704
- "application/json": components["schemas"]["ErrorResponse"] & {
2705
- /** @enum {string} */
2706
- code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
2707
- };
2708
- };
2709
- };
2710
- /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
2711
- 403: {
2712
- headers: {
2713
- [name: string]: unknown;
2714
- };
2715
- content: {
2716
- "application/json": components["schemas"]["ErrorResponse"] & {
2717
- /** @enum {string} */
2718
- code: "NotAuthorized";
2719
- };
2720
- };
2721
- };
2722
- /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
2723
- 413: {
2724
- headers: {
2725
- [name: string]: unknown;
2726
- };
2727
- content: {
2728
- "application/json": components["schemas"]["ErrorResponse"] & {
2729
- /** @enum {string} */
2730
- code: "BodyTooLarge";
2731
- };
2732
- };
2733
- };
2734
- /** @description - `UnsupportedMediaType`: The body's content type is not one the operation accepts: `application/json`, or the image types an image upload lists */
2735
- 415: {
2736
- headers: {
2737
- [name: string]: unknown;
2738
- };
2739
- content: {
2740
- "application/json": components["schemas"]["ErrorResponse"] & {
2741
- /** @enum {string} */
2742
- code: "UnsupportedMediaType";
2743
- };
2744
- };
2745
- };
2746
- /** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
2747
- 429: {
2748
- headers: {
2749
- /** @description Seconds to wait before sending the request again */
2750
- "Retry-After"?: number;
2751
- [name: string]: unknown;
2752
- };
2753
- content: {
2754
- "application/json": components["schemas"]["ErrorResponse"] & {
2755
- /** @enum {string} */
2756
- code: "RateLimited";
2757
- };
2758
- };
2759
- };
2760
- /** @description - `InternalError`: The engine failed unexpectedly */
2761
- 500: {
2762
- headers: {
2763
- [name: string]: unknown;
2764
- };
2765
- content: {
2766
- "application/json": components["schemas"]["ErrorResponse"] & {
2767
- /** @enum {string} */
2768
- code: "InternalError";
2769
- };
2770
- };
2771
- };
2289
+ 400: components["responses"]["MalformedBody"];
2290
+ 401: components["responses"]["CustomerSessionRequired-NotAuthenticated-SessionExpired"];
2291
+ 403: components["responses"]["NotAuthorized"];
2292
+ 413: components["responses"]["BodyTooLarge"];
2293
+ 415: components["responses"]["UnsupportedMediaType"];
2294
+ 429: components["responses"]["RateLimited"];
2295
+ 500: components["responses"]["InternalError"];
2772
2296
  };
2773
2297
  };
2774
2298
  }