autumn-js 1.2.24 → 1.2.26

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 (131) hide show
  1. package/dist/backend/adapters/express.js +915 -768
  2. package/dist/backend/adapters/express.mjs +5 -5
  3. package/dist/backend/adapters/fetch.js +915 -768
  4. package/dist/backend/adapters/fetch.mjs +5 -5
  5. package/dist/backend/adapters/hono.js +915 -768
  6. package/dist/backend/adapters/hono.mjs +5 -5
  7. package/dist/backend/adapters/index.js +915 -768
  8. package/dist/backend/adapters/index.mjs +8 -8
  9. package/dist/backend/adapters/next.js +915 -768
  10. package/dist/backend/adapters/next.mjs +5 -5
  11. package/dist/backend/{chunk-UDOV52FM.mjs → chunk-D4BQG3DH.mjs} +1 -1
  12. package/dist/backend/{chunk-R6WNMKJW.mjs → chunk-KJTWQSMK.mjs} +1 -1
  13. package/dist/backend/{chunk-DICOXILS.mjs → chunk-LJZUMUU3.mjs} +2 -2
  14. package/dist/backend/{chunk-GGQPGZC7.mjs → chunk-MAU6WWTL.mjs} +12 -6
  15. package/dist/backend/{chunk-5CLWD4RW.mjs → chunk-MPNJ2AXO.mjs} +1 -1
  16. package/dist/backend/{chunk-FBSZ5VUZ.mjs → chunk-TJ7TRWN4.mjs} +1 -1
  17. package/dist/backend/{chunk-3XVW22NT.mjs → chunk-UCGI7CYU.mjs} +903 -762
  18. package/dist/backend/{chunk-TOCINHF4.mjs → chunk-ZVZEA5YL.mjs} +2 -2
  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 +915 -768
  22. package/dist/backend/core/handlers/coreHandler.mjs +3 -3
  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/handleRouteByName.js +915 -768
  26. package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
  27. package/dist/backend/core/handlers/index.d.mts +1 -1
  28. package/dist/backend/core/handlers/index.d.ts +1 -1
  29. package/dist/backend/core/handlers/index.js +915 -768
  30. package/dist/backend/core/handlers/index.mjs +4 -4
  31. package/dist/backend/core/index.d.mts +1 -1
  32. package/dist/backend/core/index.d.ts +1 -1
  33. package/dist/backend/core/index.js +915 -768
  34. package/dist/backend/core/index.mjs +4 -4
  35. package/dist/backend/core/routes/index.d.mts +1 -1
  36. package/dist/backend/core/routes/index.d.ts +1 -1
  37. package/dist/backend/core/routes/index.js +12 -6
  38. package/dist/backend/core/routes/index.mjs +1 -1
  39. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  40. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  41. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  43. package/dist/backend/core/routes/routeConfigs.js +12 -6
  44. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  45. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  46. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  47. package/dist/backend/core/types/index.d.mts +1 -1
  48. package/dist/backend/core/types/index.d.ts +1 -1
  49. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  50. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  51. package/dist/backend/index.d.mts +2 -2
  52. package/dist/backend/index.d.ts +2 -2
  53. package/dist/backend/index.js +915 -768
  54. package/dist/backend/index.mjs +4 -4
  55. package/dist/backend/{routeTypes-DYlzt6nc.d.mts → routeTypes-BcR8yEXe.d.mts} +63 -6
  56. package/dist/backend/{routeTypes-y1qRo08h.d.ts → routeTypes-CXj2d3BE.d.ts} +63 -6
  57. package/dist/better-auth/{chunk-IMYTX3U6.mjs → chunk-3TLQJLI4.mjs} +1 -1
  58. package/dist/better-auth/{chunk-FNNGRSHA.mjs → chunk-EFVPBRMR.mjs} +904 -763
  59. package/dist/better-auth/{chunk-RIVG4JZM.mjs → chunk-RHJSAAZY.mjs} +12 -6
  60. package/dist/better-auth/index.js +915 -768
  61. package/dist/better-auth/index.mjs +3 -3
  62. package/dist/better-auth/utils/createAutumnEndpoint.js +12 -6
  63. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  64. package/dist/better-auth/utils/handleBetterAuthRoute.js +915 -768
  65. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  66. package/dist/better-auth/utils/index.js +915 -768
  67. package/dist/better-auth/utils/index.mjs +3 -3
  68. package/dist/react/AutumnContext.d.mts +1 -1
  69. package/dist/react/AutumnContext.d.ts +1 -1
  70. package/dist/react/AutumnProvider.js +15 -15
  71. package/dist/react/AutumnProvider.mjs +2 -2
  72. package/dist/react/{chunk-26CKSAPZ.mjs → chunk-7IDH4OMG.mjs} +1 -1
  73. package/dist/react/{chunk-HSQUB3BZ.mjs → chunk-BDG6JHEW.mjs} +1 -1
  74. package/dist/react/{chunk-KB72KQKN.mjs → chunk-DEZBJQEG.mjs} +1 -1
  75. package/dist/react/{chunk-XJZH5NMZ.mjs → chunk-E5ZHOMZ4.mjs} +23 -23
  76. package/dist/react/{chunk-OXQG65ZT.mjs → chunk-FWWIAOPU.mjs} +1 -1
  77. package/dist/react/{chunk-P23DM4IS.mjs → chunk-HRPQYDEN.mjs} +1 -1
  78. package/dist/react/{chunk-ZGPE4R6H.mjs → chunk-HVBDZARN.mjs} +2 -2
  79. package/dist/react/{chunk-CHU7CIWP.mjs → chunk-NSFHAUTD.mjs} +1 -1
  80. package/dist/react/{chunk-G7FTQLT7.mjs → chunk-YQFYWH7J.mjs} +1 -1
  81. package/dist/react/client/AutumnClient.d.mts +1 -1
  82. package/dist/react/client/AutumnClient.d.ts +1 -1
  83. package/dist/react/client/IAutumnClient.d.mts +1 -1
  84. package/dist/react/client/IAutumnClient.d.ts +1 -1
  85. package/dist/react/client/index.d.mts +1 -1
  86. package/dist/react/client/index.d.ts +1 -1
  87. package/dist/react/hooks/index.d.mts +1 -1
  88. package/dist/react/hooks/index.d.ts +1 -1
  89. package/dist/react/hooks/index.js +16 -16
  90. package/dist/react/hooks/index.mjs +13 -13
  91. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +1 -1
  92. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +1 -1
  93. package/dist/react/hooks/internal/useCustomerActions.d.mts +1 -1
  94. package/dist/react/hooks/internal/useCustomerActions.d.ts +1 -1
  95. package/dist/react/hooks/internal/useCustomerActions.js +1 -1
  96. package/dist/react/hooks/internal/useCustomerActions.mjs +2 -2
  97. package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
  98. package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
  99. package/dist/react/hooks/useAggregateEvents.js +16 -16
  100. package/dist/react/hooks/useAggregateEvents.mjs +2 -2
  101. package/dist/react/hooks/useCustomer.d.mts +1 -1
  102. package/dist/react/hooks/useCustomer.d.ts +1 -1
  103. package/dist/react/hooks/useCustomer.js +16 -16
  104. package/dist/react/hooks/useCustomer.mjs +3 -3
  105. package/dist/react/hooks/useEntity.d.mts +1 -1
  106. package/dist/react/hooks/useEntity.d.ts +1 -1
  107. package/dist/react/hooks/useEntity.js +16 -16
  108. package/dist/react/hooks/useEntity.mjs +2 -2
  109. package/dist/react/hooks/useListEvents.d.mts +1 -1
  110. package/dist/react/hooks/useListEvents.d.ts +1 -1
  111. package/dist/react/hooks/useListEvents.js +16 -16
  112. package/dist/react/hooks/useListEvents.mjs +2 -2
  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/useListPlans.js +16 -16
  116. package/dist/react/hooks/useListPlans.mjs +2 -2
  117. package/dist/react/hooks/useReferrals.d.mts +1 -1
  118. package/dist/react/hooks/useReferrals.d.ts +1 -1
  119. package/dist/react/hooks/useReferrals.js +16 -16
  120. package/dist/react/hooks/useReferrals.mjs +2 -2
  121. package/dist/react/index.d.mts +1 -1
  122. package/dist/react/index.d.ts +1 -1
  123. package/dist/react/index.js +22 -22
  124. package/dist/react/index.mjs +14 -14
  125. package/dist/react/{params-BOhsjvhF.d.ts → params-DWJn7Y2f.d.ts} +12 -0
  126. package/dist/react/{params-Bl3fAEku.d.mts → params-DpI-uEQy.d.mts} +12 -0
  127. package/dist/sdk/index.d.mts +87 -10
  128. package/dist/sdk/index.d.ts +87 -10
  129. package/dist/sdk/index.js +174 -14
  130. package/dist/sdk/index.mjs +167 -13
  131. package/package.json +1 -1
@@ -248,7 +248,7 @@ function isAbortError(err) {
248
248
  }
249
249
 
250
250
  // ../sdk/src/funcs/check.ts
251
- var z53 = __toESM(require("zod/v4-mini"), 1);
251
+ var z54 = __toESM(require("zod/v4-mini"), 1);
252
252
 
253
253
  // ../sdk/src/lib/base64.ts
254
254
  var z = __toESM(require("zod/v4-mini"), 1);
@@ -1892,7 +1892,8 @@ var AttachParams$outboundSchema = z10.pipe(
1892
1892
  ),
1893
1893
  metadata: z10.optional(z10.record(z10.string(), z10.string())),
1894
1894
  noBillingChanges: z10.optional(z10.boolean()),
1895
- enablePlanImmediately: z10.optional(z10.boolean())
1895
+ enablePlanImmediately: z10.optional(z10.boolean()),
1896
+ taxRateId: z10.optional(z10.string())
1896
1897
  }),
1897
1898
  z10.transform((v) => {
1898
1899
  return remap(v, {
@@ -1916,7 +1917,8 @@ var AttachParams$outboundSchema = z10.pipe(
1916
1917
  carryOverBalances: "carry_over_balances",
1917
1918
  carryOverUsages: "carry_over_usages",
1918
1919
  noBillingChanges: "no_billing_changes",
1919
- enablePlanImmediately: "enable_plan_immediately"
1920
+ enablePlanImmediately: "enable_plan_immediately",
1921
+ taxRateId: "tax_rate_id"
1920
1922
  });
1921
1923
  })
1922
1924
  );
@@ -5756,17 +5758,15 @@ var DeletePlanResponse$inboundSchema = z28.object({
5756
5758
 
5757
5759
  // ../sdk/src/models/finalize-lock-op.ts
5758
5760
  var z29 = __toESM(require("zod/v4-mini"), 1);
5759
- var Action = {
5761
+ var FinalizeLockAction = {
5760
5762
  Confirm: "confirm",
5761
5763
  Release: "release"
5762
5764
  };
5763
- var Action$outboundSchema = z29.enum(
5764
- Action
5765
- );
5765
+ var FinalizeLockAction$outboundSchema = z29.enum(FinalizeLockAction);
5766
5766
  var FinalizeBalanceParams$outboundSchema = z29.pipe(
5767
5767
  z29.object({
5768
5768
  lockId: z29.string(),
5769
- action: Action$outboundSchema,
5769
+ action: FinalizeLockAction$outboundSchema,
5770
5770
  overrideValue: z29.optional(z29.number()),
5771
5771
  properties: z29.optional(z29.record(z29.string(), z29.any()))
5772
5772
  }),
@@ -9140,7 +9140,8 @@ var PreviewAttachParams$outboundSchema = z42.pipe(
9140
9140
  ),
9141
9141
  metadata: z42.optional(z42.record(z42.string(), z42.string())),
9142
9142
  noBillingChanges: z42.optional(z42.boolean()),
9143
- enablePlanImmediately: z42.optional(z42.boolean())
9143
+ enablePlanImmediately: z42.optional(z42.boolean()),
9144
+ taxRateId: z42.optional(z42.string())
9144
9145
  }),
9145
9146
  z42.transform((v) => {
9146
9147
  return remap(v, {
@@ -9164,7 +9165,8 @@ var PreviewAttachParams$outboundSchema = z42.pipe(
9164
9165
  carryOverBalances: "carry_over_balances",
9165
9166
  carryOverUsages: "carry_over_usages",
9166
9167
  noBillingChanges: "no_billing_changes",
9167
- enablePlanImmediately: "enable_plan_immediately"
9168
+ enablePlanImmediately: "enable_plan_immediately",
9169
+ taxRateId: "tax_rate_id"
9168
9170
  });
9169
9171
  })
9170
9172
  );
@@ -10847,8 +10849,47 @@ var RedeemReferralCodeResponse$inboundSchema = z45.pipe(
10847
10849
  })
10848
10850
  );
10849
10851
 
10850
- // ../sdk/src/models/setup-payment-op.ts
10852
+ // ../sdk/src/models/redeem-reward-code-op.ts
10851
10853
  var z46 = __toESM(require("zod/v4-mini"), 1);
10854
+ var RedeemRewardCodeParams$outboundSchema = z46.pipe(
10855
+ z46.object({
10856
+ code: z46.string(),
10857
+ customerId: z46.string()
10858
+ }),
10859
+ z46.transform((v) => {
10860
+ return remap(v, {
10861
+ customerId: "customer_id"
10862
+ });
10863
+ })
10864
+ );
10865
+ var EntitlementsGranted$inboundSchema = z46.pipe(
10866
+ z46.object({
10867
+ feature_id: string4(),
10868
+ balance: number2()
10869
+ }),
10870
+ z46.transform((v) => {
10871
+ return remap(v, {
10872
+ "feature_id": "featureId"
10873
+ });
10874
+ })
10875
+ );
10876
+ var RedeemRewardCodeResponse$inboundSchema = z46.pipe(
10877
+ z46.object({
10878
+ reward_id: string4(),
10879
+ entitlements_granted: z46.array(
10880
+ z46.lazy(() => EntitlementsGranted$inboundSchema)
10881
+ )
10882
+ }),
10883
+ z46.transform((v) => {
10884
+ return remap(v, {
10885
+ "reward_id": "rewardId",
10886
+ "entitlements_granted": "entitlementsGranted"
10887
+ });
10888
+ })
10889
+ );
10890
+
10891
+ // ../sdk/src/models/setup-payment-op.ts
10892
+ var z47 = __toESM(require("zod/v4-mini"), 1);
10852
10893
  var SetupPaymentPriceInterval = {
10853
10894
  OneOff: "one_off",
10854
10895
  Week: "week",
@@ -10970,73 +11011,73 @@ var SetupPaymentProrationBehavior = {
10970
11011
  ProrateImmediately: "prorate_immediately",
10971
11012
  None: "none"
10972
11013
  };
10973
- var SetupPaymentFeatureQuantity$outboundSchema = z46.pipe(
10974
- z46.object({
10975
- featureId: z46.string(),
10976
- quantity: z46.optional(z46.number()),
10977
- adjustable: z46.optional(z46.boolean())
11014
+ var SetupPaymentFeatureQuantity$outboundSchema = z47.pipe(
11015
+ z47.object({
11016
+ featureId: z47.string(),
11017
+ quantity: z47.optional(z47.number()),
11018
+ adjustable: z47.optional(z47.boolean())
10978
11019
  }),
10979
- z46.transform((v) => {
11020
+ z47.transform((v) => {
10980
11021
  return remap(v, {
10981
11022
  featureId: "feature_id"
10982
11023
  });
10983
11024
  })
10984
11025
  );
10985
- var SetupPaymentPriceInterval$outboundSchema = z46.enum(SetupPaymentPriceInterval);
10986
- var SetupPaymentBasePrice$outboundSchema = z46.pipe(
10987
- z46.object({
10988
- amount: z46.number(),
11026
+ var SetupPaymentPriceInterval$outboundSchema = z47.enum(SetupPaymentPriceInterval);
11027
+ var SetupPaymentBasePrice$outboundSchema = z47.pipe(
11028
+ z47.object({
11029
+ amount: z47.number(),
10989
11030
  interval: SetupPaymentPriceInterval$outboundSchema,
10990
- intervalCount: z46.optional(z46.number())
11031
+ intervalCount: z47.optional(z47.number())
10991
11032
  }),
10992
- z46.transform((v) => {
11033
+ z47.transform((v) => {
10993
11034
  return remap(v, {
10994
11035
  intervalCount: "interval_count"
10995
11036
  });
10996
11037
  })
10997
11038
  );
10998
- var SetupPaymentItemResetInterval$outboundSchema = z46.enum(SetupPaymentItemResetInterval);
10999
- var SetupPaymentItemReset$outboundSchema = z46.pipe(
11000
- z46.object({
11039
+ var SetupPaymentItemResetInterval$outboundSchema = z47.enum(SetupPaymentItemResetInterval);
11040
+ var SetupPaymentItemReset$outboundSchema = z47.pipe(
11041
+ z47.object({
11001
11042
  interval: SetupPaymentItemResetInterval$outboundSchema,
11002
- intervalCount: z46.optional(z46.number())
11043
+ intervalCount: z47.optional(z47.number())
11003
11044
  }),
11004
- z46.transform((v) => {
11045
+ z47.transform((v) => {
11005
11046
  return remap(v, {
11006
11047
  intervalCount: "interval_count"
11007
11048
  });
11008
11049
  })
11009
11050
  );
11010
- var SetupPaymentItemTo$outboundSchema = smartUnion([z46.number(), z46.string()]);
11011
- var SetupPaymentItemTier$outboundSchema = z46.pipe(
11012
- z46.object({
11013
- to: smartUnion([z46.number(), z46.string()]),
11014
- amount: z46.optional(z46.number()),
11015
- flatAmount: z46.optional(z46.number())
11051
+ var SetupPaymentItemTo$outboundSchema = smartUnion([z47.number(), z47.string()]);
11052
+ var SetupPaymentItemTier$outboundSchema = z47.pipe(
11053
+ z47.object({
11054
+ to: smartUnion([z47.number(), z47.string()]),
11055
+ amount: z47.optional(z47.number()),
11056
+ flatAmount: z47.optional(z47.number())
11016
11057
  }),
11017
- z46.transform((v) => {
11058
+ z47.transform((v) => {
11018
11059
  return remap(v, {
11019
11060
  flatAmount: "flat_amount"
11020
11061
  });
11021
11062
  })
11022
11063
  );
11023
- var SetupPaymentItemTierBehavior$outboundSchema = z46.enum(SetupPaymentItemTierBehavior);
11024
- var SetupPaymentItemPriceInterval$outboundSchema = z46.enum(SetupPaymentItemPriceInterval);
11025
- var SetupPaymentItemBillingMethod$outboundSchema = z46.enum(SetupPaymentItemBillingMethod);
11026
- var SetupPaymentItemPrice$outboundSchema = z46.pipe(
11027
- z46.object({
11028
- amount: z46.optional(z46.number()),
11029
- tiers: z46.optional(
11030
- z46.array(z46.lazy(() => SetupPaymentItemTier$outboundSchema))
11064
+ var SetupPaymentItemTierBehavior$outboundSchema = z47.enum(SetupPaymentItemTierBehavior);
11065
+ var SetupPaymentItemPriceInterval$outboundSchema = z47.enum(SetupPaymentItemPriceInterval);
11066
+ var SetupPaymentItemBillingMethod$outboundSchema = z47.enum(SetupPaymentItemBillingMethod);
11067
+ var SetupPaymentItemPrice$outboundSchema = z47.pipe(
11068
+ z47.object({
11069
+ amount: z47.optional(z47.number()),
11070
+ tiers: z47.optional(
11071
+ z47.array(z47.lazy(() => SetupPaymentItemTier$outboundSchema))
11031
11072
  ),
11032
- tierBehavior: z46.optional(SetupPaymentItemTierBehavior$outboundSchema),
11073
+ tierBehavior: z47.optional(SetupPaymentItemTierBehavior$outboundSchema),
11033
11074
  interval: SetupPaymentItemPriceInterval$outboundSchema,
11034
- intervalCount: z46._default(z46.number(), 1),
11035
- billingUnits: z46._default(z46.number(), 1),
11075
+ intervalCount: z47._default(z47.number(), 1),
11076
+ billingUnits: z47._default(z47.number(), 1),
11036
11077
  billingMethod: SetupPaymentItemBillingMethod$outboundSchema,
11037
- maxPurchase: z46.optional(z46.number())
11078
+ maxPurchase: z47.optional(z47.number())
11038
11079
  }),
11039
- z46.transform((v) => {
11080
+ z47.transform((v) => {
11040
11081
  return remap(v, {
11041
11082
  tierBehavior: "tier_behavior",
11042
11083
  intervalCount: "interval_count",
@@ -11046,29 +11087,29 @@ var SetupPaymentItemPrice$outboundSchema = z46.pipe(
11046
11087
  });
11047
11088
  })
11048
11089
  );
11049
- var SetupPaymentItemOnIncrease$outboundSchema = z46.enum(SetupPaymentItemOnIncrease);
11050
- var SetupPaymentItemOnDecrease$outboundSchema = z46.enum(SetupPaymentItemOnDecrease);
11051
- var SetupPaymentItemProration$outboundSchema = z46.pipe(
11052
- z46.object({
11090
+ var SetupPaymentItemOnIncrease$outboundSchema = z47.enum(SetupPaymentItemOnIncrease);
11091
+ var SetupPaymentItemOnDecrease$outboundSchema = z47.enum(SetupPaymentItemOnDecrease);
11092
+ var SetupPaymentItemProration$outboundSchema = z47.pipe(
11093
+ z47.object({
11053
11094
  onIncrease: SetupPaymentItemOnIncrease$outboundSchema,
11054
11095
  onDecrease: SetupPaymentItemOnDecrease$outboundSchema
11055
11096
  }),
11056
- z46.transform((v) => {
11097
+ z47.transform((v) => {
11057
11098
  return remap(v, {
11058
11099
  onIncrease: "on_increase",
11059
11100
  onDecrease: "on_decrease"
11060
11101
  });
11061
11102
  })
11062
11103
  );
11063
- var SetupPaymentItemExpiryDurationType$outboundSchema = z46.enum(SetupPaymentItemExpiryDurationType);
11064
- var SetupPaymentItemRollover$outboundSchema = z46.pipe(
11065
- z46.object({
11066
- max: z46.optional(z46.number()),
11067
- maxPercentage: z46.optional(z46.number()),
11104
+ var SetupPaymentItemExpiryDurationType$outboundSchema = z47.enum(SetupPaymentItemExpiryDurationType);
11105
+ var SetupPaymentItemRollover$outboundSchema = z47.pipe(
11106
+ z47.object({
11107
+ max: z47.optional(z47.number()),
11108
+ maxPercentage: z47.optional(z47.number()),
11068
11109
  expiryDurationType: SetupPaymentItemExpiryDurationType$outboundSchema,
11069
- expiryDurationLength: z46.optional(z46.number())
11110
+ expiryDurationLength: z47.optional(z47.number())
11070
11111
  }),
11071
- z46.transform((v) => {
11112
+ z47.transform((v) => {
11072
11113
  return remap(v, {
11073
11114
  maxPercentage: "max_percentage",
11074
11115
  expiryDurationType: "expiry_duration_type",
@@ -11076,66 +11117,66 @@ var SetupPaymentItemRollover$outboundSchema = z46.pipe(
11076
11117
  });
11077
11118
  })
11078
11119
  );
11079
- var SetupPaymentItemPlanItem$outboundSchema = z46.pipe(
11080
- z46.object({
11081
- featureId: z46.string(),
11082
- included: z46.optional(z46.number()),
11083
- unlimited: z46.optional(z46.boolean()),
11084
- reset: z46.optional(z46.lazy(() => SetupPaymentItemReset$outboundSchema)),
11085
- price: z46.optional(z46.lazy(() => SetupPaymentItemPrice$outboundSchema)),
11086
- proration: z46.optional(
11087
- z46.lazy(() => SetupPaymentItemProration$outboundSchema)
11120
+ var SetupPaymentItemPlanItem$outboundSchema = z47.pipe(
11121
+ z47.object({
11122
+ featureId: z47.string(),
11123
+ included: z47.optional(z47.number()),
11124
+ unlimited: z47.optional(z47.boolean()),
11125
+ reset: z47.optional(z47.lazy(() => SetupPaymentItemReset$outboundSchema)),
11126
+ price: z47.optional(z47.lazy(() => SetupPaymentItemPrice$outboundSchema)),
11127
+ proration: z47.optional(
11128
+ z47.lazy(() => SetupPaymentItemProration$outboundSchema)
11088
11129
  ),
11089
- rollover: z46.optional(z46.lazy(() => SetupPaymentItemRollover$outboundSchema))
11130
+ rollover: z47.optional(z47.lazy(() => SetupPaymentItemRollover$outboundSchema))
11090
11131
  }),
11091
- z46.transform((v) => {
11132
+ z47.transform((v) => {
11092
11133
  return remap(v, {
11093
11134
  featureId: "feature_id"
11094
11135
  });
11095
11136
  })
11096
11137
  );
11097
- var SetupPaymentAddItemResetInterval$outboundSchema = z46.enum(SetupPaymentAddItemResetInterval);
11098
- var SetupPaymentAddItemReset$outboundSchema = z46.pipe(
11099
- z46.object({
11138
+ var SetupPaymentAddItemResetInterval$outboundSchema = z47.enum(SetupPaymentAddItemResetInterval);
11139
+ var SetupPaymentAddItemReset$outboundSchema = z47.pipe(
11140
+ z47.object({
11100
11141
  interval: SetupPaymentAddItemResetInterval$outboundSchema,
11101
- intervalCount: z46.optional(z46.number())
11142
+ intervalCount: z47.optional(z47.number())
11102
11143
  }),
11103
- z46.transform((v) => {
11144
+ z47.transform((v) => {
11104
11145
  return remap(v, {
11105
11146
  intervalCount: "interval_count"
11106
11147
  });
11107
11148
  })
11108
11149
  );
11109
- var SetupPaymentAddItemTo$outboundSchema = smartUnion([z46.number(), z46.string()]);
11110
- var SetupPaymentAddItemTier$outboundSchema = z46.pipe(
11111
- z46.object({
11112
- to: smartUnion([z46.number(), z46.string()]),
11113
- amount: z46.optional(z46.number()),
11114
- flatAmount: z46.optional(z46.number())
11150
+ var SetupPaymentAddItemTo$outboundSchema = smartUnion([z47.number(), z47.string()]);
11151
+ var SetupPaymentAddItemTier$outboundSchema = z47.pipe(
11152
+ z47.object({
11153
+ to: smartUnion([z47.number(), z47.string()]),
11154
+ amount: z47.optional(z47.number()),
11155
+ flatAmount: z47.optional(z47.number())
11115
11156
  }),
11116
- z46.transform((v) => {
11157
+ z47.transform((v) => {
11117
11158
  return remap(v, {
11118
11159
  flatAmount: "flat_amount"
11119
11160
  });
11120
11161
  })
11121
11162
  );
11122
- var SetupPaymentAddItemTierBehavior$outboundSchema = z46.enum(SetupPaymentAddItemTierBehavior);
11123
- var SetupPaymentAddItemPriceInterval$outboundSchema = z46.enum(SetupPaymentAddItemPriceInterval);
11124
- var SetupPaymentAddItemBillingMethod$outboundSchema = z46.enum(SetupPaymentAddItemBillingMethod);
11125
- var SetupPaymentAddItemPrice$outboundSchema = z46.pipe(
11126
- z46.object({
11127
- amount: z46.optional(z46.number()),
11128
- tiers: z46.optional(
11129
- z46.array(z46.lazy(() => SetupPaymentAddItemTier$outboundSchema))
11163
+ var SetupPaymentAddItemTierBehavior$outboundSchema = z47.enum(SetupPaymentAddItemTierBehavior);
11164
+ var SetupPaymentAddItemPriceInterval$outboundSchema = z47.enum(SetupPaymentAddItemPriceInterval);
11165
+ var SetupPaymentAddItemBillingMethod$outboundSchema = z47.enum(SetupPaymentAddItemBillingMethod);
11166
+ var SetupPaymentAddItemPrice$outboundSchema = z47.pipe(
11167
+ z47.object({
11168
+ amount: z47.optional(z47.number()),
11169
+ tiers: z47.optional(
11170
+ z47.array(z47.lazy(() => SetupPaymentAddItemTier$outboundSchema))
11130
11171
  ),
11131
- tierBehavior: z46.optional(SetupPaymentAddItemTierBehavior$outboundSchema),
11172
+ tierBehavior: z47.optional(SetupPaymentAddItemTierBehavior$outboundSchema),
11132
11173
  interval: SetupPaymentAddItemPriceInterval$outboundSchema,
11133
- intervalCount: z46._default(z46.number(), 1),
11134
- billingUnits: z46._default(z46.number(), 1),
11174
+ intervalCount: z47._default(z47.number(), 1),
11175
+ billingUnits: z47._default(z47.number(), 1),
11135
11176
  billingMethod: SetupPaymentAddItemBillingMethod$outboundSchema,
11136
- maxPurchase: z46.optional(z46.number())
11177
+ maxPurchase: z47.optional(z47.number())
11137
11178
  }),
11138
- z46.transform((v) => {
11179
+ z47.transform((v) => {
11139
11180
  return remap(v, {
11140
11181
  tierBehavior: "tier_behavior",
11141
11182
  intervalCount: "interval_count",
@@ -11145,31 +11186,31 @@ var SetupPaymentAddItemPrice$outboundSchema = z46.pipe(
11145
11186
  });
11146
11187
  })
11147
11188
  );
11148
- var SetupPaymentAddItemOnIncrease$outboundSchema = z46.enum(SetupPaymentAddItemOnIncrease);
11149
- var SetupPaymentAddItemOnDecrease$outboundSchema = z46.enum(SetupPaymentAddItemOnDecrease);
11150
- var SetupPaymentAddItemProration$outboundSchema = z46.pipe(
11151
- z46.object({
11189
+ var SetupPaymentAddItemOnIncrease$outboundSchema = z47.enum(SetupPaymentAddItemOnIncrease);
11190
+ var SetupPaymentAddItemOnDecrease$outboundSchema = z47.enum(SetupPaymentAddItemOnDecrease);
11191
+ var SetupPaymentAddItemProration$outboundSchema = z47.pipe(
11192
+ z47.object({
11152
11193
  onIncrease: SetupPaymentAddItemOnIncrease$outboundSchema,
11153
11194
  onDecrease: SetupPaymentAddItemOnDecrease$outboundSchema
11154
11195
  }),
11155
- z46.transform((v) => {
11196
+ z47.transform((v) => {
11156
11197
  return remap(v, {
11157
11198
  onIncrease: "on_increase",
11158
11199
  onDecrease: "on_decrease"
11159
11200
  });
11160
11201
  })
11161
11202
  );
11162
- var SetupPaymentAddItemExpiryDurationType$outboundSchema = z46.enum(
11203
+ var SetupPaymentAddItemExpiryDurationType$outboundSchema = z47.enum(
11163
11204
  SetupPaymentAddItemExpiryDurationType
11164
11205
  );
11165
- var SetupPaymentAddItemRollover$outboundSchema = z46.pipe(
11166
- z46.object({
11167
- max: z46.optional(z46.number()),
11168
- maxPercentage: z46.optional(z46.number()),
11206
+ var SetupPaymentAddItemRollover$outboundSchema = z47.pipe(
11207
+ z47.object({
11208
+ max: z47.optional(z47.number()),
11209
+ maxPercentage: z47.optional(z47.number()),
11169
11210
  expiryDurationType: SetupPaymentAddItemExpiryDurationType$outboundSchema,
11170
- expiryDurationLength: z46.optional(z46.number())
11211
+ expiryDurationLength: z47.optional(z47.number())
11171
11212
  }),
11172
- z46.transform((v) => {
11213
+ z47.transform((v) => {
11173
11214
  return remap(v, {
11174
11215
  maxPercentage: "max_percentage",
11175
11216
  expiryDurationType: "expiry_duration_type",
@@ -11177,53 +11218,53 @@ var SetupPaymentAddItemRollover$outboundSchema = z46.pipe(
11177
11218
  });
11178
11219
  })
11179
11220
  );
11180
- var SetupPaymentAddItemPlanItem$outboundSchema = z46.pipe(
11181
- z46.object({
11182
- featureId: z46.string(),
11183
- included: z46.optional(z46.number()),
11184
- unlimited: z46.optional(z46.boolean()),
11185
- reset: z46.optional(z46.lazy(() => SetupPaymentAddItemReset$outboundSchema)),
11186
- price: z46.optional(z46.lazy(() => SetupPaymentAddItemPrice$outboundSchema)),
11187
- proration: z46.optional(
11188
- z46.lazy(() => SetupPaymentAddItemProration$outboundSchema)
11221
+ var SetupPaymentAddItemPlanItem$outboundSchema = z47.pipe(
11222
+ z47.object({
11223
+ featureId: z47.string(),
11224
+ included: z47.optional(z47.number()),
11225
+ unlimited: z47.optional(z47.boolean()),
11226
+ reset: z47.optional(z47.lazy(() => SetupPaymentAddItemReset$outboundSchema)),
11227
+ price: z47.optional(z47.lazy(() => SetupPaymentAddItemPrice$outboundSchema)),
11228
+ proration: z47.optional(
11229
+ z47.lazy(() => SetupPaymentAddItemProration$outboundSchema)
11189
11230
  ),
11190
- rollover: z46.optional(
11191
- z46.lazy(() => SetupPaymentAddItemRollover$outboundSchema)
11231
+ rollover: z47.optional(
11232
+ z47.lazy(() => SetupPaymentAddItemRollover$outboundSchema)
11192
11233
  )
11193
11234
  }),
11194
- z46.transform((v) => {
11235
+ z47.transform((v) => {
11195
11236
  return remap(v, {
11196
11237
  featureId: "feature_id"
11197
11238
  });
11198
11239
  })
11199
11240
  );
11200
- var SetupPaymentRemoveItemBillingMethod$outboundSchema = z46.enum(SetupPaymentRemoveItemBillingMethod);
11201
- var SetupPaymentRemoveItemInterval$outboundSchema = z46.enum(SetupPaymentRemoveItemInterval);
11202
- var SetupPaymentPlanItemFilter$outboundSchema = z46.pipe(
11203
- z46.object({
11204
- featureId: z46.optional(z46.string()),
11205
- billingMethod: z46.optional(
11241
+ var SetupPaymentRemoveItemBillingMethod$outboundSchema = z47.enum(SetupPaymentRemoveItemBillingMethod);
11242
+ var SetupPaymentRemoveItemInterval$outboundSchema = z47.enum(SetupPaymentRemoveItemInterval);
11243
+ var SetupPaymentPlanItemFilter$outboundSchema = z47.pipe(
11244
+ z47.object({
11245
+ featureId: z47.optional(z47.string()),
11246
+ billingMethod: z47.optional(
11206
11247
  SetupPaymentRemoveItemBillingMethod$outboundSchema
11207
11248
  ),
11208
- interval: z46.optional(SetupPaymentRemoveItemInterval$outboundSchema)
11249
+ interval: z47.optional(SetupPaymentRemoveItemInterval$outboundSchema)
11209
11250
  }),
11210
- z46.transform((v) => {
11251
+ z47.transform((v) => {
11211
11252
  return remap(v, {
11212
11253
  featureId: "feature_id",
11213
11254
  billingMethod: "billing_method"
11214
11255
  });
11215
11256
  })
11216
11257
  );
11217
- var SetupPaymentDurationType$outboundSchema = z46.enum(SetupPaymentDurationType);
11218
- var SetupPaymentOnEnd$outboundSchema = z46.enum(SetupPaymentOnEnd);
11219
- var SetupPaymentFreeTrialParams$outboundSchema = z46.pipe(
11220
- z46.object({
11221
- durationLength: z46.number(),
11222
- durationType: z46._default(SetupPaymentDurationType$outboundSchema, "month"),
11223
- cardRequired: z46._default(z46.boolean(), true),
11224
- onEnd: z46.optional(SetupPaymentOnEnd$outboundSchema)
11258
+ var SetupPaymentDurationType$outboundSchema = z47.enum(SetupPaymentDurationType);
11259
+ var SetupPaymentOnEnd$outboundSchema = z47.enum(SetupPaymentOnEnd);
11260
+ var SetupPaymentFreeTrialParams$outboundSchema = z47.pipe(
11261
+ z47.object({
11262
+ durationLength: z47.number(),
11263
+ durationType: z47._default(SetupPaymentDurationType$outboundSchema, "month"),
11264
+ cardRequired: z47._default(z47.boolean(), true),
11265
+ onEnd: z47.optional(SetupPaymentOnEnd$outboundSchema)
11225
11266
  }),
11226
- z46.transform((v) => {
11267
+ z47.transform((v) => {
11227
11268
  return remap(v, {
11228
11269
  durationLength: "duration_length",
11229
11270
  durationType: "duration_type",
@@ -11232,25 +11273,25 @@ var SetupPaymentFreeTrialParams$outboundSchema = z46.pipe(
11232
11273
  });
11233
11274
  })
11234
11275
  );
11235
- var SetupPaymentCustomize$outboundSchema = z46.pipe(
11236
- z46.object({
11237
- price: z46.optional(
11238
- z46.nullable(z46.lazy(() => SetupPaymentBasePrice$outboundSchema))
11276
+ var SetupPaymentCustomize$outboundSchema = z47.pipe(
11277
+ z47.object({
11278
+ price: z47.optional(
11279
+ z47.nullable(z47.lazy(() => SetupPaymentBasePrice$outboundSchema))
11239
11280
  ),
11240
- items: z46.optional(
11241
- z46.array(z46.lazy(() => SetupPaymentItemPlanItem$outboundSchema))
11281
+ items: z47.optional(
11282
+ z47.array(z47.lazy(() => SetupPaymentItemPlanItem$outboundSchema))
11242
11283
  ),
11243
- addItems: z46.optional(
11244
- z46.array(z46.lazy(() => SetupPaymentAddItemPlanItem$outboundSchema))
11284
+ addItems: z47.optional(
11285
+ z47.array(z47.lazy(() => SetupPaymentAddItemPlanItem$outboundSchema))
11245
11286
  ),
11246
- removeItems: z46.optional(
11247
- z46.array(z46.lazy(() => SetupPaymentPlanItemFilter$outboundSchema))
11287
+ removeItems: z47.optional(
11288
+ z47.array(z47.lazy(() => SetupPaymentPlanItemFilter$outboundSchema))
11248
11289
  ),
11249
- freeTrial: z46.optional(
11250
- z46.nullable(z46.lazy(() => SetupPaymentFreeTrialParams$outboundSchema))
11290
+ freeTrial: z47.optional(
11291
+ z47.nullable(z47.lazy(() => SetupPaymentFreeTrialParams$outboundSchema))
11251
11292
  )
11252
11293
  }),
11253
- z46.transform((v) => {
11294
+ z47.transform((v) => {
11254
11295
  return remap(v, {
11255
11296
  addItems: "add_items",
11256
11297
  removeItems: "remove_items",
@@ -11258,80 +11299,81 @@ var SetupPaymentCustomize$outboundSchema = z46.pipe(
11258
11299
  });
11259
11300
  })
11260
11301
  );
11261
- var SetupPaymentProrationBehavior$outboundSchema = z46.enum(SetupPaymentProrationBehavior);
11262
- var SetupPaymentAttachDiscount$outboundSchema = z46.pipe(
11263
- z46.object({
11264
- rewardId: z46.optional(z46.string()),
11265
- promotionCode: z46.optional(z46.string())
11302
+ var SetupPaymentProrationBehavior$outboundSchema = z47.enum(SetupPaymentProrationBehavior);
11303
+ var SetupPaymentAttachDiscount$outboundSchema = z47.pipe(
11304
+ z47.object({
11305
+ rewardId: z47.optional(z47.string()),
11306
+ promotionCode: z47.optional(z47.string())
11266
11307
  }),
11267
- z46.transform((v) => {
11308
+ z47.transform((v) => {
11268
11309
  return remap(v, {
11269
11310
  rewardId: "reward_id",
11270
11311
  promotionCode: "promotion_code"
11271
11312
  });
11272
11313
  })
11273
11314
  );
11274
- var SetupPaymentCustomLineItem$outboundSchema = z46.object({
11275
- amount: z46.number(),
11276
- description: z46.string()
11315
+ var SetupPaymentCustomLineItem$outboundSchema = z47.object({
11316
+ amount: z47.number(),
11317
+ description: z47.string()
11277
11318
  });
11278
- var SetupPaymentCarryOverBalances$outboundSchema = z46.pipe(
11279
- z46.object({
11280
- enabled: z46.boolean(),
11281
- featureIds: z46.optional(z46.array(z46.string()))
11319
+ var SetupPaymentCarryOverBalances$outboundSchema = z47.pipe(
11320
+ z47.object({
11321
+ enabled: z47.boolean(),
11322
+ featureIds: z47.optional(z47.array(z47.string()))
11282
11323
  }),
11283
- z46.transform((v) => {
11324
+ z47.transform((v) => {
11284
11325
  return remap(v, {
11285
11326
  featureIds: "feature_ids"
11286
11327
  });
11287
11328
  })
11288
11329
  );
11289
- var SetupPaymentCarryOverUsages$outboundSchema = z46.pipe(
11290
- z46.object({
11291
- enabled: z46.boolean(),
11292
- featureIds: z46.optional(z46.array(z46.string()))
11330
+ var SetupPaymentCarryOverUsages$outboundSchema = z47.pipe(
11331
+ z47.object({
11332
+ enabled: z47.boolean(),
11333
+ featureIds: z47.optional(z47.array(z47.string()))
11293
11334
  }),
11294
- z46.transform((v) => {
11335
+ z47.transform((v) => {
11295
11336
  return remap(v, {
11296
11337
  featureIds: "feature_ids"
11297
11338
  });
11298
11339
  })
11299
11340
  );
11300
- var SetupPaymentParams$outboundSchema = z46.pipe(
11301
- z46.object({
11302
- customerId: z46.string(),
11303
- entityId: z46.optional(z46.string()),
11304
- planId: z46.optional(z46.string()),
11305
- featureQuantities: z46.optional(
11306
- z46.array(z46.lazy(() => SetupPaymentFeatureQuantity$outboundSchema))
11341
+ var SetupPaymentParams$outboundSchema = z47.pipe(
11342
+ z47.object({
11343
+ customerId: z47.string(),
11344
+ entityId: z47.optional(z47.string()),
11345
+ planId: z47.optional(z47.string()),
11346
+ featureQuantities: z47.optional(
11347
+ z47.array(z47.lazy(() => SetupPaymentFeatureQuantity$outboundSchema))
11307
11348
  ),
11308
- version: z46.optional(z46.number()),
11309
- customize: z46.optional(z46.lazy(() => SetupPaymentCustomize$outboundSchema)),
11310
- prorationBehavior: z46.optional(SetupPaymentProrationBehavior$outboundSchema),
11311
- subscriptionId: z46.optional(z46.string()),
11312
- discounts: z46.optional(
11313
- z46.array(z46.lazy(() => SetupPaymentAttachDiscount$outboundSchema))
11349
+ version: z47.optional(z47.number()),
11350
+ customize: z47.optional(z47.lazy(() => SetupPaymentCustomize$outboundSchema)),
11351
+ prorationBehavior: z47.optional(SetupPaymentProrationBehavior$outboundSchema),
11352
+ subscriptionId: z47.optional(z47.string()),
11353
+ discounts: z47.optional(
11354
+ z47.array(z47.lazy(() => SetupPaymentAttachDiscount$outboundSchema))
11314
11355
  ),
11315
- successUrl: z46.optional(z46.string()),
11316
- billingCycleAnchor: z46.optional(z46.literal("now")),
11317
- startsAt: z46.optional(z46.int()),
11318
- endsAt: z46.optional(z46.int()),
11319
- checkoutSessionParams: z46.optional(z46.record(z46.string(), z46.any())),
11320
- customLineItems: z46.optional(
11321
- z46.array(z46.lazy(() => SetupPaymentCustomLineItem$outboundSchema))
11356
+ successUrl: z47.optional(z47.string()),
11357
+ billingCycleAnchor: z47.optional(z47.literal("now")),
11358
+ startsAt: z47.optional(z47.int()),
11359
+ endsAt: z47.optional(z47.int()),
11360
+ checkoutSessionParams: z47.optional(z47.record(z47.string(), z47.any())),
11361
+ customLineItems: z47.optional(
11362
+ z47.array(z47.lazy(() => SetupPaymentCustomLineItem$outboundSchema))
11322
11363
  ),
11323
- processorSubscriptionId: z46.optional(z46.string()),
11324
- carryOverBalances: z46.optional(
11325
- z46.lazy(() => SetupPaymentCarryOverBalances$outboundSchema)
11364
+ processorSubscriptionId: z47.optional(z47.string()),
11365
+ carryOverBalances: z47.optional(
11366
+ z47.lazy(() => SetupPaymentCarryOverBalances$outboundSchema)
11326
11367
  ),
11327
- carryOverUsages: z46.optional(
11328
- z46.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
11368
+ carryOverUsages: z47.optional(
11369
+ z47.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
11329
11370
  ),
11330
- metadata: z46.optional(z46.record(z46.string(), z46.string())),
11331
- noBillingChanges: z46.optional(z46.boolean()),
11332
- enablePlanImmediately: z46.optional(z46.boolean())
11371
+ metadata: z47.optional(z47.record(z47.string(), z47.string())),
11372
+ noBillingChanges: z47.optional(z47.boolean()),
11373
+ enablePlanImmediately: z47.optional(z47.boolean()),
11374
+ taxRateId: z47.optional(z47.string())
11333
11375
  }),
11334
- z46.transform((v) => {
11376
+ z47.transform((v) => {
11335
11377
  return remap(v, {
11336
11378
  customerId: "customer_id",
11337
11379
  entityId: "entity_id",
@@ -11349,17 +11391,18 @@ var SetupPaymentParams$outboundSchema = z46.pipe(
11349
11391
  carryOverBalances: "carry_over_balances",
11350
11392
  carryOverUsages: "carry_over_usages",
11351
11393
  noBillingChanges: "no_billing_changes",
11352
- enablePlanImmediately: "enable_plan_immediately"
11394
+ enablePlanImmediately: "enable_plan_immediately",
11395
+ taxRateId: "tax_rate_id"
11353
11396
  });
11354
11397
  })
11355
11398
  );
11356
- var SetupPaymentResponse$inboundSchema = z46.pipe(
11357
- z46.object({
11399
+ var SetupPaymentResponse$inboundSchema = z47.pipe(
11400
+ z47.object({
11358
11401
  customer_id: string4(),
11359
11402
  entity_id: optional3(string4()),
11360
11403
  url: string4()
11361
11404
  }),
11362
- z46.transform((v) => {
11405
+ z47.transform((v) => {
11363
11406
  return remap(v, {
11364
11407
  "customer_id": "customerId",
11365
11408
  "entity_id": "entityId"
@@ -11368,7 +11411,7 @@ var SetupPaymentResponse$inboundSchema = z46.pipe(
11368
11411
  );
11369
11412
 
11370
11413
  // ../sdk/src/models/track-op.ts
11371
- var z47 = __toESM(require("zod/v4-mini"), 1);
11414
+ var z48 = __toESM(require("zod/v4-mini"), 1);
11372
11415
  var TrackIntervalEnum2 = {
11373
11416
  OneOff: "one_off",
11374
11417
  Minute: "minute",
@@ -11391,30 +11434,30 @@ var TrackIntervalEnum1 = {
11391
11434
  SemiAnnual: "semi_annual",
11392
11435
  Year: "year"
11393
11436
  };
11394
- var TrackLock$outboundSchema = z47.pipe(
11395
- z47.object({
11396
- lockId: z47.string(),
11397
- enabled: z47.literal(true),
11398
- expiresAt: z47.optional(z47.number())
11437
+ var TrackLock$outboundSchema = z48.pipe(
11438
+ z48.object({
11439
+ lockId: z48.string(),
11440
+ enabled: z48.literal(true),
11441
+ expiresAt: z48.optional(z48.number())
11399
11442
  }),
11400
- z47.transform((v) => {
11443
+ z48.transform((v) => {
11401
11444
  return remap(v, {
11402
11445
  lockId: "lock_id",
11403
11446
  expiresAt: "expires_at"
11404
11447
  });
11405
11448
  })
11406
11449
  );
11407
- var TrackParams$outboundSchema = z47.pipe(
11408
- z47.object({
11409
- customerId: z47.string(),
11410
- featureId: z47.optional(z47.string()),
11411
- entityId: z47.optional(z47.string()),
11412
- eventName: z47.optional(z47.string()),
11413
- value: z47.optional(z47.number()),
11414
- properties: z47.optional(z47.record(z47.string(), z47.any())),
11415
- lock: z47.optional(z47.lazy(() => TrackLock$outboundSchema))
11450
+ var TrackParams$outboundSchema = z48.pipe(
11451
+ z48.object({
11452
+ customerId: z48.string(),
11453
+ featureId: z48.optional(z48.string()),
11454
+ entityId: z48.optional(z48.string()),
11455
+ eventName: z48.optional(z48.string()),
11456
+ value: z48.optional(z48.number()),
11457
+ properties: z48.optional(z48.record(z48.string(), z48.any())),
11458
+ lock: z48.optional(z48.lazy(() => TrackLock$outboundSchema))
11416
11459
  }),
11417
- z47.transform((v) => {
11460
+ z48.transform((v) => {
11418
11461
  return remap(v, {
11419
11462
  customerId: "customer_id",
11420
11463
  featureId: "feature_id",
@@ -11425,28 +11468,28 @@ var TrackParams$outboundSchema = z47.pipe(
11425
11468
  );
11426
11469
  var TrackIntervalEnum2$inboundSchema = inboundSchema(TrackIntervalEnum2);
11427
11470
  var TrackIntervalUnion2$inboundSchema = smartUnion([TrackIntervalEnum2$inboundSchema, string4()]);
11428
- var TrackReset2$inboundSchema = z47.pipe(
11429
- z47.object({
11471
+ var TrackReset2$inboundSchema = z48.pipe(
11472
+ z48.object({
11430
11473
  interval: smartUnion([TrackIntervalEnum2$inboundSchema, string4()]),
11431
11474
  interval_count: optional3(number2()),
11432
11475
  resets_at: nullable(number2())
11433
11476
  }),
11434
- z47.transform((v) => {
11477
+ z48.transform((v) => {
11435
11478
  return remap(v, {
11436
11479
  "interval_count": "intervalCount",
11437
11480
  "resets_at": "resetsAt"
11438
11481
  });
11439
11482
  })
11440
11483
  );
11441
- var Deduction2$inboundSchema = z47.pipe(
11442
- z47.object({
11484
+ var Deduction2$inboundSchema = z48.pipe(
11485
+ z48.object({
11443
11486
  balance_id: string4(),
11444
11487
  feature_id: string4(),
11445
11488
  plan_id: nullable(string4()),
11446
- reset: nullable(z47.lazy(() => TrackReset2$inboundSchema)),
11489
+ reset: nullable(z48.lazy(() => TrackReset2$inboundSchema)),
11447
11490
  value: number2()
11448
11491
  }),
11449
- z47.transform((v) => {
11492
+ z48.transform((v) => {
11450
11493
  return remap(v, {
11451
11494
  "balance_id": "balanceId",
11452
11495
  "feature_id": "featureId",
@@ -11454,19 +11497,19 @@ var Deduction2$inboundSchema = z47.pipe(
11454
11497
  });
11455
11498
  })
11456
11499
  );
11457
- var TrackResponseBody2$inboundSchema = z47.pipe(
11458
- z47.object({
11500
+ var TrackResponseBody2$inboundSchema = z48.pipe(
11501
+ z48.object({
11459
11502
  customer_id: string4(),
11460
11503
  entity_id: optional3(string4()),
11461
11504
  event_name: optional3(string4()),
11462
11505
  value: number2(),
11463
11506
  balance: nullable(Balance$inboundSchema),
11464
11507
  balances: optional3(
11465
- z47.record(z47.string(), nullable(Balance$inboundSchema))
11508
+ z48.record(z48.string(), nullable(Balance$inboundSchema))
11466
11509
  ),
11467
- deductions: optional3(z47.array(z47.lazy(() => Deduction2$inboundSchema)))
11510
+ deductions: optional3(z48.array(z48.lazy(() => Deduction2$inboundSchema)))
11468
11511
  }),
11469
- z47.transform((v) => {
11512
+ z48.transform((v) => {
11470
11513
  return remap(v, {
11471
11514
  "customer_id": "customerId",
11472
11515
  "entity_id": "entityId",
@@ -11476,28 +11519,28 @@ var TrackResponseBody2$inboundSchema = z47.pipe(
11476
11519
  );
11477
11520
  var TrackIntervalEnum1$inboundSchema = inboundSchema(TrackIntervalEnum1);
11478
11521
  var TrackIntervalUnion1$inboundSchema = smartUnion([TrackIntervalEnum1$inboundSchema, string4()]);
11479
- var TrackReset1$inboundSchema = z47.pipe(
11480
- z47.object({
11522
+ var TrackReset1$inboundSchema = z48.pipe(
11523
+ z48.object({
11481
11524
  interval: smartUnion([TrackIntervalEnum1$inboundSchema, string4()]),
11482
11525
  interval_count: optional3(number2()),
11483
11526
  resets_at: nullable(number2())
11484
11527
  }),
11485
- z47.transform((v) => {
11528
+ z48.transform((v) => {
11486
11529
  return remap(v, {
11487
11530
  "interval_count": "intervalCount",
11488
11531
  "resets_at": "resetsAt"
11489
11532
  });
11490
11533
  })
11491
11534
  );
11492
- var Deduction1$inboundSchema = z47.pipe(
11493
- z47.object({
11535
+ var Deduction1$inboundSchema = z48.pipe(
11536
+ z48.object({
11494
11537
  balance_id: string4(),
11495
11538
  feature_id: string4(),
11496
11539
  plan_id: nullable(string4()),
11497
- reset: nullable(z47.lazy(() => TrackReset1$inboundSchema)),
11540
+ reset: nullable(z48.lazy(() => TrackReset1$inboundSchema)),
11498
11541
  value: number2()
11499
11542
  }),
11500
- z47.transform((v) => {
11543
+ z48.transform((v) => {
11501
11544
  return remap(v, {
11502
11545
  "balance_id": "balanceId",
11503
11546
  "feature_id": "featureId",
@@ -11505,19 +11548,19 @@ var Deduction1$inboundSchema = z47.pipe(
11505
11548
  });
11506
11549
  })
11507
11550
  );
11508
- var TrackResponseBody1$inboundSchema = z47.pipe(
11509
- z47.object({
11551
+ var TrackResponseBody1$inboundSchema = z48.pipe(
11552
+ z48.object({
11510
11553
  customer_id: string4(),
11511
11554
  entity_id: optional3(string4()),
11512
11555
  event_name: optional3(string4()),
11513
11556
  value: number2(),
11514
11557
  balance: nullable(Balance$inboundSchema),
11515
11558
  balances: optional3(
11516
- z47.record(z47.string(), nullable(Balance$inboundSchema))
11559
+ z48.record(z48.string(), nullable(Balance$inboundSchema))
11517
11560
  ),
11518
- deductions: optional3(z47.array(z47.lazy(() => Deduction1$inboundSchema)))
11561
+ deductions: optional3(z48.array(z48.lazy(() => Deduction1$inboundSchema)))
11519
11562
  }),
11520
- z47.transform((v) => {
11563
+ z48.transform((v) => {
11521
11564
  return remap(v, {
11522
11565
  "customer_id": "customerId",
11523
11566
  "entity_id": "entityId",
@@ -11526,12 +11569,12 @@ var TrackResponseBody1$inboundSchema = z47.pipe(
11526
11569
  })
11527
11570
  );
11528
11571
  var TrackResponse$inboundSchema = smartUnion([
11529
- z47.lazy(() => TrackResponseBody1$inboundSchema),
11530
- z47.lazy(() => TrackResponseBody2$inboundSchema)
11572
+ z48.lazy(() => TrackResponseBody1$inboundSchema),
11573
+ z48.lazy(() => TrackResponseBody2$inboundSchema)
11531
11574
  ]);
11532
11575
 
11533
11576
  // ../sdk/src/models/update-balance-op.ts
11534
- var z48 = __toESM(require("zod/v4-mini"), 1);
11577
+ var z49 = __toESM(require("zod/v4-mini"), 1);
11535
11578
  var UpdateBalanceInterval = {
11536
11579
  OneOff: "one_off",
11537
11580
  Minute: "minute",
@@ -11543,21 +11586,21 @@ var UpdateBalanceInterval = {
11543
11586
  SemiAnnual: "semi_annual",
11544
11587
  Year: "year"
11545
11588
  };
11546
- var UpdateBalanceInterval$outboundSchema = z48.enum(UpdateBalanceInterval);
11547
- var UpdateBalanceParams$outboundSchema = z48.pipe(
11548
- z48.object({
11549
- customerId: z48.string(),
11550
- featureId: z48.string(),
11551
- entityId: z48.optional(z48.string()),
11552
- remaining: z48.optional(z48.number()),
11553
- addToBalance: z48.optional(z48.number()),
11554
- usage: z48.optional(z48.number()),
11555
- interval: z48.optional(UpdateBalanceInterval$outboundSchema),
11556
- includedGrant: z48.optional(z48.number()),
11557
- balanceId: z48.optional(z48.string()),
11558
- nextResetAt: z48.optional(z48.number())
11589
+ var UpdateBalanceInterval$outboundSchema = z49.enum(UpdateBalanceInterval);
11590
+ var UpdateBalanceParams$outboundSchema = z49.pipe(
11591
+ z49.object({
11592
+ customerId: z49.string(),
11593
+ featureId: z49.string(),
11594
+ entityId: z49.optional(z49.string()),
11595
+ remaining: z49.optional(z49.number()),
11596
+ addToBalance: z49.optional(z49.number()),
11597
+ usage: z49.optional(z49.number()),
11598
+ interval: z49.optional(UpdateBalanceInterval$outboundSchema),
11599
+ includedGrant: z49.optional(z49.number()),
11600
+ balanceId: z49.optional(z49.string()),
11601
+ nextResetAt: z49.optional(z49.number())
11559
11602
  }),
11560
- z48.transform((v) => {
11603
+ z49.transform((v) => {
11561
11604
  return remap(v, {
11562
11605
  customerId: "customer_id",
11563
11606
  featureId: "feature_id",
@@ -11569,12 +11612,12 @@ var UpdateBalanceParams$outboundSchema = z48.pipe(
11569
11612
  });
11570
11613
  })
11571
11614
  );
11572
- var UpdateBalanceResponse$inboundSchema = z48.object({
11615
+ var UpdateBalanceResponse$inboundSchema = z49.object({
11573
11616
  success: boolean2()
11574
11617
  });
11575
11618
 
11576
11619
  // ../sdk/src/models/update-customer-op.ts
11577
- var z49 = __toESM(require("zod/v4-mini"), 1);
11620
+ var z50 = __toESM(require("zod/v4-mini"), 1);
11578
11621
  var UpdateCustomerIntervalRequest = {
11579
11622
  Hour: "hour",
11580
11623
  Day: "day",
@@ -11618,31 +11661,31 @@ var UpdateCustomerType = {
11618
11661
  Metered: "metered",
11619
11662
  CreditSystem: "credit_system"
11620
11663
  };
11621
- var UpdateCustomerIntervalRequest$outboundSchema = z49.enum(UpdateCustomerIntervalRequest);
11622
- var UpdateCustomerPurchaseLimitRequest$outboundSchema = z49.pipe(
11623
- z49.object({
11664
+ var UpdateCustomerIntervalRequest$outboundSchema = z50.enum(UpdateCustomerIntervalRequest);
11665
+ var UpdateCustomerPurchaseLimitRequest$outboundSchema = z50.pipe(
11666
+ z50.object({
11624
11667
  interval: UpdateCustomerIntervalRequest$outboundSchema,
11625
- intervalCount: z49._default(z49.number(), 1),
11626
- limit: z49.number()
11668
+ intervalCount: z50._default(z50.number(), 1),
11669
+ limit: z50.number()
11627
11670
  }),
11628
- z49.transform((v) => {
11671
+ z50.transform((v) => {
11629
11672
  return remap(v, {
11630
11673
  intervalCount: "interval_count"
11631
11674
  });
11632
11675
  })
11633
11676
  );
11634
- var UpdateCustomerAutoTopupRequest$outboundSchema = z49.pipe(
11635
- z49.object({
11636
- featureId: z49.string(),
11637
- enabled: z49._default(z49.boolean(), false),
11638
- threshold: z49.number(),
11639
- quantity: z49.number(),
11640
- purchaseLimit: z49.optional(
11641
- z49.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
11677
+ var UpdateCustomerAutoTopupRequest$outboundSchema = z50.pipe(
11678
+ z50.object({
11679
+ featureId: z50.string(),
11680
+ enabled: z50._default(z50.boolean(), false),
11681
+ threshold: z50.number(),
11682
+ quantity: z50.number(),
11683
+ purchaseLimit: z50.optional(
11684
+ z50.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
11642
11685
  ),
11643
- invoiceMode: z49.optional(z49.boolean())
11686
+ invoiceMode: z50.optional(z50.boolean())
11644
11687
  }),
11645
- z49.transform((v) => {
11688
+ z50.transform((v) => {
11646
11689
  return remap(v, {
11647
11690
  featureId: "feature_id",
11648
11691
  purchaseLimit: "purchase_limit",
@@ -11650,64 +11693,64 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z49.pipe(
11650
11693
  });
11651
11694
  })
11652
11695
  );
11653
- var UpdateCustomerSpendLimitRequest$outboundSchema = z49.pipe(
11654
- z49.object({
11655
- featureId: z49.optional(z49.string()),
11656
- enabled: z49._default(z49.boolean(), false),
11657
- overageLimit: z49.optional(z49.number())
11696
+ var UpdateCustomerSpendLimitRequest$outboundSchema = z50.pipe(
11697
+ z50.object({
11698
+ featureId: z50.optional(z50.string()),
11699
+ enabled: z50._default(z50.boolean(), false),
11700
+ overageLimit: z50.optional(z50.number())
11658
11701
  }),
11659
- z49.transform((v) => {
11702
+ z50.transform((v) => {
11660
11703
  return remap(v, {
11661
11704
  featureId: "feature_id",
11662
11705
  overageLimit: "overage_limit"
11663
11706
  });
11664
11707
  })
11665
11708
  );
11666
- var UpdateCustomerThresholdTypeRequestBody$outboundSchema = z49.enum(
11709
+ var UpdateCustomerThresholdTypeRequestBody$outboundSchema = z50.enum(
11667
11710
  UpdateCustomerThresholdTypeRequestBody
11668
11711
  );
11669
- var UpdateCustomerUsageAlertRequestBody$outboundSchema = z49.pipe(
11670
- z49.object({
11671
- featureId: z49.optional(z49.string()),
11672
- enabled: z49._default(z49.boolean(), true),
11673
- threshold: z49.number(),
11712
+ var UpdateCustomerUsageAlertRequestBody$outboundSchema = z50.pipe(
11713
+ z50.object({
11714
+ featureId: z50.optional(z50.string()),
11715
+ enabled: z50._default(z50.boolean(), true),
11716
+ threshold: z50.number(),
11674
11717
  thresholdType: UpdateCustomerThresholdTypeRequestBody$outboundSchema,
11675
- name: z49.optional(z49.string())
11718
+ name: z50.optional(z50.string())
11676
11719
  }),
11677
- z49.transform((v) => {
11720
+ z50.transform((v) => {
11678
11721
  return remap(v, {
11679
11722
  featureId: "feature_id",
11680
11723
  thresholdType: "threshold_type"
11681
11724
  });
11682
11725
  })
11683
11726
  );
11684
- var UpdateCustomerOverageAllowedRequest$outboundSchema = z49.pipe(
11685
- z49.object({
11686
- featureId: z49.string(),
11687
- enabled: z49._default(z49.boolean(), false)
11727
+ var UpdateCustomerOverageAllowedRequest$outboundSchema = z50.pipe(
11728
+ z50.object({
11729
+ featureId: z50.string(),
11730
+ enabled: z50._default(z50.boolean(), false)
11688
11731
  }),
11689
- z49.transform((v) => {
11732
+ z50.transform((v) => {
11690
11733
  return remap(v, {
11691
11734
  featureId: "feature_id"
11692
11735
  });
11693
11736
  })
11694
11737
  );
11695
- var UpdateCustomerBillingControlsRequest$outboundSchema = z49.pipe(
11696
- z49.object({
11697
- autoTopups: z49.optional(
11698
- z49.array(z49.lazy(() => UpdateCustomerAutoTopupRequest$outboundSchema))
11738
+ var UpdateCustomerBillingControlsRequest$outboundSchema = z50.pipe(
11739
+ z50.object({
11740
+ autoTopups: z50.optional(
11741
+ z50.array(z50.lazy(() => UpdateCustomerAutoTopupRequest$outboundSchema))
11699
11742
  ),
11700
- spendLimits: z49.optional(
11701
- z49.array(z49.lazy(() => UpdateCustomerSpendLimitRequest$outboundSchema))
11743
+ spendLimits: z50.optional(
11744
+ z50.array(z50.lazy(() => UpdateCustomerSpendLimitRequest$outboundSchema))
11702
11745
  ),
11703
- usageAlerts: z49.optional(
11704
- z49.array(z49.lazy(() => UpdateCustomerUsageAlertRequestBody$outboundSchema))
11746
+ usageAlerts: z50.optional(
11747
+ z50.array(z50.lazy(() => UpdateCustomerUsageAlertRequestBody$outboundSchema))
11705
11748
  ),
11706
- overageAllowed: z49.optional(
11707
- z49.array(z49.lazy(() => UpdateCustomerOverageAllowedRequest$outboundSchema))
11749
+ overageAllowed: z50.optional(
11750
+ z50.array(z50.lazy(() => UpdateCustomerOverageAllowedRequest$outboundSchema))
11708
11751
  )
11709
11752
  }),
11710
- z49.transform((v) => {
11753
+ z50.transform((v) => {
11711
11754
  return remap(v, {
11712
11755
  autoTopups: "auto_topups",
11713
11756
  spendLimits: "spend_limits",
@@ -11716,34 +11759,34 @@ var UpdateCustomerBillingControlsRequest$outboundSchema = z49.pipe(
11716
11759
  });
11717
11760
  })
11718
11761
  );
11719
- var UpdateCustomerConfigRequest$outboundSchema = z49.pipe(
11720
- z49.object({
11721
- disablePooledBalance: z49.optional(z49.boolean())
11762
+ var UpdateCustomerConfigRequest$outboundSchema = z50.pipe(
11763
+ z50.object({
11764
+ disablePooledBalance: z50.optional(z50.boolean())
11722
11765
  }),
11723
- z49.transform((v) => {
11766
+ z50.transform((v) => {
11724
11767
  return remap(v, {
11725
11768
  disablePooledBalance: "disable_pooled_balance"
11726
11769
  });
11727
11770
  })
11728
11771
  );
11729
- var UpdateCustomerParams$outboundSchema = z49.pipe(
11730
- z49.object({
11731
- customerId: z49.string(),
11732
- name: z49.optional(z49.nullable(z49.string())),
11733
- email: z49.optional(z49.nullable(z49.string())),
11734
- fingerprint: z49.optional(z49.nullable(z49.string())),
11735
- metadata: z49.optional(z49.nullable(z49.record(z49.string(), z49.any()))),
11736
- stripeId: z49.optional(z49.nullable(z49.string())),
11737
- sendEmailReceipts: z49.optional(z49.boolean()),
11738
- billingControls: z49.optional(
11739
- z49.lazy(() => UpdateCustomerBillingControlsRequest$outboundSchema)
11772
+ var UpdateCustomerParams$outboundSchema = z50.pipe(
11773
+ z50.object({
11774
+ customerId: z50.string(),
11775
+ name: z50.optional(z50.nullable(z50.string())),
11776
+ email: z50.optional(z50.nullable(z50.string())),
11777
+ fingerprint: z50.optional(z50.nullable(z50.string())),
11778
+ metadata: z50.optional(z50.nullable(z50.record(z50.string(), z50.any()))),
11779
+ stripeId: z50.optional(z50.nullable(z50.string())),
11780
+ sendEmailReceipts: z50.optional(z50.boolean()),
11781
+ billingControls: z50.optional(
11782
+ z50.lazy(() => UpdateCustomerBillingControlsRequest$outboundSchema)
11740
11783
  ),
11741
- config: z49.optional(
11742
- z49.lazy(() => UpdateCustomerConfigRequest$outboundSchema)
11784
+ config: z50.optional(
11785
+ z50.lazy(() => UpdateCustomerConfigRequest$outboundSchema)
11743
11786
  ),
11744
- newCustomerId: z49.optional(z49.string())
11787
+ newCustomerId: z50.optional(z50.string())
11745
11788
  }),
11746
- z49.transform((v) => {
11789
+ z50.transform((v) => {
11747
11790
  return remap(v, {
11748
11791
  customerId: "customer_id",
11749
11792
  stripeId: "stripe_id",
@@ -11755,15 +11798,15 @@ var UpdateCustomerParams$outboundSchema = z49.pipe(
11755
11798
  );
11756
11799
  var UpdateCustomerEnv$inboundSchema = inboundSchema(UpdateCustomerEnv);
11757
11800
  var UpdateCustomerIntervalResponse2$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse2);
11758
- var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z49.pipe(
11759
- z49.object({
11801
+ var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z50.pipe(
11802
+ z50.object({
11760
11803
  interval: nullable(UpdateCustomerIntervalResponse2$inboundSchema),
11761
11804
  interval_count: nullable(number2()),
11762
11805
  limit: nullable(number2()),
11763
11806
  count: number2(),
11764
11807
  next_reset_at: number2()
11765
11808
  }),
11766
- z49.transform((v) => {
11809
+ z50.transform((v) => {
11767
11810
  return remap(v, {
11768
11811
  "interval_count": "intervalCount",
11769
11812
  "next_reset_at": "nextResetAt"
@@ -11771,35 +11814,35 @@ var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z49.pipe(
11771
11814
  })
11772
11815
  );
11773
11816
  var UpdateCustomerIntervalResponse1$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse1);
11774
- var UpdateCustomerPurchaseLimitResponse1$inboundSchema = z49.pipe(
11775
- z49.object({
11817
+ var UpdateCustomerPurchaseLimitResponse1$inboundSchema = z50.pipe(
11818
+ z50.object({
11776
11819
  interval: UpdateCustomerIntervalResponse1$inboundSchema,
11777
- interval_count: z49._default(number2(), 1),
11820
+ interval_count: z50._default(number2(), 1),
11778
11821
  limit: number2()
11779
11822
  }),
11780
- z49.transform((v) => {
11823
+ z50.transform((v) => {
11781
11824
  return remap(v, {
11782
11825
  "interval_count": "intervalCount"
11783
11826
  });
11784
11827
  })
11785
11828
  );
11786
11829
  var UpdateCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
11787
- z49.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
11788
- z49.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
11830
+ z50.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
11831
+ z50.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
11789
11832
  ]);
11790
- var UpdateCustomerAutoTopupResponse$inboundSchema = z49.pipe(
11791
- z49.object({
11833
+ var UpdateCustomerAutoTopupResponse$inboundSchema = z50.pipe(
11834
+ z50.object({
11792
11835
  feature_id: string4(),
11793
- enabled: z49._default(boolean2(), false),
11836
+ enabled: z50._default(boolean2(), false),
11794
11837
  threshold: number2(),
11795
11838
  quantity: number2(),
11796
11839
  purchase_limit: optional3(smartUnion([
11797
- z49.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
11798
- z49.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
11840
+ z50.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
11841
+ z50.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
11799
11842
  ])),
11800
11843
  invoice_mode: optional3(boolean2())
11801
11844
  }),
11802
- z49.transform((v) => {
11845
+ z50.transform((v) => {
11803
11846
  return remap(v, {
11804
11847
  "feature_id": "featureId",
11805
11848
  "purchase_limit": "purchaseLimit",
@@ -11807,13 +11850,13 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z49.pipe(
11807
11850
  });
11808
11851
  })
11809
11852
  );
11810
- var UpdateCustomerSpendLimitResponse$inboundSchema = z49.pipe(
11811
- z49.object({
11853
+ var UpdateCustomerSpendLimitResponse$inboundSchema = z50.pipe(
11854
+ z50.object({
11812
11855
  feature_id: optional3(string4()),
11813
- enabled: z49._default(boolean2(), false),
11856
+ enabled: z50._default(boolean2(), false),
11814
11857
  overage_limit: optional3(number2())
11815
11858
  }),
11816
- z49.transform((v) => {
11859
+ z50.transform((v) => {
11817
11860
  return remap(v, {
11818
11861
  "feature_id": "featureId",
11819
11862
  "overage_limit": "overageLimit"
@@ -11821,48 +11864,48 @@ var UpdateCustomerSpendLimitResponse$inboundSchema = z49.pipe(
11821
11864
  })
11822
11865
  );
11823
11866
  var UpdateCustomerThresholdTypeResponse$inboundSchema = inboundSchema(UpdateCustomerThresholdTypeResponse);
11824
- var UpdateCustomerUsageAlertResponse$inboundSchema = z49.pipe(
11825
- z49.object({
11867
+ var UpdateCustomerUsageAlertResponse$inboundSchema = z50.pipe(
11868
+ z50.object({
11826
11869
  feature_id: optional3(string4()),
11827
- enabled: z49._default(boolean2(), true),
11870
+ enabled: z50._default(boolean2(), true),
11828
11871
  threshold: number2(),
11829
11872
  threshold_type: UpdateCustomerThresholdTypeResponse$inboundSchema,
11830
11873
  name: optional3(string4())
11831
11874
  }),
11832
- z49.transform((v) => {
11875
+ z50.transform((v) => {
11833
11876
  return remap(v, {
11834
11877
  "feature_id": "featureId",
11835
11878
  "threshold_type": "thresholdType"
11836
11879
  });
11837
11880
  })
11838
11881
  );
11839
- var UpdateCustomerOverageAllowedResponse$inboundSchema = z49.pipe(
11840
- z49.object({
11882
+ var UpdateCustomerOverageAllowedResponse$inboundSchema = z50.pipe(
11883
+ z50.object({
11841
11884
  feature_id: string4(),
11842
- enabled: z49._default(boolean2(), false)
11885
+ enabled: z50._default(boolean2(), false)
11843
11886
  }),
11844
- z49.transform((v) => {
11887
+ z50.transform((v) => {
11845
11888
  return remap(v, {
11846
11889
  "feature_id": "featureId"
11847
11890
  });
11848
11891
  })
11849
11892
  );
11850
- var UpdateCustomerBillingControlsResponse$inboundSchema = z49.pipe(
11851
- z49.object({
11893
+ var UpdateCustomerBillingControlsResponse$inboundSchema = z50.pipe(
11894
+ z50.object({
11852
11895
  auto_topups: optional3(
11853
- z49.array(z49.lazy(() => UpdateCustomerAutoTopupResponse$inboundSchema))
11896
+ z50.array(z50.lazy(() => UpdateCustomerAutoTopupResponse$inboundSchema))
11854
11897
  ),
11855
11898
  spend_limits: optional3(
11856
- z49.array(z49.lazy(() => UpdateCustomerSpendLimitResponse$inboundSchema))
11899
+ z50.array(z50.lazy(() => UpdateCustomerSpendLimitResponse$inboundSchema))
11857
11900
  ),
11858
11901
  usage_alerts: optional3(
11859
- z49.array(z49.lazy(() => UpdateCustomerUsageAlertResponse$inboundSchema))
11902
+ z50.array(z50.lazy(() => UpdateCustomerUsageAlertResponse$inboundSchema))
11860
11903
  ),
11861
11904
  overage_allowed: optional3(
11862
- z49.array(z49.lazy(() => UpdateCustomerOverageAllowedResponse$inboundSchema))
11905
+ z50.array(z50.lazy(() => UpdateCustomerOverageAllowedResponse$inboundSchema))
11863
11906
  )
11864
11907
  }),
11865
- z49.transform((v) => {
11908
+ z50.transform((v) => {
11866
11909
  return remap(v, {
11867
11910
  "auto_topups": "autoTopups",
11868
11911
  "spend_limits": "spendLimits",
@@ -11872,8 +11915,8 @@ var UpdateCustomerBillingControlsResponse$inboundSchema = z49.pipe(
11872
11915
  })
11873
11916
  );
11874
11917
  var UpdateCustomerStatus$inboundSchema = inboundSchema(UpdateCustomerStatus);
11875
- var UpdateCustomerSubscription$inboundSchema = z49.pipe(
11876
- z49.object({
11918
+ var UpdateCustomerSubscription$inboundSchema = z50.pipe(
11919
+ z50.object({
11877
11920
  id: string4(),
11878
11921
  plan: optional3(Plan$inboundSchema),
11879
11922
  plan_id: string4(),
@@ -11889,7 +11932,7 @@ var UpdateCustomerSubscription$inboundSchema = z49.pipe(
11889
11932
  current_period_end: nullable(number2()),
11890
11933
  quantity: number2()
11891
11934
  }),
11892
- z49.transform((v) => {
11935
+ z50.transform((v) => {
11893
11936
  return remap(v, {
11894
11937
  "plan_id": "planId",
11895
11938
  "auto_enable": "autoEnable",
@@ -11904,15 +11947,15 @@ var UpdateCustomerSubscription$inboundSchema = z49.pipe(
11904
11947
  });
11905
11948
  })
11906
11949
  );
11907
- var UpdateCustomerPurchase$inboundSchema = z49.pipe(
11908
- z49.object({
11950
+ var UpdateCustomerPurchase$inboundSchema = z50.pipe(
11951
+ z50.object({
11909
11952
  plan: optional3(Plan$inboundSchema),
11910
11953
  plan_id: string4(),
11911
11954
  expires_at: nullable(number2()),
11912
11955
  started_at: number2(),
11913
11956
  quantity: number2()
11914
11957
  }),
11915
- z49.transform((v) => {
11958
+ z50.transform((v) => {
11916
11959
  return remap(v, {
11917
11960
  "plan_id": "planId",
11918
11961
  "expires_at": "expiresAt",
@@ -11921,51 +11964,51 @@ var UpdateCustomerPurchase$inboundSchema = z49.pipe(
11921
11964
  })
11922
11965
  );
11923
11966
  var UpdateCustomerType$inboundSchema = inboundSchema(UpdateCustomerType);
11924
- var UpdateCustomerCreditSchema$inboundSchema = z49.pipe(
11925
- z49.object({
11967
+ var UpdateCustomerCreditSchema$inboundSchema = z50.pipe(
11968
+ z50.object({
11926
11969
  metered_feature_id: string4(),
11927
11970
  credit_cost: number2()
11928
11971
  }),
11929
- z49.transform((v) => {
11972
+ z50.transform((v) => {
11930
11973
  return remap(v, {
11931
11974
  "metered_feature_id": "meteredFeatureId",
11932
11975
  "credit_cost": "creditCost"
11933
11976
  });
11934
11977
  })
11935
11978
  );
11936
- var UpdateCustomerDisplay$inboundSchema = z49.object({
11937
- singular: z49.optional(z49.nullable(string4())),
11938
- plural: z49.optional(z49.nullable(string4()))
11979
+ var UpdateCustomerDisplay$inboundSchema = z50.object({
11980
+ singular: z50.optional(z50.nullable(string4())),
11981
+ plural: z50.optional(z50.nullable(string4()))
11939
11982
  });
11940
- var UpdateCustomerFeature$inboundSchema = z49.pipe(
11941
- z49.object({
11983
+ var UpdateCustomerFeature$inboundSchema = z50.pipe(
11984
+ z50.object({
11942
11985
  id: string4(),
11943
11986
  name: string4(),
11944
11987
  type: UpdateCustomerType$inboundSchema,
11945
11988
  consumable: boolean2(),
11946
- event_names: optional3(z49.array(string4())),
11989
+ event_names: optional3(z50.array(string4())),
11947
11990
  credit_schema: optional3(
11948
- z49.array(z49.lazy(() => UpdateCustomerCreditSchema$inboundSchema))
11991
+ z50.array(z50.lazy(() => UpdateCustomerCreditSchema$inboundSchema))
11949
11992
  ),
11950
- display: optional3(z49.lazy(() => UpdateCustomerDisplay$inboundSchema)),
11993
+ display: optional3(z50.lazy(() => UpdateCustomerDisplay$inboundSchema)),
11951
11994
  archived: boolean2()
11952
11995
  }),
11953
- z49.transform((v) => {
11996
+ z50.transform((v) => {
11954
11997
  return remap(v, {
11955
11998
  "event_names": "eventNames",
11956
11999
  "credit_schema": "creditSchema"
11957
12000
  });
11958
12001
  })
11959
12002
  );
11960
- var UpdateCustomerFlags$inboundSchema = z49.pipe(
11961
- z49.object({
12003
+ var UpdateCustomerFlags$inboundSchema = z50.pipe(
12004
+ z50.object({
11962
12005
  id: string4(),
11963
12006
  plan_id: nullable(string4()),
11964
12007
  expires_at: nullable(number2()),
11965
12008
  feature_id: string4(),
11966
- feature: optional3(z49.lazy(() => UpdateCustomerFeature$inboundSchema))
12009
+ feature: optional3(z50.lazy(() => UpdateCustomerFeature$inboundSchema))
11967
12010
  }),
11968
- z49.transform((v) => {
12011
+ z50.transform((v) => {
11969
12012
  return remap(v, {
11970
12013
  "plan_id": "planId",
11971
12014
  "expires_at": "expiresAt",
@@ -11973,43 +12016,43 @@ var UpdateCustomerFlags$inboundSchema = z49.pipe(
11973
12016
  });
11974
12017
  })
11975
12018
  );
11976
- var UpdateCustomerConfigResponse$inboundSchema = z49.pipe(
11977
- z49.object({
12019
+ var UpdateCustomerConfigResponse$inboundSchema = z50.pipe(
12020
+ z50.object({
11978
12021
  disable_pooled_balance: optional3(boolean2())
11979
12022
  }),
11980
- z49.transform((v) => {
12023
+ z50.transform((v) => {
11981
12024
  return remap(v, {
11982
12025
  "disable_pooled_balance": "disablePooledBalance"
11983
12026
  });
11984
12027
  })
11985
12028
  );
11986
- var UpdateCustomerStripe$inboundSchema = z49.object({
12029
+ var UpdateCustomerStripe$inboundSchema = z50.object({
11987
12030
  id: string4()
11988
12031
  });
11989
- var UpdateCustomerVercel$inboundSchema = z49.pipe(
11990
- z49.object({
12032
+ var UpdateCustomerVercel$inboundSchema = z50.pipe(
12033
+ z50.object({
11991
12034
  installation_id: string4(),
11992
12035
  account_id: string4()
11993
12036
  }),
11994
- z49.transform((v) => {
12037
+ z50.transform((v) => {
11995
12038
  return remap(v, {
11996
12039
  "installation_id": "installationId",
11997
12040
  "account_id": "accountId"
11998
12041
  });
11999
12042
  })
12000
12043
  );
12001
- var UpdateCustomerRevenuecat$inboundSchema = z49.object({
12044
+ var UpdateCustomerRevenuecat$inboundSchema = z50.object({
12002
12045
  id: nullable(string4())
12003
12046
  });
12004
- var UpdateCustomerProcessors$inboundSchema = z49.object({
12005
- stripe: optional3(z49.lazy(() => UpdateCustomerStripe$inboundSchema)),
12006
- vercel: optional3(z49.lazy(() => UpdateCustomerVercel$inboundSchema)),
12047
+ var UpdateCustomerProcessors$inboundSchema = z50.object({
12048
+ stripe: optional3(z50.lazy(() => UpdateCustomerStripe$inboundSchema)),
12049
+ vercel: optional3(z50.lazy(() => UpdateCustomerVercel$inboundSchema)),
12007
12050
  revenuecat: optional3(
12008
- z49.lazy(() => UpdateCustomerRevenuecat$inboundSchema)
12051
+ z50.lazy(() => UpdateCustomerRevenuecat$inboundSchema)
12009
12052
  )
12010
12053
  });
12011
- var UpdateCustomerResponse$inboundSchema = z49.pipe(
12012
- z49.object({
12054
+ var UpdateCustomerResponse$inboundSchema = z50.pipe(
12055
+ z50.object({
12013
12056
  id: nullable(string4()),
12014
12057
  name: nullable(string4()),
12015
12058
  email: nullable(string4()),
@@ -12017,28 +12060,28 @@ var UpdateCustomerResponse$inboundSchema = z49.pipe(
12017
12060
  fingerprint: nullable(string4()),
12018
12061
  stripe_id: nullable(string4()),
12019
12062
  env: UpdateCustomerEnv$inboundSchema,
12020
- metadata: z49.record(z49.string(), z49.any()),
12063
+ metadata: z50.record(z50.string(), z50.any()),
12021
12064
  send_email_receipts: boolean2(),
12022
- billing_controls: z49.lazy(
12065
+ billing_controls: z50.lazy(
12023
12066
  () => UpdateCustomerBillingControlsResponse$inboundSchema
12024
12067
  ),
12025
- subscriptions: z49.array(
12026
- z49.lazy(() => UpdateCustomerSubscription$inboundSchema)
12068
+ subscriptions: z50.array(
12069
+ z50.lazy(() => UpdateCustomerSubscription$inboundSchema)
12027
12070
  ),
12028
- purchases: z49.array(z49.lazy(() => UpdateCustomerPurchase$inboundSchema)),
12029
- balances: z49.record(z49.string(), Balance$inboundSchema),
12030
- flags: z49.record(
12031
- z49.string(),
12032
- z49.lazy(() => UpdateCustomerFlags$inboundSchema)
12071
+ purchases: z50.array(z50.lazy(() => UpdateCustomerPurchase$inboundSchema)),
12072
+ balances: z50.record(z50.string(), Balance$inboundSchema),
12073
+ flags: z50.record(
12074
+ z50.string(),
12075
+ z50.lazy(() => UpdateCustomerFlags$inboundSchema)
12033
12076
  ),
12034
12077
  config: optional3(
12035
- z49.lazy(() => UpdateCustomerConfigResponse$inboundSchema)
12078
+ z50.lazy(() => UpdateCustomerConfigResponse$inboundSchema)
12036
12079
  ),
12037
12080
  processors: optional3(
12038
- z49.lazy(() => UpdateCustomerProcessors$inboundSchema)
12081
+ z50.lazy(() => UpdateCustomerProcessors$inboundSchema)
12039
12082
  )
12040
12083
  }),
12041
- z49.transform((v) => {
12084
+ z50.transform((v) => {
12042
12085
  return remap(v, {
12043
12086
  "created_at": "createdAt",
12044
12087
  "stripe_id": "stripeId",
@@ -12049,7 +12092,7 @@ var UpdateCustomerResponse$inboundSchema = z49.pipe(
12049
12092
  );
12050
12093
 
12051
12094
  // ../sdk/src/models/update-entity-op.ts
12052
- var z50 = __toESM(require("zod/v4-mini"), 1);
12095
+ var z51 = __toESM(require("zod/v4-mini"), 1);
12053
12096
  var UpdateEntityThresholdTypeRequestBody = {
12054
12097
  Usage: "usage",
12055
12098
  UsagePercentage: "usage_percentage",
@@ -12079,59 +12122,59 @@ var UpdateEntityProcessorType = {
12079
12122
  Stripe: "stripe",
12080
12123
  Revenuecat: "revenuecat"
12081
12124
  };
12082
- var UpdateEntitySpendLimitRequest$outboundSchema = z50.pipe(
12083
- z50.object({
12084
- featureId: z50.optional(z50.string()),
12085
- enabled: z50._default(z50.boolean(), false),
12086
- overageLimit: z50.optional(z50.number())
12125
+ var UpdateEntitySpendLimitRequest$outboundSchema = z51.pipe(
12126
+ z51.object({
12127
+ featureId: z51.optional(z51.string()),
12128
+ enabled: z51._default(z51.boolean(), false),
12129
+ overageLimit: z51.optional(z51.number())
12087
12130
  }),
12088
- z50.transform((v) => {
12131
+ z51.transform((v) => {
12089
12132
  return remap(v, {
12090
12133
  featureId: "feature_id",
12091
12134
  overageLimit: "overage_limit"
12092
12135
  });
12093
12136
  })
12094
12137
  );
12095
- var UpdateEntityThresholdTypeRequestBody$outboundSchema = z50.enum(UpdateEntityThresholdTypeRequestBody);
12096
- var UpdateEntityUsageAlertRequestBody$outboundSchema = z50.pipe(
12097
- z50.object({
12098
- featureId: z50.optional(z50.string()),
12099
- enabled: z50._default(z50.boolean(), true),
12100
- threshold: z50.number(),
12138
+ var UpdateEntityThresholdTypeRequestBody$outboundSchema = z51.enum(UpdateEntityThresholdTypeRequestBody);
12139
+ var UpdateEntityUsageAlertRequestBody$outboundSchema = z51.pipe(
12140
+ z51.object({
12141
+ featureId: z51.optional(z51.string()),
12142
+ enabled: z51._default(z51.boolean(), true),
12143
+ threshold: z51.number(),
12101
12144
  thresholdType: UpdateEntityThresholdTypeRequestBody$outboundSchema,
12102
- name: z50.optional(z50.string())
12145
+ name: z51.optional(z51.string())
12103
12146
  }),
12104
- z50.transform((v) => {
12147
+ z51.transform((v) => {
12105
12148
  return remap(v, {
12106
12149
  featureId: "feature_id",
12107
12150
  thresholdType: "threshold_type"
12108
12151
  });
12109
12152
  })
12110
12153
  );
12111
- var UpdateEntityOverageAllowedRequest$outboundSchema = z50.pipe(
12112
- z50.object({
12113
- featureId: z50.string(),
12114
- enabled: z50._default(z50.boolean(), false)
12154
+ var UpdateEntityOverageAllowedRequest$outboundSchema = z51.pipe(
12155
+ z51.object({
12156
+ featureId: z51.string(),
12157
+ enabled: z51._default(z51.boolean(), false)
12115
12158
  }),
12116
- z50.transform((v) => {
12159
+ z51.transform((v) => {
12117
12160
  return remap(v, {
12118
12161
  featureId: "feature_id"
12119
12162
  });
12120
12163
  })
12121
12164
  );
12122
- var UpdateEntityBillingControlsRequest$outboundSchema = z50.pipe(
12123
- z50.object({
12124
- spendLimits: z50.optional(
12125
- z50.array(z50.lazy(() => UpdateEntitySpendLimitRequest$outboundSchema))
12165
+ var UpdateEntityBillingControlsRequest$outboundSchema = z51.pipe(
12166
+ z51.object({
12167
+ spendLimits: z51.optional(
12168
+ z51.array(z51.lazy(() => UpdateEntitySpendLimitRequest$outboundSchema))
12126
12169
  ),
12127
- usageAlerts: z50.optional(
12128
- z50.array(z50.lazy(() => UpdateEntityUsageAlertRequestBody$outboundSchema))
12170
+ usageAlerts: z51.optional(
12171
+ z51.array(z51.lazy(() => UpdateEntityUsageAlertRequestBody$outboundSchema))
12129
12172
  ),
12130
- overageAllowed: z50.optional(
12131
- z50.array(z50.lazy(() => UpdateEntityOverageAllowedRequest$outboundSchema))
12173
+ overageAllowed: z51.optional(
12174
+ z51.array(z51.lazy(() => UpdateEntityOverageAllowedRequest$outboundSchema))
12132
12175
  )
12133
12176
  }),
12134
- z50.transform((v) => {
12177
+ z51.transform((v) => {
12135
12178
  return remap(v, {
12136
12179
  spendLimits: "spend_limits",
12137
12180
  usageAlerts: "usage_alerts",
@@ -12139,15 +12182,15 @@ var UpdateEntityBillingControlsRequest$outboundSchema = z50.pipe(
12139
12182
  });
12140
12183
  })
12141
12184
  );
12142
- var UpdateEntityParams$outboundSchema = z50.pipe(
12143
- z50.object({
12144
- customerId: z50.optional(z50.string()),
12145
- entityId: z50.string(),
12146
- billingControls: z50.optional(
12147
- z50.lazy(() => UpdateEntityBillingControlsRequest$outboundSchema)
12185
+ var UpdateEntityParams$outboundSchema = z51.pipe(
12186
+ z51.object({
12187
+ customerId: z51.optional(z51.string()),
12188
+ entityId: z51.string(),
12189
+ billingControls: z51.optional(
12190
+ z51.lazy(() => UpdateEntityBillingControlsRequest$outboundSchema)
12148
12191
  )
12149
12192
  }),
12150
- z50.transform((v) => {
12193
+ z51.transform((v) => {
12151
12194
  return remap(v, {
12152
12195
  customerId: "customer_id",
12153
12196
  entityId: "entity_id",
@@ -12157,8 +12200,8 @@ var UpdateEntityParams$outboundSchema = z50.pipe(
12157
12200
  );
12158
12201
  var UpdateEntityEnv$inboundSchema = inboundSchema(UpdateEntityEnv);
12159
12202
  var UpdateEntityStatus$inboundSchema = inboundSchema(UpdateEntityStatus);
12160
- var UpdateEntitySubscription$inboundSchema = z50.pipe(
12161
- z50.object({
12203
+ var UpdateEntitySubscription$inboundSchema = z51.pipe(
12204
+ z51.object({
12162
12205
  id: string4(),
12163
12206
  plan: optional3(Plan$inboundSchema),
12164
12207
  plan_id: string4(),
@@ -12174,7 +12217,7 @@ var UpdateEntitySubscription$inboundSchema = z50.pipe(
12174
12217
  current_period_end: nullable(number2()),
12175
12218
  quantity: number2()
12176
12219
  }),
12177
- z50.transform((v) => {
12220
+ z51.transform((v) => {
12178
12221
  return remap(v, {
12179
12222
  "plan_id": "planId",
12180
12223
  "auto_enable": "autoEnable",
@@ -12189,15 +12232,15 @@ var UpdateEntitySubscription$inboundSchema = z50.pipe(
12189
12232
  });
12190
12233
  })
12191
12234
  );
12192
- var UpdateEntityPurchase$inboundSchema = z50.pipe(
12193
- z50.object({
12235
+ var UpdateEntityPurchase$inboundSchema = z51.pipe(
12236
+ z51.object({
12194
12237
  plan: optional3(Plan$inboundSchema),
12195
12238
  plan_id: string4(),
12196
12239
  expires_at: nullable(number2()),
12197
12240
  started_at: number2(),
12198
12241
  quantity: number2()
12199
12242
  }),
12200
- z50.transform((v) => {
12243
+ z51.transform((v) => {
12201
12244
  return remap(v, {
12202
12245
  "plan_id": "planId",
12203
12246
  "expires_at": "expiresAt",
@@ -12206,51 +12249,51 @@ var UpdateEntityPurchase$inboundSchema = z50.pipe(
12206
12249
  })
12207
12250
  );
12208
12251
  var UpdateEntityType$inboundSchema = inboundSchema(UpdateEntityType);
12209
- var UpdateEntityCreditSchema$inboundSchema = z50.pipe(
12210
- z50.object({
12252
+ var UpdateEntityCreditSchema$inboundSchema = z51.pipe(
12253
+ z51.object({
12211
12254
  metered_feature_id: string4(),
12212
12255
  credit_cost: number2()
12213
12256
  }),
12214
- z50.transform((v) => {
12257
+ z51.transform((v) => {
12215
12258
  return remap(v, {
12216
12259
  "metered_feature_id": "meteredFeatureId",
12217
12260
  "credit_cost": "creditCost"
12218
12261
  });
12219
12262
  })
12220
12263
  );
12221
- var UpdateEntityDisplay$inboundSchema = z50.object({
12222
- singular: z50.optional(z50.nullable(string4())),
12223
- plural: z50.optional(z50.nullable(string4()))
12264
+ var UpdateEntityDisplay$inboundSchema = z51.object({
12265
+ singular: z51.optional(z51.nullable(string4())),
12266
+ plural: z51.optional(z51.nullable(string4()))
12224
12267
  });
12225
- var UpdateEntityFeature$inboundSchema = z50.pipe(
12226
- z50.object({
12268
+ var UpdateEntityFeature$inboundSchema = z51.pipe(
12269
+ z51.object({
12227
12270
  id: string4(),
12228
12271
  name: string4(),
12229
12272
  type: UpdateEntityType$inboundSchema,
12230
12273
  consumable: boolean2(),
12231
- event_names: optional3(z50.array(string4())),
12274
+ event_names: optional3(z51.array(string4())),
12232
12275
  credit_schema: optional3(
12233
- z50.array(z50.lazy(() => UpdateEntityCreditSchema$inboundSchema))
12276
+ z51.array(z51.lazy(() => UpdateEntityCreditSchema$inboundSchema))
12234
12277
  ),
12235
- display: optional3(z50.lazy(() => UpdateEntityDisplay$inboundSchema)),
12278
+ display: optional3(z51.lazy(() => UpdateEntityDisplay$inboundSchema)),
12236
12279
  archived: boolean2()
12237
12280
  }),
12238
- z50.transform((v) => {
12281
+ z51.transform((v) => {
12239
12282
  return remap(v, {
12240
12283
  "event_names": "eventNames",
12241
12284
  "credit_schema": "creditSchema"
12242
12285
  });
12243
12286
  })
12244
12287
  );
12245
- var UpdateEntityFlags$inboundSchema = z50.pipe(
12246
- z50.object({
12288
+ var UpdateEntityFlags$inboundSchema = z51.pipe(
12289
+ z51.object({
12247
12290
  id: string4(),
12248
12291
  plan_id: nullable(string4()),
12249
12292
  expires_at: nullable(number2()),
12250
12293
  feature_id: string4(),
12251
- feature: optional3(z50.lazy(() => UpdateEntityFeature$inboundSchema))
12294
+ feature: optional3(z51.lazy(() => UpdateEntityFeature$inboundSchema))
12252
12295
  }),
12253
- z50.transform((v) => {
12296
+ z51.transform((v) => {
12254
12297
  return remap(v, {
12255
12298
  "plan_id": "planId",
12256
12299
  "expires_at": "expiresAt",
@@ -12258,13 +12301,13 @@ var UpdateEntityFlags$inboundSchema = z50.pipe(
12258
12301
  });
12259
12302
  })
12260
12303
  );
12261
- var UpdateEntitySpendLimitResponse$inboundSchema = z50.pipe(
12262
- z50.object({
12304
+ var UpdateEntitySpendLimitResponse$inboundSchema = z51.pipe(
12305
+ z51.object({
12263
12306
  feature_id: optional3(string4()),
12264
- enabled: z50._default(boolean2(), false),
12307
+ enabled: z51._default(boolean2(), false),
12265
12308
  overage_limit: optional3(number2())
12266
12309
  }),
12267
- z50.transform((v) => {
12310
+ z51.transform((v) => {
12268
12311
  return remap(v, {
12269
12312
  "feature_id": "featureId",
12270
12313
  "overage_limit": "overageLimit"
@@ -12272,45 +12315,45 @@ var UpdateEntitySpendLimitResponse$inboundSchema = z50.pipe(
12272
12315
  })
12273
12316
  );
12274
12317
  var UpdateEntityThresholdTypeResponse$inboundSchema = inboundSchema(UpdateEntityThresholdTypeResponse);
12275
- var UpdateEntityUsageAlertResponse$inboundSchema = z50.pipe(
12276
- z50.object({
12318
+ var UpdateEntityUsageAlertResponse$inboundSchema = z51.pipe(
12319
+ z51.object({
12277
12320
  feature_id: optional3(string4()),
12278
- enabled: z50._default(boolean2(), true),
12321
+ enabled: z51._default(boolean2(), true),
12279
12322
  threshold: number2(),
12280
12323
  threshold_type: UpdateEntityThresholdTypeResponse$inboundSchema,
12281
12324
  name: optional3(string4())
12282
12325
  }),
12283
- z50.transform((v) => {
12326
+ z51.transform((v) => {
12284
12327
  return remap(v, {
12285
12328
  "feature_id": "featureId",
12286
12329
  "threshold_type": "thresholdType"
12287
12330
  });
12288
12331
  })
12289
12332
  );
12290
- var UpdateEntityOverageAllowedResponse$inboundSchema = z50.pipe(
12291
- z50.object({
12333
+ var UpdateEntityOverageAllowedResponse$inboundSchema = z51.pipe(
12334
+ z51.object({
12292
12335
  feature_id: string4(),
12293
- enabled: z50._default(boolean2(), false)
12336
+ enabled: z51._default(boolean2(), false)
12294
12337
  }),
12295
- z50.transform((v) => {
12338
+ z51.transform((v) => {
12296
12339
  return remap(v, {
12297
12340
  "feature_id": "featureId"
12298
12341
  });
12299
12342
  })
12300
12343
  );
12301
- var UpdateEntityBillingControlsResponse$inboundSchema = z50.pipe(
12302
- z50.object({
12344
+ var UpdateEntityBillingControlsResponse$inboundSchema = z51.pipe(
12345
+ z51.object({
12303
12346
  spend_limits: optional3(
12304
- z50.array(z50.lazy(() => UpdateEntitySpendLimitResponse$inboundSchema))
12347
+ z51.array(z51.lazy(() => UpdateEntitySpendLimitResponse$inboundSchema))
12305
12348
  ),
12306
12349
  usage_alerts: optional3(
12307
- z50.array(z50.lazy(() => UpdateEntityUsageAlertResponse$inboundSchema))
12350
+ z51.array(z51.lazy(() => UpdateEntityUsageAlertResponse$inboundSchema))
12308
12351
  ),
12309
12352
  overage_allowed: optional3(
12310
- z50.array(z50.lazy(() => UpdateEntityOverageAllowedResponse$inboundSchema))
12353
+ z51.array(z51.lazy(() => UpdateEntityOverageAllowedResponse$inboundSchema))
12311
12354
  )
12312
12355
  }),
12313
- z50.transform((v) => {
12356
+ z51.transform((v) => {
12314
12357
  return remap(v, {
12315
12358
  "spend_limits": "spendLimits",
12316
12359
  "usage_alerts": "usageAlerts",
@@ -12319,11 +12362,11 @@ var UpdateEntityBillingControlsResponse$inboundSchema = z50.pipe(
12319
12362
  })
12320
12363
  );
12321
12364
  var UpdateEntityProcessorType$inboundSchema = inboundSchema(UpdateEntityProcessorType);
12322
- var UpdateEntityInvoice$inboundSchema = z50.pipe(
12323
- z50.object({
12324
- plan_ids: z50.array(string4()),
12365
+ var UpdateEntityInvoice$inboundSchema = z51.pipe(
12366
+ z51.object({
12367
+ plan_ids: z51.array(string4()),
12325
12368
  stripe_id: string4(),
12326
- processor_type: z50._default(
12369
+ processor_type: z51._default(
12327
12370
  UpdateEntityProcessorType$inboundSchema,
12328
12371
  "stripe"
12329
12372
  ),
@@ -12331,9 +12374,9 @@ var UpdateEntityInvoice$inboundSchema = z50.pipe(
12331
12374
  total: number2(),
12332
12375
  currency: string4(),
12333
12376
  created_at: number2(),
12334
- hosted_invoice_url: z50.optional(z50.nullable(string4()))
12377
+ hosted_invoice_url: z51.optional(z51.nullable(string4()))
12335
12378
  }),
12336
- z50.transform((v) => {
12379
+ z51.transform((v) => {
12337
12380
  return remap(v, {
12338
12381
  "plan_ids": "planIds",
12339
12382
  "stripe_id": "stripeId",
@@ -12343,28 +12386,28 @@ var UpdateEntityInvoice$inboundSchema = z50.pipe(
12343
12386
  });
12344
12387
  })
12345
12388
  );
12346
- var UpdateEntityResponse$inboundSchema = z50.pipe(
12347
- z50.object({
12389
+ var UpdateEntityResponse$inboundSchema = z51.pipe(
12390
+ z51.object({
12348
12391
  id: nullable(string4()),
12349
12392
  name: nullable(string4()),
12350
- customer_id: z50.optional(z50.nullable(string4())),
12351
- feature_id: z50.optional(z50.nullable(string4())),
12393
+ customer_id: z51.optional(z51.nullable(string4())),
12394
+ feature_id: z51.optional(z51.nullable(string4())),
12352
12395
  created_at: number2(),
12353
12396
  env: UpdateEntityEnv$inboundSchema,
12354
- subscriptions: z50.array(
12355
- z50.lazy(() => UpdateEntitySubscription$inboundSchema)
12397
+ subscriptions: z51.array(
12398
+ z51.lazy(() => UpdateEntitySubscription$inboundSchema)
12356
12399
  ),
12357
- purchases: z50.array(z50.lazy(() => UpdateEntityPurchase$inboundSchema)),
12358
- balances: z50.record(z50.string(), Balance$inboundSchema),
12359
- flags: z50.record(z50.string(), z50.lazy(() => UpdateEntityFlags$inboundSchema)),
12400
+ purchases: z51.array(z51.lazy(() => UpdateEntityPurchase$inboundSchema)),
12401
+ balances: z51.record(z51.string(), Balance$inboundSchema),
12402
+ flags: z51.record(z51.string(), z51.lazy(() => UpdateEntityFlags$inboundSchema)),
12360
12403
  billing_controls: optional3(
12361
- z50.lazy(() => UpdateEntityBillingControlsResponse$inboundSchema)
12404
+ z51.lazy(() => UpdateEntityBillingControlsResponse$inboundSchema)
12362
12405
  ),
12363
12406
  invoices: optional3(
12364
- z50.array(z50.lazy(() => UpdateEntityInvoice$inboundSchema))
12407
+ z51.array(z51.lazy(() => UpdateEntityInvoice$inboundSchema))
12365
12408
  )
12366
12409
  }),
12367
- z50.transform((v) => {
12410
+ z51.transform((v) => {
12368
12411
  return remap(v, {
12369
12412
  "customer_id": "customerId",
12370
12413
  "feature_id": "featureId",
@@ -12375,7 +12418,7 @@ var UpdateEntityResponse$inboundSchema = z50.pipe(
12375
12418
  );
12376
12419
 
12377
12420
  // ../sdk/src/models/update-feature-op.ts
12378
- var z51 = __toESM(require("zod/v4-mini"), 1);
12421
+ var z52 = __toESM(require("zod/v4-mini"), 1);
12379
12422
  var UpdateFeatureTypeRequest = {
12380
12423
  Boolean: "boolean",
12381
12424
  Metered: "metered",
@@ -12386,40 +12429,40 @@ var UpdateFeatureTypeResponse = {
12386
12429
  Metered: "metered",
12387
12430
  CreditSystem: "credit_system"
12388
12431
  };
12389
- var UpdateFeatureTypeRequest$outboundSchema = z51.enum(UpdateFeatureTypeRequest);
12390
- var UpdateFeatureDisplayRequest$outboundSchema = z51.object({
12391
- singular: z51.string(),
12392
- plural: z51.string()
12432
+ var UpdateFeatureTypeRequest$outboundSchema = z52.enum(UpdateFeatureTypeRequest);
12433
+ var UpdateFeatureDisplayRequest$outboundSchema = z52.object({
12434
+ singular: z52.string(),
12435
+ plural: z52.string()
12393
12436
  });
12394
- var UpdateFeatureCreditSchemaRequest$outboundSchema = z51.pipe(
12395
- z51.object({
12396
- meteredFeatureId: z51.string(),
12397
- creditCost: z51.number()
12437
+ var UpdateFeatureCreditSchemaRequest$outboundSchema = z52.pipe(
12438
+ z52.object({
12439
+ meteredFeatureId: z52.string(),
12440
+ creditCost: z52.number()
12398
12441
  }),
12399
- z51.transform((v) => {
12442
+ z52.transform((v) => {
12400
12443
  return remap(v, {
12401
12444
  meteredFeatureId: "metered_feature_id",
12402
12445
  creditCost: "credit_cost"
12403
12446
  });
12404
12447
  })
12405
12448
  );
12406
- var UpdateFeatureParams$outboundSchema = z51.pipe(
12407
- z51.object({
12408
- name: z51.optional(z51.string()),
12409
- type: z51.optional(UpdateFeatureTypeRequest$outboundSchema),
12410
- consumable: z51.optional(z51.boolean()),
12411
- display: z51.optional(
12412
- z51.lazy(() => UpdateFeatureDisplayRequest$outboundSchema)
12449
+ var UpdateFeatureParams$outboundSchema = z52.pipe(
12450
+ z52.object({
12451
+ name: z52.optional(z52.string()),
12452
+ type: z52.optional(UpdateFeatureTypeRequest$outboundSchema),
12453
+ consumable: z52.optional(z52.boolean()),
12454
+ display: z52.optional(
12455
+ z52.lazy(() => UpdateFeatureDisplayRequest$outboundSchema)
12413
12456
  ),
12414
- creditSchema: z51.optional(
12415
- z51.array(z51.lazy(() => UpdateFeatureCreditSchemaRequest$outboundSchema))
12457
+ creditSchema: z52.optional(
12458
+ z52.array(z52.lazy(() => UpdateFeatureCreditSchemaRequest$outboundSchema))
12416
12459
  ),
12417
- eventNames: z51.optional(z51.array(z51.string())),
12418
- archived: z51.optional(z51.boolean()),
12419
- featureId: z51.string(),
12420
- newFeatureId: z51.optional(z51.string())
12460
+ eventNames: z52.optional(z52.array(z52.string())),
12461
+ archived: z52.optional(z52.boolean()),
12462
+ featureId: z52.string(),
12463
+ newFeatureId: z52.optional(z52.string())
12421
12464
  }),
12422
- z51.transform((v) => {
12465
+ z52.transform((v) => {
12423
12466
  return remap(v, {
12424
12467
  creditSchema: "credit_schema",
12425
12468
  eventNames: "event_names",
@@ -12429,38 +12472,38 @@ var UpdateFeatureParams$outboundSchema = z51.pipe(
12429
12472
  })
12430
12473
  );
12431
12474
  var UpdateFeatureTypeResponse$inboundSchema = inboundSchema(UpdateFeatureTypeResponse);
12432
- var UpdateFeatureCreditSchemaResponse$inboundSchema = z51.pipe(
12433
- z51.object({
12475
+ var UpdateFeatureCreditSchemaResponse$inboundSchema = z52.pipe(
12476
+ z52.object({
12434
12477
  metered_feature_id: string4(),
12435
12478
  credit_cost: number2()
12436
12479
  }),
12437
- z51.transform((v) => {
12480
+ z52.transform((v) => {
12438
12481
  return remap(v, {
12439
12482
  "metered_feature_id": "meteredFeatureId",
12440
12483
  "credit_cost": "creditCost"
12441
12484
  });
12442
12485
  })
12443
12486
  );
12444
- var UpdateFeatureDisplayResponse$inboundSchema = z51.object({
12445
- singular: z51.optional(z51.nullable(string4())),
12446
- plural: z51.optional(z51.nullable(string4()))
12487
+ var UpdateFeatureDisplayResponse$inboundSchema = z52.object({
12488
+ singular: z52.optional(z52.nullable(string4())),
12489
+ plural: z52.optional(z52.nullable(string4()))
12447
12490
  });
12448
- var UpdateFeatureResponse$inboundSchema = z51.pipe(
12449
- z51.object({
12491
+ var UpdateFeatureResponse$inboundSchema = z52.pipe(
12492
+ z52.object({
12450
12493
  id: string4(),
12451
12494
  name: string4(),
12452
12495
  type: UpdateFeatureTypeResponse$inboundSchema,
12453
12496
  consumable: boolean2(),
12454
- event_names: optional3(z51.array(string4())),
12497
+ event_names: optional3(z52.array(string4())),
12455
12498
  credit_schema: optional3(
12456
- z51.array(z51.lazy(() => UpdateFeatureCreditSchemaResponse$inboundSchema))
12499
+ z52.array(z52.lazy(() => UpdateFeatureCreditSchemaResponse$inboundSchema))
12457
12500
  ),
12458
12501
  display: optional3(
12459
- z51.lazy(() => UpdateFeatureDisplayResponse$inboundSchema)
12502
+ z52.lazy(() => UpdateFeatureDisplayResponse$inboundSchema)
12460
12503
  ),
12461
12504
  archived: boolean2()
12462
12505
  }),
12463
- z51.transform((v) => {
12506
+ z52.transform((v) => {
12464
12507
  return remap(v, {
12465
12508
  "event_names": "eventNames",
12466
12509
  "credit_schema": "creditSchema"
@@ -12469,7 +12512,7 @@ var UpdateFeatureResponse$inboundSchema = z51.pipe(
12469
12512
  );
12470
12513
 
12471
12514
  // ../sdk/src/models/update-plan-op.ts
12472
- var z52 = __toESM(require("zod/v4-mini"), 1);
12515
+ var z53 = __toESM(require("zod/v4-mini"), 1);
12473
12516
  var UpdatePlanPriceIntervalRequest = {
12474
12517
  OneOff: "one_off",
12475
12518
  Week: "week",
@@ -12601,59 +12644,59 @@ var UpdatePlanAttachAction = {
12601
12644
  None: "none",
12602
12645
  Purchase: "purchase"
12603
12646
  };
12604
- var UpdatePlanPriceIntervalRequest$outboundSchema = z52.enum(UpdatePlanPriceIntervalRequest);
12605
- var UpdatePlanBasePrice$outboundSchema = z52.pipe(
12606
- z52.object({
12607
- amount: z52.number(),
12647
+ var UpdatePlanPriceIntervalRequest$outboundSchema = z53.enum(UpdatePlanPriceIntervalRequest);
12648
+ var UpdatePlanBasePrice$outboundSchema = z53.pipe(
12649
+ z53.object({
12650
+ amount: z53.number(),
12608
12651
  interval: UpdatePlanPriceIntervalRequest$outboundSchema,
12609
- intervalCount: z52.optional(z52.number())
12652
+ intervalCount: z53.optional(z53.number())
12610
12653
  }),
12611
- z52.transform((v) => {
12654
+ z53.transform((v) => {
12612
12655
  return remap(v, {
12613
12656
  intervalCount: "interval_count"
12614
12657
  });
12615
12658
  })
12616
12659
  );
12617
- var UpdatePlanResetIntervalRequest$outboundSchema = z52.enum(UpdatePlanResetIntervalRequest);
12618
- var UpdatePlanResetRequest$outboundSchema = z52.pipe(
12619
- z52.object({
12660
+ var UpdatePlanResetIntervalRequest$outboundSchema = z53.enum(UpdatePlanResetIntervalRequest);
12661
+ var UpdatePlanResetRequest$outboundSchema = z53.pipe(
12662
+ z53.object({
12620
12663
  interval: UpdatePlanResetIntervalRequest$outboundSchema,
12621
- intervalCount: z52.optional(z52.number())
12664
+ intervalCount: z53.optional(z53.number())
12622
12665
  }),
12623
- z52.transform((v) => {
12666
+ z53.transform((v) => {
12624
12667
  return remap(v, {
12625
12668
  intervalCount: "interval_count"
12626
12669
  });
12627
12670
  })
12628
12671
  );
12629
- var UpdatePlanTo$outboundSchema = smartUnion([z52.number(), z52.string()]);
12630
- var UpdatePlanTier$outboundSchema = z52.pipe(
12631
- z52.object({
12632
- to: smartUnion([z52.number(), z52.string()]),
12633
- amount: z52.optional(z52.number()),
12634
- flatAmount: z52.optional(z52.number())
12672
+ var UpdatePlanTo$outboundSchema = smartUnion([z53.number(), z53.string()]);
12673
+ var UpdatePlanTier$outboundSchema = z53.pipe(
12674
+ z53.object({
12675
+ to: smartUnion([z53.number(), z53.string()]),
12676
+ amount: z53.optional(z53.number()),
12677
+ flatAmount: z53.optional(z53.number())
12635
12678
  }),
12636
- z52.transform((v) => {
12679
+ z53.transform((v) => {
12637
12680
  return remap(v, {
12638
12681
  flatAmount: "flat_amount"
12639
12682
  });
12640
12683
  })
12641
12684
  );
12642
- var UpdatePlanTierBehaviorRequest$outboundSchema = z52.enum(UpdatePlanTierBehaviorRequest);
12643
- var UpdatePlanItemPriceIntervalRequest$outboundSchema = z52.enum(UpdatePlanItemPriceIntervalRequest);
12644
- var UpdatePlanBillingMethodRequest$outboundSchema = z52.enum(UpdatePlanBillingMethodRequest);
12645
- var UpdatePlanPriceRequest$outboundSchema = z52.pipe(
12646
- z52.object({
12647
- amount: z52.optional(z52.number()),
12648
- tiers: z52.optional(z52.array(z52.lazy(() => UpdatePlanTier$outboundSchema))),
12649
- tierBehavior: z52.optional(UpdatePlanTierBehaviorRequest$outboundSchema),
12685
+ var UpdatePlanTierBehaviorRequest$outboundSchema = z53.enum(UpdatePlanTierBehaviorRequest);
12686
+ var UpdatePlanItemPriceIntervalRequest$outboundSchema = z53.enum(UpdatePlanItemPriceIntervalRequest);
12687
+ var UpdatePlanBillingMethodRequest$outboundSchema = z53.enum(UpdatePlanBillingMethodRequest);
12688
+ var UpdatePlanPriceRequest$outboundSchema = z53.pipe(
12689
+ z53.object({
12690
+ amount: z53.optional(z53.number()),
12691
+ tiers: z53.optional(z53.array(z53.lazy(() => UpdatePlanTier$outboundSchema))),
12692
+ tierBehavior: z53.optional(UpdatePlanTierBehaviorRequest$outboundSchema),
12650
12693
  interval: UpdatePlanItemPriceIntervalRequest$outboundSchema,
12651
- intervalCount: z52._default(z52.number(), 1),
12652
- billingUnits: z52._default(z52.number(), 1),
12694
+ intervalCount: z53._default(z53.number(), 1),
12695
+ billingUnits: z53._default(z53.number(), 1),
12653
12696
  billingMethod: UpdatePlanBillingMethodRequest$outboundSchema,
12654
- maxPurchase: z52.optional(z52.number())
12697
+ maxPurchase: z53.optional(z53.number())
12655
12698
  }),
12656
- z52.transform((v) => {
12699
+ z53.transform((v) => {
12657
12700
  return remap(v, {
12658
12701
  tierBehavior: "tier_behavior",
12659
12702
  intervalCount: "interval_count",
@@ -12663,29 +12706,29 @@ var UpdatePlanPriceRequest$outboundSchema = z52.pipe(
12663
12706
  });
12664
12707
  })
12665
12708
  );
12666
- var UpdatePlanOnIncrease$outboundSchema = z52.enum(UpdatePlanOnIncrease);
12667
- var UpdatePlanOnDecrease$outboundSchema = z52.enum(UpdatePlanOnDecrease);
12668
- var UpdatePlanProration$outboundSchema = z52.pipe(
12669
- z52.object({
12709
+ var UpdatePlanOnIncrease$outboundSchema = z53.enum(UpdatePlanOnIncrease);
12710
+ var UpdatePlanOnDecrease$outboundSchema = z53.enum(UpdatePlanOnDecrease);
12711
+ var UpdatePlanProration$outboundSchema = z53.pipe(
12712
+ z53.object({
12670
12713
  onIncrease: UpdatePlanOnIncrease$outboundSchema,
12671
12714
  onDecrease: UpdatePlanOnDecrease$outboundSchema
12672
12715
  }),
12673
- z52.transform((v) => {
12716
+ z53.transform((v) => {
12674
12717
  return remap(v, {
12675
12718
  onIncrease: "on_increase",
12676
12719
  onDecrease: "on_decrease"
12677
12720
  });
12678
12721
  })
12679
12722
  );
12680
- var UpdatePlanExpiryDurationTypeRequest$outboundSchema = z52.enum(UpdatePlanExpiryDurationTypeRequest);
12681
- var UpdatePlanRolloverRequest$outboundSchema = z52.pipe(
12682
- z52.object({
12683
- max: z52.optional(z52.number()),
12684
- maxPercentage: z52.optional(z52.number()),
12723
+ var UpdatePlanExpiryDurationTypeRequest$outboundSchema = z53.enum(UpdatePlanExpiryDurationTypeRequest);
12724
+ var UpdatePlanRolloverRequest$outboundSchema = z53.pipe(
12725
+ z53.object({
12726
+ max: z53.optional(z53.number()),
12727
+ maxPercentage: z53.optional(z53.number()),
12685
12728
  expiryDurationType: UpdatePlanExpiryDurationTypeRequest$outboundSchema,
12686
- expiryDurationLength: z52.optional(z52.number())
12729
+ expiryDurationLength: z53.optional(z53.number())
12687
12730
  }),
12688
- z52.transform((v) => {
12731
+ z53.transform((v) => {
12689
12732
  return remap(v, {
12690
12733
  maxPercentage: "max_percentage",
12691
12734
  expiryDurationType: "expiry_duration_type",
@@ -12693,37 +12736,37 @@ var UpdatePlanRolloverRequest$outboundSchema = z52.pipe(
12693
12736
  });
12694
12737
  })
12695
12738
  );
12696
- var UpdatePlanPlanItem$outboundSchema = z52.pipe(
12697
- z52.object({
12698
- featureId: z52.string(),
12699
- included: z52.optional(z52.number()),
12700
- unlimited: z52.optional(z52.boolean()),
12701
- reset: z52.optional(z52.lazy(() => UpdatePlanResetRequest$outboundSchema)),
12702
- price: z52.optional(z52.lazy(() => UpdatePlanPriceRequest$outboundSchema)),
12703
- proration: z52.optional(z52.lazy(() => UpdatePlanProration$outboundSchema)),
12704
- rollover: z52.optional(
12705
- z52.lazy(() => UpdatePlanRolloverRequest$outboundSchema)
12739
+ var UpdatePlanPlanItem$outboundSchema = z53.pipe(
12740
+ z53.object({
12741
+ featureId: z53.string(),
12742
+ included: z53.optional(z53.number()),
12743
+ unlimited: z53.optional(z53.boolean()),
12744
+ reset: z53.optional(z53.lazy(() => UpdatePlanResetRequest$outboundSchema)),
12745
+ price: z53.optional(z53.lazy(() => UpdatePlanPriceRequest$outboundSchema)),
12746
+ proration: z53.optional(z53.lazy(() => UpdatePlanProration$outboundSchema)),
12747
+ rollover: z53.optional(
12748
+ z53.lazy(() => UpdatePlanRolloverRequest$outboundSchema)
12706
12749
  )
12707
12750
  }),
12708
- z52.transform((v) => {
12751
+ z53.transform((v) => {
12709
12752
  return remap(v, {
12710
12753
  featureId: "feature_id"
12711
12754
  });
12712
12755
  })
12713
12756
  );
12714
- var UpdatePlanDurationTypeRequest$outboundSchema = z52.enum(UpdatePlanDurationTypeRequest);
12715
- var UpdatePlanOnEndRequest$outboundSchema = z52.enum(UpdatePlanOnEndRequest);
12716
- var UpdatePlanFreeTrialParams$outboundSchema = z52.pipe(
12717
- z52.object({
12718
- durationLength: z52.number(),
12719
- durationType: z52._default(
12757
+ var UpdatePlanDurationTypeRequest$outboundSchema = z53.enum(UpdatePlanDurationTypeRequest);
12758
+ var UpdatePlanOnEndRequest$outboundSchema = z53.enum(UpdatePlanOnEndRequest);
12759
+ var UpdatePlanFreeTrialParams$outboundSchema = z53.pipe(
12760
+ z53.object({
12761
+ durationLength: z53.number(),
12762
+ durationType: z53._default(
12720
12763
  UpdatePlanDurationTypeRequest$outboundSchema,
12721
12764
  "month"
12722
12765
  ),
12723
- cardRequired: z52._default(z52.boolean(), true),
12724
- onEnd: z52.optional(UpdatePlanOnEndRequest$outboundSchema)
12766
+ cardRequired: z53._default(z53.boolean(), true),
12767
+ onEnd: z53.optional(UpdatePlanOnEndRequest$outboundSchema)
12725
12768
  }),
12726
- z52.transform((v) => {
12769
+ z53.transform((v) => {
12727
12770
  return remap(v, {
12728
12771
  durationLength: "duration_length",
12729
12772
  durationType: "duration_type",
@@ -12732,38 +12775,38 @@ var UpdatePlanFreeTrialParams$outboundSchema = z52.pipe(
12732
12775
  });
12733
12776
  })
12734
12777
  );
12735
- var UpdatePlanConfigRequest$outboundSchema = z52.pipe(
12736
- z52.object({
12737
- ignorePastDue: z52._default(z52.boolean(), false)
12778
+ var UpdatePlanConfigRequest$outboundSchema = z53.pipe(
12779
+ z53.object({
12780
+ ignorePastDue: z53._default(z53.boolean(), false)
12738
12781
  }),
12739
- z52.transform((v) => {
12782
+ z53.transform((v) => {
12740
12783
  return remap(v, {
12741
12784
  ignorePastDue: "ignore_past_due"
12742
12785
  });
12743
12786
  })
12744
12787
  );
12745
- var UpdatePlanParams$outboundSchema = z52.pipe(
12746
- z52.object({
12747
- planId: z52.string(),
12748
- group: z52._default(z52.string(), ""),
12749
- name: z52.optional(z52.string()),
12750
- description: z52.optional(z52.string()),
12751
- addOn: z52.optional(z52.boolean()),
12752
- autoEnable: z52.optional(z52.boolean()),
12753
- price: z52.optional(
12754
- z52.nullable(z52.lazy(() => UpdatePlanBasePrice$outboundSchema))
12788
+ var UpdatePlanParams$outboundSchema = z53.pipe(
12789
+ z53.object({
12790
+ planId: z53.string(),
12791
+ group: z53._default(z53.string(), ""),
12792
+ name: z53.optional(z53.string()),
12793
+ description: z53.optional(z53.string()),
12794
+ addOn: z53.optional(z53.boolean()),
12795
+ autoEnable: z53.optional(z53.boolean()),
12796
+ price: z53.optional(
12797
+ z53.nullable(z53.lazy(() => UpdatePlanBasePrice$outboundSchema))
12755
12798
  ),
12756
- items: z52.optional(z52.array(z52.lazy(() => UpdatePlanPlanItem$outboundSchema))),
12757
- freeTrial: z52.optional(
12758
- z52.nullable(z52.lazy(() => UpdatePlanFreeTrialParams$outboundSchema))
12799
+ items: z53.optional(z53.array(z53.lazy(() => UpdatePlanPlanItem$outboundSchema))),
12800
+ freeTrial: z53.optional(
12801
+ z53.nullable(z53.lazy(() => UpdatePlanFreeTrialParams$outboundSchema))
12759
12802
  ),
12760
- config: z52.optional(z52.lazy(() => UpdatePlanConfigRequest$outboundSchema)),
12761
- createInStripe: z52._default(z52.boolean(), true),
12762
- version: z52.optional(z52.number()),
12763
- archived: z52._default(z52.boolean(), false),
12764
- newPlanId: z52.optional(z52.string())
12803
+ config: z53.optional(z53.lazy(() => UpdatePlanConfigRequest$outboundSchema)),
12804
+ createInStripe: z53._default(z53.boolean(), true),
12805
+ version: z53.optional(z53.number()),
12806
+ archived: z53._default(z53.boolean(), false),
12807
+ newPlanId: z53.optional(z53.string())
12765
12808
  }),
12766
- z52.transform((v) => {
12809
+ z53.transform((v) => {
12767
12810
  return remap(v, {
12768
12811
  planId: "plan_id",
12769
12812
  addOn: "add_on",
@@ -12775,74 +12818,74 @@ var UpdatePlanParams$outboundSchema = z52.pipe(
12775
12818
  })
12776
12819
  );
12777
12820
  var UpdatePlanPriceIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceIntervalResponse);
12778
- var UpdatePlanPriceDisplay$inboundSchema = z52.pipe(
12779
- z52.object({
12821
+ var UpdatePlanPriceDisplay$inboundSchema = z53.pipe(
12822
+ z53.object({
12780
12823
  primary_text: string4(),
12781
12824
  secondary_text: optional3(string4())
12782
12825
  }),
12783
- z52.transform((v) => {
12826
+ z53.transform((v) => {
12784
12827
  return remap(v, {
12785
12828
  "primary_text": "primaryText",
12786
12829
  "secondary_text": "secondaryText"
12787
12830
  });
12788
12831
  })
12789
12832
  );
12790
- var UpdatePlanPriceResponse$inboundSchema = z52.pipe(
12791
- z52.object({
12833
+ var UpdatePlanPriceResponse$inboundSchema = z53.pipe(
12834
+ z53.object({
12792
12835
  amount: number2(),
12793
12836
  interval: UpdatePlanPriceIntervalResponse$inboundSchema,
12794
12837
  interval_count: optional3(number2()),
12795
- display: optional3(z52.lazy(() => UpdatePlanPriceDisplay$inboundSchema))
12838
+ display: optional3(z53.lazy(() => UpdatePlanPriceDisplay$inboundSchema))
12796
12839
  }),
12797
- z52.transform((v) => {
12840
+ z53.transform((v) => {
12798
12841
  return remap(v, {
12799
12842
  "interval_count": "intervalCount"
12800
12843
  });
12801
12844
  })
12802
12845
  );
12803
12846
  var UpdatePlanType$inboundSchema = inboundSchema(UpdatePlanType);
12804
- var UpdatePlanFeatureDisplay$inboundSchema = z52.object({
12847
+ var UpdatePlanFeatureDisplay$inboundSchema = z53.object({
12805
12848
  singular: string4(),
12806
12849
  plural: string4()
12807
12850
  });
12808
- var UpdatePlanCreditSchema$inboundSchema = z52.pipe(
12809
- z52.object({
12851
+ var UpdatePlanCreditSchema$inboundSchema = z53.pipe(
12852
+ z53.object({
12810
12853
  metered_feature_id: string4(),
12811
12854
  credit_cost: number2()
12812
12855
  }),
12813
- z52.transform((v) => {
12856
+ z53.transform((v) => {
12814
12857
  return remap(v, {
12815
12858
  "metered_feature_id": "meteredFeatureId",
12816
12859
  "credit_cost": "creditCost"
12817
12860
  });
12818
12861
  })
12819
12862
  );
12820
- var UpdatePlanFeature$inboundSchema = z52.pipe(
12821
- z52.object({
12863
+ var UpdatePlanFeature$inboundSchema = z53.pipe(
12864
+ z53.object({
12822
12865
  id: string4(),
12823
- name: z52.optional(z52.nullable(string4())),
12866
+ name: z53.optional(z53.nullable(string4())),
12824
12867
  type: UpdatePlanType$inboundSchema,
12825
- display: z52.optional(
12826
- z52.nullable(z52.lazy(() => UpdatePlanFeatureDisplay$inboundSchema))
12868
+ display: z53.optional(
12869
+ z53.nullable(z53.lazy(() => UpdatePlanFeatureDisplay$inboundSchema))
12827
12870
  ),
12828
- credit_schema: z52.optional(
12829
- z52.nullable(z52.array(z52.lazy(() => UpdatePlanCreditSchema$inboundSchema)))
12871
+ credit_schema: z53.optional(
12872
+ z53.nullable(z53.array(z53.lazy(() => UpdatePlanCreditSchema$inboundSchema)))
12830
12873
  ),
12831
- archived: z52.optional(z52.nullable(boolean2()))
12874
+ archived: z53.optional(z53.nullable(boolean2()))
12832
12875
  }),
12833
- z52.transform((v) => {
12876
+ z53.transform((v) => {
12834
12877
  return remap(v, {
12835
12878
  "credit_schema": "creditSchema"
12836
12879
  });
12837
12880
  })
12838
12881
  );
12839
12882
  var UpdatePlanResetIntervalResponse$inboundSchema = inboundSchema(UpdatePlanResetIntervalResponse);
12840
- var UpdatePlanResetResponse$inboundSchema = z52.pipe(
12841
- z52.object({
12883
+ var UpdatePlanResetResponse$inboundSchema = z53.pipe(
12884
+ z53.object({
12842
12885
  interval: UpdatePlanResetIntervalResponse$inboundSchema,
12843
12886
  interval_count: optional3(number2())
12844
12887
  }),
12845
- z52.transform((v) => {
12888
+ z53.transform((v) => {
12846
12889
  return remap(v, {
12847
12890
  "interval_count": "intervalCount"
12848
12891
  });
@@ -12851,10 +12894,10 @@ var UpdatePlanResetResponse$inboundSchema = z52.pipe(
12851
12894
  var UpdatePlanTierBehaviorResponse$inboundSchema = inboundSchema(UpdatePlanTierBehaviorResponse);
12852
12895
  var UpdatePlanPriceItemIntervalResponse$inboundSchema = inboundSchema(UpdatePlanPriceItemIntervalResponse);
12853
12896
  var UpdatePlanBillingMethodResponse$inboundSchema = inboundSchema(UpdatePlanBillingMethodResponse);
12854
- var UpdatePlanItemPriceResponse$inboundSchema = z52.pipe(
12855
- z52.object({
12897
+ var UpdatePlanItemPriceResponse$inboundSchema = z53.pipe(
12898
+ z53.object({
12856
12899
  amount: optional3(number2()),
12857
- tiers: optional3(z52.array(nullable(z52.any()))),
12900
+ tiers: optional3(z53.array(nullable(z53.any()))),
12858
12901
  tier_behavior: optional3(UpdatePlanTierBehaviorResponse$inboundSchema),
12859
12902
  interval: UpdatePlanPriceItemIntervalResponse$inboundSchema,
12860
12903
  interval_count: optional3(number2()),
@@ -12862,7 +12905,7 @@ var UpdatePlanItemPriceResponse$inboundSchema = z52.pipe(
12862
12905
  billing_method: UpdatePlanBillingMethodResponse$inboundSchema,
12863
12906
  max_purchase: nullable(number2())
12864
12907
  }),
12865
- z52.transform((v) => {
12908
+ z53.transform((v) => {
12866
12909
  return remap(v, {
12867
12910
  "tier_behavior": "tierBehavior",
12868
12911
  "interval_count": "intervalCount",
@@ -12872,12 +12915,12 @@ var UpdatePlanItemPriceResponse$inboundSchema = z52.pipe(
12872
12915
  });
12873
12916
  })
12874
12917
  );
12875
- var UpdatePlanItemDisplay$inboundSchema = z52.pipe(
12876
- z52.object({
12918
+ var UpdatePlanItemDisplay$inboundSchema = z53.pipe(
12919
+ z53.object({
12877
12920
  primary_text: string4(),
12878
12921
  secondary_text: optional3(string4())
12879
12922
  }),
12880
- z52.transform((v) => {
12923
+ z53.transform((v) => {
12881
12924
  return remap(v, {
12882
12925
  "primary_text": "primaryText",
12883
12926
  "secondary_text": "secondaryText"
@@ -12885,14 +12928,14 @@ var UpdatePlanItemDisplay$inboundSchema = z52.pipe(
12885
12928
  })
12886
12929
  );
12887
12930
  var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanExpiryDurationTypeResponse);
12888
- var UpdatePlanRolloverResponse$inboundSchema = z52.pipe(
12889
- z52.object({
12931
+ var UpdatePlanRolloverResponse$inboundSchema = z53.pipe(
12932
+ z53.object({
12890
12933
  max: nullable(number2()),
12891
- max_percentage: z52.optional(z52.nullable(number2())),
12934
+ max_percentage: z53.optional(z53.nullable(number2())),
12892
12935
  expiry_duration_type: UpdatePlanExpiryDurationTypeResponse$inboundSchema,
12893
12936
  expiry_duration_length: optional3(number2())
12894
12937
  }),
12895
- z52.transform((v) => {
12938
+ z53.transform((v) => {
12896
12939
  return remap(v, {
12897
12940
  "max_percentage": "maxPercentage",
12898
12941
  "expiry_duration_type": "expiryDurationType",
@@ -12900,22 +12943,22 @@ var UpdatePlanRolloverResponse$inboundSchema = z52.pipe(
12900
12943
  });
12901
12944
  })
12902
12945
  );
12903
- var UpdatePlanItem$inboundSchema = z52.pipe(
12904
- z52.object({
12946
+ var UpdatePlanItem$inboundSchema = z53.pipe(
12947
+ z53.object({
12905
12948
  feature_id: string4(),
12906
- feature: optional3(z52.lazy(() => UpdatePlanFeature$inboundSchema)),
12949
+ feature: optional3(z53.lazy(() => UpdatePlanFeature$inboundSchema)),
12907
12950
  included: number2(),
12908
12951
  unlimited: boolean2(),
12909
- reset: nullable(z52.lazy(() => UpdatePlanResetResponse$inboundSchema)),
12952
+ reset: nullable(z53.lazy(() => UpdatePlanResetResponse$inboundSchema)),
12910
12953
  price: nullable(
12911
- z52.lazy(() => UpdatePlanItemPriceResponse$inboundSchema)
12954
+ z53.lazy(() => UpdatePlanItemPriceResponse$inboundSchema)
12912
12955
  ),
12913
- display: optional3(z52.lazy(() => UpdatePlanItemDisplay$inboundSchema)),
12956
+ display: optional3(z53.lazy(() => UpdatePlanItemDisplay$inboundSchema)),
12914
12957
  rollover: optional3(
12915
- z52.lazy(() => UpdatePlanRolloverResponse$inboundSchema)
12958
+ z53.lazy(() => UpdatePlanRolloverResponse$inboundSchema)
12916
12959
  )
12917
12960
  }),
12918
- z52.transform((v) => {
12961
+ z53.transform((v) => {
12919
12962
  return remap(v, {
12920
12963
  "feature_id": "featureId"
12921
12964
  });
@@ -12923,14 +12966,14 @@ var UpdatePlanItem$inboundSchema = z52.pipe(
12923
12966
  );
12924
12967
  var UpdatePlanDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanDurationTypeResponse);
12925
12968
  var UpdatePlanOnEndResponse$inboundSchema = inboundSchema(UpdatePlanOnEndResponse);
12926
- var UpdatePlanFreeTrial$inboundSchema = z52.pipe(
12927
- z52.object({
12969
+ var UpdatePlanFreeTrial$inboundSchema = z53.pipe(
12970
+ z53.object({
12928
12971
  duration_length: number2(),
12929
12972
  duration_type: UpdatePlanDurationTypeResponse$inboundSchema,
12930
12973
  card_required: boolean2(),
12931
- on_end: z52.optional(z52.nullable(UpdatePlanOnEndResponse$inboundSchema))
12974
+ on_end: z53.optional(z53.nullable(UpdatePlanOnEndResponse$inboundSchema))
12932
12975
  }),
12933
- z52.transform((v) => {
12976
+ z53.transform((v) => {
12934
12977
  return remap(v, {
12935
12978
  "duration_length": "durationLength",
12936
12979
  "duration_type": "durationType",
@@ -12940,11 +12983,11 @@ var UpdatePlanFreeTrial$inboundSchema = z52.pipe(
12940
12983
  })
12941
12984
  );
12942
12985
  var UpdatePlanEnv$inboundSchema = inboundSchema(UpdatePlanEnv);
12943
- var UpdatePlanConfigResponse$inboundSchema = z52.pipe(
12944
- z52.object({
12945
- ignore_past_due: z52._default(boolean2(), false)
12986
+ var UpdatePlanConfigResponse$inboundSchema = z53.pipe(
12987
+ z53.object({
12988
+ ignore_past_due: z53._default(boolean2(), false)
12946
12989
  }),
12947
- z52.transform((v) => {
12990
+ z53.transform((v) => {
12948
12991
  return remap(v, {
12949
12992
  "ignore_past_due": "ignorePastDue"
12950
12993
  });
@@ -12952,23 +12995,23 @@ var UpdatePlanConfigResponse$inboundSchema = z52.pipe(
12952
12995
  );
12953
12996
  var UpdatePlanStatus$inboundSchema = inboundSchema(UpdatePlanStatus);
12954
12997
  var UpdatePlanAttachAction$inboundSchema = inboundSchema(UpdatePlanAttachAction);
12955
- var UpdatePlanCustomerEligibility$inboundSchema = z52.pipe(
12956
- z52.object({
12998
+ var UpdatePlanCustomerEligibility$inboundSchema = z53.pipe(
12999
+ z53.object({
12957
13000
  trial_available: optional3(boolean2()),
12958
13001
  status: optional3(UpdatePlanStatus$inboundSchema),
12959
13002
  canceling: optional3(boolean2()),
12960
13003
  trialing: optional3(boolean2()),
12961
13004
  attach_action: UpdatePlanAttachAction$inboundSchema
12962
13005
  }),
12963
- z52.transform((v) => {
13006
+ z53.transform((v) => {
12964
13007
  return remap(v, {
12965
13008
  "trial_available": "trialAvailable",
12966
13009
  "attach_action": "attachAction"
12967
13010
  });
12968
13011
  })
12969
13012
  );
12970
- var UpdatePlanResponse$inboundSchema = z52.pipe(
12971
- z52.object({
13013
+ var UpdatePlanResponse$inboundSchema = z53.pipe(
13014
+ z53.object({
12972
13015
  id: string4(),
12973
13016
  name: string4(),
12974
13017
  description: nullable(string4()),
@@ -12976,19 +13019,19 @@ var UpdatePlanResponse$inboundSchema = z52.pipe(
12976
13019
  version: number2(),
12977
13020
  add_on: boolean2(),
12978
13021
  auto_enable: boolean2(),
12979
- price: nullable(z52.lazy(() => UpdatePlanPriceResponse$inboundSchema)),
12980
- items: z52.array(z52.lazy(() => UpdatePlanItem$inboundSchema)),
12981
- free_trial: optional3(z52.lazy(() => UpdatePlanFreeTrial$inboundSchema)),
13022
+ price: nullable(z53.lazy(() => UpdatePlanPriceResponse$inboundSchema)),
13023
+ items: z53.array(z53.lazy(() => UpdatePlanItem$inboundSchema)),
13024
+ free_trial: optional3(z53.lazy(() => UpdatePlanFreeTrial$inboundSchema)),
12982
13025
  created_at: number2(),
12983
13026
  env: UpdatePlanEnv$inboundSchema,
12984
13027
  archived: boolean2(),
12985
13028
  base_variant_id: nullable(string4()),
12986
- config: z52.lazy(() => UpdatePlanConfigResponse$inboundSchema),
13029
+ config: z53.lazy(() => UpdatePlanConfigResponse$inboundSchema),
12987
13030
  customer_eligibility: optional3(
12988
- z52.lazy(() => UpdatePlanCustomerEligibility$inboundSchema)
13031
+ z53.lazy(() => UpdatePlanCustomerEligibility$inboundSchema)
12989
13032
  )
12990
13033
  }),
12991
- z52.transform((v) => {
13034
+ z53.transform((v) => {
12992
13035
  return remap(v, {
12993
13036
  "add_on": "addOn",
12994
13037
  "auto_enable": "autoEnable",
@@ -13037,7 +13080,7 @@ function check(client, request, options) {
13037
13080
  async function $do(client, request, options) {
13038
13081
  const parsed = safeParse(
13039
13082
  request,
13040
- (value) => z53.parse(CheckParams$outboundSchema, value),
13083
+ (value) => z54.parse(CheckParams$outboundSchema, value),
13041
13084
  "Input validation failed"
13042
13085
  );
13043
13086
  if (!parsed.ok) {
@@ -13105,7 +13148,7 @@ async function $do(client, request, options) {
13105
13148
  }
13106
13149
 
13107
13150
  // ../sdk/src/funcs/track.ts
13108
- var z54 = __toESM(require("zod/v4-mini"), 1);
13151
+ var z55 = __toESM(require("zod/v4-mini"), 1);
13109
13152
  function track(client, request, options) {
13110
13153
  return new APIPromise($do2(
13111
13154
  client,
@@ -13116,7 +13159,7 @@ function track(client, request, options) {
13116
13159
  async function $do2(client, request, options) {
13117
13160
  const parsed = safeParse(
13118
13161
  request,
13119
- (value) => z54.parse(TrackParams$outboundSchema, value),
13162
+ (value) => z55.parse(TrackParams$outboundSchema, value),
13120
13163
  "Input validation failed"
13121
13164
  );
13122
13165
  if (!parsed.ok) {
@@ -13789,7 +13832,7 @@ async function logResponse(logger, res, req) {
13789
13832
  }
13790
13833
 
13791
13834
  // ../sdk/src/funcs/balances-create.ts
13792
- var z55 = __toESM(require("zod/v4-mini"), 1);
13835
+ var z56 = __toESM(require("zod/v4-mini"), 1);
13793
13836
  function balancesCreate(client, request, options) {
13794
13837
  return new APIPromise($do3(
13795
13838
  client,
@@ -13800,7 +13843,7 @@ function balancesCreate(client, request, options) {
13800
13843
  async function $do3(client, request, options) {
13801
13844
  const parsed = safeParse(
13802
13845
  request,
13803
- (value) => z55.parse(CreateBalanceParams$outboundSchema, value),
13846
+ (value) => z56.parse(CreateBalanceParams$outboundSchema, value),
13804
13847
  "Input validation failed"
13805
13848
  );
13806
13849
  if (!parsed.ok) {
@@ -13867,7 +13910,7 @@ async function $do3(client, request, options) {
13867
13910
  }
13868
13911
 
13869
13912
  // ../sdk/src/funcs/balances-delete.ts
13870
- var z56 = __toESM(require("zod/v4-mini"), 1);
13913
+ var z57 = __toESM(require("zod/v4-mini"), 1);
13871
13914
  function balancesDelete(client, request, options) {
13872
13915
  return new APIPromise($do4(
13873
13916
  client,
@@ -13878,7 +13921,7 @@ function balancesDelete(client, request, options) {
13878
13921
  async function $do4(client, request, options) {
13879
13922
  const parsed = safeParse(
13880
13923
  request,
13881
- (value) => z56.parse(DeleteBalanceParams$outboundSchema, value),
13924
+ (value) => z57.parse(DeleteBalanceParams$outboundSchema, value),
13882
13925
  "Input validation failed"
13883
13926
  );
13884
13927
  if (!parsed.ok) {
@@ -13945,7 +13988,7 @@ async function $do4(client, request, options) {
13945
13988
  }
13946
13989
 
13947
13990
  // ../sdk/src/funcs/balances-finalize.ts
13948
- var z57 = __toESM(require("zod/v4-mini"), 1);
13991
+ var z58 = __toESM(require("zod/v4-mini"), 1);
13949
13992
  function balancesFinalize(client, request, options) {
13950
13993
  return new APIPromise($do5(
13951
13994
  client,
@@ -13956,7 +13999,7 @@ function balancesFinalize(client, request, options) {
13956
13999
  async function $do5(client, request, options) {
13957
14000
  const parsed = safeParse(
13958
14001
  request,
13959
- (value) => z57.parse(FinalizeBalanceParams$outboundSchema, value),
14002
+ (value) => z58.parse(FinalizeBalanceParams$outboundSchema, value),
13960
14003
  "Input validation failed"
13961
14004
  );
13962
14005
  if (!parsed.ok) {
@@ -14024,7 +14067,7 @@ async function $do5(client, request, options) {
14024
14067
  }
14025
14068
 
14026
14069
  // ../sdk/src/funcs/balances-update.ts
14027
- var z58 = __toESM(require("zod/v4-mini"), 1);
14070
+ var z59 = __toESM(require("zod/v4-mini"), 1);
14028
14071
  function balancesUpdate(client, request, options) {
14029
14072
  return new APIPromise($do6(
14030
14073
  client,
@@ -14035,7 +14078,7 @@ function balancesUpdate(client, request, options) {
14035
14078
  async function $do6(client, request, options) {
14036
14079
  const parsed = safeParse(
14037
14080
  request,
14038
- (value) => z58.parse(UpdateBalanceParams$outboundSchema, value),
14081
+ (value) => z59.parse(UpdateBalanceParams$outboundSchema, value),
14039
14082
  "Input validation failed"
14040
14083
  );
14041
14084
  if (!parsed.ok) {
@@ -14146,7 +14189,7 @@ var Balances = class extends ClientSDK {
14146
14189
  };
14147
14190
 
14148
14191
  // ../sdk/src/funcs/billing-attach.ts
14149
- var z59 = __toESM(require("zod/v4-mini"), 1);
14192
+ var z60 = __toESM(require("zod/v4-mini"), 1);
14150
14193
  function billingAttach(client, request, options) {
14151
14194
  return new APIPromise($do7(
14152
14195
  client,
@@ -14157,7 +14200,7 @@ function billingAttach(client, request, options) {
14157
14200
  async function $do7(client, request, options) {
14158
14201
  const parsed = safeParse(
14159
14202
  request,
14160
- (value) => z59.parse(AttachParams$outboundSchema, value),
14203
+ (value) => z60.parse(AttachParams$outboundSchema, value),
14161
14204
  "Input validation failed"
14162
14205
  );
14163
14206
  if (!parsed.ok) {
@@ -14224,7 +14267,7 @@ async function $do7(client, request, options) {
14224
14267
  }
14225
14268
 
14226
14269
  // ../sdk/src/funcs/billing-create-schedule.ts
14227
- var z60 = __toESM(require("zod/v4-mini"), 1);
14270
+ var z61 = __toESM(require("zod/v4-mini"), 1);
14228
14271
  function billingCreateSchedule(client, request, options) {
14229
14272
  return new APIPromise($do8(
14230
14273
  client,
@@ -14235,7 +14278,7 @@ function billingCreateSchedule(client, request, options) {
14235
14278
  async function $do8(client, request, options) {
14236
14279
  const parsed = safeParse(
14237
14280
  request,
14238
- (value) => z60.parse(CreateScheduleParams$outboundSchema, value),
14281
+ (value) => z61.parse(CreateScheduleParams$outboundSchema, value),
14239
14282
  "Input validation failed"
14240
14283
  );
14241
14284
  if (!parsed.ok) {
@@ -14302,7 +14345,7 @@ async function $do8(client, request, options) {
14302
14345
  }
14303
14346
 
14304
14347
  // ../sdk/src/funcs/billing-multi-attach.ts
14305
- var z61 = __toESM(require("zod/v4-mini"), 1);
14348
+ var z62 = __toESM(require("zod/v4-mini"), 1);
14306
14349
  function billingMultiAttach(client, request, options) {
14307
14350
  return new APIPromise($do9(
14308
14351
  client,
@@ -14313,7 +14356,7 @@ function billingMultiAttach(client, request, options) {
14313
14356
  async function $do9(client, request, options) {
14314
14357
  const parsed = safeParse(
14315
14358
  request,
14316
- (value) => z61.parse(MultiAttachParams$outboundSchema, value),
14359
+ (value) => z62.parse(MultiAttachParams$outboundSchema, value),
14317
14360
  "Input validation failed"
14318
14361
  );
14319
14362
  if (!parsed.ok) {
@@ -14380,7 +14423,7 @@ async function $do9(client, request, options) {
14380
14423
  }
14381
14424
 
14382
14425
  // ../sdk/src/funcs/billing-open-customer-portal.ts
14383
- var z62 = __toESM(require("zod/v4-mini"), 1);
14426
+ var z63 = __toESM(require("zod/v4-mini"), 1);
14384
14427
  function billingOpenCustomerPortal(client, request, options) {
14385
14428
  return new APIPromise($do10(
14386
14429
  client,
@@ -14391,7 +14434,7 @@ function billingOpenCustomerPortal(client, request, options) {
14391
14434
  async function $do10(client, request, options) {
14392
14435
  const parsed = safeParse(
14393
14436
  request,
14394
- (value) => z62.parse(OpenCustomerPortalParams$outboundSchema, value),
14437
+ (value) => z63.parse(OpenCustomerPortalParams$outboundSchema, value),
14395
14438
  "Input validation failed"
14396
14439
  );
14397
14440
  if (!parsed.ok) {
@@ -14458,7 +14501,7 @@ async function $do10(client, request, options) {
14458
14501
  }
14459
14502
 
14460
14503
  // ../sdk/src/funcs/billing-preview-attach.ts
14461
- var z63 = __toESM(require("zod/v4-mini"), 1);
14504
+ var z64 = __toESM(require("zod/v4-mini"), 1);
14462
14505
  function billingPreviewAttach(client, request, options) {
14463
14506
  return new APIPromise($do11(
14464
14507
  client,
@@ -14469,7 +14512,7 @@ function billingPreviewAttach(client, request, options) {
14469
14512
  async function $do11(client, request, options) {
14470
14513
  const parsed = safeParse(
14471
14514
  request,
14472
- (value) => z63.parse(PreviewAttachParams$outboundSchema, value),
14515
+ (value) => z64.parse(PreviewAttachParams$outboundSchema, value),
14473
14516
  "Input validation failed"
14474
14517
  );
14475
14518
  if (!parsed.ok) {
@@ -14536,7 +14579,7 @@ async function $do11(client, request, options) {
14536
14579
  }
14537
14580
 
14538
14581
  // ../sdk/src/funcs/billing-preview-multi-attach.ts
14539
- var z64 = __toESM(require("zod/v4-mini"), 1);
14582
+ var z65 = __toESM(require("zod/v4-mini"), 1);
14540
14583
  function billingPreviewMultiAttach(client, request, options) {
14541
14584
  return new APIPromise($do12(
14542
14585
  client,
@@ -14547,7 +14590,7 @@ function billingPreviewMultiAttach(client, request, options) {
14547
14590
  async function $do12(client, request, options) {
14548
14591
  const parsed = safeParse(
14549
14592
  request,
14550
- (value) => z64.parse(PreviewMultiAttachParams$outboundSchema, value),
14593
+ (value) => z65.parse(PreviewMultiAttachParams$outboundSchema, value),
14551
14594
  "Input validation failed"
14552
14595
  );
14553
14596
  if (!parsed.ok) {
@@ -14614,7 +14657,7 @@ async function $do12(client, request, options) {
14614
14657
  }
14615
14658
 
14616
14659
  // ../sdk/src/funcs/billing-preview-update.ts
14617
- var z65 = __toESM(require("zod/v4-mini"), 1);
14660
+ var z66 = __toESM(require("zod/v4-mini"), 1);
14618
14661
  function billingPreviewUpdate(client, request, options) {
14619
14662
  return new APIPromise($do13(
14620
14663
  client,
@@ -14625,7 +14668,7 @@ function billingPreviewUpdate(client, request, options) {
14625
14668
  async function $do13(client, request, options) {
14626
14669
  const parsed = safeParse(
14627
14670
  request,
14628
- (value) => z65.parse(PreviewUpdateParams$outboundSchema, value),
14671
+ (value) => z66.parse(PreviewUpdateParams$outboundSchema, value),
14629
14672
  "Input validation failed"
14630
14673
  );
14631
14674
  if (!parsed.ok) {
@@ -14692,7 +14735,7 @@ async function $do13(client, request, options) {
14692
14735
  }
14693
14736
 
14694
14737
  // ../sdk/src/funcs/billing-setup-payment.ts
14695
- var z66 = __toESM(require("zod/v4-mini"), 1);
14738
+ var z67 = __toESM(require("zod/v4-mini"), 1);
14696
14739
  function billingSetupPayment(client, request, options) {
14697
14740
  return new APIPromise($do14(
14698
14741
  client,
@@ -14703,7 +14746,7 @@ function billingSetupPayment(client, request, options) {
14703
14746
  async function $do14(client, request, options) {
14704
14747
  const parsed = safeParse(
14705
14748
  request,
14706
- (value) => z66.parse(SetupPaymentParams$outboundSchema, value),
14749
+ (value) => z67.parse(SetupPaymentParams$outboundSchema, value),
14707
14750
  "Input validation failed"
14708
14751
  );
14709
14752
  if (!parsed.ok) {
@@ -14770,7 +14813,7 @@ async function $do14(client, request, options) {
14770
14813
  }
14771
14814
 
14772
14815
  // ../sdk/src/funcs/billing-update.ts
14773
- var z67 = __toESM(require("zod/v4-mini"), 1);
14816
+ var z68 = __toESM(require("zod/v4-mini"), 1);
14774
14817
  function billingUpdate(client, request, options) {
14775
14818
  return new APIPromise($do15(
14776
14819
  client,
@@ -14781,7 +14824,7 @@ function billingUpdate(client, request, options) {
14781
14824
  async function $do15(client, request, options) {
14782
14825
  const parsed = safeParse(
14783
14826
  request,
14784
- (value) => z67.parse(UpdateSubscriptionParams$outboundSchema, value),
14827
+ (value) => z68.parse(UpdateSubscriptionParams$outboundSchema, value),
14785
14828
  "Input validation failed"
14786
14829
  );
14787
14830
  if (!parsed.ok) {
@@ -14897,6 +14940,7 @@ var Billing = class extends ClientSDK {
14897
14940
  * @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)
14898
14941
  * @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
14899
14942
  * @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)
14943
+ * @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
14900
14944
  *
14901
14945
  * @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
14902
14946
  */
@@ -14915,7 +14959,7 @@ var Billing = class extends ClientSDK {
14915
14959
  * @example
14916
14960
  * ```typescript
14917
14961
  * // Schedule a transition from a trial plan to a paid plan
14918
- * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779218573238,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780428173238,"plans":[{"planId":"pro_plan"}]}] });
14962
+ * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779303143711,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780512743711,"plans":[{"planId":"pro_plan"}]}] });
14919
14963
  * ```
14920
14964
  *
14921
14965
  * @param customerId - The ID of the customer to create the schedule for.
@@ -15018,6 +15062,7 @@ var Billing = class extends ClientSDK {
15018
15062
  * @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)
15019
15063
  * @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
15020
15064
  * @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)
15065
+ * @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
15021
15066
  *
15022
15067
  * @returns A preview response with line items, totals, and effective dates for the proposed changes.
15023
15068
  */
@@ -15167,7 +15212,7 @@ var Billing = class extends ClientSDK {
15167
15212
  };
15168
15213
 
15169
15214
  // ../sdk/src/funcs/customers-delete.ts
15170
- var z68 = __toESM(require("zod/v4-mini"), 1);
15215
+ var z69 = __toESM(require("zod/v4-mini"), 1);
15171
15216
  function customersDelete(client, request, options) {
15172
15217
  return new APIPromise($do16(
15173
15218
  client,
@@ -15178,7 +15223,7 @@ function customersDelete(client, request, options) {
15178
15223
  async function $do16(client, request, options) {
15179
15224
  const parsed = safeParse(
15180
15225
  request,
15181
- (value) => z68.parse(DeleteCustomerParams$outboundSchema, value),
15226
+ (value) => z69.parse(DeleteCustomerParams$outboundSchema, value),
15182
15227
  "Input validation failed"
15183
15228
  );
15184
15229
  if (!parsed.ok) {
@@ -15245,7 +15290,7 @@ async function $do16(client, request, options) {
15245
15290
  }
15246
15291
 
15247
15292
  // ../sdk/src/funcs/customers-get-or-create.ts
15248
- var z69 = __toESM(require("zod/v4-mini"), 1);
15293
+ var z70 = __toESM(require("zod/v4-mini"), 1);
15249
15294
  function customersGetOrCreate(client, request, options) {
15250
15295
  return new APIPromise($do17(
15251
15296
  client,
@@ -15256,7 +15301,7 @@ function customersGetOrCreate(client, request, options) {
15256
15301
  async function $do17(client, request, options) {
15257
15302
  const parsed = safeParse(
15258
15303
  request,
15259
- (value) => z69.parse(GetOrCreateCustomerParams$outboundSchema, value),
15304
+ (value) => z70.parse(GetOrCreateCustomerParams$outboundSchema, value),
15260
15305
  "Input validation failed"
15261
15306
  );
15262
15307
  if (!parsed.ok) {
@@ -15323,7 +15368,7 @@ async function $do17(client, request, options) {
15323
15368
  }
15324
15369
 
15325
15370
  // ../sdk/src/funcs/customers-get.ts
15326
- var z70 = __toESM(require("zod/v4-mini"), 1);
15371
+ var z71 = __toESM(require("zod/v4-mini"), 1);
15327
15372
  function customersGet(client, request, options) {
15328
15373
  return new APIPromise($do18(
15329
15374
  client,
@@ -15334,7 +15379,7 @@ function customersGet(client, request, options) {
15334
15379
  async function $do18(client, request, options) {
15335
15380
  const parsed = safeParse(
15336
15381
  request,
15337
- (value) => z70.parse(GetCustomerParams$outboundSchema, value),
15382
+ (value) => z71.parse(GetCustomerParams$outboundSchema, value),
15338
15383
  "Input validation failed"
15339
15384
  );
15340
15385
  if (!parsed.ok) {
@@ -15401,7 +15446,7 @@ async function $do18(client, request, options) {
15401
15446
  }
15402
15447
 
15403
15448
  // ../sdk/src/funcs/customers-list.ts
15404
- var z71 = __toESM(require("zod/v4-mini"), 1);
15449
+ var z72 = __toESM(require("zod/v4-mini"), 1);
15405
15450
  function customersList(client, request, options) {
15406
15451
  return new APIPromise($do19(
15407
15452
  client,
@@ -15412,7 +15457,7 @@ function customersList(client, request, options) {
15412
15457
  async function $do19(client, request, options) {
15413
15458
  const parsed = safeParse(
15414
15459
  request,
15415
- (value) => z71.parse(ListCustomersParams$outboundSchema, value),
15460
+ (value) => z72.parse(ListCustomersParams$outboundSchema, value),
15416
15461
  "Input validation failed"
15417
15462
  );
15418
15463
  if (!parsed.ok) {
@@ -15479,7 +15524,7 @@ async function $do19(client, request, options) {
15479
15524
  }
15480
15525
 
15481
15526
  // ../sdk/src/funcs/customers-update.ts
15482
- var z72 = __toESM(require("zod/v4-mini"), 1);
15527
+ var z73 = __toESM(require("zod/v4-mini"), 1);
15483
15528
  function customersUpdate(client, request, options) {
15484
15529
  return new APIPromise($do20(
15485
15530
  client,
@@ -15490,7 +15535,7 @@ function customersUpdate(client, request, options) {
15490
15535
  async function $do20(client, request, options) {
15491
15536
  const parsed = safeParse(
15492
15537
  request,
15493
- (value) => z72.parse(UpdateCustomerParams$outboundSchema, value),
15538
+ (value) => z73.parse(UpdateCustomerParams$outboundSchema, value),
15494
15539
  "Input validation failed"
15495
15540
  );
15496
15541
  if (!parsed.ok) {
@@ -15649,7 +15694,7 @@ var Customers = class extends ClientSDK {
15649
15694
  };
15650
15695
 
15651
15696
  // ../sdk/src/funcs/entities-create.ts
15652
- var z73 = __toESM(require("zod/v4-mini"), 1);
15697
+ var z74 = __toESM(require("zod/v4-mini"), 1);
15653
15698
  function entitiesCreate(client, request, options) {
15654
15699
  return new APIPromise($do21(
15655
15700
  client,
@@ -15660,7 +15705,7 @@ function entitiesCreate(client, request, options) {
15660
15705
  async function $do21(client, request, options) {
15661
15706
  const parsed = safeParse(
15662
15707
  request,
15663
- (value) => z73.parse(CreateEntityParams$outboundSchema, value),
15708
+ (value) => z74.parse(CreateEntityParams$outboundSchema, value),
15664
15709
  "Input validation failed"
15665
15710
  );
15666
15711
  if (!parsed.ok) {
@@ -15727,7 +15772,7 @@ async function $do21(client, request, options) {
15727
15772
  }
15728
15773
 
15729
15774
  // ../sdk/src/funcs/entities-delete.ts
15730
- var z74 = __toESM(require("zod/v4-mini"), 1);
15775
+ var z75 = __toESM(require("zod/v4-mini"), 1);
15731
15776
  function entitiesDelete(client, request, options) {
15732
15777
  return new APIPromise($do22(
15733
15778
  client,
@@ -15738,7 +15783,7 @@ function entitiesDelete(client, request, options) {
15738
15783
  async function $do22(client, request, options) {
15739
15784
  const parsed = safeParse(
15740
15785
  request,
15741
- (value) => z74.parse(DeleteEntityParams$outboundSchema, value),
15786
+ (value) => z75.parse(DeleteEntityParams$outboundSchema, value),
15742
15787
  "Input validation failed"
15743
15788
  );
15744
15789
  if (!parsed.ok) {
@@ -15805,7 +15850,7 @@ async function $do22(client, request, options) {
15805
15850
  }
15806
15851
 
15807
15852
  // ../sdk/src/funcs/entities-get.ts
15808
- var z75 = __toESM(require("zod/v4-mini"), 1);
15853
+ var z76 = __toESM(require("zod/v4-mini"), 1);
15809
15854
  function entitiesGet(client, request, options) {
15810
15855
  return new APIPromise($do23(
15811
15856
  client,
@@ -15816,7 +15861,7 @@ function entitiesGet(client, request, options) {
15816
15861
  async function $do23(client, request, options) {
15817
15862
  const parsed = safeParse(
15818
15863
  request,
15819
- (value) => z75.parse(GetEntityParams$outboundSchema, value),
15864
+ (value) => z76.parse(GetEntityParams$outboundSchema, value),
15820
15865
  "Input validation failed"
15821
15866
  );
15822
15867
  if (!parsed.ok) {
@@ -15883,7 +15928,7 @@ async function $do23(client, request, options) {
15883
15928
  }
15884
15929
 
15885
15930
  // ../sdk/src/funcs/entities-list.ts
15886
- var z76 = __toESM(require("zod/v4-mini"), 1);
15931
+ var z77 = __toESM(require("zod/v4-mini"), 1);
15887
15932
  function entitiesList(client, request, options) {
15888
15933
  return new APIPromise($do24(
15889
15934
  client,
@@ -15894,7 +15939,7 @@ function entitiesList(client, request, options) {
15894
15939
  async function $do24(client, request, options) {
15895
15940
  const parsed = safeParse(
15896
15941
  request,
15897
- (value) => z76.parse(ListEntitiesParams$outboundSchema, value),
15942
+ (value) => z77.parse(ListEntitiesParams$outboundSchema, value),
15898
15943
  "Input validation failed"
15899
15944
  );
15900
15945
  if (!parsed.ok) {
@@ -15961,7 +16006,7 @@ async function $do24(client, request, options) {
15961
16006
  }
15962
16007
 
15963
16008
  // ../sdk/src/funcs/entities-update.ts
15964
- var z77 = __toESM(require("zod/v4-mini"), 1);
16009
+ var z78 = __toESM(require("zod/v4-mini"), 1);
15965
16010
  function entitiesUpdate(client, request, options) {
15966
16011
  return new APIPromise($do25(
15967
16012
  client,
@@ -15972,7 +16017,7 @@ function entitiesUpdate(client, request, options) {
15972
16017
  async function $do25(client, request, options) {
15973
16018
  const parsed = safeParse(
15974
16019
  request,
15975
- (value) => z77.parse(UpdateEntityParams$outboundSchema, value),
16020
+ (value) => z78.parse(UpdateEntityParams$outboundSchema, value),
15976
16021
  "Input validation failed"
15977
16022
  );
15978
16023
  if (!parsed.ok) {
@@ -16185,7 +16230,7 @@ var Entities = class extends ClientSDK {
16185
16230
  };
16186
16231
 
16187
16232
  // ../sdk/src/funcs/events-aggregate.ts
16188
- var z78 = __toESM(require("zod/v4-mini"), 1);
16233
+ var z79 = __toESM(require("zod/v4-mini"), 1);
16189
16234
  function eventsAggregate(client, request, options) {
16190
16235
  return new APIPromise($do26(
16191
16236
  client,
@@ -16196,7 +16241,7 @@ function eventsAggregate(client, request, options) {
16196
16241
  async function $do26(client, request, options) {
16197
16242
  const parsed = safeParse(
16198
16243
  request,
16199
- (value) => z78.parse(EventsAggregateParams$outboundSchema, value),
16244
+ (value) => z79.parse(EventsAggregateParams$outboundSchema, value),
16200
16245
  "Input validation failed"
16201
16246
  );
16202
16247
  if (!parsed.ok) {
@@ -16263,7 +16308,7 @@ async function $do26(client, request, options) {
16263
16308
  }
16264
16309
 
16265
16310
  // ../sdk/src/funcs/events-list.ts
16266
- var z79 = __toESM(require("zod/v4-mini"), 1);
16311
+ var z80 = __toESM(require("zod/v4-mini"), 1);
16267
16312
  function eventsList(client, request, options) {
16268
16313
  return new APIPromise($do27(
16269
16314
  client,
@@ -16274,7 +16319,7 @@ function eventsList(client, request, options) {
16274
16319
  async function $do27(client, request, options) {
16275
16320
  const parsed = safeParse(
16276
16321
  request,
16277
- (value) => z79.parse(EventsListParams$outboundSchema, value),
16322
+ (value) => z80.parse(EventsListParams$outboundSchema, value),
16278
16323
  "Input validation failed"
16279
16324
  );
16280
16325
  if (!parsed.ok) {
@@ -16365,7 +16410,7 @@ var Events = class extends ClientSDK {
16365
16410
  };
16366
16411
 
16367
16412
  // ../sdk/src/funcs/features-create.ts
16368
- var z80 = __toESM(require("zod/v4-mini"), 1);
16413
+ var z81 = __toESM(require("zod/v4-mini"), 1);
16369
16414
  function featuresCreate(client, request, options) {
16370
16415
  return new APIPromise($do28(
16371
16416
  client,
@@ -16376,7 +16421,7 @@ function featuresCreate(client, request, options) {
16376
16421
  async function $do28(client, request, options) {
16377
16422
  const parsed = safeParse(
16378
16423
  request,
16379
- (value) => z80.parse(CreateFeatureParams$outboundSchema, value),
16424
+ (value) => z81.parse(CreateFeatureParams$outboundSchema, value),
16380
16425
  "Input validation failed"
16381
16426
  );
16382
16427
  if (!parsed.ok) {
@@ -16443,7 +16488,7 @@ async function $do28(client, request, options) {
16443
16488
  }
16444
16489
 
16445
16490
  // ../sdk/src/funcs/features-delete.ts
16446
- var z81 = __toESM(require("zod/v4-mini"), 1);
16491
+ var z82 = __toESM(require("zod/v4-mini"), 1);
16447
16492
  function featuresDelete(client, request, options) {
16448
16493
  return new APIPromise($do29(
16449
16494
  client,
@@ -16454,7 +16499,7 @@ function featuresDelete(client, request, options) {
16454
16499
  async function $do29(client, request, options) {
16455
16500
  const parsed = safeParse(
16456
16501
  request,
16457
- (value) => z81.parse(DeleteFeatureParams$outboundSchema, value),
16502
+ (value) => z82.parse(DeleteFeatureParams$outboundSchema, value),
16458
16503
  "Input validation failed"
16459
16504
  );
16460
16505
  if (!parsed.ok) {
@@ -16521,7 +16566,7 @@ async function $do29(client, request, options) {
16521
16566
  }
16522
16567
 
16523
16568
  // ../sdk/src/funcs/features-get.ts
16524
- var z82 = __toESM(require("zod/v4-mini"), 1);
16569
+ var z83 = __toESM(require("zod/v4-mini"), 1);
16525
16570
  function featuresGet(client, request, options) {
16526
16571
  return new APIPromise($do30(
16527
16572
  client,
@@ -16532,7 +16577,7 @@ function featuresGet(client, request, options) {
16532
16577
  async function $do30(client, request, options) {
16533
16578
  const parsed = safeParse(
16534
16579
  request,
16535
- (value) => z82.parse(GetFeatureParams$outboundSchema, value),
16580
+ (value) => z83.parse(GetFeatureParams$outboundSchema, value),
16536
16581
  "Input validation failed"
16537
16582
  );
16538
16583
  if (!parsed.ok) {
@@ -16664,7 +16709,7 @@ async function $do31(client, _request, options) {
16664
16709
  }
16665
16710
 
16666
16711
  // ../sdk/src/funcs/features-update.ts
16667
- var z83 = __toESM(require("zod/v4-mini"), 1);
16712
+ var z84 = __toESM(require("zod/v4-mini"), 1);
16668
16713
  function featuresUpdate(client, request, options) {
16669
16714
  return new APIPromise($do32(
16670
16715
  client,
@@ -16675,7 +16720,7 @@ function featuresUpdate(client, request, options) {
16675
16720
  async function $do32(client, request, options) {
16676
16721
  const parsed = safeParse(
16677
16722
  request,
16678
- (value) => z83.parse(UpdateFeatureParams$outboundSchema, value),
16723
+ (value) => z84.parse(UpdateFeatureParams$outboundSchema, value),
16679
16724
  "Input validation failed"
16680
16725
  );
16681
16726
  if (!parsed.ok) {
@@ -16878,7 +16923,7 @@ var Features = class extends ClientSDK {
16878
16923
  };
16879
16924
 
16880
16925
  // ../sdk/src/funcs/plans-create.ts
16881
- var z84 = __toESM(require("zod/v4-mini"), 1);
16926
+ var z85 = __toESM(require("zod/v4-mini"), 1);
16882
16927
  function plansCreate(client, request, options) {
16883
16928
  return new APIPromise($do33(
16884
16929
  client,
@@ -16889,7 +16934,7 @@ function plansCreate(client, request, options) {
16889
16934
  async function $do33(client, request, options) {
16890
16935
  const parsed = safeParse(
16891
16936
  request,
16892
- (value) => z84.parse(CreatePlanParams$outboundSchema, value),
16937
+ (value) => z85.parse(CreatePlanParams$outboundSchema, value),
16893
16938
  "Input validation failed"
16894
16939
  );
16895
16940
  if (!parsed.ok) {
@@ -16956,7 +17001,7 @@ async function $do33(client, request, options) {
16956
17001
  }
16957
17002
 
16958
17003
  // ../sdk/src/funcs/plans-delete.ts
16959
- var z85 = __toESM(require("zod/v4-mini"), 1);
17004
+ var z86 = __toESM(require("zod/v4-mini"), 1);
16960
17005
  function plansDelete(client, request, options) {
16961
17006
  return new APIPromise($do34(
16962
17007
  client,
@@ -16967,7 +17012,7 @@ function plansDelete(client, request, options) {
16967
17012
  async function $do34(client, request, options) {
16968
17013
  const parsed = safeParse(
16969
17014
  request,
16970
- (value) => z85.parse(DeletePlanParams$outboundSchema, value),
17015
+ (value) => z86.parse(DeletePlanParams$outboundSchema, value),
16971
17016
  "Input validation failed"
16972
17017
  );
16973
17018
  if (!parsed.ok) {
@@ -17034,7 +17079,7 @@ async function $do34(client, request, options) {
17034
17079
  }
17035
17080
 
17036
17081
  // ../sdk/src/funcs/plans-get.ts
17037
- var z86 = __toESM(require("zod/v4-mini"), 1);
17082
+ var z87 = __toESM(require("zod/v4-mini"), 1);
17038
17083
  function plansGet(client, request, options) {
17039
17084
  return new APIPromise($do35(
17040
17085
  client,
@@ -17045,7 +17090,7 @@ function plansGet(client, request, options) {
17045
17090
  async function $do35(client, request, options) {
17046
17091
  const parsed = safeParse(
17047
17092
  request,
17048
- (value) => z86.parse(GetPlanParams$outboundSchema, value),
17093
+ (value) => z87.parse(GetPlanParams$outboundSchema, value),
17049
17094
  "Input validation failed"
17050
17095
  );
17051
17096
  if (!parsed.ok) {
@@ -17112,7 +17157,7 @@ async function $do35(client, request, options) {
17112
17157
  }
17113
17158
 
17114
17159
  // ../sdk/src/funcs/plans-list.ts
17115
- var z87 = __toESM(require("zod/v4-mini"), 1);
17160
+ var z88 = __toESM(require("zod/v4-mini"), 1);
17116
17161
  function plansList(client, request, options) {
17117
17162
  return new APIPromise($do36(
17118
17163
  client,
@@ -17123,7 +17168,7 @@ function plansList(client, request, options) {
17123
17168
  async function $do36(client, request, options) {
17124
17169
  const parsed = safeParse(
17125
17170
  request,
17126
- (value) => z87.parse(z87.optional(ListPlansParams$outboundSchema), value),
17171
+ (value) => z88.parse(z88.optional(ListPlansParams$outboundSchema), value),
17127
17172
  "Input validation failed"
17128
17173
  );
17129
17174
  if (!parsed.ok) {
@@ -17190,7 +17235,7 @@ async function $do36(client, request, options) {
17190
17235
  }
17191
17236
 
17192
17237
  // ../sdk/src/funcs/plans-update.ts
17193
- var z88 = __toESM(require("zod/v4-mini"), 1);
17238
+ var z89 = __toESM(require("zod/v4-mini"), 1);
17194
17239
  function plansUpdate(client, request, options) {
17195
17240
  return new APIPromise($do37(
17196
17241
  client,
@@ -17201,7 +17246,7 @@ function plansUpdate(client, request, options) {
17201
17246
  async function $do37(client, request, options) {
17202
17247
  const parsed = safeParse(
17203
17248
  request,
17204
- (value) => z88.parse(UpdatePlanParams$outboundSchema, value),
17249
+ (value) => z89.parse(UpdatePlanParams$outboundSchema, value),
17205
17250
  "Input validation failed"
17206
17251
  );
17207
17252
  if (!parsed.ok) {
@@ -17500,7 +17545,7 @@ var Plans = class extends ClientSDK {
17500
17545
  };
17501
17546
 
17502
17547
  // ../sdk/src/funcs/referrals-create-code.ts
17503
- var z89 = __toESM(require("zod/v4-mini"), 1);
17548
+ var z90 = __toESM(require("zod/v4-mini"), 1);
17504
17549
  function referralsCreateCode(client, request, options) {
17505
17550
  return new APIPromise($do38(
17506
17551
  client,
@@ -17511,7 +17556,7 @@ function referralsCreateCode(client, request, options) {
17511
17556
  async function $do38(client, request, options) {
17512
17557
  const parsed = safeParse(
17513
17558
  request,
17514
- (value) => z89.parse(CreateReferralCodeParams$outboundSchema, value),
17559
+ (value) => z90.parse(CreateReferralCodeParams$outboundSchema, value),
17515
17560
  "Input validation failed"
17516
17561
  );
17517
17562
  if (!parsed.ok) {
@@ -17578,7 +17623,7 @@ async function $do38(client, request, options) {
17578
17623
  }
17579
17624
 
17580
17625
  // ../sdk/src/funcs/referrals-redeem-code.ts
17581
- var z90 = __toESM(require("zod/v4-mini"), 1);
17626
+ var z91 = __toESM(require("zod/v4-mini"), 1);
17582
17627
  function referralsRedeemCode(client, request, options) {
17583
17628
  return new APIPromise($do39(
17584
17629
  client,
@@ -17589,7 +17634,7 @@ function referralsRedeemCode(client, request, options) {
17589
17634
  async function $do39(client, request, options) {
17590
17635
  const parsed = safeParse(
17591
17636
  request,
17592
- (value) => z90.parse(RedeemReferralCodeParams$outboundSchema, value),
17637
+ (value) => z91.parse(RedeemReferralCodeParams$outboundSchema, value),
17593
17638
  "Input validation failed"
17594
17639
  );
17595
17640
  if (!parsed.ok) {
@@ -17679,6 +17724,98 @@ var Referrals = class extends ClientSDK {
17679
17724
  }
17680
17725
  };
17681
17726
 
17727
+ // ../sdk/src/funcs/rewards-redeem-code.ts
17728
+ var z92 = __toESM(require("zod/v4-mini"), 1);
17729
+ function rewardsRedeemCode(client, request, options) {
17730
+ return new APIPromise($do40(
17731
+ client,
17732
+ request,
17733
+ options
17734
+ ));
17735
+ }
17736
+ async function $do40(client, request, options) {
17737
+ const parsed = safeParse(
17738
+ request,
17739
+ (value) => z92.parse(RedeemRewardCodeParams$outboundSchema, value),
17740
+ "Input validation failed"
17741
+ );
17742
+ if (!parsed.ok) {
17743
+ return [parsed, { status: "invalid" }];
17744
+ }
17745
+ const payload = parsed.value;
17746
+ const body = encodeJSON("body", payload, { explode: true });
17747
+ const path = pathToFunc("/v1/rewards.redeem")();
17748
+ const headers = new Headers(compactMap({
17749
+ "Content-Type": "application/json",
17750
+ Accept: "application/json",
17751
+ "x-api-version": encodeSimple(
17752
+ "x-api-version",
17753
+ client._options.xApiVersion,
17754
+ { explode: false, charEncoding: "none" }
17755
+ )
17756
+ }));
17757
+ const secConfig = await extractSecurity(client._options.secretKey);
17758
+ const securityInput = secConfig == null ? {} : { secretKey: secConfig };
17759
+ const requestSecurity = resolveGlobalSecurity(securityInput);
17760
+ const context = {
17761
+ options: client._options,
17762
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
17763
+ operationID: "redeemRewardCode",
17764
+ oAuth2Scopes: null,
17765
+ resolvedSecurity: requestSecurity,
17766
+ securitySource: client._options.secretKey,
17767
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
17768
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
17769
+ };
17770
+ const requestRes = client._createRequest(context, {
17771
+ security: requestSecurity,
17772
+ method: "POST",
17773
+ baseURL: options?.serverURL,
17774
+ path,
17775
+ headers,
17776
+ body,
17777
+ userAgent: client._options.userAgent,
17778
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
17779
+ }, options);
17780
+ if (!requestRes.ok) {
17781
+ return [requestRes, { status: "invalid" }];
17782
+ }
17783
+ const req = requestRes.value;
17784
+ const doResult = await client._do(req, {
17785
+ context,
17786
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
17787
+ retryConfig: context.retryConfig,
17788
+ retryCodes: context.retryCodes
17789
+ });
17790
+ if (!doResult.ok) {
17791
+ return [doResult, { status: "request-error", request: req }];
17792
+ }
17793
+ const response = doResult.value;
17794
+ const [result] = await match(
17795
+ json(200, RedeemRewardCodeResponse$inboundSchema),
17796
+ fail("4XX"),
17797
+ fail("5XX")
17798
+ )(response, req);
17799
+ if (!result.ok) {
17800
+ return [result, { status: "complete", request: req, response }];
17801
+ }
17802
+ return [result, { status: "complete", request: req, response }];
17803
+ }
17804
+
17805
+ // ../sdk/src/sdk/rewards.ts
17806
+ var Rewards = class extends ClientSDK {
17807
+ /**
17808
+ * Redeem a reward promo code for a customer.
17809
+ */
17810
+ async redeemCode(request, options) {
17811
+ return unwrapAsync(rewardsRedeemCode(
17812
+ this,
17813
+ request,
17814
+ options
17815
+ ));
17816
+ }
17817
+ };
17818
+
17682
17819
  // ../sdk/src/sdk/sdk.ts
17683
17820
  var Autumn = class extends ClientSDK {
17684
17821
  _customers;
@@ -17713,6 +17850,10 @@ var Autumn = class extends ClientSDK {
17713
17850
  get referrals() {
17714
17851
  return this._referrals ??= new Referrals(this._options);
17715
17852
  }
17853
+ _rewards;
17854
+ get rewards() {
17855
+ return this._rewards ??= new Rewards(this._options);
17856
+ }
17716
17857
  /**
17717
17858
  * Checks whether a customer currently has enough balance to use a feature.
17718
17859
  *
@@ -18074,7 +18215,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
18074
18215
  carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
18075
18216
  metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
18076
18217
  no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
18077
- enable_plan_immediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
18218
+ enable_plan_immediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
18219
+ tax_rate_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional()
18078
18220
  });
18079
18221
  var closedEnumSchema2 = import_v42.z.any();
18080
18222
  var openEnumSchema = import_v42.z.any();
@@ -18214,7 +18356,8 @@ var attachParamsSchema = import_v42.z.object({
18214
18356
  carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
18215
18357
  metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
18216
18358
  noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
18217
- enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
18359
+ enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
18360
+ taxRateId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional()
18218
18361
  });
18219
18362
  var attachCodeSchema = openEnumSchema;
18220
18363
  var attachRequiredActionSchema = import_v42.z.object({
@@ -19134,7 +19277,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
19134
19277
  carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
19135
19278
  metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
19136
19279
  no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
19137
- enable_plan_immediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
19280
+ enable_plan_immediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
19281
+ tax_rate_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional()
19138
19282
  });
19139
19283
  var closedEnumSchema5 = import_v49.z.any();
19140
19284
  var planSchema = import_v49.z.any();
@@ -19275,7 +19419,8 @@ var previewAttachParamsSchema = import_v49.z.object({
19275
19419
  carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
19276
19420
  metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
19277
19421
  noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
19278
- enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
19422
+ enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
19423
+ taxRateId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional()
19279
19424
  });
19280
19425
  var previewAttachIncomingSchema = import_v49.z.object({
19281
19426
  planId: import_v49.z.string(),
@@ -20330,7 +20475,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
20330
20475
  carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
20331
20476
  metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
20332
20477
  no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
20333
- enable_plan_immediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
20478
+ enable_plan_immediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
20479
+ tax_rate_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
20334
20480
  });
20335
20481
  var closedEnumSchema8 = import_v413.z.any();
20336
20482
  var setupPaymentPriceIntervalSchema = closedEnumSchema8;
@@ -20463,7 +20609,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
20463
20609
  carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
20464
20610
  metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
20465
20611
  noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
20466
- enablePlanImmediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
20612
+ enablePlanImmediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
20613
+ taxRateId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
20467
20614
  });
20468
20615
 
20469
20616
  // src/generated/updateSubscriptionSchemas.ts