@msm-platform/customer-sdk 0.0.0-stage → 0.1.1

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.
@@ -0,0 +1,2724 @@
1
+ export interface paths {
2
+ "/web/businesses": {
3
+ parameters: {
4
+ query?: never;
5
+ header?: never;
6
+ path?: never;
7
+ cookie?: never;
8
+ };
9
+ /** List the calling client's partner's public businesses */
10
+ get: operations["listPublicBusinesses"];
11
+ put?: never;
12
+ post?: never;
13
+ delete?: never;
14
+ options?: never;
15
+ head?: never;
16
+ patch?: never;
17
+ trace?: never;
18
+ };
19
+ "/web/businesses/{businessId}": {
20
+ parameters: {
21
+ query?: never;
22
+ header?: never;
23
+ path?: never;
24
+ cookie?: never;
25
+ };
26
+ /** Get a public business's details */
27
+ get: operations["getPublicBusiness"];
28
+ put?: never;
29
+ post?: never;
30
+ delete?: never;
31
+ options?: never;
32
+ head?: never;
33
+ patch?: never;
34
+ trace?: never;
35
+ };
36
+ "/web/businesses/{businessId}/availability": {
37
+ parameters: {
38
+ query?: never;
39
+ header?: never;
40
+ path?: never;
41
+ cookie?: never;
42
+ };
43
+ /** List a public business's booking candidates, scheduled events and open time slots, starting in [from, to), local times, default the next 7 days, at most 31 (7 when slots are possible) */
44
+ get: operations["listPublicAvailability"];
45
+ put?: never;
46
+ post?: never;
47
+ delete?: never;
48
+ options?: never;
49
+ head?: never;
50
+ patch?: never;
51
+ trace?: never;
52
+ };
53
+ "/web/businesses/{businessId}/bookings/{bookingId}": {
54
+ parameters: {
55
+ query?: never;
56
+ header?: never;
57
+ path?: never;
58
+ cookie?: never;
59
+ };
60
+ /** Get one of your own bookings with its event and cancellation window; another customer's is 404 BookingNotFound */
61
+ get: operations["getOwnBooking"];
62
+ put?: never;
63
+ post?: never;
64
+ delete?: never;
65
+ options?: never;
66
+ head?: never;
67
+ patch?: never;
68
+ trace?: never;
69
+ };
70
+ "/web/businesses/{businessId}/bookings/{bookingId}/cancel": {
71
+ parameters: {
72
+ query?: never;
73
+ header?: never;
74
+ path?: never;
75
+ cookie?: never;
76
+ };
77
+ get?: never;
78
+ put?: never;
79
+ /** Cancel your own booking until its event starts, freeing its seat; late at or after the start minus the booking's cutoff, 422 EventStarted after the start; a repeat returns the cancelled booking */
80
+ post: operations["cancelOwnBooking"];
81
+ delete?: never;
82
+ options?: never;
83
+ head?: never;
84
+ patch?: never;
85
+ trace?: never;
86
+ };
87
+ "/web/businesses/{businessId}/event-types": {
88
+ parameters: {
89
+ query?: never;
90
+ header?: never;
91
+ path?: never;
92
+ cookie?: never;
93
+ };
94
+ /** List public event types */
95
+ get: operations["listPublicEventTypes"];
96
+ put?: never;
97
+ post?: never;
98
+ delete?: never;
99
+ options?: never;
100
+ head?: never;
101
+ patch?: never;
102
+ trace?: never;
103
+ };
104
+ "/web/businesses/{businessId}/reservations": {
105
+ parameters: {
106
+ query?: never;
107
+ header?: never;
108
+ path?: never;
109
+ cookie?: never;
110
+ };
111
+ get?: never;
112
+ put?: never;
113
+ /** Hold a booking candidate for yourself for the platform hold duration: a seat in a scheduled event (409 EventFull when none is free) or an open time slot (422 NotATimeSlot, 409 SlotTaken). A customer holds at most 5 active reservations at once across the businesses this client reaches (409 ReservationLimitReached) */
114
+ post: operations["reserveCandidate"];
115
+ delete?: never;
116
+ options?: never;
117
+ head?: never;
118
+ patch?: never;
119
+ trace?: never;
120
+ };
121
+ "/web/businesses/{businessId}/reservations/{reservationId}/confirm": {
122
+ parameters: {
123
+ query?: never;
124
+ header?: never;
125
+ path?: never;
126
+ cookie?: never;
127
+ };
128
+ get?: never;
129
+ 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 */
131
+ post: operations["confirmReservation"];
132
+ delete?: never;
133
+ options?: never;
134
+ head?: never;
135
+ patch?: never;
136
+ trace?: never;
137
+ };
138
+ "/web/identity/customerLogin": {
139
+ parameters: {
140
+ query?: never;
141
+ header?: never;
142
+ path?: never;
143
+ cookie?: never;
144
+ };
145
+ get?: never;
146
+ put?: never;
147
+ /** Redeem a sign-in code for a customer session */
148
+ post: operations["identityCustomerLogin"];
149
+ delete?: never;
150
+ options?: never;
151
+ head?: never;
152
+ patch?: never;
153
+ trace?: never;
154
+ };
155
+ "/web/identity/initiateLogin": {
156
+ parameters: {
157
+ query?: never;
158
+ header?: never;
159
+ path?: never;
160
+ cookie?: never;
161
+ };
162
+ get?: never;
163
+ put?: never;
164
+ /** Send a sign-in code to a customer's phone */
165
+ post: operations["identityInitiateLogin"];
166
+ delete?: never;
167
+ options?: never;
168
+ head?: never;
169
+ patch?: never;
170
+ trace?: never;
171
+ };
172
+ "/web/identity/initiateRegistration": {
173
+ parameters: {
174
+ query?: never;
175
+ header?: never;
176
+ path?: never;
177
+ cookie?: never;
178
+ };
179
+ get?: never;
180
+ put?: never;
181
+ /** Send a registration code to a new customer's phone */
182
+ post: operations["identityInitiateRegistration"];
183
+ delete?: never;
184
+ options?: never;
185
+ head?: never;
186
+ patch?: never;
187
+ trace?: never;
188
+ };
189
+ "/web/identity/logout": {
190
+ parameters: {
191
+ query?: never;
192
+ header?: never;
193
+ path?: never;
194
+ cookie?: never;
195
+ };
196
+ get?: never;
197
+ put?: never;
198
+ /** End a customer session of the calling client */
199
+ post: operations["identityLogout"];
200
+ delete?: never;
201
+ options?: never;
202
+ head?: never;
203
+ patch?: never;
204
+ trace?: never;
205
+ };
206
+ "/web/identity/registerCustomer": {
207
+ parameters: {
208
+ query?: never;
209
+ header?: never;
210
+ path?: never;
211
+ cookie?: never;
212
+ };
213
+ get?: never;
214
+ put?: never;
215
+ /** Redeem a registration code for a new customer's session */
216
+ post: operations["identityRegisterCustomer"];
217
+ delete?: never;
218
+ options?: never;
219
+ head?: never;
220
+ patch?: never;
221
+ trace?: never;
222
+ };
223
+ "/web/me": {
224
+ parameters: {
225
+ query?: never;
226
+ header?: never;
227
+ path?: never;
228
+ cookie?: never;
229
+ };
230
+ /** Get your own name, email and newest verified phone; phone and email are read-only */
231
+ get: operations["getMyDetails"];
232
+ put?: never;
233
+ post?: never;
234
+ delete?: never;
235
+ options?: never;
236
+ head?: never;
237
+ /** Change your own name, which every business sees; bookings keep the name they were made with */
238
+ patch: operations["updateMyName"];
239
+ trace?: never;
240
+ };
241
+ "/web/me/bookings": {
242
+ parameters: {
243
+ query?: never;
244
+ header?: never;
245
+ path?: never;
246
+ cookie?: never;
247
+ };
248
+ /** List your own bookings, upcoming (the event has not ended, earliest first) or past (latest first), with every business the client reaches, each with its event and cancellation window */
249
+ get: operations["listOwnBookings"];
250
+ put?: never;
251
+ post?: never;
252
+ delete?: never;
253
+ options?: never;
254
+ head?: never;
255
+ patch?: never;
256
+ trace?: never;
257
+ };
258
+ "/web/me/memberships": {
259
+ parameters: {
260
+ query?: never;
261
+ header?: never;
262
+ path?: never;
263
+ cookie?: never;
264
+ };
265
+ /** List your own current and upcoming memberships and passes with every business the client reaches, with the credits left; revoked and expired ones are not listed */
266
+ get: operations["listMyMemberships"];
267
+ put?: never;
268
+ post?: never;
269
+ delete?: never;
270
+ options?: never;
271
+ head?: never;
272
+ patch?: never;
273
+ trace?: never;
274
+ };
275
+ "/web/me/sessions": {
276
+ parameters: {
277
+ query?: never;
278
+ header?: never;
279
+ path?: never;
280
+ cookie?: never;
281
+ };
282
+ get?: never;
283
+ put?: never;
284
+ post?: never;
285
+ /** End every session you have with this client, this one included; your sessions with other clients stay */
286
+ delete: operations["signOutEverywhere"];
287
+ options?: never;
288
+ head?: never;
289
+ patch?: never;
290
+ trace?: never;
291
+ };
292
+ }
293
+ export type webhooks = Record<string, never>;
294
+ export interface components {
295
+ schemas: {
296
+ ErrorResponse: {
297
+ code: string;
298
+ message: string;
299
+ };
300
+ ValidationErrorResponse: {
301
+ code: string;
302
+ issues?: {
303
+ message: string;
304
+ path: string;
305
+ }[];
306
+ message: string;
307
+ };
308
+ };
309
+ responses: never;
310
+ parameters: never;
311
+ requestBodies: never;
312
+ headers: never;
313
+ pathItems: never;
314
+ }
315
+ export type $defs = Record<string, never>;
316
+ export interface operations {
317
+ listPublicBusinesses: {
318
+ parameters: {
319
+ query?: {
320
+ cursor?: string;
321
+ limit?: number;
322
+ };
323
+ header?: never;
324
+ path?: never;
325
+ cookie?: never;
326
+ };
327
+ requestBody?: never;
328
+ responses: {
329
+ /** @description OK */
330
+ 200: {
331
+ headers: {
332
+ [name: string]: unknown;
333
+ };
334
+ content: {
335
+ "application/json": {
336
+ items: {
337
+ address: string | null;
338
+ displayName: string;
339
+ /** Format: email */
340
+ email: string | null;
341
+ /** Format: uuid */
342
+ id: string;
343
+ latitude: number | null;
344
+ /** Format: uuid */
345
+ logoAssetId: string | null;
346
+ longitude: number | null;
347
+ phone: string | null;
348
+ timezone: string;
349
+ }[];
350
+ nextCursor: string | null;
351
+ };
352
+ };
353
+ };
354
+ /** @description - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path */
355
+ 400: {
356
+ headers: {
357
+ [name: string]: unknown;
358
+ };
359
+ content: {
360
+ "application/json": components["schemas"]["ValidationErrorResponse"] & {
361
+ /** @enum {string} */
362
+ code: "ValidationFailed";
363
+ };
364
+ };
365
+ };
366
+ /**
367
+ * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
368
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
369
+ */
370
+ 401: {
371
+ headers: {
372
+ [name: string]: unknown;
373
+ };
374
+ content: {
375
+ "application/json": components["schemas"]["ErrorResponse"] & {
376
+ /** @enum {string} */
377
+ code: "NotAuthenticated" | "SessionExpired";
378
+ };
379
+ };
380
+ };
381
+ /** @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds */
382
+ 429: {
383
+ headers: {
384
+ /** @description Seconds to wait before sending the request again */
385
+ "Retry-After"?: number;
386
+ [name: string]: unknown;
387
+ };
388
+ content: {
389
+ "application/json": components["schemas"]["ErrorResponse"] & {
390
+ /** @enum {string} */
391
+ code: "RateLimited";
392
+ };
393
+ };
394
+ };
395
+ /** @description - `InternalError`: The engine failed unexpectedly */
396
+ 500: {
397
+ headers: {
398
+ [name: string]: unknown;
399
+ };
400
+ content: {
401
+ "application/json": components["schemas"]["ErrorResponse"] & {
402
+ /** @enum {string} */
403
+ code: "InternalError";
404
+ };
405
+ };
406
+ };
407
+ };
408
+ };
409
+ getPublicBusiness: {
410
+ parameters: {
411
+ query?: never;
412
+ header?: never;
413
+ path: {
414
+ businessId: string;
415
+ };
416
+ cookie?: never;
417
+ };
418
+ requestBody?: never;
419
+ responses: {
420
+ /** @description OK */
421
+ 200: {
422
+ headers: {
423
+ [name: string]: unknown;
424
+ };
425
+ content: {
426
+ "application/json": {
427
+ address: string | null;
428
+ displayName: string;
429
+ /** Format: email */
430
+ email: string | null;
431
+ /** Format: uuid */
432
+ id: string;
433
+ latitude: number | null;
434
+ /** Format: uuid */
435
+ logoAssetId: string | null;
436
+ longitude: number | null;
437
+ phone: string | null;
438
+ timezone: string;
439
+ };
440
+ };
441
+ };
442
+ /** @description - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path */
443
+ 400: {
444
+ headers: {
445
+ [name: string]: unknown;
446
+ };
447
+ content: {
448
+ "application/json": components["schemas"]["ValidationErrorResponse"] & {
449
+ /** @enum {string} */
450
+ code: "ValidationFailed";
451
+ };
452
+ };
453
+ };
454
+ /**
455
+ * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
456
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
457
+ */
458
+ 401: {
459
+ headers: {
460
+ [name: string]: unknown;
461
+ };
462
+ content: {
463
+ "application/json": components["schemas"]["ErrorResponse"] & {
464
+ /** @enum {string} */
465
+ code: "NotAuthenticated" | "SessionExpired";
466
+ };
467
+ };
468
+ };
469
+ /** @description - `OutsideClientScope`: The application client serves only its own partner's businesses */
470
+ 403: {
471
+ headers: {
472
+ [name: string]: unknown;
473
+ };
474
+ content: {
475
+ "application/json": components["schemas"]["ErrorResponse"] & {
476
+ /** @enum {string} */
477
+ code: "OutsideClientScope";
478
+ };
479
+ };
480
+ };
481
+ /** @description - `BusinessNotFound`: The business does not exist or is not public */
482
+ 404: {
483
+ headers: {
484
+ [name: string]: unknown;
485
+ };
486
+ content: {
487
+ "application/json": components["schemas"]["ErrorResponse"] & {
488
+ /** @enum {string} */
489
+ code: "BusinessNotFound";
490
+ };
491
+ };
492
+ };
493
+ /** @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds */
494
+ 429: {
495
+ headers: {
496
+ /** @description Seconds to wait before sending the request again */
497
+ "Retry-After"?: number;
498
+ [name: string]: unknown;
499
+ };
500
+ content: {
501
+ "application/json": components["schemas"]["ErrorResponse"] & {
502
+ /** @enum {string} */
503
+ code: "RateLimited";
504
+ };
505
+ };
506
+ };
507
+ /** @description - `InternalError`: The engine failed unexpectedly */
508
+ 500: {
509
+ headers: {
510
+ [name: string]: unknown;
511
+ };
512
+ content: {
513
+ "application/json": components["schemas"]["ErrorResponse"] & {
514
+ /** @enum {string} */
515
+ code: "InternalError";
516
+ };
517
+ };
518
+ };
519
+ };
520
+ };
521
+ listPublicAvailability: {
522
+ parameters: {
523
+ query?: {
524
+ eventTypeId?: string;
525
+ from?: string;
526
+ resourceId?: string;
527
+ to?: string;
528
+ };
529
+ header?: never;
530
+ path: {
531
+ businessId: string;
532
+ };
533
+ cookie?: never;
534
+ };
535
+ requestBody?: never;
536
+ responses: {
537
+ /** @description OK */
538
+ 200: {
539
+ headers: {
540
+ [name: string]: unknown;
541
+ };
542
+ content: {
543
+ "application/json": {
544
+ items: {
545
+ capacity: number;
546
+ /** Format: date-time */
547
+ endsAt: string;
548
+ /** Format: uuid */
549
+ eventId: string | null;
550
+ /** Format: uuid */
551
+ eventTypeId: string;
552
+ full: boolean;
553
+ /** @enum {string} */
554
+ kind: "event" | "slot";
555
+ resource: {
556
+ displayName: string;
557
+ /** Format: uuid */
558
+ id: string;
559
+ } | null;
560
+ seatsLeft: number;
561
+ /** Format: date-time */
562
+ startsAt: string;
563
+ timezone: string;
564
+ title: string;
565
+ }[];
566
+ };
567
+ };
568
+ };
569
+ /** @description - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path */
570
+ 400: {
571
+ headers: {
572
+ [name: string]: unknown;
573
+ };
574
+ content: {
575
+ "application/json": components["schemas"]["ValidationErrorResponse"] & {
576
+ /** @enum {string} */
577
+ code: "ValidationFailed";
578
+ };
579
+ };
580
+ };
581
+ /**
582
+ * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
583
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
584
+ */
585
+ 401: {
586
+ headers: {
587
+ [name: string]: unknown;
588
+ };
589
+ content: {
590
+ "application/json": components["schemas"]["ErrorResponse"] & {
591
+ /** @enum {string} */
592
+ code: "NotAuthenticated" | "SessionExpired";
593
+ };
594
+ };
595
+ };
596
+ /** @description - `OutsideClientScope`: The application client serves only its own partner's businesses */
597
+ 403: {
598
+ headers: {
599
+ [name: string]: unknown;
600
+ };
601
+ content: {
602
+ "application/json": components["schemas"]["ErrorResponse"] & {
603
+ /** @enum {string} */
604
+ code: "OutsideClientScope";
605
+ };
606
+ };
607
+ };
608
+ /** @description - `BusinessNotFound`: The business does not exist or is not public */
609
+ 404: {
610
+ headers: {
611
+ [name: string]: unknown;
612
+ };
613
+ content: {
614
+ "application/json": components["schemas"]["ErrorResponse"] & {
615
+ /** @enum {string} */
616
+ code: "BusinessNotFound";
617
+ };
618
+ };
619
+ };
620
+ /**
621
+ * @description - `InvalidInterval`: An interval ends before it starts
622
+ * - `RangeTooLong`: The range covers more days than one request may
623
+ */
624
+ 422: {
625
+ headers: {
626
+ [name: string]: unknown;
627
+ };
628
+ content: {
629
+ "application/json": components["schemas"]["ErrorResponse"] & {
630
+ /** @enum {string} */
631
+ code: "InvalidInterval" | "RangeTooLong";
632
+ };
633
+ };
634
+ };
635
+ /** @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds */
636
+ 429: {
637
+ headers: {
638
+ /** @description Seconds to wait before sending the request again */
639
+ "Retry-After"?: number;
640
+ [name: string]: unknown;
641
+ };
642
+ content: {
643
+ "application/json": components["schemas"]["ErrorResponse"] & {
644
+ /** @enum {string} */
645
+ code: "RateLimited";
646
+ };
647
+ };
648
+ };
649
+ /** @description - `InternalError`: The engine failed unexpectedly */
650
+ 500: {
651
+ headers: {
652
+ [name: string]: unknown;
653
+ };
654
+ content: {
655
+ "application/json": components["schemas"]["ErrorResponse"] & {
656
+ /** @enum {string} */
657
+ code: "InternalError";
658
+ };
659
+ };
660
+ };
661
+ };
662
+ };
663
+ getOwnBooking: {
664
+ parameters: {
665
+ query?: never;
666
+ header?: never;
667
+ path: {
668
+ bookingId: string;
669
+ businessId: string;
670
+ };
671
+ cookie?: never;
672
+ };
673
+ requestBody?: never;
674
+ responses: {
675
+ /** @description OK */
676
+ 200: {
677
+ headers: {
678
+ [name: string]: unknown;
679
+ };
680
+ content: {
681
+ "application/json": {
682
+ /** @enum {string|null} */
683
+ attendance: "attended" | "no_show" | null;
684
+ /** Format: date-time */
685
+ attendanceRecordedAt: string | null;
686
+ /** Format: uuid */
687
+ businessId: string;
688
+ /** @description The business's catalogue name */
689
+ businessName: string;
690
+ /**
691
+ * Format: date-time
692
+ * @description The customer may cancel until the event's start; null once the booking is cancelled. Once the event has started this is in the past, so compare it with now
693
+ */
694
+ cancellableUntil: string | null;
695
+ cancellationCutoffMinutes: number | null;
696
+ /** @enum {string|null} */
697
+ cancellationKind: "customer" | "business" | "on_behalf" | null;
698
+ /** Format: date-time */
699
+ cancelledAt: string | null;
700
+ cancelledLate: boolean | null;
701
+ /** Format: date-time */
702
+ createdAt: string;
703
+ /** Format: uuid */
704
+ creditMembershipId: string | null;
705
+ /** Format: date-time */
706
+ creditRestoredAt: string | null;
707
+ event: {
708
+ /** Format: date-time */
709
+ endsAt: string;
710
+ /** Format: uuid */
711
+ eventTypeId: string | null;
712
+ eventTypeName: string | null;
713
+ /** Format: date-time */
714
+ startsAt: string;
715
+ };
716
+ /** Format: uuid */
717
+ eventId: string;
718
+ /** Format: uuid */
719
+ id: string;
720
+ /**
721
+ * Format: date-time
722
+ * @description A cancellation from this time is late: the event's start minus the booking's cutoff; null without a cutoff or once cancelled
723
+ */
724
+ lateCancellationFrom: string | null;
725
+ /** @enum {string} */
726
+ status: "confirmed" | "cancelled";
727
+ };
728
+ };
729
+ };
730
+ /** @description - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path */
731
+ 400: {
732
+ headers: {
733
+ [name: string]: unknown;
734
+ };
735
+ content: {
736
+ "application/json": components["schemas"]["ValidationErrorResponse"] & {
737
+ /** @enum {string} */
738
+ code: "ValidationFailed";
739
+ };
740
+ };
741
+ };
742
+ /**
743
+ * @description - `CustomerSessionRequired`: The operation needs a customer's session
744
+ * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
745
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
746
+ */
747
+ 401: {
748
+ headers: {
749
+ [name: string]: unknown;
750
+ };
751
+ content: {
752
+ "application/json": components["schemas"]["ErrorResponse"] & {
753
+ /** @enum {string} */
754
+ code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
755
+ };
756
+ };
757
+ };
758
+ /**
759
+ * @description - `NotAuthorized`: The actor is not permitted to perform this operation
760
+ * - `OutsideClientScope`: The application client serves only its own partner's businesses
761
+ */
762
+ 403: {
763
+ headers: {
764
+ [name: string]: unknown;
765
+ };
766
+ content: {
767
+ "application/json": components["schemas"]["ErrorResponse"] & {
768
+ /** @enum {string} */
769
+ code: "NotAuthorized" | "OutsideClientScope";
770
+ };
771
+ };
772
+ };
773
+ /** @description - `BookingNotFound`: The booking does not exist, or is not the caller's */
774
+ 404: {
775
+ headers: {
776
+ [name: string]: unknown;
777
+ };
778
+ content: {
779
+ "application/json": components["schemas"]["ErrorResponse"] & {
780
+ /** @enum {string} */
781
+ code: "BookingNotFound";
782
+ };
783
+ };
784
+ };
785
+ /** @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds */
786
+ 429: {
787
+ headers: {
788
+ /** @description Seconds to wait before sending the request again */
789
+ "Retry-After"?: number;
790
+ [name: string]: unknown;
791
+ };
792
+ content: {
793
+ "application/json": components["schemas"]["ErrorResponse"] & {
794
+ /** @enum {string} */
795
+ code: "RateLimited";
796
+ };
797
+ };
798
+ };
799
+ /** @description - `InternalError`: The engine failed unexpectedly */
800
+ 500: {
801
+ headers: {
802
+ [name: string]: unknown;
803
+ };
804
+ content: {
805
+ "application/json": components["schemas"]["ErrorResponse"] & {
806
+ /** @enum {string} */
807
+ code: "InternalError";
808
+ };
809
+ };
810
+ };
811
+ };
812
+ };
813
+ cancelOwnBooking: {
814
+ parameters: {
815
+ query?: never;
816
+ header?: never;
817
+ path: {
818
+ bookingId: string;
819
+ businessId: string;
820
+ };
821
+ cookie?: never;
822
+ };
823
+ requestBody?: never;
824
+ responses: {
825
+ /** @description OK */
826
+ 200: {
827
+ headers: {
828
+ [name: string]: unknown;
829
+ };
830
+ content: {
831
+ "application/json": {
832
+ /** @enum {string|null} */
833
+ attendance: "attended" | "no_show" | null;
834
+ /** Format: date-time */
835
+ attendanceRecordedAt: string | null;
836
+ /** Format: uuid */
837
+ businessId: string;
838
+ cancellationCutoffMinutes: number | null;
839
+ /** @enum {string|null} */
840
+ cancellationKind: "customer" | "business" | "on_behalf" | null;
841
+ /** Format: date-time */
842
+ cancelledAt: string | null;
843
+ cancelledLate: boolean | null;
844
+ /** Format: date-time */
845
+ createdAt: string;
846
+ /** Format: uuid */
847
+ creditMembershipId: string | null;
848
+ /** Format: date-time */
849
+ creditRestoredAt: string | null;
850
+ /** Format: uuid */
851
+ eventId: string;
852
+ /** Format: uuid */
853
+ id: string;
854
+ /** @enum {string} */
855
+ status: "confirmed" | "cancelled";
856
+ };
857
+ };
858
+ };
859
+ /**
860
+ * @description - `MalformedBody`: The JSON body cannot be parsed
861
+ * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
862
+ */
863
+ 400: {
864
+ headers: {
865
+ [name: string]: unknown;
866
+ };
867
+ content: {
868
+ "application/json": components["schemas"]["ValidationErrorResponse"] & {
869
+ /** @enum {string} */
870
+ code: "MalformedBody" | "ValidationFailed";
871
+ };
872
+ };
873
+ };
874
+ /**
875
+ * @description - `CustomerSessionRequired`: The operation needs a customer's session
876
+ * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
877
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
878
+ */
879
+ 401: {
880
+ headers: {
881
+ [name: string]: unknown;
882
+ };
883
+ content: {
884
+ "application/json": components["schemas"]["ErrorResponse"] & {
885
+ /** @enum {string} */
886
+ code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
887
+ };
888
+ };
889
+ };
890
+ /**
891
+ * @description - `NotAuthorized`: The actor is not permitted to perform this operation
892
+ * - `OutsideClientScope`: The application client serves only its own partner's businesses
893
+ */
894
+ 403: {
895
+ headers: {
896
+ [name: string]: unknown;
897
+ };
898
+ content: {
899
+ "application/json": components["schemas"]["ErrorResponse"] & {
900
+ /** @enum {string} */
901
+ code: "NotAuthorized" | "OutsideClientScope";
902
+ };
903
+ };
904
+ };
905
+ /**
906
+ * @description - `BookingNotFound`: The booking does not exist, or is not the caller's
907
+ * - `BusinessNotFound`: The business does not exist or is not public
908
+ */
909
+ 404: {
910
+ headers: {
911
+ [name: string]: unknown;
912
+ };
913
+ content: {
914
+ "application/json": components["schemas"]["ErrorResponse"] & {
915
+ /** @enum {string} */
916
+ code: "BookingNotFound" | "BusinessNotFound";
917
+ };
918
+ };
919
+ };
920
+ /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
921
+ 413: {
922
+ headers: {
923
+ [name: string]: unknown;
924
+ };
925
+ content: {
926
+ "application/json": components["schemas"]["ErrorResponse"] & {
927
+ /** @enum {string} */
928
+ code: "BodyTooLarge";
929
+ };
930
+ };
931
+ };
932
+ /** @description - `UnsupportedMediaType`: The body's content type is not `application/json` */
933
+ 415: {
934
+ headers: {
935
+ [name: string]: unknown;
936
+ };
937
+ content: {
938
+ "application/json": components["schemas"]["ErrorResponse"] & {
939
+ /** @enum {string} */
940
+ code: "UnsupportedMediaType";
941
+ };
942
+ };
943
+ };
944
+ /** @description - `EventStarted`: The event has started */
945
+ 422: {
946
+ headers: {
947
+ [name: string]: unknown;
948
+ };
949
+ content: {
950
+ "application/json": components["schemas"]["ErrorResponse"] & {
951
+ /** @enum {string} */
952
+ code: "EventStarted";
953
+ };
954
+ };
955
+ };
956
+ /** @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds */
957
+ 429: {
958
+ headers: {
959
+ /** @description Seconds to wait before sending the request again */
960
+ "Retry-After"?: number;
961
+ [name: string]: unknown;
962
+ };
963
+ content: {
964
+ "application/json": components["schemas"]["ErrorResponse"] & {
965
+ /** @enum {string} */
966
+ code: "RateLimited";
967
+ };
968
+ };
969
+ };
970
+ /** @description - `InternalError`: The engine failed unexpectedly */
971
+ 500: {
972
+ headers: {
973
+ [name: string]: unknown;
974
+ };
975
+ content: {
976
+ "application/json": components["schemas"]["ErrorResponse"] & {
977
+ /** @enum {string} */
978
+ code: "InternalError";
979
+ };
980
+ };
981
+ };
982
+ };
983
+ };
984
+ listPublicEventTypes: {
985
+ parameters: {
986
+ query?: never;
987
+ header?: never;
988
+ path: {
989
+ businessId: string;
990
+ };
991
+ cookie?: never;
992
+ };
993
+ requestBody?: never;
994
+ responses: {
995
+ /** @description OK */
996
+ 200: {
997
+ headers: {
998
+ [name: string]: unknown;
999
+ };
1000
+ content: {
1001
+ "application/json": {
1002
+ items: {
1003
+ cancellationCutoffMinutes: number | null;
1004
+ /** Format: uuid */
1005
+ categoryId: string | null;
1006
+ description: string | null;
1007
+ displayName: string;
1008
+ durationMinutes: number;
1009
+ /** Format: uuid */
1010
+ id: string;
1011
+ /** Format: uuid */
1012
+ imageAssetId: string | null;
1013
+ requiresAccess: boolean;
1014
+ resources: {
1015
+ /** @description The resource's own description, null without one */
1016
+ description: string | null;
1017
+ displayName: string;
1018
+ /** Format: uuid */
1019
+ id: string;
1020
+ }[];
1021
+ timeSlotBooking: boolean;
1022
+ }[];
1023
+ };
1024
+ };
1025
+ };
1026
+ /** @description - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path */
1027
+ 400: {
1028
+ headers: {
1029
+ [name: string]: unknown;
1030
+ };
1031
+ content: {
1032
+ "application/json": components["schemas"]["ValidationErrorResponse"] & {
1033
+ /** @enum {string} */
1034
+ code: "ValidationFailed";
1035
+ };
1036
+ };
1037
+ };
1038
+ /**
1039
+ * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
1040
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
1041
+ */
1042
+ 401: {
1043
+ headers: {
1044
+ [name: string]: unknown;
1045
+ };
1046
+ content: {
1047
+ "application/json": components["schemas"]["ErrorResponse"] & {
1048
+ /** @enum {string} */
1049
+ code: "NotAuthenticated" | "SessionExpired";
1050
+ };
1051
+ };
1052
+ };
1053
+ /** @description - `OutsideClientScope`: The application client serves only its own partner's businesses */
1054
+ 403: {
1055
+ headers: {
1056
+ [name: string]: unknown;
1057
+ };
1058
+ content: {
1059
+ "application/json": components["schemas"]["ErrorResponse"] & {
1060
+ /** @enum {string} */
1061
+ code: "OutsideClientScope";
1062
+ };
1063
+ };
1064
+ };
1065
+ /** @description - `BusinessNotFound`: The business does not exist or is not public */
1066
+ 404: {
1067
+ headers: {
1068
+ [name: string]: unknown;
1069
+ };
1070
+ content: {
1071
+ "application/json": components["schemas"]["ErrorResponse"] & {
1072
+ /** @enum {string} */
1073
+ code: "BusinessNotFound";
1074
+ };
1075
+ };
1076
+ };
1077
+ /** @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds */
1078
+ 429: {
1079
+ headers: {
1080
+ /** @description Seconds to wait before sending the request again */
1081
+ "Retry-After"?: number;
1082
+ [name: string]: unknown;
1083
+ };
1084
+ content: {
1085
+ "application/json": components["schemas"]["ErrorResponse"] & {
1086
+ /** @enum {string} */
1087
+ code: "RateLimited";
1088
+ };
1089
+ };
1090
+ };
1091
+ /** @description - `InternalError`: The engine failed unexpectedly */
1092
+ 500: {
1093
+ headers: {
1094
+ [name: string]: unknown;
1095
+ };
1096
+ content: {
1097
+ "application/json": components["schemas"]["ErrorResponse"] & {
1098
+ /** @enum {string} */
1099
+ code: "InternalError";
1100
+ };
1101
+ };
1102
+ };
1103
+ };
1104
+ };
1105
+ reserveCandidate: {
1106
+ parameters: {
1107
+ query?: never;
1108
+ header?: never;
1109
+ path: {
1110
+ businessId: string;
1111
+ };
1112
+ cookie?: never;
1113
+ };
1114
+ requestBody: {
1115
+ content: {
1116
+ "application/json": {
1117
+ /** Format: uuid */
1118
+ eventId: string;
1119
+ } | {
1120
+ /** Format: uuid */
1121
+ eventTypeId: string;
1122
+ /** Format: uuid */
1123
+ resourceId?: string;
1124
+ /** Format: date-time */
1125
+ startsAt: string;
1126
+ };
1127
+ };
1128
+ };
1129
+ responses: {
1130
+ /** @description Created */
1131
+ 201: {
1132
+ headers: {
1133
+ [name: string]: unknown;
1134
+ };
1135
+ content: {
1136
+ "application/json": {
1137
+ /** Format: uuid */
1138
+ businessId: string;
1139
+ /** Format: date-time */
1140
+ createdAt: string;
1141
+ /** Format: uuid */
1142
+ eventId: string;
1143
+ /** Format: date-time */
1144
+ expiresAt: string;
1145
+ /** Format: uuid */
1146
+ id: string;
1147
+ /** @enum {string} */
1148
+ status: "active" | "confirmed" | "expired";
1149
+ };
1150
+ };
1151
+ };
1152
+ /**
1153
+ * @description - `MalformedBody`: The JSON body cannot be parsed
1154
+ * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
1155
+ */
1156
+ 400: {
1157
+ headers: {
1158
+ [name: string]: unknown;
1159
+ };
1160
+ content: {
1161
+ "application/json": components["schemas"]["ValidationErrorResponse"] & {
1162
+ /** @enum {string} */
1163
+ code: "MalformedBody" | "ValidationFailed";
1164
+ };
1165
+ };
1166
+ };
1167
+ /**
1168
+ * @description - `CustomerSessionRequired`: The operation needs a customer's session
1169
+ * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
1170
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
1171
+ */
1172
+ 401: {
1173
+ headers: {
1174
+ [name: string]: unknown;
1175
+ };
1176
+ content: {
1177
+ "application/json": components["schemas"]["ErrorResponse"] & {
1178
+ /** @enum {string} */
1179
+ code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
1180
+ };
1181
+ };
1182
+ };
1183
+ /**
1184
+ * @description - `NotAuthorized`: The actor is not permitted to perform this operation
1185
+ * - `OutsideClientScope`: The application client serves only its own partner's businesses
1186
+ */
1187
+ 403: {
1188
+ headers: {
1189
+ [name: string]: unknown;
1190
+ };
1191
+ content: {
1192
+ "application/json": components["schemas"]["ErrorResponse"] & {
1193
+ /** @enum {string} */
1194
+ code: "NotAuthorized" | "OutsideClientScope";
1195
+ };
1196
+ };
1197
+ };
1198
+ /**
1199
+ * @description - `BusinessNotFound`: The business does not exist or is not public
1200
+ * - `EventNotFound`: The event does not exist in this business
1201
+ * - `EventTypeNotFound`: The event type does not exist in this business
1202
+ */
1203
+ 404: {
1204
+ headers: {
1205
+ [name: string]: unknown;
1206
+ };
1207
+ content: {
1208
+ "application/json": components["schemas"]["ErrorResponse"] & {
1209
+ /** @enum {string} */
1210
+ code: "BusinessNotFound" | "EventNotFound" | "EventTypeNotFound";
1211
+ };
1212
+ };
1213
+ };
1214
+ /**
1215
+ * @description - `EventFull`: The event has no free seat
1216
+ * - `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
1217
+ * - `SlotTaken`: The time slot is taken on every resource that could provide it
1218
+ */
1219
+ 409: {
1220
+ headers: {
1221
+ [name: string]: unknown;
1222
+ };
1223
+ content: {
1224
+ "application/json": components["schemas"]["ErrorResponse"] & {
1225
+ /** @enum {string} */
1226
+ code: "EventFull" | "ReservationLimitReached" | "SlotTaken";
1227
+ };
1228
+ };
1229
+ };
1230
+ /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
1231
+ 413: {
1232
+ headers: {
1233
+ [name: string]: unknown;
1234
+ };
1235
+ content: {
1236
+ "application/json": components["schemas"]["ErrorResponse"] & {
1237
+ /** @enum {string} */
1238
+ code: "BodyTooLarge";
1239
+ };
1240
+ };
1241
+ };
1242
+ /** @description - `UnsupportedMediaType`: The body's content type is not `application/json` */
1243
+ 415: {
1244
+ headers: {
1245
+ [name: string]: unknown;
1246
+ };
1247
+ content: {
1248
+ "application/json": components["schemas"]["ErrorResponse"] & {
1249
+ /** @enum {string} */
1250
+ code: "UnsupportedMediaType";
1251
+ };
1252
+ };
1253
+ };
1254
+ /**
1255
+ * @description - `EventNotBookable`: Only a scheduled event with a live event type can be reserved or booked
1256
+ * - `EventStarted`: The event has started
1257
+ * - `NotATimeSlot`: The start is not an open time slot of the event type on a resource that provides it
1258
+ */
1259
+ 422: {
1260
+ headers: {
1261
+ [name: string]: unknown;
1262
+ };
1263
+ content: {
1264
+ "application/json": components["schemas"]["ErrorResponse"] & {
1265
+ /** @enum {string} */
1266
+ code: "EventNotBookable" | "EventStarted" | "NotATimeSlot";
1267
+ };
1268
+ };
1269
+ };
1270
+ /** @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds */
1271
+ 429: {
1272
+ headers: {
1273
+ /** @description Seconds to wait before sending the request again */
1274
+ "Retry-After"?: number;
1275
+ [name: string]: unknown;
1276
+ };
1277
+ content: {
1278
+ "application/json": components["schemas"]["ErrorResponse"] & {
1279
+ /** @enum {string} */
1280
+ code: "RateLimited";
1281
+ };
1282
+ };
1283
+ };
1284
+ /** @description - `InternalError`: The engine failed unexpectedly */
1285
+ 500: {
1286
+ headers: {
1287
+ [name: string]: unknown;
1288
+ };
1289
+ content: {
1290
+ "application/json": components["schemas"]["ErrorResponse"] & {
1291
+ /** @enum {string} */
1292
+ code: "InternalError";
1293
+ };
1294
+ };
1295
+ };
1296
+ };
1297
+ };
1298
+ confirmReservation: {
1299
+ parameters: {
1300
+ query?: never;
1301
+ header?: never;
1302
+ path: {
1303
+ businessId: string;
1304
+ reservationId: string;
1305
+ };
1306
+ cookie?: never;
1307
+ };
1308
+ requestBody?: never;
1309
+ responses: {
1310
+ /** @description OK */
1311
+ 200: {
1312
+ headers: {
1313
+ [name: string]: unknown;
1314
+ };
1315
+ content: {
1316
+ "application/json": {
1317
+ /** @enum {string|null} */
1318
+ attendance: "attended" | "no_show" | null;
1319
+ /** Format: date-time */
1320
+ attendanceRecordedAt: string | null;
1321
+ /** Format: uuid */
1322
+ businessId: string;
1323
+ cancellationCutoffMinutes: number | null;
1324
+ /** @enum {string|null} */
1325
+ cancellationKind: "customer" | "business" | "on_behalf" | null;
1326
+ /** Format: date-time */
1327
+ cancelledAt: string | null;
1328
+ cancelledLate: boolean | null;
1329
+ /** Format: date-time */
1330
+ createdAt: string;
1331
+ /** Format: uuid */
1332
+ creditMembershipId: string | null;
1333
+ /** Format: date-time */
1334
+ creditRestoredAt: string | null;
1335
+ /** Format: uuid */
1336
+ eventId: string;
1337
+ /** Format: uuid */
1338
+ id: string;
1339
+ /** @enum {string} */
1340
+ status: "confirmed" | "cancelled";
1341
+ };
1342
+ };
1343
+ };
1344
+ /**
1345
+ * @description - `MalformedBody`: The JSON body cannot be parsed
1346
+ * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
1347
+ */
1348
+ 400: {
1349
+ headers: {
1350
+ [name: string]: unknown;
1351
+ };
1352
+ content: {
1353
+ "application/json": components["schemas"]["ValidationErrorResponse"] & {
1354
+ /** @enum {string} */
1355
+ code: "MalformedBody" | "ValidationFailed";
1356
+ };
1357
+ };
1358
+ };
1359
+ /**
1360
+ * @description - `CustomerSessionRequired`: The operation needs a customer's session
1361
+ * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
1362
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
1363
+ */
1364
+ 401: {
1365
+ headers: {
1366
+ [name: string]: unknown;
1367
+ };
1368
+ content: {
1369
+ "application/json": components["schemas"]["ErrorResponse"] & {
1370
+ /** @enum {string} */
1371
+ code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
1372
+ };
1373
+ };
1374
+ };
1375
+ /**
1376
+ * @description - `NotAuthorized`: The actor is not permitted to perform this operation
1377
+ * - `OutsideClientScope`: The application client serves only its own partner's businesses
1378
+ */
1379
+ 403: {
1380
+ headers: {
1381
+ [name: string]: unknown;
1382
+ };
1383
+ content: {
1384
+ "application/json": components["schemas"]["ErrorResponse"] & {
1385
+ /** @enum {string} */
1386
+ code: "NotAuthorized" | "OutsideClientScope";
1387
+ };
1388
+ };
1389
+ };
1390
+ /**
1391
+ * @description - `BusinessNotFound`: The business does not exist or is not public
1392
+ * - `ReservationNotFound`: The reservation does not exist, or is not the caller's
1393
+ */
1394
+ 404: {
1395
+ headers: {
1396
+ [name: string]: unknown;
1397
+ };
1398
+ content: {
1399
+ "application/json": components["schemas"]["ErrorResponse"] & {
1400
+ /** @enum {string} */
1401
+ code: "BusinessNotFound" | "ReservationNotFound";
1402
+ };
1403
+ };
1404
+ };
1405
+ /** @description - `ReservationExpired`: The reservation expired and no longer holds its seat or slot */
1406
+ 409: {
1407
+ headers: {
1408
+ [name: string]: unknown;
1409
+ };
1410
+ content: {
1411
+ "application/json": components["schemas"]["ErrorResponse"] & {
1412
+ /** @enum {string} */
1413
+ code: "ReservationExpired";
1414
+ };
1415
+ };
1416
+ };
1417
+ /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
1418
+ 413: {
1419
+ headers: {
1420
+ [name: string]: unknown;
1421
+ };
1422
+ content: {
1423
+ "application/json": components["schemas"]["ErrorResponse"] & {
1424
+ /** @enum {string} */
1425
+ code: "BodyTooLarge";
1426
+ };
1427
+ };
1428
+ };
1429
+ /** @description - `UnsupportedMediaType`: The body's content type is not `application/json` */
1430
+ 415: {
1431
+ headers: {
1432
+ [name: string]: unknown;
1433
+ };
1434
+ content: {
1435
+ "application/json": components["schemas"]["ErrorResponse"] & {
1436
+ /** @enum {string} */
1437
+ code: "UnsupportedMediaType";
1438
+ };
1439
+ };
1440
+ };
1441
+ /**
1442
+ * @description - `CustomerOutsideBusiness`: The participant is not a live customer of this business
1443
+ * - `EventNotBookable`: Only a scheduled event with a live event type can be reserved or booked
1444
+ * - `EventStarted`: The event has started
1445
+ */
1446
+ 422: {
1447
+ headers: {
1448
+ [name: string]: unknown;
1449
+ };
1450
+ content: {
1451
+ "application/json": components["schemas"]["ErrorResponse"] & {
1452
+ /** @enum {string} */
1453
+ code: "CustomerOutsideBusiness" | "EventNotBookable" | "EventStarted";
1454
+ };
1455
+ };
1456
+ };
1457
+ /** @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds */
1458
+ 429: {
1459
+ headers: {
1460
+ /** @description Seconds to wait before sending the request again */
1461
+ "Retry-After"?: number;
1462
+ [name: string]: unknown;
1463
+ };
1464
+ content: {
1465
+ "application/json": components["schemas"]["ErrorResponse"] & {
1466
+ /** @enum {string} */
1467
+ code: "RateLimited";
1468
+ };
1469
+ };
1470
+ };
1471
+ /** @description - `InternalError`: The engine failed unexpectedly */
1472
+ 500: {
1473
+ headers: {
1474
+ [name: string]: unknown;
1475
+ };
1476
+ content: {
1477
+ "application/json": components["schemas"]["ErrorResponse"] & {
1478
+ /** @enum {string} */
1479
+ code: "InternalError";
1480
+ };
1481
+ };
1482
+ };
1483
+ };
1484
+ };
1485
+ identityCustomerLogin: {
1486
+ parameters: {
1487
+ query?: never;
1488
+ header?: never;
1489
+ path?: never;
1490
+ cookie?: never;
1491
+ };
1492
+ requestBody: {
1493
+ content: {
1494
+ "application/json": {
1495
+ /** Format: uuid */
1496
+ challenge: string;
1497
+ code: string;
1498
+ };
1499
+ };
1500
+ };
1501
+ responses: {
1502
+ /** @description OK */
1503
+ 200: {
1504
+ headers: {
1505
+ [name: string]: unknown;
1506
+ };
1507
+ content: {
1508
+ "application/json": {
1509
+ /** Format: date-time */
1510
+ expiresAt: string;
1511
+ /** Format: uuid */
1512
+ sessionId: string;
1513
+ sessionToken: string;
1514
+ };
1515
+ };
1516
+ };
1517
+ /**
1518
+ * @description - `MalformedBody`: The JSON body cannot be parsed
1519
+ * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
1520
+ */
1521
+ 400: {
1522
+ headers: {
1523
+ [name: string]: unknown;
1524
+ };
1525
+ content: {
1526
+ "application/json": components["schemas"]["ValidationErrorResponse"] & {
1527
+ /** @enum {string} */
1528
+ code: "MalformedBody" | "ValidationFailed";
1529
+ };
1530
+ };
1531
+ };
1532
+ /**
1533
+ * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
1534
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
1535
+ */
1536
+ 401: {
1537
+ headers: {
1538
+ [name: string]: unknown;
1539
+ };
1540
+ content: {
1541
+ "application/json": components["schemas"]["ErrorResponse"] & {
1542
+ /** @enum {string} */
1543
+ code: "NotAuthenticated" | "SessionExpired";
1544
+ };
1545
+ };
1546
+ };
1547
+ /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
1548
+ 403: {
1549
+ headers: {
1550
+ [name: string]: unknown;
1551
+ };
1552
+ content: {
1553
+ "application/json": components["schemas"]["ErrorResponse"] & {
1554
+ /** @enum {string} */
1555
+ code: "NotAuthorized";
1556
+ };
1557
+ };
1558
+ };
1559
+ /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
1560
+ 413: {
1561
+ headers: {
1562
+ [name: string]: unknown;
1563
+ };
1564
+ content: {
1565
+ "application/json": components["schemas"]["ErrorResponse"] & {
1566
+ /** @enum {string} */
1567
+ code: "BodyTooLarge";
1568
+ };
1569
+ };
1570
+ };
1571
+ /** @description - `UnsupportedMediaType`: The body's content type is not `application/json` */
1572
+ 415: {
1573
+ headers: {
1574
+ [name: string]: unknown;
1575
+ };
1576
+ content: {
1577
+ "application/json": components["schemas"]["ErrorResponse"] & {
1578
+ /** @enum {string} */
1579
+ code: "UnsupportedMediaType";
1580
+ };
1581
+ };
1582
+ };
1583
+ /** @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds */
1584
+ 429: {
1585
+ headers: {
1586
+ /** @description Seconds to wait before sending the request again */
1587
+ "Retry-After"?: number;
1588
+ [name: string]: unknown;
1589
+ };
1590
+ content: {
1591
+ "application/json": components["schemas"]["ErrorResponse"] & {
1592
+ /** @enum {string} */
1593
+ code: "RateLimited";
1594
+ };
1595
+ };
1596
+ };
1597
+ /** @description - `InternalError`: The engine failed unexpectedly */
1598
+ 500: {
1599
+ headers: {
1600
+ [name: string]: unknown;
1601
+ };
1602
+ content: {
1603
+ "application/json": components["schemas"]["ErrorResponse"] & {
1604
+ /** @enum {string} */
1605
+ code: "InternalError";
1606
+ };
1607
+ };
1608
+ };
1609
+ };
1610
+ };
1611
+ identityInitiateLogin: {
1612
+ parameters: {
1613
+ query?: never;
1614
+ header?: never;
1615
+ path?: never;
1616
+ cookie?: never;
1617
+ };
1618
+ requestBody: {
1619
+ content: {
1620
+ "application/json": {
1621
+ phone: string;
1622
+ };
1623
+ };
1624
+ };
1625
+ responses: {
1626
+ /** @description OK */
1627
+ 200: {
1628
+ headers: {
1629
+ [name: string]: unknown;
1630
+ };
1631
+ content: {
1632
+ "application/json": {
1633
+ /** Format: uuid */
1634
+ challenge: string;
1635
+ /** Format: date-time */
1636
+ expiresAt: string;
1637
+ };
1638
+ };
1639
+ };
1640
+ /**
1641
+ * @description - `MalformedBody`: The JSON body cannot be parsed
1642
+ * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
1643
+ */
1644
+ 400: {
1645
+ headers: {
1646
+ [name: string]: unknown;
1647
+ };
1648
+ content: {
1649
+ "application/json": components["schemas"]["ValidationErrorResponse"] & {
1650
+ /** @enum {string} */
1651
+ code: "MalformedBody" | "ValidationFailed";
1652
+ };
1653
+ };
1654
+ };
1655
+ /**
1656
+ * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
1657
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
1658
+ */
1659
+ 401: {
1660
+ headers: {
1661
+ [name: string]: unknown;
1662
+ };
1663
+ content: {
1664
+ "application/json": components["schemas"]["ErrorResponse"] & {
1665
+ /** @enum {string} */
1666
+ code: "NotAuthenticated" | "SessionExpired";
1667
+ };
1668
+ };
1669
+ };
1670
+ /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
1671
+ 403: {
1672
+ headers: {
1673
+ [name: string]: unknown;
1674
+ };
1675
+ content: {
1676
+ "application/json": components["schemas"]["ErrorResponse"] & {
1677
+ /** @enum {string} */
1678
+ code: "NotAuthorized";
1679
+ };
1680
+ };
1681
+ };
1682
+ /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
1683
+ 413: {
1684
+ headers: {
1685
+ [name: string]: unknown;
1686
+ };
1687
+ content: {
1688
+ "application/json": components["schemas"]["ErrorResponse"] & {
1689
+ /** @enum {string} */
1690
+ code: "BodyTooLarge";
1691
+ };
1692
+ };
1693
+ };
1694
+ /** @description - `UnsupportedMediaType`: The body's content type is not `application/json` */
1695
+ 415: {
1696
+ headers: {
1697
+ [name: string]: unknown;
1698
+ };
1699
+ content: {
1700
+ "application/json": components["schemas"]["ErrorResponse"] & {
1701
+ /** @enum {string} */
1702
+ code: "UnsupportedMediaType";
1703
+ };
1704
+ };
1705
+ };
1706
+ /** @description - `PhoneDestinationNotAllowed`: SMS is not sent to this phone number's country */
1707
+ 422: {
1708
+ headers: {
1709
+ [name: string]: unknown;
1710
+ };
1711
+ content: {
1712
+ "application/json": components["schemas"]["ErrorResponse"] & {
1713
+ /** @enum {string} */
1714
+ code: "PhoneDestinationNotAllowed";
1715
+ };
1716
+ };
1717
+ };
1718
+ /**
1719
+ * @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds
1720
+ * - `TooManyChallenges`: Too many sign-in codes were sent to this number; retry after `Retry-After` seconds
1721
+ */
1722
+ 429: {
1723
+ headers: {
1724
+ /** @description Seconds to wait before sending the request again */
1725
+ "Retry-After"?: number;
1726
+ [name: string]: unknown;
1727
+ };
1728
+ content: {
1729
+ "application/json": components["schemas"]["ErrorResponse"] & {
1730
+ /** @enum {string} */
1731
+ code: "RateLimited" | "TooManyChallenges";
1732
+ };
1733
+ };
1734
+ };
1735
+ /** @description - `InternalError`: The engine failed unexpectedly */
1736
+ 500: {
1737
+ headers: {
1738
+ [name: string]: unknown;
1739
+ };
1740
+ content: {
1741
+ "application/json": components["schemas"]["ErrorResponse"] & {
1742
+ /** @enum {string} */
1743
+ code: "InternalError";
1744
+ };
1745
+ };
1746
+ };
1747
+ /**
1748
+ * @description - `SmsBudgetExhausted`: The client's hourly SMS budget is used up; retry after `Retry-After` seconds
1749
+ * - `SmsDeliveryUnavailable`: The SMS could not be confirmed as sent; retry after `Retry-After` seconds
1750
+ */
1751
+ 503: {
1752
+ headers: {
1753
+ /** @description Seconds to wait before sending the request again */
1754
+ "Retry-After"?: number;
1755
+ [name: string]: unknown;
1756
+ };
1757
+ content: {
1758
+ "application/json": components["schemas"]["ErrorResponse"] & {
1759
+ /** @enum {string} */
1760
+ code: "SmsBudgetExhausted" | "SmsDeliveryUnavailable";
1761
+ };
1762
+ };
1763
+ };
1764
+ };
1765
+ };
1766
+ identityInitiateRegistration: {
1767
+ parameters: {
1768
+ query?: never;
1769
+ header?: never;
1770
+ path?: never;
1771
+ cookie?: never;
1772
+ };
1773
+ requestBody: {
1774
+ content: {
1775
+ "application/json": {
1776
+ name: string;
1777
+ phone: string;
1778
+ };
1779
+ };
1780
+ };
1781
+ responses: {
1782
+ /** @description OK */
1783
+ 200: {
1784
+ headers: {
1785
+ [name: string]: unknown;
1786
+ };
1787
+ content: {
1788
+ "application/json": {
1789
+ /** Format: uuid */
1790
+ challenge: string;
1791
+ /** Format: date-time */
1792
+ expiresAt: string;
1793
+ };
1794
+ };
1795
+ };
1796
+ /**
1797
+ * @description - `MalformedBody`: The JSON body cannot be parsed
1798
+ * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
1799
+ */
1800
+ 400: {
1801
+ headers: {
1802
+ [name: string]: unknown;
1803
+ };
1804
+ content: {
1805
+ "application/json": components["schemas"]["ValidationErrorResponse"] & {
1806
+ /** @enum {string} */
1807
+ code: "MalformedBody" | "ValidationFailed";
1808
+ };
1809
+ };
1810
+ };
1811
+ /**
1812
+ * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
1813
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
1814
+ */
1815
+ 401: {
1816
+ headers: {
1817
+ [name: string]: unknown;
1818
+ };
1819
+ content: {
1820
+ "application/json": components["schemas"]["ErrorResponse"] & {
1821
+ /** @enum {string} */
1822
+ code: "NotAuthenticated" | "SessionExpired";
1823
+ };
1824
+ };
1825
+ };
1826
+ /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
1827
+ 403: {
1828
+ headers: {
1829
+ [name: string]: unknown;
1830
+ };
1831
+ content: {
1832
+ "application/json": components["schemas"]["ErrorResponse"] & {
1833
+ /** @enum {string} */
1834
+ code: "NotAuthorized";
1835
+ };
1836
+ };
1837
+ };
1838
+ /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
1839
+ 413: {
1840
+ headers: {
1841
+ [name: string]: unknown;
1842
+ };
1843
+ content: {
1844
+ "application/json": components["schemas"]["ErrorResponse"] & {
1845
+ /** @enum {string} */
1846
+ code: "BodyTooLarge";
1847
+ };
1848
+ };
1849
+ };
1850
+ /** @description - `UnsupportedMediaType`: The body's content type is not `application/json` */
1851
+ 415: {
1852
+ headers: {
1853
+ [name: string]: unknown;
1854
+ };
1855
+ content: {
1856
+ "application/json": components["schemas"]["ErrorResponse"] & {
1857
+ /** @enum {string} */
1858
+ code: "UnsupportedMediaType";
1859
+ };
1860
+ };
1861
+ };
1862
+ /** @description - `PhoneDestinationNotAllowed`: SMS is not sent to this phone number's country */
1863
+ 422: {
1864
+ headers: {
1865
+ [name: string]: unknown;
1866
+ };
1867
+ content: {
1868
+ "application/json": components["schemas"]["ErrorResponse"] & {
1869
+ /** @enum {string} */
1870
+ code: "PhoneDestinationNotAllowed";
1871
+ };
1872
+ };
1873
+ };
1874
+ /**
1875
+ * @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds
1876
+ * - `TooManyChallenges`: Too many sign-in codes were sent to this number; retry after `Retry-After` seconds
1877
+ */
1878
+ 429: {
1879
+ headers: {
1880
+ /** @description Seconds to wait before sending the request again */
1881
+ "Retry-After"?: number;
1882
+ [name: string]: unknown;
1883
+ };
1884
+ content: {
1885
+ "application/json": components["schemas"]["ErrorResponse"] & {
1886
+ /** @enum {string} */
1887
+ code: "RateLimited" | "TooManyChallenges";
1888
+ };
1889
+ };
1890
+ };
1891
+ /** @description - `InternalError`: The engine failed unexpectedly */
1892
+ 500: {
1893
+ headers: {
1894
+ [name: string]: unknown;
1895
+ };
1896
+ content: {
1897
+ "application/json": components["schemas"]["ErrorResponse"] & {
1898
+ /** @enum {string} */
1899
+ code: "InternalError";
1900
+ };
1901
+ };
1902
+ };
1903
+ /**
1904
+ * @description - `SmsBudgetExhausted`: The client's hourly SMS budget is used up; retry after `Retry-After` seconds
1905
+ * - `SmsDeliveryUnavailable`: The SMS could not be confirmed as sent; retry after `Retry-After` seconds
1906
+ */
1907
+ 503: {
1908
+ headers: {
1909
+ /** @description Seconds to wait before sending the request again */
1910
+ "Retry-After"?: number;
1911
+ [name: string]: unknown;
1912
+ };
1913
+ content: {
1914
+ "application/json": components["schemas"]["ErrorResponse"] & {
1915
+ /** @enum {string} */
1916
+ code: "SmsBudgetExhausted" | "SmsDeliveryUnavailable";
1917
+ };
1918
+ };
1919
+ };
1920
+ };
1921
+ };
1922
+ identityLogout: {
1923
+ parameters: {
1924
+ query?: never;
1925
+ header?: never;
1926
+ path?: never;
1927
+ cookie?: never;
1928
+ };
1929
+ requestBody: {
1930
+ content: {
1931
+ "application/json": {
1932
+ sessionToken: string;
1933
+ };
1934
+ };
1935
+ };
1936
+ responses: {
1937
+ /** @description OK */
1938
+ 200: {
1939
+ headers: {
1940
+ [name: string]: unknown;
1941
+ };
1942
+ content: {
1943
+ "application/json": {
1944
+ /** @enum {boolean} */
1945
+ revoked: true;
1946
+ };
1947
+ };
1948
+ };
1949
+ /**
1950
+ * @description - `MalformedBody`: The JSON body cannot be parsed
1951
+ * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
1952
+ */
1953
+ 400: {
1954
+ headers: {
1955
+ [name: string]: unknown;
1956
+ };
1957
+ content: {
1958
+ "application/json": components["schemas"]["ValidationErrorResponse"] & {
1959
+ /** @enum {string} */
1960
+ code: "MalformedBody" | "ValidationFailed";
1961
+ };
1962
+ };
1963
+ };
1964
+ /**
1965
+ * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
1966
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
1967
+ */
1968
+ 401: {
1969
+ headers: {
1970
+ [name: string]: unknown;
1971
+ };
1972
+ content: {
1973
+ "application/json": components["schemas"]["ErrorResponse"] & {
1974
+ /** @enum {string} */
1975
+ code: "NotAuthenticated" | "SessionExpired";
1976
+ };
1977
+ };
1978
+ };
1979
+ /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
1980
+ 403: {
1981
+ headers: {
1982
+ [name: string]: unknown;
1983
+ };
1984
+ content: {
1985
+ "application/json": components["schemas"]["ErrorResponse"] & {
1986
+ /** @enum {string} */
1987
+ code: "NotAuthorized";
1988
+ };
1989
+ };
1990
+ };
1991
+ /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
1992
+ 413: {
1993
+ headers: {
1994
+ [name: string]: unknown;
1995
+ };
1996
+ content: {
1997
+ "application/json": components["schemas"]["ErrorResponse"] & {
1998
+ /** @enum {string} */
1999
+ code: "BodyTooLarge";
2000
+ };
2001
+ };
2002
+ };
2003
+ /** @description - `UnsupportedMediaType`: The body's content type is not `application/json` */
2004
+ 415: {
2005
+ headers: {
2006
+ [name: string]: unknown;
2007
+ };
2008
+ content: {
2009
+ "application/json": components["schemas"]["ErrorResponse"] & {
2010
+ /** @enum {string} */
2011
+ code: "UnsupportedMediaType";
2012
+ };
2013
+ };
2014
+ };
2015
+ /** @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds */
2016
+ 429: {
2017
+ headers: {
2018
+ /** @description Seconds to wait before sending the request again */
2019
+ "Retry-After"?: number;
2020
+ [name: string]: unknown;
2021
+ };
2022
+ content: {
2023
+ "application/json": components["schemas"]["ErrorResponse"] & {
2024
+ /** @enum {string} */
2025
+ code: "RateLimited";
2026
+ };
2027
+ };
2028
+ };
2029
+ /** @description - `InternalError`: The engine failed unexpectedly */
2030
+ 500: {
2031
+ headers: {
2032
+ [name: string]: unknown;
2033
+ };
2034
+ content: {
2035
+ "application/json": components["schemas"]["ErrorResponse"] & {
2036
+ /** @enum {string} */
2037
+ code: "InternalError";
2038
+ };
2039
+ };
2040
+ };
2041
+ };
2042
+ };
2043
+ identityRegisterCustomer: {
2044
+ parameters: {
2045
+ query?: never;
2046
+ header?: never;
2047
+ path?: never;
2048
+ cookie?: never;
2049
+ };
2050
+ requestBody: {
2051
+ content: {
2052
+ "application/json": {
2053
+ /** Format: uuid */
2054
+ challenge: string;
2055
+ code: string;
2056
+ };
2057
+ };
2058
+ };
2059
+ responses: {
2060
+ /** @description OK */
2061
+ 200: {
2062
+ headers: {
2063
+ [name: string]: unknown;
2064
+ };
2065
+ content: {
2066
+ "application/json": {
2067
+ /** Format: date-time */
2068
+ expiresAt: string;
2069
+ /** Format: uuid */
2070
+ sessionId: string;
2071
+ sessionToken: string;
2072
+ };
2073
+ };
2074
+ };
2075
+ /**
2076
+ * @description - `MalformedBody`: The JSON body cannot be parsed
2077
+ * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
2078
+ */
2079
+ 400: {
2080
+ headers: {
2081
+ [name: string]: unknown;
2082
+ };
2083
+ content: {
2084
+ "application/json": components["schemas"]["ValidationErrorResponse"] & {
2085
+ /** @enum {string} */
2086
+ code: "MalformedBody" | "ValidationFailed";
2087
+ };
2088
+ };
2089
+ };
2090
+ /**
2091
+ * @description - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
2092
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
2093
+ */
2094
+ 401: {
2095
+ headers: {
2096
+ [name: string]: unknown;
2097
+ };
2098
+ content: {
2099
+ "application/json": components["schemas"]["ErrorResponse"] & {
2100
+ /** @enum {string} */
2101
+ code: "NotAuthenticated" | "SessionExpired";
2102
+ };
2103
+ };
2104
+ };
2105
+ /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
2106
+ 403: {
2107
+ headers: {
2108
+ [name: string]: unknown;
2109
+ };
2110
+ content: {
2111
+ "application/json": components["schemas"]["ErrorResponse"] & {
2112
+ /** @enum {string} */
2113
+ code: "NotAuthorized";
2114
+ };
2115
+ };
2116
+ };
2117
+ /** @description - `ActorUnavailable`: A live registered actor is required */
2118
+ 409: {
2119
+ headers: {
2120
+ [name: string]: unknown;
2121
+ };
2122
+ content: {
2123
+ "application/json": components["schemas"]["ErrorResponse"] & {
2124
+ /** @enum {string} */
2125
+ code: "ActorUnavailable";
2126
+ };
2127
+ };
2128
+ };
2129
+ /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
2130
+ 413: {
2131
+ headers: {
2132
+ [name: string]: unknown;
2133
+ };
2134
+ content: {
2135
+ "application/json": components["schemas"]["ErrorResponse"] & {
2136
+ /** @enum {string} */
2137
+ code: "BodyTooLarge";
2138
+ };
2139
+ };
2140
+ };
2141
+ /** @description - `UnsupportedMediaType`: The body's content type is not `application/json` */
2142
+ 415: {
2143
+ headers: {
2144
+ [name: string]: unknown;
2145
+ };
2146
+ content: {
2147
+ "application/json": components["schemas"]["ErrorResponse"] & {
2148
+ /** @enum {string} */
2149
+ code: "UnsupportedMediaType";
2150
+ };
2151
+ };
2152
+ };
2153
+ /** @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds */
2154
+ 429: {
2155
+ headers: {
2156
+ /** @description Seconds to wait before sending the request again */
2157
+ "Retry-After"?: number;
2158
+ [name: string]: unknown;
2159
+ };
2160
+ content: {
2161
+ "application/json": components["schemas"]["ErrorResponse"] & {
2162
+ /** @enum {string} */
2163
+ code: "RateLimited";
2164
+ };
2165
+ };
2166
+ };
2167
+ /** @description - `InternalError`: The engine failed unexpectedly */
2168
+ 500: {
2169
+ headers: {
2170
+ [name: string]: unknown;
2171
+ };
2172
+ content: {
2173
+ "application/json": components["schemas"]["ErrorResponse"] & {
2174
+ /** @enum {string} */
2175
+ code: "InternalError";
2176
+ };
2177
+ };
2178
+ };
2179
+ };
2180
+ };
2181
+ getMyDetails: {
2182
+ parameters: {
2183
+ query?: never;
2184
+ header?: never;
2185
+ path?: never;
2186
+ cookie?: never;
2187
+ };
2188
+ requestBody?: never;
2189
+ responses: {
2190
+ /** @description OK */
2191
+ 200: {
2192
+ headers: {
2193
+ [name: string]: unknown;
2194
+ };
2195
+ content: {
2196
+ "application/json": {
2197
+ /** Format: email */
2198
+ email: string | null;
2199
+ name: string;
2200
+ /** @description The newest verified phone; read-only */
2201
+ phone: string | null;
2202
+ };
2203
+ };
2204
+ };
2205
+ /**
2206
+ * @description - `CustomerSessionRequired`: The operation needs a customer's session
2207
+ * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
2208
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
2209
+ */
2210
+ 401: {
2211
+ headers: {
2212
+ [name: string]: unknown;
2213
+ };
2214
+ content: {
2215
+ "application/json": components["schemas"]["ErrorResponse"] & {
2216
+ /** @enum {string} */
2217
+ code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
2218
+ };
2219
+ };
2220
+ };
2221
+ /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
2222
+ 403: {
2223
+ headers: {
2224
+ [name: string]: unknown;
2225
+ };
2226
+ content: {
2227
+ "application/json": components["schemas"]["ErrorResponse"] & {
2228
+ /** @enum {string} */
2229
+ code: "NotAuthorized";
2230
+ };
2231
+ };
2232
+ };
2233
+ /** @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds */
2234
+ 429: {
2235
+ headers: {
2236
+ /** @description Seconds to wait before sending the request again */
2237
+ "Retry-After"?: number;
2238
+ [name: string]: unknown;
2239
+ };
2240
+ content: {
2241
+ "application/json": components["schemas"]["ErrorResponse"] & {
2242
+ /** @enum {string} */
2243
+ code: "RateLimited";
2244
+ };
2245
+ };
2246
+ };
2247
+ /** @description - `InternalError`: The engine failed unexpectedly */
2248
+ 500: {
2249
+ headers: {
2250
+ [name: string]: unknown;
2251
+ };
2252
+ content: {
2253
+ "application/json": components["schemas"]["ErrorResponse"] & {
2254
+ /** @enum {string} */
2255
+ code: "InternalError";
2256
+ };
2257
+ };
2258
+ };
2259
+ };
2260
+ };
2261
+ updateMyName: {
2262
+ parameters: {
2263
+ query?: never;
2264
+ header?: never;
2265
+ path?: never;
2266
+ cookie?: never;
2267
+ };
2268
+ requestBody: {
2269
+ content: {
2270
+ "application/json": {
2271
+ name: string;
2272
+ };
2273
+ };
2274
+ };
2275
+ responses: {
2276
+ /** @description OK */
2277
+ 200: {
2278
+ headers: {
2279
+ [name: string]: unknown;
2280
+ };
2281
+ content: {
2282
+ "application/json": {
2283
+ /** Format: email */
2284
+ email: string | null;
2285
+ name: string;
2286
+ /** @description The newest verified phone; read-only */
2287
+ phone: string | null;
2288
+ };
2289
+ };
2290
+ };
2291
+ /**
2292
+ * @description - `MalformedBody`: The JSON body cannot be parsed
2293
+ * - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path
2294
+ */
2295
+ 400: {
2296
+ headers: {
2297
+ [name: string]: unknown;
2298
+ };
2299
+ content: {
2300
+ "application/json": components["schemas"]["ValidationErrorResponse"] & {
2301
+ /** @enum {string} */
2302
+ code: "MalformedBody" | "ValidationFailed";
2303
+ };
2304
+ };
2305
+ };
2306
+ /**
2307
+ * @description - `CustomerSessionRequired`: The operation needs a customer's session
2308
+ * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
2309
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
2310
+ */
2311
+ 401: {
2312
+ headers: {
2313
+ [name: string]: unknown;
2314
+ };
2315
+ content: {
2316
+ "application/json": components["schemas"]["ErrorResponse"] & {
2317
+ /** @enum {string} */
2318
+ code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
2319
+ };
2320
+ };
2321
+ };
2322
+ /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
2323
+ 403: {
2324
+ headers: {
2325
+ [name: string]: unknown;
2326
+ };
2327
+ content: {
2328
+ "application/json": components["schemas"]["ErrorResponse"] & {
2329
+ /** @enum {string} */
2330
+ code: "NotAuthorized";
2331
+ };
2332
+ };
2333
+ };
2334
+ /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
2335
+ 413: {
2336
+ headers: {
2337
+ [name: string]: unknown;
2338
+ };
2339
+ content: {
2340
+ "application/json": components["schemas"]["ErrorResponse"] & {
2341
+ /** @enum {string} */
2342
+ code: "BodyTooLarge";
2343
+ };
2344
+ };
2345
+ };
2346
+ /** @description - `UnsupportedMediaType`: The body's content type is not `application/json` */
2347
+ 415: {
2348
+ headers: {
2349
+ [name: string]: unknown;
2350
+ };
2351
+ content: {
2352
+ "application/json": components["schemas"]["ErrorResponse"] & {
2353
+ /** @enum {string} */
2354
+ code: "UnsupportedMediaType";
2355
+ };
2356
+ };
2357
+ };
2358
+ /** @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds */
2359
+ 429: {
2360
+ headers: {
2361
+ /** @description Seconds to wait before sending the request again */
2362
+ "Retry-After"?: number;
2363
+ [name: string]: unknown;
2364
+ };
2365
+ content: {
2366
+ "application/json": components["schemas"]["ErrorResponse"] & {
2367
+ /** @enum {string} */
2368
+ code: "RateLimited";
2369
+ };
2370
+ };
2371
+ };
2372
+ /** @description - `InternalError`: The engine failed unexpectedly */
2373
+ 500: {
2374
+ headers: {
2375
+ [name: string]: unknown;
2376
+ };
2377
+ content: {
2378
+ "application/json": components["schemas"]["ErrorResponse"] & {
2379
+ /** @enum {string} */
2380
+ code: "InternalError";
2381
+ };
2382
+ };
2383
+ };
2384
+ };
2385
+ };
2386
+ listOwnBookings: {
2387
+ parameters: {
2388
+ query?: {
2389
+ cursor?: string;
2390
+ limit?: number;
2391
+ period?: "upcoming" | "past";
2392
+ };
2393
+ header?: never;
2394
+ path?: never;
2395
+ cookie?: never;
2396
+ };
2397
+ requestBody?: never;
2398
+ responses: {
2399
+ /** @description OK */
2400
+ 200: {
2401
+ headers: {
2402
+ [name: string]: unknown;
2403
+ };
2404
+ content: {
2405
+ "application/json": {
2406
+ items: {
2407
+ /** @enum {string|null} */
2408
+ attendance: "attended" | "no_show" | null;
2409
+ /** Format: date-time */
2410
+ attendanceRecordedAt: string | null;
2411
+ /** Format: uuid */
2412
+ businessId: string;
2413
+ /** @description The business's catalogue name */
2414
+ businessName: string;
2415
+ /**
2416
+ * Format: date-time
2417
+ * @description The customer may cancel until the event's start; null once the booking is cancelled. Once the event has started this is in the past, so compare it with now
2418
+ */
2419
+ cancellableUntil: string | null;
2420
+ cancellationCutoffMinutes: number | null;
2421
+ /** @enum {string|null} */
2422
+ cancellationKind: "customer" | "business" | "on_behalf" | null;
2423
+ /** Format: date-time */
2424
+ cancelledAt: string | null;
2425
+ cancelledLate: boolean | null;
2426
+ /** Format: date-time */
2427
+ createdAt: string;
2428
+ /** Format: uuid */
2429
+ creditMembershipId: string | null;
2430
+ /** Format: date-time */
2431
+ creditRestoredAt: string | null;
2432
+ event: {
2433
+ /** Format: date-time */
2434
+ endsAt: string;
2435
+ /** Format: uuid */
2436
+ eventTypeId: string | null;
2437
+ eventTypeName: string | null;
2438
+ /** Format: date-time */
2439
+ startsAt: string;
2440
+ };
2441
+ /** Format: uuid */
2442
+ eventId: string;
2443
+ /** Format: uuid */
2444
+ id: string;
2445
+ /**
2446
+ * Format: date-time
2447
+ * @description A cancellation from this time is late: the event's start minus the booking's cutoff; null without a cutoff or once cancelled
2448
+ */
2449
+ lateCancellationFrom: string | null;
2450
+ /** @enum {string} */
2451
+ status: "confirmed" | "cancelled";
2452
+ }[];
2453
+ nextCursor: string | null;
2454
+ };
2455
+ };
2456
+ };
2457
+ /** @description - `ValidationFailed`: The path, query or body does not match the operation's schema; `issues` lists each problem with its path */
2458
+ 400: {
2459
+ headers: {
2460
+ [name: string]: unknown;
2461
+ };
2462
+ content: {
2463
+ "application/json": components["schemas"]["ValidationErrorResponse"] & {
2464
+ /** @enum {string} */
2465
+ code: "ValidationFailed";
2466
+ };
2467
+ };
2468
+ };
2469
+ /**
2470
+ * @description - `CustomerSessionRequired`: The operation needs a customer's session
2471
+ * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
2472
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
2473
+ */
2474
+ 401: {
2475
+ headers: {
2476
+ [name: string]: unknown;
2477
+ };
2478
+ content: {
2479
+ "application/json": components["schemas"]["ErrorResponse"] & {
2480
+ /** @enum {string} */
2481
+ code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
2482
+ };
2483
+ };
2484
+ };
2485
+ /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
2486
+ 403: {
2487
+ headers: {
2488
+ [name: string]: unknown;
2489
+ };
2490
+ content: {
2491
+ "application/json": components["schemas"]["ErrorResponse"] & {
2492
+ /** @enum {string} */
2493
+ code: "NotAuthorized";
2494
+ };
2495
+ };
2496
+ };
2497
+ /** @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds */
2498
+ 429: {
2499
+ headers: {
2500
+ /** @description Seconds to wait before sending the request again */
2501
+ "Retry-After"?: number;
2502
+ [name: string]: unknown;
2503
+ };
2504
+ content: {
2505
+ "application/json": components["schemas"]["ErrorResponse"] & {
2506
+ /** @enum {string} */
2507
+ code: "RateLimited";
2508
+ };
2509
+ };
2510
+ };
2511
+ /** @description - `InternalError`: The engine failed unexpectedly */
2512
+ 500: {
2513
+ headers: {
2514
+ [name: string]: unknown;
2515
+ };
2516
+ content: {
2517
+ "application/json": components["schemas"]["ErrorResponse"] & {
2518
+ /** @enum {string} */
2519
+ code: "InternalError";
2520
+ };
2521
+ };
2522
+ };
2523
+ };
2524
+ };
2525
+ listMyMemberships: {
2526
+ parameters: {
2527
+ query?: never;
2528
+ header?: never;
2529
+ path?: never;
2530
+ cookie?: never;
2531
+ };
2532
+ requestBody?: never;
2533
+ responses: {
2534
+ /** @description OK */
2535
+ 200: {
2536
+ headers: {
2537
+ [name: string]: unknown;
2538
+ };
2539
+ content: {
2540
+ "application/json": {
2541
+ /** Format: uuid */
2542
+ businessId: string;
2543
+ /** @description Credits not yet spent: the total minus bookings whose credit was not given back; null is unlimited */
2544
+ creditsRemaining: number | null;
2545
+ creditsTotal: number | null;
2546
+ displayName: string;
2547
+ /** Format: uuid */
2548
+ id: string;
2549
+ /** Format: date-time */
2550
+ validFrom: string;
2551
+ /** Format: date-time */
2552
+ validUntil: string | null;
2553
+ }[];
2554
+ };
2555
+ };
2556
+ /**
2557
+ * @description - `CustomerSessionRequired`: The operation needs a customer's session
2558
+ * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
2559
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
2560
+ */
2561
+ 401: {
2562
+ headers: {
2563
+ [name: string]: unknown;
2564
+ };
2565
+ content: {
2566
+ "application/json": components["schemas"]["ErrorResponse"] & {
2567
+ /** @enum {string} */
2568
+ code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
2569
+ };
2570
+ };
2571
+ };
2572
+ /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
2573
+ 403: {
2574
+ headers: {
2575
+ [name: string]: unknown;
2576
+ };
2577
+ content: {
2578
+ "application/json": components["schemas"]["ErrorResponse"] & {
2579
+ /** @enum {string} */
2580
+ code: "NotAuthorized";
2581
+ };
2582
+ };
2583
+ };
2584
+ /** @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds */
2585
+ 429: {
2586
+ headers: {
2587
+ /** @description Seconds to wait before sending the request again */
2588
+ "Retry-After"?: number;
2589
+ [name: string]: unknown;
2590
+ };
2591
+ content: {
2592
+ "application/json": components["schemas"]["ErrorResponse"] & {
2593
+ /** @enum {string} */
2594
+ code: "RateLimited";
2595
+ };
2596
+ };
2597
+ };
2598
+ /** @description - `InternalError`: The engine failed unexpectedly */
2599
+ 500: {
2600
+ headers: {
2601
+ [name: string]: unknown;
2602
+ };
2603
+ content: {
2604
+ "application/json": components["schemas"]["ErrorResponse"] & {
2605
+ /** @enum {string} */
2606
+ code: "InternalError";
2607
+ };
2608
+ };
2609
+ };
2610
+ };
2611
+ };
2612
+ signOutEverywhere: {
2613
+ parameters: {
2614
+ query?: never;
2615
+ header?: never;
2616
+ path?: never;
2617
+ cookie?: never;
2618
+ };
2619
+ requestBody?: never;
2620
+ responses: {
2621
+ /** @description OK */
2622
+ 200: {
2623
+ headers: {
2624
+ [name: string]: unknown;
2625
+ };
2626
+ content: {
2627
+ "application/json": {
2628
+ revokedSessions: number;
2629
+ };
2630
+ };
2631
+ };
2632
+ /** @description - `MalformedBody`: The JSON body cannot be parsed */
2633
+ 400: {
2634
+ headers: {
2635
+ [name: string]: unknown;
2636
+ };
2637
+ content: {
2638
+ "application/json": components["schemas"]["ErrorResponse"] & {
2639
+ /** @enum {string} */
2640
+ code: "MalformedBody";
2641
+ };
2642
+ };
2643
+ };
2644
+ /**
2645
+ * @description - `CustomerSessionRequired`: The operation needs a customer's session
2646
+ * - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
2647
+ * - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
2648
+ */
2649
+ 401: {
2650
+ headers: {
2651
+ [name: string]: unknown;
2652
+ };
2653
+ content: {
2654
+ "application/json": components["schemas"]["ErrorResponse"] & {
2655
+ /** @enum {string} */
2656
+ code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
2657
+ };
2658
+ };
2659
+ };
2660
+ /** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
2661
+ 403: {
2662
+ headers: {
2663
+ [name: string]: unknown;
2664
+ };
2665
+ content: {
2666
+ "application/json": components["schemas"]["ErrorResponse"] & {
2667
+ /** @enum {string} */
2668
+ code: "NotAuthorized";
2669
+ };
2670
+ };
2671
+ };
2672
+ /** @description - `BodyTooLarge`: The body is larger than the engine accepts */
2673
+ 413: {
2674
+ headers: {
2675
+ [name: string]: unknown;
2676
+ };
2677
+ content: {
2678
+ "application/json": components["schemas"]["ErrorResponse"] & {
2679
+ /** @enum {string} */
2680
+ code: "BodyTooLarge";
2681
+ };
2682
+ };
2683
+ };
2684
+ /** @description - `UnsupportedMediaType`: The body's content type is not `application/json` */
2685
+ 415: {
2686
+ headers: {
2687
+ [name: string]: unknown;
2688
+ };
2689
+ content: {
2690
+ "application/json": components["schemas"]["ErrorResponse"] & {
2691
+ /** @enum {string} */
2692
+ code: "UnsupportedMediaType";
2693
+ };
2694
+ };
2695
+ };
2696
+ /** @description - `RateLimited`: The load balancer's rate limit refused the request; retry after `Retry-After` seconds */
2697
+ 429: {
2698
+ headers: {
2699
+ /** @description Seconds to wait before sending the request again */
2700
+ "Retry-After"?: number;
2701
+ [name: string]: unknown;
2702
+ };
2703
+ content: {
2704
+ "application/json": components["schemas"]["ErrorResponse"] & {
2705
+ /** @enum {string} */
2706
+ code: "RateLimited";
2707
+ };
2708
+ };
2709
+ };
2710
+ /** @description - `InternalError`: The engine failed unexpectedly */
2711
+ 500: {
2712
+ headers: {
2713
+ [name: string]: unknown;
2714
+ };
2715
+ content: {
2716
+ "application/json": components["schemas"]["ErrorResponse"] & {
2717
+ /** @enum {string} */
2718
+ code: "InternalError";
2719
+ };
2720
+ };
2721
+ };
2722
+ };
2723
+ };
2724
+ }