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
@@ -249,7 +249,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
249
249
  carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
250
250
  carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
251
251
  metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
252
- no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
252
+ no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
253
+ enable_plan_immediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
253
254
  });
254
255
  var closedEnumSchema2 = import_v42.z.any();
255
256
  var openEnumSchema = import_v42.z.any();
@@ -335,7 +336,8 @@ var attachParamsSchema = import_v42.z.object({
335
336
  carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
336
337
  carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
337
338
  metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
338
- noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
339
+ noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
340
+ enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
339
341
  });
340
342
  var attachCodeSchema = openEnumSchema;
341
343
  var attachRequiredActionSchema = import_v42.z.object({
@@ -906,6 +908,7 @@ var multiAttachParamsSchema = import_v47.z.object({
906
908
  checkoutSessionParams: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
907
909
  redirectMode: import_v47.z.union([multiAttachRedirectModeSchema, import_v47.z.undefined()]).optional(),
908
910
  newBillingSubscription: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
911
+ enablePlanImmediately: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
909
912
  customerData: import_v47.z.union([customerDataSchema, import_v47.z.undefined()]).optional(),
910
913
  entityData: import_v47.z.union([multiAttachEntityDataSchema, import_v47.z.undefined()]).optional()
911
914
  });
@@ -932,6 +935,7 @@ var multiAttachParamsOutboundSchema = import_v47.z.object({
932
935
  checkout_session_params: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
933
936
  redirect_mode: import_v47.z.string(),
934
937
  new_billing_subscription: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
938
+ enable_plan_immediately: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
935
939
  customer_data: import_v47.z.union([customerDataOutboundSchema, import_v47.z.undefined()]).optional(),
936
940
  entity_data: import_v47.z.union([multiAttachEntityDataOutboundSchema, import_v47.z.undefined()]).optional()
937
941
  });
@@ -1165,7 +1169,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
1165
1169
  carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
1166
1170
  carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
1167
1171
  metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
1168
- no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
1172
+ no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
1173
+ enable_plan_immediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
1169
1174
  });
1170
1175
  var closedEnumSchema5 = import_v49.z.any();
1171
1176
  var planSchema = import_v49.z.any();
@@ -1252,7 +1257,8 @@ var previewAttachParamsSchema = import_v49.z.object({
1252
1257
  carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
1253
1258
  carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
1254
1259
  metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
1255
- noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
1260
+ noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
1261
+ enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
1256
1262
  });
1257
1263
  var previewAttachIncomingSchema = import_v49.z.object({
1258
1264
  planId: import_v49.z.string(),
@@ -1271,6 +1277,14 @@ var previewAttachOutgoingSchema = import_v49.z.object({
1271
1277
  expiresAt: import_v49.z.number().nullable()
1272
1278
  });
1273
1279
  var previewAttachCheckoutTypeSchema = openEnumSchema4;
1280
+ var previewAttachStatusSchema = openEnumSchema4;
1281
+ var previewAttachTaxSchema = import_v49.z.object({
1282
+ total: import_v49.z.number(),
1283
+ amountInclusive: import_v49.z.number(),
1284
+ amountExclusive: import_v49.z.number(),
1285
+ currency: import_v49.z.string(),
1286
+ status: previewAttachStatusSchema
1287
+ });
1274
1288
  var previewAttachResponseSchema = import_v49.z.object({
1275
1289
  customerId: import_v49.z.string(),
1276
1290
  lineItems: import_v49.z.array(previewAttachLineItemSchema),
@@ -1282,7 +1296,8 @@ var previewAttachResponseSchema = import_v49.z.object({
1282
1296
  incoming: import_v49.z.array(previewAttachIncomingSchema),
1283
1297
  outgoing: import_v49.z.array(previewAttachOutgoingSchema),
1284
1298
  redirectToCheckout: import_v49.z.boolean(),
1285
- checkoutType: previewAttachCheckoutTypeSchema.nullable()
1299
+ checkoutType: previewAttachCheckoutTypeSchema.nullable(),
1300
+ tax: import_v49.z.union([previewAttachTaxSchema, import_v49.z.undefined()]).optional()
1286
1301
  });
1287
1302
 
1288
1303
  // src/generated/previewMultiAttachSchemas.ts
@@ -1596,6 +1611,7 @@ var previewMultiAttachParamsSchema = import_v410.z.object({
1596
1611
  checkoutSessionParams: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
1597
1612
  redirectMode: import_v410.z.union([previewMultiAttachRedirectModeSchema, import_v410.z.undefined()]).optional(),
1598
1613
  newBillingSubscription: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
1614
+ enablePlanImmediately: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
1599
1615
  customerData: import_v410.z.union([customerDataSchema2, import_v410.z.undefined()]).optional(),
1600
1616
  entityData: import_v410.z.union([previewMultiAttachEntityDataSchema, import_v410.z.undefined()]).optional()
1601
1617
  });
@@ -1616,6 +1632,14 @@ var previewMultiAttachOutgoingSchema = import_v410.z.object({
1616
1632
  expiresAt: import_v410.z.number().nullable()
1617
1633
  });
1618
1634
  var previewMultiAttachCheckoutTypeSchema = openEnumSchema5;
1635
+ var previewMultiAttachStatusSchema = openEnumSchema5;
1636
+ var previewMultiAttachTaxSchema = import_v410.z.object({
1637
+ total: import_v410.z.number(),
1638
+ amountInclusive: import_v410.z.number(),
1639
+ amountExclusive: import_v410.z.number(),
1640
+ currency: import_v410.z.string(),
1641
+ status: previewMultiAttachStatusSchema
1642
+ });
1619
1643
  var previewMultiAttachResponseSchema = import_v410.z.object({
1620
1644
  customerId: import_v410.z.string(),
1621
1645
  lineItems: import_v410.z.array(previewMultiAttachLineItemSchema),
@@ -1627,7 +1651,8 @@ var previewMultiAttachResponseSchema = import_v410.z.object({
1627
1651
  incoming: import_v410.z.array(previewMultiAttachIncomingSchema),
1628
1652
  outgoing: import_v410.z.array(previewMultiAttachOutgoingSchema),
1629
1653
  redirectToCheckout: import_v410.z.boolean(),
1630
- checkoutType: previewMultiAttachCheckoutTypeSchema.nullable()
1654
+ checkoutType: previewMultiAttachCheckoutTypeSchema.nullable(),
1655
+ tax: import_v410.z.union([previewMultiAttachTaxSchema, import_v410.z.undefined()]).optional()
1631
1656
  });
1632
1657
  var previewMultiAttachParamsOutboundSchema = import_v410.z.object({
1633
1658
  customer_id: import_v410.z.string(),
@@ -1643,6 +1668,7 @@ var previewMultiAttachParamsOutboundSchema = import_v410.z.object({
1643
1668
  checkout_session_params: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
1644
1669
  redirect_mode: import_v410.z.string(),
1645
1670
  new_billing_subscription: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
1671
+ enable_plan_immediately: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
1646
1672
  customer_data: import_v410.z.union([customerDataOutboundSchema2, import_v410.z.undefined()]).optional(),
1647
1673
  entity_data: import_v410.z.union([previewMultiAttachEntityDataOutboundSchema, import_v410.z.undefined()]).optional()
1648
1674
  });
@@ -2092,7 +2118,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
2092
2118
  carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
2093
2119
  carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
2094
2120
  metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
2095
- no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
2121
+ no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
2122
+ enable_plan_immediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
2096
2123
  });
2097
2124
  var closedEnumSchema8 = import_v413.z.any();
2098
2125
  var setupPaymentPriceIntervalSchema = closedEnumSchema8;
@@ -2171,7 +2198,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
2171
2198
  carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
2172
2199
  carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
2173
2200
  metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
2174
- noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
2201
+ noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
2202
+ enablePlanImmediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
2175
2203
  });
2176
2204
 
2177
2205
  // src/generated/updateSubscriptionSchemas.ts
@@ -2674,8 +2702,8 @@ var SDK_METADATA = {
2674
2702
  language: "typescript",
2675
2703
  openapiDocVersion: "2.2.0",
2676
2704
  sdkVersion: "0.10.17",
2677
- genVersion: "2.881.4",
2678
- userAgent: "speakeasy-sdk/typescript 0.10.17 2.881.4 2.2.0 @useautumn/sdk"
2705
+ genVersion: "2.881.16",
2706
+ userAgent: "speakeasy-sdk/typescript 0.10.17 2.881.16 2.2.0 @useautumn/sdk"
2679
2707
  };
2680
2708
 
2681
2709
  // ../sdk/src/lib/http.ts
@@ -4305,7 +4333,8 @@ var AttachParams$outboundSchema = z26.pipe(
4305
4333
  z26.lazy(() => AttachCarryOverUsages$outboundSchema)
4306
4334
  ),
4307
4335
  metadata: z26.optional(z26.record(z26.string(), z26.string())),
4308
- noBillingChanges: z26.optional(z26.boolean())
4336
+ noBillingChanges: z26.optional(z26.boolean()),
4337
+ enablePlanImmediately: z26.optional(z26.boolean())
4309
4338
  }),
4310
4339
  z26.transform((v) => {
4311
4340
  return remap(v, {
@@ -4326,7 +4355,8 @@ var AttachParams$outboundSchema = z26.pipe(
4326
4355
  processorSubscriptionId: "processor_subscription_id",
4327
4356
  carryOverBalances: "carry_over_balances",
4328
4357
  carryOverUsages: "carry_over_usages",
4329
- noBillingChanges: "no_billing_changes"
4358
+ noBillingChanges: "no_billing_changes",
4359
+ enablePlanImmediately: "enable_plan_immediately"
4330
4360
  });
4331
4361
  })
4332
4362
  );
@@ -4878,31 +4908,31 @@ var BillingUpdateResponse$inboundSchema = z28.pipe(
4878
4908
 
4879
4909
  // ../sdk/src/models/check-op.ts
4880
4910
  var z29 = __toESM(require("zod/v4-mini"), 1);
4881
- var FlagType = {
4911
+ var FlagType2 = {
4882
4912
  Boolean: "boolean",
4883
4913
  Metered: "metered",
4884
4914
  CreditSystem: "credit_system"
4885
4915
  };
4886
- var Scenario = {
4916
+ var Scenario2 = {
4887
4917
  UsageLimit: "usage_limit",
4888
4918
  FeatureFlag: "feature_flag"
4889
4919
  };
4890
- var CheckEnv = {
4920
+ var CheckEnv2 = {
4891
4921
  Sandbox: "sandbox",
4892
4922
  Live: "live"
4893
4923
  };
4894
- var ProductType = {
4924
+ var ProductType2 = {
4895
4925
  Feature: "feature",
4896
4926
  PricedFeature: "priced_feature",
4897
4927
  Price: "price"
4898
4928
  };
4899
- var FeatureType = {
4929
+ var FeatureType2 = {
4900
4930
  SingleUse: "single_use",
4901
4931
  ContinuousUse: "continuous_use",
4902
4932
  Boolean: "boolean",
4903
4933
  Static: "static"
4904
4934
  };
4905
- var CheckInterval = {
4935
+ var CheckInterval2 = {
4906
4936
  Minute: "minute",
4907
4937
  Hour: "hour",
4908
4938
  Day: "day",
@@ -4912,37 +4942,113 @@ var CheckInterval = {
4912
4942
  SemiAnnual: "semi_annual",
4913
4943
  Year: "year"
4914
4944
  };
4915
- var CheckTierBehavior = {
4945
+ var CheckTierBehavior2 = {
4916
4946
  Graduated: "graduated",
4917
4947
  Volume: "volume"
4918
4948
  };
4919
- var UsageModel = {
4949
+ var UsageModel2 = {
4920
4950
  Prepaid: "prepaid",
4921
4951
  PayPerUse: "pay_per_use"
4922
4952
  };
4923
- var ConfigDuration = {
4953
+ var ConfigDuration2 = {
4924
4954
  Month: "month",
4925
4955
  Forever: "forever"
4926
4956
  };
4927
- var CheckOnIncrease = {
4957
+ var CheckOnIncrease2 = {
4928
4958
  BillImmediately: "bill_immediately",
4929
4959
  ProrateImmediately: "prorate_immediately",
4930
4960
  ProrateNextCycle: "prorate_next_cycle",
4931
4961
  BillNextCycle: "bill_next_cycle"
4932
4962
  };
4933
- var CheckOnDecrease = {
4963
+ var CheckOnDecrease2 = {
4934
4964
  Prorate: "prorate",
4935
4965
  ProrateImmediately: "prorate_immediately",
4936
4966
  ProrateNextCycle: "prorate_next_cycle",
4937
4967
  None: "none",
4938
4968
  NoProrations: "no_prorations"
4939
4969
  };
4940
- var FreeTrialDuration = {
4970
+ var FreeTrialDuration2 = {
4941
4971
  Day: "day",
4942
4972
  Month: "month",
4943
4973
  Year: "year"
4944
4974
  };
4945
- var ProductScenario = {
4975
+ var ProductScenario2 = {
4976
+ Scheduled: "scheduled",
4977
+ Active: "active",
4978
+ New: "new",
4979
+ Renew: "renew",
4980
+ Upgrade: "upgrade",
4981
+ UpdatePrepaidQuantity: "update_prepaid_quantity",
4982
+ Downgrade: "downgrade",
4983
+ Cancel: "cancel",
4984
+ Expired: "expired",
4985
+ PastDue: "past_due"
4986
+ };
4987
+ var FlagType1 = {
4988
+ Boolean: "boolean",
4989
+ Metered: "metered",
4990
+ CreditSystem: "credit_system"
4991
+ };
4992
+ var Scenario1 = {
4993
+ UsageLimit: "usage_limit",
4994
+ FeatureFlag: "feature_flag"
4995
+ };
4996
+ var CheckEnv1 = {
4997
+ Sandbox: "sandbox",
4998
+ Live: "live"
4999
+ };
5000
+ var ProductType1 = {
5001
+ Feature: "feature",
5002
+ PricedFeature: "priced_feature",
5003
+ Price: "price"
5004
+ };
5005
+ var FeatureType1 = {
5006
+ SingleUse: "single_use",
5007
+ ContinuousUse: "continuous_use",
5008
+ Boolean: "boolean",
5009
+ Static: "static"
5010
+ };
5011
+ var CheckInterval1 = {
5012
+ Minute: "minute",
5013
+ Hour: "hour",
5014
+ Day: "day",
5015
+ Week: "week",
5016
+ Month: "month",
5017
+ Quarter: "quarter",
5018
+ SemiAnnual: "semi_annual",
5019
+ Year: "year"
5020
+ };
5021
+ var CheckTierBehavior1 = {
5022
+ Graduated: "graduated",
5023
+ Volume: "volume"
5024
+ };
5025
+ var UsageModel1 = {
5026
+ Prepaid: "prepaid",
5027
+ PayPerUse: "pay_per_use"
5028
+ };
5029
+ var ConfigDuration1 = {
5030
+ Month: "month",
5031
+ Forever: "forever"
5032
+ };
5033
+ var CheckOnIncrease1 = {
5034
+ BillImmediately: "bill_immediately",
5035
+ ProrateImmediately: "prorate_immediately",
5036
+ ProrateNextCycle: "prorate_next_cycle",
5037
+ BillNextCycle: "bill_next_cycle"
5038
+ };
5039
+ var CheckOnDecrease1 = {
5040
+ Prorate: "prorate",
5041
+ ProrateImmediately: "prorate_immediately",
5042
+ ProrateNextCycle: "prorate_next_cycle",
5043
+ None: "none",
5044
+ NoProrations: "no_prorations"
5045
+ };
5046
+ var FreeTrialDuration1 = {
5047
+ Day: "day",
5048
+ Month: "month",
5049
+ Year: "year"
5050
+ };
5051
+ var ProductScenario1 = {
4946
5052
  Scheduled: "scheduled",
4947
5053
  Active: "active",
4948
5054
  New: "new",
@@ -4989,8 +5095,8 @@ var CheckParams$outboundSchema = z29.pipe(
4989
5095
  });
4990
5096
  })
4991
5097
  );
4992
- var FlagType$inboundSchema = inboundSchema(FlagType);
4993
- var CheckCreditSchema$inboundSchema = z29.pipe(
5098
+ var FlagType2$inboundSchema = inboundSchema(FlagType2);
5099
+ var CheckCreditSchema2$inboundSchema = z29.pipe(
4994
5100
  z29.object({
4995
5101
  metered_feature_id: string4(),
4996
5102
  credit_cost: number2()
@@ -5002,21 +5108,21 @@ var CheckCreditSchema$inboundSchema = z29.pipe(
5002
5108
  });
5003
5109
  })
5004
5110
  );
5005
- var FlagDisplay$inboundSchema = z29.object({
5111
+ var FlagDisplay2$inboundSchema = z29.object({
5006
5112
  singular: z29.optional(z29.nullable(string4())),
5007
5113
  plural: z29.optional(z29.nullable(string4()))
5008
5114
  });
5009
- var CheckFeature$inboundSchema = z29.pipe(
5115
+ var CheckFeature2$inboundSchema = z29.pipe(
5010
5116
  z29.object({
5011
5117
  id: string4(),
5012
5118
  name: string4(),
5013
- type: FlagType$inboundSchema,
5119
+ type: FlagType2$inboundSchema,
5014
5120
  consumable: boolean2(),
5015
5121
  event_names: optional2(z29.array(string4())),
5016
5122
  credit_schema: optional2(
5017
- z29.array(z29.lazy(() => CheckCreditSchema$inboundSchema))
5123
+ z29.array(z29.lazy(() => CheckCreditSchema2$inboundSchema))
5018
5124
  ),
5019
- display: optional2(z29.lazy(() => FlagDisplay$inboundSchema)),
5125
+ display: optional2(z29.lazy(() => FlagDisplay2$inboundSchema)),
5020
5126
  archived: boolean2()
5021
5127
  }),
5022
5128
  z29.transform((v) => {
@@ -5026,13 +5132,13 @@ var CheckFeature$inboundSchema = z29.pipe(
5026
5132
  });
5027
5133
  })
5028
5134
  );
5029
- var Flag$inboundSchema = z29.pipe(
5135
+ var Flag2$inboundSchema = z29.pipe(
5030
5136
  z29.object({
5031
5137
  id: string4(),
5032
5138
  plan_id: nullable(string4()),
5033
5139
  expires_at: nullable(number2()),
5034
5140
  feature_id: string4(),
5035
- feature: optional2(z29.lazy(() => CheckFeature$inboundSchema))
5141
+ feature: optional2(z29.lazy(() => CheckFeature2$inboundSchema))
5036
5142
  }),
5037
5143
  z29.transform((v) => {
5038
5144
  return remap(v, {
@@ -5042,15 +5148,15 @@ var Flag$inboundSchema = z29.pipe(
5042
5148
  });
5043
5149
  })
5044
5150
  );
5045
- var Scenario$inboundSchema = inboundSchema(Scenario);
5046
- var CheckEnv$inboundSchema = inboundSchema(CheckEnv);
5047
- var ProductType$inboundSchema = inboundSchema(ProductType);
5048
- var FeatureType$inboundSchema = inboundSchema(FeatureType);
5049
- var IncludedUsage$inboundSchema = smartUnion([number2(), string4()]);
5050
- var CheckInterval$inboundSchema = inboundSchema(CheckInterval);
5051
- var CheckTierBehavior$inboundSchema = inboundSchema(CheckTierBehavior);
5052
- var UsageModel$inboundSchema = inboundSchema(UsageModel);
5053
- var ProductDisplay$inboundSchema = z29.pipe(
5151
+ var Scenario2$inboundSchema = inboundSchema(Scenario2);
5152
+ var CheckEnv2$inboundSchema = inboundSchema(CheckEnv2);
5153
+ var ProductType2$inboundSchema = inboundSchema(ProductType2);
5154
+ var FeatureType2$inboundSchema = inboundSchema(FeatureType2);
5155
+ var IncludedUsage2$inboundSchema = smartUnion([number2(), string4()]);
5156
+ var CheckInterval2$inboundSchema = inboundSchema(CheckInterval2);
5157
+ var CheckTierBehavior2$inboundSchema = inboundSchema(CheckTierBehavior2);
5158
+ var UsageModel2$inboundSchema = inboundSchema(UsageModel2);
5159
+ var ProductDisplay2$inboundSchema = z29.pipe(
5054
5160
  z29.object({
5055
5161
  primary_text: string4(),
5056
5162
  secondary_text: z29.optional(z29.nullable(string4()))
@@ -5062,12 +5168,12 @@ var ProductDisplay$inboundSchema = z29.pipe(
5062
5168
  });
5063
5169
  })
5064
5170
  );
5065
- var ConfigDuration$inboundSchema = inboundSchema(ConfigDuration);
5066
- var CheckRollover$inboundSchema = z29.pipe(
5171
+ var ConfigDuration2$inboundSchema = inboundSchema(ConfigDuration2);
5172
+ var CheckRollover2$inboundSchema = z29.pipe(
5067
5173
  z29.object({
5068
5174
  max: z29.optional(z29.nullable(number2())),
5069
5175
  max_percentage: z29.optional(z29.nullable(number2())),
5070
- duration: z29._default(ConfigDuration$inboundSchema, "month"),
5176
+ duration: z29._default(ConfigDuration2$inboundSchema, "month"),
5071
5177
  length: number2()
5072
5178
  }),
5073
5179
  z29.transform((v) => {
@@ -5076,15 +5182,15 @@ var CheckRollover$inboundSchema = z29.pipe(
5076
5182
  });
5077
5183
  })
5078
5184
  );
5079
- var CheckOnIncrease$inboundSchema = inboundSchema(CheckOnIncrease);
5080
- var CheckOnDecrease$inboundSchema = inboundSchema(CheckOnDecrease);
5081
- var CheckConfig$inboundSchema = z29.pipe(
5185
+ var CheckOnIncrease2$inboundSchema = inboundSchema(CheckOnIncrease2);
5186
+ var CheckOnDecrease2$inboundSchema = inboundSchema(CheckOnDecrease2);
5187
+ var CheckConfig2$inboundSchema = z29.pipe(
5082
5188
  z29.object({
5083
5189
  rollover: z29.optional(
5084
- z29.nullable(z29.lazy(() => CheckRollover$inboundSchema))
5190
+ z29.nullable(z29.lazy(() => CheckRollover2$inboundSchema))
5085
5191
  ),
5086
- on_increase: z29.optional(z29.nullable(CheckOnIncrease$inboundSchema)),
5087
- on_decrease: z29.optional(z29.nullable(CheckOnDecrease$inboundSchema))
5192
+ on_increase: z29.optional(z29.nullable(CheckOnIncrease2$inboundSchema)),
5193
+ on_decrease: z29.optional(z29.nullable(CheckOnDecrease2$inboundSchema))
5088
5194
  }),
5089
5195
  z29.transform((v) => {
5090
5196
  return remap(v, {
@@ -5093,29 +5199,29 @@ var CheckConfig$inboundSchema = z29.pipe(
5093
5199
  });
5094
5200
  })
5095
5201
  );
5096
- var CheckItem$inboundSchema = z29.pipe(
5202
+ var CheckItem2$inboundSchema = z29.pipe(
5097
5203
  z29.object({
5098
- type: z29.optional(z29.nullable(ProductType$inboundSchema)),
5204
+ type: z29.optional(z29.nullable(ProductType2$inboundSchema)),
5099
5205
  feature_id: z29.optional(z29.nullable(string4())),
5100
- feature_type: z29.optional(z29.nullable(FeatureType$inboundSchema)),
5206
+ feature_type: z29.optional(z29.nullable(FeatureType2$inboundSchema)),
5101
5207
  included_usage: z29.optional(
5102
5208
  z29.nullable(smartUnion([number2(), string4()]))
5103
5209
  ),
5104
- interval: z29.optional(z29.nullable(CheckInterval$inboundSchema)),
5210
+ interval: z29.optional(z29.nullable(CheckInterval2$inboundSchema)),
5105
5211
  interval_count: z29.optional(z29.nullable(number2())),
5106
5212
  price: z29.optional(z29.nullable(number2())),
5107
5213
  tiers: z29.optional(z29.nullable(z29.array(nullable(z29.any())))),
5108
- tier_behavior: z29.optional(z29.nullable(CheckTierBehavior$inboundSchema)),
5109
- usage_model: z29.optional(z29.nullable(UsageModel$inboundSchema)),
5214
+ tier_behavior: z29.optional(z29.nullable(CheckTierBehavior2$inboundSchema)),
5215
+ usage_model: z29.optional(z29.nullable(UsageModel2$inboundSchema)),
5110
5216
  billing_units: z29.optional(z29.nullable(number2())),
5111
5217
  reset_usage_when_enabled: z29.optional(z29.nullable(boolean2())),
5112
5218
  entity_feature_id: z29.optional(z29.nullable(string4())),
5113
5219
  display: z29.optional(
5114
- z29.nullable(z29.lazy(() => ProductDisplay$inboundSchema))
5220
+ z29.nullable(z29.lazy(() => ProductDisplay2$inboundSchema))
5115
5221
  ),
5116
5222
  quantity: z29.optional(z29.nullable(number2())),
5117
5223
  next_cycle_quantity: z29.optional(z29.nullable(number2())),
5118
- config: z29.optional(z29.nullable(z29.lazy(() => CheckConfig$inboundSchema)))
5224
+ config: z29.optional(z29.nullable(z29.lazy(() => CheckConfig2$inboundSchema)))
5119
5225
  }),
5120
5226
  z29.transform((v) => {
5121
5227
  return remap(v, {
@@ -5132,10 +5238,10 @@ var CheckItem$inboundSchema = z29.pipe(
5132
5238
  });
5133
5239
  })
5134
5240
  );
5135
- var FreeTrialDuration$inboundSchema = inboundSchema(FreeTrialDuration);
5136
- var CheckFreeTrial$inboundSchema = z29.pipe(
5241
+ var FreeTrialDuration2$inboundSchema = inboundSchema(FreeTrialDuration2);
5242
+ var CheckFreeTrial2$inboundSchema = z29.pipe(
5137
5243
  z29.object({
5138
- duration: FreeTrialDuration$inboundSchema,
5244
+ duration: FreeTrialDuration2$inboundSchema,
5139
5245
  length: number2(),
5140
5246
  unique_fingerprint: boolean2(),
5141
5247
  card_required: boolean2(),
@@ -5149,8 +5255,8 @@ var CheckFreeTrial$inboundSchema = z29.pipe(
5149
5255
  });
5150
5256
  })
5151
5257
  );
5152
- var ProductScenario$inboundSchema = inboundSchema(ProductScenario);
5153
- var Properties$inboundSchema = z29.pipe(
5258
+ var ProductScenario2$inboundSchema = inboundSchema(ProductScenario2);
5259
+ var Properties2$inboundSchema = z29.pipe(
5154
5260
  z29.object({
5155
5261
  is_free: boolean2(),
5156
5262
  is_one_off: boolean2(),
@@ -5167,22 +5273,22 @@ var Properties$inboundSchema = z29.pipe(
5167
5273
  });
5168
5274
  })
5169
5275
  );
5170
- var Product$inboundSchema = z29.pipe(
5276
+ var Product2$inboundSchema = z29.pipe(
5171
5277
  z29.object({
5172
5278
  id: string4(),
5173
5279
  name: string4(),
5174
5280
  group: nullable(string4()),
5175
- env: CheckEnv$inboundSchema,
5281
+ env: CheckEnv2$inboundSchema,
5176
5282
  is_add_on: boolean2(),
5177
5283
  is_default: boolean2(),
5178
5284
  archived: boolean2(),
5179
5285
  version: number2(),
5180
5286
  created_at: number2(),
5181
- items: z29.array(z29.lazy(() => CheckItem$inboundSchema)),
5182
- free_trial: nullable(z29.lazy(() => CheckFreeTrial$inboundSchema)),
5287
+ items: z29.array(z29.lazy(() => CheckItem2$inboundSchema)),
5288
+ free_trial: nullable(z29.lazy(() => CheckFreeTrial2$inboundSchema)),
5183
5289
  base_variant_id: nullable(string4()),
5184
- scenario: optional2(ProductScenario$inboundSchema),
5185
- properties: optional2(z29.lazy(() => Properties$inboundSchema))
5290
+ scenario: optional2(ProductScenario2$inboundSchema),
5291
+ properties: optional2(z29.lazy(() => Properties2$inboundSchema))
5186
5292
  }),
5187
5293
  z29.transform((v) => {
5188
5294
  return remap(v, {
@@ -5194,14 +5300,14 @@ var Product$inboundSchema = z29.pipe(
5194
5300
  });
5195
5301
  })
5196
5302
  );
5197
- var Preview$inboundSchema = z29.pipe(
5303
+ var Preview2$inboundSchema = z29.pipe(
5198
5304
  z29.object({
5199
- scenario: Scenario$inboundSchema,
5305
+ scenario: Scenario2$inboundSchema,
5200
5306
  title: string4(),
5201
5307
  message: string4(),
5202
5308
  feature_id: string4(),
5203
5309
  feature_name: string4(),
5204
- products: z29.array(z29.lazy(() => Product$inboundSchema))
5310
+ products: z29.array(z29.lazy(() => Product2$inboundSchema))
5205
5311
  }),
5206
5312
  z29.transform((v) => {
5207
5313
  return remap(v, {
@@ -5210,15 +5316,15 @@ var Preview$inboundSchema = z29.pipe(
5210
5316
  });
5211
5317
  })
5212
5318
  );
5213
- var CheckResponse$inboundSchema = z29.pipe(
5319
+ var CheckResponseBody2$inboundSchema = z29.pipe(
5214
5320
  z29.object({
5215
5321
  allowed: boolean2(),
5216
5322
  customer_id: string4(),
5217
5323
  entity_id: z29.optional(z29.nullable(string4())),
5218
5324
  required_balance: optional2(number2()),
5219
5325
  balance: nullable(Balance$inboundSchema),
5220
- flag: nullable(z29.lazy(() => Flag$inboundSchema)),
5221
- preview: optional2(z29.lazy(() => Preview$inboundSchema))
5326
+ flag: nullable(z29.lazy(() => Flag2$inboundSchema)),
5327
+ preview: optional2(z29.lazy(() => Preview2$inboundSchema))
5222
5328
  }),
5223
5329
  z29.transform((v) => {
5224
5330
  return remap(v, {
@@ -5228,6 +5334,249 @@ var CheckResponse$inboundSchema = z29.pipe(
5228
5334
  });
5229
5335
  })
5230
5336
  );
5337
+ var FlagType1$inboundSchema = inboundSchema(FlagType1);
5338
+ var CheckCreditSchema1$inboundSchema = z29.pipe(
5339
+ z29.object({
5340
+ metered_feature_id: string4(),
5341
+ credit_cost: number2()
5342
+ }),
5343
+ z29.transform((v) => {
5344
+ return remap(v, {
5345
+ "metered_feature_id": "meteredFeatureId",
5346
+ "credit_cost": "creditCost"
5347
+ });
5348
+ })
5349
+ );
5350
+ var FlagDisplay1$inboundSchema = z29.object({
5351
+ singular: z29.optional(z29.nullable(string4())),
5352
+ plural: z29.optional(z29.nullable(string4()))
5353
+ });
5354
+ var CheckFeature1$inboundSchema = z29.pipe(
5355
+ z29.object({
5356
+ id: string4(),
5357
+ name: string4(),
5358
+ type: FlagType1$inboundSchema,
5359
+ consumable: boolean2(),
5360
+ event_names: optional2(z29.array(string4())),
5361
+ credit_schema: optional2(
5362
+ z29.array(z29.lazy(() => CheckCreditSchema1$inboundSchema))
5363
+ ),
5364
+ display: optional2(z29.lazy(() => FlagDisplay1$inboundSchema)),
5365
+ archived: boolean2()
5366
+ }),
5367
+ z29.transform((v) => {
5368
+ return remap(v, {
5369
+ "event_names": "eventNames",
5370
+ "credit_schema": "creditSchema"
5371
+ });
5372
+ })
5373
+ );
5374
+ var Flag1$inboundSchema = z29.pipe(
5375
+ z29.object({
5376
+ id: string4(),
5377
+ plan_id: nullable(string4()),
5378
+ expires_at: nullable(number2()),
5379
+ feature_id: string4(),
5380
+ feature: optional2(z29.lazy(() => CheckFeature1$inboundSchema))
5381
+ }),
5382
+ z29.transform((v) => {
5383
+ return remap(v, {
5384
+ "plan_id": "planId",
5385
+ "expires_at": "expiresAt",
5386
+ "feature_id": "featureId"
5387
+ });
5388
+ })
5389
+ );
5390
+ var Scenario1$inboundSchema = inboundSchema(Scenario1);
5391
+ var CheckEnv1$inboundSchema = inboundSchema(CheckEnv1);
5392
+ var ProductType1$inboundSchema = inboundSchema(ProductType1);
5393
+ var FeatureType1$inboundSchema = inboundSchema(FeatureType1);
5394
+ var IncludedUsage1$inboundSchema = smartUnion([number2(), string4()]);
5395
+ var CheckInterval1$inboundSchema = inboundSchema(CheckInterval1);
5396
+ var CheckTierBehavior1$inboundSchema = inboundSchema(CheckTierBehavior1);
5397
+ var UsageModel1$inboundSchema = inboundSchema(UsageModel1);
5398
+ var ProductDisplay1$inboundSchema = z29.pipe(
5399
+ z29.object({
5400
+ primary_text: string4(),
5401
+ secondary_text: z29.optional(z29.nullable(string4()))
5402
+ }),
5403
+ z29.transform((v) => {
5404
+ return remap(v, {
5405
+ "primary_text": "primaryText",
5406
+ "secondary_text": "secondaryText"
5407
+ });
5408
+ })
5409
+ );
5410
+ var ConfigDuration1$inboundSchema = inboundSchema(ConfigDuration1);
5411
+ var CheckRollover1$inboundSchema = z29.pipe(
5412
+ z29.object({
5413
+ max: z29.optional(z29.nullable(number2())),
5414
+ max_percentage: z29.optional(z29.nullable(number2())),
5415
+ duration: z29._default(ConfigDuration1$inboundSchema, "month"),
5416
+ length: number2()
5417
+ }),
5418
+ z29.transform((v) => {
5419
+ return remap(v, {
5420
+ "max_percentage": "maxPercentage"
5421
+ });
5422
+ })
5423
+ );
5424
+ var CheckOnIncrease1$inboundSchema = inboundSchema(CheckOnIncrease1);
5425
+ var CheckOnDecrease1$inboundSchema = inboundSchema(CheckOnDecrease1);
5426
+ var CheckConfig1$inboundSchema = z29.pipe(
5427
+ z29.object({
5428
+ rollover: z29.optional(
5429
+ z29.nullable(z29.lazy(() => CheckRollover1$inboundSchema))
5430
+ ),
5431
+ on_increase: z29.optional(z29.nullable(CheckOnIncrease1$inboundSchema)),
5432
+ on_decrease: z29.optional(z29.nullable(CheckOnDecrease1$inboundSchema))
5433
+ }),
5434
+ z29.transform((v) => {
5435
+ return remap(v, {
5436
+ "on_increase": "onIncrease",
5437
+ "on_decrease": "onDecrease"
5438
+ });
5439
+ })
5440
+ );
5441
+ var CheckItem1$inboundSchema = z29.pipe(
5442
+ z29.object({
5443
+ type: z29.optional(z29.nullable(ProductType1$inboundSchema)),
5444
+ feature_id: z29.optional(z29.nullable(string4())),
5445
+ feature_type: z29.optional(z29.nullable(FeatureType1$inboundSchema)),
5446
+ included_usage: z29.optional(
5447
+ z29.nullable(smartUnion([number2(), string4()]))
5448
+ ),
5449
+ interval: z29.optional(z29.nullable(CheckInterval1$inboundSchema)),
5450
+ interval_count: z29.optional(z29.nullable(number2())),
5451
+ price: z29.optional(z29.nullable(number2())),
5452
+ tiers: z29.optional(z29.nullable(z29.array(nullable(z29.any())))),
5453
+ tier_behavior: z29.optional(z29.nullable(CheckTierBehavior1$inboundSchema)),
5454
+ usage_model: z29.optional(z29.nullable(UsageModel1$inboundSchema)),
5455
+ billing_units: z29.optional(z29.nullable(number2())),
5456
+ reset_usage_when_enabled: z29.optional(z29.nullable(boolean2())),
5457
+ entity_feature_id: z29.optional(z29.nullable(string4())),
5458
+ display: z29.optional(
5459
+ z29.nullable(z29.lazy(() => ProductDisplay1$inboundSchema))
5460
+ ),
5461
+ quantity: z29.optional(z29.nullable(number2())),
5462
+ next_cycle_quantity: z29.optional(z29.nullable(number2())),
5463
+ config: z29.optional(z29.nullable(z29.lazy(() => CheckConfig1$inboundSchema)))
5464
+ }),
5465
+ z29.transform((v) => {
5466
+ return remap(v, {
5467
+ "feature_id": "featureId",
5468
+ "feature_type": "featureType",
5469
+ "included_usage": "includedUsage",
5470
+ "interval_count": "intervalCount",
5471
+ "tier_behavior": "tierBehavior",
5472
+ "usage_model": "usageModel",
5473
+ "billing_units": "billingUnits",
5474
+ "reset_usage_when_enabled": "resetUsageWhenEnabled",
5475
+ "entity_feature_id": "entityFeatureId",
5476
+ "next_cycle_quantity": "nextCycleQuantity"
5477
+ });
5478
+ })
5479
+ );
5480
+ var FreeTrialDuration1$inboundSchema = inboundSchema(FreeTrialDuration1);
5481
+ var CheckFreeTrial1$inboundSchema = z29.pipe(
5482
+ z29.object({
5483
+ duration: FreeTrialDuration1$inboundSchema,
5484
+ length: number2(),
5485
+ unique_fingerprint: boolean2(),
5486
+ card_required: boolean2(),
5487
+ trial_available: z29.nullable(z29._default(boolean2(), true))
5488
+ }),
5489
+ z29.transform((v) => {
5490
+ return remap(v, {
5491
+ "unique_fingerprint": "uniqueFingerprint",
5492
+ "card_required": "cardRequired",
5493
+ "trial_available": "trialAvailable"
5494
+ });
5495
+ })
5496
+ );
5497
+ var ProductScenario1$inboundSchema = inboundSchema(ProductScenario1);
5498
+ var Properties1$inboundSchema = z29.pipe(
5499
+ z29.object({
5500
+ is_free: boolean2(),
5501
+ is_one_off: boolean2(),
5502
+ interval_group: z29.optional(z29.nullable(string4())),
5503
+ has_trial: z29.optional(z29.nullable(boolean2())),
5504
+ updateable: z29.optional(z29.nullable(boolean2()))
5505
+ }),
5506
+ z29.transform((v) => {
5507
+ return remap(v, {
5508
+ "is_free": "isFree",
5509
+ "is_one_off": "isOneOff",
5510
+ "interval_group": "intervalGroup",
5511
+ "has_trial": "hasTrial"
5512
+ });
5513
+ })
5514
+ );
5515
+ var Product1$inboundSchema = z29.pipe(
5516
+ z29.object({
5517
+ id: string4(),
5518
+ name: string4(),
5519
+ group: nullable(string4()),
5520
+ env: CheckEnv1$inboundSchema,
5521
+ is_add_on: boolean2(),
5522
+ is_default: boolean2(),
5523
+ archived: boolean2(),
5524
+ version: number2(),
5525
+ created_at: number2(),
5526
+ items: z29.array(z29.lazy(() => CheckItem1$inboundSchema)),
5527
+ free_trial: nullable(z29.lazy(() => CheckFreeTrial1$inboundSchema)),
5528
+ base_variant_id: nullable(string4()),
5529
+ scenario: optional2(ProductScenario1$inboundSchema),
5530
+ properties: optional2(z29.lazy(() => Properties1$inboundSchema))
5531
+ }),
5532
+ z29.transform((v) => {
5533
+ return remap(v, {
5534
+ "is_add_on": "isAddOn",
5535
+ "is_default": "isDefault",
5536
+ "created_at": "createdAt",
5537
+ "free_trial": "freeTrial",
5538
+ "base_variant_id": "baseVariantId"
5539
+ });
5540
+ })
5541
+ );
5542
+ var Preview1$inboundSchema = z29.pipe(
5543
+ z29.object({
5544
+ scenario: Scenario1$inboundSchema,
5545
+ title: string4(),
5546
+ message: string4(),
5547
+ feature_id: string4(),
5548
+ feature_name: string4(),
5549
+ products: z29.array(z29.lazy(() => Product1$inboundSchema))
5550
+ }),
5551
+ z29.transform((v) => {
5552
+ return remap(v, {
5553
+ "feature_id": "featureId",
5554
+ "feature_name": "featureName"
5555
+ });
5556
+ })
5557
+ );
5558
+ var CheckResponseBody1$inboundSchema = z29.pipe(
5559
+ z29.object({
5560
+ allowed: boolean2(),
5561
+ customer_id: string4(),
5562
+ entity_id: z29.optional(z29.nullable(string4())),
5563
+ required_balance: optional2(number2()),
5564
+ balance: nullable(Balance$inboundSchema),
5565
+ flag: nullable(z29.lazy(() => Flag1$inboundSchema)),
5566
+ preview: optional2(z29.lazy(() => Preview1$inboundSchema))
5567
+ }),
5568
+ z29.transform((v) => {
5569
+ return remap(v, {
5570
+ "customer_id": "customerId",
5571
+ "entity_id": "entityId",
5572
+ "required_balance": "requiredBalance"
5573
+ });
5574
+ })
5575
+ );
5576
+ var CheckResponse$inboundSchema = smartUnion([
5577
+ z29.lazy(() => CheckResponseBody1$inboundSchema),
5578
+ z29.lazy(() => CheckResponseBody2$inboundSchema)
5579
+ ]);
5231
5580
 
5232
5581
  // ../sdk/src/models/create-balance-op.ts
5233
5582
  var z30 = __toESM(require("zod/v4-mini"), 1);
@@ -6690,7 +7039,13 @@ var CustomerEnv = {
6690
7039
  Sandbox: "sandbox",
6691
7040
  Live: "live"
6692
7041
  };
6693
- var CustomerInterval = {
7042
+ var CustomerInterval2 = {
7043
+ Hour: "hour",
7044
+ Day: "day",
7045
+ Week: "week",
7046
+ Month: "month"
7047
+ };
7048
+ var CustomerInterval1 = {
6694
7049
  Hour: "hour",
6695
7050
  Day: "day",
6696
7051
  Week: "week",
@@ -6727,10 +7082,26 @@ var CustomerDurationType = {
6727
7082
  Forever: "forever"
6728
7083
  };
6729
7084
  var CustomerEnv$inboundSchema = inboundSchema(CustomerEnv);
6730
- var CustomerInterval$inboundSchema = inboundSchema(CustomerInterval);
6731
- var CustomerPurchaseLimit$inboundSchema = z37.pipe(
7085
+ var CustomerInterval2$inboundSchema = inboundSchema(CustomerInterval2);
7086
+ var CustomerPurchaseLimit2$inboundSchema = z37.pipe(
6732
7087
  z37.object({
6733
- interval: CustomerInterval$inboundSchema,
7088
+ interval: nullable(CustomerInterval2$inboundSchema),
7089
+ interval_count: nullable(number2()),
7090
+ limit: nullable(number2()),
7091
+ count: number2(),
7092
+ next_reset_at: number2()
7093
+ }),
7094
+ z37.transform((v) => {
7095
+ return remap(v, {
7096
+ "interval_count": "intervalCount",
7097
+ "next_reset_at": "nextResetAt"
7098
+ });
7099
+ })
7100
+ );
7101
+ var CustomerInterval1$inboundSchema = inboundSchema(CustomerInterval1);
7102
+ var CustomerPurchaseLimit1$inboundSchema = z37.pipe(
7103
+ z37.object({
7104
+ interval: CustomerInterval1$inboundSchema,
6734
7105
  interval_count: z37._default(number2(), 1),
6735
7106
  limit: number2()
6736
7107
  }),
@@ -6740,15 +7111,20 @@ var CustomerPurchaseLimit$inboundSchema = z37.pipe(
6740
7111
  });
6741
7112
  })
6742
7113
  );
7114
+ var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
7115
+ z37.lazy(() => CustomerPurchaseLimit2$inboundSchema),
7116
+ z37.lazy(() => CustomerPurchaseLimit1$inboundSchema)
7117
+ ]);
6743
7118
  var CustomerAutoTopup$inboundSchema = z37.pipe(
6744
7119
  z37.object({
6745
7120
  feature_id: string4(),
6746
7121
  enabled: z37._default(boolean2(), false),
6747
7122
  threshold: number2(),
6748
7123
  quantity: number2(),
6749
- purchase_limit: optional2(
6750
- z37.lazy(() => CustomerPurchaseLimit$inboundSchema)
6751
- ),
7124
+ purchase_limit: optional2(smartUnion([
7125
+ z37.lazy(() => CustomerPurchaseLimit2$inboundSchema),
7126
+ z37.lazy(() => CustomerPurchaseLimit1$inboundSchema)
7127
+ ])),
6752
7128
  invoice_mode: optional2(boolean2())
6753
7129
  }),
6754
7130
  z37.transform((v) => {
@@ -7202,9 +7578,16 @@ var FinalizeBalanceParams$outboundSchema = z43.pipe(
7202
7578
  });
7203
7579
  })
7204
7580
  );
7205
- var FinalizeLockResponse$inboundSchema = z43.object({
7581
+ var FinalizeLockResponseBody2$inboundSchema = z43.object({
7582
+ success: boolean2()
7583
+ });
7584
+ var FinalizeLockResponseBody1$inboundSchema = z43.object({
7206
7585
  success: boolean2()
7207
7586
  });
7587
+ var FinalizeLockResponse$inboundSchema = smartUnion([
7588
+ z43.lazy(() => FinalizeLockResponseBody1$inboundSchema),
7589
+ z43.lazy(() => FinalizeLockResponseBody2$inboundSchema)
7590
+ ]);
7208
7591
 
7209
7592
  // ../sdk/src/models/get-entity-op.ts
7210
7593
  var z44 = __toESM(require("zod/v4-mini"), 1);
@@ -7999,7 +8382,13 @@ var ListCustomersEnv = {
7999
8382
  Sandbox: "sandbox",
8000
8383
  Live: "live"
8001
8384
  };
8002
- var ListCustomersInterval = {
8385
+ var ListCustomersInterval2 = {
8386
+ Hour: "hour",
8387
+ Day: "day",
8388
+ Week: "week",
8389
+ Month: "month"
8390
+ };
8391
+ var ListCustomersInterval1 = {
8003
8392
  Hour: "hour",
8004
8393
  Day: "day",
8005
8394
  Week: "week",
@@ -8044,10 +8433,26 @@ var ListCustomersParams$outboundSchema = z48.pipe(
8044
8433
  })
8045
8434
  );
8046
8435
  var ListCustomersEnv$inboundSchema = inboundSchema(ListCustomersEnv);
8047
- var ListCustomersInterval$inboundSchema = inboundSchema(ListCustomersInterval);
8048
- var ListCustomersPurchaseLimit$inboundSchema = z48.pipe(
8436
+ var ListCustomersInterval2$inboundSchema = inboundSchema(ListCustomersInterval2);
8437
+ var ListCustomersPurchaseLimit2$inboundSchema = z48.pipe(
8438
+ z48.object({
8439
+ interval: nullable(ListCustomersInterval2$inboundSchema),
8440
+ interval_count: nullable(number2()),
8441
+ limit: nullable(number2()),
8442
+ count: number2(),
8443
+ next_reset_at: number2()
8444
+ }),
8445
+ z48.transform((v) => {
8446
+ return remap(v, {
8447
+ "interval_count": "intervalCount",
8448
+ "next_reset_at": "nextResetAt"
8449
+ });
8450
+ })
8451
+ );
8452
+ var ListCustomersInterval1$inboundSchema = inboundSchema(ListCustomersInterval1);
8453
+ var ListCustomersPurchaseLimit1$inboundSchema = z48.pipe(
8049
8454
  z48.object({
8050
- interval: ListCustomersInterval$inboundSchema,
8455
+ interval: ListCustomersInterval1$inboundSchema,
8051
8456
  interval_count: z48._default(number2(), 1),
8052
8457
  limit: number2()
8053
8458
  }),
@@ -8057,15 +8462,20 @@ var ListCustomersPurchaseLimit$inboundSchema = z48.pipe(
8057
8462
  });
8058
8463
  })
8059
8464
  );
8465
+ var ListCustomersPurchaseLimitUnion$inboundSchema = smartUnion([
8466
+ z48.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
8467
+ z48.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
8468
+ ]);
8060
8469
  var ListCustomersAutoTopup$inboundSchema = z48.pipe(
8061
8470
  z48.object({
8062
8471
  feature_id: string4(),
8063
8472
  enabled: z48._default(boolean2(), false),
8064
8473
  threshold: number2(),
8065
8474
  quantity: number2(),
8066
- purchase_limit: optional2(
8067
- z48.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
8068
- ),
8475
+ purchase_limit: optional2(smartUnion([
8476
+ z48.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
8477
+ z48.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
8478
+ ])),
8069
8479
  invoice_mode: optional2(boolean2())
8070
8480
  }),
8071
8481
  z48.transform((v) => {
@@ -9064,6 +9474,7 @@ var MultiAttachParams$outboundSchema = z52.pipe(
9064
9474
  "if_required"
9065
9475
  ),
9066
9476
  newBillingSubscription: z52.optional(z52.boolean()),
9477
+ enablePlanImmediately: z52.optional(z52.boolean()),
9067
9478
  customerData: z52.optional(CustomerData$outboundSchema),
9068
9479
  entityData: z52.optional(z52.lazy(() => MultiAttachEntityData$outboundSchema))
9069
9480
  }),
@@ -9077,6 +9488,7 @@ var MultiAttachParams$outboundSchema = z52.pipe(
9077
9488
  checkoutSessionParams: "checkout_session_params",
9078
9489
  redirectMode: "redirect_mode",
9079
9490
  newBillingSubscription: "new_billing_subscription",
9491
+ enablePlanImmediately: "enable_plan_immediately",
9080
9492
  customerData: "customer_data",
9081
9493
  entityData: "entity_data"
9082
9494
  });
@@ -9226,6 +9638,10 @@ var PreviewAttachCheckoutType = {
9226
9638
  StripeCheckout: "stripe_checkout",
9227
9639
  AutumnCheckout: "autumn_checkout"
9228
9640
  };
9641
+ var PreviewAttachStatus = {
9642
+ Complete: "complete",
9643
+ Incomplete: "incomplete"
9644
+ };
9229
9645
  var PreviewAttachFeatureQuantityRequest$outboundSchema = z54.pipe(
9230
9646
  z54.object({
9231
9647
  featureId: z54.string(),
@@ -9472,7 +9888,8 @@ var PreviewAttachParams$outboundSchema = z54.pipe(
9472
9888
  z54.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
9473
9889
  ),
9474
9890
  metadata: z54.optional(z54.record(z54.string(), z54.string())),
9475
- noBillingChanges: z54.optional(z54.boolean())
9891
+ noBillingChanges: z54.optional(z54.boolean()),
9892
+ enablePlanImmediately: z54.optional(z54.boolean())
9476
9893
  }),
9477
9894
  z54.transform((v) => {
9478
9895
  return remap(v, {
@@ -9493,7 +9910,8 @@ var PreviewAttachParams$outboundSchema = z54.pipe(
9493
9910
  processorSubscriptionId: "processor_subscription_id",
9494
9911
  carryOverBalances: "carry_over_balances",
9495
9912
  carryOverUsages: "carry_over_usages",
9496
- noBillingChanges: "no_billing_changes"
9913
+ noBillingChanges: "no_billing_changes",
9914
+ enablePlanImmediately: "enable_plan_immediately"
9497
9915
  });
9498
9916
  })
9499
9917
  );
@@ -9691,6 +10109,22 @@ var PreviewAttachOutgoing$inboundSchema = z54.pipe(
9691
10109
  })
9692
10110
  );
9693
10111
  var PreviewAttachCheckoutType$inboundSchema = inboundSchema(PreviewAttachCheckoutType);
10112
+ var PreviewAttachStatus$inboundSchema = inboundSchema(PreviewAttachStatus);
10113
+ var PreviewAttachTax$inboundSchema = z54.pipe(
10114
+ z54.object({
10115
+ total: number2(),
10116
+ amount_inclusive: number2(),
10117
+ amount_exclusive: number2(),
10118
+ currency: string4(),
10119
+ status: PreviewAttachStatus$inboundSchema
10120
+ }),
10121
+ z54.transform((v) => {
10122
+ return remap(v, {
10123
+ "amount_inclusive": "amountInclusive",
10124
+ "amount_exclusive": "amountExclusive"
10125
+ });
10126
+ })
10127
+ );
9694
10128
  var PreviewAttachResponse$inboundSchema = z54.pipe(
9695
10129
  z54.object({
9696
10130
  customer_id: string4(),
@@ -9705,7 +10139,8 @@ var PreviewAttachResponse$inboundSchema = z54.pipe(
9705
10139
  incoming: z54.array(z54.lazy(() => PreviewAttachIncoming$inboundSchema)),
9706
10140
  outgoing: z54.array(z54.lazy(() => PreviewAttachOutgoing$inboundSchema)),
9707
10141
  redirect_to_checkout: boolean2(),
9708
- checkout_type: nullable(PreviewAttachCheckoutType$inboundSchema)
10142
+ checkout_type: nullable(PreviewAttachCheckoutType$inboundSchema),
10143
+ tax: optional2(z54.lazy(() => PreviewAttachTax$inboundSchema))
9709
10144
  }),
9710
10145
  z54.transform((v) => {
9711
10146
  return remap(v, {
@@ -9792,6 +10227,10 @@ var PreviewMultiAttachCheckoutType = {
9792
10227
  StripeCheckout: "stripe_checkout",
9793
10228
  AutumnCheckout: "autumn_checkout"
9794
10229
  };
10230
+ var PreviewMultiAttachStatus = {
10231
+ Complete: "complete",
10232
+ Incomplete: "incomplete"
10233
+ };
9795
10234
  var PreviewMultiAttachPriceInterval$outboundSchema = z55.enum(PreviewMultiAttachPriceInterval);
9796
10235
  var PreviewMultiAttachBasePrice$outboundSchema = z55.pipe(
9797
10236
  z55.object({
@@ -10089,6 +10528,7 @@ var PreviewMultiAttachParams$outboundSchema = z55.pipe(
10089
10528
  "if_required"
10090
10529
  ),
10091
10530
  newBillingSubscription: z55.optional(z55.boolean()),
10531
+ enablePlanImmediately: z55.optional(z55.boolean()),
10092
10532
  customerData: z55.optional(CustomerData$outboundSchema),
10093
10533
  entityData: z55.optional(
10094
10534
  z55.lazy(() => PreviewMultiAttachEntityData$outboundSchema)
@@ -10104,6 +10544,7 @@ var PreviewMultiAttachParams$outboundSchema = z55.pipe(
10104
10544
  checkoutSessionParams: "checkout_session_params",
10105
10545
  redirectMode: "redirect_mode",
10106
10546
  newBillingSubscription: "new_billing_subscription",
10547
+ enablePlanImmediately: "enable_plan_immediately",
10107
10548
  customerData: "customer_data",
10108
10549
  entityData: "entity_data"
10109
10550
  });
@@ -10303,6 +10744,22 @@ var PreviewMultiAttachOutgoing$inboundSchema = z55.pipe(
10303
10744
  })
10304
10745
  );
10305
10746
  var PreviewMultiAttachCheckoutType$inboundSchema = inboundSchema(PreviewMultiAttachCheckoutType);
10747
+ var PreviewMultiAttachStatus$inboundSchema = inboundSchema(PreviewMultiAttachStatus);
10748
+ var PreviewMultiAttachTax$inboundSchema = z55.pipe(
10749
+ z55.object({
10750
+ total: number2(),
10751
+ amount_inclusive: number2(),
10752
+ amount_exclusive: number2(),
10753
+ currency: string4(),
10754
+ status: PreviewMultiAttachStatus$inboundSchema
10755
+ }),
10756
+ z55.transform((v) => {
10757
+ return remap(v, {
10758
+ "amount_inclusive": "amountInclusive",
10759
+ "amount_exclusive": "amountExclusive"
10760
+ });
10761
+ })
10762
+ );
10306
10763
  var PreviewMultiAttachResponse$inboundSchema = z55.pipe(
10307
10764
  z55.object({
10308
10765
  customer_id: string4(),
@@ -10317,7 +10774,8 @@ var PreviewMultiAttachResponse$inboundSchema = z55.pipe(
10317
10774
  incoming: z55.array(z55.lazy(() => PreviewMultiAttachIncoming$inboundSchema)),
10318
10775
  outgoing: z55.array(z55.lazy(() => PreviewMultiAttachOutgoing$inboundSchema)),
10319
10776
  redirect_to_checkout: boolean2(),
10320
- checkout_type: nullable(PreviewMultiAttachCheckoutType$inboundSchema)
10777
+ checkout_type: nullable(PreviewMultiAttachCheckoutType$inboundSchema),
10778
+ tax: optional2(z55.lazy(() => PreviewMultiAttachTax$inboundSchema))
10321
10779
  }),
10322
10780
  z55.transform((v) => {
10323
10781
  return remap(v, {
@@ -11171,7 +11629,8 @@ var SetupPaymentParams$outboundSchema = z58.pipe(
11171
11629
  z58.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
11172
11630
  ),
11173
11631
  metadata: z58.optional(z58.record(z58.string(), z58.string())),
11174
- noBillingChanges: z58.optional(z58.boolean())
11632
+ noBillingChanges: z58.optional(z58.boolean()),
11633
+ enablePlanImmediately: z58.optional(z58.boolean())
11175
11634
  }),
11176
11635
  z58.transform((v) => {
11177
11636
  return remap(v, {
@@ -11188,7 +11647,8 @@ var SetupPaymentParams$outboundSchema = z58.pipe(
11188
11647
  processorSubscriptionId: "processor_subscription_id",
11189
11648
  carryOverBalances: "carry_over_balances",
11190
11649
  carryOverUsages: "carry_over_usages",
11191
- noBillingChanges: "no_billing_changes"
11650
+ noBillingChanges: "no_billing_changes",
11651
+ enablePlanImmediately: "enable_plan_immediately"
11192
11652
  });
11193
11653
  })
11194
11654
  );
@@ -11240,7 +11700,24 @@ var TrackParams$outboundSchema = z59.pipe(
11240
11700
  });
11241
11701
  })
11242
11702
  );
11243
- var TrackResponse$inboundSchema = z59.pipe(
11703
+ var TrackResponseBody2$inboundSchema = z59.pipe(
11704
+ z59.object({
11705
+ customer_id: string4(),
11706
+ entity_id: optional2(string4()),
11707
+ event_name: optional2(string4()),
11708
+ value: number2(),
11709
+ balance: nullable(Balance$inboundSchema),
11710
+ balances: optional2(z59.record(z59.string(), Balance$inboundSchema))
11711
+ }),
11712
+ z59.transform((v) => {
11713
+ return remap(v, {
11714
+ "customer_id": "customerId",
11715
+ "entity_id": "entityId",
11716
+ "event_name": "eventName"
11717
+ });
11718
+ })
11719
+ );
11720
+ var TrackResponseBody1$inboundSchema = z59.pipe(
11244
11721
  z59.object({
11245
11722
  customer_id: string4(),
11246
11723
  entity_id: optional2(string4()),
@@ -11257,6 +11734,10 @@ var TrackResponse$inboundSchema = z59.pipe(
11257
11734
  });
11258
11735
  })
11259
11736
  );
11737
+ var TrackResponse$inboundSchema = smartUnion([
11738
+ z59.lazy(() => TrackResponseBody1$inboundSchema),
11739
+ z59.lazy(() => TrackResponseBody2$inboundSchema)
11740
+ ]);
11260
11741
 
11261
11742
  // ../sdk/src/models/update-balance-op.ts
11262
11743
  var z60 = __toESM(require("zod/v4-mini"), 1);
@@ -11319,7 +11800,13 @@ var UpdateCustomerEnv = {
11319
11800
  Sandbox: "sandbox",
11320
11801
  Live: "live"
11321
11802
  };
11322
- var UpdateCustomerIntervalResponse = {
11803
+ var UpdateCustomerIntervalResponse2 = {
11804
+ Hour: "hour",
11805
+ Day: "day",
11806
+ Week: "week",
11807
+ Month: "month"
11808
+ };
11809
+ var UpdateCustomerIntervalResponse1 = {
11323
11810
  Hour: "hour",
11324
11811
  Day: "day",
11325
11812
  Week: "week",
@@ -11476,10 +11963,26 @@ var UpdateCustomerParams$outboundSchema = z61.pipe(
11476
11963
  })
11477
11964
  );
11478
11965
  var UpdateCustomerEnv$inboundSchema = inboundSchema(UpdateCustomerEnv);
11479
- var UpdateCustomerIntervalResponse$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse);
11480
- var UpdateCustomerPurchaseLimitResponse$inboundSchema = z61.pipe(
11966
+ var UpdateCustomerIntervalResponse2$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse2);
11967
+ var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z61.pipe(
11481
11968
  z61.object({
11482
- interval: UpdateCustomerIntervalResponse$inboundSchema,
11969
+ interval: nullable(UpdateCustomerIntervalResponse2$inboundSchema),
11970
+ interval_count: nullable(number2()),
11971
+ limit: nullable(number2()),
11972
+ count: number2(),
11973
+ next_reset_at: number2()
11974
+ }),
11975
+ z61.transform((v) => {
11976
+ return remap(v, {
11977
+ "interval_count": "intervalCount",
11978
+ "next_reset_at": "nextResetAt"
11979
+ });
11980
+ })
11981
+ );
11982
+ var UpdateCustomerIntervalResponse1$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse1);
11983
+ var UpdateCustomerPurchaseLimitResponse1$inboundSchema = z61.pipe(
11984
+ z61.object({
11985
+ interval: UpdateCustomerIntervalResponse1$inboundSchema,
11483
11986
  interval_count: z61._default(number2(), 1),
11484
11987
  limit: number2()
11485
11988
  }),
@@ -11489,15 +11992,20 @@ var UpdateCustomerPurchaseLimitResponse$inboundSchema = z61.pipe(
11489
11992
  });
11490
11993
  })
11491
11994
  );
11995
+ var UpdateCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
11996
+ z61.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
11997
+ z61.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
11998
+ ]);
11492
11999
  var UpdateCustomerAutoTopupResponse$inboundSchema = z61.pipe(
11493
12000
  z61.object({
11494
12001
  feature_id: string4(),
11495
12002
  enabled: z61._default(boolean2(), false),
11496
12003
  threshold: number2(),
11497
12004
  quantity: number2(),
11498
- purchase_limit: optional2(
11499
- z61.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
11500
- ),
12005
+ purchase_limit: optional2(smartUnion([
12006
+ z61.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
12007
+ z61.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
12008
+ ])),
11501
12009
  invoice_mode: optional2(boolean2())
11502
12010
  }),
11503
12011
  z61.transform((v) => {
@@ -12741,6 +13249,7 @@ async function $do(client, request, options) {
12741
13249
  const response = doResult.value;
12742
13250
  const [result] = await match(
12743
13251
  json(200, CheckResponse$inboundSchema),
13252
+ json(202, CheckResponse$inboundSchema),
12744
13253
  fail("4XX"),
12745
13254
  fail("5XX")
12746
13255
  )(response, req);
@@ -12819,6 +13328,7 @@ async function $do2(client, request, options) {
12819
13328
  const response = doResult.value;
12820
13329
  const [result] = await match(
12821
13330
  json(200, TrackResponse$inboundSchema),
13331
+ json(202, TrackResponse$inboundSchema),
12822
13332
  fail("4XX"),
12823
13333
  fail("5XX")
12824
13334
  )(response, req);
@@ -13658,6 +14168,7 @@ async function $do5(client, request, options) {
13658
14168
  const response = doResult.value;
13659
14169
  const [result] = await match(
13660
14170
  json(200, FinalizeLockResponse$inboundSchema),
14171
+ json(202, FinalizeLockResponse$inboundSchema),
13661
14172
  fail("4XX"),
13662
14173
  fail("5XX")
13663
14174
  )(response, req);
@@ -14460,6 +14971,7 @@ var Billing = class extends ClientSDK {
14460
14971
  * @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
14461
14972
  * @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)
14462
14973
  * @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
14974
+ * @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)
14463
14975
  *
14464
14976
  * @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
14465
14977
  */
@@ -14503,6 +15015,7 @@ var Billing = class extends ClientSDK {
14503
15015
  * @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
14504
15016
  * @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)
14505
15017
  * @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)
15018
+ * @param enablePlanImmediately - If true, the cusProducts are activated immediately even when payment is pending via Stripe checkout. (optional)
14506
15019
  *
14507
15020
  * @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
14508
15021
  */
@@ -14546,6 +15059,7 @@ var Billing = class extends ClientSDK {
14546
15059
  * @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
14547
15060
  * @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)
14548
15061
  * @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
15062
+ * @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)
14549
15063
  *
14550
15064
  * @returns A preview response with line items, totals, and effective dates for the proposed changes.
14551
15065
  */
@@ -14577,6 +15091,7 @@ var Billing = class extends ClientSDK {
14577
15091
  * @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
14578
15092
  * @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)
14579
15093
  * @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)
15094
+ * @param enablePlanImmediately - If true, the cusProducts are activated immediately even when payment is pending via Stripe checkout. (optional)
14580
15095
  *
14581
15096
  * @returns A preview response with line items, totals, and effective dates for the proposed multi-plan attachment.
14582
15097
  */
@@ -17056,7 +17571,7 @@ var Autumn = class extends ClientSDK {
17056
17571
  * @param lock - Reserve units of a feature upfront by passing a lock_id, then call balances.finalize to confirm or release the hold. (optional)
17057
17572
  * @param withPreview - If true, includes upgrade/upsell information in the response when access is denied. Useful for displaying paywalls. (optional)
17058
17573
  *
17059
- * @returns Whether access is allowed, plus the current balance for that feature.
17574
+ * @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.
17060
17575
  */
17061
17576
  async check(request, options) {
17062
17577
  return unwrapAsync(check(
@@ -17089,7 +17604,7 @@ var Autumn = class extends ClientSDK {
17089
17604
  * @param value - The amount of usage to record. Defaults to 1. Use negative values to credit balance (e.g., when removing a seat). (optional)
17090
17605
  * @param properties - Additional properties to attach to this usage event. (optional)
17091
17606
  *
17092
- * @returns The usage value recorded, with either a single updated balance or a map of updated balances.
17607
+ * @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.
17093
17608
  */
17094
17609
  async track(request, options) {
17095
17610
  return unwrapAsync(track(