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
@@ -81,8 +81,8 @@ var SDK_METADATA = {
81
81
  language: "typescript",
82
82
  openapiDocVersion: "2.2.0",
83
83
  sdkVersion: "0.10.17",
84
- genVersion: "2.869.25",
85
- userAgent: "speakeasy-sdk/typescript 0.10.17 2.869.25 2.2.0 @useautumn/sdk"
84
+ genVersion: "2.879.6",
85
+ userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk"
86
86
  };
87
87
 
88
88
  // ../sdk/src/lib/http.ts
@@ -1004,8 +1004,8 @@ function applyBearer(state, spec) {
1004
1004
  state.headers[spec.fieldName] = value;
1005
1005
  }
1006
1006
  }
1007
- function resolveGlobalSecurity(security) {
1008
- return resolveSecurity(
1007
+ function resolveGlobalSecurity(security, allowedFields) {
1008
+ let inputs = [
1009
1009
  [
1010
1010
  {
1011
1011
  fieldName: "Authorization",
@@ -1013,7 +1013,16 @@ function resolveGlobalSecurity(security) {
1013
1013
  value: security?.secretKey ?? env().AUTUMN_SECRET_KEY
1014
1014
  }
1015
1015
  ]
1016
- );
1016
+ ];
1017
+ if (allowedFields) {
1018
+ inputs = allowedFields.map((i) => {
1019
+ if (i < 0 || i >= inputs.length) {
1020
+ throw new RangeError(`invalid allowedFields index ${i}`);
1021
+ }
1022
+ return inputs[i];
1023
+ });
1024
+ }
1025
+ return resolveSecurity(...inputs);
1017
1026
  }
1018
1027
  async function extractSecurity(sec) {
1019
1028
  if (sec == null) {
@@ -1560,11 +1569,13 @@ var AttachExpiryDurationType$outboundSchema = z10.enum(AttachExpiryDurationType)
1560
1569
  var AttachRollover$outboundSchema = z10.pipe(
1561
1570
  z10.object({
1562
1571
  max: z10.optional(z10.number()),
1572
+ maxPercentage: z10.optional(z10.number()),
1563
1573
  expiryDurationType: AttachExpiryDurationType$outboundSchema,
1564
1574
  expiryDurationLength: z10.optional(z10.number())
1565
1575
  }),
1566
1576
  z10.transform((v) => {
1567
1577
  return remap(v, {
1578
+ maxPercentage: "max_percentage",
1568
1579
  expiryDurationType: "expiry_duration_type",
1569
1580
  expiryDurationLength: "expiry_duration_length"
1570
1581
  });
@@ -2089,11 +2100,13 @@ var BillingUpdateExpiryDurationType$outboundSchema = z12.enum(BillingUpdateExpir
2089
2100
  var BillingUpdateRollover$outboundSchema = z12.pipe(
2090
2101
  z12.object({
2091
2102
  max: z12.optional(z12.number()),
2103
+ maxPercentage: z12.optional(z12.number()),
2092
2104
  expiryDurationType: BillingUpdateExpiryDurationType$outboundSchema,
2093
2105
  expiryDurationLength: z12.optional(z12.number())
2094
2106
  }),
2095
2107
  z12.transform((v) => {
2096
2108
  return remap(v, {
2109
+ maxPercentage: "max_percentage",
2097
2110
  expiryDurationType: "expiry_duration_type",
2098
2111
  expiryDurationLength: "expiry_duration_length"
2099
2112
  });
@@ -2435,11 +2448,19 @@ var ProductDisplay$inboundSchema = z13.pipe(
2435
2448
  })
2436
2449
  );
2437
2450
  var RolloverDuration$inboundSchema = inboundSchema(RolloverDuration);
2438
- var CheckRollover$inboundSchema = z13.object({
2439
- max: nullable(number2()),
2440
- duration: z13._default(RolloverDuration$inboundSchema, "month"),
2441
- length: number2()
2442
- });
2451
+ var CheckRollover$inboundSchema = z13.pipe(
2452
+ z13.object({
2453
+ max: z13.optional(z13.nullable(number2())),
2454
+ max_percentage: z13.optional(z13.nullable(number2())),
2455
+ duration: z13._default(RolloverDuration$inboundSchema, "month"),
2456
+ length: number2()
2457
+ }),
2458
+ z13.transform((v) => {
2459
+ return remap(v, {
2460
+ "max_percentage": "maxPercentage"
2461
+ });
2462
+ })
2463
+ );
2443
2464
  var CheckOnIncrease$inboundSchema = inboundSchema(CheckOnIncrease);
2444
2465
  var CheckOnDecrease$inboundSchema = inboundSchema(CheckOnDecrease);
2445
2466
  var Config$inboundSchema = z13.pipe(
@@ -2678,12 +2699,14 @@ var CustomerDataAutoTopup$outboundSchema = z15.pipe(
2678
2699
  quantity: z15.number(),
2679
2700
  purchaseLimit: z15.optional(
2680
2701
  z15.lazy(() => CustomerDataPurchaseLimit$outboundSchema)
2681
- )
2702
+ ),
2703
+ invoiceMode: z15.optional(z15.boolean())
2682
2704
  }),
2683
2705
  z15.transform((v) => {
2684
2706
  return remap(v, {
2685
2707
  featureId: "feature_id",
2686
- purchaseLimit: "purchase_limit"
2708
+ purchaseLimit: "purchase_limit",
2709
+ invoiceMode: "invoice_mode"
2687
2710
  });
2688
2711
  })
2689
2712
  );
@@ -2716,6 +2739,17 @@ var CustomerDataUsageAlert$outboundSchema = z15.pipe(
2716
2739
  });
2717
2740
  })
2718
2741
  );
2742
+ var CustomerDataOverageAllowed$outboundSchema = z15.pipe(
2743
+ z15.object({
2744
+ featureId: z15.string(),
2745
+ enabled: z15._default(z15.boolean(), false)
2746
+ }),
2747
+ z15.transform((v) => {
2748
+ return remap(v, {
2749
+ featureId: "feature_id"
2750
+ });
2751
+ })
2752
+ );
2719
2753
  var CustomerDataBillingControls$outboundSchema = z15.pipe(
2720
2754
  z15.object({
2721
2755
  autoTopups: z15.optional(
@@ -2726,13 +2760,17 @@ var CustomerDataBillingControls$outboundSchema = z15.pipe(
2726
2760
  ),
2727
2761
  usageAlerts: z15.optional(
2728
2762
  z15.array(z15.lazy(() => CustomerDataUsageAlert$outboundSchema))
2763
+ ),
2764
+ overageAllowed: z15.optional(
2765
+ z15.array(z15.lazy(() => CustomerDataOverageAllowed$outboundSchema))
2729
2766
  )
2730
2767
  }),
2731
2768
  z15.transform((v) => {
2732
2769
  return remap(v, {
2733
2770
  autoTopups: "auto_topups",
2734
2771
  spendLimits: "spend_limits",
2735
- usageAlerts: "usage_alerts"
2772
+ usageAlerts: "usage_alerts",
2773
+ overageAllowed: "overage_allowed"
2736
2774
  });
2737
2775
  })
2738
2776
  );
@@ -2943,11 +2981,13 @@ var ExpiryDurationType$inboundSchema = inboundSchema(ExpiryDurationType);
2943
2981
  var PlanRollover$inboundSchema = z16.pipe(
2944
2982
  z16.object({
2945
2983
  max: nullable(number2()),
2984
+ max_percentage: z16.optional(z16.nullable(number2())),
2946
2985
  expiry_duration_type: ExpiryDurationType$inboundSchema,
2947
2986
  expiry_duration_length: optional2(number2())
2948
2987
  }),
2949
2988
  z16.transform((v) => {
2950
2989
  return remap(v, {
2990
+ "max_percentage": "maxPercentage",
2951
2991
  "expiry_duration_type": "expiryDurationType",
2952
2992
  "expiry_duration_length": "expiryDurationLength"
2953
2993
  });
@@ -3086,6 +3126,17 @@ var CreateEntityUsageAlertRequestBody$outboundSchema = z17.pipe(
3086
3126
  });
3087
3127
  })
3088
3128
  );
3129
+ var CreateEntityOverageAllowedRequest$outboundSchema = z17.pipe(
3130
+ z17.object({
3131
+ featureId: z17.string(),
3132
+ enabled: z17._default(z17.boolean(), false)
3133
+ }),
3134
+ z17.transform((v) => {
3135
+ return remap(v, {
3136
+ featureId: "feature_id"
3137
+ });
3138
+ })
3139
+ );
3089
3140
  var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
3090
3141
  z17.object({
3091
3142
  spendLimits: z17.optional(
@@ -3093,12 +3144,16 @@ var CreateEntityBillingControlsRequest$outboundSchema = z17.pipe(
3093
3144
  ),
3094
3145
  usageAlerts: z17.optional(
3095
3146
  z17.array(z17.lazy(() => CreateEntityUsageAlertRequestBody$outboundSchema))
3147
+ ),
3148
+ overageAllowed: z17.optional(
3149
+ z17.array(z17.lazy(() => CreateEntityOverageAllowedRequest$outboundSchema))
3096
3150
  )
3097
3151
  }),
3098
3152
  z17.transform((v) => {
3099
3153
  return remap(v, {
3100
3154
  spendLimits: "spend_limits",
3101
- usageAlerts: "usage_alerts"
3155
+ usageAlerts: "usage_alerts",
3156
+ overageAllowed: "overage_allowed"
3102
3157
  });
3103
3158
  })
3104
3159
  );
@@ -3255,6 +3310,17 @@ var CreateEntityUsageAlertResponse$inboundSchema = z17.pipe(
3255
3310
  });
3256
3311
  })
3257
3312
  );
3313
+ var CreateEntityOverageAllowedResponse$inboundSchema = z17.pipe(
3314
+ z17.object({
3315
+ feature_id: string4(),
3316
+ enabled: z17._default(boolean2(), false)
3317
+ }),
3318
+ z17.transform((v) => {
3319
+ return remap(v, {
3320
+ "feature_id": "featureId"
3321
+ });
3322
+ })
3323
+ );
3258
3324
  var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
3259
3325
  z17.object({
3260
3326
  spend_limits: optional2(
@@ -3262,12 +3328,16 @@ var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
3262
3328
  ),
3263
3329
  usage_alerts: optional2(
3264
3330
  z17.array(z17.lazy(() => CreateEntityUsageAlertResponse$inboundSchema))
3331
+ ),
3332
+ overage_allowed: optional2(
3333
+ z17.array(z17.lazy(() => CreateEntityOverageAllowedResponse$inboundSchema))
3265
3334
  )
3266
3335
  }),
3267
3336
  z17.transform((v) => {
3268
3337
  return remap(v, {
3269
3338
  "spend_limits": "spendLimits",
3270
- "usage_alerts": "usageAlerts"
3339
+ "usage_alerts": "usageAlerts",
3340
+ "overage_allowed": "overageAllowed"
3271
3341
  });
3272
3342
  })
3273
3343
  );
@@ -3617,11 +3687,13 @@ var CreatePlanExpiryDurationTypeRequest$outboundSchema = z19.enum(CreatePlanExpi
3617
3687
  var CreatePlanRolloverRequest$outboundSchema = z19.pipe(
3618
3688
  z19.object({
3619
3689
  max: z19.optional(z19.number()),
3690
+ maxPercentage: z19.optional(z19.number()),
3620
3691
  expiryDurationType: CreatePlanExpiryDurationTypeRequest$outboundSchema,
3621
3692
  expiryDurationLength: z19.optional(z19.number())
3622
3693
  }),
3623
3694
  z19.transform((v) => {
3624
3695
  return remap(v, {
3696
+ maxPercentage: "max_percentage",
3625
3697
  expiryDurationType: "expiry_duration_type",
3626
3698
  expiryDurationLength: "expiry_duration_length"
3627
3699
  });
@@ -3798,11 +3870,13 @@ var CreatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePla
3798
3870
  var CreatePlanRolloverResponse$inboundSchema = z19.pipe(
3799
3871
  z19.object({
3800
3872
  max: nullable(number2()),
3873
+ max_percentage: z19.optional(z19.nullable(number2())),
3801
3874
  expiry_duration_type: CreatePlanExpiryDurationTypeResponse$inboundSchema,
3802
3875
  expiry_duration_length: optional2(number2())
3803
3876
  }),
3804
3877
  z19.transform((v) => {
3805
3878
  return remap(v, {
3879
+ "max_percentage": "maxPercentage",
3806
3880
  "expiry_duration_type": "expiryDurationType",
3807
3881
  "expiry_duration_length": "expiryDurationLength"
3808
3882
  });
@@ -3986,12 +4060,14 @@ var CustomerAutoTopup$inboundSchema = z21.pipe(
3986
4060
  quantity: number2(),
3987
4061
  purchase_limit: optional2(
3988
4062
  z21.lazy(() => CustomerPurchaseLimit$inboundSchema)
3989
- )
4063
+ ),
4064
+ invoice_mode: optional2(boolean2())
3990
4065
  }),
3991
4066
  z21.transform((v) => {
3992
4067
  return remap(v, {
3993
4068
  "feature_id": "featureId",
3994
- "purchase_limit": "purchaseLimit"
4069
+ "purchase_limit": "purchaseLimit",
4070
+ "invoice_mode": "invoiceMode"
3995
4071
  });
3996
4072
  })
3997
4073
  );
@@ -4024,6 +4100,17 @@ var CustomerUsageAlert$inboundSchema = z21.pipe(
4024
4100
  });
4025
4101
  })
4026
4102
  );
4103
+ var CustomerOverageAllowed$inboundSchema = z21.pipe(
4104
+ z21.object({
4105
+ feature_id: string4(),
4106
+ enabled: z21._default(boolean2(), false)
4107
+ }),
4108
+ z21.transform((v) => {
4109
+ return remap(v, {
4110
+ "feature_id": "featureId"
4111
+ });
4112
+ })
4113
+ );
4027
4114
  var CustomerBillingControls$inboundSchema = z21.pipe(
4028
4115
  z21.object({
4029
4116
  auto_topups: optional2(
@@ -4034,13 +4121,17 @@ var CustomerBillingControls$inboundSchema = z21.pipe(
4034
4121
  ),
4035
4122
  usage_alerts: optional2(
4036
4123
  z21.array(z21.lazy(() => CustomerUsageAlert$inboundSchema))
4124
+ ),
4125
+ overage_allowed: optional2(
4126
+ z21.array(z21.lazy(() => CustomerOverageAllowed$inboundSchema))
4037
4127
  )
4038
4128
  }),
4039
4129
  z21.transform((v) => {
4040
4130
  return remap(v, {
4041
4131
  "auto_topups": "autoTopups",
4042
4132
  "spend_limits": "spendLimits",
4043
- "usage_alerts": "usageAlerts"
4133
+ "usage_alerts": "usageAlerts",
4134
+ "overage_allowed": "overageAllowed"
4044
4135
  });
4045
4136
  })
4046
4137
  );
@@ -4579,6 +4670,17 @@ var GetEntityUsageAlert$inboundSchema = z28.pipe(
4579
4670
  });
4580
4671
  })
4581
4672
  );
4673
+ var GetEntityOverageAllowed$inboundSchema = z28.pipe(
4674
+ z28.object({
4675
+ feature_id: string4(),
4676
+ enabled: z28._default(boolean2(), false)
4677
+ }),
4678
+ z28.transform((v) => {
4679
+ return remap(v, {
4680
+ "feature_id": "featureId"
4681
+ });
4682
+ })
4683
+ );
4582
4684
  var GetEntityBillingControls$inboundSchema = z28.pipe(
4583
4685
  z28.object({
4584
4686
  spend_limits: optional2(
@@ -4586,12 +4688,16 @@ var GetEntityBillingControls$inboundSchema = z28.pipe(
4586
4688
  ),
4587
4689
  usage_alerts: optional2(
4588
4690
  z28.array(z28.lazy(() => GetEntityUsageAlert$inboundSchema))
4691
+ ),
4692
+ overage_allowed: optional2(
4693
+ z28.array(z28.lazy(() => GetEntityOverageAllowed$inboundSchema))
4589
4694
  )
4590
4695
  }),
4591
4696
  z28.transform((v) => {
4592
4697
  return remap(v, {
4593
4698
  "spend_limits": "spendLimits",
4594
- "usage_alerts": "usageAlerts"
4699
+ "usage_alerts": "usageAlerts",
4700
+ "overage_allowed": "overageAllowed"
4595
4701
  });
4596
4702
  })
4597
4703
  );
@@ -4731,12 +4837,14 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z30.pipe(
4731
4837
  quantity: z30.number(),
4732
4838
  purchaseLimit: z30.optional(
4733
4839
  z30.lazy(() => GetOrCreateCustomerPurchaseLimit$outboundSchema)
4734
- )
4840
+ ),
4841
+ invoiceMode: z30.optional(z30.boolean())
4735
4842
  }),
4736
4843
  z30.transform((v) => {
4737
4844
  return remap(v, {
4738
4845
  featureId: "feature_id",
4739
- purchaseLimit: "purchase_limit"
4846
+ purchaseLimit: "purchase_limit",
4847
+ invoiceMode: "invoice_mode"
4740
4848
  });
4741
4849
  })
4742
4850
  );
@@ -4769,6 +4877,17 @@ var GetOrCreateCustomerUsageAlert$outboundSchema = z30.pipe(
4769
4877
  });
4770
4878
  })
4771
4879
  );
4880
+ var GetOrCreateCustomerOverageAllowed$outboundSchema = z30.pipe(
4881
+ z30.object({
4882
+ featureId: z30.string(),
4883
+ enabled: z30._default(z30.boolean(), false)
4884
+ }),
4885
+ z30.transform((v) => {
4886
+ return remap(v, {
4887
+ featureId: "feature_id"
4888
+ });
4889
+ })
4890
+ );
4772
4891
  var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
4773
4892
  z30.object({
4774
4893
  autoTopups: z30.optional(
@@ -4779,13 +4898,17 @@ var GetOrCreateCustomerBillingControls$outboundSchema = z30.pipe(
4779
4898
  ),
4780
4899
  usageAlerts: z30.optional(
4781
4900
  z30.array(z30.lazy(() => GetOrCreateCustomerUsageAlert$outboundSchema))
4901
+ ),
4902
+ overageAllowed: z30.optional(
4903
+ z30.array(z30.lazy(() => GetOrCreateCustomerOverageAllowed$outboundSchema))
4782
4904
  )
4783
4905
  }),
4784
4906
  z30.transform((v) => {
4785
4907
  return remap(v, {
4786
4908
  autoTopups: "auto_topups",
4787
4909
  spendLimits: "spend_limits",
4788
- usageAlerts: "usage_alerts"
4910
+ usageAlerts: "usage_alerts",
4911
+ overageAllowed: "overage_allowed"
4789
4912
  });
4790
4913
  })
4791
4914
  );
@@ -5010,11 +5133,13 @@ var GetPlanExpiryDurationType$inboundSchema = inboundSchema(GetPlanExpiryDuratio
5010
5133
  var GetPlanRollover$inboundSchema = z31.pipe(
5011
5134
  z31.object({
5012
5135
  max: nullable(number2()),
5136
+ max_percentage: z31.optional(z31.nullable(number2())),
5013
5137
  expiry_duration_type: GetPlanExpiryDurationType$inboundSchema,
5014
5138
  expiry_duration_length: optional2(number2())
5015
5139
  }),
5016
5140
  z31.transform((v) => {
5017
5141
  return remap(v, {
5142
+ "max_percentage": "maxPercentage",
5018
5143
  "expiry_duration_type": "expiryDurationType",
5019
5144
  "expiry_duration_length": "expiryDurationLength"
5020
5145
  });
@@ -5204,12 +5329,14 @@ var ListCustomersAutoTopup$inboundSchema = z32.pipe(
5204
5329
  quantity: number2(),
5205
5330
  purchase_limit: optional2(
5206
5331
  z32.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
5207
- )
5332
+ ),
5333
+ invoice_mode: optional2(boolean2())
5208
5334
  }),
5209
5335
  z32.transform((v) => {
5210
5336
  return remap(v, {
5211
5337
  "feature_id": "featureId",
5212
- "purchase_limit": "purchaseLimit"
5338
+ "purchase_limit": "purchaseLimit",
5339
+ "invoice_mode": "invoiceMode"
5213
5340
  });
5214
5341
  })
5215
5342
  );
@@ -5242,6 +5369,17 @@ var ListCustomersUsageAlert$inboundSchema = z32.pipe(
5242
5369
  });
5243
5370
  })
5244
5371
  );
5372
+ var ListCustomersOverageAllowed$inboundSchema = z32.pipe(
5373
+ z32.object({
5374
+ feature_id: string4(),
5375
+ enabled: z32._default(boolean2(), false)
5376
+ }),
5377
+ z32.transform((v) => {
5378
+ return remap(v, {
5379
+ "feature_id": "featureId"
5380
+ });
5381
+ })
5382
+ );
5245
5383
  var ListCustomersBillingControls$inboundSchema = z32.pipe(
5246
5384
  z32.object({
5247
5385
  auto_topups: optional2(
@@ -5252,13 +5390,17 @@ var ListCustomersBillingControls$inboundSchema = z32.pipe(
5252
5390
  ),
5253
5391
  usage_alerts: optional2(
5254
5392
  z32.array(z32.lazy(() => ListCustomersUsageAlert$inboundSchema))
5393
+ ),
5394
+ overage_allowed: optional2(
5395
+ z32.array(z32.lazy(() => ListCustomersOverageAllowed$inboundSchema))
5255
5396
  )
5256
5397
  }),
5257
5398
  z32.transform((v) => {
5258
5399
  return remap(v, {
5259
5400
  "auto_topups": "autoTopups",
5260
5401
  "spend_limits": "spendLimits",
5261
- "usage_alerts": "usageAlerts"
5402
+ "usage_alerts": "usageAlerts",
5403
+ "overage_allowed": "overageAllowed"
5262
5404
  });
5263
5405
  })
5264
5406
  );
@@ -5713,11 +5855,13 @@ var ListPlansExpiryDurationType$inboundSchema = inboundSchema(ListPlansExpiryDur
5713
5855
  var ListPlansRollover$inboundSchema = z35.pipe(
5714
5856
  z35.object({
5715
5857
  max: nullable(number2()),
5858
+ max_percentage: z35.optional(z35.nullable(number2())),
5716
5859
  expiry_duration_type: ListPlansExpiryDurationType$inboundSchema,
5717
5860
  expiry_duration_length: optional2(number2())
5718
5861
  }),
5719
5862
  z35.transform((v) => {
5720
5863
  return remap(v, {
5864
+ "max_percentage": "maxPercentage",
5721
5865
  "expiry_duration_type": "expiryDurationType",
5722
5866
  "expiry_duration_length": "expiryDurationLength"
5723
5867
  });
@@ -5961,11 +6105,13 @@ var MultiAttachExpiryDurationType$outboundSchema = z36.enum(MultiAttachExpiryDur
5961
6105
  var MultiAttachRollover$outboundSchema = z36.pipe(
5962
6106
  z36.object({
5963
6107
  max: z36.optional(z36.number()),
6108
+ maxPercentage: z36.optional(z36.number()),
5964
6109
  expiryDurationType: MultiAttachExpiryDurationType$outboundSchema,
5965
6110
  expiryDurationLength: z36.optional(z36.number())
5966
6111
  }),
5967
6112
  z36.transform((v) => {
5968
6113
  return remap(v, {
6114
+ maxPercentage: "max_percentage",
5969
6115
  expiryDurationType: "expiry_duration_type",
5970
6116
  expiryDurationLength: "expiry_duration_length"
5971
6117
  });
@@ -6092,6 +6238,17 @@ var MultiAttachUsageAlert$outboundSchema = z36.pipe(
6092
6238
  });
6093
6239
  })
6094
6240
  );
6241
+ var MultiAttachOverageAllowed$outboundSchema = z36.pipe(
6242
+ z36.object({
6243
+ featureId: z36.string(),
6244
+ enabled: z36._default(z36.boolean(), false)
6245
+ }),
6246
+ z36.transform((v) => {
6247
+ return remap(v, {
6248
+ featureId: "feature_id"
6249
+ });
6250
+ })
6251
+ );
6095
6252
  var MultiAttachBillingControls$outboundSchema = z36.pipe(
6096
6253
  z36.object({
6097
6254
  spendLimits: z36.optional(
@@ -6099,12 +6256,16 @@ var MultiAttachBillingControls$outboundSchema = z36.pipe(
6099
6256
  ),
6100
6257
  usageAlerts: z36.optional(
6101
6258
  z36.array(z36.lazy(() => MultiAttachUsageAlert$outboundSchema))
6259
+ ),
6260
+ overageAllowed: z36.optional(
6261
+ z36.array(z36.lazy(() => MultiAttachOverageAllowed$outboundSchema))
6102
6262
  )
6103
6263
  }),
6104
6264
  z36.transform((v) => {
6105
6265
  return remap(v, {
6106
6266
  spendLimits: "spend_limits",
6107
- usageAlerts: "usage_alerts"
6267
+ usageAlerts: "usage_alerts",
6268
+ overageAllowed: "overage_allowed"
6108
6269
  });
6109
6270
  })
6110
6271
  );
@@ -6398,11 +6559,13 @@ var PreviewAttachExpiryDurationType$outboundSchema = z38.enum(PreviewAttachExpir
6398
6559
  var PreviewAttachRollover$outboundSchema = z38.pipe(
6399
6560
  z38.object({
6400
6561
  max: z38.optional(z38.number()),
6562
+ maxPercentage: z38.optional(z38.number()),
6401
6563
  expiryDurationType: PreviewAttachExpiryDurationType$outboundSchema,
6402
6564
  expiryDurationLength: z38.optional(z38.number())
6403
6565
  }),
6404
6566
  z38.transform((v) => {
6405
6567
  return remap(v, {
6568
+ maxPercentage: "max_percentage",
6406
6569
  expiryDurationType: "expiry_duration_type",
6407
6570
  expiryDurationLength: "expiry_duration_length"
6408
6571
  });
@@ -6946,11 +7109,13 @@ var PreviewMultiAttachExpiryDurationType$outboundSchema = z39.enum(PreviewMultiA
6946
7109
  var PreviewMultiAttachRollover$outboundSchema = z39.pipe(
6947
7110
  z39.object({
6948
7111
  max: z39.optional(z39.number()),
7112
+ maxPercentage: z39.optional(z39.number()),
6949
7113
  expiryDurationType: PreviewMultiAttachExpiryDurationType$outboundSchema,
6950
7114
  expiryDurationLength: z39.optional(z39.number())
6951
7115
  }),
6952
7116
  z39.transform((v) => {
6953
7117
  return remap(v, {
7118
+ maxPercentage: "max_percentage",
6954
7119
  expiryDurationType: "expiry_duration_type",
6955
7120
  expiryDurationLength: "expiry_duration_length"
6956
7121
  });
@@ -7090,6 +7255,17 @@ var PreviewMultiAttachUsageAlert$outboundSchema = z39.pipe(
7090
7255
  });
7091
7256
  })
7092
7257
  );
7258
+ var PreviewMultiAttachOverageAllowed$outboundSchema = z39.pipe(
7259
+ z39.object({
7260
+ featureId: z39.string(),
7261
+ enabled: z39._default(z39.boolean(), false)
7262
+ }),
7263
+ z39.transform((v) => {
7264
+ return remap(v, {
7265
+ featureId: "feature_id"
7266
+ });
7267
+ })
7268
+ );
7093
7269
  var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
7094
7270
  z39.object({
7095
7271
  spendLimits: z39.optional(
@@ -7097,12 +7273,16 @@ var PreviewMultiAttachBillingControls$outboundSchema = z39.pipe(
7097
7273
  ),
7098
7274
  usageAlerts: z39.optional(
7099
7275
  z39.array(z39.lazy(() => PreviewMultiAttachUsageAlert$outboundSchema))
7276
+ ),
7277
+ overageAllowed: z39.optional(
7278
+ z39.array(z39.lazy(() => PreviewMultiAttachOverageAllowed$outboundSchema))
7100
7279
  )
7101
7280
  }),
7102
7281
  z39.transform((v) => {
7103
7282
  return remap(v, {
7104
7283
  spendLimits: "spend_limits",
7105
- usageAlerts: "usage_alerts"
7284
+ usageAlerts: "usage_alerts",
7285
+ overageAllowed: "overage_allowed"
7106
7286
  });
7107
7287
  })
7108
7288
  );
@@ -7558,11 +7738,13 @@ var PreviewUpdateExpiryDurationType$outboundSchema = z40.enum(PreviewUpdateExpir
7558
7738
  var PreviewUpdateRollover$outboundSchema = z40.pipe(
7559
7739
  z40.object({
7560
7740
  max: z40.optional(z40.number()),
7741
+ maxPercentage: z40.optional(z40.number()),
7561
7742
  expiryDurationType: PreviewUpdateExpiryDurationType$outboundSchema,
7562
7743
  expiryDurationLength: z40.optional(z40.number())
7563
7744
  }),
7564
7745
  z40.transform((v) => {
7565
7746
  return remap(v, {
7747
+ maxPercentage: "max_percentage",
7566
7748
  expiryDurationType: "expiry_duration_type",
7567
7749
  expiryDurationLength: "expiry_duration_length"
7568
7750
  });
@@ -8078,11 +8260,13 @@ var SetupPaymentExpiryDurationType$outboundSchema = z42.enum(SetupPaymentExpiryD
8078
8260
  var SetupPaymentRollover$outboundSchema = z42.pipe(
8079
8261
  z42.object({
8080
8262
  max: z42.optional(z42.number()),
8263
+ maxPercentage: z42.optional(z42.number()),
8081
8264
  expiryDurationType: SetupPaymentExpiryDurationType$outboundSchema,
8082
8265
  expiryDurationLength: z42.optional(z42.number())
8083
8266
  }),
8084
8267
  z42.transform((v) => {
8085
8268
  return remap(v, {
8269
+ maxPercentage: "max_percentage",
8086
8270
  expiryDurationType: "expiry_duration_type",
8087
8271
  expiryDurationLength: "expiry_duration_length"
8088
8272
  });
@@ -8387,12 +8571,14 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z45.pipe(
8387
8571
  quantity: z45.number(),
8388
8572
  purchaseLimit: z45.optional(
8389
8573
  z45.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
8390
- )
8574
+ ),
8575
+ invoiceMode: z45.optional(z45.boolean())
8391
8576
  }),
8392
8577
  z45.transform((v) => {
8393
8578
  return remap(v, {
8394
8579
  featureId: "feature_id",
8395
- purchaseLimit: "purchase_limit"
8580
+ purchaseLimit: "purchase_limit",
8581
+ invoiceMode: "invoice_mode"
8396
8582
  });
8397
8583
  })
8398
8584
  );
@@ -8427,6 +8613,17 @@ var UpdateCustomerUsageAlertRequestBody$outboundSchema = z45.pipe(
8427
8613
  });
8428
8614
  })
8429
8615
  );
8616
+ var UpdateCustomerOverageAllowedRequest$outboundSchema = z45.pipe(
8617
+ z45.object({
8618
+ featureId: z45.string(),
8619
+ enabled: z45._default(z45.boolean(), false)
8620
+ }),
8621
+ z45.transform((v) => {
8622
+ return remap(v, {
8623
+ featureId: "feature_id"
8624
+ });
8625
+ })
8626
+ );
8430
8627
  var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
8431
8628
  z45.object({
8432
8629
  autoTopups: z45.optional(
@@ -8437,13 +8634,17 @@ var UpdateCustomerBillingControlsRequest$outboundSchema = z45.pipe(
8437
8634
  ),
8438
8635
  usageAlerts: z45.optional(
8439
8636
  z45.array(z45.lazy(() => UpdateCustomerUsageAlertRequestBody$outboundSchema))
8637
+ ),
8638
+ overageAllowed: z45.optional(
8639
+ z45.array(z45.lazy(() => UpdateCustomerOverageAllowedRequest$outboundSchema))
8440
8640
  )
8441
8641
  }),
8442
8642
  z45.transform((v) => {
8443
8643
  return remap(v, {
8444
8644
  autoTopups: "auto_topups",
8445
8645
  spendLimits: "spend_limits",
8446
- usageAlerts: "usage_alerts"
8646
+ usageAlerts: "usage_alerts",
8647
+ overageAllowed: "overage_allowed"
8447
8648
  });
8448
8649
  })
8449
8650
  );
@@ -8493,12 +8694,14 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
8493
8694
  quantity: number2(),
8494
8695
  purchase_limit: optional2(
8495
8696
  z45.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
8496
- )
8697
+ ),
8698
+ invoice_mode: optional2(boolean2())
8497
8699
  }),
8498
8700
  z45.transform((v) => {
8499
8701
  return remap(v, {
8500
8702
  "feature_id": "featureId",
8501
- "purchase_limit": "purchaseLimit"
8703
+ "purchase_limit": "purchaseLimit",
8704
+ "invoice_mode": "invoiceMode"
8502
8705
  });
8503
8706
  })
8504
8707
  );
@@ -8531,6 +8734,17 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z45.pipe(
8531
8734
  });
8532
8735
  })
8533
8736
  );
8737
+ var UpdateCustomerOverageAllowedResponse$inboundSchema = z45.pipe(
8738
+ z45.object({
8739
+ feature_id: string4(),
8740
+ enabled: z45._default(boolean2(), false)
8741
+ }),
8742
+ z45.transform((v) => {
8743
+ return remap(v, {
8744
+ "feature_id": "featureId"
8745
+ });
8746
+ })
8747
+ );
8534
8748
  var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
8535
8749
  z45.object({
8536
8750
  auto_topups: optional2(
@@ -8541,13 +8755,17 @@ var UpdateCustomerBillingControlsResponse$inboundSchema = z45.pipe(
8541
8755
  ),
8542
8756
  usage_alerts: optional2(
8543
8757
  z45.array(z45.lazy(() => UpdateCustomerUsageAlertResponse$inboundSchema))
8758
+ ),
8759
+ overage_allowed: optional2(
8760
+ z45.array(z45.lazy(() => UpdateCustomerOverageAllowedResponse$inboundSchema))
8544
8761
  )
8545
8762
  }),
8546
8763
  z45.transform((v) => {
8547
8764
  return remap(v, {
8548
8765
  "auto_topups": "autoTopups",
8549
8766
  "spend_limits": "spendLimits",
8550
- "usage_alerts": "usageAlerts"
8767
+ "usage_alerts": "usageAlerts",
8768
+ "overage_allowed": "overageAllowed"
8551
8769
  });
8552
8770
  })
8553
8771
  );
@@ -8739,6 +8957,17 @@ var UpdateEntityUsageAlertRequestBody$outboundSchema = z46.pipe(
8739
8957
  });
8740
8958
  })
8741
8959
  );
8960
+ var UpdateEntityOverageAllowedRequest$outboundSchema = z46.pipe(
8961
+ z46.object({
8962
+ featureId: z46.string(),
8963
+ enabled: z46._default(z46.boolean(), false)
8964
+ }),
8965
+ z46.transform((v) => {
8966
+ return remap(v, {
8967
+ featureId: "feature_id"
8968
+ });
8969
+ })
8970
+ );
8742
8971
  var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
8743
8972
  z46.object({
8744
8973
  spendLimits: z46.optional(
@@ -8746,12 +8975,16 @@ var UpdateEntityBillingControlsRequest$outboundSchema = z46.pipe(
8746
8975
  ),
8747
8976
  usageAlerts: z46.optional(
8748
8977
  z46.array(z46.lazy(() => UpdateEntityUsageAlertRequestBody$outboundSchema))
8978
+ ),
8979
+ overageAllowed: z46.optional(
8980
+ z46.array(z46.lazy(() => UpdateEntityOverageAllowedRequest$outboundSchema))
8749
8981
  )
8750
8982
  }),
8751
8983
  z46.transform((v) => {
8752
8984
  return remap(v, {
8753
8985
  spendLimits: "spend_limits",
8754
- usageAlerts: "usage_alerts"
8986
+ usageAlerts: "usage_alerts",
8987
+ overageAllowed: "overage_allowed"
8755
8988
  });
8756
8989
  })
8757
8990
  );
@@ -8903,6 +9136,17 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z46.pipe(
8903
9136
  });
8904
9137
  })
8905
9138
  );
9139
+ var UpdateEntityOverageAllowedResponse$inboundSchema = z46.pipe(
9140
+ z46.object({
9141
+ feature_id: string4(),
9142
+ enabled: z46._default(boolean2(), false)
9143
+ }),
9144
+ z46.transform((v) => {
9145
+ return remap(v, {
9146
+ "feature_id": "featureId"
9147
+ });
9148
+ })
9149
+ );
8906
9150
  var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
8907
9151
  z46.object({
8908
9152
  spend_limits: optional2(
@@ -8910,12 +9154,16 @@ var UpdateEntityBillingControlsResponse$inboundSchema = z46.pipe(
8910
9154
  ),
8911
9155
  usage_alerts: optional2(
8912
9156
  z46.array(z46.lazy(() => UpdateEntityUsageAlertResponse$inboundSchema))
9157
+ ),
9158
+ overage_allowed: optional2(
9159
+ z46.array(z46.lazy(() => UpdateEntityOverageAllowedResponse$inboundSchema))
8913
9160
  )
8914
9161
  }),
8915
9162
  z46.transform((v) => {
8916
9163
  return remap(v, {
8917
9164
  "spend_limits": "spendLimits",
8918
- "usage_alerts": "usageAlerts"
9165
+ "usage_alerts": "usageAlerts",
9166
+ "overage_allowed": "overageAllowed"
8919
9167
  });
8920
9168
  })
8921
9169
  );
@@ -9268,11 +9516,13 @@ var UpdatePlanExpiryDurationTypeRequest$outboundSchema = z48.enum(UpdatePlanExpi
9268
9516
  var UpdatePlanRolloverRequest$outboundSchema = z48.pipe(
9269
9517
  z48.object({
9270
9518
  max: z48.optional(z48.number()),
9519
+ maxPercentage: z48.optional(z48.number()),
9271
9520
  expiryDurationType: UpdatePlanExpiryDurationTypeRequest$outboundSchema,
9272
9521
  expiryDurationLength: z48.optional(z48.number())
9273
9522
  }),
9274
9523
  z48.transform((v) => {
9275
9524
  return remap(v, {
9525
+ maxPercentage: "max_percentage",
9276
9526
  expiryDurationType: "expiry_duration_type",
9277
9527
  expiryDurationLength: "expiry_duration_length"
9278
9528
  });
@@ -9457,11 +9707,13 @@ var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePla
9457
9707
  var UpdatePlanRolloverResponse$inboundSchema = z48.pipe(
9458
9708
  z48.object({
9459
9709
  max: nullable(number2()),
9710
+ max_percentage: z48.optional(z48.nullable(number2())),
9460
9711
  expiry_duration_type: UpdatePlanExpiryDurationTypeResponse$inboundSchema,
9461
9712
  expiry_duration_length: optional2(number2())
9462
9713
  }),
9463
9714
  z48.transform((v) => {
9464
9715
  return remap(v, {
9716
+ "max_percentage": "maxPercentage",
9465
9717
  "expiry_duration_type": "expiryDurationType",
9466
9718
  "expiry_duration_length": "expiryDurationLength"
9467
9719
  });
@@ -9738,7 +9990,8 @@ async function $do2(client, request, options) {
9738
9990
  var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set([
9739
9991
  "check",
9740
9992
  "track",
9741
- "getOrCreateCustomer"
9993
+ "getOrCreateCustomer",
9994
+ "getEntity"
9742
9995
  ]);
9743
9996
  var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
9744
9997
  var FAIL_OPEN_BODIES = {
@@ -9768,6 +10021,18 @@ var FAIL_OPEN_BODIES = {
9768
10021
  purchases: [],
9769
10022
  balances: {},
9770
10023
  flags: {}
10024
+ },
10025
+ getEntity: {
10026
+ id: null,
10027
+ name: null,
10028
+ customer_id: null,
10029
+ feature_id: null,
10030
+ created_at: 0,
10031
+ env: "live",
10032
+ subscriptions: [],
10033
+ purchases: [],
10034
+ balances: {},
10035
+ flags: {}
9771
10036
  }
9772
10037
  };
9773
10038
  var FailOpenHook = class {
@@ -14143,6 +14408,7 @@ var attachProrationOutboundSchema = import_v42.z.object({
14143
14408
  });
14144
14409
  var attachRolloverOutboundSchema = import_v42.z.object({
14145
14410
  max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
14411
+ max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
14146
14412
  expiry_duration_type: import_v42.z.string(),
14147
14413
  expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
14148
14414
  });
@@ -14243,6 +14509,7 @@ var attachProrationSchema = import_v42.z.object({
14243
14509
  var attachExpiryDurationTypeSchema = closedEnumSchema2;
14244
14510
  var attachRolloverSchema = import_v42.z.object({
14245
14511
  max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
14512
+ maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
14246
14513
  expiryDurationType: attachExpiryDurationTypeSchema,
14247
14514
  expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
14248
14515
  });
@@ -14333,6 +14600,10 @@ var getOrCreateCustomerSpendLimitSchema = import_v44.z.object({
14333
14600
  enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
14334
14601
  overageLimit: import_v44.z.union([import_v44.z.number(), import_v44.z.undefined()]).optional()
14335
14602
  });
14603
+ var getOrCreateCustomerOverageAllowedSchema = import_v44.z.object({
14604
+ featureId: import_v44.z.string(),
14605
+ enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
14606
+ });
14336
14607
  var getOrCreateCustomerPurchaseLimitOutboundSchema = import_v44.z.object({
14337
14608
  interval: import_v44.z.string(),
14338
14609
  interval_count: import_v44.z.number(),
@@ -14343,7 +14614,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = import_v44.z.object({
14343
14614
  enabled: import_v44.z.boolean(),
14344
14615
  threshold: import_v44.z.number(),
14345
14616
  quantity: import_v44.z.number(),
14346
- purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional()
14617
+ purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional(),
14618
+ invoice_mode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
14347
14619
  });
14348
14620
  var getOrCreateCustomerSpendLimitOutboundSchema = import_v44.z.object({
14349
14621
  feature_id: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
@@ -14357,6 +14629,10 @@ var getOrCreateCustomerUsageAlertOutboundSchema = import_v44.z.object({
14357
14629
  threshold_type: import_v44.z.string(),
14358
14630
  name: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional()
14359
14631
  });
14632
+ var getOrCreateCustomerOverageAllowedOutboundSchema = import_v44.z.object({
14633
+ feature_id: import_v44.z.string(),
14634
+ enabled: import_v44.z.boolean()
14635
+ });
14360
14636
  var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
14361
14637
  auto_topups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupOutboundSchema), import_v44.z.undefined()]).optional(),
14362
14638
  spend_limits: import_v44.z.union([
@@ -14366,6 +14642,10 @@ var getOrCreateCustomerBillingControlsOutboundSchema = import_v44.z.object({
14366
14642
  usage_alerts: import_v44.z.union([
14367
14643
  import_v44.z.array(getOrCreateCustomerUsageAlertOutboundSchema),
14368
14644
  import_v44.z.undefined()
14645
+ ]).optional(),
14646
+ overage_allowed: import_v44.z.union([
14647
+ import_v44.z.array(getOrCreateCustomerOverageAllowedOutboundSchema),
14648
+ import_v44.z.undefined()
14369
14649
  ]).optional()
14370
14650
  });
14371
14651
  var getOrCreateCustomerParamsOutboundSchema = import_v44.z.object({
@@ -14393,7 +14673,8 @@ var getOrCreateCustomerAutoTopupSchema = import_v44.z.object({
14393
14673
  enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
14394
14674
  threshold: import_v44.z.number(),
14395
14675
  quantity: import_v44.z.number(),
14396
- purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional()
14676
+ purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional(),
14677
+ invoiceMode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
14397
14678
  });
14398
14679
  var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
14399
14680
  var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
@@ -14406,7 +14687,8 @@ var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
14406
14687
  var getOrCreateCustomerBillingControlsSchema = import_v44.z.object({
14407
14688
  autoTopups: import_v44.z.union([import_v44.z.array(getOrCreateCustomerAutoTopupSchema), import_v44.z.undefined()]).optional(),
14408
14689
  spendLimits: import_v44.z.union([import_v44.z.array(getOrCreateCustomerSpendLimitSchema), import_v44.z.undefined()]).optional(),
14409
- usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional()
14690
+ usageAlerts: import_v44.z.union([import_v44.z.array(getOrCreateCustomerUsageAlertSchema), import_v44.z.undefined()]).optional(),
14691
+ overageAllowed: import_v44.z.union([import_v44.z.array(getOrCreateCustomerOverageAllowedSchema), import_v44.z.undefined()]).optional()
14410
14692
  });
14411
14693
  var getOrCreateCustomerParamsSchema = import_v44.z.object({
14412
14694
  customerId: import_v44.z.string().nullable(),
@@ -14545,6 +14827,7 @@ var listPlansItemPriceSchema = import_v46.z.object({
14545
14827
  var listPlansExpiryDurationTypeSchema = openEnumSchema2;
14546
14828
  var listPlansRolloverSchema = import_v46.z.object({
14547
14829
  max: import_v46.z.number().nullable(),
14830
+ maxPercentage: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional().nullable(),
14548
14831
  expiryDurationType: listPlansExpiryDurationTypeSchema,
14549
14832
  expiryDurationLength: import_v46.z.union([import_v46.z.number(), import_v46.z.undefined()]).optional()
14550
14833
  });
@@ -14625,6 +14908,10 @@ var multiAttachSpendLimitSchema = import_v47.z.object({
14625
14908
  enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
14626
14909
  overageLimit: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
14627
14910
  });
14911
+ var multiAttachOverageAllowedSchema = import_v47.z.object({
14912
+ featureId: import_v47.z.string(),
14913
+ enabled: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
14914
+ });
14628
14915
  var multiAttachInvoiceSchema = import_v47.z.object({
14629
14916
  status: import_v47.z.string().nullable(),
14630
14917
  stripeId: import_v47.z.string(),
@@ -14663,6 +14950,7 @@ var multiAttachProrationOutboundSchema = import_v47.z.object({
14663
14950
  });
14664
14951
  var multiAttachRolloverOutboundSchema = import_v47.z.object({
14665
14952
  max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
14953
+ max_percentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
14666
14954
  expiry_duration_type: import_v47.z.string(),
14667
14955
  expiry_duration_length: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
14668
14956
  });
@@ -14717,9 +15005,14 @@ var multiAttachUsageAlertOutboundSchema = import_v47.z.object({
14717
15005
  threshold_type: import_v47.z.string(),
14718
15006
  name: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
14719
15007
  });
15008
+ var multiAttachOverageAllowedOutboundSchema = import_v47.z.object({
15009
+ feature_id: import_v47.z.string(),
15010
+ enabled: import_v47.z.boolean()
15011
+ });
14720
15012
  var multiAttachBillingControlsOutboundSchema = import_v47.z.object({
14721
15013
  spend_limits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitOutboundSchema), import_v47.z.undefined()]).optional(),
14722
- usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional()
15014
+ usage_alerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertOutboundSchema), import_v47.z.undefined()]).optional(),
15015
+ overage_allowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedOutboundSchema), import_v47.z.undefined()]).optional()
14723
15016
  });
14724
15017
  var multiAttachEntityDataOutboundSchema = import_v47.z.object({
14725
15018
  feature_id: import_v47.z.string(),
@@ -14763,6 +15056,7 @@ var multiAttachProrationSchema = import_v47.z.object({
14763
15056
  var multiAttachExpiryDurationTypeSchema = closedEnumSchema4;
14764
15057
  var multiAttachRolloverSchema = import_v47.z.object({
14765
15058
  max: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
15059
+ maxPercentage: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
14766
15060
  expiryDurationType: multiAttachExpiryDurationTypeSchema,
14767
15061
  expiryDurationLength: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional()
14768
15062
  });
@@ -14803,7 +15097,8 @@ var multiAttachUsageAlertSchema = import_v47.z.object({
14803
15097
  });
14804
15098
  var multiAttachBillingControlsSchema = import_v47.z.object({
14805
15099
  spendLimits: import_v47.z.union([import_v47.z.array(multiAttachSpendLimitSchema), import_v47.z.undefined()]).optional(),
14806
- usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional()
15100
+ usageAlerts: import_v47.z.union([import_v47.z.array(multiAttachUsageAlertSchema), import_v47.z.undefined()]).optional(),
15101
+ overageAllowed: import_v47.z.union([import_v47.z.array(multiAttachOverageAllowedSchema), import_v47.z.undefined()]).optional()
14807
15102
  });
14808
15103
  var multiAttachEntityDataSchema = import_v47.z.object({
14809
15104
  featureId: import_v47.z.string(),
@@ -15011,6 +15306,7 @@ var previewAttachProrationOutboundSchema = import_v49.z.object({
15011
15306
  });
15012
15307
  var previewAttachRolloverOutboundSchema = import_v49.z.object({
15013
15308
  max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
15309
+ max_percentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
15014
15310
  expiry_duration_type: import_v49.z.string(),
15015
15311
  expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
15016
15312
  });
@@ -15115,6 +15411,7 @@ var previewAttachProrationSchema = import_v49.z.object({
15115
15411
  var previewAttachExpiryDurationTypeSchema = closedEnumSchema5;
15116
15412
  var previewAttachRolloverSchema = import_v49.z.object({
15117
15413
  max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
15414
+ maxPercentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
15118
15415
  expiryDurationType: previewAttachExpiryDurationTypeSchema,
15119
15416
  expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
15120
15417
  });
@@ -15224,6 +15521,10 @@ var previewMultiAttachSpendLimitSchema = import_v410.z.object({
15224
15521
  enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
15225
15522
  overageLimit: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
15226
15523
  });
15524
+ var previewMultiAttachOverageAllowedSchema = import_v410.z.object({
15525
+ featureId: import_v410.z.string(),
15526
+ enabled: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
15527
+ });
15227
15528
  var previewMultiAttachDiscountSchema = import_v410.z.object({
15228
15529
  amountOff: import_v410.z.number(),
15229
15530
  percentOff: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
@@ -15325,6 +15626,7 @@ var previewMultiAttachProrationOutboundSchema = import_v410.z.object({
15325
15626
  });
15326
15627
  var previewMultiAttachRolloverOutboundSchema = import_v410.z.object({
15327
15628
  max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
15629
+ max_percentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
15328
15630
  expiry_duration_type: import_v410.z.string(),
15329
15631
  expiry_duration_length: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
15330
15632
  });
@@ -15382,9 +15684,17 @@ var previewMultiAttachUsageAlertOutboundSchema = import_v410.z.object({
15382
15684
  threshold_type: import_v410.z.string(),
15383
15685
  name: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
15384
15686
  });
15687
+ var previewMultiAttachOverageAllowedOutboundSchema = import_v410.z.object({
15688
+ feature_id: import_v410.z.string(),
15689
+ enabled: import_v410.z.boolean()
15690
+ });
15385
15691
  var previewMultiAttachBillingControlsOutboundSchema = import_v410.z.object({
15386
15692
  spend_limits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitOutboundSchema), import_v410.z.undefined()]).optional(),
15387
- usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional()
15693
+ usage_alerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertOutboundSchema), import_v410.z.undefined()]).optional(),
15694
+ overage_allowed: import_v410.z.union([
15695
+ import_v410.z.array(previewMultiAttachOverageAllowedOutboundSchema),
15696
+ import_v410.z.undefined()
15697
+ ]).optional()
15388
15698
  });
15389
15699
  var previewMultiAttachEntityDataOutboundSchema = import_v410.z.object({
15390
15700
  feature_id: import_v410.z.string(),
@@ -15429,6 +15739,7 @@ var previewMultiAttachProrationSchema = import_v410.z.object({
15429
15739
  var previewMultiAttachExpiryDurationTypeSchema = closedEnumSchema6;
15430
15740
  var previewMultiAttachRolloverSchema = import_v410.z.object({
15431
15741
  max: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
15742
+ maxPercentage: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
15432
15743
  expiryDurationType: previewMultiAttachExpiryDurationTypeSchema,
15433
15744
  expiryDurationLength: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional()
15434
15745
  });
@@ -15472,7 +15783,8 @@ var previewMultiAttachUsageAlertSchema = import_v410.z.object({
15472
15783
  });
15473
15784
  var previewMultiAttachBillingControlsSchema = import_v410.z.object({
15474
15785
  spendLimits: import_v410.z.union([import_v410.z.array(previewMultiAttachSpendLimitSchema), import_v410.z.undefined()]).optional(),
15475
- usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional()
15786
+ usageAlerts: import_v410.z.union([import_v410.z.array(previewMultiAttachUsageAlertSchema), import_v410.z.undefined()]).optional(),
15787
+ overageAllowed: import_v410.z.union([import_v410.z.array(previewMultiAttachOverageAllowedSchema), import_v410.z.undefined()]).optional()
15476
15788
  });
15477
15789
  var previewMultiAttachEntityDataSchema = import_v410.z.object({
15478
15790
  featureId: import_v410.z.string(),
@@ -15668,6 +15980,7 @@ var previewUpdateProrationOutboundSchema = import_v411.z.object({
15668
15980
  });
15669
15981
  var previewUpdateRolloverOutboundSchema = import_v411.z.object({
15670
15982
  max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
15983
+ max_percentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
15671
15984
  expiry_duration_type: import_v411.z.string(),
15672
15985
  expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
15673
15986
  });
@@ -15752,6 +16065,7 @@ var previewUpdateProrationSchema = import_v411.z.object({
15752
16065
  var previewUpdateExpiryDurationTypeSchema = closedEnumSchema7;
15753
16066
  var previewUpdateRolloverSchema = import_v411.z.object({
15754
16067
  max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
16068
+ maxPercentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
15755
16069
  expiryDurationType: previewUpdateExpiryDurationTypeSchema,
15756
16070
  expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
15757
16071
  });
@@ -15915,6 +16229,7 @@ var setupPaymentProrationOutboundSchema = import_v413.z.object({
15915
16229
  });
15916
16230
  var setupPaymentRolloverOutboundSchema = import_v413.z.object({
15917
16231
  max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
16232
+ max_percentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
15918
16233
  expiry_duration_type: import_v413.z.string(),
15919
16234
  expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
15920
16235
  });
@@ -16005,6 +16320,7 @@ var setupPaymentProrationSchema = import_v413.z.object({
16005
16320
  var setupPaymentExpiryDurationTypeSchema = closedEnumSchema8;
16006
16321
  var setupPaymentRolloverSchema = import_v413.z.object({
16007
16322
  max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
16323
+ maxPercentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
16008
16324
  expiryDurationType: setupPaymentExpiryDurationTypeSchema,
16009
16325
  expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
16010
16326
  });
@@ -16115,6 +16431,7 @@ var billingUpdateProrationOutboundSchema = import_v414.z.object({
16115
16431
  });
16116
16432
  var billingUpdateRolloverOutboundSchema = import_v414.z.object({
16117
16433
  max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
16434
+ max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
16118
16435
  expiry_duration_type: import_v414.z.string(),
16119
16436
  expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
16120
16437
  });
@@ -16195,6 +16512,7 @@ var billingUpdateProrationSchema = import_v414.z.object({
16195
16512
  var billingUpdateExpiryDurationTypeSchema = closedEnumSchema9;
16196
16513
  var billingUpdateRolloverSchema = import_v414.z.object({
16197
16514
  max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
16515
+ maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
16198
16516
  expiryDurationType: billingUpdateExpiryDurationTypeSchema,
16199
16517
  expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
16200
16518
  });