@botpress/api 1.71.0 → 1.71.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as opapi from '@bpinternal/opapi';
2
- export type State = opapi.State<'Invoice', 'x-workspace-id', 'invoice'>;
2
+ export type State = opapi.State<'Invoice' | 'Subscription' | 'SubscriptionPreview' | 'SubscriptionUpdateParams' | 'SubscriptionDetails' | 'SetPlanParams' | 'SetAddonsParams', 'x-workspace-id', 'invoice' | 'subscription'>;
3
3
  export declare const state: {
4
4
  operations: {
5
5
  getBillingReadonly: {
@@ -61,43 +61,42 @@ export declare const state: {
61
61
  description: {
62
62
  type: "string";
63
63
  };
64
- providerProductId: {
65
- type: "string";
66
- };
67
64
  prices: {
68
65
  type: "object";
69
- additionalProperties: {
70
- type: "object";
71
- properties: {
72
- providerPriceId: {
73
- type: "string";
74
- };
75
- amount: {
76
- type: "number";
77
- };
78
- currency: {
79
- type: "string";
80
- enum: string[];
81
- };
82
- interval: {
83
- type: "string";
84
- enum: string[];
66
+ properties: {
67
+ month: {
68
+ type: "object";
69
+ properties: {
70
+ amount: {
71
+ type: "number";
72
+ };
73
+ currency: {
74
+ type: "string";
75
+ };
85
76
  };
86
- metadata: {
87
- type: "object";
88
- additionalProperties: {
77
+ required: string[];
78
+ additionalProperties: false;
79
+ };
80
+ year: {
81
+ type: "object";
82
+ properties: {
83
+ amount: {
84
+ type: "number";
85
+ };
86
+ currency: {
89
87
  type: "string";
90
88
  };
91
89
  };
90
+ required: string[];
91
+ additionalProperties: false;
92
92
  };
93
- required: string[];
94
- additionalProperties: false;
95
93
  };
94
+ additionalProperties: false;
96
95
  };
97
96
  features: {
98
97
  type: "object";
99
98
  additionalProperties: {
100
- nullable: true;
99
+ type: "number";
101
100
  };
102
101
  };
103
102
  metadata: {
@@ -138,42 +137,39 @@ export declare const state: {
138
137
  description: {
139
138
  type: "string";
140
139
  };
141
- providerProductId: {
142
- type: "string";
143
- };
144
140
  prices: {
145
141
  type: "object";
146
- additionalProperties: {
147
- type: "object";
148
- properties: {
149
- providerPriceId: {
150
- type: "string";
151
- };
152
- amount: {
153
- type: "number";
154
- };
155
- currency: {
156
- type: "string";
157
- enum: string[];
158
- };
159
- interval: {
160
- type: "string";
161
- enum: string[];
142
+ properties: {
143
+ month: {
144
+ type: "object";
145
+ properties: {
146
+ amount: {
147
+ type: "number";
148
+ };
149
+ currency: {
150
+ type: "string";
151
+ };
162
152
  };
163
- metadata: {
164
- type: "object";
165
- additionalProperties: {
153
+ required: string[];
154
+ };
155
+ year: {
156
+ type: "object";
157
+ properties: {
158
+ amount: {
159
+ type: "number";
160
+ };
161
+ currency: {
166
162
  type: "string";
167
163
  };
168
164
  };
165
+ required: string[];
169
166
  };
170
- required: string[];
171
167
  };
172
168
  };
173
169
  features: {
174
170
  type: "object";
175
171
  additionalProperties: {
176
- nullable: true;
172
+ type: "number";
177
173
  };
178
174
  };
179
175
  metadata: {
@@ -184,6 +180,7 @@ export declare const state: {
184
180
  };
185
181
  };
186
182
  required: string[];
183
+ title: string;
187
184
  };
188
185
  title: string;
189
186
  };
@@ -220,38 +217,8 @@ export declare const state: {
220
217
  description: {
221
218
  type: "string";
222
219
  };
223
- providerProductId: {
224
- type: "string";
225
- };
226
- prices: {
227
- type: "object";
228
- additionalProperties: {
229
- type: "object";
230
- properties: {
231
- providerPriceId: {
232
- type: "string";
233
- };
234
- amount: {
235
- type: "number";
236
- };
237
- currency: {
238
- type: "string";
239
- enum: string[];
240
- };
241
- interval: {
242
- type: "string";
243
- enum: string[];
244
- };
245
- metadata: {
246
- type: "object";
247
- additionalProperties: {
248
- type: "string";
249
- };
250
- };
251
- };
252
- required: string[];
253
- additionalProperties: false;
254
- };
220
+ price: {
221
+ type: "number";
255
222
  };
256
223
  feature: {
257
224
  type: "string";
@@ -298,37 +265,8 @@ export declare const state: {
298
265
  description: {
299
266
  type: "string";
300
267
  };
301
- providerProductId: {
302
- type: "string";
303
- };
304
- prices: {
305
- type: "object";
306
- additionalProperties: {
307
- type: "object";
308
- properties: {
309
- providerPriceId: {
310
- type: "string";
311
- };
312
- amount: {
313
- type: "number";
314
- };
315
- currency: {
316
- type: "string";
317
- enum: string[];
318
- };
319
- interval: {
320
- type: "string";
321
- enum: string[];
322
- };
323
- metadata: {
324
- type: "object";
325
- additionalProperties: {
326
- type: "string";
327
- };
328
- };
329
- };
330
- required: string[];
331
- };
268
+ price: {
269
+ type: "number";
332
270
  };
333
271
  feature: {
334
272
  type: "string";
@@ -345,172 +283,151 @@ export declare const state: {
345
283
  };
346
284
  };
347
285
  required: string[];
286
+ title: string;
348
287
  };
349
288
  title: string;
350
289
  };
351
290
  };
352
291
  parameters: {};
353
292
  };
354
- listInvoices: {
293
+ getCurrentSubscription: {
355
294
  name: string;
356
295
  description: string;
357
296
  method: "get";
358
297
  path: string;
359
- parameters: {
360
- nextToken: {
361
- in: "query";
362
- description: string;
363
- type: "string";
364
- };
365
- "x-workspace-id": {
366
- in: "header";
367
- type: "string";
368
- description: string;
369
- required: true;
370
- };
371
- };
372
298
  response: {
373
299
  description: string;
374
300
  status: 200;
375
301
  schema: {
376
302
  type: "object";
377
303
  properties: {
378
- invoices: {
379
- type: "array";
380
- items: {
381
- type: "object";
382
- properties: {
383
- id: {
384
- type: "string";
385
- };
386
- amount: {
387
- type: "number";
388
- };
389
- currency: {
390
- type: "string";
391
- };
392
- status: {
393
- type: "string";
394
- enum: string[];
395
- };
396
- createdAt: {
397
- type: "string";
398
- };
399
- periodStart: {
400
- type: "string";
401
- nullable: true;
304
+ plan: {
305
+ type: "object";
306
+ properties: {
307
+ current: {
308
+ type: "object";
309
+ properties: {
310
+ status: {
311
+ type: "string";
312
+ enum: string[];
313
+ };
314
+ planId: {
315
+ type: "string";
316
+ };
317
+ interval: {
318
+ type: "string";
319
+ enum: string[];
320
+ };
321
+ price: {
322
+ type: "number";
323
+ };
324
+ proratedPrice: {
325
+ type: "number";
326
+ };
327
+ cancelAtPeriodEnd: {
328
+ type: "boolean";
329
+ };
330
+ periodEnd: {
331
+ type: "string";
332
+ };
402
333
  };
403
- periodEnd: {
404
- type: "string";
405
- nullable: true;
334
+ required: string[];
335
+ additionalProperties: false;
336
+ };
337
+ next: {
338
+ type: "object";
339
+ properties: {
340
+ planId: {
341
+ type: "string";
342
+ };
343
+ interval: {
344
+ type: "string";
345
+ enum: string[];
346
+ };
347
+ price: {
348
+ type: "number";
349
+ nullable: true;
350
+ };
351
+ effectiveDate: {
352
+ type: "string";
353
+ };
406
354
  };
407
- dueDate: {
408
- type: "string";
409
- nullable: true;
355
+ required: string[];
356
+ nullable: true;
357
+ additionalProperties: false;
358
+ };
359
+ };
360
+ required: string[];
361
+ additionalProperties: false;
362
+ };
363
+ addons: {
364
+ type: "object";
365
+ additionalProperties: {
366
+ type: "object";
367
+ properties: {
368
+ current: {
369
+ type: "object";
370
+ properties: {
371
+ quantity: {
372
+ type: "number";
373
+ };
374
+ price: {
375
+ type: "number";
376
+ };
377
+ proratedPrice: {
378
+ type: "number";
379
+ };
380
+ };
381
+ required: string[];
382
+ additionalProperties: false;
410
383
  };
411
- pdfUrl: {
412
- type: "string";
384
+ next: {
385
+ type: "object";
386
+ properties: {
387
+ quantity: {
388
+ type: "number";
389
+ };
390
+ price: {
391
+ type: "number";
392
+ };
393
+ effectiveDate: {
394
+ type: "string";
395
+ };
396
+ };
397
+ required: string[];
413
398
  nullable: true;
399
+ additionalProperties: false;
414
400
  };
415
401
  };
416
402
  required: string[];
403
+ additionalProperties: false;
417
404
  };
418
405
  };
419
- meta: {
420
- type: "object";
421
- properties: {
422
- nextToken: {
423
- type: "string";
424
- description: string;
425
- };
426
- };
427
- additionalProperties: false;
406
+ yearlyTotal: {
407
+ type: "number";
408
+ };
409
+ monthlyTotal: {
410
+ type: "number";
411
+ };
412
+ proratedTotal: {
413
+ type: "number";
428
414
  };
429
415
  };
430
416
  required: string[];
431
- description: string;
432
417
  title: string;
433
418
  additionalProperties: false;
434
419
  };
435
420
  };
421
+ parameters: {
422
+ "x-workspace-id": {
423
+ in: "header";
424
+ type: "string";
425
+ description: string;
426
+ required: true;
427
+ };
428
+ };
436
429
  };
437
- payInvoice: {
438
- name: string;
439
- description: string;
440
- method: "post";
441
- path: string;
442
- parameters: {
443
- invoiceId: {
444
- in: "path";
445
- type: "string";
446
- description: string;
447
- };
448
- "x-workspace-id": {
449
- in: "header";
450
- type: "string";
451
- description: string;
452
- required: true;
453
- };
454
- };
455
- requestBody: {
456
- description: string;
457
- schema: {
458
- type: "object";
459
- properties: {
460
- idempotencyKey: {
461
- type: "string";
462
- };
463
- };
464
- title: string;
465
- additionalProperties: false;
466
- };
467
- };
468
- response: {
469
- description: string;
470
- status: 200;
471
- schema: {
472
- type: "object";
473
- properties: {
474
- id: {
475
- type: "string";
476
- };
477
- amount: {
478
- type: "number";
479
- };
480
- currency: {
481
- type: "string";
482
- };
483
- status: {
484
- type: "string";
485
- enum: string[];
486
- };
487
- createdAt: {
488
- type: "string";
489
- };
490
- periodStart: {
491
- type: "string";
492
- nullable: true;
493
- };
494
- periodEnd: {
495
- type: "string";
496
- nullable: true;
497
- };
498
- dueDate: {
499
- type: "string";
500
- nullable: true;
501
- };
502
- pdfUrl: {
503
- type: "string";
504
- nullable: true;
505
- };
506
- };
507
- required: string[];
508
- title: string;
509
- additionalProperties: false;
510
- };
511
- };
512
- };
513
- getPaymentMethod: {
430
+ getNextSubscription: {
514
431
  name: string;
515
432
  description: string;
516
433
  method: "get";
@@ -521,29 +438,55 @@ export declare const state: {
521
438
  schema: {
522
439
  type: "object";
523
440
  properties: {
524
- paymentMethod: {
441
+ plan: {
525
442
  type: "object";
526
443
  properties: {
527
- id: {
528
- type: "string";
529
- };
530
- type: {
531
- type: "string";
532
- };
533
- card: {
444
+ current: {
534
445
  type: "object";
535
446
  properties: {
536
- brand: {
447
+ status: {
537
448
  type: "string";
449
+ enum: string[];
538
450
  };
539
- lastFour: {
451
+ planId: {
540
452
  type: "string";
541
453
  };
542
- expMonth: {
454
+ interval: {
455
+ type: "string";
456
+ enum: string[];
457
+ };
458
+ price: {
543
459
  type: "number";
544
460
  };
545
- expYear: {
461
+ proratedPrice: {
462
+ type: "number";
463
+ };
464
+ cancelAtPeriodEnd: {
465
+ type: "boolean";
466
+ };
467
+ periodEnd: {
468
+ type: "string";
469
+ };
470
+ };
471
+ required: string[];
472
+ additionalProperties: false;
473
+ };
474
+ next: {
475
+ type: "object";
476
+ properties: {
477
+ planId: {
478
+ type: "string";
479
+ };
480
+ interval: {
481
+ type: "string";
482
+ enum: string[];
483
+ };
484
+ price: {
546
485
  type: "number";
486
+ nullable: true;
487
+ };
488
+ effectiveDate: {
489
+ type: "string";
547
490
  };
548
491
  };
549
492
  required: string[];
@@ -552,9 +495,60 @@ export declare const state: {
552
495
  };
553
496
  };
554
497
  required: string[];
555
- nullable: true;
556
498
  additionalProperties: false;
557
499
  };
500
+ addons: {
501
+ type: "object";
502
+ additionalProperties: {
503
+ type: "object";
504
+ properties: {
505
+ current: {
506
+ type: "object";
507
+ properties: {
508
+ quantity: {
509
+ type: "number";
510
+ };
511
+ price: {
512
+ type: "number";
513
+ };
514
+ proratedPrice: {
515
+ type: "number";
516
+ };
517
+ };
518
+ required: string[];
519
+ additionalProperties: false;
520
+ };
521
+ next: {
522
+ type: "object";
523
+ properties: {
524
+ quantity: {
525
+ type: "number";
526
+ };
527
+ price: {
528
+ type: "number";
529
+ };
530
+ effectiveDate: {
531
+ type: "string";
532
+ };
533
+ };
534
+ required: string[];
535
+ nullable: true;
536
+ additionalProperties: false;
537
+ };
538
+ };
539
+ required: string[];
540
+ additionalProperties: false;
541
+ };
542
+ };
543
+ yearlyTotal: {
544
+ type: "number";
545
+ };
546
+ monthlyTotal: {
547
+ type: "number";
548
+ };
549
+ proratedTotal: {
550
+ type: "number";
551
+ };
558
552
  };
559
553
  required: string[];
560
554
  title: string;
@@ -570,7 +564,7 @@ export declare const state: {
570
564
  };
571
565
  };
572
566
  };
573
- setPaymentMethod: {
567
+ previewSubscriptionUpdate: {
574
568
  name: string;
575
569
  description: string;
576
570
  method: "post";
@@ -580,8 +574,27 @@ export declare const state: {
580
574
  schema: {
581
575
  type: "object";
582
576
  properties: {
583
- paymentMethodId: {
584
- type: "string";
577
+ plan: {
578
+ type: "object";
579
+ properties: {
580
+ planId: {
581
+ type: "string";
582
+ description: string;
583
+ };
584
+ interval: {
585
+ type: "string";
586
+ enum: string[];
587
+ description: string;
588
+ };
589
+ };
590
+ required: string[];
591
+ additionalProperties: false;
592
+ };
593
+ addons: {
594
+ type: "object";
595
+ additionalProperties: {
596
+ type: "number";
597
+ };
585
598
  description: string;
586
599
  };
587
600
  };
@@ -596,34 +609,174 @@ export declare const state: {
596
609
  schema: {
597
610
  type: "object";
598
611
  properties: {
599
- id: {
600
- type: "string";
612
+ subscription: {
613
+ type: "object";
614
+ properties: {
615
+ plan: {
616
+ type: "object";
617
+ properties: {
618
+ planId: {
619
+ type: "string";
620
+ };
621
+ interval: {
622
+ type: "string";
623
+ enum: string[];
624
+ };
625
+ effectiveDate: {
626
+ type: "string";
627
+ };
628
+ };
629
+ required: string[];
630
+ additionalProperties: false;
631
+ };
632
+ addons: {
633
+ type: "object";
634
+ additionalProperties: {
635
+ type: "object";
636
+ properties: {
637
+ quantity: {
638
+ type: "number";
639
+ };
640
+ effectiveDate: {
641
+ type: "string";
642
+ };
643
+ };
644
+ required: string[];
645
+ additionalProperties: false;
646
+ };
647
+ };
648
+ };
649
+ required: string[];
650
+ additionalProperties: false;
601
651
  };
602
- type: {
652
+ changeType: {
603
653
  type: "string";
654
+ enum: string[];
604
655
  };
605
- card: {
656
+ costs: {
606
657
  type: "object";
607
658
  properties: {
608
- brand: {
609
- type: "string";
610
- };
611
- lastFour: {
612
- type: "string";
659
+ immediate: {
660
+ type: "object";
661
+ properties: {
662
+ total: {
663
+ type: "number";
664
+ };
665
+ lineItems: {
666
+ type: "array";
667
+ items: {
668
+ type: "object";
669
+ properties: {
670
+ type: {
671
+ type: "string";
672
+ enum: string[];
673
+ };
674
+ id: {
675
+ type: "string";
676
+ };
677
+ description: {
678
+ type: "string";
679
+ };
680
+ amount: {
681
+ type: "number";
682
+ };
683
+ quantity: {
684
+ type: "number";
685
+ };
686
+ };
687
+ required: string[];
688
+ description: string;
689
+ };
690
+ };
691
+ };
692
+ required: string[];
693
+ description: string;
694
+ additionalProperties: false;
613
695
  };
614
- expMonth: {
615
- type: "number";
696
+ monthly: {
697
+ type: "object";
698
+ properties: {
699
+ total: {
700
+ type: "number";
701
+ };
702
+ lineItems: {
703
+ type: "array";
704
+ items: {
705
+ type: "object";
706
+ properties: {
707
+ type: {
708
+ type: "string";
709
+ enum: string[];
710
+ };
711
+ id: {
712
+ type: "string";
713
+ };
714
+ description: {
715
+ type: "string";
716
+ };
717
+ amount: {
718
+ type: "number";
719
+ };
720
+ quantity: {
721
+ type: "number";
722
+ };
723
+ };
724
+ required: string[];
725
+ description: string;
726
+ };
727
+ };
728
+ };
729
+ required: string[];
730
+ description: string;
731
+ additionalProperties: false;
616
732
  };
617
- expYear: {
618
- type: "number";
733
+ yearly: {
734
+ type: "object";
735
+ properties: {
736
+ total: {
737
+ type: "number";
738
+ };
739
+ lineItems: {
740
+ type: "array";
741
+ items: {
742
+ type: "object";
743
+ properties: {
744
+ type: {
745
+ type: "string";
746
+ enum: string[];
747
+ };
748
+ id: {
749
+ type: "string";
750
+ };
751
+ description: {
752
+ type: "string";
753
+ };
754
+ amount: {
755
+ type: "number";
756
+ };
757
+ quantity: {
758
+ type: "number";
759
+ };
760
+ };
761
+ required: string[];
762
+ description: string;
763
+ };
764
+ };
765
+ };
766
+ required: string[];
767
+ description: string;
768
+ additionalProperties: false;
619
769
  };
620
770
  };
621
771
  required: string[];
622
- nullable: true;
623
772
  additionalProperties: false;
624
773
  };
774
+ currentPeriodEnd: {
775
+ type: "string";
776
+ };
625
777
  };
626
778
  required: string[];
779
+ description: string;
627
780
  title: string;
628
781
  additionalProperties: false;
629
782
  };
@@ -637,15 +790,29 @@ export declare const state: {
637
790
  };
638
791
  };
639
792
  };
640
- createPaymentMethodIntent: {
793
+ setPlan: {
641
794
  name: string;
642
795
  description: string;
643
- method: "post";
796
+ method: "put";
644
797
  path: string;
645
798
  requestBody: {
646
799
  description: string;
647
800
  schema: {
648
801
  type: "object";
802
+ properties: {
803
+ planId: {
804
+ type: "string";
805
+ };
806
+ interval: {
807
+ type: "string";
808
+ enum: string[];
809
+ };
810
+ testReferenceTime: {
811
+ type: "number";
812
+ };
813
+ };
814
+ required: string[];
815
+ description: string;
649
816
  title: string;
650
817
  additionalProperties: false;
651
818
  };
@@ -656,153 +823,1214 @@ export declare const state: {
656
823
  schema: {
657
824
  type: "object";
658
825
  properties: {
659
- clientSecret: {
660
- type: "string";
661
- };
662
- };
663
- required: string[];
664
- title: string;
665
- additionalProperties: false;
826
+ plan: {
827
+ type: "object";
828
+ properties: {
829
+ current: {
830
+ type: "object";
831
+ properties: {
832
+ status: {
833
+ type: "string";
834
+ enum: string[];
835
+ };
836
+ planId: {
837
+ type: "string";
838
+ };
839
+ interval: {
840
+ type: "string";
841
+ enum: string[];
842
+ };
843
+ price: {
844
+ type: "number";
845
+ };
846
+ proratedPrice: {
847
+ type: "number";
848
+ };
849
+ cancelAtPeriodEnd: {
850
+ type: "boolean";
851
+ };
852
+ periodEnd: {
853
+ type: "string";
854
+ };
855
+ };
856
+ required: string[];
857
+ additionalProperties: false;
858
+ };
859
+ next: {
860
+ type: "object";
861
+ properties: {
862
+ planId: {
863
+ type: "string";
864
+ };
865
+ interval: {
866
+ type: "string";
867
+ enum: string[];
868
+ };
869
+ price: {
870
+ type: "number";
871
+ nullable: true;
872
+ };
873
+ effectiveDate: {
874
+ type: "string";
875
+ };
876
+ };
877
+ required: string[];
878
+ nullable: true;
879
+ additionalProperties: false;
880
+ };
881
+ };
882
+ required: string[];
883
+ additionalProperties: false;
884
+ };
885
+ addons: {
886
+ type: "object";
887
+ additionalProperties: {
888
+ type: "object";
889
+ properties: {
890
+ current: {
891
+ type: "object";
892
+ properties: {
893
+ quantity: {
894
+ type: "number";
895
+ };
896
+ price: {
897
+ type: "number";
898
+ };
899
+ proratedPrice: {
900
+ type: "number";
901
+ };
902
+ };
903
+ required: string[];
904
+ additionalProperties: false;
905
+ };
906
+ next: {
907
+ type: "object";
908
+ properties: {
909
+ quantity: {
910
+ type: "number";
911
+ };
912
+ price: {
913
+ type: "number";
914
+ };
915
+ effectiveDate: {
916
+ type: "string";
917
+ };
918
+ };
919
+ required: string[];
920
+ nullable: true;
921
+ additionalProperties: false;
922
+ };
923
+ };
924
+ required: string[];
925
+ additionalProperties: false;
926
+ };
927
+ };
928
+ yearlyTotal: {
929
+ type: "number";
930
+ };
931
+ monthlyTotal: {
932
+ type: "number";
933
+ };
934
+ proratedTotal: {
935
+ type: "number";
936
+ };
937
+ };
938
+ required: string[];
939
+ description: string;
940
+ title: string;
941
+ additionalProperties: false;
942
+ };
943
+ };
944
+ parameters: {
945
+ "x-workspace-id": {
946
+ in: "header";
947
+ type: "string";
948
+ description: string;
949
+ required: true;
950
+ };
951
+ };
952
+ };
953
+ setAddons: {
954
+ name: string;
955
+ description: string;
956
+ method: "patch";
957
+ path: string;
958
+ requestBody: {
959
+ description: string;
960
+ schema: {
961
+ type: "object";
962
+ properties: {
963
+ addons: {
964
+ type: "object";
965
+ additionalProperties: {
966
+ type: "number";
967
+ };
968
+ };
969
+ };
970
+ required: string[];
971
+ description: string;
972
+ title: string;
973
+ additionalProperties: false;
974
+ };
975
+ };
976
+ response: {
977
+ description: string;
978
+ status: 200;
979
+ schema: {
980
+ type: "object";
981
+ properties: {
982
+ plan: {
983
+ type: "object";
984
+ properties: {
985
+ current: {
986
+ type: "object";
987
+ properties: {
988
+ status: {
989
+ type: "string";
990
+ enum: string[];
991
+ };
992
+ planId: {
993
+ type: "string";
994
+ };
995
+ interval: {
996
+ type: "string";
997
+ enum: string[];
998
+ };
999
+ price: {
1000
+ type: "number";
1001
+ };
1002
+ proratedPrice: {
1003
+ type: "number";
1004
+ };
1005
+ cancelAtPeriodEnd: {
1006
+ type: "boolean";
1007
+ };
1008
+ periodEnd: {
1009
+ type: "string";
1010
+ };
1011
+ };
1012
+ required: string[];
1013
+ additionalProperties: false;
1014
+ };
1015
+ next: {
1016
+ type: "object";
1017
+ properties: {
1018
+ planId: {
1019
+ type: "string";
1020
+ };
1021
+ interval: {
1022
+ type: "string";
1023
+ enum: string[];
1024
+ };
1025
+ price: {
1026
+ type: "number";
1027
+ nullable: true;
1028
+ };
1029
+ effectiveDate: {
1030
+ type: "string";
1031
+ };
1032
+ };
1033
+ required: string[];
1034
+ nullable: true;
1035
+ additionalProperties: false;
1036
+ };
1037
+ };
1038
+ required: string[];
1039
+ additionalProperties: false;
1040
+ };
1041
+ addons: {
1042
+ type: "object";
1043
+ additionalProperties: {
1044
+ type: "object";
1045
+ properties: {
1046
+ current: {
1047
+ type: "object";
1048
+ properties: {
1049
+ quantity: {
1050
+ type: "number";
1051
+ };
1052
+ price: {
1053
+ type: "number";
1054
+ };
1055
+ proratedPrice: {
1056
+ type: "number";
1057
+ };
1058
+ };
1059
+ required: string[];
1060
+ additionalProperties: false;
1061
+ };
1062
+ next: {
1063
+ type: "object";
1064
+ properties: {
1065
+ quantity: {
1066
+ type: "number";
1067
+ };
1068
+ price: {
1069
+ type: "number";
1070
+ };
1071
+ effectiveDate: {
1072
+ type: "string";
1073
+ };
1074
+ };
1075
+ required: string[];
1076
+ nullable: true;
1077
+ additionalProperties: false;
1078
+ };
1079
+ };
1080
+ required: string[];
1081
+ additionalProperties: false;
1082
+ };
1083
+ };
1084
+ yearlyTotal: {
1085
+ type: "number";
1086
+ };
1087
+ monthlyTotal: {
1088
+ type: "number";
1089
+ };
1090
+ proratedTotal: {
1091
+ type: "number";
1092
+ };
1093
+ };
1094
+ required: string[];
1095
+ description: string;
1096
+ title: string;
1097
+ additionalProperties: false;
1098
+ };
1099
+ };
1100
+ parameters: {
1101
+ "x-workspace-id": {
1102
+ in: "header";
1103
+ type: "string";
1104
+ description: string;
1105
+ required: true;
1106
+ };
1107
+ };
1108
+ };
1109
+ listInvoices: {
1110
+ name: string;
1111
+ description: string;
1112
+ method: "get";
1113
+ path: string;
1114
+ parameters: {
1115
+ nextToken: {
1116
+ in: "query";
1117
+ description: string;
1118
+ type: "string";
1119
+ };
1120
+ "x-workspace-id": {
1121
+ in: "header";
1122
+ type: "string";
1123
+ description: string;
1124
+ required: true;
1125
+ };
1126
+ };
1127
+ response: {
1128
+ description: string;
1129
+ status: 200;
1130
+ schema: {
1131
+ type: "object";
1132
+ properties: {
1133
+ invoices: {
1134
+ type: "array";
1135
+ items: {
1136
+ type: "object";
1137
+ properties: {
1138
+ id: {
1139
+ type: "string";
1140
+ };
1141
+ amount: {
1142
+ type: "number";
1143
+ };
1144
+ currency: {
1145
+ type: "string";
1146
+ };
1147
+ status: {
1148
+ type: "string";
1149
+ enum: string[];
1150
+ };
1151
+ createdAt: {
1152
+ type: "string";
1153
+ };
1154
+ periodStart: {
1155
+ type: "string";
1156
+ nullable: true;
1157
+ };
1158
+ periodEnd: {
1159
+ type: "string";
1160
+ nullable: true;
1161
+ };
1162
+ dueDate: {
1163
+ type: "string";
1164
+ nullable: true;
1165
+ };
1166
+ pdfUrl: {
1167
+ type: "string";
1168
+ nullable: true;
1169
+ };
1170
+ };
1171
+ required: string[];
1172
+ };
1173
+ };
1174
+ meta: {
1175
+ type: "object";
1176
+ properties: {
1177
+ nextToken: {
1178
+ type: "string";
1179
+ description: string;
1180
+ };
1181
+ };
1182
+ additionalProperties: false;
1183
+ };
1184
+ };
1185
+ required: string[];
1186
+ title: string;
1187
+ additionalProperties: false;
1188
+ };
1189
+ };
1190
+ };
1191
+ payInvoice: {
1192
+ name: string;
1193
+ description: string;
1194
+ method: "post";
1195
+ path: string;
1196
+ parameters: {
1197
+ invoiceId: {
1198
+ in: "path";
1199
+ type: "string";
1200
+ description: string;
1201
+ };
1202
+ "x-workspace-id": {
1203
+ in: "header";
1204
+ type: "string";
1205
+ description: string;
1206
+ required: true;
1207
+ };
1208
+ };
1209
+ requestBody: {
1210
+ description: string;
1211
+ schema: {
1212
+ type: "object";
1213
+ properties: {
1214
+ idempotencyKey: {
1215
+ type: "string";
1216
+ };
1217
+ };
1218
+ title: string;
1219
+ additionalProperties: false;
1220
+ };
1221
+ };
1222
+ response: {
1223
+ description: string;
1224
+ status: 200;
1225
+ schema: {
1226
+ type: "object";
1227
+ properties: {
1228
+ id: {
1229
+ type: "string";
1230
+ };
1231
+ amount: {
1232
+ type: "number";
1233
+ };
1234
+ currency: {
1235
+ type: "string";
1236
+ };
1237
+ status: {
1238
+ type: "string";
1239
+ enum: string[];
1240
+ };
1241
+ createdAt: {
1242
+ type: "string";
1243
+ };
1244
+ periodStart: {
1245
+ type: "string";
1246
+ nullable: true;
1247
+ };
1248
+ periodEnd: {
1249
+ type: "string";
1250
+ nullable: true;
1251
+ };
1252
+ dueDate: {
1253
+ type: "string";
1254
+ nullable: true;
1255
+ };
1256
+ pdfUrl: {
1257
+ type: "string";
1258
+ nullable: true;
1259
+ };
1260
+ };
1261
+ required: string[];
1262
+ title: string;
1263
+ additionalProperties: false;
1264
+ };
1265
+ };
1266
+ };
1267
+ getPaymentMethod: {
1268
+ name: string;
1269
+ description: string;
1270
+ method: "get";
1271
+ path: string;
1272
+ response: {
1273
+ description: string;
1274
+ status: 200;
1275
+ schema: {
1276
+ type: "object";
1277
+ properties: {
1278
+ paymentMethod: {
1279
+ type: "object";
1280
+ properties: {
1281
+ id: {
1282
+ type: "string";
1283
+ };
1284
+ type: {
1285
+ type: "string";
1286
+ };
1287
+ card: {
1288
+ type: "object";
1289
+ properties: {
1290
+ brand: {
1291
+ type: "string";
1292
+ };
1293
+ lastFour: {
1294
+ type: "string";
1295
+ };
1296
+ expMonth: {
1297
+ type: "number";
1298
+ };
1299
+ expYear: {
1300
+ type: "number";
1301
+ };
1302
+ };
1303
+ required: string[];
1304
+ nullable: true;
1305
+ additionalProperties: false;
1306
+ };
1307
+ };
1308
+ required: string[];
1309
+ nullable: true;
1310
+ additionalProperties: false;
1311
+ };
1312
+ };
1313
+ required: string[];
1314
+ title: string;
1315
+ additionalProperties: false;
1316
+ };
1317
+ };
1318
+ parameters: {
1319
+ "x-workspace-id": {
1320
+ in: "header";
1321
+ type: "string";
1322
+ description: string;
1323
+ required: true;
1324
+ };
1325
+ };
1326
+ };
1327
+ setPaymentMethod: {
1328
+ name: string;
1329
+ description: string;
1330
+ method: "post";
1331
+ path: string;
1332
+ requestBody: {
1333
+ description: string;
1334
+ schema: {
1335
+ type: "object";
1336
+ properties: {
1337
+ paymentMethodId: {
1338
+ type: "string";
1339
+ description: string;
1340
+ };
1341
+ };
1342
+ required: string[];
1343
+ title: string;
1344
+ additionalProperties: false;
1345
+ };
1346
+ };
1347
+ response: {
1348
+ description: string;
1349
+ status: 200;
1350
+ schema: {
1351
+ type: "object";
1352
+ properties: {
1353
+ id: {
1354
+ type: "string";
1355
+ };
1356
+ type: {
1357
+ type: "string";
1358
+ };
1359
+ card: {
1360
+ type: "object";
1361
+ properties: {
1362
+ brand: {
1363
+ type: "string";
1364
+ };
1365
+ lastFour: {
1366
+ type: "string";
1367
+ };
1368
+ expMonth: {
1369
+ type: "number";
1370
+ };
1371
+ expYear: {
1372
+ type: "number";
1373
+ };
1374
+ };
1375
+ required: string[];
1376
+ nullable: true;
1377
+ additionalProperties: false;
1378
+ };
1379
+ };
1380
+ required: string[];
1381
+ title: string;
1382
+ additionalProperties: false;
1383
+ };
1384
+ };
1385
+ parameters: {
1386
+ "x-workspace-id": {
1387
+ in: "header";
1388
+ type: "string";
1389
+ description: string;
1390
+ required: true;
1391
+ };
1392
+ };
1393
+ };
1394
+ createPaymentMethodIntent: {
1395
+ name: string;
1396
+ description: string;
1397
+ method: "post";
1398
+ path: string;
1399
+ requestBody: {
1400
+ description: string;
1401
+ schema: {
1402
+ type: "object";
1403
+ title: string;
1404
+ additionalProperties: false;
1405
+ };
1406
+ };
1407
+ response: {
1408
+ description: string;
1409
+ status: 200;
1410
+ schema: {
1411
+ type: "object";
1412
+ properties: {
1413
+ clientSecret: {
1414
+ type: "string";
1415
+ };
1416
+ };
1417
+ required: string[];
1418
+ title: string;
1419
+ additionalProperties: false;
1420
+ };
1421
+ };
1422
+ parameters: {
1423
+ "x-workspace-id": {
1424
+ in: "header";
1425
+ type: "string";
1426
+ description: string;
1427
+ required: true;
1428
+ };
1429
+ };
1430
+ };
1431
+ getQuotas: {
1432
+ name: string;
1433
+ description: string;
1434
+ method: "get";
1435
+ path: string;
1436
+ response: {
1437
+ description: string;
1438
+ status: 200;
1439
+ schema: {
1440
+ type: "object";
1441
+ additionalProperties: {
1442
+ type: "number";
1443
+ };
1444
+ title: string;
1445
+ };
1446
+ };
1447
+ parameters: {
1448
+ "x-workspace-id": {
1449
+ in: "header";
1450
+ type: "string";
1451
+ description: string;
1452
+ required: true;
1453
+ };
1454
+ };
1455
+ };
1456
+ };
1457
+ metadata: {
1458
+ title: string;
1459
+ description: string;
1460
+ server: string;
1461
+ version: string;
1462
+ prefix: string;
1463
+ };
1464
+ defaultParameters: {
1465
+ "x-workspace-id": {
1466
+ in: "header";
1467
+ type: "string";
1468
+ description: string;
1469
+ required: true;
1470
+ };
1471
+ };
1472
+ errors: ({
1473
+ status: 500;
1474
+ type: string;
1475
+ description: string;
1476
+ } | {
1477
+ status: 401;
1478
+ type: string;
1479
+ description: string;
1480
+ } | {
1481
+ status: 403;
1482
+ type: string;
1483
+ description: string;
1484
+ } | {
1485
+ status: 413;
1486
+ type: string;
1487
+ description: string;
1488
+ } | {
1489
+ status: 400;
1490
+ type: string;
1491
+ description: string;
1492
+ } | {
1493
+ status: 415;
1494
+ type: string;
1495
+ description: string;
1496
+ } | {
1497
+ status: 405;
1498
+ type: string;
1499
+ description: string;
1500
+ } | {
1501
+ status: 404;
1502
+ type: string;
1503
+ description: string;
1504
+ } | {
1505
+ status: 409;
1506
+ type: string;
1507
+ description: string;
1508
+ } | {
1509
+ status: 410;
1510
+ type: string;
1511
+ description: string;
1512
+ } | {
1513
+ status: 429;
1514
+ type: string;
1515
+ description: string;
1516
+ } | {
1517
+ status: 402;
1518
+ type: string;
1519
+ description: string;
1520
+ } | {
1521
+ status: 504;
1522
+ type: string;
1523
+ description: string;
1524
+ })[];
1525
+ refs: {
1526
+ parameters: {};
1527
+ requestBodies: {
1528
+ previewSubscriptionUpdateBody: true;
1529
+ setPlanBody: true;
1530
+ setAddonsBody: true;
1531
+ payInvoiceBody: true;
1532
+ setPaymentMethodBody: true;
1533
+ createPaymentMethodIntentBody: true;
1534
+ };
1535
+ responses: {
1536
+ getBillingReadonlyResponse: true;
1537
+ getPlanResponse: true;
1538
+ listPlansResponse: true;
1539
+ getAddonResponse: true;
1540
+ listAddonsResponse: true;
1541
+ getCurrentSubscriptionResponse: true;
1542
+ getNextSubscriptionResponse: true;
1543
+ previewSubscriptionUpdateResponse: true;
1544
+ setPlanResponse: true;
1545
+ setAddonsResponse: true;
1546
+ listInvoicesResponse: true;
1547
+ payInvoiceResponse: true;
1548
+ getPaymentMethodResponse: true;
1549
+ setPaymentMethodResponse: true;
1550
+ createPaymentMethodIntentResponse: true;
1551
+ getQuotasResponse: true;
1552
+ };
1553
+ schemas: {
1554
+ Invoice: true;
1555
+ Subscription: true;
1556
+ SubscriptionPreview: true;
1557
+ SubscriptionUpdateParams: true;
1558
+ SubscriptionDetails: true;
1559
+ SetPlanParams: true;
1560
+ SetAddonsParams: true;
1561
+ };
1562
+ };
1563
+ schemas: {
1564
+ Invoice: {
1565
+ section: "invoice";
1566
+ schema: {
1567
+ type: "object";
1568
+ properties: {
1569
+ id: {
1570
+ type: "string";
1571
+ };
1572
+ amount: {
1573
+ type: "number";
1574
+ };
1575
+ currency: {
1576
+ type: "string";
1577
+ };
1578
+ status: {
1579
+ type: "string";
1580
+ enum: string[];
1581
+ };
1582
+ createdAt: {
1583
+ type: "string";
1584
+ };
1585
+ periodStart: {
1586
+ type: "string";
1587
+ nullable: true;
1588
+ };
1589
+ periodEnd: {
1590
+ type: "string";
1591
+ nullable: true;
1592
+ };
1593
+ dueDate: {
1594
+ type: "string";
1595
+ nullable: true;
1596
+ };
1597
+ pdfUrl: {
1598
+ type: "string";
1599
+ nullable: true;
1600
+ };
1601
+ };
1602
+ required: string[];
1603
+ additionalProperties: false;
1604
+ };
1605
+ };
1606
+ Subscription: {
1607
+ section: "subscription";
1608
+ schema: {
1609
+ type: "object";
1610
+ properties: {
1611
+ plan: {
1612
+ type: "object";
1613
+ properties: {
1614
+ current: {
1615
+ type: "object";
1616
+ properties: {
1617
+ status: {
1618
+ type: "string";
1619
+ enum: string[];
1620
+ };
1621
+ planId: {
1622
+ type: "string";
1623
+ };
1624
+ interval: {
1625
+ type: "string";
1626
+ enum: string[];
1627
+ };
1628
+ price: {
1629
+ type: "number";
1630
+ };
1631
+ proratedPrice: {
1632
+ type: "number";
1633
+ };
1634
+ cancelAtPeriodEnd: {
1635
+ type: "boolean";
1636
+ };
1637
+ periodEnd: {
1638
+ type: "string";
1639
+ };
1640
+ };
1641
+ required: string[];
1642
+ additionalProperties: false;
1643
+ };
1644
+ next: {
1645
+ type: "object";
1646
+ properties: {
1647
+ planId: {
1648
+ type: "string";
1649
+ };
1650
+ interval: {
1651
+ type: "string";
1652
+ enum: string[];
1653
+ };
1654
+ price: {
1655
+ type: "number";
1656
+ nullable: true;
1657
+ };
1658
+ effectiveDate: {
1659
+ type: "string";
1660
+ };
1661
+ };
1662
+ required: string[];
1663
+ nullable: true;
1664
+ additionalProperties: false;
1665
+ };
1666
+ };
1667
+ required: string[];
1668
+ additionalProperties: false;
1669
+ };
1670
+ addons: {
1671
+ type: "object";
1672
+ additionalProperties: {
1673
+ type: "object";
1674
+ properties: {
1675
+ current: {
1676
+ type: "object";
1677
+ properties: {
1678
+ quantity: {
1679
+ type: "number";
1680
+ };
1681
+ price: {
1682
+ type: "number";
1683
+ };
1684
+ proratedPrice: {
1685
+ type: "number";
1686
+ };
1687
+ };
1688
+ required: string[];
1689
+ additionalProperties: false;
1690
+ };
1691
+ next: {
1692
+ type: "object";
1693
+ properties: {
1694
+ quantity: {
1695
+ type: "number";
1696
+ };
1697
+ price: {
1698
+ type: "number";
1699
+ };
1700
+ effectiveDate: {
1701
+ type: "string";
1702
+ };
1703
+ };
1704
+ required: string[];
1705
+ nullable: true;
1706
+ additionalProperties: false;
1707
+ };
1708
+ };
1709
+ required: string[];
1710
+ additionalProperties: false;
1711
+ };
1712
+ };
1713
+ yearlyTotal: {
1714
+ type: "number";
1715
+ };
1716
+ monthlyTotal: {
1717
+ type: "number";
1718
+ };
1719
+ proratedTotal: {
1720
+ type: "number";
1721
+ };
1722
+ };
1723
+ required: string[];
1724
+ additionalProperties: false;
1725
+ };
1726
+ };
1727
+ SubscriptionPreview: {
1728
+ section: "subscription";
1729
+ schema: {
1730
+ type: "object";
1731
+ properties: {
1732
+ plan: {
1733
+ type: "object";
1734
+ properties: {
1735
+ current: {
1736
+ type: "object";
1737
+ properties: {
1738
+ status: {
1739
+ type: "string";
1740
+ enum: string[];
1741
+ };
1742
+ planId: {
1743
+ type: "string";
1744
+ };
1745
+ interval: {
1746
+ type: "string";
1747
+ enum: string[];
1748
+ };
1749
+ price: {
1750
+ type: "number";
1751
+ };
1752
+ proratedPrice: {
1753
+ type: "number";
1754
+ };
1755
+ cancelAtPeriodEnd: {
1756
+ type: "boolean";
1757
+ };
1758
+ periodEnd: {
1759
+ type: "string";
1760
+ };
1761
+ };
1762
+ required: string[];
1763
+ additionalProperties: false;
1764
+ };
1765
+ next: {
1766
+ type: "object";
1767
+ properties: {
1768
+ planId: {
1769
+ type: "string";
1770
+ };
1771
+ interval: {
1772
+ type: "string";
1773
+ enum: string[];
1774
+ };
1775
+ price: {
1776
+ type: "number";
1777
+ nullable: true;
1778
+ };
1779
+ effectiveDate: {
1780
+ type: "string";
1781
+ };
1782
+ };
1783
+ required: string[];
1784
+ nullable: true;
1785
+ additionalProperties: false;
1786
+ };
1787
+ };
1788
+ required: string[];
1789
+ additionalProperties: false;
1790
+ };
1791
+ addons: {
1792
+ type: "object";
1793
+ additionalProperties: {
1794
+ type: "object";
1795
+ properties: {
1796
+ current: {
1797
+ type: "object";
1798
+ properties: {
1799
+ quantity: {
1800
+ type: "number";
1801
+ };
1802
+ price: {
1803
+ type: "number";
1804
+ };
1805
+ proratedPrice: {
1806
+ type: "number";
1807
+ };
1808
+ };
1809
+ required: string[];
1810
+ additionalProperties: false;
1811
+ };
1812
+ next: {
1813
+ type: "object";
1814
+ properties: {
1815
+ quantity: {
1816
+ type: "number";
1817
+ };
1818
+ price: {
1819
+ type: "number";
1820
+ };
1821
+ effectiveDate: {
1822
+ type: "string";
1823
+ };
1824
+ };
1825
+ required: string[];
1826
+ nullable: true;
1827
+ additionalProperties: false;
1828
+ };
1829
+ };
1830
+ required: string[];
1831
+ additionalProperties: false;
1832
+ };
1833
+ };
1834
+ yearlyTotal: {
1835
+ type: "number";
1836
+ };
1837
+ monthlyTotal: {
1838
+ type: "number";
1839
+ };
1840
+ proratedTotal: {
1841
+ type: "number";
1842
+ };
666
1843
  };
1844
+ required: string[];
1845
+ additionalProperties: false;
667
1846
  };
668
- parameters: {
669
- "x-workspace-id": {
670
- in: "header";
671
- type: "string";
672
- description: string;
673
- required: true;
1847
+ };
1848
+ SubscriptionUpdateParams: {
1849
+ section: "subscription";
1850
+ schema: {
1851
+ type: "object";
1852
+ properties: {
1853
+ plan: {
1854
+ type: "object";
1855
+ properties: {
1856
+ planId: {
1857
+ type: "string";
1858
+ description: string;
1859
+ };
1860
+ interval: {
1861
+ type: "string";
1862
+ enum: string[];
1863
+ description: string;
1864
+ };
1865
+ };
1866
+ required: string[];
1867
+ additionalProperties: false;
1868
+ };
1869
+ addons: {
1870
+ type: "object";
1871
+ additionalProperties: {
1872
+ type: "number";
1873
+ };
1874
+ description: string;
1875
+ };
674
1876
  };
1877
+ required: string[];
1878
+ additionalProperties: false;
675
1879
  };
676
1880
  };
677
- };
678
- metadata: {
679
- title: string;
680
- description: string;
681
- server: string;
682
- version: string;
683
- prefix: string;
684
- };
685
- defaultParameters: {
686
- "x-workspace-id": {
687
- in: "header";
688
- type: "string";
689
- description: string;
690
- required: true;
691
- };
692
- };
693
- errors: ({
694
- status: 500;
695
- type: string;
696
- description: string;
697
- } | {
698
- status: 401;
699
- type: string;
700
- description: string;
701
- } | {
702
- status: 403;
703
- type: string;
704
- description: string;
705
- } | {
706
- status: 413;
707
- type: string;
708
- description: string;
709
- } | {
710
- status: 400;
711
- type: string;
712
- description: string;
713
- } | {
714
- status: 415;
715
- type: string;
716
- description: string;
717
- } | {
718
- status: 405;
719
- type: string;
720
- description: string;
721
- } | {
722
- status: 404;
723
- type: string;
724
- description: string;
725
- } | {
726
- status: 409;
727
- type: string;
728
- description: string;
729
- } | {
730
- status: 410;
731
- type: string;
732
- description: string;
733
- } | {
734
- status: 429;
735
- type: string;
736
- description: string;
737
- } | {
738
- status: 402;
739
- type: string;
740
- description: string;
741
- } | {
742
- status: 504;
743
- type: string;
744
- description: string;
745
- })[];
746
- refs: {
747
- parameters: {};
748
- requestBodies: {
749
- payInvoiceBody: true;
750
- setPaymentMethodBody: true;
751
- createPaymentMethodIntentBody: true;
752
- };
753
- responses: {
754
- getBillingReadonlyResponse: true;
755
- getPlanResponse: true;
756
- listPlansResponse: true;
757
- getAddonResponse: true;
758
- listAddonsResponse: true;
759
- listInvoicesResponse: true;
760
- payInvoiceResponse: true;
761
- getPaymentMethodResponse: true;
762
- setPaymentMethodResponse: true;
763
- createPaymentMethodIntentResponse: true;
764
- };
765
- schemas: {
766
- Invoice: true;
767
- };
768
- };
769
- schemas: {
770
- Invoice: {
771
- section: "invoice";
1881
+ SubscriptionDetails: {
1882
+ section: "subscription";
772
1883
  schema: {
773
1884
  type: "object";
774
1885
  properties: {
775
- id: {
776
- type: "string";
1886
+ plan: {
1887
+ type: "object";
1888
+ properties: {
1889
+ current: {
1890
+ type: "object";
1891
+ properties: {
1892
+ status: {
1893
+ type: "string";
1894
+ enum: string[];
1895
+ };
1896
+ planId: {
1897
+ type: "string";
1898
+ };
1899
+ interval: {
1900
+ type: "string";
1901
+ enum: string[];
1902
+ };
1903
+ price: {
1904
+ type: "number";
1905
+ };
1906
+ proratedPrice: {
1907
+ type: "number";
1908
+ };
1909
+ cancelAtPeriodEnd: {
1910
+ type: "boolean";
1911
+ };
1912
+ periodEnd: {
1913
+ type: "string";
1914
+ };
1915
+ };
1916
+ required: string[];
1917
+ additionalProperties: false;
1918
+ };
1919
+ next: {
1920
+ type: "object";
1921
+ properties: {
1922
+ planId: {
1923
+ type: "string";
1924
+ };
1925
+ interval: {
1926
+ type: "string";
1927
+ enum: string[];
1928
+ };
1929
+ price: {
1930
+ type: "number";
1931
+ nullable: true;
1932
+ };
1933
+ effectiveDate: {
1934
+ type: "string";
1935
+ };
1936
+ };
1937
+ required: string[];
1938
+ nullable: true;
1939
+ additionalProperties: false;
1940
+ };
1941
+ };
1942
+ required: string[];
1943
+ additionalProperties: false;
777
1944
  };
778
- amount: {
779
- type: "number";
1945
+ addons: {
1946
+ type: "object";
1947
+ additionalProperties: {
1948
+ type: "object";
1949
+ properties: {
1950
+ current: {
1951
+ type: "object";
1952
+ properties: {
1953
+ quantity: {
1954
+ type: "number";
1955
+ };
1956
+ price: {
1957
+ type: "number";
1958
+ };
1959
+ proratedPrice: {
1960
+ type: "number";
1961
+ };
1962
+ };
1963
+ required: string[];
1964
+ additionalProperties: false;
1965
+ };
1966
+ next: {
1967
+ type: "object";
1968
+ properties: {
1969
+ quantity: {
1970
+ type: "number";
1971
+ };
1972
+ price: {
1973
+ type: "number";
1974
+ };
1975
+ effectiveDate: {
1976
+ type: "string";
1977
+ };
1978
+ };
1979
+ required: string[];
1980
+ nullable: true;
1981
+ additionalProperties: false;
1982
+ };
1983
+ };
1984
+ required: string[];
1985
+ additionalProperties: false;
1986
+ };
780
1987
  };
781
- currency: {
782
- type: "string";
1988
+ yearlyTotal: {
1989
+ type: "number";
783
1990
  };
784
- status: {
785
- type: "string";
786
- enum: string[];
1991
+ monthlyTotal: {
1992
+ type: "number";
787
1993
  };
788
- createdAt: {
789
- type: "string";
1994
+ proratedTotal: {
1995
+ type: "number";
790
1996
  };
791
- periodStart: {
1997
+ };
1998
+ required: string[];
1999
+ description: string;
2000
+ additionalProperties: false;
2001
+ };
2002
+ };
2003
+ SetPlanParams: {
2004
+ section: "subscription";
2005
+ schema: {
2006
+ type: "object";
2007
+ properties: {
2008
+ planId: {
792
2009
  type: "string";
793
- nullable: true;
794
2010
  };
795
- periodEnd: {
2011
+ interval: {
796
2012
  type: "string";
797
- nullable: true;
2013
+ enum: string[];
798
2014
  };
799
- dueDate: {
800
- type: "string";
801
- nullable: true;
2015
+ testReferenceTime: {
2016
+ type: "number";
802
2017
  };
803
- pdfUrl: {
804
- type: "string";
805
- nullable: true;
2018
+ };
2019
+ required: string[];
2020
+ description: string;
2021
+ additionalProperties: false;
2022
+ };
2023
+ };
2024
+ SetAddonsParams: {
2025
+ section: "subscription";
2026
+ schema: {
2027
+ type: "object";
2028
+ properties: {
2029
+ addons: {
2030
+ type: "object";
2031
+ additionalProperties: {
2032
+ type: "number";
2033
+ };
806
2034
  };
807
2035
  };
808
2036
  required: string[];
@@ -811,13 +2039,19 @@ export declare const state: {
811
2039
  };
812
2040
  };
813
2041
  };
814
- sections: {
2042
+ sections: ({
815
2043
  description: string;
816
2044
  title: string;
817
2045
  name: "invoice";
818
2046
  operations: never[];
819
2047
  schema: string;
820
- }[];
2048
+ } | {
2049
+ description: string;
2050
+ title: string;
2051
+ name: "subscription";
2052
+ operations: never[];
2053
+ schema: string;
2054
+ })[];
821
2055
  options: {
822
2056
  allowUnions: false;
823
2057
  };