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