autumn-js 1.2.38 → 1.2.39

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 (108) hide show
  1. package/dist/backend/adapters/express.js +319 -101
  2. package/dist/backend/adapters/express.mjs +8 -8
  3. package/dist/backend/adapters/fetch.js +319 -101
  4. package/dist/backend/adapters/fetch.mjs +8 -8
  5. package/dist/backend/adapters/hono.js +319 -101
  6. package/dist/backend/adapters/hono.mjs +8 -8
  7. package/dist/backend/adapters/index.js +319 -101
  8. package/dist/backend/adapters/index.mjs +11 -11
  9. package/dist/backend/adapters/next.js +319 -101
  10. package/dist/backend/adapters/next.mjs +8 -8
  11. package/dist/backend/{chunk-CEUAUTNB.mjs → chunk-5IUIFE55.mjs} +1 -1
  12. package/dist/backend/{chunk-ZR5K6VMA.mjs → chunk-GL2SBEQ5.mjs} +1 -1
  13. package/dist/backend/{chunk-Y3AJLHVL.mjs → chunk-KJP3DHPM.mjs} +1 -1
  14. package/dist/backend/{chunk-N52JKSJ7.mjs → chunk-KM5AXZWJ.mjs} +4 -4
  15. package/dist/backend/{chunk-5C7KP2BU.mjs → chunk-MSMJS42G.mjs} +319 -101
  16. package/dist/backend/{chunk-TIFFBW34.mjs → chunk-UMTASWZL.mjs} +1 -1
  17. package/dist/backend/{chunk-PKM7CEE3.mjs → chunk-V32P22RC.mjs} +6 -6
  18. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  19. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.js +319 -101
  21. package/dist/backend/core/handlers/coreHandler.mjs +6 -6
  22. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  23. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  24. package/dist/backend/core/handlers/executeRoute.mjs +4 -4
  25. package/dist/backend/core/handlers/handleRouteByName.js +319 -101
  26. package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
  27. package/dist/backend/core/handlers/index.d.mts +1 -1
  28. package/dist/backend/core/handlers/index.d.ts +1 -1
  29. package/dist/backend/core/handlers/index.js +319 -101
  30. package/dist/backend/core/handlers/index.mjs +10 -10
  31. package/dist/backend/core/index.d.mts +1 -1
  32. package/dist/backend/core/index.d.ts +1 -1
  33. package/dist/backend/core/index.js +319 -101
  34. package/dist/backend/core/index.mjs +9 -9
  35. package/dist/backend/core/routes/index.d.mts +1 -1
  36. package/dist/backend/core/routes/index.d.ts +1 -1
  37. package/dist/backend/core/routes/index.mjs +1 -1
  38. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  39. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  40. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  41. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  43. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  44. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  45. package/dist/backend/core/types/index.d.mts +1 -1
  46. package/dist/backend/core/types/index.d.ts +1 -1
  47. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  48. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  49. package/dist/backend/core/utils/index.mjs +3 -3
  50. package/dist/backend/index.d.mts +2 -2
  51. package/dist/backend/index.d.ts +2 -2
  52. package/dist/backend/index.js +319 -101
  53. package/dist/backend/index.mjs +9 -9
  54. package/dist/backend/{routeTypes-gWhxv6xo.d.mts → routeTypes-CIqS7yVo.d.mts} +641 -97
  55. package/dist/backend/{routeTypes-C8YKwtFL.d.ts → routeTypes-uWaE8YYa.d.ts} +641 -97
  56. package/dist/better-auth/{chunk-A3ZOJU54.mjs → chunk-LLBM6UQN.mjs} +319 -101
  57. package/dist/better-auth/index.js +319 -101
  58. package/dist/better-auth/index.mjs +1 -1
  59. package/dist/better-auth/utils/handleBetterAuthRoute.js +319 -101
  60. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  61. package/dist/better-auth/utils/index.js +319 -101
  62. package/dist/better-auth/utils/index.mjs +1 -1
  63. package/dist/react/AutumnContext.d.mts +2 -2
  64. package/dist/react/AutumnContext.d.ts +2 -2
  65. package/dist/react/client/AutumnClient.d.mts +2 -2
  66. package/dist/react/client/AutumnClient.d.ts +2 -2
  67. package/dist/react/client/IAutumnClient.d.mts +2 -2
  68. package/dist/react/client/IAutumnClient.d.ts +2 -2
  69. package/dist/react/client/index.d.mts +2 -2
  70. package/dist/react/client/index.d.ts +2 -2
  71. package/dist/react/{customer-D811_jP2.d.ts → customer-CrxRrY4o.d.ts} +99 -24
  72. package/dist/react/{customer-CkuydPCd.d.mts → customer-DM044m1a.d.mts} +99 -24
  73. package/dist/react/hooks/index.d.mts +2 -2
  74. package/dist/react/hooks/index.d.ts +2 -2
  75. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
  76. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
  77. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
  78. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
  79. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
  80. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
  81. package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
  82. package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
  83. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +2 -2
  84. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +2 -2
  85. package/dist/react/hooks/internal/useCustomerActions.d.mts +2 -2
  86. package/dist/react/hooks/internal/useCustomerActions.d.ts +2 -2
  87. package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
  88. package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
  89. package/dist/react/hooks/useCustomer.d.mts +2 -2
  90. package/dist/react/hooks/useCustomer.d.ts +2 -2
  91. package/dist/react/hooks/useEntity.d.mts +1 -1
  92. package/dist/react/hooks/useEntity.d.ts +1 -1
  93. package/dist/react/hooks/useListEvents.d.mts +1 -1
  94. package/dist/react/hooks/useListEvents.d.ts +1 -1
  95. package/dist/react/hooks/useListPlans.d.mts +1 -1
  96. package/dist/react/hooks/useListPlans.d.ts +1 -1
  97. package/dist/react/hooks/useReferrals.d.mts +1 -1
  98. package/dist/react/hooks/useReferrals.d.ts +1 -1
  99. package/dist/react/index.d.mts +2 -2
  100. package/dist/react/index.d.ts +2 -2
  101. package/dist/react/{params-CaUBdt-x.d.ts → params-B-1vi9za.d.ts} +60 -0
  102. package/dist/react/{params-C0cH2cYK.d.mts → params-Bf18ATYi.d.mts} +60 -0
  103. package/dist/sdk/index.d.mts +723 -106
  104. package/dist/sdk/index.d.ts +723 -106
  105. package/dist/sdk/index.js +391 -101
  106. package/dist/sdk/index.mjs +320 -102
  107. package/package.json +1 -1
  108. package/dist/backend/{chunk-MOHYGUMA.mjs → chunk-IXUCY7AU.mjs} +3 -3
package/dist/sdk/index.js CHANGED
@@ -6634,18 +6634,34 @@ var CreateEntityLimitTypeResponse = {
6634
6634
  Absolute: "absolute",
6635
6635
  UsagePercentage: "usage_percentage"
6636
6636
  };
6637
+ var CreateEntitySpendLimitSource = {
6638
+ Customer: "customer",
6639
+ Plan: "plan"
6640
+ };
6637
6641
  var CreateEntityIntervalResponse = {
6638
6642
  Day: "day",
6639
6643
  Week: "week",
6640
6644
  Month: "month",
6641
6645
  Year: "year"
6642
6646
  };
6647
+ var CreateEntityUsageLimitSource = {
6648
+ Customer: "customer",
6649
+ Plan: "plan"
6650
+ };
6643
6651
  var CreateEntityThresholdTypeResponse = {
6644
6652
  Usage: "usage",
6645
6653
  UsagePercentage: "usage_percentage",
6646
6654
  Remaining: "remaining",
6647
6655
  RemainingPercentage: "remaining_percentage"
6648
6656
  };
6657
+ var CreateEntityUsageAlertSource = {
6658
+ Customer: "customer",
6659
+ Plan: "plan"
6660
+ };
6661
+ var CreateEntityOverageAllowedSource = {
6662
+ Customer: "customer",
6663
+ Plan: "plan"
6664
+ };
6649
6665
  var CreateEntityProcessorType = {
6650
6666
  Stripe: "stripe",
6651
6667
  Revenuecat: "revenuecat"
@@ -7006,13 +7022,15 @@ function createEntityFlagsFromJSON(jsonString) {
7006
7022
  );
7007
7023
  }
7008
7024
  var CreateEntityLimitTypeResponse$inboundSchema = inboundSchema(CreateEntityLimitTypeResponse);
7025
+ var CreateEntitySpendLimitSource$inboundSchema = inboundSchema(CreateEntitySpendLimitSource);
7009
7026
  var CreateEntitySpendLimitResponse$inboundSchema = z66__namespace.pipe(
7010
7027
  z66__namespace.object({
7011
7028
  feature_id: optional3(string4()),
7012
7029
  enabled: z66__namespace._default(boolean2(), false),
7013
7030
  limit_type: optional3(CreateEntityLimitTypeResponse$inboundSchema),
7014
7031
  overage_limit: optional3(number2()),
7015
- skip_overage_billing: optional3(boolean2())
7032
+ skip_overage_billing: optional3(boolean2()),
7033
+ source: optional3(CreateEntitySpendLimitSource$inboundSchema)
7016
7034
  }),
7017
7035
  z66__namespace.transform((v) => {
7018
7036
  return remap(v, {
@@ -7041,6 +7059,7 @@ function createEntityFilterResponseFromJSON(jsonString) {
7041
7059
  `Failed to parse 'CreateEntityFilterResponse' from JSON`
7042
7060
  );
7043
7061
  }
7062
+ var CreateEntityUsageLimitSource$inboundSchema = inboundSchema(CreateEntityUsageLimitSource);
7044
7063
  var CreateEntityUsageLimitResponse$inboundSchema = z66__namespace.pipe(
7045
7064
  z66__namespace.object({
7046
7065
  feature_id: string4(),
@@ -7050,7 +7069,8 @@ var CreateEntityUsageLimitResponse$inboundSchema = z66__namespace.pipe(
7050
7069
  filter: optional3(
7051
7070
  z66__namespace.lazy(() => CreateEntityFilterResponse$inboundSchema)
7052
7071
  ),
7053
- usage: optional3(number2())
7072
+ usage: optional3(number2()),
7073
+ source: optional3(CreateEntityUsageLimitSource$inboundSchema)
7054
7074
  }),
7055
7075
  z66__namespace.transform((v) => {
7056
7076
  return remap(v, {
@@ -7066,13 +7086,15 @@ function createEntityUsageLimitResponseFromJSON(jsonString) {
7066
7086
  );
7067
7087
  }
7068
7088
  var CreateEntityThresholdTypeResponse$inboundSchema = inboundSchema(CreateEntityThresholdTypeResponse);
7089
+ var CreateEntityUsageAlertSource$inboundSchema = inboundSchema(CreateEntityUsageAlertSource);
7069
7090
  var CreateEntityUsageAlertResponse$inboundSchema = z66__namespace.pipe(
7070
7091
  z66__namespace.object({
7071
7092
  feature_id: optional3(string4()),
7072
7093
  enabled: z66__namespace._default(boolean2(), true),
7073
7094
  threshold: number2(),
7074
7095
  threshold_type: CreateEntityThresholdTypeResponse$inboundSchema,
7075
- name: optional3(string4())
7096
+ name: optional3(string4()),
7097
+ source: optional3(CreateEntityUsageAlertSource$inboundSchema)
7076
7098
  }),
7077
7099
  z66__namespace.transform((v) => {
7078
7100
  return remap(v, {
@@ -7088,10 +7110,12 @@ function createEntityUsageAlertResponseFromJSON(jsonString) {
7088
7110
  `Failed to parse 'CreateEntityUsageAlertResponse' from JSON`
7089
7111
  );
7090
7112
  }
7113
+ var CreateEntityOverageAllowedSource$inboundSchema = inboundSchema(CreateEntityOverageAllowedSource);
7091
7114
  var CreateEntityOverageAllowedResponse$inboundSchema = z66__namespace.pipe(
7092
7115
  z66__namespace.object({
7093
7116
  feature_id: string4(),
7094
- enabled: z66__namespace._default(boolean2(), false)
7117
+ enabled: z66__namespace._default(boolean2(), false),
7118
+ source: optional3(CreateEntityOverageAllowedSource$inboundSchema)
7095
7119
  }),
7096
7120
  z66__namespace.transform((v) => {
7097
7121
  return remap(v, {
@@ -10201,22 +10225,42 @@ var CustomerPurchaseLimitInterval1 = {
10201
10225
  Week: "week",
10202
10226
  Month: "month"
10203
10227
  };
10228
+ var AutoTopupSource = {
10229
+ Customer: "customer",
10230
+ Plan: "plan"
10231
+ };
10204
10232
  var CustomerLimitType = {
10205
10233
  Absolute: "absolute",
10206
10234
  UsagePercentage: "usage_percentage"
10207
10235
  };
10236
+ var SpendLimitSource = {
10237
+ Customer: "customer",
10238
+ Plan: "plan"
10239
+ };
10208
10240
  var CustomerUsageLimitInterval = {
10209
10241
  Day: "day",
10210
10242
  Week: "week",
10211
10243
  Month: "month",
10212
10244
  Year: "year"
10213
10245
  };
10246
+ var UsageLimitSource = {
10247
+ Customer: "customer",
10248
+ Plan: "plan"
10249
+ };
10214
10250
  var CustomerThresholdType = {
10215
10251
  Usage: "usage",
10216
10252
  UsagePercentage: "usage_percentage",
10217
10253
  Remaining: "remaining",
10218
10254
  RemainingPercentage: "remaining_percentage"
10219
10255
  };
10256
+ var UsageAlertSource = {
10257
+ Customer: "customer",
10258
+ Plan: "plan"
10259
+ };
10260
+ var OverageAllowedSource = {
10261
+ Customer: "customer",
10262
+ Plan: "plan"
10263
+ };
10220
10264
  var CustomerStatus = {
10221
10265
  Active: "active",
10222
10266
  Scheduled: "scheduled"
@@ -10259,16 +10303,13 @@ var CustomerEnv$inboundSchema = inboundSchema(CustomerEnv);
10259
10303
  var CustomerPurchaseLimitInterval2$inboundSchema = inboundSchema(CustomerPurchaseLimitInterval2);
10260
10304
  var CustomerPurchaseLimit2$inboundSchema = z66__namespace.pipe(
10261
10305
  z66__namespace.object({
10262
- interval: nullable(CustomerPurchaseLimitInterval2$inboundSchema),
10263
- interval_count: nullable(number2()),
10264
- limit: nullable(number2()),
10265
- count: number2(),
10266
- next_reset_at: number2()
10306
+ interval: CustomerPurchaseLimitInterval2$inboundSchema,
10307
+ interval_count: z66__namespace._default(number2(), 1),
10308
+ limit: number2()
10267
10309
  }),
10268
10310
  z66__namespace.transform((v) => {
10269
10311
  return remap(v, {
10270
- "interval_count": "intervalCount",
10271
- "next_reset_at": "nextResetAt"
10312
+ "interval_count": "intervalCount"
10272
10313
  });
10273
10314
  })
10274
10315
  );
@@ -10282,13 +10323,16 @@ function customerPurchaseLimit2FromJSON(jsonString) {
10282
10323
  var CustomerPurchaseLimitInterval1$inboundSchema = inboundSchema(CustomerPurchaseLimitInterval1);
10283
10324
  var CustomerPurchaseLimit1$inboundSchema = z66__namespace.pipe(
10284
10325
  z66__namespace.object({
10285
- interval: CustomerPurchaseLimitInterval1$inboundSchema,
10286
- interval_count: z66__namespace._default(number2(), 1),
10287
- limit: number2()
10326
+ interval: nullable(CustomerPurchaseLimitInterval1$inboundSchema),
10327
+ interval_count: nullable(number2()),
10328
+ limit: nullable(number2()),
10329
+ count: number2(),
10330
+ next_reset_at: number2()
10288
10331
  }),
10289
10332
  z66__namespace.transform((v) => {
10290
10333
  return remap(v, {
10291
- "interval_count": "intervalCount"
10334
+ "interval_count": "intervalCount",
10335
+ "next_reset_at": "nextResetAt"
10292
10336
  });
10293
10337
  })
10294
10338
  );
@@ -10300,8 +10344,8 @@ function customerPurchaseLimit1FromJSON(jsonString) {
10300
10344
  );
10301
10345
  }
10302
10346
  var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
10303
- z66__namespace.lazy(() => CustomerPurchaseLimit2$inboundSchema),
10304
- z66__namespace.lazy(() => CustomerPurchaseLimit1$inboundSchema)
10347
+ z66__namespace.lazy(() => CustomerPurchaseLimit1$inboundSchema),
10348
+ z66__namespace.lazy(() => CustomerPurchaseLimit2$inboundSchema)
10305
10349
  ]);
10306
10350
  function customerPurchaseLimitUnionFromJSON(jsonString) {
10307
10351
  return safeParse(
@@ -10310,6 +10354,7 @@ function customerPurchaseLimitUnionFromJSON(jsonString) {
10310
10354
  `Failed to parse 'CustomerPurchaseLimitUnion' from JSON`
10311
10355
  );
10312
10356
  }
10357
+ var AutoTopupSource$inboundSchema = inboundSchema(AutoTopupSource);
10313
10358
  var CustomerAutoTopup$inboundSchema = z66__namespace.pipe(
10314
10359
  z66__namespace.object({
10315
10360
  feature_id: string4(),
@@ -10317,10 +10362,11 @@ var CustomerAutoTopup$inboundSchema = z66__namespace.pipe(
10317
10362
  threshold: number2(),
10318
10363
  quantity: number2(),
10319
10364
  purchase_limit: optional3(smartUnion([
10320
- z66__namespace.lazy(() => CustomerPurchaseLimit2$inboundSchema),
10321
- z66__namespace.lazy(() => CustomerPurchaseLimit1$inboundSchema)
10365
+ z66__namespace.lazy(() => CustomerPurchaseLimit1$inboundSchema),
10366
+ z66__namespace.lazy(() => CustomerPurchaseLimit2$inboundSchema)
10322
10367
  ])),
10323
- invoice_mode: optional3(boolean2())
10368
+ invoice_mode: optional3(boolean2()),
10369
+ source: optional3(AutoTopupSource$inboundSchema)
10324
10370
  }),
10325
10371
  z66__namespace.transform((v) => {
10326
10372
  return remap(v, {
@@ -10338,13 +10384,15 @@ function customerAutoTopupFromJSON(jsonString) {
10338
10384
  );
10339
10385
  }
10340
10386
  var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
10387
+ var SpendLimitSource$inboundSchema = inboundSchema(SpendLimitSource);
10341
10388
  var CustomerSpendLimit$inboundSchema = z66__namespace.pipe(
10342
10389
  z66__namespace.object({
10343
10390
  feature_id: optional3(string4()),
10344
10391
  enabled: z66__namespace._default(boolean2(), false),
10345
10392
  limit_type: optional3(CustomerLimitType$inboundSchema),
10346
10393
  overage_limit: optional3(number2()),
10347
- skip_overage_billing: optional3(boolean2())
10394
+ skip_overage_billing: optional3(boolean2()),
10395
+ source: optional3(SpendLimitSource$inboundSchema)
10348
10396
  }),
10349
10397
  z66__namespace.transform((v) => {
10350
10398
  return remap(v, {
@@ -10373,6 +10421,7 @@ function customerFilterFromJSON(jsonString) {
10373
10421
  `Failed to parse 'CustomerFilter' from JSON`
10374
10422
  );
10375
10423
  }
10424
+ var UsageLimitSource$inboundSchema = inboundSchema(UsageLimitSource);
10376
10425
  var CustomerUsageLimit$inboundSchema = z66__namespace.pipe(
10377
10426
  z66__namespace.object({
10378
10427
  feature_id: string4(),
@@ -10380,7 +10429,8 @@ var CustomerUsageLimit$inboundSchema = z66__namespace.pipe(
10380
10429
  limit: number2(),
10381
10430
  interval: CustomerUsageLimitInterval$inboundSchema,
10382
10431
  filter: optional3(z66__namespace.lazy(() => CustomerFilter$inboundSchema)),
10383
- usage: optional3(number2())
10432
+ usage: optional3(number2()),
10433
+ source: optional3(UsageLimitSource$inboundSchema)
10384
10434
  }),
10385
10435
  z66__namespace.transform((v) => {
10386
10436
  return remap(v, {
@@ -10396,13 +10446,15 @@ function customerUsageLimitFromJSON(jsonString) {
10396
10446
  );
10397
10447
  }
10398
10448
  var CustomerThresholdType$inboundSchema = inboundSchema(CustomerThresholdType);
10449
+ var UsageAlertSource$inboundSchema = inboundSchema(UsageAlertSource);
10399
10450
  var CustomerUsageAlert$inboundSchema = z66__namespace.pipe(
10400
10451
  z66__namespace.object({
10401
10452
  feature_id: optional3(string4()),
10402
10453
  enabled: z66__namespace._default(boolean2(), true),
10403
10454
  threshold: number2(),
10404
10455
  threshold_type: CustomerThresholdType$inboundSchema,
10405
- name: optional3(string4())
10456
+ name: optional3(string4()),
10457
+ source: optional3(UsageAlertSource$inboundSchema)
10406
10458
  }),
10407
10459
  z66__namespace.transform((v) => {
10408
10460
  return remap(v, {
@@ -10418,10 +10470,12 @@ function customerUsageAlertFromJSON(jsonString) {
10418
10470
  `Failed to parse 'CustomerUsageAlert' from JSON`
10419
10471
  );
10420
10472
  }
10473
+ var OverageAllowedSource$inboundSchema = inboundSchema(OverageAllowedSource);
10421
10474
  var CustomerOverageAllowed$inboundSchema = z66__namespace.pipe(
10422
10475
  z66__namespace.object({
10423
10476
  feature_id: string4(),
10424
- enabled: z66__namespace._default(boolean2(), false)
10477
+ enabled: z66__namespace._default(boolean2(), false),
10478
+ source: optional3(OverageAllowedSource$inboundSchema)
10425
10479
  }),
10426
10480
  z66__namespace.transform((v) => {
10427
10481
  return remap(v, {
@@ -11152,22 +11206,42 @@ var GetCustomerPurchaseLimitInterval1 = {
11152
11206
  Week: "week",
11153
11207
  Month: "month"
11154
11208
  };
11209
+ var GetCustomerAutoTopupSource = {
11210
+ Customer: "customer",
11211
+ Plan: "plan"
11212
+ };
11155
11213
  var GetCustomerLimitType = {
11156
11214
  Absolute: "absolute",
11157
11215
  UsagePercentage: "usage_percentage"
11158
11216
  };
11217
+ var GetCustomerSpendLimitSource = {
11218
+ Customer: "customer",
11219
+ Plan: "plan"
11220
+ };
11159
11221
  var GetCustomerUsageLimitInterval = {
11160
11222
  Day: "day",
11161
11223
  Week: "week",
11162
11224
  Month: "month",
11163
11225
  Year: "year"
11164
11226
  };
11227
+ var GetCustomerUsageLimitSource = {
11228
+ Customer: "customer",
11229
+ Plan: "plan"
11230
+ };
11165
11231
  var GetCustomerThresholdType = {
11166
11232
  Usage: "usage",
11167
11233
  UsagePercentage: "usage_percentage",
11168
11234
  Remaining: "remaining",
11169
11235
  RemainingPercentage: "remaining_percentage"
11170
11236
  };
11237
+ var GetCustomerUsageAlertSource = {
11238
+ Customer: "customer",
11239
+ Plan: "plan"
11240
+ };
11241
+ var GetCustomerOverageAllowedSource = {
11242
+ Customer: "customer",
11243
+ Plan: "plan"
11244
+ };
11171
11245
  var GetCustomerStatus = {
11172
11246
  Active: "active",
11173
11247
  Scheduled: "scheduled"
@@ -11226,16 +11300,13 @@ var GetCustomerEnv$inboundSchema = inboundSchema(GetCustomerEnv);
11226
11300
  var GetCustomerPurchaseLimitInterval2$inboundSchema = inboundSchema(GetCustomerPurchaseLimitInterval2);
11227
11301
  var GetCustomerPurchaseLimit2$inboundSchema = z66__namespace.pipe(
11228
11302
  z66__namespace.object({
11229
- interval: nullable(GetCustomerPurchaseLimitInterval2$inboundSchema),
11230
- interval_count: nullable(number2()),
11231
- limit: nullable(number2()),
11232
- count: number2(),
11233
- next_reset_at: number2()
11303
+ interval: GetCustomerPurchaseLimitInterval2$inboundSchema,
11304
+ interval_count: z66__namespace._default(number2(), 1),
11305
+ limit: number2()
11234
11306
  }),
11235
11307
  z66__namespace.transform((v) => {
11236
11308
  return remap(v, {
11237
- "interval_count": "intervalCount",
11238
- "next_reset_at": "nextResetAt"
11309
+ "interval_count": "intervalCount"
11239
11310
  });
11240
11311
  })
11241
11312
  );
@@ -11249,13 +11320,16 @@ function getCustomerPurchaseLimit2FromJSON(jsonString) {
11249
11320
  var GetCustomerPurchaseLimitInterval1$inboundSchema = inboundSchema(GetCustomerPurchaseLimitInterval1);
11250
11321
  var GetCustomerPurchaseLimit1$inboundSchema = z66__namespace.pipe(
11251
11322
  z66__namespace.object({
11252
- interval: GetCustomerPurchaseLimitInterval1$inboundSchema,
11253
- interval_count: z66__namespace._default(number2(), 1),
11254
- limit: number2()
11323
+ interval: nullable(GetCustomerPurchaseLimitInterval1$inboundSchema),
11324
+ interval_count: nullable(number2()),
11325
+ limit: nullable(number2()),
11326
+ count: number2(),
11327
+ next_reset_at: number2()
11255
11328
  }),
11256
11329
  z66__namespace.transform((v) => {
11257
11330
  return remap(v, {
11258
- "interval_count": "intervalCount"
11331
+ "interval_count": "intervalCount",
11332
+ "next_reset_at": "nextResetAt"
11259
11333
  });
11260
11334
  })
11261
11335
  );
@@ -11267,8 +11341,8 @@ function getCustomerPurchaseLimit1FromJSON(jsonString) {
11267
11341
  );
11268
11342
  }
11269
11343
  var GetCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
11270
- z66__namespace.lazy(() => GetCustomerPurchaseLimit2$inboundSchema),
11271
- z66__namespace.lazy(() => GetCustomerPurchaseLimit1$inboundSchema)
11344
+ z66__namespace.lazy(() => GetCustomerPurchaseLimit1$inboundSchema),
11345
+ z66__namespace.lazy(() => GetCustomerPurchaseLimit2$inboundSchema)
11272
11346
  ]);
11273
11347
  function getCustomerPurchaseLimitUnionFromJSON(jsonString) {
11274
11348
  return safeParse(
@@ -11277,6 +11351,7 @@ function getCustomerPurchaseLimitUnionFromJSON(jsonString) {
11277
11351
  `Failed to parse 'GetCustomerPurchaseLimitUnion' from JSON`
11278
11352
  );
11279
11353
  }
11354
+ var GetCustomerAutoTopupSource$inboundSchema = inboundSchema(GetCustomerAutoTopupSource);
11280
11355
  var GetCustomerAutoTopup$inboundSchema = z66__namespace.pipe(
11281
11356
  z66__namespace.object({
11282
11357
  feature_id: string4(),
@@ -11284,10 +11359,11 @@ var GetCustomerAutoTopup$inboundSchema = z66__namespace.pipe(
11284
11359
  threshold: number2(),
11285
11360
  quantity: number2(),
11286
11361
  purchase_limit: optional3(smartUnion([
11287
- z66__namespace.lazy(() => GetCustomerPurchaseLimit2$inboundSchema),
11288
- z66__namespace.lazy(() => GetCustomerPurchaseLimit1$inboundSchema)
11362
+ z66__namespace.lazy(() => GetCustomerPurchaseLimit1$inboundSchema),
11363
+ z66__namespace.lazy(() => GetCustomerPurchaseLimit2$inboundSchema)
11289
11364
  ])),
11290
- invoice_mode: optional3(boolean2())
11365
+ invoice_mode: optional3(boolean2()),
11366
+ source: optional3(GetCustomerAutoTopupSource$inboundSchema)
11291
11367
  }),
11292
11368
  z66__namespace.transform((v) => {
11293
11369
  return remap(v, {
@@ -11305,13 +11381,15 @@ function getCustomerAutoTopupFromJSON(jsonString) {
11305
11381
  );
11306
11382
  }
11307
11383
  var GetCustomerLimitType$inboundSchema = inboundSchema(GetCustomerLimitType);
11384
+ var GetCustomerSpendLimitSource$inboundSchema = inboundSchema(GetCustomerSpendLimitSource);
11308
11385
  var GetCustomerSpendLimit$inboundSchema = z66__namespace.pipe(
11309
11386
  z66__namespace.object({
11310
11387
  feature_id: optional3(string4()),
11311
11388
  enabled: z66__namespace._default(boolean2(), false),
11312
11389
  limit_type: optional3(GetCustomerLimitType$inboundSchema),
11313
11390
  overage_limit: optional3(number2()),
11314
- skip_overage_billing: optional3(boolean2())
11391
+ skip_overage_billing: optional3(boolean2()),
11392
+ source: optional3(GetCustomerSpendLimitSource$inboundSchema)
11315
11393
  }),
11316
11394
  z66__namespace.transform((v) => {
11317
11395
  return remap(v, {
@@ -11340,6 +11418,7 @@ function getCustomerFilterFromJSON(jsonString) {
11340
11418
  `Failed to parse 'GetCustomerFilter' from JSON`
11341
11419
  );
11342
11420
  }
11421
+ var GetCustomerUsageLimitSource$inboundSchema = inboundSchema(GetCustomerUsageLimitSource);
11343
11422
  var GetCustomerUsageLimit$inboundSchema = z66__namespace.pipe(
11344
11423
  z66__namespace.object({
11345
11424
  feature_id: string4(),
@@ -11347,7 +11426,8 @@ var GetCustomerUsageLimit$inboundSchema = z66__namespace.pipe(
11347
11426
  limit: number2(),
11348
11427
  interval: GetCustomerUsageLimitInterval$inboundSchema,
11349
11428
  filter: optional3(z66__namespace.lazy(() => GetCustomerFilter$inboundSchema)),
11350
- usage: optional3(number2())
11429
+ usage: optional3(number2()),
11430
+ source: optional3(GetCustomerUsageLimitSource$inboundSchema)
11351
11431
  }),
11352
11432
  z66__namespace.transform((v) => {
11353
11433
  return remap(v, {
@@ -11363,13 +11443,15 @@ function getCustomerUsageLimitFromJSON(jsonString) {
11363
11443
  );
11364
11444
  }
11365
11445
  var GetCustomerThresholdType$inboundSchema = inboundSchema(GetCustomerThresholdType);
11446
+ var GetCustomerUsageAlertSource$inboundSchema = inboundSchema(GetCustomerUsageAlertSource);
11366
11447
  var GetCustomerUsageAlert$inboundSchema = z66__namespace.pipe(
11367
11448
  z66__namespace.object({
11368
11449
  feature_id: optional3(string4()),
11369
11450
  enabled: z66__namespace._default(boolean2(), true),
11370
11451
  threshold: number2(),
11371
11452
  threshold_type: GetCustomerThresholdType$inboundSchema,
11372
- name: optional3(string4())
11453
+ name: optional3(string4()),
11454
+ source: optional3(GetCustomerUsageAlertSource$inboundSchema)
11373
11455
  }),
11374
11456
  z66__namespace.transform((v) => {
11375
11457
  return remap(v, {
@@ -11385,10 +11467,12 @@ function getCustomerUsageAlertFromJSON(jsonString) {
11385
11467
  `Failed to parse 'GetCustomerUsageAlert' from JSON`
11386
11468
  );
11387
11469
  }
11470
+ var GetCustomerOverageAllowedSource$inboundSchema = inboundSchema(GetCustomerOverageAllowedSource);
11388
11471
  var GetCustomerOverageAllowed$inboundSchema = z66__namespace.pipe(
11389
11472
  z66__namespace.object({
11390
11473
  feature_id: string4(),
11391
- enabled: z66__namespace._default(boolean2(), false)
11474
+ enabled: z66__namespace._default(boolean2(), false),
11475
+ source: optional3(GetCustomerOverageAllowedSource$inboundSchema)
11392
11476
  }),
11393
11477
  z66__namespace.transform((v) => {
11394
11478
  return remap(v, {
@@ -11935,18 +12019,34 @@ var GetEntityLimitType = {
11935
12019
  Absolute: "absolute",
11936
12020
  UsagePercentage: "usage_percentage"
11937
12021
  };
12022
+ var GetEntitySpendLimitSource = {
12023
+ Customer: "customer",
12024
+ Plan: "plan"
12025
+ };
11938
12026
  var GetEntityInterval = {
11939
12027
  Day: "day",
11940
12028
  Week: "week",
11941
12029
  Month: "month",
11942
12030
  Year: "year"
11943
12031
  };
12032
+ var GetEntityUsageLimitSource = {
12033
+ Customer: "customer",
12034
+ Plan: "plan"
12035
+ };
11944
12036
  var GetEntityThresholdType = {
11945
12037
  Usage: "usage",
11946
12038
  UsagePercentage: "usage_percentage",
11947
12039
  Remaining: "remaining",
11948
12040
  RemainingPercentage: "remaining_percentage"
11949
12041
  };
12042
+ var GetEntityUsageAlertSource = {
12043
+ Customer: "customer",
12044
+ Plan: "plan"
12045
+ };
12046
+ var GetEntityOverageAllowedSource = {
12047
+ Customer: "customer",
12048
+ Plan: "plan"
12049
+ };
11950
12050
  var GetEntityProcessorType = {
11951
12051
  Stripe: "stripe",
11952
12052
  Revenuecat: "revenuecat"
@@ -12160,13 +12260,15 @@ function getEntityFlagsFromJSON(jsonString) {
12160
12260
  );
12161
12261
  }
12162
12262
  var GetEntityLimitType$inboundSchema = inboundSchema(GetEntityLimitType);
12263
+ var GetEntitySpendLimitSource$inboundSchema = inboundSchema(GetEntitySpendLimitSource);
12163
12264
  var GetEntitySpendLimit$inboundSchema = z66__namespace.pipe(
12164
12265
  z66__namespace.object({
12165
12266
  feature_id: optional3(string4()),
12166
12267
  enabled: z66__namespace._default(boolean2(), false),
12167
12268
  limit_type: optional3(GetEntityLimitType$inboundSchema),
12168
12269
  overage_limit: optional3(number2()),
12169
- skip_overage_billing: optional3(boolean2())
12270
+ skip_overage_billing: optional3(boolean2()),
12271
+ source: optional3(GetEntitySpendLimitSource$inboundSchema)
12170
12272
  }),
12171
12273
  z66__namespace.transform((v) => {
12172
12274
  return remap(v, {
@@ -12195,6 +12297,7 @@ function getEntityFilterFromJSON(jsonString) {
12195
12297
  `Failed to parse 'GetEntityFilter' from JSON`
12196
12298
  );
12197
12299
  }
12300
+ var GetEntityUsageLimitSource$inboundSchema = inboundSchema(GetEntityUsageLimitSource);
12198
12301
  var GetEntityUsageLimit$inboundSchema = z66__namespace.pipe(
12199
12302
  z66__namespace.object({
12200
12303
  feature_id: string4(),
@@ -12202,7 +12305,8 @@ var GetEntityUsageLimit$inboundSchema = z66__namespace.pipe(
12202
12305
  limit: number2(),
12203
12306
  interval: GetEntityInterval$inboundSchema,
12204
12307
  filter: optional3(z66__namespace.lazy(() => GetEntityFilter$inboundSchema)),
12205
- usage: optional3(number2())
12308
+ usage: optional3(number2()),
12309
+ source: optional3(GetEntityUsageLimitSource$inboundSchema)
12206
12310
  }),
12207
12311
  z66__namespace.transform((v) => {
12208
12312
  return remap(v, {
@@ -12218,13 +12322,15 @@ function getEntityUsageLimitFromJSON(jsonString) {
12218
12322
  );
12219
12323
  }
12220
12324
  var GetEntityThresholdType$inboundSchema = inboundSchema(GetEntityThresholdType);
12325
+ var GetEntityUsageAlertSource$inboundSchema = inboundSchema(GetEntityUsageAlertSource);
12221
12326
  var GetEntityUsageAlert$inboundSchema = z66__namespace.pipe(
12222
12327
  z66__namespace.object({
12223
12328
  feature_id: optional3(string4()),
12224
12329
  enabled: z66__namespace._default(boolean2(), true),
12225
12330
  threshold: number2(),
12226
12331
  threshold_type: GetEntityThresholdType$inboundSchema,
12227
- name: optional3(string4())
12332
+ name: optional3(string4()),
12333
+ source: optional3(GetEntityUsageAlertSource$inboundSchema)
12228
12334
  }),
12229
12335
  z66__namespace.transform((v) => {
12230
12336
  return remap(v, {
@@ -12240,10 +12346,12 @@ function getEntityUsageAlertFromJSON(jsonString) {
12240
12346
  `Failed to parse 'GetEntityUsageAlert' from JSON`
12241
12347
  );
12242
12348
  }
12349
+ var GetEntityOverageAllowedSource$inboundSchema = inboundSchema(GetEntityOverageAllowedSource);
12243
12350
  var GetEntityOverageAllowed$inboundSchema = z66__namespace.pipe(
12244
12351
  z66__namespace.object({
12245
12352
  feature_id: string4(),
12246
- enabled: z66__namespace._default(boolean2(), false)
12353
+ enabled: z66__namespace._default(boolean2(), false),
12354
+ source: optional3(GetEntityOverageAllowedSource$inboundSchema)
12247
12355
  }),
12248
12356
  z66__namespace.transform((v) => {
12249
12357
  return remap(v, {
@@ -14384,22 +14492,42 @@ var ListCustomersPurchaseLimitInterval1 = {
14384
14492
  Week: "week",
14385
14493
  Month: "month"
14386
14494
  };
14495
+ var ListCustomersAutoTopupSource = {
14496
+ Customer: "customer",
14497
+ Plan: "plan"
14498
+ };
14387
14499
  var ListCustomersLimitType = {
14388
14500
  Absolute: "absolute",
14389
14501
  UsagePercentage: "usage_percentage"
14390
14502
  };
14503
+ var ListCustomersSpendLimitSource = {
14504
+ Customer: "customer",
14505
+ Plan: "plan"
14506
+ };
14391
14507
  var ListCustomersUsageLimitInterval = {
14392
14508
  Day: "day",
14393
14509
  Week: "week",
14394
14510
  Month: "month",
14395
14511
  Year: "year"
14396
14512
  };
14513
+ var ListCustomersUsageLimitSource = {
14514
+ Customer: "customer",
14515
+ Plan: "plan"
14516
+ };
14397
14517
  var ListCustomersThresholdType = {
14398
14518
  Usage: "usage",
14399
14519
  UsagePercentage: "usage_percentage",
14400
14520
  Remaining: "remaining",
14401
14521
  RemainingPercentage: "remaining_percentage"
14402
14522
  };
14523
+ var ListCustomersUsageAlertSource = {
14524
+ Customer: "customer",
14525
+ Plan: "plan"
14526
+ };
14527
+ var ListCustomersOverageAllowedSource = {
14528
+ Customer: "customer",
14529
+ Plan: "plan"
14530
+ };
14403
14531
  var ListCustomersStatus = {
14404
14532
  Active: "active",
14405
14533
  Scheduled: "scheduled"
@@ -14456,16 +14584,13 @@ var ListCustomersEnv$inboundSchema = inboundSchema(ListCustomersEnv);
14456
14584
  var ListCustomersPurchaseLimitInterval2$inboundSchema = inboundSchema(ListCustomersPurchaseLimitInterval2);
14457
14585
  var ListCustomersPurchaseLimit2$inboundSchema = z66__namespace.pipe(
14458
14586
  z66__namespace.object({
14459
- interval: nullable(ListCustomersPurchaseLimitInterval2$inboundSchema),
14460
- interval_count: nullable(number2()),
14461
- limit: nullable(number2()),
14462
- count: number2(),
14463
- next_reset_at: number2()
14587
+ interval: ListCustomersPurchaseLimitInterval2$inboundSchema,
14588
+ interval_count: z66__namespace._default(number2(), 1),
14589
+ limit: number2()
14464
14590
  }),
14465
14591
  z66__namespace.transform((v) => {
14466
14592
  return remap(v, {
14467
- "interval_count": "intervalCount",
14468
- "next_reset_at": "nextResetAt"
14593
+ "interval_count": "intervalCount"
14469
14594
  });
14470
14595
  })
14471
14596
  );
@@ -14479,13 +14604,16 @@ function listCustomersPurchaseLimit2FromJSON(jsonString) {
14479
14604
  var ListCustomersPurchaseLimitInterval1$inboundSchema = inboundSchema(ListCustomersPurchaseLimitInterval1);
14480
14605
  var ListCustomersPurchaseLimit1$inboundSchema = z66__namespace.pipe(
14481
14606
  z66__namespace.object({
14482
- interval: ListCustomersPurchaseLimitInterval1$inboundSchema,
14483
- interval_count: z66__namespace._default(number2(), 1),
14484
- limit: number2()
14607
+ interval: nullable(ListCustomersPurchaseLimitInterval1$inboundSchema),
14608
+ interval_count: nullable(number2()),
14609
+ limit: nullable(number2()),
14610
+ count: number2(),
14611
+ next_reset_at: number2()
14485
14612
  }),
14486
14613
  z66__namespace.transform((v) => {
14487
14614
  return remap(v, {
14488
- "interval_count": "intervalCount"
14615
+ "interval_count": "intervalCount",
14616
+ "next_reset_at": "nextResetAt"
14489
14617
  });
14490
14618
  })
14491
14619
  );
@@ -14497,8 +14625,8 @@ function listCustomersPurchaseLimit1FromJSON(jsonString) {
14497
14625
  );
14498
14626
  }
14499
14627
  var ListCustomersPurchaseLimitUnion$inboundSchema = smartUnion([
14500
- z66__namespace.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
14501
- z66__namespace.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
14628
+ z66__namespace.lazy(() => ListCustomersPurchaseLimit1$inboundSchema),
14629
+ z66__namespace.lazy(() => ListCustomersPurchaseLimit2$inboundSchema)
14502
14630
  ]);
14503
14631
  function listCustomersPurchaseLimitUnionFromJSON(jsonString) {
14504
14632
  return safeParse(
@@ -14507,6 +14635,7 @@ function listCustomersPurchaseLimitUnionFromJSON(jsonString) {
14507
14635
  `Failed to parse 'ListCustomersPurchaseLimitUnion' from JSON`
14508
14636
  );
14509
14637
  }
14638
+ var ListCustomersAutoTopupSource$inboundSchema = inboundSchema(ListCustomersAutoTopupSource);
14510
14639
  var ListCustomersAutoTopup$inboundSchema = z66__namespace.pipe(
14511
14640
  z66__namespace.object({
14512
14641
  feature_id: string4(),
@@ -14514,10 +14643,11 @@ var ListCustomersAutoTopup$inboundSchema = z66__namespace.pipe(
14514
14643
  threshold: number2(),
14515
14644
  quantity: number2(),
14516
14645
  purchase_limit: optional3(smartUnion([
14517
- z66__namespace.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
14518
- z66__namespace.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
14646
+ z66__namespace.lazy(() => ListCustomersPurchaseLimit1$inboundSchema),
14647
+ z66__namespace.lazy(() => ListCustomersPurchaseLimit2$inboundSchema)
14519
14648
  ])),
14520
- invoice_mode: optional3(boolean2())
14649
+ invoice_mode: optional3(boolean2()),
14650
+ source: optional3(ListCustomersAutoTopupSource$inboundSchema)
14521
14651
  }),
14522
14652
  z66__namespace.transform((v) => {
14523
14653
  return remap(v, {
@@ -14535,13 +14665,15 @@ function listCustomersAutoTopupFromJSON(jsonString) {
14535
14665
  );
14536
14666
  }
14537
14667
  var ListCustomersLimitType$inboundSchema = inboundSchema(ListCustomersLimitType);
14668
+ var ListCustomersSpendLimitSource$inboundSchema = inboundSchema(ListCustomersSpendLimitSource);
14538
14669
  var ListCustomersSpendLimit$inboundSchema = z66__namespace.pipe(
14539
14670
  z66__namespace.object({
14540
14671
  feature_id: optional3(string4()),
14541
14672
  enabled: z66__namespace._default(boolean2(), false),
14542
14673
  limit_type: optional3(ListCustomersLimitType$inboundSchema),
14543
14674
  overage_limit: optional3(number2()),
14544
- skip_overage_billing: optional3(boolean2())
14675
+ skip_overage_billing: optional3(boolean2()),
14676
+ source: optional3(ListCustomersSpendLimitSource$inboundSchema)
14545
14677
  }),
14546
14678
  z66__namespace.transform((v) => {
14547
14679
  return remap(v, {
@@ -14570,6 +14702,7 @@ function listCustomersFilterFromJSON(jsonString) {
14570
14702
  `Failed to parse 'ListCustomersFilter' from JSON`
14571
14703
  );
14572
14704
  }
14705
+ var ListCustomersUsageLimitSource$inboundSchema = inboundSchema(ListCustomersUsageLimitSource);
14573
14706
  var ListCustomersUsageLimit$inboundSchema = z66__namespace.pipe(
14574
14707
  z66__namespace.object({
14575
14708
  feature_id: string4(),
@@ -14577,7 +14710,8 @@ var ListCustomersUsageLimit$inboundSchema = z66__namespace.pipe(
14577
14710
  limit: number2(),
14578
14711
  interval: ListCustomersUsageLimitInterval$inboundSchema,
14579
14712
  filter: optional3(z66__namespace.lazy(() => ListCustomersFilter$inboundSchema)),
14580
- usage: optional3(number2())
14713
+ usage: optional3(number2()),
14714
+ source: optional3(ListCustomersUsageLimitSource$inboundSchema)
14581
14715
  }),
14582
14716
  z66__namespace.transform((v) => {
14583
14717
  return remap(v, {
@@ -14593,13 +14727,15 @@ function listCustomersUsageLimitFromJSON(jsonString) {
14593
14727
  );
14594
14728
  }
14595
14729
  var ListCustomersThresholdType$inboundSchema = inboundSchema(ListCustomersThresholdType);
14730
+ var ListCustomersUsageAlertSource$inboundSchema = inboundSchema(ListCustomersUsageAlertSource);
14596
14731
  var ListCustomersUsageAlert$inboundSchema = z66__namespace.pipe(
14597
14732
  z66__namespace.object({
14598
14733
  feature_id: optional3(string4()),
14599
14734
  enabled: z66__namespace._default(boolean2(), true),
14600
14735
  threshold: number2(),
14601
14736
  threshold_type: ListCustomersThresholdType$inboundSchema,
14602
- name: optional3(string4())
14737
+ name: optional3(string4()),
14738
+ source: optional3(ListCustomersUsageAlertSource$inboundSchema)
14603
14739
  }),
14604
14740
  z66__namespace.transform((v) => {
14605
14741
  return remap(v, {
@@ -14615,10 +14751,12 @@ function listCustomersUsageAlertFromJSON(jsonString) {
14615
14751
  `Failed to parse 'ListCustomersUsageAlert' from JSON`
14616
14752
  );
14617
14753
  }
14754
+ var ListCustomersOverageAllowedSource$inboundSchema = inboundSchema(ListCustomersOverageAllowedSource);
14618
14755
  var ListCustomersOverageAllowed$inboundSchema = z66__namespace.pipe(
14619
14756
  z66__namespace.object({
14620
14757
  feature_id: string4(),
14621
- enabled: z66__namespace._default(boolean2(), false)
14758
+ enabled: z66__namespace._default(boolean2(), false),
14759
+ source: optional3(ListCustomersOverageAllowedSource$inboundSchema)
14622
14760
  }),
14623
14761
  z66__namespace.transform((v) => {
14624
14762
  return remap(v, {
@@ -15024,18 +15162,34 @@ var ListEntitiesLimitType = {
15024
15162
  Absolute: "absolute",
15025
15163
  UsagePercentage: "usage_percentage"
15026
15164
  };
15165
+ var ListEntitiesSpendLimitSource = {
15166
+ Customer: "customer",
15167
+ Plan: "plan"
15168
+ };
15027
15169
  var ListEntitiesInterval = {
15028
15170
  Day: "day",
15029
15171
  Week: "week",
15030
15172
  Month: "month",
15031
15173
  Year: "year"
15032
15174
  };
15175
+ var ListEntitiesUsageLimitSource = {
15176
+ Customer: "customer",
15177
+ Plan: "plan"
15178
+ };
15033
15179
  var ListEntitiesThresholdType = {
15034
15180
  Usage: "usage",
15035
15181
  UsagePercentage: "usage_percentage",
15036
15182
  Remaining: "remaining",
15037
15183
  RemainingPercentage: "remaining_percentage"
15038
15184
  };
15185
+ var ListEntitiesUsageAlertSource = {
15186
+ Customer: "customer",
15187
+ Plan: "plan"
15188
+ };
15189
+ var ListEntitiesOverageAllowedSource = {
15190
+ Customer: "customer",
15191
+ Plan: "plan"
15192
+ };
15039
15193
  var ListEntitiesProcessorType = {
15040
15194
  Stripe: "stripe",
15041
15195
  Revenuecat: "revenuecat"
@@ -15270,13 +15424,15 @@ function listEntitiesFlagsFromJSON(jsonString) {
15270
15424
  );
15271
15425
  }
15272
15426
  var ListEntitiesLimitType$inboundSchema = inboundSchema(ListEntitiesLimitType);
15427
+ var ListEntitiesSpendLimitSource$inboundSchema = inboundSchema(ListEntitiesSpendLimitSource);
15273
15428
  var ListEntitiesSpendLimit$inboundSchema = z66__namespace.pipe(
15274
15429
  z66__namespace.object({
15275
15430
  feature_id: optional3(string4()),
15276
15431
  enabled: z66__namespace._default(boolean2(), false),
15277
15432
  limit_type: optional3(ListEntitiesLimitType$inboundSchema),
15278
15433
  overage_limit: optional3(number2()),
15279
- skip_overage_billing: optional3(boolean2())
15434
+ skip_overage_billing: optional3(boolean2()),
15435
+ source: optional3(ListEntitiesSpendLimitSource$inboundSchema)
15280
15436
  }),
15281
15437
  z66__namespace.transform((v) => {
15282
15438
  return remap(v, {
@@ -15305,6 +15461,7 @@ function listEntitiesFilterFromJSON(jsonString) {
15305
15461
  `Failed to parse 'ListEntitiesFilter' from JSON`
15306
15462
  );
15307
15463
  }
15464
+ var ListEntitiesUsageLimitSource$inboundSchema = inboundSchema(ListEntitiesUsageLimitSource);
15308
15465
  var ListEntitiesUsageLimit$inboundSchema = z66__namespace.pipe(
15309
15466
  z66__namespace.object({
15310
15467
  feature_id: string4(),
@@ -15312,7 +15469,8 @@ var ListEntitiesUsageLimit$inboundSchema = z66__namespace.pipe(
15312
15469
  limit: number2(),
15313
15470
  interval: ListEntitiesInterval$inboundSchema,
15314
15471
  filter: optional3(z66__namespace.lazy(() => ListEntitiesFilter$inboundSchema)),
15315
- usage: optional3(number2())
15472
+ usage: optional3(number2()),
15473
+ source: optional3(ListEntitiesUsageLimitSource$inboundSchema)
15316
15474
  }),
15317
15475
  z66__namespace.transform((v) => {
15318
15476
  return remap(v, {
@@ -15328,13 +15486,15 @@ function listEntitiesUsageLimitFromJSON(jsonString) {
15328
15486
  );
15329
15487
  }
15330
15488
  var ListEntitiesThresholdType$inboundSchema = inboundSchema(ListEntitiesThresholdType);
15489
+ var ListEntitiesUsageAlertSource$inboundSchema = inboundSchema(ListEntitiesUsageAlertSource);
15331
15490
  var ListEntitiesUsageAlert$inboundSchema = z66__namespace.pipe(
15332
15491
  z66__namespace.object({
15333
15492
  feature_id: optional3(string4()),
15334
15493
  enabled: z66__namespace._default(boolean2(), true),
15335
15494
  threshold: number2(),
15336
15495
  threshold_type: ListEntitiesThresholdType$inboundSchema,
15337
- name: optional3(string4())
15496
+ name: optional3(string4()),
15497
+ source: optional3(ListEntitiesUsageAlertSource$inboundSchema)
15338
15498
  }),
15339
15499
  z66__namespace.transform((v) => {
15340
15500
  return remap(v, {
@@ -15350,10 +15510,12 @@ function listEntitiesUsageAlertFromJSON(jsonString) {
15350
15510
  `Failed to parse 'ListEntitiesUsageAlert' from JSON`
15351
15511
  );
15352
15512
  }
15513
+ var ListEntitiesOverageAllowedSource$inboundSchema = inboundSchema(ListEntitiesOverageAllowedSource);
15353
15514
  var ListEntitiesOverageAllowed$inboundSchema = z66__namespace.pipe(
15354
15515
  z66__namespace.object({
15355
15516
  feature_id: string4(),
15356
- enabled: z66__namespace._default(boolean2(), false)
15517
+ enabled: z66__namespace._default(boolean2(), false),
15518
+ source: optional3(ListEntitiesOverageAllowedSource$inboundSchema)
15357
15519
  }),
15358
15520
  z66__namespace.transform((v) => {
15359
15521
  return remap(v, {
@@ -23491,7 +23653,8 @@ var UpdateBalanceParams$outboundSchema = z66__namespace.pipe(
23491
23653
  interval: z66__namespace.optional(UpdateBalanceInterval$outboundSchema),
23492
23654
  includedGrant: z66__namespace.optional(z66__namespace.number()),
23493
23655
  balanceId: z66__namespace.optional(z66__namespace.string()),
23494
- nextResetAt: z66__namespace.optional(z66__namespace.number())
23656
+ nextResetAt: z66__namespace.optional(z66__namespace.number()),
23657
+ expiresAt: z66__namespace.optional(z66__namespace.number())
23495
23658
  }),
23496
23659
  z66__namespace.transform((v) => {
23497
23660
  return remap(v, {
@@ -23501,7 +23664,8 @@ var UpdateBalanceParams$outboundSchema = z66__namespace.pipe(
23501
23664
  addToBalance: "add_to_balance",
23502
23665
  includedGrant: "included_grant",
23503
23666
  balanceId: "balance_id",
23504
- nextResetAt: "next_reset_at"
23667
+ nextResetAt: "next_reset_at",
23668
+ expiresAt: "expires_at"
23505
23669
  });
23506
23670
  })
23507
23671
  );
@@ -23558,22 +23722,42 @@ var UpdateCustomerPurchaseLimitIntervalResponse1 = {
23558
23722
  Week: "week",
23559
23723
  Month: "month"
23560
23724
  };
23725
+ var UpdateCustomerAutoTopupSource = {
23726
+ Customer: "customer",
23727
+ Plan: "plan"
23728
+ };
23561
23729
  var UpdateCustomerLimitTypeResponse = {
23562
23730
  Absolute: "absolute",
23563
23731
  UsagePercentage: "usage_percentage"
23564
23732
  };
23733
+ var UpdateCustomerSpendLimitSource = {
23734
+ Customer: "customer",
23735
+ Plan: "plan"
23736
+ };
23565
23737
  var UpdateCustomerUsageLimitIntervalResponse = {
23566
23738
  Day: "day",
23567
23739
  Week: "week",
23568
23740
  Month: "month",
23569
23741
  Year: "year"
23570
23742
  };
23743
+ var UpdateCustomerUsageLimitSource = {
23744
+ Customer: "customer",
23745
+ Plan: "plan"
23746
+ };
23571
23747
  var UpdateCustomerThresholdTypeResponse = {
23572
23748
  Usage: "usage",
23573
23749
  UsagePercentage: "usage_percentage",
23574
23750
  Remaining: "remaining",
23575
23751
  RemainingPercentage: "remaining_percentage"
23576
23752
  };
23753
+ var UpdateCustomerUsageAlertSource = {
23754
+ Customer: "customer",
23755
+ Plan: "plan"
23756
+ };
23757
+ var UpdateCustomerOverageAllowedSource = {
23758
+ Customer: "customer",
23759
+ Plan: "plan"
23760
+ };
23577
23761
  var UpdateCustomerStatus = {
23578
23762
  Active: "active",
23579
23763
  Scheduled: "scheduled"
@@ -23843,18 +24027,13 @@ var UpdateCustomerEnv$inboundSchema = inboundSchema(UpdateCustomerEnv);
23843
24027
  var UpdateCustomerPurchaseLimitIntervalResponse2$inboundSchema = inboundSchema(UpdateCustomerPurchaseLimitIntervalResponse2);
23844
24028
  var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z66__namespace.pipe(
23845
24029
  z66__namespace.object({
23846
- interval: nullable(
23847
- UpdateCustomerPurchaseLimitIntervalResponse2$inboundSchema
23848
- ),
23849
- interval_count: nullable(number2()),
23850
- limit: nullable(number2()),
23851
- count: number2(),
23852
- next_reset_at: number2()
24030
+ interval: UpdateCustomerPurchaseLimitIntervalResponse2$inboundSchema,
24031
+ interval_count: z66__namespace._default(number2(), 1),
24032
+ limit: number2()
23853
24033
  }),
23854
24034
  z66__namespace.transform((v) => {
23855
24035
  return remap(v, {
23856
- "interval_count": "intervalCount",
23857
- "next_reset_at": "nextResetAt"
24036
+ "interval_count": "intervalCount"
23858
24037
  });
23859
24038
  })
23860
24039
  );
@@ -23868,13 +24047,18 @@ function updateCustomerPurchaseLimitResponse2FromJSON(jsonString) {
23868
24047
  var UpdateCustomerPurchaseLimitIntervalResponse1$inboundSchema = inboundSchema(UpdateCustomerPurchaseLimitIntervalResponse1);
23869
24048
  var UpdateCustomerPurchaseLimitResponse1$inboundSchema = z66__namespace.pipe(
23870
24049
  z66__namespace.object({
23871
- interval: UpdateCustomerPurchaseLimitIntervalResponse1$inboundSchema,
23872
- interval_count: z66__namespace._default(number2(), 1),
23873
- limit: number2()
24050
+ interval: nullable(
24051
+ UpdateCustomerPurchaseLimitIntervalResponse1$inboundSchema
24052
+ ),
24053
+ interval_count: nullable(number2()),
24054
+ limit: nullable(number2()),
24055
+ count: number2(),
24056
+ next_reset_at: number2()
23874
24057
  }),
23875
24058
  z66__namespace.transform((v) => {
23876
24059
  return remap(v, {
23877
- "interval_count": "intervalCount"
24060
+ "interval_count": "intervalCount",
24061
+ "next_reset_at": "nextResetAt"
23878
24062
  });
23879
24063
  })
23880
24064
  );
@@ -23886,8 +24070,8 @@ function updateCustomerPurchaseLimitResponse1FromJSON(jsonString) {
23886
24070
  );
23887
24071
  }
23888
24072
  var UpdateCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
23889
- z66__namespace.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
23890
- z66__namespace.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
24073
+ z66__namespace.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema),
24074
+ z66__namespace.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema)
23891
24075
  ]);
23892
24076
  function updateCustomerPurchaseLimitUnionFromJSON(jsonString) {
23893
24077
  return safeParse(
@@ -23896,6 +24080,7 @@ function updateCustomerPurchaseLimitUnionFromJSON(jsonString) {
23896
24080
  `Failed to parse 'UpdateCustomerPurchaseLimitUnion' from JSON`
23897
24081
  );
23898
24082
  }
24083
+ var UpdateCustomerAutoTopupSource$inboundSchema = inboundSchema(UpdateCustomerAutoTopupSource);
23899
24084
  var UpdateCustomerAutoTopupResponse$inboundSchema = z66__namespace.pipe(
23900
24085
  z66__namespace.object({
23901
24086
  feature_id: string4(),
@@ -23903,10 +24088,11 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z66__namespace.pipe(
23903
24088
  threshold: number2(),
23904
24089
  quantity: number2(),
23905
24090
  purchase_limit: optional3(smartUnion([
23906
- z66__namespace.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
23907
- z66__namespace.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
24091
+ z66__namespace.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema),
24092
+ z66__namespace.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema)
23908
24093
  ])),
23909
- invoice_mode: optional3(boolean2())
24094
+ invoice_mode: optional3(boolean2()),
24095
+ source: optional3(UpdateCustomerAutoTopupSource$inboundSchema)
23910
24096
  }),
23911
24097
  z66__namespace.transform((v) => {
23912
24098
  return remap(v, {
@@ -23924,13 +24110,15 @@ function updateCustomerAutoTopupResponseFromJSON(jsonString) {
23924
24110
  );
23925
24111
  }
23926
24112
  var UpdateCustomerLimitTypeResponse$inboundSchema = inboundSchema(UpdateCustomerLimitTypeResponse);
24113
+ var UpdateCustomerSpendLimitSource$inboundSchema = inboundSchema(UpdateCustomerSpendLimitSource);
23927
24114
  var UpdateCustomerSpendLimitResponse$inboundSchema = z66__namespace.pipe(
23928
24115
  z66__namespace.object({
23929
24116
  feature_id: optional3(string4()),
23930
24117
  enabled: z66__namespace._default(boolean2(), false),
23931
24118
  limit_type: optional3(UpdateCustomerLimitTypeResponse$inboundSchema),
23932
24119
  overage_limit: optional3(number2()),
23933
- skip_overage_billing: optional3(boolean2())
24120
+ skip_overage_billing: optional3(boolean2()),
24121
+ source: optional3(UpdateCustomerSpendLimitSource$inboundSchema)
23934
24122
  }),
23935
24123
  z66__namespace.transform((v) => {
23936
24124
  return remap(v, {
@@ -23959,6 +24147,7 @@ function updateCustomerFilterResponseFromJSON(jsonString) {
23959
24147
  `Failed to parse 'UpdateCustomerFilterResponse' from JSON`
23960
24148
  );
23961
24149
  }
24150
+ var UpdateCustomerUsageLimitSource$inboundSchema = inboundSchema(UpdateCustomerUsageLimitSource);
23962
24151
  var UpdateCustomerUsageLimitResponse$inboundSchema = z66__namespace.pipe(
23963
24152
  z66__namespace.object({
23964
24153
  feature_id: string4(),
@@ -23968,7 +24157,8 @@ var UpdateCustomerUsageLimitResponse$inboundSchema = z66__namespace.pipe(
23968
24157
  filter: optional3(
23969
24158
  z66__namespace.lazy(() => UpdateCustomerFilterResponse$inboundSchema)
23970
24159
  ),
23971
- usage: optional3(number2())
24160
+ usage: optional3(number2()),
24161
+ source: optional3(UpdateCustomerUsageLimitSource$inboundSchema)
23972
24162
  }),
23973
24163
  z66__namespace.transform((v) => {
23974
24164
  return remap(v, {
@@ -23984,13 +24174,15 @@ function updateCustomerUsageLimitResponseFromJSON(jsonString) {
23984
24174
  );
23985
24175
  }
23986
24176
  var UpdateCustomerThresholdTypeResponse$inboundSchema = inboundSchema(UpdateCustomerThresholdTypeResponse);
24177
+ var UpdateCustomerUsageAlertSource$inboundSchema = inboundSchema(UpdateCustomerUsageAlertSource);
23987
24178
  var UpdateCustomerUsageAlertResponse$inboundSchema = z66__namespace.pipe(
23988
24179
  z66__namespace.object({
23989
24180
  feature_id: optional3(string4()),
23990
24181
  enabled: z66__namespace._default(boolean2(), true),
23991
24182
  threshold: number2(),
23992
24183
  threshold_type: UpdateCustomerThresholdTypeResponse$inboundSchema,
23993
- name: optional3(string4())
24184
+ name: optional3(string4()),
24185
+ source: optional3(UpdateCustomerUsageAlertSource$inboundSchema)
23994
24186
  }),
23995
24187
  z66__namespace.transform((v) => {
23996
24188
  return remap(v, {
@@ -24006,10 +24198,12 @@ function updateCustomerUsageAlertResponseFromJSON(jsonString) {
24006
24198
  `Failed to parse 'UpdateCustomerUsageAlertResponse' from JSON`
24007
24199
  );
24008
24200
  }
24201
+ var UpdateCustomerOverageAllowedSource$inboundSchema = inboundSchema(UpdateCustomerOverageAllowedSource);
24009
24202
  var UpdateCustomerOverageAllowedResponse$inboundSchema = z66__namespace.pipe(
24010
24203
  z66__namespace.object({
24011
24204
  feature_id: string4(),
24012
- enabled: z66__namespace._default(boolean2(), false)
24205
+ enabled: z66__namespace._default(boolean2(), false),
24206
+ source: optional3(UpdateCustomerOverageAllowedSource$inboundSchema)
24013
24207
  }),
24014
24208
  z66__namespace.transform((v) => {
24015
24209
  return remap(v, {
@@ -24411,18 +24605,34 @@ var UpdateEntityLimitTypeResponse = {
24411
24605
  Absolute: "absolute",
24412
24606
  UsagePercentage: "usage_percentage"
24413
24607
  };
24608
+ var UpdateEntitySpendLimitSource = {
24609
+ Customer: "customer",
24610
+ Plan: "plan"
24611
+ };
24414
24612
  var UpdateEntityIntervalResponse = {
24415
24613
  Day: "day",
24416
24614
  Week: "week",
24417
24615
  Month: "month",
24418
24616
  Year: "year"
24419
24617
  };
24618
+ var UpdateEntityUsageLimitSource = {
24619
+ Customer: "customer",
24620
+ Plan: "plan"
24621
+ };
24420
24622
  var UpdateEntityThresholdTypeResponse = {
24421
24623
  Usage: "usage",
24422
24624
  UsagePercentage: "usage_percentage",
24423
24625
  Remaining: "remaining",
24424
24626
  RemainingPercentage: "remaining_percentage"
24425
24627
  };
24628
+ var UpdateEntityUsageAlertSource = {
24629
+ Customer: "customer",
24630
+ Plan: "plan"
24631
+ };
24632
+ var UpdateEntityOverageAllowedSource = {
24633
+ Customer: "customer",
24634
+ Plan: "plan"
24635
+ };
24426
24636
  var UpdateEntityProcessorType = {
24427
24637
  Stripe: "stripe",
24428
24638
  Revenuecat: "revenuecat"
@@ -24778,13 +24988,15 @@ function updateEntityFlagsFromJSON(jsonString) {
24778
24988
  );
24779
24989
  }
24780
24990
  var UpdateEntityLimitTypeResponse$inboundSchema = inboundSchema(UpdateEntityLimitTypeResponse);
24991
+ var UpdateEntitySpendLimitSource$inboundSchema = inboundSchema(UpdateEntitySpendLimitSource);
24781
24992
  var UpdateEntitySpendLimitResponse$inboundSchema = z66__namespace.pipe(
24782
24993
  z66__namespace.object({
24783
24994
  feature_id: optional3(string4()),
24784
24995
  enabled: z66__namespace._default(boolean2(), false),
24785
24996
  limit_type: optional3(UpdateEntityLimitTypeResponse$inboundSchema),
24786
24997
  overage_limit: optional3(number2()),
24787
- skip_overage_billing: optional3(boolean2())
24998
+ skip_overage_billing: optional3(boolean2()),
24999
+ source: optional3(UpdateEntitySpendLimitSource$inboundSchema)
24788
25000
  }),
24789
25001
  z66__namespace.transform((v) => {
24790
25002
  return remap(v, {
@@ -24813,6 +25025,7 @@ function updateEntityFilterResponseFromJSON(jsonString) {
24813
25025
  `Failed to parse 'UpdateEntityFilterResponse' from JSON`
24814
25026
  );
24815
25027
  }
25028
+ var UpdateEntityUsageLimitSource$inboundSchema = inboundSchema(UpdateEntityUsageLimitSource);
24816
25029
  var UpdateEntityUsageLimitResponse$inboundSchema = z66__namespace.pipe(
24817
25030
  z66__namespace.object({
24818
25031
  feature_id: string4(),
@@ -24822,7 +25035,8 @@ var UpdateEntityUsageLimitResponse$inboundSchema = z66__namespace.pipe(
24822
25035
  filter: optional3(
24823
25036
  z66__namespace.lazy(() => UpdateEntityFilterResponse$inboundSchema)
24824
25037
  ),
24825
- usage: optional3(number2())
25038
+ usage: optional3(number2()),
25039
+ source: optional3(UpdateEntityUsageLimitSource$inboundSchema)
24826
25040
  }),
24827
25041
  z66__namespace.transform((v) => {
24828
25042
  return remap(v, {
@@ -24838,13 +25052,15 @@ function updateEntityUsageLimitResponseFromJSON(jsonString) {
24838
25052
  );
24839
25053
  }
24840
25054
  var UpdateEntityThresholdTypeResponse$inboundSchema = inboundSchema(UpdateEntityThresholdTypeResponse);
25055
+ var UpdateEntityUsageAlertSource$inboundSchema = inboundSchema(UpdateEntityUsageAlertSource);
24841
25056
  var UpdateEntityUsageAlertResponse$inboundSchema = z66__namespace.pipe(
24842
25057
  z66__namespace.object({
24843
25058
  feature_id: optional3(string4()),
24844
25059
  enabled: z66__namespace._default(boolean2(), true),
24845
25060
  threshold: number2(),
24846
25061
  threshold_type: UpdateEntityThresholdTypeResponse$inboundSchema,
24847
- name: optional3(string4())
25062
+ name: optional3(string4()),
25063
+ source: optional3(UpdateEntityUsageAlertSource$inboundSchema)
24848
25064
  }),
24849
25065
  z66__namespace.transform((v) => {
24850
25066
  return remap(v, {
@@ -24860,10 +25076,12 @@ function updateEntityUsageAlertResponseFromJSON(jsonString) {
24860
25076
  `Failed to parse 'UpdateEntityUsageAlertResponse' from JSON`
24861
25077
  );
24862
25078
  }
25079
+ var UpdateEntityOverageAllowedSource$inboundSchema = inboundSchema(UpdateEntityOverageAllowedSource);
24863
25080
  var UpdateEntityOverageAllowedResponse$inboundSchema = z66__namespace.pipe(
24864
25081
  z66__namespace.object({
24865
25082
  feature_id: string4(),
24866
- enabled: z66__namespace._default(boolean2(), false)
25083
+ enabled: z66__namespace._default(boolean2(), false),
25084
+ source: optional3(UpdateEntityOverageAllowedSource$inboundSchema)
24867
25085
  }),
24868
25086
  z66__namespace.transform((v) => {
24869
25087
  return remap(v, {
@@ -29794,7 +30012,7 @@ var Billing = class extends ClientSDK {
29794
30012
  * @example
29795
30013
  * ```typescript
29796
30014
  * // Schedule a transition from a trial plan to a paid plan
29797
- * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783590814052,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784800414052,"plans":[{"planId":"pro_plan"}]}] });
30015
+ * const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783701939170,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784911539170,"plans":[{"planId":"pro_plan"}]}] });
29798
30016
  * ```
29799
30017
  *
29800
30018
  * @param customerId - The ID of the customer to create the schedule for.
@@ -33597,6 +33815,8 @@ exports.AttachUsageAlert$outboundSchema = AttachUsageAlert$outboundSchema;
33597
33815
  exports.AttachUsageLimit$outboundSchema = AttachUsageLimit$outboundSchema;
33598
33816
  exports.AttachUsageLimitInterval = AttachUsageLimitInterval;
33599
33817
  exports.AttachUsageLimitInterval$outboundSchema = AttachUsageLimitInterval$outboundSchema;
33818
+ exports.AutoTopupSource = AutoTopupSource;
33819
+ exports.AutoTopupSource$inboundSchema = AutoTopupSource$inboundSchema;
33600
33820
  exports.Autumn = Autumn;
33601
33821
  exports.AutumnDefaultError = AutumnDefaultError;
33602
33822
  exports.AutumnError = AutumnError;
@@ -33845,6 +34065,8 @@ exports.CreateEntityLimitTypeResponse$inboundSchema = CreateEntityLimitTypeRespo
33845
34065
  exports.CreateEntityModelMarkups$inboundSchema = CreateEntityModelMarkups$inboundSchema;
33846
34066
  exports.CreateEntityOverageAllowedRequest$outboundSchema = CreateEntityOverageAllowedRequest$outboundSchema;
33847
34067
  exports.CreateEntityOverageAllowedResponse$inboundSchema = CreateEntityOverageAllowedResponse$inboundSchema;
34068
+ exports.CreateEntityOverageAllowedSource = CreateEntityOverageAllowedSource;
34069
+ exports.CreateEntityOverageAllowedSource$inboundSchema = CreateEntityOverageAllowedSource$inboundSchema;
33848
34070
  exports.CreateEntityParams$outboundSchema = CreateEntityParams$outboundSchema;
33849
34071
  exports.CreateEntityProcessorType = CreateEntityProcessorType;
33850
34072
  exports.CreateEntityProcessorType$inboundSchema = CreateEntityProcessorType$inboundSchema;
@@ -33856,6 +34078,8 @@ exports.CreateEntityPurchaseScope$inboundSchema = CreateEntityPurchaseScope$inbo
33856
34078
  exports.CreateEntityResponse$inboundSchema = CreateEntityResponse$inboundSchema;
33857
34079
  exports.CreateEntitySpendLimitRequest$outboundSchema = CreateEntitySpendLimitRequest$outboundSchema;
33858
34080
  exports.CreateEntitySpendLimitResponse$inboundSchema = CreateEntitySpendLimitResponse$inboundSchema;
34081
+ exports.CreateEntitySpendLimitSource = CreateEntitySpendLimitSource;
34082
+ exports.CreateEntitySpendLimitSource$inboundSchema = CreateEntitySpendLimitSource$inboundSchema;
33859
34083
  exports.CreateEntityStatus = CreateEntityStatus;
33860
34084
  exports.CreateEntityStatus$inboundSchema = CreateEntityStatus$inboundSchema;
33861
34085
  exports.CreateEntitySubscription$inboundSchema = CreateEntitySubscription$inboundSchema;
@@ -33869,8 +34093,12 @@ exports.CreateEntityType = CreateEntityType;
33869
34093
  exports.CreateEntityType$inboundSchema = CreateEntityType$inboundSchema;
33870
34094
  exports.CreateEntityUsageAlertRequestBody$outboundSchema = CreateEntityUsageAlertRequestBody$outboundSchema;
33871
34095
  exports.CreateEntityUsageAlertResponse$inboundSchema = CreateEntityUsageAlertResponse$inboundSchema;
34096
+ exports.CreateEntityUsageAlertSource = CreateEntityUsageAlertSource;
34097
+ exports.CreateEntityUsageAlertSource$inboundSchema = CreateEntityUsageAlertSource$inboundSchema;
33872
34098
  exports.CreateEntityUsageLimitRequest$outboundSchema = CreateEntityUsageLimitRequest$outboundSchema;
33873
34099
  exports.CreateEntityUsageLimitResponse$inboundSchema = CreateEntityUsageLimitResponse$inboundSchema;
34100
+ exports.CreateEntityUsageLimitSource = CreateEntityUsageLimitSource;
34101
+ exports.CreateEntityUsageLimitSource$inboundSchema = CreateEntityUsageLimitSource$inboundSchema;
33874
34102
  exports.CreateFeatureCreditSchemaRequestBody$outboundSchema = CreateFeatureCreditSchemaRequestBody$outboundSchema;
33875
34103
  exports.CreateFeatureCreditSchemaResponse$inboundSchema = CreateFeatureCreditSchemaResponse$inboundSchema;
33876
34104
  exports.CreateFeatureDisplayRequestBody$outboundSchema = CreateFeatureDisplayRequestBody$outboundSchema;
@@ -34247,6 +34475,8 @@ exports.FreeTrialDuration2$inboundSchema = FreeTrialDuration2$inboundSchema;
34247
34475
  exports.FreeTrialParams$inboundSchema = FreeTrialParams$inboundSchema;
34248
34476
  exports.FreeTrialRequest$outboundSchema = FreeTrialRequest$outboundSchema;
34249
34477
  exports.GetCustomerAutoTopup$inboundSchema = GetCustomerAutoTopup$inboundSchema;
34478
+ exports.GetCustomerAutoTopupSource = GetCustomerAutoTopupSource;
34479
+ exports.GetCustomerAutoTopupSource$inboundSchema = GetCustomerAutoTopupSource$inboundSchema;
34250
34480
  exports.GetCustomerBillingControls$inboundSchema = GetCustomerBillingControls$inboundSchema;
34251
34481
  exports.GetCustomerConfig$inboundSchema = GetCustomerConfig$inboundSchema;
34252
34482
  exports.GetCustomerCreditSchema$inboundSchema = GetCustomerCreditSchema$inboundSchema;
@@ -34272,6 +34502,8 @@ exports.GetCustomerLimitType = GetCustomerLimitType;
34272
34502
  exports.GetCustomerLimitType$inboundSchema = GetCustomerLimitType$inboundSchema;
34273
34503
  exports.GetCustomerModelMarkups$inboundSchema = GetCustomerModelMarkups$inboundSchema;
34274
34504
  exports.GetCustomerOverageAllowed$inboundSchema = GetCustomerOverageAllowed$inboundSchema;
34505
+ exports.GetCustomerOverageAllowedSource = GetCustomerOverageAllowedSource;
34506
+ exports.GetCustomerOverageAllowedSource$inboundSchema = GetCustomerOverageAllowedSource$inboundSchema;
34275
34507
  exports.GetCustomerParams$outboundSchema = GetCustomerParams$outboundSchema;
34276
34508
  exports.GetCustomerProcessorType = GetCustomerProcessorType;
34277
34509
  exports.GetCustomerProcessorType$inboundSchema = GetCustomerProcessorType$inboundSchema;
@@ -34292,6 +34524,8 @@ exports.GetCustomerResponse$inboundSchema = GetCustomerResponse$inboundSchema;
34292
34524
  exports.GetCustomerRevenuecat$inboundSchema = GetCustomerRevenuecat$inboundSchema;
34293
34525
  exports.GetCustomerRewards$inboundSchema = GetCustomerRewards$inboundSchema;
34294
34526
  exports.GetCustomerSpendLimit$inboundSchema = GetCustomerSpendLimit$inboundSchema;
34527
+ exports.GetCustomerSpendLimitSource = GetCustomerSpendLimitSource;
34528
+ exports.GetCustomerSpendLimitSource$inboundSchema = GetCustomerSpendLimitSource$inboundSchema;
34295
34529
  exports.GetCustomerStatus = GetCustomerStatus;
34296
34530
  exports.GetCustomerStatus$inboundSchema = GetCustomerStatus$inboundSchema;
34297
34531
  exports.GetCustomerStripe$inboundSchema = GetCustomerStripe$inboundSchema;
@@ -34302,9 +34536,13 @@ exports.GetCustomerThresholdType = GetCustomerThresholdType;
34302
34536
  exports.GetCustomerThresholdType$inboundSchema = GetCustomerThresholdType$inboundSchema;
34303
34537
  exports.GetCustomerTrialsUsed$inboundSchema = GetCustomerTrialsUsed$inboundSchema;
34304
34538
  exports.GetCustomerUsageAlert$inboundSchema = GetCustomerUsageAlert$inboundSchema;
34539
+ exports.GetCustomerUsageAlertSource = GetCustomerUsageAlertSource;
34540
+ exports.GetCustomerUsageAlertSource$inboundSchema = GetCustomerUsageAlertSource$inboundSchema;
34305
34541
  exports.GetCustomerUsageLimit$inboundSchema = GetCustomerUsageLimit$inboundSchema;
34306
34542
  exports.GetCustomerUsageLimitInterval = GetCustomerUsageLimitInterval;
34307
34543
  exports.GetCustomerUsageLimitInterval$inboundSchema = GetCustomerUsageLimitInterval$inboundSchema;
34544
+ exports.GetCustomerUsageLimitSource = GetCustomerUsageLimitSource;
34545
+ exports.GetCustomerUsageLimitSource$inboundSchema = GetCustomerUsageLimitSource$inboundSchema;
34308
34546
  exports.GetCustomerVercel$inboundSchema = GetCustomerVercel$inboundSchema;
34309
34547
  exports.GetEntityBillingControls$inboundSchema = GetEntityBillingControls$inboundSchema;
34310
34548
  exports.GetEntityCreditSchema$inboundSchema = GetEntityCreditSchema$inboundSchema;
@@ -34321,6 +34559,8 @@ exports.GetEntityLimitType = GetEntityLimitType;
34321
34559
  exports.GetEntityLimitType$inboundSchema = GetEntityLimitType$inboundSchema;
34322
34560
  exports.GetEntityModelMarkups$inboundSchema = GetEntityModelMarkups$inboundSchema;
34323
34561
  exports.GetEntityOverageAllowed$inboundSchema = GetEntityOverageAllowed$inboundSchema;
34562
+ exports.GetEntityOverageAllowedSource = GetEntityOverageAllowedSource;
34563
+ exports.GetEntityOverageAllowedSource$inboundSchema = GetEntityOverageAllowedSource$inboundSchema;
34324
34564
  exports.GetEntityParams$outboundSchema = GetEntityParams$outboundSchema;
34325
34565
  exports.GetEntityProcessorType = GetEntityProcessorType;
34326
34566
  exports.GetEntityProcessorType$inboundSchema = GetEntityProcessorType$inboundSchema;
@@ -34330,6 +34570,8 @@ exports.GetEntityPurchaseScope = GetEntityPurchaseScope;
34330
34570
  exports.GetEntityPurchaseScope$inboundSchema = GetEntityPurchaseScope$inboundSchema;
34331
34571
  exports.GetEntityResponse$inboundSchema = GetEntityResponse$inboundSchema;
34332
34572
  exports.GetEntitySpendLimit$inboundSchema = GetEntitySpendLimit$inboundSchema;
34573
+ exports.GetEntitySpendLimitSource = GetEntitySpendLimitSource;
34574
+ exports.GetEntitySpendLimitSource$inboundSchema = GetEntitySpendLimitSource$inboundSchema;
34333
34575
  exports.GetEntityStatus = GetEntityStatus;
34334
34576
  exports.GetEntityStatus$inboundSchema = GetEntityStatus$inboundSchema;
34335
34577
  exports.GetEntitySubscription$inboundSchema = GetEntitySubscription$inboundSchema;
@@ -34340,7 +34582,11 @@ exports.GetEntityThresholdType$inboundSchema = GetEntityThresholdType$inboundSch
34340
34582
  exports.GetEntityType = GetEntityType;
34341
34583
  exports.GetEntityType$inboundSchema = GetEntityType$inboundSchema;
34342
34584
  exports.GetEntityUsageAlert$inboundSchema = GetEntityUsageAlert$inboundSchema;
34585
+ exports.GetEntityUsageAlertSource = GetEntityUsageAlertSource;
34586
+ exports.GetEntityUsageAlertSource$inboundSchema = GetEntityUsageAlertSource$inboundSchema;
34343
34587
  exports.GetEntityUsageLimit$inboundSchema = GetEntityUsageLimit$inboundSchema;
34588
+ exports.GetEntityUsageLimitSource = GetEntityUsageLimitSource;
34589
+ exports.GetEntityUsageLimitSource$inboundSchema = GetEntityUsageLimitSource$inboundSchema;
34344
34590
  exports.GetFeatureCreditSchema$inboundSchema = GetFeatureCreditSchema$inboundSchema;
34345
34591
  exports.GetFeatureDisplay$inboundSchema = GetFeatureDisplay$inboundSchema;
34346
34592
  exports.GetFeatureModelMarkups$inboundSchema = GetFeatureModelMarkups$inboundSchema;
@@ -34521,6 +34767,8 @@ exports.LinkRevenueCatEnv$outboundSchema = LinkRevenueCatEnv$outboundSchema;
34521
34767
  exports.LinkRevenueCatParams$outboundSchema = LinkRevenueCatParams$outboundSchema;
34522
34768
  exports.LinkRevenueCatResponse$inboundSchema = LinkRevenueCatResponse$inboundSchema;
34523
34769
  exports.ListCustomersAutoTopup$inboundSchema = ListCustomersAutoTopup$inboundSchema;
34770
+ exports.ListCustomersAutoTopupSource = ListCustomersAutoTopupSource;
34771
+ exports.ListCustomersAutoTopupSource$inboundSchema = ListCustomersAutoTopupSource$inboundSchema;
34524
34772
  exports.ListCustomersBillingControls$inboundSchema = ListCustomersBillingControls$inboundSchema;
34525
34773
  exports.ListCustomersConfig$inboundSchema = ListCustomersConfig$inboundSchema;
34526
34774
  exports.ListCustomersCreditSchema$inboundSchema = ListCustomersCreditSchema$inboundSchema;
@@ -34535,6 +34783,8 @@ exports.ListCustomersLimitType$inboundSchema = ListCustomersLimitType$inboundSch
34535
34783
  exports.ListCustomersList$inboundSchema = ListCustomersList$inboundSchema;
34536
34784
  exports.ListCustomersModelMarkups$inboundSchema = ListCustomersModelMarkups$inboundSchema;
34537
34785
  exports.ListCustomersOverageAllowed$inboundSchema = ListCustomersOverageAllowed$inboundSchema;
34786
+ exports.ListCustomersOverageAllowedSource = ListCustomersOverageAllowedSource;
34787
+ exports.ListCustomersOverageAllowedSource$inboundSchema = ListCustomersOverageAllowedSource$inboundSchema;
34538
34788
  exports.ListCustomersParams$outboundSchema = ListCustomersParams$outboundSchema;
34539
34789
  exports.ListCustomersPlan$outboundSchema = ListCustomersPlan$outboundSchema;
34540
34790
  exports.ListCustomersProcessor = ListCustomersProcessor;
@@ -34554,6 +34804,8 @@ exports.ListCustomersPurchaseScope$inboundSchema = ListCustomersPurchaseScope$in
34554
34804
  exports.ListCustomersResponse$inboundSchema = ListCustomersResponse$inboundSchema;
34555
34805
  exports.ListCustomersRevenuecat$inboundSchema = ListCustomersRevenuecat$inboundSchema;
34556
34806
  exports.ListCustomersSpendLimit$inboundSchema = ListCustomersSpendLimit$inboundSchema;
34807
+ exports.ListCustomersSpendLimitSource = ListCustomersSpendLimitSource;
34808
+ exports.ListCustomersSpendLimitSource$inboundSchema = ListCustomersSpendLimitSource$inboundSchema;
34557
34809
  exports.ListCustomersStatus = ListCustomersStatus;
34558
34810
  exports.ListCustomersStatus$inboundSchema = ListCustomersStatus$inboundSchema;
34559
34811
  exports.ListCustomersStripe$inboundSchema = ListCustomersStripe$inboundSchema;
@@ -34567,9 +34819,13 @@ exports.ListCustomersThresholdType$inboundSchema = ListCustomersThresholdType$in
34567
34819
  exports.ListCustomersType = ListCustomersType;
34568
34820
  exports.ListCustomersType$inboundSchema = ListCustomersType$inboundSchema;
34569
34821
  exports.ListCustomersUsageAlert$inboundSchema = ListCustomersUsageAlert$inboundSchema;
34822
+ exports.ListCustomersUsageAlertSource = ListCustomersUsageAlertSource;
34823
+ exports.ListCustomersUsageAlertSource$inboundSchema = ListCustomersUsageAlertSource$inboundSchema;
34570
34824
  exports.ListCustomersUsageLimit$inboundSchema = ListCustomersUsageLimit$inboundSchema;
34571
34825
  exports.ListCustomersUsageLimitInterval = ListCustomersUsageLimitInterval;
34572
34826
  exports.ListCustomersUsageLimitInterval$inboundSchema = ListCustomersUsageLimitInterval$inboundSchema;
34827
+ exports.ListCustomersUsageLimitSource = ListCustomersUsageLimitSource;
34828
+ exports.ListCustomersUsageLimitSource$inboundSchema = ListCustomersUsageLimitSource$inboundSchema;
34573
34829
  exports.ListCustomersVercel$inboundSchema = ListCustomersVercel$inboundSchema;
34574
34830
  exports.ListEntitiesBillingControls$inboundSchema = ListEntitiesBillingControls$inboundSchema;
34575
34831
  exports.ListEntitiesCreditSchema$inboundSchema = ListEntitiesCreditSchema$inboundSchema;
@@ -34587,6 +34843,8 @@ exports.ListEntitiesLimitType$inboundSchema = ListEntitiesLimitType$inboundSchem
34587
34843
  exports.ListEntitiesList$inboundSchema = ListEntitiesList$inboundSchema;
34588
34844
  exports.ListEntitiesModelMarkups$inboundSchema = ListEntitiesModelMarkups$inboundSchema;
34589
34845
  exports.ListEntitiesOverageAllowed$inboundSchema = ListEntitiesOverageAllowed$inboundSchema;
34846
+ exports.ListEntitiesOverageAllowedSource = ListEntitiesOverageAllowedSource;
34847
+ exports.ListEntitiesOverageAllowedSource$inboundSchema = ListEntitiesOverageAllowedSource$inboundSchema;
34590
34848
  exports.ListEntitiesParams$outboundSchema = ListEntitiesParams$outboundSchema;
34591
34849
  exports.ListEntitiesPlan$outboundSchema = ListEntitiesPlan$outboundSchema;
34592
34850
  exports.ListEntitiesProcessor = ListEntitiesProcessor;
@@ -34599,6 +34857,8 @@ exports.ListEntitiesPurchaseScope = ListEntitiesPurchaseScope;
34599
34857
  exports.ListEntitiesPurchaseScope$inboundSchema = ListEntitiesPurchaseScope$inboundSchema;
34600
34858
  exports.ListEntitiesResponse$inboundSchema = ListEntitiesResponse$inboundSchema;
34601
34859
  exports.ListEntitiesSpendLimit$inboundSchema = ListEntitiesSpendLimit$inboundSchema;
34860
+ exports.ListEntitiesSpendLimitSource = ListEntitiesSpendLimitSource;
34861
+ exports.ListEntitiesSpendLimitSource$inboundSchema = ListEntitiesSpendLimitSource$inboundSchema;
34602
34862
  exports.ListEntitiesStatus = ListEntitiesStatus;
34603
34863
  exports.ListEntitiesStatus$inboundSchema = ListEntitiesStatus$inboundSchema;
34604
34864
  exports.ListEntitiesSubscription$inboundSchema = ListEntitiesSubscription$inboundSchema;
@@ -34611,7 +34871,11 @@ exports.ListEntitiesThresholdType$inboundSchema = ListEntitiesThresholdType$inbo
34611
34871
  exports.ListEntitiesType = ListEntitiesType;
34612
34872
  exports.ListEntitiesType$inboundSchema = ListEntitiesType$inboundSchema;
34613
34873
  exports.ListEntitiesUsageAlert$inboundSchema = ListEntitiesUsageAlert$inboundSchema;
34874
+ exports.ListEntitiesUsageAlertSource = ListEntitiesUsageAlertSource;
34875
+ exports.ListEntitiesUsageAlertSource$inboundSchema = ListEntitiesUsageAlertSource$inboundSchema;
34614
34876
  exports.ListEntitiesUsageLimit$inboundSchema = ListEntitiesUsageLimit$inboundSchema;
34877
+ exports.ListEntitiesUsageLimitSource = ListEntitiesUsageLimitSource;
34878
+ exports.ListEntitiesUsageLimitSource$inboundSchema = ListEntitiesUsageLimitSource$inboundSchema;
34615
34879
  exports.ListEventsCustomRange$outboundSchema = ListEventsCustomRange$outboundSchema;
34616
34880
  exports.ListEventsFeatureId$outboundSchema = ListEventsFeatureId$outboundSchema;
34617
34881
  exports.ListEventsIntervalEnum = ListEventsIntervalEnum;
@@ -34822,6 +35086,8 @@ exports.OnIncrease = OnIncrease;
34822
35086
  exports.OnIncrease$inboundSchema = OnIncrease$inboundSchema;
34823
35087
  exports.OpenCustomerPortalParams$outboundSchema = OpenCustomerPortalParams$outboundSchema;
34824
35088
  exports.OpenCustomerPortalResponse$inboundSchema = OpenCustomerPortalResponse$inboundSchema;
35089
+ exports.OverageAllowedSource = OverageAllowedSource;
35090
+ exports.OverageAllowedSource$inboundSchema = OverageAllowedSource$inboundSchema;
34825
35091
  exports.PhaseResponse$inboundSchema = PhaseResponse$inboundSchema;
34826
35092
  exports.PhaseStart$outboundSchema = PhaseStart$outboundSchema;
34827
35093
  exports.PhaseStartUnion$outboundSchema = PhaseStartUnion$outboundSchema;
@@ -35357,6 +35623,8 @@ exports.SetupPaymentUsageAlert$outboundSchema = SetupPaymentUsageAlert$outboundS
35357
35623
  exports.SetupPaymentUsageLimit$outboundSchema = SetupPaymentUsageLimit$outboundSchema;
35358
35624
  exports.SetupPaymentUsageLimitInterval = SetupPaymentUsageLimitInterval;
35359
35625
  exports.SetupPaymentUsageLimitInterval$outboundSchema = SetupPaymentUsageLimitInterval$outboundSchema;
35626
+ exports.SpendLimitSource = SpendLimitSource;
35627
+ exports.SpendLimitSource$inboundSchema = SpendLimitSource$inboundSchema;
35360
35628
  exports.StartingAfter2$outboundSchema = StartingAfter2$outboundSchema;
35361
35629
  exports.StartsAt2$outboundSchema = StartsAt2$outboundSchema;
35362
35630
  exports.StorePush = StorePush;
@@ -35414,6 +35682,8 @@ exports.UpdateBalanceParams$outboundSchema = UpdateBalanceParams$outboundSchema;
35414
35682
  exports.UpdateBalanceResponse$inboundSchema = UpdateBalanceResponse$inboundSchema;
35415
35683
  exports.UpdateCustomerAutoTopupRequest$outboundSchema = UpdateCustomerAutoTopupRequest$outboundSchema;
35416
35684
  exports.UpdateCustomerAutoTopupResponse$inboundSchema = UpdateCustomerAutoTopupResponse$inboundSchema;
35685
+ exports.UpdateCustomerAutoTopupSource = UpdateCustomerAutoTopupSource;
35686
+ exports.UpdateCustomerAutoTopupSource$inboundSchema = UpdateCustomerAutoTopupSource$inboundSchema;
35417
35687
  exports.UpdateCustomerBillingControlsRequest$outboundSchema = UpdateCustomerBillingControlsRequest$outboundSchema;
35418
35688
  exports.UpdateCustomerBillingControlsResponse$inboundSchema = UpdateCustomerBillingControlsResponse$inboundSchema;
35419
35689
  exports.UpdateCustomerConfigRequest$outboundSchema = UpdateCustomerConfigRequest$outboundSchema;
@@ -35433,6 +35703,8 @@ exports.UpdateCustomerLimitTypeResponse$inboundSchema = UpdateCustomerLimitTypeR
35433
35703
  exports.UpdateCustomerModelMarkups$inboundSchema = UpdateCustomerModelMarkups$inboundSchema;
35434
35704
  exports.UpdateCustomerOverageAllowedRequest$outboundSchema = UpdateCustomerOverageAllowedRequest$outboundSchema;
35435
35705
  exports.UpdateCustomerOverageAllowedResponse$inboundSchema = UpdateCustomerOverageAllowedResponse$inboundSchema;
35706
+ exports.UpdateCustomerOverageAllowedSource = UpdateCustomerOverageAllowedSource;
35707
+ exports.UpdateCustomerOverageAllowedSource$inboundSchema = UpdateCustomerOverageAllowedSource$inboundSchema;
35436
35708
  exports.UpdateCustomerParams$outboundSchema = UpdateCustomerParams$outboundSchema;
35437
35709
  exports.UpdateCustomerProcessors$inboundSchema = UpdateCustomerProcessors$inboundSchema;
35438
35710
  exports.UpdateCustomerProperties$outboundSchema = UpdateCustomerProperties$outboundSchema;
@@ -35454,6 +35726,8 @@ exports.UpdateCustomerResponse$inboundSchema = UpdateCustomerResponse$inboundSch
35454
35726
  exports.UpdateCustomerRevenuecat$inboundSchema = UpdateCustomerRevenuecat$inboundSchema;
35455
35727
  exports.UpdateCustomerSpendLimitRequest$outboundSchema = UpdateCustomerSpendLimitRequest$outboundSchema;
35456
35728
  exports.UpdateCustomerSpendLimitResponse$inboundSchema = UpdateCustomerSpendLimitResponse$inboundSchema;
35729
+ exports.UpdateCustomerSpendLimitSource = UpdateCustomerSpendLimitSource;
35730
+ exports.UpdateCustomerSpendLimitSource$inboundSchema = UpdateCustomerSpendLimitSource$inboundSchema;
35457
35731
  exports.UpdateCustomerStatus = UpdateCustomerStatus;
35458
35732
  exports.UpdateCustomerStatus$inboundSchema = UpdateCustomerStatus$inboundSchema;
35459
35733
  exports.UpdateCustomerStripe$inboundSchema = UpdateCustomerStripe$inboundSchema;
@@ -35468,12 +35742,16 @@ exports.UpdateCustomerType = UpdateCustomerType;
35468
35742
  exports.UpdateCustomerType$inboundSchema = UpdateCustomerType$inboundSchema;
35469
35743
  exports.UpdateCustomerUsageAlertRequestBody$outboundSchema = UpdateCustomerUsageAlertRequestBody$outboundSchema;
35470
35744
  exports.UpdateCustomerUsageAlertResponse$inboundSchema = UpdateCustomerUsageAlertResponse$inboundSchema;
35745
+ exports.UpdateCustomerUsageAlertSource = UpdateCustomerUsageAlertSource;
35746
+ exports.UpdateCustomerUsageAlertSource$inboundSchema = UpdateCustomerUsageAlertSource$inboundSchema;
35471
35747
  exports.UpdateCustomerUsageLimitIntervalRequestBody = UpdateCustomerUsageLimitIntervalRequestBody;
35472
35748
  exports.UpdateCustomerUsageLimitIntervalRequestBody$outboundSchema = UpdateCustomerUsageLimitIntervalRequestBody$outboundSchema;
35473
35749
  exports.UpdateCustomerUsageLimitIntervalResponse = UpdateCustomerUsageLimitIntervalResponse;
35474
35750
  exports.UpdateCustomerUsageLimitIntervalResponse$inboundSchema = UpdateCustomerUsageLimitIntervalResponse$inboundSchema;
35475
35751
  exports.UpdateCustomerUsageLimitRequest$outboundSchema = UpdateCustomerUsageLimitRequest$outboundSchema;
35476
35752
  exports.UpdateCustomerUsageLimitResponse$inboundSchema = UpdateCustomerUsageLimitResponse$inboundSchema;
35753
+ exports.UpdateCustomerUsageLimitSource = UpdateCustomerUsageLimitSource;
35754
+ exports.UpdateCustomerUsageLimitSource$inboundSchema = UpdateCustomerUsageLimitSource$inboundSchema;
35477
35755
  exports.UpdateCustomerVercel$inboundSchema = UpdateCustomerVercel$inboundSchema;
35478
35756
  exports.UpdateEntityBillingControlsRequest$outboundSchema = UpdateEntityBillingControlsRequest$outboundSchema;
35479
35757
  exports.UpdateEntityBillingControlsResponse$inboundSchema = UpdateEntityBillingControlsResponse$inboundSchema;
@@ -35497,6 +35775,8 @@ exports.UpdateEntityLimitTypeResponse$inboundSchema = UpdateEntityLimitTypeRespo
35497
35775
  exports.UpdateEntityModelMarkups$inboundSchema = UpdateEntityModelMarkups$inboundSchema;
35498
35776
  exports.UpdateEntityOverageAllowedRequest$outboundSchema = UpdateEntityOverageAllowedRequest$outboundSchema;
35499
35777
  exports.UpdateEntityOverageAllowedResponse$inboundSchema = UpdateEntityOverageAllowedResponse$inboundSchema;
35778
+ exports.UpdateEntityOverageAllowedSource = UpdateEntityOverageAllowedSource;
35779
+ exports.UpdateEntityOverageAllowedSource$inboundSchema = UpdateEntityOverageAllowedSource$inboundSchema;
35500
35780
  exports.UpdateEntityParams$outboundSchema = UpdateEntityParams$outboundSchema;
35501
35781
  exports.UpdateEntityProcessorType = UpdateEntityProcessorType;
35502
35782
  exports.UpdateEntityProcessorType$inboundSchema = UpdateEntityProcessorType$inboundSchema;
@@ -35508,6 +35788,8 @@ exports.UpdateEntityPurchaseScope$inboundSchema = UpdateEntityPurchaseScope$inbo
35508
35788
  exports.UpdateEntityResponse$inboundSchema = UpdateEntityResponse$inboundSchema;
35509
35789
  exports.UpdateEntitySpendLimitRequest$outboundSchema = UpdateEntitySpendLimitRequest$outboundSchema;
35510
35790
  exports.UpdateEntitySpendLimitResponse$inboundSchema = UpdateEntitySpendLimitResponse$inboundSchema;
35791
+ exports.UpdateEntitySpendLimitSource = UpdateEntitySpendLimitSource;
35792
+ exports.UpdateEntitySpendLimitSource$inboundSchema = UpdateEntitySpendLimitSource$inboundSchema;
35511
35793
  exports.UpdateEntityStatus = UpdateEntityStatus;
35512
35794
  exports.UpdateEntityStatus$inboundSchema = UpdateEntityStatus$inboundSchema;
35513
35795
  exports.UpdateEntitySubscription$inboundSchema = UpdateEntitySubscription$inboundSchema;
@@ -35521,8 +35803,12 @@ exports.UpdateEntityType = UpdateEntityType;
35521
35803
  exports.UpdateEntityType$inboundSchema = UpdateEntityType$inboundSchema;
35522
35804
  exports.UpdateEntityUsageAlertRequestBody$outboundSchema = UpdateEntityUsageAlertRequestBody$outboundSchema;
35523
35805
  exports.UpdateEntityUsageAlertResponse$inboundSchema = UpdateEntityUsageAlertResponse$inboundSchema;
35806
+ exports.UpdateEntityUsageAlertSource = UpdateEntityUsageAlertSource;
35807
+ exports.UpdateEntityUsageAlertSource$inboundSchema = UpdateEntityUsageAlertSource$inboundSchema;
35524
35808
  exports.UpdateEntityUsageLimitRequest$outboundSchema = UpdateEntityUsageLimitRequest$outboundSchema;
35525
35809
  exports.UpdateEntityUsageLimitResponse$inboundSchema = UpdateEntityUsageLimitResponse$inboundSchema;
35810
+ exports.UpdateEntityUsageLimitSource = UpdateEntityUsageLimitSource;
35811
+ exports.UpdateEntityUsageLimitSource$inboundSchema = UpdateEntityUsageLimitSource$inboundSchema;
35526
35812
  exports.UpdateFeatureCreditSchemaRequestBody$outboundSchema = UpdateFeatureCreditSchemaRequestBody$outboundSchema;
35527
35813
  exports.UpdateFeatureCreditSchemaResponse$inboundSchema = UpdateFeatureCreditSchemaResponse$inboundSchema;
35528
35814
  exports.UpdateFeatureDisplayRequestBody$outboundSchema = UpdateFeatureDisplayRequestBody$outboundSchema;
@@ -35697,6 +35983,10 @@ exports.UpdatePlanVariantDetailsUsageLimit$inboundSchema = UpdatePlanVariantDeta
35697
35983
  exports.UpdatePlanVariantDetailsUsageLimitInterval = UpdatePlanVariantDetailsUsageLimitInterval;
35698
35984
  exports.UpdatePlanVariantDetailsUsageLimitInterval$inboundSchema = UpdatePlanVariantDetailsUsageLimitInterval$inboundSchema;
35699
35985
  exports.UpdateSubscriptionParams$outboundSchema = UpdateSubscriptionParams$outboundSchema;
35986
+ exports.UsageAlertSource = UsageAlertSource;
35987
+ exports.UsageAlertSource$inboundSchema = UsageAlertSource$inboundSchema;
35988
+ exports.UsageLimitSource = UsageLimitSource;
35989
+ exports.UsageLimitSource$inboundSchema = UsageLimitSource$inboundSchema;
35700
35990
  exports.UsageModel1 = UsageModel1;
35701
35991
  exports.UsageModel1$inboundSchema = UsageModel1$inboundSchema;
35702
35992
  exports.UsageModel2 = UsageModel2;