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
@@ -78,8 +78,8 @@ var SDK_METADATA = {
78
78
  language: "typescript",
79
79
  openapiDocVersion: "2.2.0",
80
80
  sdkVersion: "0.10.17",
81
- genVersion: "2.869.25",
82
- userAgent: "speakeasy-sdk/typescript 0.10.17 2.869.25 2.2.0 @useautumn/sdk"
81
+ genVersion: "2.879.6",
82
+ userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk"
83
83
  };
84
84
 
85
85
  // ../sdk/src/lib/http.ts
@@ -1001,8 +1001,8 @@ function applyBearer(state, spec) {
1001
1001
  state.headers[spec.fieldName] = value;
1002
1002
  }
1003
1003
  }
1004
- function resolveGlobalSecurity(security) {
1005
- return resolveSecurity(
1004
+ function resolveGlobalSecurity(security, allowedFields) {
1005
+ let inputs = [
1006
1006
  [
1007
1007
  {
1008
1008
  fieldName: "Authorization",
@@ -1010,7 +1010,16 @@ function resolveGlobalSecurity(security) {
1010
1010
  value: security?.secretKey ?? env().AUTUMN_SECRET_KEY
1011
1011
  }
1012
1012
  ]
1013
- );
1013
+ ];
1014
+ if (allowedFields) {
1015
+ inputs = allowedFields.map((i) => {
1016
+ if (i < 0 || i >= inputs.length) {
1017
+ throw new RangeError(`invalid allowedFields index ${i}`);
1018
+ }
1019
+ return inputs[i];
1020
+ });
1021
+ }
1022
+ return resolveSecurity(...inputs);
1014
1023
  }
1015
1024
  async function extractSecurity(sec) {
1016
1025
  if (sec == null) {
@@ -1557,11 +1566,13 @@ var AttachExpiryDurationType$outboundSchema = z10.enum(AttachExpiryDurationType)
1557
1566
  var AttachRollover$outboundSchema = z10.pipe(
1558
1567
  z10.object({
1559
1568
  max: z10.optional(z10.number()),
1569
+ maxPercentage: z10.optional(z10.number()),
1560
1570
  expiryDurationType: AttachExpiryDurationType$outboundSchema,
1561
1571
  expiryDurationLength: z10.optional(z10.number())
1562
1572
  }),
1563
1573
  z10.transform((v) => {
1564
1574
  return remap(v, {
1575
+ maxPercentage: "max_percentage",
1565
1576
  expiryDurationType: "expiry_duration_type",
1566
1577
  expiryDurationLength: "expiry_duration_length"
1567
1578
  });
@@ -2086,11 +2097,13 @@ var BillingUpdateExpiryDurationType$outboundSchema = z12.enum(BillingUpdateExpir
2086
2097
  var BillingUpdateRollover$outboundSchema = z12.pipe(
2087
2098
  z12.object({
2088
2099
  max: z12.optional(z12.number()),
2100
+ maxPercentage: z12.optional(z12.number()),
2089
2101
  expiryDurationType: BillingUpdateExpiryDurationType$outboundSchema,
2090
2102
  expiryDurationLength: z12.optional(z12.number())
2091
2103
  }),
2092
2104
  z12.transform((v) => {
2093
2105
  return remap(v, {
2106
+ maxPercentage: "max_percentage",
2094
2107
  expiryDurationType: "expiry_duration_type",
2095
2108
  expiryDurationLength: "expiry_duration_length"
2096
2109
  });
@@ -2432,11 +2445,19 @@ var ProductDisplay$inboundSchema = z13.pipe(
2432
2445
  })
2433
2446
  );
2434
2447
  var RolloverDuration$inboundSchema = inboundSchema(RolloverDuration);
2435
- var CheckRollover$inboundSchema = z13.object({
2436
- max: nullable(number2()),
2437
- duration: z13._default(RolloverDuration$inboundSchema, "month"),
2438
- length: number2()
2439
- });
2448
+ var CheckRollover$inboundSchema = z13.pipe(
2449
+ z13.object({
2450
+ max: z13.optional(z13.nullable(number2())),
2451
+ max_percentage: z13.optional(z13.nullable(number2())),
2452
+ duration: z13._default(RolloverDuration$inboundSchema, "month"),
2453
+ length: number2()
2454
+ }),
2455
+ z13.transform((v) => {
2456
+ return remap(v, {
2457
+ "max_percentage": "maxPercentage"
2458
+ });
2459
+ })
2460
+ );
2440
2461
  var CheckOnIncrease$inboundSchema = inboundSchema(CheckOnIncrease);
2441
2462
  var CheckOnDecrease$inboundSchema = inboundSchema(CheckOnDecrease);
2442
2463
  var Config$inboundSchema = z13.pipe(
@@ -2675,12 +2696,14 @@ var CustomerDataAutoTopup$outboundSchema = z15.pipe(
2675
2696
  quantity: z15.number(),
2676
2697
  purchaseLimit: z15.optional(
2677
2698
  z15.lazy(() => CustomerDataPurchaseLimit$outboundSchema)
2678
- )
2699
+ ),
2700
+ invoiceMode: z15.optional(z15.boolean())
2679
2701
  }),
2680
2702
  z15.transform((v) => {
2681
2703
  return remap(v, {
2682
2704
  featureId: "feature_id",
2683
- purchaseLimit: "purchase_limit"
2705
+ purchaseLimit: "purchase_limit",
2706
+ invoiceMode: "invoice_mode"
2684
2707
  });
2685
2708
  })
2686
2709
  );
@@ -2713,6 +2736,17 @@ var CustomerDataUsageAlert$outboundSchema = z15.pipe(
2713
2736
  });
2714
2737
  })
2715
2738
  );
2739
+ var CustomerDataOverageAllowed$outboundSchema = z15.pipe(
2740
+ z15.object({
2741
+ featureId: z15.string(),
2742
+ enabled: z15._default(z15.boolean(), false)
2743
+ }),
2744
+ z15.transform((v) => {
2745
+ return remap(v, {
2746
+ featureId: "feature_id"
2747
+ });
2748
+ })
2749
+ );
2716
2750
  var CustomerDataBillingControls$outboundSchema = z15.pipe(
2717
2751
  z15.object({
2718
2752
  autoTopups: z15.optional(
@@ -2723,13 +2757,17 @@ var CustomerDataBillingControls$outboundSchema = z15.pipe(
2723
2757
  ),
2724
2758
  usageAlerts: z15.optional(
2725
2759
  z15.array(z15.lazy(() => CustomerDataUsageAlert$outboundSchema))
2760
+ ),
2761
+ overageAllowed: z15.optional(
2762
+ z15.array(z15.lazy(() => CustomerDataOverageAllowed$outboundSchema))
2726
2763
  )
2727
2764
  }),
2728
2765
  z15.transform((v) => {
2729
2766
  return remap(v, {
2730
2767
  autoTopups: "auto_topups",
2731
2768
  spendLimits: "spend_limits",
2732
- usageAlerts: "usage_alerts"
2769
+ usageAlerts: "usage_alerts",
2770
+ overageAllowed: "overage_allowed"
2733
2771
  });
2734
2772
  })
2735
2773
  );
@@ -2940,11 +2978,13 @@ var ExpiryDurationType$inboundSchema = inboundSchema(ExpiryDurationType);
2940
2978
  var PlanRollover$inboundSchema = z16.pipe(
2941
2979
  z16.object({
2942
2980
  max: nullable(number2()),
2981
+ max_percentage: z16.optional(z16.nullable(number2())),
2943
2982
  expiry_duration_type: ExpiryDurationType$inboundSchema,
2944
2983
  expiry_duration_length: optional2(number2())
2945
2984
  }),
2946
2985
  z16.transform((v) => {
2947
2986
  return remap(v, {
2987
+ "max_percentage": "maxPercentage",
2948
2988
  "expiry_duration_type": "expiryDurationType",
2949
2989
  "expiry_duration_length": "expiryDurationLength"
2950
2990
  });
@@ -3083,6 +3123,17 @@ var CreateEntityUsageAlertRequestBody$outboundSchema = z17.pipe(
3083
3123
  });
3084
3124
  })
3085
3125
  );
3126
+ var CreateEntityOverageAllowedRequest$outboundSchema = z17.pipe(
3127
+ z17.object({
3128
+ featureId: z17.string(),
3129
+ enabled: z17._default(z17.boolean(), false)
3130
+ }),
3131
+ z17.transform((v) => {
3132
+ return remap(v, {
3133
+ featureId: "feature_id"
3134
+ });
3135
+ })
3136
+ );
3086
3137
  var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
3087
3138
  z17.object({
3088
3139
  spendLimits: z17.optional(
@@ -3090,12 +3141,16 @@ var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
3090
3141
  ),
3091
3142
  usageAlerts: z17.optional(
3092
3143
  z17.array(z17.lazy(() => CreateEntityUsageAlertRequestBody$outboundSchema))
3144
+ ),
3145
+ overageAllowed: z17.optional(
3146
+ z17.array(z17.lazy(() => CreateEntityOverageAllowedRequest$outboundSchema))
3093
3147
  )
3094
3148
  }),
3095
3149
  z17.transform((v) => {
3096
3150
  return remap(v, {
3097
3151
  spendLimits: "spend_limits",
3098
- usageAlerts: "usage_alerts"
3152
+ usageAlerts: "usage_alerts",
3153
+ overageAllowed: "overage_allowed"
3099
3154
  });
3100
3155
  })
3101
3156
  );
@@ -3252,6 +3307,17 @@ var CreateEntityUsageAlertResponse$inboundSchema = z17.pipe(
3252
3307
  });
3253
3308
  })
3254
3309
  );
3310
+ var CreateEntityOverageAllowedResponse$inboundSchema = z17.pipe(
3311
+ z17.object({
3312
+ feature_id: string4(),
3313
+ enabled: z17._default(boolean2(), false)
3314
+ }),
3315
+ z17.transform((v) => {
3316
+ return remap(v, {
3317
+ "feature_id": "featureId"
3318
+ });
3319
+ })
3320
+ );
3255
3321
  var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
3256
3322
  z17.object({
3257
3323
  spend_limits: optional2(
@@ -3259,12 +3325,16 @@ var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
3259
3325
  ),
3260
3326
  usage_alerts: optional2(
3261
3327
  z17.array(z17.lazy(() => CreateEntityUsageAlertResponse$inboundSchema))
3328
+ ),
3329
+ overage_allowed: optional2(
3330
+ z17.array(z17.lazy(() => CreateEntityOverageAllowedResponse$inboundSchema))
3262
3331
  )
3263
3332
  }),
3264
3333
  z17.transform((v) => {
3265
3334
  return remap(v, {
3266
3335
  "spend_limits": "spendLimits",
3267
- "usage_alerts": "usageAlerts"
3336
+ "usage_alerts": "usageAlerts",
3337
+ "overage_allowed": "overageAllowed"
3268
3338
  });
3269
3339
  })
3270
3340
  );
@@ -3614,11 +3684,13 @@ var CreatePlanExpiryDurationTypeRequest$outboundSchema = z19.enum(CreatePlanExpi
3614
3684
  var CreatePlanRolloverRequest$outboundSchema = z19.pipe(
3615
3685
  z19.object({
3616
3686
  max: z19.optional(z19.number()),
3687
+ maxPercentage: z19.optional(z19.number()),
3617
3688
  expiryDurationType: CreatePlanExpiryDurationTypeRequest$outboundSchema,
3618
3689
  expiryDurationLength: z19.optional(z19.number())
3619
3690
  }),
3620
3691
  z19.transform((v) => {
3621
3692
  return remap(v, {
3693
+ maxPercentage: "max_percentage",
3622
3694
  expiryDurationType: "expiry_duration_type",
3623
3695
  expiryDurationLength: "expiry_duration_length"
3624
3696
  });
@@ -3795,11 +3867,13 @@ var CreatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePla
3795
3867
  var CreatePlanRolloverResponse$inboundSchema = z19.pipe(
3796
3868
  z19.object({
3797
3869
  max: nullable(number2()),
3870
+ max_percentage: z19.optional(z19.nullable(number2())),
3798
3871
  expiry_duration_type: CreatePlanExpiryDurationTypeResponse$inboundSchema,
3799
3872
  expiry_duration_length: optional2(number2())
3800
3873
  }),
3801
3874
  z19.transform((v) => {
3802
3875
  return remap(v, {
3876
+ "max_percentage": "maxPercentage",
3803
3877
  "expiry_duration_type": "expiryDurationType",
3804
3878
  "expiry_duration_length": "expiryDurationLength"
3805
3879
  });
@@ -3983,12 +4057,14 @@ var CustomerAutoTopup$inboundSchema = z21.pipe(
3983
4057
  quantity: number2(),
3984
4058
  purchase_limit: optional2(
3985
4059
  z21.lazy(() => CustomerPurchaseLimit$inboundSchema)
3986
- )
4060
+ ),
4061
+ invoice_mode: optional2(boolean2())
3987
4062
  }),
3988
4063
  z21.transform((v) => {
3989
4064
  return remap(v, {
3990
4065
  "feature_id": "featureId",
3991
- "purchase_limit": "purchaseLimit"
4066
+ "purchase_limit": "purchaseLimit",
4067
+ "invoice_mode": "invoiceMode"
3992
4068
  });
3993
4069
  })
3994
4070
  );
@@ -4021,6 +4097,17 @@ var CustomerUsageAlert$inboundSchema = z21.pipe(
4021
4097
  });
4022
4098
  })
4023
4099
  );
4100
+ var CustomerOverageAllowed$inboundSchema = z21.pipe(
4101
+ z21.object({
4102
+ feature_id: string4(),
4103
+ enabled: z21._default(boolean2(), false)
4104
+ }),
4105
+ z21.transform((v) => {
4106
+ return remap(v, {
4107
+ "feature_id": "featureId"
4108
+ });
4109
+ })
4110
+ );
4024
4111
  var CustomerBillingControls$inboundSchema = z21.pipe(
4025
4112
  z21.object({
4026
4113
  auto_topups: optional2(
@@ -4031,13 +4118,17 @@ var CustomerBillingControls$inboundSchema = z21.pipe(
4031
4118
  ),
4032
4119
  usage_alerts: optional2(
4033
4120
  z21.array(z21.lazy(() => CustomerUsageAlert$inboundSchema))
4121
+ ),
4122
+ overage_allowed: optional2(
4123
+ z21.array(z21.lazy(() => CustomerOverageAllowed$inboundSchema))
4034
4124
  )
4035
4125
  }),
4036
4126
  z21.transform((v) => {
4037
4127
  return remap(v, {
4038
4128
  "auto_topups": "autoTopups",
4039
4129
  "spend_limits": "spendLimits",
4040
- "usage_alerts": "usageAlerts"
4130
+ "usage_alerts": "usageAlerts",
4131
+ "overage_allowed": "overageAllowed"
4041
4132
  });
4042
4133
  })
4043
4134
  );
@@ -4576,6 +4667,17 @@ var GetEntityUsageAlert$inboundSchema = z28.pipe(
4576
4667
  });
4577
4668
  })
4578
4669
  );
4670
+ var GetEntityOverageAllowed$inboundSchema = z28.pipe(
4671
+ z28.object({
4672
+ feature_id: string4(),
4673
+ enabled: z28._default(boolean2(), false)
4674
+ }),
4675
+ z28.transform((v) => {
4676
+ return remap(v, {
4677
+ "feature_id": "featureId"
4678
+ });
4679
+ })
4680
+ );
4579
4681
  var GetEntityBillingControls$inboundSchema = z28.pipe(
4580
4682
  z28.object({
4581
4683
  spend_limits: optional2(
@@ -4583,12 +4685,16 @@ var GetEntityBillingControls$inboundSchema = z28.pipe(
4583
4685
  ),
4584
4686
  usage_alerts: optional2(
4585
4687
  z28.array(z28.lazy(() => GetEntityUsageAlert$inboundSchema))
4688
+ ),
4689
+ overage_allowed: optional2(
4690
+ z28.array(z28.lazy(() => GetEntityOverageAllowed$inboundSchema))
4586
4691
  )
4587
4692
  }),
4588
4693
  z28.transform((v) => {
4589
4694
  return remap(v, {
4590
4695
  "spend_limits": "spendLimits",
4591
- "usage_alerts": "usageAlerts"
4696
+ "usage_alerts": "usageAlerts",
4697
+ "overage_allowed": "overageAllowed"
4592
4698
  });
4593
4699
  })
4594
4700
  );
@@ -4728,12 +4834,14 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z30.pipe(
4728
4834
  quantity: z30.number(),
4729
4835
  purchaseLimit: z30.optional(
4730
4836
  z30.lazy(() => GetOrCreateCustomerPurchaseLimit$outboundSchema)
4731
- )
4837
+ ),
4838
+ invoiceMode: z30.optional(z30.boolean())
4732
4839
  }),
4733
4840
  z30.transform((v) => {
4734
4841
  return remap(v, {
4735
4842
  featureId: "feature_id",
4736
- purchaseLimit: "purchase_limit"
4843
+ purchaseLimit: "purchase_limit",
4844
+ invoiceMode: "invoice_mode"
4737
4845
  });
4738
4846
  })
4739
4847
  );
@@ -4766,6 +4874,17 @@ var GetOrCreateCustomerUsageAlert$outboundSchema = z30.pipe(
4766
4874
  });
4767
4875
  })
4768
4876
  );
4877
+ var GetOrCreateCustomerOverageAllowed$outboundSchema = z30.pipe(
4878
+ z30.object({
4879
+ featureId: z30.string(),
4880
+ enabled: z30._default(z30.boolean(), false)
4881
+ }),
4882
+ z30.transform((v) => {
4883
+ return remap(v, {
4884
+ featureId: "feature_id"
4885
+ });
4886
+ })
4887
+ );
4769
4888
  var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
4770
4889
  z30.object({
4771
4890
  autoTopups: z30.optional(
@@ -4776,13 +4895,17 @@ var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
4776
4895
  ),
4777
4896
  usageAlerts: z30.optional(
4778
4897
  z30.array(z30.lazy(() => GetOrCreateCustomerUsageAlert$outboundSchema))
4898
+ ),
4899
+ overageAllowed: z30.optional(
4900
+ z30.array(z30.lazy(() => GetOrCreateCustomerOverageAllowed$outboundSchema))
4779
4901
  )
4780
4902
  }),
4781
4903
  z30.transform((v) => {
4782
4904
  return remap(v, {
4783
4905
  autoTopups: "auto_topups",
4784
4906
  spendLimits: "spend_limits",
4785
- usageAlerts: "usage_alerts"
4907
+ usageAlerts: "usage_alerts",
4908
+ overageAllowed: "overage_allowed"
4786
4909
  });
4787
4910
  })
4788
4911
  );
@@ -5007,11 +5130,13 @@ var GetPlanExpiryDurationType$inboundSchema = inboundSchema(GetPlanExpiryDuratio
5007
5130
  var GetPlanRollover$inboundSchema = z31.pipe(
5008
5131
  z31.object({
5009
5132
  max: nullable(number2()),
5133
+ max_percentage: z31.optional(z31.nullable(number2())),
5010
5134
  expiry_duration_type: GetPlanExpiryDurationType$inboundSchema,
5011
5135
  expiry_duration_length: optional2(number2())
5012
5136
  }),
5013
5137
  z31.transform((v) => {
5014
5138
  return remap(v, {
5139
+ "max_percentage": "maxPercentage",
5015
5140
  "expiry_duration_type": "expiryDurationType",
5016
5141
  "expiry_duration_length": "expiryDurationLength"
5017
5142
  });
@@ -5201,12 +5326,14 @@ var ListCustomersAutoTopup$inboundSchema = z32.pipe(
5201
5326
  quantity: number2(),
5202
5327
  purchase_limit: optional2(
5203
5328
  z32.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
5204
- )
5329
+ ),
5330
+ invoice_mode: optional2(boolean2())
5205
5331
  }),
5206
5332
  z32.transform((v) => {
5207
5333
  return remap(v, {
5208
5334
  "feature_id": "featureId",
5209
- "purchase_limit": "purchaseLimit"
5335
+ "purchase_limit": "purchaseLimit",
5336
+ "invoice_mode": "invoiceMode"
5210
5337
  });
5211
5338
  })
5212
5339
  );
@@ -5239,6 +5366,17 @@ var ListCustomersUsageAlert$inboundSchema = z32.pipe(
5239
5366
  });
5240
5367
  })
5241
5368
  );
5369
+ var ListCustomersOverageAllowed$inboundSchema = z32.pipe(
5370
+ z32.object({
5371
+ feature_id: string4(),
5372
+ enabled: z32._default(boolean2(), false)
5373
+ }),
5374
+ z32.transform((v) => {
5375
+ return remap(v, {
5376
+ "feature_id": "featureId"
5377
+ });
5378
+ })
5379
+ );
5242
5380
  var ListCustomersBillingControls$inboundSchema = z32.pipe(
5243
5381
  z32.object({
5244
5382
  auto_topups: optional2(
@@ -5249,13 +5387,17 @@ var ListCustomersBillingControls$inboundSchema = z32.pipe(
5249
5387
  ),
5250
5388
  usage_alerts: optional2(
5251
5389
  z32.array(z32.lazy(() => ListCustomersUsageAlert$inboundSchema))
5390
+ ),
5391
+ overage_allowed: optional2(
5392
+ z32.array(z32.lazy(() => ListCustomersOverageAllowed$inboundSchema))
5252
5393
  )
5253
5394
  }),
5254
5395
  z32.transform((v) => {
5255
5396
  return remap(v, {
5256
5397
  "auto_topups": "autoTopups",
5257
5398
  "spend_limits": "spendLimits",
5258
- "usage_alerts": "usageAlerts"
5399
+ "usage_alerts": "usageAlerts",
5400
+ "overage_allowed": "overageAllowed"
5259
5401
  });
5260
5402
  })
5261
5403
  );
@@ -5710,11 +5852,13 @@ var ListPlansExpiryDurationType$inboundSchema = inboundSchema(ListPlansExpiryDur
5710
5852
  var ListPlansRollover$inboundSchema = z35.pipe(
5711
5853
  z35.object({
5712
5854
  max: nullable(number2()),
5855
+ max_percentage: z35.optional(z35.nullable(number2())),
5713
5856
  expiry_duration_type: ListPlansExpiryDurationType$inboundSchema,
5714
5857
  expiry_duration_length: optional2(number2())
5715
5858
  }),
5716
5859
  z35.transform((v) => {
5717
5860
  return remap(v, {
5861
+ "max_percentage": "maxPercentage",
5718
5862
  "expiry_duration_type": "expiryDurationType",
5719
5863
  "expiry_duration_length": "expiryDurationLength"
5720
5864
  });
@@ -5958,11 +6102,13 @@ var MultiAttachExpiryDurationType$outboundSchema = z36.enum(MultiAttachExpiryDur
5958
6102
  var MultiAttachRollover$outboundSchema = z36.pipe(
5959
6103
  z36.object({
5960
6104
  max: z36.optional(z36.number()),
6105
+ maxPercentage: z36.optional(z36.number()),
5961
6106
  expiryDurationType: MultiAttachExpiryDurationType$outboundSchema,
5962
6107
  expiryDurationLength: z36.optional(z36.number())
5963
6108
  }),
5964
6109
  z36.transform((v) => {
5965
6110
  return remap(v, {
6111
+ maxPercentage: "max_percentage",
5966
6112
  expiryDurationType: "expiry_duration_type",
5967
6113
  expiryDurationLength: "expiry_duration_length"
5968
6114
  });
@@ -6089,6 +6235,17 @@ var MultiAttachUsageAlert$outboundSchema = z36.pipe(
6089
6235
  });
6090
6236
  })
6091
6237
  );
6238
+ var MultiAttachOverageAllowed$outboundSchema = z36.pipe(
6239
+ z36.object({
6240
+ featureId: z36.string(),
6241
+ enabled: z36._default(z36.boolean(), false)
6242
+ }),
6243
+ z36.transform((v) => {
6244
+ return remap(v, {
6245
+ featureId: "feature_id"
6246
+ });
6247
+ })
6248
+ );
6092
6249
  var MultiAttachBillingControls$outboundSchema = z36.pipe(
6093
6250
  z36.object({
6094
6251
  spendLimits: z36.optional(
@@ -6096,12 +6253,16 @@ var MultiAttachBillingControls$outboundSchema = z36.pipe(
6096
6253
  ),
6097
6254
  usageAlerts: z36.optional(
6098
6255
  z36.array(z36.lazy(() => MultiAttachUsageAlert$outboundSchema))
6256
+ ),
6257
+ overageAllowed: z36.optional(
6258
+ z36.array(z36.lazy(() => MultiAttachOverageAllowed$outboundSchema))
6099
6259
  )
6100
6260
  }),
6101
6261
  z36.transform((v) => {
6102
6262
  return remap(v, {
6103
6263
  spendLimits: "spend_limits",
6104
- usageAlerts: "usage_alerts"
6264
+ usageAlerts: "usage_alerts",
6265
+ overageAllowed: "overage_allowed"
6105
6266
  });
6106
6267
  })
6107
6268
  );
@@ -6395,11 +6556,13 @@ var PreviewAttachExpiryDurationType$outboundSchema = z38.enum(PreviewAttachExpir
6395
6556
  var PreviewAttachRollover$outboundSchema = z38.pipe(
6396
6557
  z38.object({
6397
6558
  max: z38.optional(z38.number()),
6559
+ maxPercentage: z38.optional(z38.number()),
6398
6560
  expiryDurationType: PreviewAttachExpiryDurationType$outboundSchema,
6399
6561
  expiryDurationLength: z38.optional(z38.number())
6400
6562
  }),
6401
6563
  z38.transform((v) => {
6402
6564
  return remap(v, {
6565
+ maxPercentage: "max_percentage",
6403
6566
  expiryDurationType: "expiry_duration_type",
6404
6567
  expiryDurationLength: "expiry_duration_length"
6405
6568
  });
@@ -6943,11 +7106,13 @@ var PreviewMultiAttachExpiryDurationType$outboundSchema = z39.enum(PreviewMultiA
6943
7106
  var PreviewMultiAttachRollover$outboundSchema = z39.pipe(
6944
7107
  z39.object({
6945
7108
  max: z39.optional(z39.number()),
7109
+ maxPercentage: z39.optional(z39.number()),
6946
7110
  expiryDurationType: PreviewMultiAttachExpiryDurationType$outboundSchema,
6947
7111
  expiryDurationLength: z39.optional(z39.number())
6948
7112
  }),
6949
7113
  z39.transform((v) => {
6950
7114
  return remap(v, {
7115
+ maxPercentage: "max_percentage",
6951
7116
  expiryDurationType: "expiry_duration_type",
6952
7117
  expiryDurationLength: "expiry_duration_length"
6953
7118
  });
@@ -7087,6 +7252,17 @@ var PreviewMultiAttachUsageAlert$outboundSchema = z39.pipe(
7087
7252
  });
7088
7253
  })
7089
7254
  );
7255
+ var PreviewMultiAttachOverageAllowed$outboundSchema = z39.pipe(
7256
+ z39.object({
7257
+ featureId: z39.string(),
7258
+ enabled: z39._default(z39.boolean(), false)
7259
+ }),
7260
+ z39.transform((v) => {
7261
+ return remap(v, {
7262
+ featureId: "feature_id"
7263
+ });
7264
+ })
7265
+ );
7090
7266
  var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
7091
7267
  z39.object({
7092
7268
  spendLimits: z39.optional(
@@ -7094,12 +7270,16 @@ var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
7094
7270
  ),
7095
7271
  usageAlerts: z39.optional(
7096
7272
  z39.array(z39.lazy(() => PreviewMultiAttachUsageAlert$outboundSchema))
7273
+ ),
7274
+ overageAllowed: z39.optional(
7275
+ z39.array(z39.lazy(() => PreviewMultiAttachOverageAllowed$outboundSchema))
7097
7276
  )
7098
7277
  }),
7099
7278
  z39.transform((v) => {
7100
7279
  return remap(v, {
7101
7280
  spendLimits: "spend_limits",
7102
- usageAlerts: "usage_alerts"
7281
+ usageAlerts: "usage_alerts",
7282
+ overageAllowed: "overage_allowed"
7103
7283
  });
7104
7284
  })
7105
7285
  );
@@ -7555,11 +7735,13 @@ var PreviewUpdateExpiryDurationType$outboundSchema = z40.enum(PreviewUpdateExpir
7555
7735
  var PreviewUpdateRollover$outboundSchema = z40.pipe(
7556
7736
  z40.object({
7557
7737
  max: z40.optional(z40.number()),
7738
+ maxPercentage: z40.optional(z40.number()),
7558
7739
  expiryDurationType: PreviewUpdateExpiryDurationType$outboundSchema,
7559
7740
  expiryDurationLength: z40.optional(z40.number())
7560
7741
  }),
7561
7742
  z40.transform((v) => {
7562
7743
  return remap(v, {
7744
+ maxPercentage: "max_percentage",
7563
7745
  expiryDurationType: "expiry_duration_type",
7564
7746
  expiryDurationLength: "expiry_duration_length"
7565
7747
  });
@@ -8075,11 +8257,13 @@ var SetupPaymentExpiryDurationType$outboundSchema = z42.enum(SetupPaymentExpiryD
8075
8257
  var SetupPaymentRollover$outboundSchema = z42.pipe(
8076
8258
  z42.object({
8077
8259
  max: z42.optional(z42.number()),
8260
+ maxPercentage: z42.optional(z42.number()),
8078
8261
  expiryDurationType: SetupPaymentExpiryDurationType$outboundSchema,
8079
8262
  expiryDurationLength: z42.optional(z42.number())
8080
8263
  }),
8081
8264
  z42.transform((v) => {
8082
8265
  return remap(v, {
8266
+ maxPercentage: "max_percentage",
8083
8267
  expiryDurationType: "expiry_duration_type",
8084
8268
  expiryDurationLength: "expiry_duration_length"
8085
8269
  });
@@ -8384,12 +8568,14 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z45.pipe(
8384
8568
  quantity: z45.number(),
8385
8569
  purchaseLimit: z45.optional(
8386
8570
  z45.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
8387
- )
8571
+ ),
8572
+ invoiceMode: z45.optional(z45.boolean())
8388
8573
  }),
8389
8574
  z45.transform((v) => {
8390
8575
  return remap(v, {
8391
8576
  featureId: "feature_id",
8392
- purchaseLimit: "purchase_limit"
8577
+ purchaseLimit: "purchase_limit",
8578
+ invoiceMode: "invoice_mode"
8393
8579
  });
8394
8580
  })
8395
8581
  );
@@ -8424,6 +8610,17 @@ var UpdateCustomerUsageAlertRequestBody$outboundSchema = z45.pipe(
8424
8610
  });
8425
8611
  })
8426
8612
  );
8613
+ var UpdateCustomerOverageAllowedRequest$outboundSchema = z45.pipe(
8614
+ z45.object({
8615
+ featureId: z45.string(),
8616
+ enabled: z45._default(z45.boolean(), false)
8617
+ }),
8618
+ z45.transform((v) => {
8619
+ return remap(v, {
8620
+ featureId: "feature_id"
8621
+ });
8622
+ })
8623
+ );
8427
8624
  var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
8428
8625
  z45.object({
8429
8626
  autoTopups: z45.optional(
@@ -8434,13 +8631,17 @@ var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
8434
8631
  ),
8435
8632
  usageAlerts: z45.optional(
8436
8633
  z45.array(z45.lazy(() => UpdateCustomerUsageAlertRequestBody$outboundSchema))
8634
+ ),
8635
+ overageAllowed: z45.optional(
8636
+ z45.array(z45.lazy(() => UpdateCustomerOverageAllowedRequest$outboundSchema))
8437
8637
  )
8438
8638
  }),
8439
8639
  z45.transform((v) => {
8440
8640
  return remap(v, {
8441
8641
  autoTopups: "auto_topups",
8442
8642
  spendLimits: "spend_limits",
8443
- usageAlerts: "usage_alerts"
8643
+ usageAlerts: "usage_alerts",
8644
+ overageAllowed: "overage_allowed"
8444
8645
  });
8445
8646
  })
8446
8647
  );
@@ -8490,12 +8691,14 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
8490
8691
  quantity: number2(),
8491
8692
  purchase_limit: optional2(
8492
8693
  z45.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
8493
- )
8694
+ ),
8695
+ invoice_mode: optional2(boolean2())
8494
8696
  }),
8495
8697
  z45.transform((v) => {
8496
8698
  return remap(v, {
8497
8699
  "feature_id": "featureId",
8498
- "purchase_limit": "purchaseLimit"
8700
+ "purchase_limit": "purchaseLimit",
8701
+ "invoice_mode": "invoiceMode"
8499
8702
  });
8500
8703
  })
8501
8704
  );
@@ -8528,6 +8731,17 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z45.pipe(
8528
8731
  });
8529
8732
  })
8530
8733
  );
8734
+ var UpdateCustomerOverageAllowedResponse$inboundSchema = z45.pipe(
8735
+ z45.object({
8736
+ feature_id: string4(),
8737
+ enabled: z45._default(boolean2(), false)
8738
+ }),
8739
+ z45.transform((v) => {
8740
+ return remap(v, {
8741
+ "feature_id": "featureId"
8742
+ });
8743
+ })
8744
+ );
8531
8745
  var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
8532
8746
  z45.object({
8533
8747
  auto_topups: optional2(
@@ -8538,13 +8752,17 @@ var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
8538
8752
  ),
8539
8753
  usage_alerts: optional2(
8540
8754
  z45.array(z45.lazy(() => UpdateCustomerUsageAlertResponse$inboundSchema))
8755
+ ),
8756
+ overage_allowed: optional2(
8757
+ z45.array(z45.lazy(() => UpdateCustomerOverageAllowedResponse$inboundSchema))
8541
8758
  )
8542
8759
  }),
8543
8760
  z45.transform((v) => {
8544
8761
  return remap(v, {
8545
8762
  "auto_topups": "autoTopups",
8546
8763
  "spend_limits": "spendLimits",
8547
- "usage_alerts": "usageAlerts"
8764
+ "usage_alerts": "usageAlerts",
8765
+ "overage_allowed": "overageAllowed"
8548
8766
  });
8549
8767
  })
8550
8768
  );
@@ -8736,6 +8954,17 @@ var UpdateEntityUsageAlertRequestBody$outboundSchema = z46.pipe(
8736
8954
  });
8737
8955
  })
8738
8956
  );
8957
+ var UpdateEntityOverageAllowedRequest$outboundSchema = z46.pipe(
8958
+ z46.object({
8959
+ featureId: z46.string(),
8960
+ enabled: z46._default(z46.boolean(), false)
8961
+ }),
8962
+ z46.transform((v) => {
8963
+ return remap(v, {
8964
+ featureId: "feature_id"
8965
+ });
8966
+ })
8967
+ );
8739
8968
  var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
8740
8969
  z46.object({
8741
8970
  spendLimits: z46.optional(
@@ -8743,12 +8972,16 @@ var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
8743
8972
  ),
8744
8973
  usageAlerts: z46.optional(
8745
8974
  z46.array(z46.lazy(() => UpdateEntityUsageAlertRequestBody$outboundSchema))
8975
+ ),
8976
+ overageAllowed: z46.optional(
8977
+ z46.array(z46.lazy(() => UpdateEntityOverageAllowedRequest$outboundSchema))
8746
8978
  )
8747
8979
  }),
8748
8980
  z46.transform((v) => {
8749
8981
  return remap(v, {
8750
8982
  spendLimits: "spend_limits",
8751
- usageAlerts: "usage_alerts"
8983
+ usageAlerts: "usage_alerts",
8984
+ overageAllowed: "overage_allowed"
8752
8985
  });
8753
8986
  })
8754
8987
  );
@@ -8900,6 +9133,17 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z46.pipe(
8900
9133
  });
8901
9134
  })
8902
9135
  );
9136
+ var UpdateEntityOverageAllowedResponse$inboundSchema = z46.pipe(
9137
+ z46.object({
9138
+ feature_id: string4(),
9139
+ enabled: z46._default(boolean2(), false)
9140
+ }),
9141
+ z46.transform((v) => {
9142
+ return remap(v, {
9143
+ "feature_id": "featureId"
9144
+ });
9145
+ })
9146
+ );
8903
9147
  var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
8904
9148
  z46.object({
8905
9149
  spend_limits: optional2(
@@ -8907,12 +9151,16 @@ var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
8907
9151
  ),
8908
9152
  usage_alerts: optional2(
8909
9153
  z46.array(z46.lazy(() => UpdateEntityUsageAlertResponse$inboundSchema))
9154
+ ),
9155
+ overage_allowed: optional2(
9156
+ z46.array(z46.lazy(() => UpdateEntityOverageAllowedResponse$inboundSchema))
8910
9157
  )
8911
9158
  }),
8912
9159
  z46.transform((v) => {
8913
9160
  return remap(v, {
8914
9161
  "spend_limits": "spendLimits",
8915
- "usage_alerts": "usageAlerts"
9162
+ "usage_alerts": "usageAlerts",
9163
+ "overage_allowed": "overageAllowed"
8916
9164
  });
8917
9165
  })
8918
9166
  );
@@ -9265,11 +9513,13 @@ var UpdatePlanExpiryDurationTypeRequest$outboundSchema = z48.enum(UpdatePlanExpi
9265
9513
  var UpdatePlanRolloverRequest$outboundSchema = z48.pipe(
9266
9514
  z48.object({
9267
9515
  max: z48.optional(z48.number()),
9516
+ maxPercentage: z48.optional(z48.number()),
9268
9517
  expiryDurationType: UpdatePlanExpiryDurationTypeRequest$outboundSchema,
9269
9518
  expiryDurationLength: z48.optional(z48.number())
9270
9519
  }),
9271
9520
  z48.transform((v) => {
9272
9521
  return remap(v, {
9522
+ maxPercentage: "max_percentage",
9273
9523
  expiryDurationType: "expiry_duration_type",
9274
9524
  expiryDurationLength: "expiry_duration_length"
9275
9525
  });
@@ -9454,11 +9704,13 @@ var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePla
9454
9704
  var UpdatePlanRolloverResponse$inboundSchema = z48.pipe(
9455
9705
  z48.object({
9456
9706
  max: nullable(number2()),
9707
+ max_percentage: z48.optional(z48.nullable(number2())),
9457
9708
  expiry_duration_type: UpdatePlanExpiryDurationTypeResponse$inboundSchema,
9458
9709
  expiry_duration_length: optional2(number2())
9459
9710
  }),
9460
9711
  z48.transform((v) => {
9461
9712
  return remap(v, {
9713
+ "max_percentage": "maxPercentage",
9462
9714
  "expiry_duration_type": "expiryDurationType",
9463
9715
  "expiry_duration_length": "expiryDurationLength"
9464
9716
  });
@@ -9735,7 +9987,8 @@ async function $do2(client, request, options) {
9735
9987
  var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set([
9736
9988
  "check",
9737
9989
  "track",
9738
- "getOrCreateCustomer"
9990
+ "getOrCreateCustomer",
9991
+ "getEntity"
9739
9992
  ]);
9740
9993
  var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
9741
9994
  var FAIL_OPEN_BODIES = {
@@ -9765,6 +10018,18 @@ var FAIL_OPEN_BODIES = {
9765
10018
  purchases: [],
9766
10019
  balances: {},
9767
10020
  flags: {}
10021
+ },
10022
+ getEntity: {
10023
+ id: null,
10024
+ name: null,
10025
+ customer_id: null,
10026
+ feature_id: null,
10027
+ created_at: 0,
10028
+ env: "live",
10029
+ subscriptions: [],
10030
+ purchases: [],
10031
+ balances: {},
10032
+ flags: {}
9768
10033
  }
9769
10034
  };
9770
10035
  var FailOpenHook = class {
@@ -14140,6 +14405,7 @@ var attachProrationOutboundSchema = import_v42.z.object({
14140
14405
  });
14141
14406
  var attachRolloverOutboundSchema = import_v42.z.object({
14142
14407
  max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
14408
+ max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
14143
14409
  expiry_duration_type: import_v42.z.string(),
14144
14410
  expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
14145
14411
  });
@@ -14240,6 +14506,7 @@ var attachProrationSchema = import_v42.z.object({
14240
14506
  var attachExpiryDurationTypeSchema = closedEnumSchema2;
14241
14507
  var attachRolloverSchema = import_v42.z.object({
14242
14508
  max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
14509
+ maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
14243
14510
  expiryDurationType: attachExpiryDurationTypeSchema,
14244
14511
  expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
14245
14512
  });
@@ -14330,6 +14597,10 @@ var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
14330
14597
  enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
14331
14598
  overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
14332
14599
  });
14600
+ var getOrCreateCustomerOverageAllowedSchema = import_v44.z.object({
14601
+ featureId: import_v44.z.string(),
14602
+ enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
14603
+ });
14333
14604
  var getOrCreateCustomerPurchaseLimitOutboundSchema = import_v44.z.object({
14334
14605
  interval: import_v44.z.string(),
14335
14606
  interval_count: import_v44.z.number(),
@@ -14340,7 +14611,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = import_v44.z.object({
14340
14611
  enabled: import_v44.z.boolean(),
14341
14612
  threshold: import_v44.z.number(),
14342
14613
  quantity: import_v44.z.number(),
14343
- purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional()
14614
+ purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional(),
14615
+ invoice_mode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
14344
14616
  });
14345
14617
  var getOrCreateCustomerSpendLimitOutboundSchema = import_v44.z.object({
14346
14618
  feature_id: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
@@ -14354,6 +14626,10 @@ var getOrCreateCustomerUsageAlertOutboundSchema = import_v44.z.object({
14354
14626
  threshold_type: import_v44.z.string(),
14355
14627
  name: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
14356
14628
  });
14629
+ var getOrCreateCustomerOverageAllowedOutboundSchema = import_v44.z.object({
14630
+ feature_id: import_v44.z.string(),
14631
+ enabled: import_v44.z.boolean()
14632
+ });
14357
14633
  var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
14358
14634
  auto_topups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupOutboundSchema), import_v44.z.undefined()]).optional(),
14359
14635
  spend_limits: import_v44.z.union([
@@ -14363,6 +14639,10 @@ var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
14363
14639
  usage_alerts: import_v44.z.union([
14364
14640
  import_v44.z.array(getOrCreateCustomerUsageAlertOutboundSchema),
14365
14641
  import_v44.z.undefined()
14642
+ ]).optional(),
14643
+ overage_allowed: import_v44.z.union([
14644
+ import_v44.z.array(getOrCreateCustomerOverageAllowedOutboundSchema),
14645
+ import_v44.z.undefined()
14366
14646
  ]).optional()
14367
14647
  });
14368
14648
  var getOrCreateCustomerParamsOutboundSchema = import_v44.z.object({
@@ -14390,7 +14670,8 @@ var getOrCreateCustomerAutoTopupSchema = import_v44.z.object({
14390
14670
  enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
14391
14671
  threshold: import_v44.z.number(),
14392
14672
  quantity: import_v44.z.number(),
14393
- purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional()
14673
+ purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional(),
14674
+ invoiceMode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
14394
14675
  });
14395
14676
  var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
14396
14677
  var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
@@ -14403,7 +14684,8 @@ var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
14403
14684
  var getOrCreateCustomerBillingControlsSchema = import_v44.z.object({
14404
14685
  autoTopups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupSchema), import_v44.z.undefined()]).optional(),
14405
14686
  spendLimits: import_v44.z.union([import_v44.z.array(getOrCreateCustomerSpendLimitSchema), import_v44.z.undefined()]).optional(),
14406
- usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional()
14687
+ usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional(),
14688
+ overageAllowed: import_v44.z.union([import_v44.z.array(getOrCreateCustomerOverageAllowedSchema), import_v44.z.undefined()]).optional()
14407
14689
  });
14408
14690
  var getOrCreateCustomerParamsSchema = import_v44.z.object({
14409
14691
  customerId: import_v44.z.string().nullable(),
@@ -14542,6 +14824,7 @@ var listPlansItemPriceSchema = import_v46.z.object({
14542
14824
  var listPlansExpiryDurationTypeSchema = openEnumSchema2;
14543
14825
  var listPlansRolloverSchema = import_v46.z.object({
14544
14826
  max: import_v46.z.number().nullable(),
14827
+ maxPercentage: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional().nullable(),
14545
14828
  expiryDurationType: listPlansExpiryDurationTypeSchema,
14546
14829
  expiryDurationLength: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
14547
14830
  });
@@ -14622,6 +14905,10 @@ var multiAttachSpendLimitSchema = import_v47.z.object({
14622
14905
  enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
14623
14906
  overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
14624
14907
  });
14908
+ var multiAttachOverageAllowedSchema = import_v47.z.object({
14909
+ featureId: import_v47.z.string(),
14910
+ enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
14911
+ });
14625
14912
  var multiAttachInvoiceSchema = import_v47.z.object({
14626
14913
  status: import_v47.z.string().nullable(),
14627
14914
  stripeId: import_v47.z.string(),
@@ -14660,6 +14947,7 @@ var multiAttachProrationOutboundSchema = import_v47.z.object({
14660
14947
  });
14661
14948
  var multiAttachRolloverOutboundSchema = import_v47.z.object({
14662
14949
  max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
14950
+ max_percentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
14663
14951
  expiry_duration_type: import_v47.z.string(),
14664
14952
  expiry_duration_length: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
14665
14953
  });
@@ -14714,9 +15002,14 @@ var multiAttachUsageAlertOutboundSchema = import_v47.z.object({
14714
15002
  threshold_type: import_v47.z.string(),
14715
15003
  name: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
14716
15004
  });
15005
+ var multiAttachOverageAllowedOutboundSchema = import_v47.z.object({
15006
+ feature_id: import_v47.z.string(),
15007
+ enabled: import_v47.z.boolean()
15008
+ });
14717
15009
  var multiAttachBillingControlsOutboundSchema = import_v47.z.object({
14718
15010
  spend_limits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitOutboundSchema), import_v47.z.undefined()]).optional(),
14719
- usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional()
15011
+ usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional(),
15012
+ overage_allowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedOutboundSchema), import_v47.z.undefined()]).optional()
14720
15013
  });
14721
15014
  var multiAttachEntityDataOutboundSchema = import_v47.z.object({
14722
15015
  feature_id: import_v47.z.string(),
@@ -14760,6 +15053,7 @@ var multiAttachProrationSchema = import_v47.z.object({
14760
15053
  var multiAttachExpiryDurationTypeSchema = closedEnumSchema4;
14761
15054
  var multiAttachRolloverSchema = import_v47.z.object({
14762
15055
  max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
15056
+ maxPercentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
14763
15057
  expiryDurationType: multiAttachExpiryDurationTypeSchema,
14764
15058
  expiryDurationLength: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
14765
15059
  });
@@ -14800,7 +15094,8 @@ var multiAttachUsageAlertSchema = import_v47.z.object({
14800
15094
  });
14801
15095
  var multiAttachBillingControlsSchema = import_v47.z.object({
14802
15096
  spendLimits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitSchema), import_v47.z.undefined()]).optional(),
14803
- usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional()
15097
+ usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional(),
15098
+ overageAllowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedSchema), import_v47.z.undefined()]).optional()
14804
15099
  });
14805
15100
  var multiAttachEntityDataSchema = import_v47.z.object({
14806
15101
  featureId: import_v47.z.string(),
@@ -15008,6 +15303,7 @@ var previewAttachProrationOutboundSchema = import_v49.z.object({
15008
15303
  });
15009
15304
  var previewAttachRolloverOutboundSchema = import_v49.z.object({
15010
15305
  max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
15306
+ max_percentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
15011
15307
  expiry_duration_type: import_v49.z.string(),
15012
15308
  expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
15013
15309
  });
@@ -15112,6 +15408,7 @@ var previewAttachProrationSchema = import_v49.z.object({
15112
15408
  var previewAttachExpiryDurationTypeSchema = closedEnumSchema5;
15113
15409
  var previewAttachRolloverSchema = import_v49.z.object({
15114
15410
  max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
15411
+ maxPercentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
15115
15412
  expiryDurationType: previewAttachExpiryDurationTypeSchema,
15116
15413
  expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
15117
15414
  });
@@ -15221,6 +15518,10 @@ var previewMultiAttachSpendLimitSchema = import_v410.z.object({
15221
15518
  enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
15222
15519
  overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
15223
15520
  });
15521
+ var previewMultiAttachOverageAllowedSchema = import_v410.z.object({
15522
+ featureId: import_v410.z.string(),
15523
+ enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
15524
+ });
15224
15525
  var previewMultiAttachDiscountSchema = import_v410.z.object({
15225
15526
  amountOff: import_v410.z.number(),
15226
15527
  percentOff: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
@@ -15322,6 +15623,7 @@ var previewMultiAttachProrationOutboundSchema = import_v410.z.object({
15322
15623
  });
15323
15624
  var previewMultiAttachRolloverOutboundSchema = import_v410.z.object({
15324
15625
  max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
15626
+ max_percentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
15325
15627
  expiry_duration_type: import_v410.z.string(),
15326
15628
  expiry_duration_length: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
15327
15629
  });
@@ -15379,9 +15681,17 @@ var previewMultiAttachUsageAlertOutboundSchema = import_v410.z.object({
15379
15681
  threshold_type: import_v410.z.string(),
15380
15682
  name: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
15381
15683
  });
15684
+ var previewMultiAttachOverageAllowedOutboundSchema = import_v410.z.object({
15685
+ feature_id: import_v410.z.string(),
15686
+ enabled: import_v410.z.boolean()
15687
+ });
15382
15688
  var previewMultiAttachBillingControlsOutboundSchema = import_v410.z.object({
15383
15689
  spend_limits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitOutboundSchema), import_v410.z.undefined()]).optional(),
15384
- usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional()
15690
+ usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional(),
15691
+ overage_allowed: import_v410.z.union([
15692
+ import_v410.z.array(previewMultiAttachOverageAllowedOutboundSchema),
15693
+ import_v410.z.undefined()
15694
+ ]).optional()
15385
15695
  });
15386
15696
  var previewMultiAttachEntityDataOutboundSchema = import_v410.z.object({
15387
15697
  feature_id: import_v410.z.string(),
@@ -15426,6 +15736,7 @@ var previewMultiAttachProrationSchema = import_v410.z.object({
15426
15736
  var previewMultiAttachExpiryDurationTypeSchema = closedEnumSchema6;
15427
15737
  var previewMultiAttachRolloverSchema = import_v410.z.object({
15428
15738
  max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
15739
+ maxPercentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
15429
15740
  expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
15430
15741
  expiryDurationLength: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
15431
15742
  });
@@ -15469,7 +15780,8 @@ var previewMultiAttachUsageAlertSchema = import_v410.z.object({
15469
15780
  });
15470
15781
  var previewMultiAttachBillingControlsSchema = import_v410.z.object({
15471
15782
  spendLimits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitSchema), import_v410.z.undefined()]).optional(),
15472
- usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional()
15783
+ usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional(),
15784
+ overageAllowed: import_v410.z.union([import_v410.z.array(previewMultiAttachOverageAllowedSchema), import_v410.z.undefined()]).optional()
15473
15785
  });
15474
15786
  var previewMultiAttachEntityDataSchema = import_v410.z.object({
15475
15787
  featureId: import_v410.z.string(),
@@ -15665,6 +15977,7 @@ var previewUpdateProrationOutboundSchema = import_v411.z.object({
15665
15977
  });
15666
15978
  var previewUpdateRolloverOutboundSchema = import_v411.z.object({
15667
15979
  max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
15980
+ max_percentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
15668
15981
  expiry_duration_type: import_v411.z.string(),
15669
15982
  expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
15670
15983
  });
@@ -15749,6 +16062,7 @@ var previewUpdateProrationSchema = import_v411.z.object({
15749
16062
  var previewUpdateExpiryDurationTypeSchema = closedEnumSchema7;
15750
16063
  var previewUpdateRolloverSchema = import_v411.z.object({
15751
16064
  max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
16065
+ maxPercentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
15752
16066
  expiryDurationType: previewUpdateExpiryDurationTypeSchema,
15753
16067
  expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
15754
16068
  });
@@ -15912,6 +16226,7 @@ var setupPaymentProrationOutboundSchema = import_v413.z.object({
15912
16226
  });
15913
16227
  var setupPaymentRolloverOutboundSchema = import_v413.z.object({
15914
16228
  max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
16229
+ max_percentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
15915
16230
  expiry_duration_type: import_v413.z.string(),
15916
16231
  expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
15917
16232
  });
@@ -16002,6 +16317,7 @@ var setupPaymentProrationSchema = import_v413.z.object({
16002
16317
  var setupPaymentExpiryDurationTypeSchema = closedEnumSchema8;
16003
16318
  var setupPaymentRolloverSchema = import_v413.z.object({
16004
16319
  max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
16320
+ maxPercentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
16005
16321
  expiryDurationType: setupPaymentExpiryDurationTypeSchema,
16006
16322
  expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
16007
16323
  });
@@ -16112,6 +16428,7 @@ var billingUpdateProrationOutboundSchema = import_v414.z.object({
16112
16428
  });
16113
16429
  var billingUpdateRolloverOutboundSchema = import_v414.z.object({
16114
16430
  max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
16431
+ max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
16115
16432
  expiry_duration_type: import_v414.z.string(),
16116
16433
  expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
16117
16434
  });
@@ -16192,6 +16509,7 @@ var billingUpdateProrationSchema = import_v414.z.object({
16192
16509
  var billingUpdateExpiryDurationTypeSchema = closedEnumSchema9;
16193
16510
  var billingUpdateRolloverSchema = import_v414.z.object({
16194
16511
  max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
16512
+ maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
16195
16513
  expiryDurationType: billingUpdateExpiryDurationTypeSchema,
16196
16514
  expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
16197
16515
  });