autumn-js 1.2.2 → 1.2.3

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 (137) 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 +333 -29
  4. package/dist/backend/adapters/express.mjs +9 -9
  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 +333 -29
  8. package/dist/backend/adapters/fetch.mjs +9 -9
  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 +333 -29
  12. package/dist/backend/adapters/hono.mjs +9 -9
  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 +333 -29
  16. package/dist/backend/adapters/index.mjs +12 -12
  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 +333 -29
  20. package/dist/backend/adapters/next.mjs +9 -9
  21. package/dist/backend/{authTypes-BCoyMOAj.d.mts → authTypes-B5VxPaMo.d.mts} +14 -0
  22. package/dist/backend/{authTypes-BCoyMOAj.d.ts → authTypes-B5VxPaMo.d.ts} +14 -0
  23. package/dist/backend/{chunk-C5ZDQJPP.mjs → chunk-2YEMC57K.mjs} +1 -1
  24. package/dist/backend/{chunk-6BVI5XZX.mjs → chunk-CCEZMERA.mjs} +277 -24
  25. package/dist/backend/{chunk-GLPHS5KF.mjs → chunk-ETHQSA52.mjs} +7 -7
  26. package/dist/backend/{chunk-OB47KG2H.mjs → chunk-FRKRWJ5S.mjs} +1 -1
  27. package/dist/backend/{chunk-GENKYO6B.mjs → chunk-IFFSWLXT.mjs} +1 -1
  28. package/dist/backend/{chunk-SX3CNUF5.mjs → chunk-IUFWKMTJ.mjs} +1 -1
  29. package/dist/backend/{chunk-XU4OGYDV.mjs → chunk-N62MDT7U.mjs} +56 -5
  30. package/dist/backend/{chunk-3QNAZFQH.mjs → chunk-OLHAIHAX.mjs} +5 -5
  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 +333 -29
  34. package/dist/backend/core/handlers/coreHandler.mjs +7 -7
  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/executeRoute.mjs +4 -4
  38. package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
  39. package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
  40. package/dist/backend/core/handlers/handleRouteByName.js +333 -29
  41. package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
  42. package/dist/backend/core/handlers/index.d.mts +2 -2
  43. package/dist/backend/core/handlers/index.d.ts +2 -2
  44. package/dist/backend/core/handlers/index.js +333 -29
  45. package/dist/backend/core/handlers/index.mjs +10 -10
  46. package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
  47. package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
  48. package/dist/backend/core/index.d.mts +2 -2
  49. package/dist/backend/core/index.d.ts +2 -2
  50. package/dist/backend/core/index.js +333 -29
  51. package/dist/backend/core/index.mjs +10 -10
  52. package/dist/backend/core/routes/index.d.mts +2 -2
  53. package/dist/backend/core/routes/index.d.ts +2 -2
  54. package/dist/backend/core/routes/index.js +56 -5
  55. package/dist/backend/core/routes/index.mjs +2 -2
  56. package/dist/backend/core/routes/routeBuilder.d.mts +2 -2
  57. package/dist/backend/core/routes/routeBuilder.d.ts +2 -2
  58. package/dist/backend/core/routes/routeConfigs.d.mts +2 -2
  59. package/dist/backend/core/routes/routeConfigs.d.ts +2 -2
  60. package/dist/backend/core/routes/routeConfigs.js +56 -5
  61. package/dist/backend/core/routes/routeConfigs.mjs +2 -2
  62. package/dist/backend/core/types/authTypes.d.mts +1 -1
  63. package/dist/backend/core/types/authTypes.d.ts +1 -1
  64. package/dist/backend/core/types/handlerTypes.d.mts +2 -2
  65. package/dist/backend/core/types/handlerTypes.d.ts +2 -2
  66. package/dist/backend/core/types/index.d.mts +2 -2
  67. package/dist/backend/core/types/index.d.ts +2 -2
  68. package/dist/backend/core/types/routeTypes.d.mts +2 -2
  69. package/dist/backend/core/types/routeTypes.d.ts +2 -2
  70. package/dist/backend/core/utils/index.mjs +3 -3
  71. package/dist/backend/index.d.mts +4 -4
  72. package/dist/backend/index.d.ts +4 -4
  73. package/dist/backend/index.js +333 -29
  74. package/dist/backend/index.mjs +10 -10
  75. package/dist/backend/{routeTypes-Che2nkqv.d.ts → routeTypes-BkSHRiCI.d.ts} +227 -2
  76. package/dist/backend/{routeTypes-RMeyKg5T.d.mts → routeTypes-C1hUtfD8.d.mts} +227 -2
  77. package/dist/better-auth/{chunk-6TAYCQUD.mjs → chunk-2PRVJULJ.mjs} +56 -5
  78. package/dist/better-auth/{chunk-5F3J4ZQQ.mjs → chunk-6J74ZVNY.mjs} +278 -25
  79. package/dist/better-auth/{chunk-IODRHT4E.mjs → chunk-IY7FPOWF.mjs} +1 -1
  80. package/dist/better-auth/index.js +333 -29
  81. package/dist/better-auth/index.mjs +3 -3
  82. package/dist/better-auth/types.d.mts +14 -0
  83. package/dist/better-auth/types.d.ts +14 -0
  84. package/dist/better-auth/utils/createAutumnEndpoint.js +56 -5
  85. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  86. package/dist/better-auth/utils/handleBetterAuthRoute.js +333 -29
  87. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  88. package/dist/better-auth/utils/index.js +333 -29
  89. package/dist/better-auth/utils/index.mjs +3 -3
  90. package/dist/react/AutumnContext.d.mts +3 -3
  91. package/dist/react/AutumnContext.d.ts +3 -3
  92. package/dist/react/client/AutumnClient.d.mts +3 -3
  93. package/dist/react/client/AutumnClient.d.ts +3 -3
  94. package/dist/react/client/IAutumnClient.d.mts +7 -3
  95. package/dist/react/client/IAutumnClient.d.ts +7 -3
  96. package/dist/react/client/index.d.mts +3 -3
  97. package/dist/react/client/index.d.ts +3 -3
  98. package/dist/react/{customer-CNvpHhpS.d.mts → customer-Bb7J-_p_.d.mts} +15 -1
  99. package/dist/react/{customer-CMAtwbJl.d.ts → customer-CJSDgQMF.d.ts} +15 -1
  100. package/dist/react/hooks/index.d.mts +3 -3
  101. package/dist/react/hooks/index.d.ts +3 -3
  102. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  103. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  104. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  105. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  106. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  107. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  108. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  109. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  110. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  111. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  112. package/dist/react/hooks/internal/useCustomerActions.d.mts +3 -3
  113. package/dist/react/hooks/internal/useCustomerActions.d.ts +3 -3
  114. package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
  115. package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
  116. package/dist/react/hooks/useCustomer.d.mts +3 -3
  117. package/dist/react/hooks/useCustomer.d.ts +3 -3
  118. package/dist/react/hooks/useEntity.d.mts +2 -2
  119. package/dist/react/hooks/useEntity.d.ts +2 -2
  120. package/dist/react/hooks/useListEvents.d.mts +2 -2
  121. package/dist/react/hooks/useListEvents.d.ts +2 -2
  122. package/dist/react/hooks/useListPlans.d.mts +2 -2
  123. package/dist/react/hooks/useListPlans.d.ts +2 -2
  124. package/dist/react/hooks/useReferrals.d.mts +2 -2
  125. package/dist/react/hooks/useReferrals.d.ts +2 -2
  126. package/dist/react/index.d.mts +3 -3
  127. package/dist/react/index.d.ts +3 -3
  128. package/dist/react/{params-CnOvYjqJ.d.ts → params-CheyAQ0-.d.mts} +87 -2
  129. package/dist/react/{params-Cdkj83CV.d.mts → params-yCtJ7lOA.d.ts} +87 -2
  130. package/dist/react/{plan-BoMslu_O.d.mts → plan-CqxFGNk2.d.mts} +4 -0
  131. package/dist/react/{plan-BoMslu_O.d.ts → plan-CqxFGNk2.d.ts} +4 -0
  132. package/dist/sdk/index.d.mts +333 -4
  133. package/dist/sdk/index.d.ts +333 -4
  134. package/dist/sdk/index.js +382 -24
  135. package/dist/sdk/index.mjs +357 -25
  136. package/package.json +1 -1
  137. package/dist/backend/{chunk-55C2WWXQ.mjs → chunk-S5HPMJ4U.mjs} +3 -3
package/dist/sdk/index.js CHANGED
@@ -83,8 +83,8 @@ var SDK_METADATA = {
83
83
  language: "typescript",
84
84
  openapiDocVersion: "2.2.0",
85
85
  sdkVersion: "0.10.17",
86
- genVersion: "2.869.25",
87
- userAgent: "speakeasy-sdk/typescript 0.10.17 2.869.25 2.2.0 @useautumn/sdk"
86
+ genVersion: "2.879.1",
87
+ userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.1 2.2.0 @useautumn/sdk"
88
88
  };
89
89
 
90
90
  // ../sdk/src/lib/files.ts
@@ -980,8 +980,8 @@ function applyBearer(state, spec) {
980
980
  state.headers[spec.fieldName] = value;
981
981
  }
982
982
  }
983
- function resolveGlobalSecurity(security) {
984
- return resolveSecurity(
983
+ function resolveGlobalSecurity(security, allowedFields) {
984
+ let inputs = [
985
985
  [
986
986
  {
987
987
  fieldName: "Authorization",
@@ -989,7 +989,8 @@ function resolveGlobalSecurity(security) {
989
989
  value: security?.secretKey ?? env().AUTUMN_SECRET_KEY
990
990
  }
991
991
  ]
992
- );
992
+ ];
993
+ return resolveSecurity(...inputs);
993
994
  }
994
995
  async function extractSecurity(sec) {
995
996
  if (sec == null) {
@@ -1634,11 +1635,13 @@ var AttachExpiryDurationType$outboundSchema = z39__namespace.enum(AttachExpiryDu
1634
1635
  var AttachRollover$outboundSchema = z39__namespace.pipe(
1635
1636
  z39__namespace.object({
1636
1637
  max: z39__namespace.optional(z39__namespace.number()),
1638
+ maxPercentage: z39__namespace.optional(z39__namespace.number()),
1637
1639
  expiryDurationType: AttachExpiryDurationType$outboundSchema,
1638
1640
  expiryDurationLength: z39__namespace.optional(z39__namespace.number())
1639
1641
  }),
1640
1642
  z39__namespace.transform((v) => {
1641
1643
  return remap(v, {
1644
+ maxPercentage: "max_percentage",
1642
1645
  expiryDurationType: "expiry_duration_type",
1643
1646
  expiryDurationLength: "expiry_duration_length"
1644
1647
  });
@@ -2318,11 +2321,13 @@ var BillingUpdateExpiryDurationType$outboundSchema = z39__namespace.enum(Billing
2318
2321
  var BillingUpdateRollover$outboundSchema = z39__namespace.pipe(
2319
2322
  z39__namespace.object({
2320
2323
  max: z39__namespace.optional(z39__namespace.number()),
2324
+ maxPercentage: z39__namespace.optional(z39__namespace.number()),
2321
2325
  expiryDurationType: BillingUpdateExpiryDurationType$outboundSchema,
2322
2326
  expiryDurationLength: z39__namespace.optional(z39__namespace.number())
2323
2327
  }),
2324
2328
  z39__namespace.transform((v) => {
2325
2329
  return remap(v, {
2330
+ maxPercentage: "max_percentage",
2326
2331
  expiryDurationType: "expiry_duration_type",
2327
2332
  expiryDurationLength: "expiry_duration_length"
2328
2333
  });
@@ -2769,11 +2774,19 @@ function productDisplayFromJSON(jsonString) {
2769
2774
  );
2770
2775
  }
2771
2776
  var RolloverDuration$inboundSchema = inboundSchema(RolloverDuration);
2772
- var CheckRollover$inboundSchema = z39__namespace.object({
2773
- max: nullable(number2()),
2774
- duration: z39__namespace._default(RolloverDuration$inboundSchema, "month"),
2775
- length: number2()
2776
- });
2777
+ var CheckRollover$inboundSchema = z39__namespace.pipe(
2778
+ z39__namespace.object({
2779
+ max: z39__namespace.optional(z39__namespace.nullable(number2())),
2780
+ max_percentage: z39__namespace.optional(z39__namespace.nullable(number2())),
2781
+ duration: z39__namespace._default(RolloverDuration$inboundSchema, "month"),
2782
+ length: number2()
2783
+ }),
2784
+ z39__namespace.transform((v) => {
2785
+ return remap(v, {
2786
+ "max_percentage": "maxPercentage"
2787
+ });
2788
+ })
2789
+ );
2777
2790
  function checkRolloverFromJSON(jsonString) {
2778
2791
  return safeParse(
2779
2792
  jsonString,
@@ -3134,6 +3147,22 @@ function customerDataUsageAlertToJSON(customerDataUsageAlert) {
3134
3147
  CustomerDataUsageAlert$outboundSchema.parse(customerDataUsageAlert)
3135
3148
  );
3136
3149
  }
3150
+ var CustomerDataOverageAllowed$outboundSchema = z39__namespace.pipe(
3151
+ z39__namespace.object({
3152
+ featureId: z39__namespace.string(),
3153
+ enabled: z39__namespace._default(z39__namespace.boolean(), false)
3154
+ }),
3155
+ z39__namespace.transform((v) => {
3156
+ return remap(v, {
3157
+ featureId: "feature_id"
3158
+ });
3159
+ })
3160
+ );
3161
+ function customerDataOverageAllowedToJSON(customerDataOverageAllowed) {
3162
+ return JSON.stringify(
3163
+ CustomerDataOverageAllowed$outboundSchema.parse(customerDataOverageAllowed)
3164
+ );
3165
+ }
3137
3166
  var CustomerDataBillingControls$outboundSchema = z39__namespace.pipe(
3138
3167
  z39__namespace.object({
3139
3168
  autoTopups: z39__namespace.optional(
@@ -3144,13 +3173,17 @@ var CustomerDataBillingControls$outboundSchema = z39__namespace.pipe(
3144
3173
  ),
3145
3174
  usageAlerts: z39__namespace.optional(
3146
3175
  z39__namespace.array(z39__namespace.lazy(() => CustomerDataUsageAlert$outboundSchema))
3176
+ ),
3177
+ overageAllowed: z39__namespace.optional(
3178
+ z39__namespace.array(z39__namespace.lazy(() => CustomerDataOverageAllowed$outboundSchema))
3147
3179
  )
3148
3180
  }),
3149
3181
  z39__namespace.transform((v) => {
3150
3182
  return remap(v, {
3151
3183
  autoTopups: "auto_topups",
3152
3184
  spendLimits: "spend_limits",
3153
- usageAlerts: "usage_alerts"
3185
+ usageAlerts: "usage_alerts",
3186
+ overageAllowed: "overage_allowed"
3154
3187
  });
3155
3188
  })
3156
3189
  );
@@ -3424,11 +3457,13 @@ var ExpiryDurationType$inboundSchema = inboundSchema(ExpiryDurationType);
3424
3457
  var PlanRollover$inboundSchema = z39__namespace.pipe(
3425
3458
  z39__namespace.object({
3426
3459
  max: nullable(number2()),
3460
+ max_percentage: z39__namespace.optional(z39__namespace.nullable(number2())),
3427
3461
  expiry_duration_type: ExpiryDurationType$inboundSchema,
3428
3462
  expiry_duration_length: optional2(number2())
3429
3463
  }),
3430
3464
  z39__namespace.transform((v) => {
3431
3465
  return remap(v, {
3466
+ "max_percentage": "maxPercentage",
3432
3467
  "expiry_duration_type": "expiryDurationType",
3433
3468
  "expiry_duration_length": "expiryDurationLength"
3434
3469
  });
@@ -3616,6 +3651,24 @@ function createEntityUsageAlertRequestBodyToJSON(createEntityUsageAlertRequestBo
3616
3651
  )
3617
3652
  );
3618
3653
  }
3654
+ var CreateEntityOverageAllowedRequest$outboundSchema = z39__namespace.pipe(
3655
+ z39__namespace.object({
3656
+ featureId: z39__namespace.string(),
3657
+ enabled: z39__namespace._default(z39__namespace.boolean(), false)
3658
+ }),
3659
+ z39__namespace.transform((v) => {
3660
+ return remap(v, {
3661
+ featureId: "feature_id"
3662
+ });
3663
+ })
3664
+ );
3665
+ function createEntityOverageAllowedRequestToJSON(createEntityOverageAllowedRequest) {
3666
+ return JSON.stringify(
3667
+ CreateEntityOverageAllowedRequest$outboundSchema.parse(
3668
+ createEntityOverageAllowedRequest
3669
+ )
3670
+ );
3671
+ }
3619
3672
  var CreateEntityBillingControlsRequest$outboundSchema = z39__namespace.pipe(
3620
3673
  z39__namespace.object({
3621
3674
  spendLimits: z39__namespace.optional(
@@ -3623,12 +3676,16 @@ var CreateEntityBillingControlsRequest$outboundSchema = z39__namespace.pipe(
3623
3676
  ),
3624
3677
  usageAlerts: z39__namespace.optional(
3625
3678
  z39__namespace.array(z39__namespace.lazy(() => CreateEntityUsageAlertRequestBody$outboundSchema))
3679
+ ),
3680
+ overageAllowed: z39__namespace.optional(
3681
+ z39__namespace.array(z39__namespace.lazy(() => CreateEntityOverageAllowedRequest$outboundSchema))
3626
3682
  )
3627
3683
  }),
3628
3684
  z39__namespace.transform((v) => {
3629
3685
  return remap(v, {
3630
3686
  spendLimits: "spend_limits",
3631
- usageAlerts: "usage_alerts"
3687
+ usageAlerts: "usage_alerts",
3688
+ overageAllowed: "overage_allowed"
3632
3689
  });
3633
3690
  })
3634
3691
  );
@@ -3853,6 +3910,24 @@ function createEntityUsageAlertResponseFromJSON(jsonString) {
3853
3910
  `Failed to parse 'CreateEntityUsageAlertResponse' from JSON`
3854
3911
  );
3855
3912
  }
3913
+ var CreateEntityOverageAllowedResponse$inboundSchema = z39__namespace.pipe(
3914
+ z39__namespace.object({
3915
+ feature_id: string4(),
3916
+ enabled: z39__namespace._default(boolean2(), false)
3917
+ }),
3918
+ z39__namespace.transform((v) => {
3919
+ return remap(v, {
3920
+ "feature_id": "featureId"
3921
+ });
3922
+ })
3923
+ );
3924
+ function createEntityOverageAllowedResponseFromJSON(jsonString) {
3925
+ return safeParse(
3926
+ jsonString,
3927
+ (x) => CreateEntityOverageAllowedResponse$inboundSchema.parse(JSON.parse(x)),
3928
+ `Failed to parse 'CreateEntityOverageAllowedResponse' from JSON`
3929
+ );
3930
+ }
3856
3931
  var CreateEntityBillingControlsResponse$inboundSchema = z39__namespace.pipe(
3857
3932
  z39__namespace.object({
3858
3933
  spend_limits: optional2(
@@ -3860,12 +3935,16 @@ var CreateEntityBillingControlsResponse$inboundSchema = z39__namespace.pipe(
3860
3935
  ),
3861
3936
  usage_alerts: optional2(
3862
3937
  z39__namespace.array(z39__namespace.lazy(() => CreateEntityUsageAlertResponse$inboundSchema))
3938
+ ),
3939
+ overage_allowed: optional2(
3940
+ z39__namespace.array(z39__namespace.lazy(() => CreateEntityOverageAllowedResponse$inboundSchema))
3863
3941
  )
3864
3942
  }),
3865
3943
  z39__namespace.transform((v) => {
3866
3944
  return remap(v, {
3867
3945
  "spend_limits": "spendLimits",
3868
- "usage_alerts": "usageAlerts"
3946
+ "usage_alerts": "usageAlerts",
3947
+ "overage_allowed": "overageAllowed"
3869
3948
  });
3870
3949
  })
3871
3950
  );
@@ -4296,11 +4375,13 @@ var CreatePlanExpiryDurationTypeRequest$outboundSchema = z39__namespace.enum(Cre
4296
4375
  var CreatePlanRolloverRequest$outboundSchema = z39__namespace.pipe(
4297
4376
  z39__namespace.object({
4298
4377
  max: z39__namespace.optional(z39__namespace.number()),
4378
+ maxPercentage: z39__namespace.optional(z39__namespace.number()),
4299
4379
  expiryDurationType: CreatePlanExpiryDurationTypeRequest$outboundSchema,
4300
4380
  expiryDurationLength: z39__namespace.optional(z39__namespace.number())
4301
4381
  }),
4302
4382
  z39__namespace.transform((v) => {
4303
4383
  return remap(v, {
4384
+ maxPercentage: "max_percentage",
4304
4385
  expiryDurationType: "expiry_duration_type",
4305
4386
  expiryDurationLength: "expiry_duration_length"
4306
4387
  });
@@ -4553,11 +4634,13 @@ var CreatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(CreatePla
4553
4634
  var CreatePlanRolloverResponse$inboundSchema = z39__namespace.pipe(
4554
4635
  z39__namespace.object({
4555
4636
  max: nullable(number2()),
4637
+ max_percentage: z39__namespace.optional(z39__namespace.nullable(number2())),
4556
4638
  expiry_duration_type: CreatePlanExpiryDurationTypeResponse$inboundSchema,
4557
4639
  expiry_duration_length: optional2(number2())
4558
4640
  }),
4559
4641
  z39__namespace.transform((v) => {
4560
4642
  return remap(v, {
4643
+ "max_percentage": "maxPercentage",
4561
4644
  "expiry_duration_type": "expiryDurationType",
4562
4645
  "expiry_duration_length": "expiryDurationLength"
4563
4646
  });
@@ -4848,6 +4931,24 @@ function customerUsageAlertFromJSON(jsonString) {
4848
4931
  `Failed to parse 'CustomerUsageAlert' from JSON`
4849
4932
  );
4850
4933
  }
4934
+ var CustomerOverageAllowed$inboundSchema = z39__namespace.pipe(
4935
+ z39__namespace.object({
4936
+ feature_id: string4(),
4937
+ enabled: z39__namespace._default(boolean2(), false)
4938
+ }),
4939
+ z39__namespace.transform((v) => {
4940
+ return remap(v, {
4941
+ "feature_id": "featureId"
4942
+ });
4943
+ })
4944
+ );
4945
+ function customerOverageAllowedFromJSON(jsonString) {
4946
+ return safeParse(
4947
+ jsonString,
4948
+ (x) => CustomerOverageAllowed$inboundSchema.parse(JSON.parse(x)),
4949
+ `Failed to parse 'CustomerOverageAllowed' from JSON`
4950
+ );
4951
+ }
4851
4952
  var CustomerBillingControls$inboundSchema = z39__namespace.pipe(
4852
4953
  z39__namespace.object({
4853
4954
  auto_topups: optional2(
@@ -4858,13 +4959,17 @@ var CustomerBillingControls$inboundSchema = z39__namespace.pipe(
4858
4959
  ),
4859
4960
  usage_alerts: optional2(
4860
4961
  z39__namespace.array(z39__namespace.lazy(() => CustomerUsageAlert$inboundSchema))
4962
+ ),
4963
+ overage_allowed: optional2(
4964
+ z39__namespace.array(z39__namespace.lazy(() => CustomerOverageAllowed$inboundSchema))
4861
4965
  )
4862
4966
  }),
4863
4967
  z39__namespace.transform((v) => {
4864
4968
  return remap(v, {
4865
4969
  "auto_topups": "autoTopups",
4866
4970
  "spend_limits": "spendLimits",
4867
- "usage_alerts": "usageAlerts"
4971
+ "usage_alerts": "usageAlerts",
4972
+ "overage_allowed": "overageAllowed"
4868
4973
  });
4869
4974
  })
4870
4975
  );
@@ -5618,6 +5723,24 @@ function getEntityUsageAlertFromJSON(jsonString) {
5618
5723
  `Failed to parse 'GetEntityUsageAlert' from JSON`
5619
5724
  );
5620
5725
  }
5726
+ var GetEntityOverageAllowed$inboundSchema = z39__namespace.pipe(
5727
+ z39__namespace.object({
5728
+ feature_id: string4(),
5729
+ enabled: z39__namespace._default(boolean2(), false)
5730
+ }),
5731
+ z39__namespace.transform((v) => {
5732
+ return remap(v, {
5733
+ "feature_id": "featureId"
5734
+ });
5735
+ })
5736
+ );
5737
+ function getEntityOverageAllowedFromJSON(jsonString) {
5738
+ return safeParse(
5739
+ jsonString,
5740
+ (x) => GetEntityOverageAllowed$inboundSchema.parse(JSON.parse(x)),
5741
+ `Failed to parse 'GetEntityOverageAllowed' from JSON`
5742
+ );
5743
+ }
5621
5744
  var GetEntityBillingControls$inboundSchema = z39__namespace.pipe(
5622
5745
  z39__namespace.object({
5623
5746
  spend_limits: optional2(
@@ -5625,12 +5748,16 @@ var GetEntityBillingControls$inboundSchema = z39__namespace.pipe(
5625
5748
  ),
5626
5749
  usage_alerts: optional2(
5627
5750
  z39__namespace.array(z39__namespace.lazy(() => GetEntityUsageAlert$inboundSchema))
5751
+ ),
5752
+ overage_allowed: optional2(
5753
+ z39__namespace.array(z39__namespace.lazy(() => GetEntityOverageAllowed$inboundSchema))
5628
5754
  )
5629
5755
  }),
5630
5756
  z39__namespace.transform((v) => {
5631
5757
  return remap(v, {
5632
5758
  "spend_limits": "spendLimits",
5633
- "usage_alerts": "usageAlerts"
5759
+ "usage_alerts": "usageAlerts",
5760
+ "overage_allowed": "overageAllowed"
5634
5761
  });
5635
5762
  })
5636
5763
  );
@@ -5877,6 +6004,24 @@ function getOrCreateCustomerUsageAlertToJSON(getOrCreateCustomerUsageAlert) {
5877
6004
  )
5878
6005
  );
5879
6006
  }
6007
+ var GetOrCreateCustomerOverageAllowed$outboundSchema = z39__namespace.pipe(
6008
+ z39__namespace.object({
6009
+ featureId: z39__namespace.string(),
6010
+ enabled: z39__namespace._default(z39__namespace.boolean(), false)
6011
+ }),
6012
+ z39__namespace.transform((v) => {
6013
+ return remap(v, {
6014
+ featureId: "feature_id"
6015
+ });
6016
+ })
6017
+ );
6018
+ function getOrCreateCustomerOverageAllowedToJSON(getOrCreateCustomerOverageAllowed) {
6019
+ return JSON.stringify(
6020
+ GetOrCreateCustomerOverageAllowed$outboundSchema.parse(
6021
+ getOrCreateCustomerOverageAllowed
6022
+ )
6023
+ );
6024
+ }
5880
6025
  var GetOrCreateCustomerBillingControls$outboundSchema = z39__namespace.pipe(
5881
6026
  z39__namespace.object({
5882
6027
  autoTopups: z39__namespace.optional(
@@ -5887,13 +6032,17 @@ var GetOrCreateCustomerBillingControls$outboundSchema = z39__namespace.pipe(
5887
6032
  ),
5888
6033
  usageAlerts: z39__namespace.optional(
5889
6034
  z39__namespace.array(z39__namespace.lazy(() => GetOrCreateCustomerUsageAlert$outboundSchema))
6035
+ ),
6036
+ overageAllowed: z39__namespace.optional(
6037
+ z39__namespace.array(z39__namespace.lazy(() => GetOrCreateCustomerOverageAllowed$outboundSchema))
5890
6038
  )
5891
6039
  }),
5892
6040
  z39__namespace.transform((v) => {
5893
6041
  return remap(v, {
5894
6042
  autoTopups: "auto_topups",
5895
6043
  spendLimits: "spend_limits",
5896
- usageAlerts: "usage_alerts"
6044
+ usageAlerts: "usage_alerts",
6045
+ overageAllowed: "overage_allowed"
5897
6046
  });
5898
6047
  })
5899
6048
  );
@@ -6186,11 +6335,13 @@ var GetPlanExpiryDurationType$inboundSchema = inboundSchema(GetPlanExpiryDuratio
6186
6335
  var GetPlanRollover$inboundSchema = z39__namespace.pipe(
6187
6336
  z39__namespace.object({
6188
6337
  max: nullable(number2()),
6338
+ max_percentage: z39__namespace.optional(z39__namespace.nullable(number2())),
6189
6339
  expiry_duration_type: GetPlanExpiryDurationType$inboundSchema,
6190
6340
  expiry_duration_length: optional2(number2())
6191
6341
  }),
6192
6342
  z39__namespace.transform((v) => {
6193
6343
  return remap(v, {
6344
+ "max_percentage": "maxPercentage",
6194
6345
  "expiry_duration_type": "expiryDurationType",
6195
6346
  "expiry_duration_length": "expiryDurationLength"
6196
6347
  });
@@ -6503,6 +6654,24 @@ function listCustomersUsageAlertFromJSON(jsonString) {
6503
6654
  `Failed to parse 'ListCustomersUsageAlert' from JSON`
6504
6655
  );
6505
6656
  }
6657
+ var ListCustomersOverageAllowed$inboundSchema = z39__namespace.pipe(
6658
+ z39__namespace.object({
6659
+ feature_id: string4(),
6660
+ enabled: z39__namespace._default(boolean2(), false)
6661
+ }),
6662
+ z39__namespace.transform((v) => {
6663
+ return remap(v, {
6664
+ "feature_id": "featureId"
6665
+ });
6666
+ })
6667
+ );
6668
+ function listCustomersOverageAllowedFromJSON(jsonString) {
6669
+ return safeParse(
6670
+ jsonString,
6671
+ (x) => ListCustomersOverageAllowed$inboundSchema.parse(JSON.parse(x)),
6672
+ `Failed to parse 'ListCustomersOverageAllowed' from JSON`
6673
+ );
6674
+ }
6506
6675
  var ListCustomersBillingControls$inboundSchema = z39__namespace.pipe(
6507
6676
  z39__namespace.object({
6508
6677
  auto_topups: optional2(
@@ -6513,13 +6682,17 @@ var ListCustomersBillingControls$inboundSchema = z39__namespace.pipe(
6513
6682
  ),
6514
6683
  usage_alerts: optional2(
6515
6684
  z39__namespace.array(z39__namespace.lazy(() => ListCustomersUsageAlert$inboundSchema))
6685
+ ),
6686
+ overage_allowed: optional2(
6687
+ z39__namespace.array(z39__namespace.lazy(() => ListCustomersOverageAllowed$inboundSchema))
6516
6688
  )
6517
6689
  }),
6518
6690
  z39__namespace.transform((v) => {
6519
6691
  return remap(v, {
6520
6692
  "auto_topups": "autoTopups",
6521
6693
  "spend_limits": "spendLimits",
6522
- "usage_alerts": "usageAlerts"
6694
+ "usage_alerts": "usageAlerts",
6695
+ "overage_allowed": "overageAllowed"
6523
6696
  });
6524
6697
  })
6525
6698
  );
@@ -7156,11 +7329,13 @@ var ListPlansExpiryDurationType$inboundSchema = inboundSchema(ListPlansExpiryDur
7156
7329
  var ListPlansRollover$inboundSchema = z39__namespace.pipe(
7157
7330
  z39__namespace.object({
7158
7331
  max: nullable(number2()),
7332
+ max_percentage: z39__namespace.optional(z39__namespace.nullable(number2())),
7159
7333
  expiry_duration_type: ListPlansExpiryDurationType$inboundSchema,
7160
7334
  expiry_duration_length: optional2(number2())
7161
7335
  }),
7162
7336
  z39__namespace.transform((v) => {
7163
7337
  return remap(v, {
7338
+ "max_percentage": "maxPercentage",
7164
7339
  "expiry_duration_type": "expiryDurationType",
7165
7340
  "expiry_duration_length": "expiryDurationLength"
7166
7341
  });
@@ -7469,11 +7644,13 @@ var MultiAttachExpiryDurationType$outboundSchema = z39__namespace.enum(MultiAtta
7469
7644
  var MultiAttachRollover$outboundSchema = z39__namespace.pipe(
7470
7645
  z39__namespace.object({
7471
7646
  max: z39__namespace.optional(z39__namespace.number()),
7647
+ maxPercentage: z39__namespace.optional(z39__namespace.number()),
7472
7648
  expiryDurationType: MultiAttachExpiryDurationType$outboundSchema,
7473
7649
  expiryDurationLength: z39__namespace.optional(z39__namespace.number())
7474
7650
  }),
7475
7651
  z39__namespace.transform((v) => {
7476
7652
  return remap(v, {
7653
+ maxPercentage: "max_percentage",
7477
7654
  expiryDurationType: "expiry_duration_type",
7478
7655
  expiryDurationLength: "expiry_duration_length"
7479
7656
  });
@@ -7648,6 +7825,22 @@ function multiAttachUsageAlertToJSON(multiAttachUsageAlert) {
7648
7825
  MultiAttachUsageAlert$outboundSchema.parse(multiAttachUsageAlert)
7649
7826
  );
7650
7827
  }
7828
+ var MultiAttachOverageAllowed$outboundSchema = z39__namespace.pipe(
7829
+ z39__namespace.object({
7830
+ featureId: z39__namespace.string(),
7831
+ enabled: z39__namespace._default(z39__namespace.boolean(), false)
7832
+ }),
7833
+ z39__namespace.transform((v) => {
7834
+ return remap(v, {
7835
+ featureId: "feature_id"
7836
+ });
7837
+ })
7838
+ );
7839
+ function multiAttachOverageAllowedToJSON(multiAttachOverageAllowed) {
7840
+ return JSON.stringify(
7841
+ MultiAttachOverageAllowed$outboundSchema.parse(multiAttachOverageAllowed)
7842
+ );
7843
+ }
7651
7844
  var MultiAttachBillingControls$outboundSchema = z39__namespace.pipe(
7652
7845
  z39__namespace.object({
7653
7846
  spendLimits: z39__namespace.optional(
@@ -7655,12 +7848,16 @@ var MultiAttachBillingControls$outboundSchema = z39__namespace.pipe(
7655
7848
  ),
7656
7849
  usageAlerts: z39__namespace.optional(
7657
7850
  z39__namespace.array(z39__namespace.lazy(() => MultiAttachUsageAlert$outboundSchema))
7851
+ ),
7852
+ overageAllowed: z39__namespace.optional(
7853
+ z39__namespace.array(z39__namespace.lazy(() => MultiAttachOverageAllowed$outboundSchema))
7658
7854
  )
7659
7855
  }),
7660
7856
  z39__namespace.transform((v) => {
7661
7857
  return remap(v, {
7662
7858
  spendLimits: "spend_limits",
7663
- usageAlerts: "usage_alerts"
7859
+ usageAlerts: "usage_alerts",
7860
+ overageAllowed: "overage_allowed"
7664
7861
  });
7665
7862
  })
7666
7863
  );
@@ -8031,11 +8228,13 @@ var PreviewAttachExpiryDurationType$outboundSchema = z39__namespace.enum(Preview
8031
8228
  var PreviewAttachRollover$outboundSchema = z39__namespace.pipe(
8032
8229
  z39__namespace.object({
8033
8230
  max: z39__namespace.optional(z39__namespace.number()),
8231
+ maxPercentage: z39__namespace.optional(z39__namespace.number()),
8034
8232
  expiryDurationType: PreviewAttachExpiryDurationType$outboundSchema,
8035
8233
  expiryDurationLength: z39__namespace.optional(z39__namespace.number())
8036
8234
  }),
8037
8235
  z39__namespace.transform((v) => {
8038
8236
  return remap(v, {
8237
+ maxPercentage: "max_percentage",
8039
8238
  expiryDurationType: "expiry_duration_type",
8040
8239
  expiryDurationLength: "expiry_duration_length"
8041
8240
  });
@@ -8768,11 +8967,13 @@ var PreviewMultiAttachExpiryDurationType$outboundSchema = z39__namespace.enum(Pr
8768
8967
  var PreviewMultiAttachRollover$outboundSchema = z39__namespace.pipe(
8769
8968
  z39__namespace.object({
8770
8969
  max: z39__namespace.optional(z39__namespace.number()),
8970
+ maxPercentage: z39__namespace.optional(z39__namespace.number()),
8771
8971
  expiryDurationType: PreviewMultiAttachExpiryDurationType$outboundSchema,
8772
8972
  expiryDurationLength: z39__namespace.optional(z39__namespace.number())
8773
8973
  }),
8774
8974
  z39__namespace.transform((v) => {
8775
8975
  return remap(v, {
8976
+ maxPercentage: "max_percentage",
8776
8977
  expiryDurationType: "expiry_duration_type",
8777
8978
  expiryDurationLength: "expiry_duration_length"
8778
8979
  });
@@ -8976,6 +9177,24 @@ function previewMultiAttachUsageAlertToJSON(previewMultiAttachUsageAlert) {
8976
9177
  )
8977
9178
  );
8978
9179
  }
9180
+ var PreviewMultiAttachOverageAllowed$outboundSchema = z39__namespace.pipe(
9181
+ z39__namespace.object({
9182
+ featureId: z39__namespace.string(),
9183
+ enabled: z39__namespace._default(z39__namespace.boolean(), false)
9184
+ }),
9185
+ z39__namespace.transform((v) => {
9186
+ return remap(v, {
9187
+ featureId: "feature_id"
9188
+ });
9189
+ })
9190
+ );
9191
+ function previewMultiAttachOverageAllowedToJSON(previewMultiAttachOverageAllowed) {
9192
+ return JSON.stringify(
9193
+ PreviewMultiAttachOverageAllowed$outboundSchema.parse(
9194
+ previewMultiAttachOverageAllowed
9195
+ )
9196
+ );
9197
+ }
8979
9198
  var PreviewMultiAttachBillingControls$outboundSchema = z39__namespace.pipe(
8980
9199
  z39__namespace.object({
8981
9200
  spendLimits: z39__namespace.optional(
@@ -8983,12 +9202,16 @@ var PreviewMultiAttachBillingControls$outboundSchema = z39__namespace.pipe(
8983
9202
  ),
8984
9203
  usageAlerts: z39__namespace.optional(
8985
9204
  z39__namespace.array(z39__namespace.lazy(() => PreviewMultiAttachUsageAlert$outboundSchema))
9205
+ ),
9206
+ overageAllowed: z39__namespace.optional(
9207
+ z39__namespace.array(z39__namespace.lazy(() => PreviewMultiAttachOverageAllowed$outboundSchema))
8986
9208
  )
8987
9209
  }),
8988
9210
  z39__namespace.transform((v) => {
8989
9211
  return remap(v, {
8990
9212
  spendLimits: "spend_limits",
8991
- usageAlerts: "usage_alerts"
9213
+ usageAlerts: "usage_alerts",
9214
+ overageAllowed: "overage_allowed"
8992
9215
  });
8993
9216
  })
8994
9217
  );
@@ -9599,11 +9822,13 @@ var PreviewUpdateExpiryDurationType$outboundSchema = z39__namespace.enum(Preview
9599
9822
  var PreviewUpdateRollover$outboundSchema = z39__namespace.pipe(
9600
9823
  z39__namespace.object({
9601
9824
  max: z39__namespace.optional(z39__namespace.number()),
9825
+ maxPercentage: z39__namespace.optional(z39__namespace.number()),
9602
9826
  expiryDurationType: PreviewUpdateExpiryDurationType$outboundSchema,
9603
9827
  expiryDurationLength: z39__namespace.optional(z39__namespace.number())
9604
9828
  }),
9605
9829
  z39__namespace.transform((v) => {
9606
9830
  return remap(v, {
9831
+ maxPercentage: "max_percentage",
9607
9832
  expiryDurationType: "expiry_duration_type",
9608
9833
  expiryDurationLength: "expiry_duration_length"
9609
9834
  });
@@ -10303,11 +10528,13 @@ var SetupPaymentExpiryDurationType$outboundSchema = z39__namespace.enum(SetupPay
10303
10528
  var SetupPaymentRollover$outboundSchema = z39__namespace.pipe(
10304
10529
  z39__namespace.object({
10305
10530
  max: z39__namespace.optional(z39__namespace.number()),
10531
+ maxPercentage: z39__namespace.optional(z39__namespace.number()),
10306
10532
  expiryDurationType: SetupPaymentExpiryDurationType$outboundSchema,
10307
10533
  expiryDurationLength: z39__namespace.optional(z39__namespace.number())
10308
10534
  }),
10309
10535
  z39__namespace.transform((v) => {
10310
10536
  return remap(v, {
10537
+ maxPercentage: "max_percentage",
10311
10538
  expiryDurationType: "expiry_duration_type",
10312
10539
  expiryDurationLength: "expiry_duration_length"
10313
10540
  });
@@ -10754,6 +10981,24 @@ function updateCustomerUsageAlertRequestBodyToJSON(updateCustomerUsageAlertReque
10754
10981
  )
10755
10982
  );
10756
10983
  }
10984
+ var UpdateCustomerOverageAllowedRequest$outboundSchema = z39__namespace.pipe(
10985
+ z39__namespace.object({
10986
+ featureId: z39__namespace.string(),
10987
+ enabled: z39__namespace._default(z39__namespace.boolean(), false)
10988
+ }),
10989
+ z39__namespace.transform((v) => {
10990
+ return remap(v, {
10991
+ featureId: "feature_id"
10992
+ });
10993
+ })
10994
+ );
10995
+ function updateCustomerOverageAllowedRequestToJSON(updateCustomerOverageAllowedRequest) {
10996
+ return JSON.stringify(
10997
+ UpdateCustomerOverageAllowedRequest$outboundSchema.parse(
10998
+ updateCustomerOverageAllowedRequest
10999
+ )
11000
+ );
11001
+ }
10757
11002
  var UpdateCustomerBillingControlsRequest$outboundSchema = z39__namespace.pipe(
10758
11003
  z39__namespace.object({
10759
11004
  autoTopups: z39__namespace.optional(
@@ -10764,13 +11009,17 @@ var UpdateCustomerBillingControlsRequest$outboundSchema = z39__namespace.pipe(
10764
11009
  ),
10765
11010
  usageAlerts: z39__namespace.optional(
10766
11011
  z39__namespace.array(z39__namespace.lazy(() => UpdateCustomerUsageAlertRequestBody$outboundSchema))
11012
+ ),
11013
+ overageAllowed: z39__namespace.optional(
11014
+ z39__namespace.array(z39__namespace.lazy(() => UpdateCustomerOverageAllowedRequest$outboundSchema))
10767
11015
  )
10768
11016
  }),
10769
11017
  z39__namespace.transform((v) => {
10770
11018
  return remap(v, {
10771
11019
  autoTopups: "auto_topups",
10772
11020
  spendLimits: "spend_limits",
10773
- usageAlerts: "usage_alerts"
11021
+ usageAlerts: "usage_alerts",
11022
+ overageAllowed: "overage_allowed"
10774
11023
  });
10775
11024
  })
10776
11025
  );
@@ -10898,6 +11147,24 @@ function updateCustomerUsageAlertResponseFromJSON(jsonString) {
10898
11147
  `Failed to parse 'UpdateCustomerUsageAlertResponse' from JSON`
10899
11148
  );
10900
11149
  }
11150
+ var UpdateCustomerOverageAllowedResponse$inboundSchema = z39__namespace.pipe(
11151
+ z39__namespace.object({
11152
+ feature_id: string4(),
11153
+ enabled: z39__namespace._default(boolean2(), false)
11154
+ }),
11155
+ z39__namespace.transform((v) => {
11156
+ return remap(v, {
11157
+ "feature_id": "featureId"
11158
+ });
11159
+ })
11160
+ );
11161
+ function updateCustomerOverageAllowedResponseFromJSON(jsonString) {
11162
+ return safeParse(
11163
+ jsonString,
11164
+ (x) => UpdateCustomerOverageAllowedResponse$inboundSchema.parse(JSON.parse(x)),
11165
+ `Failed to parse 'UpdateCustomerOverageAllowedResponse' from JSON`
11166
+ );
11167
+ }
10901
11168
  var UpdateCustomerBillingControlsResponse$inboundSchema = z39__namespace.pipe(
10902
11169
  z39__namespace.object({
10903
11170
  auto_topups: optional2(
@@ -10908,13 +11175,17 @@ var UpdateCustomerBillingControlsResponse$inboundSchema = z39__namespace.pipe(
10908
11175
  ),
10909
11176
  usage_alerts: optional2(
10910
11177
  z39__namespace.array(z39__namespace.lazy(() => UpdateCustomerUsageAlertResponse$inboundSchema))
11178
+ ),
11179
+ overage_allowed: optional2(
11180
+ z39__namespace.array(z39__namespace.lazy(() => UpdateCustomerOverageAllowedResponse$inboundSchema))
10911
11181
  )
10912
11182
  }),
10913
11183
  z39__namespace.transform((v) => {
10914
11184
  return remap(v, {
10915
11185
  "auto_topups": "autoTopups",
10916
11186
  "spend_limits": "spendLimits",
10917
- "usage_alerts": "usageAlerts"
11187
+ "usage_alerts": "usageAlerts",
11188
+ "overage_allowed": "overageAllowed"
10918
11189
  });
10919
11190
  })
10920
11191
  );
@@ -11173,6 +11444,24 @@ function updateEntityUsageAlertRequestBodyToJSON(updateEntityUsageAlertRequestBo
11173
11444
  )
11174
11445
  );
11175
11446
  }
11447
+ var UpdateEntityOverageAllowedRequest$outboundSchema = z39__namespace.pipe(
11448
+ z39__namespace.object({
11449
+ featureId: z39__namespace.string(),
11450
+ enabled: z39__namespace._default(z39__namespace.boolean(), false)
11451
+ }),
11452
+ z39__namespace.transform((v) => {
11453
+ return remap(v, {
11454
+ featureId: "feature_id"
11455
+ });
11456
+ })
11457
+ );
11458
+ function updateEntityOverageAllowedRequestToJSON(updateEntityOverageAllowedRequest) {
11459
+ return JSON.stringify(
11460
+ UpdateEntityOverageAllowedRequest$outboundSchema.parse(
11461
+ updateEntityOverageAllowedRequest
11462
+ )
11463
+ );
11464
+ }
11176
11465
  var UpdateEntityBillingControlsRequest$outboundSchema = z39__namespace.pipe(
11177
11466
  z39__namespace.object({
11178
11467
  spendLimits: z39__namespace.optional(
@@ -11180,12 +11469,16 @@ var UpdateEntityBillingControlsRequest$outboundSchema = z39__namespace.pipe(
11180
11469
  ),
11181
11470
  usageAlerts: z39__namespace.optional(
11182
11471
  z39__namespace.array(z39__namespace.lazy(() => UpdateEntityUsageAlertRequestBody$outboundSchema))
11472
+ ),
11473
+ overageAllowed: z39__namespace.optional(
11474
+ z39__namespace.array(z39__namespace.lazy(() => UpdateEntityOverageAllowedRequest$outboundSchema))
11183
11475
  )
11184
11476
  }),
11185
11477
  z39__namespace.transform((v) => {
11186
11478
  return remap(v, {
11187
11479
  spendLimits: "spend_limits",
11188
- usageAlerts: "usage_alerts"
11480
+ usageAlerts: "usage_alerts",
11481
+ overageAllowed: "overage_allowed"
11189
11482
  });
11190
11483
  })
11191
11484
  );
@@ -11405,6 +11698,24 @@ function updateEntityUsageAlertResponseFromJSON(jsonString) {
11405
11698
  `Failed to parse 'UpdateEntityUsageAlertResponse' from JSON`
11406
11699
  );
11407
11700
  }
11701
+ var UpdateEntityOverageAllowedResponse$inboundSchema = z39__namespace.pipe(
11702
+ z39__namespace.object({
11703
+ feature_id: string4(),
11704
+ enabled: z39__namespace._default(boolean2(), false)
11705
+ }),
11706
+ z39__namespace.transform((v) => {
11707
+ return remap(v, {
11708
+ "feature_id": "featureId"
11709
+ });
11710
+ })
11711
+ );
11712
+ function updateEntityOverageAllowedResponseFromJSON(jsonString) {
11713
+ return safeParse(
11714
+ jsonString,
11715
+ (x) => UpdateEntityOverageAllowedResponse$inboundSchema.parse(JSON.parse(x)),
11716
+ `Failed to parse 'UpdateEntityOverageAllowedResponse' from JSON`
11717
+ );
11718
+ }
11408
11719
  var UpdateEntityBillingControlsResponse$inboundSchema = z39__namespace.pipe(
11409
11720
  z39__namespace.object({
11410
11721
  spend_limits: optional2(
@@ -11412,12 +11723,16 @@ var UpdateEntityBillingControlsResponse$inboundSchema = z39__namespace.pipe(
11412
11723
  ),
11413
11724
  usage_alerts: optional2(
11414
11725
  z39__namespace.array(z39__namespace.lazy(() => UpdateEntityUsageAlertResponse$inboundSchema))
11726
+ ),
11727
+ overage_allowed: optional2(
11728
+ z39__namespace.array(z39__namespace.lazy(() => UpdateEntityOverageAllowedResponse$inboundSchema))
11415
11729
  )
11416
11730
  }),
11417
11731
  z39__namespace.transform((v) => {
11418
11732
  return remap(v, {
11419
11733
  "spend_limits": "spendLimits",
11420
- "usage_alerts": "usageAlerts"
11734
+ "usage_alerts": "usageAlerts",
11735
+ "overage_allowed": "overageAllowed"
11421
11736
  });
11422
11737
  })
11423
11738
  );
@@ -11851,11 +12166,13 @@ var UpdatePlanExpiryDurationTypeRequest$outboundSchema = z39__namespace.enum(Upd
11851
12166
  var UpdatePlanRolloverRequest$outboundSchema = z39__namespace.pipe(
11852
12167
  z39__namespace.object({
11853
12168
  max: z39__namespace.optional(z39__namespace.number()),
12169
+ maxPercentage: z39__namespace.optional(z39__namespace.number()),
11854
12170
  expiryDurationType: UpdatePlanExpiryDurationTypeRequest$outboundSchema,
11855
12171
  expiryDurationLength: z39__namespace.optional(z39__namespace.number())
11856
12172
  }),
11857
12173
  z39__namespace.transform((v) => {
11858
12174
  return remap(v, {
12175
+ maxPercentage: "max_percentage",
11859
12176
  expiryDurationType: "expiry_duration_type",
11860
12177
  expiryDurationLength: "expiry_duration_length"
11861
12178
  });
@@ -12116,11 +12433,13 @@ var UpdatePlanExpiryDurationTypeResponse$inboundSchema = inboundSchema(UpdatePla
12116
12433
  var UpdatePlanRolloverResponse$inboundSchema = z39__namespace.pipe(
12117
12434
  z39__namespace.object({
12118
12435
  max: nullable(number2()),
12436
+ max_percentage: z39__namespace.optional(z39__namespace.nullable(number2())),
12119
12437
  expiry_duration_type: UpdatePlanExpiryDurationTypeResponse$inboundSchema,
12120
12438
  expiry_duration_length: optional2(number2())
12121
12439
  }),
12122
12440
  z39__namespace.transform((v) => {
12123
12441
  return remap(v, {
12442
+ "max_percentage": "maxPercentage",
12124
12443
  "expiry_duration_type": "expiryDurationType",
12125
12444
  "expiry_duration_length": "expiryDurationLength"
12126
12445
  });
@@ -12433,7 +12752,8 @@ async function $do2(client, request, options) {
12433
12752
  var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set([
12434
12753
  "check",
12435
12754
  "track",
12436
- "getOrCreateCustomer"
12755
+ "getOrCreateCustomer",
12756
+ "getEntity"
12437
12757
  ]);
12438
12758
  var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
12439
12759
  var FAIL_OPEN_BODIES = {
@@ -12463,6 +12783,18 @@ var FAIL_OPEN_BODIES = {
12463
12783
  purchases: [],
12464
12784
  balances: {},
12465
12785
  flags: {}
12786
+ },
12787
+ getEntity: {
12788
+ id: null,
12789
+ name: null,
12790
+ customer_id: null,
12791
+ feature_id: null,
12792
+ created_at: 0,
12793
+ env: "live",
12794
+ subscriptions: [],
12795
+ purchases: [],
12796
+ balances: {},
12797
+ flags: {}
12466
12798
  }
12467
12799
  };
12468
12800
  var FailOpenHook = class {
@@ -16801,6 +17133,8 @@ exports.CreateEntityEnv$inboundSchema = CreateEntityEnv$inboundSchema;
16801
17133
  exports.CreateEntityFeature$inboundSchema = CreateEntityFeature$inboundSchema;
16802
17134
  exports.CreateEntityFlags$inboundSchema = CreateEntityFlags$inboundSchema;
16803
17135
  exports.CreateEntityInvoice$inboundSchema = CreateEntityInvoice$inboundSchema;
17136
+ exports.CreateEntityOverageAllowedRequest$outboundSchema = CreateEntityOverageAllowedRequest$outboundSchema;
17137
+ exports.CreateEntityOverageAllowedResponse$inboundSchema = CreateEntityOverageAllowedResponse$inboundSchema;
16804
17138
  exports.CreateEntityParams$outboundSchema = CreateEntityParams$outboundSchema;
16805
17139
  exports.CreateEntityPurchase$inboundSchema = CreateEntityPurchase$inboundSchema;
16806
17140
  exports.CreateEntityResponse$inboundSchema = CreateEntityResponse$inboundSchema;
@@ -16900,6 +17234,7 @@ exports.CustomerDataAutoTopup$outboundSchema = CustomerDataAutoTopup$outboundSch
16900
17234
  exports.CustomerDataBillingControls$outboundSchema = CustomerDataBillingControls$outboundSchema;
16901
17235
  exports.CustomerDataInterval = CustomerDataInterval;
16902
17236
  exports.CustomerDataInterval$outboundSchema = CustomerDataInterval$outboundSchema;
17237
+ exports.CustomerDataOverageAllowed$outboundSchema = CustomerDataOverageAllowed$outboundSchema;
16903
17238
  exports.CustomerDataPurchaseLimit$outboundSchema = CustomerDataPurchaseLimit$outboundSchema;
16904
17239
  exports.CustomerDataSpendLimit$outboundSchema = CustomerDataSpendLimit$outboundSchema;
16905
17240
  exports.CustomerDataThresholdType = CustomerDataThresholdType;
@@ -16916,6 +17251,7 @@ exports.CustomerFlagsType = CustomerFlagsType;
16916
17251
  exports.CustomerFlagsType$inboundSchema = CustomerFlagsType$inboundSchema;
16917
17252
  exports.CustomerInterval = CustomerInterval;
16918
17253
  exports.CustomerInterval$inboundSchema = CustomerInterval$inboundSchema;
17254
+ exports.CustomerOverageAllowed$inboundSchema = CustomerOverageAllowed$inboundSchema;
16919
17255
  exports.CustomerPurchaseLimit$inboundSchema = CustomerPurchaseLimit$inboundSchema;
16920
17256
  exports.CustomerSpendLimit$inboundSchema = CustomerSpendLimit$inboundSchema;
16921
17257
  exports.CustomerStatus = CustomerStatus;
@@ -16964,6 +17300,7 @@ exports.GetEntityEnv$inboundSchema = GetEntityEnv$inboundSchema;
16964
17300
  exports.GetEntityFeature$inboundSchema = GetEntityFeature$inboundSchema;
16965
17301
  exports.GetEntityFlags$inboundSchema = GetEntityFlags$inboundSchema;
16966
17302
  exports.GetEntityInvoice$inboundSchema = GetEntityInvoice$inboundSchema;
17303
+ exports.GetEntityOverageAllowed$inboundSchema = GetEntityOverageAllowed$inboundSchema;
16967
17304
  exports.GetEntityParams$outboundSchema = GetEntityParams$outboundSchema;
16968
17305
  exports.GetEntityPurchase$inboundSchema = GetEntityPurchase$inboundSchema;
16969
17306
  exports.GetEntityResponse$inboundSchema = GetEntityResponse$inboundSchema;
@@ -16986,6 +17323,7 @@ exports.GetOrCreateCustomerAutoTopup$outboundSchema = GetOrCreateCustomerAutoTop
16986
17323
  exports.GetOrCreateCustomerBillingControls$outboundSchema = GetOrCreateCustomerBillingControls$outboundSchema;
16987
17324
  exports.GetOrCreateCustomerInterval = GetOrCreateCustomerInterval;
16988
17325
  exports.GetOrCreateCustomerInterval$outboundSchema = GetOrCreateCustomerInterval$outboundSchema;
17326
+ exports.GetOrCreateCustomerOverageAllowed$outboundSchema = GetOrCreateCustomerOverageAllowed$outboundSchema;
16989
17327
  exports.GetOrCreateCustomerParams$outboundSchema = GetOrCreateCustomerParams$outboundSchema;
16990
17328
  exports.GetOrCreateCustomerPurchaseLimit$outboundSchema = GetOrCreateCustomerPurchaseLimit$outboundSchema;
16991
17329
  exports.GetOrCreateCustomerSpendLimit$outboundSchema = GetOrCreateCustomerSpendLimit$outboundSchema;
@@ -17048,6 +17386,7 @@ exports.ListCustomersFlags$inboundSchema = ListCustomersFlags$inboundSchema;
17048
17386
  exports.ListCustomersInterval = ListCustomersInterval;
17049
17387
  exports.ListCustomersInterval$inboundSchema = ListCustomersInterval$inboundSchema;
17050
17388
  exports.ListCustomersList$inboundSchema = ListCustomersList$inboundSchema;
17389
+ exports.ListCustomersOverageAllowed$inboundSchema = ListCustomersOverageAllowed$inboundSchema;
17051
17390
  exports.ListCustomersParams$outboundSchema = ListCustomersParams$outboundSchema;
17052
17391
  exports.ListCustomersPlan$outboundSchema = ListCustomersPlan$outboundSchema;
17053
17392
  exports.ListCustomersPurchase$inboundSchema = ListCustomersPurchase$inboundSchema;
@@ -17134,6 +17473,7 @@ exports.MultiAttachOnDecrease = MultiAttachOnDecrease;
17134
17473
  exports.MultiAttachOnDecrease$outboundSchema = MultiAttachOnDecrease$outboundSchema;
17135
17474
  exports.MultiAttachOnIncrease = MultiAttachOnIncrease;
17136
17475
  exports.MultiAttachOnIncrease$outboundSchema = MultiAttachOnIncrease$outboundSchema;
17476
+ exports.MultiAttachOverageAllowed$outboundSchema = MultiAttachOverageAllowed$outboundSchema;
17137
17477
  exports.MultiAttachParams$outboundSchema = MultiAttachParams$outboundSchema;
17138
17478
  exports.MultiAttachPlan$outboundSchema = MultiAttachPlan$outboundSchema;
17139
17479
  exports.MultiAttachPlanItem$outboundSchema = MultiAttachPlanItem$outboundSchema;
@@ -17277,6 +17617,7 @@ exports.PreviewMultiAttachOnIncrease = PreviewMultiAttachOnIncrease;
17277
17617
  exports.PreviewMultiAttachOnIncrease$outboundSchema = PreviewMultiAttachOnIncrease$outboundSchema;
17278
17618
  exports.PreviewMultiAttachOutgoing$inboundSchema = PreviewMultiAttachOutgoing$inboundSchema;
17279
17619
  exports.PreviewMultiAttachOutgoingFeatureQuantity$inboundSchema = PreviewMultiAttachOutgoingFeatureQuantity$inboundSchema;
17620
+ exports.PreviewMultiAttachOverageAllowed$outboundSchema = PreviewMultiAttachOverageAllowed$outboundSchema;
17280
17621
  exports.PreviewMultiAttachParams$outboundSchema = PreviewMultiAttachParams$outboundSchema;
17281
17622
  exports.PreviewMultiAttachPlan$outboundSchema = PreviewMultiAttachPlan$outboundSchema;
17282
17623
  exports.PreviewMultiAttachPlanFeatureQuantity$outboundSchema = PreviewMultiAttachPlanFeatureQuantity$outboundSchema;
@@ -17445,6 +17786,8 @@ exports.UpdateCustomerIntervalRequest = UpdateCustomerIntervalRequest;
17445
17786
  exports.UpdateCustomerIntervalRequest$outboundSchema = UpdateCustomerIntervalRequest$outboundSchema;
17446
17787
  exports.UpdateCustomerIntervalResponse = UpdateCustomerIntervalResponse;
17447
17788
  exports.UpdateCustomerIntervalResponse$inboundSchema = UpdateCustomerIntervalResponse$inboundSchema;
17789
+ exports.UpdateCustomerOverageAllowedRequest$outboundSchema = UpdateCustomerOverageAllowedRequest$outboundSchema;
17790
+ exports.UpdateCustomerOverageAllowedResponse$inboundSchema = UpdateCustomerOverageAllowedResponse$inboundSchema;
17448
17791
  exports.UpdateCustomerParams$outboundSchema = UpdateCustomerParams$outboundSchema;
17449
17792
  exports.UpdateCustomerPurchase$inboundSchema = UpdateCustomerPurchase$inboundSchema;
17450
17793
  exports.UpdateCustomerPurchaseLimitRequest$outboundSchema = UpdateCustomerPurchaseLimitRequest$outboundSchema;
@@ -17472,6 +17815,8 @@ exports.UpdateEntityEnv$inboundSchema = UpdateEntityEnv$inboundSchema;
17472
17815
  exports.UpdateEntityFeature$inboundSchema = UpdateEntityFeature$inboundSchema;
17473
17816
  exports.UpdateEntityFlags$inboundSchema = UpdateEntityFlags$inboundSchema;
17474
17817
  exports.UpdateEntityInvoice$inboundSchema = UpdateEntityInvoice$inboundSchema;
17818
+ exports.UpdateEntityOverageAllowedRequest$outboundSchema = UpdateEntityOverageAllowedRequest$outboundSchema;
17819
+ exports.UpdateEntityOverageAllowedResponse$inboundSchema = UpdateEntityOverageAllowedResponse$inboundSchema;
17475
17820
  exports.UpdateEntityParams$outboundSchema = UpdateEntityParams$outboundSchema;
17476
17821
  exports.UpdateEntityPurchase$inboundSchema = UpdateEntityPurchase$inboundSchema;
17477
17822
  exports.UpdateEntityResponse$inboundSchema = UpdateEntityResponse$inboundSchema;
@@ -17632,6 +17977,8 @@ exports.createEntityDisplayFromJSON = createEntityDisplayFromJSON;
17632
17977
  exports.createEntityFeatureFromJSON = createEntityFeatureFromJSON;
17633
17978
  exports.createEntityFlagsFromJSON = createEntityFlagsFromJSON;
17634
17979
  exports.createEntityInvoiceFromJSON = createEntityInvoiceFromJSON;
17980
+ exports.createEntityOverageAllowedRequestToJSON = createEntityOverageAllowedRequestToJSON;
17981
+ exports.createEntityOverageAllowedResponseFromJSON = createEntityOverageAllowedResponseFromJSON;
17635
17982
  exports.createEntityParamsToJSON = createEntityParamsToJSON;
17636
17983
  exports.createEntityPurchaseFromJSON = createEntityPurchaseFromJSON;
17637
17984
  exports.createEntityResponseFromJSON = createEntityResponseFromJSON;
@@ -17675,6 +18022,7 @@ exports.customerBillingControlsFromJSON = customerBillingControlsFromJSON;
17675
18022
  exports.customerCreditSchemaFromJSON = customerCreditSchemaFromJSON;
17676
18023
  exports.customerDataAutoTopupToJSON = customerDataAutoTopupToJSON;
17677
18024
  exports.customerDataBillingControlsToJSON = customerDataBillingControlsToJSON;
18025
+ exports.customerDataOverageAllowedToJSON = customerDataOverageAllowedToJSON;
17678
18026
  exports.customerDataPurchaseLimitToJSON = customerDataPurchaseLimitToJSON;
17679
18027
  exports.customerDataSpendLimitToJSON = customerDataSpendLimitToJSON;
17680
18028
  exports.customerDataToJSON = customerDataToJSON;
@@ -17683,6 +18031,7 @@ exports.customerDisplayFromJSON = customerDisplayFromJSON;
17683
18031
  exports.customerEligibilityFromJSON = customerEligibilityFromJSON;
17684
18032
  exports.customerFeatureFromJSON = customerFeatureFromJSON;
17685
18033
  exports.customerFromJSON = customerFromJSON;
18034
+ exports.customerOverageAllowedFromJSON = customerOverageAllowedFromJSON;
17686
18035
  exports.customerPurchaseLimitFromJSON = customerPurchaseLimitFromJSON;
17687
18036
  exports.customerSpendLimitFromJSON = customerSpendLimitFromJSON;
17688
18037
  exports.customerUsageAlertFromJSON = customerUsageAlertFromJSON;
@@ -17715,6 +18064,7 @@ exports.getEntityDisplayFromJSON = getEntityDisplayFromJSON;
17715
18064
  exports.getEntityFeatureFromJSON = getEntityFeatureFromJSON;
17716
18065
  exports.getEntityFlagsFromJSON = getEntityFlagsFromJSON;
17717
18066
  exports.getEntityInvoiceFromJSON = getEntityInvoiceFromJSON;
18067
+ exports.getEntityOverageAllowedFromJSON = getEntityOverageAllowedFromJSON;
17718
18068
  exports.getEntityParamsToJSON = getEntityParamsToJSON;
17719
18069
  exports.getEntityPurchaseFromJSON = getEntityPurchaseFromJSON;
17720
18070
  exports.getEntityResponseFromJSON = getEntityResponseFromJSON;
@@ -17727,6 +18077,7 @@ exports.getFeatureParamsToJSON = getFeatureParamsToJSON;
17727
18077
  exports.getFeatureResponseFromJSON = getFeatureResponseFromJSON;
17728
18078
  exports.getOrCreateCustomerAutoTopupToJSON = getOrCreateCustomerAutoTopupToJSON;
17729
18079
  exports.getOrCreateCustomerBillingControlsToJSON = getOrCreateCustomerBillingControlsToJSON;
18080
+ exports.getOrCreateCustomerOverageAllowedToJSON = getOrCreateCustomerOverageAllowedToJSON;
17730
18081
  exports.getOrCreateCustomerParamsToJSON = getOrCreateCustomerParamsToJSON;
17731
18082
  exports.getOrCreateCustomerPurchaseLimitToJSON = getOrCreateCustomerPurchaseLimitToJSON;
17732
18083
  exports.getOrCreateCustomerSpendLimitToJSON = getOrCreateCustomerSpendLimitToJSON;
@@ -17756,6 +18107,7 @@ exports.listCustomersDisplayFromJSON = listCustomersDisplayFromJSON;
17756
18107
  exports.listCustomersFeatureFromJSON = listCustomersFeatureFromJSON;
17757
18108
  exports.listCustomersFlagsFromJSON = listCustomersFlagsFromJSON;
17758
18109
  exports.listCustomersListFromJSON = listCustomersListFromJSON;
18110
+ exports.listCustomersOverageAllowedFromJSON = listCustomersOverageAllowedFromJSON;
17759
18111
  exports.listCustomersParamsToJSON = listCustomersParamsToJSON;
17760
18112
  exports.listCustomersPlanToJSON = listCustomersPlanToJSON;
17761
18113
  exports.listCustomersPurchaseFromJSON = listCustomersPurchaseFromJSON;
@@ -17798,6 +18150,7 @@ exports.multiAttachFeatureQuantityToJSON = multiAttachFeatureQuantityToJSON;
17798
18150
  exports.multiAttachFreeTrialParamsToJSON = multiAttachFreeTrialParamsToJSON;
17799
18151
  exports.multiAttachInvoiceFromJSON = multiAttachInvoiceFromJSON;
17800
18152
  exports.multiAttachInvoiceModeToJSON = multiAttachInvoiceModeToJSON;
18153
+ exports.multiAttachOverageAllowedToJSON = multiAttachOverageAllowedToJSON;
17801
18154
  exports.multiAttachParamsToJSON = multiAttachParamsToJSON;
17802
18155
  exports.multiAttachPlanItemToJSON = multiAttachPlanItemToJSON;
17803
18156
  exports.multiAttachPlanToJSON = multiAttachPlanToJSON;
@@ -17873,6 +18226,7 @@ exports.previewMultiAttachNextCycleLineItemFromJSON = previewMultiAttachNextCycl
17873
18226
  exports.previewMultiAttachNextCycleLineItemPeriodFromJSON = previewMultiAttachNextCycleLineItemPeriodFromJSON;
17874
18227
  exports.previewMultiAttachOutgoingFeatureQuantityFromJSON = previewMultiAttachOutgoingFeatureQuantityFromJSON;
17875
18228
  exports.previewMultiAttachOutgoingFromJSON = previewMultiAttachOutgoingFromJSON;
18229
+ exports.previewMultiAttachOverageAllowedToJSON = previewMultiAttachOverageAllowedToJSON;
17876
18230
  exports.previewMultiAttachParamsToJSON = previewMultiAttachParamsToJSON;
17877
18231
  exports.previewMultiAttachPlanFeatureQuantityToJSON = previewMultiAttachPlanFeatureQuantityToJSON;
17878
18232
  exports.previewMultiAttachPlanItemToJSON = previewMultiAttachPlanItemToJSON;
@@ -17960,6 +18314,8 @@ exports.updateCustomerCreditSchemaFromJSON = updateCustomerCreditSchemaFromJSON;
17960
18314
  exports.updateCustomerDisplayFromJSON = updateCustomerDisplayFromJSON;
17961
18315
  exports.updateCustomerFeatureFromJSON = updateCustomerFeatureFromJSON;
17962
18316
  exports.updateCustomerFlagsFromJSON = updateCustomerFlagsFromJSON;
18317
+ exports.updateCustomerOverageAllowedRequestToJSON = updateCustomerOverageAllowedRequestToJSON;
18318
+ exports.updateCustomerOverageAllowedResponseFromJSON = updateCustomerOverageAllowedResponseFromJSON;
17963
18319
  exports.updateCustomerParamsToJSON = updateCustomerParamsToJSON;
17964
18320
  exports.updateCustomerPurchaseFromJSON = updateCustomerPurchaseFromJSON;
17965
18321
  exports.updateCustomerPurchaseLimitRequestToJSON = updateCustomerPurchaseLimitRequestToJSON;
@@ -17977,6 +18333,8 @@ exports.updateEntityDisplayFromJSON = updateEntityDisplayFromJSON;
17977
18333
  exports.updateEntityFeatureFromJSON = updateEntityFeatureFromJSON;
17978
18334
  exports.updateEntityFlagsFromJSON = updateEntityFlagsFromJSON;
17979
18335
  exports.updateEntityInvoiceFromJSON = updateEntityInvoiceFromJSON;
18336
+ exports.updateEntityOverageAllowedRequestToJSON = updateEntityOverageAllowedRequestToJSON;
18337
+ exports.updateEntityOverageAllowedResponseFromJSON = updateEntityOverageAllowedResponseFromJSON;
17980
18338
  exports.updateEntityParamsToJSON = updateEntityParamsToJSON;
17981
18339
  exports.updateEntityPurchaseFromJSON = updateEntityPurchaseFromJSON;
17982
18340
  exports.updateEntityResponseFromJSON = updateEntityResponseFromJSON;