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
@@ -86,8 +86,8 @@ var SDK_METADATA = {
86
86
  language: "typescript",
87
87
  openapiDocVersion: "2.2.0",
88
88
  sdkVersion: "0.10.17",
89
- genVersion: "2.869.25",
90
- userAgent: "speakeasy-sdk/typescript 0.10.17 2.869.25 2.2.0 @useautumn/sdk"
89
+ genVersion: "2.879.6",
90
+ userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk"
91
91
  };
92
92
 
93
93
  // ../sdk/src/lib/http.ts
@@ -1009,8 +1009,8 @@ function applyBearer(state, spec) {
1009
1009
  state.headers[spec.fieldName] = value;
1010
1010
  }
1011
1011
  }
1012
- function resolveGlobalSecurity(security) {
1013
- return resolveSecurity(
1012
+ function resolveGlobalSecurity(security, allowedFields) {
1013
+ let inputs = [
1014
1014
  [
1015
1015
  {
1016
1016
  fieldName: "Authorization",
@@ -1018,7 +1018,16 @@ function resolveGlobalSecurity(security) {
1018
1018
  value: security?.secretKey ?? env().AUTUMN_SECRET_KEY
1019
1019
  }
1020
1020
  ]
1021
- );
1021
+ ];
1022
+ if (allowedFields) {
1023
+ inputs = allowedFields.map((i) => {
1024
+ if (i < 0 || i >= inputs.length) {
1025
+ throw new RangeError(`invalid allowedFields index ${i}`);
1026
+ }
1027
+ return inputs[i];
1028
+ });
1029
+ }
1030
+ return resolveSecurity(...inputs);
1022
1031
  }
1023
1032
  async function extractSecurity(sec) {
1024
1033
  if (sec == null) {
@@ -1565,11 +1574,13 @@ var AttachExpiryDurationType$outboundSchema = z10.enum(AttachExpiryDurationType)
1565
1574
  var AttachRollover$outboundSchema = z10.pipe(
1566
1575
  z10.object({
1567
1576
  max: z10.optional(z10.number()),
1577
+ maxPercentage: z10.optional(z10.number()),
1568
1578
  expiryDurationType: AttachExpiryDurationType$outboundSchema,
1569
1579
  expiryDurationLength: z10.optional(z10.number())
1570
1580
  }),
1571
1581
  z10.transform((v) => {
1572
1582
  return remap(v, {
1583
+ maxPercentage: "max_percentage",
1573
1584
  expiryDurationType: "expiry_duration_type",
1574
1585
  expiryDurationLength: "expiry_duration_length"
1575
1586
  });
@@ -2094,11 +2105,13 @@ var BillingUpdateExpiryDurationType$outboundSchema = z12.enum(BillingUpdateExpir
2094
2105
  var BillingUpdateRollover$outboundSchema = z12.pipe(
2095
2106
  z12.object({
2096
2107
  max: z12.optional(z12.number()),
2108
+ maxPercentage: z12.optional(z12.number()),
2097
2109
  expiryDurationType: BillingUpdateExpiryDurationType$outboundSchema,
2098
2110
  expiryDurationLength: z12.optional(z12.number())
2099
2111
  }),
2100
2112
  z12.transform((v) => {
2101
2113
  return remap(v, {
2114
+ maxPercentage: "max_percentage",
2102
2115
  expiryDurationType: "expiry_duration_type",
2103
2116
  expiryDurationLength: "expiry_duration_length"
2104
2117
  });
@@ -2440,11 +2453,19 @@ var ProductDisplay$inboundSchema = z13.pipe(
2440
2453
  })
2441
2454
  );
2442
2455
  var RolloverDuration$inboundSchema = inboundSchema(RolloverDuration);
2443
- var CheckRollover$inboundSchema = z13.object({
2444
- max: nullable(number2()),
2445
- duration: z13._default(RolloverDuration$inboundSchema, "month"),
2446
- length: number2()
2447
- });
2456
+ var CheckRollover$inboundSchema = z13.pipe(
2457
+ z13.object({
2458
+ max: z13.optional(z13.nullable(number2())),
2459
+ max_percentage: z13.optional(z13.nullable(number2())),
2460
+ duration: z13._default(RolloverDuration$inboundSchema, "month"),
2461
+ length: number2()
2462
+ }),
2463
+ z13.transform((v) => {
2464
+ return remap(v, {
2465
+ "max_percentage": "maxPercentage"
2466
+ });
2467
+ })
2468
+ );
2448
2469
  var CheckOnIncrease$inboundSchema = inboundSchema(CheckOnIncrease);
2449
2470
  var CheckOnDecrease$inboundSchema = inboundSchema(CheckOnDecrease);
2450
2471
  var Config$inboundSchema = z13.pipe(
@@ -2683,12 +2704,14 @@ var CustomerDataAutoTopup$outboundSchema = z15.pipe(
2683
2704
  quantity: z15.number(),
2684
2705
  purchaseLimit: z15.optional(
2685
2706
  z15.lazy(() => CustomerDataPurchaseLimit$outboundSchema)
2686
- )
2707
+ ),
2708
+ invoiceMode: z15.optional(z15.boolean())
2687
2709
  }),
2688
2710
  z15.transform((v) => {
2689
2711
  return remap(v, {
2690
2712
  featureId: "feature_id",
2691
- purchaseLimit: "purchase_limit"
2713
+ purchaseLimit: "purchase_limit",
2714
+ invoiceMode: "invoice_mode"
2692
2715
  });
2693
2716
  })
2694
2717
  );
@@ -2721,6 +2744,17 @@ var CustomerDataUsageAlert$outboundSchema = z15.pipe(
2721
2744
  });
2722
2745
  })
2723
2746
  );
2747
+ var CustomerDataOverageAllowed$outboundSchema = z15.pipe(
2748
+ z15.object({
2749
+ featureId: z15.string(),
2750
+ enabled: z15._default(z15.boolean(), false)
2751
+ }),
2752
+ z15.transform((v) => {
2753
+ return remap(v, {
2754
+ featureId: "feature_id"
2755
+ });
2756
+ })
2757
+ );
2724
2758
  var CustomerDataBillingControls$outboundSchema = z15.pipe(
2725
2759
  z15.object({
2726
2760
  autoTopups: z15.optional(
@@ -2731,13 +2765,17 @@ var CustomerDataBillingControls$outboundSchema = z15.pipe(
2731
2765
  ),
2732
2766
  usageAlerts: z15.optional(
2733
2767
  z15.array(z15.lazy(() => CustomerDataUsageAlert$outboundSchema))
2768
+ ),
2769
+ overageAllowed: z15.optional(
2770
+ z15.array(z15.lazy(() => CustomerDataOverageAllowed$outboundSchema))
2734
2771
  )
2735
2772
  }),
2736
2773
  z15.transform((v) => {
2737
2774
  return remap(v, {
2738
2775
  autoTopups: "auto_topups",
2739
2776
  spendLimits: "spend_limits",
2740
- usageAlerts: "usage_alerts"
2777
+ usageAlerts: "usage_alerts",
2778
+ overageAllowed: "overage_allowed"
2741
2779
  });
2742
2780
  })
2743
2781
  );
@@ -2948,11 +2986,13 @@ var ExpiryDurationType$inboundSchema = inboundSchema(ExpiryDurationType);
2948
2986
  var PlanRollover$inboundSchema = z16.pipe(
2949
2987
  z16.object({
2950
2988
  max: nullable(number2()),
2989
+ max_percentage: z16.optional(z16.nullable(number2())),
2951
2990
  expiry_duration_type: ExpiryDurationType$inboundSchema,
2952
2991
  expiry_duration_length: optional2(number2())
2953
2992
  }),
2954
2993
  z16.transform((v) => {
2955
2994
  return remap(v, {
2995
+ "max_percentage": "maxPercentage",
2956
2996
  "expiry_duration_type": "expiryDurationType",
2957
2997
  "expiry_duration_length": "expiryDurationLength"
2958
2998
  });
@@ -3091,6 +3131,17 @@ var CreateEntityUsageAlertRequestBody$outboundSchema = z17.pipe(
3091
3131
  });
3092
3132
  })
3093
3133
  );
3134
+ var CreateEntityOverageAllowedRequest$outboundSchema = z17.pipe(
3135
+ z17.object({
3136
+ featureId: z17.string(),
3137
+ enabled: z17._default(z17.boolean(), false)
3138
+ }),
3139
+ z17.transform((v) => {
3140
+ return remap(v, {
3141
+ featureId: "feature_id"
3142
+ });
3143
+ })
3144
+ );
3094
3145
  var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
3095
3146
  z17.object({
3096
3147
  spendLimits: z17.optional(
@@ -3098,12 +3149,16 @@ var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
3098
3149
  ),
3099
3150
  usageAlerts: z17.optional(
3100
3151
  z17.array(z17.lazy(() => CreateEntityUsageAlertRequestBody$outboundSchema))
3152
+ ),
3153
+ overageAllowed: z17.optional(
3154
+ z17.array(z17.lazy(() => CreateEntityOverageAllowedRequest$outboundSchema))
3101
3155
  )
3102
3156
  }),
3103
3157
  z17.transform((v) => {
3104
3158
  return remap(v, {
3105
3159
  spendLimits: "spend_limits",
3106
- usageAlerts: "usage_alerts"
3160
+ usageAlerts: "usage_alerts",
3161
+ overageAllowed: "overage_allowed"
3107
3162
  });
3108
3163
  })
3109
3164
  );
@@ -3260,6 +3315,17 @@ var CreateEntityUsageAlertResponse$inboundSchema = z17.pipe(
3260
3315
  });
3261
3316
  })
3262
3317
  );
3318
+ var CreateEntityOverageAllowedResponse$inboundSchema = z17.pipe(
3319
+ z17.object({
3320
+ feature_id: string4(),
3321
+ enabled: z17._default(boolean2(), false)
3322
+ }),
3323
+ z17.transform((v) => {
3324
+ return remap(v, {
3325
+ "feature_id": "featureId"
3326
+ });
3327
+ })
3328
+ );
3263
3329
  var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
3264
3330
  z17.object({
3265
3331
  spend_limits: optional2(
@@ -3267,12 +3333,16 @@ var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
3267
3333
  ),
3268
3334
  usage_alerts: optional2(
3269
3335
  z17.array(z17.lazy(() => CreateEntityUsageAlertResponse$inboundSchema))
3336
+ ),
3337
+ overage_allowed: optional2(
3338
+ z17.array(z17.lazy(() => CreateEntityOverageAllowedResponse$inboundSchema))
3270
3339
  )
3271
3340
  }),
3272
3341
  z17.transform((v) => {
3273
3342
  return remap(v, {
3274
3343
  "spend_limits": "spendLimits",
3275
- "usage_alerts": "usageAlerts"
3344
+ "usage_alerts": "usageAlerts",
3345
+ "overage_allowed": "overageAllowed"
3276
3346
  });
3277
3347
  })
3278
3348
  );
@@ -3622,11 +3692,13 @@ var CreatePlanExpiryDurationTypeRequest$outboundSchema = z19.enum(CreatePlanExpi
3622
3692
  var CreatePlanRolloverRequest$outboundSchema = z19.pipe(
3623
3693
  z19.object({
3624
3694
  max: z19.optional(z19.number()),
3695
+ maxPercentage: z19.optional(z19.number()),
3625
3696
  expiryDurationType: CreatePlanExpiryDurationTypeRequest$outboundSchema,
3626
3697
  expiryDurationLength: z19.optional(z19.number())
3627
3698
  }),
3628
3699
  z19.transform((v) => {
3629
3700
  return remap(v, {
3701
+ maxPercentage: "max_percentage",
3630
3702
  expiryDurationType: "expiry_duration_type",
3631
3703
  expiryDurationLength: "expiry_duration_length"
3632
3704
  });
@@ -3803,11 +3875,13 @@ var CreatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePla
3803
3875
  var CreatePlanRolloverResponse$inboundSchema = z19.pipe(
3804
3876
  z19.object({
3805
3877
  max: nullable(number2()),
3878
+ max_percentage: z19.optional(z19.nullable(number2())),
3806
3879
  expiry_duration_type: CreatePlanExpiryDurationTypeResponse$inboundSchema,
3807
3880
  expiry_duration_length: optional2(number2())
3808
3881
  }),
3809
3882
  z19.transform((v) => {
3810
3883
  return remap(v, {
3884
+ "max_percentage": "maxPercentage",
3811
3885
  "expiry_duration_type": "expiryDurationType",
3812
3886
  "expiry_duration_length": "expiryDurationLength"
3813
3887
  });
@@ -3991,12 +4065,14 @@ var CustomerAutoTopup$inboundSchema = z21.pipe(
3991
4065
  quantity: number2(),
3992
4066
  purchase_limit: optional2(
3993
4067
  z21.lazy(() => CustomerPurchaseLimit$inboundSchema)
3994
- )
4068
+ ),
4069
+ invoice_mode: optional2(boolean2())
3995
4070
  }),
3996
4071
  z21.transform((v) => {
3997
4072
  return remap(v, {
3998
4073
  "feature_id": "featureId",
3999
- "purchase_limit": "purchaseLimit"
4074
+ "purchase_limit": "purchaseLimit",
4075
+ "invoice_mode": "invoiceMode"
4000
4076
  });
4001
4077
  })
4002
4078
  );
@@ -4029,6 +4105,17 @@ var CustomerUsageAlert$inboundSchema = z21.pipe(
4029
4105
  });
4030
4106
  })
4031
4107
  );
4108
+ var CustomerOverageAllowed$inboundSchema = z21.pipe(
4109
+ z21.object({
4110
+ feature_id: string4(),
4111
+ enabled: z21._default(boolean2(), false)
4112
+ }),
4113
+ z21.transform((v) => {
4114
+ return remap(v, {
4115
+ "feature_id": "featureId"
4116
+ });
4117
+ })
4118
+ );
4032
4119
  var CustomerBillingControls$inboundSchema = z21.pipe(
4033
4120
  z21.object({
4034
4121
  auto_topups: optional2(
@@ -4039,13 +4126,17 @@ var CustomerBillingControls$inboundSchema = z21.pipe(
4039
4126
  ),
4040
4127
  usage_alerts: optional2(
4041
4128
  z21.array(z21.lazy(() => CustomerUsageAlert$inboundSchema))
4129
+ ),
4130
+ overage_allowed: optional2(
4131
+ z21.array(z21.lazy(() => CustomerOverageAllowed$inboundSchema))
4042
4132
  )
4043
4133
  }),
4044
4134
  z21.transform((v) => {
4045
4135
  return remap(v, {
4046
4136
  "auto_topups": "autoTopups",
4047
4137
  "spend_limits": "spendLimits",
4048
- "usage_alerts": "usageAlerts"
4138
+ "usage_alerts": "usageAlerts",
4139
+ "overage_allowed": "overageAllowed"
4049
4140
  });
4050
4141
  })
4051
4142
  );
@@ -4584,6 +4675,17 @@ var GetEntityUsageAlert$inboundSchema = z28.pipe(
4584
4675
  });
4585
4676
  })
4586
4677
  );
4678
+ var GetEntityOverageAllowed$inboundSchema = z28.pipe(
4679
+ z28.object({
4680
+ feature_id: string4(),
4681
+ enabled: z28._default(boolean2(), false)
4682
+ }),
4683
+ z28.transform((v) => {
4684
+ return remap(v, {
4685
+ "feature_id": "featureId"
4686
+ });
4687
+ })
4688
+ );
4587
4689
  var GetEntityBillingControls$inboundSchema = z28.pipe(
4588
4690
  z28.object({
4589
4691
  spend_limits: optional2(
@@ -4591,12 +4693,16 @@ var GetEntityBillingControls$inboundSchema = z28.pipe(
4591
4693
  ),
4592
4694
  usage_alerts: optional2(
4593
4695
  z28.array(z28.lazy(() => GetEntityUsageAlert$inboundSchema))
4696
+ ),
4697
+ overage_allowed: optional2(
4698
+ z28.array(z28.lazy(() => GetEntityOverageAllowed$inboundSchema))
4594
4699
  )
4595
4700
  }),
4596
4701
  z28.transform((v) => {
4597
4702
  return remap(v, {
4598
4703
  "spend_limits": "spendLimits",
4599
- "usage_alerts": "usageAlerts"
4704
+ "usage_alerts": "usageAlerts",
4705
+ "overage_allowed": "overageAllowed"
4600
4706
  });
4601
4707
  })
4602
4708
  );
@@ -4736,12 +4842,14 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z30.pipe(
4736
4842
  quantity: z30.number(),
4737
4843
  purchaseLimit: z30.optional(
4738
4844
  z30.lazy(() => GetOrCreateCustomerPurchaseLimit$outboundSchema)
4739
- )
4845
+ ),
4846
+ invoiceMode: z30.optional(z30.boolean())
4740
4847
  }),
4741
4848
  z30.transform((v) => {
4742
4849
  return remap(v, {
4743
4850
  featureId: "feature_id",
4744
- purchaseLimit: "purchase_limit"
4851
+ purchaseLimit: "purchase_limit",
4852
+ invoiceMode: "invoice_mode"
4745
4853
  });
4746
4854
  })
4747
4855
  );
@@ -4774,6 +4882,17 @@ var GetOrCreateCustomerUsageAlert$outboundSchema = z30.pipe(
4774
4882
  });
4775
4883
  })
4776
4884
  );
4885
+ var GetOrCreateCustomerOverageAllowed$outboundSchema = z30.pipe(
4886
+ z30.object({
4887
+ featureId: z30.string(),
4888
+ enabled: z30._default(z30.boolean(), false)
4889
+ }),
4890
+ z30.transform((v) => {
4891
+ return remap(v, {
4892
+ featureId: "feature_id"
4893
+ });
4894
+ })
4895
+ );
4777
4896
  var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
4778
4897
  z30.object({
4779
4898
  autoTopups: z30.optional(
@@ -4784,13 +4903,17 @@ var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
4784
4903
  ),
4785
4904
  usageAlerts: z30.optional(
4786
4905
  z30.array(z30.lazy(() => GetOrCreateCustomerUsageAlert$outboundSchema))
4906
+ ),
4907
+ overageAllowed: z30.optional(
4908
+ z30.array(z30.lazy(() => GetOrCreateCustomerOverageAllowed$outboundSchema))
4787
4909
  )
4788
4910
  }),
4789
4911
  z30.transform((v) => {
4790
4912
  return remap(v, {
4791
4913
  autoTopups: "auto_topups",
4792
4914
  spendLimits: "spend_limits",
4793
- usageAlerts: "usage_alerts"
4915
+ usageAlerts: "usage_alerts",
4916
+ overageAllowed: "overage_allowed"
4794
4917
  });
4795
4918
  })
4796
4919
  );
@@ -5015,11 +5138,13 @@ var GetPlanExpiryDurationType$inboundSchema = inboundSchema(GetPlanExpiryDuratio
5015
5138
  var GetPlanRollover$inboundSchema = z31.pipe(
5016
5139
  z31.object({
5017
5140
  max: nullable(number2()),
5141
+ max_percentage: z31.optional(z31.nullable(number2())),
5018
5142
  expiry_duration_type: GetPlanExpiryDurationType$inboundSchema,
5019
5143
  expiry_duration_length: optional2(number2())
5020
5144
  }),
5021
5145
  z31.transform((v) => {
5022
5146
  return remap(v, {
5147
+ "max_percentage": "maxPercentage",
5023
5148
  "expiry_duration_type": "expiryDurationType",
5024
5149
  "expiry_duration_length": "expiryDurationLength"
5025
5150
  });
@@ -5209,12 +5334,14 @@ var ListCustomersAutoTopup$inboundSchema = z32.pipe(
5209
5334
  quantity: number2(),
5210
5335
  purchase_limit: optional2(
5211
5336
  z32.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
5212
- )
5337
+ ),
5338
+ invoice_mode: optional2(boolean2())
5213
5339
  }),
5214
5340
  z32.transform((v) => {
5215
5341
  return remap(v, {
5216
5342
  "feature_id": "featureId",
5217
- "purchase_limit": "purchaseLimit"
5343
+ "purchase_limit": "purchaseLimit",
5344
+ "invoice_mode": "invoiceMode"
5218
5345
  });
5219
5346
  })
5220
5347
  );
@@ -5247,6 +5374,17 @@ var ListCustomersUsageAlert$inboundSchema = z32.pipe(
5247
5374
  });
5248
5375
  })
5249
5376
  );
5377
+ var ListCustomersOverageAllowed$inboundSchema = z32.pipe(
5378
+ z32.object({
5379
+ feature_id: string4(),
5380
+ enabled: z32._default(boolean2(), false)
5381
+ }),
5382
+ z32.transform((v) => {
5383
+ return remap(v, {
5384
+ "feature_id": "featureId"
5385
+ });
5386
+ })
5387
+ );
5250
5388
  var ListCustomersBillingControls$inboundSchema = z32.pipe(
5251
5389
  z32.object({
5252
5390
  auto_topups: optional2(
@@ -5257,13 +5395,17 @@ var ListCustomersBillingControls$inboundSchema = z32.pipe(
5257
5395
  ),
5258
5396
  usage_alerts: optional2(
5259
5397
  z32.array(z32.lazy(() => ListCustomersUsageAlert$inboundSchema))
5398
+ ),
5399
+ overage_allowed: optional2(
5400
+ z32.array(z32.lazy(() => ListCustomersOverageAllowed$inboundSchema))
5260
5401
  )
5261
5402
  }),
5262
5403
  z32.transform((v) => {
5263
5404
  return remap(v, {
5264
5405
  "auto_topups": "autoTopups",
5265
5406
  "spend_limits": "spendLimits",
5266
- "usage_alerts": "usageAlerts"
5407
+ "usage_alerts": "usageAlerts",
5408
+ "overage_allowed": "overageAllowed"
5267
5409
  });
5268
5410
  })
5269
5411
  );
@@ -5718,11 +5860,13 @@ var ListPlansExpiryDurationType$inboundSchema = inboundSchema(ListPlansExpiryDur
5718
5860
  var ListPlansRollover$inboundSchema = z35.pipe(
5719
5861
  z35.object({
5720
5862
  max: nullable(number2()),
5863
+ max_percentage: z35.optional(z35.nullable(number2())),
5721
5864
  expiry_duration_type: ListPlansExpiryDurationType$inboundSchema,
5722
5865
  expiry_duration_length: optional2(number2())
5723
5866
  }),
5724
5867
  z35.transform((v) => {
5725
5868
  return remap(v, {
5869
+ "max_percentage": "maxPercentage",
5726
5870
  "expiry_duration_type": "expiryDurationType",
5727
5871
  "expiry_duration_length": "expiryDurationLength"
5728
5872
  });
@@ -5966,11 +6110,13 @@ var MultiAttachExpiryDurationType$outboundSchema = z36.enum(MultiAttachExpiryDur
5966
6110
  var MultiAttachRollover$outboundSchema = z36.pipe(
5967
6111
  z36.object({
5968
6112
  max: z36.optional(z36.number()),
6113
+ maxPercentage: z36.optional(z36.number()),
5969
6114
  expiryDurationType: MultiAttachExpiryDurationType$outboundSchema,
5970
6115
  expiryDurationLength: z36.optional(z36.number())
5971
6116
  }),
5972
6117
  z36.transform((v) => {
5973
6118
  return remap(v, {
6119
+ maxPercentage: "max_percentage",
5974
6120
  expiryDurationType: "expiry_duration_type",
5975
6121
  expiryDurationLength: "expiry_duration_length"
5976
6122
  });
@@ -6097,6 +6243,17 @@ var MultiAttachUsageAlert$outboundSchema = z36.pipe(
6097
6243
  });
6098
6244
  })
6099
6245
  );
6246
+ var MultiAttachOverageAllowed$outboundSchema = z36.pipe(
6247
+ z36.object({
6248
+ featureId: z36.string(),
6249
+ enabled: z36._default(z36.boolean(), false)
6250
+ }),
6251
+ z36.transform((v) => {
6252
+ return remap(v, {
6253
+ featureId: "feature_id"
6254
+ });
6255
+ })
6256
+ );
6100
6257
  var MultiAttachBillingControls$outboundSchema = z36.pipe(
6101
6258
  z36.object({
6102
6259
  spendLimits: z36.optional(
@@ -6104,12 +6261,16 @@ var MultiAttachBillingControls$outboundSchema = z36.pipe(
6104
6261
  ),
6105
6262
  usageAlerts: z36.optional(
6106
6263
  z36.array(z36.lazy(() => MultiAttachUsageAlert$outboundSchema))
6264
+ ),
6265
+ overageAllowed: z36.optional(
6266
+ z36.array(z36.lazy(() => MultiAttachOverageAllowed$outboundSchema))
6107
6267
  )
6108
6268
  }),
6109
6269
  z36.transform((v) => {
6110
6270
  return remap(v, {
6111
6271
  spendLimits: "spend_limits",
6112
- usageAlerts: "usage_alerts"
6272
+ usageAlerts: "usage_alerts",
6273
+ overageAllowed: "overage_allowed"
6113
6274
  });
6114
6275
  })
6115
6276
  );
@@ -6403,11 +6564,13 @@ var PreviewAttachExpiryDurationType$outboundSchema = z38.enum(PreviewAttachExpir
6403
6564
  var PreviewAttachRollover$outboundSchema = z38.pipe(
6404
6565
  z38.object({
6405
6566
  max: z38.optional(z38.number()),
6567
+ maxPercentage: z38.optional(z38.number()),
6406
6568
  expiryDurationType: PreviewAttachExpiryDurationType$outboundSchema,
6407
6569
  expiryDurationLength: z38.optional(z38.number())
6408
6570
  }),
6409
6571
  z38.transform((v) => {
6410
6572
  return remap(v, {
6573
+ maxPercentage: "max_percentage",
6411
6574
  expiryDurationType: "expiry_duration_type",
6412
6575
  expiryDurationLength: "expiry_duration_length"
6413
6576
  });
@@ -6951,11 +7114,13 @@ var PreviewMultiAttachExpiryDurationType$outboundSchema = z39.enum(PreviewMultiA
6951
7114
  var PreviewMultiAttachRollover$outboundSchema = z39.pipe(
6952
7115
  z39.object({
6953
7116
  max: z39.optional(z39.number()),
7117
+ maxPercentage: z39.optional(z39.number()),
6954
7118
  expiryDurationType: PreviewMultiAttachExpiryDurationType$outboundSchema,
6955
7119
  expiryDurationLength: z39.optional(z39.number())
6956
7120
  }),
6957
7121
  z39.transform((v) => {
6958
7122
  return remap(v, {
7123
+ maxPercentage: "max_percentage",
6959
7124
  expiryDurationType: "expiry_duration_type",
6960
7125
  expiryDurationLength: "expiry_duration_length"
6961
7126
  });
@@ -7095,6 +7260,17 @@ var PreviewMultiAttachUsageAlert$outboundSchema = z39.pipe(
7095
7260
  });
7096
7261
  })
7097
7262
  );
7263
+ var PreviewMultiAttachOverageAllowed$outboundSchema = z39.pipe(
7264
+ z39.object({
7265
+ featureId: z39.string(),
7266
+ enabled: z39._default(z39.boolean(), false)
7267
+ }),
7268
+ z39.transform((v) => {
7269
+ return remap(v, {
7270
+ featureId: "feature_id"
7271
+ });
7272
+ })
7273
+ );
7098
7274
  var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
7099
7275
  z39.object({
7100
7276
  spendLimits: z39.optional(
@@ -7102,12 +7278,16 @@ var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
7102
7278
  ),
7103
7279
  usageAlerts: z39.optional(
7104
7280
  z39.array(z39.lazy(() => PreviewMultiAttachUsageAlert$outboundSchema))
7281
+ ),
7282
+ overageAllowed: z39.optional(
7283
+ z39.array(z39.lazy(() => PreviewMultiAttachOverageAllowed$outboundSchema))
7105
7284
  )
7106
7285
  }),
7107
7286
  z39.transform((v) => {
7108
7287
  return remap(v, {
7109
7288
  spendLimits: "spend_limits",
7110
- usageAlerts: "usage_alerts"
7289
+ usageAlerts: "usage_alerts",
7290
+ overageAllowed: "overage_allowed"
7111
7291
  });
7112
7292
  })
7113
7293
  );
@@ -7563,11 +7743,13 @@ var PreviewUpdateExpiryDurationType$outboundSchema = z40.enum(PreviewUpdateExpir
7563
7743
  var PreviewUpdateRollover$outboundSchema = z40.pipe(
7564
7744
  z40.object({
7565
7745
  max: z40.optional(z40.number()),
7746
+ maxPercentage: z40.optional(z40.number()),
7566
7747
  expiryDurationType: PreviewUpdateExpiryDurationType$outboundSchema,
7567
7748
  expiryDurationLength: z40.optional(z40.number())
7568
7749
  }),
7569
7750
  z40.transform((v) => {
7570
7751
  return remap(v, {
7752
+ maxPercentage: "max_percentage",
7571
7753
  expiryDurationType: "expiry_duration_type",
7572
7754
  expiryDurationLength: "expiry_duration_length"
7573
7755
  });
@@ -8083,11 +8265,13 @@ var SetupPaymentExpiryDurationType$outboundSchema = z42.enum(SetupPaymentExpiryD
8083
8265
  var SetupPaymentRollover$outboundSchema = z42.pipe(
8084
8266
  z42.object({
8085
8267
  max: z42.optional(z42.number()),
8268
+ maxPercentage: z42.optional(z42.number()),
8086
8269
  expiryDurationType: SetupPaymentExpiryDurationType$outboundSchema,
8087
8270
  expiryDurationLength: z42.optional(z42.number())
8088
8271
  }),
8089
8272
  z42.transform((v) => {
8090
8273
  return remap(v, {
8274
+ maxPercentage: "max_percentage",
8091
8275
  expiryDurationType: "expiry_duration_type",
8092
8276
  expiryDurationLength: "expiry_duration_length"
8093
8277
  });
@@ -8392,12 +8576,14 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z45.pipe(
8392
8576
  quantity: z45.number(),
8393
8577
  purchaseLimit: z45.optional(
8394
8578
  z45.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
8395
- )
8579
+ ),
8580
+ invoiceMode: z45.optional(z45.boolean())
8396
8581
  }),
8397
8582
  z45.transform((v) => {
8398
8583
  return remap(v, {
8399
8584
  featureId: "feature_id",
8400
- purchaseLimit: "purchase_limit"
8585
+ purchaseLimit: "purchase_limit",
8586
+ invoiceMode: "invoice_mode"
8401
8587
  });
8402
8588
  })
8403
8589
  );
@@ -8432,6 +8618,17 @@ var UpdateCustomerUsageAlertRequestBody$outboundSchema = z45.pipe(
8432
8618
  });
8433
8619
  })
8434
8620
  );
8621
+ var UpdateCustomerOverageAllowedRequest$outboundSchema = z45.pipe(
8622
+ z45.object({
8623
+ featureId: z45.string(),
8624
+ enabled: z45._default(z45.boolean(), false)
8625
+ }),
8626
+ z45.transform((v) => {
8627
+ return remap(v, {
8628
+ featureId: "feature_id"
8629
+ });
8630
+ })
8631
+ );
8435
8632
  var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
8436
8633
  z45.object({
8437
8634
  autoTopups: z45.optional(
@@ -8442,13 +8639,17 @@ var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
8442
8639
  ),
8443
8640
  usageAlerts: z45.optional(
8444
8641
  z45.array(z45.lazy(() => UpdateCustomerUsageAlertRequestBody$outboundSchema))
8642
+ ),
8643
+ overageAllowed: z45.optional(
8644
+ z45.array(z45.lazy(() => UpdateCustomerOverageAllowedRequest$outboundSchema))
8445
8645
  )
8446
8646
  }),
8447
8647
  z45.transform((v) => {
8448
8648
  return remap(v, {
8449
8649
  autoTopups: "auto_topups",
8450
8650
  spendLimits: "spend_limits",
8451
- usageAlerts: "usage_alerts"
8651
+ usageAlerts: "usage_alerts",
8652
+ overageAllowed: "overage_allowed"
8452
8653
  });
8453
8654
  })
8454
8655
  );
@@ -8498,12 +8699,14 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
8498
8699
  quantity: number2(),
8499
8700
  purchase_limit: optional2(
8500
8701
  z45.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
8501
- )
8702
+ ),
8703
+ invoice_mode: optional2(boolean2())
8502
8704
  }),
8503
8705
  z45.transform((v) => {
8504
8706
  return remap(v, {
8505
8707
  "feature_id": "featureId",
8506
- "purchase_limit": "purchaseLimit"
8708
+ "purchase_limit": "purchaseLimit",
8709
+ "invoice_mode": "invoiceMode"
8507
8710
  });
8508
8711
  })
8509
8712
  );
@@ -8536,6 +8739,17 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z45.pipe(
8536
8739
  });
8537
8740
  })
8538
8741
  );
8742
+ var UpdateCustomerOverageAllowedResponse$inboundSchema = z45.pipe(
8743
+ z45.object({
8744
+ feature_id: string4(),
8745
+ enabled: z45._default(boolean2(), false)
8746
+ }),
8747
+ z45.transform((v) => {
8748
+ return remap(v, {
8749
+ "feature_id": "featureId"
8750
+ });
8751
+ })
8752
+ );
8539
8753
  var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
8540
8754
  z45.object({
8541
8755
  auto_topups: optional2(
@@ -8546,13 +8760,17 @@ var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
8546
8760
  ),
8547
8761
  usage_alerts: optional2(
8548
8762
  z45.array(z45.lazy(() => UpdateCustomerUsageAlertResponse$inboundSchema))
8763
+ ),
8764
+ overage_allowed: optional2(
8765
+ z45.array(z45.lazy(() => UpdateCustomerOverageAllowedResponse$inboundSchema))
8549
8766
  )
8550
8767
  }),
8551
8768
  z45.transform((v) => {
8552
8769
  return remap(v, {
8553
8770
  "auto_topups": "autoTopups",
8554
8771
  "spend_limits": "spendLimits",
8555
- "usage_alerts": "usageAlerts"
8772
+ "usage_alerts": "usageAlerts",
8773
+ "overage_allowed": "overageAllowed"
8556
8774
  });
8557
8775
  })
8558
8776
  );
@@ -8744,6 +8962,17 @@ var UpdateEntityUsageAlertRequestBody$outboundSchema = z46.pipe(
8744
8962
  });
8745
8963
  })
8746
8964
  );
8965
+ var UpdateEntityOverageAllowedRequest$outboundSchema = z46.pipe(
8966
+ z46.object({
8967
+ featureId: z46.string(),
8968
+ enabled: z46._default(z46.boolean(), false)
8969
+ }),
8970
+ z46.transform((v) => {
8971
+ return remap(v, {
8972
+ featureId: "feature_id"
8973
+ });
8974
+ })
8975
+ );
8747
8976
  var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
8748
8977
  z46.object({
8749
8978
  spendLimits: z46.optional(
@@ -8751,12 +8980,16 @@ var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
8751
8980
  ),
8752
8981
  usageAlerts: z46.optional(
8753
8982
  z46.array(z46.lazy(() => UpdateEntityUsageAlertRequestBody$outboundSchema))
8983
+ ),
8984
+ overageAllowed: z46.optional(
8985
+ z46.array(z46.lazy(() => UpdateEntityOverageAllowedRequest$outboundSchema))
8754
8986
  )
8755
8987
  }),
8756
8988
  z46.transform((v) => {
8757
8989
  return remap(v, {
8758
8990
  spendLimits: "spend_limits",
8759
- usageAlerts: "usage_alerts"
8991
+ usageAlerts: "usage_alerts",
8992
+ overageAllowed: "overage_allowed"
8760
8993
  });
8761
8994
  })
8762
8995
  );
@@ -8908,6 +9141,17 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z46.pipe(
8908
9141
  });
8909
9142
  })
8910
9143
  );
9144
+ var UpdateEntityOverageAllowedResponse$inboundSchema = z46.pipe(
9145
+ z46.object({
9146
+ feature_id: string4(),
9147
+ enabled: z46._default(boolean2(), false)
9148
+ }),
9149
+ z46.transform((v) => {
9150
+ return remap(v, {
9151
+ "feature_id": "featureId"
9152
+ });
9153
+ })
9154
+ );
8911
9155
  var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
8912
9156
  z46.object({
8913
9157
  spend_limits: optional2(
@@ -8915,12 +9159,16 @@ var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
8915
9159
  ),
8916
9160
  usage_alerts: optional2(
8917
9161
  z46.array(z46.lazy(() => UpdateEntityUsageAlertResponse$inboundSchema))
9162
+ ),
9163
+ overage_allowed: optional2(
9164
+ z46.array(z46.lazy(() => UpdateEntityOverageAllowedResponse$inboundSchema))
8918
9165
  )
8919
9166
  }),
8920
9167
  z46.transform((v) => {
8921
9168
  return remap(v, {
8922
9169
  "spend_limits": "spendLimits",
8923
- "usage_alerts": "usageAlerts"
9170
+ "usage_alerts": "usageAlerts",
9171
+ "overage_allowed": "overageAllowed"
8924
9172
  });
8925
9173
  })
8926
9174
  );
@@ -9273,11 +9521,13 @@ var UpdatePlanExpiryDurationTypeRequest$outboundSchema = z48.enum(UpdatePlanExpi
9273
9521
  var UpdatePlanRolloverRequest$outboundSchema = z48.pipe(
9274
9522
  z48.object({
9275
9523
  max: z48.optional(z48.number()),
9524
+ maxPercentage: z48.optional(z48.number()),
9276
9525
  expiryDurationType: UpdatePlanExpiryDurationTypeRequest$outboundSchema,
9277
9526
  expiryDurationLength: z48.optional(z48.number())
9278
9527
  }),
9279
9528
  z48.transform((v) => {
9280
9529
  return remap(v, {
9530
+ maxPercentage: "max_percentage",
9281
9531
  expiryDurationType: "expiry_duration_type",
9282
9532
  expiryDurationLength: "expiry_duration_length"
9283
9533
  });
@@ -9462,11 +9712,13 @@ var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePla
9462
9712
  var UpdatePlanRolloverResponse$inboundSchema = z48.pipe(
9463
9713
  z48.object({
9464
9714
  max: nullable(number2()),
9715
+ max_percentage: z48.optional(z48.nullable(number2())),
9465
9716
  expiry_duration_type: UpdatePlanExpiryDurationTypeResponse$inboundSchema,
9466
9717
  expiry_duration_length: optional2(number2())
9467
9718
  }),
9468
9719
  z48.transform((v) => {
9469
9720
  return remap(v, {
9721
+ "max_percentage": "maxPercentage",
9470
9722
  "expiry_duration_type": "expiryDurationType",
9471
9723
  "expiry_duration_length": "expiryDurationLength"
9472
9724
  });
@@ -9743,7 +9995,8 @@ async function $do2(client, request, options) {
9743
9995
  var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set([
9744
9996
  "check",
9745
9997
  "track",
9746
- "getOrCreateCustomer"
9998
+ "getOrCreateCustomer",
9999
+ "getEntity"
9747
10000
  ]);
9748
10001
  var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
9749
10002
  var FAIL_OPEN_BODIES = {
@@ -9773,6 +10026,18 @@ var FAIL_OPEN_BODIES = {
9773
10026
  purchases: [],
9774
10027
  balances: {},
9775
10028
  flags: {}
10029
+ },
10030
+ getEntity: {
10031
+ id: null,
10032
+ name: null,
10033
+ customer_id: null,
10034
+ feature_id: null,
10035
+ created_at: 0,
10036
+ env: "live",
10037
+ subscriptions: [],
10038
+ purchases: [],
10039
+ balances: {},
10040
+ flags: {}
9776
10041
  }
9777
10042
  };
9778
10043
  var FailOpenHook = class {
@@ -14148,6 +14413,7 @@ var attachProrationOutboundSchema = import_v42.z.object({
14148
14413
  });
14149
14414
  var attachRolloverOutboundSchema = import_v42.z.object({
14150
14415
  max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
14416
+ max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
14151
14417
  expiry_duration_type: import_v42.z.string(),
14152
14418
  expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
14153
14419
  });
@@ -14248,6 +14514,7 @@ var attachProrationSchema = import_v42.z.object({
14248
14514
  var attachExpiryDurationTypeSchema = closedEnumSchema2;
14249
14515
  var attachRolloverSchema = import_v42.z.object({
14250
14516
  max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
14517
+ maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
14251
14518
  expiryDurationType: attachExpiryDurationTypeSchema,
14252
14519
  expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
14253
14520
  });
@@ -14338,6 +14605,10 @@ var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
14338
14605
  enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
14339
14606
  overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
14340
14607
  });
14608
+ var getOrCreateCustomerOverageAllowedSchema = import_v44.z.object({
14609
+ featureId: import_v44.z.string(),
14610
+ enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
14611
+ });
14341
14612
  var getOrCreateCustomerPurchaseLimitOutboundSchema = import_v44.z.object({
14342
14613
  interval: import_v44.z.string(),
14343
14614
  interval_count: import_v44.z.number(),
@@ -14348,7 +14619,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = import_v44.z.object({
14348
14619
  enabled: import_v44.z.boolean(),
14349
14620
  threshold: import_v44.z.number(),
14350
14621
  quantity: import_v44.z.number(),
14351
- purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional()
14622
+ purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional(),
14623
+ invoice_mode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
14352
14624
  });
14353
14625
  var getOrCreateCustomerSpendLimitOutboundSchema = import_v44.z.object({
14354
14626
  feature_id: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
@@ -14362,6 +14634,10 @@ var getOrCreateCustomerUsageAlertOutboundSchema = import_v44.z.object({
14362
14634
  threshold_type: import_v44.z.string(),
14363
14635
  name: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
14364
14636
  });
14637
+ var getOrCreateCustomerOverageAllowedOutboundSchema = import_v44.z.object({
14638
+ feature_id: import_v44.z.string(),
14639
+ enabled: import_v44.z.boolean()
14640
+ });
14365
14641
  var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
14366
14642
  auto_topups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupOutboundSchema), import_v44.z.undefined()]).optional(),
14367
14643
  spend_limits: import_v44.z.union([
@@ -14371,6 +14647,10 @@ var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
14371
14647
  usage_alerts: import_v44.z.union([
14372
14648
  import_v44.z.array(getOrCreateCustomerUsageAlertOutboundSchema),
14373
14649
  import_v44.z.undefined()
14650
+ ]).optional(),
14651
+ overage_allowed: import_v44.z.union([
14652
+ import_v44.z.array(getOrCreateCustomerOverageAllowedOutboundSchema),
14653
+ import_v44.z.undefined()
14374
14654
  ]).optional()
14375
14655
  });
14376
14656
  var getOrCreateCustomerParamsOutboundSchema = import_v44.z.object({
@@ -14398,7 +14678,8 @@ var getOrCreateCustomerAutoTopupSchema = import_v44.z.object({
14398
14678
  enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
14399
14679
  threshold: import_v44.z.number(),
14400
14680
  quantity: import_v44.z.number(),
14401
- purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional()
14681
+ purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional(),
14682
+ invoiceMode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
14402
14683
  });
14403
14684
  var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
14404
14685
  var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
@@ -14411,7 +14692,8 @@ var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
14411
14692
  var getOrCreateCustomerBillingControlsSchema = import_v44.z.object({
14412
14693
  autoTopups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupSchema), import_v44.z.undefined()]).optional(),
14413
14694
  spendLimits: import_v44.z.union([import_v44.z.array(getOrCreateCustomerSpendLimitSchema), import_v44.z.undefined()]).optional(),
14414
- usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional()
14695
+ usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional(),
14696
+ overageAllowed: import_v44.z.union([import_v44.z.array(getOrCreateCustomerOverageAllowedSchema), import_v44.z.undefined()]).optional()
14415
14697
  });
14416
14698
  var getOrCreateCustomerParamsSchema = import_v44.z.object({
14417
14699
  customerId: import_v44.z.string().nullable(),
@@ -14550,6 +14832,7 @@ var listPlansItemPriceSchema = import_v46.z.object({
14550
14832
  var listPlansExpiryDurationTypeSchema = openEnumSchema2;
14551
14833
  var listPlansRolloverSchema = import_v46.z.object({
14552
14834
  max: import_v46.z.number().nullable(),
14835
+ maxPercentage: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional().nullable(),
14553
14836
  expiryDurationType: listPlansExpiryDurationTypeSchema,
14554
14837
  expiryDurationLength: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
14555
14838
  });
@@ -14630,6 +14913,10 @@ var multiAttachSpendLimitSchema = import_v47.z.object({
14630
14913
  enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
14631
14914
  overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
14632
14915
  });
14916
+ var multiAttachOverageAllowedSchema = import_v47.z.object({
14917
+ featureId: import_v47.z.string(),
14918
+ enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
14919
+ });
14633
14920
  var multiAttachInvoiceSchema = import_v47.z.object({
14634
14921
  status: import_v47.z.string().nullable(),
14635
14922
  stripeId: import_v47.z.string(),
@@ -14668,6 +14955,7 @@ var multiAttachProrationOutboundSchema = import_v47.z.object({
14668
14955
  });
14669
14956
  var multiAttachRolloverOutboundSchema = import_v47.z.object({
14670
14957
  max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
14958
+ max_percentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
14671
14959
  expiry_duration_type: import_v47.z.string(),
14672
14960
  expiry_duration_length: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
14673
14961
  });
@@ -14722,9 +15010,14 @@ var multiAttachUsageAlertOutboundSchema = import_v47.z.object({
14722
15010
  threshold_type: import_v47.z.string(),
14723
15011
  name: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
14724
15012
  });
15013
+ var multiAttachOverageAllowedOutboundSchema = import_v47.z.object({
15014
+ feature_id: import_v47.z.string(),
15015
+ enabled: import_v47.z.boolean()
15016
+ });
14725
15017
  var multiAttachBillingControlsOutboundSchema = import_v47.z.object({
14726
15018
  spend_limits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitOutboundSchema), import_v47.z.undefined()]).optional(),
14727
- usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional()
15019
+ usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional(),
15020
+ overage_allowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedOutboundSchema), import_v47.z.undefined()]).optional()
14728
15021
  });
14729
15022
  var multiAttachEntityDataOutboundSchema = import_v47.z.object({
14730
15023
  feature_id: import_v47.z.string(),
@@ -14768,6 +15061,7 @@ var multiAttachProrationSchema = import_v47.z.object({
14768
15061
  var multiAttachExpiryDurationTypeSchema = closedEnumSchema4;
14769
15062
  var multiAttachRolloverSchema = import_v47.z.object({
14770
15063
  max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
15064
+ maxPercentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
14771
15065
  expiryDurationType: multiAttachExpiryDurationTypeSchema,
14772
15066
  expiryDurationLength: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
14773
15067
  });
@@ -14808,7 +15102,8 @@ var multiAttachUsageAlertSchema = import_v47.z.object({
14808
15102
  });
14809
15103
  var multiAttachBillingControlsSchema = import_v47.z.object({
14810
15104
  spendLimits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitSchema), import_v47.z.undefined()]).optional(),
14811
- usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional()
15105
+ usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional(),
15106
+ overageAllowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedSchema), import_v47.z.undefined()]).optional()
14812
15107
  });
14813
15108
  var multiAttachEntityDataSchema = import_v47.z.object({
14814
15109
  featureId: import_v47.z.string(),
@@ -15016,6 +15311,7 @@ var previewAttachProrationOutboundSchema = import_v49.z.object({
15016
15311
  });
15017
15312
  var previewAttachRolloverOutboundSchema = import_v49.z.object({
15018
15313
  max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
15314
+ max_percentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
15019
15315
  expiry_duration_type: import_v49.z.string(),
15020
15316
  expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
15021
15317
  });
@@ -15120,6 +15416,7 @@ var previewAttachProrationSchema = import_v49.z.object({
15120
15416
  var previewAttachExpiryDurationTypeSchema = closedEnumSchema5;
15121
15417
  var previewAttachRolloverSchema = import_v49.z.object({
15122
15418
  max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
15419
+ maxPercentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
15123
15420
  expiryDurationType: previewAttachExpiryDurationTypeSchema,
15124
15421
  expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
15125
15422
  });
@@ -15229,6 +15526,10 @@ var previewMultiAttachSpendLimitSchema = import_v410.z.object({
15229
15526
  enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
15230
15527
  overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
15231
15528
  });
15529
+ var previewMultiAttachOverageAllowedSchema = import_v410.z.object({
15530
+ featureId: import_v410.z.string(),
15531
+ enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
15532
+ });
15232
15533
  var previewMultiAttachDiscountSchema = import_v410.z.object({
15233
15534
  amountOff: import_v410.z.number(),
15234
15535
  percentOff: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
@@ -15330,6 +15631,7 @@ var previewMultiAttachProrationOutboundSchema = import_v410.z.object({
15330
15631
  });
15331
15632
  var previewMultiAttachRolloverOutboundSchema = import_v410.z.object({
15332
15633
  max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
15634
+ max_percentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
15333
15635
  expiry_duration_type: import_v410.z.string(),
15334
15636
  expiry_duration_length: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
15335
15637
  });
@@ -15387,9 +15689,17 @@ var previewMultiAttachUsageAlertOutboundSchema = import_v410.z.object({
15387
15689
  threshold_type: import_v410.z.string(),
15388
15690
  name: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
15389
15691
  });
15692
+ var previewMultiAttachOverageAllowedOutboundSchema = import_v410.z.object({
15693
+ feature_id: import_v410.z.string(),
15694
+ enabled: import_v410.z.boolean()
15695
+ });
15390
15696
  var previewMultiAttachBillingControlsOutboundSchema = import_v410.z.object({
15391
15697
  spend_limits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitOutboundSchema), import_v410.z.undefined()]).optional(),
15392
- usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional()
15698
+ usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional(),
15699
+ overage_allowed: import_v410.z.union([
15700
+ import_v410.z.array(previewMultiAttachOverageAllowedOutboundSchema),
15701
+ import_v410.z.undefined()
15702
+ ]).optional()
15393
15703
  });
15394
15704
  var previewMultiAttachEntityDataOutboundSchema = import_v410.z.object({
15395
15705
  feature_id: import_v410.z.string(),
@@ -15434,6 +15744,7 @@ var previewMultiAttachProrationSchema = import_v410.z.object({
15434
15744
  var previewMultiAttachExpiryDurationTypeSchema = closedEnumSchema6;
15435
15745
  var previewMultiAttachRolloverSchema = import_v410.z.object({
15436
15746
  max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
15747
+ maxPercentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
15437
15748
  expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
15438
15749
  expiryDurationLength: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
15439
15750
  });
@@ -15477,7 +15788,8 @@ var previewMultiAttachUsageAlertSchema = import_v410.z.object({
15477
15788
  });
15478
15789
  var previewMultiAttachBillingControlsSchema = import_v410.z.object({
15479
15790
  spendLimits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitSchema), import_v410.z.undefined()]).optional(),
15480
- usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional()
15791
+ usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional(),
15792
+ overageAllowed: import_v410.z.union([import_v410.z.array(previewMultiAttachOverageAllowedSchema), import_v410.z.undefined()]).optional()
15481
15793
  });
15482
15794
  var previewMultiAttachEntityDataSchema = import_v410.z.object({
15483
15795
  featureId: import_v410.z.string(),
@@ -15673,6 +15985,7 @@ var previewUpdateProrationOutboundSchema = import_v411.z.object({
15673
15985
  });
15674
15986
  var previewUpdateRolloverOutboundSchema = import_v411.z.object({
15675
15987
  max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
15988
+ max_percentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
15676
15989
  expiry_duration_type: import_v411.z.string(),
15677
15990
  expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
15678
15991
  });
@@ -15757,6 +16070,7 @@ var previewUpdateProrationSchema = import_v411.z.object({
15757
16070
  var previewUpdateExpiryDurationTypeSchema = closedEnumSchema7;
15758
16071
  var previewUpdateRolloverSchema = import_v411.z.object({
15759
16072
  max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
16073
+ maxPercentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
15760
16074
  expiryDurationType: previewUpdateExpiryDurationTypeSchema,
15761
16075
  expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
15762
16076
  });
@@ -15920,6 +16234,7 @@ var setupPaymentProrationOutboundSchema = import_v413.z.object({
15920
16234
  });
15921
16235
  var setupPaymentRolloverOutboundSchema = import_v413.z.object({
15922
16236
  max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
16237
+ max_percentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
15923
16238
  expiry_duration_type: import_v413.z.string(),
15924
16239
  expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
15925
16240
  });
@@ -16010,6 +16325,7 @@ var setupPaymentProrationSchema = import_v413.z.object({
16010
16325
  var setupPaymentExpiryDurationTypeSchema = closedEnumSchema8;
16011
16326
  var setupPaymentRolloverSchema = import_v413.z.object({
16012
16327
  max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
16328
+ maxPercentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
16013
16329
  expiryDurationType: setupPaymentExpiryDurationTypeSchema,
16014
16330
  expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
16015
16331
  });
@@ -16120,6 +16436,7 @@ var billingUpdateProrationOutboundSchema = import_v414.z.object({
16120
16436
  });
16121
16437
  var billingUpdateRolloverOutboundSchema = import_v414.z.object({
16122
16438
  max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
16439
+ max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
16123
16440
  expiry_duration_type: import_v414.z.string(),
16124
16441
  expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
16125
16442
  });
@@ -16200,6 +16517,7 @@ var billingUpdateProrationSchema = import_v414.z.object({
16200
16517
  var billingUpdateExpiryDurationTypeSchema = closedEnumSchema9;
16201
16518
  var billingUpdateRolloverSchema = import_v414.z.object({
16202
16519
  max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
16520
+ maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
16203
16521
  expiryDurationType: billingUpdateExpiryDurationTypeSchema,
16204
16522
  expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
16205
16523
  });