autumn-js 1.2.52 → 1.2.53

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 (136) hide show
  1. package/dist/backend/adapters/express.d.mts +1 -1
  2. package/dist/backend/adapters/express.d.ts +1 -1
  3. package/dist/backend/adapters/express.js +253 -0
  4. package/dist/backend/adapters/express.mjs +5 -5
  5. package/dist/backend/adapters/fetch.d.mts +1 -1
  6. package/dist/backend/adapters/fetch.d.ts +1 -1
  7. package/dist/backend/adapters/fetch.js +253 -0
  8. package/dist/backend/adapters/fetch.mjs +5 -5
  9. package/dist/backend/adapters/hono.d.mts +1 -1
  10. package/dist/backend/adapters/hono.d.ts +1 -1
  11. package/dist/backend/adapters/hono.js +253 -0
  12. package/dist/backend/adapters/hono.mjs +5 -5
  13. package/dist/backend/adapters/index.d.mts +1 -1
  14. package/dist/backend/adapters/index.d.ts +1 -1
  15. package/dist/backend/adapters/index.js +253 -0
  16. package/dist/backend/adapters/index.mjs +8 -8
  17. package/dist/backend/adapters/next.d.mts +1 -1
  18. package/dist/backend/adapters/next.d.ts +1 -1
  19. package/dist/backend/adapters/next.js +253 -0
  20. package/dist/backend/adapters/next.mjs +5 -5
  21. package/dist/backend/{authTypes-BPv82hMB.d.mts → authTypes-DiM2aken.d.mts} +15 -0
  22. package/dist/backend/{authTypes-BPv82hMB.d.ts → authTypes-DiM2aken.d.ts} +15 -0
  23. package/dist/backend/{chunk-ZLRTOAAU.mjs → chunk-6HGIR6SI.mjs} +1 -1
  24. package/dist/backend/{chunk-DZDRQTEB.mjs → chunk-AKZ3LI43.mjs} +225 -0
  25. package/dist/backend/{chunk-LRNMYDLA.mjs → chunk-BZJMZLRO.mjs} +2 -2
  26. package/dist/backend/{chunk-NLWHCI77.mjs → chunk-DUWBM6AP.mjs} +2 -2
  27. package/dist/backend/{chunk-WPGNH2EY.mjs → chunk-G5BNVBAL.mjs} +1 -1
  28. package/dist/backend/{chunk-AWYAJA32.mjs → chunk-QEMMOYX7.mjs} +1 -1
  29. package/dist/backend/{chunk-RH3HBFJI.mjs → chunk-QZGNWKGU.mjs} +28 -0
  30. package/dist/backend/{chunk-JAMMHRJH.mjs → chunk-UO2U5YHG.mjs} +1 -1
  31. package/dist/backend/core/handlers/coreHandler.d.mts +2 -2
  32. package/dist/backend/core/handlers/coreHandler.d.ts +2 -2
  33. package/dist/backend/core/handlers/coreHandler.js +253 -0
  34. package/dist/backend/core/handlers/coreHandler.mjs +3 -3
  35. package/dist/backend/core/handlers/executeRoute.d.mts +2 -2
  36. package/dist/backend/core/handlers/executeRoute.d.ts +2 -2
  37. package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
  38. package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
  39. package/dist/backend/core/handlers/handleRouteByName.js +253 -0
  40. package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
  41. package/dist/backend/core/handlers/index.d.mts +2 -2
  42. package/dist/backend/core/handlers/index.d.ts +2 -2
  43. package/dist/backend/core/handlers/index.js +253 -0
  44. package/dist/backend/core/handlers/index.mjs +4 -4
  45. package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
  46. package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
  47. package/dist/backend/core/index.d.mts +2 -2
  48. package/dist/backend/core/index.d.ts +2 -2
  49. package/dist/backend/core/index.js +253 -0
  50. package/dist/backend/core/index.mjs +4 -4
  51. package/dist/backend/core/routes/index.d.mts +2 -2
  52. package/dist/backend/core/routes/index.d.ts +2 -2
  53. package/dist/backend/core/routes/index.js +28 -0
  54. package/dist/backend/core/routes/index.mjs +1 -1
  55. package/dist/backend/core/routes/routeBuilder.d.mts +2 -2
  56. package/dist/backend/core/routes/routeBuilder.d.ts +2 -2
  57. package/dist/backend/core/routes/routeConfigs.d.mts +2 -2
  58. package/dist/backend/core/routes/routeConfigs.d.ts +2 -2
  59. package/dist/backend/core/routes/routeConfigs.js +28 -0
  60. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  61. package/dist/backend/core/types/authTypes.d.mts +1 -1
  62. package/dist/backend/core/types/authTypes.d.ts +1 -1
  63. package/dist/backend/core/types/handlerTypes.d.mts +2 -2
  64. package/dist/backend/core/types/handlerTypes.d.ts +2 -2
  65. package/dist/backend/core/types/index.d.mts +2 -2
  66. package/dist/backend/core/types/index.d.ts +2 -2
  67. package/dist/backend/core/types/routeTypes.d.mts +2 -2
  68. package/dist/backend/core/types/routeTypes.d.ts +2 -2
  69. package/dist/backend/index.d.mts +4 -4
  70. package/dist/backend/index.d.ts +4 -4
  71. package/dist/backend/index.js +253 -0
  72. package/dist/backend/index.mjs +4 -4
  73. package/dist/backend/{routeTypes-CagT-_8z.d.ts → routeTypes-C9oAOQtZ.d.ts} +593 -48
  74. package/dist/backend/{routeTypes-7CrqRDkR.d.mts → routeTypes-jEkjrH2F.d.mts} +593 -48
  75. package/dist/better-auth/{chunk-CSY3O2LW.mjs → chunk-56PNBTLH.mjs} +1 -1
  76. package/dist/better-auth/{chunk-NJ2UKHCA.mjs → chunk-AI73OSOF.mjs} +226 -1
  77. package/dist/better-auth/{chunk-N3JISG56.mjs → chunk-IIOL3QPN.mjs} +28 -0
  78. package/dist/better-auth/index.js +253 -0
  79. package/dist/better-auth/index.mjs +3 -3
  80. package/dist/better-auth/types.d.mts +15 -0
  81. package/dist/better-auth/types.d.ts +15 -0
  82. package/dist/better-auth/utils/createAutumnEndpoint.js +28 -0
  83. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  84. package/dist/better-auth/utils/handleBetterAuthRoute.js +253 -0
  85. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  86. package/dist/better-auth/utils/index.js +253 -0
  87. package/dist/better-auth/utils/index.mjs +3 -3
  88. package/dist/react/AutumnContext.d.mts +4 -4
  89. package/dist/react/AutumnContext.d.ts +4 -4
  90. package/dist/react/client/AutumnClient.d.mts +4 -4
  91. package/dist/react/client/AutumnClient.d.ts +4 -4
  92. package/dist/react/client/IAutumnClient.d.mts +4 -4
  93. package/dist/react/client/IAutumnClient.d.ts +4 -4
  94. package/dist/react/client/index.d.mts +4 -4
  95. package/dist/react/client/index.d.ts +4 -4
  96. package/dist/react/{customer-BaeLsKMs.d.ts → customer-4XLHVIIG.d.mts} +21 -6
  97. package/dist/react/{customer-5Mby2R77.d.mts → customer-CPv9i8iR.d.ts} +21 -6
  98. package/dist/react/hooks/index.d.mts +4 -4
  99. package/dist/react/hooks/index.d.ts +4 -4
  100. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  101. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  102. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  103. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  104. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  105. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  106. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  107. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  108. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  109. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  110. package/dist/react/hooks/internal/useCustomerActions.d.mts +4 -4
  111. package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
  112. package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
  113. package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
  114. package/dist/react/hooks/useCustomer.d.mts +3 -3
  115. package/dist/react/hooks/useCustomer.d.ts +3 -3
  116. package/dist/react/hooks/useEntity.d.mts +2 -2
  117. package/dist/react/hooks/useEntity.d.ts +2 -2
  118. package/dist/react/hooks/useListEvents.d.mts +2 -2
  119. package/dist/react/hooks/useListEvents.d.ts +2 -2
  120. package/dist/react/hooks/useListPlans.d.mts +3 -3
  121. package/dist/react/hooks/useListPlans.d.ts +3 -3
  122. package/dist/react/hooks/useReferrals.d.mts +2 -2
  123. package/dist/react/hooks/useReferrals.d.ts +2 -2
  124. package/dist/react/index.d.mts +4 -4
  125. package/dist/react/index.d.ts +4 -4
  126. package/dist/react/{list-plans-op-V0gWDbAv.d.mts → list-plans-op-Dsryi9lT.d.mts} +31 -1
  127. package/dist/react/{list-plans-op-C2_pS0cr.d.ts → list-plans-op-jsAtkFHJ.d.ts} +31 -1
  128. package/dist/react/{params-B34LP_UV.d.mts → params-BGfGRnue.d.ts} +193 -28
  129. package/dist/react/{params-Dayf76u_.d.ts → params-DPSGMHHa.d.mts} +193 -28
  130. package/dist/react/{plan-DGDzxyO5.d.mts → plan-DEGPMYmh.d.mts} +30 -0
  131. package/dist/react/{plan-DGDzxyO5.d.ts → plan-DEGPMYmh.d.ts} +30 -0
  132. package/dist/sdk/index.d.mts +700 -48
  133. package/dist/sdk/index.d.ts +700 -48
  134. package/dist/sdk/index.js +299 -0
  135. package/dist/sdk/index.mjs +226 -1
  136. package/package.json +1 -1
@@ -1663,6 +1663,10 @@ var AttachUsageLimitInterval = {
1663
1663
  Month: "month",
1664
1664
  Year: "year"
1665
1665
  };
1666
+ var AttachAnchor = {
1667
+ BillingCycle: "billing_cycle",
1668
+ Utc: "utc"
1669
+ };
1666
1670
  var AttachThresholdType = {
1667
1671
  Usage: "usage",
1668
1672
  UsagePercentage: "usage_percentage",
@@ -2131,6 +2135,7 @@ var AttachSpendLimit$outboundSchema = z11.pipe(
2131
2135
  })
2132
2136
  );
2133
2137
  var AttachUsageLimitInterval$outboundSchema = z11.enum(AttachUsageLimitInterval);
2138
+ var AttachAnchor$outboundSchema = z11.enum(AttachAnchor);
2134
2139
  var AttachProperties$outboundSchema = smartUnion([z11.string(), z11.number(), z11.boolean()]);
2135
2140
  var AttachFilter$outboundSchema = z11.object({
2136
2141
  properties: z11.record(
@@ -2144,6 +2149,7 @@ var AttachUsageLimit$outboundSchema = z11.pipe(
2144
2149
  enabled: z11._default(z11.boolean(), true),
2145
2150
  limit: z11.number(),
2146
2151
  interval: AttachUsageLimitInterval$outboundSchema,
2152
+ anchor: z11.optional(AttachAnchor$outboundSchema),
2147
2153
  filter: z11.optional(z11.lazy(() => AttachFilter$outboundSchema))
2148
2154
  }),
2149
2155
  z11.transform((v) => {
@@ -3026,6 +3032,10 @@ var BillingUpdateUsageLimitInterval = {
3026
3032
  Month: "month",
3027
3033
  Year: "year"
3028
3034
  };
3035
+ var BillingUpdateAnchor = {
3036
+ BillingCycle: "billing_cycle",
3037
+ Utc: "utc"
3038
+ };
3029
3039
  var BillingUpdateThresholdType = {
3030
3040
  Usage: "usage",
3031
3041
  UsagePercentage: "usage_percentage",
@@ -3517,6 +3527,7 @@ var BillingUpdateSpendLimit$outboundSchema = z14.pipe(
3517
3527
  })
3518
3528
  );
3519
3529
  var BillingUpdateUsageLimitInterval$outboundSchema = z14.enum(BillingUpdateUsageLimitInterval);
3530
+ var BillingUpdateAnchor$outboundSchema = z14.enum(BillingUpdateAnchor);
3520
3531
  var BillingUpdateProperties$outboundSchema = smartUnion([z14.string(), z14.number(), z14.boolean()]);
3521
3532
  var BillingUpdateFilter$outboundSchema = z14.object({
3522
3533
  properties: z14.record(
@@ -3530,6 +3541,7 @@ var BillingUpdateUsageLimit$outboundSchema = z14.pipe(
3530
3541
  enabled: z14._default(z14.boolean(), true),
3531
3542
  limit: z14.number(),
3532
3543
  interval: BillingUpdateUsageLimitInterval$outboundSchema,
3544
+ anchor: z14.optional(BillingUpdateAnchor$outboundSchema),
3533
3545
  filter: z14.optional(z14.lazy(() => BillingUpdateFilter$outboundSchema))
3534
3546
  }),
3535
3547
  z14.transform((v) => {
@@ -4086,6 +4098,10 @@ var CheckUsageLimitInterval2 = {
4086
4098
  Month: "month",
4087
4099
  Year: "year"
4088
4100
  };
4101
+ var CheckAnchor2 = {
4102
+ BillingCycle: "billing_cycle",
4103
+ Utc: "utc"
4104
+ };
4089
4105
  var CheckThresholdType2 = {
4090
4106
  Usage: "usage",
4091
4107
  UsagePercentage: "usage_percentage",
@@ -4189,6 +4205,10 @@ var CheckUsageLimitInterval1 = {
4189
4205
  Month: "month",
4190
4206
  Year: "year"
4191
4207
  };
4208
+ var CheckAnchor1 = {
4209
+ BillingCycle: "billing_cycle",
4210
+ Utc: "utc"
4211
+ };
4192
4212
  var CheckThresholdType1 = {
4193
4213
  Usage: "usage",
4194
4214
  UsagePercentage: "usage_percentage",
@@ -4486,6 +4506,7 @@ var CheckSpendLimit2$inboundSchema = z15.pipe(
4486
4506
  })
4487
4507
  );
4488
4508
  var CheckUsageLimitInterval2$inboundSchema = inboundSchema(CheckUsageLimitInterval2);
4509
+ var CheckAnchor2$inboundSchema = inboundSchema(CheckAnchor2);
4489
4510
  var CheckFilter2$inboundSchema = z15.object({
4490
4511
  properties: z15.record(z15.string(), string5())
4491
4512
  });
@@ -4495,6 +4516,7 @@ var CheckUsageLimit2$inboundSchema = z15.pipe(
4495
4516
  enabled: z15._default(boolean2(), true),
4496
4517
  limit: number2(),
4497
4518
  interval: CheckUsageLimitInterval2$inboundSchema,
4519
+ anchor: optional3(CheckAnchor2$inboundSchema),
4498
4520
  filter: optional3(z15.lazy(() => CheckFilter2$inboundSchema))
4499
4521
  }),
4500
4522
  z15.transform((v) => {
@@ -4888,6 +4910,7 @@ var CheckSpendLimit1$inboundSchema = z15.pipe(
4888
4910
  })
4889
4911
  );
4890
4912
  var CheckUsageLimitInterval1$inboundSchema = inboundSchema(CheckUsageLimitInterval1);
4913
+ var CheckAnchor1$inboundSchema = inboundSchema(CheckAnchor1);
4891
4914
  var CheckFilter1$inboundSchema = z15.object({
4892
4915
  properties: z15.record(z15.string(), string5())
4893
4916
  });
@@ -4897,6 +4920,7 @@ var CheckUsageLimit1$inboundSchema = z15.pipe(
4897
4920
  enabled: z15._default(boolean2(), true),
4898
4921
  limit: number2(),
4899
4922
  interval: CheckUsageLimitInterval1$inboundSchema,
4923
+ anchor: optional3(CheckAnchor1$inboundSchema),
4900
4924
  filter: optional3(z15.lazy(() => CheckFilter1$inboundSchema))
4901
4925
  }),
4902
4926
  z15.transform((v) => {
@@ -5144,6 +5168,10 @@ var CustomerDataUsageLimitInterval = {
5144
5168
  Month: "month",
5145
5169
  Year: "year"
5146
5170
  };
5171
+ var CustomerDataAnchor = {
5172
+ BillingCycle: "billing_cycle",
5173
+ Utc: "utc"
5174
+ };
5147
5175
  var CustomerDataThresholdType = {
5148
5176
  Usage: "usage",
5149
5177
  UsagePercentage: "usage_percentage",
@@ -5202,6 +5230,7 @@ var CustomerDataSpendLimit$outboundSchema = z17.pipe(
5202
5230
  })
5203
5231
  );
5204
5232
  var CustomerDataUsageLimitInterval$outboundSchema = z17.enum(CustomerDataUsageLimitInterval);
5233
+ var CustomerDataAnchor$outboundSchema = z17.enum(CustomerDataAnchor);
5205
5234
  var Properties$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
5206
5235
  var CustomerDataFilter$outboundSchema = z17.object({
5207
5236
  properties: z17.record(
@@ -5215,6 +5244,7 @@ var CustomerDataUsageLimit$outboundSchema = z17.pipe(
5215
5244
  enabled: z17._default(z17.boolean(), true),
5216
5245
  limit: z17.number(),
5217
5246
  interval: CustomerDataUsageLimitInterval$outboundSchema,
5247
+ anchor: z17.optional(CustomerDataAnchor$outboundSchema),
5218
5248
  filter: z17.optional(z17.lazy(() => CustomerDataFilter$outboundSchema))
5219
5249
  }),
5220
5250
  z17.transform((v) => {
@@ -5479,6 +5509,10 @@ var PlanVariantDetailsUsageLimitInterval = {
5479
5509
  Month: "month",
5480
5510
  Year: "year"
5481
5511
  };
5512
+ var PlanVariantDetailsAnchor = {
5513
+ BillingCycle: "billing_cycle",
5514
+ Utc: "utc"
5515
+ };
5482
5516
  var PlanVariantDetailsThresholdType = {
5483
5517
  Usage: "usage",
5484
5518
  UsagePercentage: "usage_percentage",
@@ -5501,6 +5535,10 @@ var PlanUsageLimitInterval = {
5501
5535
  Month: "month",
5502
5536
  Year: "year"
5503
5537
  };
5538
+ var PlanAnchor = {
5539
+ BillingCycle: "billing_cycle",
5540
+ Utc: "utc"
5541
+ };
5504
5542
  var PlanThresholdType = {
5505
5543
  Usage: "usage",
5506
5544
  UsagePercentage: "usage_percentage",
@@ -5975,6 +6013,7 @@ var PlanVariantDetailsSpendLimit$inboundSchema = z18.pipe(
5975
6013
  })
5976
6014
  );
5977
6015
  var PlanVariantDetailsUsageLimitInterval$inboundSchema = inboundSchema(PlanVariantDetailsUsageLimitInterval);
6016
+ var PlanVariantDetailsAnchor$inboundSchema = inboundSchema(PlanVariantDetailsAnchor);
5978
6017
  var PlanVariantDetailsFilter$inboundSchema = z18.object({
5979
6018
  properties: z18.record(z18.string(), string5())
5980
6019
  });
@@ -5984,6 +6023,7 @@ var PlanVariantDetailsUsageLimit$inboundSchema = z18.pipe(
5984
6023
  enabled: z18._default(boolean2(), true),
5985
6024
  limit: number2(),
5986
6025
  interval: PlanVariantDetailsUsageLimitInterval$inboundSchema,
6026
+ anchor: optional3(PlanVariantDetailsAnchor$inboundSchema),
5987
6027
  filter: optional3(
5988
6028
  z18.lazy(() => PlanVariantDetailsFilter$inboundSchema)
5989
6029
  )
@@ -6146,6 +6186,7 @@ var PlanSpendLimit$inboundSchema = z18.pipe(
6146
6186
  })
6147
6187
  );
6148
6188
  var PlanUsageLimitInterval$inboundSchema = inboundSchema(PlanUsageLimitInterval);
6189
+ var PlanAnchor$inboundSchema = inboundSchema(PlanAnchor);
6149
6190
  var PlanFilter$inboundSchema = z18.object({
6150
6191
  properties: z18.record(z18.string(), string5())
6151
6192
  });
@@ -6155,6 +6196,7 @@ var PlanUsageLimit$inboundSchema = z18.pipe(
6155
6196
  enabled: z18._default(boolean2(), true),
6156
6197
  limit: number2(),
6157
6198
  interval: PlanUsageLimitInterval$inboundSchema,
6199
+ anchor: optional3(PlanAnchor$inboundSchema),
6158
6200
  filter: optional3(z18.lazy(() => PlanFilter$inboundSchema))
6159
6201
  }),
6160
6202
  z18.transform((v) => {
@@ -6286,6 +6328,10 @@ var CreateEntityIntervalRequestBody = {
6286
6328
  Month: "month",
6287
6329
  Year: "year"
6288
6330
  };
6331
+ var CreateEntityAnchorRequestBody = {
6332
+ BillingCycle: "billing_cycle",
6333
+ Utc: "utc"
6334
+ };
6289
6335
  var CreateEntityThresholdTypeRequestBody = {
6290
6336
  Usage: "usage",
6291
6337
  UsagePercentage: "usage_percentage",
@@ -6328,6 +6374,10 @@ var CreateEntityIntervalResponse = {
6328
6374
  Month: "month",
6329
6375
  Year: "year"
6330
6376
  };
6377
+ var CreateEntityAnchorResponse = {
6378
+ BillingCycle: "billing_cycle",
6379
+ Utc: "utc"
6380
+ };
6331
6381
  var CreateEntityUsageLimitSource = {
6332
6382
  Customer: "customer",
6333
6383
  Plan: "plan"
@@ -6369,6 +6419,7 @@ var CreateEntitySpendLimitRequestBody$outboundSchema = z19.pipe(
6369
6419
  })
6370
6420
  );
6371
6421
  var CreateEntityIntervalRequestBody$outboundSchema = z19.enum(CreateEntityIntervalRequestBody);
6422
+ var CreateEntityAnchorRequestBody$outboundSchema = z19.enum(CreateEntityAnchorRequestBody);
6372
6423
  var CreateEntityProperties$outboundSchema = smartUnion([z19.string(), z19.number(), z19.boolean()]);
6373
6424
  var CreateEntityFilterRequestBody$outboundSchema = z19.object({
6374
6425
  properties: z19.record(
@@ -6382,6 +6433,7 @@ var CreateEntityUsageLimitRequestBody$outboundSchema = z19.pipe(
6382
6433
  enabled: z19._default(z19.boolean(), true),
6383
6434
  limit: z19.number(),
6384
6435
  interval: CreateEntityIntervalRequestBody$outboundSchema,
6436
+ anchor: z19.optional(CreateEntityAnchorRequestBody$outboundSchema),
6385
6437
  filter: z19.optional(
6386
6438
  z19.lazy(() => CreateEntityFilterRequestBody$outboundSchema)
6387
6439
  )
@@ -6622,6 +6674,7 @@ var CreateEntitySpendLimitResponse$inboundSchema = z19.pipe(
6622
6674
  })
6623
6675
  );
6624
6676
  var CreateEntityIntervalResponse$inboundSchema = inboundSchema(CreateEntityIntervalResponse);
6677
+ var CreateEntityAnchorResponse$inboundSchema = inboundSchema(CreateEntityAnchorResponse);
6625
6678
  var CreateEntityFilterResponse$inboundSchema = z19.object({
6626
6679
  properties: z19.record(z19.string(), string5())
6627
6680
  });
@@ -6632,6 +6685,7 @@ var CreateEntityUsageLimitResponse$inboundSchema = z19.pipe(
6632
6685
  enabled: z19._default(boolean2(), true),
6633
6686
  limit: number2(),
6634
6687
  interval: CreateEntityIntervalResponse$inboundSchema,
6688
+ anchor: optional3(CreateEntityAnchorResponse$inboundSchema),
6635
6689
  filter: optional3(
6636
6690
  z19.lazy(() => CreateEntityFilterResponse$inboundSchema)
6637
6691
  ),
@@ -7064,6 +7118,10 @@ var CreatePlanUsageLimitIntervalRequestBody = {
7064
7118
  Month: "month",
7065
7119
  Year: "year"
7066
7120
  };
7121
+ var CreatePlanAnchorRequestBody = {
7122
+ BillingCycle: "billing_cycle",
7123
+ Utc: "utc"
7124
+ };
7067
7125
  var CreatePlanThresholdTypeRequestBody = {
7068
7126
  Usage: "usage",
7069
7127
  UsagePercentage: "usage_percentage",
@@ -7230,6 +7288,10 @@ var CreatePlanVariantDetailsUsageLimitInterval = {
7230
7288
  Month: "month",
7231
7289
  Year: "year"
7232
7290
  };
7291
+ var CreatePlanVariantDetailsAnchor = {
7292
+ BillingCycle: "billing_cycle",
7293
+ Utc: "utc"
7294
+ };
7233
7295
  var CreatePlanVariantDetailsThresholdType = {
7234
7296
  Usage: "usage",
7235
7297
  UsagePercentage: "usage_percentage",
@@ -7252,6 +7314,10 @@ var CreatePlanUsageLimitIntervalResponse = {
7252
7314
  Month: "month",
7253
7315
  Year: "year"
7254
7316
  };
7317
+ var CreatePlanAnchorResponse = {
7318
+ BillingCycle: "billing_cycle",
7319
+ Utc: "utc"
7320
+ };
7255
7321
  var CreatePlanThresholdTypeResponse = {
7256
7322
  Usage: "usage",
7257
7323
  UsagePercentage: "usage_percentage",
@@ -7739,6 +7805,7 @@ var CreatePlanSpendLimitRequestBody$outboundSchema = z21.pipe(
7739
7805
  var CreatePlanUsageLimitIntervalRequestBody$outboundSchema = z21.enum(
7740
7806
  CreatePlanUsageLimitIntervalRequestBody
7741
7807
  );
7808
+ var CreatePlanAnchorRequestBody$outboundSchema = z21.enum(CreatePlanAnchorRequestBody);
7742
7809
  var CreatePlanProperties$outboundSchema = smartUnion([z21.string(), z21.number(), z21.boolean()]);
7743
7810
  var CreatePlanFilterRequestBody$outboundSchema = z21.object({
7744
7811
  properties: z21.record(
@@ -7752,6 +7819,7 @@ var CreatePlanUsageLimitRequestBody$outboundSchema = z21.pipe(
7752
7819
  enabled: z21._default(z21.boolean(), true),
7753
7820
  limit: z21.number(),
7754
7821
  interval: CreatePlanUsageLimitIntervalRequestBody$outboundSchema,
7822
+ anchor: z21.optional(CreatePlanAnchorRequestBody$outboundSchema),
7755
7823
  filter: z21.optional(
7756
7824
  z21.lazy(() => CreatePlanFilterRequestBody$outboundSchema)
7757
7825
  )
@@ -8328,6 +8396,7 @@ var CreatePlanVariantDetailsSpendLimit$inboundSchema = z21.pipe(
8328
8396
  })
8329
8397
  );
8330
8398
  var CreatePlanVariantDetailsUsageLimitInterval$inboundSchema = inboundSchema(CreatePlanVariantDetailsUsageLimitInterval);
8399
+ var CreatePlanVariantDetailsAnchor$inboundSchema = inboundSchema(CreatePlanVariantDetailsAnchor);
8331
8400
  var CreatePlanVariantDetailsFilter$inboundSchema = z21.object({
8332
8401
  properties: z21.record(z21.string(), string5())
8333
8402
  });
@@ -8337,6 +8406,7 @@ var CreatePlanVariantDetailsUsageLimit$inboundSchema = z21.pipe(
8337
8406
  enabled: z21._default(boolean2(), true),
8338
8407
  limit: number2(),
8339
8408
  interval: CreatePlanVariantDetailsUsageLimitInterval$inboundSchema,
8409
+ anchor: optional3(CreatePlanVariantDetailsAnchor$inboundSchema),
8340
8410
  filter: optional3(
8341
8411
  z21.lazy(() => CreatePlanVariantDetailsFilter$inboundSchema)
8342
8412
  )
@@ -8503,6 +8573,7 @@ var CreatePlanSpendLimitResponse$inboundSchema = z21.pipe(
8503
8573
  })
8504
8574
  );
8505
8575
  var CreatePlanUsageLimitIntervalResponse$inboundSchema = inboundSchema(CreatePlanUsageLimitIntervalResponse);
8576
+ var CreatePlanAnchorResponse$inboundSchema = inboundSchema(CreatePlanAnchorResponse);
8506
8577
  var CreatePlanFilterResponse$inboundSchema = z21.object({
8507
8578
  properties: z21.record(z21.string(), string5())
8508
8579
  });
@@ -8512,6 +8583,7 @@ var CreatePlanUsageLimitResponse$inboundSchema = z21.pipe(
8512
8583
  enabled: z21._default(boolean2(), true),
8513
8584
  limit: number2(),
8514
8585
  interval: CreatePlanUsageLimitIntervalResponse$inboundSchema,
8586
+ anchor: optional3(CreatePlanAnchorResponse$inboundSchema),
8515
8587
  filter: optional3(
8516
8588
  z21.lazy(() => CreatePlanFilterResponse$inboundSchema)
8517
8589
  )
@@ -9120,6 +9192,10 @@ var UnscheduledPlanUsageLimitInterval = {
9120
9192
  Month: "month",
9121
9193
  Year: "year"
9122
9194
  };
9195
+ var UnscheduledPlanAnchor = {
9196
+ BillingCycle: "billing_cycle",
9197
+ Utc: "utc"
9198
+ };
9123
9199
  var UnscheduledPlanThresholdType = {
9124
9200
  Usage: "usage",
9125
9201
  UsagePercentage: "usage_percentage",
@@ -9265,6 +9341,10 @@ var PhaseStartUsageLimitInterval = {
9265
9341
  Month: "month",
9266
9342
  Year: "year"
9267
9343
  };
9344
+ var PhaseStartAnchor = {
9345
+ BillingCycle: "billing_cycle",
9346
+ Utc: "utc"
9347
+ };
9268
9348
  var PhaseStartThresholdType = {
9269
9349
  Usage: "usage",
9270
9350
  UsagePercentage: "usage_percentage",
@@ -9713,6 +9793,7 @@ var UnscheduledPlanSpendLimit$outboundSchema = z25.pipe(
9713
9793
  })
9714
9794
  );
9715
9795
  var UnscheduledPlanUsageLimitInterval$outboundSchema = z25.enum(UnscheduledPlanUsageLimitInterval);
9796
+ var UnscheduledPlanAnchor$outboundSchema = z25.enum(UnscheduledPlanAnchor);
9716
9797
  var CreateScheduleProperties$outboundSchema = smartUnion([z25.string(), z25.number(), z25.boolean()]);
9717
9798
  var UnscheduledPlanFilter$outboundSchema = z25.object({
9718
9799
  properties: z25.record(
@@ -9726,6 +9807,7 @@ var UnscheduledPlanUsageLimit$outboundSchema = z25.pipe(
9726
9807
  enabled: z25._default(z25.boolean(), true),
9727
9808
  limit: z25.number(),
9728
9809
  interval: UnscheduledPlanUsageLimitInterval$outboundSchema,
9810
+ anchor: z25.optional(UnscheduledPlanAnchor$outboundSchema),
9729
9811
  filter: z25.optional(z25.lazy(() => UnscheduledPlanFilter$outboundSchema))
9730
9812
  }),
9731
9813
  z25.transform((v) => {
@@ -10179,6 +10261,7 @@ var PhaseStartSpendLimit$outboundSchema = z25.pipe(
10179
10261
  })
10180
10262
  );
10181
10263
  var PhaseStartUsageLimitInterval$outboundSchema = z25.enum(PhaseStartUsageLimitInterval);
10264
+ var PhaseStartAnchor$outboundSchema = z25.enum(PhaseStartAnchor);
10182
10265
  var PhaseStartFilter$outboundSchema = z25.object({
10183
10266
  properties: z25.record(z25.string(), z25.any())
10184
10267
  });
@@ -10188,6 +10271,7 @@ var PhaseStartUsageLimit$outboundSchema = z25.pipe(
10188
10271
  enabled: z25._default(z25.boolean(), true),
10189
10272
  limit: z25.number(),
10190
10273
  interval: PhaseStartUsageLimitInterval$outboundSchema,
10274
+ anchor: z25.optional(PhaseStartAnchor$outboundSchema),
10191
10275
  filter: z25.optional(z25.lazy(() => PhaseStartFilter$outboundSchema))
10192
10276
  }),
10193
10277
  z25.transform((v) => {
@@ -10335,6 +10419,7 @@ var CreateScheduleParams$outboundSchema = z25.pipe(
10335
10419
  "if_required"
10336
10420
  ),
10337
10421
  billingBehavior: z25.optional(CreateScheduleBillingBehavior$outboundSchema),
10422
+ noBillingChanges: z25.optional(z25.boolean()),
10338
10423
  billingCycleAnchor: z25.optional(z25.literal("now")),
10339
10424
  enablePlanImmediately: z25.optional(z25.boolean()),
10340
10425
  preserveAddOns: z25.optional(z25.boolean()),
@@ -10353,6 +10438,7 @@ var CreateScheduleParams$outboundSchema = z25.pipe(
10353
10438
  checkoutSessionParams: "checkout_session_params",
10354
10439
  redirectMode: "redirect_mode",
10355
10440
  billingBehavior: "billing_behavior",
10441
+ noBillingChanges: "no_billing_changes",
10356
10442
  billingCycleAnchor: "billing_cycle_anchor",
10357
10443
  enablePlanImmediately: "enable_plan_immediately",
10358
10444
  preserveAddOns: "preserve_add_ons",
@@ -10473,6 +10559,10 @@ var CustomerUsageLimitInterval = {
10473
10559
  Month: "month",
10474
10560
  Year: "year"
10475
10561
  };
10562
+ var CustomerAnchor = {
10563
+ BillingCycle: "billing_cycle",
10564
+ Utc: "utc"
10565
+ };
10476
10566
  var UsageLimitSource = {
10477
10567
  Customer: "customer",
10478
10568
  Plan: "plan"
@@ -10606,6 +10696,7 @@ var CustomerSpendLimit$inboundSchema = z27.pipe(
10606
10696
  })
10607
10697
  );
10608
10698
  var CustomerUsageLimitInterval$inboundSchema = inboundSchema(CustomerUsageLimitInterval);
10699
+ var CustomerAnchor$inboundSchema = inboundSchema(CustomerAnchor);
10609
10700
  var CustomerFilter$inboundSchema = z27.object({
10610
10701
  properties: z27.record(z27.string(), string5())
10611
10702
  });
@@ -10616,6 +10707,7 @@ var CustomerUsageLimit$inboundSchema = z27.pipe(
10616
10707
  enabled: z27._default(boolean2(), true),
10617
10708
  limit: number2(),
10618
10709
  interval: CustomerUsageLimitInterval$inboundSchema,
10710
+ anchor: optional3(CustomerAnchor$inboundSchema),
10619
10711
  filter: optional3(z27.lazy(() => CustomerFilter$inboundSchema)),
10620
10712
  usage: optional3(number2()),
10621
10713
  source: optional3(UsageLimitSource$inboundSchema)
@@ -11287,6 +11379,10 @@ var GetCustomerUsageLimitInterval = {
11287
11379
  Month: "month",
11288
11380
  Year: "year"
11289
11381
  };
11382
+ var GetCustomerAnchor = {
11383
+ BillingCycle: "billing_cycle",
11384
+ Utc: "utc"
11385
+ };
11290
11386
  var GetCustomerUsageLimitSource = {
11291
11387
  Customer: "customer",
11292
11388
  Plan: "plan"
@@ -11431,6 +11527,7 @@ var GetCustomerSpendLimit$inboundSchema = z36.pipe(
11431
11527
  })
11432
11528
  );
11433
11529
  var GetCustomerUsageLimitInterval$inboundSchema = inboundSchema(GetCustomerUsageLimitInterval);
11530
+ var GetCustomerAnchor$inboundSchema = inboundSchema(GetCustomerAnchor);
11434
11531
  var GetCustomerFilter$inboundSchema = z36.object({
11435
11532
  properties: z36.record(z36.string(), string5())
11436
11533
  });
@@ -11441,6 +11538,7 @@ var GetCustomerUsageLimit$inboundSchema = z36.pipe(
11441
11538
  enabled: z36._default(boolean2(), true),
11442
11539
  limit: number2(),
11443
11540
  interval: GetCustomerUsageLimitInterval$inboundSchema,
11541
+ anchor: optional3(GetCustomerAnchor$inboundSchema),
11444
11542
  filter: optional3(z36.lazy(() => GetCustomerFilter$inboundSchema)),
11445
11543
  usage: optional3(number2()),
11446
11544
  source: optional3(GetCustomerUsageLimitSource$inboundSchema)
@@ -11956,6 +12054,10 @@ var GetEntityInterval = {
11956
12054
  Month: "month",
11957
12055
  Year: "year"
11958
12056
  };
12057
+ var GetEntityAnchor = {
12058
+ BillingCycle: "billing_cycle",
12059
+ Utc: "utc"
12060
+ };
11959
12061
  var GetEntityUsageLimitSource = {
11960
12062
  Customer: "customer",
11961
12063
  Plan: "plan"
@@ -12148,6 +12250,7 @@ var GetEntitySpendLimit$inboundSchema = z37.pipe(
12148
12250
  })
12149
12251
  );
12150
12252
  var GetEntityInterval$inboundSchema = inboundSchema(GetEntityInterval);
12253
+ var GetEntityAnchor$inboundSchema = inboundSchema(GetEntityAnchor);
12151
12254
  var GetEntityFilter$inboundSchema = z37.object({
12152
12255
  properties: z37.record(z37.string(), string5())
12153
12256
  });
@@ -12158,6 +12261,7 @@ var GetEntityUsageLimit$inboundSchema = z37.pipe(
12158
12261
  enabled: z37._default(boolean2(), true),
12159
12262
  limit: number2(),
12160
12263
  interval: GetEntityInterval$inboundSchema,
12264
+ anchor: optional3(GetEntityAnchor$inboundSchema),
12161
12265
  filter: optional3(z37.lazy(() => GetEntityFilter$inboundSchema)),
12162
12266
  usage: optional3(number2()),
12163
12267
  source: optional3(GetEntityUsageLimitSource$inboundSchema)
@@ -12378,6 +12482,10 @@ var GetOrCreateCustomerUsageLimitInterval = {
12378
12482
  Month: "month",
12379
12483
  Year: "year"
12380
12484
  };
12485
+ var GetOrCreateCustomerAnchor = {
12486
+ BillingCycle: "billing_cycle",
12487
+ Utc: "utc"
12488
+ };
12381
12489
  var GetOrCreateCustomerThresholdType = {
12382
12490
  Usage: "usage",
12383
12491
  UsagePercentage: "usage_percentage",
@@ -12440,6 +12548,7 @@ var GetOrCreateCustomerSpendLimit$outboundSchema = z39.pipe(
12440
12548
  var GetOrCreateCustomerUsageLimitInterval$outboundSchema = z39.enum(
12441
12549
  GetOrCreateCustomerUsageLimitInterval
12442
12550
  );
12551
+ var GetOrCreateCustomerAnchor$outboundSchema = z39.enum(GetOrCreateCustomerAnchor);
12443
12552
  var GetOrCreateCustomerProperties$outboundSchema = smartUnion([z39.string(), z39.number(), z39.boolean()]);
12444
12553
  var GetOrCreateCustomerFilter$outboundSchema = z39.object({
12445
12554
  properties: z39.record(
@@ -12453,6 +12562,7 @@ var GetOrCreateCustomerUsageLimit$outboundSchema = z39.pipe(
12453
12562
  enabled: z39._default(z39.boolean(), true),
12454
12563
  limit: z39.number(),
12455
12564
  interval: GetOrCreateCustomerUsageLimitInterval$outboundSchema,
12565
+ anchor: z39.optional(GetOrCreateCustomerAnchor$outboundSchema),
12456
12566
  filter: z39.optional(z39.lazy(() => GetOrCreateCustomerFilter$outboundSchema))
12457
12567
  }),
12458
12568
  z39.transform((v) => {
@@ -12720,6 +12830,10 @@ var GetPlanVariantDetailsUsageLimitInterval = {
12720
12830
  Month: "month",
12721
12831
  Year: "year"
12722
12832
  };
12833
+ var GetPlanVariantDetailsAnchor = {
12834
+ BillingCycle: "billing_cycle",
12835
+ Utc: "utc"
12836
+ };
12723
12837
  var GetPlanVariantDetailsThresholdType = {
12724
12838
  Usage: "usage",
12725
12839
  UsagePercentage: "usage_percentage",
@@ -12742,6 +12856,10 @@ var GetPlanUsageLimitInterval = {
12742
12856
  Month: "month",
12743
12857
  Year: "year"
12744
12858
  };
12859
+ var GetPlanAnchor = {
12860
+ BillingCycle: "billing_cycle",
12861
+ Utc: "utc"
12862
+ };
12745
12863
  var GetPlanThresholdType = {
12746
12864
  Usage: "usage",
12747
12865
  UsagePercentage: "usage_percentage",
@@ -13231,6 +13349,7 @@ var GetPlanVariantDetailsSpendLimit$inboundSchema = z40.pipe(
13231
13349
  })
13232
13350
  );
13233
13351
  var GetPlanVariantDetailsUsageLimitInterval$inboundSchema = inboundSchema(GetPlanVariantDetailsUsageLimitInterval);
13352
+ var GetPlanVariantDetailsAnchor$inboundSchema = inboundSchema(GetPlanVariantDetailsAnchor);
13234
13353
  var GetPlanVariantDetailsFilter$inboundSchema = z40.object({
13235
13354
  properties: z40.record(z40.string(), string5())
13236
13355
  });
@@ -13240,6 +13359,7 @@ var GetPlanVariantDetailsUsageLimit$inboundSchema = z40.pipe(
13240
13359
  enabled: z40._default(boolean2(), true),
13241
13360
  limit: number2(),
13242
13361
  interval: GetPlanVariantDetailsUsageLimitInterval$inboundSchema,
13362
+ anchor: optional3(GetPlanVariantDetailsAnchor$inboundSchema),
13243
13363
  filter: optional3(
13244
13364
  z40.lazy(() => GetPlanVariantDetailsFilter$inboundSchema)
13245
13365
  )
@@ -13402,6 +13522,7 @@ var GetPlanSpendLimit$inboundSchema = z40.pipe(
13402
13522
  })
13403
13523
  );
13404
13524
  var GetPlanUsageLimitInterval$inboundSchema = inboundSchema(GetPlanUsageLimitInterval);
13525
+ var GetPlanAnchor$inboundSchema = inboundSchema(GetPlanAnchor);
13405
13526
  var GetPlanFilter$inboundSchema = z40.object({
13406
13527
  properties: z40.record(z40.string(), string5())
13407
13528
  });
@@ -13411,6 +13532,7 @@ var GetPlanUsageLimit$inboundSchema = z40.pipe(
13411
13532
  enabled: z40._default(boolean2(), true),
13412
13533
  limit: number2(),
13413
13534
  interval: GetPlanUsageLimitInterval$inboundSchema,
13535
+ anchor: optional3(GetPlanAnchor$inboundSchema),
13414
13536
  filter: optional3(z40.lazy(() => GetPlanFilter$inboundSchema))
13415
13537
  }),
13416
13538
  z40.transform((v) => {
@@ -14148,6 +14270,10 @@ var ListCustomersUsageLimitInterval = {
14148
14270
  Month: "month",
14149
14271
  Year: "year"
14150
14272
  };
14273
+ var ListCustomersAnchor = {
14274
+ BillingCycle: "billing_cycle",
14275
+ Utc: "utc"
14276
+ };
14151
14277
  var ListCustomersUsageLimitSource = {
14152
14278
  Customer: "customer",
14153
14279
  Plan: "plan"
@@ -14296,6 +14422,7 @@ var ListCustomersSpendLimit$inboundSchema = z47.pipe(
14296
14422
  })
14297
14423
  );
14298
14424
  var ListCustomersUsageLimitInterval$inboundSchema = inboundSchema(ListCustomersUsageLimitInterval);
14425
+ var ListCustomersAnchor$inboundSchema = inboundSchema(ListCustomersAnchor);
14299
14426
  var ListCustomersFilter$inboundSchema = z47.object({
14300
14427
  properties: z47.record(z47.string(), string5())
14301
14428
  });
@@ -14306,6 +14433,7 @@ var ListCustomersUsageLimit$inboundSchema = z47.pipe(
14306
14433
  enabled: z47._default(boolean2(), true),
14307
14434
  limit: number2(),
14308
14435
  interval: ListCustomersUsageLimitInterval$inboundSchema,
14436
+ anchor: optional3(ListCustomersAnchor$inboundSchema),
14309
14437
  filter: optional3(z47.lazy(() => ListCustomersFilter$inboundSchema)),
14310
14438
  usage: optional3(number2()),
14311
14439
  source: optional3(ListCustomersUsageLimitSource$inboundSchema)
@@ -14659,6 +14787,10 @@ var ListEntitiesInterval = {
14659
14787
  Month: "month",
14660
14788
  Year: "year"
14661
14789
  };
14790
+ var ListEntitiesAnchor = {
14791
+ BillingCycle: "billing_cycle",
14792
+ Utc: "utc"
14793
+ };
14662
14794
  var ListEntitiesUsageLimitSource = {
14663
14795
  Customer: "customer",
14664
14796
  Plan: "plan"
@@ -14865,6 +14997,7 @@ var ListEntitiesSpendLimit$inboundSchema = z48.pipe(
14865
14997
  })
14866
14998
  );
14867
14999
  var ListEntitiesInterval$inboundSchema = inboundSchema(ListEntitiesInterval);
15000
+ var ListEntitiesAnchor$inboundSchema = inboundSchema(ListEntitiesAnchor);
14868
15001
  var ListEntitiesFilter$inboundSchema = z48.object({
14869
15002
  properties: z48.record(z48.string(), string5())
14870
15003
  });
@@ -14875,6 +15008,7 @@ var ListEntitiesUsageLimit$inboundSchema = z48.pipe(
14875
15008
  enabled: z48._default(boolean2(), true),
14876
15009
  limit: number2(),
14877
15010
  interval: ListEntitiesInterval$inboundSchema,
15011
+ anchor: optional3(ListEntitiesAnchor$inboundSchema),
14878
15012
  filter: optional3(z48.lazy(() => ListEntitiesFilter$inboundSchema)),
14879
15013
  usage: optional3(number2()),
14880
15014
  source: optional3(ListEntitiesUsageLimitSource$inboundSchema)
@@ -15434,6 +15568,10 @@ var ListPlansVariantDetailsUsageLimitInterval = {
15434
15568
  Month: "month",
15435
15569
  Year: "year"
15436
15570
  };
15571
+ var ListPlansVariantDetailsAnchor = {
15572
+ BillingCycle: "billing_cycle",
15573
+ Utc: "utc"
15574
+ };
15437
15575
  var ListPlansVariantDetailsThresholdType = {
15438
15576
  Usage: "usage",
15439
15577
  UsagePercentage: "usage_percentage",
@@ -15456,6 +15594,10 @@ var ListPlansUsageLimitInterval = {
15456
15594
  Month: "month",
15457
15595
  Year: "year"
15458
15596
  };
15597
+ var ListPlansAnchor = {
15598
+ BillingCycle: "billing_cycle",
15599
+ Utc: "utc"
15600
+ };
15459
15601
  var ListPlansThresholdType = {
15460
15602
  Usage: "usage",
15461
15603
  UsagePercentage: "usage_percentage",
@@ -15937,6 +16079,7 @@ var ListPlansVariantDetailsSpendLimit$inboundSchema = z52.pipe(
15937
16079
  })
15938
16080
  );
15939
16081
  var ListPlansVariantDetailsUsageLimitInterval$inboundSchema = inboundSchema(ListPlansVariantDetailsUsageLimitInterval);
16082
+ var ListPlansVariantDetailsAnchor$inboundSchema = inboundSchema(ListPlansVariantDetailsAnchor);
15940
16083
  var ListPlansVariantDetailsFilter$inboundSchema = z52.object({
15941
16084
  properties: z52.record(z52.string(), string5())
15942
16085
  });
@@ -15946,6 +16089,7 @@ var ListPlansVariantDetailsUsageLimit$inboundSchema = z52.pipe(
15946
16089
  enabled: z52._default(boolean2(), true),
15947
16090
  limit: number2(),
15948
16091
  interval: ListPlansVariantDetailsUsageLimitInterval$inboundSchema,
16092
+ anchor: optional3(ListPlansVariantDetailsAnchor$inboundSchema),
15949
16093
  filter: optional3(
15950
16094
  z52.lazy(() => ListPlansVariantDetailsFilter$inboundSchema)
15951
16095
  )
@@ -16110,6 +16254,7 @@ var ListPlansSpendLimit$inboundSchema = z52.pipe(
16110
16254
  })
16111
16255
  );
16112
16256
  var ListPlansUsageLimitInterval$inboundSchema = inboundSchema(ListPlansUsageLimitInterval);
16257
+ var ListPlansAnchor$inboundSchema = inboundSchema(ListPlansAnchor);
16113
16258
  var ListPlansFilter$inboundSchema = z52.object({
16114
16259
  properties: z52.record(z52.string(), string5())
16115
16260
  });
@@ -16119,6 +16264,7 @@ var ListPlansUsageLimit$inboundSchema = z52.pipe(
16119
16264
  enabled: z52._default(boolean2(), true),
16120
16265
  limit: number2(),
16121
16266
  interval: ListPlansUsageLimitInterval$inboundSchema,
16267
+ anchor: optional3(ListPlansAnchor$inboundSchema),
16122
16268
  filter: optional3(z52.lazy(() => ListPlansFilter$inboundSchema))
16123
16269
  }),
16124
16270
  z52.transform((v) => {
@@ -16514,6 +16660,10 @@ var MultiAttachEntityDataInterval = {
16514
16660
  Month: "month",
16515
16661
  Year: "year"
16516
16662
  };
16663
+ var MultiAttachAnchor = {
16664
+ BillingCycle: "billing_cycle",
16665
+ Utc: "utc"
16666
+ };
16517
16667
  var MultiAttachThresholdType = {
16518
16668
  Usage: "usage",
16519
16669
  UsagePercentage: "usage_percentage",
@@ -16772,6 +16922,7 @@ var MultiAttachSpendLimit$outboundSchema = z56.pipe(
16772
16922
  })
16773
16923
  );
16774
16924
  var MultiAttachEntityDataInterval$outboundSchema = z56.enum(MultiAttachEntityDataInterval);
16925
+ var MultiAttachAnchor$outboundSchema = z56.enum(MultiAttachAnchor);
16775
16926
  var MultiAttachProperties$outboundSchema = smartUnion([z56.string(), z56.number(), z56.boolean()]);
16776
16927
  var MultiAttachFilter$outboundSchema = z56.object({
16777
16928
  properties: z56.record(
@@ -16785,6 +16936,7 @@ var MultiAttachUsageLimit$outboundSchema = z56.pipe(
16785
16936
  enabled: z56._default(z56.boolean(), true),
16786
16937
  limit: z56.number(),
16787
16938
  interval: MultiAttachEntityDataInterval$outboundSchema,
16939
+ anchor: z56.optional(MultiAttachAnchor$outboundSchema),
16788
16940
  filter: z56.optional(z56.lazy(() => MultiAttachFilter$outboundSchema))
16789
16941
  }),
16790
16942
  z56.transform((v) => {
@@ -17209,6 +17361,10 @@ var PreviewAttachUsageLimitInterval = {
17209
17361
  Month: "month",
17210
17362
  Year: "year"
17211
17363
  };
17364
+ var PreviewAttachAnchor = {
17365
+ BillingCycle: "billing_cycle",
17366
+ Utc: "utc"
17367
+ };
17212
17368
  var PreviewAttachThresholdType = {
17213
17369
  Usage: "usage",
17214
17370
  UsagePercentage: "usage_percentage",
@@ -17697,6 +17853,7 @@ var PreviewAttachSpendLimit$outboundSchema = z59.pipe(
17697
17853
  })
17698
17854
  );
17699
17855
  var PreviewAttachUsageLimitInterval$outboundSchema = z59.enum(PreviewAttachUsageLimitInterval);
17856
+ var PreviewAttachAnchor$outboundSchema = z59.enum(PreviewAttachAnchor);
17700
17857
  var PreviewAttachProperties$outboundSchema = smartUnion([z59.string(), z59.number(), z59.boolean()]);
17701
17858
  var PreviewAttachFilter$outboundSchema = z59.object({
17702
17859
  properties: z59.record(
@@ -17710,6 +17867,7 @@ var PreviewAttachUsageLimit$outboundSchema = z59.pipe(
17710
17867
  enabled: z59._default(z59.boolean(), true),
17711
17868
  limit: z59.number(),
17712
17869
  interval: PreviewAttachUsageLimitInterval$outboundSchema,
17870
+ anchor: z59.optional(PreviewAttachAnchor$outboundSchema),
17713
17871
  filter: z59.optional(z59.lazy(() => PreviewAttachFilter$outboundSchema))
17714
17872
  }),
17715
17873
  z59.transform((v) => {
@@ -18500,6 +18658,10 @@ var PreviewMultiAttachEntityDataInterval = {
18500
18658
  Month: "month",
18501
18659
  Year: "year"
18502
18660
  };
18661
+ var PreviewMultiAttachAnchor = {
18662
+ BillingCycle: "billing_cycle",
18663
+ Utc: "utc"
18664
+ };
18503
18665
  var PreviewMultiAttachThresholdType = {
18504
18666
  Usage: "usage",
18505
18667
  UsagePercentage: "usage_percentage",
@@ -18777,6 +18939,7 @@ var PreviewMultiAttachSpendLimit$outboundSchema = z60.pipe(
18777
18939
  })
18778
18940
  );
18779
18941
  var PreviewMultiAttachEntityDataInterval$outboundSchema = z60.enum(PreviewMultiAttachEntityDataInterval);
18942
+ var PreviewMultiAttachAnchor$outboundSchema = z60.enum(PreviewMultiAttachAnchor);
18780
18943
  var PreviewMultiAttachProperties$outboundSchema = smartUnion([z60.string(), z60.number(), z60.boolean()]);
18781
18944
  var PreviewMultiAttachFilter$outboundSchema = z60.object({
18782
18945
  properties: z60.record(
@@ -18790,6 +18953,7 @@ var PreviewMultiAttachUsageLimit$outboundSchema = z60.pipe(
18790
18953
  enabled: z60._default(z60.boolean(), true),
18791
18954
  limit: z60.number(),
18792
18955
  interval: PreviewMultiAttachEntityDataInterval$outboundSchema,
18956
+ anchor: z60.optional(PreviewMultiAttachAnchor$outboundSchema),
18793
18957
  filter: z60.optional(z60.lazy(() => PreviewMultiAttachFilter$outboundSchema))
18794
18958
  }),
18795
18959
  z60.transform((v) => {
@@ -19587,6 +19751,10 @@ var PreviewUpdateUsageLimitInterval = {
19587
19751
  Month: "month",
19588
19752
  Year: "year"
19589
19753
  };
19754
+ var PreviewUpdateAnchor = {
19755
+ BillingCycle: "billing_cycle",
19756
+ Utc: "utc"
19757
+ };
19590
19758
  var PreviewUpdateThresholdType = {
19591
19759
  Usage: "usage",
19592
19760
  UsagePercentage: "usage_percentage",
@@ -20084,6 +20252,7 @@ var PreviewUpdateSpendLimit$outboundSchema = z62.pipe(
20084
20252
  })
20085
20253
  );
20086
20254
  var PreviewUpdateUsageLimitInterval$outboundSchema = z62.enum(PreviewUpdateUsageLimitInterval);
20255
+ var PreviewUpdateAnchor$outboundSchema = z62.enum(PreviewUpdateAnchor);
20087
20256
  var PreviewUpdateProperties$outboundSchema = smartUnion([z62.string(), z62.number(), z62.boolean()]);
20088
20257
  var PreviewUpdateFilter$outboundSchema = z62.object({
20089
20258
  properties: z62.record(
@@ -20097,6 +20266,7 @@ var PreviewUpdateUsageLimit$outboundSchema = z62.pipe(
20097
20266
  enabled: z62._default(z62.boolean(), true),
20098
20267
  limit: z62.number(),
20099
20268
  interval: PreviewUpdateUsageLimitInterval$outboundSchema,
20269
+ anchor: z62.optional(PreviewUpdateAnchor$outboundSchema),
20100
20270
  filter: z62.optional(z62.lazy(() => PreviewUpdateFilter$outboundSchema))
20101
20271
  }),
20102
20272
  z62.transform((v) => {
@@ -21037,6 +21207,10 @@ var SetupPaymentUsageLimitInterval = {
21037
21207
  Month: "month",
21038
21208
  Year: "year"
21039
21209
  };
21210
+ var SetupPaymentAnchor = {
21211
+ BillingCycle: "billing_cycle",
21212
+ Utc: "utc"
21213
+ };
21040
21214
  var SetupPaymentThresholdType = {
21041
21215
  Usage: "usage",
21042
21216
  UsagePercentage: "usage_percentage",
@@ -21508,6 +21682,7 @@ var SetupPaymentSpendLimit$outboundSchema = z68.pipe(
21508
21682
  })
21509
21683
  );
21510
21684
  var SetupPaymentUsageLimitInterval$outboundSchema = z68.enum(SetupPaymentUsageLimitInterval);
21685
+ var SetupPaymentAnchor$outboundSchema = z68.enum(SetupPaymentAnchor);
21511
21686
  var SetupPaymentProperties$outboundSchema = smartUnion([z68.string(), z68.number(), z68.boolean()]);
21512
21687
  var SetupPaymentFilter$outboundSchema = z68.object({
21513
21688
  properties: z68.record(
@@ -21521,6 +21696,7 @@ var SetupPaymentUsageLimit$outboundSchema = z68.pipe(
21521
21696
  enabled: z68._default(z68.boolean(), true),
21522
21697
  limit: z68.number(),
21523
21698
  interval: SetupPaymentUsageLimitInterval$outboundSchema,
21699
+ anchor: z68.optional(SetupPaymentAnchor$outboundSchema),
21524
21700
  filter: z68.optional(z68.lazy(() => SetupPaymentFilter$outboundSchema))
21525
21701
  }),
21526
21702
  z68.transform((v) => {
@@ -22471,6 +22647,10 @@ var UpdateCustomerUsageLimitIntervalRequestBody = {
22471
22647
  Month: "month",
22472
22648
  Year: "year"
22473
22649
  };
22650
+ var UpdateCustomerAnchorRequestBody = {
22651
+ BillingCycle: "billing_cycle",
22652
+ Utc: "utc"
22653
+ };
22474
22654
  var UpdateCustomerThresholdTypeRequestBody = {
22475
22655
  Usage: "usage",
22476
22656
  UsagePercentage: "usage_percentage",
@@ -22511,6 +22691,10 @@ var UpdateCustomerUsageLimitIntervalResponse = {
22511
22691
  Month: "month",
22512
22692
  Year: "year"
22513
22693
  };
22694
+ var UpdateCustomerAnchorResponse = {
22695
+ BillingCycle: "billing_cycle",
22696
+ Utc: "utc"
22697
+ };
22514
22698
  var UpdateCustomerUsageLimitSource = {
22515
22699
  Customer: "customer",
22516
22700
  Plan: "plan"
@@ -22603,6 +22787,7 @@ var UpdateCustomerSpendLimitRequestBody$outboundSchema = z73.pipe(
22603
22787
  var UpdateCustomerUsageLimitIntervalRequestBody$outboundSchema = z73.enum(
22604
22788
  UpdateCustomerUsageLimitIntervalRequestBody
22605
22789
  );
22790
+ var UpdateCustomerAnchorRequestBody$outboundSchema = z73.enum(UpdateCustomerAnchorRequestBody);
22606
22791
  var UpdateCustomerProperties$outboundSchema = smartUnion([z73.string(), z73.number(), z73.boolean()]);
22607
22792
  var UpdateCustomerFilterRequestBody$outboundSchema = z73.object({
22608
22793
  properties: z73.record(
@@ -22616,6 +22801,7 @@ var UpdateCustomerUsageLimitRequestBody$outboundSchema = z73.pipe(
22616
22801
  enabled: z73._default(z73.boolean(), true),
22617
22802
  limit: z73.number(),
22618
22803
  interval: UpdateCustomerUsageLimitIntervalRequestBody$outboundSchema,
22804
+ anchor: z73.optional(UpdateCustomerAnchorRequestBody$outboundSchema),
22619
22805
  filter: z73.optional(
22620
22806
  z73.lazy(() => UpdateCustomerFilterRequestBody$outboundSchema)
22621
22807
  )
@@ -22812,6 +22998,7 @@ var UpdateCustomerSpendLimitResponse$inboundSchema = z73.pipe(
22812
22998
  })
22813
22999
  );
22814
23000
  var UpdateCustomerUsageLimitIntervalResponse$inboundSchema = inboundSchema(UpdateCustomerUsageLimitIntervalResponse);
23001
+ var UpdateCustomerAnchorResponse$inboundSchema = inboundSchema(UpdateCustomerAnchorResponse);
22815
23002
  var UpdateCustomerFilterResponse$inboundSchema = z73.object({
22816
23003
  properties: z73.record(z73.string(), string5())
22817
23004
  });
@@ -22822,6 +23009,7 @@ var UpdateCustomerUsageLimitResponse$inboundSchema = z73.pipe(
22822
23009
  enabled: z73._default(boolean2(), true),
22823
23010
  limit: number2(),
22824
23011
  interval: UpdateCustomerUsageLimitIntervalResponse$inboundSchema,
23012
+ anchor: optional3(UpdateCustomerAnchorResponse$inboundSchema),
22825
23013
  filter: optional3(
22826
23014
  z73.lazy(() => UpdateCustomerFilterResponse$inboundSchema)
22827
23015
  ),
@@ -23138,6 +23326,10 @@ var UpdateEntityIntervalRequestBody = {
23138
23326
  Month: "month",
23139
23327
  Year: "year"
23140
23328
  };
23329
+ var UpdateEntityAnchorRequestBody = {
23330
+ BillingCycle: "billing_cycle",
23331
+ Utc: "utc"
23332
+ };
23141
23333
  var UpdateEntityThresholdTypeRequestBody = {
23142
23334
  Usage: "usage",
23143
23335
  UsagePercentage: "usage_percentage",
@@ -23180,6 +23372,10 @@ var UpdateEntityIntervalResponse = {
23180
23372
  Month: "month",
23181
23373
  Year: "year"
23182
23374
  };
23375
+ var UpdateEntityAnchorResponse = {
23376
+ BillingCycle: "billing_cycle",
23377
+ Utc: "utc"
23378
+ };
23183
23379
  var UpdateEntityUsageLimitSource = {
23184
23380
  Customer: "customer",
23185
23381
  Plan: "plan"
@@ -23221,6 +23417,7 @@ var UpdateEntitySpendLimitRequestBody$outboundSchema = z74.pipe(
23221
23417
  })
23222
23418
  );
23223
23419
  var UpdateEntityIntervalRequestBody$outboundSchema = z74.enum(UpdateEntityIntervalRequestBody);
23420
+ var UpdateEntityAnchorRequestBody$outboundSchema = z74.enum(UpdateEntityAnchorRequestBody);
23224
23421
  var UpdateEntityProperties$outboundSchema = smartUnion([z74.string(), z74.number(), z74.boolean()]);
23225
23422
  var UpdateEntityFilterRequestBody$outboundSchema = z74.object({
23226
23423
  properties: z74.record(
@@ -23234,6 +23431,7 @@ var UpdateEntityUsageLimitRequestBody$outboundSchema = z74.pipe(
23234
23431
  enabled: z74._default(z74.boolean(), true),
23235
23432
  limit: z74.number(),
23236
23433
  interval: UpdateEntityIntervalRequestBody$outboundSchema,
23434
+ anchor: z74.optional(UpdateEntityAnchorRequestBody$outboundSchema),
23237
23435
  filter: z74.optional(
23238
23436
  z74.lazy(() => UpdateEntityFilterRequestBody$outboundSchema)
23239
23437
  )
@@ -23469,6 +23667,7 @@ var UpdateEntitySpendLimitResponse$inboundSchema = z74.pipe(
23469
23667
  })
23470
23668
  );
23471
23669
  var UpdateEntityIntervalResponse$inboundSchema = inboundSchema(UpdateEntityIntervalResponse);
23670
+ var UpdateEntityAnchorResponse$inboundSchema = inboundSchema(UpdateEntityAnchorResponse);
23472
23671
  var UpdateEntityFilterResponse$inboundSchema = z74.object({
23473
23672
  properties: z74.record(z74.string(), string5())
23474
23673
  });
@@ -23479,6 +23678,7 @@ var UpdateEntityUsageLimitResponse$inboundSchema = z74.pipe(
23479
23678
  enabled: z74._default(boolean2(), true),
23480
23679
  limit: number2(),
23481
23680
  interval: UpdateEntityIntervalResponse$inboundSchema,
23681
+ anchor: optional3(UpdateEntityAnchorResponse$inboundSchema),
23482
23682
  filter: optional3(
23483
23683
  z74.lazy(() => UpdateEntityFilterResponse$inboundSchema)
23484
23684
  ),
@@ -23914,6 +24114,10 @@ var UpdatePlanUsageLimitIntervalRequestBody = {
23914
24114
  Month: "month",
23915
24115
  Year: "year"
23916
24116
  };
24117
+ var UpdatePlanAnchorRequestBody = {
24118
+ BillingCycle: "billing_cycle",
24119
+ Utc: "utc"
24120
+ };
23917
24121
  var UpdatePlanThresholdTypeRequestBody = {
23918
24122
  Usage: "usage",
23919
24123
  UsagePercentage: "usage_percentage",
@@ -24020,6 +24224,10 @@ var VariantUsageLimitInterval = {
24020
24224
  Month: "month",
24021
24225
  Year: "year"
24022
24226
  };
24227
+ var VariantAnchor = {
24228
+ BillingCycle: "billing_cycle",
24229
+ Utc: "utc"
24230
+ };
24023
24231
  var VariantThresholdType = {
24024
24232
  Usage: "usage",
24025
24233
  UsagePercentage: "usage_percentage",
@@ -24186,6 +24394,10 @@ var UpdatePlanVariantDetailsUsageLimitInterval = {
24186
24394
  Month: "month",
24187
24395
  Year: "year"
24188
24396
  };
24397
+ var UpdatePlanVariantDetailsAnchor = {
24398
+ BillingCycle: "billing_cycle",
24399
+ Utc: "utc"
24400
+ };
24189
24401
  var UpdatePlanVariantDetailsThresholdType = {
24190
24402
  Usage: "usage",
24191
24403
  UsagePercentage: "usage_percentage",
@@ -24208,6 +24420,10 @@ var UpdatePlanUsageLimitIntervalResponse = {
24208
24420
  Month: "month",
24209
24421
  Year: "year"
24210
24422
  };
24423
+ var UpdatePlanAnchorResponse = {
24424
+ BillingCycle: "billing_cycle",
24425
+ Utc: "utc"
24426
+ };
24211
24427
  var UpdatePlanThresholdTypeResponse = {
24212
24428
  Usage: "usage",
24213
24429
  UsagePercentage: "usage_percentage",
@@ -24695,6 +24911,7 @@ var UpdatePlanSpendLimitRequestBody$outboundSchema = z76.pipe(
24695
24911
  var UpdatePlanUsageLimitIntervalRequestBody$outboundSchema = z76.enum(
24696
24912
  UpdatePlanUsageLimitIntervalRequestBody
24697
24913
  );
24914
+ var UpdatePlanAnchorRequestBody$outboundSchema = z76.enum(UpdatePlanAnchorRequestBody);
24698
24915
  var UpdatePlanProperties$outboundSchema = smartUnion([z76.string(), z76.number(), z76.boolean()]);
24699
24916
  var UpdatePlanFilterRequestBody$outboundSchema = z76.object({
24700
24917
  properties: z76.record(
@@ -24708,6 +24925,7 @@ var UpdatePlanUsageLimitRequestBody$outboundSchema = z76.pipe(
24708
24925
  enabled: z76._default(z76.boolean(), true),
24709
24926
  limit: z76.number(),
24710
24927
  interval: UpdatePlanUsageLimitIntervalRequestBody$outboundSchema,
24928
+ anchor: z76.optional(UpdatePlanAnchorRequestBody$outboundSchema),
24711
24929
  filter: z76.optional(
24712
24930
  z76.lazy(() => UpdatePlanFilterRequestBody$outboundSchema)
24713
24931
  )
@@ -25019,6 +25237,7 @@ var VariantSpendLimit$outboundSchema = z76.pipe(
25019
25237
  })
25020
25238
  );
25021
25239
  var VariantUsageLimitInterval$outboundSchema = z76.enum(VariantUsageLimitInterval);
25240
+ var VariantAnchor$outboundSchema = z76.enum(VariantAnchor);
25022
25241
  var VariantFilter$outboundSchema = z76.object({
25023
25242
  properties: z76.record(z76.string(), z76.any())
25024
25243
  });
@@ -25028,6 +25247,7 @@ var VariantUsageLimit$outboundSchema = z76.pipe(
25028
25247
  enabled: z76._default(z76.boolean(), true),
25029
25248
  limit: z76.number(),
25030
25249
  interval: VariantUsageLimitInterval$outboundSchema,
25250
+ anchor: z76.optional(VariantAnchor$outboundSchema),
25031
25251
  filter: z76.optional(z76.lazy(() => VariantFilter$outboundSchema))
25032
25252
  }),
25033
25253
  z76.transform((v) => {
@@ -25690,6 +25910,7 @@ var UpdatePlanVariantDetailsSpendLimit$inboundSchema = z76.pipe(
25690
25910
  })
25691
25911
  );
25692
25912
  var UpdatePlanVariantDetailsUsageLimitInterval$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUsageLimitInterval);
25913
+ var UpdatePlanVariantDetailsAnchor$inboundSchema = inboundSchema(UpdatePlanVariantDetailsAnchor);
25693
25914
  var UpdatePlanVariantDetailsFilter$inboundSchema = z76.object({
25694
25915
  properties: z76.record(z76.string(), string5())
25695
25916
  });
@@ -25699,6 +25920,7 @@ var UpdatePlanVariantDetailsUsageLimit$inboundSchema = z76.pipe(
25699
25920
  enabled: z76._default(boolean2(), true),
25700
25921
  limit: number2(),
25701
25922
  interval: UpdatePlanVariantDetailsUsageLimitInterval$inboundSchema,
25923
+ anchor: optional3(UpdatePlanVariantDetailsAnchor$inboundSchema),
25702
25924
  filter: optional3(
25703
25925
  z76.lazy(() => UpdatePlanVariantDetailsFilter$inboundSchema)
25704
25926
  )
@@ -25865,6 +26087,7 @@ var UpdatePlanSpendLimitResponse$inboundSchema = z76.pipe(
25865
26087
  })
25866
26088
  );
25867
26089
  var UpdatePlanUsageLimitIntervalResponse$inboundSchema = inboundSchema(UpdatePlanUsageLimitIntervalResponse);
26090
+ var UpdatePlanAnchorResponse$inboundSchema = inboundSchema(UpdatePlanAnchorResponse);
25868
26091
  var UpdatePlanFilterResponse$inboundSchema = z76.object({
25869
26092
  properties: z76.record(z76.string(), string5())
25870
26093
  });
@@ -25874,6 +26097,7 @@ var UpdatePlanUsageLimitResponse$inboundSchema = z76.pipe(
25874
26097
  enabled: z76._default(boolean2(), true),
25875
26098
  limit: number2(),
25876
26099
  interval: UpdatePlanUsageLimitIntervalResponse$inboundSchema,
26100
+ anchor: optional3(UpdatePlanAnchorResponse$inboundSchema),
25877
26101
  filter: optional3(
25878
26102
  z76.lazy(() => UpdatePlanFilterResponse$inboundSchema)
25879
26103
  )
@@ -28608,6 +28832,7 @@ var Billing = class extends ClientSDK {
28608
28832
  * @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
28609
28833
  * @param redirectMode - Controls when to return a checkout URL for the immediate phase. 'always' forces a confirmation or checkout flow, 'if_required' only redirects when needed, and 'never' disables redirects. (optional)
28610
28834
  * @param billingBehavior - Whether to prorate the immediate phase. 'none' skips proration charges and credits. (optional)
28835
+ * @param noBillingChanges - If true, skips any billing changes for the schedule. (optional)
28611
28836
  * @param billingCycleAnchor - Pass 'now' to reset the billing cycle anchor of the immediate phase to the current time. (optional)
28612
28837
  * @param enablePlanImmediately - If true, the immediate-phase cusProducts are activated immediately (and scheduled-phase cusProducts pre-inserted) even when payment is pending via Stripe checkout. The Autumn schedule rows are persisted on checkout.session.completed. (optional)
28613
28838
  * @param preserveAddOns - Deprecated and ignored. Active plans the schedule does not declare are always retained. (optional)
@@ -33892,6 +34117,7 @@ var attachUsageLimitOutboundSchema = import_v42.z.object({
33892
34117
  enabled: import_v42.z.boolean(),
33893
34118
  limit: import_v42.z.number(),
33894
34119
  interval: import_v42.z.string(),
34120
+ anchor: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
33895
34121
  filter: import_v42.z.union([attachFilterOutboundSchema, import_v42.z.undefined()]).optional()
33896
34122
  });
33897
34123
  var attachUsageAlertOutboundSchema = import_v42.z.object({
@@ -34208,11 +34434,13 @@ var attachSpendLimitSchema = import_v42.z.object({
34208
34434
  skipOverageBilling: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
34209
34435
  });
34210
34436
  var attachUsageLimitIntervalSchema = closedEnumSchema2;
34437
+ var attachAnchorSchema = closedEnumSchema2;
34211
34438
  var attachUsageLimitSchema = import_v42.z.object({
34212
34439
  featureId: import_v42.z.string(),
34213
34440
  enabled: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
34214
34441
  limit: import_v42.z.number(),
34215
34442
  interval: attachUsageLimitIntervalSchema,
34443
+ anchor: import_v42.z.union([attachAnchorSchema, import_v42.z.undefined()]).optional(),
34216
34444
  filter: import_v42.z.union([attachFilterSchema, import_v42.z.undefined()]).optional()
34217
34445
  });
34218
34446
  var attachThresholdTypeSchema = closedEnumSchema2;
@@ -34630,6 +34858,7 @@ var getOrCreateCustomerUsageLimitOutboundSchema = import_v46.z.object({
34630
34858
  enabled: import_v46.z.boolean(),
34631
34859
  limit: import_v46.z.number(),
34632
34860
  interval: import_v46.z.string(),
34861
+ anchor: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
34633
34862
  filter: import_v46.z.union([getOrCreateCustomerFilterOutboundSchema, import_v46.z.undefined()]).optional()
34634
34863
  });
34635
34864
  var getOrCreateCustomerUsageAlertOutboundSchema = import_v46.z.object({
@@ -34707,11 +34936,13 @@ var getOrCreateCustomerSpendLimitSchema = import_v46.z.object({
34707
34936
  skipOverageBilling: import_v46.z.union([import_v46.z.boolean(), import_v46.z.undefined()]).optional()
34708
34937
  });
34709
34938
  var getOrCreateCustomerUsageLimitIntervalSchema = closedEnumSchema5;
34939
+ var getOrCreateCustomerAnchorSchema = closedEnumSchema5;
34710
34940
  var getOrCreateCustomerUsageLimitSchema = import_v46.z.object({
34711
34941
  featureId: import_v46.z.string(),
34712
34942
  enabled: import_v46.z.union([import_v46.z.boolean(), import_v46.z.undefined()]).optional(),
34713
34943
  limit: import_v46.z.number(),
34714
34944
  interval: getOrCreateCustomerUsageLimitIntervalSchema,
34945
+ anchor: import_v46.z.union([getOrCreateCustomerAnchorSchema, import_v46.z.undefined()]).optional(),
34715
34946
  filter: import_v46.z.union([getOrCreateCustomerFilterSchema, import_v46.z.undefined()]).optional()
34716
34947
  });
34717
34948
  var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema5;
@@ -35063,11 +35294,13 @@ var listPlansVariantDetailsSpendLimitSchema = import_v48.z.object({
35063
35294
  skipOverageBilling: import_v48.z.union([import_v48.z.boolean(), import_v48.z.undefined()]).optional()
35064
35295
  });
35065
35296
  var listPlansVariantDetailsUsageLimitIntervalSchema = openEnumSchema6;
35297
+ var listPlansVariantDetailsAnchorSchema = openEnumSchema6;
35066
35298
  var listPlansVariantDetailsUsageLimitSchema = import_v48.z.object({
35067
35299
  featureId: import_v48.z.string(),
35068
35300
  enabled: import_v48.z.boolean(),
35069
35301
  limit: import_v48.z.number(),
35070
35302
  interval: listPlansVariantDetailsUsageLimitIntervalSchema,
35303
+ anchor: import_v48.z.union([listPlansVariantDetailsAnchorSchema, import_v48.z.undefined()]).optional(),
35071
35304
  filter: import_v48.z.union([listPlansVariantDetailsFilterSchema, import_v48.z.undefined()]).optional()
35072
35305
  });
35073
35306
  var listPlansVariantDetailsThresholdTypeSchema = openEnumSchema6;
@@ -35122,11 +35355,13 @@ var listPlansSpendLimitSchema = import_v48.z.object({
35122
35355
  skipOverageBilling: import_v48.z.union([import_v48.z.boolean(), import_v48.z.undefined()]).optional()
35123
35356
  });
35124
35357
  var listPlansUsageLimitIntervalSchema = openEnumSchema6;
35358
+ var listPlansAnchorSchema = openEnumSchema6;
35125
35359
  var listPlansUsageLimitSchema = import_v48.z.object({
35126
35360
  featureId: import_v48.z.string(),
35127
35361
  enabled: import_v48.z.boolean(),
35128
35362
  limit: import_v48.z.number(),
35129
35363
  interval: listPlansUsageLimitIntervalSchema,
35364
+ anchor: import_v48.z.union([listPlansAnchorSchema, import_v48.z.undefined()]).optional(),
35130
35365
  filter: import_v48.z.union([listPlansFilterSchema, import_v48.z.undefined()]).optional()
35131
35366
  });
35132
35367
  var listPlansThresholdTypeSchema = openEnumSchema6;
@@ -35368,6 +35603,7 @@ var multiAttachUsageLimitOutboundSchema = import_v49.z.object({
35368
35603
  enabled: import_v49.z.boolean(),
35369
35604
  limit: import_v49.z.number(),
35370
35605
  interval: import_v49.z.string(),
35606
+ anchor: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
35371
35607
  filter: import_v49.z.union([multiAttachFilterOutboundSchema, import_v49.z.undefined()]).optional()
35372
35608
  });
35373
35609
  var multiAttachUsageAlertOutboundSchema = import_v49.z.object({
@@ -35476,11 +35712,13 @@ var multiAttachSpendLimitSchema = import_v49.z.object({
35476
35712
  skipOverageBilling: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
35477
35713
  });
35478
35714
  var multiAttachEntityDataIntervalSchema = closedEnumSchema6;
35715
+ var multiAttachAnchorSchema = closedEnumSchema6;
35479
35716
  var multiAttachUsageLimitSchema = import_v49.z.object({
35480
35717
  featureId: import_v49.z.string(),
35481
35718
  enabled: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
35482
35719
  limit: import_v49.z.number(),
35483
35720
  interval: multiAttachEntityDataIntervalSchema,
35721
+ anchor: import_v49.z.union([multiAttachAnchorSchema, import_v49.z.undefined()]).optional(),
35484
35722
  filter: import_v49.z.union([multiAttachFilterSchema, import_v49.z.undefined()]).optional()
35485
35723
  });
35486
35724
  var multiAttachThresholdTypeSchema = closedEnumSchema6;
@@ -35941,6 +36179,7 @@ var previewAttachUsageLimitOutboundSchema = import_v411.z.object({
35941
36179
  enabled: import_v411.z.boolean(),
35942
36180
  limit: import_v411.z.number(),
35943
36181
  interval: import_v411.z.string(),
36182
+ anchor: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
35944
36183
  filter: import_v411.z.union([previewAttachFilterOutboundSchema, import_v411.z.undefined()]).optional()
35945
36184
  });
35946
36185
  var previewAttachUsageAlertOutboundSchema = import_v411.z.object({
@@ -36272,11 +36511,13 @@ var previewAttachSpendLimitSchema = import_v411.z.object({
36272
36511
  skipOverageBilling: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional()
36273
36512
  });
36274
36513
  var previewAttachUsageLimitIntervalSchema = closedEnumSchema7;
36514
+ var previewAttachAnchorSchema = closedEnumSchema7;
36275
36515
  var previewAttachUsageLimitSchema = import_v411.z.object({
36276
36516
  featureId: import_v411.z.string(),
36277
36517
  enabled: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
36278
36518
  limit: import_v411.z.number(),
36279
36519
  interval: previewAttachUsageLimitIntervalSchema,
36520
+ anchor: import_v411.z.union([previewAttachAnchorSchema, import_v411.z.undefined()]).optional(),
36280
36521
  filter: import_v411.z.union([previewAttachFilterSchema, import_v411.z.undefined()]).optional()
36281
36522
  });
36282
36523
  var previewAttachThresholdTypeSchema = closedEnumSchema7;
@@ -36732,6 +36973,7 @@ var previewMultiAttachUsageLimitOutboundSchema = import_v412.z.object({
36732
36973
  enabled: import_v412.z.boolean(),
36733
36974
  limit: import_v412.z.number(),
36734
36975
  interval: import_v412.z.string(),
36976
+ anchor: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
36735
36977
  filter: import_v412.z.union([previewMultiAttachFilterOutboundSchema, import_v412.z.undefined()]).optional()
36736
36978
  });
36737
36979
  var previewMultiAttachUsageAlertOutboundSchema = import_v412.z.object({
@@ -36850,11 +37092,13 @@ var previewMultiAttachSpendLimitSchema = import_v412.z.object({
36850
37092
  skipOverageBilling: import_v412.z.union([import_v412.z.boolean(), import_v412.z.undefined()]).optional()
36851
37093
  });
36852
37094
  var previewMultiAttachEntityDataIntervalSchema = closedEnumSchema8;
37095
+ var previewMultiAttachAnchorSchema = closedEnumSchema8;
36853
37096
  var previewMultiAttachUsageLimitSchema = import_v412.z.object({
36854
37097
  featureId: import_v412.z.string(),
36855
37098
  enabled: import_v412.z.union([import_v412.z.boolean(), import_v412.z.undefined()]).optional(),
36856
37099
  limit: import_v412.z.number(),
36857
37100
  interval: previewMultiAttachEntityDataIntervalSchema,
37101
+ anchor: import_v412.z.union([previewMultiAttachAnchorSchema, import_v412.z.undefined()]).optional(),
36858
37102
  filter: import_v412.z.union([previewMultiAttachFilterSchema, import_v412.z.undefined()]).optional()
36859
37103
  });
36860
37104
  var previewMultiAttachThresholdTypeSchema = closedEnumSchema8;
@@ -37321,6 +37565,7 @@ var previewUpdateUsageLimitOutboundSchema = import_v413.z.object({
37321
37565
  enabled: import_v413.z.boolean(),
37322
37566
  limit: import_v413.z.number(),
37323
37567
  interval: import_v413.z.string(),
37568
+ anchor: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
37324
37569
  filter: import_v413.z.union([previewUpdateFilterOutboundSchema, import_v413.z.undefined()]).optional()
37325
37570
  });
37326
37571
  var previewUpdateUsageAlertOutboundSchema = import_v413.z.object({
@@ -37635,11 +37880,13 @@ var previewUpdateSpendLimitSchema = import_v413.z.object({
37635
37880
  skipOverageBilling: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
37636
37881
  });
37637
37882
  var previewUpdateUsageLimitIntervalSchema = closedEnumSchema9;
37883
+ var previewUpdateAnchorSchema = closedEnumSchema9;
37638
37884
  var previewUpdateUsageLimitSchema = import_v413.z.object({
37639
37885
  featureId: import_v413.z.string(),
37640
37886
  enabled: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
37641
37887
  limit: import_v413.z.number(),
37642
37888
  interval: previewUpdateUsageLimitIntervalSchema,
37889
+ anchor: import_v413.z.union([previewUpdateAnchorSchema, import_v413.z.undefined()]).optional(),
37643
37890
  filter: import_v413.z.union([previewUpdateFilterSchema, import_v413.z.undefined()]).optional()
37644
37891
  });
37645
37892
  var previewUpdateThresholdTypeSchema = closedEnumSchema9;
@@ -38138,6 +38385,7 @@ var setupPaymentUsageLimitOutboundSchema = import_v415.z.object({
38138
38385
  enabled: import_v415.z.boolean(),
38139
38386
  limit: import_v415.z.number(),
38140
38387
  interval: import_v415.z.string(),
38388
+ anchor: import_v415.z.union([import_v415.z.string(), import_v415.z.undefined()]).optional(),
38141
38389
  filter: import_v415.z.union([setupPaymentFilterOutboundSchema, import_v415.z.undefined()]).optional()
38142
38390
  });
38143
38391
  var setupPaymentUsageAlertOutboundSchema = import_v415.z.object({
@@ -38450,11 +38698,13 @@ var setupPaymentSpendLimitSchema = import_v415.z.object({
38450
38698
  skipOverageBilling: import_v415.z.union([import_v415.z.boolean(), import_v415.z.undefined()]).optional()
38451
38699
  });
38452
38700
  var setupPaymentUsageLimitIntervalSchema = closedEnumSchema10;
38701
+ var setupPaymentAnchorSchema = closedEnumSchema10;
38453
38702
  var setupPaymentUsageLimitSchema = import_v415.z.object({
38454
38703
  featureId: import_v415.z.string(),
38455
38704
  enabled: import_v415.z.union([import_v415.z.boolean(), import_v415.z.undefined()]).optional(),
38456
38705
  limit: import_v415.z.number(),
38457
38706
  interval: setupPaymentUsageLimitIntervalSchema,
38707
+ anchor: import_v415.z.union([setupPaymentAnchorSchema, import_v415.z.undefined()]).optional(),
38458
38708
  filter: import_v415.z.union([setupPaymentFilterSchema, import_v415.z.undefined()]).optional()
38459
38709
  });
38460
38710
  var setupPaymentThresholdTypeSchema = closedEnumSchema10;
@@ -38901,6 +39151,7 @@ var billingUpdateUsageLimitOutboundSchema = import_v416.z.object({
38901
39151
  enabled: import_v416.z.boolean(),
38902
39152
  limit: import_v416.z.number(),
38903
39153
  interval: import_v416.z.string(),
39154
+ anchor: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
38904
39155
  filter: import_v416.z.union([billingUpdateFilterOutboundSchema, import_v416.z.undefined()]).optional()
38905
39156
  });
38906
39157
  var billingUpdateUsageAlertOutboundSchema = import_v416.z.object({
@@ -39211,11 +39462,13 @@ var billingUpdateSpendLimitSchema = import_v416.z.object({
39211
39462
  skipOverageBilling: import_v416.z.union([import_v416.z.boolean(), import_v416.z.undefined()]).optional()
39212
39463
  });
39213
39464
  var billingUpdateUsageLimitIntervalSchema = closedEnumSchema11;
39465
+ var billingUpdateAnchorSchema = closedEnumSchema11;
39214
39466
  var billingUpdateUsageLimitSchema = import_v416.z.object({
39215
39467
  featureId: import_v416.z.string(),
39216
39468
  enabled: import_v416.z.union([import_v416.z.boolean(), import_v416.z.undefined()]).optional(),
39217
39469
  limit: import_v416.z.number(),
39218
39470
  interval: billingUpdateUsageLimitIntervalSchema,
39471
+ anchor: import_v416.z.union([billingUpdateAnchorSchema, import_v416.z.undefined()]).optional(),
39219
39472
  filter: import_v416.z.union([billingUpdateFilterSchema, import_v416.z.undefined()]).optional()
39220
39473
  });
39221
39474
  var billingUpdateThresholdTypeSchema = closedEnumSchema11;