@schematichq/schematic-components 2.36.1 → 2.38.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.
@@ -1009,8 +1009,8 @@ declare const BillingPlanCreditGrantBillingMode_2: {
1009
1009
  declare type BillingPlanCreditGrantBillingMode_2 = (typeof BillingPlanCreditGrantBillingMode_2)[keyof typeof BillingPlanCreditGrantBillingMode_2];
1010
1010
 
1011
1011
  /**
1012
- * Schematic API
1013
- * Schematic API
1012
+ * Components API
1013
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
1014
1014
  *
1015
1015
  * The version of the OpenAPI document: 0.1
1016
1016
  *
@@ -1353,7 +1353,7 @@ declare interface BillingPlanCreditGrantResponseData {
1353
1353
  * @type {BillingPriceResponseData}
1354
1354
  * @memberof BillingPlanCreditGrantResponseData
1355
1355
  */
1356
- price?: BillingPriceResponseData;
1356
+ price?: BillingPriceResponseData | null;
1357
1357
  /**
1358
1358
  * Tier table pricing the credits, cheapest bound first. Empty unless billing_mode is billed and the credits are priced on tiers.
1359
1359
  * @type {Array<BillingPlanCreditGrantPriceTierResponseData>}
@@ -1423,8 +1423,8 @@ declare interface BillingPlanCreditGrantResponseData {
1423
1423
  }
1424
1424
 
1425
1425
  /**
1426
- * Schematic API
1427
- * Schematic API
1426
+ * Components API
1427
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
1428
1428
  *
1429
1429
  * The version of the OpenAPI document: 0.1
1430
1430
  *
@@ -2430,8 +2430,8 @@ declare interface BillingProductPriceResponseData {
2430
2430
  }
2431
2431
 
2432
2432
  /**
2433
- * Schematic API
2434
- * Schematic API
2433
+ * Components API
2434
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
2435
2435
  *
2436
2436
  * The version of the OpenAPI document: 0.1
2437
2437
  *
@@ -2955,6 +2955,18 @@ declare interface BillingSubscriptionDiscountView {
2955
2955
  subscriptionExternalId: string;
2956
2956
  }
2957
2957
 
2958
+ /**
2959
+ *
2960
+ * @export
2961
+ */
2962
+ declare const BillingSubscriptionPauseBehavior: {
2963
+ readonly KeepAsDraft: "keep_as_draft";
2964
+ readonly MarkUncollectible: "mark_uncollectible";
2965
+ readonly Void: "void";
2966
+ };
2967
+
2968
+ declare type BillingSubscriptionPauseBehavior = (typeof BillingSubscriptionPauseBehavior)[keyof typeof BillingSubscriptionPauseBehavior];
2969
+
2958
2970
  /**
2959
2971
  *
2960
2972
  * @export
@@ -2972,6 +2984,12 @@ declare type BillingSubscriptionTrialEndSetting = (typeof BillingSubscriptionTri
2972
2984
  * @interface BillingSubscriptionView
2973
2985
  */
2974
2986
  declare interface BillingSubscriptionView {
2987
+ /**
2988
+ *
2989
+ * @type {Date}
2990
+ * @memberof BillingSubscriptionView
2991
+ */
2992
+ accessRevokedAt?: Date | null;
2975
2993
  /**
2976
2994
  *
2977
2995
  * @type {string}
@@ -3056,6 +3074,24 @@ declare interface BillingSubscriptionView {
3056
3074
  * @memberof BillingSubscriptionView
3057
3075
  */
3058
3076
  metadata?: object;
3077
+ /**
3078
+ *
3079
+ * @type {BillingSubscriptionPauseBehavior}
3080
+ * @memberof BillingSubscriptionView
3081
+ */
3082
+ pauseBehavior?: BillingSubscriptionPauseBehavior | null;
3083
+ /**
3084
+ *
3085
+ * @type {number}
3086
+ * @memberof BillingSubscriptionView
3087
+ */
3088
+ pauseResumesAt?: number | null;
3089
+ /**
3090
+ *
3091
+ * @type {Date}
3092
+ * @memberof BillingSubscriptionView
3093
+ */
3094
+ pausedAt?: Date | null;
3059
3095
  /**
3060
3096
  *
3061
3097
  * @type {PaymentMethodResponseData}
@@ -3545,8 +3581,8 @@ declare interface CheckoutDialogProps {
3545
3581
  }
3546
3582
 
3547
3583
  /**
3548
- * Schematic API
3549
- * Schematic API
3584
+ * Components API
3585
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
3550
3586
  *
3551
3587
  * The version of the OpenAPI document: 0.1
3552
3588
  *
@@ -3576,8 +3612,8 @@ declare interface CheckoutFieldValue {
3576
3612
  }
3577
3613
 
3578
3614
  /**
3579
- * Schematic API
3580
- * Schematic API
3615
+ * Components API
3616
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
3581
3617
  *
3582
3618
  * The version of the OpenAPI document: 0.1
3583
3619
  *
@@ -3856,6 +3892,12 @@ declare interface CheckoutResponse {
3856
3892
  * @interface CheckoutResponseData
3857
3893
  */
3858
3894
  declare interface CheckoutResponseData {
3895
+ /**
3896
+ *
3897
+ * @type {Date}
3898
+ * @memberof CheckoutResponseData
3899
+ */
3900
+ accessRevokedAt?: Date | null;
3859
3901
  /**
3860
3902
  *
3861
3903
  * @type {string}
@@ -3940,6 +3982,24 @@ declare interface CheckoutResponseData {
3940
3982
  * @memberof CheckoutResponseData
3941
3983
  */
3942
3984
  metadata?: object;
3985
+ /**
3986
+ *
3987
+ * @type {BillingSubscriptionPauseBehavior}
3988
+ * @memberof CheckoutResponseData
3989
+ */
3990
+ pauseBehavior?: BillingSubscriptionPauseBehavior | null;
3991
+ /**
3992
+ *
3993
+ * @type {number}
3994
+ * @memberof CheckoutResponseData
3995
+ */
3996
+ pauseResumesAt?: number | null;
3997
+ /**
3998
+ *
3999
+ * @type {Date}
4000
+ * @memberof CheckoutResponseData
4001
+ */
4002
+ pausedAt?: Date | null;
3943
4003
  /**
3944
4004
  *
3945
4005
  * @type {number}
@@ -4528,8 +4588,8 @@ declare interface CompanyEventPeriodMetricsResponseData {
4528
4588
  }
4529
4589
 
4530
4590
  /**
4531
- * Schematic API
4532
- * Schematic API
4591
+ * Components API
4592
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
4533
4593
  *
4534
4594
  * The version of the OpenAPI document: 0.1
4535
4595
  *
@@ -4654,6 +4714,12 @@ declare interface CompanyOverrideResponseData {
4654
4714
  * @memberof CompanyOverrideResponseData
4655
4715
  */
4656
4716
  metricPeriodMonthReset?: MetricPeriodMonthReset | null;
4717
+ /**
4718
+ * Per-model rate overrides for inference features, keyed by provider and model. Each entry replaces consumption_rate and quantity_rates for events from that model. Absent when every model burns at the entitlement's own rates.
4719
+ * @type {Array<CreditModelRate>}
4720
+ * @memberof CompanyOverrideResponseData
4721
+ */
4722
+ modelRates?: Array<CreditModelRate>;
4657
4723
  /**
4658
4724
  *
4659
4725
  * @type {Array<CompanyOverrideNoteResponseData>}
@@ -5463,12 +5529,42 @@ declare interface CompanySubscriptionResponseData {
5463
5529
  * @memberof CompanySubscriptionResponseData
5464
5530
  */
5465
5531
  latestInvoice?: InvoiceResponseData;
5532
+ /**
5533
+ *
5534
+ * @type {BillingSubscriptionPauseBehavior}
5535
+ * @memberof CompanySubscriptionResponseData
5536
+ */
5537
+ pauseBehavior?: BillingSubscriptionPauseBehavior | null;
5538
+ /**
5539
+ *
5540
+ * @type {Date}
5541
+ * @memberof CompanySubscriptionResponseData
5542
+ */
5543
+ pauseResumesAt?: Date | null;
5544
+ /**
5545
+ *
5546
+ * @type {Date}
5547
+ * @memberof CompanySubscriptionResponseData
5548
+ */
5549
+ pausedAt?: Date | null;
5466
5550
  /**
5467
5551
  *
5468
5552
  * @type {PaymentMethodResponseData}
5469
5553
  * @memberof CompanySubscriptionResponseData
5470
5554
  */
5471
5555
  paymentMethod?: PaymentMethodResponseData;
5556
+ /**
5557
+ *
5558
+ * @type {Date}
5559
+ * @memberof CompanySubscriptionResponseData
5560
+ */
5561
+ periodEnd?: Date | null;
5562
+ /**
5563
+ *
5564
+ * @type {Date}
5565
+ * @memberof CompanySubscriptionResponseData
5566
+ */
5567
+ periodStart?: Date | null;
5472
5568
  /**
5473
5569
  *
5474
5570
  * @type {Array<BillingProductForSubscriptionResponseData>}
@@ -5508,8 +5604,8 @@ declare interface CompanySubscriptionResponseData {
5508
5604
  }
5509
5605
 
5510
5606
  /**
5511
- * Schematic API
5512
- * Schematic API
5607
+ * Components API
5608
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
5513
5609
  *
5514
5610
  * The version of the OpenAPI document: 0.1
5515
5611
  *
@@ -5591,8 +5687,8 @@ declare const ComparableOperator_2: {
5591
5687
  declare type ComparableOperator_2 = (typeof ComparableOperator_2)[keyof typeof ComparableOperator_2];
5592
5688
 
5593
5689
  /**
5594
- * Schematic API
5595
- * Schematic API
5690
+ * Components API
5691
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
5596
5692
  *
5597
5693
  * The version of the OpenAPI document: 0.1
5598
5694
  *
@@ -5653,8 +5749,8 @@ declare interface CompatiblePlans_2 {
5653
5749
  }
5654
5750
 
5655
5751
  /**
5656
- * Schematic API
5657
- * Schematic API
5752
+ * Components API
5753
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
5658
5754
  *
5659
5755
  * The version of the OpenAPI document: 0.1
5660
5756
  *
@@ -5765,8 +5861,8 @@ declare interface ComponentCheckoutSettings {
5765
5861
  }
5766
5862
 
5767
5863
  /**
5768
- * Schematic API
5769
- * Schematic API
5864
+ * Components API
5865
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
5770
5866
  *
5771
5867
  * The version of the OpenAPI document: 0.1
5772
5868
  *
@@ -6749,6 +6845,96 @@ declare interface CreditGrantDetail {
6749
6845
  quantity: number;
6750
6846
  }
6751
6847
 
6848
+ /**
6849
+ * Components API
6850
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
6851
+ *
6852
+ * The version of the OpenAPI document: 0.1
6853
+ *
6854
+ *
6855
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6856
+ * https://openapi-generator.tech
6857
+ * Do not edit the class manually.
6858
+ */
6859
+ /**
6860
+ *
6861
+ * @export
6862
+ * @interface CreditModelRate
6863
+ */
6864
+ declare interface CreditModelRate {
6865
+ /**
6866
+ *
6867
+ * @type {number}
6868
+ * @memberof CreditModelRate
6869
+ */
6870
+ consumptionRate: number;
6871
+ /**
6872
+ *
6873
+ * @type {string}
6874
+ * @memberof CreditModelRate
6875
+ */
6876
+ model: string;
6877
+ /**
6878
+ *
6879
+ * @type {string}
6880
+ * @memberof CreditModelRate
6881
+ */
6882
+ provider: string;
6883
+ /**
6884
+ *
6885
+ * @type {{ [key: string]: number; }}
6886
+ * @memberof CreditModelRate
6887
+ */
6888
+ quantityRates?: {
6889
+ [key: string]: number;
6890
+ };
6891
+ }
6892
+
6893
+ /**
6894
+ * Schematic API
6895
+ * Schematic API
6896
+ *
6897
+ * The version of the OpenAPI document: 0.1
6898
+ *
6899
+ *
6900
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6901
+ * https://openapi-generator.tech
6902
+ * Do not edit the class manually.
6903
+ */
6904
+ /**
6905
+ *
6906
+ * @export
6907
+ * @interface CreditModelRate
6908
+ */
6909
+ declare interface CreditModelRate_2 {
6910
+ /**
6911
+ *
6912
+ * @type {number}
6913
+ * @memberof CreditModelRate
6914
+ */
6915
+ consumptionRate: number;
6916
+ /**
6917
+ *
6918
+ * @type {string}
6919
+ * @memberof CreditModelRate
6920
+ */
6921
+ model: string;
6922
+ /**
6923
+ *
6924
+ * @type {string}
6925
+ * @memberof CreditModelRate
6926
+ */
6927
+ provider: string;
6928
+ /**
6929
+ *
6930
+ * @type {{ [key: string]: number; }}
6931
+ * @memberof CreditModelRate
6932
+ */
6933
+ quantityRates?: {
6934
+ [key: string]: number;
6935
+ };
6936
+ }
6937
+
6752
6938
  export declare const Credits: ({ isLoading, bundles, isIndividualPurchase, updateCount, toggle, currency, }: CreditsProps) => JSX.Element;
6753
6939
 
6754
6940
  declare interface CreditsProps {
@@ -6761,8 +6947,8 @@ declare interface CreditsProps {
6761
6947
  }
6762
6948
 
6763
6949
  /**
6764
- * Schematic API
6765
- * Schematic API
6950
+ * Components API
6951
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
6766
6952
  *
6767
6953
  * The version of the OpenAPI document: 0.1
6768
6954
  *
@@ -6816,8 +7002,8 @@ declare interface CreditTransferView {
6816
7002
  }
6817
7003
 
6818
7004
  /**
6819
- * Schematic API
6820
- * Schematic API
7005
+ * Components API
7006
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
6821
7007
  *
6822
7008
  * The version of the OpenAPI document: 0.1
6823
7009
  *
@@ -6911,7 +7097,7 @@ declare interface CreditUserUsageResponseData {
6911
7097
  * @type {UserCreditUsageResponseData}
6912
7098
  * @memberof CreditUserUsageResponseData
6913
7099
  */
6914
- unattributed?: UserCreditUsageResponseData;
7100
+ unattributed?: UserCreditUsageResponseData | null;
6915
7101
  }
6916
7102
 
6917
7103
  declare interface CreditWithCompanyContext {
@@ -7271,6 +7457,12 @@ declare interface CustomPlanBillingResponseData {
7271
7457
  * @memberof CustomPlanBillingResponseData
7272
7458
  */
7273
7459
  billingCycleAnchor?: Date | null;
7460
+ /**
7461
+ * The company that pays for the subscription, when it isn't the plan's company. Null when the company pays for itself.
7462
+ * @type {string}
7463
+ * @memberof CustomPlanBillingResponseData
7464
+ */
7465
+ billingEntityId?: string | null;
7274
7466
  /**
7275
7467
  * The date the contract term starts, when the operator pinned one. A past date was backdated onto the subscription so the first period runs from the contract date rather than from finalization.
7276
7468
  * @type {Date}
@@ -7409,8 +7601,8 @@ declare const CustomPlanBillingStatus: {
7409
7601
  declare type CustomPlanBillingStatus = (typeof CustomPlanBillingStatus)[keyof typeof CustomPlanBillingStatus];
7410
7602
 
7411
7603
  /**
7412
- * Schematic API
7413
- * Schematic API
7604
+ * Components API
7605
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
7414
7606
  *
7415
7607
  * The version of the OpenAPI document: 0.1
7416
7608
  *
@@ -7513,8 +7705,8 @@ declare interface DeletePaymentMethodResponse {
7513
7705
  }
7514
7706
 
7515
7707
  /**
7516
- * Schematic API
7517
- * Schematic API
7708
+ * Components API
7709
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
7518
7710
  *
7519
7711
  * The version of the OpenAPI document: 0.1
7520
7712
  *
@@ -7809,6 +8001,7 @@ export declare interface EmbedContextProps extends Omit<EmbedState, SettingsLaye
7809
8001
  getUpcomingInvoice: (id: string) => DebouncedApiPromise<HydrateUpcomingInvoiceResponse>;
7810
8002
  getCustomerBalance: () => DebouncedApiPromise<FetchCustomerBalanceResponse>;
7811
8003
  listInvoices: () => DebouncedApiPromise<ListInvoicesResponse>;
8004
+ getInvoiceLink: (billingInvoiceId: string) => Promise<GetInvoiceLinkResponse | undefined>;
7812
8005
  getCreditUsageByUser: (billingCreditId: string, limit?: number) => DebouncedApiPromise<GetCreditUsageByUserResponse>;
7813
8006
  getFeatureUsageByUser: (featureId: string, limit?: number) => DebouncedApiPromise<GetFeatureUsageByUserResponse>;
7814
8007
  createSetupIntent: () => DebouncedApiPromise<GetSetupIntentResponse>;
@@ -8711,8 +8904,8 @@ declare interface EstimatedPlanTotal {
8711
8904
  }
8712
8905
 
8713
8906
  /**
8714
- * Schematic API
8715
- * Schematic API
8907
+ * Components API
8908
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
8716
8909
  *
8717
8910
  * The version of the OpenAPI document: 0.1
8718
8911
  *
@@ -9604,7 +9797,7 @@ declare interface FeatureUsageResponseData {
9604
9797
  * @type {CreditUsageAggregation}
9605
9798
  * @memberof FeatureUsageResponseData
9606
9799
  */
9607
- creditUsageAggregation?: CreditUsageAggregation;
9800
+ creditUsageAggregation?: CreditUsageAggregation | null;
9608
9801
  /**
9609
9802
  *
9610
9803
  * @type {number}
@@ -9792,7 +9985,7 @@ declare interface FeatureUserUsageResponseData {
9792
9985
  * @type {UserFeatureUsageResponseData}
9793
9986
  * @memberof FeatureUserUsageResponseData
9794
9987
  */
9795
- unattributed?: UserFeatureUsageResponseData;
9988
+ unattributed?: UserFeatureUsageResponseData | null;
9796
9989
  }
9797
9990
 
9798
9991
  declare type FetchAPI = WindowOrWorkerGlobalScope["fetch"];
@@ -10034,6 +10227,7 @@ declare interface FormatInvoiceOptions {
10034
10227
  }
10035
10228
 
10036
10229
  export declare function formatInvoices(invoices: InvoiceResponseData[] | undefined, locale: string, options?: FormatInvoiceOptions): {
10230
+ id: string;
10037
10231
  amount: string;
10038
10232
  amountDue: number;
10039
10233
  date: string;
@@ -10059,8 +10253,8 @@ style?: CSSProperties | CSSPropertiesWithVars | (CSSProperties & {
10059
10253
  }> & string;
10060
10254
 
10061
10255
  /**
10062
- * Schematic API
10063
- * Schematic API
10256
+ * Components API
10257
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
10064
10258
  *
10065
10259
  * The version of the OpenAPI document: 0.1
10066
10260
  *
@@ -10165,8 +10359,8 @@ declare interface GetCheckoutTaxIDResponse {
10165
10359
  }
10166
10360
 
10167
10361
  /**
10168
- * Schematic API
10169
- * Schematic API
10362
+ * Components API
10363
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
10170
10364
  *
10171
10365
  * The version of the OpenAPI document: 0.1
10172
10366
  *
@@ -10216,8 +10410,8 @@ declare interface GetCreditUsageByUserResponse {
10216
10410
  }
10217
10411
 
10218
10412
  /**
10219
- * Schematic API
10220
- * Schematic API
10413
+ * Components API
10414
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
10221
10415
  *
10222
10416
  * The version of the OpenAPI document: 0.1
10223
10417
  *
@@ -10266,6 +10460,26 @@ declare interface GetFeatureUsageByUserResponse {
10266
10460
  params: GetFeatureUsageByUserParams;
10267
10461
  }
10268
10462
 
10463
+ /**
10464
+ *
10465
+ * @export
10466
+ * @interface GetInvoiceLinkResponse
10467
+ */
10468
+ declare interface GetInvoiceLinkResponse {
10469
+ /**
10470
+ *
10471
+ * @type {InvoiceLink}
10472
+ * @memberof GetInvoiceLinkResponse
10473
+ */
10474
+ data: InvoiceLink;
10475
+ /**
10476
+ * Input parameters
10477
+ * @type {object}
10478
+ * @memberof GetInvoiceLinkResponse
10479
+ */
10480
+ params: object;
10481
+ }
10482
+
10269
10483
  /**
10270
10484
  *
10271
10485
  * @export
@@ -10344,6 +10558,7 @@ export declare const initialContext: {
10344
10558
  getUpcomingInvoice: () => never;
10345
10559
  getCustomerBalance: () => never;
10346
10560
  listInvoices: () => never;
10561
+ getInvoiceLink: () => never;
10347
10562
  getCreditUsageByUser: () => never;
10348
10563
  getFeatureUsageByUser: () => never;
10349
10564
  createSetupIntent: () => never;
@@ -10393,6 +10608,37 @@ $color?: "primary" | "secondary" | "danger";
10393
10608
  $variant?: "filled" | "outline" | "ghost" | "text";
10394
10609
  }>> & string;
10395
10610
 
10611
+ /**
10612
+ * Components API
10613
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
10614
+ *
10615
+ * The version of the OpenAPI document: 0.1
10616
+ *
10617
+ *
10618
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10619
+ * https://openapi-generator.tech
10620
+ * Do not edit the class manually.
10621
+ */
10622
+ /**
10623
+ *
10624
+ * @export
10625
+ * @interface InvoiceLink
10626
+ */
10627
+ declare interface InvoiceLink {
10628
+ /**
10629
+ *
10630
+ * @type {string}
10631
+ * @memberof InvoiceLink
10632
+ */
10633
+ id: string;
10634
+ /**
10635
+ *
10636
+ * @type {string}
10637
+ * @memberof InvoiceLink
10638
+ */
10639
+ url: string;
10640
+ }
10641
+
10396
10642
  /**
10397
10643
  *
10398
10644
  * @export
@@ -10572,8 +10818,8 @@ export declare type LeadingNameType = `${LeadingName}`;
10572
10818
  declare type Listener = (...args: any[]) => void;
10573
10819
 
10574
10820
  /**
10575
- * Schematic API
10576
- * Schematic API
10821
+ * Components API
10822
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
10577
10823
  *
10578
10824
  * The version of the OpenAPI document: 0.1
10579
10825
  *
@@ -10976,8 +11222,8 @@ declare const PlanBillingSource: {
10976
11222
  declare type PlanBillingSource = (typeof PlanBillingSource)[keyof typeof PlanBillingSource];
10977
11223
 
10978
11224
  /**
10979
- * Schematic API
10980
- * Schematic API
11225
+ * Components API
11226
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
10981
11227
  *
10982
11228
  * The version of the OpenAPI document: 0.1
10983
11229
  *
@@ -11614,8 +11860,8 @@ declare interface PlanCreditGrantView_2 {
11614
11860
  }
11615
11861
 
11616
11862
  /**
11617
- * Schematic API
11618
- * Schematic API
11863
+ * Components API
11864
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
11619
11865
  *
11620
11866
  * The version of the OpenAPI document: 0.1
11621
11867
  *
@@ -12062,6 +12308,12 @@ declare interface PlanEntitlementResponseData {
12062
12308
  * @memberof PlanEntitlementResponseData
12063
12309
  */
12064
12310
  metricPeriodMonthReset?: MetricPeriodMonthReset | null;
12311
+ /**
12312
+ * Per-model rate overrides for inference features, keyed by provider and model. Each entry replaces consumption_rate and quantity_rates for events from that model. Absent when every model burns at the entitlement's own rates.
12313
+ * @type {Array<CreditModelRate>}
12314
+ * @memberof PlanEntitlementResponseData
12315
+ */
12316
+ modelRates?: Array<CreditModelRate>;
12065
12317
  /**
12066
12318
  * How often overage charges are assessed and invoiced. Null or end_of_billing_period means the billing provider aggregates usage over the subscription's own period and bills it at period end. Monthly and quarterly mean Schematic assesses the overage each month or quarter and bills it on its own invoice. Only applies to overage price behavior.
12067
12319
  * @type {BillingArrearsCadence}
@@ -12270,6 +12522,12 @@ declare interface PlanEntitlementResponseData_2 {
12270
12522
  * @memberof PlanEntitlementResponseData
12271
12523
  */
12272
12524
  metricPeriodMonthReset?: MetricPeriodMonthReset_2 | null;
12525
+ /**
12526
+ * Per-model rate overrides for inference features, keyed by provider and model. Each entry replaces consumption_rate and quantity_rates for events from that model. Absent when every model burns at the entitlement's own rates.
12527
+ * @type {Array<CreditModelRate>}
12528
+ * @memberof PlanEntitlementResponseData
12529
+ */
12530
+ modelRates?: Array<CreditModelRate_2>;
12273
12531
  /**
12274
12532
  * How often overage charges are assessed and invoiced. Null or end_of_billing_period means the billing provider aggregates usage over the subscription's own period and bills it at period end. Monthly and quarterly mean Schematic assesses the overage each month or quarter and bills it on its own invoice. Only applies to overage price behavior.
12275
12533
  * @type {BillingArrearsCadence}
@@ -13141,8 +13399,8 @@ declare interface PreviewCheckoutResponse {
13141
13399
  }
13142
13400
 
13143
13401
  /**
13144
- * Schematic API
13145
- * Schematic API
13402
+ * Components API
13403
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
13146
13404
  *
13147
13405
  * The version of the OpenAPI document: 0.1
13148
13406
  *
@@ -13227,8 +13485,8 @@ declare interface PreviewObject_2 {
13227
13485
  }
13228
13486
 
13229
13487
  /**
13230
- * Schematic API
13231
- * Schematic API
13488
+ * Components API
13489
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
13232
13490
  *
13233
13491
  * The version of the OpenAPI document: 0.1
13234
13492
  *
@@ -13599,7 +13857,7 @@ declare interface PreviewSubscriptionFinanceResponseData {
13599
13857
  * @type {PreviewSubscriptionProrationResponseData}
13600
13858
  * @memberof PreviewSubscriptionFinanceResponseData
13601
13859
  */
13602
- prorationDetail?: PreviewSubscriptionProrationResponseData;
13860
+ prorationDetail?: PreviewSubscriptionProrationResponseData | null;
13603
13861
  /**
13604
13862
  *
13605
13863
  * @type {number}
@@ -13739,8 +13997,8 @@ declare interface PreviewSubscriptionProrationResponseData {
13739
13997
  }
13740
13998
 
13741
13999
  /**
13742
- * Schematic API
13743
- * Schematic API
14000
+ * Components API
14001
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
13744
14002
  *
13745
14003
  * The version of the OpenAPI document: 0.1
13746
14004
  *
@@ -14774,7 +15032,7 @@ export declare const SchematicEmbed: ({ id, accessToken }: EmbedProps) => JSX.El
14774
15032
  export declare interface SchematicI18nInstance {
14775
15033
  language: string;
14776
15034
  resolvedLanguage?: string;
14777
- t(key: string, options?: Record<string, unknown>): string;
15035
+ t(key: string, options: Record<string, unknown>): string;
14778
15036
  exists(key: string, options?: Record<string, unknown>): boolean;
14779
15037
  on(event: string, listener: Listener): void;
14780
15038
  off(event: string, listener: Listener): void;
@@ -14845,8 +15103,8 @@ export declare type SettingsLayer = (typeof SETTINGS_LAYERS)[number];
14845
15103
  export declare type SettingsSource = "builder" | "consumer";
14846
15104
 
14847
15105
  /**
14848
- * Schematic API
14849
- * Schematic API
15106
+ * Components API
15107
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
14850
15108
  *
14851
15109
  * The version of the OpenAPI document: 0.1
14852
15110
  *
@@ -14896,8 +15154,8 @@ declare type SharedEntitlementUsageProps = {
14896
15154
  declare type Status = "idle" | "confirming" | "succeeded" | "failed";
14897
15155
 
14898
15156
  /**
14899
- * Schematic API
14900
- * Schematic API
15157
+ * Components API
15158
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
14901
15159
  *
14902
15160
  * The version of the OpenAPI document: 0.1
14903
15161
  *
@@ -15353,8 +15611,8 @@ declare interface UpcomingInvoiceResponseData {
15353
15611
  }
15354
15612
 
15355
15613
  /**
15356
- * Schematic API
15357
- * Schematic API
15614
+ * Components API
15615
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
15358
15616
  *
15359
15617
  * The version of the OpenAPI document: 0.1
15360
15618
  *
@@ -15384,8 +15642,8 @@ declare interface UpdateAddOnRequestBody {
15384
15642
  }
15385
15643
 
15386
15644
  /**
15387
- * Schematic API
15388
- * Schematic API
15645
+ * Components API
15646
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
15389
15647
  *
15390
15648
  * The version of the OpenAPI document: 0.1
15391
15649
  *
@@ -15461,8 +15719,8 @@ declare interface UpdateCheckoutTaxIDResponseData {
15461
15719
  }
15462
15720
 
15463
15721
  /**
15464
- * Schematic API
15465
- * Schematic API
15722
+ * Components API
15723
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
15466
15724
  *
15467
15725
  * The version of the OpenAPI document: 0.1
15468
15726
  *
@@ -15492,8 +15750,8 @@ declare interface UpdateCreditBundleRequestBody {
15492
15750
  }
15493
15751
 
15494
15752
  /**
15495
- * Schematic API
15496
- * Schematic API
15753
+ * Components API
15754
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
15497
15755
  *
15498
15756
  * The version of the OpenAPI document: 0.1
15499
15757
  *
@@ -15734,7 +15992,7 @@ declare interface UserCreditUsageResponseData {
15734
15992
  * @type {UserResponseData}
15735
15993
  * @memberof UserCreditUsageResponseData
15736
15994
  */
15737
- user?: UserResponseData;
15995
+ user?: UserResponseData | null;
15738
15996
  /**
15739
15997
  * The user the consumption is attributed to; null for unattributed consumption
15740
15998
  * @type {string}
@@ -15776,7 +16034,7 @@ declare interface UserFeatureUsageResponseData {
15776
16034
  * @type {UserResponseData}
15777
16035
  * @memberof UserFeatureUsageResponseData
15778
16036
  */
15779
- user?: UserResponseData;
16037
+ user?: UserResponseData | null;
15780
16038
  /**
15781
16039
  * The user the usage is attributed to; null for unattributed usage
15782
16040
  * @type {string}
@@ -15792,8 +16050,8 @@ declare interface UserFeatureUsageResponseData {
15792
16050
  }
15793
16051
 
15794
16052
  /**
15795
- * Schematic API
15796
- * Schematic API
16053
+ * Components API
16054
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
15797
16055
  *
15798
16056
  * The version of the OpenAPI document: 0.1
15799
16057
  *
@@ -15898,8 +16156,8 @@ export declare interface WarningThresholdConfig {
15898
16156
  }
15899
16157
 
15900
16158
  /**
15901
- * Schematic API
15902
- * Schematic API
16159
+ * Components API
16160
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
15903
16161
  *
15904
16162
  * The version of the OpenAPI document: 0.1
15905
16163
  *
@@ -15929,8 +16187,8 @@ declare interface WarningTier {
15929
16187
  }
15930
16188
 
15931
16189
  /**
15932
- * Schematic API
15933
- * Schematic API
16190
+ * Components API
16191
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
15934
16192
  *
15935
16193
  * The version of the OpenAPI document: 0.1
15936
16194
  *