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
@@ -1,4 +1,4 @@
1
- import { O as OpenEnum } from './plan-DGDzxyO5.mjs';
1
+ import { O as OpenEnum } from './plan-DEGPMYmh.mjs';
2
2
 
3
3
  type ListPlansAdditionalCurrency = {
4
4
  /**
@@ -854,6 +854,17 @@ declare const ListPlansVariantDetailsUsageLimitInterval: {
854
854
  * Interval for the cap, aligned to the customer's billing cycle.
855
855
  */
856
856
  type ListPlansVariantDetailsUsageLimitInterval = OpenEnum<typeof ListPlansVariantDetailsUsageLimitInterval>;
857
+ /**
858
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
859
+ */
860
+ declare const ListPlansVariantDetailsAnchor: {
861
+ readonly BillingCycle: "billing_cycle";
862
+ readonly Utc: "utc";
863
+ };
864
+ /**
865
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
866
+ */
867
+ type ListPlansVariantDetailsAnchor = OpenEnum<typeof ListPlansVariantDetailsAnchor>;
857
868
  /**
858
869
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
859
870
  */
@@ -879,6 +890,10 @@ type ListPlansVariantDetailsUsageLimit = {
879
890
  * Interval for the cap, aligned to the customer's billing cycle.
880
891
  */
881
892
  interval: ListPlansVariantDetailsUsageLimitInterval;
893
+ /**
894
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
895
+ */
896
+ anchor?: ListPlansVariantDetailsAnchor | undefined;
882
897
  /**
883
898
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
884
899
  */
@@ -1103,6 +1118,17 @@ declare const ListPlansUsageLimitInterval: {
1103
1118
  * Interval for the cap, aligned to the customer's billing cycle.
1104
1119
  */
1105
1120
  type ListPlansUsageLimitInterval = OpenEnum<typeof ListPlansUsageLimitInterval>;
1121
+ /**
1122
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
1123
+ */
1124
+ declare const ListPlansAnchor: {
1125
+ readonly BillingCycle: "billing_cycle";
1126
+ readonly Utc: "utc";
1127
+ };
1128
+ /**
1129
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
1130
+ */
1131
+ type ListPlansAnchor = OpenEnum<typeof ListPlansAnchor>;
1106
1132
  /**
1107
1133
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
1108
1134
  */
@@ -1128,6 +1154,10 @@ type ListPlansUsageLimit = {
1128
1154
  * Interval for the cap, aligned to the customer's billing cycle.
1129
1155
  */
1130
1156
  interval: ListPlansUsageLimitInterval;
1157
+ /**
1158
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
1159
+ */
1160
+ anchor?: ListPlansAnchor | undefined;
1131
1161
  /**
1132
1162
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
1133
1163
  */
@@ -1,4 +1,4 @@
1
- import { O as OpenEnum } from './plan-DGDzxyO5.js';
1
+ import { O as OpenEnum } from './plan-DEGPMYmh.js';
2
2
 
3
3
  type ListPlansAdditionalCurrency = {
4
4
  /**
@@ -854,6 +854,17 @@ declare const ListPlansVariantDetailsUsageLimitInterval: {
854
854
  * Interval for the cap, aligned to the customer's billing cycle.
855
855
  */
856
856
  type ListPlansVariantDetailsUsageLimitInterval = OpenEnum<typeof ListPlansVariantDetailsUsageLimitInterval>;
857
+ /**
858
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
859
+ */
860
+ declare const ListPlansVariantDetailsAnchor: {
861
+ readonly BillingCycle: "billing_cycle";
862
+ readonly Utc: "utc";
863
+ };
864
+ /**
865
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
866
+ */
867
+ type ListPlansVariantDetailsAnchor = OpenEnum<typeof ListPlansVariantDetailsAnchor>;
857
868
  /**
858
869
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
859
870
  */
@@ -879,6 +890,10 @@ type ListPlansVariantDetailsUsageLimit = {
879
890
  * Interval for the cap, aligned to the customer's billing cycle.
880
891
  */
881
892
  interval: ListPlansVariantDetailsUsageLimitInterval;
893
+ /**
894
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
895
+ */
896
+ anchor?: ListPlansVariantDetailsAnchor | undefined;
882
897
  /**
883
898
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
884
899
  */
@@ -1103,6 +1118,17 @@ declare const ListPlansUsageLimitInterval: {
1103
1118
  * Interval for the cap, aligned to the customer's billing cycle.
1104
1119
  */
1105
1120
  type ListPlansUsageLimitInterval = OpenEnum<typeof ListPlansUsageLimitInterval>;
1121
+ /**
1122
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
1123
+ */
1124
+ declare const ListPlansAnchor: {
1125
+ readonly BillingCycle: "billing_cycle";
1126
+ readonly Utc: "utc";
1127
+ };
1128
+ /**
1129
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
1130
+ */
1131
+ type ListPlansAnchor = OpenEnum<typeof ListPlansAnchor>;
1106
1132
  /**
1107
1133
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
1108
1134
  */
@@ -1128,6 +1154,10 @@ type ListPlansUsageLimit = {
1128
1154
  * Interval for the cap, aligned to the customer's billing cycle.
1129
1155
  */
1130
1156
  interval: ListPlansUsageLimitInterval;
1157
+ /**
1158
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
1159
+ */
1160
+ anchor?: ListPlansAnchor | undefined;
1131
1161
  /**
1132
1162
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
1133
1163
  */
@@ -1,4 +1,4 @@
1
- import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-DGDzxyO5.mjs';
1
+ import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-DEGPMYmh.js';
2
2
 
3
3
  /**
4
4
  * Time range to aggregate events for. Either range or custom_range must be provided
@@ -962,6 +962,17 @@ declare const AttachUsageLimitInterval: {
962
962
  * Interval for the cap, aligned to the customer's billing cycle.
963
963
  */
964
964
  type AttachUsageLimitInterval = ClosedEnum<typeof AttachUsageLimitInterval>;
965
+ /**
966
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
967
+ */
968
+ declare const AttachAnchor: {
969
+ readonly BillingCycle: "billing_cycle";
970
+ readonly Utc: "utc";
971
+ };
972
+ /**
973
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
974
+ */
975
+ type AttachAnchor = ClosedEnum<typeof AttachAnchor>;
965
976
  /**
966
977
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
967
978
  */
@@ -987,6 +998,10 @@ type AttachUsageLimit = {
987
998
  * Interval for the cap, aligned to the customer's billing cycle.
988
999
  */
989
1000
  interval: AttachUsageLimitInterval;
1001
+ /**
1002
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
1003
+ */
1004
+ anchor?: AttachAnchor | undefined;
990
1005
  /**
991
1006
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
992
1007
  */
@@ -2507,6 +2522,17 @@ declare const BillingUpdateUsageLimitInterval: {
2507
2522
  * Interval for the cap, aligned to the customer's billing cycle.
2508
2523
  */
2509
2524
  type BillingUpdateUsageLimitInterval = ClosedEnum<typeof BillingUpdateUsageLimitInterval>;
2525
+ /**
2526
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
2527
+ */
2528
+ declare const BillingUpdateAnchor: {
2529
+ readonly BillingCycle: "billing_cycle";
2530
+ readonly Utc: "utc";
2531
+ };
2532
+ /**
2533
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
2534
+ */
2535
+ type BillingUpdateAnchor = ClosedEnum<typeof BillingUpdateAnchor>;
2510
2536
  /**
2511
2537
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
2512
2538
  */
@@ -2532,6 +2558,10 @@ type BillingUpdateUsageLimit = {
2532
2558
  * Interval for the cap, aligned to the customer's billing cycle.
2533
2559
  */
2534
2560
  interval: BillingUpdateUsageLimitInterval;
2561
+ /**
2562
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
2563
+ */
2564
+ anchor?: BillingUpdateAnchor | undefined;
2535
2565
  /**
2536
2566
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
2537
2567
  */
@@ -3729,6 +3759,17 @@ declare const CheckUsageLimitInterval2: {
3729
3759
  * Interval for the cap, aligned to the customer's billing cycle.
3730
3760
  */
3731
3761
  type CheckUsageLimitInterval2 = OpenEnum<typeof CheckUsageLimitInterval2>;
3762
+ /**
3763
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
3764
+ */
3765
+ declare const CheckAnchor2: {
3766
+ readonly BillingCycle: "billing_cycle";
3767
+ readonly Utc: "utc";
3768
+ };
3769
+ /**
3770
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
3771
+ */
3772
+ type CheckAnchor2 = OpenEnum<typeof CheckAnchor2>;
3732
3773
  /**
3733
3774
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
3734
3775
  */
@@ -3754,6 +3795,10 @@ type CheckUsageLimit2 = {
3754
3795
  * Interval for the cap, aligned to the customer's billing cycle.
3755
3796
  */
3756
3797
  interval: CheckUsageLimitInterval2;
3798
+ /**
3799
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
3800
+ */
3801
+ anchor?: CheckAnchor2 | undefined;
3757
3802
  /**
3758
3803
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
3759
3804
  */
@@ -4425,6 +4470,17 @@ declare const CheckUsageLimitInterval1: {
4425
4470
  * Interval for the cap, aligned to the customer's billing cycle.
4426
4471
  */
4427
4472
  type CheckUsageLimitInterval1 = OpenEnum<typeof CheckUsageLimitInterval1>;
4473
+ /**
4474
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
4475
+ */
4476
+ declare const CheckAnchor1: {
4477
+ readonly BillingCycle: "billing_cycle";
4478
+ readonly Utc: "utc";
4479
+ };
4480
+ /**
4481
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
4482
+ */
4483
+ type CheckAnchor1 = OpenEnum<typeof CheckAnchor1>;
4428
4484
  /**
4429
4485
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
4430
4486
  */
@@ -4450,6 +4506,10 @@ type CheckUsageLimit1 = {
4450
4506
  * Interval for the cap, aligned to the customer's billing cycle.
4451
4507
  */
4452
4508
  interval: CheckUsageLimitInterval1;
4509
+ /**
4510
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
4511
+ */
4512
+ anchor?: CheckAnchor1 | undefined;
4453
4513
  /**
4454
4514
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
4455
4515
  */
@@ -4801,6 +4861,17 @@ declare const CustomerDataUsageLimitInterval: {
4801
4861
  * Interval for the cap, aligned to the customer's billing cycle.
4802
4862
  */
4803
4863
  type CustomerDataUsageLimitInterval = ClosedEnum<typeof CustomerDataUsageLimitInterval>;
4864
+ /**
4865
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
4866
+ */
4867
+ declare const CustomerDataAnchor: {
4868
+ readonly BillingCycle: "billing_cycle";
4869
+ readonly Utc: "utc";
4870
+ };
4871
+ /**
4872
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
4873
+ */
4874
+ type CustomerDataAnchor = ClosedEnum<typeof CustomerDataAnchor>;
4804
4875
  /**
4805
4876
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
4806
4877
  */
@@ -4826,6 +4897,10 @@ type CustomerDataUsageLimit = {
4826
4897
  * Interval for the cap, aligned to the customer's billing cycle.
4827
4898
  */
4828
4899
  interval: CustomerDataUsageLimitInterval;
4900
+ /**
4901
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
4902
+ */
4903
+ anchor?: CustomerDataAnchor | undefined;
4829
4904
  /**
4830
4905
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
4831
4906
  */
@@ -5310,6 +5385,17 @@ declare const GetEntityInterval: {
5310
5385
  * Interval for the cap, aligned to the customer's billing cycle.
5311
5386
  */
5312
5387
  type GetEntityInterval = OpenEnum<typeof GetEntityInterval>;
5388
+ /**
5389
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
5390
+ */
5391
+ declare const GetEntityAnchor: {
5392
+ readonly BillingCycle: "billing_cycle";
5393
+ readonly Utc: "utc";
5394
+ };
5395
+ /**
5396
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
5397
+ */
5398
+ type GetEntityAnchor = OpenEnum<typeof GetEntityAnchor>;
5313
5399
  /**
5314
5400
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
5315
5401
  */
@@ -5346,6 +5432,10 @@ type GetEntityUsageLimit = {
5346
5432
  * Interval for the cap, aligned to the customer's billing cycle.
5347
5433
  */
5348
5434
  interval: GetEntityInterval;
5435
+ /**
5436
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
5437
+ */
5438
+ anchor?: GetEntityAnchor | undefined;
5349
5439
  /**
5350
5440
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
5351
5441
  */
@@ -6165,6 +6255,17 @@ declare const MultiAttachEntityDataInterval: {
6165
6255
  * Interval for the cap, aligned to the customer's billing cycle.
6166
6256
  */
6167
6257
  type MultiAttachEntityDataInterval = ClosedEnum<typeof MultiAttachEntityDataInterval>;
6258
+ /**
6259
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
6260
+ */
6261
+ declare const MultiAttachAnchor: {
6262
+ readonly BillingCycle: "billing_cycle";
6263
+ readonly Utc: "utc";
6264
+ };
6265
+ /**
6266
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
6267
+ */
6268
+ type MultiAttachAnchor = ClosedEnum<typeof MultiAttachAnchor>;
6168
6269
  /**
6169
6270
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
6170
6271
  */
@@ -6190,6 +6291,10 @@ type MultiAttachUsageLimit = {
6190
6291
  * Interval for the cap, aligned to the customer's billing cycle.
6191
6292
  */
6192
6293
  interval: MultiAttachEntityDataInterval;
6294
+ /**
6295
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
6296
+ */
6297
+ anchor?: MultiAttachAnchor | undefined;
6193
6298
  /**
6194
6299
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
6195
6300
  */
@@ -7195,6 +7300,17 @@ declare const PreviewAttachUsageLimitInterval: {
7195
7300
  * Interval for the cap, aligned to the customer's billing cycle.
7196
7301
  */
7197
7302
  type PreviewAttachUsageLimitInterval = ClosedEnum<typeof PreviewAttachUsageLimitInterval>;
7303
+ /**
7304
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
7305
+ */
7306
+ declare const PreviewAttachAnchor: {
7307
+ readonly BillingCycle: "billing_cycle";
7308
+ readonly Utc: "utc";
7309
+ };
7310
+ /**
7311
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
7312
+ */
7313
+ type PreviewAttachAnchor = ClosedEnum<typeof PreviewAttachAnchor>;
7198
7314
  /**
7199
7315
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
7200
7316
  */
@@ -7220,6 +7336,10 @@ type PreviewAttachUsageLimit = {
7220
7336
  * Interval for the cap, aligned to the customer's billing cycle.
7221
7337
  */
7222
7338
  interval: PreviewAttachUsageLimitInterval;
7339
+ /**
7340
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
7341
+ */
7342
+ anchor?: PreviewAttachAnchor | undefined;
7223
7343
  /**
7224
7344
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
7225
7345
  */
@@ -7942,11 +8062,11 @@ type PreviewAttachLineItem = {
7942
8062
  */
7943
8063
  description: string;
7944
8064
  /**
7945
- * The amount in cents before discounts and tax for this line item.
8065
+ * The amount before discounts and tax for this line item.
7946
8066
  */
7947
8067
  subtotal: number;
7948
8068
  /**
7949
- * The final amount in cents after discounts and tax for this line item.
8069
+ * The final amount after discounts and tax for this line item.
7950
8070
  */
7951
8071
  total: number;
7952
8072
  /**
@@ -7999,11 +8119,11 @@ type PreviewAttachNextCycleLineItem = {
7999
8119
  */
8000
8120
  description: string;
8001
8121
  /**
8002
- * The amount in cents before discounts and tax for this line item.
8122
+ * The amount before discounts and tax for this line item.
8003
8123
  */
8004
8124
  subtotal: number;
8005
8125
  /**
8006
- * The final amount in cents after discounts and tax for this line item.
8126
+ * The final amount after discounts and tax for this line item.
8007
8127
  */
8008
8128
  total: number;
8009
8129
  /**
@@ -8067,11 +8187,11 @@ type PreviewAttachNextCycle = {
8067
8187
  */
8068
8188
  startsAt: number;
8069
8189
  /**
8070
- * The total amount in cents before discounts and tax for the next cycle.
8190
+ * The total amount before discounts and tax for the next cycle.
8071
8191
  */
8072
8192
  subtotal: number;
8073
8193
  /**
8074
- * The final amount in cents after discounts and tax for the next cycle.
8194
+ * The final amount after discounts and tax for the next cycle.
8075
8195
  */
8076
8196
  total: number;
8077
8197
  /**
@@ -8213,15 +8333,15 @@ type PreviewAttachResponse = {
8213
8333
  customerId: string;
8214
8334
  lineItems: Array<PreviewAttachLineItem>;
8215
8335
  /**
8216
- * The total amount in cents before discounts and tax for the current billing period.
8336
+ * The total amount before discounts and tax for the current billing period.
8217
8337
  */
8218
8338
  subtotal: number;
8219
8339
  /**
8220
- * The final amount in cents after discounts and tax for the current billing period.
8340
+ * The final amount after discounts and tax for the current billing period.
8221
8341
  */
8222
8342
  total: number;
8223
8343
  /**
8224
- * The three-letter ISO currency code (e.g., 'usd').
8344
+ * The three-letter ISO currency code. All amounts are in the currency's major unit (e.g., dollars for USD).
8225
8345
  */
8226
8346
  currency: string;
8227
8347
  /**
@@ -8744,6 +8864,17 @@ declare const PreviewMultiAttachEntityDataInterval: {
8744
8864
  * Interval for the cap, aligned to the customer's billing cycle.
8745
8865
  */
8746
8866
  type PreviewMultiAttachEntityDataInterval = ClosedEnum<typeof PreviewMultiAttachEntityDataInterval>;
8867
+ /**
8868
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
8869
+ */
8870
+ declare const PreviewMultiAttachAnchor: {
8871
+ readonly BillingCycle: "billing_cycle";
8872
+ readonly Utc: "utc";
8873
+ };
8874
+ /**
8875
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
8876
+ */
8877
+ type PreviewMultiAttachAnchor = ClosedEnum<typeof PreviewMultiAttachAnchor>;
8747
8878
  /**
8748
8879
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
8749
8880
  */
@@ -8769,6 +8900,10 @@ type PreviewMultiAttachUsageLimit = {
8769
8900
  * Interval for the cap, aligned to the customer's billing cycle.
8770
8901
  */
8771
8902
  interval: PreviewMultiAttachEntityDataInterval;
8903
+ /**
8904
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
8905
+ */
8906
+ anchor?: PreviewMultiAttachAnchor | undefined;
8772
8907
  /**
8773
8908
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
8774
8909
  */
@@ -8948,11 +9083,11 @@ type PreviewMultiAttachLineItem = {
8948
9083
  */
8949
9084
  description: string;
8950
9085
  /**
8951
- * The amount in cents before discounts and tax for this line item.
9086
+ * The amount before discounts and tax for this line item.
8952
9087
  */
8953
9088
  subtotal: number;
8954
9089
  /**
8955
- * The final amount in cents after discounts and tax for this line item.
9090
+ * The final amount after discounts and tax for this line item.
8956
9091
  */
8957
9092
  total: number;
8958
9093
  /**
@@ -9005,11 +9140,11 @@ type PreviewMultiAttachNextCycleLineItem = {
9005
9140
  */
9006
9141
  description: string;
9007
9142
  /**
9008
- * The amount in cents before discounts and tax for this line item.
9143
+ * The amount before discounts and tax for this line item.
9009
9144
  */
9010
9145
  subtotal: number;
9011
9146
  /**
9012
- * The final amount in cents after discounts and tax for this line item.
9147
+ * The final amount after discounts and tax for this line item.
9013
9148
  */
9014
9149
  total: number;
9015
9150
  /**
@@ -9073,11 +9208,11 @@ type PreviewMultiAttachNextCycle = {
9073
9208
  */
9074
9209
  startsAt: number;
9075
9210
  /**
9076
- * The total amount in cents before discounts and tax for the next cycle.
9211
+ * The total amount before discounts and tax for the next cycle.
9077
9212
  */
9078
9213
  subtotal: number;
9079
9214
  /**
9080
- * The final amount in cents after discounts and tax for the next cycle.
9215
+ * The final amount after discounts and tax for the next cycle.
9081
9216
  */
9082
9217
  total: number;
9083
9218
  /**
@@ -9219,15 +9354,15 @@ type PreviewMultiAttachResponse = {
9219
9354
  customerId: string;
9220
9355
  lineItems: Array<PreviewMultiAttachLineItem>;
9221
9356
  /**
9222
- * The total amount in cents before discounts and tax for the current billing period.
9357
+ * The total amount before discounts and tax for the current billing period.
9223
9358
  */
9224
9359
  subtotal: number;
9225
9360
  /**
9226
- * The final amount in cents after discounts and tax for the current billing period.
9361
+ * The final amount after discounts and tax for the current billing period.
9227
9362
  */
9228
9363
  total: number;
9229
9364
  /**
9230
- * The three-letter ISO currency code (e.g., 'usd').
9365
+ * The three-letter ISO currency code. All amounts are in the currency's major unit (e.g., dollars for USD).
9231
9366
  */
9232
9367
  currency: string;
9233
9368
  /**
@@ -10014,6 +10149,17 @@ declare const PreviewUpdateUsageLimitInterval: {
10014
10149
  * Interval for the cap, aligned to the customer's billing cycle.
10015
10150
  */
10016
10151
  type PreviewUpdateUsageLimitInterval = ClosedEnum<typeof PreviewUpdateUsageLimitInterval>;
10152
+ /**
10153
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
10154
+ */
10155
+ declare const PreviewUpdateAnchor: {
10156
+ readonly BillingCycle: "billing_cycle";
10157
+ readonly Utc: "utc";
10158
+ };
10159
+ /**
10160
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
10161
+ */
10162
+ type PreviewUpdateAnchor = ClosedEnum<typeof PreviewUpdateAnchor>;
10017
10163
  /**
10018
10164
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
10019
10165
  */
@@ -10039,6 +10185,10 @@ type PreviewUpdateUsageLimit = {
10039
10185
  * Interval for the cap, aligned to the customer's billing cycle.
10040
10186
  */
10041
10187
  interval: PreviewUpdateUsageLimitInterval;
10188
+ /**
10189
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
10190
+ */
10191
+ anchor?: PreviewUpdateAnchor | undefined;
10042
10192
  /**
10043
10193
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
10044
10194
  */
@@ -10707,11 +10857,11 @@ type PreviewUpdateLineItem = {
10707
10857
  */
10708
10858
  description: string;
10709
10859
  /**
10710
- * The amount in cents before discounts and tax for this line item.
10860
+ * The amount before discounts and tax for this line item.
10711
10861
  */
10712
10862
  subtotal: number;
10713
10863
  /**
10714
- * The final amount in cents after discounts and tax for this line item.
10864
+ * The final amount after discounts and tax for this line item.
10715
10865
  */
10716
10866
  total: number;
10717
10867
  /**
@@ -10764,11 +10914,11 @@ type PreviewUpdateNextCycleLineItem = {
10764
10914
  */
10765
10915
  description: string;
10766
10916
  /**
10767
- * The amount in cents before discounts and tax for this line item.
10917
+ * The amount before discounts and tax for this line item.
10768
10918
  */
10769
10919
  subtotal: number;
10770
10920
  /**
10771
- * The final amount in cents after discounts and tax for this line item.
10921
+ * The final amount after discounts and tax for this line item.
10772
10922
  */
10773
10923
  total: number;
10774
10924
  /**
@@ -10832,11 +10982,11 @@ type PreviewUpdateNextCycle = {
10832
10982
  */
10833
10983
  startsAt: number;
10834
10984
  /**
10835
- * The total amount in cents before discounts and tax for the next cycle.
10985
+ * The total amount before discounts and tax for the next cycle.
10836
10986
  */
10837
10987
  subtotal: number;
10838
10988
  /**
10839
- * The final amount in cents after discounts and tax for the next cycle.
10989
+ * The final amount after discounts and tax for the next cycle.
10840
10990
  */
10841
10991
  total: number;
10842
10992
  /**
@@ -10985,15 +11135,15 @@ type PreviewUpdateResponse = {
10985
11135
  */
10986
11136
  lineItems: Array<PreviewUpdateLineItem>;
10987
11137
  /**
10988
- * The total amount in cents before discounts and tax for the current billing period.
11138
+ * The total amount before discounts and tax for the current billing period.
10989
11139
  */
10990
11140
  subtotal: number;
10991
11141
  /**
10992
- * The final amount in cents after discounts and tax for the current billing period.
11142
+ * The final amount after discounts and tax for the current billing period.
10993
11143
  */
10994
11144
  total: number;
10995
11145
  /**
10996
- * The three-letter ISO currency code (e.g., 'usd').
11146
+ * The three-letter ISO currency code. All amounts are in the currency's major unit (e.g., dollars for USD).
10997
11147
  */
10998
11148
  currency: string;
10999
11149
  /**
@@ -11801,6 +11951,17 @@ declare const SetupPaymentUsageLimitInterval: {
11801
11951
  * Interval for the cap, aligned to the customer's billing cycle.
11802
11952
  */
11803
11953
  type SetupPaymentUsageLimitInterval = ClosedEnum<typeof SetupPaymentUsageLimitInterval>;
11954
+ /**
11955
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
11956
+ */
11957
+ declare const SetupPaymentAnchor: {
11958
+ readonly BillingCycle: "billing_cycle";
11959
+ readonly Utc: "utc";
11960
+ };
11961
+ /**
11962
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
11963
+ */
11964
+ type SetupPaymentAnchor = ClosedEnum<typeof SetupPaymentAnchor>;
11804
11965
  /**
11805
11966
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
11806
11967
  */
@@ -11826,6 +11987,10 @@ type SetupPaymentUsageLimit = {
11826
11987
  * Interval for the cap, aligned to the customer's billing cycle.
11827
11988
  */
11828
11989
  interval: SetupPaymentUsageLimitInterval;
11990
+ /**
11991
+ * Window alignment. 'billing_cycle' phases the interval to the customer's renewal time; 'utc' aligns to the UTC calendar.
11992
+ */
11993
+ anchor?: SetupPaymentAnchor | undefined;
11829
11994
  /**
11830
11995
  * When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
11831
11996
  */