@openmeter/client 1.0.0-beta-75dd3b9ccc98 → 1.0.0-beta-a175676db126

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.
@@ -1478,27 +1478,6 @@ export declare const rateCardProrationConfiguration: z.ZodObject<{
1478
1478
  prorate_prices: "prorate_prices";
1479
1479
  }>;
1480
1480
  }, z.core.$strip>;
1481
- export declare const subscriptionCreate: z.ZodObject<{
1482
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1483
- settlementMode: z.ZodOptional<z.ZodEnum<{
1484
- credit_only: "credit_only";
1485
- credit_then_invoice: "credit_then_invoice";
1486
- }>>;
1487
- customer: z.ZodObject<{
1488
- id: z.ZodOptional<z.ZodString>;
1489
- key: z.ZodOptional<z.ZodString>;
1490
- }, z.core.$strip>;
1491
- plan: z.ZodObject<{
1492
- id: z.ZodOptional<z.ZodString>;
1493
- key: z.ZodOptional<z.ZodString>;
1494
- version: z.ZodOptional<z.ZodNumber>;
1495
- }, z.core.$strip>;
1496
- billingAnchor: z.ZodOptional<z.ZodDate>;
1497
- costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1498
- dynamic: "dynamic";
1499
- pinned: "pinned";
1500
- }>>>;
1501
- }, z.core.$strip>;
1502
1481
  export declare const unitConfig: z.ZodObject<{
1503
1482
  operation: z.ZodEnum<{
1504
1483
  divide: "divide";
@@ -1727,24 +1706,24 @@ export declare const entitlementAccessQueryError: z.ZodObject<{
1727
1706
  customer: z.ZodOptional<z.ZodString>;
1728
1707
  }, z.core.$strip>;
1729
1708
  export declare const appCustomerData: z.ZodObject<{
1730
- stripe: z.ZodOptional<z.ZodObject<{
1709
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1731
1710
  customerId: z.ZodOptional<z.ZodString>;
1732
1711
  defaultPaymentMethodId: z.ZodOptional<z.ZodString>;
1733
1712
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1734
- }, z.core.$strip>>;
1735
- externalInvoicing: z.ZodOptional<z.ZodObject<{
1713
+ }, z.core.$strip>>>;
1714
+ externalInvoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1736
1715
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1737
- }, z.core.$strip>>;
1716
+ }, z.core.$strip>>>;
1738
1717
  }, z.core.$strip>;
1739
1718
  export declare const upsertAppCustomerDataRequest: z.ZodObject<{
1740
- stripe: z.ZodOptional<z.ZodObject<{
1719
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1741
1720
  customerId: z.ZodOptional<z.ZodString>;
1742
1721
  defaultPaymentMethodId: z.ZodOptional<z.ZodString>;
1743
1722
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1744
- }, z.core.$strip>>;
1745
- externalInvoicing: z.ZodOptional<z.ZodObject<{
1723
+ }, z.core.$strip>>>;
1724
+ externalInvoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1746
1725
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1747
- }, z.core.$strip>>;
1726
+ }, z.core.$strip>>>;
1748
1727
  }, z.core.$strip>;
1749
1728
  export declare const creditAdjustment: z.ZodObject<{
1750
1729
  name: z.ZodString;
@@ -3065,31 +3044,6 @@ export declare const subscriptionCancel: z.ZodObject<{
3065
3044
  next_billing_cycle: "next_billing_cycle";
3066
3045
  }>, z.ZodDate]>>>;
3067
3046
  }, z.core.$strip>;
3068
- export declare const subscriptionChange: z.ZodObject<{
3069
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3070
- settlementMode: z.ZodOptional<z.ZodEnum<{
3071
- credit_only: "credit_only";
3072
- credit_then_invoice: "credit_then_invoice";
3073
- }>>;
3074
- customer: z.ZodObject<{
3075
- id: z.ZodOptional<z.ZodString>;
3076
- key: z.ZodOptional<z.ZodString>;
3077
- }, z.core.$strip>;
3078
- plan: z.ZodObject<{
3079
- id: z.ZodOptional<z.ZodString>;
3080
- key: z.ZodOptional<z.ZodString>;
3081
- version: z.ZodOptional<z.ZodNumber>;
3082
- }, z.core.$strip>;
3083
- billingAnchor: z.ZodOptional<z.ZodDate>;
3084
- costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
3085
- dynamic: "dynamic";
3086
- pinned: "pinned";
3087
- }>>>;
3088
- timing: z.ZodUnion<readonly [z.ZodEnum<{
3089
- immediate: "immediate";
3090
- next_billing_cycle: "next_billing_cycle";
3091
- }>, z.ZodDate]>;
3092
- }, z.core.$strip>;
3093
3047
  export declare const createSubscriptionAddonRequest: z.ZodObject<{
3094
3048
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3095
3049
  addon: z.ZodObject<{
@@ -3250,14 +3204,14 @@ export declare const customerData: z.ZodObject<{
3250
3204
  id: z.ZodString;
3251
3205
  }, z.core.$strip>>;
3252
3206
  appData: z.ZodOptional<z.ZodObject<{
3253
- stripe: z.ZodOptional<z.ZodObject<{
3207
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3254
3208
  customerId: z.ZodOptional<z.ZodString>;
3255
3209
  defaultPaymentMethodId: z.ZodOptional<z.ZodString>;
3256
3210
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3257
- }, z.core.$strip>>;
3258
- externalInvoicing: z.ZodOptional<z.ZodObject<{
3211
+ }, z.core.$strip>>>;
3212
+ externalInvoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3259
3213
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3260
- }, z.core.$strip>>;
3214
+ }, z.core.$strip>>>;
3261
3215
  }, z.core.$strip>>;
3262
3216
  }, z.core.$strip>;
3263
3217
  export declare const upsertCustomerBillingDataRequest: z.ZodObject<{
@@ -3265,14 +3219,14 @@ export declare const upsertCustomerBillingDataRequest: z.ZodObject<{
3265
3219
  id: z.ZodString;
3266
3220
  }, z.core.$strip>>;
3267
3221
  appData: z.ZodOptional<z.ZodObject<{
3268
- stripe: z.ZodOptional<z.ZodObject<{
3222
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3269
3223
  customerId: z.ZodOptional<z.ZodString>;
3270
3224
  defaultPaymentMethodId: z.ZodOptional<z.ZodString>;
3271
3225
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3272
- }, z.core.$strip>>;
3273
- externalInvoicing: z.ZodOptional<z.ZodObject<{
3226
+ }, z.core.$strip>>>;
3227
+ externalInvoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3274
3228
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3275
- }, z.core.$strip>>;
3229
+ }, z.core.$strip>>>;
3276
3230
  }, z.core.$strip>>;
3277
3231
  }, z.core.$strip>;
3278
3232
  export declare const creditBalances: z.ZodObject<{
@@ -6972,193 +6926,6 @@ export declare const subscriptionItem: z.ZodObject<{
6972
6926
  }, z.core.$strip>], "type">>;
6973
6927
  }, z.core.$strip>;
6974
6928
  }, z.core.$strip>;
6975
- export declare const subscriptionEditAddItem: z.ZodObject<{
6976
- type: z.ZodLiteral<"add_item">;
6977
- phaseKey: z.ZodString;
6978
- rateCard: z.ZodObject<{
6979
- name: z.ZodString;
6980
- description: z.ZodOptional<z.ZodString>;
6981
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6982
- key: z.ZodString;
6983
- feature: z.ZodOptional<z.ZodObject<{
6984
- id: z.ZodString;
6985
- }, z.core.$strip>>;
6986
- currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
6987
- billingCadence: z.ZodOptional<z.ZodString>;
6988
- price: z.ZodDiscriminatedUnion<[z.ZodObject<{
6989
- type: z.ZodLiteral<"free">;
6990
- }, z.core.$strip>, z.ZodObject<{
6991
- type: z.ZodLiteral<"flat">;
6992
- amount: z.ZodString;
6993
- }, z.core.$strip>, z.ZodObject<{
6994
- type: z.ZodLiteral<"unit">;
6995
- amount: z.ZodString;
6996
- }, z.core.$strip>, z.ZodObject<{
6997
- type: z.ZodLiteral<"graduated">;
6998
- tiers: z.ZodArray<z.ZodObject<{
6999
- upToAmount: z.ZodOptional<z.ZodString>;
7000
- flatPrice: z.ZodOptional<z.ZodObject<{
7001
- type: z.ZodLiteral<"flat">;
7002
- amount: z.ZodString;
7003
- }, z.core.$strip>>;
7004
- unitPrice: z.ZodOptional<z.ZodObject<{
7005
- type: z.ZodLiteral<"unit">;
7006
- amount: z.ZodString;
7007
- }, z.core.$strip>>;
7008
- }, z.core.$strip>>;
7009
- }, z.core.$strip>, z.ZodObject<{
7010
- type: z.ZodLiteral<"volume">;
7011
- tiers: z.ZodArray<z.ZodObject<{
7012
- upToAmount: z.ZodOptional<z.ZodString>;
7013
- flatPrice: z.ZodOptional<z.ZodObject<{
7014
- type: z.ZodLiteral<"flat">;
7015
- amount: z.ZodString;
7016
- }, z.core.$strip>>;
7017
- unitPrice: z.ZodOptional<z.ZodObject<{
7018
- type: z.ZodLiteral<"unit">;
7019
- amount: z.ZodString;
7020
- }, z.core.$strip>>;
7021
- }, z.core.$strip>>;
7022
- }, z.core.$strip>], "type">;
7023
- unitConfig: z.ZodOptional<z.ZodObject<{
7024
- operation: z.ZodEnum<{
7025
- divide: "divide";
7026
- multiply: "multiply";
7027
- }>;
7028
- conversionFactor: z.ZodString;
7029
- rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7030
- ceiling: "ceiling";
7031
- floor: "floor";
7032
- half_up: "half_up";
7033
- none: "none";
7034
- }>>>;
7035
- precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7036
- displayUnit: z.ZodOptional<z.ZodString>;
7037
- }, z.core.$strip>>;
7038
- paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
7039
- commitments: z.ZodOptional<z.ZodObject<{
7040
- minimumAmount: z.ZodOptional<z.ZodString>;
7041
- maximumAmount: z.ZodOptional<z.ZodString>;
7042
- }, z.core.$strip>>;
7043
- discounts: z.ZodOptional<z.ZodObject<{
7044
- percentage: z.ZodOptional<z.ZodNumber>;
7045
- usage: z.ZodOptional<z.ZodString>;
7046
- }, z.core.$strip>>;
7047
- taxConfig: z.ZodOptional<z.ZodObject<{
7048
- behavior: z.ZodOptional<z.ZodEnum<{
7049
- exclusive: "exclusive";
7050
- inclusive: "inclusive";
7051
- }>>;
7052
- code: z.ZodObject<{
7053
- id: z.ZodString;
7054
- }, z.core.$strip>;
7055
- }, z.core.$strip>>;
7056
- entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7057
- type: z.ZodLiteral<"metered">;
7058
- isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7059
- limit: z.ZodOptional<z.ZodNumber>;
7060
- usagePeriod: z.ZodOptional<z.ZodString>;
7061
- }, z.core.$strip>, z.ZodObject<{
7062
- type: z.ZodLiteral<"static">;
7063
- config: z.ZodUnknown;
7064
- }, z.core.$strip>, z.ZodObject<{
7065
- type: z.ZodLiteral<"boolean">;
7066
- }, z.core.$strip>], "type">>;
7067
- }, z.core.$strip>;
7068
- }, z.core.$strip>;
7069
- export declare const subscriptionAddonRateCard: z.ZodObject<{
7070
- rateCard: z.ZodObject<{
7071
- name: z.ZodString;
7072
- description: z.ZodOptional<z.ZodString>;
7073
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7074
- key: z.ZodString;
7075
- feature: z.ZodOptional<z.ZodObject<{
7076
- id: z.ZodString;
7077
- }, z.core.$strip>>;
7078
- currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
7079
- billingCadence: z.ZodOptional<z.ZodString>;
7080
- price: z.ZodDiscriminatedUnion<[z.ZodObject<{
7081
- type: z.ZodLiteral<"free">;
7082
- }, z.core.$strip>, z.ZodObject<{
7083
- type: z.ZodLiteral<"flat">;
7084
- amount: z.ZodString;
7085
- }, z.core.$strip>, z.ZodObject<{
7086
- type: z.ZodLiteral<"unit">;
7087
- amount: z.ZodString;
7088
- }, z.core.$strip>, z.ZodObject<{
7089
- type: z.ZodLiteral<"graduated">;
7090
- tiers: z.ZodArray<z.ZodObject<{
7091
- upToAmount: z.ZodOptional<z.ZodString>;
7092
- flatPrice: z.ZodOptional<z.ZodObject<{
7093
- type: z.ZodLiteral<"flat">;
7094
- amount: z.ZodString;
7095
- }, z.core.$strip>>;
7096
- unitPrice: z.ZodOptional<z.ZodObject<{
7097
- type: z.ZodLiteral<"unit">;
7098
- amount: z.ZodString;
7099
- }, z.core.$strip>>;
7100
- }, z.core.$strip>>;
7101
- }, z.core.$strip>, z.ZodObject<{
7102
- type: z.ZodLiteral<"volume">;
7103
- tiers: z.ZodArray<z.ZodObject<{
7104
- upToAmount: z.ZodOptional<z.ZodString>;
7105
- flatPrice: z.ZodOptional<z.ZodObject<{
7106
- type: z.ZodLiteral<"flat">;
7107
- amount: z.ZodString;
7108
- }, z.core.$strip>>;
7109
- unitPrice: z.ZodOptional<z.ZodObject<{
7110
- type: z.ZodLiteral<"unit">;
7111
- amount: z.ZodString;
7112
- }, z.core.$strip>>;
7113
- }, z.core.$strip>>;
7114
- }, z.core.$strip>], "type">;
7115
- unitConfig: z.ZodOptional<z.ZodObject<{
7116
- operation: z.ZodEnum<{
7117
- divide: "divide";
7118
- multiply: "multiply";
7119
- }>;
7120
- conversionFactor: z.ZodString;
7121
- rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7122
- ceiling: "ceiling";
7123
- floor: "floor";
7124
- half_up: "half_up";
7125
- none: "none";
7126
- }>>>;
7127
- precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7128
- displayUnit: z.ZodOptional<z.ZodString>;
7129
- }, z.core.$strip>>;
7130
- paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
7131
- commitments: z.ZodOptional<z.ZodObject<{
7132
- minimumAmount: z.ZodOptional<z.ZodString>;
7133
- maximumAmount: z.ZodOptional<z.ZodString>;
7134
- }, z.core.$strip>>;
7135
- discounts: z.ZodOptional<z.ZodObject<{
7136
- percentage: z.ZodOptional<z.ZodNumber>;
7137
- usage: z.ZodOptional<z.ZodString>;
7138
- }, z.core.$strip>>;
7139
- taxConfig: z.ZodOptional<z.ZodObject<{
7140
- behavior: z.ZodOptional<z.ZodEnum<{
7141
- exclusive: "exclusive";
7142
- inclusive: "inclusive";
7143
- }>>;
7144
- code: z.ZodObject<{
7145
- id: z.ZodString;
7146
- }, z.core.$strip>;
7147
- }, z.core.$strip>>;
7148
- entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7149
- type: z.ZodLiteral<"metered">;
7150
- isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7151
- limit: z.ZodOptional<z.ZodNumber>;
7152
- usagePeriod: z.ZodOptional<z.ZodString>;
7153
- }, z.core.$strip>, z.ZodObject<{
7154
- type: z.ZodLiteral<"static">;
7155
- config: z.ZodUnknown;
7156
- }, z.core.$strip>, z.ZodObject<{
7157
- type: z.ZodLiteral<"boolean">;
7158
- }, z.core.$strip>], "type">>;
7159
- }, z.core.$strip>;
7160
- affectedSubscriptionItemIds: z.ZodArray<z.ZodString>;
7161
- }, z.core.$strip>;
7162
6929
  export declare const planPhase: z.ZodObject<{
7163
6930
  name: z.ZodString;
7164
6931
  description: z.ZodOptional<z.ZodString>;
@@ -7256,29 +7023,216 @@ export declare const planPhase: z.ZodObject<{
7256
7023
  }, z.core.$strip>], "type">>;
7257
7024
  }, z.core.$strip>>;
7258
7025
  }, z.core.$strip>;
7259
- export declare const addon: z.ZodObject<{
7260
- id: z.ZodString;
7261
- name: z.ZodString;
7262
- description: z.ZodOptional<z.ZodString>;
7263
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7264
- createdAt: z.ZodDate;
7265
- updatedAt: z.ZodDate;
7266
- deletedAt: z.ZodOptional<z.ZodDate>;
7267
- key: z.ZodString;
7268
- version: z.ZodDefault<z.ZodNumber>;
7269
- instanceType: z.ZodEnum<{
7270
- multiple: "multiple";
7271
- single: "single";
7272
- }>;
7273
- currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
7274
- effectiveFrom: z.ZodOptional<z.ZodDate>;
7275
- effectiveTo: z.ZodOptional<z.ZodDate>;
7276
- status: z.ZodEnum<{
7277
- active: "active";
7278
- archived: "archived";
7279
- draft: "draft";
7280
- }>;
7281
- rateCards: z.ZodArray<z.ZodObject<{
7026
+ export declare const subscriptionEditAddItem: z.ZodObject<{
7027
+ type: z.ZodLiteral<"add_item">;
7028
+ phaseKey: z.ZodString;
7029
+ rateCard: z.ZodObject<{
7030
+ name: z.ZodString;
7031
+ description: z.ZodOptional<z.ZodString>;
7032
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7033
+ key: z.ZodString;
7034
+ feature: z.ZodOptional<z.ZodObject<{
7035
+ id: z.ZodString;
7036
+ }, z.core.$strip>>;
7037
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
7038
+ billingCadence: z.ZodOptional<z.ZodString>;
7039
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
7040
+ type: z.ZodLiteral<"free">;
7041
+ }, z.core.$strip>, z.ZodObject<{
7042
+ type: z.ZodLiteral<"flat">;
7043
+ amount: z.ZodString;
7044
+ }, z.core.$strip>, z.ZodObject<{
7045
+ type: z.ZodLiteral<"unit">;
7046
+ amount: z.ZodString;
7047
+ }, z.core.$strip>, z.ZodObject<{
7048
+ type: z.ZodLiteral<"graduated">;
7049
+ tiers: z.ZodArray<z.ZodObject<{
7050
+ upToAmount: z.ZodOptional<z.ZodString>;
7051
+ flatPrice: z.ZodOptional<z.ZodObject<{
7052
+ type: z.ZodLiteral<"flat">;
7053
+ amount: z.ZodString;
7054
+ }, z.core.$strip>>;
7055
+ unitPrice: z.ZodOptional<z.ZodObject<{
7056
+ type: z.ZodLiteral<"unit">;
7057
+ amount: z.ZodString;
7058
+ }, z.core.$strip>>;
7059
+ }, z.core.$strip>>;
7060
+ }, z.core.$strip>, z.ZodObject<{
7061
+ type: z.ZodLiteral<"volume">;
7062
+ tiers: z.ZodArray<z.ZodObject<{
7063
+ upToAmount: z.ZodOptional<z.ZodString>;
7064
+ flatPrice: z.ZodOptional<z.ZodObject<{
7065
+ type: z.ZodLiteral<"flat">;
7066
+ amount: z.ZodString;
7067
+ }, z.core.$strip>>;
7068
+ unitPrice: z.ZodOptional<z.ZodObject<{
7069
+ type: z.ZodLiteral<"unit">;
7070
+ amount: z.ZodString;
7071
+ }, z.core.$strip>>;
7072
+ }, z.core.$strip>>;
7073
+ }, z.core.$strip>], "type">;
7074
+ unitConfig: z.ZodOptional<z.ZodObject<{
7075
+ operation: z.ZodEnum<{
7076
+ divide: "divide";
7077
+ multiply: "multiply";
7078
+ }>;
7079
+ conversionFactor: z.ZodString;
7080
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7081
+ ceiling: "ceiling";
7082
+ floor: "floor";
7083
+ half_up: "half_up";
7084
+ none: "none";
7085
+ }>>>;
7086
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7087
+ displayUnit: z.ZodOptional<z.ZodString>;
7088
+ }, z.core.$strip>>;
7089
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
7090
+ commitments: z.ZodOptional<z.ZodObject<{
7091
+ minimumAmount: z.ZodOptional<z.ZodString>;
7092
+ maximumAmount: z.ZodOptional<z.ZodString>;
7093
+ }, z.core.$strip>>;
7094
+ discounts: z.ZodOptional<z.ZodObject<{
7095
+ percentage: z.ZodOptional<z.ZodNumber>;
7096
+ usage: z.ZodOptional<z.ZodString>;
7097
+ }, z.core.$strip>>;
7098
+ taxConfig: z.ZodOptional<z.ZodObject<{
7099
+ behavior: z.ZodOptional<z.ZodEnum<{
7100
+ exclusive: "exclusive";
7101
+ inclusive: "inclusive";
7102
+ }>>;
7103
+ code: z.ZodObject<{
7104
+ id: z.ZodString;
7105
+ }, z.core.$strip>;
7106
+ }, z.core.$strip>>;
7107
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7108
+ type: z.ZodLiteral<"metered">;
7109
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7110
+ limit: z.ZodOptional<z.ZodNumber>;
7111
+ usagePeriod: z.ZodOptional<z.ZodString>;
7112
+ }, z.core.$strip>, z.ZodObject<{
7113
+ type: z.ZodLiteral<"static">;
7114
+ config: z.ZodUnknown;
7115
+ }, z.core.$strip>, z.ZodObject<{
7116
+ type: z.ZodLiteral<"boolean">;
7117
+ }, z.core.$strip>], "type">>;
7118
+ }, z.core.$strip>;
7119
+ }, z.core.$strip>;
7120
+ export declare const subscriptionAddonRateCard: z.ZodObject<{
7121
+ rateCard: z.ZodObject<{
7122
+ name: z.ZodString;
7123
+ description: z.ZodOptional<z.ZodString>;
7124
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7125
+ key: z.ZodString;
7126
+ feature: z.ZodOptional<z.ZodObject<{
7127
+ id: z.ZodString;
7128
+ }, z.core.$strip>>;
7129
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
7130
+ billingCadence: z.ZodOptional<z.ZodString>;
7131
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
7132
+ type: z.ZodLiteral<"free">;
7133
+ }, z.core.$strip>, z.ZodObject<{
7134
+ type: z.ZodLiteral<"flat">;
7135
+ amount: z.ZodString;
7136
+ }, z.core.$strip>, z.ZodObject<{
7137
+ type: z.ZodLiteral<"unit">;
7138
+ amount: z.ZodString;
7139
+ }, z.core.$strip>, z.ZodObject<{
7140
+ type: z.ZodLiteral<"graduated">;
7141
+ tiers: z.ZodArray<z.ZodObject<{
7142
+ upToAmount: z.ZodOptional<z.ZodString>;
7143
+ flatPrice: z.ZodOptional<z.ZodObject<{
7144
+ type: z.ZodLiteral<"flat">;
7145
+ amount: z.ZodString;
7146
+ }, z.core.$strip>>;
7147
+ unitPrice: z.ZodOptional<z.ZodObject<{
7148
+ type: z.ZodLiteral<"unit">;
7149
+ amount: z.ZodString;
7150
+ }, z.core.$strip>>;
7151
+ }, z.core.$strip>>;
7152
+ }, z.core.$strip>, z.ZodObject<{
7153
+ type: z.ZodLiteral<"volume">;
7154
+ tiers: z.ZodArray<z.ZodObject<{
7155
+ upToAmount: z.ZodOptional<z.ZodString>;
7156
+ flatPrice: z.ZodOptional<z.ZodObject<{
7157
+ type: z.ZodLiteral<"flat">;
7158
+ amount: z.ZodString;
7159
+ }, z.core.$strip>>;
7160
+ unitPrice: z.ZodOptional<z.ZodObject<{
7161
+ type: z.ZodLiteral<"unit">;
7162
+ amount: z.ZodString;
7163
+ }, z.core.$strip>>;
7164
+ }, z.core.$strip>>;
7165
+ }, z.core.$strip>], "type">;
7166
+ unitConfig: z.ZodOptional<z.ZodObject<{
7167
+ operation: z.ZodEnum<{
7168
+ divide: "divide";
7169
+ multiply: "multiply";
7170
+ }>;
7171
+ conversionFactor: z.ZodString;
7172
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7173
+ ceiling: "ceiling";
7174
+ floor: "floor";
7175
+ half_up: "half_up";
7176
+ none: "none";
7177
+ }>>>;
7178
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7179
+ displayUnit: z.ZodOptional<z.ZodString>;
7180
+ }, z.core.$strip>>;
7181
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
7182
+ commitments: z.ZodOptional<z.ZodObject<{
7183
+ minimumAmount: z.ZodOptional<z.ZodString>;
7184
+ maximumAmount: z.ZodOptional<z.ZodString>;
7185
+ }, z.core.$strip>>;
7186
+ discounts: z.ZodOptional<z.ZodObject<{
7187
+ percentage: z.ZodOptional<z.ZodNumber>;
7188
+ usage: z.ZodOptional<z.ZodString>;
7189
+ }, z.core.$strip>>;
7190
+ taxConfig: z.ZodOptional<z.ZodObject<{
7191
+ behavior: z.ZodOptional<z.ZodEnum<{
7192
+ exclusive: "exclusive";
7193
+ inclusive: "inclusive";
7194
+ }>>;
7195
+ code: z.ZodObject<{
7196
+ id: z.ZodString;
7197
+ }, z.core.$strip>;
7198
+ }, z.core.$strip>>;
7199
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7200
+ type: z.ZodLiteral<"metered">;
7201
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7202
+ limit: z.ZodOptional<z.ZodNumber>;
7203
+ usagePeriod: z.ZodOptional<z.ZodString>;
7204
+ }, z.core.$strip>, z.ZodObject<{
7205
+ type: z.ZodLiteral<"static">;
7206
+ config: z.ZodUnknown;
7207
+ }, z.core.$strip>, z.ZodObject<{
7208
+ type: z.ZodLiteral<"boolean">;
7209
+ }, z.core.$strip>], "type">>;
7210
+ }, z.core.$strip>;
7211
+ affectedSubscriptionItemIds: z.ZodArray<z.ZodString>;
7212
+ }, z.core.$strip>;
7213
+ export declare const addon: z.ZodObject<{
7214
+ id: z.ZodString;
7215
+ name: z.ZodString;
7216
+ description: z.ZodOptional<z.ZodString>;
7217
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7218
+ createdAt: z.ZodDate;
7219
+ updatedAt: z.ZodDate;
7220
+ deletedAt: z.ZodOptional<z.ZodDate>;
7221
+ key: z.ZodString;
7222
+ version: z.ZodDefault<z.ZodNumber>;
7223
+ instanceType: z.ZodEnum<{
7224
+ multiple: "multiple";
7225
+ single: "single";
7226
+ }>;
7227
+ currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
7228
+ effectiveFrom: z.ZodOptional<z.ZodDate>;
7229
+ effectiveTo: z.ZodOptional<z.ZodDate>;
7230
+ status: z.ZodEnum<{
7231
+ active: "active";
7232
+ archived: "archived";
7233
+ draft: "draft";
7234
+ }>;
7235
+ rateCards: z.ZodArray<z.ZodObject<{
7282
7236
  name: z.ZodString;
7283
7237
  description: z.ZodOptional<z.ZodString>;
7284
7238
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -8615,148 +8569,20 @@ export declare const subscriptionPhase: z.ZodObject<{
8615
8569
  }, z.core.$strip>;
8616
8570
  }, z.core.$strip>>;
8617
8571
  }, z.core.$strip>;
8618
- export declare const subscriptionEditOperation: z.ZodDiscriminatedUnion<[z.ZodObject<{
8619
- type: z.ZodLiteral<"add_item">;
8620
- phaseKey: z.ZodString;
8621
- rateCard: z.ZodObject<{
8572
+ export declare const subscriptionCustomPlan: z.ZodObject<{
8573
+ name: z.ZodString;
8574
+ description: z.ZodOptional<z.ZodString>;
8575
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8576
+ currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
8577
+ billingCadence: z.ZodString;
8578
+ proRatingEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8579
+ phases: z.ZodArray<z.ZodObject<{
8622
8580
  name: z.ZodString;
8623
8581
  description: z.ZodOptional<z.ZodString>;
8624
8582
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8625
8583
  key: z.ZodString;
8626
- feature: z.ZodOptional<z.ZodObject<{
8627
- id: z.ZodString;
8628
- }, z.core.$strip>>;
8629
- currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
8630
- billingCadence: z.ZodOptional<z.ZodString>;
8631
- price: z.ZodDiscriminatedUnion<[z.ZodObject<{
8632
- type: z.ZodLiteral<"free">;
8633
- }, z.core.$strip>, z.ZodObject<{
8634
- type: z.ZodLiteral<"flat">;
8635
- amount: z.ZodString;
8636
- }, z.core.$strip>, z.ZodObject<{
8637
- type: z.ZodLiteral<"unit">;
8638
- amount: z.ZodString;
8639
- }, z.core.$strip>, z.ZodObject<{
8640
- type: z.ZodLiteral<"graduated">;
8641
- tiers: z.ZodArray<z.ZodObject<{
8642
- upToAmount: z.ZodOptional<z.ZodString>;
8643
- flatPrice: z.ZodOptional<z.ZodObject<{
8644
- type: z.ZodLiteral<"flat">;
8645
- amount: z.ZodString;
8646
- }, z.core.$strip>>;
8647
- unitPrice: z.ZodOptional<z.ZodObject<{
8648
- type: z.ZodLiteral<"unit">;
8649
- amount: z.ZodString;
8650
- }, z.core.$strip>>;
8651
- }, z.core.$strip>>;
8652
- }, z.core.$strip>, z.ZodObject<{
8653
- type: z.ZodLiteral<"volume">;
8654
- tiers: z.ZodArray<z.ZodObject<{
8655
- upToAmount: z.ZodOptional<z.ZodString>;
8656
- flatPrice: z.ZodOptional<z.ZodObject<{
8657
- type: z.ZodLiteral<"flat">;
8658
- amount: z.ZodString;
8659
- }, z.core.$strip>>;
8660
- unitPrice: z.ZodOptional<z.ZodObject<{
8661
- type: z.ZodLiteral<"unit">;
8662
- amount: z.ZodString;
8663
- }, z.core.$strip>>;
8664
- }, z.core.$strip>>;
8665
- }, z.core.$strip>], "type">;
8666
- unitConfig: z.ZodOptional<z.ZodObject<{
8667
- operation: z.ZodEnum<{
8668
- divide: "divide";
8669
- multiply: "multiply";
8670
- }>;
8671
- conversionFactor: z.ZodString;
8672
- rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
8673
- ceiling: "ceiling";
8674
- floor: "floor";
8675
- half_up: "half_up";
8676
- none: "none";
8677
- }>>>;
8678
- precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
8679
- displayUnit: z.ZodOptional<z.ZodString>;
8680
- }, z.core.$strip>>;
8681
- paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
8682
- commitments: z.ZodOptional<z.ZodObject<{
8683
- minimumAmount: z.ZodOptional<z.ZodString>;
8684
- maximumAmount: z.ZodOptional<z.ZodString>;
8685
- }, z.core.$strip>>;
8686
- discounts: z.ZodOptional<z.ZodObject<{
8687
- percentage: z.ZodOptional<z.ZodNumber>;
8688
- usage: z.ZodOptional<z.ZodString>;
8689
- }, z.core.$strip>>;
8690
- taxConfig: z.ZodOptional<z.ZodObject<{
8691
- behavior: z.ZodOptional<z.ZodEnum<{
8692
- exclusive: "exclusive";
8693
- inclusive: "inclusive";
8694
- }>>;
8695
- code: z.ZodObject<{
8696
- id: z.ZodString;
8697
- }, z.core.$strip>;
8698
- }, z.core.$strip>>;
8699
- entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8700
- type: z.ZodLiteral<"metered">;
8701
- isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8702
- limit: z.ZodOptional<z.ZodNumber>;
8703
- usagePeriod: z.ZodOptional<z.ZodString>;
8704
- }, z.core.$strip>, z.ZodObject<{
8705
- type: z.ZodLiteral<"static">;
8706
- config: z.ZodUnknown;
8707
- }, z.core.$strip>, z.ZodObject<{
8708
- type: z.ZodLiteral<"boolean">;
8709
- }, z.core.$strip>], "type">>;
8710
- }, z.core.$strip>;
8711
- }, z.core.$strip>, z.ZodObject<{
8712
- type: z.ZodLiteral<"remove_item">;
8713
- phaseKey: z.ZodString;
8714
- itemKey: z.ZodString;
8715
- }, z.core.$strip>, z.ZodObject<{
8716
- type: z.ZodLiteral<"add_phase">;
8717
- phase: z.ZodObject<{
8718
- key: z.ZodString;
8719
- name: z.ZodString;
8720
- description: z.ZodOptional<z.ZodString>;
8721
- startAfter: z.ZodNullable<z.ZodString>;
8722
8584
  duration: z.ZodOptional<z.ZodString>;
8723
- }, z.core.$strip>;
8724
- }, z.core.$strip>, z.ZodObject<{
8725
- type: z.ZodLiteral<"remove_phase">;
8726
- phaseKey: z.ZodString;
8727
- shift: z.ZodEnum<{
8728
- next: "next";
8729
- prev: "prev";
8730
- }>;
8731
- }, z.core.$strip>, z.ZodObject<{
8732
- type: z.ZodLiteral<"stretch_phase">;
8733
- phaseKey: z.ZodString;
8734
- extendBy: z.ZodString;
8735
- }, z.core.$strip>, z.ZodObject<{
8736
- type: z.ZodLiteral<"unschedule_edit">;
8737
- }, z.core.$strip>], "type">;
8738
- export declare const subscriptionAddon: z.ZodObject<{
8739
- id: z.ZodString;
8740
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8741
- createdAt: z.ZodDate;
8742
- updatedAt: z.ZodDate;
8743
- deletedAt: z.ZodOptional<z.ZodDate>;
8744
- name: z.ZodString;
8745
- description: z.ZodOptional<z.ZodString>;
8746
- addon: z.ZodObject<{
8747
- id: z.ZodString;
8748
- }, z.core.$strip>;
8749
- quantity: z.ZodNumber;
8750
- quantityAt: z.ZodDate;
8751
- activeFrom: z.ZodDate;
8752
- activeTo: z.ZodOptional<z.ZodDate>;
8753
- timeline: z.ZodArray<z.ZodObject<{
8754
- activeFrom: z.ZodDate;
8755
- activeTo: z.ZodOptional<z.ZodDate>;
8756
- quantity: z.ZodNumber;
8757
- }, z.core.$strip>>;
8758
- rateCards: z.ZodArray<z.ZodObject<{
8759
- rateCard: z.ZodObject<{
8585
+ rateCards: z.ZodArray<z.ZodObject<{
8760
8586
  name: z.ZodString;
8761
8587
  description: z.ZodOptional<z.ZodString>;
8762
8588
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -8845,8 +8671,7 @@ export declare const subscriptionAddon: z.ZodObject<{
8845
8671
  }, z.core.$strip>, z.ZodObject<{
8846
8672
  type: z.ZodLiteral<"boolean">;
8847
8673
  }, z.core.$strip>], "type">>;
8848
- }, z.core.$strip>;
8849
- affectedSubscriptionItemIds: z.ZodArray<z.ZodString>;
8674
+ }, z.core.$strip>>;
8850
8675
  }, z.core.$strip>>;
8851
8676
  }, z.core.$strip>;
8852
8677
  export declare const plan: z.ZodObject<{
@@ -9187,6 +9012,240 @@ export declare const upsertPlanRequest: z.ZodObject<{
9187
9012
  }, z.core.$strip>>;
9188
9013
  }, z.core.$strip>>;
9189
9014
  }, z.core.$strip>;
9015
+ export declare const subscriptionEditOperation: z.ZodDiscriminatedUnion<[z.ZodObject<{
9016
+ type: z.ZodLiteral<"add_item">;
9017
+ phaseKey: z.ZodString;
9018
+ rateCard: z.ZodObject<{
9019
+ name: z.ZodString;
9020
+ description: z.ZodOptional<z.ZodString>;
9021
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9022
+ key: z.ZodString;
9023
+ feature: z.ZodOptional<z.ZodObject<{
9024
+ id: z.ZodString;
9025
+ }, z.core.$strip>>;
9026
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
9027
+ billingCadence: z.ZodOptional<z.ZodString>;
9028
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
9029
+ type: z.ZodLiteral<"free">;
9030
+ }, z.core.$strip>, z.ZodObject<{
9031
+ type: z.ZodLiteral<"flat">;
9032
+ amount: z.ZodString;
9033
+ }, z.core.$strip>, z.ZodObject<{
9034
+ type: z.ZodLiteral<"unit">;
9035
+ amount: z.ZodString;
9036
+ }, z.core.$strip>, z.ZodObject<{
9037
+ type: z.ZodLiteral<"graduated">;
9038
+ tiers: z.ZodArray<z.ZodObject<{
9039
+ upToAmount: z.ZodOptional<z.ZodString>;
9040
+ flatPrice: z.ZodOptional<z.ZodObject<{
9041
+ type: z.ZodLiteral<"flat">;
9042
+ amount: z.ZodString;
9043
+ }, z.core.$strip>>;
9044
+ unitPrice: z.ZodOptional<z.ZodObject<{
9045
+ type: z.ZodLiteral<"unit">;
9046
+ amount: z.ZodString;
9047
+ }, z.core.$strip>>;
9048
+ }, z.core.$strip>>;
9049
+ }, z.core.$strip>, z.ZodObject<{
9050
+ type: z.ZodLiteral<"volume">;
9051
+ tiers: z.ZodArray<z.ZodObject<{
9052
+ upToAmount: z.ZodOptional<z.ZodString>;
9053
+ flatPrice: z.ZodOptional<z.ZodObject<{
9054
+ type: z.ZodLiteral<"flat">;
9055
+ amount: z.ZodString;
9056
+ }, z.core.$strip>>;
9057
+ unitPrice: z.ZodOptional<z.ZodObject<{
9058
+ type: z.ZodLiteral<"unit">;
9059
+ amount: z.ZodString;
9060
+ }, z.core.$strip>>;
9061
+ }, z.core.$strip>>;
9062
+ }, z.core.$strip>], "type">;
9063
+ unitConfig: z.ZodOptional<z.ZodObject<{
9064
+ operation: z.ZodEnum<{
9065
+ divide: "divide";
9066
+ multiply: "multiply";
9067
+ }>;
9068
+ conversionFactor: z.ZodString;
9069
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
9070
+ ceiling: "ceiling";
9071
+ floor: "floor";
9072
+ half_up: "half_up";
9073
+ none: "none";
9074
+ }>>>;
9075
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9076
+ displayUnit: z.ZodOptional<z.ZodString>;
9077
+ }, z.core.$strip>>;
9078
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
9079
+ commitments: z.ZodOptional<z.ZodObject<{
9080
+ minimumAmount: z.ZodOptional<z.ZodString>;
9081
+ maximumAmount: z.ZodOptional<z.ZodString>;
9082
+ }, z.core.$strip>>;
9083
+ discounts: z.ZodOptional<z.ZodObject<{
9084
+ percentage: z.ZodOptional<z.ZodNumber>;
9085
+ usage: z.ZodOptional<z.ZodString>;
9086
+ }, z.core.$strip>>;
9087
+ taxConfig: z.ZodOptional<z.ZodObject<{
9088
+ behavior: z.ZodOptional<z.ZodEnum<{
9089
+ exclusive: "exclusive";
9090
+ inclusive: "inclusive";
9091
+ }>>;
9092
+ code: z.ZodObject<{
9093
+ id: z.ZodString;
9094
+ }, z.core.$strip>;
9095
+ }, z.core.$strip>>;
9096
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
9097
+ type: z.ZodLiteral<"metered">;
9098
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9099
+ limit: z.ZodOptional<z.ZodNumber>;
9100
+ usagePeriod: z.ZodOptional<z.ZodString>;
9101
+ }, z.core.$strip>, z.ZodObject<{
9102
+ type: z.ZodLiteral<"static">;
9103
+ config: z.ZodUnknown;
9104
+ }, z.core.$strip>, z.ZodObject<{
9105
+ type: z.ZodLiteral<"boolean">;
9106
+ }, z.core.$strip>], "type">>;
9107
+ }, z.core.$strip>;
9108
+ }, z.core.$strip>, z.ZodObject<{
9109
+ type: z.ZodLiteral<"remove_item">;
9110
+ phaseKey: z.ZodString;
9111
+ itemKey: z.ZodString;
9112
+ }, z.core.$strip>, z.ZodObject<{
9113
+ type: z.ZodLiteral<"add_phase">;
9114
+ phase: z.ZodObject<{
9115
+ key: z.ZodString;
9116
+ name: z.ZodString;
9117
+ description: z.ZodOptional<z.ZodString>;
9118
+ startAfter: z.ZodNullable<z.ZodString>;
9119
+ duration: z.ZodOptional<z.ZodString>;
9120
+ }, z.core.$strip>;
9121
+ }, z.core.$strip>, z.ZodObject<{
9122
+ type: z.ZodLiteral<"remove_phase">;
9123
+ phaseKey: z.ZodString;
9124
+ shift: z.ZodEnum<{
9125
+ next: "next";
9126
+ prev: "prev";
9127
+ }>;
9128
+ }, z.core.$strip>, z.ZodObject<{
9129
+ type: z.ZodLiteral<"stretch_phase">;
9130
+ phaseKey: z.ZodString;
9131
+ extendBy: z.ZodString;
9132
+ }, z.core.$strip>, z.ZodObject<{
9133
+ type: z.ZodLiteral<"unschedule_edit">;
9134
+ }, z.core.$strip>], "type">;
9135
+ export declare const subscriptionAddon: z.ZodObject<{
9136
+ id: z.ZodString;
9137
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9138
+ createdAt: z.ZodDate;
9139
+ updatedAt: z.ZodDate;
9140
+ deletedAt: z.ZodOptional<z.ZodDate>;
9141
+ name: z.ZodString;
9142
+ description: z.ZodOptional<z.ZodString>;
9143
+ addon: z.ZodObject<{
9144
+ id: z.ZodString;
9145
+ }, z.core.$strip>;
9146
+ quantity: z.ZodNumber;
9147
+ quantityAt: z.ZodDate;
9148
+ activeFrom: z.ZodDate;
9149
+ activeTo: z.ZodOptional<z.ZodDate>;
9150
+ timeline: z.ZodArray<z.ZodObject<{
9151
+ activeFrom: z.ZodDate;
9152
+ activeTo: z.ZodOptional<z.ZodDate>;
9153
+ quantity: z.ZodNumber;
9154
+ }, z.core.$strip>>;
9155
+ rateCards: z.ZodArray<z.ZodObject<{
9156
+ rateCard: z.ZodObject<{
9157
+ name: z.ZodString;
9158
+ description: z.ZodOptional<z.ZodString>;
9159
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9160
+ key: z.ZodString;
9161
+ feature: z.ZodOptional<z.ZodObject<{
9162
+ id: z.ZodString;
9163
+ }, z.core.$strip>>;
9164
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
9165
+ billingCadence: z.ZodOptional<z.ZodString>;
9166
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
9167
+ type: z.ZodLiteral<"free">;
9168
+ }, z.core.$strip>, z.ZodObject<{
9169
+ type: z.ZodLiteral<"flat">;
9170
+ amount: z.ZodString;
9171
+ }, z.core.$strip>, z.ZodObject<{
9172
+ type: z.ZodLiteral<"unit">;
9173
+ amount: z.ZodString;
9174
+ }, z.core.$strip>, z.ZodObject<{
9175
+ type: z.ZodLiteral<"graduated">;
9176
+ tiers: z.ZodArray<z.ZodObject<{
9177
+ upToAmount: z.ZodOptional<z.ZodString>;
9178
+ flatPrice: z.ZodOptional<z.ZodObject<{
9179
+ type: z.ZodLiteral<"flat">;
9180
+ amount: z.ZodString;
9181
+ }, z.core.$strip>>;
9182
+ unitPrice: z.ZodOptional<z.ZodObject<{
9183
+ type: z.ZodLiteral<"unit">;
9184
+ amount: z.ZodString;
9185
+ }, z.core.$strip>>;
9186
+ }, z.core.$strip>>;
9187
+ }, z.core.$strip>, z.ZodObject<{
9188
+ type: z.ZodLiteral<"volume">;
9189
+ tiers: z.ZodArray<z.ZodObject<{
9190
+ upToAmount: z.ZodOptional<z.ZodString>;
9191
+ flatPrice: z.ZodOptional<z.ZodObject<{
9192
+ type: z.ZodLiteral<"flat">;
9193
+ amount: z.ZodString;
9194
+ }, z.core.$strip>>;
9195
+ unitPrice: z.ZodOptional<z.ZodObject<{
9196
+ type: z.ZodLiteral<"unit">;
9197
+ amount: z.ZodString;
9198
+ }, z.core.$strip>>;
9199
+ }, z.core.$strip>>;
9200
+ }, z.core.$strip>], "type">;
9201
+ unitConfig: z.ZodOptional<z.ZodObject<{
9202
+ operation: z.ZodEnum<{
9203
+ divide: "divide";
9204
+ multiply: "multiply";
9205
+ }>;
9206
+ conversionFactor: z.ZodString;
9207
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
9208
+ ceiling: "ceiling";
9209
+ floor: "floor";
9210
+ half_up: "half_up";
9211
+ none: "none";
9212
+ }>>>;
9213
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9214
+ displayUnit: z.ZodOptional<z.ZodString>;
9215
+ }, z.core.$strip>>;
9216
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
9217
+ commitments: z.ZodOptional<z.ZodObject<{
9218
+ minimumAmount: z.ZodOptional<z.ZodString>;
9219
+ maximumAmount: z.ZodOptional<z.ZodString>;
9220
+ }, z.core.$strip>>;
9221
+ discounts: z.ZodOptional<z.ZodObject<{
9222
+ percentage: z.ZodOptional<z.ZodNumber>;
9223
+ usage: z.ZodOptional<z.ZodString>;
9224
+ }, z.core.$strip>>;
9225
+ taxConfig: z.ZodOptional<z.ZodObject<{
9226
+ behavior: z.ZodOptional<z.ZodEnum<{
9227
+ exclusive: "exclusive";
9228
+ inclusive: "inclusive";
9229
+ }>>;
9230
+ code: z.ZodObject<{
9231
+ id: z.ZodString;
9232
+ }, z.core.$strip>;
9233
+ }, z.core.$strip>>;
9234
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
9235
+ type: z.ZodLiteral<"metered">;
9236
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9237
+ limit: z.ZodOptional<z.ZodNumber>;
9238
+ usagePeriod: z.ZodOptional<z.ZodString>;
9239
+ }, z.core.$strip>, z.ZodObject<{
9240
+ type: z.ZodLiteral<"static">;
9241
+ config: z.ZodUnknown;
9242
+ }, z.core.$strip>, z.ZodObject<{
9243
+ type: z.ZodLiteral<"boolean">;
9244
+ }, z.core.$strip>], "type">>;
9245
+ }, z.core.$strip>;
9246
+ affectedSubscriptionItemIds: z.ZodArray<z.ZodString>;
9247
+ }, z.core.$strip>>;
9248
+ }, z.core.$strip>;
9190
9249
  export declare const addonPagePaginatedResponse: z.ZodObject<{
9191
9250
  data: z.ZodArray<z.ZodObject<{
9192
9251
  id: z.ZodString;
@@ -9844,155 +9903,35 @@ export declare const subscription: z.ZodObject<{
9844
9903
  }, z.core.$strip>>;
9845
9904
  }, z.core.$strip>>;
9846
9905
  }, z.core.$strip>;
9847
- export declare const subscriptionEdit: z.ZodObject<{
9848
- customizations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
9849
- type: z.ZodLiteral<"add_item">;
9850
- phaseKey: z.ZodString;
9851
- rateCard: z.ZodObject<{
9906
+ export declare const subscriptionCreate: z.ZodObject<{
9907
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9908
+ settlementMode: z.ZodOptional<z.ZodEnum<{
9909
+ credit_only: "credit_only";
9910
+ credit_then_invoice: "credit_then_invoice";
9911
+ }>>;
9912
+ customer: z.ZodObject<{
9913
+ id: z.ZodOptional<z.ZodString>;
9914
+ key: z.ZodOptional<z.ZodString>;
9915
+ }, z.core.$strip>;
9916
+ plan: z.ZodOptional<z.ZodObject<{
9917
+ id: z.ZodOptional<z.ZodString>;
9918
+ key: z.ZodOptional<z.ZodString>;
9919
+ version: z.ZodOptional<z.ZodNumber>;
9920
+ }, z.core.$strip>>;
9921
+ customPlan: z.ZodOptional<z.ZodObject<{
9922
+ name: z.ZodString;
9923
+ description: z.ZodOptional<z.ZodString>;
9924
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9925
+ currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
9926
+ billingCadence: z.ZodString;
9927
+ proRatingEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9928
+ phases: z.ZodArray<z.ZodObject<{
9852
9929
  name: z.ZodString;
9853
9930
  description: z.ZodOptional<z.ZodString>;
9854
9931
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9855
9932
  key: z.ZodString;
9856
- feature: z.ZodOptional<z.ZodObject<{
9857
- id: z.ZodString;
9858
- }, z.core.$strip>>;
9859
- currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
9860
- billingCadence: z.ZodOptional<z.ZodString>;
9861
- price: z.ZodDiscriminatedUnion<[z.ZodObject<{
9862
- type: z.ZodLiteral<"free">;
9863
- }, z.core.$strip>, z.ZodObject<{
9864
- type: z.ZodLiteral<"flat">;
9865
- amount: z.ZodString;
9866
- }, z.core.$strip>, z.ZodObject<{
9867
- type: z.ZodLiteral<"unit">;
9868
- amount: z.ZodString;
9869
- }, z.core.$strip>, z.ZodObject<{
9870
- type: z.ZodLiteral<"graduated">;
9871
- tiers: z.ZodArray<z.ZodObject<{
9872
- upToAmount: z.ZodOptional<z.ZodString>;
9873
- flatPrice: z.ZodOptional<z.ZodObject<{
9874
- type: z.ZodLiteral<"flat">;
9875
- amount: z.ZodString;
9876
- }, z.core.$strip>>;
9877
- unitPrice: z.ZodOptional<z.ZodObject<{
9878
- type: z.ZodLiteral<"unit">;
9879
- amount: z.ZodString;
9880
- }, z.core.$strip>>;
9881
- }, z.core.$strip>>;
9882
- }, z.core.$strip>, z.ZodObject<{
9883
- type: z.ZodLiteral<"volume">;
9884
- tiers: z.ZodArray<z.ZodObject<{
9885
- upToAmount: z.ZodOptional<z.ZodString>;
9886
- flatPrice: z.ZodOptional<z.ZodObject<{
9887
- type: z.ZodLiteral<"flat">;
9888
- amount: z.ZodString;
9889
- }, z.core.$strip>>;
9890
- unitPrice: z.ZodOptional<z.ZodObject<{
9891
- type: z.ZodLiteral<"unit">;
9892
- amount: z.ZodString;
9893
- }, z.core.$strip>>;
9894
- }, z.core.$strip>>;
9895
- }, z.core.$strip>], "type">;
9896
- unitConfig: z.ZodOptional<z.ZodObject<{
9897
- operation: z.ZodEnum<{
9898
- divide: "divide";
9899
- multiply: "multiply";
9900
- }>;
9901
- conversionFactor: z.ZodString;
9902
- rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
9903
- ceiling: "ceiling";
9904
- floor: "floor";
9905
- half_up: "half_up";
9906
- none: "none";
9907
- }>>>;
9908
- precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9909
- displayUnit: z.ZodOptional<z.ZodString>;
9910
- }, z.core.$strip>>;
9911
- paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
9912
- commitments: z.ZodOptional<z.ZodObject<{
9913
- minimumAmount: z.ZodOptional<z.ZodString>;
9914
- maximumAmount: z.ZodOptional<z.ZodString>;
9915
- }, z.core.$strip>>;
9916
- discounts: z.ZodOptional<z.ZodObject<{
9917
- percentage: z.ZodOptional<z.ZodNumber>;
9918
- usage: z.ZodOptional<z.ZodString>;
9919
- }, z.core.$strip>>;
9920
- taxConfig: z.ZodOptional<z.ZodObject<{
9921
- behavior: z.ZodOptional<z.ZodEnum<{
9922
- exclusive: "exclusive";
9923
- inclusive: "inclusive";
9924
- }>>;
9925
- code: z.ZodObject<{
9926
- id: z.ZodString;
9927
- }, z.core.$strip>;
9928
- }, z.core.$strip>>;
9929
- entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
9930
- type: z.ZodLiteral<"metered">;
9931
- isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9932
- limit: z.ZodOptional<z.ZodNumber>;
9933
- usagePeriod: z.ZodOptional<z.ZodString>;
9934
- }, z.core.$strip>, z.ZodObject<{
9935
- type: z.ZodLiteral<"static">;
9936
- config: z.ZodUnknown;
9937
- }, z.core.$strip>, z.ZodObject<{
9938
- type: z.ZodLiteral<"boolean">;
9939
- }, z.core.$strip>], "type">>;
9940
- }, z.core.$strip>;
9941
- }, z.core.$strip>, z.ZodObject<{
9942
- type: z.ZodLiteral<"remove_item">;
9943
- phaseKey: z.ZodString;
9944
- itemKey: z.ZodString;
9945
- }, z.core.$strip>, z.ZodObject<{
9946
- type: z.ZodLiteral<"add_phase">;
9947
- phase: z.ZodObject<{
9948
- key: z.ZodString;
9949
- name: z.ZodString;
9950
- description: z.ZodOptional<z.ZodString>;
9951
- startAfter: z.ZodNullable<z.ZodString>;
9952
9933
  duration: z.ZodOptional<z.ZodString>;
9953
- }, z.core.$strip>;
9954
- }, z.core.$strip>, z.ZodObject<{
9955
- type: z.ZodLiteral<"remove_phase">;
9956
- phaseKey: z.ZodString;
9957
- shift: z.ZodEnum<{
9958
- next: "next";
9959
- prev: "prev";
9960
- }>;
9961
- }, z.core.$strip>, z.ZodObject<{
9962
- type: z.ZodLiteral<"stretch_phase">;
9963
- phaseKey: z.ZodString;
9964
- extendBy: z.ZodString;
9965
- }, z.core.$strip>, z.ZodObject<{
9966
- type: z.ZodLiteral<"unschedule_edit">;
9967
- }, z.core.$strip>], "type">>;
9968
- timing: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
9969
- immediate: "immediate";
9970
- next_billing_cycle: "next_billing_cycle";
9971
- }>, z.ZodDate]>>>;
9972
- }, z.core.$strip>;
9973
- export declare const subscriptionAddonPagePaginatedResponse: z.ZodObject<{
9974
- data: z.ZodArray<z.ZodObject<{
9975
- id: z.ZodString;
9976
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9977
- createdAt: z.ZodDate;
9978
- updatedAt: z.ZodDate;
9979
- deletedAt: z.ZodOptional<z.ZodDate>;
9980
- name: z.ZodString;
9981
- description: z.ZodOptional<z.ZodString>;
9982
- addon: z.ZodObject<{
9983
- id: z.ZodString;
9984
- }, z.core.$strip>;
9985
- quantity: z.ZodNumber;
9986
- quantityAt: z.ZodDate;
9987
- activeFrom: z.ZodDate;
9988
- activeTo: z.ZodOptional<z.ZodDate>;
9989
- timeline: z.ZodArray<z.ZodObject<{
9990
- activeFrom: z.ZodDate;
9991
- activeTo: z.ZodOptional<z.ZodDate>;
9992
- quantity: z.ZodNumber;
9993
- }, z.core.$strip>>;
9994
- rateCards: z.ZodArray<z.ZodObject<{
9995
- rateCard: z.ZodObject<{
9934
+ rateCards: z.ZodArray<z.ZodObject<{
9996
9935
  name: z.ZodString;
9997
9936
  description: z.ZodOptional<z.ZodString>;
9998
9937
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -10081,17 +10020,144 @@ export declare const subscriptionAddonPagePaginatedResponse: z.ZodObject<{
10081
10020
  }, z.core.$strip>, z.ZodObject<{
10082
10021
  type: z.ZodLiteral<"boolean">;
10083
10022
  }, z.core.$strip>], "type">>;
10084
- }, z.core.$strip>;
10085
- affectedSubscriptionItemIds: z.ZodArray<z.ZodString>;
10023
+ }, z.core.$strip>>;
10086
10024
  }, z.core.$strip>>;
10087
10025
  }, z.core.$strip>>;
10088
- meta: z.ZodObject<{
10089
- page: z.ZodObject<{
10090
- number: z.ZodNumber;
10091
- size: z.ZodNumber;
10092
- total: z.ZodNumber;
10093
- }, z.core.$strip>;
10026
+ billingAnchor: z.ZodOptional<z.ZodDate>;
10027
+ costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
10028
+ dynamic: "dynamic";
10029
+ pinned: "pinned";
10030
+ }>>>;
10031
+ }, z.core.$strip>;
10032
+ export declare const subscriptionChange: z.ZodObject<{
10033
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10034
+ settlementMode: z.ZodOptional<z.ZodEnum<{
10035
+ credit_only: "credit_only";
10036
+ credit_then_invoice: "credit_then_invoice";
10037
+ }>>;
10038
+ customer: z.ZodObject<{
10039
+ id: z.ZodOptional<z.ZodString>;
10040
+ key: z.ZodOptional<z.ZodString>;
10094
10041
  }, z.core.$strip>;
10042
+ plan: z.ZodOptional<z.ZodObject<{
10043
+ id: z.ZodOptional<z.ZodString>;
10044
+ key: z.ZodOptional<z.ZodString>;
10045
+ version: z.ZodOptional<z.ZodNumber>;
10046
+ }, z.core.$strip>>;
10047
+ customPlan: z.ZodOptional<z.ZodObject<{
10048
+ name: z.ZodString;
10049
+ description: z.ZodOptional<z.ZodString>;
10050
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10051
+ currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
10052
+ billingCadence: z.ZodString;
10053
+ proRatingEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10054
+ phases: z.ZodArray<z.ZodObject<{
10055
+ name: z.ZodString;
10056
+ description: z.ZodOptional<z.ZodString>;
10057
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10058
+ key: z.ZodString;
10059
+ duration: z.ZodOptional<z.ZodString>;
10060
+ rateCards: z.ZodArray<z.ZodObject<{
10061
+ name: z.ZodString;
10062
+ description: z.ZodOptional<z.ZodString>;
10063
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10064
+ key: z.ZodString;
10065
+ feature: z.ZodOptional<z.ZodObject<{
10066
+ id: z.ZodString;
10067
+ }, z.core.$strip>>;
10068
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
10069
+ billingCadence: z.ZodOptional<z.ZodString>;
10070
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
10071
+ type: z.ZodLiteral<"free">;
10072
+ }, z.core.$strip>, z.ZodObject<{
10073
+ type: z.ZodLiteral<"flat">;
10074
+ amount: z.ZodString;
10075
+ }, z.core.$strip>, z.ZodObject<{
10076
+ type: z.ZodLiteral<"unit">;
10077
+ amount: z.ZodString;
10078
+ }, z.core.$strip>, z.ZodObject<{
10079
+ type: z.ZodLiteral<"graduated">;
10080
+ tiers: z.ZodArray<z.ZodObject<{
10081
+ upToAmount: z.ZodOptional<z.ZodString>;
10082
+ flatPrice: z.ZodOptional<z.ZodObject<{
10083
+ type: z.ZodLiteral<"flat">;
10084
+ amount: z.ZodString;
10085
+ }, z.core.$strip>>;
10086
+ unitPrice: z.ZodOptional<z.ZodObject<{
10087
+ type: z.ZodLiteral<"unit">;
10088
+ amount: z.ZodString;
10089
+ }, z.core.$strip>>;
10090
+ }, z.core.$strip>>;
10091
+ }, z.core.$strip>, z.ZodObject<{
10092
+ type: z.ZodLiteral<"volume">;
10093
+ tiers: z.ZodArray<z.ZodObject<{
10094
+ upToAmount: z.ZodOptional<z.ZodString>;
10095
+ flatPrice: z.ZodOptional<z.ZodObject<{
10096
+ type: z.ZodLiteral<"flat">;
10097
+ amount: z.ZodString;
10098
+ }, z.core.$strip>>;
10099
+ unitPrice: z.ZodOptional<z.ZodObject<{
10100
+ type: z.ZodLiteral<"unit">;
10101
+ amount: z.ZodString;
10102
+ }, z.core.$strip>>;
10103
+ }, z.core.$strip>>;
10104
+ }, z.core.$strip>], "type">;
10105
+ unitConfig: z.ZodOptional<z.ZodObject<{
10106
+ operation: z.ZodEnum<{
10107
+ divide: "divide";
10108
+ multiply: "multiply";
10109
+ }>;
10110
+ conversionFactor: z.ZodString;
10111
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
10112
+ ceiling: "ceiling";
10113
+ floor: "floor";
10114
+ half_up: "half_up";
10115
+ none: "none";
10116
+ }>>>;
10117
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10118
+ displayUnit: z.ZodOptional<z.ZodString>;
10119
+ }, z.core.$strip>>;
10120
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
10121
+ commitments: z.ZodOptional<z.ZodObject<{
10122
+ minimumAmount: z.ZodOptional<z.ZodString>;
10123
+ maximumAmount: z.ZodOptional<z.ZodString>;
10124
+ }, z.core.$strip>>;
10125
+ discounts: z.ZodOptional<z.ZodObject<{
10126
+ percentage: z.ZodOptional<z.ZodNumber>;
10127
+ usage: z.ZodOptional<z.ZodString>;
10128
+ }, z.core.$strip>>;
10129
+ taxConfig: z.ZodOptional<z.ZodObject<{
10130
+ behavior: z.ZodOptional<z.ZodEnum<{
10131
+ exclusive: "exclusive";
10132
+ inclusive: "inclusive";
10133
+ }>>;
10134
+ code: z.ZodObject<{
10135
+ id: z.ZodString;
10136
+ }, z.core.$strip>;
10137
+ }, z.core.$strip>>;
10138
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10139
+ type: z.ZodLiteral<"metered">;
10140
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10141
+ limit: z.ZodOptional<z.ZodNumber>;
10142
+ usagePeriod: z.ZodOptional<z.ZodString>;
10143
+ }, z.core.$strip>, z.ZodObject<{
10144
+ type: z.ZodLiteral<"static">;
10145
+ config: z.ZodUnknown;
10146
+ }, z.core.$strip>, z.ZodObject<{
10147
+ type: z.ZodLiteral<"boolean">;
10148
+ }, z.core.$strip>], "type">>;
10149
+ }, z.core.$strip>>;
10150
+ }, z.core.$strip>>;
10151
+ }, z.core.$strip>>;
10152
+ billingAnchor: z.ZodOptional<z.ZodDate>;
10153
+ costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
10154
+ dynamic: "dynamic";
10155
+ pinned: "pinned";
10156
+ }>>>;
10157
+ timing: z.ZodUnion<readonly [z.ZodEnum<{
10158
+ immediate: "immediate";
10159
+ next_billing_cycle: "next_billing_cycle";
10160
+ }>, z.ZodDate]>;
10095
10161
  }, z.core.$strip>;
10096
10162
  export declare const planPagePaginatedResponse: z.ZodObject<{
10097
10163
  data: z.ZodArray<z.ZodObject<{
@@ -10231,6 +10297,255 @@ export declare const planPagePaginatedResponse: z.ZodObject<{
10231
10297
  }, z.core.$strip>;
10232
10298
  }, z.core.$strip>;
10233
10299
  }, z.core.$strip>;
10300
+ export declare const subscriptionEdit: z.ZodObject<{
10301
+ customizations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
10302
+ type: z.ZodLiteral<"add_item">;
10303
+ phaseKey: z.ZodString;
10304
+ rateCard: z.ZodObject<{
10305
+ name: z.ZodString;
10306
+ description: z.ZodOptional<z.ZodString>;
10307
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10308
+ key: z.ZodString;
10309
+ feature: z.ZodOptional<z.ZodObject<{
10310
+ id: z.ZodString;
10311
+ }, z.core.$strip>>;
10312
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
10313
+ billingCadence: z.ZodOptional<z.ZodString>;
10314
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
10315
+ type: z.ZodLiteral<"free">;
10316
+ }, z.core.$strip>, z.ZodObject<{
10317
+ type: z.ZodLiteral<"flat">;
10318
+ amount: z.ZodString;
10319
+ }, z.core.$strip>, z.ZodObject<{
10320
+ type: z.ZodLiteral<"unit">;
10321
+ amount: z.ZodString;
10322
+ }, z.core.$strip>, z.ZodObject<{
10323
+ type: z.ZodLiteral<"graduated">;
10324
+ tiers: z.ZodArray<z.ZodObject<{
10325
+ upToAmount: z.ZodOptional<z.ZodString>;
10326
+ flatPrice: z.ZodOptional<z.ZodObject<{
10327
+ type: z.ZodLiteral<"flat">;
10328
+ amount: z.ZodString;
10329
+ }, z.core.$strip>>;
10330
+ unitPrice: z.ZodOptional<z.ZodObject<{
10331
+ type: z.ZodLiteral<"unit">;
10332
+ amount: z.ZodString;
10333
+ }, z.core.$strip>>;
10334
+ }, z.core.$strip>>;
10335
+ }, z.core.$strip>, z.ZodObject<{
10336
+ type: z.ZodLiteral<"volume">;
10337
+ tiers: z.ZodArray<z.ZodObject<{
10338
+ upToAmount: z.ZodOptional<z.ZodString>;
10339
+ flatPrice: z.ZodOptional<z.ZodObject<{
10340
+ type: z.ZodLiteral<"flat">;
10341
+ amount: z.ZodString;
10342
+ }, z.core.$strip>>;
10343
+ unitPrice: z.ZodOptional<z.ZodObject<{
10344
+ type: z.ZodLiteral<"unit">;
10345
+ amount: z.ZodString;
10346
+ }, z.core.$strip>>;
10347
+ }, z.core.$strip>>;
10348
+ }, z.core.$strip>], "type">;
10349
+ unitConfig: z.ZodOptional<z.ZodObject<{
10350
+ operation: z.ZodEnum<{
10351
+ divide: "divide";
10352
+ multiply: "multiply";
10353
+ }>;
10354
+ conversionFactor: z.ZodString;
10355
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
10356
+ ceiling: "ceiling";
10357
+ floor: "floor";
10358
+ half_up: "half_up";
10359
+ none: "none";
10360
+ }>>>;
10361
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10362
+ displayUnit: z.ZodOptional<z.ZodString>;
10363
+ }, z.core.$strip>>;
10364
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
10365
+ commitments: z.ZodOptional<z.ZodObject<{
10366
+ minimumAmount: z.ZodOptional<z.ZodString>;
10367
+ maximumAmount: z.ZodOptional<z.ZodString>;
10368
+ }, z.core.$strip>>;
10369
+ discounts: z.ZodOptional<z.ZodObject<{
10370
+ percentage: z.ZodOptional<z.ZodNumber>;
10371
+ usage: z.ZodOptional<z.ZodString>;
10372
+ }, z.core.$strip>>;
10373
+ taxConfig: z.ZodOptional<z.ZodObject<{
10374
+ behavior: z.ZodOptional<z.ZodEnum<{
10375
+ exclusive: "exclusive";
10376
+ inclusive: "inclusive";
10377
+ }>>;
10378
+ code: z.ZodObject<{
10379
+ id: z.ZodString;
10380
+ }, z.core.$strip>;
10381
+ }, z.core.$strip>>;
10382
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10383
+ type: z.ZodLiteral<"metered">;
10384
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10385
+ limit: z.ZodOptional<z.ZodNumber>;
10386
+ usagePeriod: z.ZodOptional<z.ZodString>;
10387
+ }, z.core.$strip>, z.ZodObject<{
10388
+ type: z.ZodLiteral<"static">;
10389
+ config: z.ZodUnknown;
10390
+ }, z.core.$strip>, z.ZodObject<{
10391
+ type: z.ZodLiteral<"boolean">;
10392
+ }, z.core.$strip>], "type">>;
10393
+ }, z.core.$strip>;
10394
+ }, z.core.$strip>, z.ZodObject<{
10395
+ type: z.ZodLiteral<"remove_item">;
10396
+ phaseKey: z.ZodString;
10397
+ itemKey: z.ZodString;
10398
+ }, z.core.$strip>, z.ZodObject<{
10399
+ type: z.ZodLiteral<"add_phase">;
10400
+ phase: z.ZodObject<{
10401
+ key: z.ZodString;
10402
+ name: z.ZodString;
10403
+ description: z.ZodOptional<z.ZodString>;
10404
+ startAfter: z.ZodNullable<z.ZodString>;
10405
+ duration: z.ZodOptional<z.ZodString>;
10406
+ }, z.core.$strip>;
10407
+ }, z.core.$strip>, z.ZodObject<{
10408
+ type: z.ZodLiteral<"remove_phase">;
10409
+ phaseKey: z.ZodString;
10410
+ shift: z.ZodEnum<{
10411
+ next: "next";
10412
+ prev: "prev";
10413
+ }>;
10414
+ }, z.core.$strip>, z.ZodObject<{
10415
+ type: z.ZodLiteral<"stretch_phase">;
10416
+ phaseKey: z.ZodString;
10417
+ extendBy: z.ZodString;
10418
+ }, z.core.$strip>, z.ZodObject<{
10419
+ type: z.ZodLiteral<"unschedule_edit">;
10420
+ }, z.core.$strip>], "type">>;
10421
+ timing: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
10422
+ immediate: "immediate";
10423
+ next_billing_cycle: "next_billing_cycle";
10424
+ }>, z.ZodDate]>>>;
10425
+ }, z.core.$strip>;
10426
+ export declare const subscriptionAddonPagePaginatedResponse: z.ZodObject<{
10427
+ data: z.ZodArray<z.ZodObject<{
10428
+ id: z.ZodString;
10429
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10430
+ createdAt: z.ZodDate;
10431
+ updatedAt: z.ZodDate;
10432
+ deletedAt: z.ZodOptional<z.ZodDate>;
10433
+ name: z.ZodString;
10434
+ description: z.ZodOptional<z.ZodString>;
10435
+ addon: z.ZodObject<{
10436
+ id: z.ZodString;
10437
+ }, z.core.$strip>;
10438
+ quantity: z.ZodNumber;
10439
+ quantityAt: z.ZodDate;
10440
+ activeFrom: z.ZodDate;
10441
+ activeTo: z.ZodOptional<z.ZodDate>;
10442
+ timeline: z.ZodArray<z.ZodObject<{
10443
+ activeFrom: z.ZodDate;
10444
+ activeTo: z.ZodOptional<z.ZodDate>;
10445
+ quantity: z.ZodNumber;
10446
+ }, z.core.$strip>>;
10447
+ rateCards: z.ZodArray<z.ZodObject<{
10448
+ rateCard: z.ZodObject<{
10449
+ name: z.ZodString;
10450
+ description: z.ZodOptional<z.ZodString>;
10451
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10452
+ key: z.ZodString;
10453
+ feature: z.ZodOptional<z.ZodObject<{
10454
+ id: z.ZodString;
10455
+ }, z.core.$strip>>;
10456
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
10457
+ billingCadence: z.ZodOptional<z.ZodString>;
10458
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
10459
+ type: z.ZodLiteral<"free">;
10460
+ }, z.core.$strip>, z.ZodObject<{
10461
+ type: z.ZodLiteral<"flat">;
10462
+ amount: z.ZodString;
10463
+ }, z.core.$strip>, z.ZodObject<{
10464
+ type: z.ZodLiteral<"unit">;
10465
+ amount: z.ZodString;
10466
+ }, z.core.$strip>, z.ZodObject<{
10467
+ type: z.ZodLiteral<"graduated">;
10468
+ tiers: z.ZodArray<z.ZodObject<{
10469
+ upToAmount: z.ZodOptional<z.ZodString>;
10470
+ flatPrice: z.ZodOptional<z.ZodObject<{
10471
+ type: z.ZodLiteral<"flat">;
10472
+ amount: z.ZodString;
10473
+ }, z.core.$strip>>;
10474
+ unitPrice: z.ZodOptional<z.ZodObject<{
10475
+ type: z.ZodLiteral<"unit">;
10476
+ amount: z.ZodString;
10477
+ }, z.core.$strip>>;
10478
+ }, z.core.$strip>>;
10479
+ }, z.core.$strip>, z.ZodObject<{
10480
+ type: z.ZodLiteral<"volume">;
10481
+ tiers: z.ZodArray<z.ZodObject<{
10482
+ upToAmount: z.ZodOptional<z.ZodString>;
10483
+ flatPrice: z.ZodOptional<z.ZodObject<{
10484
+ type: z.ZodLiteral<"flat">;
10485
+ amount: z.ZodString;
10486
+ }, z.core.$strip>>;
10487
+ unitPrice: z.ZodOptional<z.ZodObject<{
10488
+ type: z.ZodLiteral<"unit">;
10489
+ amount: z.ZodString;
10490
+ }, z.core.$strip>>;
10491
+ }, z.core.$strip>>;
10492
+ }, z.core.$strip>], "type">;
10493
+ unitConfig: z.ZodOptional<z.ZodObject<{
10494
+ operation: z.ZodEnum<{
10495
+ divide: "divide";
10496
+ multiply: "multiply";
10497
+ }>;
10498
+ conversionFactor: z.ZodString;
10499
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
10500
+ ceiling: "ceiling";
10501
+ floor: "floor";
10502
+ half_up: "half_up";
10503
+ none: "none";
10504
+ }>>>;
10505
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10506
+ displayUnit: z.ZodOptional<z.ZodString>;
10507
+ }, z.core.$strip>>;
10508
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
10509
+ commitments: z.ZodOptional<z.ZodObject<{
10510
+ minimumAmount: z.ZodOptional<z.ZodString>;
10511
+ maximumAmount: z.ZodOptional<z.ZodString>;
10512
+ }, z.core.$strip>>;
10513
+ discounts: z.ZodOptional<z.ZodObject<{
10514
+ percentage: z.ZodOptional<z.ZodNumber>;
10515
+ usage: z.ZodOptional<z.ZodString>;
10516
+ }, z.core.$strip>>;
10517
+ taxConfig: z.ZodOptional<z.ZodObject<{
10518
+ behavior: z.ZodOptional<z.ZodEnum<{
10519
+ exclusive: "exclusive";
10520
+ inclusive: "inclusive";
10521
+ }>>;
10522
+ code: z.ZodObject<{
10523
+ id: z.ZodString;
10524
+ }, z.core.$strip>;
10525
+ }, z.core.$strip>>;
10526
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10527
+ type: z.ZodLiteral<"metered">;
10528
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10529
+ limit: z.ZodOptional<z.ZodNumber>;
10530
+ usagePeriod: z.ZodOptional<z.ZodString>;
10531
+ }, z.core.$strip>, z.ZodObject<{
10532
+ type: z.ZodLiteral<"static">;
10533
+ config: z.ZodUnknown;
10534
+ }, z.core.$strip>, z.ZodObject<{
10535
+ type: z.ZodLiteral<"boolean">;
10536
+ }, z.core.$strip>], "type">>;
10537
+ }, z.core.$strip>;
10538
+ affectedSubscriptionItemIds: z.ZodArray<z.ZodString>;
10539
+ }, z.core.$strip>>;
10540
+ }, z.core.$strip>>;
10541
+ meta: z.ZodObject<{
10542
+ page: z.ZodObject<{
10543
+ number: z.ZodNumber;
10544
+ size: z.ZodNumber;
10545
+ total: z.ZodNumber;
10546
+ }, z.core.$strip>;
10547
+ }, z.core.$strip>;
10548
+ }, z.core.$strip>;
10234
10549
  export declare const invoiceStandard: z.ZodObject<{
10235
10550
  id: z.ZodString;
10236
10551
  description: z.ZodOptional<z.ZodString>;
@@ -16748,14 +17063,14 @@ export declare const getCustomerBillingResponse: z.ZodObject<{
16748
17063
  id: z.ZodString;
16749
17064
  }, z.core.$strip>>;
16750
17065
  appData: z.ZodOptional<z.ZodObject<{
16751
- stripe: z.ZodOptional<z.ZodObject<{
17066
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16752
17067
  customerId: z.ZodOptional<z.ZodString>;
16753
17068
  defaultPaymentMethodId: z.ZodOptional<z.ZodString>;
16754
17069
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16755
- }, z.core.$strip>>;
16756
- externalInvoicing: z.ZodOptional<z.ZodObject<{
17070
+ }, z.core.$strip>>>;
17071
+ externalInvoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16757
17072
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16758
- }, z.core.$strip>>;
17073
+ }, z.core.$strip>>>;
16759
17074
  }, z.core.$strip>>;
16760
17075
  }, z.core.$strip>;
16761
17076
  export declare const updateCustomerBillingPathParams: z.ZodObject<{
@@ -16766,14 +17081,14 @@ export declare const updateCustomerBillingBody: z.ZodObject<{
16766
17081
  id: z.ZodString;
16767
17082
  }, z.core.$strip>>;
16768
17083
  appData: z.ZodOptional<z.ZodObject<{
16769
- stripe: z.ZodOptional<z.ZodObject<{
17084
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16770
17085
  customerId: z.ZodOptional<z.ZodString>;
16771
17086
  defaultPaymentMethodId: z.ZodOptional<z.ZodString>;
16772
17087
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16773
- }, z.core.$strip>>;
16774
- externalInvoicing: z.ZodOptional<z.ZodObject<{
17088
+ }, z.core.$strip>>>;
17089
+ externalInvoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16775
17090
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16776
- }, z.core.$strip>>;
17091
+ }, z.core.$strip>>>;
16777
17092
  }, z.core.$strip>>;
16778
17093
  }, z.core.$strip>;
16779
17094
  export declare const updateCustomerBillingResponse: z.ZodObject<{
@@ -16781,38 +17096,38 @@ export declare const updateCustomerBillingResponse: z.ZodObject<{
16781
17096
  id: z.ZodString;
16782
17097
  }, z.core.$strip>>;
16783
17098
  appData: z.ZodOptional<z.ZodObject<{
16784
- stripe: z.ZodOptional<z.ZodObject<{
17099
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16785
17100
  customerId: z.ZodOptional<z.ZodString>;
16786
17101
  defaultPaymentMethodId: z.ZodOptional<z.ZodString>;
16787
17102
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16788
- }, z.core.$strip>>;
16789
- externalInvoicing: z.ZodOptional<z.ZodObject<{
17103
+ }, z.core.$strip>>>;
17104
+ externalInvoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16790
17105
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16791
- }, z.core.$strip>>;
17106
+ }, z.core.$strip>>>;
16792
17107
  }, z.core.$strip>>;
16793
17108
  }, z.core.$strip>;
16794
17109
  export declare const updateCustomerBillingAppDataPathParams: z.ZodObject<{
16795
17110
  customerId: z.ZodString;
16796
17111
  }, z.core.$strip>;
16797
17112
  export declare const updateCustomerBillingAppDataBody: z.ZodObject<{
16798
- stripe: z.ZodOptional<z.ZodObject<{
17113
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16799
17114
  customerId: z.ZodOptional<z.ZodString>;
16800
17115
  defaultPaymentMethodId: z.ZodOptional<z.ZodString>;
16801
17116
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16802
- }, z.core.$strip>>;
16803
- externalInvoicing: z.ZodOptional<z.ZodObject<{
17117
+ }, z.core.$strip>>>;
17118
+ externalInvoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16804
17119
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16805
- }, z.core.$strip>>;
17120
+ }, z.core.$strip>>>;
16806
17121
  }, z.core.$strip>;
16807
17122
  export declare const updateCustomerBillingAppDataResponse: z.ZodObject<{
16808
- stripe: z.ZodOptional<z.ZodObject<{
17123
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16809
17124
  customerId: z.ZodOptional<z.ZodString>;
16810
17125
  defaultPaymentMethodId: z.ZodOptional<z.ZodString>;
16811
17126
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16812
- }, z.core.$strip>>;
16813
- externalInvoicing: z.ZodOptional<z.ZodObject<{
17127
+ }, z.core.$strip>>>;
17128
+ externalInvoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16814
17129
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16815
- }, z.core.$strip>>;
17130
+ }, z.core.$strip>>>;
16816
17131
  }, z.core.$strip>;
16817
17132
  export declare const createCustomerStripeCheckoutSessionPathParams: z.ZodObject<{
16818
17133
  customerId: z.ZodString;
@@ -20341,11 +20656,116 @@ export declare const createSubscriptionBody: z.ZodObject<{
20341
20656
  id: z.ZodOptional<z.ZodString>;
20342
20657
  key: z.ZodOptional<z.ZodString>;
20343
20658
  }, z.core.$strip>;
20344
- plan: z.ZodObject<{
20659
+ plan: z.ZodOptional<z.ZodObject<{
20345
20660
  id: z.ZodOptional<z.ZodString>;
20346
20661
  key: z.ZodOptional<z.ZodString>;
20347
20662
  version: z.ZodOptional<z.ZodNumber>;
20348
- }, z.core.$strip>;
20663
+ }, z.core.$strip>>;
20664
+ customPlan: z.ZodOptional<z.ZodObject<{
20665
+ name: z.ZodString;
20666
+ description: z.ZodOptional<z.ZodString>;
20667
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
20668
+ currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
20669
+ billingCadence: z.ZodString;
20670
+ proRatingEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
20671
+ phases: z.ZodArray<z.ZodObject<{
20672
+ name: z.ZodString;
20673
+ description: z.ZodOptional<z.ZodString>;
20674
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
20675
+ key: z.ZodString;
20676
+ duration: z.ZodOptional<z.ZodString>;
20677
+ rateCards: z.ZodArray<z.ZodObject<{
20678
+ name: z.ZodString;
20679
+ description: z.ZodOptional<z.ZodString>;
20680
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
20681
+ key: z.ZodString;
20682
+ feature: z.ZodOptional<z.ZodObject<{
20683
+ id: z.ZodString;
20684
+ }, z.core.$strip>>;
20685
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
20686
+ billingCadence: z.ZodOptional<z.ZodString>;
20687
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
20688
+ type: z.ZodLiteral<"free">;
20689
+ }, z.core.$strip>, z.ZodObject<{
20690
+ type: z.ZodLiteral<"flat">;
20691
+ amount: z.ZodString;
20692
+ }, z.core.$strip>, z.ZodObject<{
20693
+ type: z.ZodLiteral<"unit">;
20694
+ amount: z.ZodString;
20695
+ }, z.core.$strip>, z.ZodObject<{
20696
+ type: z.ZodLiteral<"graduated">;
20697
+ tiers: z.ZodArray<z.ZodObject<{
20698
+ upToAmount: z.ZodOptional<z.ZodString>;
20699
+ flatPrice: z.ZodOptional<z.ZodObject<{
20700
+ type: z.ZodLiteral<"flat">;
20701
+ amount: z.ZodString;
20702
+ }, z.core.$strip>>;
20703
+ unitPrice: z.ZodOptional<z.ZodObject<{
20704
+ type: z.ZodLiteral<"unit">;
20705
+ amount: z.ZodString;
20706
+ }, z.core.$strip>>;
20707
+ }, z.core.$strip>>;
20708
+ }, z.core.$strip>, z.ZodObject<{
20709
+ type: z.ZodLiteral<"volume">;
20710
+ tiers: z.ZodArray<z.ZodObject<{
20711
+ upToAmount: z.ZodOptional<z.ZodString>;
20712
+ flatPrice: z.ZodOptional<z.ZodObject<{
20713
+ type: z.ZodLiteral<"flat">;
20714
+ amount: z.ZodString;
20715
+ }, z.core.$strip>>;
20716
+ unitPrice: z.ZodOptional<z.ZodObject<{
20717
+ type: z.ZodLiteral<"unit">;
20718
+ amount: z.ZodString;
20719
+ }, z.core.$strip>>;
20720
+ }, z.core.$strip>>;
20721
+ }, z.core.$strip>], "type">;
20722
+ unitConfig: z.ZodOptional<z.ZodObject<{
20723
+ operation: z.ZodEnum<{
20724
+ divide: "divide";
20725
+ multiply: "multiply";
20726
+ }>;
20727
+ conversionFactor: z.ZodString;
20728
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
20729
+ ceiling: "ceiling";
20730
+ floor: "floor";
20731
+ half_up: "half_up";
20732
+ none: "none";
20733
+ }>>>;
20734
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
20735
+ displayUnit: z.ZodOptional<z.ZodString>;
20736
+ }, z.core.$strip>>;
20737
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
20738
+ commitments: z.ZodOptional<z.ZodObject<{
20739
+ minimumAmount: z.ZodOptional<z.ZodString>;
20740
+ maximumAmount: z.ZodOptional<z.ZodString>;
20741
+ }, z.core.$strip>>;
20742
+ discounts: z.ZodOptional<z.ZodObject<{
20743
+ percentage: z.ZodOptional<z.ZodNumber>;
20744
+ usage: z.ZodOptional<z.ZodString>;
20745
+ }, z.core.$strip>>;
20746
+ taxConfig: z.ZodOptional<z.ZodObject<{
20747
+ behavior: z.ZodOptional<z.ZodEnum<{
20748
+ exclusive: "exclusive";
20749
+ inclusive: "inclusive";
20750
+ }>>;
20751
+ code: z.ZodObject<{
20752
+ id: z.ZodString;
20753
+ }, z.core.$strip>;
20754
+ }, z.core.$strip>>;
20755
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
20756
+ type: z.ZodLiteral<"metered">;
20757
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
20758
+ limit: z.ZodOptional<z.ZodNumber>;
20759
+ usagePeriod: z.ZodOptional<z.ZodString>;
20760
+ }, z.core.$strip>, z.ZodObject<{
20761
+ type: z.ZodLiteral<"static">;
20762
+ config: z.ZodUnknown;
20763
+ }, z.core.$strip>, z.ZodObject<{
20764
+ type: z.ZodLiteral<"boolean">;
20765
+ }, z.core.$strip>], "type">>;
20766
+ }, z.core.$strip>>;
20767
+ }, z.core.$strip>>;
20768
+ }, z.core.$strip>>;
20349
20769
  billingAnchor: z.ZodOptional<z.ZodDate>;
20350
20770
  costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
20351
20771
  dynamic: "dynamic";
@@ -21216,11 +21636,116 @@ export declare const changeSubscriptionBody: z.ZodObject<{
21216
21636
  id: z.ZodOptional<z.ZodString>;
21217
21637
  key: z.ZodOptional<z.ZodString>;
21218
21638
  }, z.core.$strip>;
21219
- plan: z.ZodObject<{
21639
+ plan: z.ZodOptional<z.ZodObject<{
21220
21640
  id: z.ZodOptional<z.ZodString>;
21221
21641
  key: z.ZodOptional<z.ZodString>;
21222
21642
  version: z.ZodOptional<z.ZodNumber>;
21223
- }, z.core.$strip>;
21643
+ }, z.core.$strip>>;
21644
+ customPlan: z.ZodOptional<z.ZodObject<{
21645
+ name: z.ZodString;
21646
+ description: z.ZodOptional<z.ZodString>;
21647
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21648
+ currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
21649
+ billingCadence: z.ZodString;
21650
+ proRatingEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
21651
+ phases: z.ZodArray<z.ZodObject<{
21652
+ name: z.ZodString;
21653
+ description: z.ZodOptional<z.ZodString>;
21654
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21655
+ key: z.ZodString;
21656
+ duration: z.ZodOptional<z.ZodString>;
21657
+ rateCards: z.ZodArray<z.ZodObject<{
21658
+ name: z.ZodString;
21659
+ description: z.ZodOptional<z.ZodString>;
21660
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21661
+ key: z.ZodString;
21662
+ feature: z.ZodOptional<z.ZodObject<{
21663
+ id: z.ZodString;
21664
+ }, z.core.$strip>>;
21665
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
21666
+ billingCadence: z.ZodOptional<z.ZodString>;
21667
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
21668
+ type: z.ZodLiteral<"free">;
21669
+ }, z.core.$strip>, z.ZodObject<{
21670
+ type: z.ZodLiteral<"flat">;
21671
+ amount: z.ZodString;
21672
+ }, z.core.$strip>, z.ZodObject<{
21673
+ type: z.ZodLiteral<"unit">;
21674
+ amount: z.ZodString;
21675
+ }, z.core.$strip>, z.ZodObject<{
21676
+ type: z.ZodLiteral<"graduated">;
21677
+ tiers: z.ZodArray<z.ZodObject<{
21678
+ upToAmount: z.ZodOptional<z.ZodString>;
21679
+ flatPrice: z.ZodOptional<z.ZodObject<{
21680
+ type: z.ZodLiteral<"flat">;
21681
+ amount: z.ZodString;
21682
+ }, z.core.$strip>>;
21683
+ unitPrice: z.ZodOptional<z.ZodObject<{
21684
+ type: z.ZodLiteral<"unit">;
21685
+ amount: z.ZodString;
21686
+ }, z.core.$strip>>;
21687
+ }, z.core.$strip>>;
21688
+ }, z.core.$strip>, z.ZodObject<{
21689
+ type: z.ZodLiteral<"volume">;
21690
+ tiers: z.ZodArray<z.ZodObject<{
21691
+ upToAmount: z.ZodOptional<z.ZodString>;
21692
+ flatPrice: z.ZodOptional<z.ZodObject<{
21693
+ type: z.ZodLiteral<"flat">;
21694
+ amount: z.ZodString;
21695
+ }, z.core.$strip>>;
21696
+ unitPrice: z.ZodOptional<z.ZodObject<{
21697
+ type: z.ZodLiteral<"unit">;
21698
+ amount: z.ZodString;
21699
+ }, z.core.$strip>>;
21700
+ }, z.core.$strip>>;
21701
+ }, z.core.$strip>], "type">;
21702
+ unitConfig: z.ZodOptional<z.ZodObject<{
21703
+ operation: z.ZodEnum<{
21704
+ divide: "divide";
21705
+ multiply: "multiply";
21706
+ }>;
21707
+ conversionFactor: z.ZodString;
21708
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
21709
+ ceiling: "ceiling";
21710
+ floor: "floor";
21711
+ half_up: "half_up";
21712
+ none: "none";
21713
+ }>>>;
21714
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
21715
+ displayUnit: z.ZodOptional<z.ZodString>;
21716
+ }, z.core.$strip>>;
21717
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
21718
+ commitments: z.ZodOptional<z.ZodObject<{
21719
+ minimumAmount: z.ZodOptional<z.ZodString>;
21720
+ maximumAmount: z.ZodOptional<z.ZodString>;
21721
+ }, z.core.$strip>>;
21722
+ discounts: z.ZodOptional<z.ZodObject<{
21723
+ percentage: z.ZodOptional<z.ZodNumber>;
21724
+ usage: z.ZodOptional<z.ZodString>;
21725
+ }, z.core.$strip>>;
21726
+ taxConfig: z.ZodOptional<z.ZodObject<{
21727
+ behavior: z.ZodOptional<z.ZodEnum<{
21728
+ exclusive: "exclusive";
21729
+ inclusive: "inclusive";
21730
+ }>>;
21731
+ code: z.ZodObject<{
21732
+ id: z.ZodString;
21733
+ }, z.core.$strip>;
21734
+ }, z.core.$strip>>;
21735
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
21736
+ type: z.ZodLiteral<"metered">;
21737
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
21738
+ limit: z.ZodOptional<z.ZodNumber>;
21739
+ usagePeriod: z.ZodOptional<z.ZodString>;
21740
+ }, z.core.$strip>, z.ZodObject<{
21741
+ type: z.ZodLiteral<"static">;
21742
+ config: z.ZodUnknown;
21743
+ }, z.core.$strip>, z.ZodObject<{
21744
+ type: z.ZodLiteral<"boolean">;
21745
+ }, z.core.$strip>], "type">>;
21746
+ }, z.core.$strip>>;
21747
+ }, z.core.$strip>>;
21748
+ }, z.core.$strip>>;
21224
21749
  billingAnchor: z.ZodOptional<z.ZodDate>;
21225
21750
  costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
21226
21751
  dynamic: "dynamic";
@@ -30931,27 +31456,6 @@ export declare const rateCardProrationConfigurationWire: z.ZodObject<{
30931
31456
  prorate_prices: "prorate_prices";
30932
31457
  }>;
30933
31458
  }, z.core.$strict>;
30934
- export declare const subscriptionCreateWire: z.ZodObject<{
30935
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
30936
- settlement_mode: z.ZodOptional<z.ZodEnum<{
30937
- credit_only: "credit_only";
30938
- credit_then_invoice: "credit_then_invoice";
30939
- }>>;
30940
- customer: z.ZodObject<{
30941
- id: z.ZodOptional<z.ZodString>;
30942
- key: z.ZodOptional<z.ZodString>;
30943
- }, z.core.$strict>;
30944
- plan: z.ZodObject<{
30945
- id: z.ZodOptional<z.ZodString>;
30946
- key: z.ZodOptional<z.ZodString>;
30947
- version: z.ZodOptional<z.ZodNumber>;
30948
- }, z.core.$strict>;
30949
- billing_anchor: z.ZodOptional<z.ZodString>;
30950
- cost_basis_mode: z.ZodOptional<z.ZodEnum<{
30951
- dynamic: "dynamic";
30952
- pinned: "pinned";
30953
- }>>;
30954
- }, z.core.$strict>;
30955
31459
  export declare const unitConfigWire: z.ZodObject<{
30956
31460
  operation: z.ZodEnum<{
30957
31461
  divide: "divide";
@@ -31180,24 +31684,24 @@ export declare const entitlementAccessQueryErrorWire: z.ZodObject<{
31180
31684
  customer: z.ZodOptional<z.ZodString>;
31181
31685
  }, z.core.$strict>;
31182
31686
  export declare const appCustomerDataWire: z.ZodObject<{
31183
- stripe: z.ZodOptional<z.ZodObject<{
31687
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
31184
31688
  customer_id: z.ZodOptional<z.ZodString>;
31185
31689
  default_payment_method_id: z.ZodOptional<z.ZodString>;
31186
31690
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
31187
- }, z.core.$strict>>;
31188
- external_invoicing: z.ZodOptional<z.ZodObject<{
31691
+ }, z.core.$strict>>>;
31692
+ external_invoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
31189
31693
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
31190
- }, z.core.$strict>>;
31694
+ }, z.core.$strict>>>;
31191
31695
  }, z.core.$strict>;
31192
31696
  export declare const upsertAppCustomerDataRequestWire: z.ZodObject<{
31193
- stripe: z.ZodOptional<z.ZodObject<{
31697
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
31194
31698
  customer_id: z.ZodOptional<z.ZodString>;
31195
31699
  default_payment_method_id: z.ZodOptional<z.ZodString>;
31196
31700
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
31197
- }, z.core.$strict>>;
31198
- external_invoicing: z.ZodOptional<z.ZodObject<{
31701
+ }, z.core.$strict>>>;
31702
+ external_invoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
31199
31703
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
31200
- }, z.core.$strict>>;
31704
+ }, z.core.$strict>>>;
31201
31705
  }, z.core.$strict>;
31202
31706
  export declare const creditAdjustmentWire: z.ZodObject<{
31203
31707
  name: z.ZodString;
@@ -32518,31 +33022,6 @@ export declare const subscriptionCancelWire: z.ZodObject<{
32518
33022
  next_billing_cycle: "next_billing_cycle";
32519
33023
  }>, z.ZodString]>>;
32520
33024
  }, z.core.$strict>;
32521
- export declare const subscriptionChangeWire: z.ZodObject<{
32522
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32523
- settlement_mode: z.ZodOptional<z.ZodEnum<{
32524
- credit_only: "credit_only";
32525
- credit_then_invoice: "credit_then_invoice";
32526
- }>>;
32527
- customer: z.ZodObject<{
32528
- id: z.ZodOptional<z.ZodString>;
32529
- key: z.ZodOptional<z.ZodString>;
32530
- }, z.core.$strict>;
32531
- plan: z.ZodObject<{
32532
- id: z.ZodOptional<z.ZodString>;
32533
- key: z.ZodOptional<z.ZodString>;
32534
- version: z.ZodOptional<z.ZodNumber>;
32535
- }, z.core.$strict>;
32536
- billing_anchor: z.ZodOptional<z.ZodString>;
32537
- cost_basis_mode: z.ZodOptional<z.ZodEnum<{
32538
- dynamic: "dynamic";
32539
- pinned: "pinned";
32540
- }>>;
32541
- timing: z.ZodUnion<readonly [z.ZodEnum<{
32542
- immediate: "immediate";
32543
- next_billing_cycle: "next_billing_cycle";
32544
- }>, z.ZodString]>;
32545
- }, z.core.$strict>;
32546
33025
  export declare const createSubscriptionAddonRequestWire: z.ZodObject<{
32547
33026
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32548
33027
  addon: z.ZodObject<{
@@ -32703,14 +33182,14 @@ export declare const customerDataWire: z.ZodObject<{
32703
33182
  id: z.ZodString;
32704
33183
  }, z.core.$strict>>;
32705
33184
  app_data: z.ZodOptional<z.ZodObject<{
32706
- stripe: z.ZodOptional<z.ZodObject<{
33185
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
32707
33186
  customer_id: z.ZodOptional<z.ZodString>;
32708
33187
  default_payment_method_id: z.ZodOptional<z.ZodString>;
32709
33188
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32710
- }, z.core.$strict>>;
32711
- external_invoicing: z.ZodOptional<z.ZodObject<{
33189
+ }, z.core.$strict>>>;
33190
+ external_invoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
32712
33191
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32713
- }, z.core.$strict>>;
33192
+ }, z.core.$strict>>>;
32714
33193
  }, z.core.$strict>>;
32715
33194
  }, z.core.$strict>;
32716
33195
  export declare const upsertCustomerBillingDataRequestWire: z.ZodObject<{
@@ -32718,14 +33197,14 @@ export declare const upsertCustomerBillingDataRequestWire: z.ZodObject<{
32718
33197
  id: z.ZodString;
32719
33198
  }, z.core.$strict>>;
32720
33199
  app_data: z.ZodOptional<z.ZodObject<{
32721
- stripe: z.ZodOptional<z.ZodObject<{
33200
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
32722
33201
  customer_id: z.ZodOptional<z.ZodString>;
32723
33202
  default_payment_method_id: z.ZodOptional<z.ZodString>;
32724
33203
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32725
- }, z.core.$strict>>;
32726
- external_invoicing: z.ZodOptional<z.ZodObject<{
33204
+ }, z.core.$strict>>>;
33205
+ external_invoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
32727
33206
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32728
- }, z.core.$strict>>;
33207
+ }, z.core.$strict>>>;
32729
33208
  }, z.core.$strict>>;
32730
33209
  }, z.core.$strict>;
32731
33210
  export declare const creditBalancesWire: z.ZodObject<{
@@ -36425,193 +36904,6 @@ export declare const subscriptionItemWire: z.ZodObject<{
36425
36904
  }, z.core.$strict>], "type">>;
36426
36905
  }, z.core.$strict>;
36427
36906
  }, z.core.$strict>;
36428
- export declare const subscriptionEditAddItemWire: z.ZodObject<{
36429
- type: z.ZodLiteral<"add_item">;
36430
- phase_key: z.ZodString;
36431
- rate_card: z.ZodObject<{
36432
- name: z.ZodString;
36433
- description: z.ZodOptional<z.ZodString>;
36434
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36435
- key: z.ZodString;
36436
- feature: z.ZodOptional<z.ZodObject<{
36437
- id: z.ZodString;
36438
- }, z.core.$strict>>;
36439
- currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
36440
- billing_cadence: z.ZodOptional<z.ZodString>;
36441
- price: z.ZodDiscriminatedUnion<[z.ZodObject<{
36442
- type: z.ZodLiteral<"free">;
36443
- }, z.core.$strict>, z.ZodObject<{
36444
- type: z.ZodLiteral<"flat">;
36445
- amount: z.ZodString;
36446
- }, z.core.$strict>, z.ZodObject<{
36447
- type: z.ZodLiteral<"unit">;
36448
- amount: z.ZodString;
36449
- }, z.core.$strict>, z.ZodObject<{
36450
- type: z.ZodLiteral<"graduated">;
36451
- tiers: z.ZodArray<z.ZodObject<{
36452
- up_to_amount: z.ZodOptional<z.ZodString>;
36453
- flat_price: z.ZodOptional<z.ZodObject<{
36454
- type: z.ZodLiteral<"flat">;
36455
- amount: z.ZodString;
36456
- }, z.core.$strict>>;
36457
- unit_price: z.ZodOptional<z.ZodObject<{
36458
- type: z.ZodLiteral<"unit">;
36459
- amount: z.ZodString;
36460
- }, z.core.$strict>>;
36461
- }, z.core.$strict>>;
36462
- }, z.core.$strict>, z.ZodObject<{
36463
- type: z.ZodLiteral<"volume">;
36464
- tiers: z.ZodArray<z.ZodObject<{
36465
- up_to_amount: z.ZodOptional<z.ZodString>;
36466
- flat_price: z.ZodOptional<z.ZodObject<{
36467
- type: z.ZodLiteral<"flat">;
36468
- amount: z.ZodString;
36469
- }, z.core.$strict>>;
36470
- unit_price: z.ZodOptional<z.ZodObject<{
36471
- type: z.ZodLiteral<"unit">;
36472
- amount: z.ZodString;
36473
- }, z.core.$strict>>;
36474
- }, z.core.$strict>>;
36475
- }, z.core.$strict>], "type">;
36476
- unit_config: z.ZodOptional<z.ZodObject<{
36477
- operation: z.ZodEnum<{
36478
- divide: "divide";
36479
- multiply: "multiply";
36480
- }>;
36481
- conversion_factor: z.ZodString;
36482
- rounding: z.ZodOptional<z.ZodEnum<{
36483
- ceiling: "ceiling";
36484
- floor: "floor";
36485
- half_up: "half_up";
36486
- none: "none";
36487
- }>>;
36488
- precision: z.ZodOptional<z.ZodNumber>;
36489
- display_unit: z.ZodOptional<z.ZodString>;
36490
- }, z.core.$strict>>;
36491
- payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
36492
- commitments: z.ZodOptional<z.ZodObject<{
36493
- minimum_amount: z.ZodOptional<z.ZodString>;
36494
- maximum_amount: z.ZodOptional<z.ZodString>;
36495
- }, z.core.$strict>>;
36496
- discounts: z.ZodOptional<z.ZodObject<{
36497
- percentage: z.ZodOptional<z.ZodNumber>;
36498
- usage: z.ZodOptional<z.ZodString>;
36499
- }, z.core.$strict>>;
36500
- tax_config: z.ZodOptional<z.ZodObject<{
36501
- behavior: z.ZodOptional<z.ZodEnum<{
36502
- exclusive: "exclusive";
36503
- inclusive: "inclusive";
36504
- }>>;
36505
- code: z.ZodObject<{
36506
- id: z.ZodString;
36507
- }, z.core.$strict>;
36508
- }, z.core.$strict>>;
36509
- entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
36510
- type: z.ZodLiteral<"metered">;
36511
- is_soft_limit: z.ZodOptional<z.ZodBoolean>;
36512
- limit: z.ZodOptional<z.ZodNumber>;
36513
- usage_period: z.ZodOptional<z.ZodString>;
36514
- }, z.core.$strict>, z.ZodObject<{
36515
- type: z.ZodLiteral<"static">;
36516
- config: z.ZodUnknown;
36517
- }, z.core.$strict>, z.ZodObject<{
36518
- type: z.ZodLiteral<"boolean">;
36519
- }, z.core.$strict>], "type">>;
36520
- }, z.core.$strict>;
36521
- }, z.core.$strict>;
36522
- export declare const subscriptionAddonRateCardWire: z.ZodObject<{
36523
- rate_card: z.ZodObject<{
36524
- name: z.ZodString;
36525
- description: z.ZodOptional<z.ZodString>;
36526
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36527
- key: z.ZodString;
36528
- feature: z.ZodOptional<z.ZodObject<{
36529
- id: z.ZodString;
36530
- }, z.core.$strict>>;
36531
- currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
36532
- billing_cadence: z.ZodOptional<z.ZodString>;
36533
- price: z.ZodDiscriminatedUnion<[z.ZodObject<{
36534
- type: z.ZodLiteral<"free">;
36535
- }, z.core.$strict>, z.ZodObject<{
36536
- type: z.ZodLiteral<"flat">;
36537
- amount: z.ZodString;
36538
- }, z.core.$strict>, z.ZodObject<{
36539
- type: z.ZodLiteral<"unit">;
36540
- amount: z.ZodString;
36541
- }, z.core.$strict>, z.ZodObject<{
36542
- type: z.ZodLiteral<"graduated">;
36543
- tiers: z.ZodArray<z.ZodObject<{
36544
- up_to_amount: z.ZodOptional<z.ZodString>;
36545
- flat_price: z.ZodOptional<z.ZodObject<{
36546
- type: z.ZodLiteral<"flat">;
36547
- amount: z.ZodString;
36548
- }, z.core.$strict>>;
36549
- unit_price: z.ZodOptional<z.ZodObject<{
36550
- type: z.ZodLiteral<"unit">;
36551
- amount: z.ZodString;
36552
- }, z.core.$strict>>;
36553
- }, z.core.$strict>>;
36554
- }, z.core.$strict>, z.ZodObject<{
36555
- type: z.ZodLiteral<"volume">;
36556
- tiers: z.ZodArray<z.ZodObject<{
36557
- up_to_amount: z.ZodOptional<z.ZodString>;
36558
- flat_price: z.ZodOptional<z.ZodObject<{
36559
- type: z.ZodLiteral<"flat">;
36560
- amount: z.ZodString;
36561
- }, z.core.$strict>>;
36562
- unit_price: z.ZodOptional<z.ZodObject<{
36563
- type: z.ZodLiteral<"unit">;
36564
- amount: z.ZodString;
36565
- }, z.core.$strict>>;
36566
- }, z.core.$strict>>;
36567
- }, z.core.$strict>], "type">;
36568
- unit_config: z.ZodOptional<z.ZodObject<{
36569
- operation: z.ZodEnum<{
36570
- divide: "divide";
36571
- multiply: "multiply";
36572
- }>;
36573
- conversion_factor: z.ZodString;
36574
- rounding: z.ZodOptional<z.ZodEnum<{
36575
- ceiling: "ceiling";
36576
- floor: "floor";
36577
- half_up: "half_up";
36578
- none: "none";
36579
- }>>;
36580
- precision: z.ZodOptional<z.ZodNumber>;
36581
- display_unit: z.ZodOptional<z.ZodString>;
36582
- }, z.core.$strict>>;
36583
- payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
36584
- commitments: z.ZodOptional<z.ZodObject<{
36585
- minimum_amount: z.ZodOptional<z.ZodString>;
36586
- maximum_amount: z.ZodOptional<z.ZodString>;
36587
- }, z.core.$strict>>;
36588
- discounts: z.ZodOptional<z.ZodObject<{
36589
- percentage: z.ZodOptional<z.ZodNumber>;
36590
- usage: z.ZodOptional<z.ZodString>;
36591
- }, z.core.$strict>>;
36592
- tax_config: z.ZodOptional<z.ZodObject<{
36593
- behavior: z.ZodOptional<z.ZodEnum<{
36594
- exclusive: "exclusive";
36595
- inclusive: "inclusive";
36596
- }>>;
36597
- code: z.ZodObject<{
36598
- id: z.ZodString;
36599
- }, z.core.$strict>;
36600
- }, z.core.$strict>>;
36601
- entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
36602
- type: z.ZodLiteral<"metered">;
36603
- is_soft_limit: z.ZodOptional<z.ZodBoolean>;
36604
- limit: z.ZodOptional<z.ZodNumber>;
36605
- usage_period: z.ZodOptional<z.ZodString>;
36606
- }, z.core.$strict>, z.ZodObject<{
36607
- type: z.ZodLiteral<"static">;
36608
- config: z.ZodUnknown;
36609
- }, z.core.$strict>, z.ZodObject<{
36610
- type: z.ZodLiteral<"boolean">;
36611
- }, z.core.$strict>], "type">>;
36612
- }, z.core.$strict>;
36613
- affected_subscription_item_ids: z.ZodArray<z.ZodString>;
36614
- }, z.core.$strict>;
36615
36907
  export declare const planPhaseWire: z.ZodObject<{
36616
36908
  name: z.ZodString;
36617
36909
  description: z.ZodOptional<z.ZodString>;
@@ -36709,29 +37001,216 @@ export declare const planPhaseWire: z.ZodObject<{
36709
37001
  }, z.core.$strict>], "type">>;
36710
37002
  }, z.core.$strict>>;
36711
37003
  }, z.core.$strict>;
36712
- export declare const addonWire: z.ZodObject<{
36713
- id: z.ZodString;
36714
- name: z.ZodString;
36715
- description: z.ZodOptional<z.ZodString>;
36716
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36717
- created_at: z.ZodString;
36718
- updated_at: z.ZodString;
36719
- deleted_at: z.ZodOptional<z.ZodString>;
36720
- key: z.ZodString;
36721
- version: z.ZodNumber;
36722
- instance_type: z.ZodEnum<{
36723
- multiple: "multiple";
36724
- single: "single";
36725
- }>;
36726
- currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
36727
- effective_from: z.ZodOptional<z.ZodString>;
36728
- effective_to: z.ZodOptional<z.ZodString>;
36729
- status: z.ZodEnum<{
36730
- active: "active";
36731
- archived: "archived";
36732
- draft: "draft";
36733
- }>;
36734
- rate_cards: z.ZodArray<z.ZodObject<{
37004
+ export declare const subscriptionEditAddItemWire: z.ZodObject<{
37005
+ type: z.ZodLiteral<"add_item">;
37006
+ phase_key: z.ZodString;
37007
+ rate_card: z.ZodObject<{
37008
+ name: z.ZodString;
37009
+ description: z.ZodOptional<z.ZodString>;
37010
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
37011
+ key: z.ZodString;
37012
+ feature: z.ZodOptional<z.ZodObject<{
37013
+ id: z.ZodString;
37014
+ }, z.core.$strict>>;
37015
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
37016
+ billing_cadence: z.ZodOptional<z.ZodString>;
37017
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
37018
+ type: z.ZodLiteral<"free">;
37019
+ }, z.core.$strict>, z.ZodObject<{
37020
+ type: z.ZodLiteral<"flat">;
37021
+ amount: z.ZodString;
37022
+ }, z.core.$strict>, z.ZodObject<{
37023
+ type: z.ZodLiteral<"unit">;
37024
+ amount: z.ZodString;
37025
+ }, z.core.$strict>, z.ZodObject<{
37026
+ type: z.ZodLiteral<"graduated">;
37027
+ tiers: z.ZodArray<z.ZodObject<{
37028
+ up_to_amount: z.ZodOptional<z.ZodString>;
37029
+ flat_price: z.ZodOptional<z.ZodObject<{
37030
+ type: z.ZodLiteral<"flat">;
37031
+ amount: z.ZodString;
37032
+ }, z.core.$strict>>;
37033
+ unit_price: z.ZodOptional<z.ZodObject<{
37034
+ type: z.ZodLiteral<"unit">;
37035
+ amount: z.ZodString;
37036
+ }, z.core.$strict>>;
37037
+ }, z.core.$strict>>;
37038
+ }, z.core.$strict>, z.ZodObject<{
37039
+ type: z.ZodLiteral<"volume">;
37040
+ tiers: z.ZodArray<z.ZodObject<{
37041
+ up_to_amount: z.ZodOptional<z.ZodString>;
37042
+ flat_price: z.ZodOptional<z.ZodObject<{
37043
+ type: z.ZodLiteral<"flat">;
37044
+ amount: z.ZodString;
37045
+ }, z.core.$strict>>;
37046
+ unit_price: z.ZodOptional<z.ZodObject<{
37047
+ type: z.ZodLiteral<"unit">;
37048
+ amount: z.ZodString;
37049
+ }, z.core.$strict>>;
37050
+ }, z.core.$strict>>;
37051
+ }, z.core.$strict>], "type">;
37052
+ unit_config: z.ZodOptional<z.ZodObject<{
37053
+ operation: z.ZodEnum<{
37054
+ divide: "divide";
37055
+ multiply: "multiply";
37056
+ }>;
37057
+ conversion_factor: z.ZodString;
37058
+ rounding: z.ZodOptional<z.ZodEnum<{
37059
+ ceiling: "ceiling";
37060
+ floor: "floor";
37061
+ half_up: "half_up";
37062
+ none: "none";
37063
+ }>>;
37064
+ precision: z.ZodOptional<z.ZodNumber>;
37065
+ display_unit: z.ZodOptional<z.ZodString>;
37066
+ }, z.core.$strict>>;
37067
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
37068
+ commitments: z.ZodOptional<z.ZodObject<{
37069
+ minimum_amount: z.ZodOptional<z.ZodString>;
37070
+ maximum_amount: z.ZodOptional<z.ZodString>;
37071
+ }, z.core.$strict>>;
37072
+ discounts: z.ZodOptional<z.ZodObject<{
37073
+ percentage: z.ZodOptional<z.ZodNumber>;
37074
+ usage: z.ZodOptional<z.ZodString>;
37075
+ }, z.core.$strict>>;
37076
+ tax_config: z.ZodOptional<z.ZodObject<{
37077
+ behavior: z.ZodOptional<z.ZodEnum<{
37078
+ exclusive: "exclusive";
37079
+ inclusive: "inclusive";
37080
+ }>>;
37081
+ code: z.ZodObject<{
37082
+ id: z.ZodString;
37083
+ }, z.core.$strict>;
37084
+ }, z.core.$strict>>;
37085
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
37086
+ type: z.ZodLiteral<"metered">;
37087
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
37088
+ limit: z.ZodOptional<z.ZodNumber>;
37089
+ usage_period: z.ZodOptional<z.ZodString>;
37090
+ }, z.core.$strict>, z.ZodObject<{
37091
+ type: z.ZodLiteral<"static">;
37092
+ config: z.ZodUnknown;
37093
+ }, z.core.$strict>, z.ZodObject<{
37094
+ type: z.ZodLiteral<"boolean">;
37095
+ }, z.core.$strict>], "type">>;
37096
+ }, z.core.$strict>;
37097
+ }, z.core.$strict>;
37098
+ export declare const subscriptionAddonRateCardWire: z.ZodObject<{
37099
+ rate_card: z.ZodObject<{
37100
+ name: z.ZodString;
37101
+ description: z.ZodOptional<z.ZodString>;
37102
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
37103
+ key: z.ZodString;
37104
+ feature: z.ZodOptional<z.ZodObject<{
37105
+ id: z.ZodString;
37106
+ }, z.core.$strict>>;
37107
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
37108
+ billing_cadence: z.ZodOptional<z.ZodString>;
37109
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
37110
+ type: z.ZodLiteral<"free">;
37111
+ }, z.core.$strict>, z.ZodObject<{
37112
+ type: z.ZodLiteral<"flat">;
37113
+ amount: z.ZodString;
37114
+ }, z.core.$strict>, z.ZodObject<{
37115
+ type: z.ZodLiteral<"unit">;
37116
+ amount: z.ZodString;
37117
+ }, z.core.$strict>, z.ZodObject<{
37118
+ type: z.ZodLiteral<"graduated">;
37119
+ tiers: z.ZodArray<z.ZodObject<{
37120
+ up_to_amount: z.ZodOptional<z.ZodString>;
37121
+ flat_price: z.ZodOptional<z.ZodObject<{
37122
+ type: z.ZodLiteral<"flat">;
37123
+ amount: z.ZodString;
37124
+ }, z.core.$strict>>;
37125
+ unit_price: z.ZodOptional<z.ZodObject<{
37126
+ type: z.ZodLiteral<"unit">;
37127
+ amount: z.ZodString;
37128
+ }, z.core.$strict>>;
37129
+ }, z.core.$strict>>;
37130
+ }, z.core.$strict>, z.ZodObject<{
37131
+ type: z.ZodLiteral<"volume">;
37132
+ tiers: z.ZodArray<z.ZodObject<{
37133
+ up_to_amount: z.ZodOptional<z.ZodString>;
37134
+ flat_price: z.ZodOptional<z.ZodObject<{
37135
+ type: z.ZodLiteral<"flat">;
37136
+ amount: z.ZodString;
37137
+ }, z.core.$strict>>;
37138
+ unit_price: z.ZodOptional<z.ZodObject<{
37139
+ type: z.ZodLiteral<"unit">;
37140
+ amount: z.ZodString;
37141
+ }, z.core.$strict>>;
37142
+ }, z.core.$strict>>;
37143
+ }, z.core.$strict>], "type">;
37144
+ unit_config: z.ZodOptional<z.ZodObject<{
37145
+ operation: z.ZodEnum<{
37146
+ divide: "divide";
37147
+ multiply: "multiply";
37148
+ }>;
37149
+ conversion_factor: z.ZodString;
37150
+ rounding: z.ZodOptional<z.ZodEnum<{
37151
+ ceiling: "ceiling";
37152
+ floor: "floor";
37153
+ half_up: "half_up";
37154
+ none: "none";
37155
+ }>>;
37156
+ precision: z.ZodOptional<z.ZodNumber>;
37157
+ display_unit: z.ZodOptional<z.ZodString>;
37158
+ }, z.core.$strict>>;
37159
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
37160
+ commitments: z.ZodOptional<z.ZodObject<{
37161
+ minimum_amount: z.ZodOptional<z.ZodString>;
37162
+ maximum_amount: z.ZodOptional<z.ZodString>;
37163
+ }, z.core.$strict>>;
37164
+ discounts: z.ZodOptional<z.ZodObject<{
37165
+ percentage: z.ZodOptional<z.ZodNumber>;
37166
+ usage: z.ZodOptional<z.ZodString>;
37167
+ }, z.core.$strict>>;
37168
+ tax_config: z.ZodOptional<z.ZodObject<{
37169
+ behavior: z.ZodOptional<z.ZodEnum<{
37170
+ exclusive: "exclusive";
37171
+ inclusive: "inclusive";
37172
+ }>>;
37173
+ code: z.ZodObject<{
37174
+ id: z.ZodString;
37175
+ }, z.core.$strict>;
37176
+ }, z.core.$strict>>;
37177
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
37178
+ type: z.ZodLiteral<"metered">;
37179
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
37180
+ limit: z.ZodOptional<z.ZodNumber>;
37181
+ usage_period: z.ZodOptional<z.ZodString>;
37182
+ }, z.core.$strict>, z.ZodObject<{
37183
+ type: z.ZodLiteral<"static">;
37184
+ config: z.ZodUnknown;
37185
+ }, z.core.$strict>, z.ZodObject<{
37186
+ type: z.ZodLiteral<"boolean">;
37187
+ }, z.core.$strict>], "type">>;
37188
+ }, z.core.$strict>;
37189
+ affected_subscription_item_ids: z.ZodArray<z.ZodString>;
37190
+ }, z.core.$strict>;
37191
+ export declare const addonWire: z.ZodObject<{
37192
+ id: z.ZodString;
37193
+ name: z.ZodString;
37194
+ description: z.ZodOptional<z.ZodString>;
37195
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
37196
+ created_at: z.ZodString;
37197
+ updated_at: z.ZodString;
37198
+ deleted_at: z.ZodOptional<z.ZodString>;
37199
+ key: z.ZodString;
37200
+ version: z.ZodNumber;
37201
+ instance_type: z.ZodEnum<{
37202
+ multiple: "multiple";
37203
+ single: "single";
37204
+ }>;
37205
+ currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
37206
+ effective_from: z.ZodOptional<z.ZodString>;
37207
+ effective_to: z.ZodOptional<z.ZodString>;
37208
+ status: z.ZodEnum<{
37209
+ active: "active";
37210
+ archived: "archived";
37211
+ draft: "draft";
37212
+ }>;
37213
+ rate_cards: z.ZodArray<z.ZodObject<{
36735
37214
  name: z.ZodString;
36736
37215
  description: z.ZodOptional<z.ZodString>;
36737
37216
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -38068,148 +38547,20 @@ export declare const subscriptionPhaseWire: z.ZodObject<{
38068
38547
  }, z.core.$strict>;
38069
38548
  }, z.core.$strict>>;
38070
38549
  }, z.core.$strict>;
38071
- export declare const subscriptionEditOperationWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
38072
- type: z.ZodLiteral<"add_item">;
38073
- phase_key: z.ZodString;
38074
- rate_card: z.ZodObject<{
38550
+ export declare const subscriptionCustomPlanWire: z.ZodObject<{
38551
+ name: z.ZodString;
38552
+ description: z.ZodOptional<z.ZodString>;
38553
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
38554
+ currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
38555
+ billing_cadence: z.ZodString;
38556
+ pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
38557
+ phases: z.ZodArray<z.ZodObject<{
38075
38558
  name: z.ZodString;
38076
38559
  description: z.ZodOptional<z.ZodString>;
38077
38560
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
38078
38561
  key: z.ZodString;
38079
- feature: z.ZodOptional<z.ZodObject<{
38080
- id: z.ZodString;
38081
- }, z.core.$strict>>;
38082
- currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
38083
- billing_cadence: z.ZodOptional<z.ZodString>;
38084
- price: z.ZodDiscriminatedUnion<[z.ZodObject<{
38085
- type: z.ZodLiteral<"free">;
38086
- }, z.core.$strict>, z.ZodObject<{
38087
- type: z.ZodLiteral<"flat">;
38088
- amount: z.ZodString;
38089
- }, z.core.$strict>, z.ZodObject<{
38090
- type: z.ZodLiteral<"unit">;
38091
- amount: z.ZodString;
38092
- }, z.core.$strict>, z.ZodObject<{
38093
- type: z.ZodLiteral<"graduated">;
38094
- tiers: z.ZodArray<z.ZodObject<{
38095
- up_to_amount: z.ZodOptional<z.ZodString>;
38096
- flat_price: z.ZodOptional<z.ZodObject<{
38097
- type: z.ZodLiteral<"flat">;
38098
- amount: z.ZodString;
38099
- }, z.core.$strict>>;
38100
- unit_price: z.ZodOptional<z.ZodObject<{
38101
- type: z.ZodLiteral<"unit">;
38102
- amount: z.ZodString;
38103
- }, z.core.$strict>>;
38104
- }, z.core.$strict>>;
38105
- }, z.core.$strict>, z.ZodObject<{
38106
- type: z.ZodLiteral<"volume">;
38107
- tiers: z.ZodArray<z.ZodObject<{
38108
- up_to_amount: z.ZodOptional<z.ZodString>;
38109
- flat_price: z.ZodOptional<z.ZodObject<{
38110
- type: z.ZodLiteral<"flat">;
38111
- amount: z.ZodString;
38112
- }, z.core.$strict>>;
38113
- unit_price: z.ZodOptional<z.ZodObject<{
38114
- type: z.ZodLiteral<"unit">;
38115
- amount: z.ZodString;
38116
- }, z.core.$strict>>;
38117
- }, z.core.$strict>>;
38118
- }, z.core.$strict>], "type">;
38119
- unit_config: z.ZodOptional<z.ZodObject<{
38120
- operation: z.ZodEnum<{
38121
- divide: "divide";
38122
- multiply: "multiply";
38123
- }>;
38124
- conversion_factor: z.ZodString;
38125
- rounding: z.ZodOptional<z.ZodEnum<{
38126
- ceiling: "ceiling";
38127
- floor: "floor";
38128
- half_up: "half_up";
38129
- none: "none";
38130
- }>>;
38131
- precision: z.ZodOptional<z.ZodNumber>;
38132
- display_unit: z.ZodOptional<z.ZodString>;
38133
- }, z.core.$strict>>;
38134
- payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
38135
- commitments: z.ZodOptional<z.ZodObject<{
38136
- minimum_amount: z.ZodOptional<z.ZodString>;
38137
- maximum_amount: z.ZodOptional<z.ZodString>;
38138
- }, z.core.$strict>>;
38139
- discounts: z.ZodOptional<z.ZodObject<{
38140
- percentage: z.ZodOptional<z.ZodNumber>;
38141
- usage: z.ZodOptional<z.ZodString>;
38142
- }, z.core.$strict>>;
38143
- tax_config: z.ZodOptional<z.ZodObject<{
38144
- behavior: z.ZodOptional<z.ZodEnum<{
38145
- exclusive: "exclusive";
38146
- inclusive: "inclusive";
38147
- }>>;
38148
- code: z.ZodObject<{
38149
- id: z.ZodString;
38150
- }, z.core.$strict>;
38151
- }, z.core.$strict>>;
38152
- entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
38153
- type: z.ZodLiteral<"metered">;
38154
- is_soft_limit: z.ZodOptional<z.ZodBoolean>;
38155
- limit: z.ZodOptional<z.ZodNumber>;
38156
- usage_period: z.ZodOptional<z.ZodString>;
38157
- }, z.core.$strict>, z.ZodObject<{
38158
- type: z.ZodLiteral<"static">;
38159
- config: z.ZodUnknown;
38160
- }, z.core.$strict>, z.ZodObject<{
38161
- type: z.ZodLiteral<"boolean">;
38162
- }, z.core.$strict>], "type">>;
38163
- }, z.core.$strict>;
38164
- }, z.core.$strict>, z.ZodObject<{
38165
- type: z.ZodLiteral<"remove_item">;
38166
- phase_key: z.ZodString;
38167
- item_key: z.ZodString;
38168
- }, z.core.$strict>, z.ZodObject<{
38169
- type: z.ZodLiteral<"add_phase">;
38170
- phase: z.ZodObject<{
38171
- key: z.ZodString;
38172
- name: z.ZodString;
38173
- description: z.ZodOptional<z.ZodString>;
38174
- start_after: z.ZodNullable<z.ZodString>;
38175
38562
  duration: z.ZodOptional<z.ZodString>;
38176
- }, z.core.$strict>;
38177
- }, z.core.$strict>, z.ZodObject<{
38178
- type: z.ZodLiteral<"remove_phase">;
38179
- phase_key: z.ZodString;
38180
- shift: z.ZodEnum<{
38181
- next: "next";
38182
- prev: "prev";
38183
- }>;
38184
- }, z.core.$strict>, z.ZodObject<{
38185
- type: z.ZodLiteral<"stretch_phase">;
38186
- phase_key: z.ZodString;
38187
- extend_by: z.ZodString;
38188
- }, z.core.$strict>, z.ZodObject<{
38189
- type: z.ZodLiteral<"unschedule_edit">;
38190
- }, z.core.$strict>], "type">;
38191
- export declare const subscriptionAddonWire: z.ZodObject<{
38192
- id: z.ZodString;
38193
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
38194
- created_at: z.ZodString;
38195
- updated_at: z.ZodString;
38196
- deleted_at: z.ZodOptional<z.ZodString>;
38197
- name: z.ZodString;
38198
- description: z.ZodOptional<z.ZodString>;
38199
- addon: z.ZodObject<{
38200
- id: z.ZodString;
38201
- }, z.core.$strict>;
38202
- quantity: z.ZodNumber;
38203
- quantity_at: z.ZodString;
38204
- active_from: z.ZodString;
38205
- active_to: z.ZodOptional<z.ZodString>;
38206
- timeline: z.ZodArray<z.ZodObject<{
38207
- active_from: z.ZodString;
38208
- active_to: z.ZodOptional<z.ZodString>;
38209
- quantity: z.ZodNumber;
38210
- }, z.core.$strict>>;
38211
- rate_cards: z.ZodArray<z.ZodObject<{
38212
- rate_card: z.ZodObject<{
38563
+ rate_cards: z.ZodArray<z.ZodObject<{
38213
38564
  name: z.ZodString;
38214
38565
  description: z.ZodOptional<z.ZodString>;
38215
38566
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -38298,8 +38649,7 @@ export declare const subscriptionAddonWire: z.ZodObject<{
38298
38649
  }, z.core.$strict>, z.ZodObject<{
38299
38650
  type: z.ZodLiteral<"boolean">;
38300
38651
  }, z.core.$strict>], "type">>;
38301
- }, z.core.$strict>;
38302
- affected_subscription_item_ids: z.ZodArray<z.ZodString>;
38652
+ }, z.core.$strict>>;
38303
38653
  }, z.core.$strict>>;
38304
38654
  }, z.core.$strict>;
38305
38655
  export declare const planWire: z.ZodObject<{
@@ -38640,6 +38990,240 @@ export declare const upsertPlanRequestWire: z.ZodObject<{
38640
38990
  }, z.core.$strict>>;
38641
38991
  }, z.core.$strict>>;
38642
38992
  }, z.core.$strict>;
38993
+ export declare const subscriptionEditOperationWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
38994
+ type: z.ZodLiteral<"add_item">;
38995
+ phase_key: z.ZodString;
38996
+ rate_card: z.ZodObject<{
38997
+ name: z.ZodString;
38998
+ description: z.ZodOptional<z.ZodString>;
38999
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
39000
+ key: z.ZodString;
39001
+ feature: z.ZodOptional<z.ZodObject<{
39002
+ id: z.ZodString;
39003
+ }, z.core.$strict>>;
39004
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
39005
+ billing_cadence: z.ZodOptional<z.ZodString>;
39006
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
39007
+ type: z.ZodLiteral<"free">;
39008
+ }, z.core.$strict>, z.ZodObject<{
39009
+ type: z.ZodLiteral<"flat">;
39010
+ amount: z.ZodString;
39011
+ }, z.core.$strict>, z.ZodObject<{
39012
+ type: z.ZodLiteral<"unit">;
39013
+ amount: z.ZodString;
39014
+ }, z.core.$strict>, z.ZodObject<{
39015
+ type: z.ZodLiteral<"graduated">;
39016
+ tiers: z.ZodArray<z.ZodObject<{
39017
+ up_to_amount: z.ZodOptional<z.ZodString>;
39018
+ flat_price: z.ZodOptional<z.ZodObject<{
39019
+ type: z.ZodLiteral<"flat">;
39020
+ amount: z.ZodString;
39021
+ }, z.core.$strict>>;
39022
+ unit_price: z.ZodOptional<z.ZodObject<{
39023
+ type: z.ZodLiteral<"unit">;
39024
+ amount: z.ZodString;
39025
+ }, z.core.$strict>>;
39026
+ }, z.core.$strict>>;
39027
+ }, z.core.$strict>, z.ZodObject<{
39028
+ type: z.ZodLiteral<"volume">;
39029
+ tiers: z.ZodArray<z.ZodObject<{
39030
+ up_to_amount: z.ZodOptional<z.ZodString>;
39031
+ flat_price: z.ZodOptional<z.ZodObject<{
39032
+ type: z.ZodLiteral<"flat">;
39033
+ amount: z.ZodString;
39034
+ }, z.core.$strict>>;
39035
+ unit_price: z.ZodOptional<z.ZodObject<{
39036
+ type: z.ZodLiteral<"unit">;
39037
+ amount: z.ZodString;
39038
+ }, z.core.$strict>>;
39039
+ }, z.core.$strict>>;
39040
+ }, z.core.$strict>], "type">;
39041
+ unit_config: z.ZodOptional<z.ZodObject<{
39042
+ operation: z.ZodEnum<{
39043
+ divide: "divide";
39044
+ multiply: "multiply";
39045
+ }>;
39046
+ conversion_factor: z.ZodString;
39047
+ rounding: z.ZodOptional<z.ZodEnum<{
39048
+ ceiling: "ceiling";
39049
+ floor: "floor";
39050
+ half_up: "half_up";
39051
+ none: "none";
39052
+ }>>;
39053
+ precision: z.ZodOptional<z.ZodNumber>;
39054
+ display_unit: z.ZodOptional<z.ZodString>;
39055
+ }, z.core.$strict>>;
39056
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
39057
+ commitments: z.ZodOptional<z.ZodObject<{
39058
+ minimum_amount: z.ZodOptional<z.ZodString>;
39059
+ maximum_amount: z.ZodOptional<z.ZodString>;
39060
+ }, z.core.$strict>>;
39061
+ discounts: z.ZodOptional<z.ZodObject<{
39062
+ percentage: z.ZodOptional<z.ZodNumber>;
39063
+ usage: z.ZodOptional<z.ZodString>;
39064
+ }, z.core.$strict>>;
39065
+ tax_config: z.ZodOptional<z.ZodObject<{
39066
+ behavior: z.ZodOptional<z.ZodEnum<{
39067
+ exclusive: "exclusive";
39068
+ inclusive: "inclusive";
39069
+ }>>;
39070
+ code: z.ZodObject<{
39071
+ id: z.ZodString;
39072
+ }, z.core.$strict>;
39073
+ }, z.core.$strict>>;
39074
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
39075
+ type: z.ZodLiteral<"metered">;
39076
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
39077
+ limit: z.ZodOptional<z.ZodNumber>;
39078
+ usage_period: z.ZodOptional<z.ZodString>;
39079
+ }, z.core.$strict>, z.ZodObject<{
39080
+ type: z.ZodLiteral<"static">;
39081
+ config: z.ZodUnknown;
39082
+ }, z.core.$strict>, z.ZodObject<{
39083
+ type: z.ZodLiteral<"boolean">;
39084
+ }, z.core.$strict>], "type">>;
39085
+ }, z.core.$strict>;
39086
+ }, z.core.$strict>, z.ZodObject<{
39087
+ type: z.ZodLiteral<"remove_item">;
39088
+ phase_key: z.ZodString;
39089
+ item_key: z.ZodString;
39090
+ }, z.core.$strict>, z.ZodObject<{
39091
+ type: z.ZodLiteral<"add_phase">;
39092
+ phase: z.ZodObject<{
39093
+ key: z.ZodString;
39094
+ name: z.ZodString;
39095
+ description: z.ZodOptional<z.ZodString>;
39096
+ start_after: z.ZodNullable<z.ZodString>;
39097
+ duration: z.ZodOptional<z.ZodString>;
39098
+ }, z.core.$strict>;
39099
+ }, z.core.$strict>, z.ZodObject<{
39100
+ type: z.ZodLiteral<"remove_phase">;
39101
+ phase_key: z.ZodString;
39102
+ shift: z.ZodEnum<{
39103
+ next: "next";
39104
+ prev: "prev";
39105
+ }>;
39106
+ }, z.core.$strict>, z.ZodObject<{
39107
+ type: z.ZodLiteral<"stretch_phase">;
39108
+ phase_key: z.ZodString;
39109
+ extend_by: z.ZodString;
39110
+ }, z.core.$strict>, z.ZodObject<{
39111
+ type: z.ZodLiteral<"unschedule_edit">;
39112
+ }, z.core.$strict>], "type">;
39113
+ export declare const subscriptionAddonWire: z.ZodObject<{
39114
+ id: z.ZodString;
39115
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
39116
+ created_at: z.ZodString;
39117
+ updated_at: z.ZodString;
39118
+ deleted_at: z.ZodOptional<z.ZodString>;
39119
+ name: z.ZodString;
39120
+ description: z.ZodOptional<z.ZodString>;
39121
+ addon: z.ZodObject<{
39122
+ id: z.ZodString;
39123
+ }, z.core.$strict>;
39124
+ quantity: z.ZodNumber;
39125
+ quantity_at: z.ZodString;
39126
+ active_from: z.ZodString;
39127
+ active_to: z.ZodOptional<z.ZodString>;
39128
+ timeline: z.ZodArray<z.ZodObject<{
39129
+ active_from: z.ZodString;
39130
+ active_to: z.ZodOptional<z.ZodString>;
39131
+ quantity: z.ZodNumber;
39132
+ }, z.core.$strict>>;
39133
+ rate_cards: z.ZodArray<z.ZodObject<{
39134
+ rate_card: z.ZodObject<{
39135
+ name: z.ZodString;
39136
+ description: z.ZodOptional<z.ZodString>;
39137
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
39138
+ key: z.ZodString;
39139
+ feature: z.ZodOptional<z.ZodObject<{
39140
+ id: z.ZodString;
39141
+ }, z.core.$strict>>;
39142
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
39143
+ billing_cadence: z.ZodOptional<z.ZodString>;
39144
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
39145
+ type: z.ZodLiteral<"free">;
39146
+ }, z.core.$strict>, z.ZodObject<{
39147
+ type: z.ZodLiteral<"flat">;
39148
+ amount: z.ZodString;
39149
+ }, z.core.$strict>, z.ZodObject<{
39150
+ type: z.ZodLiteral<"unit">;
39151
+ amount: z.ZodString;
39152
+ }, z.core.$strict>, z.ZodObject<{
39153
+ type: z.ZodLiteral<"graduated">;
39154
+ tiers: z.ZodArray<z.ZodObject<{
39155
+ up_to_amount: z.ZodOptional<z.ZodString>;
39156
+ flat_price: z.ZodOptional<z.ZodObject<{
39157
+ type: z.ZodLiteral<"flat">;
39158
+ amount: z.ZodString;
39159
+ }, z.core.$strict>>;
39160
+ unit_price: z.ZodOptional<z.ZodObject<{
39161
+ type: z.ZodLiteral<"unit">;
39162
+ amount: z.ZodString;
39163
+ }, z.core.$strict>>;
39164
+ }, z.core.$strict>>;
39165
+ }, z.core.$strict>, z.ZodObject<{
39166
+ type: z.ZodLiteral<"volume">;
39167
+ tiers: z.ZodArray<z.ZodObject<{
39168
+ up_to_amount: z.ZodOptional<z.ZodString>;
39169
+ flat_price: z.ZodOptional<z.ZodObject<{
39170
+ type: z.ZodLiteral<"flat">;
39171
+ amount: z.ZodString;
39172
+ }, z.core.$strict>>;
39173
+ unit_price: z.ZodOptional<z.ZodObject<{
39174
+ type: z.ZodLiteral<"unit">;
39175
+ amount: z.ZodString;
39176
+ }, z.core.$strict>>;
39177
+ }, z.core.$strict>>;
39178
+ }, z.core.$strict>], "type">;
39179
+ unit_config: z.ZodOptional<z.ZodObject<{
39180
+ operation: z.ZodEnum<{
39181
+ divide: "divide";
39182
+ multiply: "multiply";
39183
+ }>;
39184
+ conversion_factor: z.ZodString;
39185
+ rounding: z.ZodOptional<z.ZodEnum<{
39186
+ ceiling: "ceiling";
39187
+ floor: "floor";
39188
+ half_up: "half_up";
39189
+ none: "none";
39190
+ }>>;
39191
+ precision: z.ZodOptional<z.ZodNumber>;
39192
+ display_unit: z.ZodOptional<z.ZodString>;
39193
+ }, z.core.$strict>>;
39194
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
39195
+ commitments: z.ZodOptional<z.ZodObject<{
39196
+ minimum_amount: z.ZodOptional<z.ZodString>;
39197
+ maximum_amount: z.ZodOptional<z.ZodString>;
39198
+ }, z.core.$strict>>;
39199
+ discounts: z.ZodOptional<z.ZodObject<{
39200
+ percentage: z.ZodOptional<z.ZodNumber>;
39201
+ usage: z.ZodOptional<z.ZodString>;
39202
+ }, z.core.$strict>>;
39203
+ tax_config: z.ZodOptional<z.ZodObject<{
39204
+ behavior: z.ZodOptional<z.ZodEnum<{
39205
+ exclusive: "exclusive";
39206
+ inclusive: "inclusive";
39207
+ }>>;
39208
+ code: z.ZodObject<{
39209
+ id: z.ZodString;
39210
+ }, z.core.$strict>;
39211
+ }, z.core.$strict>>;
39212
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
39213
+ type: z.ZodLiteral<"metered">;
39214
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
39215
+ limit: z.ZodOptional<z.ZodNumber>;
39216
+ usage_period: z.ZodOptional<z.ZodString>;
39217
+ }, z.core.$strict>, z.ZodObject<{
39218
+ type: z.ZodLiteral<"static">;
39219
+ config: z.ZodUnknown;
39220
+ }, z.core.$strict>, z.ZodObject<{
39221
+ type: z.ZodLiteral<"boolean">;
39222
+ }, z.core.$strict>], "type">>;
39223
+ }, z.core.$strict>;
39224
+ affected_subscription_item_ids: z.ZodArray<z.ZodString>;
39225
+ }, z.core.$strict>>;
39226
+ }, z.core.$strict>;
38643
39227
  export declare const addonPagePaginatedResponseWire: z.ZodObject<{
38644
39228
  data: z.ZodArray<z.ZodObject<{
38645
39229
  id: z.ZodString;
@@ -39297,6 +39881,400 @@ export declare const subscriptionWire: z.ZodObject<{
39297
39881
  }, z.core.$strict>>;
39298
39882
  }, z.core.$strict>>;
39299
39883
  }, z.core.$strict>;
39884
+ export declare const subscriptionCreateWire: z.ZodObject<{
39885
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
39886
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
39887
+ credit_only: "credit_only";
39888
+ credit_then_invoice: "credit_then_invoice";
39889
+ }>>;
39890
+ customer: z.ZodObject<{
39891
+ id: z.ZodOptional<z.ZodString>;
39892
+ key: z.ZodOptional<z.ZodString>;
39893
+ }, z.core.$strict>;
39894
+ plan: z.ZodOptional<z.ZodObject<{
39895
+ id: z.ZodOptional<z.ZodString>;
39896
+ key: z.ZodOptional<z.ZodString>;
39897
+ version: z.ZodOptional<z.ZodNumber>;
39898
+ }, z.core.$strict>>;
39899
+ custom_plan: z.ZodOptional<z.ZodObject<{
39900
+ name: z.ZodString;
39901
+ description: z.ZodOptional<z.ZodString>;
39902
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
39903
+ currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
39904
+ billing_cadence: z.ZodString;
39905
+ pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
39906
+ phases: z.ZodArray<z.ZodObject<{
39907
+ name: z.ZodString;
39908
+ description: z.ZodOptional<z.ZodString>;
39909
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
39910
+ key: z.ZodString;
39911
+ duration: z.ZodOptional<z.ZodString>;
39912
+ rate_cards: z.ZodArray<z.ZodObject<{
39913
+ name: z.ZodString;
39914
+ description: z.ZodOptional<z.ZodString>;
39915
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
39916
+ key: z.ZodString;
39917
+ feature: z.ZodOptional<z.ZodObject<{
39918
+ id: z.ZodString;
39919
+ }, z.core.$strict>>;
39920
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
39921
+ billing_cadence: z.ZodOptional<z.ZodString>;
39922
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
39923
+ type: z.ZodLiteral<"free">;
39924
+ }, z.core.$strict>, z.ZodObject<{
39925
+ type: z.ZodLiteral<"flat">;
39926
+ amount: z.ZodString;
39927
+ }, z.core.$strict>, z.ZodObject<{
39928
+ type: z.ZodLiteral<"unit">;
39929
+ amount: z.ZodString;
39930
+ }, z.core.$strict>, z.ZodObject<{
39931
+ type: z.ZodLiteral<"graduated">;
39932
+ tiers: z.ZodArray<z.ZodObject<{
39933
+ up_to_amount: z.ZodOptional<z.ZodString>;
39934
+ flat_price: z.ZodOptional<z.ZodObject<{
39935
+ type: z.ZodLiteral<"flat">;
39936
+ amount: z.ZodString;
39937
+ }, z.core.$strict>>;
39938
+ unit_price: z.ZodOptional<z.ZodObject<{
39939
+ type: z.ZodLiteral<"unit">;
39940
+ amount: z.ZodString;
39941
+ }, z.core.$strict>>;
39942
+ }, z.core.$strict>>;
39943
+ }, z.core.$strict>, z.ZodObject<{
39944
+ type: z.ZodLiteral<"volume">;
39945
+ tiers: z.ZodArray<z.ZodObject<{
39946
+ up_to_amount: z.ZodOptional<z.ZodString>;
39947
+ flat_price: z.ZodOptional<z.ZodObject<{
39948
+ type: z.ZodLiteral<"flat">;
39949
+ amount: z.ZodString;
39950
+ }, z.core.$strict>>;
39951
+ unit_price: z.ZodOptional<z.ZodObject<{
39952
+ type: z.ZodLiteral<"unit">;
39953
+ amount: z.ZodString;
39954
+ }, z.core.$strict>>;
39955
+ }, z.core.$strict>>;
39956
+ }, z.core.$strict>], "type">;
39957
+ unit_config: z.ZodOptional<z.ZodObject<{
39958
+ operation: z.ZodEnum<{
39959
+ divide: "divide";
39960
+ multiply: "multiply";
39961
+ }>;
39962
+ conversion_factor: z.ZodString;
39963
+ rounding: z.ZodOptional<z.ZodEnum<{
39964
+ ceiling: "ceiling";
39965
+ floor: "floor";
39966
+ half_up: "half_up";
39967
+ none: "none";
39968
+ }>>;
39969
+ precision: z.ZodOptional<z.ZodNumber>;
39970
+ display_unit: z.ZodOptional<z.ZodString>;
39971
+ }, z.core.$strict>>;
39972
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
39973
+ commitments: z.ZodOptional<z.ZodObject<{
39974
+ minimum_amount: z.ZodOptional<z.ZodString>;
39975
+ maximum_amount: z.ZodOptional<z.ZodString>;
39976
+ }, z.core.$strict>>;
39977
+ discounts: z.ZodOptional<z.ZodObject<{
39978
+ percentage: z.ZodOptional<z.ZodNumber>;
39979
+ usage: z.ZodOptional<z.ZodString>;
39980
+ }, z.core.$strict>>;
39981
+ tax_config: z.ZodOptional<z.ZodObject<{
39982
+ behavior: z.ZodOptional<z.ZodEnum<{
39983
+ exclusive: "exclusive";
39984
+ inclusive: "inclusive";
39985
+ }>>;
39986
+ code: z.ZodObject<{
39987
+ id: z.ZodString;
39988
+ }, z.core.$strict>;
39989
+ }, z.core.$strict>>;
39990
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
39991
+ type: z.ZodLiteral<"metered">;
39992
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
39993
+ limit: z.ZodOptional<z.ZodNumber>;
39994
+ usage_period: z.ZodOptional<z.ZodString>;
39995
+ }, z.core.$strict>, z.ZodObject<{
39996
+ type: z.ZodLiteral<"static">;
39997
+ config: z.ZodUnknown;
39998
+ }, z.core.$strict>, z.ZodObject<{
39999
+ type: z.ZodLiteral<"boolean">;
40000
+ }, z.core.$strict>], "type">>;
40001
+ }, z.core.$strict>>;
40002
+ }, z.core.$strict>>;
40003
+ }, z.core.$strict>>;
40004
+ billing_anchor: z.ZodOptional<z.ZodString>;
40005
+ cost_basis_mode: z.ZodOptional<z.ZodEnum<{
40006
+ dynamic: "dynamic";
40007
+ pinned: "pinned";
40008
+ }>>;
40009
+ }, z.core.$strict>;
40010
+ export declare const subscriptionChangeWire: z.ZodObject<{
40011
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
40012
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
40013
+ credit_only: "credit_only";
40014
+ credit_then_invoice: "credit_then_invoice";
40015
+ }>>;
40016
+ customer: z.ZodObject<{
40017
+ id: z.ZodOptional<z.ZodString>;
40018
+ key: z.ZodOptional<z.ZodString>;
40019
+ }, z.core.$strict>;
40020
+ plan: z.ZodOptional<z.ZodObject<{
40021
+ id: z.ZodOptional<z.ZodString>;
40022
+ key: z.ZodOptional<z.ZodString>;
40023
+ version: z.ZodOptional<z.ZodNumber>;
40024
+ }, z.core.$strict>>;
40025
+ custom_plan: z.ZodOptional<z.ZodObject<{
40026
+ name: z.ZodString;
40027
+ description: z.ZodOptional<z.ZodString>;
40028
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
40029
+ currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
40030
+ billing_cadence: z.ZodString;
40031
+ pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
40032
+ phases: z.ZodArray<z.ZodObject<{
40033
+ name: z.ZodString;
40034
+ description: z.ZodOptional<z.ZodString>;
40035
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
40036
+ key: z.ZodString;
40037
+ duration: z.ZodOptional<z.ZodString>;
40038
+ rate_cards: z.ZodArray<z.ZodObject<{
40039
+ name: z.ZodString;
40040
+ description: z.ZodOptional<z.ZodString>;
40041
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
40042
+ key: z.ZodString;
40043
+ feature: z.ZodOptional<z.ZodObject<{
40044
+ id: z.ZodString;
40045
+ }, z.core.$strict>>;
40046
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
40047
+ billing_cadence: z.ZodOptional<z.ZodString>;
40048
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
40049
+ type: z.ZodLiteral<"free">;
40050
+ }, z.core.$strict>, z.ZodObject<{
40051
+ type: z.ZodLiteral<"flat">;
40052
+ amount: z.ZodString;
40053
+ }, z.core.$strict>, z.ZodObject<{
40054
+ type: z.ZodLiteral<"unit">;
40055
+ amount: z.ZodString;
40056
+ }, z.core.$strict>, z.ZodObject<{
40057
+ type: z.ZodLiteral<"graduated">;
40058
+ tiers: z.ZodArray<z.ZodObject<{
40059
+ up_to_amount: z.ZodOptional<z.ZodString>;
40060
+ flat_price: z.ZodOptional<z.ZodObject<{
40061
+ type: z.ZodLiteral<"flat">;
40062
+ amount: z.ZodString;
40063
+ }, z.core.$strict>>;
40064
+ unit_price: z.ZodOptional<z.ZodObject<{
40065
+ type: z.ZodLiteral<"unit">;
40066
+ amount: z.ZodString;
40067
+ }, z.core.$strict>>;
40068
+ }, z.core.$strict>>;
40069
+ }, z.core.$strict>, z.ZodObject<{
40070
+ type: z.ZodLiteral<"volume">;
40071
+ tiers: z.ZodArray<z.ZodObject<{
40072
+ up_to_amount: z.ZodOptional<z.ZodString>;
40073
+ flat_price: z.ZodOptional<z.ZodObject<{
40074
+ type: z.ZodLiteral<"flat">;
40075
+ amount: z.ZodString;
40076
+ }, z.core.$strict>>;
40077
+ unit_price: z.ZodOptional<z.ZodObject<{
40078
+ type: z.ZodLiteral<"unit">;
40079
+ amount: z.ZodString;
40080
+ }, z.core.$strict>>;
40081
+ }, z.core.$strict>>;
40082
+ }, z.core.$strict>], "type">;
40083
+ unit_config: z.ZodOptional<z.ZodObject<{
40084
+ operation: z.ZodEnum<{
40085
+ divide: "divide";
40086
+ multiply: "multiply";
40087
+ }>;
40088
+ conversion_factor: z.ZodString;
40089
+ rounding: z.ZodOptional<z.ZodEnum<{
40090
+ ceiling: "ceiling";
40091
+ floor: "floor";
40092
+ half_up: "half_up";
40093
+ none: "none";
40094
+ }>>;
40095
+ precision: z.ZodOptional<z.ZodNumber>;
40096
+ display_unit: z.ZodOptional<z.ZodString>;
40097
+ }, z.core.$strict>>;
40098
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
40099
+ commitments: z.ZodOptional<z.ZodObject<{
40100
+ minimum_amount: z.ZodOptional<z.ZodString>;
40101
+ maximum_amount: z.ZodOptional<z.ZodString>;
40102
+ }, z.core.$strict>>;
40103
+ discounts: z.ZodOptional<z.ZodObject<{
40104
+ percentage: z.ZodOptional<z.ZodNumber>;
40105
+ usage: z.ZodOptional<z.ZodString>;
40106
+ }, z.core.$strict>>;
40107
+ tax_config: z.ZodOptional<z.ZodObject<{
40108
+ behavior: z.ZodOptional<z.ZodEnum<{
40109
+ exclusive: "exclusive";
40110
+ inclusive: "inclusive";
40111
+ }>>;
40112
+ code: z.ZodObject<{
40113
+ id: z.ZodString;
40114
+ }, z.core.$strict>;
40115
+ }, z.core.$strict>>;
40116
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
40117
+ type: z.ZodLiteral<"metered">;
40118
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
40119
+ limit: z.ZodOptional<z.ZodNumber>;
40120
+ usage_period: z.ZodOptional<z.ZodString>;
40121
+ }, z.core.$strict>, z.ZodObject<{
40122
+ type: z.ZodLiteral<"static">;
40123
+ config: z.ZodUnknown;
40124
+ }, z.core.$strict>, z.ZodObject<{
40125
+ type: z.ZodLiteral<"boolean">;
40126
+ }, z.core.$strict>], "type">>;
40127
+ }, z.core.$strict>>;
40128
+ }, z.core.$strict>>;
40129
+ }, z.core.$strict>>;
40130
+ billing_anchor: z.ZodOptional<z.ZodString>;
40131
+ cost_basis_mode: z.ZodOptional<z.ZodEnum<{
40132
+ dynamic: "dynamic";
40133
+ pinned: "pinned";
40134
+ }>>;
40135
+ timing: z.ZodUnion<readonly [z.ZodEnum<{
40136
+ immediate: "immediate";
40137
+ next_billing_cycle: "next_billing_cycle";
40138
+ }>, z.ZodString]>;
40139
+ }, z.core.$strict>;
40140
+ export declare const planPagePaginatedResponseWire: z.ZodObject<{
40141
+ data: z.ZodArray<z.ZodObject<{
40142
+ id: z.ZodString;
40143
+ name: z.ZodString;
40144
+ description: z.ZodOptional<z.ZodString>;
40145
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
40146
+ created_at: z.ZodString;
40147
+ updated_at: z.ZodString;
40148
+ deleted_at: z.ZodOptional<z.ZodString>;
40149
+ key: z.ZodString;
40150
+ version: z.ZodNumber;
40151
+ currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
40152
+ billing_cadence: z.ZodString;
40153
+ pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
40154
+ effective_from: z.ZodOptional<z.ZodString>;
40155
+ effective_to: z.ZodOptional<z.ZodString>;
40156
+ status: z.ZodEnum<{
40157
+ active: "active";
40158
+ archived: "archived";
40159
+ draft: "draft";
40160
+ scheduled: "scheduled";
40161
+ }>;
40162
+ phases: z.ZodArray<z.ZodObject<{
40163
+ name: z.ZodString;
40164
+ description: z.ZodOptional<z.ZodString>;
40165
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
40166
+ key: z.ZodString;
40167
+ duration: z.ZodOptional<z.ZodString>;
40168
+ rate_cards: z.ZodArray<z.ZodObject<{
40169
+ name: z.ZodString;
40170
+ description: z.ZodOptional<z.ZodString>;
40171
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
40172
+ key: z.ZodString;
40173
+ feature: z.ZodOptional<z.ZodObject<{
40174
+ id: z.ZodString;
40175
+ }, z.core.$strict>>;
40176
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
40177
+ billing_cadence: z.ZodOptional<z.ZodString>;
40178
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
40179
+ type: z.ZodLiteral<"free">;
40180
+ }, z.core.$strict>, z.ZodObject<{
40181
+ type: z.ZodLiteral<"flat">;
40182
+ amount: z.ZodString;
40183
+ }, z.core.$strict>, z.ZodObject<{
40184
+ type: z.ZodLiteral<"unit">;
40185
+ amount: z.ZodString;
40186
+ }, z.core.$strict>, z.ZodObject<{
40187
+ type: z.ZodLiteral<"graduated">;
40188
+ tiers: z.ZodArray<z.ZodObject<{
40189
+ up_to_amount: z.ZodOptional<z.ZodString>;
40190
+ flat_price: z.ZodOptional<z.ZodObject<{
40191
+ type: z.ZodLiteral<"flat">;
40192
+ amount: z.ZodString;
40193
+ }, z.core.$strict>>;
40194
+ unit_price: z.ZodOptional<z.ZodObject<{
40195
+ type: z.ZodLiteral<"unit">;
40196
+ amount: z.ZodString;
40197
+ }, z.core.$strict>>;
40198
+ }, z.core.$strict>>;
40199
+ }, z.core.$strict>, z.ZodObject<{
40200
+ type: z.ZodLiteral<"volume">;
40201
+ tiers: z.ZodArray<z.ZodObject<{
40202
+ up_to_amount: z.ZodOptional<z.ZodString>;
40203
+ flat_price: z.ZodOptional<z.ZodObject<{
40204
+ type: z.ZodLiteral<"flat">;
40205
+ amount: z.ZodString;
40206
+ }, z.core.$strict>>;
40207
+ unit_price: z.ZodOptional<z.ZodObject<{
40208
+ type: z.ZodLiteral<"unit">;
40209
+ amount: z.ZodString;
40210
+ }, z.core.$strict>>;
40211
+ }, z.core.$strict>>;
40212
+ }, z.core.$strict>], "type">;
40213
+ unit_config: z.ZodOptional<z.ZodObject<{
40214
+ operation: z.ZodEnum<{
40215
+ divide: "divide";
40216
+ multiply: "multiply";
40217
+ }>;
40218
+ conversion_factor: z.ZodString;
40219
+ rounding: z.ZodOptional<z.ZodEnum<{
40220
+ ceiling: "ceiling";
40221
+ floor: "floor";
40222
+ half_up: "half_up";
40223
+ none: "none";
40224
+ }>>;
40225
+ precision: z.ZodOptional<z.ZodNumber>;
40226
+ display_unit: z.ZodOptional<z.ZodString>;
40227
+ }, z.core.$strict>>;
40228
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
40229
+ commitments: z.ZodOptional<z.ZodObject<{
40230
+ minimum_amount: z.ZodOptional<z.ZodString>;
40231
+ maximum_amount: z.ZodOptional<z.ZodString>;
40232
+ }, z.core.$strict>>;
40233
+ discounts: z.ZodOptional<z.ZodObject<{
40234
+ percentage: z.ZodOptional<z.ZodNumber>;
40235
+ usage: z.ZodOptional<z.ZodString>;
40236
+ }, z.core.$strict>>;
40237
+ tax_config: z.ZodOptional<z.ZodObject<{
40238
+ behavior: z.ZodOptional<z.ZodEnum<{
40239
+ exclusive: "exclusive";
40240
+ inclusive: "inclusive";
40241
+ }>>;
40242
+ code: z.ZodObject<{
40243
+ id: z.ZodString;
40244
+ }, z.core.$strict>;
40245
+ }, z.core.$strict>>;
40246
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
40247
+ type: z.ZodLiteral<"metered">;
40248
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
40249
+ limit: z.ZodOptional<z.ZodNumber>;
40250
+ usage_period: z.ZodOptional<z.ZodString>;
40251
+ }, z.core.$strict>, z.ZodObject<{
40252
+ type: z.ZodLiteral<"static">;
40253
+ config: z.ZodUnknown;
40254
+ }, z.core.$strict>, z.ZodObject<{
40255
+ type: z.ZodLiteral<"boolean">;
40256
+ }, z.core.$strict>], "type">>;
40257
+ }, z.core.$strict>>;
40258
+ }, z.core.$strict>>;
40259
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
40260
+ credit_only: "credit_only";
40261
+ credit_then_invoice: "credit_then_invoice";
40262
+ }>>;
40263
+ validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
40264
+ code: z.ZodString;
40265
+ message: z.ZodString;
40266
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
40267
+ field: z.ZodString;
40268
+ }, z.core.$strict>>>;
40269
+ }, z.core.$strict>>;
40270
+ meta: z.ZodObject<{
40271
+ page: z.ZodObject<{
40272
+ number: z.ZodNumber;
40273
+ size: z.ZodNumber;
40274
+ total: z.ZodNumber;
40275
+ }, z.core.$strict>;
40276
+ }, z.core.$strict>;
40277
+ }, z.core.$strict>;
39300
40278
  export declare const subscriptionEditWire: z.ZodObject<{
39301
40279
  customizations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
39302
40280
  type: z.ZodLiteral<"add_item">;
@@ -39534,147 +40512,9 @@ export declare const subscriptionAddonPagePaginatedResponseWire: z.ZodObject<{
39534
40512
  }, z.core.$strict>, z.ZodObject<{
39535
40513
  type: z.ZodLiteral<"boolean">;
39536
40514
  }, z.core.$strict>], "type">>;
39537
- }, z.core.$strict>;
39538
- affected_subscription_item_ids: z.ZodArray<z.ZodString>;
39539
- }, z.core.$strict>>;
39540
- }, z.core.$strict>>;
39541
- meta: z.ZodObject<{
39542
- page: z.ZodObject<{
39543
- number: z.ZodNumber;
39544
- size: z.ZodNumber;
39545
- total: z.ZodNumber;
39546
- }, z.core.$strict>;
39547
- }, z.core.$strict>;
39548
- }, z.core.$strict>;
39549
- export declare const planPagePaginatedResponseWire: z.ZodObject<{
39550
- data: z.ZodArray<z.ZodObject<{
39551
- id: z.ZodString;
39552
- name: z.ZodString;
39553
- description: z.ZodOptional<z.ZodString>;
39554
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
39555
- created_at: z.ZodString;
39556
- updated_at: z.ZodString;
39557
- deleted_at: z.ZodOptional<z.ZodString>;
39558
- key: z.ZodString;
39559
- version: z.ZodNumber;
39560
- currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
39561
- billing_cadence: z.ZodString;
39562
- pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
39563
- effective_from: z.ZodOptional<z.ZodString>;
39564
- effective_to: z.ZodOptional<z.ZodString>;
39565
- status: z.ZodEnum<{
39566
- active: "active";
39567
- archived: "archived";
39568
- draft: "draft";
39569
- scheduled: "scheduled";
39570
- }>;
39571
- phases: z.ZodArray<z.ZodObject<{
39572
- name: z.ZodString;
39573
- description: z.ZodOptional<z.ZodString>;
39574
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
39575
- key: z.ZodString;
39576
- duration: z.ZodOptional<z.ZodString>;
39577
- rate_cards: z.ZodArray<z.ZodObject<{
39578
- name: z.ZodString;
39579
- description: z.ZodOptional<z.ZodString>;
39580
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
39581
- key: z.ZodString;
39582
- feature: z.ZodOptional<z.ZodObject<{
39583
- id: z.ZodString;
39584
- }, z.core.$strict>>;
39585
- currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
39586
- billing_cadence: z.ZodOptional<z.ZodString>;
39587
- price: z.ZodDiscriminatedUnion<[z.ZodObject<{
39588
- type: z.ZodLiteral<"free">;
39589
- }, z.core.$strict>, z.ZodObject<{
39590
- type: z.ZodLiteral<"flat">;
39591
- amount: z.ZodString;
39592
- }, z.core.$strict>, z.ZodObject<{
39593
- type: z.ZodLiteral<"unit">;
39594
- amount: z.ZodString;
39595
- }, z.core.$strict>, z.ZodObject<{
39596
- type: z.ZodLiteral<"graduated">;
39597
- tiers: z.ZodArray<z.ZodObject<{
39598
- up_to_amount: z.ZodOptional<z.ZodString>;
39599
- flat_price: z.ZodOptional<z.ZodObject<{
39600
- type: z.ZodLiteral<"flat">;
39601
- amount: z.ZodString;
39602
- }, z.core.$strict>>;
39603
- unit_price: z.ZodOptional<z.ZodObject<{
39604
- type: z.ZodLiteral<"unit">;
39605
- amount: z.ZodString;
39606
- }, z.core.$strict>>;
39607
- }, z.core.$strict>>;
39608
- }, z.core.$strict>, z.ZodObject<{
39609
- type: z.ZodLiteral<"volume">;
39610
- tiers: z.ZodArray<z.ZodObject<{
39611
- up_to_amount: z.ZodOptional<z.ZodString>;
39612
- flat_price: z.ZodOptional<z.ZodObject<{
39613
- type: z.ZodLiteral<"flat">;
39614
- amount: z.ZodString;
39615
- }, z.core.$strict>>;
39616
- unit_price: z.ZodOptional<z.ZodObject<{
39617
- type: z.ZodLiteral<"unit">;
39618
- amount: z.ZodString;
39619
- }, z.core.$strict>>;
39620
- }, z.core.$strict>>;
39621
- }, z.core.$strict>], "type">;
39622
- unit_config: z.ZodOptional<z.ZodObject<{
39623
- operation: z.ZodEnum<{
39624
- divide: "divide";
39625
- multiply: "multiply";
39626
- }>;
39627
- conversion_factor: z.ZodString;
39628
- rounding: z.ZodOptional<z.ZodEnum<{
39629
- ceiling: "ceiling";
39630
- floor: "floor";
39631
- half_up: "half_up";
39632
- none: "none";
39633
- }>>;
39634
- precision: z.ZodOptional<z.ZodNumber>;
39635
- display_unit: z.ZodOptional<z.ZodString>;
39636
- }, z.core.$strict>>;
39637
- payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
39638
- commitments: z.ZodOptional<z.ZodObject<{
39639
- minimum_amount: z.ZodOptional<z.ZodString>;
39640
- maximum_amount: z.ZodOptional<z.ZodString>;
39641
- }, z.core.$strict>>;
39642
- discounts: z.ZodOptional<z.ZodObject<{
39643
- percentage: z.ZodOptional<z.ZodNumber>;
39644
- usage: z.ZodOptional<z.ZodString>;
39645
- }, z.core.$strict>>;
39646
- tax_config: z.ZodOptional<z.ZodObject<{
39647
- behavior: z.ZodOptional<z.ZodEnum<{
39648
- exclusive: "exclusive";
39649
- inclusive: "inclusive";
39650
- }>>;
39651
- code: z.ZodObject<{
39652
- id: z.ZodString;
39653
- }, z.core.$strict>;
39654
- }, z.core.$strict>>;
39655
- entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
39656
- type: z.ZodLiteral<"metered">;
39657
- is_soft_limit: z.ZodOptional<z.ZodBoolean>;
39658
- limit: z.ZodOptional<z.ZodNumber>;
39659
- usage_period: z.ZodOptional<z.ZodString>;
39660
- }, z.core.$strict>, z.ZodObject<{
39661
- type: z.ZodLiteral<"static">;
39662
- config: z.ZodUnknown;
39663
- }, z.core.$strict>, z.ZodObject<{
39664
- type: z.ZodLiteral<"boolean">;
39665
- }, z.core.$strict>], "type">>;
39666
- }, z.core.$strict>>;
40515
+ }, z.core.$strict>;
40516
+ affected_subscription_item_ids: z.ZodArray<z.ZodString>;
39667
40517
  }, z.core.$strict>>;
39668
- settlement_mode: z.ZodOptional<z.ZodEnum<{
39669
- credit_only: "credit_only";
39670
- credit_then_invoice: "credit_then_invoice";
39671
- }>>;
39672
- validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
39673
- code: z.ZodString;
39674
- message: z.ZodString;
39675
- attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
39676
- field: z.ZodString;
39677
- }, z.core.$strict>>>;
39678
40518
  }, z.core.$strict>>;
39679
40519
  meta: z.ZodObject<{
39680
40520
  page: z.ZodObject<{
@@ -46192,14 +47032,14 @@ export declare const getCustomerBillingResponseWire: z.ZodObject<{
46192
47032
  id: z.ZodString;
46193
47033
  }, z.core.$strict>>;
46194
47034
  app_data: z.ZodOptional<z.ZodObject<{
46195
- stripe: z.ZodOptional<z.ZodObject<{
47035
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
46196
47036
  customer_id: z.ZodOptional<z.ZodString>;
46197
47037
  default_payment_method_id: z.ZodOptional<z.ZodString>;
46198
47038
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
46199
- }, z.core.$strict>>;
46200
- external_invoicing: z.ZodOptional<z.ZodObject<{
47039
+ }, z.core.$strict>>>;
47040
+ external_invoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
46201
47041
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
46202
- }, z.core.$strict>>;
47042
+ }, z.core.$strict>>>;
46203
47043
  }, z.core.$strict>>;
46204
47044
  }, z.core.$strict>;
46205
47045
  export declare const updateCustomerBillingPathParamsWire: z.ZodObject<{
@@ -46210,14 +47050,14 @@ export declare const updateCustomerBillingBodyWire: z.ZodObject<{
46210
47050
  id: z.ZodString;
46211
47051
  }, z.core.$strict>>;
46212
47052
  app_data: z.ZodOptional<z.ZodObject<{
46213
- stripe: z.ZodOptional<z.ZodObject<{
47053
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
46214
47054
  customer_id: z.ZodOptional<z.ZodString>;
46215
47055
  default_payment_method_id: z.ZodOptional<z.ZodString>;
46216
47056
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
46217
- }, z.core.$strict>>;
46218
- external_invoicing: z.ZodOptional<z.ZodObject<{
47057
+ }, z.core.$strict>>>;
47058
+ external_invoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
46219
47059
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
46220
- }, z.core.$strict>>;
47060
+ }, z.core.$strict>>>;
46221
47061
  }, z.core.$strict>>;
46222
47062
  }, z.core.$strict>;
46223
47063
  export declare const updateCustomerBillingResponseWire: z.ZodObject<{
@@ -46225,38 +47065,38 @@ export declare const updateCustomerBillingResponseWire: z.ZodObject<{
46225
47065
  id: z.ZodString;
46226
47066
  }, z.core.$strict>>;
46227
47067
  app_data: z.ZodOptional<z.ZodObject<{
46228
- stripe: z.ZodOptional<z.ZodObject<{
47068
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
46229
47069
  customer_id: z.ZodOptional<z.ZodString>;
46230
47070
  default_payment_method_id: z.ZodOptional<z.ZodString>;
46231
47071
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
46232
- }, z.core.$strict>>;
46233
- external_invoicing: z.ZodOptional<z.ZodObject<{
47072
+ }, z.core.$strict>>>;
47073
+ external_invoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
46234
47074
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
46235
- }, z.core.$strict>>;
47075
+ }, z.core.$strict>>>;
46236
47076
  }, z.core.$strict>>;
46237
47077
  }, z.core.$strict>;
46238
47078
  export declare const updateCustomerBillingAppDataPathParamsWire: z.ZodObject<{
46239
47079
  customerId: z.ZodString;
46240
47080
  }, z.core.$strip>;
46241
47081
  export declare const updateCustomerBillingAppDataBodyWire: z.ZodObject<{
46242
- stripe: z.ZodOptional<z.ZodObject<{
47082
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
46243
47083
  customer_id: z.ZodOptional<z.ZodString>;
46244
47084
  default_payment_method_id: z.ZodOptional<z.ZodString>;
46245
47085
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
46246
- }, z.core.$strict>>;
46247
- external_invoicing: z.ZodOptional<z.ZodObject<{
47086
+ }, z.core.$strict>>>;
47087
+ external_invoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
46248
47088
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
46249
- }, z.core.$strict>>;
47089
+ }, z.core.$strict>>>;
46250
47090
  }, z.core.$strict>;
46251
47091
  export declare const updateCustomerBillingAppDataResponseWire: z.ZodObject<{
46252
- stripe: z.ZodOptional<z.ZodObject<{
47092
+ stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
46253
47093
  customer_id: z.ZodOptional<z.ZodString>;
46254
47094
  default_payment_method_id: z.ZodOptional<z.ZodString>;
46255
47095
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
46256
- }, z.core.$strict>>;
46257
- external_invoicing: z.ZodOptional<z.ZodObject<{
47096
+ }, z.core.$strict>>>;
47097
+ external_invoicing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
46258
47098
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
46259
- }, z.core.$strict>>;
47099
+ }, z.core.$strict>>>;
46260
47100
  }, z.core.$strict>;
46261
47101
  export declare const createCustomerStripeCheckoutSessionPathParamsWire: z.ZodObject<{
46262
47102
  customerId: z.ZodString;
@@ -49782,11 +50622,116 @@ export declare const createSubscriptionBodyWire: z.ZodObject<{
49782
50622
  id: z.ZodOptional<z.ZodString>;
49783
50623
  key: z.ZodOptional<z.ZodString>;
49784
50624
  }, z.core.$strict>;
49785
- plan: z.ZodObject<{
50625
+ plan: z.ZodOptional<z.ZodObject<{
49786
50626
  id: z.ZodOptional<z.ZodString>;
49787
50627
  key: z.ZodOptional<z.ZodString>;
49788
50628
  version: z.ZodOptional<z.ZodNumber>;
49789
- }, z.core.$strict>;
50629
+ }, z.core.$strict>>;
50630
+ custom_plan: z.ZodOptional<z.ZodObject<{
50631
+ name: z.ZodString;
50632
+ description: z.ZodOptional<z.ZodString>;
50633
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
50634
+ currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
50635
+ billing_cadence: z.ZodString;
50636
+ pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
50637
+ phases: z.ZodArray<z.ZodObject<{
50638
+ name: z.ZodString;
50639
+ description: z.ZodOptional<z.ZodString>;
50640
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
50641
+ key: z.ZodString;
50642
+ duration: z.ZodOptional<z.ZodString>;
50643
+ rate_cards: z.ZodArray<z.ZodObject<{
50644
+ name: z.ZodString;
50645
+ description: z.ZodOptional<z.ZodString>;
50646
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
50647
+ key: z.ZodString;
50648
+ feature: z.ZodOptional<z.ZodObject<{
50649
+ id: z.ZodString;
50650
+ }, z.core.$strict>>;
50651
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
50652
+ billing_cadence: z.ZodOptional<z.ZodString>;
50653
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
50654
+ type: z.ZodLiteral<"free">;
50655
+ }, z.core.$strict>, z.ZodObject<{
50656
+ type: z.ZodLiteral<"flat">;
50657
+ amount: z.ZodString;
50658
+ }, z.core.$strict>, z.ZodObject<{
50659
+ type: z.ZodLiteral<"unit">;
50660
+ amount: z.ZodString;
50661
+ }, z.core.$strict>, z.ZodObject<{
50662
+ type: z.ZodLiteral<"graduated">;
50663
+ tiers: z.ZodArray<z.ZodObject<{
50664
+ up_to_amount: z.ZodOptional<z.ZodString>;
50665
+ flat_price: z.ZodOptional<z.ZodObject<{
50666
+ type: z.ZodLiteral<"flat">;
50667
+ amount: z.ZodString;
50668
+ }, z.core.$strict>>;
50669
+ unit_price: z.ZodOptional<z.ZodObject<{
50670
+ type: z.ZodLiteral<"unit">;
50671
+ amount: z.ZodString;
50672
+ }, z.core.$strict>>;
50673
+ }, z.core.$strict>>;
50674
+ }, z.core.$strict>, z.ZodObject<{
50675
+ type: z.ZodLiteral<"volume">;
50676
+ tiers: z.ZodArray<z.ZodObject<{
50677
+ up_to_amount: z.ZodOptional<z.ZodString>;
50678
+ flat_price: z.ZodOptional<z.ZodObject<{
50679
+ type: z.ZodLiteral<"flat">;
50680
+ amount: z.ZodString;
50681
+ }, z.core.$strict>>;
50682
+ unit_price: z.ZodOptional<z.ZodObject<{
50683
+ type: z.ZodLiteral<"unit">;
50684
+ amount: z.ZodString;
50685
+ }, z.core.$strict>>;
50686
+ }, z.core.$strict>>;
50687
+ }, z.core.$strict>], "type">;
50688
+ unit_config: z.ZodOptional<z.ZodObject<{
50689
+ operation: z.ZodEnum<{
50690
+ divide: "divide";
50691
+ multiply: "multiply";
50692
+ }>;
50693
+ conversion_factor: z.ZodString;
50694
+ rounding: z.ZodOptional<z.ZodEnum<{
50695
+ ceiling: "ceiling";
50696
+ floor: "floor";
50697
+ half_up: "half_up";
50698
+ none: "none";
50699
+ }>>;
50700
+ precision: z.ZodOptional<z.ZodNumber>;
50701
+ display_unit: z.ZodOptional<z.ZodString>;
50702
+ }, z.core.$strict>>;
50703
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
50704
+ commitments: z.ZodOptional<z.ZodObject<{
50705
+ minimum_amount: z.ZodOptional<z.ZodString>;
50706
+ maximum_amount: z.ZodOptional<z.ZodString>;
50707
+ }, z.core.$strict>>;
50708
+ discounts: z.ZodOptional<z.ZodObject<{
50709
+ percentage: z.ZodOptional<z.ZodNumber>;
50710
+ usage: z.ZodOptional<z.ZodString>;
50711
+ }, z.core.$strict>>;
50712
+ tax_config: z.ZodOptional<z.ZodObject<{
50713
+ behavior: z.ZodOptional<z.ZodEnum<{
50714
+ exclusive: "exclusive";
50715
+ inclusive: "inclusive";
50716
+ }>>;
50717
+ code: z.ZodObject<{
50718
+ id: z.ZodString;
50719
+ }, z.core.$strict>;
50720
+ }, z.core.$strict>>;
50721
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
50722
+ type: z.ZodLiteral<"metered">;
50723
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
50724
+ limit: z.ZodOptional<z.ZodNumber>;
50725
+ usage_period: z.ZodOptional<z.ZodString>;
50726
+ }, z.core.$strict>, z.ZodObject<{
50727
+ type: z.ZodLiteral<"static">;
50728
+ config: z.ZodUnknown;
50729
+ }, z.core.$strict>, z.ZodObject<{
50730
+ type: z.ZodLiteral<"boolean">;
50731
+ }, z.core.$strict>], "type">>;
50732
+ }, z.core.$strict>>;
50733
+ }, z.core.$strict>>;
50734
+ }, z.core.$strict>>;
49790
50735
  billing_anchor: z.ZodOptional<z.ZodString>;
49791
50736
  cost_basis_mode: z.ZodOptional<z.ZodEnum<{
49792
50737
  dynamic: "dynamic";
@@ -50654,11 +51599,116 @@ export declare const changeSubscriptionBodyWire: z.ZodObject<{
50654
51599
  id: z.ZodOptional<z.ZodString>;
50655
51600
  key: z.ZodOptional<z.ZodString>;
50656
51601
  }, z.core.$strict>;
50657
- plan: z.ZodObject<{
51602
+ plan: z.ZodOptional<z.ZodObject<{
50658
51603
  id: z.ZodOptional<z.ZodString>;
50659
51604
  key: z.ZodOptional<z.ZodString>;
50660
51605
  version: z.ZodOptional<z.ZodNumber>;
50661
- }, z.core.$strict>;
51606
+ }, z.core.$strict>>;
51607
+ custom_plan: z.ZodOptional<z.ZodObject<{
51608
+ name: z.ZodString;
51609
+ description: z.ZodOptional<z.ZodString>;
51610
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51611
+ currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
51612
+ billing_cadence: z.ZodString;
51613
+ pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
51614
+ phases: z.ZodArray<z.ZodObject<{
51615
+ name: z.ZodString;
51616
+ description: z.ZodOptional<z.ZodString>;
51617
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51618
+ key: z.ZodString;
51619
+ duration: z.ZodOptional<z.ZodString>;
51620
+ rate_cards: z.ZodArray<z.ZodObject<{
51621
+ name: z.ZodString;
51622
+ description: z.ZodOptional<z.ZodString>;
51623
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51624
+ key: z.ZodString;
51625
+ feature: z.ZodOptional<z.ZodObject<{
51626
+ id: z.ZodString;
51627
+ }, z.core.$strict>>;
51628
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
51629
+ billing_cadence: z.ZodOptional<z.ZodString>;
51630
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
51631
+ type: z.ZodLiteral<"free">;
51632
+ }, z.core.$strict>, z.ZodObject<{
51633
+ type: z.ZodLiteral<"flat">;
51634
+ amount: z.ZodString;
51635
+ }, z.core.$strict>, z.ZodObject<{
51636
+ type: z.ZodLiteral<"unit">;
51637
+ amount: z.ZodString;
51638
+ }, z.core.$strict>, z.ZodObject<{
51639
+ type: z.ZodLiteral<"graduated">;
51640
+ tiers: z.ZodArray<z.ZodObject<{
51641
+ up_to_amount: z.ZodOptional<z.ZodString>;
51642
+ flat_price: z.ZodOptional<z.ZodObject<{
51643
+ type: z.ZodLiteral<"flat">;
51644
+ amount: z.ZodString;
51645
+ }, z.core.$strict>>;
51646
+ unit_price: z.ZodOptional<z.ZodObject<{
51647
+ type: z.ZodLiteral<"unit">;
51648
+ amount: z.ZodString;
51649
+ }, z.core.$strict>>;
51650
+ }, z.core.$strict>>;
51651
+ }, z.core.$strict>, z.ZodObject<{
51652
+ type: z.ZodLiteral<"volume">;
51653
+ tiers: z.ZodArray<z.ZodObject<{
51654
+ up_to_amount: z.ZodOptional<z.ZodString>;
51655
+ flat_price: z.ZodOptional<z.ZodObject<{
51656
+ type: z.ZodLiteral<"flat">;
51657
+ amount: z.ZodString;
51658
+ }, z.core.$strict>>;
51659
+ unit_price: z.ZodOptional<z.ZodObject<{
51660
+ type: z.ZodLiteral<"unit">;
51661
+ amount: z.ZodString;
51662
+ }, z.core.$strict>>;
51663
+ }, z.core.$strict>>;
51664
+ }, z.core.$strict>], "type">;
51665
+ unit_config: z.ZodOptional<z.ZodObject<{
51666
+ operation: z.ZodEnum<{
51667
+ divide: "divide";
51668
+ multiply: "multiply";
51669
+ }>;
51670
+ conversion_factor: z.ZodString;
51671
+ rounding: z.ZodOptional<z.ZodEnum<{
51672
+ ceiling: "ceiling";
51673
+ floor: "floor";
51674
+ half_up: "half_up";
51675
+ none: "none";
51676
+ }>>;
51677
+ precision: z.ZodOptional<z.ZodNumber>;
51678
+ display_unit: z.ZodOptional<z.ZodString>;
51679
+ }, z.core.$strict>>;
51680
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
51681
+ commitments: z.ZodOptional<z.ZodObject<{
51682
+ minimum_amount: z.ZodOptional<z.ZodString>;
51683
+ maximum_amount: z.ZodOptional<z.ZodString>;
51684
+ }, z.core.$strict>>;
51685
+ discounts: z.ZodOptional<z.ZodObject<{
51686
+ percentage: z.ZodOptional<z.ZodNumber>;
51687
+ usage: z.ZodOptional<z.ZodString>;
51688
+ }, z.core.$strict>>;
51689
+ tax_config: z.ZodOptional<z.ZodObject<{
51690
+ behavior: z.ZodOptional<z.ZodEnum<{
51691
+ exclusive: "exclusive";
51692
+ inclusive: "inclusive";
51693
+ }>>;
51694
+ code: z.ZodObject<{
51695
+ id: z.ZodString;
51696
+ }, z.core.$strict>;
51697
+ }, z.core.$strict>>;
51698
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
51699
+ type: z.ZodLiteral<"metered">;
51700
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
51701
+ limit: z.ZodOptional<z.ZodNumber>;
51702
+ usage_period: z.ZodOptional<z.ZodString>;
51703
+ }, z.core.$strict>, z.ZodObject<{
51704
+ type: z.ZodLiteral<"static">;
51705
+ config: z.ZodUnknown;
51706
+ }, z.core.$strict>, z.ZodObject<{
51707
+ type: z.ZodLiteral<"boolean">;
51708
+ }, z.core.$strict>], "type">>;
51709
+ }, z.core.$strict>>;
51710
+ }, z.core.$strict>>;
51711
+ }, z.core.$strict>>;
50662
51712
  billing_anchor: z.ZodOptional<z.ZodString>;
50663
51713
  cost_basis_mode: z.ZodOptional<z.ZodEnum<{
50664
51714
  dynamic: "dynamic";