autumn-js 1.3.45 → 1.3.46

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 (107) hide show
  1. package/dist/backend/adapters/express.js +43 -17
  2. package/dist/backend/adapters/express.mjs +4 -4
  3. package/dist/backend/adapters/fetch.js +43 -17
  4. package/dist/backend/adapters/fetch.mjs +4 -4
  5. package/dist/backend/adapters/hono.js +43 -17
  6. package/dist/backend/adapters/hono.mjs +4 -4
  7. package/dist/backend/adapters/index.js +43 -17
  8. package/dist/backend/adapters/index.mjs +7 -7
  9. package/dist/backend/adapters/next.js +43 -17
  10. package/dist/backend/adapters/next.mjs +4 -4
  11. package/dist/backend/{chunk-YPH7HFUK.mjs → chunk-6RGLO6FV.mjs} +1 -1
  12. package/dist/backend/{chunk-O626OIQH.mjs → chunk-C4IENXIG.mjs} +1 -1
  13. package/dist/backend/{chunk-B6LFGURF.mjs → chunk-DZBBXOKT.mjs} +1 -1
  14. package/dist/backend/{chunk-BKJ5TJQD.mjs → chunk-ESSDMDXJ.mjs} +1 -1
  15. package/dist/backend/{chunk-WUJROAC6.mjs → chunk-KSYN5FLV.mjs} +43 -17
  16. package/dist/backend/{chunk-HGLQ4JSO.mjs → chunk-NOJP6FIN.mjs} +1 -1
  17. package/dist/backend/{chunk-BBDVVRGT.mjs → chunk-ZFFEG27F.mjs} +1 -1
  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 +43 -17
  21. package/dist/backend/core/handlers/coreHandler.mjs +2 -2
  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/handleRouteByName.js +43 -17
  25. package/dist/backend/core/handlers/handleRouteByName.mjs +2 -2
  26. package/dist/backend/core/handlers/index.d.mts +1 -1
  27. package/dist/backend/core/handlers/index.d.ts +1 -1
  28. package/dist/backend/core/handlers/index.js +43 -17
  29. package/dist/backend/core/handlers/index.mjs +3 -3
  30. package/dist/backend/core/index.d.mts +1 -1
  31. package/dist/backend/core/index.d.ts +1 -1
  32. package/dist/backend/core/index.js +43 -17
  33. package/dist/backend/core/index.mjs +3 -3
  34. package/dist/backend/core/routes/index.d.mts +1 -1
  35. package/dist/backend/core/routes/index.d.ts +1 -1
  36. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  37. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  38. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  39. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  40. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  41. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  42. package/dist/backend/core/types/index.d.mts +1 -1
  43. package/dist/backend/core/types/index.d.ts +1 -1
  44. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  45. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  46. package/dist/backend/index.d.mts +2 -2
  47. package/dist/backend/index.d.ts +2 -2
  48. package/dist/backend/index.js +43 -17
  49. package/dist/backend/index.mjs +3 -3
  50. package/dist/backend/{routeTypes-DsIf5SHS.d.ts → routeTypes-4TatmvQY.d.ts} +73 -15
  51. package/dist/backend/{routeTypes-BAn0Kksn.d.mts → routeTypes-DAI_E67X.d.mts} +73 -15
  52. package/dist/better-auth/{chunk-3M4F43H2.mjs → chunk-R7IEJQOY.mjs} +43 -17
  53. package/dist/better-auth/index.js +43 -17
  54. package/dist/better-auth/index.mjs +1 -1
  55. package/dist/better-auth/utils/handleBetterAuthRoute.js +43 -17
  56. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  57. package/dist/better-auth/utils/index.js +43 -17
  58. package/dist/better-auth/utils/index.mjs +1 -1
  59. package/dist/react/AutumnContext.d.mts +4 -4
  60. package/dist/react/AutumnContext.d.ts +4 -4
  61. package/dist/react/client/AutumnClient.d.mts +4 -4
  62. package/dist/react/client/AutumnClient.d.ts +4 -4
  63. package/dist/react/client/IAutumnClient.d.mts +4 -4
  64. package/dist/react/client/IAutumnClient.d.ts +4 -4
  65. package/dist/react/client/index.d.mts +4 -4
  66. package/dist/react/client/index.d.ts +4 -4
  67. package/dist/react/{customer-B0VDWypn.d.ts → customer-B0KAd7eZ.d.ts} +16 -16
  68. package/dist/react/{customer-BIYGF3IC.d.mts → customer-DfpvnPRk.d.mts} +16 -16
  69. package/dist/react/hooks/index.d.mts +4 -4
  70. package/dist/react/hooks/index.d.ts +4 -4
  71. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  72. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  73. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  74. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  75. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  76. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  77. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  78. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  79. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  80. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  81. package/dist/react/hooks/internal/useCustomerActions.d.mts +4 -4
  82. package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
  83. package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
  84. package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
  85. package/dist/react/hooks/useCustomer.d.mts +3 -3
  86. package/dist/react/hooks/useCustomer.d.ts +3 -3
  87. package/dist/react/hooks/useEntity.d.mts +2 -2
  88. package/dist/react/hooks/useEntity.d.ts +2 -2
  89. package/dist/react/hooks/useListEvents.d.mts +2 -2
  90. package/dist/react/hooks/useListEvents.d.ts +2 -2
  91. package/dist/react/hooks/useListPlans.d.mts +3 -3
  92. package/dist/react/hooks/useListPlans.d.ts +3 -3
  93. package/dist/react/hooks/useReferrals.d.mts +2 -2
  94. package/dist/react/hooks/useReferrals.d.ts +2 -2
  95. package/dist/react/index.d.mts +4 -4
  96. package/dist/react/index.d.ts +4 -4
  97. package/dist/react/{list-plans-response-kGzo3GRQ.d.ts → list-plans-response-6iUDTnPQ.d.ts} +1 -1
  98. package/dist/react/{list-plans-response-BqtwCPty.d.mts → list-plans-response-BzsqJlxN.d.mts} +1 -1
  99. package/dist/react/{params-DP6BNkc0.d.ts → params-CMcoADwO.d.ts} +1 -1
  100. package/dist/react/{params-DZznA-no.d.mts → params-vAoGWtk9.d.mts} +1 -1
  101. package/dist/react/{plan-CEOgE_On.d.mts → plan-Ct5TGTnS.d.mts} +33 -0
  102. package/dist/react/{plan-CEOgE_On.d.ts → plan-Ct5TGTnS.d.ts} +33 -0
  103. package/dist/sdk/index.d.mts +89 -21
  104. package/dist/sdk/index.d.ts +89 -21
  105. package/dist/sdk/index.js +75 -27
  106. package/dist/sdk/index.mjs +58 -18
  107. package/package.json +2 -2
@@ -3669,6 +3669,10 @@ var BalanceBillingMethod = {
3669
3669
  Prepaid: "prepaid",
3670
3670
  UsageBased: "usage_based"
3671
3671
  };
3672
+ var BalanceSource = {
3673
+ Customer: "customer",
3674
+ Entity: "entity"
3675
+ };
3672
3676
  var BalanceType$inboundSchema = inboundSchema(BalanceType);
3673
3677
  var BalanceDimensions6$inboundSchema = z15.pipe(
3674
3678
  z15.object({
@@ -4029,6 +4033,10 @@ var BalancePrice$inboundSchema = z15.pipe(
4029
4033
  });
4030
4034
  })
4031
4035
  );
4036
+ var BalanceSource$inboundSchema = inboundSchema(BalanceSource);
4037
+ var Allocation$inboundSchema = z15.object({
4038
+ amount: number2()
4039
+ });
4032
4040
  var Breakdown$inboundSchema = z15.pipe(
4033
4041
  z15.object({
4034
4042
  id: z15._default(string5(), ""),
@@ -4040,7 +4048,11 @@ var Breakdown$inboundSchema = z15.pipe(
4040
4048
  unlimited: boolean2(),
4041
4049
  reset: nullable(z15.lazy(() => BalanceReset$inboundSchema)),
4042
4050
  price: nullable(z15.lazy(() => BalancePrice$inboundSchema)),
4043
- expires_at: nullable(number2())
4051
+ expires_at: nullable(number2()),
4052
+ source: optional3(BalanceSource$inboundSchema),
4053
+ allocation: z15.optional(
4054
+ z15.nullable(z15.lazy(() => Allocation$inboundSchema))
4055
+ )
4044
4056
  }),
4045
4057
  z15.transform((v) => {
4046
4058
  return remap(v, {
@@ -4077,7 +4089,9 @@ var Balance$inboundSchema = z15.pipe(
4077
4089
  breakdown: optional3(z15.array(z15.lazy(() => Breakdown$inboundSchema))),
4078
4090
  rollovers: optional3(z15.array(z15.lazy(
4079
4091
  () => BalanceRollover$inboundSchema
4080
- )))
4092
+ ))),
4093
+ allocated: optional3(number2()),
4094
+ unallocated: optional3(number2())
4081
4095
  }),
4082
4096
  z15.transform((v) => {
4083
4097
  return remap(v, {
@@ -21134,7 +21148,7 @@ var CustomerAutoTopupInterval1 = {
21134
21148
  Week: "week",
21135
21149
  Month: "month"
21136
21150
  };
21137
- var AutoTopupSource = {
21151
+ var CustomerAutoTopupSource = {
21138
21152
  Customer: "customer",
21139
21153
  Plan: "plan"
21140
21154
  };
@@ -21142,7 +21156,7 @@ var CustomerLimitType = {
21142
21156
  Absolute: "absolute",
21143
21157
  UsagePercentage: "usage_percentage"
21144
21158
  };
21145
- var SpendLimitSource = {
21159
+ var CustomerSpendLimitSource = {
21146
21160
  Customer: "customer",
21147
21161
  Plan: "plan"
21148
21162
  };
@@ -21156,7 +21170,7 @@ var CustomerAnchor = {
21156
21170
  BillingCycle: "billing_cycle",
21157
21171
  Utc: "utc"
21158
21172
  };
21159
- var UsageLimitSource = {
21173
+ var CustomerUsageLimitSource = {
21160
21174
  Customer: "customer",
21161
21175
  Plan: "plan"
21162
21176
  };
@@ -21172,11 +21186,11 @@ var CustomerBasis = {
21172
21186
  Recurring: "recurring",
21173
21187
  UsageLimit: "usage_limit"
21174
21188
  };
21175
- var UsageAlertSource = {
21189
+ var CustomerUsageAlertSource = {
21176
21190
  Customer: "customer",
21177
21191
  Plan: "plan"
21178
21192
  };
21179
- var OverageAllowedSource = {
21193
+ var CustomerOverageAllowedSource = {
21180
21194
  Customer: "customer",
21181
21195
  Plan: "plan"
21182
21196
  };
@@ -21269,7 +21283,7 @@ var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
21269
21283
  z39.lazy(() => CustomerPurchaseLimit1$inboundSchema),
21270
21284
  z39.lazy(() => CustomerPurchaseLimit2$inboundSchema)
21271
21285
  ]);
21272
- var AutoTopupSource$inboundSchema = inboundSchema(AutoTopupSource);
21286
+ var CustomerAutoTopupSource$inboundSchema = inboundSchema(CustomerAutoTopupSource);
21273
21287
  var CustomerAutoTopup$inboundSchema = z39.pipe(
21274
21288
  z39.object({
21275
21289
  feature_id: string5(),
@@ -21281,7 +21295,7 @@ var CustomerAutoTopup$inboundSchema = z39.pipe(
21281
21295
  z39.lazy(() => CustomerPurchaseLimit2$inboundSchema)
21282
21296
  ])),
21283
21297
  invoice_mode: optional3(boolean2()),
21284
- source: optional3(AutoTopupSource$inboundSchema)
21298
+ source: optional3(CustomerAutoTopupSource$inboundSchema)
21285
21299
  }),
21286
21300
  z39.transform((v) => {
21287
21301
  return remap(v, {
@@ -21292,7 +21306,7 @@ var CustomerAutoTopup$inboundSchema = z39.pipe(
21292
21306
  })
21293
21307
  );
21294
21308
  var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
21295
- var SpendLimitSource$inboundSchema = inboundSchema(SpendLimitSource);
21309
+ var CustomerSpendLimitSource$inboundSchema = inboundSchema(CustomerSpendLimitSource);
21296
21310
  var CustomerSpendLimit$inboundSchema = z39.pipe(
21297
21311
  z39.object({
21298
21312
  feature_id: optional3(string5()),
@@ -21300,7 +21314,7 @@ var CustomerSpendLimit$inboundSchema = z39.pipe(
21300
21314
  limit_type: optional3(CustomerLimitType$inboundSchema),
21301
21315
  overage_limit: optional3(number2()),
21302
21316
  skip_overage_billing: optional3(boolean2()),
21303
- source: optional3(SpendLimitSource$inboundSchema)
21317
+ source: optional3(CustomerSpendLimitSource$inboundSchema)
21304
21318
  }),
21305
21319
  z39.transform((v) => {
21306
21320
  return remap(v, {
@@ -21316,7 +21330,7 @@ var CustomerAnchor$inboundSchema = inboundSchema(CustomerAnchor);
21316
21330
  var CustomerUsageLimitFilter$inboundSchema = z39.object({
21317
21331
  properties: z39.record(z39.string(), string5())
21318
21332
  });
21319
- var UsageLimitSource$inboundSchema = inboundSchema(UsageLimitSource);
21333
+ var CustomerUsageLimitSource$inboundSchema = inboundSchema(CustomerUsageLimitSource);
21320
21334
  var CustomerUsageLimit$inboundSchema = z39.pipe(
21321
21335
  z39.object({
21322
21336
  feature_id: string5(),
@@ -21328,7 +21342,7 @@ var CustomerUsageLimit$inboundSchema = z39.pipe(
21328
21342
  z39.lazy(() => CustomerUsageLimitFilter$inboundSchema)
21329
21343
  ),
21330
21344
  usage: optional3(number2()),
21331
- source: optional3(UsageLimitSource$inboundSchema)
21345
+ source: optional3(CustomerUsageLimitSource$inboundSchema)
21332
21346
  }),
21333
21347
  z39.transform((v) => {
21334
21348
  return remap(v, {
@@ -21341,7 +21355,7 @@ var CustomerBasis$inboundSchema = inboundSchema(CustomerBasis);
21341
21355
  var CustomerUsageAlertFilter$inboundSchema = z39.object({
21342
21356
  properties: z39.record(z39.string(), string5())
21343
21357
  });
21344
- var UsageAlertSource$inboundSchema = inboundSchema(UsageAlertSource);
21358
+ var CustomerUsageAlertSource$inboundSchema = inboundSchema(CustomerUsageAlertSource);
21345
21359
  var CustomerUsageAlert$inboundSchema = z39.pipe(
21346
21360
  z39.object({
21347
21361
  feature_id: optional3(string5()),
@@ -21353,7 +21367,7 @@ var CustomerUsageAlert$inboundSchema = z39.pipe(
21353
21367
  z39.lazy(() => CustomerUsageAlertFilter$inboundSchema)
21354
21368
  ),
21355
21369
  name: optional3(string5()),
21356
- source: optional3(UsageAlertSource$inboundSchema)
21370
+ source: optional3(CustomerUsageAlertSource$inboundSchema)
21357
21371
  }),
21358
21372
  z39.transform((v) => {
21359
21373
  return remap(v, {
@@ -21362,12 +21376,12 @@ var CustomerUsageAlert$inboundSchema = z39.pipe(
21362
21376
  });
21363
21377
  })
21364
21378
  );
21365
- var OverageAllowedSource$inboundSchema = inboundSchema(OverageAllowedSource);
21379
+ var CustomerOverageAllowedSource$inboundSchema = inboundSchema(CustomerOverageAllowedSource);
21366
21380
  var CustomerOverageAllowed$inboundSchema = z39.pipe(
21367
21381
  z39.object({
21368
21382
  feature_id: string5(),
21369
21383
  enabled: z39._default(boolean2(), false),
21370
- source: optional3(OverageAllowedSource$inboundSchema)
21384
+ source: optional3(CustomerOverageAllowedSource$inboundSchema)
21371
21385
  }),
21372
21386
  z39.transform((v) => {
21373
21387
  return remap(v, {
@@ -28140,6 +28154,10 @@ var ListBalancesBillingMethod = {
28140
28154
  Prepaid: "prepaid",
28141
28155
  UsageBased: "usage_based"
28142
28156
  };
28157
+ var ListBalancesSource = {
28158
+ Customer: "customer",
28159
+ Entity: "entity"
28160
+ };
28143
28161
  var ListBalancesListStatus = {
28144
28162
  Active: "active",
28145
28163
  Expired: "expired"
@@ -28218,6 +28236,10 @@ var ListBalancesPrice$inboundSchema = z66.pipe(
28218
28236
  });
28219
28237
  })
28220
28238
  );
28239
+ var ListBalancesSource$inboundSchema = inboundSchema(ListBalancesSource);
28240
+ var ListBalancesAllocation$inboundSchema = z66.object({
28241
+ amount: number2()
28242
+ });
28221
28243
  var ListBalancesListStatus$inboundSchema = inboundSchema(ListBalancesListStatus);
28222
28244
  var ListBalancesRollover$inboundSchema = z66.pipe(
28223
28245
  z66.object({
@@ -28243,6 +28265,10 @@ var ListBalancesList$inboundSchema = z66.pipe(
28243
28265
  reset: nullable(z66.lazy(() => ListBalancesReset$inboundSchema)),
28244
28266
  price: nullable(z66.lazy(() => ListBalancesPrice$inboundSchema)),
28245
28267
  expires_at: nullable(number2()),
28268
+ source: optional3(ListBalancesSource$inboundSchema),
28269
+ allocation: z66.optional(
28270
+ z66.nullable(z66.lazy(() => ListBalancesAllocation$inboundSchema))
28271
+ ),
28246
28272
  feature_id: string5(),
28247
28273
  status: ListBalancesListStatus$inboundSchema,
28248
28274
  rollovers: z66.array(z66.lazy(() => ListBalancesRollover$inboundSchema)),
@@ -10517,6 +10517,10 @@ var BalanceBillingMethod = {
10517
10517
  Prepaid: "prepaid",
10518
10518
  UsageBased: "usage_based"
10519
10519
  };
10520
+ var BalanceSource = {
10521
+ Customer: "customer",
10522
+ Entity: "entity"
10523
+ };
10520
10524
  var BalanceType$inboundSchema = inboundSchema(BalanceType);
10521
10525
  var BalanceDimensions6$inboundSchema = z34.pipe(
10522
10526
  z34.object({
@@ -10877,6 +10881,10 @@ var BalancePrice$inboundSchema = z34.pipe(
10877
10881
  });
10878
10882
  })
10879
10883
  );
10884
+ var BalanceSource$inboundSchema = inboundSchema(BalanceSource);
10885
+ var Allocation$inboundSchema = z34.object({
10886
+ amount: number2()
10887
+ });
10880
10888
  var Breakdown$inboundSchema = z34.pipe(
10881
10889
  z34.object({
10882
10890
  id: z34._default(string5(), ""),
@@ -10888,7 +10896,11 @@ var Breakdown$inboundSchema = z34.pipe(
10888
10896
  unlimited: boolean2(),
10889
10897
  reset: nullable(z34.lazy(() => BalanceReset$inboundSchema)),
10890
10898
  price: nullable(z34.lazy(() => BalancePrice$inboundSchema)),
10891
- expires_at: nullable(number2())
10899
+ expires_at: nullable(number2()),
10900
+ source: optional3(BalanceSource$inboundSchema),
10901
+ allocation: z34.optional(
10902
+ z34.nullable(z34.lazy(() => Allocation$inboundSchema))
10903
+ )
10892
10904
  }),
10893
10905
  z34.transform((v) => {
10894
10906
  return remap(v, {
@@ -10925,7 +10937,9 @@ var Balance$inboundSchema = z34.pipe(
10925
10937
  breakdown: optional3(z34.array(z34.lazy(() => Breakdown$inboundSchema))),
10926
10938
  rollovers: optional3(z34.array(z34.lazy(
10927
10939
  () => BalanceRollover$inboundSchema
10928
- )))
10940
+ ))),
10941
+ allocated: optional3(number2()),
10942
+ unallocated: optional3(number2())
10929
10943
  }),
10930
10944
  z34.transform((v) => {
10931
10945
  return remap(v, {
@@ -27982,7 +27996,7 @@ var CustomerAutoTopupInterval1 = {
27982
27996
  Week: "week",
27983
27997
  Month: "month"
27984
27998
  };
27985
- var AutoTopupSource = {
27999
+ var CustomerAutoTopupSource = {
27986
28000
  Customer: "customer",
27987
28001
  Plan: "plan"
27988
28002
  };
@@ -27990,7 +28004,7 @@ var CustomerLimitType = {
27990
28004
  Absolute: "absolute",
27991
28005
  UsagePercentage: "usage_percentage"
27992
28006
  };
27993
- var SpendLimitSource = {
28007
+ var CustomerSpendLimitSource = {
27994
28008
  Customer: "customer",
27995
28009
  Plan: "plan"
27996
28010
  };
@@ -28004,7 +28018,7 @@ var CustomerAnchor = {
28004
28018
  BillingCycle: "billing_cycle",
28005
28019
  Utc: "utc"
28006
28020
  };
28007
- var UsageLimitSource = {
28021
+ var CustomerUsageLimitSource = {
28008
28022
  Customer: "customer",
28009
28023
  Plan: "plan"
28010
28024
  };
@@ -28020,11 +28034,11 @@ var CustomerBasis = {
28020
28034
  Recurring: "recurring",
28021
28035
  UsageLimit: "usage_limit"
28022
28036
  };
28023
- var UsageAlertSource = {
28037
+ var CustomerUsageAlertSource = {
28024
28038
  Customer: "customer",
28025
28039
  Plan: "plan"
28026
28040
  };
28027
- var OverageAllowedSource = {
28041
+ var CustomerOverageAllowedSource = {
28028
28042
  Customer: "customer",
28029
28043
  Plan: "plan"
28030
28044
  };
@@ -28117,7 +28131,7 @@ var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
28117
28131
  z58.lazy(() => CustomerPurchaseLimit1$inboundSchema),
28118
28132
  z58.lazy(() => CustomerPurchaseLimit2$inboundSchema)
28119
28133
  ]);
28120
- var AutoTopupSource$inboundSchema = inboundSchema(AutoTopupSource);
28134
+ var CustomerAutoTopupSource$inboundSchema = inboundSchema(CustomerAutoTopupSource);
28121
28135
  var CustomerAutoTopup$inboundSchema = z58.pipe(
28122
28136
  z58.object({
28123
28137
  feature_id: string5(),
@@ -28129,7 +28143,7 @@ var CustomerAutoTopup$inboundSchema = z58.pipe(
28129
28143
  z58.lazy(() => CustomerPurchaseLimit2$inboundSchema)
28130
28144
  ])),
28131
28145
  invoice_mode: optional3(boolean2()),
28132
- source: optional3(AutoTopupSource$inboundSchema)
28146
+ source: optional3(CustomerAutoTopupSource$inboundSchema)
28133
28147
  }),
28134
28148
  z58.transform((v) => {
28135
28149
  return remap(v, {
@@ -28140,7 +28154,7 @@ var CustomerAutoTopup$inboundSchema = z58.pipe(
28140
28154
  })
28141
28155
  );
28142
28156
  var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
28143
- var SpendLimitSource$inboundSchema = inboundSchema(SpendLimitSource);
28157
+ var CustomerSpendLimitSource$inboundSchema = inboundSchema(CustomerSpendLimitSource);
28144
28158
  var CustomerSpendLimit$inboundSchema = z58.pipe(
28145
28159
  z58.object({
28146
28160
  feature_id: optional3(string5()),
@@ -28148,7 +28162,7 @@ var CustomerSpendLimit$inboundSchema = z58.pipe(
28148
28162
  limit_type: optional3(CustomerLimitType$inboundSchema),
28149
28163
  overage_limit: optional3(number2()),
28150
28164
  skip_overage_billing: optional3(boolean2()),
28151
- source: optional3(SpendLimitSource$inboundSchema)
28165
+ source: optional3(CustomerSpendLimitSource$inboundSchema)
28152
28166
  }),
28153
28167
  z58.transform((v) => {
28154
28168
  return remap(v, {
@@ -28164,7 +28178,7 @@ var CustomerAnchor$inboundSchema = inboundSchema(CustomerAnchor);
28164
28178
  var CustomerUsageLimitFilter$inboundSchema = z58.object({
28165
28179
  properties: z58.record(z58.string(), string5())
28166
28180
  });
28167
- var UsageLimitSource$inboundSchema = inboundSchema(UsageLimitSource);
28181
+ var CustomerUsageLimitSource$inboundSchema = inboundSchema(CustomerUsageLimitSource);
28168
28182
  var CustomerUsageLimit$inboundSchema = z58.pipe(
28169
28183
  z58.object({
28170
28184
  feature_id: string5(),
@@ -28176,7 +28190,7 @@ var CustomerUsageLimit$inboundSchema = z58.pipe(
28176
28190
  z58.lazy(() => CustomerUsageLimitFilter$inboundSchema)
28177
28191
  ),
28178
28192
  usage: optional3(number2()),
28179
- source: optional3(UsageLimitSource$inboundSchema)
28193
+ source: optional3(CustomerUsageLimitSource$inboundSchema)
28180
28194
  }),
28181
28195
  z58.transform((v) => {
28182
28196
  return remap(v, {
@@ -28189,7 +28203,7 @@ var CustomerBasis$inboundSchema = inboundSchema(CustomerBasis);
28189
28203
  var CustomerUsageAlertFilter$inboundSchema = z58.object({
28190
28204
  properties: z58.record(z58.string(), string5())
28191
28205
  });
28192
- var UsageAlertSource$inboundSchema = inboundSchema(UsageAlertSource);
28206
+ var CustomerUsageAlertSource$inboundSchema = inboundSchema(CustomerUsageAlertSource);
28193
28207
  var CustomerUsageAlert$inboundSchema = z58.pipe(
28194
28208
  z58.object({
28195
28209
  feature_id: optional3(string5()),
@@ -28201,7 +28215,7 @@ var CustomerUsageAlert$inboundSchema = z58.pipe(
28201
28215
  z58.lazy(() => CustomerUsageAlertFilter$inboundSchema)
28202
28216
  ),
28203
28217
  name: optional3(string5()),
28204
- source: optional3(UsageAlertSource$inboundSchema)
28218
+ source: optional3(CustomerUsageAlertSource$inboundSchema)
28205
28219
  }),
28206
28220
  z58.transform((v) => {
28207
28221
  return remap(v, {
@@ -28210,12 +28224,12 @@ var CustomerUsageAlert$inboundSchema = z58.pipe(
28210
28224
  });
28211
28225
  })
28212
28226
  );
28213
- var OverageAllowedSource$inboundSchema = inboundSchema(OverageAllowedSource);
28227
+ var CustomerOverageAllowedSource$inboundSchema = inboundSchema(CustomerOverageAllowedSource);
28214
28228
  var CustomerOverageAllowed$inboundSchema = z58.pipe(
28215
28229
  z58.object({
28216
28230
  feature_id: string5(),
28217
28231
  enabled: z58._default(boolean2(), false),
28218
- source: optional3(OverageAllowedSource$inboundSchema)
28232
+ source: optional3(CustomerOverageAllowedSource$inboundSchema)
28219
28233
  }),
28220
28234
  z58.transform((v) => {
28221
28235
  return remap(v, {
@@ -34988,6 +35002,10 @@ var ListBalancesBillingMethod = {
34988
35002
  Prepaid: "prepaid",
34989
35003
  UsageBased: "usage_based"
34990
35004
  };
35005
+ var ListBalancesSource = {
35006
+ Customer: "customer",
35007
+ Entity: "entity"
35008
+ };
34991
35009
  var ListBalancesListStatus = {
34992
35010
  Active: "active",
34993
35011
  Expired: "expired"
@@ -35066,6 +35084,10 @@ var ListBalancesPrice$inboundSchema = z85.pipe(
35066
35084
  });
35067
35085
  })
35068
35086
  );
35087
+ var ListBalancesSource$inboundSchema = inboundSchema(ListBalancesSource);
35088
+ var ListBalancesAllocation$inboundSchema = z85.object({
35089
+ amount: number2()
35090
+ });
35069
35091
  var ListBalancesListStatus$inboundSchema = inboundSchema(ListBalancesListStatus);
35070
35092
  var ListBalancesRollover$inboundSchema = z85.pipe(
35071
35093
  z85.object({
@@ -35091,6 +35113,10 @@ var ListBalancesList$inboundSchema = z85.pipe(
35091
35113
  reset: nullable(z85.lazy(() => ListBalancesReset$inboundSchema)),
35092
35114
  price: nullable(z85.lazy(() => ListBalancesPrice$inboundSchema)),
35093
35115
  expires_at: nullable(number2()),
35116
+ source: optional3(ListBalancesSource$inboundSchema),
35117
+ allocation: z85.optional(
35118
+ z85.nullable(z85.lazy(() => ListBalancesAllocation$inboundSchema))
35119
+ ),
35094
35120
  feature_id: string5(),
35095
35121
  status: ListBalancesListStatus$inboundSchema,
35096
35122
  rollovers: z85.array(z85.lazy(() => ListBalancesRollover$inboundSchema)),
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-MODSHKUF.mjs";
5
5
  import {
6
6
  createHandleBetterAuthRoute
7
- } from "./chunk-3M4F43H2.mjs";
7
+ } from "./chunk-R7IEJQOY.mjs";
8
8
  import "./chunk-J2WYVGHS.mjs";
9
9
  import "./chunk-H6C42YK7.mjs";
10
10
  import "./chunk-BT3EAYVW.mjs";
@@ -3688,6 +3688,10 @@ var BalanceBillingMethod = {
3688
3688
  Prepaid: "prepaid",
3689
3689
  UsageBased: "usage_based"
3690
3690
  };
3691
+ var BalanceSource = {
3692
+ Customer: "customer",
3693
+ Entity: "entity"
3694
+ };
3691
3695
  var BalanceType$inboundSchema = inboundSchema(BalanceType);
3692
3696
  var BalanceDimensions6$inboundSchema = z15.pipe(
3693
3697
  z15.object({
@@ -4048,6 +4052,10 @@ var BalancePrice$inboundSchema = z15.pipe(
4048
4052
  });
4049
4053
  })
4050
4054
  );
4055
+ var BalanceSource$inboundSchema = inboundSchema(BalanceSource);
4056
+ var Allocation$inboundSchema = z15.object({
4057
+ amount: number2()
4058
+ });
4051
4059
  var Breakdown$inboundSchema = z15.pipe(
4052
4060
  z15.object({
4053
4061
  id: z15._default(string5(), ""),
@@ -4059,7 +4067,11 @@ var Breakdown$inboundSchema = z15.pipe(
4059
4067
  unlimited: boolean2(),
4060
4068
  reset: nullable(z15.lazy(() => BalanceReset$inboundSchema)),
4061
4069
  price: nullable(z15.lazy(() => BalancePrice$inboundSchema)),
4062
- expires_at: nullable(number2())
4070
+ expires_at: nullable(number2()),
4071
+ source: optional3(BalanceSource$inboundSchema),
4072
+ allocation: z15.optional(
4073
+ z15.nullable(z15.lazy(() => Allocation$inboundSchema))
4074
+ )
4063
4075
  }),
4064
4076
  z15.transform((v) => {
4065
4077
  return remap(v, {
@@ -4096,7 +4108,9 @@ var Balance$inboundSchema = z15.pipe(
4096
4108
  breakdown: optional3(z15.array(z15.lazy(() => Breakdown$inboundSchema))),
4097
4109
  rollovers: optional3(z15.array(z15.lazy(
4098
4110
  () => BalanceRollover$inboundSchema
4099
- )))
4111
+ ))),
4112
+ allocated: optional3(number2()),
4113
+ unallocated: optional3(number2())
4100
4114
  }),
4101
4115
  z15.transform((v) => {
4102
4116
  return remap(v, {
@@ -21153,7 +21167,7 @@ var CustomerAutoTopupInterval1 = {
21153
21167
  Week: "week",
21154
21168
  Month: "month"
21155
21169
  };
21156
- var AutoTopupSource = {
21170
+ var CustomerAutoTopupSource = {
21157
21171
  Customer: "customer",
21158
21172
  Plan: "plan"
21159
21173
  };
@@ -21161,7 +21175,7 @@ var CustomerLimitType = {
21161
21175
  Absolute: "absolute",
21162
21176
  UsagePercentage: "usage_percentage"
21163
21177
  };
21164
- var SpendLimitSource = {
21178
+ var CustomerSpendLimitSource = {
21165
21179
  Customer: "customer",
21166
21180
  Plan: "plan"
21167
21181
  };
@@ -21175,7 +21189,7 @@ var CustomerAnchor = {
21175
21189
  BillingCycle: "billing_cycle",
21176
21190
  Utc: "utc"
21177
21191
  };
21178
- var UsageLimitSource = {
21192
+ var CustomerUsageLimitSource = {
21179
21193
  Customer: "customer",
21180
21194
  Plan: "plan"
21181
21195
  };
@@ -21191,11 +21205,11 @@ var CustomerBasis = {
21191
21205
  Recurring: "recurring",
21192
21206
  UsageLimit: "usage_limit"
21193
21207
  };
21194
- var UsageAlertSource = {
21208
+ var CustomerUsageAlertSource = {
21195
21209
  Customer: "customer",
21196
21210
  Plan: "plan"
21197
21211
  };
21198
- var OverageAllowedSource = {
21212
+ var CustomerOverageAllowedSource = {
21199
21213
  Customer: "customer",
21200
21214
  Plan: "plan"
21201
21215
  };
@@ -21288,7 +21302,7 @@ var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
21288
21302
  z39.lazy(() => CustomerPurchaseLimit1$inboundSchema),
21289
21303
  z39.lazy(() => CustomerPurchaseLimit2$inboundSchema)
21290
21304
  ]);
21291
- var AutoTopupSource$inboundSchema = inboundSchema(AutoTopupSource);
21305
+ var CustomerAutoTopupSource$inboundSchema = inboundSchema(CustomerAutoTopupSource);
21292
21306
  var CustomerAutoTopup$inboundSchema = z39.pipe(
21293
21307
  z39.object({
21294
21308
  feature_id: string5(),
@@ -21300,7 +21314,7 @@ var CustomerAutoTopup$inboundSchema = z39.pipe(
21300
21314
  z39.lazy(() => CustomerPurchaseLimit2$inboundSchema)
21301
21315
  ])),
21302
21316
  invoice_mode: optional3(boolean2()),
21303
- source: optional3(AutoTopupSource$inboundSchema)
21317
+ source: optional3(CustomerAutoTopupSource$inboundSchema)
21304
21318
  }),
21305
21319
  z39.transform((v) => {
21306
21320
  return remap(v, {
@@ -21311,7 +21325,7 @@ var CustomerAutoTopup$inboundSchema = z39.pipe(
21311
21325
  })
21312
21326
  );
21313
21327
  var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
21314
- var SpendLimitSource$inboundSchema = inboundSchema(SpendLimitSource);
21328
+ var CustomerSpendLimitSource$inboundSchema = inboundSchema(CustomerSpendLimitSource);
21315
21329
  var CustomerSpendLimit$inboundSchema = z39.pipe(
21316
21330
  z39.object({
21317
21331
  feature_id: optional3(string5()),
@@ -21319,7 +21333,7 @@ var CustomerSpendLimit$inboundSchema = z39.pipe(
21319
21333
  limit_type: optional3(CustomerLimitType$inboundSchema),
21320
21334
  overage_limit: optional3(number2()),
21321
21335
  skip_overage_billing: optional3(boolean2()),
21322
- source: optional3(SpendLimitSource$inboundSchema)
21336
+ source: optional3(CustomerSpendLimitSource$inboundSchema)
21323
21337
  }),
21324
21338
  z39.transform((v) => {
21325
21339
  return remap(v, {
@@ -21335,7 +21349,7 @@ var CustomerAnchor$inboundSchema = inboundSchema(CustomerAnchor);
21335
21349
  var CustomerUsageLimitFilter$inboundSchema = z39.object({
21336
21350
  properties: z39.record(z39.string(), string5())
21337
21351
  });
21338
- var UsageLimitSource$inboundSchema = inboundSchema(UsageLimitSource);
21352
+ var CustomerUsageLimitSource$inboundSchema = inboundSchema(CustomerUsageLimitSource);
21339
21353
  var CustomerUsageLimit$inboundSchema = z39.pipe(
21340
21354
  z39.object({
21341
21355
  feature_id: string5(),
@@ -21347,7 +21361,7 @@ var CustomerUsageLimit$inboundSchema = z39.pipe(
21347
21361
  z39.lazy(() => CustomerUsageLimitFilter$inboundSchema)
21348
21362
  ),
21349
21363
  usage: optional3(number2()),
21350
- source: optional3(UsageLimitSource$inboundSchema)
21364
+ source: optional3(CustomerUsageLimitSource$inboundSchema)
21351
21365
  }),
21352
21366
  z39.transform((v) => {
21353
21367
  return remap(v, {
@@ -21360,7 +21374,7 @@ var CustomerBasis$inboundSchema = inboundSchema(CustomerBasis);
21360
21374
  var CustomerUsageAlertFilter$inboundSchema = z39.object({
21361
21375
  properties: z39.record(z39.string(), string5())
21362
21376
  });
21363
- var UsageAlertSource$inboundSchema = inboundSchema(UsageAlertSource);
21377
+ var CustomerUsageAlertSource$inboundSchema = inboundSchema(CustomerUsageAlertSource);
21364
21378
  var CustomerUsageAlert$inboundSchema = z39.pipe(
21365
21379
  z39.object({
21366
21380
  feature_id: optional3(string5()),
@@ -21372,7 +21386,7 @@ var CustomerUsageAlert$inboundSchema = z39.pipe(
21372
21386
  z39.lazy(() => CustomerUsageAlertFilter$inboundSchema)
21373
21387
  ),
21374
21388
  name: optional3(string5()),
21375
- source: optional3(UsageAlertSource$inboundSchema)
21389
+ source: optional3(CustomerUsageAlertSource$inboundSchema)
21376
21390
  }),
21377
21391
  z39.transform((v) => {
21378
21392
  return remap(v, {
@@ -21381,12 +21395,12 @@ var CustomerUsageAlert$inboundSchema = z39.pipe(
21381
21395
  });
21382
21396
  })
21383
21397
  );
21384
- var OverageAllowedSource$inboundSchema = inboundSchema(OverageAllowedSource);
21398
+ var CustomerOverageAllowedSource$inboundSchema = inboundSchema(CustomerOverageAllowedSource);
21385
21399
  var CustomerOverageAllowed$inboundSchema = z39.pipe(
21386
21400
  z39.object({
21387
21401
  feature_id: string5(),
21388
21402
  enabled: z39._default(boolean2(), false),
21389
- source: optional3(OverageAllowedSource$inboundSchema)
21403
+ source: optional3(CustomerOverageAllowedSource$inboundSchema)
21390
21404
  }),
21391
21405
  z39.transform((v) => {
21392
21406
  return remap(v, {
@@ -28159,6 +28173,10 @@ var ListBalancesBillingMethod = {
28159
28173
  Prepaid: "prepaid",
28160
28174
  UsageBased: "usage_based"
28161
28175
  };
28176
+ var ListBalancesSource = {
28177
+ Customer: "customer",
28178
+ Entity: "entity"
28179
+ };
28162
28180
  var ListBalancesListStatus = {
28163
28181
  Active: "active",
28164
28182
  Expired: "expired"
@@ -28237,6 +28255,10 @@ var ListBalancesPrice$inboundSchema = z66.pipe(
28237
28255
  });
28238
28256
  })
28239
28257
  );
28258
+ var ListBalancesSource$inboundSchema = inboundSchema(ListBalancesSource);
28259
+ var ListBalancesAllocation$inboundSchema = z66.object({
28260
+ amount: number2()
28261
+ });
28240
28262
  var ListBalancesListStatus$inboundSchema = inboundSchema(ListBalancesListStatus);
28241
28263
  var ListBalancesRollover$inboundSchema = z66.pipe(
28242
28264
  z66.object({
@@ -28262,6 +28284,10 @@ var ListBalancesList$inboundSchema = z66.pipe(
28262
28284
  reset: nullable(z66.lazy(() => ListBalancesReset$inboundSchema)),
28263
28285
  price: nullable(z66.lazy(() => ListBalancesPrice$inboundSchema)),
28264
28286
  expires_at: nullable(number2()),
28287
+ source: optional3(ListBalancesSource$inboundSchema),
28288
+ allocation: z66.optional(
28289
+ z66.nullable(z66.lazy(() => ListBalancesAllocation$inboundSchema))
28290
+ ),
28265
28291
  feature_id: string5(),
28266
28292
  status: ListBalancesListStatus$inboundSchema,
28267
28293
  rollovers: z66.array(z66.lazy(() => ListBalancesRollover$inboundSchema)),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createHandleBetterAuthRoute
3
- } from "../chunk-3M4F43H2.mjs";
3
+ } from "../chunk-R7IEJQOY.mjs";
4
4
  import "../chunk-J2WYVGHS.mjs";
5
5
  import "../chunk-H6C42YK7.mjs";
6
6
  import "../chunk-BT3EAYVW.mjs";