@schematichq/schematic-components 2.32.0 → 2.34.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.
@@ -3599,24 +3599,49 @@ export declare interface CheckoutPrefill {
3599
3599
  * @export
3600
3600
  */
3601
3601
  declare const CheckoutProblemCode: {
3602
+ readonly AddOnConflictsWithPlan: "add_on_conflicts_with_plan";
3603
+ readonly AddOnIntervalMismatch: "add_on_interval_mismatch";
3602
3604
  readonly AddOnRequiresBilledPlan: "add_on_requires_billed_plan";
3605
+ readonly AddOnUnavailable: "add_on_unavailable";
3603
3606
  readonly BillingCycleAnchorConflictsWithTrial: "billing_cycle_anchor_conflicts_with_trial";
3604
3607
  readonly BillingCycleAnchorMustBeFuture: "billing_cycle_anchor_must_be_future";
3608
+ readonly BillingCycleAnchorNeedsNewSubscription: "billing_cycle_anchor_needs_new_subscription";
3609
+ readonly BillingCycleAnchorWithoutPlan: "billing_cycle_anchor_without_plan";
3610
+ readonly BillingStartDateMustBePast: "billing_start_date_must_be_past";
3611
+ readonly BillingStartDateNeedsNewSubscription: "billing_start_date_needs_new_subscription";
3612
+ readonly BillingStartDateNeedsRenewalDate: "billing_start_date_needs_renewal_date";
3613
+ readonly BillingStartDateNotBeforeRenewalDate: "billing_start_date_not_before_renewal_date";
3614
+ readonly BillingStartDateTooFarInPast: "billing_start_date_too_far_in_past";
3605
3615
  readonly CreditBundleIncompatible: "credit_bundle_incompatible";
3616
+ readonly CreditBundleUnavailable: "credit_bundle_unavailable";
3617
+ readonly CreditBundlesActivateOnPayment: "credit_bundles_activate_on_payment";
3606
3618
  readonly CurrencyMismatch: "currency_mismatch";
3619
+ readonly CustomFieldRequired: "custom_field_required";
3607
3620
  readonly DiscountIneligible: "discount_ineligible";
3621
+ readonly DowngradeNotPermitted: "downgrade_not_permitted";
3608
3622
  readonly FreeFirstPeriodActivatesOnPayment: "free_first_period_activates_on_payment";
3609
3623
  readonly InvoiceEmailRequired: "invoice_email_required";
3610
3624
  readonly InvoicedSubscriptionConflictsWithTrial: "invoiced_subscription_conflicts_with_trial";
3625
+ readonly InvoicedSubscriptionNeedsNewSubscription: "invoiced_subscription_needs_new_subscription";
3626
+ readonly InvoicedSubscriptionRequiresPlan: "invoiced_subscription_requires_plan";
3611
3627
  readonly OptInRequired: "opt_in_required";
3628
+ readonly PayInAdvancePriceInvalid: "pay_in_advance_price_invalid";
3629
+ readonly PayInAdvanceRequired: "pay_in_advance_required";
3612
3630
  readonly PaymentMethodRequired: "payment_method_required";
3631
+ readonly PlanNotTrialable: "plan_not_trialable";
3613
3632
  readonly PlanUnavailable: "plan_unavailable";
3614
3633
  readonly PriceUnavailable: "price_unavailable";
3615
3634
  readonly ProrateFirstPeriodWithoutAnchor: "prorate_first_period_without_anchor";
3616
3635
  readonly ProviderRejected: "provider_rejected";
3636
+ readonly ScheduledChangeBlocksPurchase: "scheduled_change_blocks_purchase";
3637
+ readonly ScheduledChangePending: "scheduled_change_pending";
3617
3638
  readonly SelectionInvalid: "selection_invalid";
3639
+ readonly SubscriptionCurrencyChange: "subscription_currency_change";
3618
3640
  readonly TrialEndMustBeFuture: "trial_end_must_be_future";
3619
3641
  readonly TrialEndTooFar: "trial_end_too_far";
3642
+ readonly TrialExcludesAddOns: "trial_excludes_add_ons";
3643
+ readonly TrialExcludesUsageBased: "trial_excludes_usage_based";
3644
+ readonly UsagePriceMissingForInterval: "usage_price_missing_for_interval";
3620
3645
  readonly UsageOverLimit: "usage_over_limit";
3621
3646
  };
3622
3647
 
@@ -5002,6 +5027,12 @@ declare interface CompanyPlanDetailResponseData {
5002
5027
  * @memberof CompanyPlanDetailResponseData
5003
5028
  */
5004
5029
  createdAt: Date;
5030
+ /**
5031
+ *
5032
+ * @type {Array<PlanCreditVisibility>}
5033
+ * @memberof CompanyPlanDetailResponseData
5034
+ */
5035
+ creditVisibility?: Array<PlanCreditVisibility>;
5005
5036
  /**
5006
5037
  *
5007
5038
  * @type {Array<BillingCreditResponseData>}
@@ -6086,6 +6117,14 @@ declare interface Condition {
6086
6117
  * @memberof Condition
6087
6118
  */
6088
6119
  operator: ComparableOperator;
6120
+ /**
6121
+ *
6122
+ * @type {{ [key: string]: number; }}
6123
+ * @memberof Condition
6124
+ */
6125
+ quantityRates?: {
6126
+ [key: string]: number;
6127
+ };
6089
6128
  /**
6090
6129
  *
6091
6130
  * @type {Array<string>}
@@ -7131,6 +7170,12 @@ declare interface CustomPlanBillingResponseData {
7131
7170
  * @memberof CustomPlanBillingResponseData
7132
7171
  */
7133
7172
  billingStartDate?: Date | null;
7173
+ /**
7174
+ * The checkout this billing record was created from, when it was created from one.
7175
+ * @type {string}
7176
+ * @memberof CustomPlanBillingResponseData
7177
+ */
7178
+ checkoutId?: string | null;
7134
7179
  /**
7135
7180
  *
7136
7181
  * @type {string}
@@ -7185,6 +7230,12 @@ declare interface CustomPlanBillingResponseData {
7185
7230
  * @memberof CustomPlanBillingResponseData
7186
7231
  */
7187
7232
  planId: string;
7233
+ /**
7234
+ * What the linked checkout still reports wrong, in the order found. Empty when there is no linked checkout or it completed cleanly.
7235
+ * @type {Array<CheckoutProblemResponseData>}
7236
+ * @memberof CustomPlanBillingResponseData
7237
+ */
7238
+ problems: Array<CheckoutProblemResponseData>;
7188
7239
  /**
7189
7240
  * Whether the shortened period the renewal date created was billed pro rata when the subscription started. False means that period is free and the first invoice is the one raised on the renewal date.
7190
7241
  * @type {boolean}
@@ -8751,6 +8802,14 @@ declare interface FeatureEntitlement {
8751
8802
  * @memberof FeatureEntitlement
8752
8803
  */
8753
8804
  monthReset?: MetricPeriodMonthReset | null;
8805
+ /**
8806
+ * If the company has a credit-based entitlement for this feature, the credit cost per unit of each quantity an event carries, keyed by quantity key (per token for inference features). Absent when the entitlement prices requests only
8807
+ * @type {{ [key: string]: number; }}
8808
+ * @memberof FeatureEntitlement
8809
+ */
8810
+ quantityRates?: {
8811
+ [key: string]: number;
8812
+ };
8754
8813
  /**
8755
8814
  * For usage-based pricing, the soft limit for overage charges or the next tier boundary
8756
8815
  * @type {number}
@@ -11427,6 +11486,68 @@ declare interface PlanCreditGrantView_2 {
11427
11486
  updatedAt: Date;
11428
11487
  }
11429
11488
 
11489
+ /**
11490
+ * Schematic API
11491
+ * Schematic API
11492
+ *
11493
+ * The version of the OpenAPI document: 0.1
11494
+ *
11495
+ *
11496
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11497
+ * https://openapi-generator.tech
11498
+ * Do not edit the class manually.
11499
+ */
11500
+ /**
11501
+ *
11502
+ * @export
11503
+ * @interface PlanCreditVisibility
11504
+ */
11505
+ declare interface PlanCreditVisibility {
11506
+ /**
11507
+ *
11508
+ * @type {string}
11509
+ * @memberof PlanCreditVisibility
11510
+ */
11511
+ creditId: string;
11512
+ /**
11513
+ *
11514
+ * @type {boolean}
11515
+ * @memberof PlanCreditVisibility
11516
+ */
11517
+ visible: boolean;
11518
+ }
11519
+
11520
+ /**
11521
+ * Schematic API
11522
+ * Schematic API
11523
+ *
11524
+ * The version of the OpenAPI document: 0.1
11525
+ *
11526
+ *
11527
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11528
+ * https://openapi-generator.tech
11529
+ * Do not edit the class manually.
11530
+ */
11531
+ /**
11532
+ *
11533
+ * @export
11534
+ * @interface PlanCreditVisibility
11535
+ */
11536
+ declare interface PlanCreditVisibility_2 {
11537
+ /**
11538
+ *
11539
+ * @type {string}
11540
+ * @memberof PlanCreditVisibility
11541
+ */
11542
+ creditId: string;
11543
+ /**
11544
+ *
11545
+ * @type {boolean}
11546
+ * @memberof PlanCreditVisibility
11547
+ */
11548
+ visible: boolean;
11549
+ }
11550
+
11430
11551
  /**
11431
11552
  *
11432
11553
  * @export
@@ -12701,6 +12822,12 @@ declare interface PlanViewPublicResponseData {
12701
12822
  * @memberof PlanViewPublicResponseData
12702
12823
  */
12703
12824
  createdAt: Date;
12825
+ /**
12826
+ *
12827
+ * @type {Array<PlanCreditVisibility>}
12828
+ * @memberof PlanViewPublicResponseData
12829
+ */
12830
+ creditVisibility?: Array<PlanCreditVisibility_2>;
12704
12831
  /**
12705
12832
  *
12706
12833
  * @type {Array<BillingCreditResponseData>}