@schematichq/schematic-components 2.31.0 → 2.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1424,10 +1424,10 @@ declare interface BillingPlanCreditGrantResponseData {
1424
1424
  declare interface BillingPriceResponseData {
1425
1425
  /**
1426
1426
  *
1427
- * @type {string}
1427
+ * @type {Currency}
1428
1428
  * @memberof BillingPriceResponseData
1429
1429
  */
1430
- currency: string;
1430
+ currency: Currency;
1431
1431
  /**
1432
1432
  *
1433
1433
  * @type {string}
@@ -1492,10 +1492,10 @@ declare interface BillingPriceResponseData {
1492
1492
  declare interface BillingPriceResponseData_2 {
1493
1493
  /**
1494
1494
  *
1495
- * @type {string}
1495
+ * @type {Currency}
1496
1496
  * @memberof BillingPriceResponseData
1497
1497
  */
1498
- currency: string;
1498
+ currency: Currency_2;
1499
1499
  /**
1500
1500
  *
1501
1501
  * @type {string}
@@ -1616,10 +1616,10 @@ declare interface BillingPriceView {
1616
1616
  createdAt: Date;
1617
1617
  /**
1618
1618
  *
1619
- * @type {string}
1619
+ * @type {Currency}
1620
1620
  * @memberof BillingPriceView
1621
1621
  */
1622
- currency: string;
1622
+ currency: Currency;
1623
1623
  /**
1624
1624
  *
1625
1625
  * @type {string}
@@ -1768,10 +1768,10 @@ declare interface BillingPriceView_2 {
1768
1768
  createdAt: Date;
1769
1769
  /**
1770
1770
  *
1771
- * @type {string}
1771
+ * @type {Currency}
1772
1772
  * @memberof BillingPriceView
1773
1773
  */
1774
- currency: string;
1774
+ currency: Currency_2;
1775
1775
  /**
1776
1776
  *
1777
1777
  * @type {string}
@@ -2124,10 +2124,10 @@ declare interface BillingProductForSubscriptionResponseData {
2124
2124
  createdAt: Date;
2125
2125
  /**
2126
2126
  *
2127
- * @type {string}
2127
+ * @type {Currency}
2128
2128
  * @memberof BillingProductForSubscriptionResponseData
2129
2129
  */
2130
- currency: string;
2130
+ currency: Currency;
2131
2131
  /**
2132
2132
  *
2133
2133
  * @type {string}
@@ -2290,10 +2290,10 @@ declare interface BillingProductPriceResponseData {
2290
2290
  createdAt: Date;
2291
2291
  /**
2292
2292
  *
2293
- * @type {string}
2293
+ * @type {Currency}
2294
2294
  * @memberof BillingProductPriceResponseData
2295
2295
  */
2296
- currency: string;
2296
+ currency: Currency;
2297
2297
  /**
2298
2298
  *
2299
2299
  * @type {string}
@@ -2820,17 +2820,6 @@ declare const BillingStrategy_2: {
2820
2820
 
2821
2821
  declare type BillingStrategy_2 = (typeof BillingStrategy_2)[keyof typeof BillingStrategy_2];
2822
2822
 
2823
- /**
2824
- * Schematic API
2825
- * Schematic API
2826
- *
2827
- * The version of the OpenAPI document: 0.1
2828
- *
2829
- *
2830
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2831
- * https://openapi-generator.tech
2832
- * Do not edit the class manually.
2833
- */
2834
2823
  /**
2835
2824
  *
2836
2825
  * @export
@@ -2857,10 +2846,10 @@ declare interface BillingSubscriptionDiscountView {
2857
2846
  couponName: string;
2858
2847
  /**
2859
2848
  *
2860
- * @type {string}
2849
+ * @type {Currency}
2861
2850
  * @memberof BillingSubscriptionDiscountView
2862
2851
  */
2863
- currency?: string | null;
2852
+ currency?: Currency | null;
2864
2853
  /**
2865
2854
  *
2866
2855
  * @type {string}
@@ -2972,10 +2961,10 @@ declare interface BillingSubscriptionView {
2972
2961
  createdAt: Date;
2973
2962
  /**
2974
2963
  *
2975
- * @type {string}
2964
+ * @type {Currency}
2976
2965
  * @memberof BillingSubscriptionView
2977
2966
  */
2978
- currency: string;
2967
+ currency: Currency;
2979
2968
  /**
2980
2969
  *
2981
2970
  * @type {string}
@@ -3382,10 +3371,10 @@ declare interface ChangeSubscriptionRequestBody {
3382
3371
  creditBundles: Array<UpdateCreditBundleRequestBody>;
3383
3372
  /**
3384
3373
  * ISO 4217 currency this cart is being built in. Prices are still selected by id; this records the intent, and a cart that prices in another currency is reported as a problem.
3385
- * @type {string}
3374
+ * @type {Currency}
3386
3375
  * @memberof ChangeSubscriptionRequestBody
3387
3376
  */
3388
- currency?: string | null;
3377
+ currency?: Currency | null;
3389
3378
  /**
3390
3379
  *
3391
3380
  * @type {Array<CheckoutFieldValue>}
@@ -3605,6 +3594,126 @@ export declare interface CheckoutPrefill {
3605
3594
  billingDetails?: CheckoutBillingDetails;
3606
3595
  }
3607
3596
 
3597
+ /**
3598
+ *
3599
+ * @export
3600
+ */
3601
+ declare const CheckoutProblemCode: {
3602
+ readonly AddOnRequiresBilledPlan: "add_on_requires_billed_plan";
3603
+ readonly BillingCycleAnchorConflictsWithTrial: "billing_cycle_anchor_conflicts_with_trial";
3604
+ readonly BillingCycleAnchorMustBeFuture: "billing_cycle_anchor_must_be_future";
3605
+ readonly CreditBundleIncompatible: "credit_bundle_incompatible";
3606
+ readonly CurrencyMismatch: "currency_mismatch";
3607
+ readonly DiscountIneligible: "discount_ineligible";
3608
+ readonly FreeFirstPeriodActivatesOnPayment: "free_first_period_activates_on_payment";
3609
+ readonly InvoiceEmailRequired: "invoice_email_required";
3610
+ readonly InvoicedSubscriptionConflictsWithTrial: "invoiced_subscription_conflicts_with_trial";
3611
+ readonly OptInRequired: "opt_in_required";
3612
+ readonly PaymentMethodRequired: "payment_method_required";
3613
+ readonly PlanUnavailable: "plan_unavailable";
3614
+ readonly PriceUnavailable: "price_unavailable";
3615
+ readonly ProrateFirstPeriodWithoutAnchor: "prorate_first_period_without_anchor";
3616
+ readonly ProviderRejected: "provider_rejected";
3617
+ readonly SelectionInvalid: "selection_invalid";
3618
+ readonly TrialEndMustBeFuture: "trial_end_must_be_future";
3619
+ readonly TrialEndTooFar: "trial_end_too_far";
3620
+ readonly UsageOverLimit: "usage_over_limit";
3621
+ };
3622
+
3623
+ declare type CheckoutProblemCode = (typeof CheckoutProblemCode)[keyof typeof CheckoutProblemCode];
3624
+
3625
+ /**
3626
+ *
3627
+ * @export
3628
+ * @interface CheckoutProblemResponseData
3629
+ */
3630
+ declare interface CheckoutProblemResponseData {
3631
+ /**
3632
+ * Whether completing the checkout would be refused while this stands.
3633
+ * @type {boolean}
3634
+ * @memberof CheckoutProblemResponseData
3635
+ */
3636
+ blocking: boolean;
3637
+ /**
3638
+ *
3639
+ * @type {string}
3640
+ * @memberof CheckoutProblemResponseData
3641
+ */
3642
+ bundleId?: string | null;
3643
+ /**
3644
+ *
3645
+ * @type {CheckoutProblemCode}
3646
+ * @memberof CheckoutProblemResponseData
3647
+ */
3648
+ code: CheckoutProblemCode;
3649
+ /**
3650
+ * The currency this problem is about, when it is about one.
3651
+ * @type {Currency}
3652
+ * @memberof CheckoutProblemResponseData
3653
+ */
3654
+ currency?: Currency;
3655
+ /**
3656
+ * Diagnostic detail for operators, including what the billing provider said. Never shown to a customer.
3657
+ * @type {string}
3658
+ * @memberof CheckoutProblemResponseData
3659
+ */
3660
+ detail?: string;
3661
+ /**
3662
+ *
3663
+ * @type {string}
3664
+ * @memberof CheckoutProblemResponseData
3665
+ */
3666
+ featureId?: string | null;
3667
+ /**
3668
+ *
3669
+ * @type {string}
3670
+ * @memberof CheckoutProblemResponseData
3671
+ */
3672
+ fieldId?: string | null;
3673
+ /**
3674
+ * What is wrong, in words safe for anyone allowed to read the checkout.
3675
+ * @type {string}
3676
+ * @memberof CheckoutProblemResponseData
3677
+ */
3678
+ message: string;
3679
+ /**
3680
+ *
3681
+ * @type {string}
3682
+ * @memberof CheckoutProblemResponseData
3683
+ */
3684
+ paymentMethodId?: string | null;
3685
+ /**
3686
+ *
3687
+ * @type {string}
3688
+ * @memberof CheckoutProblemResponseData
3689
+ */
3690
+ planId?: string | null;
3691
+ /**
3692
+ *
3693
+ * @type {string}
3694
+ * @memberof CheckoutProblemResponseData
3695
+ */
3696
+ priceId?: string | null;
3697
+ /**
3698
+ *
3699
+ * @type {CheckoutProblemSource}
3700
+ * @memberof CheckoutProblemResponseData
3701
+ */
3702
+ source: CheckoutProblemSource;
3703
+ }
3704
+
3705
+ /**
3706
+ *
3707
+ * @export
3708
+ */
3709
+ declare const CheckoutProblemSource: {
3710
+ readonly Provider: "provider";
3711
+ readonly Requirement: "requirement";
3712
+ readonly Validation: "validation";
3713
+ };
3714
+
3715
+ declare type CheckoutProblemSource = (typeof CheckoutProblemSource)[keyof typeof CheckoutProblemSource];
3716
+
3608
3717
  declare interface CheckoutProps {
3609
3718
  collectTaxId?: boolean;
3610
3719
  customCheckoutFields?: CheckoutFieldWithValue[];
@@ -3707,10 +3816,10 @@ declare interface CheckoutResponseData {
3707
3816
  createdAt: Date;
3708
3817
  /**
3709
3818
  *
3710
- * @type {string}
3819
+ * @type {Currency}
3711
3820
  * @memberof CheckoutResponseData
3712
3821
  */
3713
- currency: string;
3822
+ currency: Currency;
3714
3823
  /**
3715
3824
  *
3716
3825
  * @type {string}
@@ -4419,6 +4528,14 @@ declare interface CompanyOverrideResponseData {
4419
4528
  * @memberof CompanyOverrideResponseData
4420
4529
  */
4421
4530
  notes: Array<CompanyOverrideNoteResponseData>;
4531
+ /**
4532
+ * Credits per unit of the quantity (per token for inference features), keyed by quantity key. Absent when the entitlement prices requests only.
4533
+ * @type {{ [key: string]: number; }}
4534
+ * @memberof CompanyOverrideResponseData
4535
+ */
4536
+ quantityRates?: {
4537
+ [key: string]: number;
4538
+ };
4422
4539
  /**
4423
4540
  *
4424
4541
  * @type {string}
@@ -5168,10 +5285,10 @@ declare interface CompanySubscriptionResponseData {
5168
5285
  cancelAtPeriodEnd: boolean;
5169
5286
  /**
5170
5287
  *
5171
- * @type {string}
5288
+ * @type {Currency}
5172
5289
  * @memberof CompanySubscriptionResponseData
5173
5290
  */
5174
- currency: string;
5291
+ currency: Currency;
5175
5292
  /**
5176
5293
  *
5177
5294
  * @type {string}
@@ -6090,10 +6207,10 @@ declare type CreditBundle = BillingCreditBundleView & {
6090
6207
  declare interface CreditBundleCurrencyPrice {
6091
6208
  /**
6092
6209
  *
6093
- * @type {string}
6210
+ * @type {Currency}
6094
6211
  * @memberof CreditBundleCurrencyPrice
6095
6212
  */
6096
- currency: string;
6213
+ currency: Currency;
6097
6214
  /**
6098
6215
  *
6099
6216
  * @type {BillingPriceView}
@@ -6170,10 +6287,10 @@ declare interface CreditCompanyGrantView {
6170
6287
  creditName: string;
6171
6288
  /**
6172
6289
  *
6173
- * @type {string}
6290
+ * @type {Currency}
6174
6291
  * @memberof CreditCompanyGrantView
6175
6292
  */
6176
- currency?: string | null;
6293
+ currency?: Currency | null;
6177
6294
  /**
6178
6295
  *
6179
6296
  * @type {Date}
@@ -6248,10 +6365,10 @@ declare interface CreditCompanyGrantView {
6248
6365
  postpaidChargeAmount?: number | null;
6249
6366
  /**
6250
6367
  *
6251
- * @type {string}
6368
+ * @type {Currency}
6252
6369
  * @memberof CreditCompanyGrantView
6253
6370
  */
6254
- postpaidChargeCurrency?: string | null;
6371
+ postpaidChargeCurrency?: Currency | null;
6255
6372
  /**
6256
6373
  *
6257
6374
  * @type {number}
@@ -6382,10 +6499,10 @@ declare interface CreditCompanyGrantView {
6382
6499
  declare interface CreditCurrencyPrice {
6383
6500
  /**
6384
6501
  *
6385
- * @type {string}
6502
+ * @type {Currency}
6386
6503
  * @memberof CreditCurrencyPrice
6387
6504
  */
6388
- currency: string;
6505
+ currency: Currency;
6389
6506
  /**
6390
6507
  *
6391
6508
  * @type {BillingPriceView}
@@ -6402,10 +6519,10 @@ declare interface CreditCurrencyPrice {
6402
6519
  declare interface CreditCurrencyPrice_2 {
6403
6520
  /**
6404
6521
  *
6405
- * @type {string}
6522
+ * @type {Currency}
6406
6523
  * @memberof CreditCurrencyPrice
6407
6524
  */
6408
- currency: string;
6525
+ currency: Currency_2;
6409
6526
  /**
6410
6527
  *
6411
6528
  * @type {BillingPriceView}
@@ -6422,10 +6539,10 @@ declare interface CreditCurrencyPrice_2 {
6422
6539
  declare interface CreditCurrencyPriceResponseData {
6423
6540
  /**
6424
6541
  *
6425
- * @type {string}
6542
+ * @type {Currency}
6426
6543
  * @memberof CreditCurrencyPriceResponseData
6427
6544
  */
6428
- currency: string;
6545
+ currency: Currency;
6429
6546
  /**
6430
6547
  *
6431
6548
  * @type {BillingPriceResponseData}
@@ -6442,10 +6559,10 @@ declare interface CreditCurrencyPriceResponseData {
6442
6559
  declare interface CreditCurrencyPriceResponseData_2 {
6443
6560
  /**
6444
6561
  *
6445
- * @type {string}
6562
+ * @type {Currency}
6446
6563
  * @memberof CreditCurrencyPriceResponseData
6447
6564
  */
6448
- currency: string;
6565
+ currency: Currency_2;
6449
6566
  /**
6450
6567
  *
6451
6568
  * @type {BillingPriceResponseData}
@@ -6674,16 +6791,291 @@ declare interface CreditWithCompanyContext {
6674
6791
  }
6675
6792
 
6676
6793
  /**
6677
- * Schematic API
6678
- * Schematic API
6679
6794
  *
6680
- * The version of the OpenAPI document: 0.1
6681
- *
6682
- *
6683
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6684
- * https://openapi-generator.tech
6685
- * Do not edit the class manually.
6795
+ * @export
6686
6796
  */
6797
+ declare const Currency: {
6798
+ readonly Aed: "aed";
6799
+ readonly Afn: "afn";
6800
+ readonly All: "all";
6801
+ readonly Amd: "amd";
6802
+ readonly Ang: "ang";
6803
+ readonly Aoa: "aoa";
6804
+ readonly Ars: "ars";
6805
+ readonly Aud: "aud";
6806
+ readonly Awg: "awg";
6807
+ readonly Azn: "azn";
6808
+ readonly Bam: "bam";
6809
+ readonly Bbd: "bbd";
6810
+ readonly Bdt: "bdt";
6811
+ readonly Bif: "bif";
6812
+ readonly Bmd: "bmd";
6813
+ readonly Bnd: "bnd";
6814
+ readonly Bob: "bob";
6815
+ readonly Brl: "brl";
6816
+ readonly Bsd: "bsd";
6817
+ readonly Bwp: "bwp";
6818
+ readonly Byn: "byn";
6819
+ readonly Bzd: "bzd";
6820
+ readonly Cad: "cad";
6821
+ readonly Cdf: "cdf";
6822
+ readonly Chf: "chf";
6823
+ readonly Clp: "clp";
6824
+ readonly Cny: "cny";
6825
+ readonly Cop: "cop";
6826
+ readonly Crc: "crc";
6827
+ readonly Cve: "cve";
6828
+ readonly Czk: "czk";
6829
+ readonly Djf: "djf";
6830
+ readonly Dkk: "dkk";
6831
+ readonly Dop: "dop";
6832
+ readonly Dzd: "dzd";
6833
+ readonly Egp: "egp";
6834
+ readonly Etb: "etb";
6835
+ readonly Eur: "eur";
6836
+ readonly Fjd: "fjd";
6837
+ readonly Fkp: "fkp";
6838
+ readonly Gbp: "gbp";
6839
+ readonly Gel: "gel";
6840
+ readonly Gip: "gip";
6841
+ readonly Gmd: "gmd";
6842
+ readonly Gnf: "gnf";
6843
+ readonly Gtq: "gtq";
6844
+ readonly Gyd: "gyd";
6845
+ readonly Hkd: "hkd";
6846
+ readonly Hnl: "hnl";
6847
+ readonly Htg: "htg";
6848
+ readonly Huf: "huf";
6849
+ readonly Idr: "idr";
6850
+ readonly Ils: "ils";
6851
+ readonly Inr: "inr";
6852
+ readonly Isk: "isk";
6853
+ readonly Jmd: "jmd";
6854
+ readonly Jpy: "jpy";
6855
+ readonly Kes: "kes";
6856
+ readonly Kgs: "kgs";
6857
+ readonly Khr: "khr";
6858
+ readonly Kmf: "kmf";
6859
+ readonly Krw: "krw";
6860
+ readonly Kyd: "kyd";
6861
+ readonly Kzt: "kzt";
6862
+ readonly Lak: "lak";
6863
+ readonly Lbp: "lbp";
6864
+ readonly Lkr: "lkr";
6865
+ readonly Lrd: "lrd";
6866
+ readonly Lsl: "lsl";
6867
+ readonly Mad: "mad";
6868
+ readonly Mdl: "mdl";
6869
+ readonly Mga: "mga";
6870
+ readonly Mkd: "mkd";
6871
+ readonly Mmk: "mmk";
6872
+ readonly Mnt: "mnt";
6873
+ readonly Mop: "mop";
6874
+ readonly Mur: "mur";
6875
+ readonly Mvr: "mvr";
6876
+ readonly Mwk: "mwk";
6877
+ readonly Mxn: "mxn";
6878
+ readonly Myr: "myr";
6879
+ readonly Mzn: "mzn";
6880
+ readonly Nad: "nad";
6881
+ readonly Ngn: "ngn";
6882
+ readonly Nio: "nio";
6883
+ readonly Nok: "nok";
6884
+ readonly Npr: "npr";
6885
+ readonly Nzd: "nzd";
6886
+ readonly Pab: "pab";
6887
+ readonly Pen: "pen";
6888
+ readonly Pgk: "pgk";
6889
+ readonly Php: "php";
6890
+ readonly Pkr: "pkr";
6891
+ readonly Pln: "pln";
6892
+ readonly Pyg: "pyg";
6893
+ readonly Qar: "qar";
6894
+ readonly Ron: "ron";
6895
+ readonly Rsd: "rsd";
6896
+ readonly Rub: "rub";
6897
+ readonly Rwf: "rwf";
6898
+ readonly Sar: "sar";
6899
+ readonly Sbd: "sbd";
6900
+ readonly Scr: "scr";
6901
+ readonly Sek: "sek";
6902
+ readonly Sgd: "sgd";
6903
+ readonly Shp: "shp";
6904
+ readonly Sle: "sle";
6905
+ readonly Sos: "sos";
6906
+ readonly Srd: "srd";
6907
+ readonly Std: "std";
6908
+ readonly Szl: "szl";
6909
+ readonly Thb: "thb";
6910
+ readonly Tjs: "tjs";
6911
+ readonly Top: "top";
6912
+ readonly Try: "try";
6913
+ readonly Ttd: "ttd";
6914
+ readonly Twd: "twd";
6915
+ readonly Tzs: "tzs";
6916
+ readonly Uah: "uah";
6917
+ readonly Ugx: "ugx";
6918
+ readonly Usd: "usd";
6919
+ readonly Uyu: "uyu";
6920
+ readonly Uzs: "uzs";
6921
+ readonly Vnd: "vnd";
6922
+ readonly Vuv: "vuv";
6923
+ readonly Wst: "wst";
6924
+ readonly Xaf: "xaf";
6925
+ readonly Xcd: "xcd";
6926
+ readonly Xcg: "xcg";
6927
+ readonly Xof: "xof";
6928
+ readonly Xpf: "xpf";
6929
+ readonly Yer: "yer";
6930
+ readonly Zar: "zar";
6931
+ readonly Zmw: "zmw";
6932
+ };
6933
+
6934
+ declare type Currency = (typeof Currency)[keyof typeof Currency];
6935
+
6936
+ /**
6937
+ *
6938
+ * @export
6939
+ */
6940
+ declare const Currency_2: {
6941
+ readonly Aed: "aed";
6942
+ readonly Afn: "afn";
6943
+ readonly All: "all";
6944
+ readonly Amd: "amd";
6945
+ readonly Ang: "ang";
6946
+ readonly Aoa: "aoa";
6947
+ readonly Ars: "ars";
6948
+ readonly Aud: "aud";
6949
+ readonly Awg: "awg";
6950
+ readonly Azn: "azn";
6951
+ readonly Bam: "bam";
6952
+ readonly Bbd: "bbd";
6953
+ readonly Bdt: "bdt";
6954
+ readonly Bif: "bif";
6955
+ readonly Bmd: "bmd";
6956
+ readonly Bnd: "bnd";
6957
+ readonly Bob: "bob";
6958
+ readonly Brl: "brl";
6959
+ readonly Bsd: "bsd";
6960
+ readonly Bwp: "bwp";
6961
+ readonly Byn: "byn";
6962
+ readonly Bzd: "bzd";
6963
+ readonly Cad: "cad";
6964
+ readonly Cdf: "cdf";
6965
+ readonly Chf: "chf";
6966
+ readonly Clp: "clp";
6967
+ readonly Cny: "cny";
6968
+ readonly Cop: "cop";
6969
+ readonly Crc: "crc";
6970
+ readonly Cve: "cve";
6971
+ readonly Czk: "czk";
6972
+ readonly Djf: "djf";
6973
+ readonly Dkk: "dkk";
6974
+ readonly Dop: "dop";
6975
+ readonly Dzd: "dzd";
6976
+ readonly Egp: "egp";
6977
+ readonly Etb: "etb";
6978
+ readonly Eur: "eur";
6979
+ readonly Fjd: "fjd";
6980
+ readonly Fkp: "fkp";
6981
+ readonly Gbp: "gbp";
6982
+ readonly Gel: "gel";
6983
+ readonly Gip: "gip";
6984
+ readonly Gmd: "gmd";
6985
+ readonly Gnf: "gnf";
6986
+ readonly Gtq: "gtq";
6987
+ readonly Gyd: "gyd";
6988
+ readonly Hkd: "hkd";
6989
+ readonly Hnl: "hnl";
6990
+ readonly Htg: "htg";
6991
+ readonly Huf: "huf";
6992
+ readonly Idr: "idr";
6993
+ readonly Ils: "ils";
6994
+ readonly Inr: "inr";
6995
+ readonly Isk: "isk";
6996
+ readonly Jmd: "jmd";
6997
+ readonly Jpy: "jpy";
6998
+ readonly Kes: "kes";
6999
+ readonly Kgs: "kgs";
7000
+ readonly Khr: "khr";
7001
+ readonly Kmf: "kmf";
7002
+ readonly Krw: "krw";
7003
+ readonly Kyd: "kyd";
7004
+ readonly Kzt: "kzt";
7005
+ readonly Lak: "lak";
7006
+ readonly Lbp: "lbp";
7007
+ readonly Lkr: "lkr";
7008
+ readonly Lrd: "lrd";
7009
+ readonly Lsl: "lsl";
7010
+ readonly Mad: "mad";
7011
+ readonly Mdl: "mdl";
7012
+ readonly Mga: "mga";
7013
+ readonly Mkd: "mkd";
7014
+ readonly Mmk: "mmk";
7015
+ readonly Mnt: "mnt";
7016
+ readonly Mop: "mop";
7017
+ readonly Mur: "mur";
7018
+ readonly Mvr: "mvr";
7019
+ readonly Mwk: "mwk";
7020
+ readonly Mxn: "mxn";
7021
+ readonly Myr: "myr";
7022
+ readonly Mzn: "mzn";
7023
+ readonly Nad: "nad";
7024
+ readonly Ngn: "ngn";
7025
+ readonly Nio: "nio";
7026
+ readonly Nok: "nok";
7027
+ readonly Npr: "npr";
7028
+ readonly Nzd: "nzd";
7029
+ readonly Pab: "pab";
7030
+ readonly Pen: "pen";
7031
+ readonly Pgk: "pgk";
7032
+ readonly Php: "php";
7033
+ readonly Pkr: "pkr";
7034
+ readonly Pln: "pln";
7035
+ readonly Pyg: "pyg";
7036
+ readonly Qar: "qar";
7037
+ readonly Ron: "ron";
7038
+ readonly Rsd: "rsd";
7039
+ readonly Rub: "rub";
7040
+ readonly Rwf: "rwf";
7041
+ readonly Sar: "sar";
7042
+ readonly Sbd: "sbd";
7043
+ readonly Scr: "scr";
7044
+ readonly Sek: "sek";
7045
+ readonly Sgd: "sgd";
7046
+ readonly Shp: "shp";
7047
+ readonly Sle: "sle";
7048
+ readonly Sos: "sos";
7049
+ readonly Srd: "srd";
7050
+ readonly Std: "std";
7051
+ readonly Szl: "szl";
7052
+ readonly Thb: "thb";
7053
+ readonly Tjs: "tjs";
7054
+ readonly Top: "top";
7055
+ readonly Try: "try";
7056
+ readonly Ttd: "ttd";
7057
+ readonly Twd: "twd";
7058
+ readonly Tzs: "tzs";
7059
+ readonly Uah: "uah";
7060
+ readonly Ugx: "ugx";
7061
+ readonly Usd: "usd";
7062
+ readonly Uyu: "uyu";
7063
+ readonly Uzs: "uzs";
7064
+ readonly Vnd: "vnd";
7065
+ readonly Vuv: "vuv";
7066
+ readonly Wst: "wst";
7067
+ readonly Xaf: "xaf";
7068
+ readonly Xcd: "xcd";
7069
+ readonly Xcg: "xcg";
7070
+ readonly Xof: "xof";
7071
+ readonly Xpf: "xpf";
7072
+ readonly Yer: "yer";
7073
+ readonly Zar: "zar";
7074
+ readonly Zmw: "zmw";
7075
+ };
7076
+
7077
+ declare type Currency_2 = (typeof Currency_2)[keyof typeof Currency_2];
7078
+
6687
7079
  /**
6688
7080
  *
6689
7081
  * @export
@@ -6698,10 +7090,10 @@ declare interface CurrencyBalance {
6698
7090
  balance: number;
6699
7091
  /**
6700
7092
  *
6701
- * @type {string}
7093
+ * @type {Currency}
6702
7094
  * @memberof CurrencyBalance
6703
7095
  */
6704
- currency: string;
7096
+ currency: Currency;
6705
7097
  }
6706
7098
 
6707
7099
  /**
@@ -6769,6 +7161,12 @@ declare interface CustomPlanBillingResponseData {
6769
7161
  * @memberof CustomPlanBillingResponseData
6770
7162
  */
6771
7163
  id: string;
7164
+ /**
7165
+ * The plan version migration this amendment invoice belongs to. Null for a first publish or a plan assigned through Manage Plan.
7166
+ * @type {string}
7167
+ * @memberof CustomPlanBillingResponseData
7168
+ */
7169
+ migrationId?: string | null;
6772
7170
  /**
6773
7171
  *
6774
7172
  * @type {Date}
@@ -6776,7 +7174,7 @@ declare interface CustomPlanBillingResponseData {
6776
7174
  */
6777
7175
  paidAt?: Date | null;
6778
7176
  /**
6779
- * The flow that created this billing record: a custom plan, or a standard plan assigned by invoice through Manage Plan.
7177
+ * The flow that created this billing record: a custom plan's first publish, an amendment of a live custom plan, or a standard plan assigned by invoice through Manage Plan.
6780
7178
  * @type {PlanBillingSource}
6781
7179
  * @memberof CustomPlanBillingResponseData
6782
7180
  */
@@ -7483,6 +7881,7 @@ declare const en: {
7483
7881
  "Over plan limit": string;
7484
7882
  "Pay-in-advance features require a quantity.": string;
7485
7883
  "Error saving custom field values. Please try again.": string;
7884
+ "Pay and close": string;
7486
7885
  "Pay now": string;
7487
7886
  "Payment Details": string;
7488
7887
  "Payment due": string;
@@ -7700,10 +8099,10 @@ export declare const Entitlement: ({ portal, entitlement, period, credits, curre
7700
8099
  declare interface EntitlementCurrencyPricesResponseData {
7701
8100
  /**
7702
8101
  *
7703
- * @type {string}
8102
+ * @type {Currency}
7704
8103
  * @memberof EntitlementCurrencyPricesResponseData
7705
8104
  */
7706
- currency: string;
8105
+ currency: Currency;
7707
8106
  /**
7708
8107
  *
7709
8108
  * @type {BillingPriceView}
@@ -7732,10 +8131,10 @@ declare interface EntitlementCurrencyPricesResponseData {
7732
8131
  declare interface EntitlementCurrencyPricesResponseData_2 {
7733
8132
  /**
7734
8133
  *
7735
- * @type {string}
8134
+ * @type {Currency}
7736
8135
  * @memberof EntitlementCurrencyPricesResponseData
7737
8136
  */
7738
- currency: string;
8137
+ currency: Currency_2;
7739
8138
  /**
7740
8139
  *
7741
8140
  * @type {BillingPriceView}
@@ -8134,10 +8533,10 @@ declare interface EstimatedPlanTotal {
8134
8533
  amount: number;
8135
8534
  /**
8136
8535
  *
8137
- * @type {string}
8536
+ * @type {Currency}
8138
8537
  * @memberof EstimatedPlanTotal
8139
8538
  */
8140
- currency: string;
8539
+ currency: Currency;
8141
8540
  /**
8142
8541
  *
8143
8542
  * @type {PlanPriceCadence}
@@ -8378,6 +8777,28 @@ declare interface FeatureEntitlement {
8378
8777
  warningTiers?: Array<WarningTier>;
8379
8778
  }
8380
8779
 
8780
+ /**
8781
+ *
8782
+ * @export
8783
+ */
8784
+ declare const FeatureEventSource: {
8785
+ readonly Inference: "inference";
8786
+ readonly Track: "track";
8787
+ };
8788
+
8789
+ declare type FeatureEventSource = (typeof FeatureEventSource)[keyof typeof FeatureEventSource];
8790
+
8791
+ /**
8792
+ *
8793
+ * @export
8794
+ */
8795
+ declare const FeatureEventSource_2: {
8796
+ readonly Inference: "inference";
8797
+ readonly Track: "track";
8798
+ };
8799
+
8800
+ declare type FeatureEventSource_2 = (typeof FeatureEventSource_2)[keyof typeof FeatureEventSource_2];
8801
+
8381
8802
  /**
8382
8803
  *
8383
8804
  * @export
@@ -8402,6 +8823,12 @@ declare interface FeatureInPlanResponseData {
8402
8823
  * @memberof FeatureInPlanResponseData
8403
8824
  */
8404
8825
  description: string;
8826
+ /**
8827
+ * Which event stream meters this feature. Track features are metered by track events; inference features are metered by inference events whose event label matches event_subtype, and meter through credits only.
8828
+ * @type {FeatureEventSource}
8829
+ * @memberof FeatureInPlanResponseData
8830
+ */
8831
+ eventSource: FeatureEventSource;
8405
8832
  /**
8406
8833
  *
8407
8834
  * @type {string}
@@ -8530,6 +8957,12 @@ declare interface FeatureInPlanResponseData_2 {
8530
8957
  * @memberof FeatureInPlanResponseData
8531
8958
  */
8532
8959
  description: string;
8960
+ /**
8961
+ * Which event stream meters this feature. Track features are metered by track events; inference features are metered by inference events whose event label matches event_subtype, and meter through credits only.
8962
+ * @type {FeatureEventSource}
8963
+ * @memberof FeatureInPlanResponseData
8964
+ */
8965
+ eventSource: FeatureEventSource_2;
8533
8966
  /**
8534
8967
  *
8535
8968
  * @type {string}
@@ -8688,6 +9121,12 @@ declare interface FeatureResponseData {
8688
9121
  * @memberof FeatureResponseData
8689
9122
  */
8690
9123
  description: string;
9124
+ /**
9125
+ * Which event stream meters this feature. Track features are metered by track events; inference features are metered by inference events whose event label matches event_subtype, and meter through credits only.
9126
+ * @type {FeatureEventSource}
9127
+ * @memberof FeatureResponseData
9128
+ */
9129
+ eventSource: FeatureEventSource;
8691
9130
  /**
8692
9131
  *
8693
9132
  * @type {string}
@@ -8786,6 +9225,12 @@ declare interface FeatureResponseData_2 {
8786
9225
  * @memberof FeatureResponseData
8787
9226
  */
8788
9227
  description: string;
9228
+ /**
9229
+ * Which event stream meters this feature. Track features are metered by track events; inference features are metered by inference events whose event label matches event_subtype, and meter through credits only.
9230
+ * @type {FeatureEventSource}
9231
+ * @memberof FeatureResponseData
9232
+ */
9233
+ eventSource: FeatureEventSource_2;
8789
9234
  /**
8790
9235
  *
8791
9236
  * @type {string}
@@ -9817,10 +10262,10 @@ declare interface InvoiceResponseData {
9817
10262
  createdAt: Date;
9818
10263
  /**
9819
10264
  *
9820
- * @type {string}
10265
+ * @type {Currency}
9821
10266
  * @memberof InvoiceResponseData
9822
10267
  */
9823
- currency: string;
10268
+ currency: Currency;
9824
10269
  /**
9825
10270
  *
9826
10271
  * @type {string}
@@ -10286,7 +10731,7 @@ declare interface PendingMigrationResponseData {
10286
10731
  */
10287
10732
  scheduledFor?: Date | null;
10288
10733
  /**
10289
- * Whether the company moves at the end of its billing period (end_of_billing_period) or on a specific date (scheduled). The type is shared with plan version migrations, but only those two values appear here: an immediate migration never pends.
10734
+ * Whether the company moves at the end of its billing period (end_of_billing_period) or on a specific date (scheduled). The type is shared with plan version migrations, but only those two values appear here: this view lists deferred migrations only, so an immediate migration is never shown, even while it is pending.
10290
10735
  * @type {PlanVersionMigrationStrategy}
10291
10736
  * @memberof PendingMigrationResponseData
10292
10737
  */
@@ -10337,6 +10782,7 @@ declare type Plan_2 = CompanyPlanDetailResponseData;
10337
10782
  * @export
10338
10783
  */
10339
10784
  declare const PlanBillingSource: {
10785
+ readonly Amendment: "amendment";
10340
10786
  readonly CustomPlan: "custom_plan";
10341
10787
  readonly ManagePlan: "manage_plan";
10342
10788
  };
@@ -10989,10 +11435,10 @@ declare interface PlanCreditGrantView_2 {
10989
11435
  declare interface PlanCurrencyPricesResponseData {
10990
11436
  /**
10991
11437
  *
10992
- * @type {string}
11438
+ * @type {Currency}
10993
11439
  * @memberof PlanCurrencyPricesResponseData
10994
11440
  */
10995
- currency: string;
11441
+ currency: Currency;
10996
11442
  /**
10997
11443
  *
10998
11444
  * @type {BillingPriceResponseData}
@@ -11027,10 +11473,10 @@ declare interface PlanCurrencyPricesResponseData {
11027
11473
  declare interface PlanCurrencyPricesResponseData_2 {
11028
11474
  /**
11029
11475
  *
11030
- * @type {string}
11476
+ * @type {Currency}
11031
11477
  * @memberof PlanCurrencyPricesResponseData
11032
11478
  */
11033
- currency: string;
11479
+ currency: Currency_2;
11034
11480
  /**
11035
11481
  *
11036
11482
  * @type {BillingPriceResponseData}
@@ -11398,6 +11844,14 @@ declare interface PlanEntitlementResponseData {
11398
11844
  * @memberof PlanEntitlementResponseData
11399
11845
  */
11400
11846
  priceBehavior?: EntitlementPriceBehavior | null;
11847
+ /**
11848
+ * Credits per unit of the quantity (per token for inference features), keyed by quantity key. Absent when the entitlement prices requests only.
11849
+ * @type {{ [key: string]: number; }}
11850
+ * @memberof PlanEntitlementResponseData
11851
+ */
11852
+ quantityRates?: {
11853
+ [key: string]: number;
11854
+ };
11401
11855
  /**
11402
11856
  *
11403
11857
  * @type {string}
@@ -11598,6 +12052,14 @@ declare interface PlanEntitlementResponseData_2 {
11598
12052
  * @memberof PlanEntitlementResponseData
11599
12053
  */
11600
12054
  priceBehavior?: EntitlementPriceBehavior_2 | null;
12055
+ /**
12056
+ * Credits per unit of the quantity (per token for inference features), keyed by quantity key. Absent when the entitlement prices requests only.
12057
+ * @type {{ [key: string]: number; }}
12058
+ * @memberof PlanEntitlementResponseData
12059
+ */
12060
+ quantityRates?: {
12061
+ [key: string]: number;
12062
+ };
11601
12063
  /**
11602
12064
  *
11603
12065
  * @type {string}
@@ -12661,6 +13123,12 @@ declare interface PreviewSubscriptionChangeResponseData {
12661
13123
  * @deprecated
12662
13124
  */
12663
13125
  periodStart: Date;
13126
+ /**
13127
+ *
13128
+ * @type {Array<CheckoutProblemResponseData>}
13129
+ * @memberof PreviewSubscriptionChangeResponseData
13130
+ */
13131
+ problems: Array<CheckoutProblemResponseData>;
12664
13132
  /**
12665
13133
  *
12666
13134
  * @type {boolean}
@@ -12696,17 +13164,6 @@ declare interface PreviewSubscriptionChangeResponseData {
12696
13164
  usageViolations: Array<FeatureUsageResponseData>;
12697
13165
  }
12698
13166
 
12699
- /**
12700
- * Schematic API
12701
- * Schematic API
12702
- *
12703
- * The version of the OpenAPI document: 0.1
12704
- *
12705
- *
12706
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12707
- * https://openapi-generator.tech
12708
- * Do not edit the class manually.
12709
- */
12710
13167
  /**
12711
13168
  *
12712
13169
  * @export
@@ -12727,10 +13184,10 @@ declare interface PreviewSubscriptionDiscountResponseData {
12727
13184
  couponName: string;
12728
13185
  /**
12729
13186
  *
12730
- * @type {string}
13187
+ * @type {Currency}
12731
13188
  * @memberof PreviewSubscriptionDiscountResponseData
12732
13189
  */
12733
- currency?: string | null;
13190
+ currency?: Currency | null;
12734
13191
  /**
12735
13192
  *
12736
13193
  * @type {string}
@@ -12795,10 +13252,10 @@ declare interface PreviewSubscriptionFinanceResponseData {
12795
13252
  amountOff: number;
12796
13253
  /**
12797
13254
  * ISO 4217 currency every amount in this block is denominated in.
12798
- * @type {string}
13255
+ * @type {Currency}
12799
13256
  * @memberof PreviewSubscriptionFinanceResponseData
12800
13257
  */
12801
- currency: string;
13258
+ currency: Currency;
12802
13259
  /**
12803
13260
  *
12804
13261
  * @type {number}
@@ -13807,17 +14264,6 @@ declare const ScheduledDowngradeConfigBehavior: {
13807
14264
 
13808
14265
  declare type ScheduledDowngradeConfigBehavior = (typeof ScheduledDowngradeConfigBehavior)[keyof typeof ScheduledDowngradeConfigBehavior];
13809
14266
 
13810
- /**
13811
- * Schematic API
13812
- * Schematic API
13813
- *
13814
- * The version of the OpenAPI document: 0.1
13815
- *
13816
- *
13817
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13818
- * https://openapi-generator.tech
13819
- * Do not edit the class manually.
13820
- */
13821
14267
  /**
13822
14268
  *
13823
14269
  * @export
@@ -13826,10 +14272,10 @@ declare type ScheduledDowngradeConfigBehavior = (typeof ScheduledDowngradeConfig
13826
14272
  declare interface ScheduledDowngradeResponseData {
13827
14273
  /**
13828
14274
  *
13829
- * @type {string}
14275
+ * @type {Currency}
13830
14276
  * @memberof ScheduledDowngradeResponseData
13831
14277
  */
13832
- currency: string;
14278
+ currency: Currency;
13833
14279
  /**
13834
14280
  *
13835
14281
  * @type {Date}
@@ -14397,10 +14843,10 @@ declare interface UpcomingInvoiceResponseData {
14397
14843
  createdAt: Date;
14398
14844
  /**
14399
14845
  *
14400
- * @type {string}
14846
+ * @type {Currency}
14401
14847
  * @memberof UpcomingInvoiceResponseData
14402
14848
  */
14403
- currency: string;
14849
+ currency: Currency;
14404
14850
  /**
14405
14851
  *
14406
14852
  * @type {string}