@swishapp/api-client 0.41.0 → 0.43.0-unstable.20260305130147

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 +55 -0
  2. package/dist/{client.d.ts → 2026-01/client.d.ts} +19 -8
  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 +14 -4
  13. package/dist/{openapi → 2026-01/openapi}/types.gen.d.ts +775 -20
  14. package/dist/{types.d.ts → 2026-01/types.d.ts} +1 -2
  15. package/dist/2026-04/client.d.ts +143 -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 +279 -0
  33. package/dist/2026-04/openapi/types.gen.d.ts +4502 -0
  34. package/dist/2026-04/types.d.ts +57 -0
  35. package/dist/index.d.ts +1 -3
  36. package/dist/index.js +6 -4
  37. package/dist/unstable/client.d.ts +143 -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 +279 -0
  55. package/dist/unstable/openapi/types.gen.d.ts +4502 -0
  56. package/dist/unstable/types.d.ts +57 -0
  57. package/package.json +52 -22
  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
@@ -97,7 +97,7 @@ export type List = {
97
97
  */
98
98
  access: 'private' | 'public';
99
99
  };
100
- export type _Error = {
100
+ export type Error = {
101
101
  /**
102
102
  * The error message
103
103
  */
@@ -119,7 +119,7 @@ export type ErrorResponse = {
119
119
  /**
120
120
  * Error details
121
121
  */
122
- error: _Error;
122
+ error: Error;
123
123
  };
124
124
  export type PageInfo = {
125
125
  /**
@@ -436,6 +436,14 @@ export type OrderLineItem = {
436
436
  * The original total price for this order item
437
437
  */
438
438
  originalTotalPrice: Money;
439
+ /**
440
+ * Whether the line item requires shipping
441
+ */
442
+ requiresShipping: boolean;
443
+ /**
444
+ * The unfulfilled quantity of the line item
445
+ */
446
+ unfulfilledQuantity: number;
439
447
  };
440
448
  export type TrackingInfo = {
441
449
  /**
@@ -511,9 +519,9 @@ export type OrderDetailDto = {
511
519
  */
512
520
  processedAt: string;
513
521
  /**
514
- * The total number of items in the order
522
+ * The total quantity of items in the order
515
523
  */
516
- itemCount: number;
524
+ totalQuantity: number;
517
525
  /**
518
526
  * The total price of the order
519
527
  */
@@ -525,11 +533,11 @@ export type OrderDetailDto = {
525
533
  /**
526
534
  * Array of fulfillments
527
535
  */
528
- fulfillments: Fulfillment;
536
+ fulfillments: Array<Fulfillment>;
529
537
  /**
530
538
  * Array of unfulfilled line items
531
539
  */
532
- unfulfilledLineItems: OrderLineItem;
540
+ unfulfilledLineItems: Array<OrderLineItem>;
533
541
  };
534
542
  export type OrderDto = {
535
543
  /**
@@ -549,9 +557,9 @@ export type OrderDto = {
549
557
  */
550
558
  displayStatus: 'FULFILLED' | 'IN_PROGRESS' | 'PARTIALLY_FULFILLED' | 'UNFULFILLED';
551
559
  /**
552
- * The number of line items in the order
560
+ * The total quantity of items in the order
553
561
  */
554
- itemCount: number;
562
+ totalQuantity: number;
555
563
  /**
556
564
  * The total price of the order
557
565
  */
@@ -591,6 +599,192 @@ export type SharedList = {
591
599
  */
592
600
  updatedAt: string;
593
601
  };
602
+ export type NotificationUnreadCount = {
603
+ /**
604
+ * The total number of unread notifications
605
+ */
606
+ count: number;
607
+ };
608
+ export type MarkReadDto = {
609
+ /**
610
+ * Array of notification IDs to mark as read
611
+ */
612
+ notificationIds: Array<string>;
613
+ };
614
+ export type Notification = {
615
+ /**
616
+ * The ID of the notification
617
+ */
618
+ id: string;
619
+ /**
620
+ * The type of notification. Use this to look up localized title and message on the client.
621
+ */
622
+ type: 'price_drop' | 'back_in_stock' | 'low_in_stock';
623
+ /**
624
+ * The Shopify product ID
625
+ */
626
+ productId?: string;
627
+ /**
628
+ * The Shopify variant ID
629
+ */
630
+ variantId?: string;
631
+ /**
632
+ * Whether the notification has been read
633
+ */
634
+ read: boolean;
635
+ /**
636
+ * The date and time the notification was created
637
+ */
638
+ createdAt: string;
639
+ /**
640
+ * The date and time the notification was last updated
641
+ */
642
+ updatedAt: string;
643
+ };
644
+ export type SubscriptionQueryDto = {
645
+ /**
646
+ * Filter subscriptions by type
647
+ */
648
+ type?: 'back_in_stock';
649
+ /**
650
+ * Filter subscriptions by status
651
+ */
652
+ status?: 'active' | 'cancelled' | 'fulfilled';
653
+ /**
654
+ * Filter subscriptions by product ID
655
+ */
656
+ productId?: string;
657
+ /**
658
+ * Number of subscriptions to return
659
+ */
660
+ limit?: number;
661
+ /**
662
+ * The page cursor for pagination
663
+ */
664
+ page?: string;
665
+ };
666
+ export type UpdateSubscriptionInput = {
667
+ /**
668
+ * The status of the subscription
669
+ */
670
+ status?: 'active' | 'cancelled' | 'fulfilled';
671
+ /**
672
+ * The Shopify variant ID
673
+ */
674
+ variantId?: {
675
+ [key: string]: unknown;
676
+ } | null;
677
+ };
678
+ export type CreateSubscriptionInput = {
679
+ /**
680
+ * The contact information for the subscription (phone or email)
681
+ */
682
+ contact: string;
683
+ /**
684
+ * The Shopify product ID
685
+ */
686
+ productId: string;
687
+ /**
688
+ * The Shopify variant ID
689
+ */
690
+ variantId?: string;
691
+ /**
692
+ * The type of subscription
693
+ */
694
+ type: 'back_in_stock';
695
+ /**
696
+ * The channel for the subscription
697
+ */
698
+ channel: 'email' | 'sms' | 'whatsapp';
699
+ /**
700
+ * The market for the subscription
701
+ */
702
+ market?: string;
703
+ /**
704
+ * The country for the subscription
705
+ */
706
+ country?: string;
707
+ /**
708
+ * The language for the subscription
709
+ */
710
+ language?: string;
711
+ };
712
+ export type Subscription = {
713
+ /**
714
+ * The ID of the subscription
715
+ */
716
+ id: string;
717
+ /**
718
+ * The contact information for the subscription (phone or email)
719
+ */
720
+ contact: string;
721
+ /**
722
+ * The Shopify product ID
723
+ */
724
+ productId: string;
725
+ /**
726
+ * The Shopify variant ID
727
+ */
728
+ variantId?: {
729
+ [key: string]: unknown;
730
+ } | null;
731
+ /**
732
+ * The type of subscription
733
+ */
734
+ type: 'back_in_stock';
735
+ /**
736
+ * The channel for the subscription
737
+ */
738
+ channel: 'email' | 'sms' | 'whatsapp';
739
+ /**
740
+ * The status of the subscription
741
+ */
742
+ status: 'active' | 'cancelled' | 'fulfilled';
743
+ /**
744
+ * The date and time the subscription was created
745
+ */
746
+ createdAt: string;
747
+ /**
748
+ * The date and time the subscription was last updated
749
+ */
750
+ updatedAt: string;
751
+ /**
752
+ * The date and time the subscription was cancelled
753
+ */
754
+ cancelledAt?: {
755
+ [key: string]: unknown;
756
+ } | null;
757
+ /**
758
+ * The date and time the subscription was fulfilled
759
+ */
760
+ fulfilledAt?: {
761
+ [key: string]: unknown;
762
+ } | null;
763
+ /**
764
+ * The date and time the last notification was sent
765
+ */
766
+ lastNotificationAt?: {
767
+ [key: string]: unknown;
768
+ } | null;
769
+ /**
770
+ * The market for the subscription
771
+ */
772
+ market?: {
773
+ [key: string]: unknown;
774
+ } | null;
775
+ /**
776
+ * The country for the subscription
777
+ */
778
+ country?: {
779
+ [key: string]: unknown;
780
+ } | null;
781
+ /**
782
+ * The language for the subscription
783
+ */
784
+ language?: {
785
+ [key: string]: unknown;
786
+ } | null;
787
+ };
594
788
  export type ListControllerFindData = {
595
789
  body?: never;
596
790
  path?: never;
@@ -766,7 +960,9 @@ export type ListControllerDeleteByIdResponses = {
766
960
  /**
767
961
  * The list has been successfully deleted.
768
962
  */
769
- 204: void;
963
+ 200: Response & {
964
+ data?: List;
965
+ };
770
966
  };
771
967
  export type ListControllerDeleteByIdResponse = ListControllerDeleteByIdResponses[keyof ListControllerDeleteByIdResponses];
772
968
  export type ListControllerFindByIdData = {
@@ -1112,7 +1308,9 @@ export type ItemControllerDeleteResponses = {
1112
1308
  /**
1113
1309
  * The items have been successfully deleted.
1114
1310
  */
1115
- 204: void;
1311
+ 200: Response & {
1312
+ data?: Array<Item>;
1313
+ };
1116
1314
  };
1117
1315
  export type ItemControllerDeleteResponse = ItemControllerDeleteResponses[keyof ItemControllerDeleteResponses];
1118
1316
  export type ItemControllerFindData = {
@@ -1366,7 +1564,9 @@ export type ItemControllerDeleteByIdResponses = {
1366
1564
  /**
1367
1565
  * The item has been successfully deleted.
1368
1566
  */
1369
- 204: void;
1567
+ 200: Response & {
1568
+ data?: Item;
1569
+ };
1370
1570
  };
1371
1571
  export type ItemControllerDeleteByIdResponse = ItemControllerDeleteByIdResponses[keyof ItemControllerDeleteByIdResponses];
1372
1572
  export type ItemControllerFindByIdData = {
@@ -1973,16 +2173,13 @@ export type AnalyticsControllerLoadNewListsResponses = {
1973
2173
  };
1974
2174
  };
1975
2175
  export type AnalyticsControllerLoadNewListsResponse = AnalyticsControllerLoadNewListsResponses[keyof AnalyticsControllerLoadNewListsResponses];
1976
- export type TrackingControllerTrackData = {
2176
+ export type TrackingControllerCollectData = {
1977
2177
  body: TrackingEventRequestDto;
1978
- headers: {
1979
- referer: string;
1980
- };
1981
2178
  path?: never;
1982
2179
  query?: never;
1983
- url: '/tracking';
2180
+ url: '/collect';
1984
2181
  };
1985
- export type TrackingControllerTrackErrors = {
2182
+ export type TrackingControllerCollectErrors = {
1986
2183
  /**
1987
2184
  * Bad Request
1988
2185
  */
@@ -2011,14 +2208,14 @@ export type TrackingControllerTrackErrors = {
2011
2208
  };
2012
2209
  };
2013
2210
  };
2014
- export type TrackingControllerTrackError = TrackingControllerTrackErrors[keyof TrackingControllerTrackErrors];
2015
- export type TrackingControllerTrackResponses = {
2211
+ export type TrackingControllerCollectError = TrackingControllerCollectErrors[keyof TrackingControllerCollectErrors];
2212
+ export type TrackingControllerCollectResponses = {
2016
2213
  /**
2017
2214
  * Event tracked successfully
2018
2215
  */
2019
2216
  204: void;
2020
2217
  };
2021
- export type TrackingControllerTrackResponse = TrackingControllerTrackResponses[keyof TrackingControllerTrackResponses];
2218
+ export type TrackingControllerCollectResponse = TrackingControllerCollectResponses[keyof TrackingControllerCollectResponses];
2022
2219
  export type OrdersControllerFindData = {
2023
2220
  body?: never;
2024
2221
  path?: never;
@@ -2379,3 +2576,561 @@ export type SharedListsControllerFindAllResponses = {
2379
2576
  };
2380
2577
  };
2381
2578
  export type SharedListsControllerFindAllResponse = SharedListsControllerFindAllResponses[keyof SharedListsControllerFindAllResponses];
2579
+ export type NotificationsControllerFindData = {
2580
+ body?: never;
2581
+ path?: never;
2582
+ query?: {
2583
+ /**
2584
+ * Filter notifications by read status. Use read=false for unread notifications.
2585
+ */
2586
+ read?: boolean;
2587
+ /**
2588
+ * Filter notifications by type
2589
+ */
2590
+ type?: 'price_drop' | 'back_in_stock' | 'low_in_stock';
2591
+ /**
2592
+ * Number of notifications to return
2593
+ */
2594
+ limit?: number;
2595
+ /**
2596
+ * The page cursor for pagination
2597
+ */
2598
+ page?: string;
2599
+ };
2600
+ url: '/notifications';
2601
+ };
2602
+ export type NotificationsControllerFindErrors = {
2603
+ /**
2604
+ * Bad Request
2605
+ */
2606
+ 400: ErrorResponse & {
2607
+ error?: {
2608
+ statusCode?: number;
2609
+ error?: string;
2610
+ };
2611
+ };
2612
+ /**
2613
+ * Unauthorized
2614
+ */
2615
+ 401: ErrorResponse & {
2616
+ error?: {
2617
+ statusCode?: number;
2618
+ error?: string;
2619
+ };
2620
+ };
2621
+ /**
2622
+ * Forbidden
2623
+ */
2624
+ 403: ErrorResponse & {
2625
+ error?: {
2626
+ statusCode?: number;
2627
+ error?: string;
2628
+ };
2629
+ };
2630
+ /**
2631
+ * Not Found
2632
+ */
2633
+ 404: ErrorResponse & {
2634
+ error?: {
2635
+ statusCode?: number;
2636
+ error?: string;
2637
+ };
2638
+ };
2639
+ };
2640
+ export type NotificationsControllerFindError = NotificationsControllerFindErrors[keyof NotificationsControllerFindErrors];
2641
+ export type NotificationsControllerFindResponses = {
2642
+ /**
2643
+ * Returns all notifications as paginated response
2644
+ */
2645
+ 200: PaginatedResponse & {
2646
+ data?: Array<Notification>;
2647
+ };
2648
+ };
2649
+ export type NotificationsControllerFindResponse = NotificationsControllerFindResponses[keyof NotificationsControllerFindResponses];
2650
+ export type NotificationsControllerGetUnreadCountData = {
2651
+ body?: never;
2652
+ path?: never;
2653
+ query?: never;
2654
+ url: '/notifications/unread/count';
2655
+ };
2656
+ export type NotificationsControllerGetUnreadCountErrors = {
2657
+ /**
2658
+ * Bad Request
2659
+ */
2660
+ 400: ErrorResponse & {
2661
+ error?: {
2662
+ statusCode?: number;
2663
+ error?: string;
2664
+ };
2665
+ };
2666
+ /**
2667
+ * Unauthorized
2668
+ */
2669
+ 401: ErrorResponse & {
2670
+ error?: {
2671
+ statusCode?: number;
2672
+ error?: string;
2673
+ };
2674
+ };
2675
+ /**
2676
+ * Forbidden
2677
+ */
2678
+ 403: ErrorResponse & {
2679
+ error?: {
2680
+ statusCode?: number;
2681
+ error?: string;
2682
+ };
2683
+ };
2684
+ /**
2685
+ * Not Found
2686
+ */
2687
+ 404: ErrorResponse & {
2688
+ error?: {
2689
+ statusCode?: number;
2690
+ error?: string;
2691
+ };
2692
+ };
2693
+ };
2694
+ export type NotificationsControllerGetUnreadCountError = NotificationsControllerGetUnreadCountErrors[keyof NotificationsControllerGetUnreadCountErrors];
2695
+ export type NotificationsControllerGetUnreadCountResponses = {
2696
+ /**
2697
+ * Returns the total count of unread notifications
2698
+ */
2699
+ 200: Response & {
2700
+ data?: NotificationUnreadCount;
2701
+ };
2702
+ };
2703
+ export type NotificationsControllerGetUnreadCountResponse = NotificationsControllerGetUnreadCountResponses[keyof NotificationsControllerGetUnreadCountResponses];
2704
+ export type NotificationsControllerMarkAsReadData = {
2705
+ body: MarkReadDto;
2706
+ path?: never;
2707
+ query?: never;
2708
+ url: '/notifications/read';
2709
+ };
2710
+ export type NotificationsControllerMarkAsReadErrors = {
2711
+ /**
2712
+ * Bad Request
2713
+ */
2714
+ 400: ErrorResponse & {
2715
+ error?: {
2716
+ statusCode?: number;
2717
+ error?: string;
2718
+ };
2719
+ };
2720
+ /**
2721
+ * Unauthorized
2722
+ */
2723
+ 401: ErrorResponse & {
2724
+ error?: {
2725
+ statusCode?: number;
2726
+ error?: string;
2727
+ };
2728
+ };
2729
+ /**
2730
+ * Forbidden
2731
+ */
2732
+ 403: ErrorResponse & {
2733
+ error?: {
2734
+ statusCode?: number;
2735
+ error?: string;
2736
+ };
2737
+ };
2738
+ /**
2739
+ * Not Found
2740
+ */
2741
+ 404: ErrorResponse & {
2742
+ error?: {
2743
+ statusCode?: number;
2744
+ error?: string;
2745
+ };
2746
+ };
2747
+ };
2748
+ export type NotificationsControllerMarkAsReadError = NotificationsControllerMarkAsReadErrors[keyof NotificationsControllerMarkAsReadErrors];
2749
+ export type NotificationsControllerMarkAsReadResponses = {
2750
+ /**
2751
+ * Notifications marked as read successfully
2752
+ */
2753
+ 200: Response & {
2754
+ data?: Array<Notification>;
2755
+ };
2756
+ };
2757
+ export type NotificationsControllerMarkAsReadResponse = NotificationsControllerMarkAsReadResponses[keyof NotificationsControllerMarkAsReadResponses];
2758
+ export type NotificationsControllerDeleteByIdData = {
2759
+ body?: never;
2760
+ path: {
2761
+ /**
2762
+ * The ID of the notification
2763
+ */
2764
+ id: string;
2765
+ };
2766
+ query?: never;
2767
+ url: '/notifications/{id}';
2768
+ };
2769
+ export type NotificationsControllerDeleteByIdErrors = {
2770
+ /**
2771
+ * Bad Request
2772
+ */
2773
+ 400: ErrorResponse & {
2774
+ error?: {
2775
+ statusCode?: number;
2776
+ error?: string;
2777
+ };
2778
+ };
2779
+ /**
2780
+ * Unauthorized
2781
+ */
2782
+ 401: ErrorResponse & {
2783
+ error?: {
2784
+ statusCode?: number;
2785
+ error?: string;
2786
+ };
2787
+ };
2788
+ /**
2789
+ * Forbidden
2790
+ */
2791
+ 403: ErrorResponse & {
2792
+ error?: {
2793
+ statusCode?: number;
2794
+ error?: string;
2795
+ };
2796
+ };
2797
+ /**
2798
+ * Not Found
2799
+ */
2800
+ 404: ErrorResponse & {
2801
+ error?: {
2802
+ statusCode?: number;
2803
+ error?: string;
2804
+ };
2805
+ };
2806
+ };
2807
+ export type NotificationsControllerDeleteByIdError = NotificationsControllerDeleteByIdErrors[keyof NotificationsControllerDeleteByIdErrors];
2808
+ export type NotificationsControllerDeleteByIdResponses = {
2809
+ /**
2810
+ * The notification has been successfully deleted.
2811
+ */
2812
+ 200: Response & {
2813
+ data?: Notification;
2814
+ };
2815
+ };
2816
+ export type NotificationsControllerDeleteByIdResponse = NotificationsControllerDeleteByIdResponses[keyof NotificationsControllerDeleteByIdResponses];
2817
+ export type SubscriptionsControllerFindData = {
2818
+ body?: never;
2819
+ path?: never;
2820
+ query?: {
2821
+ /**
2822
+ * Filter subscriptions by type
2823
+ */
2824
+ type?: 'back_in_stock';
2825
+ /**
2826
+ * Filter subscriptions by status
2827
+ */
2828
+ status?: 'active' | 'cancelled' | 'fulfilled';
2829
+ /**
2830
+ * Filter subscriptions by product ID
2831
+ */
2832
+ productId?: string;
2833
+ /**
2834
+ * Number of subscriptions to return
2835
+ */
2836
+ limit?: number;
2837
+ /**
2838
+ * The page cursor for pagination
2839
+ */
2840
+ page?: string;
2841
+ };
2842
+ url: '/subscriptions';
2843
+ };
2844
+ export type SubscriptionsControllerFindErrors = {
2845
+ /**
2846
+ * Bad Request
2847
+ */
2848
+ 400: ErrorResponse & {
2849
+ error?: {
2850
+ statusCode?: number;
2851
+ error?: string;
2852
+ };
2853
+ };
2854
+ /**
2855
+ * Unauthorized
2856
+ */
2857
+ 401: ErrorResponse & {
2858
+ error?: {
2859
+ statusCode?: number;
2860
+ error?: string;
2861
+ };
2862
+ };
2863
+ /**
2864
+ * Forbidden
2865
+ */
2866
+ 403: ErrorResponse & {
2867
+ error?: {
2868
+ statusCode?: number;
2869
+ error?: string;
2870
+ };
2871
+ };
2872
+ /**
2873
+ * Not Found
2874
+ */
2875
+ 404: ErrorResponse & {
2876
+ error?: {
2877
+ statusCode?: number;
2878
+ error?: string;
2879
+ };
2880
+ };
2881
+ };
2882
+ export type SubscriptionsControllerFindError = SubscriptionsControllerFindErrors[keyof SubscriptionsControllerFindErrors];
2883
+ export type SubscriptionsControllerFindResponses = {
2884
+ /**
2885
+ * Returns all subscriptions as paginated response
2886
+ */
2887
+ 200: PaginatedResponse & {
2888
+ data?: Array<Subscription>;
2889
+ };
2890
+ };
2891
+ export type SubscriptionsControllerFindResponse = SubscriptionsControllerFindResponses[keyof SubscriptionsControllerFindResponses];
2892
+ export type SubscriptionsControllerCreateData = {
2893
+ body: CreateSubscriptionInput;
2894
+ headers?: {
2895
+ /**
2896
+ * The language for the user (e.g., 'en', 'de', 'fr')
2897
+ */
2898
+ language?: string;
2899
+ /**
2900
+ * The country for the user (e.g., 'US', 'DE', 'FR')
2901
+ */
2902
+ country?: string;
2903
+ /**
2904
+ * The market for the user (e.g. 1234567)
2905
+ */
2906
+ market?: string;
2907
+ };
2908
+ path?: never;
2909
+ query?: never;
2910
+ url: '/subscriptions';
2911
+ };
2912
+ export type SubscriptionsControllerCreateErrors = {
2913
+ /**
2914
+ * Bad Request
2915
+ */
2916
+ 400: ErrorResponse & {
2917
+ error?: {
2918
+ statusCode?: number;
2919
+ error?: string;
2920
+ };
2921
+ };
2922
+ /**
2923
+ * Unauthorized
2924
+ */
2925
+ 401: ErrorResponse & {
2926
+ error?: {
2927
+ statusCode?: number;
2928
+ error?: string;
2929
+ };
2930
+ };
2931
+ /**
2932
+ * Forbidden
2933
+ */
2934
+ 403: ErrorResponse & {
2935
+ error?: {
2936
+ statusCode?: number;
2937
+ error?: string;
2938
+ };
2939
+ };
2940
+ /**
2941
+ * Not Found
2942
+ */
2943
+ 404: ErrorResponse & {
2944
+ error?: {
2945
+ statusCode?: number;
2946
+ error?: string;
2947
+ };
2948
+ };
2949
+ };
2950
+ export type SubscriptionsControllerCreateError = SubscriptionsControllerCreateErrors[keyof SubscriptionsControllerCreateErrors];
2951
+ export type SubscriptionsControllerCreateResponses = {
2952
+ /**
2953
+ * The subscription has been successfully created.
2954
+ */
2955
+ 201: Response & {
2956
+ data?: Subscription;
2957
+ };
2958
+ };
2959
+ export type SubscriptionsControllerCreateResponse = SubscriptionsControllerCreateResponses[keyof SubscriptionsControllerCreateResponses];
2960
+ export type SubscriptionsControllerDeleteData = {
2961
+ body?: never;
2962
+ path: {
2963
+ /**
2964
+ * The ID of the subscription to delete
2965
+ */
2966
+ id: string;
2967
+ };
2968
+ query?: never;
2969
+ url: '/subscriptions/{id}';
2970
+ };
2971
+ export type SubscriptionsControllerDeleteErrors = {
2972
+ /**
2973
+ * Bad Request
2974
+ */
2975
+ 400: ErrorResponse & {
2976
+ error?: {
2977
+ statusCode?: number;
2978
+ error?: string;
2979
+ };
2980
+ };
2981
+ /**
2982
+ * Unauthorized
2983
+ */
2984
+ 401: ErrorResponse & {
2985
+ error?: {
2986
+ statusCode?: number;
2987
+ error?: string;
2988
+ };
2989
+ };
2990
+ /**
2991
+ * Forbidden
2992
+ */
2993
+ 403: ErrorResponse & {
2994
+ error?: {
2995
+ statusCode?: number;
2996
+ error?: string;
2997
+ };
2998
+ };
2999
+ /**
3000
+ * Not Found
3001
+ */
3002
+ 404: ErrorResponse & {
3003
+ error?: {
3004
+ statusCode?: number;
3005
+ error?: string;
3006
+ };
3007
+ };
3008
+ };
3009
+ export type SubscriptionsControllerDeleteError = SubscriptionsControllerDeleteErrors[keyof SubscriptionsControllerDeleteErrors];
3010
+ export type SubscriptionsControllerDeleteResponses = {
3011
+ /**
3012
+ * The subscription has been successfully deleted.
3013
+ */
3014
+ 200: Response & {
3015
+ data?: Subscription;
3016
+ };
3017
+ };
3018
+ export type SubscriptionsControllerDeleteResponse = SubscriptionsControllerDeleteResponses[keyof SubscriptionsControllerDeleteResponses];
3019
+ export type SubscriptionsControllerFindByIdData = {
3020
+ body?: never;
3021
+ path: {
3022
+ /**
3023
+ * The ID of the subscription
3024
+ */
3025
+ id: string;
3026
+ };
3027
+ query?: never;
3028
+ url: '/subscriptions/{id}';
3029
+ };
3030
+ export type SubscriptionsControllerFindByIdErrors = {
3031
+ /**
3032
+ * Bad Request
3033
+ */
3034
+ 400: ErrorResponse & {
3035
+ error?: {
3036
+ statusCode?: number;
3037
+ error?: string;
3038
+ };
3039
+ };
3040
+ /**
3041
+ * Unauthorized
3042
+ */
3043
+ 401: ErrorResponse & {
3044
+ error?: {
3045
+ statusCode?: number;
3046
+ error?: string;
3047
+ };
3048
+ };
3049
+ /**
3050
+ * Forbidden
3051
+ */
3052
+ 403: ErrorResponse & {
3053
+ error?: {
3054
+ statusCode?: number;
3055
+ error?: string;
3056
+ };
3057
+ };
3058
+ /**
3059
+ * Not Found
3060
+ */
3061
+ 404: ErrorResponse & {
3062
+ error?: {
3063
+ statusCode?: number;
3064
+ error?: string;
3065
+ };
3066
+ };
3067
+ };
3068
+ export type SubscriptionsControllerFindByIdError = SubscriptionsControllerFindByIdErrors[keyof SubscriptionsControllerFindByIdErrors];
3069
+ export type SubscriptionsControllerFindByIdResponses = {
3070
+ /**
3071
+ * The subscription has been successfully retrieved.
3072
+ */
3073
+ 200: Response & {
3074
+ data?: Subscription;
3075
+ };
3076
+ };
3077
+ export type SubscriptionsControllerFindByIdResponse = SubscriptionsControllerFindByIdResponses[keyof SubscriptionsControllerFindByIdResponses];
3078
+ export type SubscriptionsControllerUpdateData = {
3079
+ body: UpdateSubscriptionInput;
3080
+ path: {
3081
+ /**
3082
+ * The ID of the subscription to update
3083
+ */
3084
+ id: string;
3085
+ };
3086
+ query?: never;
3087
+ url: '/subscriptions/{id}';
3088
+ };
3089
+ export type SubscriptionsControllerUpdateErrors = {
3090
+ /**
3091
+ * Bad Request
3092
+ */
3093
+ 400: ErrorResponse & {
3094
+ error?: {
3095
+ statusCode?: number;
3096
+ error?: string;
3097
+ };
3098
+ };
3099
+ /**
3100
+ * Unauthorized
3101
+ */
3102
+ 401: ErrorResponse & {
3103
+ error?: {
3104
+ statusCode?: number;
3105
+ error?: string;
3106
+ };
3107
+ };
3108
+ /**
3109
+ * Forbidden
3110
+ */
3111
+ 403: ErrorResponse & {
3112
+ error?: {
3113
+ statusCode?: number;
3114
+ error?: string;
3115
+ };
3116
+ };
3117
+ /**
3118
+ * Not Found
3119
+ */
3120
+ 404: ErrorResponse & {
3121
+ error?: {
3122
+ statusCode?: number;
3123
+ error?: string;
3124
+ };
3125
+ };
3126
+ };
3127
+ export type SubscriptionsControllerUpdateError = SubscriptionsControllerUpdateErrors[keyof SubscriptionsControllerUpdateErrors];
3128
+ export type SubscriptionsControllerUpdateResponses = {
3129
+ /**
3130
+ * The subscription has been successfully updated.
3131
+ */
3132
+ 200: Response & {
3133
+ data?: Subscription;
3134
+ };
3135
+ };
3136
+ export type SubscriptionsControllerUpdateResponse = SubscriptionsControllerUpdateResponses[keyof SubscriptionsControllerUpdateResponses];