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
@@ -1671,6 +1671,10 @@ var AttachUsageLimitInterval = {
1671
1671
  Month: "month",
1672
1672
  Year: "year"
1673
1673
  };
1674
+ var AttachAnchor = {
1675
+ BillingCycle: "billing_cycle",
1676
+ Utc: "utc"
1677
+ };
1674
1678
  var AttachThresholdType = {
1675
1679
  Usage: "usage",
1676
1680
  UsagePercentage: "usage_percentage",
@@ -2139,6 +2143,7 @@ var AttachSpendLimit$outboundSchema = z11.pipe(
2139
2143
  })
2140
2144
  );
2141
2145
  var AttachUsageLimitInterval$outboundSchema = z11.enum(AttachUsageLimitInterval);
2146
+ var AttachAnchor$outboundSchema = z11.enum(AttachAnchor);
2142
2147
  var AttachProperties$outboundSchema = smartUnion([z11.string(), z11.number(), z11.boolean()]);
2143
2148
  var AttachFilter$outboundSchema = z11.object({
2144
2149
  properties: z11.record(
@@ -2152,6 +2157,7 @@ var AttachUsageLimit$outboundSchema = z11.pipe(
2152
2157
  enabled: z11._default(z11.boolean(), true),
2153
2158
  limit: z11.number(),
2154
2159
  interval: AttachUsageLimitInterval$outboundSchema,
2160
+ anchor: z11.optional(AttachAnchor$outboundSchema),
2155
2161
  filter: z11.optional(z11.lazy(() => AttachFilter$outboundSchema))
2156
2162
  }),
2157
2163
  z11.transform((v) => {
@@ -3034,6 +3040,10 @@ var BillingUpdateUsageLimitInterval = {
3034
3040
  Month: "month",
3035
3041
  Year: "year"
3036
3042
  };
3043
+ var BillingUpdateAnchor = {
3044
+ BillingCycle: "billing_cycle",
3045
+ Utc: "utc"
3046
+ };
3037
3047
  var BillingUpdateThresholdType = {
3038
3048
  Usage: "usage",
3039
3049
  UsagePercentage: "usage_percentage",
@@ -3525,6 +3535,7 @@ var BillingUpdateSpendLimit$outboundSchema = z14.pipe(
3525
3535
  })
3526
3536
  );
3527
3537
  var BillingUpdateUsageLimitInterval$outboundSchema = z14.enum(BillingUpdateUsageLimitInterval);
3538
+ var BillingUpdateAnchor$outboundSchema = z14.enum(BillingUpdateAnchor);
3528
3539
  var BillingUpdateProperties$outboundSchema = smartUnion([z14.string(), z14.number(), z14.boolean()]);
3529
3540
  var BillingUpdateFilter$outboundSchema = z14.object({
3530
3541
  properties: z14.record(
@@ -3538,6 +3549,7 @@ var BillingUpdateUsageLimit$outboundSchema = z14.pipe(
3538
3549
  enabled: z14._default(z14.boolean(), true),
3539
3550
  limit: z14.number(),
3540
3551
  interval: BillingUpdateUsageLimitInterval$outboundSchema,
3552
+ anchor: z14.optional(BillingUpdateAnchor$outboundSchema),
3541
3553
  filter: z14.optional(z14.lazy(() => BillingUpdateFilter$outboundSchema))
3542
3554
  }),
3543
3555
  z14.transform((v) => {
@@ -4094,6 +4106,10 @@ var CheckUsageLimitInterval2 = {
4094
4106
  Month: "month",
4095
4107
  Year: "year"
4096
4108
  };
4109
+ var CheckAnchor2 = {
4110
+ BillingCycle: "billing_cycle",
4111
+ Utc: "utc"
4112
+ };
4097
4113
  var CheckThresholdType2 = {
4098
4114
  Usage: "usage",
4099
4115
  UsagePercentage: "usage_percentage",
@@ -4197,6 +4213,10 @@ var CheckUsageLimitInterval1 = {
4197
4213
  Month: "month",
4198
4214
  Year: "year"
4199
4215
  };
4216
+ var CheckAnchor1 = {
4217
+ BillingCycle: "billing_cycle",
4218
+ Utc: "utc"
4219
+ };
4200
4220
  var CheckThresholdType1 = {
4201
4221
  Usage: "usage",
4202
4222
  UsagePercentage: "usage_percentage",
@@ -4494,6 +4514,7 @@ var CheckSpendLimit2$inboundSchema = z15.pipe(
4494
4514
  })
4495
4515
  );
4496
4516
  var CheckUsageLimitInterval2$inboundSchema = inboundSchema(CheckUsageLimitInterval2);
4517
+ var CheckAnchor2$inboundSchema = inboundSchema(CheckAnchor2);
4497
4518
  var CheckFilter2$inboundSchema = z15.object({
4498
4519
  properties: z15.record(z15.string(), string5())
4499
4520
  });
@@ -4503,6 +4524,7 @@ var CheckUsageLimit2$inboundSchema = z15.pipe(
4503
4524
  enabled: z15._default(boolean2(), true),
4504
4525
  limit: number2(),
4505
4526
  interval: CheckUsageLimitInterval2$inboundSchema,
4527
+ anchor: optional3(CheckAnchor2$inboundSchema),
4506
4528
  filter: optional3(z15.lazy(() => CheckFilter2$inboundSchema))
4507
4529
  }),
4508
4530
  z15.transform((v) => {
@@ -4896,6 +4918,7 @@ var CheckSpendLimit1$inboundSchema = z15.pipe(
4896
4918
  })
4897
4919
  );
4898
4920
  var CheckUsageLimitInterval1$inboundSchema = inboundSchema(CheckUsageLimitInterval1);
4921
+ var CheckAnchor1$inboundSchema = inboundSchema(CheckAnchor1);
4899
4922
  var CheckFilter1$inboundSchema = z15.object({
4900
4923
  properties: z15.record(z15.string(), string5())
4901
4924
  });
@@ -4905,6 +4928,7 @@ var CheckUsageLimit1$inboundSchema = z15.pipe(
4905
4928
  enabled: z15._default(boolean2(), true),
4906
4929
  limit: number2(),
4907
4930
  interval: CheckUsageLimitInterval1$inboundSchema,
4931
+ anchor: optional3(CheckAnchor1$inboundSchema),
4908
4932
  filter: optional3(z15.lazy(() => CheckFilter1$inboundSchema))
4909
4933
  }),
4910
4934
  z15.transform((v) => {
@@ -5152,6 +5176,10 @@ var CustomerDataUsageLimitInterval = {
5152
5176
  Month: "month",
5153
5177
  Year: "year"
5154
5178
  };
5179
+ var CustomerDataAnchor = {
5180
+ BillingCycle: "billing_cycle",
5181
+ Utc: "utc"
5182
+ };
5155
5183
  var CustomerDataThresholdType = {
5156
5184
  Usage: "usage",
5157
5185
  UsagePercentage: "usage_percentage",
@@ -5210,6 +5238,7 @@ var CustomerDataSpendLimit$outboundSchema = z17.pipe(
5210
5238
  })
5211
5239
  );
5212
5240
  var CustomerDataUsageLimitInterval$outboundSchema = z17.enum(CustomerDataUsageLimitInterval);
5241
+ var CustomerDataAnchor$outboundSchema = z17.enum(CustomerDataAnchor);
5213
5242
  var Properties$outboundSchema = smartUnion([z17.string(), z17.number(), z17.boolean()]);
5214
5243
  var CustomerDataFilter$outboundSchema = z17.object({
5215
5244
  properties: z17.record(
@@ -5223,6 +5252,7 @@ var CustomerDataUsageLimit$outboundSchema = z17.pipe(
5223
5252
  enabled: z17._default(z17.boolean(), true),
5224
5253
  limit: z17.number(),
5225
5254
  interval: CustomerDataUsageLimitInterval$outboundSchema,
5255
+ anchor: z17.optional(CustomerDataAnchor$outboundSchema),
5226
5256
  filter: z17.optional(z17.lazy(() => CustomerDataFilter$outboundSchema))
5227
5257
  }),
5228
5258
  z17.transform((v) => {
@@ -5487,6 +5517,10 @@ var PlanVariantDetailsUsageLimitInterval = {
5487
5517
  Month: "month",
5488
5518
  Year: "year"
5489
5519
  };
5520
+ var PlanVariantDetailsAnchor = {
5521
+ BillingCycle: "billing_cycle",
5522
+ Utc: "utc"
5523
+ };
5490
5524
  var PlanVariantDetailsThresholdType = {
5491
5525
  Usage: "usage",
5492
5526
  UsagePercentage: "usage_percentage",
@@ -5509,6 +5543,10 @@ var PlanUsageLimitInterval = {
5509
5543
  Month: "month",
5510
5544
  Year: "year"
5511
5545
  };
5546
+ var PlanAnchor = {
5547
+ BillingCycle: "billing_cycle",
5548
+ Utc: "utc"
5549
+ };
5512
5550
  var PlanThresholdType = {
5513
5551
  Usage: "usage",
5514
5552
  UsagePercentage: "usage_percentage",
@@ -5983,6 +6021,7 @@ var PlanVariantDetailsSpendLimit$inboundSchema = z18.pipe(
5983
6021
  })
5984
6022
  );
5985
6023
  var PlanVariantDetailsUsageLimitInterval$inboundSchema = inboundSchema(PlanVariantDetailsUsageLimitInterval);
6024
+ var PlanVariantDetailsAnchor$inboundSchema = inboundSchema(PlanVariantDetailsAnchor);
5986
6025
  var PlanVariantDetailsFilter$inboundSchema = z18.object({
5987
6026
  properties: z18.record(z18.string(), string5())
5988
6027
  });
@@ -5992,6 +6031,7 @@ var PlanVariantDetailsUsageLimit$inboundSchema = z18.pipe(
5992
6031
  enabled: z18._default(boolean2(), true),
5993
6032
  limit: number2(),
5994
6033
  interval: PlanVariantDetailsUsageLimitInterval$inboundSchema,
6034
+ anchor: optional3(PlanVariantDetailsAnchor$inboundSchema),
5995
6035
  filter: optional3(
5996
6036
  z18.lazy(() => PlanVariantDetailsFilter$inboundSchema)
5997
6037
  )
@@ -6154,6 +6194,7 @@ var PlanSpendLimit$inboundSchema = z18.pipe(
6154
6194
  })
6155
6195
  );
6156
6196
  var PlanUsageLimitInterval$inboundSchema = inboundSchema(PlanUsageLimitInterval);
6197
+ var PlanAnchor$inboundSchema = inboundSchema(PlanAnchor);
6157
6198
  var PlanFilter$inboundSchema = z18.object({
6158
6199
  properties: z18.record(z18.string(), string5())
6159
6200
  });
@@ -6163,6 +6204,7 @@ var PlanUsageLimit$inboundSchema = z18.pipe(
6163
6204
  enabled: z18._default(boolean2(), true),
6164
6205
  limit: number2(),
6165
6206
  interval: PlanUsageLimitInterval$inboundSchema,
6207
+ anchor: optional3(PlanAnchor$inboundSchema),
6166
6208
  filter: optional3(z18.lazy(() => PlanFilter$inboundSchema))
6167
6209
  }),
6168
6210
  z18.transform((v) => {
@@ -6294,6 +6336,10 @@ var CreateEntityIntervalRequestBody = {
6294
6336
  Month: "month",
6295
6337
  Year: "year"
6296
6338
  };
6339
+ var CreateEntityAnchorRequestBody = {
6340
+ BillingCycle: "billing_cycle",
6341
+ Utc: "utc"
6342
+ };
6297
6343
  var CreateEntityThresholdTypeRequestBody = {
6298
6344
  Usage: "usage",
6299
6345
  UsagePercentage: "usage_percentage",
@@ -6336,6 +6382,10 @@ var CreateEntityIntervalResponse = {
6336
6382
  Month: "month",
6337
6383
  Year: "year"
6338
6384
  };
6385
+ var CreateEntityAnchorResponse = {
6386
+ BillingCycle: "billing_cycle",
6387
+ Utc: "utc"
6388
+ };
6339
6389
  var CreateEntityUsageLimitSource = {
6340
6390
  Customer: "customer",
6341
6391
  Plan: "plan"
@@ -6377,6 +6427,7 @@ var CreateEntitySpendLimitRequestBody$outboundSchema = z19.pipe(
6377
6427
  })
6378
6428
  );
6379
6429
  var CreateEntityIntervalRequestBody$outboundSchema = z19.enum(CreateEntityIntervalRequestBody);
6430
+ var CreateEntityAnchorRequestBody$outboundSchema = z19.enum(CreateEntityAnchorRequestBody);
6380
6431
  var CreateEntityProperties$outboundSchema = smartUnion([z19.string(), z19.number(), z19.boolean()]);
6381
6432
  var CreateEntityFilterRequestBody$outboundSchema = z19.object({
6382
6433
  properties: z19.record(
@@ -6390,6 +6441,7 @@ var CreateEntityUsageLimitRequestBody$outboundSchema = z19.pipe(
6390
6441
  enabled: z19._default(z19.boolean(), true),
6391
6442
  limit: z19.number(),
6392
6443
  interval: CreateEntityIntervalRequestBody$outboundSchema,
6444
+ anchor: z19.optional(CreateEntityAnchorRequestBody$outboundSchema),
6393
6445
  filter: z19.optional(
6394
6446
  z19.lazy(() => CreateEntityFilterRequestBody$outboundSchema)
6395
6447
  )
@@ -6630,6 +6682,7 @@ var CreateEntitySpendLimitResponse$inboundSchema = z19.pipe(
6630
6682
  })
6631
6683
  );
6632
6684
  var CreateEntityIntervalResponse$inboundSchema = inboundSchema(CreateEntityIntervalResponse);
6685
+ var CreateEntityAnchorResponse$inboundSchema = inboundSchema(CreateEntityAnchorResponse);
6633
6686
  var CreateEntityFilterResponse$inboundSchema = z19.object({
6634
6687
  properties: z19.record(z19.string(), string5())
6635
6688
  });
@@ -6640,6 +6693,7 @@ var CreateEntityUsageLimitResponse$inboundSchema = z19.pipe(
6640
6693
  enabled: z19._default(boolean2(), true),
6641
6694
  limit: number2(),
6642
6695
  interval: CreateEntityIntervalResponse$inboundSchema,
6696
+ anchor: optional3(CreateEntityAnchorResponse$inboundSchema),
6643
6697
  filter: optional3(
6644
6698
  z19.lazy(() => CreateEntityFilterResponse$inboundSchema)
6645
6699
  ),
@@ -7072,6 +7126,10 @@ var CreatePlanUsageLimitIntervalRequestBody = {
7072
7126
  Month: "month",
7073
7127
  Year: "year"
7074
7128
  };
7129
+ var CreatePlanAnchorRequestBody = {
7130
+ BillingCycle: "billing_cycle",
7131
+ Utc: "utc"
7132
+ };
7075
7133
  var CreatePlanThresholdTypeRequestBody = {
7076
7134
  Usage: "usage",
7077
7135
  UsagePercentage: "usage_percentage",
@@ -7238,6 +7296,10 @@ var CreatePlanVariantDetailsUsageLimitInterval = {
7238
7296
  Month: "month",
7239
7297
  Year: "year"
7240
7298
  };
7299
+ var CreatePlanVariantDetailsAnchor = {
7300
+ BillingCycle: "billing_cycle",
7301
+ Utc: "utc"
7302
+ };
7241
7303
  var CreatePlanVariantDetailsThresholdType = {
7242
7304
  Usage: "usage",
7243
7305
  UsagePercentage: "usage_percentage",
@@ -7260,6 +7322,10 @@ var CreatePlanUsageLimitIntervalResponse = {
7260
7322
  Month: "month",
7261
7323
  Year: "year"
7262
7324
  };
7325
+ var CreatePlanAnchorResponse = {
7326
+ BillingCycle: "billing_cycle",
7327
+ Utc: "utc"
7328
+ };
7263
7329
  var CreatePlanThresholdTypeResponse = {
7264
7330
  Usage: "usage",
7265
7331
  UsagePercentage: "usage_percentage",
@@ -7747,6 +7813,7 @@ var CreatePlanSpendLimitRequestBody$outboundSchema = z21.pipe(
7747
7813
  var CreatePlanUsageLimitIntervalRequestBody$outboundSchema = z21.enum(
7748
7814
  CreatePlanUsageLimitIntervalRequestBody
7749
7815
  );
7816
+ var CreatePlanAnchorRequestBody$outboundSchema = z21.enum(CreatePlanAnchorRequestBody);
7750
7817
  var CreatePlanProperties$outboundSchema = smartUnion([z21.string(), z21.number(), z21.boolean()]);
7751
7818
  var CreatePlanFilterRequestBody$outboundSchema = z21.object({
7752
7819
  properties: z21.record(
@@ -7760,6 +7827,7 @@ var CreatePlanUsageLimitRequestBody$outboundSchema = z21.pipe(
7760
7827
  enabled: z21._default(z21.boolean(), true),
7761
7828
  limit: z21.number(),
7762
7829
  interval: CreatePlanUsageLimitIntervalRequestBody$outboundSchema,
7830
+ anchor: z21.optional(CreatePlanAnchorRequestBody$outboundSchema),
7763
7831
  filter: z21.optional(
7764
7832
  z21.lazy(() => CreatePlanFilterRequestBody$outboundSchema)
7765
7833
  )
@@ -8336,6 +8404,7 @@ var CreatePlanVariantDetailsSpendLimit$inboundSchema = z21.pipe(
8336
8404
  })
8337
8405
  );
8338
8406
  var CreatePlanVariantDetailsUsageLimitInterval$inboundSchema = inboundSchema(CreatePlanVariantDetailsUsageLimitInterval);
8407
+ var CreatePlanVariantDetailsAnchor$inboundSchema = inboundSchema(CreatePlanVariantDetailsAnchor);
8339
8408
  var CreatePlanVariantDetailsFilter$inboundSchema = z21.object({
8340
8409
  properties: z21.record(z21.string(), string5())
8341
8410
  });
@@ -8345,6 +8414,7 @@ var CreatePlanVariantDetailsUsageLimit$inboundSchema = z21.pipe(
8345
8414
  enabled: z21._default(boolean2(), true),
8346
8415
  limit: number2(),
8347
8416
  interval: CreatePlanVariantDetailsUsageLimitInterval$inboundSchema,
8417
+ anchor: optional3(CreatePlanVariantDetailsAnchor$inboundSchema),
8348
8418
  filter: optional3(
8349
8419
  z21.lazy(() => CreatePlanVariantDetailsFilter$inboundSchema)
8350
8420
  )
@@ -8511,6 +8581,7 @@ var CreatePlanSpendLimitResponse$inboundSchema = z21.pipe(
8511
8581
  })
8512
8582
  );
8513
8583
  var CreatePlanUsageLimitIntervalResponse$inboundSchema = inboundSchema(CreatePlanUsageLimitIntervalResponse);
8584
+ var CreatePlanAnchorResponse$inboundSchema = inboundSchema(CreatePlanAnchorResponse);
8514
8585
  var CreatePlanFilterResponse$inboundSchema = z21.object({
8515
8586
  properties: z21.record(z21.string(), string5())
8516
8587
  });
@@ -8520,6 +8591,7 @@ var CreatePlanUsageLimitResponse$inboundSchema = z21.pipe(
8520
8591
  enabled: z21._default(boolean2(), true),
8521
8592
  limit: number2(),
8522
8593
  interval: CreatePlanUsageLimitIntervalResponse$inboundSchema,
8594
+ anchor: optional3(CreatePlanAnchorResponse$inboundSchema),
8523
8595
  filter: optional3(
8524
8596
  z21.lazy(() => CreatePlanFilterResponse$inboundSchema)
8525
8597
  )
@@ -9128,6 +9200,10 @@ var UnscheduledPlanUsageLimitInterval = {
9128
9200
  Month: "month",
9129
9201
  Year: "year"
9130
9202
  };
9203
+ var UnscheduledPlanAnchor = {
9204
+ BillingCycle: "billing_cycle",
9205
+ Utc: "utc"
9206
+ };
9131
9207
  var UnscheduledPlanThresholdType = {
9132
9208
  Usage: "usage",
9133
9209
  UsagePercentage: "usage_percentage",
@@ -9273,6 +9349,10 @@ var PhaseStartUsageLimitInterval = {
9273
9349
  Month: "month",
9274
9350
  Year: "year"
9275
9351
  };
9352
+ var PhaseStartAnchor = {
9353
+ BillingCycle: "billing_cycle",
9354
+ Utc: "utc"
9355
+ };
9276
9356
  var PhaseStartThresholdType = {
9277
9357
  Usage: "usage",
9278
9358
  UsagePercentage: "usage_percentage",
@@ -9721,6 +9801,7 @@ var UnscheduledPlanSpendLimit$outboundSchema = z25.pipe(
9721
9801
  })
9722
9802
  );
9723
9803
  var UnscheduledPlanUsageLimitInterval$outboundSchema = z25.enum(UnscheduledPlanUsageLimitInterval);
9804
+ var UnscheduledPlanAnchor$outboundSchema = z25.enum(UnscheduledPlanAnchor);
9724
9805
  var CreateScheduleProperties$outboundSchema = smartUnion([z25.string(), z25.number(), z25.boolean()]);
9725
9806
  var UnscheduledPlanFilter$outboundSchema = z25.object({
9726
9807
  properties: z25.record(
@@ -9734,6 +9815,7 @@ var UnscheduledPlanUsageLimit$outboundSchema = z25.pipe(
9734
9815
  enabled: z25._default(z25.boolean(), true),
9735
9816
  limit: z25.number(),
9736
9817
  interval: UnscheduledPlanUsageLimitInterval$outboundSchema,
9818
+ anchor: z25.optional(UnscheduledPlanAnchor$outboundSchema),
9737
9819
  filter: z25.optional(z25.lazy(() => UnscheduledPlanFilter$outboundSchema))
9738
9820
  }),
9739
9821
  z25.transform((v) => {
@@ -10187,6 +10269,7 @@ var PhaseStartSpendLimit$outboundSchema = z25.pipe(
10187
10269
  })
10188
10270
  );
10189
10271
  var PhaseStartUsageLimitInterval$outboundSchema = z25.enum(PhaseStartUsageLimitInterval);
10272
+ var PhaseStartAnchor$outboundSchema = z25.enum(PhaseStartAnchor);
10190
10273
  var PhaseStartFilter$outboundSchema = z25.object({
10191
10274
  properties: z25.record(z25.string(), z25.any())
10192
10275
  });
@@ -10196,6 +10279,7 @@ var PhaseStartUsageLimit$outboundSchema = z25.pipe(
10196
10279
  enabled: z25._default(z25.boolean(), true),
10197
10280
  limit: z25.number(),
10198
10281
  interval: PhaseStartUsageLimitInterval$outboundSchema,
10282
+ anchor: z25.optional(PhaseStartAnchor$outboundSchema),
10199
10283
  filter: z25.optional(z25.lazy(() => PhaseStartFilter$outboundSchema))
10200
10284
  }),
10201
10285
  z25.transform((v) => {
@@ -10343,6 +10427,7 @@ var CreateScheduleParams$outboundSchema = z25.pipe(
10343
10427
  "if_required"
10344
10428
  ),
10345
10429
  billingBehavior: z25.optional(CreateScheduleBillingBehavior$outboundSchema),
10430
+ noBillingChanges: z25.optional(z25.boolean()),
10346
10431
  billingCycleAnchor: z25.optional(z25.literal("now")),
10347
10432
  enablePlanImmediately: z25.optional(z25.boolean()),
10348
10433
  preserveAddOns: z25.optional(z25.boolean()),
@@ -10361,6 +10446,7 @@ var CreateScheduleParams$outboundSchema = z25.pipe(
10361
10446
  checkoutSessionParams: "checkout_session_params",
10362
10447
  redirectMode: "redirect_mode",
10363
10448
  billingBehavior: "billing_behavior",
10449
+ noBillingChanges: "no_billing_changes",
10364
10450
  billingCycleAnchor: "billing_cycle_anchor",
10365
10451
  enablePlanImmediately: "enable_plan_immediately",
10366
10452
  preserveAddOns: "preserve_add_ons",
@@ -10481,6 +10567,10 @@ var CustomerUsageLimitInterval = {
10481
10567
  Month: "month",
10482
10568
  Year: "year"
10483
10569
  };
10570
+ var CustomerAnchor = {
10571
+ BillingCycle: "billing_cycle",
10572
+ Utc: "utc"
10573
+ };
10484
10574
  var UsageLimitSource = {
10485
10575
  Customer: "customer",
10486
10576
  Plan: "plan"
@@ -10614,6 +10704,7 @@ var CustomerSpendLimit$inboundSchema = z27.pipe(
10614
10704
  })
10615
10705
  );
10616
10706
  var CustomerUsageLimitInterval$inboundSchema = inboundSchema(CustomerUsageLimitInterval);
10707
+ var CustomerAnchor$inboundSchema = inboundSchema(CustomerAnchor);
10617
10708
  var CustomerFilter$inboundSchema = z27.object({
10618
10709
  properties: z27.record(z27.string(), string5())
10619
10710
  });
@@ -10624,6 +10715,7 @@ var CustomerUsageLimit$inboundSchema = z27.pipe(
10624
10715
  enabled: z27._default(boolean2(), true),
10625
10716
  limit: number2(),
10626
10717
  interval: CustomerUsageLimitInterval$inboundSchema,
10718
+ anchor: optional3(CustomerAnchor$inboundSchema),
10627
10719
  filter: optional3(z27.lazy(() => CustomerFilter$inboundSchema)),
10628
10720
  usage: optional3(number2()),
10629
10721
  source: optional3(UsageLimitSource$inboundSchema)
@@ -11295,6 +11387,10 @@ var GetCustomerUsageLimitInterval = {
11295
11387
  Month: "month",
11296
11388
  Year: "year"
11297
11389
  };
11390
+ var GetCustomerAnchor = {
11391
+ BillingCycle: "billing_cycle",
11392
+ Utc: "utc"
11393
+ };
11298
11394
  var GetCustomerUsageLimitSource = {
11299
11395
  Customer: "customer",
11300
11396
  Plan: "plan"
@@ -11439,6 +11535,7 @@ var GetCustomerSpendLimit$inboundSchema = z36.pipe(
11439
11535
  })
11440
11536
  );
11441
11537
  var GetCustomerUsageLimitInterval$inboundSchema = inboundSchema(GetCustomerUsageLimitInterval);
11538
+ var GetCustomerAnchor$inboundSchema = inboundSchema(GetCustomerAnchor);
11442
11539
  var GetCustomerFilter$inboundSchema = z36.object({
11443
11540
  properties: z36.record(z36.string(), string5())
11444
11541
  });
@@ -11449,6 +11546,7 @@ var GetCustomerUsageLimit$inboundSchema = z36.pipe(
11449
11546
  enabled: z36._default(boolean2(), true),
11450
11547
  limit: number2(),
11451
11548
  interval: GetCustomerUsageLimitInterval$inboundSchema,
11549
+ anchor: optional3(GetCustomerAnchor$inboundSchema),
11452
11550
  filter: optional3(z36.lazy(() => GetCustomerFilter$inboundSchema)),
11453
11551
  usage: optional3(number2()),
11454
11552
  source: optional3(GetCustomerUsageLimitSource$inboundSchema)
@@ -11964,6 +12062,10 @@ var GetEntityInterval = {
11964
12062
  Month: "month",
11965
12063
  Year: "year"
11966
12064
  };
12065
+ var GetEntityAnchor = {
12066
+ BillingCycle: "billing_cycle",
12067
+ Utc: "utc"
12068
+ };
11967
12069
  var GetEntityUsageLimitSource = {
11968
12070
  Customer: "customer",
11969
12071
  Plan: "plan"
@@ -12156,6 +12258,7 @@ var GetEntitySpendLimit$inboundSchema = z37.pipe(
12156
12258
  })
12157
12259
  );
12158
12260
  var GetEntityInterval$inboundSchema = inboundSchema(GetEntityInterval);
12261
+ var GetEntityAnchor$inboundSchema = inboundSchema(GetEntityAnchor);
12159
12262
  var GetEntityFilter$inboundSchema = z37.object({
12160
12263
  properties: z37.record(z37.string(), string5())
12161
12264
  });
@@ -12166,6 +12269,7 @@ var GetEntityUsageLimit$inboundSchema = z37.pipe(
12166
12269
  enabled: z37._default(boolean2(), true),
12167
12270
  limit: number2(),
12168
12271
  interval: GetEntityInterval$inboundSchema,
12272
+ anchor: optional3(GetEntityAnchor$inboundSchema),
12169
12273
  filter: optional3(z37.lazy(() => GetEntityFilter$inboundSchema)),
12170
12274
  usage: optional3(number2()),
12171
12275
  source: optional3(GetEntityUsageLimitSource$inboundSchema)
@@ -12386,6 +12490,10 @@ var GetOrCreateCustomerUsageLimitInterval = {
12386
12490
  Month: "month",
12387
12491
  Year: "year"
12388
12492
  };
12493
+ var GetOrCreateCustomerAnchor = {
12494
+ BillingCycle: "billing_cycle",
12495
+ Utc: "utc"
12496
+ };
12389
12497
  var GetOrCreateCustomerThresholdType = {
12390
12498
  Usage: "usage",
12391
12499
  UsagePercentage: "usage_percentage",
@@ -12448,6 +12556,7 @@ var GetOrCreateCustomerSpendLimit$outboundSchema = z39.pipe(
12448
12556
  var GetOrCreateCustomerUsageLimitInterval$outboundSchema = z39.enum(
12449
12557
  GetOrCreateCustomerUsageLimitInterval
12450
12558
  );
12559
+ var GetOrCreateCustomerAnchor$outboundSchema = z39.enum(GetOrCreateCustomerAnchor);
12451
12560
  var GetOrCreateCustomerProperties$outboundSchema = smartUnion([z39.string(), z39.number(), z39.boolean()]);
12452
12561
  var GetOrCreateCustomerFilter$outboundSchema = z39.object({
12453
12562
  properties: z39.record(
@@ -12461,6 +12570,7 @@ var GetOrCreateCustomerUsageLimit$outboundSchema = z39.pipe(
12461
12570
  enabled: z39._default(z39.boolean(), true),
12462
12571
  limit: z39.number(),
12463
12572
  interval: GetOrCreateCustomerUsageLimitInterval$outboundSchema,
12573
+ anchor: z39.optional(GetOrCreateCustomerAnchor$outboundSchema),
12464
12574
  filter: z39.optional(z39.lazy(() => GetOrCreateCustomerFilter$outboundSchema))
12465
12575
  }),
12466
12576
  z39.transform((v) => {
@@ -12728,6 +12838,10 @@ var GetPlanVariantDetailsUsageLimitInterval = {
12728
12838
  Month: "month",
12729
12839
  Year: "year"
12730
12840
  };
12841
+ var GetPlanVariantDetailsAnchor = {
12842
+ BillingCycle: "billing_cycle",
12843
+ Utc: "utc"
12844
+ };
12731
12845
  var GetPlanVariantDetailsThresholdType = {
12732
12846
  Usage: "usage",
12733
12847
  UsagePercentage: "usage_percentage",
@@ -12750,6 +12864,10 @@ var GetPlanUsageLimitInterval = {
12750
12864
  Month: "month",
12751
12865
  Year: "year"
12752
12866
  };
12867
+ var GetPlanAnchor = {
12868
+ BillingCycle: "billing_cycle",
12869
+ Utc: "utc"
12870
+ };
12753
12871
  var GetPlanThresholdType = {
12754
12872
  Usage: "usage",
12755
12873
  UsagePercentage: "usage_percentage",
@@ -13239,6 +13357,7 @@ var GetPlanVariantDetailsSpendLimit$inboundSchema = z40.pipe(
13239
13357
  })
13240
13358
  );
13241
13359
  var GetPlanVariantDetailsUsageLimitInterval$inboundSchema = inboundSchema(GetPlanVariantDetailsUsageLimitInterval);
13360
+ var GetPlanVariantDetailsAnchor$inboundSchema = inboundSchema(GetPlanVariantDetailsAnchor);
13242
13361
  var GetPlanVariantDetailsFilter$inboundSchema = z40.object({
13243
13362
  properties: z40.record(z40.string(), string5())
13244
13363
  });
@@ -13248,6 +13367,7 @@ var GetPlanVariantDetailsUsageLimit$inboundSchema = z40.pipe(
13248
13367
  enabled: z40._default(boolean2(), true),
13249
13368
  limit: number2(),
13250
13369
  interval: GetPlanVariantDetailsUsageLimitInterval$inboundSchema,
13370
+ anchor: optional3(GetPlanVariantDetailsAnchor$inboundSchema),
13251
13371
  filter: optional3(
13252
13372
  z40.lazy(() => GetPlanVariantDetailsFilter$inboundSchema)
13253
13373
  )
@@ -13410,6 +13530,7 @@ var GetPlanSpendLimit$inboundSchema = z40.pipe(
13410
13530
  })
13411
13531
  );
13412
13532
  var GetPlanUsageLimitInterval$inboundSchema = inboundSchema(GetPlanUsageLimitInterval);
13533
+ var GetPlanAnchor$inboundSchema = inboundSchema(GetPlanAnchor);
13413
13534
  var GetPlanFilter$inboundSchema = z40.object({
13414
13535
  properties: z40.record(z40.string(), string5())
13415
13536
  });
@@ -13419,6 +13540,7 @@ var GetPlanUsageLimit$inboundSchema = z40.pipe(
13419
13540
  enabled: z40._default(boolean2(), true),
13420
13541
  limit: number2(),
13421
13542
  interval: GetPlanUsageLimitInterval$inboundSchema,
13543
+ anchor: optional3(GetPlanAnchor$inboundSchema),
13422
13544
  filter: optional3(z40.lazy(() => GetPlanFilter$inboundSchema))
13423
13545
  }),
13424
13546
  z40.transform((v) => {
@@ -14156,6 +14278,10 @@ var ListCustomersUsageLimitInterval = {
14156
14278
  Month: "month",
14157
14279
  Year: "year"
14158
14280
  };
14281
+ var ListCustomersAnchor = {
14282
+ BillingCycle: "billing_cycle",
14283
+ Utc: "utc"
14284
+ };
14159
14285
  var ListCustomersUsageLimitSource = {
14160
14286
  Customer: "customer",
14161
14287
  Plan: "plan"
@@ -14304,6 +14430,7 @@ var ListCustomersSpendLimit$inboundSchema = z47.pipe(
14304
14430
  })
14305
14431
  );
14306
14432
  var ListCustomersUsageLimitInterval$inboundSchema = inboundSchema(ListCustomersUsageLimitInterval);
14433
+ var ListCustomersAnchor$inboundSchema = inboundSchema(ListCustomersAnchor);
14307
14434
  var ListCustomersFilter$inboundSchema = z47.object({
14308
14435
  properties: z47.record(z47.string(), string5())
14309
14436
  });
@@ -14314,6 +14441,7 @@ var ListCustomersUsageLimit$inboundSchema = z47.pipe(
14314
14441
  enabled: z47._default(boolean2(), true),
14315
14442
  limit: number2(),
14316
14443
  interval: ListCustomersUsageLimitInterval$inboundSchema,
14444
+ anchor: optional3(ListCustomersAnchor$inboundSchema),
14317
14445
  filter: optional3(z47.lazy(() => ListCustomersFilter$inboundSchema)),
14318
14446
  usage: optional3(number2()),
14319
14447
  source: optional3(ListCustomersUsageLimitSource$inboundSchema)
@@ -14667,6 +14795,10 @@ var ListEntitiesInterval = {
14667
14795
  Month: "month",
14668
14796
  Year: "year"
14669
14797
  };
14798
+ var ListEntitiesAnchor = {
14799
+ BillingCycle: "billing_cycle",
14800
+ Utc: "utc"
14801
+ };
14670
14802
  var ListEntitiesUsageLimitSource = {
14671
14803
  Customer: "customer",
14672
14804
  Plan: "plan"
@@ -14873,6 +15005,7 @@ var ListEntitiesSpendLimit$inboundSchema = z48.pipe(
14873
15005
  })
14874
15006
  );
14875
15007
  var ListEntitiesInterval$inboundSchema = inboundSchema(ListEntitiesInterval);
15008
+ var ListEntitiesAnchor$inboundSchema = inboundSchema(ListEntitiesAnchor);
14876
15009
  var ListEntitiesFilter$inboundSchema = z48.object({
14877
15010
  properties: z48.record(z48.string(), string5())
14878
15011
  });
@@ -14883,6 +15016,7 @@ var ListEntitiesUsageLimit$inboundSchema = z48.pipe(
14883
15016
  enabled: z48._default(boolean2(), true),
14884
15017
  limit: number2(),
14885
15018
  interval: ListEntitiesInterval$inboundSchema,
15019
+ anchor: optional3(ListEntitiesAnchor$inboundSchema),
14886
15020
  filter: optional3(z48.lazy(() => ListEntitiesFilter$inboundSchema)),
14887
15021
  usage: optional3(number2()),
14888
15022
  source: optional3(ListEntitiesUsageLimitSource$inboundSchema)
@@ -15442,6 +15576,10 @@ var ListPlansVariantDetailsUsageLimitInterval = {
15442
15576
  Month: "month",
15443
15577
  Year: "year"
15444
15578
  };
15579
+ var ListPlansVariantDetailsAnchor = {
15580
+ BillingCycle: "billing_cycle",
15581
+ Utc: "utc"
15582
+ };
15445
15583
  var ListPlansVariantDetailsThresholdType = {
15446
15584
  Usage: "usage",
15447
15585
  UsagePercentage: "usage_percentage",
@@ -15464,6 +15602,10 @@ var ListPlansUsageLimitInterval = {
15464
15602
  Month: "month",
15465
15603
  Year: "year"
15466
15604
  };
15605
+ var ListPlansAnchor = {
15606
+ BillingCycle: "billing_cycle",
15607
+ Utc: "utc"
15608
+ };
15467
15609
  var ListPlansThresholdType = {
15468
15610
  Usage: "usage",
15469
15611
  UsagePercentage: "usage_percentage",
@@ -15945,6 +16087,7 @@ var ListPlansVariantDetailsSpendLimit$inboundSchema = z52.pipe(
15945
16087
  })
15946
16088
  );
15947
16089
  var ListPlansVariantDetailsUsageLimitInterval$inboundSchema = inboundSchema(ListPlansVariantDetailsUsageLimitInterval);
16090
+ var ListPlansVariantDetailsAnchor$inboundSchema = inboundSchema(ListPlansVariantDetailsAnchor);
15948
16091
  var ListPlansVariantDetailsFilter$inboundSchema = z52.object({
15949
16092
  properties: z52.record(z52.string(), string5())
15950
16093
  });
@@ -15954,6 +16097,7 @@ var ListPlansVariantDetailsUsageLimit$inboundSchema = z52.pipe(
15954
16097
  enabled: z52._default(boolean2(), true),
15955
16098
  limit: number2(),
15956
16099
  interval: ListPlansVariantDetailsUsageLimitInterval$inboundSchema,
16100
+ anchor: optional3(ListPlansVariantDetailsAnchor$inboundSchema),
15957
16101
  filter: optional3(
15958
16102
  z52.lazy(() => ListPlansVariantDetailsFilter$inboundSchema)
15959
16103
  )
@@ -16118,6 +16262,7 @@ var ListPlansSpendLimit$inboundSchema = z52.pipe(
16118
16262
  })
16119
16263
  );
16120
16264
  var ListPlansUsageLimitInterval$inboundSchema = inboundSchema(ListPlansUsageLimitInterval);
16265
+ var ListPlansAnchor$inboundSchema = inboundSchema(ListPlansAnchor);
16121
16266
  var ListPlansFilter$inboundSchema = z52.object({
16122
16267
  properties: z52.record(z52.string(), string5())
16123
16268
  });
@@ -16127,6 +16272,7 @@ var ListPlansUsageLimit$inboundSchema = z52.pipe(
16127
16272
  enabled: z52._default(boolean2(), true),
16128
16273
  limit: number2(),
16129
16274
  interval: ListPlansUsageLimitInterval$inboundSchema,
16275
+ anchor: optional3(ListPlansAnchor$inboundSchema),
16130
16276
  filter: optional3(z52.lazy(() => ListPlansFilter$inboundSchema))
16131
16277
  }),
16132
16278
  z52.transform((v) => {
@@ -16522,6 +16668,10 @@ var MultiAttachEntityDataInterval = {
16522
16668
  Month: "month",
16523
16669
  Year: "year"
16524
16670
  };
16671
+ var MultiAttachAnchor = {
16672
+ BillingCycle: "billing_cycle",
16673
+ Utc: "utc"
16674
+ };
16525
16675
  var MultiAttachThresholdType = {
16526
16676
  Usage: "usage",
16527
16677
  UsagePercentage: "usage_percentage",
@@ -16780,6 +16930,7 @@ var MultiAttachSpendLimit$outboundSchema = z56.pipe(
16780
16930
  })
16781
16931
  );
16782
16932
  var MultiAttachEntityDataInterval$outboundSchema = z56.enum(MultiAttachEntityDataInterval);
16933
+ var MultiAttachAnchor$outboundSchema = z56.enum(MultiAttachAnchor);
16783
16934
  var MultiAttachProperties$outboundSchema = smartUnion([z56.string(), z56.number(), z56.boolean()]);
16784
16935
  var MultiAttachFilter$outboundSchema = z56.object({
16785
16936
  properties: z56.record(
@@ -16793,6 +16944,7 @@ var MultiAttachUsageLimit$outboundSchema = z56.pipe(
16793
16944
  enabled: z56._default(z56.boolean(), true),
16794
16945
  limit: z56.number(),
16795
16946
  interval: MultiAttachEntityDataInterval$outboundSchema,
16947
+ anchor: z56.optional(MultiAttachAnchor$outboundSchema),
16796
16948
  filter: z56.optional(z56.lazy(() => MultiAttachFilter$outboundSchema))
16797
16949
  }),
16798
16950
  z56.transform((v) => {
@@ -17217,6 +17369,10 @@ var PreviewAttachUsageLimitInterval = {
17217
17369
  Month: "month",
17218
17370
  Year: "year"
17219
17371
  };
17372
+ var PreviewAttachAnchor = {
17373
+ BillingCycle: "billing_cycle",
17374
+ Utc: "utc"
17375
+ };
17220
17376
  var PreviewAttachThresholdType = {
17221
17377
  Usage: "usage",
17222
17378
  UsagePercentage: "usage_percentage",
@@ -17705,6 +17861,7 @@ var PreviewAttachSpendLimit$outboundSchema = z59.pipe(
17705
17861
  })
17706
17862
  );
17707
17863
  var PreviewAttachUsageLimitInterval$outboundSchema = z59.enum(PreviewAttachUsageLimitInterval);
17864
+ var PreviewAttachAnchor$outboundSchema = z59.enum(PreviewAttachAnchor);
17708
17865
  var PreviewAttachProperties$outboundSchema = smartUnion([z59.string(), z59.number(), z59.boolean()]);
17709
17866
  var PreviewAttachFilter$outboundSchema = z59.object({
17710
17867
  properties: z59.record(
@@ -17718,6 +17875,7 @@ var PreviewAttachUsageLimit$outboundSchema = z59.pipe(
17718
17875
  enabled: z59._default(z59.boolean(), true),
17719
17876
  limit: z59.number(),
17720
17877
  interval: PreviewAttachUsageLimitInterval$outboundSchema,
17878
+ anchor: z59.optional(PreviewAttachAnchor$outboundSchema),
17721
17879
  filter: z59.optional(z59.lazy(() => PreviewAttachFilter$outboundSchema))
17722
17880
  }),
17723
17881
  z59.transform((v) => {
@@ -18508,6 +18666,10 @@ var PreviewMultiAttachEntityDataInterval = {
18508
18666
  Month: "month",
18509
18667
  Year: "year"
18510
18668
  };
18669
+ var PreviewMultiAttachAnchor = {
18670
+ BillingCycle: "billing_cycle",
18671
+ Utc: "utc"
18672
+ };
18511
18673
  var PreviewMultiAttachThresholdType = {
18512
18674
  Usage: "usage",
18513
18675
  UsagePercentage: "usage_percentage",
@@ -18785,6 +18947,7 @@ var PreviewMultiAttachSpendLimit$outboundSchema = z60.pipe(
18785
18947
  })
18786
18948
  );
18787
18949
  var PreviewMultiAttachEntityDataInterval$outboundSchema = z60.enum(PreviewMultiAttachEntityDataInterval);
18950
+ var PreviewMultiAttachAnchor$outboundSchema = z60.enum(PreviewMultiAttachAnchor);
18788
18951
  var PreviewMultiAttachProperties$outboundSchema = smartUnion([z60.string(), z60.number(), z60.boolean()]);
18789
18952
  var PreviewMultiAttachFilter$outboundSchema = z60.object({
18790
18953
  properties: z60.record(
@@ -18798,6 +18961,7 @@ var PreviewMultiAttachUsageLimit$outboundSchema = z60.pipe(
18798
18961
  enabled: z60._default(z60.boolean(), true),
18799
18962
  limit: z60.number(),
18800
18963
  interval: PreviewMultiAttachEntityDataInterval$outboundSchema,
18964
+ anchor: z60.optional(PreviewMultiAttachAnchor$outboundSchema),
18801
18965
  filter: z60.optional(z60.lazy(() => PreviewMultiAttachFilter$outboundSchema))
18802
18966
  }),
18803
18967
  z60.transform((v) => {
@@ -19595,6 +19759,10 @@ var PreviewUpdateUsageLimitInterval = {
19595
19759
  Month: "month",
19596
19760
  Year: "year"
19597
19761
  };
19762
+ var PreviewUpdateAnchor = {
19763
+ BillingCycle: "billing_cycle",
19764
+ Utc: "utc"
19765
+ };
19598
19766
  var PreviewUpdateThresholdType = {
19599
19767
  Usage: "usage",
19600
19768
  UsagePercentage: "usage_percentage",
@@ -20092,6 +20260,7 @@ var PreviewUpdateSpendLimit$outboundSchema = z62.pipe(
20092
20260
  })
20093
20261
  );
20094
20262
  var PreviewUpdateUsageLimitInterval$outboundSchema = z62.enum(PreviewUpdateUsageLimitInterval);
20263
+ var PreviewUpdateAnchor$outboundSchema = z62.enum(PreviewUpdateAnchor);
20095
20264
  var PreviewUpdateProperties$outboundSchema = smartUnion([z62.string(), z62.number(), z62.boolean()]);
20096
20265
  var PreviewUpdateFilter$outboundSchema = z62.object({
20097
20266
  properties: z62.record(
@@ -20105,6 +20274,7 @@ var PreviewUpdateUsageLimit$outboundSchema = z62.pipe(
20105
20274
  enabled: z62._default(z62.boolean(), true),
20106
20275
  limit: z62.number(),
20107
20276
  interval: PreviewUpdateUsageLimitInterval$outboundSchema,
20277
+ anchor: z62.optional(PreviewUpdateAnchor$outboundSchema),
20108
20278
  filter: z62.optional(z62.lazy(() => PreviewUpdateFilter$outboundSchema))
20109
20279
  }),
20110
20280
  z62.transform((v) => {
@@ -21045,6 +21215,10 @@ var SetupPaymentUsageLimitInterval = {
21045
21215
  Month: "month",
21046
21216
  Year: "year"
21047
21217
  };
21218
+ var SetupPaymentAnchor = {
21219
+ BillingCycle: "billing_cycle",
21220
+ Utc: "utc"
21221
+ };
21048
21222
  var SetupPaymentThresholdType = {
21049
21223
  Usage: "usage",
21050
21224
  UsagePercentage: "usage_percentage",
@@ -21516,6 +21690,7 @@ var SetupPaymentSpendLimit$outboundSchema = z68.pipe(
21516
21690
  })
21517
21691
  );
21518
21692
  var SetupPaymentUsageLimitInterval$outboundSchema = z68.enum(SetupPaymentUsageLimitInterval);
21693
+ var SetupPaymentAnchor$outboundSchema = z68.enum(SetupPaymentAnchor);
21519
21694
  var SetupPaymentProperties$outboundSchema = smartUnion([z68.string(), z68.number(), z68.boolean()]);
21520
21695
  var SetupPaymentFilter$outboundSchema = z68.object({
21521
21696
  properties: z68.record(
@@ -21529,6 +21704,7 @@ var SetupPaymentUsageLimit$outboundSchema = z68.pipe(
21529
21704
  enabled: z68._default(z68.boolean(), true),
21530
21705
  limit: z68.number(),
21531
21706
  interval: SetupPaymentUsageLimitInterval$outboundSchema,
21707
+ anchor: z68.optional(SetupPaymentAnchor$outboundSchema),
21532
21708
  filter: z68.optional(z68.lazy(() => SetupPaymentFilter$outboundSchema))
21533
21709
  }),
21534
21710
  z68.transform((v) => {
@@ -22479,6 +22655,10 @@ var UpdateCustomerUsageLimitIntervalRequestBody = {
22479
22655
  Month: "month",
22480
22656
  Year: "year"
22481
22657
  };
22658
+ var UpdateCustomerAnchorRequestBody = {
22659
+ BillingCycle: "billing_cycle",
22660
+ Utc: "utc"
22661
+ };
22482
22662
  var UpdateCustomerThresholdTypeRequestBody = {
22483
22663
  Usage: "usage",
22484
22664
  UsagePercentage: "usage_percentage",
@@ -22519,6 +22699,10 @@ var UpdateCustomerUsageLimitIntervalResponse = {
22519
22699
  Month: "month",
22520
22700
  Year: "year"
22521
22701
  };
22702
+ var UpdateCustomerAnchorResponse = {
22703
+ BillingCycle: "billing_cycle",
22704
+ Utc: "utc"
22705
+ };
22522
22706
  var UpdateCustomerUsageLimitSource = {
22523
22707
  Customer: "customer",
22524
22708
  Plan: "plan"
@@ -22611,6 +22795,7 @@ var UpdateCustomerSpendLimitRequestBody$outboundSchema = z73.pipe(
22611
22795
  var UpdateCustomerUsageLimitIntervalRequestBody$outboundSchema = z73.enum(
22612
22796
  UpdateCustomerUsageLimitIntervalRequestBody
22613
22797
  );
22798
+ var UpdateCustomerAnchorRequestBody$outboundSchema = z73.enum(UpdateCustomerAnchorRequestBody);
22614
22799
  var UpdateCustomerProperties$outboundSchema = smartUnion([z73.string(), z73.number(), z73.boolean()]);
22615
22800
  var UpdateCustomerFilterRequestBody$outboundSchema = z73.object({
22616
22801
  properties: z73.record(
@@ -22624,6 +22809,7 @@ var UpdateCustomerUsageLimitRequestBody$outboundSchema = z73.pipe(
22624
22809
  enabled: z73._default(z73.boolean(), true),
22625
22810
  limit: z73.number(),
22626
22811
  interval: UpdateCustomerUsageLimitIntervalRequestBody$outboundSchema,
22812
+ anchor: z73.optional(UpdateCustomerAnchorRequestBody$outboundSchema),
22627
22813
  filter: z73.optional(
22628
22814
  z73.lazy(() => UpdateCustomerFilterRequestBody$outboundSchema)
22629
22815
  )
@@ -22820,6 +23006,7 @@ var UpdateCustomerSpendLimitResponse$inboundSchema = z73.pipe(
22820
23006
  })
22821
23007
  );
22822
23008
  var UpdateCustomerUsageLimitIntervalResponse$inboundSchema = inboundSchema(UpdateCustomerUsageLimitIntervalResponse);
23009
+ var UpdateCustomerAnchorResponse$inboundSchema = inboundSchema(UpdateCustomerAnchorResponse);
22823
23010
  var UpdateCustomerFilterResponse$inboundSchema = z73.object({
22824
23011
  properties: z73.record(z73.string(), string5())
22825
23012
  });
@@ -22830,6 +23017,7 @@ var UpdateCustomerUsageLimitResponse$inboundSchema = z73.pipe(
22830
23017
  enabled: z73._default(boolean2(), true),
22831
23018
  limit: number2(),
22832
23019
  interval: UpdateCustomerUsageLimitIntervalResponse$inboundSchema,
23020
+ anchor: optional3(UpdateCustomerAnchorResponse$inboundSchema),
22833
23021
  filter: optional3(
22834
23022
  z73.lazy(() => UpdateCustomerFilterResponse$inboundSchema)
22835
23023
  ),
@@ -23146,6 +23334,10 @@ var UpdateEntityIntervalRequestBody = {
23146
23334
  Month: "month",
23147
23335
  Year: "year"
23148
23336
  };
23337
+ var UpdateEntityAnchorRequestBody = {
23338
+ BillingCycle: "billing_cycle",
23339
+ Utc: "utc"
23340
+ };
23149
23341
  var UpdateEntityThresholdTypeRequestBody = {
23150
23342
  Usage: "usage",
23151
23343
  UsagePercentage: "usage_percentage",
@@ -23188,6 +23380,10 @@ var UpdateEntityIntervalResponse = {
23188
23380
  Month: "month",
23189
23381
  Year: "year"
23190
23382
  };
23383
+ var UpdateEntityAnchorResponse = {
23384
+ BillingCycle: "billing_cycle",
23385
+ Utc: "utc"
23386
+ };
23191
23387
  var UpdateEntityUsageLimitSource = {
23192
23388
  Customer: "customer",
23193
23389
  Plan: "plan"
@@ -23229,6 +23425,7 @@ var UpdateEntitySpendLimitRequestBody$outboundSchema = z74.pipe(
23229
23425
  })
23230
23426
  );
23231
23427
  var UpdateEntityIntervalRequestBody$outboundSchema = z74.enum(UpdateEntityIntervalRequestBody);
23428
+ var UpdateEntityAnchorRequestBody$outboundSchema = z74.enum(UpdateEntityAnchorRequestBody);
23232
23429
  var UpdateEntityProperties$outboundSchema = smartUnion([z74.string(), z74.number(), z74.boolean()]);
23233
23430
  var UpdateEntityFilterRequestBody$outboundSchema = z74.object({
23234
23431
  properties: z74.record(
@@ -23242,6 +23439,7 @@ var UpdateEntityUsageLimitRequestBody$outboundSchema = z74.pipe(
23242
23439
  enabled: z74._default(z74.boolean(), true),
23243
23440
  limit: z74.number(),
23244
23441
  interval: UpdateEntityIntervalRequestBody$outboundSchema,
23442
+ anchor: z74.optional(UpdateEntityAnchorRequestBody$outboundSchema),
23245
23443
  filter: z74.optional(
23246
23444
  z74.lazy(() => UpdateEntityFilterRequestBody$outboundSchema)
23247
23445
  )
@@ -23477,6 +23675,7 @@ var UpdateEntitySpendLimitResponse$inboundSchema = z74.pipe(
23477
23675
  })
23478
23676
  );
23479
23677
  var UpdateEntityIntervalResponse$inboundSchema = inboundSchema(UpdateEntityIntervalResponse);
23678
+ var UpdateEntityAnchorResponse$inboundSchema = inboundSchema(UpdateEntityAnchorResponse);
23480
23679
  var UpdateEntityFilterResponse$inboundSchema = z74.object({
23481
23680
  properties: z74.record(z74.string(), string5())
23482
23681
  });
@@ -23487,6 +23686,7 @@ var UpdateEntityUsageLimitResponse$inboundSchema = z74.pipe(
23487
23686
  enabled: z74._default(boolean2(), true),
23488
23687
  limit: number2(),
23489
23688
  interval: UpdateEntityIntervalResponse$inboundSchema,
23689
+ anchor: optional3(UpdateEntityAnchorResponse$inboundSchema),
23490
23690
  filter: optional3(
23491
23691
  z74.lazy(() => UpdateEntityFilterResponse$inboundSchema)
23492
23692
  ),
@@ -23922,6 +24122,10 @@ var UpdatePlanUsageLimitIntervalRequestBody = {
23922
24122
  Month: "month",
23923
24123
  Year: "year"
23924
24124
  };
24125
+ var UpdatePlanAnchorRequestBody = {
24126
+ BillingCycle: "billing_cycle",
24127
+ Utc: "utc"
24128
+ };
23925
24129
  var UpdatePlanThresholdTypeRequestBody = {
23926
24130
  Usage: "usage",
23927
24131
  UsagePercentage: "usage_percentage",
@@ -24028,6 +24232,10 @@ var VariantUsageLimitInterval = {
24028
24232
  Month: "month",
24029
24233
  Year: "year"
24030
24234
  };
24235
+ var VariantAnchor = {
24236
+ BillingCycle: "billing_cycle",
24237
+ Utc: "utc"
24238
+ };
24031
24239
  var VariantThresholdType = {
24032
24240
  Usage: "usage",
24033
24241
  UsagePercentage: "usage_percentage",
@@ -24194,6 +24402,10 @@ var UpdatePlanVariantDetailsUsageLimitInterval = {
24194
24402
  Month: "month",
24195
24403
  Year: "year"
24196
24404
  };
24405
+ var UpdatePlanVariantDetailsAnchor = {
24406
+ BillingCycle: "billing_cycle",
24407
+ Utc: "utc"
24408
+ };
24197
24409
  var UpdatePlanVariantDetailsThresholdType = {
24198
24410
  Usage: "usage",
24199
24411
  UsagePercentage: "usage_percentage",
@@ -24216,6 +24428,10 @@ var UpdatePlanUsageLimitIntervalResponse = {
24216
24428
  Month: "month",
24217
24429
  Year: "year"
24218
24430
  };
24431
+ var UpdatePlanAnchorResponse = {
24432
+ BillingCycle: "billing_cycle",
24433
+ Utc: "utc"
24434
+ };
24219
24435
  var UpdatePlanThresholdTypeResponse = {
24220
24436
  Usage: "usage",
24221
24437
  UsagePercentage: "usage_percentage",
@@ -24703,6 +24919,7 @@ var UpdatePlanSpendLimitRequestBody$outboundSchema = z76.pipe(
24703
24919
  var UpdatePlanUsageLimitIntervalRequestBody$outboundSchema = z76.enum(
24704
24920
  UpdatePlanUsageLimitIntervalRequestBody
24705
24921
  );
24922
+ var UpdatePlanAnchorRequestBody$outboundSchema = z76.enum(UpdatePlanAnchorRequestBody);
24706
24923
  var UpdatePlanProperties$outboundSchema = smartUnion([z76.string(), z76.number(), z76.boolean()]);
24707
24924
  var UpdatePlanFilterRequestBody$outboundSchema = z76.object({
24708
24925
  properties: z76.record(
@@ -24716,6 +24933,7 @@ var UpdatePlanUsageLimitRequestBody$outboundSchema = z76.pipe(
24716
24933
  enabled: z76._default(z76.boolean(), true),
24717
24934
  limit: z76.number(),
24718
24935
  interval: UpdatePlanUsageLimitIntervalRequestBody$outboundSchema,
24936
+ anchor: z76.optional(UpdatePlanAnchorRequestBody$outboundSchema),
24719
24937
  filter: z76.optional(
24720
24938
  z76.lazy(() => UpdatePlanFilterRequestBody$outboundSchema)
24721
24939
  )
@@ -25027,6 +25245,7 @@ var VariantSpendLimit$outboundSchema = z76.pipe(
25027
25245
  })
25028
25246
  );
25029
25247
  var VariantUsageLimitInterval$outboundSchema = z76.enum(VariantUsageLimitInterval);
25248
+ var VariantAnchor$outboundSchema = z76.enum(VariantAnchor);
25030
25249
  var VariantFilter$outboundSchema = z76.object({
25031
25250
  properties: z76.record(z76.string(), z76.any())
25032
25251
  });
@@ -25036,6 +25255,7 @@ var VariantUsageLimit$outboundSchema = z76.pipe(
25036
25255
  enabled: z76._default(z76.boolean(), true),
25037
25256
  limit: z76.number(),
25038
25257
  interval: VariantUsageLimitInterval$outboundSchema,
25258
+ anchor: z76.optional(VariantAnchor$outboundSchema),
25039
25259
  filter: z76.optional(z76.lazy(() => VariantFilter$outboundSchema))
25040
25260
  }),
25041
25261
  z76.transform((v) => {
@@ -25698,6 +25918,7 @@ var UpdatePlanVariantDetailsSpendLimit$inboundSchema = z76.pipe(
25698
25918
  })
25699
25919
  );
25700
25920
  var UpdatePlanVariantDetailsUsageLimitInterval$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUsageLimitInterval);
25921
+ var UpdatePlanVariantDetailsAnchor$inboundSchema = inboundSchema(UpdatePlanVariantDetailsAnchor);
25701
25922
  var UpdatePlanVariantDetailsFilter$inboundSchema = z76.object({
25702
25923
  properties: z76.record(z76.string(), string5())
25703
25924
  });
@@ -25707,6 +25928,7 @@ var UpdatePlanVariantDetailsUsageLimit$inboundSchema = z76.pipe(
25707
25928
  enabled: z76._default(boolean2(), true),
25708
25929
  limit: number2(),
25709
25930
  interval: UpdatePlanVariantDetailsUsageLimitInterval$inboundSchema,
25931
+ anchor: optional3(UpdatePlanVariantDetailsAnchor$inboundSchema),
25710
25932
  filter: optional3(
25711
25933
  z76.lazy(() => UpdatePlanVariantDetailsFilter$inboundSchema)
25712
25934
  )
@@ -25873,6 +26095,7 @@ var UpdatePlanSpendLimitResponse$inboundSchema = z76.pipe(
25873
26095
  })
25874
26096
  );
25875
26097
  var UpdatePlanUsageLimitIntervalResponse$inboundSchema = inboundSchema(UpdatePlanUsageLimitIntervalResponse);
26098
+ var UpdatePlanAnchorResponse$inboundSchema = inboundSchema(UpdatePlanAnchorResponse);
25876
26099
  var UpdatePlanFilterResponse$inboundSchema = z76.object({
25877
26100
  properties: z76.record(z76.string(), string5())
25878
26101
  });
@@ -25882,6 +26105,7 @@ var UpdatePlanUsageLimitResponse$inboundSchema = z76.pipe(
25882
26105
  enabled: z76._default(boolean2(), true),
25883
26106
  limit: number2(),
25884
26107
  interval: UpdatePlanUsageLimitIntervalResponse$inboundSchema,
26108
+ anchor: optional3(UpdatePlanAnchorResponse$inboundSchema),
25885
26109
  filter: optional3(
25886
26110
  z76.lazy(() => UpdatePlanFilterResponse$inboundSchema)
25887
26111
  )
@@ -28616,6 +28840,7 @@ var Billing = class extends ClientSDK {
28616
28840
  * @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
28617
28841
  * @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)
28618
28842
  * @param billingBehavior - Whether to prorate the immediate phase. 'none' skips proration charges and credits. (optional)
28843
+ * @param noBillingChanges - If true, skips any billing changes for the schedule. (optional)
28619
28844
  * @param billingCycleAnchor - Pass 'now' to reset the billing cycle anchor of the immediate phase to the current time. (optional)
28620
28845
  * @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)
28621
28846
  * @param preserveAddOns - Deprecated and ignored. Active plans the schedule does not declare are always retained. (optional)
@@ -33900,6 +34125,7 @@ var attachUsageLimitOutboundSchema = import_v42.z.object({
33900
34125
  enabled: import_v42.z.boolean(),
33901
34126
  limit: import_v42.z.number(),
33902
34127
  interval: import_v42.z.string(),
34128
+ anchor: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
33903
34129
  filter: import_v42.z.union([attachFilterOutboundSchema, import_v42.z.undefined()]).optional()
33904
34130
  });
33905
34131
  var attachUsageAlertOutboundSchema = import_v42.z.object({
@@ -34216,11 +34442,13 @@ var attachSpendLimitSchema = import_v42.z.object({
34216
34442
  skipOverageBilling: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
34217
34443
  });
34218
34444
  var attachUsageLimitIntervalSchema = closedEnumSchema2;
34445
+ var attachAnchorSchema = closedEnumSchema2;
34219
34446
  var attachUsageLimitSchema = import_v42.z.object({
34220
34447
  featureId: import_v42.z.string(),
34221
34448
  enabled: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
34222
34449
  limit: import_v42.z.number(),
34223
34450
  interval: attachUsageLimitIntervalSchema,
34451
+ anchor: import_v42.z.union([attachAnchorSchema, import_v42.z.undefined()]).optional(),
34224
34452
  filter: import_v42.z.union([attachFilterSchema, import_v42.z.undefined()]).optional()
34225
34453
  });
34226
34454
  var attachThresholdTypeSchema = closedEnumSchema2;
@@ -34638,6 +34866,7 @@ var getOrCreateCustomerUsageLimitOutboundSchema = import_v46.z.object({
34638
34866
  enabled: import_v46.z.boolean(),
34639
34867
  limit: import_v46.z.number(),
34640
34868
  interval: import_v46.z.string(),
34869
+ anchor: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
34641
34870
  filter: import_v46.z.union([getOrCreateCustomerFilterOutboundSchema, import_v46.z.undefined()]).optional()
34642
34871
  });
34643
34872
  var getOrCreateCustomerUsageAlertOutboundSchema = import_v46.z.object({
@@ -34715,11 +34944,13 @@ var getOrCreateCustomerSpendLimitSchema = import_v46.z.object({
34715
34944
  skipOverageBilling: import_v46.z.union([import_v46.z.boolean(), import_v46.z.undefined()]).optional()
34716
34945
  });
34717
34946
  var getOrCreateCustomerUsageLimitIntervalSchema = closedEnumSchema5;
34947
+ var getOrCreateCustomerAnchorSchema = closedEnumSchema5;
34718
34948
  var getOrCreateCustomerUsageLimitSchema = import_v46.z.object({
34719
34949
  featureId: import_v46.z.string(),
34720
34950
  enabled: import_v46.z.union([import_v46.z.boolean(), import_v46.z.undefined()]).optional(),
34721
34951
  limit: import_v46.z.number(),
34722
34952
  interval: getOrCreateCustomerUsageLimitIntervalSchema,
34953
+ anchor: import_v46.z.union([getOrCreateCustomerAnchorSchema, import_v46.z.undefined()]).optional(),
34723
34954
  filter: import_v46.z.union([getOrCreateCustomerFilterSchema, import_v46.z.undefined()]).optional()
34724
34955
  });
34725
34956
  var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema5;
@@ -35071,11 +35302,13 @@ var listPlansVariantDetailsSpendLimitSchema = import_v48.z.object({
35071
35302
  skipOverageBilling: import_v48.z.union([import_v48.z.boolean(), import_v48.z.undefined()]).optional()
35072
35303
  });
35073
35304
  var listPlansVariantDetailsUsageLimitIntervalSchema = openEnumSchema6;
35305
+ var listPlansVariantDetailsAnchorSchema = openEnumSchema6;
35074
35306
  var listPlansVariantDetailsUsageLimitSchema = import_v48.z.object({
35075
35307
  featureId: import_v48.z.string(),
35076
35308
  enabled: import_v48.z.boolean(),
35077
35309
  limit: import_v48.z.number(),
35078
35310
  interval: listPlansVariantDetailsUsageLimitIntervalSchema,
35311
+ anchor: import_v48.z.union([listPlansVariantDetailsAnchorSchema, import_v48.z.undefined()]).optional(),
35079
35312
  filter: import_v48.z.union([listPlansVariantDetailsFilterSchema, import_v48.z.undefined()]).optional()
35080
35313
  });
35081
35314
  var listPlansVariantDetailsThresholdTypeSchema = openEnumSchema6;
@@ -35130,11 +35363,13 @@ var listPlansSpendLimitSchema = import_v48.z.object({
35130
35363
  skipOverageBilling: import_v48.z.union([import_v48.z.boolean(), import_v48.z.undefined()]).optional()
35131
35364
  });
35132
35365
  var listPlansUsageLimitIntervalSchema = openEnumSchema6;
35366
+ var listPlansAnchorSchema = openEnumSchema6;
35133
35367
  var listPlansUsageLimitSchema = import_v48.z.object({
35134
35368
  featureId: import_v48.z.string(),
35135
35369
  enabled: import_v48.z.boolean(),
35136
35370
  limit: import_v48.z.number(),
35137
35371
  interval: listPlansUsageLimitIntervalSchema,
35372
+ anchor: import_v48.z.union([listPlansAnchorSchema, import_v48.z.undefined()]).optional(),
35138
35373
  filter: import_v48.z.union([listPlansFilterSchema, import_v48.z.undefined()]).optional()
35139
35374
  });
35140
35375
  var listPlansThresholdTypeSchema = openEnumSchema6;
@@ -35376,6 +35611,7 @@ var multiAttachUsageLimitOutboundSchema = import_v49.z.object({
35376
35611
  enabled: import_v49.z.boolean(),
35377
35612
  limit: import_v49.z.number(),
35378
35613
  interval: import_v49.z.string(),
35614
+ anchor: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
35379
35615
  filter: import_v49.z.union([multiAttachFilterOutboundSchema, import_v49.z.undefined()]).optional()
35380
35616
  });
35381
35617
  var multiAttachUsageAlertOutboundSchema = import_v49.z.object({
@@ -35484,11 +35720,13 @@ var multiAttachSpendLimitSchema = import_v49.z.object({
35484
35720
  skipOverageBilling: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
35485
35721
  });
35486
35722
  var multiAttachEntityDataIntervalSchema = closedEnumSchema6;
35723
+ var multiAttachAnchorSchema = closedEnumSchema6;
35487
35724
  var multiAttachUsageLimitSchema = import_v49.z.object({
35488
35725
  featureId: import_v49.z.string(),
35489
35726
  enabled: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
35490
35727
  limit: import_v49.z.number(),
35491
35728
  interval: multiAttachEntityDataIntervalSchema,
35729
+ anchor: import_v49.z.union([multiAttachAnchorSchema, import_v49.z.undefined()]).optional(),
35492
35730
  filter: import_v49.z.union([multiAttachFilterSchema, import_v49.z.undefined()]).optional()
35493
35731
  });
35494
35732
  var multiAttachThresholdTypeSchema = closedEnumSchema6;
@@ -35949,6 +36187,7 @@ var previewAttachUsageLimitOutboundSchema = import_v411.z.object({
35949
36187
  enabled: import_v411.z.boolean(),
35950
36188
  limit: import_v411.z.number(),
35951
36189
  interval: import_v411.z.string(),
36190
+ anchor: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
35952
36191
  filter: import_v411.z.union([previewAttachFilterOutboundSchema, import_v411.z.undefined()]).optional()
35953
36192
  });
35954
36193
  var previewAttachUsageAlertOutboundSchema = import_v411.z.object({
@@ -36280,11 +36519,13 @@ var previewAttachSpendLimitSchema = import_v411.z.object({
36280
36519
  skipOverageBilling: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional()
36281
36520
  });
36282
36521
  var previewAttachUsageLimitIntervalSchema = closedEnumSchema7;
36522
+ var previewAttachAnchorSchema = closedEnumSchema7;
36283
36523
  var previewAttachUsageLimitSchema = import_v411.z.object({
36284
36524
  featureId: import_v411.z.string(),
36285
36525
  enabled: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
36286
36526
  limit: import_v411.z.number(),
36287
36527
  interval: previewAttachUsageLimitIntervalSchema,
36528
+ anchor: import_v411.z.union([previewAttachAnchorSchema, import_v411.z.undefined()]).optional(),
36288
36529
  filter: import_v411.z.union([previewAttachFilterSchema, import_v411.z.undefined()]).optional()
36289
36530
  });
36290
36531
  var previewAttachThresholdTypeSchema = closedEnumSchema7;
@@ -36740,6 +36981,7 @@ var previewMultiAttachUsageLimitOutboundSchema = import_v412.z.object({
36740
36981
  enabled: import_v412.z.boolean(),
36741
36982
  limit: import_v412.z.number(),
36742
36983
  interval: import_v412.z.string(),
36984
+ anchor: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
36743
36985
  filter: import_v412.z.union([previewMultiAttachFilterOutboundSchema, import_v412.z.undefined()]).optional()
36744
36986
  });
36745
36987
  var previewMultiAttachUsageAlertOutboundSchema = import_v412.z.object({
@@ -36858,11 +37100,13 @@ var previewMultiAttachSpendLimitSchema = import_v412.z.object({
36858
37100
  skipOverageBilling: import_v412.z.union([import_v412.z.boolean(), import_v412.z.undefined()]).optional()
36859
37101
  });
36860
37102
  var previewMultiAttachEntityDataIntervalSchema = closedEnumSchema8;
37103
+ var previewMultiAttachAnchorSchema = closedEnumSchema8;
36861
37104
  var previewMultiAttachUsageLimitSchema = import_v412.z.object({
36862
37105
  featureId: import_v412.z.string(),
36863
37106
  enabled: import_v412.z.union([import_v412.z.boolean(), import_v412.z.undefined()]).optional(),
36864
37107
  limit: import_v412.z.number(),
36865
37108
  interval: previewMultiAttachEntityDataIntervalSchema,
37109
+ anchor: import_v412.z.union([previewMultiAttachAnchorSchema, import_v412.z.undefined()]).optional(),
36866
37110
  filter: import_v412.z.union([previewMultiAttachFilterSchema, import_v412.z.undefined()]).optional()
36867
37111
  });
36868
37112
  var previewMultiAttachThresholdTypeSchema = closedEnumSchema8;
@@ -37329,6 +37573,7 @@ var previewUpdateUsageLimitOutboundSchema = import_v413.z.object({
37329
37573
  enabled: import_v413.z.boolean(),
37330
37574
  limit: import_v413.z.number(),
37331
37575
  interval: import_v413.z.string(),
37576
+ anchor: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
37332
37577
  filter: import_v413.z.union([previewUpdateFilterOutboundSchema, import_v413.z.undefined()]).optional()
37333
37578
  });
37334
37579
  var previewUpdateUsageAlertOutboundSchema = import_v413.z.object({
@@ -37643,11 +37888,13 @@ var previewUpdateSpendLimitSchema = import_v413.z.object({
37643
37888
  skipOverageBilling: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
37644
37889
  });
37645
37890
  var previewUpdateUsageLimitIntervalSchema = closedEnumSchema9;
37891
+ var previewUpdateAnchorSchema = closedEnumSchema9;
37646
37892
  var previewUpdateUsageLimitSchema = import_v413.z.object({
37647
37893
  featureId: import_v413.z.string(),
37648
37894
  enabled: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
37649
37895
  limit: import_v413.z.number(),
37650
37896
  interval: previewUpdateUsageLimitIntervalSchema,
37897
+ anchor: import_v413.z.union([previewUpdateAnchorSchema, import_v413.z.undefined()]).optional(),
37651
37898
  filter: import_v413.z.union([previewUpdateFilterSchema, import_v413.z.undefined()]).optional()
37652
37899
  });
37653
37900
  var previewUpdateThresholdTypeSchema = closedEnumSchema9;
@@ -38146,6 +38393,7 @@ var setupPaymentUsageLimitOutboundSchema = import_v415.z.object({
38146
38393
  enabled: import_v415.z.boolean(),
38147
38394
  limit: import_v415.z.number(),
38148
38395
  interval: import_v415.z.string(),
38396
+ anchor: import_v415.z.union([import_v415.z.string(), import_v415.z.undefined()]).optional(),
38149
38397
  filter: import_v415.z.union([setupPaymentFilterOutboundSchema, import_v415.z.undefined()]).optional()
38150
38398
  });
38151
38399
  var setupPaymentUsageAlertOutboundSchema = import_v415.z.object({
@@ -38458,11 +38706,13 @@ var setupPaymentSpendLimitSchema = import_v415.z.object({
38458
38706
  skipOverageBilling: import_v415.z.union([import_v415.z.boolean(), import_v415.z.undefined()]).optional()
38459
38707
  });
38460
38708
  var setupPaymentUsageLimitIntervalSchema = closedEnumSchema10;
38709
+ var setupPaymentAnchorSchema = closedEnumSchema10;
38461
38710
  var setupPaymentUsageLimitSchema = import_v415.z.object({
38462
38711
  featureId: import_v415.z.string(),
38463
38712
  enabled: import_v415.z.union([import_v415.z.boolean(), import_v415.z.undefined()]).optional(),
38464
38713
  limit: import_v415.z.number(),
38465
38714
  interval: setupPaymentUsageLimitIntervalSchema,
38715
+ anchor: import_v415.z.union([setupPaymentAnchorSchema, import_v415.z.undefined()]).optional(),
38466
38716
  filter: import_v415.z.union([setupPaymentFilterSchema, import_v415.z.undefined()]).optional()
38467
38717
  });
38468
38718
  var setupPaymentThresholdTypeSchema = closedEnumSchema10;
@@ -38909,6 +39159,7 @@ var billingUpdateUsageLimitOutboundSchema = import_v416.z.object({
38909
39159
  enabled: import_v416.z.boolean(),
38910
39160
  limit: import_v416.z.number(),
38911
39161
  interval: import_v416.z.string(),
39162
+ anchor: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
38912
39163
  filter: import_v416.z.union([billingUpdateFilterOutboundSchema, import_v416.z.undefined()]).optional()
38913
39164
  });
38914
39165
  var billingUpdateUsageAlertOutboundSchema = import_v416.z.object({
@@ -39219,11 +39470,13 @@ var billingUpdateSpendLimitSchema = import_v416.z.object({
39219
39470
  skipOverageBilling: import_v416.z.union([import_v416.z.boolean(), import_v416.z.undefined()]).optional()
39220
39471
  });
39221
39472
  var billingUpdateUsageLimitIntervalSchema = closedEnumSchema11;
39473
+ var billingUpdateAnchorSchema = closedEnumSchema11;
39222
39474
  var billingUpdateUsageLimitSchema = import_v416.z.object({
39223
39475
  featureId: import_v416.z.string(),
39224
39476
  enabled: import_v416.z.union([import_v416.z.boolean(), import_v416.z.undefined()]).optional(),
39225
39477
  limit: import_v416.z.number(),
39226
39478
  interval: billingUpdateUsageLimitIntervalSchema,
39479
+ anchor: import_v416.z.union([billingUpdateAnchorSchema, import_v416.z.undefined()]).optional(),
39227
39480
  filter: import_v416.z.union([billingUpdateFilterSchema, import_v416.z.undefined()]).optional()
39228
39481
  });
39229
39482
  var billingUpdateThresholdTypeSchema = closedEnumSchema11;