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
@@ -432,6 +432,7 @@ var attachUsageLimitOutboundSchema = import_v42.z.object({
432
432
  enabled: import_v42.z.boolean(),
433
433
  limit: import_v42.z.number(),
434
434
  interval: import_v42.z.string(),
435
+ anchor: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
435
436
  filter: import_v42.z.union([attachFilterOutboundSchema, import_v42.z.undefined()]).optional()
436
437
  });
437
438
  var attachUsageAlertOutboundSchema = import_v42.z.object({
@@ -748,11 +749,13 @@ var attachSpendLimitSchema = import_v42.z.object({
748
749
  skipOverageBilling: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
749
750
  });
750
751
  var attachUsageLimitIntervalSchema = closedEnumSchema2;
752
+ var attachAnchorSchema = closedEnumSchema2;
751
753
  var attachUsageLimitSchema = import_v42.z.object({
752
754
  featureId: import_v42.z.string(),
753
755
  enabled: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
754
756
  limit: import_v42.z.number(),
755
757
  interval: attachUsageLimitIntervalSchema,
758
+ anchor: import_v42.z.union([attachAnchorSchema, import_v42.z.undefined()]).optional(),
756
759
  filter: import_v42.z.union([attachFilterSchema, import_v42.z.undefined()]).optional()
757
760
  });
758
761
  var attachThresholdTypeSchema = closedEnumSchema2;
@@ -1170,6 +1173,7 @@ var getOrCreateCustomerUsageLimitOutboundSchema = import_v46.z.object({
1170
1173
  enabled: import_v46.z.boolean(),
1171
1174
  limit: import_v46.z.number(),
1172
1175
  interval: import_v46.z.string(),
1176
+ anchor: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
1173
1177
  filter: import_v46.z.union([getOrCreateCustomerFilterOutboundSchema, import_v46.z.undefined()]).optional()
1174
1178
  });
1175
1179
  var getOrCreateCustomerUsageAlertOutboundSchema = import_v46.z.object({
@@ -1247,11 +1251,13 @@ var getOrCreateCustomerSpendLimitSchema = import_v46.z.object({
1247
1251
  skipOverageBilling: import_v46.z.union([import_v46.z.boolean(), import_v46.z.undefined()]).optional()
1248
1252
  });
1249
1253
  var getOrCreateCustomerUsageLimitIntervalSchema = closedEnumSchema5;
1254
+ var getOrCreateCustomerAnchorSchema = closedEnumSchema5;
1250
1255
  var getOrCreateCustomerUsageLimitSchema = import_v46.z.object({
1251
1256
  featureId: import_v46.z.string(),
1252
1257
  enabled: import_v46.z.union([import_v46.z.boolean(), import_v46.z.undefined()]).optional(),
1253
1258
  limit: import_v46.z.number(),
1254
1259
  interval: getOrCreateCustomerUsageLimitIntervalSchema,
1260
+ anchor: import_v46.z.union([getOrCreateCustomerAnchorSchema, import_v46.z.undefined()]).optional(),
1255
1261
  filter: import_v46.z.union([getOrCreateCustomerFilterSchema, import_v46.z.undefined()]).optional()
1256
1262
  });
1257
1263
  var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema5;
@@ -1603,11 +1609,13 @@ var listPlansVariantDetailsSpendLimitSchema = import_v48.z.object({
1603
1609
  skipOverageBilling: import_v48.z.union([import_v48.z.boolean(), import_v48.z.undefined()]).optional()
1604
1610
  });
1605
1611
  var listPlansVariantDetailsUsageLimitIntervalSchema = openEnumSchema6;
1612
+ var listPlansVariantDetailsAnchorSchema = openEnumSchema6;
1606
1613
  var listPlansVariantDetailsUsageLimitSchema = import_v48.z.object({
1607
1614
  featureId: import_v48.z.string(),
1608
1615
  enabled: import_v48.z.boolean(),
1609
1616
  limit: import_v48.z.number(),
1610
1617
  interval: listPlansVariantDetailsUsageLimitIntervalSchema,
1618
+ anchor: import_v48.z.union([listPlansVariantDetailsAnchorSchema, import_v48.z.undefined()]).optional(),
1611
1619
  filter: import_v48.z.union([listPlansVariantDetailsFilterSchema, import_v48.z.undefined()]).optional()
1612
1620
  });
1613
1621
  var listPlansVariantDetailsThresholdTypeSchema = openEnumSchema6;
@@ -1662,11 +1670,13 @@ var listPlansSpendLimitSchema = import_v48.z.object({
1662
1670
  skipOverageBilling: import_v48.z.union([import_v48.z.boolean(), import_v48.z.undefined()]).optional()
1663
1671
  });
1664
1672
  var listPlansUsageLimitIntervalSchema = openEnumSchema6;
1673
+ var listPlansAnchorSchema = openEnumSchema6;
1665
1674
  var listPlansUsageLimitSchema = import_v48.z.object({
1666
1675
  featureId: import_v48.z.string(),
1667
1676
  enabled: import_v48.z.boolean(),
1668
1677
  limit: import_v48.z.number(),
1669
1678
  interval: listPlansUsageLimitIntervalSchema,
1679
+ anchor: import_v48.z.union([listPlansAnchorSchema, import_v48.z.undefined()]).optional(),
1670
1680
  filter: import_v48.z.union([listPlansFilterSchema, import_v48.z.undefined()]).optional()
1671
1681
  });
1672
1682
  var listPlansThresholdTypeSchema = openEnumSchema6;
@@ -1908,6 +1918,7 @@ var multiAttachUsageLimitOutboundSchema = import_v49.z.object({
1908
1918
  enabled: import_v49.z.boolean(),
1909
1919
  limit: import_v49.z.number(),
1910
1920
  interval: import_v49.z.string(),
1921
+ anchor: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
1911
1922
  filter: import_v49.z.union([multiAttachFilterOutboundSchema, import_v49.z.undefined()]).optional()
1912
1923
  });
1913
1924
  var multiAttachUsageAlertOutboundSchema = import_v49.z.object({
@@ -2016,11 +2027,13 @@ var multiAttachSpendLimitSchema = import_v49.z.object({
2016
2027
  skipOverageBilling: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
2017
2028
  });
2018
2029
  var multiAttachEntityDataIntervalSchema = closedEnumSchema6;
2030
+ var multiAttachAnchorSchema = closedEnumSchema6;
2019
2031
  var multiAttachUsageLimitSchema = import_v49.z.object({
2020
2032
  featureId: import_v49.z.string(),
2021
2033
  enabled: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
2022
2034
  limit: import_v49.z.number(),
2023
2035
  interval: multiAttachEntityDataIntervalSchema,
2036
+ anchor: import_v49.z.union([multiAttachAnchorSchema, import_v49.z.undefined()]).optional(),
2024
2037
  filter: import_v49.z.union([multiAttachFilterSchema, import_v49.z.undefined()]).optional()
2025
2038
  });
2026
2039
  var multiAttachThresholdTypeSchema = closedEnumSchema6;
@@ -2481,6 +2494,7 @@ var previewAttachUsageLimitOutboundSchema = import_v411.z.object({
2481
2494
  enabled: import_v411.z.boolean(),
2482
2495
  limit: import_v411.z.number(),
2483
2496
  interval: import_v411.z.string(),
2497
+ anchor: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
2484
2498
  filter: import_v411.z.union([previewAttachFilterOutboundSchema, import_v411.z.undefined()]).optional()
2485
2499
  });
2486
2500
  var previewAttachUsageAlertOutboundSchema = import_v411.z.object({
@@ -2812,11 +2826,13 @@ var previewAttachSpendLimitSchema = import_v411.z.object({
2812
2826
  skipOverageBilling: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional()
2813
2827
  });
2814
2828
  var previewAttachUsageLimitIntervalSchema = closedEnumSchema7;
2829
+ var previewAttachAnchorSchema = closedEnumSchema7;
2815
2830
  var previewAttachUsageLimitSchema = import_v411.z.object({
2816
2831
  featureId: import_v411.z.string(),
2817
2832
  enabled: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
2818
2833
  limit: import_v411.z.number(),
2819
2834
  interval: previewAttachUsageLimitIntervalSchema,
2835
+ anchor: import_v411.z.union([previewAttachAnchorSchema, import_v411.z.undefined()]).optional(),
2820
2836
  filter: import_v411.z.union([previewAttachFilterSchema, import_v411.z.undefined()]).optional()
2821
2837
  });
2822
2838
  var previewAttachThresholdTypeSchema = closedEnumSchema7;
@@ -3272,6 +3288,7 @@ var previewMultiAttachUsageLimitOutboundSchema = import_v412.z.object({
3272
3288
  enabled: import_v412.z.boolean(),
3273
3289
  limit: import_v412.z.number(),
3274
3290
  interval: import_v412.z.string(),
3291
+ anchor: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
3275
3292
  filter: import_v412.z.union([previewMultiAttachFilterOutboundSchema, import_v412.z.undefined()]).optional()
3276
3293
  });
3277
3294
  var previewMultiAttachUsageAlertOutboundSchema = import_v412.z.object({
@@ -3390,11 +3407,13 @@ var previewMultiAttachSpendLimitSchema = import_v412.z.object({
3390
3407
  skipOverageBilling: import_v412.z.union([import_v412.z.boolean(), import_v412.z.undefined()]).optional()
3391
3408
  });
3392
3409
  var previewMultiAttachEntityDataIntervalSchema = closedEnumSchema8;
3410
+ var previewMultiAttachAnchorSchema = closedEnumSchema8;
3393
3411
  var previewMultiAttachUsageLimitSchema = import_v412.z.object({
3394
3412
  featureId: import_v412.z.string(),
3395
3413
  enabled: import_v412.z.union([import_v412.z.boolean(), import_v412.z.undefined()]).optional(),
3396
3414
  limit: import_v412.z.number(),
3397
3415
  interval: previewMultiAttachEntityDataIntervalSchema,
3416
+ anchor: import_v412.z.union([previewMultiAttachAnchorSchema, import_v412.z.undefined()]).optional(),
3398
3417
  filter: import_v412.z.union([previewMultiAttachFilterSchema, import_v412.z.undefined()]).optional()
3399
3418
  });
3400
3419
  var previewMultiAttachThresholdTypeSchema = closedEnumSchema8;
@@ -3861,6 +3880,7 @@ var previewUpdateUsageLimitOutboundSchema = import_v413.z.object({
3861
3880
  enabled: import_v413.z.boolean(),
3862
3881
  limit: import_v413.z.number(),
3863
3882
  interval: import_v413.z.string(),
3883
+ anchor: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
3864
3884
  filter: import_v413.z.union([previewUpdateFilterOutboundSchema, import_v413.z.undefined()]).optional()
3865
3885
  });
3866
3886
  var previewUpdateUsageAlertOutboundSchema = import_v413.z.object({
@@ -4175,11 +4195,13 @@ var previewUpdateSpendLimitSchema = import_v413.z.object({
4175
4195
  skipOverageBilling: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
4176
4196
  });
4177
4197
  var previewUpdateUsageLimitIntervalSchema = closedEnumSchema9;
4198
+ var previewUpdateAnchorSchema = closedEnumSchema9;
4178
4199
  var previewUpdateUsageLimitSchema = import_v413.z.object({
4179
4200
  featureId: import_v413.z.string(),
4180
4201
  enabled: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
4181
4202
  limit: import_v413.z.number(),
4182
4203
  interval: previewUpdateUsageLimitIntervalSchema,
4204
+ anchor: import_v413.z.union([previewUpdateAnchorSchema, import_v413.z.undefined()]).optional(),
4183
4205
  filter: import_v413.z.union([previewUpdateFilterSchema, import_v413.z.undefined()]).optional()
4184
4206
  });
4185
4207
  var previewUpdateThresholdTypeSchema = closedEnumSchema9;
@@ -4678,6 +4700,7 @@ var setupPaymentUsageLimitOutboundSchema = import_v415.z.object({
4678
4700
  enabled: import_v415.z.boolean(),
4679
4701
  limit: import_v415.z.number(),
4680
4702
  interval: import_v415.z.string(),
4703
+ anchor: import_v415.z.union([import_v415.z.string(), import_v415.z.undefined()]).optional(),
4681
4704
  filter: import_v415.z.union([setupPaymentFilterOutboundSchema, import_v415.z.undefined()]).optional()
4682
4705
  });
4683
4706
  var setupPaymentUsageAlertOutboundSchema = import_v415.z.object({
@@ -4990,11 +5013,13 @@ var setupPaymentSpendLimitSchema = import_v415.z.object({
4990
5013
  skipOverageBilling: import_v415.z.union([import_v415.z.boolean(), import_v415.z.undefined()]).optional()
4991
5014
  });
4992
5015
  var setupPaymentUsageLimitIntervalSchema = closedEnumSchema10;
5016
+ var setupPaymentAnchorSchema = closedEnumSchema10;
4993
5017
  var setupPaymentUsageLimitSchema = import_v415.z.object({
4994
5018
  featureId: import_v415.z.string(),
4995
5019
  enabled: import_v415.z.union([import_v415.z.boolean(), import_v415.z.undefined()]).optional(),
4996
5020
  limit: import_v415.z.number(),
4997
5021
  interval: setupPaymentUsageLimitIntervalSchema,
5022
+ anchor: import_v415.z.union([setupPaymentAnchorSchema, import_v415.z.undefined()]).optional(),
4998
5023
  filter: import_v415.z.union([setupPaymentFilterSchema, import_v415.z.undefined()]).optional()
4999
5024
  });
5000
5025
  var setupPaymentThresholdTypeSchema = closedEnumSchema10;
@@ -5441,6 +5466,7 @@ var billingUpdateUsageLimitOutboundSchema = import_v416.z.object({
5441
5466
  enabled: import_v416.z.boolean(),
5442
5467
  limit: import_v416.z.number(),
5443
5468
  interval: import_v416.z.string(),
5469
+ anchor: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
5444
5470
  filter: import_v416.z.union([billingUpdateFilterOutboundSchema, import_v416.z.undefined()]).optional()
5445
5471
  });
5446
5472
  var billingUpdateUsageAlertOutboundSchema = import_v416.z.object({
@@ -5751,11 +5777,13 @@ var billingUpdateSpendLimitSchema = import_v416.z.object({
5751
5777
  skipOverageBilling: import_v416.z.union([import_v416.z.boolean(), import_v416.z.undefined()]).optional()
5752
5778
  });
5753
5779
  var billingUpdateUsageLimitIntervalSchema = closedEnumSchema11;
5780
+ var billingUpdateAnchorSchema = closedEnumSchema11;
5754
5781
  var billingUpdateUsageLimitSchema = import_v416.z.object({
5755
5782
  featureId: import_v416.z.string(),
5756
5783
  enabled: import_v416.z.union([import_v416.z.boolean(), import_v416.z.undefined()]).optional(),
5757
5784
  limit: import_v416.z.number(),
5758
5785
  interval: billingUpdateUsageLimitIntervalSchema,
5786
+ anchor: import_v416.z.union([billingUpdateAnchorSchema, import_v416.z.undefined()]).optional(),
5759
5787
  filter: import_v416.z.union([billingUpdateFilterSchema, import_v416.z.undefined()]).optional()
5760
5788
  });
5761
5789
  var billingUpdateThresholdTypeSchema = closedEnumSchema11;
@@ -7784,6 +7812,10 @@ var AttachUsageLimitInterval = {
7784
7812
  Month: "month",
7785
7813
  Year: "year"
7786
7814
  };
7815
+ var AttachAnchor = {
7816
+ BillingCycle: "billing_cycle",
7817
+ Utc: "utc"
7818
+ };
7787
7819
  var AttachThresholdType = {
7788
7820
  Usage: "usage",
7789
7821
  UsagePercentage: "usage_percentage",
@@ -8252,6 +8284,7 @@ var AttachSpendLimit$outboundSchema = z29.pipe(
8252
8284
  })
8253
8285
  );
8254
8286
  var AttachUsageLimitInterval$outboundSchema = z29.enum(AttachUsageLimitInterval);
8287
+ var AttachAnchor$outboundSchema = z29.enum(AttachAnchor);
8255
8288
  var AttachProperties$outboundSchema = smartUnion([z29.string(), z29.number(), z29.boolean()]);
8256
8289
  var AttachFilter$outboundSchema = z29.object({
8257
8290
  properties: z29.record(
@@ -8265,6 +8298,7 @@ var AttachUsageLimit$outboundSchema = z29.pipe(
8265
8298
  enabled: z29._default(z29.boolean(), true),
8266
8299
  limit: z29.number(),
8267
8300
  interval: AttachUsageLimitInterval$outboundSchema,
8301
+ anchor: z29.optional(AttachAnchor$outboundSchema),
8268
8302
  filter: z29.optional(z29.lazy(() => AttachFilter$outboundSchema))
8269
8303
  }),
8270
8304
  z29.transform((v) => {
@@ -9147,6 +9181,10 @@ var BillingUpdateUsageLimitInterval = {
9147
9181
  Month: "month",
9148
9182
  Year: "year"
9149
9183
  };
9184
+ var BillingUpdateAnchor = {
9185
+ BillingCycle: "billing_cycle",
9186
+ Utc: "utc"
9187
+ };
9150
9188
  var BillingUpdateThresholdType = {
9151
9189
  Usage: "usage",
9152
9190
  UsagePercentage: "usage_percentage",
@@ -9638,6 +9676,7 @@ var BillingUpdateSpendLimit$outboundSchema = z32.pipe(
9638
9676
  })
9639
9677
  );
9640
9678
  var BillingUpdateUsageLimitInterval$outboundSchema = z32.enum(BillingUpdateUsageLimitInterval);
9679
+ var BillingUpdateAnchor$outboundSchema = z32.enum(BillingUpdateAnchor);
9641
9680
  var BillingUpdateProperties$outboundSchema = smartUnion([z32.string(), z32.number(), z32.boolean()]);
9642
9681
  var BillingUpdateFilter$outboundSchema = z32.object({
9643
9682
  properties: z32.record(
@@ -9651,6 +9690,7 @@ var BillingUpdateUsageLimit$outboundSchema = z32.pipe(
9651
9690
  enabled: z32._default(z32.boolean(), true),
9652
9691
  limit: z32.number(),
9653
9692
  interval: BillingUpdateUsageLimitInterval$outboundSchema,
9693
+ anchor: z32.optional(BillingUpdateAnchor$outboundSchema),
9654
9694
  filter: z32.optional(z32.lazy(() => BillingUpdateFilter$outboundSchema))
9655
9695
  }),
9656
9696
  z32.transform((v) => {
@@ -10207,6 +10247,10 @@ var CheckUsageLimitInterval2 = {
10207
10247
  Month: "month",
10208
10248
  Year: "year"
10209
10249
  };
10250
+ var CheckAnchor2 = {
10251
+ BillingCycle: "billing_cycle",
10252
+ Utc: "utc"
10253
+ };
10210
10254
  var CheckThresholdType2 = {
10211
10255
  Usage: "usage",
10212
10256
  UsagePercentage: "usage_percentage",
@@ -10310,6 +10354,10 @@ var CheckUsageLimitInterval1 = {
10310
10354
  Month: "month",
10311
10355
  Year: "year"
10312
10356
  };
10357
+ var CheckAnchor1 = {
10358
+ BillingCycle: "billing_cycle",
10359
+ Utc: "utc"
10360
+ };
10313
10361
  var CheckThresholdType1 = {
10314
10362
  Usage: "usage",
10315
10363
  UsagePercentage: "usage_percentage",
@@ -10607,6 +10655,7 @@ var CheckSpendLimit2$inboundSchema = z33.pipe(
10607
10655
  })
10608
10656
  );
10609
10657
  var CheckUsageLimitInterval2$inboundSchema = inboundSchema(CheckUsageLimitInterval2);
10658
+ var CheckAnchor2$inboundSchema = inboundSchema(CheckAnchor2);
10610
10659
  var CheckFilter2$inboundSchema = z33.object({
10611
10660
  properties: z33.record(z33.string(), string5())
10612
10661
  });
@@ -10616,6 +10665,7 @@ var CheckUsageLimit2$inboundSchema = z33.pipe(
10616
10665
  enabled: z33._default(boolean2(), true),
10617
10666
  limit: number2(),
10618
10667
  interval: CheckUsageLimitInterval2$inboundSchema,
10668
+ anchor: optional3(CheckAnchor2$inboundSchema),
10619
10669
  filter: optional3(z33.lazy(() => CheckFilter2$inboundSchema))
10620
10670
  }),
10621
10671
  z33.transform((v) => {
@@ -11009,6 +11059,7 @@ var CheckSpendLimit1$inboundSchema = z33.pipe(
11009
11059
  })
11010
11060
  );
11011
11061
  var CheckUsageLimitInterval1$inboundSchema = inboundSchema(CheckUsageLimitInterval1);
11062
+ var CheckAnchor1$inboundSchema = inboundSchema(CheckAnchor1);
11012
11063
  var CheckFilter1$inboundSchema = z33.object({
11013
11064
  properties: z33.record(z33.string(), string5())
11014
11065
  });
@@ -11018,6 +11069,7 @@ var CheckUsageLimit1$inboundSchema = z33.pipe(
11018
11069
  enabled: z33._default(boolean2(), true),
11019
11070
  limit: number2(),
11020
11071
  interval: CheckUsageLimitInterval1$inboundSchema,
11072
+ anchor: optional3(CheckAnchor1$inboundSchema),
11021
11073
  filter: optional3(z33.lazy(() => CheckFilter1$inboundSchema))
11022
11074
  }),
11023
11075
  z33.transform((v) => {
@@ -11265,6 +11317,10 @@ var CustomerDataUsageLimitInterval = {
11265
11317
  Month: "month",
11266
11318
  Year: "year"
11267
11319
  };
11320
+ var CustomerDataAnchor = {
11321
+ BillingCycle: "billing_cycle",
11322
+ Utc: "utc"
11323
+ };
11268
11324
  var CustomerDataThresholdType = {
11269
11325
  Usage: "usage",
11270
11326
  UsagePercentage: "usage_percentage",
@@ -11323,6 +11379,7 @@ var CustomerDataSpendLimit$outboundSchema = z35.pipe(
11323
11379
  })
11324
11380
  );
11325
11381
  var CustomerDataUsageLimitInterval$outboundSchema = z35.enum(CustomerDataUsageLimitInterval);
11382
+ var CustomerDataAnchor$outboundSchema = z35.enum(CustomerDataAnchor);
11326
11383
  var Properties$outboundSchema = smartUnion([z35.string(), z35.number(), z35.boolean()]);
11327
11384
  var CustomerDataFilter$outboundSchema = z35.object({
11328
11385
  properties: z35.record(
@@ -11336,6 +11393,7 @@ var CustomerDataUsageLimit$outboundSchema = z35.pipe(
11336
11393
  enabled: z35._default(z35.boolean(), true),
11337
11394
  limit: z35.number(),
11338
11395
  interval: CustomerDataUsageLimitInterval$outboundSchema,
11396
+ anchor: z35.optional(CustomerDataAnchor$outboundSchema),
11339
11397
  filter: z35.optional(z35.lazy(() => CustomerDataFilter$outboundSchema))
11340
11398
  }),
11341
11399
  z35.transform((v) => {
@@ -11600,6 +11658,10 @@ var PlanVariantDetailsUsageLimitInterval = {
11600
11658
  Month: "month",
11601
11659
  Year: "year"
11602
11660
  };
11661
+ var PlanVariantDetailsAnchor = {
11662
+ BillingCycle: "billing_cycle",
11663
+ Utc: "utc"
11664
+ };
11603
11665
  var PlanVariantDetailsThresholdType = {
11604
11666
  Usage: "usage",
11605
11667
  UsagePercentage: "usage_percentage",
@@ -11622,6 +11684,10 @@ var PlanUsageLimitInterval = {
11622
11684
  Month: "month",
11623
11685
  Year: "year"
11624
11686
  };
11687
+ var PlanAnchor = {
11688
+ BillingCycle: "billing_cycle",
11689
+ Utc: "utc"
11690
+ };
11625
11691
  var PlanThresholdType = {
11626
11692
  Usage: "usage",
11627
11693
  UsagePercentage: "usage_percentage",
@@ -12096,6 +12162,7 @@ var PlanVariantDetailsSpendLimit$inboundSchema = z36.pipe(
12096
12162
  })
12097
12163
  );
12098
12164
  var PlanVariantDetailsUsageLimitInterval$inboundSchema = inboundSchema(PlanVariantDetailsUsageLimitInterval);
12165
+ var PlanVariantDetailsAnchor$inboundSchema = inboundSchema(PlanVariantDetailsAnchor);
12099
12166
  var PlanVariantDetailsFilter$inboundSchema = z36.object({
12100
12167
  properties: z36.record(z36.string(), string5())
12101
12168
  });
@@ -12105,6 +12172,7 @@ var PlanVariantDetailsUsageLimit$inboundSchema = z36.pipe(
12105
12172
  enabled: z36._default(boolean2(), true),
12106
12173
  limit: number2(),
12107
12174
  interval: PlanVariantDetailsUsageLimitInterval$inboundSchema,
12175
+ anchor: optional3(PlanVariantDetailsAnchor$inboundSchema),
12108
12176
  filter: optional3(
12109
12177
  z36.lazy(() => PlanVariantDetailsFilter$inboundSchema)
12110
12178
  )
@@ -12267,6 +12335,7 @@ var PlanSpendLimit$inboundSchema = z36.pipe(
12267
12335
  })
12268
12336
  );
12269
12337
  var PlanUsageLimitInterval$inboundSchema = inboundSchema(PlanUsageLimitInterval);
12338
+ var PlanAnchor$inboundSchema = inboundSchema(PlanAnchor);
12270
12339
  var PlanFilter$inboundSchema = z36.object({
12271
12340
  properties: z36.record(z36.string(), string5())
12272
12341
  });
@@ -12276,6 +12345,7 @@ var PlanUsageLimit$inboundSchema = z36.pipe(
12276
12345
  enabled: z36._default(boolean2(), true),
12277
12346
  limit: number2(),
12278
12347
  interval: PlanUsageLimitInterval$inboundSchema,
12348
+ anchor: optional3(PlanAnchor$inboundSchema),
12279
12349
  filter: optional3(z36.lazy(() => PlanFilter$inboundSchema))
12280
12350
  }),
12281
12351
  z36.transform((v) => {
@@ -12407,6 +12477,10 @@ var CreateEntityIntervalRequestBody = {
12407
12477
  Month: "month",
12408
12478
  Year: "year"
12409
12479
  };
12480
+ var CreateEntityAnchorRequestBody = {
12481
+ BillingCycle: "billing_cycle",
12482
+ Utc: "utc"
12483
+ };
12410
12484
  var CreateEntityThresholdTypeRequestBody = {
12411
12485
  Usage: "usage",
12412
12486
  UsagePercentage: "usage_percentage",
@@ -12449,6 +12523,10 @@ var CreateEntityIntervalResponse = {
12449
12523
  Month: "month",
12450
12524
  Year: "year"
12451
12525
  };
12526
+ var CreateEntityAnchorResponse = {
12527
+ BillingCycle: "billing_cycle",
12528
+ Utc: "utc"
12529
+ };
12452
12530
  var CreateEntityUsageLimitSource = {
12453
12531
  Customer: "customer",
12454
12532
  Plan: "plan"
@@ -12490,6 +12568,7 @@ var CreateEntitySpendLimitRequestBody$outboundSchema = z37.pipe(
12490
12568
  })
12491
12569
  );
12492
12570
  var CreateEntityIntervalRequestBody$outboundSchema = z37.enum(CreateEntityIntervalRequestBody);
12571
+ var CreateEntityAnchorRequestBody$outboundSchema = z37.enum(CreateEntityAnchorRequestBody);
12493
12572
  var CreateEntityProperties$outboundSchema = smartUnion([z37.string(), z37.number(), z37.boolean()]);
12494
12573
  var CreateEntityFilterRequestBody$outboundSchema = z37.object({
12495
12574
  properties: z37.record(
@@ -12503,6 +12582,7 @@ var CreateEntityUsageLimitRequestBody$outboundSchema = z37.pipe(
12503
12582
  enabled: z37._default(z37.boolean(), true),
12504
12583
  limit: z37.number(),
12505
12584
  interval: CreateEntityIntervalRequestBody$outboundSchema,
12585
+ anchor: z37.optional(CreateEntityAnchorRequestBody$outboundSchema),
12506
12586
  filter: z37.optional(
12507
12587
  z37.lazy(() => CreateEntityFilterRequestBody$outboundSchema)
12508
12588
  )
@@ -12743,6 +12823,7 @@ var CreateEntitySpendLimitResponse$inboundSchema = z37.pipe(
12743
12823
  })
12744
12824
  );
12745
12825
  var CreateEntityIntervalResponse$inboundSchema = inboundSchema(CreateEntityIntervalResponse);
12826
+ var CreateEntityAnchorResponse$inboundSchema = inboundSchema(CreateEntityAnchorResponse);
12746
12827
  var CreateEntityFilterResponse$inboundSchema = z37.object({
12747
12828
  properties: z37.record(z37.string(), string5())
12748
12829
  });
@@ -12753,6 +12834,7 @@ var CreateEntityUsageLimitResponse$inboundSchema = z37.pipe(
12753
12834
  enabled: z37._default(boolean2(), true),
12754
12835
  limit: number2(),
12755
12836
  interval: CreateEntityIntervalResponse$inboundSchema,
12837
+ anchor: optional3(CreateEntityAnchorResponse$inboundSchema),
12756
12838
  filter: optional3(
12757
12839
  z37.lazy(() => CreateEntityFilterResponse$inboundSchema)
12758
12840
  ),
@@ -13185,6 +13267,10 @@ var CreatePlanUsageLimitIntervalRequestBody = {
13185
13267
  Month: "month",
13186
13268
  Year: "year"
13187
13269
  };
13270
+ var CreatePlanAnchorRequestBody = {
13271
+ BillingCycle: "billing_cycle",
13272
+ Utc: "utc"
13273
+ };
13188
13274
  var CreatePlanThresholdTypeRequestBody = {
13189
13275
  Usage: "usage",
13190
13276
  UsagePercentage: "usage_percentage",
@@ -13351,6 +13437,10 @@ var CreatePlanVariantDetailsUsageLimitInterval = {
13351
13437
  Month: "month",
13352
13438
  Year: "year"
13353
13439
  };
13440
+ var CreatePlanVariantDetailsAnchor = {
13441
+ BillingCycle: "billing_cycle",
13442
+ Utc: "utc"
13443
+ };
13354
13444
  var CreatePlanVariantDetailsThresholdType = {
13355
13445
  Usage: "usage",
13356
13446
  UsagePercentage: "usage_percentage",
@@ -13373,6 +13463,10 @@ var CreatePlanUsageLimitIntervalResponse = {
13373
13463
  Month: "month",
13374
13464
  Year: "year"
13375
13465
  };
13466
+ var CreatePlanAnchorResponse = {
13467
+ BillingCycle: "billing_cycle",
13468
+ Utc: "utc"
13469
+ };
13376
13470
  var CreatePlanThresholdTypeResponse = {
13377
13471
  Usage: "usage",
13378
13472
  UsagePercentage: "usage_percentage",
@@ -13860,6 +13954,7 @@ var CreatePlanSpendLimitRequestBody$outboundSchema = z39.pipe(
13860
13954
  var CreatePlanUsageLimitIntervalRequestBody$outboundSchema = z39.enum(
13861
13955
  CreatePlanUsageLimitIntervalRequestBody
13862
13956
  );
13957
+ var CreatePlanAnchorRequestBody$outboundSchema = z39.enum(CreatePlanAnchorRequestBody);
13863
13958
  var CreatePlanProperties$outboundSchema = smartUnion([z39.string(), z39.number(), z39.boolean()]);
13864
13959
  var CreatePlanFilterRequestBody$outboundSchema = z39.object({
13865
13960
  properties: z39.record(
@@ -13873,6 +13968,7 @@ var CreatePlanUsageLimitRequestBody$outboundSchema = z39.pipe(
13873
13968
  enabled: z39._default(z39.boolean(), true),
13874
13969
  limit: z39.number(),
13875
13970
  interval: CreatePlanUsageLimitIntervalRequestBody$outboundSchema,
13971
+ anchor: z39.optional(CreatePlanAnchorRequestBody$outboundSchema),
13876
13972
  filter: z39.optional(
13877
13973
  z39.lazy(() => CreatePlanFilterRequestBody$outboundSchema)
13878
13974
  )
@@ -14449,6 +14545,7 @@ var CreatePlanVariantDetailsSpendLimit$inboundSchema = z39.pipe(
14449
14545
  })
14450
14546
  );
14451
14547
  var CreatePlanVariantDetailsUsageLimitInterval$inboundSchema = inboundSchema(CreatePlanVariantDetailsUsageLimitInterval);
14548
+ var CreatePlanVariantDetailsAnchor$inboundSchema = inboundSchema(CreatePlanVariantDetailsAnchor);
14452
14549
  var CreatePlanVariantDetailsFilter$inboundSchema = z39.object({
14453
14550
  properties: z39.record(z39.string(), string5())
14454
14551
  });
@@ -14458,6 +14555,7 @@ var CreatePlanVariantDetailsUsageLimit$inboundSchema = z39.pipe(
14458
14555
  enabled: z39._default(boolean2(), true),
14459
14556
  limit: number2(),
14460
14557
  interval: CreatePlanVariantDetailsUsageLimitInterval$inboundSchema,
14558
+ anchor: optional3(CreatePlanVariantDetailsAnchor$inboundSchema),
14461
14559
  filter: optional3(
14462
14560
  z39.lazy(() => CreatePlanVariantDetailsFilter$inboundSchema)
14463
14561
  )
@@ -14624,6 +14722,7 @@ var CreatePlanSpendLimitResponse$inboundSchema = z39.pipe(
14624
14722
  })
14625
14723
  );
14626
14724
  var CreatePlanUsageLimitIntervalResponse$inboundSchema = inboundSchema(CreatePlanUsageLimitIntervalResponse);
14725
+ var CreatePlanAnchorResponse$inboundSchema = inboundSchema(CreatePlanAnchorResponse);
14627
14726
  var CreatePlanFilterResponse$inboundSchema = z39.object({
14628
14727
  properties: z39.record(z39.string(), string5())
14629
14728
  });
@@ -14633,6 +14732,7 @@ var CreatePlanUsageLimitResponse$inboundSchema = z39.pipe(
14633
14732
  enabled: z39._default(boolean2(), true),
14634
14733
  limit: number2(),
14635
14734
  interval: CreatePlanUsageLimitIntervalResponse$inboundSchema,
14735
+ anchor: optional3(CreatePlanAnchorResponse$inboundSchema),
14636
14736
  filter: optional3(
14637
14737
  z39.lazy(() => CreatePlanFilterResponse$inboundSchema)
14638
14738
  )
@@ -15241,6 +15341,10 @@ var UnscheduledPlanUsageLimitInterval = {
15241
15341
  Month: "month",
15242
15342
  Year: "year"
15243
15343
  };
15344
+ var UnscheduledPlanAnchor = {
15345
+ BillingCycle: "billing_cycle",
15346
+ Utc: "utc"
15347
+ };
15244
15348
  var UnscheduledPlanThresholdType = {
15245
15349
  Usage: "usage",
15246
15350
  UsagePercentage: "usage_percentage",
@@ -15386,6 +15490,10 @@ var PhaseStartUsageLimitInterval = {
15386
15490
  Month: "month",
15387
15491
  Year: "year"
15388
15492
  };
15493
+ var PhaseStartAnchor = {
15494
+ BillingCycle: "billing_cycle",
15495
+ Utc: "utc"
15496
+ };
15389
15497
  var PhaseStartThresholdType = {
15390
15498
  Usage: "usage",
15391
15499
  UsagePercentage: "usage_percentage",
@@ -15834,6 +15942,7 @@ var UnscheduledPlanSpendLimit$outboundSchema = z43.pipe(
15834
15942
  })
15835
15943
  );
15836
15944
  var UnscheduledPlanUsageLimitInterval$outboundSchema = z43.enum(UnscheduledPlanUsageLimitInterval);
15945
+ var UnscheduledPlanAnchor$outboundSchema = z43.enum(UnscheduledPlanAnchor);
15837
15946
  var CreateScheduleProperties$outboundSchema = smartUnion([z43.string(), z43.number(), z43.boolean()]);
15838
15947
  var UnscheduledPlanFilter$outboundSchema = z43.object({
15839
15948
  properties: z43.record(
@@ -15847,6 +15956,7 @@ var UnscheduledPlanUsageLimit$outboundSchema = z43.pipe(
15847
15956
  enabled: z43._default(z43.boolean(), true),
15848
15957
  limit: z43.number(),
15849
15958
  interval: UnscheduledPlanUsageLimitInterval$outboundSchema,
15959
+ anchor: z43.optional(UnscheduledPlanAnchor$outboundSchema),
15850
15960
  filter: z43.optional(z43.lazy(() => UnscheduledPlanFilter$outboundSchema))
15851
15961
  }),
15852
15962
  z43.transform((v) => {
@@ -16300,6 +16410,7 @@ var PhaseStartSpendLimit$outboundSchema = z43.pipe(
16300
16410
  })
16301
16411
  );
16302
16412
  var PhaseStartUsageLimitInterval$outboundSchema = z43.enum(PhaseStartUsageLimitInterval);
16413
+ var PhaseStartAnchor$outboundSchema = z43.enum(PhaseStartAnchor);
16303
16414
  var PhaseStartFilter$outboundSchema = z43.object({
16304
16415
  properties: z43.record(z43.string(), z43.any())
16305
16416
  });
@@ -16309,6 +16420,7 @@ var PhaseStartUsageLimit$outboundSchema = z43.pipe(
16309
16420
  enabled: z43._default(z43.boolean(), true),
16310
16421
  limit: z43.number(),
16311
16422
  interval: PhaseStartUsageLimitInterval$outboundSchema,
16423
+ anchor: z43.optional(PhaseStartAnchor$outboundSchema),
16312
16424
  filter: z43.optional(z43.lazy(() => PhaseStartFilter$outboundSchema))
16313
16425
  }),
16314
16426
  z43.transform((v) => {
@@ -16456,6 +16568,7 @@ var CreateScheduleParams$outboundSchema = z43.pipe(
16456
16568
  "if_required"
16457
16569
  ),
16458
16570
  billingBehavior: z43.optional(CreateScheduleBillingBehavior$outboundSchema),
16571
+ noBillingChanges: z43.optional(z43.boolean()),
16459
16572
  billingCycleAnchor: z43.optional(z43.literal("now")),
16460
16573
  enablePlanImmediately: z43.optional(z43.boolean()),
16461
16574
  preserveAddOns: z43.optional(z43.boolean()),
@@ -16474,6 +16587,7 @@ var CreateScheduleParams$outboundSchema = z43.pipe(
16474
16587
  checkoutSessionParams: "checkout_session_params",
16475
16588
  redirectMode: "redirect_mode",
16476
16589
  billingBehavior: "billing_behavior",
16590
+ noBillingChanges: "no_billing_changes",
16477
16591
  billingCycleAnchor: "billing_cycle_anchor",
16478
16592
  enablePlanImmediately: "enable_plan_immediately",
16479
16593
  preserveAddOns: "preserve_add_ons",
@@ -16594,6 +16708,10 @@ var CustomerUsageLimitInterval = {
16594
16708
  Month: "month",
16595
16709
  Year: "year"
16596
16710
  };
16711
+ var CustomerAnchor = {
16712
+ BillingCycle: "billing_cycle",
16713
+ Utc: "utc"
16714
+ };
16597
16715
  var UsageLimitSource = {
16598
16716
  Customer: "customer",
16599
16717
  Plan: "plan"
@@ -16727,6 +16845,7 @@ var CustomerSpendLimit$inboundSchema = z45.pipe(
16727
16845
  })
16728
16846
  );
16729
16847
  var CustomerUsageLimitInterval$inboundSchema = inboundSchema(CustomerUsageLimitInterval);
16848
+ var CustomerAnchor$inboundSchema = inboundSchema(CustomerAnchor);
16730
16849
  var CustomerFilter$inboundSchema = z45.object({
16731
16850
  properties: z45.record(z45.string(), string5())
16732
16851
  });
@@ -16737,6 +16856,7 @@ var CustomerUsageLimit$inboundSchema = z45.pipe(
16737
16856
  enabled: z45._default(boolean2(), true),
16738
16857
  limit: number2(),
16739
16858
  interval: CustomerUsageLimitInterval$inboundSchema,
16859
+ anchor: optional3(CustomerAnchor$inboundSchema),
16740
16860
  filter: optional3(z45.lazy(() => CustomerFilter$inboundSchema)),
16741
16861
  usage: optional3(number2()),
16742
16862
  source: optional3(UsageLimitSource$inboundSchema)
@@ -17408,6 +17528,10 @@ var GetCustomerUsageLimitInterval = {
17408
17528
  Month: "month",
17409
17529
  Year: "year"
17410
17530
  };
17531
+ var GetCustomerAnchor = {
17532
+ BillingCycle: "billing_cycle",
17533
+ Utc: "utc"
17534
+ };
17411
17535
  var GetCustomerUsageLimitSource = {
17412
17536
  Customer: "customer",
17413
17537
  Plan: "plan"
@@ -17552,6 +17676,7 @@ var GetCustomerSpendLimit$inboundSchema = z54.pipe(
17552
17676
  })
17553
17677
  );
17554
17678
  var GetCustomerUsageLimitInterval$inboundSchema = inboundSchema(GetCustomerUsageLimitInterval);
17679
+ var GetCustomerAnchor$inboundSchema = inboundSchema(GetCustomerAnchor);
17555
17680
  var GetCustomerFilter$inboundSchema = z54.object({
17556
17681
  properties: z54.record(z54.string(), string5())
17557
17682
  });
@@ -17562,6 +17687,7 @@ var GetCustomerUsageLimit$inboundSchema = z54.pipe(
17562
17687
  enabled: z54._default(boolean2(), true),
17563
17688
  limit: number2(),
17564
17689
  interval: GetCustomerUsageLimitInterval$inboundSchema,
17690
+ anchor: optional3(GetCustomerAnchor$inboundSchema),
17565
17691
  filter: optional3(z54.lazy(() => GetCustomerFilter$inboundSchema)),
17566
17692
  usage: optional3(number2()),
17567
17693
  source: optional3(GetCustomerUsageLimitSource$inboundSchema)
@@ -18077,6 +18203,10 @@ var GetEntityInterval = {
18077
18203
  Month: "month",
18078
18204
  Year: "year"
18079
18205
  };
18206
+ var GetEntityAnchor = {
18207
+ BillingCycle: "billing_cycle",
18208
+ Utc: "utc"
18209
+ };
18080
18210
  var GetEntityUsageLimitSource = {
18081
18211
  Customer: "customer",
18082
18212
  Plan: "plan"
@@ -18269,6 +18399,7 @@ var GetEntitySpendLimit$inboundSchema = z55.pipe(
18269
18399
  })
18270
18400
  );
18271
18401
  var GetEntityInterval$inboundSchema = inboundSchema(GetEntityInterval);
18402
+ var GetEntityAnchor$inboundSchema = inboundSchema(GetEntityAnchor);
18272
18403
  var GetEntityFilter$inboundSchema = z55.object({
18273
18404
  properties: z55.record(z55.string(), string5())
18274
18405
  });
@@ -18279,6 +18410,7 @@ var GetEntityUsageLimit$inboundSchema = z55.pipe(
18279
18410
  enabled: z55._default(boolean2(), true),
18280
18411
  limit: number2(),
18281
18412
  interval: GetEntityInterval$inboundSchema,
18413
+ anchor: optional3(GetEntityAnchor$inboundSchema),
18282
18414
  filter: optional3(z55.lazy(() => GetEntityFilter$inboundSchema)),
18283
18415
  usage: optional3(number2()),
18284
18416
  source: optional3(GetEntityUsageLimitSource$inboundSchema)
@@ -18499,6 +18631,10 @@ var GetOrCreateCustomerUsageLimitInterval = {
18499
18631
  Month: "month",
18500
18632
  Year: "year"
18501
18633
  };
18634
+ var GetOrCreateCustomerAnchor = {
18635
+ BillingCycle: "billing_cycle",
18636
+ Utc: "utc"
18637
+ };
18502
18638
  var GetOrCreateCustomerThresholdType = {
18503
18639
  Usage: "usage",
18504
18640
  UsagePercentage: "usage_percentage",
@@ -18561,6 +18697,7 @@ var GetOrCreateCustomerSpendLimit$outboundSchema = z57.pipe(
18561
18697
  var GetOrCreateCustomerUsageLimitInterval$outboundSchema = z57.enum(
18562
18698
  GetOrCreateCustomerUsageLimitInterval
18563
18699
  );
18700
+ var GetOrCreateCustomerAnchor$outboundSchema = z57.enum(GetOrCreateCustomerAnchor);
18564
18701
  var GetOrCreateCustomerProperties$outboundSchema = smartUnion([z57.string(), z57.number(), z57.boolean()]);
18565
18702
  var GetOrCreateCustomerFilter$outboundSchema = z57.object({
18566
18703
  properties: z57.record(
@@ -18574,6 +18711,7 @@ var GetOrCreateCustomerUsageLimit$outboundSchema = z57.pipe(
18574
18711
  enabled: z57._default(z57.boolean(), true),
18575
18712
  limit: z57.number(),
18576
18713
  interval: GetOrCreateCustomerUsageLimitInterval$outboundSchema,
18714
+ anchor: z57.optional(GetOrCreateCustomerAnchor$outboundSchema),
18577
18715
  filter: z57.optional(z57.lazy(() => GetOrCreateCustomerFilter$outboundSchema))
18578
18716
  }),
18579
18717
  z57.transform((v) => {
@@ -18841,6 +18979,10 @@ var GetPlanVariantDetailsUsageLimitInterval = {
18841
18979
  Month: "month",
18842
18980
  Year: "year"
18843
18981
  };
18982
+ var GetPlanVariantDetailsAnchor = {
18983
+ BillingCycle: "billing_cycle",
18984
+ Utc: "utc"
18985
+ };
18844
18986
  var GetPlanVariantDetailsThresholdType = {
18845
18987
  Usage: "usage",
18846
18988
  UsagePercentage: "usage_percentage",
@@ -18863,6 +19005,10 @@ var GetPlanUsageLimitInterval = {
18863
19005
  Month: "month",
18864
19006
  Year: "year"
18865
19007
  };
19008
+ var GetPlanAnchor = {
19009
+ BillingCycle: "billing_cycle",
19010
+ Utc: "utc"
19011
+ };
18866
19012
  var GetPlanThresholdType = {
18867
19013
  Usage: "usage",
18868
19014
  UsagePercentage: "usage_percentage",
@@ -19352,6 +19498,7 @@ var GetPlanVariantDetailsSpendLimit$inboundSchema = z58.pipe(
19352
19498
  })
19353
19499
  );
19354
19500
  var GetPlanVariantDetailsUsageLimitInterval$inboundSchema = inboundSchema(GetPlanVariantDetailsUsageLimitInterval);
19501
+ var GetPlanVariantDetailsAnchor$inboundSchema = inboundSchema(GetPlanVariantDetailsAnchor);
19355
19502
  var GetPlanVariantDetailsFilter$inboundSchema = z58.object({
19356
19503
  properties: z58.record(z58.string(), string5())
19357
19504
  });
@@ -19361,6 +19508,7 @@ var GetPlanVariantDetailsUsageLimit$inboundSchema = z58.pipe(
19361
19508
  enabled: z58._default(boolean2(), true),
19362
19509
  limit: number2(),
19363
19510
  interval: GetPlanVariantDetailsUsageLimitInterval$inboundSchema,
19511
+ anchor: optional3(GetPlanVariantDetailsAnchor$inboundSchema),
19364
19512
  filter: optional3(
19365
19513
  z58.lazy(() => GetPlanVariantDetailsFilter$inboundSchema)
19366
19514
  )
@@ -19523,6 +19671,7 @@ var GetPlanSpendLimit$inboundSchema = z58.pipe(
19523
19671
  })
19524
19672
  );
19525
19673
  var GetPlanUsageLimitInterval$inboundSchema = inboundSchema(GetPlanUsageLimitInterval);
19674
+ var GetPlanAnchor$inboundSchema = inboundSchema(GetPlanAnchor);
19526
19675
  var GetPlanFilter$inboundSchema = z58.object({
19527
19676
  properties: z58.record(z58.string(), string5())
19528
19677
  });
@@ -19532,6 +19681,7 @@ var GetPlanUsageLimit$inboundSchema = z58.pipe(
19532
19681
  enabled: z58._default(boolean2(), true),
19533
19682
  limit: number2(),
19534
19683
  interval: GetPlanUsageLimitInterval$inboundSchema,
19684
+ anchor: optional3(GetPlanAnchor$inboundSchema),
19535
19685
  filter: optional3(z58.lazy(() => GetPlanFilter$inboundSchema))
19536
19686
  }),
19537
19687
  z58.transform((v) => {
@@ -20269,6 +20419,10 @@ var ListCustomersUsageLimitInterval = {
20269
20419
  Month: "month",
20270
20420
  Year: "year"
20271
20421
  };
20422
+ var ListCustomersAnchor = {
20423
+ BillingCycle: "billing_cycle",
20424
+ Utc: "utc"
20425
+ };
20272
20426
  var ListCustomersUsageLimitSource = {
20273
20427
  Customer: "customer",
20274
20428
  Plan: "plan"
@@ -20417,6 +20571,7 @@ var ListCustomersSpendLimit$inboundSchema = z65.pipe(
20417
20571
  })
20418
20572
  );
20419
20573
  var ListCustomersUsageLimitInterval$inboundSchema = inboundSchema(ListCustomersUsageLimitInterval);
20574
+ var ListCustomersAnchor$inboundSchema = inboundSchema(ListCustomersAnchor);
20420
20575
  var ListCustomersFilter$inboundSchema = z65.object({
20421
20576
  properties: z65.record(z65.string(), string5())
20422
20577
  });
@@ -20427,6 +20582,7 @@ var ListCustomersUsageLimit$inboundSchema = z65.pipe(
20427
20582
  enabled: z65._default(boolean2(), true),
20428
20583
  limit: number2(),
20429
20584
  interval: ListCustomersUsageLimitInterval$inboundSchema,
20585
+ anchor: optional3(ListCustomersAnchor$inboundSchema),
20430
20586
  filter: optional3(z65.lazy(() => ListCustomersFilter$inboundSchema)),
20431
20587
  usage: optional3(number2()),
20432
20588
  source: optional3(ListCustomersUsageLimitSource$inboundSchema)
@@ -20780,6 +20936,10 @@ var ListEntitiesInterval = {
20780
20936
  Month: "month",
20781
20937
  Year: "year"
20782
20938
  };
20939
+ var ListEntitiesAnchor = {
20940
+ BillingCycle: "billing_cycle",
20941
+ Utc: "utc"
20942
+ };
20783
20943
  var ListEntitiesUsageLimitSource = {
20784
20944
  Customer: "customer",
20785
20945
  Plan: "plan"
@@ -20986,6 +21146,7 @@ var ListEntitiesSpendLimit$inboundSchema = z66.pipe(
20986
21146
  })
20987
21147
  );
20988
21148
  var ListEntitiesInterval$inboundSchema = inboundSchema(ListEntitiesInterval);
21149
+ var ListEntitiesAnchor$inboundSchema = inboundSchema(ListEntitiesAnchor);
20989
21150
  var ListEntitiesFilter$inboundSchema = z66.object({
20990
21151
  properties: z66.record(z66.string(), string5())
20991
21152
  });
@@ -20996,6 +21157,7 @@ var ListEntitiesUsageLimit$inboundSchema = z66.pipe(
20996
21157
  enabled: z66._default(boolean2(), true),
20997
21158
  limit: number2(),
20998
21159
  interval: ListEntitiesInterval$inboundSchema,
21160
+ anchor: optional3(ListEntitiesAnchor$inboundSchema),
20999
21161
  filter: optional3(z66.lazy(() => ListEntitiesFilter$inboundSchema)),
21000
21162
  usage: optional3(number2()),
21001
21163
  source: optional3(ListEntitiesUsageLimitSource$inboundSchema)
@@ -21555,6 +21717,10 @@ var ListPlansVariantDetailsUsageLimitInterval = {
21555
21717
  Month: "month",
21556
21718
  Year: "year"
21557
21719
  };
21720
+ var ListPlansVariantDetailsAnchor = {
21721
+ BillingCycle: "billing_cycle",
21722
+ Utc: "utc"
21723
+ };
21558
21724
  var ListPlansVariantDetailsThresholdType = {
21559
21725
  Usage: "usage",
21560
21726
  UsagePercentage: "usage_percentage",
@@ -21577,6 +21743,10 @@ var ListPlansUsageLimitInterval = {
21577
21743
  Month: "month",
21578
21744
  Year: "year"
21579
21745
  };
21746
+ var ListPlansAnchor = {
21747
+ BillingCycle: "billing_cycle",
21748
+ Utc: "utc"
21749
+ };
21580
21750
  var ListPlansThresholdType = {
21581
21751
  Usage: "usage",
21582
21752
  UsagePercentage: "usage_percentage",
@@ -22058,6 +22228,7 @@ var ListPlansVariantDetailsSpendLimit$inboundSchema = z70.pipe(
22058
22228
  })
22059
22229
  );
22060
22230
  var ListPlansVariantDetailsUsageLimitInterval$inboundSchema = inboundSchema(ListPlansVariantDetailsUsageLimitInterval);
22231
+ var ListPlansVariantDetailsAnchor$inboundSchema = inboundSchema(ListPlansVariantDetailsAnchor);
22061
22232
  var ListPlansVariantDetailsFilter$inboundSchema = z70.object({
22062
22233
  properties: z70.record(z70.string(), string5())
22063
22234
  });
@@ -22067,6 +22238,7 @@ var ListPlansVariantDetailsUsageLimit$inboundSchema = z70.pipe(
22067
22238
  enabled: z70._default(boolean2(), true),
22068
22239
  limit: number2(),
22069
22240
  interval: ListPlansVariantDetailsUsageLimitInterval$inboundSchema,
22241
+ anchor: optional3(ListPlansVariantDetailsAnchor$inboundSchema),
22070
22242
  filter: optional3(
22071
22243
  z70.lazy(() => ListPlansVariantDetailsFilter$inboundSchema)
22072
22244
  )
@@ -22231,6 +22403,7 @@ var ListPlansSpendLimit$inboundSchema = z70.pipe(
22231
22403
  })
22232
22404
  );
22233
22405
  var ListPlansUsageLimitInterval$inboundSchema = inboundSchema(ListPlansUsageLimitInterval);
22406
+ var ListPlansAnchor$inboundSchema = inboundSchema(ListPlansAnchor);
22234
22407
  var ListPlansFilter$inboundSchema = z70.object({
22235
22408
  properties: z70.record(z70.string(), string5())
22236
22409
  });
@@ -22240,6 +22413,7 @@ var ListPlansUsageLimit$inboundSchema = z70.pipe(
22240
22413
  enabled: z70._default(boolean2(), true),
22241
22414
  limit: number2(),
22242
22415
  interval: ListPlansUsageLimitInterval$inboundSchema,
22416
+ anchor: optional3(ListPlansAnchor$inboundSchema),
22243
22417
  filter: optional3(z70.lazy(() => ListPlansFilter$inboundSchema))
22244
22418
  }),
22245
22419
  z70.transform((v) => {
@@ -22635,6 +22809,10 @@ var MultiAttachEntityDataInterval = {
22635
22809
  Month: "month",
22636
22810
  Year: "year"
22637
22811
  };
22812
+ var MultiAttachAnchor = {
22813
+ BillingCycle: "billing_cycle",
22814
+ Utc: "utc"
22815
+ };
22638
22816
  var MultiAttachThresholdType = {
22639
22817
  Usage: "usage",
22640
22818
  UsagePercentage: "usage_percentage",
@@ -22893,6 +23071,7 @@ var MultiAttachSpendLimit$outboundSchema = z74.pipe(
22893
23071
  })
22894
23072
  );
22895
23073
  var MultiAttachEntityDataInterval$outboundSchema = z74.enum(MultiAttachEntityDataInterval);
23074
+ var MultiAttachAnchor$outboundSchema = z74.enum(MultiAttachAnchor);
22896
23075
  var MultiAttachProperties$outboundSchema = smartUnion([z74.string(), z74.number(), z74.boolean()]);
22897
23076
  var MultiAttachFilter$outboundSchema = z74.object({
22898
23077
  properties: z74.record(
@@ -22906,6 +23085,7 @@ var MultiAttachUsageLimit$outboundSchema = z74.pipe(
22906
23085
  enabled: z74._default(z74.boolean(), true),
22907
23086
  limit: z74.number(),
22908
23087
  interval: MultiAttachEntityDataInterval$outboundSchema,
23088
+ anchor: z74.optional(MultiAttachAnchor$outboundSchema),
22909
23089
  filter: z74.optional(z74.lazy(() => MultiAttachFilter$outboundSchema))
22910
23090
  }),
22911
23091
  z74.transform((v) => {
@@ -23330,6 +23510,10 @@ var PreviewAttachUsageLimitInterval = {
23330
23510
  Month: "month",
23331
23511
  Year: "year"
23332
23512
  };
23513
+ var PreviewAttachAnchor = {
23514
+ BillingCycle: "billing_cycle",
23515
+ Utc: "utc"
23516
+ };
23333
23517
  var PreviewAttachThresholdType = {
23334
23518
  Usage: "usage",
23335
23519
  UsagePercentage: "usage_percentage",
@@ -23818,6 +24002,7 @@ var PreviewAttachSpendLimit$outboundSchema = z77.pipe(
23818
24002
  })
23819
24003
  );
23820
24004
  var PreviewAttachUsageLimitInterval$outboundSchema = z77.enum(PreviewAttachUsageLimitInterval);
24005
+ var PreviewAttachAnchor$outboundSchema = z77.enum(PreviewAttachAnchor);
23821
24006
  var PreviewAttachProperties$outboundSchema = smartUnion([z77.string(), z77.number(), z77.boolean()]);
23822
24007
  var PreviewAttachFilter$outboundSchema = z77.object({
23823
24008
  properties: z77.record(
@@ -23831,6 +24016,7 @@ var PreviewAttachUsageLimit$outboundSchema = z77.pipe(
23831
24016
  enabled: z77._default(z77.boolean(), true),
23832
24017
  limit: z77.number(),
23833
24018
  interval: PreviewAttachUsageLimitInterval$outboundSchema,
24019
+ anchor: z77.optional(PreviewAttachAnchor$outboundSchema),
23834
24020
  filter: z77.optional(z77.lazy(() => PreviewAttachFilter$outboundSchema))
23835
24021
  }),
23836
24022
  z77.transform((v) => {
@@ -24621,6 +24807,10 @@ var PreviewMultiAttachEntityDataInterval = {
24621
24807
  Month: "month",
24622
24808
  Year: "year"
24623
24809
  };
24810
+ var PreviewMultiAttachAnchor = {
24811
+ BillingCycle: "billing_cycle",
24812
+ Utc: "utc"
24813
+ };
24624
24814
  var PreviewMultiAttachThresholdType = {
24625
24815
  Usage: "usage",
24626
24816
  UsagePercentage: "usage_percentage",
@@ -24898,6 +25088,7 @@ var PreviewMultiAttachSpendLimit$outboundSchema = z78.pipe(
24898
25088
  })
24899
25089
  );
24900
25090
  var PreviewMultiAttachEntityDataInterval$outboundSchema = z78.enum(PreviewMultiAttachEntityDataInterval);
25091
+ var PreviewMultiAttachAnchor$outboundSchema = z78.enum(PreviewMultiAttachAnchor);
24901
25092
  var PreviewMultiAttachProperties$outboundSchema = smartUnion([z78.string(), z78.number(), z78.boolean()]);
24902
25093
  var PreviewMultiAttachFilter$outboundSchema = z78.object({
24903
25094
  properties: z78.record(
@@ -24911,6 +25102,7 @@ var PreviewMultiAttachUsageLimit$outboundSchema = z78.pipe(
24911
25102
  enabled: z78._default(z78.boolean(), true),
24912
25103
  limit: z78.number(),
24913
25104
  interval: PreviewMultiAttachEntityDataInterval$outboundSchema,
25105
+ anchor: z78.optional(PreviewMultiAttachAnchor$outboundSchema),
24914
25106
  filter: z78.optional(z78.lazy(() => PreviewMultiAttachFilter$outboundSchema))
24915
25107
  }),
24916
25108
  z78.transform((v) => {
@@ -25708,6 +25900,10 @@ var PreviewUpdateUsageLimitInterval = {
25708
25900
  Month: "month",
25709
25901
  Year: "year"
25710
25902
  };
25903
+ var PreviewUpdateAnchor = {
25904
+ BillingCycle: "billing_cycle",
25905
+ Utc: "utc"
25906
+ };
25711
25907
  var PreviewUpdateThresholdType = {
25712
25908
  Usage: "usage",
25713
25909
  UsagePercentage: "usage_percentage",
@@ -26205,6 +26401,7 @@ var PreviewUpdateSpendLimit$outboundSchema = z80.pipe(
26205
26401
  })
26206
26402
  );
26207
26403
  var PreviewUpdateUsageLimitInterval$outboundSchema = z80.enum(PreviewUpdateUsageLimitInterval);
26404
+ var PreviewUpdateAnchor$outboundSchema = z80.enum(PreviewUpdateAnchor);
26208
26405
  var PreviewUpdateProperties$outboundSchema = smartUnion([z80.string(), z80.number(), z80.boolean()]);
26209
26406
  var PreviewUpdateFilter$outboundSchema = z80.object({
26210
26407
  properties: z80.record(
@@ -26218,6 +26415,7 @@ var PreviewUpdateUsageLimit$outboundSchema = z80.pipe(
26218
26415
  enabled: z80._default(z80.boolean(), true),
26219
26416
  limit: z80.number(),
26220
26417
  interval: PreviewUpdateUsageLimitInterval$outboundSchema,
26418
+ anchor: z80.optional(PreviewUpdateAnchor$outboundSchema),
26221
26419
  filter: z80.optional(z80.lazy(() => PreviewUpdateFilter$outboundSchema))
26222
26420
  }),
26223
26421
  z80.transform((v) => {
@@ -27158,6 +27356,10 @@ var SetupPaymentUsageLimitInterval = {
27158
27356
  Month: "month",
27159
27357
  Year: "year"
27160
27358
  };
27359
+ var SetupPaymentAnchor = {
27360
+ BillingCycle: "billing_cycle",
27361
+ Utc: "utc"
27362
+ };
27161
27363
  var SetupPaymentThresholdType = {
27162
27364
  Usage: "usage",
27163
27365
  UsagePercentage: "usage_percentage",
@@ -27629,6 +27831,7 @@ var SetupPaymentSpendLimit$outboundSchema = z86.pipe(
27629
27831
  })
27630
27832
  );
27631
27833
  var SetupPaymentUsageLimitInterval$outboundSchema = z86.enum(SetupPaymentUsageLimitInterval);
27834
+ var SetupPaymentAnchor$outboundSchema = z86.enum(SetupPaymentAnchor);
27632
27835
  var SetupPaymentProperties$outboundSchema = smartUnion([z86.string(), z86.number(), z86.boolean()]);
27633
27836
  var SetupPaymentFilter$outboundSchema = z86.object({
27634
27837
  properties: z86.record(
@@ -27642,6 +27845,7 @@ var SetupPaymentUsageLimit$outboundSchema = z86.pipe(
27642
27845
  enabled: z86._default(z86.boolean(), true),
27643
27846
  limit: z86.number(),
27644
27847
  interval: SetupPaymentUsageLimitInterval$outboundSchema,
27848
+ anchor: z86.optional(SetupPaymentAnchor$outboundSchema),
27645
27849
  filter: z86.optional(z86.lazy(() => SetupPaymentFilter$outboundSchema))
27646
27850
  }),
27647
27851
  z86.transform((v) => {
@@ -28592,6 +28796,10 @@ var UpdateCustomerUsageLimitIntervalRequestBody = {
28592
28796
  Month: "month",
28593
28797
  Year: "year"
28594
28798
  };
28799
+ var UpdateCustomerAnchorRequestBody = {
28800
+ BillingCycle: "billing_cycle",
28801
+ Utc: "utc"
28802
+ };
28595
28803
  var UpdateCustomerThresholdTypeRequestBody = {
28596
28804
  Usage: "usage",
28597
28805
  UsagePercentage: "usage_percentage",
@@ -28632,6 +28840,10 @@ var UpdateCustomerUsageLimitIntervalResponse = {
28632
28840
  Month: "month",
28633
28841
  Year: "year"
28634
28842
  };
28843
+ var UpdateCustomerAnchorResponse = {
28844
+ BillingCycle: "billing_cycle",
28845
+ Utc: "utc"
28846
+ };
28635
28847
  var UpdateCustomerUsageLimitSource = {
28636
28848
  Customer: "customer",
28637
28849
  Plan: "plan"
@@ -28724,6 +28936,7 @@ var UpdateCustomerSpendLimitRequestBody$outboundSchema = z91.pipe(
28724
28936
  var UpdateCustomerUsageLimitIntervalRequestBody$outboundSchema = z91.enum(
28725
28937
  UpdateCustomerUsageLimitIntervalRequestBody
28726
28938
  );
28939
+ var UpdateCustomerAnchorRequestBody$outboundSchema = z91.enum(UpdateCustomerAnchorRequestBody);
28727
28940
  var UpdateCustomerProperties$outboundSchema = smartUnion([z91.string(), z91.number(), z91.boolean()]);
28728
28941
  var UpdateCustomerFilterRequestBody$outboundSchema = z91.object({
28729
28942
  properties: z91.record(
@@ -28737,6 +28950,7 @@ var UpdateCustomerUsageLimitRequestBody$outboundSchema = z91.pipe(
28737
28950
  enabled: z91._default(z91.boolean(), true),
28738
28951
  limit: z91.number(),
28739
28952
  interval: UpdateCustomerUsageLimitIntervalRequestBody$outboundSchema,
28953
+ anchor: z91.optional(UpdateCustomerAnchorRequestBody$outboundSchema),
28740
28954
  filter: z91.optional(
28741
28955
  z91.lazy(() => UpdateCustomerFilterRequestBody$outboundSchema)
28742
28956
  )
@@ -28933,6 +29147,7 @@ var UpdateCustomerSpendLimitResponse$inboundSchema = z91.pipe(
28933
29147
  })
28934
29148
  );
28935
29149
  var UpdateCustomerUsageLimitIntervalResponse$inboundSchema = inboundSchema(UpdateCustomerUsageLimitIntervalResponse);
29150
+ var UpdateCustomerAnchorResponse$inboundSchema = inboundSchema(UpdateCustomerAnchorResponse);
28936
29151
  var UpdateCustomerFilterResponse$inboundSchema = z91.object({
28937
29152
  properties: z91.record(z91.string(), string5())
28938
29153
  });
@@ -28943,6 +29158,7 @@ var UpdateCustomerUsageLimitResponse$inboundSchema = z91.pipe(
28943
29158
  enabled: z91._default(boolean2(), true),
28944
29159
  limit: number2(),
28945
29160
  interval: UpdateCustomerUsageLimitIntervalResponse$inboundSchema,
29161
+ anchor: optional3(UpdateCustomerAnchorResponse$inboundSchema),
28946
29162
  filter: optional3(
28947
29163
  z91.lazy(() => UpdateCustomerFilterResponse$inboundSchema)
28948
29164
  ),
@@ -29259,6 +29475,10 @@ var UpdateEntityIntervalRequestBody = {
29259
29475
  Month: "month",
29260
29476
  Year: "year"
29261
29477
  };
29478
+ var UpdateEntityAnchorRequestBody = {
29479
+ BillingCycle: "billing_cycle",
29480
+ Utc: "utc"
29481
+ };
29262
29482
  var UpdateEntityThresholdTypeRequestBody = {
29263
29483
  Usage: "usage",
29264
29484
  UsagePercentage: "usage_percentage",
@@ -29301,6 +29521,10 @@ var UpdateEntityIntervalResponse = {
29301
29521
  Month: "month",
29302
29522
  Year: "year"
29303
29523
  };
29524
+ var UpdateEntityAnchorResponse = {
29525
+ BillingCycle: "billing_cycle",
29526
+ Utc: "utc"
29527
+ };
29304
29528
  var UpdateEntityUsageLimitSource = {
29305
29529
  Customer: "customer",
29306
29530
  Plan: "plan"
@@ -29342,6 +29566,7 @@ var UpdateEntitySpendLimitRequestBody$outboundSchema = z92.pipe(
29342
29566
  })
29343
29567
  );
29344
29568
  var UpdateEntityIntervalRequestBody$outboundSchema = z92.enum(UpdateEntityIntervalRequestBody);
29569
+ var UpdateEntityAnchorRequestBody$outboundSchema = z92.enum(UpdateEntityAnchorRequestBody);
29345
29570
  var UpdateEntityProperties$outboundSchema = smartUnion([z92.string(), z92.number(), z92.boolean()]);
29346
29571
  var UpdateEntityFilterRequestBody$outboundSchema = z92.object({
29347
29572
  properties: z92.record(
@@ -29355,6 +29580,7 @@ var UpdateEntityUsageLimitRequestBody$outboundSchema = z92.pipe(
29355
29580
  enabled: z92._default(z92.boolean(), true),
29356
29581
  limit: z92.number(),
29357
29582
  interval: UpdateEntityIntervalRequestBody$outboundSchema,
29583
+ anchor: z92.optional(UpdateEntityAnchorRequestBody$outboundSchema),
29358
29584
  filter: z92.optional(
29359
29585
  z92.lazy(() => UpdateEntityFilterRequestBody$outboundSchema)
29360
29586
  )
@@ -29590,6 +29816,7 @@ var UpdateEntitySpendLimitResponse$inboundSchema = z92.pipe(
29590
29816
  })
29591
29817
  );
29592
29818
  var UpdateEntityIntervalResponse$inboundSchema = inboundSchema(UpdateEntityIntervalResponse);
29819
+ var UpdateEntityAnchorResponse$inboundSchema = inboundSchema(UpdateEntityAnchorResponse);
29593
29820
  var UpdateEntityFilterResponse$inboundSchema = z92.object({
29594
29821
  properties: z92.record(z92.string(), string5())
29595
29822
  });
@@ -29600,6 +29827,7 @@ var UpdateEntityUsageLimitResponse$inboundSchema = z92.pipe(
29600
29827
  enabled: z92._default(boolean2(), true),
29601
29828
  limit: number2(),
29602
29829
  interval: UpdateEntityIntervalResponse$inboundSchema,
29830
+ anchor: optional3(UpdateEntityAnchorResponse$inboundSchema),
29603
29831
  filter: optional3(
29604
29832
  z92.lazy(() => UpdateEntityFilterResponse$inboundSchema)
29605
29833
  ),
@@ -30035,6 +30263,10 @@ var UpdatePlanUsageLimitIntervalRequestBody = {
30035
30263
  Month: "month",
30036
30264
  Year: "year"
30037
30265
  };
30266
+ var UpdatePlanAnchorRequestBody = {
30267
+ BillingCycle: "billing_cycle",
30268
+ Utc: "utc"
30269
+ };
30038
30270
  var UpdatePlanThresholdTypeRequestBody = {
30039
30271
  Usage: "usage",
30040
30272
  UsagePercentage: "usage_percentage",
@@ -30141,6 +30373,10 @@ var VariantUsageLimitInterval = {
30141
30373
  Month: "month",
30142
30374
  Year: "year"
30143
30375
  };
30376
+ var VariantAnchor = {
30377
+ BillingCycle: "billing_cycle",
30378
+ Utc: "utc"
30379
+ };
30144
30380
  var VariantThresholdType = {
30145
30381
  Usage: "usage",
30146
30382
  UsagePercentage: "usage_percentage",
@@ -30307,6 +30543,10 @@ var UpdatePlanVariantDetailsUsageLimitInterval = {
30307
30543
  Month: "month",
30308
30544
  Year: "year"
30309
30545
  };
30546
+ var UpdatePlanVariantDetailsAnchor = {
30547
+ BillingCycle: "billing_cycle",
30548
+ Utc: "utc"
30549
+ };
30310
30550
  var UpdatePlanVariantDetailsThresholdType = {
30311
30551
  Usage: "usage",
30312
30552
  UsagePercentage: "usage_percentage",
@@ -30329,6 +30569,10 @@ var UpdatePlanUsageLimitIntervalResponse = {
30329
30569
  Month: "month",
30330
30570
  Year: "year"
30331
30571
  };
30572
+ var UpdatePlanAnchorResponse = {
30573
+ BillingCycle: "billing_cycle",
30574
+ Utc: "utc"
30575
+ };
30332
30576
  var UpdatePlanThresholdTypeResponse = {
30333
30577
  Usage: "usage",
30334
30578
  UsagePercentage: "usage_percentage",
@@ -30816,6 +31060,7 @@ var UpdatePlanSpendLimitRequestBody$outboundSchema = z94.pipe(
30816
31060
  var UpdatePlanUsageLimitIntervalRequestBody$outboundSchema = z94.enum(
30817
31061
  UpdatePlanUsageLimitIntervalRequestBody
30818
31062
  );
31063
+ var UpdatePlanAnchorRequestBody$outboundSchema = z94.enum(UpdatePlanAnchorRequestBody);
30819
31064
  var UpdatePlanProperties$outboundSchema = smartUnion([z94.string(), z94.number(), z94.boolean()]);
30820
31065
  var UpdatePlanFilterRequestBody$outboundSchema = z94.object({
30821
31066
  properties: z94.record(
@@ -30829,6 +31074,7 @@ var UpdatePlanUsageLimitRequestBody$outboundSchema = z94.pipe(
30829
31074
  enabled: z94._default(z94.boolean(), true),
30830
31075
  limit: z94.number(),
30831
31076
  interval: UpdatePlanUsageLimitIntervalRequestBody$outboundSchema,
31077
+ anchor: z94.optional(UpdatePlanAnchorRequestBody$outboundSchema),
30832
31078
  filter: z94.optional(
30833
31079
  z94.lazy(() => UpdatePlanFilterRequestBody$outboundSchema)
30834
31080
  )
@@ -31140,6 +31386,7 @@ var VariantSpendLimit$outboundSchema = z94.pipe(
31140
31386
  })
31141
31387
  );
31142
31388
  var VariantUsageLimitInterval$outboundSchema = z94.enum(VariantUsageLimitInterval);
31389
+ var VariantAnchor$outboundSchema = z94.enum(VariantAnchor);
31143
31390
  var VariantFilter$outboundSchema = z94.object({
31144
31391
  properties: z94.record(z94.string(), z94.any())
31145
31392
  });
@@ -31149,6 +31396,7 @@ var VariantUsageLimit$outboundSchema = z94.pipe(
31149
31396
  enabled: z94._default(z94.boolean(), true),
31150
31397
  limit: z94.number(),
31151
31398
  interval: VariantUsageLimitInterval$outboundSchema,
31399
+ anchor: z94.optional(VariantAnchor$outboundSchema),
31152
31400
  filter: z94.optional(z94.lazy(() => VariantFilter$outboundSchema))
31153
31401
  }),
31154
31402
  z94.transform((v) => {
@@ -31811,6 +32059,7 @@ var UpdatePlanVariantDetailsSpendLimit$inboundSchema = z94.pipe(
31811
32059
  })
31812
32060
  );
31813
32061
  var UpdatePlanVariantDetailsUsageLimitInterval$inboundSchema = inboundSchema(UpdatePlanVariantDetailsUsageLimitInterval);
32062
+ var UpdatePlanVariantDetailsAnchor$inboundSchema = inboundSchema(UpdatePlanVariantDetailsAnchor);
31814
32063
  var UpdatePlanVariantDetailsFilter$inboundSchema = z94.object({
31815
32064
  properties: z94.record(z94.string(), string5())
31816
32065
  });
@@ -31820,6 +32069,7 @@ var UpdatePlanVariantDetailsUsageLimit$inboundSchema = z94.pipe(
31820
32069
  enabled: z94._default(boolean2(), true),
31821
32070
  limit: number2(),
31822
32071
  interval: UpdatePlanVariantDetailsUsageLimitInterval$inboundSchema,
32072
+ anchor: optional3(UpdatePlanVariantDetailsAnchor$inboundSchema),
31823
32073
  filter: optional3(
31824
32074
  z94.lazy(() => UpdatePlanVariantDetailsFilter$inboundSchema)
31825
32075
  )
@@ -31986,6 +32236,7 @@ var UpdatePlanSpendLimitResponse$inboundSchema = z94.pipe(
31986
32236
  })
31987
32237
  );
31988
32238
  var UpdatePlanUsageLimitIntervalResponse$inboundSchema = inboundSchema(UpdatePlanUsageLimitIntervalResponse);
32239
+ var UpdatePlanAnchorResponse$inboundSchema = inboundSchema(UpdatePlanAnchorResponse);
31989
32240
  var UpdatePlanFilterResponse$inboundSchema = z94.object({
31990
32241
  properties: z94.record(z94.string(), string5())
31991
32242
  });
@@ -31995,6 +32246,7 @@ var UpdatePlanUsageLimitResponse$inboundSchema = z94.pipe(
31995
32246
  enabled: z94._default(boolean2(), true),
31996
32247
  limit: number2(),
31997
32248
  interval: UpdatePlanUsageLimitIntervalResponse$inboundSchema,
32249
+ anchor: optional3(UpdatePlanAnchorResponse$inboundSchema),
31998
32250
  filter: optional3(
31999
32251
  z94.lazy(() => UpdatePlanFilterResponse$inboundSchema)
32000
32252
  )
@@ -34729,6 +34981,7 @@ var Billing = class extends ClientSDK {
34729
34981
  * @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
34730
34982
  * @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)
34731
34983
  * @param billingBehavior - Whether to prorate the immediate phase. 'none' skips proration charges and credits. (optional)
34984
+ * @param noBillingChanges - If true, skips any billing changes for the schedule. (optional)
34732
34985
  * @param billingCycleAnchor - Pass 'now' to reset the billing cycle anchor of the immediate phase to the current time. (optional)
34733
34986
  * @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)
34734
34987
  * @param preserveAddOns - Deprecated and ignored. Active plans the schedule does not declare are always retained. (optional)