@swishapp/api-client 0.43.1-next.0 → 0.44.0-unstable.20260203181536

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.
Files changed (65) hide show
  1. package/README.md +56 -0
  2. package/dist/{client.d.ts → 2026-01/client.d.ts} +1 -1
  3. package/dist/2026-01/index.d.ts +3 -0
  4. package/dist/2026-01/index.js +7 -0
  5. package/dist/{openapi → 2026-01/openapi}/client/index.d.ts +2 -1
  6. package/dist/{openapi → 2026-01/openapi}/client/types.gen.d.ts +2 -9
  7. package/dist/{openapi → 2026-01/openapi}/client/utils.gen.d.ts +1 -1
  8. package/dist/{openapi → 2026-01/openapi}/core/bodySerializer.gen.d.ts +12 -4
  9. package/dist/{openapi → 2026-01/openapi}/core/params.gen.d.ts +10 -0
  10. package/dist/2026-01/openapi/core/queryKeySerializer.gen.d.ts +18 -0
  11. package/dist/2026-01/openapi/index.d.ts +2 -0
  12. package/dist/{openapi → 2026-01/openapi}/sdk.gen.d.ts +1 -0
  13. package/dist/{openapi → 2026-01/openapi}/types.gen.d.ts +7 -97
  14. package/dist/{types.d.ts → 2026-01/types.d.ts} +1 -2
  15. package/dist/2026-04/client.d.ts +74 -0
  16. package/dist/2026-04/index.d.ts +3 -0
  17. package/dist/2026-04/index.js +7 -0
  18. package/dist/2026-04/openapi/client/client.gen.d.ts +2 -0
  19. package/dist/2026-04/openapi/client/index.d.ts +8 -0
  20. package/dist/2026-04/openapi/client/types.gen.d.ts +117 -0
  21. package/dist/2026-04/openapi/client/utils.gen.d.ts +33 -0
  22. package/dist/2026-04/openapi/client.gen.d.ts +12 -0
  23. package/dist/2026-04/openapi/core/auth.gen.d.ts +18 -0
  24. package/dist/2026-04/openapi/core/bodySerializer.gen.d.ts +25 -0
  25. package/dist/2026-04/openapi/core/params.gen.d.ts +43 -0
  26. package/dist/2026-04/openapi/core/pathSerializer.gen.d.ts +33 -0
  27. package/dist/2026-04/openapi/core/queryKeySerializer.gen.d.ts +18 -0
  28. package/dist/2026-04/openapi/core/serverSentEvents.gen.d.ts +71 -0
  29. package/dist/2026-04/openapi/core/types.gen.d.ts +78 -0
  30. package/dist/2026-04/openapi/core/utils.gen.d.ts +19 -0
  31. package/dist/2026-04/openapi/index.d.ts +2 -0
  32. package/dist/2026-04/openapi/sdk.gen.d.ts +60 -0
  33. package/dist/2026-04/openapi/types.gen.d.ts +3335 -0
  34. package/dist/2026-04/types.d.ts +60 -0
  35. package/dist/index.d.ts +1 -3
  36. package/dist/index.js +6 -4
  37. package/dist/unstable/client.d.ts +74 -0
  38. package/dist/unstable/index.d.ts +3 -0
  39. package/dist/unstable/index.js +7 -0
  40. package/dist/unstable/openapi/client/client.gen.d.ts +2 -0
  41. package/dist/unstable/openapi/client/index.d.ts +8 -0
  42. package/dist/unstable/openapi/client/types.gen.d.ts +117 -0
  43. package/dist/unstable/openapi/client/utils.gen.d.ts +33 -0
  44. package/dist/unstable/openapi/client.gen.d.ts +12 -0
  45. package/dist/unstable/openapi/core/auth.gen.d.ts +18 -0
  46. package/dist/unstable/openapi/core/bodySerializer.gen.d.ts +25 -0
  47. package/dist/unstable/openapi/core/params.gen.d.ts +43 -0
  48. package/dist/unstable/openapi/core/pathSerializer.gen.d.ts +33 -0
  49. package/dist/unstable/openapi/core/queryKeySerializer.gen.d.ts +18 -0
  50. package/dist/unstable/openapi/core/serverSentEvents.gen.d.ts +71 -0
  51. package/dist/unstable/openapi/core/types.gen.d.ts +78 -0
  52. package/dist/unstable/openapi/core/utils.gen.d.ts +19 -0
  53. package/dist/unstable/openapi/index.d.ts +2 -0
  54. package/dist/unstable/openapi/sdk.gen.d.ts +60 -0
  55. package/dist/unstable/openapi/types.gen.d.ts +3335 -0
  56. package/dist/unstable/types.d.ts +60 -0
  57. package/package.json +44 -9
  58. package/dist/openapi/index.d.ts +0 -2
  59. /package/dist/{openapi → 2026-01/openapi}/client/client.gen.d.ts +0 -0
  60. /package/dist/{openapi → 2026-01/openapi}/client.gen.d.ts +0 -0
  61. /package/dist/{openapi → 2026-01/openapi}/core/auth.gen.d.ts +0 -0
  62. /package/dist/{openapi → 2026-01/openapi}/core/pathSerializer.gen.d.ts +0 -0
  63. /package/dist/{openapi → 2026-01/openapi}/core/serverSentEvents.gen.d.ts +0 -0
  64. /package/dist/{openapi → 2026-01/openapi}/core/types.gen.d.ts +0 -0
  65. /package/dist/{openapi → 2026-01/openapi}/core/utils.gen.d.ts +0 -0
@@ -0,0 +1,3335 @@
1
+ export type ClientOptions = {
2
+ baseUrl: 'https://swish.app/api/2026-04' | (string & {});
3
+ };
4
+ export type CreateItemInput = {
5
+ /**
6
+ * The Shopify ID of the product
7
+ */
8
+ productId: number;
9
+ /**
10
+ * The Shopify ID of the variant
11
+ */
12
+ variantId?: number;
13
+ /**
14
+ * The quantity of the item
15
+ */
16
+ quantity?: number;
17
+ /**
18
+ * Tags associated with the item (must contain only lowercase letters, numbers, hyphens or underscores)
19
+ */
20
+ tags?: Array<string>;
21
+ };
22
+ export type PreviewImageDto = {
23
+ /**
24
+ * Unique identifier for the image
25
+ */
26
+ id: string;
27
+ /**
28
+ * Alt text for the image
29
+ */
30
+ altText: string;
31
+ /**
32
+ * URL of the image
33
+ */
34
+ url: string;
35
+ /**
36
+ * Thumbhash for the image
37
+ */
38
+ thumbhash: string;
39
+ };
40
+ export type ListDetail = {
41
+ /**
42
+ * The ID of the list
43
+ */
44
+ id: string;
45
+ /**
46
+ * The name of the list
47
+ */
48
+ name: string;
49
+ /**
50
+ * The date and time the list was created
51
+ */
52
+ createdAt: string;
53
+ /**
54
+ * The date and time the list was updated
55
+ */
56
+ updatedAt: string;
57
+ /**
58
+ * The access level of the list
59
+ */
60
+ access: 'private' | 'public';
61
+ /**
62
+ * The number of items in the list
63
+ */
64
+ itemCount: number;
65
+ /**
66
+ * Array of image URLs for the first 4 items in the list
67
+ */
68
+ imageUrls: Array<string>;
69
+ /**
70
+ * Array of preview image objects for the first 4 items in the list
71
+ */
72
+ previewImages: Array<PreviewImageDto>;
73
+ /**
74
+ * Array of item IDs in the list
75
+ */
76
+ itemIds: Array<string>;
77
+ };
78
+ export type List = {
79
+ /**
80
+ * The ID of the list
81
+ */
82
+ id: string;
83
+ /**
84
+ * The name of the list
85
+ */
86
+ name: string;
87
+ /**
88
+ * The date and time the list was created
89
+ */
90
+ createdAt: string;
91
+ /**
92
+ * The date and time the list was updated
93
+ */
94
+ updatedAt: string;
95
+ /**
96
+ * The access level of the list
97
+ */
98
+ access: 'private' | 'public';
99
+ };
100
+ export type Error = {
101
+ /**
102
+ * The error message
103
+ */
104
+ message: string;
105
+ /**
106
+ * The error type
107
+ */
108
+ error: string;
109
+ /**
110
+ * The HTTP status code of the error
111
+ */
112
+ statusCode: number;
113
+ /**
114
+ * The ID of the request that caused the error
115
+ */
116
+ requestId: string;
117
+ };
118
+ export type ErrorResponse = {
119
+ /**
120
+ * Error details
121
+ */
122
+ error: Error;
123
+ };
124
+ export type PageInfo = {
125
+ /**
126
+ * The cursor for the next page
127
+ */
128
+ next: string | null;
129
+ /**
130
+ * The cursor for the previous page
131
+ */
132
+ previous: string | null;
133
+ /**
134
+ * The total number of items across all pages
135
+ */
136
+ totalCount: number;
137
+ };
138
+ export type PaginatedResponse = {
139
+ pageInfo: PageInfo;
140
+ };
141
+ export type Response = {
142
+ [key: string]: unknown;
143
+ };
144
+ export type CreateListInput = {
145
+ /**
146
+ * The name of the list
147
+ */
148
+ name: string;
149
+ /**
150
+ * Items to add to the list when creating it
151
+ */
152
+ items?: Array<CreateItemInput>;
153
+ };
154
+ export type UpdateListInput = {
155
+ /**
156
+ * The name of the list
157
+ */
158
+ name?: string;
159
+ /**
160
+ * The access level of the list
161
+ */
162
+ access?: 'private' | 'public';
163
+ };
164
+ export type SetListItemsOrderInput = {
165
+ /**
166
+ * The list of item IDs to reorder
167
+ */
168
+ itemIds: Array<string>;
169
+ };
170
+ export type AddItemsToListInput = {
171
+ /**
172
+ * The list of item IDs to add to the list
173
+ */
174
+ itemIds: Array<string>;
175
+ };
176
+ export type ItemCount = {
177
+ /**
178
+ * The total number of items
179
+ */
180
+ count: number;
181
+ };
182
+ export type ItemDetail = {
183
+ /**
184
+ * The ID of the item
185
+ */
186
+ id: string;
187
+ /**
188
+ * The Shopify ID of the product
189
+ */
190
+ productId: number;
191
+ /**
192
+ * The Shopify ID of the variant
193
+ */
194
+ variantId: number | null;
195
+ /**
196
+ * The quantity of the item in the list
197
+ */
198
+ quantity: number;
199
+ /**
200
+ * The date and time the item was created
201
+ */
202
+ createdAt: string;
203
+ /**
204
+ * The date and time the item was updated
205
+ */
206
+ updatedAt: string;
207
+ /**
208
+ * The list IDs the item is associated with
209
+ */
210
+ listIds: Array<string>;
211
+ };
212
+ export type RecentlyViewed = {
213
+ /**
214
+ * The ID of the recently viewed record
215
+ */
216
+ id: string;
217
+ /**
218
+ * The Shopify product ID (numeric string)
219
+ */
220
+ productId: string;
221
+ /**
222
+ * The Shopify variant ID
223
+ */
224
+ variantId: {
225
+ [key: string]: unknown;
226
+ } | null;
227
+ /**
228
+ * When this product was first viewed by the profile
229
+ */
230
+ firstViewedAt: string;
231
+ /**
232
+ * When this product was last viewed
233
+ */
234
+ lastViewedAt: string;
235
+ /**
236
+ * Number of times this product was viewed
237
+ */
238
+ viewCount: number;
239
+ /**
240
+ * Market context
241
+ */
242
+ market: {
243
+ [key: string]: unknown;
244
+ } | null;
245
+ /**
246
+ * Country context
247
+ */
248
+ country: {
249
+ [key: string]: unknown;
250
+ } | null;
251
+ /**
252
+ * Language context
253
+ */
254
+ language: {
255
+ [key: string]: unknown;
256
+ } | null;
257
+ };
258
+ export type Item = {
259
+ /**
260
+ * The ID of the item
261
+ */
262
+ id: string;
263
+ /**
264
+ * The Shopify ID of the product
265
+ */
266
+ productId: number;
267
+ /**
268
+ * The Shopify ID of the variant
269
+ */
270
+ variantId: number | null;
271
+ /**
272
+ * The quantity of the item in the list
273
+ */
274
+ quantity: number;
275
+ /**
276
+ * The date and time the item was created
277
+ */
278
+ createdAt: string;
279
+ /**
280
+ * The date and time the item was updated
281
+ */
282
+ updatedAt: string;
283
+ };
284
+ export type ItemReference = {
285
+ /**
286
+ * The ID of the item
287
+ */
288
+ id: string;
289
+ };
290
+ export type DeleteItemsInput = {
291
+ itemIds: Array<ItemReference>;
292
+ };
293
+ export type UpdateItemInput = {
294
+ /**
295
+ * The Shopify ID of the product
296
+ */
297
+ productId?: number;
298
+ /**
299
+ * The Shopify ID of the variant
300
+ */
301
+ variantId?: number;
302
+ /**
303
+ * The quantity of the item
304
+ */
305
+ quantity?: number;
306
+ };
307
+ export type SetItemListsInput = {
308
+ /**
309
+ * The ID of the item to set the lists for
310
+ */
311
+ listIds: Array<string>;
312
+ };
313
+ export type NotificationSettings = {
314
+ /**
315
+ * Price drop notifications enabled
316
+ */
317
+ priceDrop: boolean;
318
+ /**
319
+ * Back in stock notifications enabled
320
+ */
321
+ backInStock: boolean;
322
+ /**
323
+ * Low in stock notifications enabled
324
+ */
325
+ lowInStock: boolean;
326
+ };
327
+ export type MarketingConsent = {
328
+ /**
329
+ * Email marketing consent
330
+ */
331
+ email?: boolean;
332
+ /**
333
+ * Phone marketing consent
334
+ */
335
+ phone?: boolean;
336
+ };
337
+ export type UpdateProfileInput = {
338
+ /**
339
+ * About text (metafield)
340
+ */
341
+ about?: string;
342
+ /**
343
+ * Notification preferences (metafield)
344
+ */
345
+ notifications?: NotificationSettings;
346
+ /**
347
+ * Marketing consent preferences
348
+ */
349
+ marketingConsent?: MarketingConsent;
350
+ };
351
+ export type Profile = {
352
+ /**
353
+ * The customer GID
354
+ */
355
+ id: string;
356
+ /**
357
+ * Display name (defaults to customer name from Shopify)
358
+ */
359
+ displayName: string;
360
+ /**
361
+ * Email address (nullable)
362
+ */
363
+ email?: {
364
+ [key: string]: unknown;
365
+ } | null;
366
+ /**
367
+ * About text
368
+ */
369
+ about: string;
370
+ /**
371
+ * Notification preferences
372
+ */
373
+ notifications: NotificationSettings;
374
+ /**
375
+ * Marketing consent preferences
376
+ */
377
+ marketingConsent: MarketingConsent;
378
+ };
379
+ export type CreateProfileTokenResult = {
380
+ /**
381
+ * A Swish API token for the profile
382
+ */
383
+ token: string;
384
+ /**
385
+ * The profile associated with the token
386
+ */
387
+ profile: string;
388
+ };
389
+ export type IdentifyProfileInput = {
390
+ /**
391
+ * The email of the profile to identify
392
+ */
393
+ email: string;
394
+ /**
395
+ * The phone number of the profile to identify
396
+ */
397
+ phone: string;
398
+ };
399
+ export type CreateProfileTokenInput = {
400
+ /**
401
+ * A customer GID to create a token for.
402
+ */
403
+ customer?: string;
404
+ /**
405
+ * A session GID to link to the customer.
406
+ */
407
+ session?: string;
408
+ };
409
+ export type Analytics = {
410
+ /**
411
+ * The timeframe for this data point (e.g., "2024-01-01 - 2024-01-10")
412
+ */
413
+ timeframe: string;
414
+ /**
415
+ * Total number of events for this timeframe
416
+ */
417
+ total: number;
418
+ };
419
+ export type TrackingEventRequestDto = {
420
+ [key: string]: unknown;
421
+ };
422
+ export type ProductVariantDto = {
423
+ /**
424
+ * The product variant ID
425
+ */
426
+ id: string;
427
+ /**
428
+ * The product variant title
429
+ */
430
+ title: string;
431
+ /**
432
+ * Whether the product variant is available for sale
433
+ */
434
+ availableForSale: boolean;
435
+ /**
436
+ * The image of the variant
437
+ */
438
+ image: PreviewImageDto | null;
439
+ };
440
+ export type ProductDto = {
441
+ /**
442
+ * The product ID
443
+ */
444
+ id: string;
445
+ /**
446
+ * The product title
447
+ */
448
+ title: string;
449
+ };
450
+ export type Money = {
451
+ /**
452
+ * The currency code
453
+ */
454
+ currencyCode: string;
455
+ /**
456
+ * The amount
457
+ */
458
+ amount: number;
459
+ };
460
+ export type OrderLineItem = {
461
+ /**
462
+ * The order line item ID
463
+ */
464
+ id: string;
465
+ /**
466
+ * The title of the product combined with title of the variant.
467
+ */
468
+ title: string;
469
+ /**
470
+ * The product variant associated to the line item.
471
+ */
472
+ variant: ProductVariantDto | null;
473
+ /**
474
+ * The product associated with the line item.
475
+ */
476
+ product: ProductDto | null;
477
+ /**
478
+ * The quantity of items in the line item
479
+ */
480
+ quantity: number;
481
+ /**
482
+ * The original total price for this order item
483
+ */
484
+ originalTotalPrice: Money;
485
+ /**
486
+ * Whether the line item requires shipping
487
+ */
488
+ requiresShipping: boolean;
489
+ /**
490
+ * The unfulfilled quantity of the line item
491
+ */
492
+ unfulfilledQuantity: number;
493
+ };
494
+ export type TrackingInfo = {
495
+ /**
496
+ * The tracking company
497
+ */
498
+ company: {
499
+ [key: string]: unknown;
500
+ };
501
+ /**
502
+ * The tracking number
503
+ */
504
+ number: {
505
+ [key: string]: unknown;
506
+ };
507
+ /**
508
+ * The tracking URL
509
+ */
510
+ url: {
511
+ [key: string]: unknown;
512
+ };
513
+ };
514
+ export type Fulfillment = {
515
+ /**
516
+ * The fulfillment ID
517
+ */
518
+ id: string;
519
+ /**
520
+ * The date and time when the fulfillment was delivered
521
+ */
522
+ deliveredAt: {
523
+ [key: string]: unknown;
524
+ } | null;
525
+ /**
526
+ * The display status of this fulfillment.
527
+ */
528
+ displayStatus: 'ATTEMPTED_DELIVERY' | 'CANCELED' | 'CARRIER_PICKED_UP' | 'CONFIRMED' | 'DELIVERED' | 'FAILURE' | 'FULFILLED' | 'IN_TRANSIT' | 'MARKED_AS_FULFILLED' | 'NOT_DELIVERED' | 'OUT_FOR_DELIVERY' | 'PICKED_UP' | 'READY_FOR_PICKUP' | 'SUBMITTED';
529
+ /**
530
+ * The date and time when the fulfillment is estimated to be delivered
531
+ */
532
+ estimatedDeliveryAt: {
533
+ [key: string]: unknown;
534
+ } | null;
535
+ /**
536
+ * The date and time when the fulfillment is in transit
537
+ */
538
+ inTransitAt: {
539
+ [key: string]: unknown;
540
+ } | null;
541
+ /**
542
+ * The total quantity of the fulfillment
543
+ */
544
+ totalQuantity: number;
545
+ /**
546
+ * The tracking information
547
+ */
548
+ trackingInfo: Array<TrackingInfo>;
549
+ /**
550
+ * The line items in the fulfillment
551
+ */
552
+ lineItems: Array<OrderLineItem>;
553
+ };
554
+ export type OrderDetailDto = {
555
+ /**
556
+ * The order ID
557
+ */
558
+ id: string;
559
+ /**
560
+ * The order name
561
+ */
562
+ name: string;
563
+ /**
564
+ * The date and time when the order was processed
565
+ */
566
+ processedAt: string;
567
+ /**
568
+ * The total quantity of items in the order
569
+ */
570
+ totalQuantity: number;
571
+ /**
572
+ * The total price of the order
573
+ */
574
+ totalPrice: Money;
575
+ /**
576
+ * The main fulfillment status of the order
577
+ */
578
+ displayStatus: 'FULFILLED' | 'IN_PROGRESS' | 'PARTIALLY_FULFILLED' | 'UNFULFILLED';
579
+ /**
580
+ * Array of fulfillments
581
+ */
582
+ fulfillments: Array<Fulfillment>;
583
+ /**
584
+ * Array of unfulfilled line items
585
+ */
586
+ unfulfilledLineItems: Array<OrderLineItem>;
587
+ };
588
+ export type OrderDto = {
589
+ /**
590
+ * The order ID
591
+ */
592
+ id: string;
593
+ /**
594
+ * The order number
595
+ */
596
+ name: string;
597
+ /**
598
+ * The date and time when the order was processed
599
+ */
600
+ processedAt: string;
601
+ /**
602
+ * Human-readable display status
603
+ */
604
+ displayStatus: 'FULFILLED' | 'IN_PROGRESS' | 'PARTIALLY_FULFILLED' | 'UNFULFILLED';
605
+ /**
606
+ * The total quantity of items in the order
607
+ */
608
+ totalQuantity: number;
609
+ /**
610
+ * The total price of the order
611
+ */
612
+ totalPrice: Money;
613
+ /**
614
+ * Preview images from the order line items
615
+ */
616
+ previewImages: Array<PreviewImageDto>;
617
+ };
618
+ export type SharedList = {
619
+ /**
620
+ * The ID of the shared list entry
621
+ */
622
+ id: string;
623
+ /**
624
+ * The ID of the list that was saved
625
+ */
626
+ listId: string;
627
+ /**
628
+ * The name of the list
629
+ */
630
+ name: string;
631
+ /**
632
+ * The number of items in the list
633
+ */
634
+ itemCount: number;
635
+ /**
636
+ * Array of preview image objects for the first 4 items in the list
637
+ */
638
+ previewImages: Array<PreviewImageDto>;
639
+ /**
640
+ * The date and time the shared list was created
641
+ */
642
+ createdAt: string;
643
+ /**
644
+ * The date and time the shared list was last updated
645
+ */
646
+ updatedAt: string;
647
+ };
648
+ export type NotificationUnreadCount = {
649
+ /**
650
+ * The total number of unread notifications
651
+ */
652
+ count: number;
653
+ };
654
+ export type MarkReadDto = {
655
+ /**
656
+ * Array of notification IDs to mark as read
657
+ */
658
+ notificationIds: Array<string>;
659
+ };
660
+ export type ProductCategoryDto = {
661
+ id: string;
662
+ name: string;
663
+ };
664
+ export type MoneyDto = {
665
+ amount: string;
666
+ currencyCode: string;
667
+ };
668
+ export type ProductPriceRangeDto = {
669
+ maxVariantPrice: MoneyDto;
670
+ minVariantPrice: MoneyDto;
671
+ };
672
+ export type ImageDto = {
673
+ id: string;
674
+ url: string;
675
+ altText?: {
676
+ [key: string]: unknown;
677
+ } | null;
678
+ thumbhash?: {
679
+ [key: string]: unknown;
680
+ } | null;
681
+ };
682
+ export type ProductVariantsCountDto = {
683
+ count: number;
684
+ };
685
+ export type NotificationProductDto = {
686
+ id: string;
687
+ availableForSale: boolean;
688
+ onlineStoreUrl?: {
689
+ [key: string]: unknown;
690
+ } | null;
691
+ handle: string;
692
+ productType: {
693
+ [key: string]: unknown;
694
+ } | null;
695
+ tags: Array<string>;
696
+ title: string;
697
+ category?: ProductCategoryDto | null;
698
+ compareAtPriceRange?: ProductPriceRangeDto | null;
699
+ featuredImage?: ImageDto | null;
700
+ priceRange: ProductPriceRangeDto;
701
+ variantsCount?: ProductVariantsCountDto | null;
702
+ };
703
+ export type ProductOptionDto = {
704
+ name: string;
705
+ value: string;
706
+ };
707
+ export type NotificationVariantDto = {
708
+ id: string;
709
+ availableForSale: boolean;
710
+ currentlyNotInStock: boolean;
711
+ sku?: {
712
+ [key: string]: unknown;
713
+ } | null;
714
+ title: string;
715
+ compareAtPrice?: MoneyDto | null;
716
+ image?: ImageDto | null;
717
+ price: MoneyDto;
718
+ selectedOptions: Array<ProductOptionDto>;
719
+ };
720
+ export type NotificationContextDto = {
721
+ /**
722
+ * The market identifier
723
+ */
724
+ market?: {
725
+ [key: string]: unknown;
726
+ } | null;
727
+ /**
728
+ * The country code
729
+ */
730
+ country?: {
731
+ [key: string]: unknown;
732
+ } | null;
733
+ /**
734
+ * The language code
735
+ */
736
+ language?: {
737
+ [key: string]: unknown;
738
+ } | null;
739
+ };
740
+ export type Notification = {
741
+ /**
742
+ * The ID of the notification
743
+ */
744
+ id: string;
745
+ /**
746
+ * The type of notification. Use this to look up localized title and message on the client.
747
+ */
748
+ type: 'saved_product_price_drop' | 'saved_product_back_in_stock' | 'saved_product_low_in_stock' | 'subscribed_product_price_drop' | 'subscribed_product_back_in_stock' | 'subscribed_product_low_in_stock';
749
+ /**
750
+ * The product data associated with the notification
751
+ */
752
+ product: NotificationProductDto;
753
+ /**
754
+ * The variant data associated with the notification
755
+ */
756
+ variant?: NotificationVariantDto | null;
757
+ /**
758
+ * Context for localization (market/country/language)
759
+ */
760
+ context: NotificationContextDto | null;
761
+ /**
762
+ * Metadata associated with the notification
763
+ */
764
+ metadata: {
765
+ [key: string]: unknown;
766
+ } | null;
767
+ /**
768
+ * Whether the notification has been read
769
+ */
770
+ read: boolean;
771
+ /**
772
+ * The date and time the notification was created
773
+ */
774
+ createdAt: string;
775
+ /**
776
+ * The date and time the notification was last updated
777
+ */
778
+ updatedAt: string;
779
+ };
780
+ export type SubscriptionQueryDto = {
781
+ /**
782
+ * Filter subscriptions by type
783
+ */
784
+ type?: 'back_in_stock';
785
+ /**
786
+ * Filter subscriptions by status
787
+ */
788
+ status?: 'active' | 'cancelled' | 'fulfilled';
789
+ /**
790
+ * Filter subscriptions by product ID
791
+ */
792
+ productId?: string;
793
+ /**
794
+ * Number of subscriptions to return
795
+ */
796
+ limit?: number;
797
+ /**
798
+ * The page cursor for pagination
799
+ */
800
+ page?: string;
801
+ };
802
+ export type UpdateSubscriptionInput = {
803
+ /**
804
+ * The status of the subscription
805
+ */
806
+ status?: 'active' | 'cancelled' | 'fulfilled';
807
+ /**
808
+ * The Shopify variant ID
809
+ */
810
+ variantId?: {
811
+ [key: string]: unknown;
812
+ } | null;
813
+ };
814
+ export type CreateSubscriptionInput = {
815
+ /**
816
+ * The contact information for the subscription (phone or email)
817
+ */
818
+ contact: string;
819
+ /**
820
+ * The Shopify product ID
821
+ */
822
+ productId: string;
823
+ /**
824
+ * The Shopify variant ID
825
+ */
826
+ variantId?: string;
827
+ /**
828
+ * The type of subscription
829
+ */
830
+ type: 'back_in_stock';
831
+ /**
832
+ * The channel for the subscription
833
+ */
834
+ channel: 'email' | 'sms' | 'whatsapp';
835
+ /**
836
+ * The market for the subscription
837
+ */
838
+ market?: string;
839
+ /**
840
+ * The country for the subscription
841
+ */
842
+ country?: string;
843
+ /**
844
+ * The language for the subscription
845
+ */
846
+ language?: string;
847
+ };
848
+ export type Subscription = {
849
+ /**
850
+ * The ID of the subscription
851
+ */
852
+ id: string;
853
+ /**
854
+ * The contact information for the subscription (phone or email)
855
+ */
856
+ contact: string;
857
+ /**
858
+ * The Shopify product ID
859
+ */
860
+ productId: string;
861
+ /**
862
+ * The Shopify variant ID
863
+ */
864
+ variantId?: {
865
+ [key: string]: unknown;
866
+ } | null;
867
+ /**
868
+ * The type of subscription
869
+ */
870
+ type: 'back_in_stock';
871
+ /**
872
+ * The channel for the subscription
873
+ */
874
+ channel: 'email' | 'sms' | 'whatsapp';
875
+ /**
876
+ * The status of the subscription
877
+ */
878
+ status: 'active' | 'cancelled' | 'fulfilled';
879
+ /**
880
+ * The date and time the subscription was created
881
+ */
882
+ createdAt: string;
883
+ /**
884
+ * The date and time the subscription was last updated
885
+ */
886
+ updatedAt: string;
887
+ /**
888
+ * The date and time the subscription was cancelled
889
+ */
890
+ cancelledAt?: {
891
+ [key: string]: unknown;
892
+ } | null;
893
+ /**
894
+ * The date and time the subscription was fulfilled
895
+ */
896
+ fulfilledAt?: {
897
+ [key: string]: unknown;
898
+ } | null;
899
+ /**
900
+ * The date and time the last notification was sent
901
+ */
902
+ lastNotificationAt?: {
903
+ [key: string]: unknown;
904
+ } | null;
905
+ /**
906
+ * The market for the subscription
907
+ */
908
+ market?: {
909
+ [key: string]: unknown;
910
+ } | null;
911
+ /**
912
+ * The country for the subscription
913
+ */
914
+ country?: {
915
+ [key: string]: unknown;
916
+ } | null;
917
+ /**
918
+ * The language for the subscription
919
+ */
920
+ language?: {
921
+ [key: string]: unknown;
922
+ } | null;
923
+ };
924
+ export type ListControllerFindData = {
925
+ body?: never;
926
+ path?: never;
927
+ query?: {
928
+ /**
929
+ * The page cursor
930
+ */
931
+ page?: string;
932
+ /**
933
+ * Number of lists/items to return
934
+ */
935
+ limit?: number;
936
+ /**
937
+ * The sort order of the lists
938
+ */
939
+ sort?: 'recently_updated' | 'custom';
940
+ };
941
+ url: '/lists';
942
+ };
943
+ export type ListControllerFindErrors = {
944
+ /**
945
+ * Bad Request
946
+ */
947
+ 400: ErrorResponse & {
948
+ error?: {
949
+ statusCode?: number;
950
+ error?: string;
951
+ };
952
+ };
953
+ /**
954
+ * Unauthorized
955
+ */
956
+ 401: ErrorResponse & {
957
+ error?: {
958
+ statusCode?: number;
959
+ error?: string;
960
+ };
961
+ };
962
+ /**
963
+ * Forbidden
964
+ */
965
+ 403: ErrorResponse & {
966
+ error?: {
967
+ statusCode?: number;
968
+ error?: string;
969
+ };
970
+ };
971
+ /**
972
+ * Not Found
973
+ */
974
+ 404: ErrorResponse & {
975
+ error?: {
976
+ statusCode?: number;
977
+ error?: string;
978
+ };
979
+ };
980
+ };
981
+ export type ListControllerFindError = ListControllerFindErrors[keyof ListControllerFindErrors];
982
+ export type ListControllerFindResponses = {
983
+ /**
984
+ * Returns all lists as paginated response
985
+ */
986
+ 200: PaginatedResponse & {
987
+ data?: Array<ListDetail>;
988
+ };
989
+ };
990
+ export type ListControllerFindResponse = ListControllerFindResponses[keyof ListControllerFindResponses];
991
+ export type ListControllerCreateData = {
992
+ body: CreateListInput;
993
+ path?: never;
994
+ query?: never;
995
+ url: '/lists';
996
+ };
997
+ export type ListControllerCreateErrors = {
998
+ /**
999
+ * Bad Request
1000
+ */
1001
+ 400: ErrorResponse & {
1002
+ error?: {
1003
+ statusCode?: number;
1004
+ error?: string;
1005
+ };
1006
+ };
1007
+ /**
1008
+ * Unauthorized
1009
+ */
1010
+ 401: ErrorResponse & {
1011
+ error?: {
1012
+ statusCode?: number;
1013
+ error?: string;
1014
+ };
1015
+ };
1016
+ /**
1017
+ * Forbidden
1018
+ */
1019
+ 403: ErrorResponse & {
1020
+ error?: {
1021
+ statusCode?: number;
1022
+ error?: string;
1023
+ };
1024
+ };
1025
+ /**
1026
+ * Not Found
1027
+ */
1028
+ 404: ErrorResponse & {
1029
+ error?: {
1030
+ statusCode?: number;
1031
+ error?: string;
1032
+ };
1033
+ };
1034
+ };
1035
+ export type ListControllerCreateError = ListControllerCreateErrors[keyof ListControllerCreateErrors];
1036
+ export type ListControllerCreateResponses = {
1037
+ /**
1038
+ * The list has been successfully created.
1039
+ */
1040
+ 201: Response & {
1041
+ data?: List;
1042
+ };
1043
+ };
1044
+ export type ListControllerCreateResponse = ListControllerCreateResponses[keyof ListControllerCreateResponses];
1045
+ export type ListControllerDeleteByIdData = {
1046
+ body?: never;
1047
+ path: {
1048
+ /**
1049
+ * The ID of the list
1050
+ */
1051
+ listId: string;
1052
+ };
1053
+ query?: never;
1054
+ url: '/lists/{listId}';
1055
+ };
1056
+ export type ListControllerDeleteByIdErrors = {
1057
+ /**
1058
+ * Bad Request
1059
+ */
1060
+ 400: ErrorResponse & {
1061
+ error?: {
1062
+ statusCode?: number;
1063
+ error?: string;
1064
+ };
1065
+ };
1066
+ /**
1067
+ * Unauthorized
1068
+ */
1069
+ 401: ErrorResponse & {
1070
+ error?: {
1071
+ statusCode?: number;
1072
+ error?: string;
1073
+ };
1074
+ };
1075
+ /**
1076
+ * Forbidden
1077
+ */
1078
+ 403: ErrorResponse & {
1079
+ error?: {
1080
+ statusCode?: number;
1081
+ error?: string;
1082
+ };
1083
+ };
1084
+ /**
1085
+ * Not Found
1086
+ */
1087
+ 404: ErrorResponse & {
1088
+ error?: {
1089
+ statusCode?: number;
1090
+ error?: string;
1091
+ };
1092
+ };
1093
+ };
1094
+ export type ListControllerDeleteByIdError = ListControllerDeleteByIdErrors[keyof ListControllerDeleteByIdErrors];
1095
+ export type ListControllerDeleteByIdResponses = {
1096
+ /**
1097
+ * The list has been successfully deleted.
1098
+ */
1099
+ 200: Response & {
1100
+ data?: List;
1101
+ };
1102
+ };
1103
+ export type ListControllerDeleteByIdResponse = ListControllerDeleteByIdResponses[keyof ListControllerDeleteByIdResponses];
1104
+ export type ListControllerFindByIdData = {
1105
+ body?: never;
1106
+ path: {
1107
+ /**
1108
+ * The ID of the list
1109
+ */
1110
+ listId: string;
1111
+ };
1112
+ query?: never;
1113
+ url: '/lists/{listId}';
1114
+ };
1115
+ export type ListControllerFindByIdErrors = {
1116
+ /**
1117
+ * Bad Request
1118
+ */
1119
+ 400: ErrorResponse & {
1120
+ error?: {
1121
+ statusCode?: number;
1122
+ error?: string;
1123
+ };
1124
+ };
1125
+ /**
1126
+ * Unauthorized
1127
+ */
1128
+ 401: ErrorResponse & {
1129
+ error?: {
1130
+ statusCode?: number;
1131
+ error?: string;
1132
+ };
1133
+ };
1134
+ /**
1135
+ * Forbidden
1136
+ */
1137
+ 403: ErrorResponse & {
1138
+ error?: {
1139
+ statusCode?: number;
1140
+ error?: string;
1141
+ };
1142
+ };
1143
+ /**
1144
+ * Not Found
1145
+ */
1146
+ 404: ErrorResponse & {
1147
+ error?: {
1148
+ statusCode?: number;
1149
+ error?: string;
1150
+ };
1151
+ };
1152
+ };
1153
+ export type ListControllerFindByIdError = ListControllerFindByIdErrors[keyof ListControllerFindByIdErrors];
1154
+ export type ListControllerFindByIdResponses = {
1155
+ /**
1156
+ * The list has been successfully retrieved.
1157
+ */
1158
+ 200: Response & {
1159
+ data?: ListDetail;
1160
+ };
1161
+ };
1162
+ export type ListControllerFindByIdResponse = ListControllerFindByIdResponses[keyof ListControllerFindByIdResponses];
1163
+ export type ListControllerUpdateByIdData = {
1164
+ body: UpdateListInput;
1165
+ path: {
1166
+ /**
1167
+ * The ID of the list
1168
+ */
1169
+ listId: string;
1170
+ };
1171
+ query?: never;
1172
+ url: '/lists/{listId}';
1173
+ };
1174
+ export type ListControllerUpdateByIdErrors = {
1175
+ /**
1176
+ * Bad Request
1177
+ */
1178
+ 400: ErrorResponse & {
1179
+ error?: {
1180
+ statusCode?: number;
1181
+ error?: string;
1182
+ };
1183
+ };
1184
+ /**
1185
+ * Unauthorized
1186
+ */
1187
+ 401: ErrorResponse & {
1188
+ error?: {
1189
+ statusCode?: number;
1190
+ error?: string;
1191
+ };
1192
+ };
1193
+ /**
1194
+ * Forbidden
1195
+ */
1196
+ 403: ErrorResponse & {
1197
+ error?: {
1198
+ statusCode?: number;
1199
+ error?: string;
1200
+ };
1201
+ };
1202
+ /**
1203
+ * Not Found
1204
+ */
1205
+ 404: ErrorResponse & {
1206
+ error?: {
1207
+ statusCode?: number;
1208
+ error?: string;
1209
+ };
1210
+ };
1211
+ };
1212
+ export type ListControllerUpdateByIdError = ListControllerUpdateByIdErrors[keyof ListControllerUpdateByIdErrors];
1213
+ export type ListControllerUpdateByIdResponses = {
1214
+ /**
1215
+ * The list has been successfully updated.
1216
+ */
1217
+ 200: Response & {
1218
+ data?: List;
1219
+ };
1220
+ };
1221
+ export type ListControllerUpdateByIdResponse = ListControllerUpdateByIdResponses[keyof ListControllerUpdateByIdResponses];
1222
+ export type ListControllerSetListItemsOrderData = {
1223
+ body: SetListItemsOrderInput;
1224
+ path: {
1225
+ /**
1226
+ * The ID of the list
1227
+ */
1228
+ listId: string;
1229
+ };
1230
+ query?: never;
1231
+ url: '/lists/{listId}/items/order';
1232
+ };
1233
+ export type ListControllerSetListItemsOrderErrors = {
1234
+ /**
1235
+ * Bad Request
1236
+ */
1237
+ 400: ErrorResponse & {
1238
+ error?: {
1239
+ statusCode?: number;
1240
+ error?: string;
1241
+ };
1242
+ };
1243
+ /**
1244
+ * Unauthorized
1245
+ */
1246
+ 401: ErrorResponse & {
1247
+ error?: {
1248
+ statusCode?: number;
1249
+ error?: string;
1250
+ };
1251
+ };
1252
+ /**
1253
+ * Forbidden
1254
+ */
1255
+ 403: ErrorResponse & {
1256
+ error?: {
1257
+ statusCode?: number;
1258
+ error?: string;
1259
+ };
1260
+ };
1261
+ /**
1262
+ * Not Found
1263
+ */
1264
+ 404: ErrorResponse & {
1265
+ error?: {
1266
+ statusCode?: number;
1267
+ error?: string;
1268
+ };
1269
+ };
1270
+ };
1271
+ export type ListControllerSetListItemsOrderError = ListControllerSetListItemsOrderErrors[keyof ListControllerSetListItemsOrderErrors];
1272
+ export type ListControllerSetListItemsOrderResponses = {
1273
+ /**
1274
+ * The list items have been successfully reordered.
1275
+ */
1276
+ 200: Response & {
1277
+ data?: List;
1278
+ };
1279
+ };
1280
+ export type ListControllerSetListItemsOrderResponse = ListControllerSetListItemsOrderResponses[keyof ListControllerSetListItemsOrderResponses];
1281
+ export type ListControllerAddItemsToListData = {
1282
+ body: AddItemsToListInput;
1283
+ path: {
1284
+ listId: string;
1285
+ };
1286
+ query?: never;
1287
+ url: '/lists/{listId}/items';
1288
+ };
1289
+ export type ListControllerAddItemsToListErrors = {
1290
+ /**
1291
+ * Bad Request
1292
+ */
1293
+ 400: ErrorResponse & {
1294
+ error?: {
1295
+ statusCode?: number;
1296
+ error?: string;
1297
+ };
1298
+ };
1299
+ /**
1300
+ * Unauthorized
1301
+ */
1302
+ 401: ErrorResponse & {
1303
+ error?: {
1304
+ statusCode?: number;
1305
+ error?: string;
1306
+ };
1307
+ };
1308
+ /**
1309
+ * Forbidden
1310
+ */
1311
+ 403: ErrorResponse & {
1312
+ error?: {
1313
+ statusCode?: number;
1314
+ error?: string;
1315
+ };
1316
+ };
1317
+ /**
1318
+ * Not Found
1319
+ */
1320
+ 404: ErrorResponse & {
1321
+ error?: {
1322
+ statusCode?: number;
1323
+ error?: string;
1324
+ };
1325
+ };
1326
+ };
1327
+ export type ListControllerAddItemsToListError = ListControllerAddItemsToListErrors[keyof ListControllerAddItemsToListErrors];
1328
+ export type ListControllerAddItemsToListResponses = {
1329
+ /**
1330
+ * Items have been successfully added to the list.
1331
+ */
1332
+ 200: Response & {
1333
+ data?: ListDetail;
1334
+ };
1335
+ };
1336
+ export type ListControllerAddItemsToListResponse = ListControllerAddItemsToListResponses[keyof ListControllerAddItemsToListResponses];
1337
+ export type ListControllerRemoveItemFromListData = {
1338
+ body?: never;
1339
+ path: {
1340
+ /**
1341
+ * The ID of the list
1342
+ */
1343
+ listId: string;
1344
+ /**
1345
+ * The ID of the item to remove from the list
1346
+ */
1347
+ itemId: string;
1348
+ };
1349
+ query?: never;
1350
+ url: '/lists/{listId}/items/{itemId}';
1351
+ };
1352
+ export type ListControllerRemoveItemFromListErrors = {
1353
+ /**
1354
+ * Bad Request
1355
+ */
1356
+ 400: ErrorResponse & {
1357
+ error?: {
1358
+ statusCode?: number;
1359
+ error?: string;
1360
+ };
1361
+ };
1362
+ /**
1363
+ * Unauthorized
1364
+ */
1365
+ 401: ErrorResponse & {
1366
+ error?: {
1367
+ statusCode?: number;
1368
+ error?: string;
1369
+ };
1370
+ };
1371
+ /**
1372
+ * Forbidden
1373
+ */
1374
+ 403: ErrorResponse & {
1375
+ error?: {
1376
+ statusCode?: number;
1377
+ error?: string;
1378
+ };
1379
+ };
1380
+ /**
1381
+ * Not Found
1382
+ */
1383
+ 404: ErrorResponse & {
1384
+ error?: {
1385
+ statusCode?: number;
1386
+ error?: string;
1387
+ };
1388
+ };
1389
+ };
1390
+ export type ListControllerRemoveItemFromListError = ListControllerRemoveItemFromListErrors[keyof ListControllerRemoveItemFromListErrors];
1391
+ export type ListControllerRemoveItemFromListResponses = {
1392
+ /**
1393
+ * The item has been successfully removed from the list.
1394
+ */
1395
+ 204: void;
1396
+ };
1397
+ export type ListControllerRemoveItemFromListResponse = ListControllerRemoveItemFromListResponses[keyof ListControllerRemoveItemFromListResponses];
1398
+ export type ItemControllerDeleteData = {
1399
+ body: DeleteItemsInput;
1400
+ path?: never;
1401
+ query?: never;
1402
+ url: '/items';
1403
+ };
1404
+ export type ItemControllerDeleteErrors = {
1405
+ /**
1406
+ * Bad Request
1407
+ */
1408
+ 400: ErrorResponse & {
1409
+ error?: {
1410
+ statusCode?: number;
1411
+ error?: string;
1412
+ };
1413
+ };
1414
+ /**
1415
+ * Unauthorized
1416
+ */
1417
+ 401: ErrorResponse & {
1418
+ error?: {
1419
+ statusCode?: number;
1420
+ error?: string;
1421
+ };
1422
+ };
1423
+ /**
1424
+ * Forbidden
1425
+ */
1426
+ 403: ErrorResponse & {
1427
+ error?: {
1428
+ statusCode?: number;
1429
+ error?: string;
1430
+ };
1431
+ };
1432
+ /**
1433
+ * Not Found
1434
+ */
1435
+ 404: ErrorResponse & {
1436
+ error?: {
1437
+ statusCode?: number;
1438
+ error?: string;
1439
+ };
1440
+ };
1441
+ };
1442
+ export type ItemControllerDeleteError = ItemControllerDeleteErrors[keyof ItemControllerDeleteErrors];
1443
+ export type ItemControllerDeleteResponses = {
1444
+ /**
1445
+ * The items have been successfully deleted.
1446
+ */
1447
+ 200: Response & {
1448
+ data?: Array<Item>;
1449
+ };
1450
+ };
1451
+ export type ItemControllerDeleteResponse = ItemControllerDeleteResponses[keyof ItemControllerDeleteResponses];
1452
+ export type ItemControllerFindData = {
1453
+ body?: never;
1454
+ path?: never;
1455
+ query?: {
1456
+ /**
1457
+ * The page cursor
1458
+ */
1459
+ page?: string;
1460
+ /**
1461
+ * Number of lists/items to return
1462
+ */
1463
+ limit?: number;
1464
+ /**
1465
+ * Item search query
1466
+ */
1467
+ query?: string;
1468
+ /**
1469
+ * List ID to filter items by specific list
1470
+ */
1471
+ listId?: string;
1472
+ /**
1473
+ * The sort order of the items
1474
+ */
1475
+ sort?: 'recently_saved' | 'custom';
1476
+ };
1477
+ url: '/items';
1478
+ };
1479
+ export type ItemControllerFindErrors = {
1480
+ /**
1481
+ * Bad Request
1482
+ */
1483
+ 400: ErrorResponse & {
1484
+ error?: {
1485
+ statusCode?: number;
1486
+ error?: string;
1487
+ };
1488
+ };
1489
+ /**
1490
+ * Unauthorized
1491
+ */
1492
+ 401: ErrorResponse & {
1493
+ error?: {
1494
+ statusCode?: number;
1495
+ error?: string;
1496
+ };
1497
+ };
1498
+ /**
1499
+ * Forbidden
1500
+ */
1501
+ 403: ErrorResponse & {
1502
+ error?: {
1503
+ statusCode?: number;
1504
+ error?: string;
1505
+ };
1506
+ };
1507
+ /**
1508
+ * Not Found
1509
+ */
1510
+ 404: ErrorResponse & {
1511
+ error?: {
1512
+ statusCode?: number;
1513
+ error?: string;
1514
+ };
1515
+ };
1516
+ };
1517
+ export type ItemControllerFindError = ItemControllerFindErrors[keyof ItemControllerFindErrors];
1518
+ export type ItemControllerFindResponses = {
1519
+ /**
1520
+ * Returns all items as paginated response
1521
+ */
1522
+ 200: PaginatedResponse & {
1523
+ data?: Array<Item>;
1524
+ };
1525
+ };
1526
+ export type ItemControllerFindResponse = ItemControllerFindResponses[keyof ItemControllerFindResponses];
1527
+ export type ItemControllerCreateData = {
1528
+ body: CreateItemInput;
1529
+ headers?: {
1530
+ /**
1531
+ * The language for the user (e.g., 'en', 'de', 'fr')
1532
+ */
1533
+ language?: string;
1534
+ /**
1535
+ * The country for the user (e.g., 'US', 'DE', 'FR')
1536
+ */
1537
+ country?: string;
1538
+ /**
1539
+ * The market for the user (e.g. 1234567 )
1540
+ */
1541
+ market?: string;
1542
+ };
1543
+ path?: never;
1544
+ query?: never;
1545
+ url: '/items';
1546
+ };
1547
+ export type ItemControllerCreateErrors = {
1548
+ /**
1549
+ * Bad Request
1550
+ */
1551
+ 400: ErrorResponse & {
1552
+ error?: {
1553
+ statusCode?: number;
1554
+ error?: string;
1555
+ };
1556
+ };
1557
+ /**
1558
+ * Unauthorized
1559
+ */
1560
+ 401: ErrorResponse & {
1561
+ error?: {
1562
+ statusCode?: number;
1563
+ error?: string;
1564
+ };
1565
+ };
1566
+ /**
1567
+ * Forbidden
1568
+ */
1569
+ 403: ErrorResponse & {
1570
+ error?: {
1571
+ statusCode?: number;
1572
+ error?: string;
1573
+ };
1574
+ };
1575
+ /**
1576
+ * Not Found
1577
+ */
1578
+ 404: ErrorResponse & {
1579
+ error?: {
1580
+ statusCode?: number;
1581
+ error?: string;
1582
+ };
1583
+ };
1584
+ };
1585
+ export type ItemControllerCreateError = ItemControllerCreateErrors[keyof ItemControllerCreateErrors];
1586
+ export type ItemControllerCreateResponses = {
1587
+ /**
1588
+ * The item has been successfully created.
1589
+ */
1590
+ 201: Response & {
1591
+ data?: Item;
1592
+ };
1593
+ };
1594
+ export type ItemControllerCreateResponse = ItemControllerCreateResponses[keyof ItemControllerCreateResponses];
1595
+ export type ItemControllerGetRecentlyViewedItemsData = {
1596
+ body?: never;
1597
+ path?: never;
1598
+ query?: {
1599
+ /**
1600
+ * The page cursor
1601
+ */
1602
+ page?: string;
1603
+ /**
1604
+ * Number of lists/items to return
1605
+ */
1606
+ limit?: number;
1607
+ };
1608
+ url: '/items/recently-viewed';
1609
+ };
1610
+ export type ItemControllerGetRecentlyViewedItemsErrors = {
1611
+ /**
1612
+ * Bad Request
1613
+ */
1614
+ 400: ErrorResponse & {
1615
+ error?: {
1616
+ statusCode?: number;
1617
+ error?: string;
1618
+ };
1619
+ };
1620
+ /**
1621
+ * Unauthorized
1622
+ */
1623
+ 401: ErrorResponse & {
1624
+ error?: {
1625
+ statusCode?: number;
1626
+ error?: string;
1627
+ };
1628
+ };
1629
+ /**
1630
+ * Forbidden
1631
+ */
1632
+ 403: ErrorResponse & {
1633
+ error?: {
1634
+ statusCode?: number;
1635
+ error?: string;
1636
+ };
1637
+ };
1638
+ /**
1639
+ * Not Found
1640
+ */
1641
+ 404: ErrorResponse & {
1642
+ error?: {
1643
+ statusCode?: number;
1644
+ error?: string;
1645
+ };
1646
+ };
1647
+ };
1648
+ export type ItemControllerGetRecentlyViewedItemsError = ItemControllerGetRecentlyViewedItemsErrors[keyof ItemControllerGetRecentlyViewedItemsErrors];
1649
+ export type ItemControllerGetRecentlyViewedItemsResponses = {
1650
+ /**
1651
+ * Returns recently viewed items as paginated response
1652
+ */
1653
+ 200: PaginatedResponse & {
1654
+ data?: Array<RecentlyViewed>;
1655
+ };
1656
+ };
1657
+ export type ItemControllerGetRecentlyViewedItemsResponse = ItemControllerGetRecentlyViewedItemsResponses[keyof ItemControllerGetRecentlyViewedItemsResponses];
1658
+ export type ItemControllerCountData = {
1659
+ body?: never;
1660
+ path?: never;
1661
+ query?: never;
1662
+ url: '/items/count';
1663
+ };
1664
+ export type ItemControllerCountErrors = {
1665
+ /**
1666
+ * Bad Request
1667
+ */
1668
+ 400: ErrorResponse & {
1669
+ error?: {
1670
+ statusCode?: number;
1671
+ error?: string;
1672
+ };
1673
+ };
1674
+ /**
1675
+ * Unauthorized
1676
+ */
1677
+ 401: ErrorResponse & {
1678
+ error?: {
1679
+ statusCode?: number;
1680
+ error?: string;
1681
+ };
1682
+ };
1683
+ /**
1684
+ * Forbidden
1685
+ */
1686
+ 403: ErrorResponse & {
1687
+ error?: {
1688
+ statusCode?: number;
1689
+ error?: string;
1690
+ };
1691
+ };
1692
+ /**
1693
+ * Not Found
1694
+ */
1695
+ 404: ErrorResponse & {
1696
+ error?: {
1697
+ statusCode?: number;
1698
+ error?: string;
1699
+ };
1700
+ };
1701
+ };
1702
+ export type ItemControllerCountError = ItemControllerCountErrors[keyof ItemControllerCountErrors];
1703
+ export type ItemControllerCountResponses = {
1704
+ /**
1705
+ * Returns the total count of items
1706
+ */
1707
+ 200: Response & {
1708
+ data?: ItemCount;
1709
+ };
1710
+ };
1711
+ export type ItemControllerCountResponse = ItemControllerCountResponses[keyof ItemControllerCountResponses];
1712
+ export type ItemControllerDeleteByIdData = {
1713
+ body?: never;
1714
+ path: {
1715
+ /**
1716
+ * The ID of the item
1717
+ */
1718
+ itemId: string;
1719
+ };
1720
+ query?: never;
1721
+ url: '/items/{itemId}';
1722
+ };
1723
+ export type ItemControllerDeleteByIdErrors = {
1724
+ /**
1725
+ * Bad Request
1726
+ */
1727
+ 400: ErrorResponse & {
1728
+ error?: {
1729
+ statusCode?: number;
1730
+ error?: string;
1731
+ };
1732
+ };
1733
+ /**
1734
+ * Unauthorized
1735
+ */
1736
+ 401: ErrorResponse & {
1737
+ error?: {
1738
+ statusCode?: number;
1739
+ error?: string;
1740
+ };
1741
+ };
1742
+ /**
1743
+ * Forbidden
1744
+ */
1745
+ 403: ErrorResponse & {
1746
+ error?: {
1747
+ statusCode?: number;
1748
+ error?: string;
1749
+ };
1750
+ };
1751
+ /**
1752
+ * Not Found
1753
+ */
1754
+ 404: ErrorResponse & {
1755
+ error?: {
1756
+ statusCode?: number;
1757
+ error?: string;
1758
+ };
1759
+ };
1760
+ };
1761
+ export type ItemControllerDeleteByIdError = ItemControllerDeleteByIdErrors[keyof ItemControllerDeleteByIdErrors];
1762
+ export type ItemControllerDeleteByIdResponses = {
1763
+ /**
1764
+ * The item has been successfully deleted.
1765
+ */
1766
+ 200: Response & {
1767
+ data?: Item;
1768
+ };
1769
+ };
1770
+ export type ItemControllerDeleteByIdResponse = ItemControllerDeleteByIdResponses[keyof ItemControllerDeleteByIdResponses];
1771
+ export type ItemControllerFindByIdData = {
1772
+ body?: never;
1773
+ path: {
1774
+ /**
1775
+ * The ID of the item
1776
+ */
1777
+ itemId: string;
1778
+ };
1779
+ query?: never;
1780
+ url: '/items/{itemId}';
1781
+ };
1782
+ export type ItemControllerFindByIdErrors = {
1783
+ /**
1784
+ * Bad Request
1785
+ */
1786
+ 400: ErrorResponse & {
1787
+ error?: {
1788
+ statusCode?: number;
1789
+ error?: string;
1790
+ };
1791
+ };
1792
+ /**
1793
+ * Unauthorized
1794
+ */
1795
+ 401: ErrorResponse & {
1796
+ error?: {
1797
+ statusCode?: number;
1798
+ error?: string;
1799
+ };
1800
+ };
1801
+ /**
1802
+ * Forbidden
1803
+ */
1804
+ 403: ErrorResponse & {
1805
+ error?: {
1806
+ statusCode?: number;
1807
+ error?: string;
1808
+ };
1809
+ };
1810
+ /**
1811
+ * Not Found
1812
+ */
1813
+ 404: ErrorResponse & {
1814
+ error?: {
1815
+ statusCode?: number;
1816
+ error?: string;
1817
+ };
1818
+ };
1819
+ };
1820
+ export type ItemControllerFindByIdError = ItemControllerFindByIdErrors[keyof ItemControllerFindByIdErrors];
1821
+ export type ItemControllerFindByIdResponses = {
1822
+ /**
1823
+ * The item has been successfully found.
1824
+ */
1825
+ 200: Response & {
1826
+ data?: ItemDetail;
1827
+ };
1828
+ };
1829
+ export type ItemControllerFindByIdResponse = ItemControllerFindByIdResponses[keyof ItemControllerFindByIdResponses];
1830
+ export type ItemControllerUpdateByIdData = {
1831
+ body: UpdateItemInput;
1832
+ path: {
1833
+ /**
1834
+ * The ID of the item
1835
+ */
1836
+ itemId: string;
1837
+ };
1838
+ query?: never;
1839
+ url: '/items/{itemId}';
1840
+ };
1841
+ export type ItemControllerUpdateByIdErrors = {
1842
+ /**
1843
+ * Bad Request
1844
+ */
1845
+ 400: ErrorResponse & {
1846
+ error?: {
1847
+ statusCode?: number;
1848
+ error?: string;
1849
+ };
1850
+ };
1851
+ /**
1852
+ * Unauthorized
1853
+ */
1854
+ 401: ErrorResponse & {
1855
+ error?: {
1856
+ statusCode?: number;
1857
+ error?: string;
1858
+ };
1859
+ };
1860
+ /**
1861
+ * Forbidden
1862
+ */
1863
+ 403: ErrorResponse & {
1864
+ error?: {
1865
+ statusCode?: number;
1866
+ error?: string;
1867
+ };
1868
+ };
1869
+ /**
1870
+ * Not Found
1871
+ */
1872
+ 404: ErrorResponse & {
1873
+ error?: {
1874
+ statusCode?: number;
1875
+ error?: string;
1876
+ };
1877
+ };
1878
+ };
1879
+ export type ItemControllerUpdateByIdError = ItemControllerUpdateByIdErrors[keyof ItemControllerUpdateByIdErrors];
1880
+ export type ItemControllerUpdateByIdResponses = {
1881
+ /**
1882
+ * The item has been successfully updated.
1883
+ */
1884
+ 200: Response & {
1885
+ data?: Item;
1886
+ };
1887
+ };
1888
+ export type ItemControllerUpdateByIdResponse = ItemControllerUpdateByIdResponses[keyof ItemControllerUpdateByIdResponses];
1889
+ export type ItemControllerSetListsByIdData = {
1890
+ body: SetItemListsInput;
1891
+ path: {
1892
+ /**
1893
+ * The ID of the item
1894
+ */
1895
+ itemId: string;
1896
+ };
1897
+ query?: never;
1898
+ url: '/items/{itemId}/lists';
1899
+ };
1900
+ export type ItemControllerSetListsByIdErrors = {
1901
+ /**
1902
+ * Bad Request
1903
+ */
1904
+ 400: ErrorResponse & {
1905
+ error?: {
1906
+ statusCode?: number;
1907
+ error?: string;
1908
+ };
1909
+ };
1910
+ /**
1911
+ * Unauthorized
1912
+ */
1913
+ 401: ErrorResponse & {
1914
+ error?: {
1915
+ statusCode?: number;
1916
+ error?: string;
1917
+ };
1918
+ };
1919
+ /**
1920
+ * Forbidden
1921
+ */
1922
+ 403: ErrorResponse & {
1923
+ error?: {
1924
+ statusCode?: number;
1925
+ error?: string;
1926
+ };
1927
+ };
1928
+ /**
1929
+ * Not Found
1930
+ */
1931
+ 404: ErrorResponse & {
1932
+ error?: {
1933
+ statusCode?: number;
1934
+ error?: string;
1935
+ };
1936
+ };
1937
+ };
1938
+ export type ItemControllerSetListsByIdError = ItemControllerSetListsByIdErrors[keyof ItemControllerSetListsByIdErrors];
1939
+ export type ItemControllerSetListsByIdResponses = {
1940
+ /**
1941
+ * The item has been successfully been added to the lists.
1942
+ */
1943
+ 200: Response & {
1944
+ data?: ItemDetail;
1945
+ };
1946
+ };
1947
+ export type ItemControllerSetListsByIdResponse = ItemControllerSetListsByIdResponses[keyof ItemControllerSetListsByIdResponses];
1948
+ export type ProfileControllerIdentifyData = {
1949
+ body: IdentifyProfileInput;
1950
+ path?: never;
1951
+ query?: never;
1952
+ url: '/profiles/identify';
1953
+ };
1954
+ export type ProfileControllerIdentifyErrors = {
1955
+ /**
1956
+ * Bad Request
1957
+ */
1958
+ 400: ErrorResponse & {
1959
+ error?: {
1960
+ statusCode?: number;
1961
+ error?: string;
1962
+ };
1963
+ };
1964
+ /**
1965
+ * Unauthorized
1966
+ */
1967
+ 401: ErrorResponse & {
1968
+ error?: {
1969
+ statusCode?: number;
1970
+ error?: string;
1971
+ };
1972
+ };
1973
+ /**
1974
+ * Forbidden
1975
+ */
1976
+ 403: ErrorResponse & {
1977
+ error?: {
1978
+ statusCode?: number;
1979
+ error?: string;
1980
+ };
1981
+ };
1982
+ /**
1983
+ * Not Found
1984
+ */
1985
+ 404: ErrorResponse & {
1986
+ error?: {
1987
+ statusCode?: number;
1988
+ error?: string;
1989
+ };
1990
+ };
1991
+ };
1992
+ export type ProfileControllerIdentifyError = ProfileControllerIdentifyErrors[keyof ProfileControllerIdentifyErrors];
1993
+ export type ProfileControllerIdentifyResponses = {
1994
+ /**
1995
+ * The profile has been identified
1996
+ */
1997
+ 204: void;
1998
+ };
1999
+ export type ProfileControllerIdentifyResponse = ProfileControllerIdentifyResponses[keyof ProfileControllerIdentifyResponses];
2000
+ export type ProfileControllerCreateTokenData = {
2001
+ body: CreateProfileTokenInput;
2002
+ path?: never;
2003
+ query?: never;
2004
+ url: '/profiles/token';
2005
+ };
2006
+ export type ProfileControllerCreateTokenErrors = {
2007
+ /**
2008
+ * Bad Request
2009
+ */
2010
+ 400: ErrorResponse & {
2011
+ error?: {
2012
+ statusCode?: number;
2013
+ error?: string;
2014
+ };
2015
+ };
2016
+ /**
2017
+ * Unauthorized
2018
+ */
2019
+ 401: ErrorResponse & {
2020
+ error?: {
2021
+ statusCode?: number;
2022
+ error?: string;
2023
+ };
2024
+ };
2025
+ /**
2026
+ * Forbidden
2027
+ */
2028
+ 403: ErrorResponse & {
2029
+ error?: {
2030
+ statusCode?: number;
2031
+ error?: string;
2032
+ };
2033
+ };
2034
+ /**
2035
+ * Not Found
2036
+ */
2037
+ 404: ErrorResponse & {
2038
+ error?: {
2039
+ statusCode?: number;
2040
+ error?: string;
2041
+ };
2042
+ };
2043
+ };
2044
+ export type ProfileControllerCreateTokenError = ProfileControllerCreateTokenErrors[keyof ProfileControllerCreateTokenErrors];
2045
+ export type ProfileControllerCreateTokenResponses = {
2046
+ /**
2047
+ * The token has been created
2048
+ */
2049
+ 201: Response & {
2050
+ data?: CreateProfileTokenResult;
2051
+ };
2052
+ };
2053
+ export type ProfileControllerCreateTokenResponse = ProfileControllerCreateTokenResponses[keyof ProfileControllerCreateTokenResponses];
2054
+ export type ProfileControllerGetProfileData = {
2055
+ body?: never;
2056
+ path?: never;
2057
+ query?: never;
2058
+ url: '/profiles';
2059
+ };
2060
+ export type ProfileControllerGetProfileErrors = {
2061
+ /**
2062
+ * Bad Request
2063
+ */
2064
+ 400: ErrorResponse & {
2065
+ error?: {
2066
+ statusCode?: number;
2067
+ error?: string;
2068
+ };
2069
+ };
2070
+ /**
2071
+ * Unauthorized
2072
+ */
2073
+ 401: ErrorResponse & {
2074
+ error?: {
2075
+ statusCode?: number;
2076
+ error?: string;
2077
+ };
2078
+ };
2079
+ /**
2080
+ * Forbidden
2081
+ */
2082
+ 403: ErrorResponse & {
2083
+ error?: {
2084
+ statusCode?: number;
2085
+ error?: string;
2086
+ };
2087
+ };
2088
+ /**
2089
+ * Not Found
2090
+ */
2091
+ 404: ErrorResponse & {
2092
+ error?: {
2093
+ statusCode?: number;
2094
+ error?: string;
2095
+ };
2096
+ };
2097
+ };
2098
+ export type ProfileControllerGetProfileError = ProfileControllerGetProfileErrors[keyof ProfileControllerGetProfileErrors];
2099
+ export type ProfileControllerGetProfileResponses = {
2100
+ /**
2101
+ * The profile has been fetched
2102
+ */
2103
+ 200: Response & {
2104
+ data?: Profile;
2105
+ };
2106
+ };
2107
+ export type ProfileControllerGetProfileResponse = ProfileControllerGetProfileResponses[keyof ProfileControllerGetProfileResponses];
2108
+ export type ProfileControllerUpdateProfileData = {
2109
+ body: UpdateProfileInput;
2110
+ path?: never;
2111
+ query?: never;
2112
+ url: '/profiles/profile';
2113
+ };
2114
+ export type ProfileControllerUpdateProfileErrors = {
2115
+ /**
2116
+ * Bad Request
2117
+ */
2118
+ 400: ErrorResponse & {
2119
+ error?: {
2120
+ statusCode?: number;
2121
+ error?: string;
2122
+ };
2123
+ };
2124
+ /**
2125
+ * Unauthorized
2126
+ */
2127
+ 401: ErrorResponse & {
2128
+ error?: {
2129
+ statusCode?: number;
2130
+ error?: string;
2131
+ };
2132
+ };
2133
+ /**
2134
+ * Forbidden
2135
+ */
2136
+ 403: ErrorResponse & {
2137
+ error?: {
2138
+ statusCode?: number;
2139
+ error?: string;
2140
+ };
2141
+ };
2142
+ /**
2143
+ * Not Found
2144
+ */
2145
+ 404: ErrorResponse & {
2146
+ error?: {
2147
+ statusCode?: number;
2148
+ error?: string;
2149
+ };
2150
+ };
2151
+ };
2152
+ export type ProfileControllerUpdateProfileError = ProfileControllerUpdateProfileErrors[keyof ProfileControllerUpdateProfileErrors];
2153
+ export type ProfileControllerUpdateProfileResponses = {
2154
+ /**
2155
+ * The profile has been updated
2156
+ */
2157
+ 200: Response & {
2158
+ data?: Profile;
2159
+ };
2160
+ };
2161
+ export type ProfileControllerUpdateProfileResponse = ProfileControllerUpdateProfileResponses[keyof ProfileControllerUpdateProfileResponses];
2162
+ export type AnalyticsControllerLoadSavedItemsData = {
2163
+ body?: never;
2164
+ path?: never;
2165
+ query: {
2166
+ /**
2167
+ * The granularity of the data
2168
+ */
2169
+ granularity?: string;
2170
+ /**
2171
+ * The start date
2172
+ */
2173
+ start: string;
2174
+ /**
2175
+ * The end date
2176
+ */
2177
+ end: string;
2178
+ /**
2179
+ * Filter by product or variant ID
2180
+ */
2181
+ merchandiseId?: string;
2182
+ };
2183
+ url: '/analytics/saved-items';
2184
+ };
2185
+ export type AnalyticsControllerLoadSavedItemsErrors = {
2186
+ /**
2187
+ * Bad Request
2188
+ */
2189
+ 400: ErrorResponse & {
2190
+ error?: {
2191
+ statusCode?: number;
2192
+ error?: string;
2193
+ };
2194
+ };
2195
+ /**
2196
+ * Unauthorized
2197
+ */
2198
+ 401: ErrorResponse & {
2199
+ error?: {
2200
+ statusCode?: number;
2201
+ error?: string;
2202
+ };
2203
+ };
2204
+ /**
2205
+ * Forbidden
2206
+ */
2207
+ 403: ErrorResponse & {
2208
+ error?: {
2209
+ statusCode?: number;
2210
+ error?: string;
2211
+ };
2212
+ };
2213
+ /**
2214
+ * Not Found
2215
+ */
2216
+ 404: ErrorResponse & {
2217
+ error?: {
2218
+ statusCode?: number;
2219
+ error?: string;
2220
+ };
2221
+ };
2222
+ };
2223
+ export type AnalyticsControllerLoadSavedItemsError = AnalyticsControllerLoadSavedItemsErrors[keyof AnalyticsControllerLoadSavedItemsErrors];
2224
+ export type AnalyticsControllerLoadSavedItemsResponses = {
2225
+ /**
2226
+ * Returns saved items analytics
2227
+ */
2228
+ 200: Response & {
2229
+ data?: Array<Analytics>;
2230
+ };
2231
+ };
2232
+ export type AnalyticsControllerLoadSavedItemsResponse = AnalyticsControllerLoadSavedItemsResponses[keyof AnalyticsControllerLoadSavedItemsResponses];
2233
+ export type AnalyticsControllerLoadSessionsData = {
2234
+ body?: never;
2235
+ path?: never;
2236
+ query: {
2237
+ /**
2238
+ * The granularity of the data
2239
+ */
2240
+ granularity?: string;
2241
+ /**
2242
+ * The start date
2243
+ */
2244
+ start: string;
2245
+ /**
2246
+ * The end date
2247
+ */
2248
+ end: string;
2249
+ /**
2250
+ * Filter by product or variant ID
2251
+ */
2252
+ merchandiseId?: string;
2253
+ };
2254
+ url: '/analytics/sessions';
2255
+ };
2256
+ export type AnalyticsControllerLoadSessionsErrors = {
2257
+ /**
2258
+ * Bad Request
2259
+ */
2260
+ 400: ErrorResponse & {
2261
+ error?: {
2262
+ statusCode?: number;
2263
+ error?: string;
2264
+ };
2265
+ };
2266
+ /**
2267
+ * Unauthorized
2268
+ */
2269
+ 401: ErrorResponse & {
2270
+ error?: {
2271
+ statusCode?: number;
2272
+ error?: string;
2273
+ };
2274
+ };
2275
+ /**
2276
+ * Forbidden
2277
+ */
2278
+ 403: ErrorResponse & {
2279
+ error?: {
2280
+ statusCode?: number;
2281
+ error?: string;
2282
+ };
2283
+ };
2284
+ /**
2285
+ * Not Found
2286
+ */
2287
+ 404: ErrorResponse & {
2288
+ error?: {
2289
+ statusCode?: number;
2290
+ error?: string;
2291
+ };
2292
+ };
2293
+ };
2294
+ export type AnalyticsControllerLoadSessionsError = AnalyticsControllerLoadSessionsErrors[keyof AnalyticsControllerLoadSessionsErrors];
2295
+ export type AnalyticsControllerLoadSessionsResponses = {
2296
+ /**
2297
+ * Returns sessions analytics
2298
+ */
2299
+ 200: Response & {
2300
+ data?: Array<Analytics>;
2301
+ };
2302
+ };
2303
+ export type AnalyticsControllerLoadSessionsResponse = AnalyticsControllerLoadSessionsResponses[keyof AnalyticsControllerLoadSessionsResponses];
2304
+ export type AnalyticsControllerLoadNewListsData = {
2305
+ body?: never;
2306
+ path?: never;
2307
+ query: {
2308
+ /**
2309
+ * The granularity of the data
2310
+ */
2311
+ granularity?: string;
2312
+ /**
2313
+ * The start date
2314
+ */
2315
+ start: string;
2316
+ /**
2317
+ * The end date
2318
+ */
2319
+ end: string;
2320
+ /**
2321
+ * Filter by product or variant ID
2322
+ */
2323
+ merchandiseId?: string;
2324
+ };
2325
+ url: '/analytics/new-lists';
2326
+ };
2327
+ export type AnalyticsControllerLoadNewListsErrors = {
2328
+ /**
2329
+ * Bad Request
2330
+ */
2331
+ 400: ErrorResponse & {
2332
+ error?: {
2333
+ statusCode?: number;
2334
+ error?: string;
2335
+ };
2336
+ };
2337
+ /**
2338
+ * Unauthorized
2339
+ */
2340
+ 401: ErrorResponse & {
2341
+ error?: {
2342
+ statusCode?: number;
2343
+ error?: string;
2344
+ };
2345
+ };
2346
+ /**
2347
+ * Forbidden
2348
+ */
2349
+ 403: ErrorResponse & {
2350
+ error?: {
2351
+ statusCode?: number;
2352
+ error?: string;
2353
+ };
2354
+ };
2355
+ /**
2356
+ * Not Found
2357
+ */
2358
+ 404: ErrorResponse & {
2359
+ error?: {
2360
+ statusCode?: number;
2361
+ error?: string;
2362
+ };
2363
+ };
2364
+ };
2365
+ export type AnalyticsControllerLoadNewListsError = AnalyticsControllerLoadNewListsErrors[keyof AnalyticsControllerLoadNewListsErrors];
2366
+ export type AnalyticsControllerLoadNewListsResponses = {
2367
+ /**
2368
+ * Returns new lists analytics
2369
+ */
2370
+ 200: Response & {
2371
+ data?: Array<Analytics>;
2372
+ };
2373
+ };
2374
+ export type AnalyticsControllerLoadNewListsResponse = AnalyticsControllerLoadNewListsResponses[keyof AnalyticsControllerLoadNewListsResponses];
2375
+ export type TrackingControllerCollectData = {
2376
+ body: TrackingEventRequestDto;
2377
+ path?: never;
2378
+ query?: never;
2379
+ url: '/collect';
2380
+ };
2381
+ export type TrackingControllerCollectErrors = {
2382
+ /**
2383
+ * Bad Request
2384
+ */
2385
+ 400: ErrorResponse & {
2386
+ error?: {
2387
+ statusCode?: number;
2388
+ error?: string;
2389
+ };
2390
+ };
2391
+ /**
2392
+ * Unauthorized
2393
+ */
2394
+ 401: ErrorResponse & {
2395
+ error?: {
2396
+ statusCode?: number;
2397
+ error?: string;
2398
+ };
2399
+ };
2400
+ /**
2401
+ * Forbidden
2402
+ */
2403
+ 403: ErrorResponse & {
2404
+ error?: {
2405
+ statusCode?: number;
2406
+ error?: string;
2407
+ };
2408
+ };
2409
+ };
2410
+ export type TrackingControllerCollectError = TrackingControllerCollectErrors[keyof TrackingControllerCollectErrors];
2411
+ export type TrackingControllerCollectResponses = {
2412
+ /**
2413
+ * Event tracked successfully
2414
+ */
2415
+ 204: void;
2416
+ };
2417
+ export type TrackingControllerCollectResponse = TrackingControllerCollectResponses[keyof TrackingControllerCollectResponses];
2418
+ export type OrdersControllerFindData = {
2419
+ body?: never;
2420
+ path?: never;
2421
+ query?: {
2422
+ /**
2423
+ * Pagination cursor for next or previous page
2424
+ */
2425
+ page?: string;
2426
+ /**
2427
+ * Number of orders to return per page
2428
+ */
2429
+ limit?: number;
2430
+ };
2431
+ url: '/orders';
2432
+ };
2433
+ export type OrdersControllerFindErrors = {
2434
+ /**
2435
+ * Bad Request
2436
+ */
2437
+ 400: ErrorResponse & {
2438
+ error?: {
2439
+ statusCode?: number;
2440
+ error?: string;
2441
+ };
2442
+ };
2443
+ /**
2444
+ * Unauthorized
2445
+ */
2446
+ 401: ErrorResponse & {
2447
+ error?: {
2448
+ statusCode?: number;
2449
+ error?: string;
2450
+ };
2451
+ };
2452
+ /**
2453
+ * Forbidden
2454
+ */
2455
+ 403: ErrorResponse & {
2456
+ error?: {
2457
+ statusCode?: number;
2458
+ error?: string;
2459
+ };
2460
+ };
2461
+ /**
2462
+ * Not Found
2463
+ */
2464
+ 404: ErrorResponse & {
2465
+ error?: {
2466
+ statusCode?: number;
2467
+ error?: string;
2468
+ };
2469
+ };
2470
+ };
2471
+ export type OrdersControllerFindError = OrdersControllerFindErrors[keyof OrdersControllerFindErrors];
2472
+ export type OrdersControllerFindResponses = {
2473
+ /**
2474
+ * Returns all orders as paginated response
2475
+ */
2476
+ 200: PaginatedResponse & {
2477
+ data?: Array<OrderDto>;
2478
+ };
2479
+ };
2480
+ export type OrdersControllerFindResponse = OrdersControllerFindResponses[keyof OrdersControllerFindResponses];
2481
+ export type OrdersControllerFindOneData = {
2482
+ body?: never;
2483
+ path: {
2484
+ /**
2485
+ * The ID of the order
2486
+ */
2487
+ orderId: number;
2488
+ };
2489
+ query?: never;
2490
+ url: '/orders/{orderId}';
2491
+ };
2492
+ export type OrdersControllerFindOneErrors = {
2493
+ /**
2494
+ * Bad Request
2495
+ */
2496
+ 400: ErrorResponse & {
2497
+ error?: {
2498
+ statusCode?: number;
2499
+ error?: string;
2500
+ };
2501
+ };
2502
+ /**
2503
+ * Unauthorized
2504
+ */
2505
+ 401: ErrorResponse & {
2506
+ error?: {
2507
+ statusCode?: number;
2508
+ error?: string;
2509
+ };
2510
+ };
2511
+ /**
2512
+ * Forbidden
2513
+ */
2514
+ 403: ErrorResponse & {
2515
+ error?: {
2516
+ statusCode?: number;
2517
+ error?: string;
2518
+ };
2519
+ };
2520
+ /**
2521
+ * Not Found
2522
+ */
2523
+ 404: ErrorResponse & {
2524
+ error?: {
2525
+ statusCode?: number;
2526
+ error?: string;
2527
+ };
2528
+ };
2529
+ };
2530
+ export type OrdersControllerFindOneError = OrdersControllerFindOneErrors[keyof OrdersControllerFindOneErrors];
2531
+ export type OrdersControllerFindOneResponses = {
2532
+ /**
2533
+ * Returns order detail with line items and tracking information
2534
+ */
2535
+ 200: Response & {
2536
+ data?: OrderDetailDto;
2537
+ };
2538
+ };
2539
+ export type OrdersControllerFindOneResponse = OrdersControllerFindOneResponses[keyof OrdersControllerFindOneResponses];
2540
+ export type SharedListsControllerSaveData = {
2541
+ body?: never;
2542
+ path: {
2543
+ /**
2544
+ * The ID of the list to save as shared
2545
+ */
2546
+ listId: string;
2547
+ };
2548
+ query?: never;
2549
+ url: '/shared-lists/{listId}/save';
2550
+ };
2551
+ export type SharedListsControllerSaveErrors = {
2552
+ /**
2553
+ * Bad Request
2554
+ */
2555
+ 400: ErrorResponse & {
2556
+ error?: {
2557
+ statusCode?: number;
2558
+ error?: string;
2559
+ };
2560
+ };
2561
+ /**
2562
+ * Unauthorized
2563
+ */
2564
+ 401: ErrorResponse & {
2565
+ error?: {
2566
+ statusCode?: number;
2567
+ error?: string;
2568
+ };
2569
+ };
2570
+ /**
2571
+ * Forbidden
2572
+ */
2573
+ 403: ErrorResponse & {
2574
+ error?: {
2575
+ statusCode?: number;
2576
+ error?: string;
2577
+ };
2578
+ };
2579
+ /**
2580
+ * Not Found
2581
+ */
2582
+ 404: ErrorResponse & {
2583
+ error?: {
2584
+ statusCode?: number;
2585
+ error?: string;
2586
+ };
2587
+ };
2588
+ };
2589
+ export type SharedListsControllerSaveError = SharedListsControllerSaveErrors[keyof SharedListsControllerSaveErrors];
2590
+ export type SharedListsControllerSaveResponses = {
2591
+ /**
2592
+ * The shared list has been successfully saved.
2593
+ */
2594
+ 201: Response & {
2595
+ data?: SharedList;
2596
+ };
2597
+ };
2598
+ export type SharedListsControllerSaveResponse = SharedListsControllerSaveResponses[keyof SharedListsControllerSaveResponses];
2599
+ export type SharedListsControllerDeleteByIdData = {
2600
+ body?: never;
2601
+ path: {
2602
+ /**
2603
+ * The ID of the list to save as shared
2604
+ */
2605
+ listId: string;
2606
+ };
2607
+ query?: never;
2608
+ url: '/shared-lists/{listId}';
2609
+ };
2610
+ export type SharedListsControllerDeleteByIdErrors = {
2611
+ /**
2612
+ * Bad Request
2613
+ */
2614
+ 400: ErrorResponse & {
2615
+ error?: {
2616
+ statusCode?: number;
2617
+ error?: string;
2618
+ };
2619
+ };
2620
+ /**
2621
+ * Unauthorized
2622
+ */
2623
+ 401: ErrorResponse & {
2624
+ error?: {
2625
+ statusCode?: number;
2626
+ error?: string;
2627
+ };
2628
+ };
2629
+ /**
2630
+ * Forbidden
2631
+ */
2632
+ 403: ErrorResponse & {
2633
+ error?: {
2634
+ statusCode?: number;
2635
+ error?: string;
2636
+ };
2637
+ };
2638
+ /**
2639
+ * Not Found
2640
+ */
2641
+ 404: ErrorResponse & {
2642
+ error?: {
2643
+ statusCode?: number;
2644
+ error?: string;
2645
+ };
2646
+ };
2647
+ };
2648
+ export type SharedListsControllerDeleteByIdError = SharedListsControllerDeleteByIdErrors[keyof SharedListsControllerDeleteByIdErrors];
2649
+ export type SharedListsControllerDeleteByIdResponses = {
2650
+ /**
2651
+ * The shared list has been successfully deleted.
2652
+ */
2653
+ 204: void;
2654
+ };
2655
+ export type SharedListsControllerDeleteByIdResponse = SharedListsControllerDeleteByIdResponses[keyof SharedListsControllerDeleteByIdResponses];
2656
+ export type SharedListsControllerFindByIdData = {
2657
+ body?: never;
2658
+ path: {
2659
+ /**
2660
+ * The ID of the list to save as shared
2661
+ */
2662
+ listId: string;
2663
+ };
2664
+ query?: never;
2665
+ url: '/shared-lists/{listId}';
2666
+ };
2667
+ export type SharedListsControllerFindByIdErrors = {
2668
+ /**
2669
+ * Bad Request
2670
+ */
2671
+ 400: ErrorResponse & {
2672
+ error?: {
2673
+ statusCode?: number;
2674
+ error?: string;
2675
+ };
2676
+ };
2677
+ /**
2678
+ * Unauthorized
2679
+ */
2680
+ 401: ErrorResponse & {
2681
+ error?: {
2682
+ statusCode?: number;
2683
+ error?: string;
2684
+ };
2685
+ };
2686
+ /**
2687
+ * Forbidden
2688
+ */
2689
+ 403: ErrorResponse & {
2690
+ error?: {
2691
+ statusCode?: number;
2692
+ error?: string;
2693
+ };
2694
+ };
2695
+ /**
2696
+ * Not Found
2697
+ */
2698
+ 404: ErrorResponse & {
2699
+ error?: {
2700
+ statusCode?: number;
2701
+ error?: string;
2702
+ };
2703
+ };
2704
+ };
2705
+ export type SharedListsControllerFindByIdError = SharedListsControllerFindByIdErrors[keyof SharedListsControllerFindByIdErrors];
2706
+ export type SharedListsControllerFindByIdResponses = {
2707
+ /**
2708
+ * Returns the shared list entry.
2709
+ */
2710
+ 200: Response & {
2711
+ data?: SharedList;
2712
+ };
2713
+ };
2714
+ export type SharedListsControllerFindByIdResponse = SharedListsControllerFindByIdResponses[keyof SharedListsControllerFindByIdResponses];
2715
+ export type SharedListsControllerFindAllData = {
2716
+ body?: never;
2717
+ path?: never;
2718
+ query?: {
2719
+ /**
2720
+ * The page cursor
2721
+ */
2722
+ page?: string;
2723
+ /**
2724
+ * Number of lists/items to return
2725
+ */
2726
+ limit?: number;
2727
+ };
2728
+ url: '/shared-lists';
2729
+ };
2730
+ export type SharedListsControllerFindAllErrors = {
2731
+ /**
2732
+ * Bad Request
2733
+ */
2734
+ 400: ErrorResponse & {
2735
+ error?: {
2736
+ statusCode?: number;
2737
+ error?: string;
2738
+ };
2739
+ };
2740
+ /**
2741
+ * Unauthorized
2742
+ */
2743
+ 401: ErrorResponse & {
2744
+ error?: {
2745
+ statusCode?: number;
2746
+ error?: string;
2747
+ };
2748
+ };
2749
+ /**
2750
+ * Forbidden
2751
+ */
2752
+ 403: ErrorResponse & {
2753
+ error?: {
2754
+ statusCode?: number;
2755
+ error?: string;
2756
+ };
2757
+ };
2758
+ /**
2759
+ * Not Found
2760
+ */
2761
+ 404: ErrorResponse & {
2762
+ error?: {
2763
+ statusCode?: number;
2764
+ error?: string;
2765
+ };
2766
+ };
2767
+ };
2768
+ export type SharedListsControllerFindAllError = SharedListsControllerFindAllErrors[keyof SharedListsControllerFindAllErrors];
2769
+ export type SharedListsControllerFindAllResponses = {
2770
+ /**
2771
+ * Returns all shared lists as paginated response
2772
+ */
2773
+ 200: PaginatedResponse & {
2774
+ data?: Array<SharedList>;
2775
+ };
2776
+ };
2777
+ export type SharedListsControllerFindAllResponse = SharedListsControllerFindAllResponses[keyof SharedListsControllerFindAllResponses];
2778
+ export type NotificationsControllerFindData = {
2779
+ body?: never;
2780
+ path?: never;
2781
+ query?: {
2782
+ /**
2783
+ * Filter notifications by read status. Use read=false for unread notifications.
2784
+ */
2785
+ read?: boolean;
2786
+ /**
2787
+ * Filter notifications by type
2788
+ */
2789
+ type?: 'saved_product_price_drop' | 'saved_product_back_in_stock' | 'saved_product_low_in_stock' | 'subscribed_product_price_drop' | 'subscribed_product_back_in_stock' | 'subscribed_product_low_in_stock';
2790
+ /**
2791
+ * Number of notifications to return
2792
+ */
2793
+ limit?: number;
2794
+ /**
2795
+ * The page cursor for pagination
2796
+ */
2797
+ page?: string;
2798
+ };
2799
+ url: '/notifications';
2800
+ };
2801
+ export type NotificationsControllerFindErrors = {
2802
+ /**
2803
+ * Bad Request
2804
+ */
2805
+ 400: ErrorResponse & {
2806
+ error?: {
2807
+ statusCode?: number;
2808
+ error?: string;
2809
+ };
2810
+ };
2811
+ /**
2812
+ * Unauthorized
2813
+ */
2814
+ 401: ErrorResponse & {
2815
+ error?: {
2816
+ statusCode?: number;
2817
+ error?: string;
2818
+ };
2819
+ };
2820
+ /**
2821
+ * Forbidden
2822
+ */
2823
+ 403: ErrorResponse & {
2824
+ error?: {
2825
+ statusCode?: number;
2826
+ error?: string;
2827
+ };
2828
+ };
2829
+ /**
2830
+ * Not Found
2831
+ */
2832
+ 404: ErrorResponse & {
2833
+ error?: {
2834
+ statusCode?: number;
2835
+ error?: string;
2836
+ };
2837
+ };
2838
+ };
2839
+ export type NotificationsControllerFindError = NotificationsControllerFindErrors[keyof NotificationsControllerFindErrors];
2840
+ export type NotificationsControllerFindResponses = {
2841
+ /**
2842
+ * Returns all notifications as paginated response
2843
+ */
2844
+ 200: PaginatedResponse & {
2845
+ data?: Array<Notification>;
2846
+ };
2847
+ };
2848
+ export type NotificationsControllerFindResponse = NotificationsControllerFindResponses[keyof NotificationsControllerFindResponses];
2849
+ export type NotificationsControllerGetUnreadCountData = {
2850
+ body?: never;
2851
+ path?: never;
2852
+ query?: never;
2853
+ url: '/notifications/unread/count';
2854
+ };
2855
+ export type NotificationsControllerGetUnreadCountErrors = {
2856
+ /**
2857
+ * Bad Request
2858
+ */
2859
+ 400: ErrorResponse & {
2860
+ error?: {
2861
+ statusCode?: number;
2862
+ error?: string;
2863
+ };
2864
+ };
2865
+ /**
2866
+ * Unauthorized
2867
+ */
2868
+ 401: ErrorResponse & {
2869
+ error?: {
2870
+ statusCode?: number;
2871
+ error?: string;
2872
+ };
2873
+ };
2874
+ /**
2875
+ * Forbidden
2876
+ */
2877
+ 403: ErrorResponse & {
2878
+ error?: {
2879
+ statusCode?: number;
2880
+ error?: string;
2881
+ };
2882
+ };
2883
+ /**
2884
+ * Not Found
2885
+ */
2886
+ 404: ErrorResponse & {
2887
+ error?: {
2888
+ statusCode?: number;
2889
+ error?: string;
2890
+ };
2891
+ };
2892
+ };
2893
+ export type NotificationsControllerGetUnreadCountError = NotificationsControllerGetUnreadCountErrors[keyof NotificationsControllerGetUnreadCountErrors];
2894
+ export type NotificationsControllerGetUnreadCountResponses = {
2895
+ /**
2896
+ * Returns the total count of unread notifications
2897
+ */
2898
+ 200: Response & {
2899
+ data?: NotificationUnreadCount;
2900
+ };
2901
+ };
2902
+ export type NotificationsControllerGetUnreadCountResponse = NotificationsControllerGetUnreadCountResponses[keyof NotificationsControllerGetUnreadCountResponses];
2903
+ export type NotificationsControllerMarkAsReadData = {
2904
+ body: MarkReadDto;
2905
+ path?: never;
2906
+ query?: never;
2907
+ url: '/notifications/read';
2908
+ };
2909
+ export type NotificationsControllerMarkAsReadErrors = {
2910
+ /**
2911
+ * Bad Request
2912
+ */
2913
+ 400: ErrorResponse & {
2914
+ error?: {
2915
+ statusCode?: number;
2916
+ error?: string;
2917
+ };
2918
+ };
2919
+ /**
2920
+ * Unauthorized
2921
+ */
2922
+ 401: ErrorResponse & {
2923
+ error?: {
2924
+ statusCode?: number;
2925
+ error?: string;
2926
+ };
2927
+ };
2928
+ /**
2929
+ * Forbidden
2930
+ */
2931
+ 403: ErrorResponse & {
2932
+ error?: {
2933
+ statusCode?: number;
2934
+ error?: string;
2935
+ };
2936
+ };
2937
+ /**
2938
+ * Not Found
2939
+ */
2940
+ 404: ErrorResponse & {
2941
+ error?: {
2942
+ statusCode?: number;
2943
+ error?: string;
2944
+ };
2945
+ };
2946
+ };
2947
+ export type NotificationsControllerMarkAsReadError = NotificationsControllerMarkAsReadErrors[keyof NotificationsControllerMarkAsReadErrors];
2948
+ export type NotificationsControllerMarkAsReadResponses = {
2949
+ /**
2950
+ * Notifications marked as read successfully
2951
+ */
2952
+ 200: Response & {
2953
+ data?: Array<Notification>;
2954
+ };
2955
+ };
2956
+ export type NotificationsControllerMarkAsReadResponse = NotificationsControllerMarkAsReadResponses[keyof NotificationsControllerMarkAsReadResponses];
2957
+ export type NotificationsControllerDeleteByIdData = {
2958
+ body?: never;
2959
+ path: {
2960
+ /**
2961
+ * The ID of the notification
2962
+ */
2963
+ id: string;
2964
+ };
2965
+ query?: never;
2966
+ url: '/notifications/{id}';
2967
+ };
2968
+ export type NotificationsControllerDeleteByIdErrors = {
2969
+ /**
2970
+ * Bad Request
2971
+ */
2972
+ 400: ErrorResponse & {
2973
+ error?: {
2974
+ statusCode?: number;
2975
+ error?: string;
2976
+ };
2977
+ };
2978
+ /**
2979
+ * Unauthorized
2980
+ */
2981
+ 401: ErrorResponse & {
2982
+ error?: {
2983
+ statusCode?: number;
2984
+ error?: string;
2985
+ };
2986
+ };
2987
+ /**
2988
+ * Forbidden
2989
+ */
2990
+ 403: ErrorResponse & {
2991
+ error?: {
2992
+ statusCode?: number;
2993
+ error?: string;
2994
+ };
2995
+ };
2996
+ /**
2997
+ * Not Found
2998
+ */
2999
+ 404: ErrorResponse & {
3000
+ error?: {
3001
+ statusCode?: number;
3002
+ error?: string;
3003
+ };
3004
+ };
3005
+ };
3006
+ export type NotificationsControllerDeleteByIdError = NotificationsControllerDeleteByIdErrors[keyof NotificationsControllerDeleteByIdErrors];
3007
+ export type NotificationsControllerDeleteByIdResponses = {
3008
+ /**
3009
+ * The notification has been successfully deleted.
3010
+ */
3011
+ 200: Response & {
3012
+ data?: Notification;
3013
+ };
3014
+ };
3015
+ export type NotificationsControllerDeleteByIdResponse = NotificationsControllerDeleteByIdResponses[keyof NotificationsControllerDeleteByIdResponses];
3016
+ export type SubscriptionsControllerFindData = {
3017
+ body?: never;
3018
+ path?: never;
3019
+ query?: {
3020
+ /**
3021
+ * Filter subscriptions by type
3022
+ */
3023
+ type?: 'back_in_stock';
3024
+ /**
3025
+ * Filter subscriptions by status
3026
+ */
3027
+ status?: 'active' | 'cancelled' | 'fulfilled';
3028
+ /**
3029
+ * Filter subscriptions by product ID
3030
+ */
3031
+ productId?: string;
3032
+ /**
3033
+ * Number of subscriptions to return
3034
+ */
3035
+ limit?: number;
3036
+ /**
3037
+ * The page cursor for pagination
3038
+ */
3039
+ page?: string;
3040
+ };
3041
+ url: '/subscriptions';
3042
+ };
3043
+ export type SubscriptionsControllerFindErrors = {
3044
+ /**
3045
+ * Bad Request
3046
+ */
3047
+ 400: ErrorResponse & {
3048
+ error?: {
3049
+ statusCode?: number;
3050
+ error?: string;
3051
+ };
3052
+ };
3053
+ /**
3054
+ * Unauthorized
3055
+ */
3056
+ 401: ErrorResponse & {
3057
+ error?: {
3058
+ statusCode?: number;
3059
+ error?: string;
3060
+ };
3061
+ };
3062
+ /**
3063
+ * Forbidden
3064
+ */
3065
+ 403: ErrorResponse & {
3066
+ error?: {
3067
+ statusCode?: number;
3068
+ error?: string;
3069
+ };
3070
+ };
3071
+ /**
3072
+ * Not Found
3073
+ */
3074
+ 404: ErrorResponse & {
3075
+ error?: {
3076
+ statusCode?: number;
3077
+ error?: string;
3078
+ };
3079
+ };
3080
+ };
3081
+ export type SubscriptionsControllerFindError = SubscriptionsControllerFindErrors[keyof SubscriptionsControllerFindErrors];
3082
+ export type SubscriptionsControllerFindResponses = {
3083
+ /**
3084
+ * Returns all subscriptions as paginated response
3085
+ */
3086
+ 200: PaginatedResponse & {
3087
+ data?: Array<Subscription>;
3088
+ };
3089
+ };
3090
+ export type SubscriptionsControllerFindResponse = SubscriptionsControllerFindResponses[keyof SubscriptionsControllerFindResponses];
3091
+ export type SubscriptionsControllerCreateData = {
3092
+ body: CreateSubscriptionInput;
3093
+ headers?: {
3094
+ /**
3095
+ * The language for the user (e.g., 'en', 'de', 'fr')
3096
+ */
3097
+ language?: string;
3098
+ /**
3099
+ * The country for the user (e.g., 'US', 'DE', 'FR')
3100
+ */
3101
+ country?: string;
3102
+ /**
3103
+ * The market for the user (e.g. 1234567)
3104
+ */
3105
+ market?: string;
3106
+ };
3107
+ path?: never;
3108
+ query?: never;
3109
+ url: '/subscriptions';
3110
+ };
3111
+ export type SubscriptionsControllerCreateErrors = {
3112
+ /**
3113
+ * Bad Request
3114
+ */
3115
+ 400: ErrorResponse & {
3116
+ error?: {
3117
+ statusCode?: number;
3118
+ error?: string;
3119
+ };
3120
+ };
3121
+ /**
3122
+ * Unauthorized
3123
+ */
3124
+ 401: ErrorResponse & {
3125
+ error?: {
3126
+ statusCode?: number;
3127
+ error?: string;
3128
+ };
3129
+ };
3130
+ /**
3131
+ * Forbidden
3132
+ */
3133
+ 403: ErrorResponse & {
3134
+ error?: {
3135
+ statusCode?: number;
3136
+ error?: string;
3137
+ };
3138
+ };
3139
+ /**
3140
+ * Not Found
3141
+ */
3142
+ 404: ErrorResponse & {
3143
+ error?: {
3144
+ statusCode?: number;
3145
+ error?: string;
3146
+ };
3147
+ };
3148
+ };
3149
+ export type SubscriptionsControllerCreateError = SubscriptionsControllerCreateErrors[keyof SubscriptionsControllerCreateErrors];
3150
+ export type SubscriptionsControllerCreateResponses = {
3151
+ /**
3152
+ * The subscription has been successfully created.
3153
+ */
3154
+ 201: Response & {
3155
+ data?: Subscription;
3156
+ };
3157
+ };
3158
+ export type SubscriptionsControllerCreateResponse = SubscriptionsControllerCreateResponses[keyof SubscriptionsControllerCreateResponses];
3159
+ export type SubscriptionsControllerDeleteData = {
3160
+ body?: never;
3161
+ path: {
3162
+ /**
3163
+ * The ID of the subscription to delete
3164
+ */
3165
+ id: string;
3166
+ };
3167
+ query?: never;
3168
+ url: '/subscriptions/{id}';
3169
+ };
3170
+ export type SubscriptionsControllerDeleteErrors = {
3171
+ /**
3172
+ * Bad Request
3173
+ */
3174
+ 400: ErrorResponse & {
3175
+ error?: {
3176
+ statusCode?: number;
3177
+ error?: string;
3178
+ };
3179
+ };
3180
+ /**
3181
+ * Unauthorized
3182
+ */
3183
+ 401: ErrorResponse & {
3184
+ error?: {
3185
+ statusCode?: number;
3186
+ error?: string;
3187
+ };
3188
+ };
3189
+ /**
3190
+ * Forbidden
3191
+ */
3192
+ 403: ErrorResponse & {
3193
+ error?: {
3194
+ statusCode?: number;
3195
+ error?: string;
3196
+ };
3197
+ };
3198
+ /**
3199
+ * Not Found
3200
+ */
3201
+ 404: ErrorResponse & {
3202
+ error?: {
3203
+ statusCode?: number;
3204
+ error?: string;
3205
+ };
3206
+ };
3207
+ };
3208
+ export type SubscriptionsControllerDeleteError = SubscriptionsControllerDeleteErrors[keyof SubscriptionsControllerDeleteErrors];
3209
+ export type SubscriptionsControllerDeleteResponses = {
3210
+ /**
3211
+ * The subscription has been successfully deleted.
3212
+ */
3213
+ 200: Response & {
3214
+ data?: Subscription;
3215
+ };
3216
+ };
3217
+ export type SubscriptionsControllerDeleteResponse = SubscriptionsControllerDeleteResponses[keyof SubscriptionsControllerDeleteResponses];
3218
+ export type SubscriptionsControllerFindByIdData = {
3219
+ body?: never;
3220
+ path: {
3221
+ /**
3222
+ * The ID of the subscription
3223
+ */
3224
+ id: string;
3225
+ };
3226
+ query?: never;
3227
+ url: '/subscriptions/{id}';
3228
+ };
3229
+ export type SubscriptionsControllerFindByIdErrors = {
3230
+ /**
3231
+ * Bad Request
3232
+ */
3233
+ 400: ErrorResponse & {
3234
+ error?: {
3235
+ statusCode?: number;
3236
+ error?: string;
3237
+ };
3238
+ };
3239
+ /**
3240
+ * Unauthorized
3241
+ */
3242
+ 401: ErrorResponse & {
3243
+ error?: {
3244
+ statusCode?: number;
3245
+ error?: string;
3246
+ };
3247
+ };
3248
+ /**
3249
+ * Forbidden
3250
+ */
3251
+ 403: ErrorResponse & {
3252
+ error?: {
3253
+ statusCode?: number;
3254
+ error?: string;
3255
+ };
3256
+ };
3257
+ /**
3258
+ * Not Found
3259
+ */
3260
+ 404: ErrorResponse & {
3261
+ error?: {
3262
+ statusCode?: number;
3263
+ error?: string;
3264
+ };
3265
+ };
3266
+ };
3267
+ export type SubscriptionsControllerFindByIdError = SubscriptionsControllerFindByIdErrors[keyof SubscriptionsControllerFindByIdErrors];
3268
+ export type SubscriptionsControllerFindByIdResponses = {
3269
+ /**
3270
+ * The subscription has been successfully retrieved.
3271
+ */
3272
+ 200: Response & {
3273
+ data?: Subscription;
3274
+ };
3275
+ };
3276
+ export type SubscriptionsControllerFindByIdResponse = SubscriptionsControllerFindByIdResponses[keyof SubscriptionsControllerFindByIdResponses];
3277
+ export type SubscriptionsControllerUpdateData = {
3278
+ body: UpdateSubscriptionInput;
3279
+ path: {
3280
+ /**
3281
+ * The ID of the subscription to update
3282
+ */
3283
+ id: string;
3284
+ };
3285
+ query?: never;
3286
+ url: '/subscriptions/{id}';
3287
+ };
3288
+ export type SubscriptionsControllerUpdateErrors = {
3289
+ /**
3290
+ * Bad Request
3291
+ */
3292
+ 400: ErrorResponse & {
3293
+ error?: {
3294
+ statusCode?: number;
3295
+ error?: string;
3296
+ };
3297
+ };
3298
+ /**
3299
+ * Unauthorized
3300
+ */
3301
+ 401: ErrorResponse & {
3302
+ error?: {
3303
+ statusCode?: number;
3304
+ error?: string;
3305
+ };
3306
+ };
3307
+ /**
3308
+ * Forbidden
3309
+ */
3310
+ 403: ErrorResponse & {
3311
+ error?: {
3312
+ statusCode?: number;
3313
+ error?: string;
3314
+ };
3315
+ };
3316
+ /**
3317
+ * Not Found
3318
+ */
3319
+ 404: ErrorResponse & {
3320
+ error?: {
3321
+ statusCode?: number;
3322
+ error?: string;
3323
+ };
3324
+ };
3325
+ };
3326
+ export type SubscriptionsControllerUpdateError = SubscriptionsControllerUpdateErrors[keyof SubscriptionsControllerUpdateErrors];
3327
+ export type SubscriptionsControllerUpdateResponses = {
3328
+ /**
3329
+ * The subscription has been successfully updated.
3330
+ */
3331
+ 200: Response & {
3332
+ data?: Subscription;
3333
+ };
3334
+ };
3335
+ export type SubscriptionsControllerUpdateResponse = SubscriptionsControllerUpdateResponses[keyof SubscriptionsControllerUpdateResponses];