autumn-js 1.2.2 → 1.2.4

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 (151) hide show
  1. package/dist/backend/adapters/express.d.mts +1 -1
  2. package/dist/backend/adapters/express.d.ts +1 -1
  3. package/dist/backend/adapters/express.js +361 -43
  4. package/dist/backend/adapters/express.mjs +5 -5
  5. package/dist/backend/adapters/fetch.d.mts +1 -1
  6. package/dist/backend/adapters/fetch.d.ts +1 -1
  7. package/dist/backend/adapters/fetch.js +361 -43
  8. package/dist/backend/adapters/fetch.mjs +5 -5
  9. package/dist/backend/adapters/hono.d.mts +1 -1
  10. package/dist/backend/adapters/hono.d.ts +1 -1
  11. package/dist/backend/adapters/hono.js +361 -43
  12. package/dist/backend/adapters/hono.mjs +5 -5
  13. package/dist/backend/adapters/index.d.mts +1 -1
  14. package/dist/backend/adapters/index.d.ts +1 -1
  15. package/dist/backend/adapters/index.js +361 -43
  16. package/dist/backend/adapters/index.mjs +8 -8
  17. package/dist/backend/adapters/next.d.mts +1 -1
  18. package/dist/backend/adapters/next.d.ts +1 -1
  19. package/dist/backend/adapters/next.js +361 -43
  20. package/dist/backend/adapters/next.mjs +5 -5
  21. package/dist/backend/{authTypes-BCoyMOAj.d.mts → authTypes-Bdpu8A6G.d.mts} +18 -0
  22. package/dist/backend/{authTypes-BCoyMOAj.d.ts → authTypes-Bdpu8A6G.d.ts} +18 -0
  23. package/dist/backend/{chunk-XU4OGYDV.mjs → chunk-3RN6TO3T.mjs} +60 -7
  24. package/dist/backend/{chunk-3QNAZFQH.mjs → chunk-AA2HLIP7.mjs} +2 -2
  25. package/dist/backend/{chunk-SX3CNUF5.mjs → chunk-AIKOHUUL.mjs} +1 -1
  26. package/dist/backend/{chunk-6BVI5XZX.mjs → chunk-BGGTI77T.mjs} +301 -36
  27. package/dist/backend/{chunk-OB47KG2H.mjs → chunk-MHFVVQCC.mjs} +1 -1
  28. package/dist/backend/{chunk-GLPHS5KF.mjs → chunk-OZRCCZTP.mjs} +2 -2
  29. package/dist/backend/{chunk-GENKYO6B.mjs → chunk-SCDE7Y52.mjs} +1 -1
  30. package/dist/backend/{chunk-C5ZDQJPP.mjs → chunk-UUMOHEAD.mjs} +1 -1
  31. package/dist/backend/core/handlers/coreHandler.d.mts +2 -2
  32. package/dist/backend/core/handlers/coreHandler.d.ts +2 -2
  33. package/dist/backend/core/handlers/coreHandler.js +361 -43
  34. package/dist/backend/core/handlers/coreHandler.mjs +3 -3
  35. package/dist/backend/core/handlers/executeRoute.d.mts +2 -2
  36. package/dist/backend/core/handlers/executeRoute.d.ts +2 -2
  37. package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
  38. package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
  39. package/dist/backend/core/handlers/handleRouteByName.js +361 -43
  40. package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
  41. package/dist/backend/core/handlers/index.d.mts +2 -2
  42. package/dist/backend/core/handlers/index.d.ts +2 -2
  43. package/dist/backend/core/handlers/index.js +361 -43
  44. package/dist/backend/core/handlers/index.mjs +4 -4
  45. package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
  46. package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
  47. package/dist/backend/core/index.d.mts +2 -2
  48. package/dist/backend/core/index.d.ts +2 -2
  49. package/dist/backend/core/index.js +361 -43
  50. package/dist/backend/core/index.mjs +4 -4
  51. package/dist/backend/core/routes/index.d.mts +2 -2
  52. package/dist/backend/core/routes/index.d.ts +2 -2
  53. package/dist/backend/core/routes/index.js +60 -7
  54. package/dist/backend/core/routes/index.mjs +1 -1
  55. package/dist/backend/core/routes/routeBuilder.d.mts +2 -2
  56. package/dist/backend/core/routes/routeBuilder.d.ts +2 -2
  57. package/dist/backend/core/routes/routeConfigs.d.mts +2 -2
  58. package/dist/backend/core/routes/routeConfigs.d.ts +2 -2
  59. package/dist/backend/core/routes/routeConfigs.js +60 -7
  60. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  61. package/dist/backend/core/types/authTypes.d.mts +1 -1
  62. package/dist/backend/core/types/authTypes.d.ts +1 -1
  63. package/dist/backend/core/types/handlerTypes.d.mts +2 -2
  64. package/dist/backend/core/types/handlerTypes.d.ts +2 -2
  65. package/dist/backend/core/types/index.d.mts +2 -2
  66. package/dist/backend/core/types/index.d.ts +2 -2
  67. package/dist/backend/core/types/routeTypes.d.mts +2 -2
  68. package/dist/backend/core/types/routeTypes.d.ts +2 -2
  69. package/dist/backend/index.d.mts +4 -4
  70. package/dist/backend/index.d.ts +4 -4
  71. package/dist/backend/index.js +361 -43
  72. package/dist/backend/index.mjs +4 -4
  73. package/dist/backend/{routeTypes-Che2nkqv.d.ts → routeTypes-DpH9YHyt.d.ts} +247 -2
  74. package/dist/backend/{routeTypes-RMeyKg5T.d.mts → routeTypes-mIP4rSxp.d.mts} +247 -2
  75. package/dist/better-auth/{chunk-5F3J4ZQQ.mjs → chunk-3C2VGNW3.mjs} +302 -37
  76. package/dist/better-auth/{chunk-6TAYCQUD.mjs → chunk-CG3LL2TQ.mjs} +60 -7
  77. package/dist/better-auth/{chunk-IODRHT4E.mjs → chunk-UCMJFTKD.mjs} +1 -1
  78. package/dist/better-auth/index.js +361 -43
  79. package/dist/better-auth/index.mjs +3 -3
  80. package/dist/better-auth/types.d.mts +18 -0
  81. package/dist/better-auth/types.d.ts +18 -0
  82. package/dist/better-auth/utils/createAutumnEndpoint.js +60 -7
  83. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  84. package/dist/better-auth/utils/handleBetterAuthRoute.js +361 -43
  85. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  86. package/dist/better-auth/utils/index.js +361 -43
  87. package/dist/better-auth/utils/index.mjs +3 -3
  88. package/dist/react/AutumnContext.d.mts +3 -3
  89. package/dist/react/AutumnContext.d.ts +3 -3
  90. package/dist/react/AutumnProvider.d.mts +2 -1
  91. package/dist/react/AutumnProvider.d.ts +2 -1
  92. package/dist/react/AutumnProvider.js +18 -8
  93. package/dist/react/AutumnProvider.mjs +3 -3
  94. package/dist/react/{chunk-R7I3UPL4.mjs → chunk-26CKSAPZ.mjs} +6 -4
  95. package/dist/react/{chunk-QEJLIFBC.mjs → chunk-QOFGTXEX.mjs} +3 -2
  96. package/dist/react/{chunk-M34U5F2H.mjs → chunk-SCDO26YC.mjs} +11 -4
  97. package/dist/react/client/AutumnClient.d.mts +4 -3
  98. package/dist/react/client/AutumnClient.d.ts +4 -3
  99. package/dist/react/client/AutumnClient.js +13 -5
  100. package/dist/react/client/AutumnClient.mjs +2 -2
  101. package/dist/react/client/IAutumnClient.d.mts +7 -3
  102. package/dist/react/client/IAutumnClient.d.ts +7 -3
  103. package/dist/react/client/index.d.mts +3 -3
  104. package/dist/react/client/index.d.ts +3 -3
  105. package/dist/react/client/index.js +13 -5
  106. package/dist/react/client/index.mjs +2 -2
  107. package/dist/react/client/internal/httpClient.d.mts +1 -0
  108. package/dist/react/client/internal/httpClient.d.ts +1 -0
  109. package/dist/react/client/internal/httpClient.js +11 -4
  110. package/dist/react/client/internal/httpClient.mjs +1 -1
  111. package/dist/react/{customer-CMAtwbJl.d.ts → customer-BPHnUS4N.d.ts} +19 -1
  112. package/dist/react/{customer-CNvpHhpS.d.mts → customer-DDRi84Zq.d.mts} +19 -1
  113. package/dist/react/hooks/index.d.mts +3 -3
  114. package/dist/react/hooks/index.d.ts +3 -3
  115. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  116. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  117. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  118. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  119. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  120. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  121. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  122. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  123. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  124. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  125. package/dist/react/hooks/internal/useCustomerActions.d.mts +3 -3
  126. package/dist/react/hooks/internal/useCustomerActions.d.ts +3 -3
  127. package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
  128. package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
  129. package/dist/react/hooks/useCustomer.d.mts +3 -3
  130. package/dist/react/hooks/useCustomer.d.ts +3 -3
  131. package/dist/react/hooks/useEntity.d.mts +2 -2
  132. package/dist/react/hooks/useEntity.d.ts +2 -2
  133. package/dist/react/hooks/useListEvents.d.mts +2 -2
  134. package/dist/react/hooks/useListEvents.d.ts +2 -2
  135. package/dist/react/hooks/useListPlans.d.mts +2 -2
  136. package/dist/react/hooks/useListPlans.d.ts +2 -2
  137. package/dist/react/hooks/useReferrals.d.mts +2 -2
  138. package/dist/react/hooks/useReferrals.d.ts +2 -2
  139. package/dist/react/index.d.mts +3 -3
  140. package/dist/react/index.d.ts +3 -3
  141. package/dist/react/index.js +18 -8
  142. package/dist/react/index.mjs +3 -3
  143. package/dist/react/{params-Cdkj83CV.d.mts → params-Bj6uyOX1.d.mts} +91 -2
  144. package/dist/react/{params-CnOvYjqJ.d.ts → params-DAVIR4YX.d.ts} +91 -2
  145. package/dist/react/{plan-BoMslu_O.d.mts → plan-CqxFGNk2.d.mts} +4 -0
  146. package/dist/react/{plan-BoMslu_O.d.ts → plan-CqxFGNk2.d.ts} +4 -0
  147. package/dist/sdk/index.d.mts +360 -4
  148. package/dist/sdk/index.d.ts +360 -4
  149. package/dist/sdk/index.js +406 -36
  150. package/dist/sdk/index.mjs +381 -37
  151. package/package.json +1 -1
@@ -79,8 +79,8 @@ var SDK_METADATA = {
79
79
  language: "typescript",
80
80
  openapiDocVersion: "2.2.0",
81
81
  sdkVersion: "0.10.17",
82
- genVersion: "2.869.25",
83
- userAgent: "speakeasy-sdk/typescript 0.10.17 2.869.25 2.2.0 @useautumn/sdk"
82
+ genVersion: "2.879.6",
83
+ userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk"
84
84
  };
85
85
 
86
86
  // ../sdk/src/lib/http.ts
@@ -1002,8 +1002,8 @@ function applyBearer(state, spec) {
1002
1002
  state.headers[spec.fieldName] = value;
1003
1003
  }
1004
1004
  }
1005
- function resolveGlobalSecurity(security) {
1006
- return resolveSecurity(
1005
+ function resolveGlobalSecurity(security, allowedFields) {
1006
+ let inputs = [
1007
1007
  [
1008
1008
  {
1009
1009
  fieldName: "Authorization",
@@ -1011,7 +1011,16 @@ function resolveGlobalSecurity(security) {
1011
1011
  value: security?.secretKey ?? env().AUTUMN_SECRET_KEY
1012
1012
  }
1013
1013
  ]
1014
- );
1014
+ ];
1015
+ if (allowedFields) {
1016
+ inputs = allowedFields.map((i) => {
1017
+ if (i < 0 || i >= inputs.length) {
1018
+ throw new RangeError(`invalid allowedFields index ${i}`);
1019
+ }
1020
+ return inputs[i];
1021
+ });
1022
+ }
1023
+ return resolveSecurity(...inputs);
1015
1024
  }
1016
1025
  async function extractSecurity(sec) {
1017
1026
  if (sec == null) {
@@ -1558,11 +1567,13 @@ var AttachExpiryDurationType$outboundSchema = z10.enum(AttachExpiryDurationType)
1558
1567
  var AttachRollover$outboundSchema = z10.pipe(
1559
1568
  z10.object({
1560
1569
  max: z10.optional(z10.number()),
1570
+ maxPercentage: z10.optional(z10.number()),
1561
1571
  expiryDurationType: AttachExpiryDurationType$outboundSchema,
1562
1572
  expiryDurationLength: z10.optional(z10.number())
1563
1573
  }),
1564
1574
  z10.transform((v) => {
1565
1575
  return remap(v, {
1576
+ maxPercentage: "max_percentage",
1566
1577
  expiryDurationType: "expiry_duration_type",
1567
1578
  expiryDurationLength: "expiry_duration_length"
1568
1579
  });
@@ -2087,11 +2098,13 @@ var BillingUpdateExpiryDurationType$outboundSchema = z12.enum(BillingUpdateExpir
2087
2098
  var BillingUpdateRollover$outboundSchema = z12.pipe(
2088
2099
  z12.object({
2089
2100
  max: z12.optional(z12.number()),
2101
+ maxPercentage: z12.optional(z12.number()),
2090
2102
  expiryDurationType: BillingUpdateExpiryDurationType$outboundSchema,
2091
2103
  expiryDurationLength: z12.optional(z12.number())
2092
2104
  }),
2093
2105
  z12.transform((v) => {
2094
2106
  return remap(v, {
2107
+ maxPercentage: "max_percentage",
2095
2108
  expiryDurationType: "expiry_duration_type",
2096
2109
  expiryDurationLength: "expiry_duration_length"
2097
2110
  });
@@ -2433,11 +2446,19 @@ var ProductDisplay$inboundSchema = z13.pipe(
2433
2446
  })
2434
2447
  );
2435
2448
  var RolloverDuration$inboundSchema = inboundSchema(RolloverDuration);
2436
- var CheckRollover$inboundSchema = z13.object({
2437
- max: nullable(number2()),
2438
- duration: z13._default(RolloverDuration$inboundSchema, "month"),
2439
- length: number2()
2440
- });
2449
+ var CheckRollover$inboundSchema = z13.pipe(
2450
+ z13.object({
2451
+ max: z13.optional(z13.nullable(number2())),
2452
+ max_percentage: z13.optional(z13.nullable(number2())),
2453
+ duration: z13._default(RolloverDuration$inboundSchema, "month"),
2454
+ length: number2()
2455
+ }),
2456
+ z13.transform((v) => {
2457
+ return remap(v, {
2458
+ "max_percentage": "maxPercentage"
2459
+ });
2460
+ })
2461
+ );
2441
2462
  var CheckOnIncrease$inboundSchema = inboundSchema(CheckOnIncrease);
2442
2463
  var CheckOnDecrease$inboundSchema = inboundSchema(CheckOnDecrease);
2443
2464
  var Config$inboundSchema = z13.pipe(
@@ -2676,12 +2697,14 @@ var CustomerDataAutoTopup$outboundSchema = z15.pipe(
2676
2697
  quantity: z15.number(),
2677
2698
  purchaseLimit: z15.optional(
2678
2699
  z15.lazy(() => CustomerDataPurchaseLimit$outboundSchema)
2679
- )
2700
+ ),
2701
+ invoiceMode: z15.optional(z15.boolean())
2680
2702
  }),
2681
2703
  z15.transform((v) => {
2682
2704
  return remap(v, {
2683
2705
  featureId: "feature_id",
2684
- purchaseLimit: "purchase_limit"
2706
+ purchaseLimit: "purchase_limit",
2707
+ invoiceMode: "invoice_mode"
2685
2708
  });
2686
2709
  })
2687
2710
  );
@@ -2714,6 +2737,17 @@ var CustomerDataUsageAlert$outboundSchema = z15.pipe(
2714
2737
  });
2715
2738
  })
2716
2739
  );
2740
+ var CustomerDataOverageAllowed$outboundSchema = z15.pipe(
2741
+ z15.object({
2742
+ featureId: z15.string(),
2743
+ enabled: z15._default(z15.boolean(), false)
2744
+ }),
2745
+ z15.transform((v) => {
2746
+ return remap(v, {
2747
+ featureId: "feature_id"
2748
+ });
2749
+ })
2750
+ );
2717
2751
  var CustomerDataBillingControls$outboundSchema = z15.pipe(
2718
2752
  z15.object({
2719
2753
  autoTopups: z15.optional(
@@ -2724,13 +2758,17 @@ var CustomerDataBillingControls$outboundSchema = z15.pipe(
2724
2758
  ),
2725
2759
  usageAlerts: z15.optional(
2726
2760
  z15.array(z15.lazy(() => CustomerDataUsageAlert$outboundSchema))
2761
+ ),
2762
+ overageAllowed: z15.optional(
2763
+ z15.array(z15.lazy(() => CustomerDataOverageAllowed$outboundSchema))
2727
2764
  )
2728
2765
  }),
2729
2766
  z15.transform((v) => {
2730
2767
  return remap(v, {
2731
2768
  autoTopups: "auto_topups",
2732
2769
  spendLimits: "spend_limits",
2733
- usageAlerts: "usage_alerts"
2770
+ usageAlerts: "usage_alerts",
2771
+ overageAllowed: "overage_allowed"
2734
2772
  });
2735
2773
  })
2736
2774
  );
@@ -2941,11 +2979,13 @@ var ExpiryDurationType$inboundSchema = inboundSchema(ExpiryDurationType);
2941
2979
  var PlanRollover$inboundSchema = z16.pipe(
2942
2980
  z16.object({
2943
2981
  max: nullable(number2()),
2982
+ max_percentage: z16.optional(z16.nullable(number2())),
2944
2983
  expiry_duration_type: ExpiryDurationType$inboundSchema,
2945
2984
  expiry_duration_length: optional2(number2())
2946
2985
  }),
2947
2986
  z16.transform((v) => {
2948
2987
  return remap(v, {
2988
+ "max_percentage": "maxPercentage",
2949
2989
  "expiry_duration_type": "expiryDurationType",
2950
2990
  "expiry_duration_length": "expiryDurationLength"
2951
2991
  });
@@ -3084,6 +3124,17 @@ var CreateEntityUsageAlertRequestBody$outboundSchema = z17.pipe(
3084
3124
  });
3085
3125
  })
3086
3126
  );
3127
+ var CreateEntityOverageAllowedRequest$outboundSchema = z17.pipe(
3128
+ z17.object({
3129
+ featureId: z17.string(),
3130
+ enabled: z17._default(z17.boolean(), false)
3131
+ }),
3132
+ z17.transform((v) => {
3133
+ return remap(v, {
3134
+ featureId: "feature_id"
3135
+ });
3136
+ })
3137
+ );
3087
3138
  var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
3088
3139
  z17.object({
3089
3140
  spendLimits: z17.optional(
@@ -3091,12 +3142,16 @@ var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
3091
3142
  ),
3092
3143
  usageAlerts: z17.optional(
3093
3144
  z17.array(z17.lazy(() => CreateEntityUsageAlertRequestBody$outboundSchema))
3145
+ ),
3146
+ overageAllowed: z17.optional(
3147
+ z17.array(z17.lazy(() => CreateEntityOverageAllowedRequest$outboundSchema))
3094
3148
  )
3095
3149
  }),
3096
3150
  z17.transform((v) => {
3097
3151
  return remap(v, {
3098
3152
  spendLimits: "spend_limits",
3099
- usageAlerts: "usage_alerts"
3153
+ usageAlerts: "usage_alerts",
3154
+ overageAllowed: "overage_allowed"
3100
3155
  });
3101
3156
  })
3102
3157
  );
@@ -3253,6 +3308,17 @@ var CreateEntityUsageAlertResponse$inboundSchema = z17.pipe(
3253
3308
  });
3254
3309
  })
3255
3310
  );
3311
+ var CreateEntityOverageAllowedResponse$inboundSchema = z17.pipe(
3312
+ z17.object({
3313
+ feature_id: string4(),
3314
+ enabled: z17._default(boolean2(), false)
3315
+ }),
3316
+ z17.transform((v) => {
3317
+ return remap(v, {
3318
+ "feature_id": "featureId"
3319
+ });
3320
+ })
3321
+ );
3256
3322
  var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
3257
3323
  z17.object({
3258
3324
  spend_limits: optional2(
@@ -3260,12 +3326,16 @@ var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
3260
3326
  ),
3261
3327
  usage_alerts: optional2(
3262
3328
  z17.array(z17.lazy(() => CreateEntityUsageAlertResponse$inboundSchema))
3329
+ ),
3330
+ overage_allowed: optional2(
3331
+ z17.array(z17.lazy(() => CreateEntityOverageAllowedResponse$inboundSchema))
3263
3332
  )
3264
3333
  }),
3265
3334
  z17.transform((v) => {
3266
3335
  return remap(v, {
3267
3336
  "spend_limits": "spendLimits",
3268
- "usage_alerts": "usageAlerts"
3337
+ "usage_alerts": "usageAlerts",
3338
+ "overage_allowed": "overageAllowed"
3269
3339
  });
3270
3340
  })
3271
3341
  );
@@ -3615,11 +3685,13 @@ var CreatePlanExpiryDurationTypeRequest$outboundSchema = z19.enum(CreatePlanExpi
3615
3685
  var CreatePlanRolloverRequest$outboundSchema = z19.pipe(
3616
3686
  z19.object({
3617
3687
  max: z19.optional(z19.number()),
3688
+ maxPercentage: z19.optional(z19.number()),
3618
3689
  expiryDurationType: CreatePlanExpiryDurationTypeRequest$outboundSchema,
3619
3690
  expiryDurationLength: z19.optional(z19.number())
3620
3691
  }),
3621
3692
  z19.transform((v) => {
3622
3693
  return remap(v, {
3694
+ maxPercentage: "max_percentage",
3623
3695
  expiryDurationType: "expiry_duration_type",
3624
3696
  expiryDurationLength: "expiry_duration_length"
3625
3697
  });
@@ -3796,11 +3868,13 @@ var CreatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePla
3796
3868
  var CreatePlanRolloverResponse$inboundSchema = z19.pipe(
3797
3869
  z19.object({
3798
3870
  max: nullable(number2()),
3871
+ max_percentage: z19.optional(z19.nullable(number2())),
3799
3872
  expiry_duration_type: CreatePlanExpiryDurationTypeResponse$inboundSchema,
3800
3873
  expiry_duration_length: optional2(number2())
3801
3874
  }),
3802
3875
  z19.transform((v) => {
3803
3876
  return remap(v, {
3877
+ "max_percentage": "maxPercentage",
3804
3878
  "expiry_duration_type": "expiryDurationType",
3805
3879
  "expiry_duration_length": "expiryDurationLength"
3806
3880
  });
@@ -3984,12 +4058,14 @@ var CustomerAutoTopup$inboundSchema = z21.pipe(
3984
4058
  quantity: number2(),
3985
4059
  purchase_limit: optional2(
3986
4060
  z21.lazy(() => CustomerPurchaseLimit$inboundSchema)
3987
- )
4061
+ ),
4062
+ invoice_mode: optional2(boolean2())
3988
4063
  }),
3989
4064
  z21.transform((v) => {
3990
4065
  return remap(v, {
3991
4066
  "feature_id": "featureId",
3992
- "purchase_limit": "purchaseLimit"
4067
+ "purchase_limit": "purchaseLimit",
4068
+ "invoice_mode": "invoiceMode"
3993
4069
  });
3994
4070
  })
3995
4071
  );
@@ -4022,6 +4098,17 @@ var CustomerUsageAlert$inboundSchema = z21.pipe(
4022
4098
  });
4023
4099
  })
4024
4100
  );
4101
+ var CustomerOverageAllowed$inboundSchema = z21.pipe(
4102
+ z21.object({
4103
+ feature_id: string4(),
4104
+ enabled: z21._default(boolean2(), false)
4105
+ }),
4106
+ z21.transform((v) => {
4107
+ return remap(v, {
4108
+ "feature_id": "featureId"
4109
+ });
4110
+ })
4111
+ );
4025
4112
  var CustomerBillingControls$inboundSchema = z21.pipe(
4026
4113
  z21.object({
4027
4114
  auto_topups: optional2(
@@ -4032,13 +4119,17 @@ var CustomerBillingControls$inboundSchema = z21.pipe(
4032
4119
  ),
4033
4120
  usage_alerts: optional2(
4034
4121
  z21.array(z21.lazy(() => CustomerUsageAlert$inboundSchema))
4122
+ ),
4123
+ overage_allowed: optional2(
4124
+ z21.array(z21.lazy(() => CustomerOverageAllowed$inboundSchema))
4035
4125
  )
4036
4126
  }),
4037
4127
  z21.transform((v) => {
4038
4128
  return remap(v, {
4039
4129
  "auto_topups": "autoTopups",
4040
4130
  "spend_limits": "spendLimits",
4041
- "usage_alerts": "usageAlerts"
4131
+ "usage_alerts": "usageAlerts",
4132
+ "overage_allowed": "overageAllowed"
4042
4133
  });
4043
4134
  })
4044
4135
  );
@@ -4577,6 +4668,17 @@ var GetEntityUsageAlert$inboundSchema = z28.pipe(
4577
4668
  });
4578
4669
  })
4579
4670
  );
4671
+ var GetEntityOverageAllowed$inboundSchema = z28.pipe(
4672
+ z28.object({
4673
+ feature_id: string4(),
4674
+ enabled: z28._default(boolean2(), false)
4675
+ }),
4676
+ z28.transform((v) => {
4677
+ return remap(v, {
4678
+ "feature_id": "featureId"
4679
+ });
4680
+ })
4681
+ );
4580
4682
  var GetEntityBillingControls$inboundSchema = z28.pipe(
4581
4683
  z28.object({
4582
4684
  spend_limits: optional2(
@@ -4584,12 +4686,16 @@ var GetEntityBillingControls$inboundSchema = z28.pipe(
4584
4686
  ),
4585
4687
  usage_alerts: optional2(
4586
4688
  z28.array(z28.lazy(() => GetEntityUsageAlert$inboundSchema))
4689
+ ),
4690
+ overage_allowed: optional2(
4691
+ z28.array(z28.lazy(() => GetEntityOverageAllowed$inboundSchema))
4587
4692
  )
4588
4693
  }),
4589
4694
  z28.transform((v) => {
4590
4695
  return remap(v, {
4591
4696
  "spend_limits": "spendLimits",
4592
- "usage_alerts": "usageAlerts"
4697
+ "usage_alerts": "usageAlerts",
4698
+ "overage_allowed": "overageAllowed"
4593
4699
  });
4594
4700
  })
4595
4701
  );
@@ -4729,12 +4835,14 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z30.pipe(
4729
4835
  quantity: z30.number(),
4730
4836
  purchaseLimit: z30.optional(
4731
4837
  z30.lazy(() => GetOrCreateCustomerPurchaseLimit$outboundSchema)
4732
- )
4838
+ ),
4839
+ invoiceMode: z30.optional(z30.boolean())
4733
4840
  }),
4734
4841
  z30.transform((v) => {
4735
4842
  return remap(v, {
4736
4843
  featureId: "feature_id",
4737
- purchaseLimit: "purchase_limit"
4844
+ purchaseLimit: "purchase_limit",
4845
+ invoiceMode: "invoice_mode"
4738
4846
  });
4739
4847
  })
4740
4848
  );
@@ -4767,6 +4875,17 @@ var GetOrCreateCustomerUsageAlert$outboundSchema = z30.pipe(
4767
4875
  });
4768
4876
  })
4769
4877
  );
4878
+ var GetOrCreateCustomerOverageAllowed$outboundSchema = z30.pipe(
4879
+ z30.object({
4880
+ featureId: z30.string(),
4881
+ enabled: z30._default(z30.boolean(), false)
4882
+ }),
4883
+ z30.transform((v) => {
4884
+ return remap(v, {
4885
+ featureId: "feature_id"
4886
+ });
4887
+ })
4888
+ );
4770
4889
  var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
4771
4890
  z30.object({
4772
4891
  autoTopups: z30.optional(
@@ -4777,13 +4896,17 @@ var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
4777
4896
  ),
4778
4897
  usageAlerts: z30.optional(
4779
4898
  z30.array(z30.lazy(() => GetOrCreateCustomerUsageAlert$outboundSchema))
4899
+ ),
4900
+ overageAllowed: z30.optional(
4901
+ z30.array(z30.lazy(() => GetOrCreateCustomerOverageAllowed$outboundSchema))
4780
4902
  )
4781
4903
  }),
4782
4904
  z30.transform((v) => {
4783
4905
  return remap(v, {
4784
4906
  autoTopups: "auto_topups",
4785
4907
  spendLimits: "spend_limits",
4786
- usageAlerts: "usage_alerts"
4908
+ usageAlerts: "usage_alerts",
4909
+ overageAllowed: "overage_allowed"
4787
4910
  });
4788
4911
  })
4789
4912
  );
@@ -5008,11 +5131,13 @@ var GetPlanExpiryDurationType$inboundSchema = inboundSchema(GetPlanExpiryDuratio
5008
5131
  var GetPlanRollover$inboundSchema = z31.pipe(
5009
5132
  z31.object({
5010
5133
  max: nullable(number2()),
5134
+ max_percentage: z31.optional(z31.nullable(number2())),
5011
5135
  expiry_duration_type: GetPlanExpiryDurationType$inboundSchema,
5012
5136
  expiry_duration_length: optional2(number2())
5013
5137
  }),
5014
5138
  z31.transform((v) => {
5015
5139
  return remap(v, {
5140
+ "max_percentage": "maxPercentage",
5016
5141
  "expiry_duration_type": "expiryDurationType",
5017
5142
  "expiry_duration_length": "expiryDurationLength"
5018
5143
  });
@@ -5202,12 +5327,14 @@ var ListCustomersAutoTopup$inboundSchema = z32.pipe(
5202
5327
  quantity: number2(),
5203
5328
  purchase_limit: optional2(
5204
5329
  z32.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
5205
- )
5330
+ ),
5331
+ invoice_mode: optional2(boolean2())
5206
5332
  }),
5207
5333
  z32.transform((v) => {
5208
5334
  return remap(v, {
5209
5335
  "feature_id": "featureId",
5210
- "purchase_limit": "purchaseLimit"
5336
+ "purchase_limit": "purchaseLimit",
5337
+ "invoice_mode": "invoiceMode"
5211
5338
  });
5212
5339
  })
5213
5340
  );
@@ -5240,6 +5367,17 @@ var ListCustomersUsageAlert$inboundSchema = z32.pipe(
5240
5367
  });
5241
5368
  })
5242
5369
  );
5370
+ var ListCustomersOverageAllowed$inboundSchema = z32.pipe(
5371
+ z32.object({
5372
+ feature_id: string4(),
5373
+ enabled: z32._default(boolean2(), false)
5374
+ }),
5375
+ z32.transform((v) => {
5376
+ return remap(v, {
5377
+ "feature_id": "featureId"
5378
+ });
5379
+ })
5380
+ );
5243
5381
  var ListCustomersBillingControls$inboundSchema = z32.pipe(
5244
5382
  z32.object({
5245
5383
  auto_topups: optional2(
@@ -5250,13 +5388,17 @@ var ListCustomersBillingControls$inboundSchema = z32.pipe(
5250
5388
  ),
5251
5389
  usage_alerts: optional2(
5252
5390
  z32.array(z32.lazy(() => ListCustomersUsageAlert$inboundSchema))
5391
+ ),
5392
+ overage_allowed: optional2(
5393
+ z32.array(z32.lazy(() => ListCustomersOverageAllowed$inboundSchema))
5253
5394
  )
5254
5395
  }),
5255
5396
  z32.transform((v) => {
5256
5397
  return remap(v, {
5257
5398
  "auto_topups": "autoTopups",
5258
5399
  "spend_limits": "spendLimits",
5259
- "usage_alerts": "usageAlerts"
5400
+ "usage_alerts": "usageAlerts",
5401
+ "overage_allowed": "overageAllowed"
5260
5402
  });
5261
5403
  })
5262
5404
  );
@@ -5711,11 +5853,13 @@ var ListPlansExpiryDurationType$inboundSchema = inboundSchema(ListPlansExpiryDur
5711
5853
  var ListPlansRollover$inboundSchema = z35.pipe(
5712
5854
  z35.object({
5713
5855
  max: nullable(number2()),
5856
+ max_percentage: z35.optional(z35.nullable(number2())),
5714
5857
  expiry_duration_type: ListPlansExpiryDurationType$inboundSchema,
5715
5858
  expiry_duration_length: optional2(number2())
5716
5859
  }),
5717
5860
  z35.transform((v) => {
5718
5861
  return remap(v, {
5862
+ "max_percentage": "maxPercentage",
5719
5863
  "expiry_duration_type": "expiryDurationType",
5720
5864
  "expiry_duration_length": "expiryDurationLength"
5721
5865
  });
@@ -5959,11 +6103,13 @@ var MultiAttachExpiryDurationType$outboundSchema = z36.enum(MultiAttachExpiryDur
5959
6103
  var MultiAttachRollover$outboundSchema = z36.pipe(
5960
6104
  z36.object({
5961
6105
  max: z36.optional(z36.number()),
6106
+ maxPercentage: z36.optional(z36.number()),
5962
6107
  expiryDurationType: MultiAttachExpiryDurationType$outboundSchema,
5963
6108
  expiryDurationLength: z36.optional(z36.number())
5964
6109
  }),
5965
6110
  z36.transform((v) => {
5966
6111
  return remap(v, {
6112
+ maxPercentage: "max_percentage",
5967
6113
  expiryDurationType: "expiry_duration_type",
5968
6114
  expiryDurationLength: "expiry_duration_length"
5969
6115
  });
@@ -6090,6 +6236,17 @@ var MultiAttachUsageAlert$outboundSchema = z36.pipe(
6090
6236
  });
6091
6237
  })
6092
6238
  );
6239
+ var MultiAttachOverageAllowed$outboundSchema = z36.pipe(
6240
+ z36.object({
6241
+ featureId: z36.string(),
6242
+ enabled: z36._default(z36.boolean(), false)
6243
+ }),
6244
+ z36.transform((v) => {
6245
+ return remap(v, {
6246
+ featureId: "feature_id"
6247
+ });
6248
+ })
6249
+ );
6093
6250
  var MultiAttachBillingControls$outboundSchema = z36.pipe(
6094
6251
  z36.object({
6095
6252
  spendLimits: z36.optional(
@@ -6097,12 +6254,16 @@ var MultiAttachBillingControls$outboundSchema = z36.pipe(
6097
6254
  ),
6098
6255
  usageAlerts: z36.optional(
6099
6256
  z36.array(z36.lazy(() => MultiAttachUsageAlert$outboundSchema))
6257
+ ),
6258
+ overageAllowed: z36.optional(
6259
+ z36.array(z36.lazy(() => MultiAttachOverageAllowed$outboundSchema))
6100
6260
  )
6101
6261
  }),
6102
6262
  z36.transform((v) => {
6103
6263
  return remap(v, {
6104
6264
  spendLimits: "spend_limits",
6105
- usageAlerts: "usage_alerts"
6265
+ usageAlerts: "usage_alerts",
6266
+ overageAllowed: "overage_allowed"
6106
6267
  });
6107
6268
  })
6108
6269
  );
@@ -6396,11 +6557,13 @@ var PreviewAttachExpiryDurationType$outboundSchema = z38.enum(PreviewAttachExpir
6396
6557
  var PreviewAttachRollover$outboundSchema = z38.pipe(
6397
6558
  z38.object({
6398
6559
  max: z38.optional(z38.number()),
6560
+ maxPercentage: z38.optional(z38.number()),
6399
6561
  expiryDurationType: PreviewAttachExpiryDurationType$outboundSchema,
6400
6562
  expiryDurationLength: z38.optional(z38.number())
6401
6563
  }),
6402
6564
  z38.transform((v) => {
6403
6565
  return remap(v, {
6566
+ maxPercentage: "max_percentage",
6404
6567
  expiryDurationType: "expiry_duration_type",
6405
6568
  expiryDurationLength: "expiry_duration_length"
6406
6569
  });
@@ -6944,11 +7107,13 @@ var PreviewMultiAttachExpiryDurationType$outboundSchema = z39.enum(PreviewMultiA
6944
7107
  var PreviewMultiAttachRollover$outboundSchema = z39.pipe(
6945
7108
  z39.object({
6946
7109
  max: z39.optional(z39.number()),
7110
+ maxPercentage: z39.optional(z39.number()),
6947
7111
  expiryDurationType: PreviewMultiAttachExpiryDurationType$outboundSchema,
6948
7112
  expiryDurationLength: z39.optional(z39.number())
6949
7113
  }),
6950
7114
  z39.transform((v) => {
6951
7115
  return remap(v, {
7116
+ maxPercentage: "max_percentage",
6952
7117
  expiryDurationType: "expiry_duration_type",
6953
7118
  expiryDurationLength: "expiry_duration_length"
6954
7119
  });
@@ -7088,6 +7253,17 @@ var PreviewMultiAttachUsageAlert$outboundSchema = z39.pipe(
7088
7253
  });
7089
7254
  })
7090
7255
  );
7256
+ var PreviewMultiAttachOverageAllowed$outboundSchema = z39.pipe(
7257
+ z39.object({
7258
+ featureId: z39.string(),
7259
+ enabled: z39._default(z39.boolean(), false)
7260
+ }),
7261
+ z39.transform((v) => {
7262
+ return remap(v, {
7263
+ featureId: "feature_id"
7264
+ });
7265
+ })
7266
+ );
7091
7267
  var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
7092
7268
  z39.object({
7093
7269
  spendLimits: z39.optional(
@@ -7095,12 +7271,16 @@ var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
7095
7271
  ),
7096
7272
  usageAlerts: z39.optional(
7097
7273
  z39.array(z39.lazy(() => PreviewMultiAttachUsageAlert$outboundSchema))
7274
+ ),
7275
+ overageAllowed: z39.optional(
7276
+ z39.array(z39.lazy(() => PreviewMultiAttachOverageAllowed$outboundSchema))
7098
7277
  )
7099
7278
  }),
7100
7279
  z39.transform((v) => {
7101
7280
  return remap(v, {
7102
7281
  spendLimits: "spend_limits",
7103
- usageAlerts: "usage_alerts"
7282
+ usageAlerts: "usage_alerts",
7283
+ overageAllowed: "overage_allowed"
7104
7284
  });
7105
7285
  })
7106
7286
  );
@@ -7556,11 +7736,13 @@ var PreviewUpdateExpiryDurationType$outboundSchema = z40.enum(PreviewUpdateExpir
7556
7736
  var PreviewUpdateRollover$outboundSchema = z40.pipe(
7557
7737
  z40.object({
7558
7738
  max: z40.optional(z40.number()),
7739
+ maxPercentage: z40.optional(z40.number()),
7559
7740
  expiryDurationType: PreviewUpdateExpiryDurationType$outboundSchema,
7560
7741
  expiryDurationLength: z40.optional(z40.number())
7561
7742
  }),
7562
7743
  z40.transform((v) => {
7563
7744
  return remap(v, {
7745
+ maxPercentage: "max_percentage",
7564
7746
  expiryDurationType: "expiry_duration_type",
7565
7747
  expiryDurationLength: "expiry_duration_length"
7566
7748
  });
@@ -8076,11 +8258,13 @@ var SetupPaymentExpiryDurationType$outboundSchema = z42.enum(SetupPaymentExpiryD
8076
8258
  var SetupPaymentRollover$outboundSchema = z42.pipe(
8077
8259
  z42.object({
8078
8260
  max: z42.optional(z42.number()),
8261
+ maxPercentage: z42.optional(z42.number()),
8079
8262
  expiryDurationType: SetupPaymentExpiryDurationType$outboundSchema,
8080
8263
  expiryDurationLength: z42.optional(z42.number())
8081
8264
  }),
8082
8265
  z42.transform((v) => {
8083
8266
  return remap(v, {
8267
+ maxPercentage: "max_percentage",
8084
8268
  expiryDurationType: "expiry_duration_type",
8085
8269
  expiryDurationLength: "expiry_duration_length"
8086
8270
  });
@@ -8385,12 +8569,14 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z45.pipe(
8385
8569
  quantity: z45.number(),
8386
8570
  purchaseLimit: z45.optional(
8387
8571
  z45.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
8388
- )
8572
+ ),
8573
+ invoiceMode: z45.optional(z45.boolean())
8389
8574
  }),
8390
8575
  z45.transform((v) => {
8391
8576
  return remap(v, {
8392
8577
  featureId: "feature_id",
8393
- purchaseLimit: "purchase_limit"
8578
+ purchaseLimit: "purchase_limit",
8579
+ invoiceMode: "invoice_mode"
8394
8580
  });
8395
8581
  })
8396
8582
  );
@@ -8425,6 +8611,17 @@ var UpdateCustomerUsageAlertRequestBody$outboundSchema = z45.pipe(
8425
8611
  });
8426
8612
  })
8427
8613
  );
8614
+ var UpdateCustomerOverageAllowedRequest$outboundSchema = z45.pipe(
8615
+ z45.object({
8616
+ featureId: z45.string(),
8617
+ enabled: z45._default(z45.boolean(), false)
8618
+ }),
8619
+ z45.transform((v) => {
8620
+ return remap(v, {
8621
+ featureId: "feature_id"
8622
+ });
8623
+ })
8624
+ );
8428
8625
  var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
8429
8626
  z45.object({
8430
8627
  autoTopups: z45.optional(
@@ -8435,13 +8632,17 @@ var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
8435
8632
  ),
8436
8633
  usageAlerts: z45.optional(
8437
8634
  z45.array(z45.lazy(() => UpdateCustomerUsageAlertRequestBody$outboundSchema))
8635
+ ),
8636
+ overageAllowed: z45.optional(
8637
+ z45.array(z45.lazy(() => UpdateCustomerOverageAllowedRequest$outboundSchema))
8438
8638
  )
8439
8639
  }),
8440
8640
  z45.transform((v) => {
8441
8641
  return remap(v, {
8442
8642
  autoTopups: "auto_topups",
8443
8643
  spendLimits: "spend_limits",
8444
- usageAlerts: "usage_alerts"
8644
+ usageAlerts: "usage_alerts",
8645
+ overageAllowed: "overage_allowed"
8445
8646
  });
8446
8647
  })
8447
8648
  );
@@ -8491,12 +8692,14 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
8491
8692
  quantity: number2(),
8492
8693
  purchase_limit: optional2(
8493
8694
  z45.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
8494
- )
8695
+ ),
8696
+ invoice_mode: optional2(boolean2())
8495
8697
  }),
8496
8698
  z45.transform((v) => {
8497
8699
  return remap(v, {
8498
8700
  "feature_id": "featureId",
8499
- "purchase_limit": "purchaseLimit"
8701
+ "purchase_limit": "purchaseLimit",
8702
+ "invoice_mode": "invoiceMode"
8500
8703
  });
8501
8704
  })
8502
8705
  );
@@ -8529,6 +8732,17 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z45.pipe(
8529
8732
  });
8530
8733
  })
8531
8734
  );
8735
+ var UpdateCustomerOverageAllowedResponse$inboundSchema = z45.pipe(
8736
+ z45.object({
8737
+ feature_id: string4(),
8738
+ enabled: z45._default(boolean2(), false)
8739
+ }),
8740
+ z45.transform((v) => {
8741
+ return remap(v, {
8742
+ "feature_id": "featureId"
8743
+ });
8744
+ })
8745
+ );
8532
8746
  var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
8533
8747
  z45.object({
8534
8748
  auto_topups: optional2(
@@ -8539,13 +8753,17 @@ var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
8539
8753
  ),
8540
8754
  usage_alerts: optional2(
8541
8755
  z45.array(z45.lazy(() => UpdateCustomerUsageAlertResponse$inboundSchema))
8756
+ ),
8757
+ overage_allowed: optional2(
8758
+ z45.array(z45.lazy(() => UpdateCustomerOverageAllowedResponse$inboundSchema))
8542
8759
  )
8543
8760
  }),
8544
8761
  z45.transform((v) => {
8545
8762
  return remap(v, {
8546
8763
  "auto_topups": "autoTopups",
8547
8764
  "spend_limits": "spendLimits",
8548
- "usage_alerts": "usageAlerts"
8765
+ "usage_alerts": "usageAlerts",
8766
+ "overage_allowed": "overageAllowed"
8549
8767
  });
8550
8768
  })
8551
8769
  );
@@ -8737,6 +8955,17 @@ var UpdateEntityUsageAlertRequestBody$outboundSchema = z46.pipe(
8737
8955
  });
8738
8956
  })
8739
8957
  );
8958
+ var UpdateEntityOverageAllowedRequest$outboundSchema = z46.pipe(
8959
+ z46.object({
8960
+ featureId: z46.string(),
8961
+ enabled: z46._default(z46.boolean(), false)
8962
+ }),
8963
+ z46.transform((v) => {
8964
+ return remap(v, {
8965
+ featureId: "feature_id"
8966
+ });
8967
+ })
8968
+ );
8740
8969
  var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
8741
8970
  z46.object({
8742
8971
  spendLimits: z46.optional(
@@ -8744,12 +8973,16 @@ var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
8744
8973
  ),
8745
8974
  usageAlerts: z46.optional(
8746
8975
  z46.array(z46.lazy(() => UpdateEntityUsageAlertRequestBody$outboundSchema))
8976
+ ),
8977
+ overageAllowed: z46.optional(
8978
+ z46.array(z46.lazy(() => UpdateEntityOverageAllowedRequest$outboundSchema))
8747
8979
  )
8748
8980
  }),
8749
8981
  z46.transform((v) => {
8750
8982
  return remap(v, {
8751
8983
  spendLimits: "spend_limits",
8752
- usageAlerts: "usage_alerts"
8984
+ usageAlerts: "usage_alerts",
8985
+ overageAllowed: "overage_allowed"
8753
8986
  });
8754
8987
  })
8755
8988
  );
@@ -8901,6 +9134,17 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z46.pipe(
8901
9134
  });
8902
9135
  })
8903
9136
  );
9137
+ var UpdateEntityOverageAllowedResponse$inboundSchema = z46.pipe(
9138
+ z46.object({
9139
+ feature_id: string4(),
9140
+ enabled: z46._default(boolean2(), false)
9141
+ }),
9142
+ z46.transform((v) => {
9143
+ return remap(v, {
9144
+ "feature_id": "featureId"
9145
+ });
9146
+ })
9147
+ );
8904
9148
  var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
8905
9149
  z46.object({
8906
9150
  spend_limits: optional2(
@@ -8908,12 +9152,16 @@ var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
8908
9152
  ),
8909
9153
  usage_alerts: optional2(
8910
9154
  z46.array(z46.lazy(() => UpdateEntityUsageAlertResponse$inboundSchema))
9155
+ ),
9156
+ overage_allowed: optional2(
9157
+ z46.array(z46.lazy(() => UpdateEntityOverageAllowedResponse$inboundSchema))
8911
9158
  )
8912
9159
  }),
8913
9160
  z46.transform((v) => {
8914
9161
  return remap(v, {
8915
9162
  "spend_limits": "spendLimits",
8916
- "usage_alerts": "usageAlerts"
9163
+ "usage_alerts": "usageAlerts",
9164
+ "overage_allowed": "overageAllowed"
8917
9165
  });
8918
9166
  })
8919
9167
  );
@@ -9266,11 +9514,13 @@ var UpdatePlanExpiryDurationTypeRequest$outboundSchema = z48.enum(UpdatePlanExpi
9266
9514
  var UpdatePlanRolloverRequest$outboundSchema = z48.pipe(
9267
9515
  z48.object({
9268
9516
  max: z48.optional(z48.number()),
9517
+ maxPercentage: z48.optional(z48.number()),
9269
9518
  expiryDurationType: UpdatePlanExpiryDurationTypeRequest$outboundSchema,
9270
9519
  expiryDurationLength: z48.optional(z48.number())
9271
9520
  }),
9272
9521
  z48.transform((v) => {
9273
9522
  return remap(v, {
9523
+ maxPercentage: "max_percentage",
9274
9524
  expiryDurationType: "expiry_duration_type",
9275
9525
  expiryDurationLength: "expiry_duration_length"
9276
9526
  });
@@ -9455,11 +9705,13 @@ var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePla
9455
9705
  var UpdatePlanRolloverResponse$inboundSchema = z48.pipe(
9456
9706
  z48.object({
9457
9707
  max: nullable(number2()),
9708
+ max_percentage: z48.optional(z48.nullable(number2())),
9458
9709
  expiry_duration_type: UpdatePlanExpiryDurationTypeResponse$inboundSchema,
9459
9710
  expiry_duration_length: optional2(number2())
9460
9711
  }),
9461
9712
  z48.transform((v) => {
9462
9713
  return remap(v, {
9714
+ "max_percentage": "maxPercentage",
9463
9715
  "expiry_duration_type": "expiryDurationType",
9464
9716
  "expiry_duration_length": "expiryDurationLength"
9465
9717
  });
@@ -9736,7 +9988,8 @@ async function $do2(client, request, options) {
9736
9988
  var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set([
9737
9989
  "check",
9738
9990
  "track",
9739
- "getOrCreateCustomer"
9991
+ "getOrCreateCustomer",
9992
+ "getEntity"
9740
9993
  ]);
9741
9994
  var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
9742
9995
  var FAIL_OPEN_BODIES = {
@@ -9766,6 +10019,18 @@ var FAIL_OPEN_BODIES = {
9766
10019
  purchases: [],
9767
10020
  balances: {},
9768
10021
  flags: {}
10022
+ },
10023
+ getEntity: {
10024
+ id: null,
10025
+ name: null,
10026
+ customer_id: null,
10027
+ feature_id: null,
10028
+ created_at: 0,
10029
+ env: "live",
10030
+ subscriptions: [],
10031
+ purchases: [],
10032
+ balances: {},
10033
+ flags: {}
9769
10034
  }
9770
10035
  };
9771
10036
  var FailOpenHook = class {
@@ -14124,6 +14389,7 @@ var attachProrationOutboundSchema = import_v42.z.object({
14124
14389
  });
14125
14390
  var attachRolloverOutboundSchema = import_v42.z.object({
14126
14391
  max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
14392
+ max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
14127
14393
  expiry_duration_type: import_v42.z.string(),
14128
14394
  expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
14129
14395
  });
@@ -14224,6 +14490,7 @@ var attachProrationSchema = import_v42.z.object({
14224
14490
  var attachExpiryDurationTypeSchema = closedEnumSchema2;
14225
14491
  var attachRolloverSchema = import_v42.z.object({
14226
14492
  max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
14493
+ maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
14227
14494
  expiryDurationType: attachExpiryDurationTypeSchema,
14228
14495
  expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
14229
14496
  });
@@ -14314,6 +14581,10 @@ var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
14314
14581
  enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
14315
14582
  overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
14316
14583
  });
14584
+ var getOrCreateCustomerOverageAllowedSchema = import_v44.z.object({
14585
+ featureId: import_v44.z.string(),
14586
+ enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
14587
+ });
14317
14588
  var getOrCreateCustomerPurchaseLimitOutboundSchema = import_v44.z.object({
14318
14589
  interval: import_v44.z.string(),
14319
14590
  interval_count: import_v44.z.number(),
@@ -14324,7 +14595,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = import_v44.z.object({
14324
14595
  enabled: import_v44.z.boolean(),
14325
14596
  threshold: import_v44.z.number(),
14326
14597
  quantity: import_v44.z.number(),
14327
- purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional()
14598
+ purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional(),
14599
+ invoice_mode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
14328
14600
  });
14329
14601
  var getOrCreateCustomerSpendLimitOutboundSchema = import_v44.z.object({
14330
14602
  feature_id: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
@@ -14338,6 +14610,10 @@ var getOrCreateCustomerUsageAlertOutboundSchema = import_v44.z.object({
14338
14610
  threshold_type: import_v44.z.string(),
14339
14611
  name: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
14340
14612
  });
14613
+ var getOrCreateCustomerOverageAllowedOutboundSchema = import_v44.z.object({
14614
+ feature_id: import_v44.z.string(),
14615
+ enabled: import_v44.z.boolean()
14616
+ });
14341
14617
  var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
14342
14618
  auto_topups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupOutboundSchema), import_v44.z.undefined()]).optional(),
14343
14619
  spend_limits: import_v44.z.union([
@@ -14347,6 +14623,10 @@ var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
14347
14623
  usage_alerts: import_v44.z.union([
14348
14624
  import_v44.z.array(getOrCreateCustomerUsageAlertOutboundSchema),
14349
14625
  import_v44.z.undefined()
14626
+ ]).optional(),
14627
+ overage_allowed: import_v44.z.union([
14628
+ import_v44.z.array(getOrCreateCustomerOverageAllowedOutboundSchema),
14629
+ import_v44.z.undefined()
14350
14630
  ]).optional()
14351
14631
  });
14352
14632
  var getOrCreateCustomerParamsOutboundSchema = import_v44.z.object({
@@ -14374,7 +14654,8 @@ var getOrCreateCustomerAutoTopupSchema = import_v44.z.object({
14374
14654
  enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
14375
14655
  threshold: import_v44.z.number(),
14376
14656
  quantity: import_v44.z.number(),
14377
- purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional()
14657
+ purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional(),
14658
+ invoiceMode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
14378
14659
  });
14379
14660
  var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
14380
14661
  var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
@@ -14387,7 +14668,8 @@ var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
14387
14668
  var getOrCreateCustomerBillingControlsSchema = import_v44.z.object({
14388
14669
  autoTopups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupSchema), import_v44.z.undefined()]).optional(),
14389
14670
  spendLimits: import_v44.z.union([import_v44.z.array(getOrCreateCustomerSpendLimitSchema), import_v44.z.undefined()]).optional(),
14390
- usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional()
14671
+ usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional(),
14672
+ overageAllowed: import_v44.z.union([import_v44.z.array(getOrCreateCustomerOverageAllowedSchema), import_v44.z.undefined()]).optional()
14391
14673
  });
14392
14674
  var getOrCreateCustomerParamsSchema = import_v44.z.object({
14393
14675
  customerId: import_v44.z.string().nullable(),
@@ -14526,6 +14808,7 @@ var listPlansItemPriceSchema = import_v46.z.object({
14526
14808
  var listPlansExpiryDurationTypeSchema = openEnumSchema2;
14527
14809
  var listPlansRolloverSchema = import_v46.z.object({
14528
14810
  max: import_v46.z.number().nullable(),
14811
+ maxPercentage: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional().nullable(),
14529
14812
  expiryDurationType: listPlansExpiryDurationTypeSchema,
14530
14813
  expiryDurationLength: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
14531
14814
  });
@@ -14606,6 +14889,10 @@ var multiAttachSpendLimitSchema = import_v47.z.object({
14606
14889
  enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
14607
14890
  overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
14608
14891
  });
14892
+ var multiAttachOverageAllowedSchema = import_v47.z.object({
14893
+ featureId: import_v47.z.string(),
14894
+ enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
14895
+ });
14609
14896
  var multiAttachInvoiceSchema = import_v47.z.object({
14610
14897
  status: import_v47.z.string().nullable(),
14611
14898
  stripeId: import_v47.z.string(),
@@ -14644,6 +14931,7 @@ var multiAttachProrationOutboundSchema = import_v47.z.object({
14644
14931
  });
14645
14932
  var multiAttachRolloverOutboundSchema = import_v47.z.object({
14646
14933
  max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
14934
+ max_percentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
14647
14935
  expiry_duration_type: import_v47.z.string(),
14648
14936
  expiry_duration_length: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
14649
14937
  });
@@ -14698,9 +14986,14 @@ var multiAttachUsageAlertOutboundSchema = import_v47.z.object({
14698
14986
  threshold_type: import_v47.z.string(),
14699
14987
  name: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
14700
14988
  });
14989
+ var multiAttachOverageAllowedOutboundSchema = import_v47.z.object({
14990
+ feature_id: import_v47.z.string(),
14991
+ enabled: import_v47.z.boolean()
14992
+ });
14701
14993
  var multiAttachBillingControlsOutboundSchema = import_v47.z.object({
14702
14994
  spend_limits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitOutboundSchema), import_v47.z.undefined()]).optional(),
14703
- usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional()
14995
+ usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional(),
14996
+ overage_allowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedOutboundSchema), import_v47.z.undefined()]).optional()
14704
14997
  });
14705
14998
  var multiAttachEntityDataOutboundSchema = import_v47.z.object({
14706
14999
  feature_id: import_v47.z.string(),
@@ -14744,6 +15037,7 @@ var multiAttachProrationSchema = import_v47.z.object({
14744
15037
  var multiAttachExpiryDurationTypeSchema = closedEnumSchema4;
14745
15038
  var multiAttachRolloverSchema = import_v47.z.object({
14746
15039
  max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
15040
+ maxPercentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
14747
15041
  expiryDurationType: multiAttachExpiryDurationTypeSchema,
14748
15042
  expiryDurationLength: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
14749
15043
  });
@@ -14784,7 +15078,8 @@ var multiAttachUsageAlertSchema = import_v47.z.object({
14784
15078
  });
14785
15079
  var multiAttachBillingControlsSchema = import_v47.z.object({
14786
15080
  spendLimits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitSchema), import_v47.z.undefined()]).optional(),
14787
- usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional()
15081
+ usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional(),
15082
+ overageAllowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedSchema), import_v47.z.undefined()]).optional()
14788
15083
  });
14789
15084
  var multiAttachEntityDataSchema = import_v47.z.object({
14790
15085
  featureId: import_v47.z.string(),
@@ -14992,6 +15287,7 @@ var previewAttachProrationOutboundSchema = import_v49.z.object({
14992
15287
  });
14993
15288
  var previewAttachRolloverOutboundSchema = import_v49.z.object({
14994
15289
  max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
15290
+ max_percentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
14995
15291
  expiry_duration_type: import_v49.z.string(),
14996
15292
  expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
14997
15293
  });
@@ -15096,6 +15392,7 @@ var previewAttachProrationSchema = import_v49.z.object({
15096
15392
  var previewAttachExpiryDurationTypeSchema = closedEnumSchema5;
15097
15393
  var previewAttachRolloverSchema = import_v49.z.object({
15098
15394
  max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
15395
+ maxPercentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
15099
15396
  expiryDurationType: previewAttachExpiryDurationTypeSchema,
15100
15397
  expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
15101
15398
  });
@@ -15205,6 +15502,10 @@ var previewMultiAttachSpendLimitSchema = import_v410.z.object({
15205
15502
  enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
15206
15503
  overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
15207
15504
  });
15505
+ var previewMultiAttachOverageAllowedSchema = import_v410.z.object({
15506
+ featureId: import_v410.z.string(),
15507
+ enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
15508
+ });
15208
15509
  var previewMultiAttachDiscountSchema = import_v410.z.object({
15209
15510
  amountOff: import_v410.z.number(),
15210
15511
  percentOff: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
@@ -15306,6 +15607,7 @@ var previewMultiAttachProrationOutboundSchema = import_v410.z.object({
15306
15607
  });
15307
15608
  var previewMultiAttachRolloverOutboundSchema = import_v410.z.object({
15308
15609
  max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
15610
+ max_percentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
15309
15611
  expiry_duration_type: import_v410.z.string(),
15310
15612
  expiry_duration_length: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
15311
15613
  });
@@ -15363,9 +15665,17 @@ var previewMultiAttachUsageAlertOutboundSchema = import_v410.z.object({
15363
15665
  threshold_type: import_v410.z.string(),
15364
15666
  name: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
15365
15667
  });
15668
+ var previewMultiAttachOverageAllowedOutboundSchema = import_v410.z.object({
15669
+ feature_id: import_v410.z.string(),
15670
+ enabled: import_v410.z.boolean()
15671
+ });
15366
15672
  var previewMultiAttachBillingControlsOutboundSchema = import_v410.z.object({
15367
15673
  spend_limits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitOutboundSchema), import_v410.z.undefined()]).optional(),
15368
- usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional()
15674
+ usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional(),
15675
+ overage_allowed: import_v410.z.union([
15676
+ import_v410.z.array(previewMultiAttachOverageAllowedOutboundSchema),
15677
+ import_v410.z.undefined()
15678
+ ]).optional()
15369
15679
  });
15370
15680
  var previewMultiAttachEntityDataOutboundSchema = import_v410.z.object({
15371
15681
  feature_id: import_v410.z.string(),
@@ -15410,6 +15720,7 @@ var previewMultiAttachProrationSchema = import_v410.z.object({
15410
15720
  var previewMultiAttachExpiryDurationTypeSchema = closedEnumSchema6;
15411
15721
  var previewMultiAttachRolloverSchema = import_v410.z.object({
15412
15722
  max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
15723
+ maxPercentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
15413
15724
  expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
15414
15725
  expiryDurationLength: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
15415
15726
  });
@@ -15453,7 +15764,8 @@ var previewMultiAttachUsageAlertSchema = import_v410.z.object({
15453
15764
  });
15454
15765
  var previewMultiAttachBillingControlsSchema = import_v410.z.object({
15455
15766
  spendLimits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitSchema), import_v410.z.undefined()]).optional(),
15456
- usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional()
15767
+ usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional(),
15768
+ overageAllowed: import_v410.z.union([import_v410.z.array(previewMultiAttachOverageAllowedSchema), import_v410.z.undefined()]).optional()
15457
15769
  });
15458
15770
  var previewMultiAttachEntityDataSchema = import_v410.z.object({
15459
15771
  featureId: import_v410.z.string(),
@@ -15649,6 +15961,7 @@ var previewUpdateProrationOutboundSchema = import_v411.z.object({
15649
15961
  });
15650
15962
  var previewUpdateRolloverOutboundSchema = import_v411.z.object({
15651
15963
  max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
15964
+ max_percentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
15652
15965
  expiry_duration_type: import_v411.z.string(),
15653
15966
  expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
15654
15967
  });
@@ -15733,6 +16046,7 @@ var previewUpdateProrationSchema = import_v411.z.object({
15733
16046
  var previewUpdateExpiryDurationTypeSchema = closedEnumSchema7;
15734
16047
  var previewUpdateRolloverSchema = import_v411.z.object({
15735
16048
  max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
16049
+ maxPercentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
15736
16050
  expiryDurationType: previewUpdateExpiryDurationTypeSchema,
15737
16051
  expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
15738
16052
  });
@@ -15896,6 +16210,7 @@ var setupPaymentProrationOutboundSchema = import_v413.z.object({
15896
16210
  });
15897
16211
  var setupPaymentRolloverOutboundSchema = import_v413.z.object({
15898
16212
  max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
16213
+ max_percentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
15899
16214
  expiry_duration_type: import_v413.z.string(),
15900
16215
  expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
15901
16216
  });
@@ -15986,6 +16301,7 @@ var setupPaymentProrationSchema = import_v413.z.object({
15986
16301
  var setupPaymentExpiryDurationTypeSchema = closedEnumSchema8;
15987
16302
  var setupPaymentRolloverSchema = import_v413.z.object({
15988
16303
  max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
16304
+ maxPercentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
15989
16305
  expiryDurationType: setupPaymentExpiryDurationTypeSchema,
15990
16306
  expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
15991
16307
  });
@@ -16096,6 +16412,7 @@ var billingUpdateProrationOutboundSchema = import_v414.z.object({
16096
16412
  });
16097
16413
  var billingUpdateRolloverOutboundSchema = import_v414.z.object({
16098
16414
  max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
16415
+ max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
16099
16416
  expiry_duration_type: import_v414.z.string(),
16100
16417
  expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
16101
16418
  });
@@ -16176,6 +16493,7 @@ var billingUpdateProrationSchema = import_v414.z.object({
16176
16493
  var billingUpdateExpiryDurationTypeSchema = closedEnumSchema9;
16177
16494
  var billingUpdateRolloverSchema = import_v414.z.object({
16178
16495
  max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
16496
+ maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
16179
16497
  expiryDurationType: billingUpdateExpiryDurationTypeSchema,
16180
16498
  expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
16181
16499
  });