autumn-js 1.2.13 → 1.2.15

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.
Files changed (126) hide show
  1. package/dist/backend/adapters/express.js +623 -108
  2. package/dist/backend/adapters/express.mjs +8 -8
  3. package/dist/backend/adapters/fetch.js +623 -108
  4. package/dist/backend/adapters/fetch.mjs +8 -8
  5. package/dist/backend/adapters/hono.js +623 -108
  6. package/dist/backend/adapters/hono.mjs +8 -8
  7. package/dist/backend/adapters/index.js +623 -108
  8. package/dist/backend/adapters/index.mjs +11 -11
  9. package/dist/backend/adapters/next.js +623 -108
  10. package/dist/backend/adapters/next.mjs +8 -8
  11. package/dist/backend/{chunk-DNNJOZAT.mjs → chunk-BQVZ6GCE.mjs} +1 -1
  12. package/dist/backend/{chunk-YSQQKZBU.mjs → chunk-IEOQUAJY.mjs} +7 -7
  13. package/dist/backend/{chunk-MANTLPDT.mjs → chunk-IQS3LQVP.mjs} +36 -8
  14. package/dist/backend/{chunk-7BVATYGA.mjs → chunk-NDB3VKT4.mjs} +1 -1
  15. package/dist/backend/{chunk-RPH5L44S.mjs → chunk-NRTK5YZK.mjs} +1 -1
  16. package/dist/backend/{chunk-T42RZEUZ.mjs → chunk-OXCQHLZX.mjs} +587 -100
  17. package/dist/backend/{chunk-EJGHP7KT.mjs → chunk-RSIOYTRW.mjs} +5 -5
  18. package/dist/backend/{chunk-OUDB34Y7.mjs → chunk-X7LDYBKC.mjs} +1 -1
  19. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  21. package/dist/backend/core/handlers/coreHandler.js +623 -108
  22. package/dist/backend/core/handlers/coreHandler.mjs +6 -6
  23. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  24. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  25. package/dist/backend/core/handlers/executeRoute.mjs +3 -3
  26. package/dist/backend/core/handlers/handleRouteByName.js +623 -108
  27. package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
  28. package/dist/backend/core/handlers/index.d.mts +1 -1
  29. package/dist/backend/core/handlers/index.d.ts +1 -1
  30. package/dist/backend/core/handlers/index.js +623 -108
  31. package/dist/backend/core/handlers/index.mjs +10 -10
  32. package/dist/backend/core/index.d.mts +1 -1
  33. package/dist/backend/core/index.d.ts +1 -1
  34. package/dist/backend/core/index.js +623 -108
  35. package/dist/backend/core/index.mjs +7 -7
  36. package/dist/backend/core/routes/index.d.mts +1 -1
  37. package/dist/backend/core/routes/index.d.ts +1 -1
  38. package/dist/backend/core/routes/index.js +36 -8
  39. package/dist/backend/core/routes/index.mjs +1 -1
  40. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  41. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  43. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  44. package/dist/backend/core/routes/routeConfigs.js +36 -8
  45. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  46. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  47. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  48. package/dist/backend/core/types/index.d.mts +1 -1
  49. package/dist/backend/core/types/index.d.ts +1 -1
  50. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  51. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  52. package/dist/backend/index.d.mts +2 -2
  53. package/dist/backend/index.d.ts +2 -2
  54. package/dist/backend/index.js +623 -108
  55. package/dist/backend/index.mjs +7 -7
  56. package/dist/backend/{routeTypes-DVwngaBn.d.mts → routeTypes-CIspXIZ4.d.mts} +841 -169
  57. package/dist/backend/{routeTypes-B94_Mq2J.d.ts → routeTypes-COwIJFNS.d.ts} +841 -169
  58. package/dist/better-auth/{chunk-4OWECHZC.mjs → chunk-L6XX4ONM.mjs} +1 -1
  59. package/dist/better-auth/{chunk-ZZGFPTHO.mjs → chunk-QT6R3AXQ.mjs} +588 -101
  60. package/dist/better-auth/{chunk-JIFD4TSN.mjs → chunk-ZO3KGM5W.mjs} +36 -8
  61. package/dist/better-auth/client.d.mts +2 -4
  62. package/dist/better-auth/client.d.ts +2 -4
  63. package/dist/better-auth/{createAutumnEndpoint-CvXRCg-M.d.ts → createAutumnEndpoint-Clm1sxhQ.d.mts} +4 -8
  64. package/dist/better-auth/{createAutumnEndpoint-CvXRCg-M.d.mts → createAutumnEndpoint-Clm1sxhQ.d.ts} +4 -8
  65. package/dist/better-auth/index.d.mts +2 -4
  66. package/dist/better-auth/index.d.ts +2 -4
  67. package/dist/better-auth/index.js +623 -108
  68. package/dist/better-auth/index.mjs +3 -3
  69. package/dist/better-auth/utils/createAutumnEndpoint.d.mts +2 -4
  70. package/dist/better-auth/utils/createAutumnEndpoint.d.ts +2 -4
  71. package/dist/better-auth/utils/createAutumnEndpoint.js +36 -8
  72. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  73. package/dist/better-auth/utils/handleBetterAuthRoute.d.mts +2 -4
  74. package/dist/better-auth/utils/handleBetterAuthRoute.d.ts +2 -4
  75. package/dist/better-auth/utils/handleBetterAuthRoute.js +623 -108
  76. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  77. package/dist/better-auth/utils/index.d.mts +3 -4
  78. package/dist/better-auth/utils/index.d.ts +3 -4
  79. package/dist/better-auth/utils/index.js +623 -108
  80. package/dist/better-auth/utils/index.mjs +3 -3
  81. package/dist/react/AutumnContext.d.mts +2 -2
  82. package/dist/react/AutumnContext.d.ts +2 -2
  83. package/dist/react/client/AutumnClient.d.mts +2 -2
  84. package/dist/react/client/AutumnClient.d.ts +2 -2
  85. package/dist/react/client/IAutumnClient.d.mts +2 -2
  86. package/dist/react/client/IAutumnClient.d.ts +2 -2
  87. package/dist/react/client/index.d.mts +2 -2
  88. package/dist/react/client/index.d.ts +2 -2
  89. package/dist/react/{customer-DB8vL_m7.d.mts → customer-BDxW2bu6.d.mts} +35 -9
  90. package/dist/react/{customer-CaGJEN5J.d.ts → customer-BPUObmME.d.ts} +35 -9
  91. package/dist/react/hooks/index.d.mts +2 -2
  92. package/dist/react/hooks/index.d.ts +2 -2
  93. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
  94. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
  95. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
  96. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
  97. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
  98. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
  99. package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
  100. package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
  101. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +2 -2
  102. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +2 -2
  103. package/dist/react/hooks/internal/useCustomerActions.d.mts +2 -2
  104. package/dist/react/hooks/internal/useCustomerActions.d.ts +2 -2
  105. package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
  106. package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
  107. package/dist/react/hooks/useCustomer.d.mts +2 -2
  108. package/dist/react/hooks/useCustomer.d.ts +2 -2
  109. package/dist/react/hooks/useEntity.d.mts +1 -1
  110. package/dist/react/hooks/useEntity.d.ts +1 -1
  111. package/dist/react/hooks/useListEvents.d.mts +1 -1
  112. package/dist/react/hooks/useListEvents.d.ts +1 -1
  113. package/dist/react/hooks/useListPlans.d.mts +1 -1
  114. package/dist/react/hooks/useListPlans.d.ts +1 -1
  115. package/dist/react/hooks/useReferrals.d.mts +1 -1
  116. package/dist/react/hooks/useReferrals.d.ts +1 -1
  117. package/dist/react/index.d.mts +2 -2
  118. package/dist/react/index.d.ts +2 -2
  119. package/dist/react/{params-B5l9vHfZ.d.ts → params-D4cEukOJ.d.ts} +615 -64
  120. package/dist/react/{params-BVglT8vT.d.mts → params-DzbSUS8O.d.mts} +615 -64
  121. package/dist/sdk/index.d.mts +980 -173
  122. package/dist/sdk/index.d.ts +980 -173
  123. package/dist/sdk/index.js +978 -212
  124. package/dist/sdk/index.mjs +825 -149
  125. package/package.json +1 -1
  126. package/dist/backend/{chunk-S5HPMJ4U.mjs → chunk-55C2WWXQ.mjs} +3 -3
@@ -253,7 +253,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
253
253
  carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
254
254
  carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
255
255
  metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
256
- no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
256
+ no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
257
+ enable_plan_immediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
257
258
  });
258
259
  var closedEnumSchema2 = import_v42.z.any();
259
260
  var openEnumSchema = import_v42.z.any();
@@ -339,7 +340,8 @@ var attachParamsSchema = import_v42.z.object({
339
340
  carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
340
341
  carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
341
342
  metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
342
- noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
343
+ noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
344
+ enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
343
345
  });
344
346
  var attachCodeSchema = openEnumSchema;
345
347
  var attachRequiredActionSchema = import_v42.z.object({
@@ -910,6 +912,7 @@ var multiAttachParamsSchema = import_v47.z.object({
910
912
  checkoutSessionParams: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
911
913
  redirectMode: import_v47.z.union([multiAttachRedirectModeSchema, import_v47.z.undefined()]).optional(),
912
914
  newBillingSubscription: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
915
+ enablePlanImmediately: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
913
916
  customerData: import_v47.z.union([customerDataSchema, import_v47.z.undefined()]).optional(),
914
917
  entityData: import_v47.z.union([multiAttachEntityDataSchema, import_v47.z.undefined()]).optional()
915
918
  });
@@ -936,6 +939,7 @@ var multiAttachParamsOutboundSchema = import_v47.z.object({
936
939
  checkout_session_params: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
937
940
  redirect_mode: import_v47.z.string(),
938
941
  new_billing_subscription: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
942
+ enable_plan_immediately: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
939
943
  customer_data: import_v47.z.union([customerDataOutboundSchema, import_v47.z.undefined()]).optional(),
940
944
  entity_data: import_v47.z.union([multiAttachEntityDataOutboundSchema, import_v47.z.undefined()]).optional()
941
945
  });
@@ -1169,7 +1173,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
1169
1173
  carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
1170
1174
  carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
1171
1175
  metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
1172
- no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
1176
+ no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
1177
+ enable_plan_immediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
1173
1178
  });
1174
1179
  var closedEnumSchema5 = import_v49.z.any();
1175
1180
  var planSchema = import_v49.z.any();
@@ -1256,7 +1261,8 @@ var previewAttachParamsSchema = import_v49.z.object({
1256
1261
  carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
1257
1262
  carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
1258
1263
  metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
1259
- noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
1264
+ noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
1265
+ enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
1260
1266
  });
1261
1267
  var previewAttachIncomingSchema = import_v49.z.object({
1262
1268
  planId: import_v49.z.string(),
@@ -1275,6 +1281,14 @@ var previewAttachOutgoingSchema = import_v49.z.object({
1275
1281
  expiresAt: import_v49.z.number().nullable()
1276
1282
  });
1277
1283
  var previewAttachCheckoutTypeSchema = openEnumSchema4;
1284
+ var previewAttachStatusSchema = openEnumSchema4;
1285
+ var previewAttachTaxSchema = import_v49.z.object({
1286
+ total: import_v49.z.number(),
1287
+ amountInclusive: import_v49.z.number(),
1288
+ amountExclusive: import_v49.z.number(),
1289
+ currency: import_v49.z.string(),
1290
+ status: previewAttachStatusSchema
1291
+ });
1278
1292
  var previewAttachResponseSchema = import_v49.z.object({
1279
1293
  customerId: import_v49.z.string(),
1280
1294
  lineItems: import_v49.z.array(previewAttachLineItemSchema),
@@ -1286,7 +1300,8 @@ var previewAttachResponseSchema = import_v49.z.object({
1286
1300
  incoming: import_v49.z.array(previewAttachIncomingSchema),
1287
1301
  outgoing: import_v49.z.array(previewAttachOutgoingSchema),
1288
1302
  redirectToCheckout: import_v49.z.boolean(),
1289
- checkoutType: previewAttachCheckoutTypeSchema.nullable()
1303
+ checkoutType: previewAttachCheckoutTypeSchema.nullable(),
1304
+ tax: import_v49.z.union([previewAttachTaxSchema, import_v49.z.undefined()]).optional()
1290
1305
  });
1291
1306
 
1292
1307
  // src/generated/previewMultiAttachSchemas.ts
@@ -1600,6 +1615,7 @@ var previewMultiAttachParamsSchema = import_v410.z.object({
1600
1615
  checkoutSessionParams: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
1601
1616
  redirectMode: import_v410.z.union([previewMultiAttachRedirectModeSchema, import_v410.z.undefined()]).optional(),
1602
1617
  newBillingSubscription: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
1618
+ enablePlanImmediately: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
1603
1619
  customerData: import_v410.z.union([customerDataSchema2, import_v410.z.undefined()]).optional(),
1604
1620
  entityData: import_v410.z.union([previewMultiAttachEntityDataSchema, import_v410.z.undefined()]).optional()
1605
1621
  });
@@ -1620,6 +1636,14 @@ var previewMultiAttachOutgoingSchema = import_v410.z.object({
1620
1636
  expiresAt: import_v410.z.number().nullable()
1621
1637
  });
1622
1638
  var previewMultiAttachCheckoutTypeSchema = openEnumSchema5;
1639
+ var previewMultiAttachStatusSchema = openEnumSchema5;
1640
+ var previewMultiAttachTaxSchema = import_v410.z.object({
1641
+ total: import_v410.z.number(),
1642
+ amountInclusive: import_v410.z.number(),
1643
+ amountExclusive: import_v410.z.number(),
1644
+ currency: import_v410.z.string(),
1645
+ status: previewMultiAttachStatusSchema
1646
+ });
1623
1647
  var previewMultiAttachResponseSchema = import_v410.z.object({
1624
1648
  customerId: import_v410.z.string(),
1625
1649
  lineItems: import_v410.z.array(previewMultiAttachLineItemSchema),
@@ -1631,7 +1655,8 @@ var previewMultiAttachResponseSchema = import_v410.z.object({
1631
1655
  incoming: import_v410.z.array(previewMultiAttachIncomingSchema),
1632
1656
  outgoing: import_v410.z.array(previewMultiAttachOutgoingSchema),
1633
1657
  redirectToCheckout: import_v410.z.boolean(),
1634
- checkoutType: previewMultiAttachCheckoutTypeSchema.nullable()
1658
+ checkoutType: previewMultiAttachCheckoutTypeSchema.nullable(),
1659
+ tax: import_v410.z.union([previewMultiAttachTaxSchema, import_v410.z.undefined()]).optional()
1635
1660
  });
1636
1661
  var previewMultiAttachParamsOutboundSchema = import_v410.z.object({
1637
1662
  customer_id: import_v410.z.string(),
@@ -1647,6 +1672,7 @@ var previewMultiAttachParamsOutboundSchema = import_v410.z.object({
1647
1672
  checkout_session_params: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
1648
1673
  redirect_mode: import_v410.z.string(),
1649
1674
  new_billing_subscription: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
1675
+ enable_plan_immediately: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
1650
1676
  customer_data: import_v410.z.union([customerDataOutboundSchema2, import_v410.z.undefined()]).optional(),
1651
1677
  entity_data: import_v410.z.union([previewMultiAttachEntityDataOutboundSchema, import_v410.z.undefined()]).optional()
1652
1678
  });
@@ -2096,7 +2122,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
2096
2122
  carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
2097
2123
  carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
2098
2124
  metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
2099
- no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
2125
+ no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
2126
+ enable_plan_immediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
2100
2127
  });
2101
2128
  var closedEnumSchema8 = import_v413.z.any();
2102
2129
  var setupPaymentPriceIntervalSchema = closedEnumSchema8;
@@ -2175,7 +2202,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
2175
2202
  carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
2176
2203
  carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
2177
2204
  metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
2178
- noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
2205
+ noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
2206
+ enablePlanImmediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
2179
2207
  });
2180
2208
 
2181
2209
  // src/generated/updateSubscriptionSchemas.ts
@@ -2678,8 +2706,8 @@ var SDK_METADATA = {
2678
2706
  language: "typescript",
2679
2707
  openapiDocVersion: "2.2.0",
2680
2708
  sdkVersion: "0.10.17",
2681
- genVersion: "2.881.4",
2682
- userAgent: "speakeasy-sdk/typescript 0.10.17 2.881.4 2.2.0 @useautumn/sdk"
2709
+ genVersion: "2.881.16",
2710
+ userAgent: "speakeasy-sdk/typescript 0.10.17 2.881.16 2.2.0 @useautumn/sdk"
2683
2711
  };
2684
2712
 
2685
2713
  // ../sdk/src/lib/http.ts
@@ -4309,7 +4337,8 @@ var AttachParams$outboundSchema = z26.pipe(
4309
4337
  z26.lazy(() => AttachCarryOverUsages$outboundSchema)
4310
4338
  ),
4311
4339
  metadata: z26.optional(z26.record(z26.string(), z26.string())),
4312
- noBillingChanges: z26.optional(z26.boolean())
4340
+ noBillingChanges: z26.optional(z26.boolean()),
4341
+ enablePlanImmediately: z26.optional(z26.boolean())
4313
4342
  }),
4314
4343
  z26.transform((v) => {
4315
4344
  return remap(v, {
@@ -4330,7 +4359,8 @@ var AttachParams$outboundSchema = z26.pipe(
4330
4359
  processorSubscriptionId: "processor_subscription_id",
4331
4360
  carryOverBalances: "carry_over_balances",
4332
4361
  carryOverUsages: "carry_over_usages",
4333
- noBillingChanges: "no_billing_changes"
4362
+ noBillingChanges: "no_billing_changes",
4363
+ enablePlanImmediately: "enable_plan_immediately"
4334
4364
  });
4335
4365
  })
4336
4366
  );
@@ -4882,31 +4912,31 @@ var BillingUpdateResponse$inboundSchema = z28.pipe(
4882
4912
 
4883
4913
  // ../sdk/src/models/check-op.ts
4884
4914
  var z29 = __toESM(require("zod/v4-mini"), 1);
4885
- var FlagType = {
4915
+ var FlagType2 = {
4886
4916
  Boolean: "boolean",
4887
4917
  Metered: "metered",
4888
4918
  CreditSystem: "credit_system"
4889
4919
  };
4890
- var Scenario = {
4920
+ var Scenario2 = {
4891
4921
  UsageLimit: "usage_limit",
4892
4922
  FeatureFlag: "feature_flag"
4893
4923
  };
4894
- var CheckEnv = {
4924
+ var CheckEnv2 = {
4895
4925
  Sandbox: "sandbox",
4896
4926
  Live: "live"
4897
4927
  };
4898
- var ProductType = {
4928
+ var ProductType2 = {
4899
4929
  Feature: "feature",
4900
4930
  PricedFeature: "priced_feature",
4901
4931
  Price: "price"
4902
4932
  };
4903
- var FeatureType = {
4933
+ var FeatureType2 = {
4904
4934
  SingleUse: "single_use",
4905
4935
  ContinuousUse: "continuous_use",
4906
4936
  Boolean: "boolean",
4907
4937
  Static: "static"
4908
4938
  };
4909
- var CheckInterval = {
4939
+ var CheckInterval2 = {
4910
4940
  Minute: "minute",
4911
4941
  Hour: "hour",
4912
4942
  Day: "day",
@@ -4916,37 +4946,113 @@ var CheckInterval = {
4916
4946
  SemiAnnual: "semi_annual",
4917
4947
  Year: "year"
4918
4948
  };
4919
- var CheckTierBehavior = {
4949
+ var CheckTierBehavior2 = {
4920
4950
  Graduated: "graduated",
4921
4951
  Volume: "volume"
4922
4952
  };
4923
- var UsageModel = {
4953
+ var UsageModel2 = {
4924
4954
  Prepaid: "prepaid",
4925
4955
  PayPerUse: "pay_per_use"
4926
4956
  };
4927
- var ConfigDuration = {
4957
+ var ConfigDuration2 = {
4928
4958
  Month: "month",
4929
4959
  Forever: "forever"
4930
4960
  };
4931
- var CheckOnIncrease = {
4961
+ var CheckOnIncrease2 = {
4932
4962
  BillImmediately: "bill_immediately",
4933
4963
  ProrateImmediately: "prorate_immediately",
4934
4964
  ProrateNextCycle: "prorate_next_cycle",
4935
4965
  BillNextCycle: "bill_next_cycle"
4936
4966
  };
4937
- var CheckOnDecrease = {
4967
+ var CheckOnDecrease2 = {
4938
4968
  Prorate: "prorate",
4939
4969
  ProrateImmediately: "prorate_immediately",
4940
4970
  ProrateNextCycle: "prorate_next_cycle",
4941
4971
  None: "none",
4942
4972
  NoProrations: "no_prorations"
4943
4973
  };
4944
- var FreeTrialDuration = {
4974
+ var FreeTrialDuration2 = {
4945
4975
  Day: "day",
4946
4976
  Month: "month",
4947
4977
  Year: "year"
4948
4978
  };
4949
- var ProductScenario = {
4979
+ var ProductScenario2 = {
4980
+ Scheduled: "scheduled",
4981
+ Active: "active",
4982
+ New: "new",
4983
+ Renew: "renew",
4984
+ Upgrade: "upgrade",
4985
+ UpdatePrepaidQuantity: "update_prepaid_quantity",
4986
+ Downgrade: "downgrade",
4987
+ Cancel: "cancel",
4988
+ Expired: "expired",
4989
+ PastDue: "past_due"
4990
+ };
4991
+ var FlagType1 = {
4992
+ Boolean: "boolean",
4993
+ Metered: "metered",
4994
+ CreditSystem: "credit_system"
4995
+ };
4996
+ var Scenario1 = {
4997
+ UsageLimit: "usage_limit",
4998
+ FeatureFlag: "feature_flag"
4999
+ };
5000
+ var CheckEnv1 = {
5001
+ Sandbox: "sandbox",
5002
+ Live: "live"
5003
+ };
5004
+ var ProductType1 = {
5005
+ Feature: "feature",
5006
+ PricedFeature: "priced_feature",
5007
+ Price: "price"
5008
+ };
5009
+ var FeatureType1 = {
5010
+ SingleUse: "single_use",
5011
+ ContinuousUse: "continuous_use",
5012
+ Boolean: "boolean",
5013
+ Static: "static"
5014
+ };
5015
+ var CheckInterval1 = {
5016
+ Minute: "minute",
5017
+ Hour: "hour",
5018
+ Day: "day",
5019
+ Week: "week",
5020
+ Month: "month",
5021
+ Quarter: "quarter",
5022
+ SemiAnnual: "semi_annual",
5023
+ Year: "year"
5024
+ };
5025
+ var CheckTierBehavior1 = {
5026
+ Graduated: "graduated",
5027
+ Volume: "volume"
5028
+ };
5029
+ var UsageModel1 = {
5030
+ Prepaid: "prepaid",
5031
+ PayPerUse: "pay_per_use"
5032
+ };
5033
+ var ConfigDuration1 = {
5034
+ Month: "month",
5035
+ Forever: "forever"
5036
+ };
5037
+ var CheckOnIncrease1 = {
5038
+ BillImmediately: "bill_immediately",
5039
+ ProrateImmediately: "prorate_immediately",
5040
+ ProrateNextCycle: "prorate_next_cycle",
5041
+ BillNextCycle: "bill_next_cycle"
5042
+ };
5043
+ var CheckOnDecrease1 = {
5044
+ Prorate: "prorate",
5045
+ ProrateImmediately: "prorate_immediately",
5046
+ ProrateNextCycle: "prorate_next_cycle",
5047
+ None: "none",
5048
+ NoProrations: "no_prorations"
5049
+ };
5050
+ var FreeTrialDuration1 = {
5051
+ Day: "day",
5052
+ Month: "month",
5053
+ Year: "year"
5054
+ };
5055
+ var ProductScenario1 = {
4950
5056
  Scheduled: "scheduled",
4951
5057
  Active: "active",
4952
5058
  New: "new",
@@ -4993,8 +5099,8 @@ var CheckParams$outboundSchema = z29.pipe(
4993
5099
  });
4994
5100
  })
4995
5101
  );
4996
- var FlagType$inboundSchema = inboundSchema(FlagType);
4997
- var CheckCreditSchema$inboundSchema = z29.pipe(
5102
+ var FlagType2$inboundSchema = inboundSchema(FlagType2);
5103
+ var CheckCreditSchema2$inboundSchema = z29.pipe(
4998
5104
  z29.object({
4999
5105
  metered_feature_id: string4(),
5000
5106
  credit_cost: number2()
@@ -5006,21 +5112,21 @@ var CheckCreditSchema$inboundSchema = z29.pipe(
5006
5112
  });
5007
5113
  })
5008
5114
  );
5009
- var FlagDisplay$inboundSchema = z29.object({
5115
+ var FlagDisplay2$inboundSchema = z29.object({
5010
5116
  singular: z29.optional(z29.nullable(string4())),
5011
5117
  plural: z29.optional(z29.nullable(string4()))
5012
5118
  });
5013
- var CheckFeature$inboundSchema = z29.pipe(
5119
+ var CheckFeature2$inboundSchema = z29.pipe(
5014
5120
  z29.object({
5015
5121
  id: string4(),
5016
5122
  name: string4(),
5017
- type: FlagType$inboundSchema,
5123
+ type: FlagType2$inboundSchema,
5018
5124
  consumable: boolean2(),
5019
5125
  event_names: optional2(z29.array(string4())),
5020
5126
  credit_schema: optional2(
5021
- z29.array(z29.lazy(() => CheckCreditSchema$inboundSchema))
5127
+ z29.array(z29.lazy(() => CheckCreditSchema2$inboundSchema))
5022
5128
  ),
5023
- display: optional2(z29.lazy(() => FlagDisplay$inboundSchema)),
5129
+ display: optional2(z29.lazy(() => FlagDisplay2$inboundSchema)),
5024
5130
  archived: boolean2()
5025
5131
  }),
5026
5132
  z29.transform((v) => {
@@ -5030,13 +5136,13 @@ var CheckFeature$inboundSchema = z29.pipe(
5030
5136
  });
5031
5137
  })
5032
5138
  );
5033
- var Flag$inboundSchema = z29.pipe(
5139
+ var Flag2$inboundSchema = z29.pipe(
5034
5140
  z29.object({
5035
5141
  id: string4(),
5036
5142
  plan_id: nullable(string4()),
5037
5143
  expires_at: nullable(number2()),
5038
5144
  feature_id: string4(),
5039
- feature: optional2(z29.lazy(() => CheckFeature$inboundSchema))
5145
+ feature: optional2(z29.lazy(() => CheckFeature2$inboundSchema))
5040
5146
  }),
5041
5147
  z29.transform((v) => {
5042
5148
  return remap(v, {
@@ -5046,15 +5152,15 @@ var Flag$inboundSchema = z29.pipe(
5046
5152
  });
5047
5153
  })
5048
5154
  );
5049
- var Scenario$inboundSchema = inboundSchema(Scenario);
5050
- var CheckEnv$inboundSchema = inboundSchema(CheckEnv);
5051
- var ProductType$inboundSchema = inboundSchema(ProductType);
5052
- var FeatureType$inboundSchema = inboundSchema(FeatureType);
5053
- var IncludedUsage$inboundSchema = smartUnion([number2(), string4()]);
5054
- var CheckInterval$inboundSchema = inboundSchema(CheckInterval);
5055
- var CheckTierBehavior$inboundSchema = inboundSchema(CheckTierBehavior);
5056
- var UsageModel$inboundSchema = inboundSchema(UsageModel);
5057
- var ProductDisplay$inboundSchema = z29.pipe(
5155
+ var Scenario2$inboundSchema = inboundSchema(Scenario2);
5156
+ var CheckEnv2$inboundSchema = inboundSchema(CheckEnv2);
5157
+ var ProductType2$inboundSchema = inboundSchema(ProductType2);
5158
+ var FeatureType2$inboundSchema = inboundSchema(FeatureType2);
5159
+ var IncludedUsage2$inboundSchema = smartUnion([number2(), string4()]);
5160
+ var CheckInterval2$inboundSchema = inboundSchema(CheckInterval2);
5161
+ var CheckTierBehavior2$inboundSchema = inboundSchema(CheckTierBehavior2);
5162
+ var UsageModel2$inboundSchema = inboundSchema(UsageModel2);
5163
+ var ProductDisplay2$inboundSchema = z29.pipe(
5058
5164
  z29.object({
5059
5165
  primary_text: string4(),
5060
5166
  secondary_text: z29.optional(z29.nullable(string4()))
@@ -5066,12 +5172,12 @@ var ProductDisplay$inboundSchema = z29.pipe(
5066
5172
  });
5067
5173
  })
5068
5174
  );
5069
- var ConfigDuration$inboundSchema = inboundSchema(ConfigDuration);
5070
- var CheckRollover$inboundSchema = z29.pipe(
5175
+ var ConfigDuration2$inboundSchema = inboundSchema(ConfigDuration2);
5176
+ var CheckRollover2$inboundSchema = z29.pipe(
5071
5177
  z29.object({
5072
5178
  max: z29.optional(z29.nullable(number2())),
5073
5179
  max_percentage: z29.optional(z29.nullable(number2())),
5074
- duration: z29._default(ConfigDuration$inboundSchema, "month"),
5180
+ duration: z29._default(ConfigDuration2$inboundSchema, "month"),
5075
5181
  length: number2()
5076
5182
  }),
5077
5183
  z29.transform((v) => {
@@ -5080,15 +5186,15 @@ var CheckRollover$inboundSchema = z29.pipe(
5080
5186
  });
5081
5187
  })
5082
5188
  );
5083
- var CheckOnIncrease$inboundSchema = inboundSchema(CheckOnIncrease);
5084
- var CheckOnDecrease$inboundSchema = inboundSchema(CheckOnDecrease);
5085
- var CheckConfig$inboundSchema = z29.pipe(
5189
+ var CheckOnIncrease2$inboundSchema = inboundSchema(CheckOnIncrease2);
5190
+ var CheckOnDecrease2$inboundSchema = inboundSchema(CheckOnDecrease2);
5191
+ var CheckConfig2$inboundSchema = z29.pipe(
5086
5192
  z29.object({
5087
5193
  rollover: z29.optional(
5088
- z29.nullable(z29.lazy(() => CheckRollover$inboundSchema))
5194
+ z29.nullable(z29.lazy(() => CheckRollover2$inboundSchema))
5089
5195
  ),
5090
- on_increase: z29.optional(z29.nullable(CheckOnIncrease$inboundSchema)),
5091
- on_decrease: z29.optional(z29.nullable(CheckOnDecrease$inboundSchema))
5196
+ on_increase: z29.optional(z29.nullable(CheckOnIncrease2$inboundSchema)),
5197
+ on_decrease: z29.optional(z29.nullable(CheckOnDecrease2$inboundSchema))
5092
5198
  }),
5093
5199
  z29.transform((v) => {
5094
5200
  return remap(v, {
@@ -5097,29 +5203,29 @@ var CheckConfig$inboundSchema = z29.pipe(
5097
5203
  });
5098
5204
  })
5099
5205
  );
5100
- var CheckItem$inboundSchema = z29.pipe(
5206
+ var CheckItem2$inboundSchema = z29.pipe(
5101
5207
  z29.object({
5102
- type: z29.optional(z29.nullable(ProductType$inboundSchema)),
5208
+ type: z29.optional(z29.nullable(ProductType2$inboundSchema)),
5103
5209
  feature_id: z29.optional(z29.nullable(string4())),
5104
- feature_type: z29.optional(z29.nullable(FeatureType$inboundSchema)),
5210
+ feature_type: z29.optional(z29.nullable(FeatureType2$inboundSchema)),
5105
5211
  included_usage: z29.optional(
5106
5212
  z29.nullable(smartUnion([number2(), string4()]))
5107
5213
  ),
5108
- interval: z29.optional(z29.nullable(CheckInterval$inboundSchema)),
5214
+ interval: z29.optional(z29.nullable(CheckInterval2$inboundSchema)),
5109
5215
  interval_count: z29.optional(z29.nullable(number2())),
5110
5216
  price: z29.optional(z29.nullable(number2())),
5111
5217
  tiers: z29.optional(z29.nullable(z29.array(nullable(z29.any())))),
5112
- tier_behavior: z29.optional(z29.nullable(CheckTierBehavior$inboundSchema)),
5113
- usage_model: z29.optional(z29.nullable(UsageModel$inboundSchema)),
5218
+ tier_behavior: z29.optional(z29.nullable(CheckTierBehavior2$inboundSchema)),
5219
+ usage_model: z29.optional(z29.nullable(UsageModel2$inboundSchema)),
5114
5220
  billing_units: z29.optional(z29.nullable(number2())),
5115
5221
  reset_usage_when_enabled: z29.optional(z29.nullable(boolean2())),
5116
5222
  entity_feature_id: z29.optional(z29.nullable(string4())),
5117
5223
  display: z29.optional(
5118
- z29.nullable(z29.lazy(() => ProductDisplay$inboundSchema))
5224
+ z29.nullable(z29.lazy(() => ProductDisplay2$inboundSchema))
5119
5225
  ),
5120
5226
  quantity: z29.optional(z29.nullable(number2())),
5121
5227
  next_cycle_quantity: z29.optional(z29.nullable(number2())),
5122
- config: z29.optional(z29.nullable(z29.lazy(() => CheckConfig$inboundSchema)))
5228
+ config: z29.optional(z29.nullable(z29.lazy(() => CheckConfig2$inboundSchema)))
5123
5229
  }),
5124
5230
  z29.transform((v) => {
5125
5231
  return remap(v, {
@@ -5136,10 +5242,10 @@ var CheckItem$inboundSchema = z29.pipe(
5136
5242
  });
5137
5243
  })
5138
5244
  );
5139
- var FreeTrialDuration$inboundSchema = inboundSchema(FreeTrialDuration);
5140
- var CheckFreeTrial$inboundSchema = z29.pipe(
5245
+ var FreeTrialDuration2$inboundSchema = inboundSchema(FreeTrialDuration2);
5246
+ var CheckFreeTrial2$inboundSchema = z29.pipe(
5141
5247
  z29.object({
5142
- duration: FreeTrialDuration$inboundSchema,
5248
+ duration: FreeTrialDuration2$inboundSchema,
5143
5249
  length: number2(),
5144
5250
  unique_fingerprint: boolean2(),
5145
5251
  card_required: boolean2(),
@@ -5153,8 +5259,8 @@ var CheckFreeTrial$inboundSchema = z29.pipe(
5153
5259
  });
5154
5260
  })
5155
5261
  );
5156
- var ProductScenario$inboundSchema = inboundSchema(ProductScenario);
5157
- var Properties$inboundSchema = z29.pipe(
5262
+ var ProductScenario2$inboundSchema = inboundSchema(ProductScenario2);
5263
+ var Properties2$inboundSchema = z29.pipe(
5158
5264
  z29.object({
5159
5265
  is_free: boolean2(),
5160
5266
  is_one_off: boolean2(),
@@ -5171,22 +5277,22 @@ var Properties$inboundSchema = z29.pipe(
5171
5277
  });
5172
5278
  })
5173
5279
  );
5174
- var Product$inboundSchema = z29.pipe(
5280
+ var Product2$inboundSchema = z29.pipe(
5175
5281
  z29.object({
5176
5282
  id: string4(),
5177
5283
  name: string4(),
5178
5284
  group: nullable(string4()),
5179
- env: CheckEnv$inboundSchema,
5285
+ env: CheckEnv2$inboundSchema,
5180
5286
  is_add_on: boolean2(),
5181
5287
  is_default: boolean2(),
5182
5288
  archived: boolean2(),
5183
5289
  version: number2(),
5184
5290
  created_at: number2(),
5185
- items: z29.array(z29.lazy(() => CheckItem$inboundSchema)),
5186
- free_trial: nullable(z29.lazy(() => CheckFreeTrial$inboundSchema)),
5291
+ items: z29.array(z29.lazy(() => CheckItem2$inboundSchema)),
5292
+ free_trial: nullable(z29.lazy(() => CheckFreeTrial2$inboundSchema)),
5187
5293
  base_variant_id: nullable(string4()),
5188
- scenario: optional2(ProductScenario$inboundSchema),
5189
- properties: optional2(z29.lazy(() => Properties$inboundSchema))
5294
+ scenario: optional2(ProductScenario2$inboundSchema),
5295
+ properties: optional2(z29.lazy(() => Properties2$inboundSchema))
5190
5296
  }),
5191
5297
  z29.transform((v) => {
5192
5298
  return remap(v, {
@@ -5198,14 +5304,14 @@ var Product$inboundSchema = z29.pipe(
5198
5304
  });
5199
5305
  })
5200
5306
  );
5201
- var Preview$inboundSchema = z29.pipe(
5307
+ var Preview2$inboundSchema = z29.pipe(
5202
5308
  z29.object({
5203
- scenario: Scenario$inboundSchema,
5309
+ scenario: Scenario2$inboundSchema,
5204
5310
  title: string4(),
5205
5311
  message: string4(),
5206
5312
  feature_id: string4(),
5207
5313
  feature_name: string4(),
5208
- products: z29.array(z29.lazy(() => Product$inboundSchema))
5314
+ products: z29.array(z29.lazy(() => Product2$inboundSchema))
5209
5315
  }),
5210
5316
  z29.transform((v) => {
5211
5317
  return remap(v, {
@@ -5214,15 +5320,15 @@ var Preview$inboundSchema = z29.pipe(
5214
5320
  });
5215
5321
  })
5216
5322
  );
5217
- var CheckResponse$inboundSchema = z29.pipe(
5323
+ var CheckResponseBody2$inboundSchema = z29.pipe(
5218
5324
  z29.object({
5219
5325
  allowed: boolean2(),
5220
5326
  customer_id: string4(),
5221
5327
  entity_id: z29.optional(z29.nullable(string4())),
5222
5328
  required_balance: optional2(number2()),
5223
5329
  balance: nullable(Balance$inboundSchema),
5224
- flag: nullable(z29.lazy(() => Flag$inboundSchema)),
5225
- preview: optional2(z29.lazy(() => Preview$inboundSchema))
5330
+ flag: nullable(z29.lazy(() => Flag2$inboundSchema)),
5331
+ preview: optional2(z29.lazy(() => Preview2$inboundSchema))
5226
5332
  }),
5227
5333
  z29.transform((v) => {
5228
5334
  return remap(v, {
@@ -5232,6 +5338,249 @@ var CheckResponse$inboundSchema = z29.pipe(
5232
5338
  });
5233
5339
  })
5234
5340
  );
5341
+ var FlagType1$inboundSchema = inboundSchema(FlagType1);
5342
+ var CheckCreditSchema1$inboundSchema = z29.pipe(
5343
+ z29.object({
5344
+ metered_feature_id: string4(),
5345
+ credit_cost: number2()
5346
+ }),
5347
+ z29.transform((v) => {
5348
+ return remap(v, {
5349
+ "metered_feature_id": "meteredFeatureId",
5350
+ "credit_cost": "creditCost"
5351
+ });
5352
+ })
5353
+ );
5354
+ var FlagDisplay1$inboundSchema = z29.object({
5355
+ singular: z29.optional(z29.nullable(string4())),
5356
+ plural: z29.optional(z29.nullable(string4()))
5357
+ });
5358
+ var CheckFeature1$inboundSchema = z29.pipe(
5359
+ z29.object({
5360
+ id: string4(),
5361
+ name: string4(),
5362
+ type: FlagType1$inboundSchema,
5363
+ consumable: boolean2(),
5364
+ event_names: optional2(z29.array(string4())),
5365
+ credit_schema: optional2(
5366
+ z29.array(z29.lazy(() => CheckCreditSchema1$inboundSchema))
5367
+ ),
5368
+ display: optional2(z29.lazy(() => FlagDisplay1$inboundSchema)),
5369
+ archived: boolean2()
5370
+ }),
5371
+ z29.transform((v) => {
5372
+ return remap(v, {
5373
+ "event_names": "eventNames",
5374
+ "credit_schema": "creditSchema"
5375
+ });
5376
+ })
5377
+ );
5378
+ var Flag1$inboundSchema = z29.pipe(
5379
+ z29.object({
5380
+ id: string4(),
5381
+ plan_id: nullable(string4()),
5382
+ expires_at: nullable(number2()),
5383
+ feature_id: string4(),
5384
+ feature: optional2(z29.lazy(() => CheckFeature1$inboundSchema))
5385
+ }),
5386
+ z29.transform((v) => {
5387
+ return remap(v, {
5388
+ "plan_id": "planId",
5389
+ "expires_at": "expiresAt",
5390
+ "feature_id": "featureId"
5391
+ });
5392
+ })
5393
+ );
5394
+ var Scenario1$inboundSchema = inboundSchema(Scenario1);
5395
+ var CheckEnv1$inboundSchema = inboundSchema(CheckEnv1);
5396
+ var ProductType1$inboundSchema = inboundSchema(ProductType1);
5397
+ var FeatureType1$inboundSchema = inboundSchema(FeatureType1);
5398
+ var IncludedUsage1$inboundSchema = smartUnion([number2(), string4()]);
5399
+ var CheckInterval1$inboundSchema = inboundSchema(CheckInterval1);
5400
+ var CheckTierBehavior1$inboundSchema = inboundSchema(CheckTierBehavior1);
5401
+ var UsageModel1$inboundSchema = inboundSchema(UsageModel1);
5402
+ var ProductDisplay1$inboundSchema = z29.pipe(
5403
+ z29.object({
5404
+ primary_text: string4(),
5405
+ secondary_text: z29.optional(z29.nullable(string4()))
5406
+ }),
5407
+ z29.transform((v) => {
5408
+ return remap(v, {
5409
+ "primary_text": "primaryText",
5410
+ "secondary_text": "secondaryText"
5411
+ });
5412
+ })
5413
+ );
5414
+ var ConfigDuration1$inboundSchema = inboundSchema(ConfigDuration1);
5415
+ var CheckRollover1$inboundSchema = z29.pipe(
5416
+ z29.object({
5417
+ max: z29.optional(z29.nullable(number2())),
5418
+ max_percentage: z29.optional(z29.nullable(number2())),
5419
+ duration: z29._default(ConfigDuration1$inboundSchema, "month"),
5420
+ length: number2()
5421
+ }),
5422
+ z29.transform((v) => {
5423
+ return remap(v, {
5424
+ "max_percentage": "maxPercentage"
5425
+ });
5426
+ })
5427
+ );
5428
+ var CheckOnIncrease1$inboundSchema = inboundSchema(CheckOnIncrease1);
5429
+ var CheckOnDecrease1$inboundSchema = inboundSchema(CheckOnDecrease1);
5430
+ var CheckConfig1$inboundSchema = z29.pipe(
5431
+ z29.object({
5432
+ rollover: z29.optional(
5433
+ z29.nullable(z29.lazy(() => CheckRollover1$inboundSchema))
5434
+ ),
5435
+ on_increase: z29.optional(z29.nullable(CheckOnIncrease1$inboundSchema)),
5436
+ on_decrease: z29.optional(z29.nullable(CheckOnDecrease1$inboundSchema))
5437
+ }),
5438
+ z29.transform((v) => {
5439
+ return remap(v, {
5440
+ "on_increase": "onIncrease",
5441
+ "on_decrease": "onDecrease"
5442
+ });
5443
+ })
5444
+ );
5445
+ var CheckItem1$inboundSchema = z29.pipe(
5446
+ z29.object({
5447
+ type: z29.optional(z29.nullable(ProductType1$inboundSchema)),
5448
+ feature_id: z29.optional(z29.nullable(string4())),
5449
+ feature_type: z29.optional(z29.nullable(FeatureType1$inboundSchema)),
5450
+ included_usage: z29.optional(
5451
+ z29.nullable(smartUnion([number2(), string4()]))
5452
+ ),
5453
+ interval: z29.optional(z29.nullable(CheckInterval1$inboundSchema)),
5454
+ interval_count: z29.optional(z29.nullable(number2())),
5455
+ price: z29.optional(z29.nullable(number2())),
5456
+ tiers: z29.optional(z29.nullable(z29.array(nullable(z29.any())))),
5457
+ tier_behavior: z29.optional(z29.nullable(CheckTierBehavior1$inboundSchema)),
5458
+ usage_model: z29.optional(z29.nullable(UsageModel1$inboundSchema)),
5459
+ billing_units: z29.optional(z29.nullable(number2())),
5460
+ reset_usage_when_enabled: z29.optional(z29.nullable(boolean2())),
5461
+ entity_feature_id: z29.optional(z29.nullable(string4())),
5462
+ display: z29.optional(
5463
+ z29.nullable(z29.lazy(() => ProductDisplay1$inboundSchema))
5464
+ ),
5465
+ quantity: z29.optional(z29.nullable(number2())),
5466
+ next_cycle_quantity: z29.optional(z29.nullable(number2())),
5467
+ config: z29.optional(z29.nullable(z29.lazy(() => CheckConfig1$inboundSchema)))
5468
+ }),
5469
+ z29.transform((v) => {
5470
+ return remap(v, {
5471
+ "feature_id": "featureId",
5472
+ "feature_type": "featureType",
5473
+ "included_usage": "includedUsage",
5474
+ "interval_count": "intervalCount",
5475
+ "tier_behavior": "tierBehavior",
5476
+ "usage_model": "usageModel",
5477
+ "billing_units": "billingUnits",
5478
+ "reset_usage_when_enabled": "resetUsageWhenEnabled",
5479
+ "entity_feature_id": "entityFeatureId",
5480
+ "next_cycle_quantity": "nextCycleQuantity"
5481
+ });
5482
+ })
5483
+ );
5484
+ var FreeTrialDuration1$inboundSchema = inboundSchema(FreeTrialDuration1);
5485
+ var CheckFreeTrial1$inboundSchema = z29.pipe(
5486
+ z29.object({
5487
+ duration: FreeTrialDuration1$inboundSchema,
5488
+ length: number2(),
5489
+ unique_fingerprint: boolean2(),
5490
+ card_required: boolean2(),
5491
+ trial_available: z29.nullable(z29._default(boolean2(), true))
5492
+ }),
5493
+ z29.transform((v) => {
5494
+ return remap(v, {
5495
+ "unique_fingerprint": "uniqueFingerprint",
5496
+ "card_required": "cardRequired",
5497
+ "trial_available": "trialAvailable"
5498
+ });
5499
+ })
5500
+ );
5501
+ var ProductScenario1$inboundSchema = inboundSchema(ProductScenario1);
5502
+ var Properties1$inboundSchema = z29.pipe(
5503
+ z29.object({
5504
+ is_free: boolean2(),
5505
+ is_one_off: boolean2(),
5506
+ interval_group: z29.optional(z29.nullable(string4())),
5507
+ has_trial: z29.optional(z29.nullable(boolean2())),
5508
+ updateable: z29.optional(z29.nullable(boolean2()))
5509
+ }),
5510
+ z29.transform((v) => {
5511
+ return remap(v, {
5512
+ "is_free": "isFree",
5513
+ "is_one_off": "isOneOff",
5514
+ "interval_group": "intervalGroup",
5515
+ "has_trial": "hasTrial"
5516
+ });
5517
+ })
5518
+ );
5519
+ var Product1$inboundSchema = z29.pipe(
5520
+ z29.object({
5521
+ id: string4(),
5522
+ name: string4(),
5523
+ group: nullable(string4()),
5524
+ env: CheckEnv1$inboundSchema,
5525
+ is_add_on: boolean2(),
5526
+ is_default: boolean2(),
5527
+ archived: boolean2(),
5528
+ version: number2(),
5529
+ created_at: number2(),
5530
+ items: z29.array(z29.lazy(() => CheckItem1$inboundSchema)),
5531
+ free_trial: nullable(z29.lazy(() => CheckFreeTrial1$inboundSchema)),
5532
+ base_variant_id: nullable(string4()),
5533
+ scenario: optional2(ProductScenario1$inboundSchema),
5534
+ properties: optional2(z29.lazy(() => Properties1$inboundSchema))
5535
+ }),
5536
+ z29.transform((v) => {
5537
+ return remap(v, {
5538
+ "is_add_on": "isAddOn",
5539
+ "is_default": "isDefault",
5540
+ "created_at": "createdAt",
5541
+ "free_trial": "freeTrial",
5542
+ "base_variant_id": "baseVariantId"
5543
+ });
5544
+ })
5545
+ );
5546
+ var Preview1$inboundSchema = z29.pipe(
5547
+ z29.object({
5548
+ scenario: Scenario1$inboundSchema,
5549
+ title: string4(),
5550
+ message: string4(),
5551
+ feature_id: string4(),
5552
+ feature_name: string4(),
5553
+ products: z29.array(z29.lazy(() => Product1$inboundSchema))
5554
+ }),
5555
+ z29.transform((v) => {
5556
+ return remap(v, {
5557
+ "feature_id": "featureId",
5558
+ "feature_name": "featureName"
5559
+ });
5560
+ })
5561
+ );
5562
+ var CheckResponseBody1$inboundSchema = z29.pipe(
5563
+ z29.object({
5564
+ allowed: boolean2(),
5565
+ customer_id: string4(),
5566
+ entity_id: z29.optional(z29.nullable(string4())),
5567
+ required_balance: optional2(number2()),
5568
+ balance: nullable(Balance$inboundSchema),
5569
+ flag: nullable(z29.lazy(() => Flag1$inboundSchema)),
5570
+ preview: optional2(z29.lazy(() => Preview1$inboundSchema))
5571
+ }),
5572
+ z29.transform((v) => {
5573
+ return remap(v, {
5574
+ "customer_id": "customerId",
5575
+ "entity_id": "entityId",
5576
+ "required_balance": "requiredBalance"
5577
+ });
5578
+ })
5579
+ );
5580
+ var CheckResponse$inboundSchema = smartUnion([
5581
+ z29.lazy(() => CheckResponseBody1$inboundSchema),
5582
+ z29.lazy(() => CheckResponseBody2$inboundSchema)
5583
+ ]);
5235
5584
 
5236
5585
  // ../sdk/src/models/create-balance-op.ts
5237
5586
  var z30 = __toESM(require("zod/v4-mini"), 1);
@@ -6694,7 +7043,13 @@ var CustomerEnv = {
6694
7043
  Sandbox: "sandbox",
6695
7044
  Live: "live"
6696
7045
  };
6697
- var CustomerInterval = {
7046
+ var CustomerInterval2 = {
7047
+ Hour: "hour",
7048
+ Day: "day",
7049
+ Week: "week",
7050
+ Month: "month"
7051
+ };
7052
+ var CustomerInterval1 = {
6698
7053
  Hour: "hour",
6699
7054
  Day: "day",
6700
7055
  Week: "week",
@@ -6731,10 +7086,26 @@ var CustomerDurationType = {
6731
7086
  Forever: "forever"
6732
7087
  };
6733
7088
  var CustomerEnv$inboundSchema = inboundSchema(CustomerEnv);
6734
- var CustomerInterval$inboundSchema = inboundSchema(CustomerInterval);
6735
- var CustomerPurchaseLimit$inboundSchema = z37.pipe(
7089
+ var CustomerInterval2$inboundSchema = inboundSchema(CustomerInterval2);
7090
+ var CustomerPurchaseLimit2$inboundSchema = z37.pipe(
6736
7091
  z37.object({
6737
- interval: CustomerInterval$inboundSchema,
7092
+ interval: nullable(CustomerInterval2$inboundSchema),
7093
+ interval_count: nullable(number2()),
7094
+ limit: nullable(number2()),
7095
+ count: number2(),
7096
+ next_reset_at: number2()
7097
+ }),
7098
+ z37.transform((v) => {
7099
+ return remap(v, {
7100
+ "interval_count": "intervalCount",
7101
+ "next_reset_at": "nextResetAt"
7102
+ });
7103
+ })
7104
+ );
7105
+ var CustomerInterval1$inboundSchema = inboundSchema(CustomerInterval1);
7106
+ var CustomerPurchaseLimit1$inboundSchema = z37.pipe(
7107
+ z37.object({
7108
+ interval: CustomerInterval1$inboundSchema,
6738
7109
  interval_count: z37._default(number2(), 1),
6739
7110
  limit: number2()
6740
7111
  }),
@@ -6744,15 +7115,20 @@ var CustomerPurchaseLimit$inboundSchema = z37.pipe(
6744
7115
  });
6745
7116
  })
6746
7117
  );
7118
+ var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
7119
+ z37.lazy(() => CustomerPurchaseLimit2$inboundSchema),
7120
+ z37.lazy(() => CustomerPurchaseLimit1$inboundSchema)
7121
+ ]);
6747
7122
  var CustomerAutoTopup$inboundSchema = z37.pipe(
6748
7123
  z37.object({
6749
7124
  feature_id: string4(),
6750
7125
  enabled: z37._default(boolean2(), false),
6751
7126
  threshold: number2(),
6752
7127
  quantity: number2(),
6753
- purchase_limit: optional2(
6754
- z37.lazy(() => CustomerPurchaseLimit$inboundSchema)
6755
- ),
7128
+ purchase_limit: optional2(smartUnion([
7129
+ z37.lazy(() => CustomerPurchaseLimit2$inboundSchema),
7130
+ z37.lazy(() => CustomerPurchaseLimit1$inboundSchema)
7131
+ ])),
6756
7132
  invoice_mode: optional2(boolean2())
6757
7133
  }),
6758
7134
  z37.transform((v) => {
@@ -7206,9 +7582,16 @@ var FinalizeBalanceParams$outboundSchema = z43.pipe(
7206
7582
  });
7207
7583
  })
7208
7584
  );
7209
- var FinalizeLockResponse$inboundSchema = z43.object({
7585
+ var FinalizeLockResponseBody2$inboundSchema = z43.object({
7586
+ success: boolean2()
7587
+ });
7588
+ var FinalizeLockResponseBody1$inboundSchema = z43.object({
7210
7589
  success: boolean2()
7211
7590
  });
7591
+ var FinalizeLockResponse$inboundSchema = smartUnion([
7592
+ z43.lazy(() => FinalizeLockResponseBody1$inboundSchema),
7593
+ z43.lazy(() => FinalizeLockResponseBody2$inboundSchema)
7594
+ ]);
7212
7595
 
7213
7596
  // ../sdk/src/models/get-entity-op.ts
7214
7597
  var z44 = __toESM(require("zod/v4-mini"), 1);
@@ -8003,7 +8386,13 @@ var ListCustomersEnv = {
8003
8386
  Sandbox: "sandbox",
8004
8387
  Live: "live"
8005
8388
  };
8006
- var ListCustomersInterval = {
8389
+ var ListCustomersInterval2 = {
8390
+ Hour: "hour",
8391
+ Day: "day",
8392
+ Week: "week",
8393
+ Month: "month"
8394
+ };
8395
+ var ListCustomersInterval1 = {
8007
8396
  Hour: "hour",
8008
8397
  Day: "day",
8009
8398
  Week: "week",
@@ -8048,10 +8437,26 @@ var ListCustomersParams$outboundSchema = z48.pipe(
8048
8437
  })
8049
8438
  );
8050
8439
  var ListCustomersEnv$inboundSchema = inboundSchema(ListCustomersEnv);
8051
- var ListCustomersInterval$inboundSchema = inboundSchema(ListCustomersInterval);
8052
- var ListCustomersPurchaseLimit$inboundSchema = z48.pipe(
8440
+ var ListCustomersInterval2$inboundSchema = inboundSchema(ListCustomersInterval2);
8441
+ var ListCustomersPurchaseLimit2$inboundSchema = z48.pipe(
8442
+ z48.object({
8443
+ interval: nullable(ListCustomersInterval2$inboundSchema),
8444
+ interval_count: nullable(number2()),
8445
+ limit: nullable(number2()),
8446
+ count: number2(),
8447
+ next_reset_at: number2()
8448
+ }),
8449
+ z48.transform((v) => {
8450
+ return remap(v, {
8451
+ "interval_count": "intervalCount",
8452
+ "next_reset_at": "nextResetAt"
8453
+ });
8454
+ })
8455
+ );
8456
+ var ListCustomersInterval1$inboundSchema = inboundSchema(ListCustomersInterval1);
8457
+ var ListCustomersPurchaseLimit1$inboundSchema = z48.pipe(
8053
8458
  z48.object({
8054
- interval: ListCustomersInterval$inboundSchema,
8459
+ interval: ListCustomersInterval1$inboundSchema,
8055
8460
  interval_count: z48._default(number2(), 1),
8056
8461
  limit: number2()
8057
8462
  }),
@@ -8061,15 +8466,20 @@ var ListCustomersPurchaseLimit$inboundSchema = z48.pipe(
8061
8466
  });
8062
8467
  })
8063
8468
  );
8469
+ var ListCustomersPurchaseLimitUnion$inboundSchema = smartUnion([
8470
+ z48.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
8471
+ z48.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
8472
+ ]);
8064
8473
  var ListCustomersAutoTopup$inboundSchema = z48.pipe(
8065
8474
  z48.object({
8066
8475
  feature_id: string4(),
8067
8476
  enabled: z48._default(boolean2(), false),
8068
8477
  threshold: number2(),
8069
8478
  quantity: number2(),
8070
- purchase_limit: optional2(
8071
- z48.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
8072
- ),
8479
+ purchase_limit: optional2(smartUnion([
8480
+ z48.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
8481
+ z48.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
8482
+ ])),
8073
8483
  invoice_mode: optional2(boolean2())
8074
8484
  }),
8075
8485
  z48.transform((v) => {
@@ -9068,6 +9478,7 @@ var MultiAttachParams$outboundSchema = z52.pipe(
9068
9478
  "if_required"
9069
9479
  ),
9070
9480
  newBillingSubscription: z52.optional(z52.boolean()),
9481
+ enablePlanImmediately: z52.optional(z52.boolean()),
9071
9482
  customerData: z52.optional(CustomerData$outboundSchema),
9072
9483
  entityData: z52.optional(z52.lazy(() => MultiAttachEntityData$outboundSchema))
9073
9484
  }),
@@ -9081,6 +9492,7 @@ var MultiAttachParams$outboundSchema = z52.pipe(
9081
9492
  checkoutSessionParams: "checkout_session_params",
9082
9493
  redirectMode: "redirect_mode",
9083
9494
  newBillingSubscription: "new_billing_subscription",
9495
+ enablePlanImmediately: "enable_plan_immediately",
9084
9496
  customerData: "customer_data",
9085
9497
  entityData: "entity_data"
9086
9498
  });
@@ -9230,6 +9642,10 @@ var PreviewAttachCheckoutType = {
9230
9642
  StripeCheckout: "stripe_checkout",
9231
9643
  AutumnCheckout: "autumn_checkout"
9232
9644
  };
9645
+ var PreviewAttachStatus = {
9646
+ Complete: "complete",
9647
+ Incomplete: "incomplete"
9648
+ };
9233
9649
  var PreviewAttachFeatureQuantityRequest$outboundSchema = z54.pipe(
9234
9650
  z54.object({
9235
9651
  featureId: z54.string(),
@@ -9476,7 +9892,8 @@ var PreviewAttachParams$outboundSchema = z54.pipe(
9476
9892
  z54.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
9477
9893
  ),
9478
9894
  metadata: z54.optional(z54.record(z54.string(), z54.string())),
9479
- noBillingChanges: z54.optional(z54.boolean())
9895
+ noBillingChanges: z54.optional(z54.boolean()),
9896
+ enablePlanImmediately: z54.optional(z54.boolean())
9480
9897
  }),
9481
9898
  z54.transform((v) => {
9482
9899
  return remap(v, {
@@ -9497,7 +9914,8 @@ var PreviewAttachParams$outboundSchema = z54.pipe(
9497
9914
  processorSubscriptionId: "processor_subscription_id",
9498
9915
  carryOverBalances: "carry_over_balances",
9499
9916
  carryOverUsages: "carry_over_usages",
9500
- noBillingChanges: "no_billing_changes"
9917
+ noBillingChanges: "no_billing_changes",
9918
+ enablePlanImmediately: "enable_plan_immediately"
9501
9919
  });
9502
9920
  })
9503
9921
  );
@@ -9695,6 +10113,22 @@ var PreviewAttachOutgoing$inboundSchema = z54.pipe(
9695
10113
  })
9696
10114
  );
9697
10115
  var PreviewAttachCheckoutType$inboundSchema = inboundSchema(PreviewAttachCheckoutType);
10116
+ var PreviewAttachStatus$inboundSchema = inboundSchema(PreviewAttachStatus);
10117
+ var PreviewAttachTax$inboundSchema = z54.pipe(
10118
+ z54.object({
10119
+ total: number2(),
10120
+ amount_inclusive: number2(),
10121
+ amount_exclusive: number2(),
10122
+ currency: string4(),
10123
+ status: PreviewAttachStatus$inboundSchema
10124
+ }),
10125
+ z54.transform((v) => {
10126
+ return remap(v, {
10127
+ "amount_inclusive": "amountInclusive",
10128
+ "amount_exclusive": "amountExclusive"
10129
+ });
10130
+ })
10131
+ );
9698
10132
  var PreviewAttachResponse$inboundSchema = z54.pipe(
9699
10133
  z54.object({
9700
10134
  customer_id: string4(),
@@ -9709,7 +10143,8 @@ var PreviewAttachResponse$inboundSchema = z54.pipe(
9709
10143
  incoming: z54.array(z54.lazy(() => PreviewAttachIncoming$inboundSchema)),
9710
10144
  outgoing: z54.array(z54.lazy(() => PreviewAttachOutgoing$inboundSchema)),
9711
10145
  redirect_to_checkout: boolean2(),
9712
- checkout_type: nullable(PreviewAttachCheckoutType$inboundSchema)
10146
+ checkout_type: nullable(PreviewAttachCheckoutType$inboundSchema),
10147
+ tax: optional2(z54.lazy(() => PreviewAttachTax$inboundSchema))
9713
10148
  }),
9714
10149
  z54.transform((v) => {
9715
10150
  return remap(v, {
@@ -9796,6 +10231,10 @@ var PreviewMultiAttachCheckoutType = {
9796
10231
  StripeCheckout: "stripe_checkout",
9797
10232
  AutumnCheckout: "autumn_checkout"
9798
10233
  };
10234
+ var PreviewMultiAttachStatus = {
10235
+ Complete: "complete",
10236
+ Incomplete: "incomplete"
10237
+ };
9799
10238
  var PreviewMultiAttachPriceInterval$outboundSchema = z55.enum(PreviewMultiAttachPriceInterval);
9800
10239
  var PreviewMultiAttachBasePrice$outboundSchema = z55.pipe(
9801
10240
  z55.object({
@@ -10093,6 +10532,7 @@ var PreviewMultiAttachParams$outboundSchema = z55.pipe(
10093
10532
  "if_required"
10094
10533
  ),
10095
10534
  newBillingSubscription: z55.optional(z55.boolean()),
10535
+ enablePlanImmediately: z55.optional(z55.boolean()),
10096
10536
  customerData: z55.optional(CustomerData$outboundSchema),
10097
10537
  entityData: z55.optional(
10098
10538
  z55.lazy(() => PreviewMultiAttachEntityData$outboundSchema)
@@ -10108,6 +10548,7 @@ var PreviewMultiAttachParams$outboundSchema = z55.pipe(
10108
10548
  checkoutSessionParams: "checkout_session_params",
10109
10549
  redirectMode: "redirect_mode",
10110
10550
  newBillingSubscription: "new_billing_subscription",
10551
+ enablePlanImmediately: "enable_plan_immediately",
10111
10552
  customerData: "customer_data",
10112
10553
  entityData: "entity_data"
10113
10554
  });
@@ -10307,6 +10748,22 @@ var PreviewMultiAttachOutgoing$inboundSchema = z55.pipe(
10307
10748
  })
10308
10749
  );
10309
10750
  var PreviewMultiAttachCheckoutType$inboundSchema = inboundSchema(PreviewMultiAttachCheckoutType);
10751
+ var PreviewMultiAttachStatus$inboundSchema = inboundSchema(PreviewMultiAttachStatus);
10752
+ var PreviewMultiAttachTax$inboundSchema = z55.pipe(
10753
+ z55.object({
10754
+ total: number2(),
10755
+ amount_inclusive: number2(),
10756
+ amount_exclusive: number2(),
10757
+ currency: string4(),
10758
+ status: PreviewMultiAttachStatus$inboundSchema
10759
+ }),
10760
+ z55.transform((v) => {
10761
+ return remap(v, {
10762
+ "amount_inclusive": "amountInclusive",
10763
+ "amount_exclusive": "amountExclusive"
10764
+ });
10765
+ })
10766
+ );
10310
10767
  var PreviewMultiAttachResponse$inboundSchema = z55.pipe(
10311
10768
  z55.object({
10312
10769
  customer_id: string4(),
@@ -10321,7 +10778,8 @@ var PreviewMultiAttachResponse$inboundSchema = z55.pipe(
10321
10778
  incoming: z55.array(z55.lazy(() => PreviewMultiAttachIncoming$inboundSchema)),
10322
10779
  outgoing: z55.array(z55.lazy(() => PreviewMultiAttachOutgoing$inboundSchema)),
10323
10780
  redirect_to_checkout: boolean2(),
10324
- checkout_type: nullable(PreviewMultiAttachCheckoutType$inboundSchema)
10781
+ checkout_type: nullable(PreviewMultiAttachCheckoutType$inboundSchema),
10782
+ tax: optional2(z55.lazy(() => PreviewMultiAttachTax$inboundSchema))
10325
10783
  }),
10326
10784
  z55.transform((v) => {
10327
10785
  return remap(v, {
@@ -11175,7 +11633,8 @@ var SetupPaymentParams$outboundSchema = z58.pipe(
11175
11633
  z58.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
11176
11634
  ),
11177
11635
  metadata: z58.optional(z58.record(z58.string(), z58.string())),
11178
- noBillingChanges: z58.optional(z58.boolean())
11636
+ noBillingChanges: z58.optional(z58.boolean()),
11637
+ enablePlanImmediately: z58.optional(z58.boolean())
11179
11638
  }),
11180
11639
  z58.transform((v) => {
11181
11640
  return remap(v, {
@@ -11192,7 +11651,8 @@ var SetupPaymentParams$outboundSchema = z58.pipe(
11192
11651
  processorSubscriptionId: "processor_subscription_id",
11193
11652
  carryOverBalances: "carry_over_balances",
11194
11653
  carryOverUsages: "carry_over_usages",
11195
- noBillingChanges: "no_billing_changes"
11654
+ noBillingChanges: "no_billing_changes",
11655
+ enablePlanImmediately: "enable_plan_immediately"
11196
11656
  });
11197
11657
  })
11198
11658
  );
@@ -11244,7 +11704,24 @@ var TrackParams$outboundSchema = z59.pipe(
11244
11704
  });
11245
11705
  })
11246
11706
  );
11247
- var TrackResponse$inboundSchema = z59.pipe(
11707
+ var TrackResponseBody2$inboundSchema = z59.pipe(
11708
+ z59.object({
11709
+ customer_id: string4(),
11710
+ entity_id: optional2(string4()),
11711
+ event_name: optional2(string4()),
11712
+ value: number2(),
11713
+ balance: nullable(Balance$inboundSchema),
11714
+ balances: optional2(z59.record(z59.string(), Balance$inboundSchema))
11715
+ }),
11716
+ z59.transform((v) => {
11717
+ return remap(v, {
11718
+ "customer_id": "customerId",
11719
+ "entity_id": "entityId",
11720
+ "event_name": "eventName"
11721
+ });
11722
+ })
11723
+ );
11724
+ var TrackResponseBody1$inboundSchema = z59.pipe(
11248
11725
  z59.object({
11249
11726
  customer_id: string4(),
11250
11727
  entity_id: optional2(string4()),
@@ -11261,6 +11738,10 @@ var TrackResponse$inboundSchema = z59.pipe(
11261
11738
  });
11262
11739
  })
11263
11740
  );
11741
+ var TrackResponse$inboundSchema = smartUnion([
11742
+ z59.lazy(() => TrackResponseBody1$inboundSchema),
11743
+ z59.lazy(() => TrackResponseBody2$inboundSchema)
11744
+ ]);
11264
11745
 
11265
11746
  // ../sdk/src/models/update-balance-op.ts
11266
11747
  var z60 = __toESM(require("zod/v4-mini"), 1);
@@ -11323,7 +11804,13 @@ var UpdateCustomerEnv = {
11323
11804
  Sandbox: "sandbox",
11324
11805
  Live: "live"
11325
11806
  };
11326
- var UpdateCustomerIntervalResponse = {
11807
+ var UpdateCustomerIntervalResponse2 = {
11808
+ Hour: "hour",
11809
+ Day: "day",
11810
+ Week: "week",
11811
+ Month: "month"
11812
+ };
11813
+ var UpdateCustomerIntervalResponse1 = {
11327
11814
  Hour: "hour",
11328
11815
  Day: "day",
11329
11816
  Week: "week",
@@ -11480,10 +11967,26 @@ var UpdateCustomerParams$outboundSchema = z61.pipe(
11480
11967
  })
11481
11968
  );
11482
11969
  var UpdateCustomerEnv$inboundSchema = inboundSchema(UpdateCustomerEnv);
11483
- var UpdateCustomerIntervalResponse$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse);
11484
- var UpdateCustomerPurchaseLimitResponse$inboundSchema = z61.pipe(
11970
+ var UpdateCustomerIntervalResponse2$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse2);
11971
+ var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z61.pipe(
11485
11972
  z61.object({
11486
- interval: UpdateCustomerIntervalResponse$inboundSchema,
11973
+ interval: nullable(UpdateCustomerIntervalResponse2$inboundSchema),
11974
+ interval_count: nullable(number2()),
11975
+ limit: nullable(number2()),
11976
+ count: number2(),
11977
+ next_reset_at: number2()
11978
+ }),
11979
+ z61.transform((v) => {
11980
+ return remap(v, {
11981
+ "interval_count": "intervalCount",
11982
+ "next_reset_at": "nextResetAt"
11983
+ });
11984
+ })
11985
+ );
11986
+ var UpdateCustomerIntervalResponse1$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse1);
11987
+ var UpdateCustomerPurchaseLimitResponse1$inboundSchema = z61.pipe(
11988
+ z61.object({
11989
+ interval: UpdateCustomerIntervalResponse1$inboundSchema,
11487
11990
  interval_count: z61._default(number2(), 1),
11488
11991
  limit: number2()
11489
11992
  }),
@@ -11493,15 +11996,20 @@ var UpdateCustomerPurchaseLimitResponse$inboundSchema = z61.pipe(
11493
11996
  });
11494
11997
  })
11495
11998
  );
11999
+ var UpdateCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
12000
+ z61.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
12001
+ z61.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
12002
+ ]);
11496
12003
  var UpdateCustomerAutoTopupResponse$inboundSchema = z61.pipe(
11497
12004
  z61.object({
11498
12005
  feature_id: string4(),
11499
12006
  enabled: z61._default(boolean2(), false),
11500
12007
  threshold: number2(),
11501
12008
  quantity: number2(),
11502
- purchase_limit: optional2(
11503
- z61.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
11504
- ),
12009
+ purchase_limit: optional2(smartUnion([
12010
+ z61.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
12011
+ z61.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
12012
+ ])),
11505
12013
  invoice_mode: optional2(boolean2())
11506
12014
  }),
11507
12015
  z61.transform((v) => {
@@ -12745,6 +13253,7 @@ async function $do(client, request, options) {
12745
13253
  const response = doResult.value;
12746
13254
  const [result] = await match(
12747
13255
  json(200, CheckResponse$inboundSchema),
13256
+ json(202, CheckResponse$inboundSchema),
12748
13257
  fail("4XX"),
12749
13258
  fail("5XX")
12750
13259
  )(response, req);
@@ -12823,6 +13332,7 @@ async function $do2(client, request, options) {
12823
13332
  const response = doResult.value;
12824
13333
  const [result] = await match(
12825
13334
  json(200, TrackResponse$inboundSchema),
13335
+ json(202, TrackResponse$inboundSchema),
12826
13336
  fail("4XX"),
12827
13337
  fail("5XX")
12828
13338
  )(response, req);
@@ -13662,6 +14172,7 @@ async function $do5(client, request, options) {
13662
14172
  const response = doResult.value;
13663
14173
  const [result] = await match(
13664
14174
  json(200, FinalizeLockResponse$inboundSchema),
14175
+ json(202, FinalizeLockResponse$inboundSchema),
13665
14176
  fail("4XX"),
13666
14177
  fail("5XX")
13667
14178
  )(response, req);
@@ -14464,6 +14975,7 @@ var Billing = class extends ClientSDK {
14464
14975
  * @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
14465
14976
  * @param metadata - Key-value metadata to attach to the Stripe subscription, invoice, and checkout session created during this attach flow. Keys prefixed with 'autumn_' are reserved and will be stripped. (optional)
14466
14977
  * @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
14978
+ * @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. (optional)
14467
14979
  *
14468
14980
  * @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
14469
14981
  */
@@ -14507,6 +15019,7 @@ var Billing = class extends ClientSDK {
14507
15019
  * @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
14508
15020
  * @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
14509
15021
  * @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
15022
+ * @param enablePlanImmediately - If true, the cusProducts are activated immediately even when payment is pending via Stripe checkout. (optional)
14510
15023
  *
14511
15024
  * @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
14512
15025
  */
@@ -14550,6 +15063,7 @@ var Billing = class extends ClientSDK {
14550
15063
  * @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
14551
15064
  * @param metadata - Key-value metadata to attach to the Stripe subscription, invoice, and checkout session created during this attach flow. Keys prefixed with 'autumn_' are reserved and will be stripped. (optional)
14552
15065
  * @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
15066
+ * @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. (optional)
14553
15067
  *
14554
15068
  * @returns A preview response with line items, totals, and effective dates for the proposed changes.
14555
15069
  */
@@ -14581,6 +15095,7 @@ var Billing = class extends ClientSDK {
14581
15095
  * @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
14582
15096
  * @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
14583
15097
  * @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
15098
+ * @param enablePlanImmediately - If true, the cusProducts are activated immediately even when payment is pending via Stripe checkout. (optional)
14584
15099
  *
14585
15100
  * @returns A preview response with line items, totals, and effective dates for the proposed multi-plan attachment.
14586
15101
  */
@@ -17060,7 +17575,7 @@ var Autumn = class extends ClientSDK {
17060
17575
  * @param lock - Reserve units of a feature upfront by passing a lock_id, then call balances.finalize to confirm or release the hold. (optional)
17061
17576
  * @param withPreview - If true, includes upgrade/upsell information in the response when access is denied. Useful for displaying paywalls. (optional)
17062
17577
  *
17063
- * @returns Whether access is allowed, plus the current balance for that feature.
17578
+ * @returns Whether access is allowed, plus the current balance for that feature. If Autumn is experiencing degraded service from a downstream provider, the API may return 202 and allow access fail-open.
17064
17579
  */
17065
17580
  async check(request, options) {
17066
17581
  return unwrapAsync(check(
@@ -17093,7 +17608,7 @@ var Autumn = class extends ClientSDK {
17093
17608
  * @param value - The amount of usage to record. Defaults to 1. Use negative values to credit balance (e.g., when removing a seat). (optional)
17094
17609
  * @param properties - Additional properties to attach to this usage event. (optional)
17095
17610
  *
17096
- * @returns The usage value recorded, with either a single updated balance or a map of updated balances.
17611
+ * @returns The usage value recorded, with either a single updated balance or a map of updated balances. If Autumn is experiencing degraded service from a downstream provider, the API may return 202 after accepting the event for replay so it can be tracked as soon as the service is restored.
17097
17612
  */
17098
17613
  async track(request, options) {
17099
17614
  return unwrapAsync(track(