autumn-js 1.3.24 → 1.3.26

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 (118) hide show
  1. package/dist/backend/adapters/express.js +34 -17
  2. package/dist/backend/adapters/express.mjs +6 -6
  3. package/dist/backend/adapters/fetch.js +34 -17
  4. package/dist/backend/adapters/fetch.mjs +6 -6
  5. package/dist/backend/adapters/hono.js +34 -17
  6. package/dist/backend/adapters/hono.mjs +6 -6
  7. package/dist/backend/adapters/index.js +34 -17
  8. package/dist/backend/adapters/index.mjs +9 -9
  9. package/dist/backend/adapters/next.js +34 -17
  10. package/dist/backend/adapters/next.mjs +6 -6
  11. package/dist/backend/{chunk-GP3DNYYB.mjs → chunk-5CZ6DM4L.mjs} +1 -1
  12. package/dist/backend/{chunk-XCZCV6KV.mjs → chunk-IQQQ5P6R.mjs} +2 -1
  13. package/dist/backend/{chunk-D5FW7XO5.mjs → chunk-JEDV5ITW.mjs} +32 -16
  14. package/dist/backend/{chunk-KEIZCSGR.mjs → chunk-OHWJSFDY.mjs} +1 -1
  15. package/dist/backend/{chunk-SNCX5GCS.mjs → chunk-OJ2W47XG.mjs} +1 -1
  16. package/dist/backend/{chunk-FECUISAH.mjs → chunk-TVYQMY4Y.mjs} +1 -1
  17. package/dist/backend/{chunk-6PZM4FIO.mjs → chunk-UEXBEEDA.mjs} +2 -2
  18. package/dist/backend/{chunk-VAZV4ZU7.mjs → chunk-ZIV7CUX3.mjs} +2 -2
  19. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  21. package/dist/backend/core/handlers/coreHandler.js +34 -17
  22. package/dist/backend/core/handlers/coreHandler.mjs +4 -4
  23. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  24. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  25. package/dist/backend/core/handlers/executeRoute.mjs +1 -1
  26. package/dist/backend/core/handlers/handleRouteByName.js +34 -17
  27. package/dist/backend/core/handlers/handleRouteByName.mjs +4 -4
  28. package/dist/backend/core/handlers/index.d.mts +1 -1
  29. package/dist/backend/core/handlers/index.d.ts +1 -1
  30. package/dist/backend/core/handlers/index.js +34 -17
  31. package/dist/backend/core/handlers/index.mjs +7 -7
  32. package/dist/backend/core/index.d.mts +1 -1
  33. package/dist/backend/core/index.d.ts +1 -1
  34. package/dist/backend/core/index.js +34 -17
  35. package/dist/backend/core/index.mjs +9 -9
  36. package/dist/backend/core/routes/index.d.mts +1 -1
  37. package/dist/backend/core/routes/index.d.ts +1 -1
  38. package/dist/backend/core/routes/index.js +2 -1
  39. package/dist/backend/core/routes/index.mjs +2 -2
  40. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  41. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  43. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  44. package/dist/backend/core/routes/routeConfigs.js +2 -1
  45. package/dist/backend/core/routes/routeConfigs.mjs +2 -2
  46. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  47. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  48. package/dist/backend/core/types/index.d.mts +1 -1
  49. package/dist/backend/core/types/index.d.ts +1 -1
  50. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  51. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  52. package/dist/backend/core/utils/index.mjs +3 -3
  53. package/dist/backend/index.d.mts +2 -2
  54. package/dist/backend/index.d.ts +2 -2
  55. package/dist/backend/index.js +34 -17
  56. package/dist/backend/index.mjs +7 -7
  57. package/dist/backend/{routeTypes-Ct02I9oU.d.mts → routeTypes-DEdA0wMx.d.mts} +32 -0
  58. package/dist/backend/{routeTypes-Btqq_AGG.d.ts → routeTypes-DMd68zE-.d.ts} +32 -0
  59. package/dist/better-auth/{chunk-N2T7XEU5.mjs → chunk-H6C42YK7.mjs} +2 -1
  60. package/dist/better-auth/{chunk-IPK73Y2Y.mjs → chunk-MODSHKUF.mjs} +1 -1
  61. package/dist/better-auth/{chunk-ODBCI7MD.mjs → chunk-Z56SHXX3.mjs} +33 -17
  62. package/dist/better-auth/index.js +34 -17
  63. package/dist/better-auth/index.mjs +3 -3
  64. package/dist/better-auth/utils/createAutumnEndpoint.js +2 -1
  65. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  66. package/dist/better-auth/utils/handleBetterAuthRoute.js +34 -17
  67. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  68. package/dist/better-auth/utils/index.js +34 -17
  69. package/dist/better-auth/utils/index.mjs +3 -3
  70. package/dist/react/AutumnContext.d.mts +4 -4
  71. package/dist/react/AutumnContext.d.ts +4 -4
  72. package/dist/react/client/AutumnClient.d.mts +4 -4
  73. package/dist/react/client/AutumnClient.d.ts +4 -4
  74. package/dist/react/client/IAutumnClient.d.mts +4 -4
  75. package/dist/react/client/IAutumnClient.d.ts +4 -4
  76. package/dist/react/client/index.d.mts +4 -4
  77. package/dist/react/client/index.d.ts +4 -4
  78. package/dist/react/{customer-D1yd7b5X.d.ts → customer-B0VDWypn.d.ts} +1 -1
  79. package/dist/react/{customer-RPAUbbhQ.d.mts → customer-BIYGF3IC.d.mts} +1 -1
  80. package/dist/react/hooks/index.d.mts +4 -4
  81. package/dist/react/hooks/index.d.ts +4 -4
  82. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  83. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  84. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  85. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  86. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  87. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  88. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  89. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  90. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  91. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  92. package/dist/react/hooks/internal/useCustomerActions.d.mts +4 -4
  93. package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
  94. package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
  95. package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
  96. package/dist/react/hooks/useCustomer.d.mts +3 -3
  97. package/dist/react/hooks/useCustomer.d.ts +3 -3
  98. package/dist/react/hooks/useEntity.d.mts +2 -2
  99. package/dist/react/hooks/useEntity.d.ts +2 -2
  100. package/dist/react/hooks/useListEvents.d.mts +2 -2
  101. package/dist/react/hooks/useListEvents.d.ts +2 -2
  102. package/dist/react/hooks/useListPlans.d.mts +3 -3
  103. package/dist/react/hooks/useListPlans.d.ts +3 -3
  104. package/dist/react/hooks/useReferrals.d.mts +2 -2
  105. package/dist/react/hooks/useReferrals.d.ts +2 -2
  106. package/dist/react/index.d.mts +4 -4
  107. package/dist/react/index.d.ts +4 -4
  108. package/dist/react/{list-plans-response-CN5npYlB.d.mts → list-plans-response-BqtwCPty.d.mts} +9 -1
  109. package/dist/react/{list-plans-response-ZA4i4qbk.d.ts → list-plans-response-kGzo3GRQ.d.ts} +9 -1
  110. package/dist/react/{params-BgR56R5F.d.ts → params-BTjLs-GK.d.mts} +1 -1
  111. package/dist/react/{params-tK0USeVd.d.mts → params-CDDVDhfW.d.ts} +1 -1
  112. package/dist/react/{plan-CrpW2EZo.d.mts → plan-CEOgE_On.d.mts} +4 -0
  113. package/dist/react/{plan-CrpW2EZo.d.ts → plan-CEOgE_On.d.ts} +4 -0
  114. package/dist/sdk/index.d.mts +34 -0
  115. package/dist/sdk/index.d.ts +34 -0
  116. package/dist/sdk/index.js +32 -16
  117. package/dist/sdk/index.mjs +32 -16
  118. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-TPWTIfcM.mjs';
2
2
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.mjs';
3
3
  export { BackendErrorBody, BackendResult } from './responseTypes.mjs';
4
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-Ct02I9oU.mjs';
4
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-DEdA0wMx.mjs';
5
5
  import 'zod/v4';
6
6
  import '../utils/sanitizeBody.mjs';
@@ -1,6 +1,6 @@
1
1
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-TPWTIfcM.js';
2
2
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.js';
3
3
  export { BackendErrorBody, BackendResult } from './responseTypes.js';
4
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-Btqq_AGG.js';
4
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-DMd68zE-.js';
5
5
  import 'zod/v4';
6
6
  import '../utils/sanitizeBody.js';
@@ -1,4 +1,4 @@
1
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-Ct02I9oU.mjs';
1
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-DEdA0wMx.mjs';
2
2
  import 'zod/v4';
3
3
  import '../utils/sanitizeBody.mjs';
4
4
  import '../../authTypes-TPWTIfcM.mjs';
@@ -1,4 +1,4 @@
1
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-Btqq_AGG.js';
1
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-DMd68zE-.js';
2
2
  import 'zod/v4';
3
3
  import '../utils/sanitizeBody.js';
4
4
  import '../../authTypes-TPWTIfcM.js';
@@ -1,12 +1,12 @@
1
1
  import "../../chunk-OTXV5FY7.mjs";
2
- import {
3
- secretKeyCheck
4
- } from "../../chunk-VZIMT7AO.mjs";
5
2
  import {
6
3
  CUSTOMER_PROTECTED_BODY_FIELDS,
7
4
  DEFAULT_PROTECTED_BODY_FIELDS,
8
5
  sanitizeBody
9
6
  } from "../../chunk-I7CD6EB6.mjs";
7
+ import {
8
+ secretKeyCheck
9
+ } from "../../chunk-VZIMT7AO.mjs";
10
10
  import {
11
11
  backendError,
12
12
  backendSuccess,
@@ -3,8 +3,8 @@ import { C as CustomerData } from './authTypes-TPWTIfcM.mjs';
3
3
  export { A as AuthResult, a as CustomerId, R as ResolvedIdentity } from './authTypes-TPWTIfcM.mjs';
4
4
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './core/types/handlerTypes.mjs';
5
5
  export { BackendErrorBody, BackendResult } from './core/types/responseTypes.mjs';
6
- import { R as RouteDefinition } from './routeTypes-Ct02I9oU.mjs';
7
- export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-Ct02I9oU.mjs';
6
+ import { R as RouteDefinition } from './routeTypes-DEdA0wMx.mjs';
7
+ export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-DEdA0wMx.mjs';
8
8
  export { buildRouter } from './core/routes/routeBuilder.mjs';
9
9
  export { routeConfigs } from './core/routes/routeConfigs.mjs';
10
10
  export { secretKeyCheck } from './core/utils/secretKeyCheck.mjs';
@@ -3,8 +3,8 @@ import { C as CustomerData } from './authTypes-TPWTIfcM.js';
3
3
  export { A as AuthResult, a as CustomerId, R as ResolvedIdentity } from './authTypes-TPWTIfcM.js';
4
4
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './core/types/handlerTypes.js';
5
5
  export { BackendErrorBody, BackendResult } from './core/types/responseTypes.js';
6
- import { R as RouteDefinition } from './routeTypes-Btqq_AGG.js';
7
- export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-Btqq_AGG.js';
6
+ import { R as RouteDefinition } from './routeTypes-DMd68zE-.js';
7
+ export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-DMd68zE-.js';
8
8
  export { buildRouter } from './core/routes/routeBuilder.js';
9
9
  export { routeConfigs } from './core/routes/routeConfigs.js';
10
10
  export { secretKeyCheck } from './core/utils/secretKeyCheck.js';
@@ -8946,11 +8946,13 @@ var FreeTrial$inboundSchema = z22.pipe(
8946
8946
  var PlanEnv$inboundSchema = inboundSchema(PlanEnv);
8947
8947
  var PlanConfig$inboundSchema = z22.pipe(
8948
8948
  z22.object({
8949
- ignore_past_due: z22._default(boolean2(), false)
8949
+ ignore_past_due: z22._default(boolean2(), false),
8950
+ anchor_to_month_start: z22._default(boolean2(), false)
8950
8951
  }),
8951
8952
  z22.transform((v) => {
8952
8953
  return remap(v, {
8953
- "ignore_past_due": "ignorePastDue"
8954
+ "ignore_past_due": "ignorePastDue",
8955
+ "anchor_to_month_start": "anchorToMonthStart"
8954
8956
  });
8955
8957
  })
8956
8958
  );
@@ -13698,11 +13700,13 @@ var FreeTrialRequestBody$outboundSchema = z27.pipe(
13698
13700
  );
13699
13701
  var CreatePlanConfigRequestBody$outboundSchema = z27.pipe(
13700
13702
  z27.object({
13701
- ignorePastDue: z27._default(z27.boolean(), false)
13703
+ ignorePastDue: z27._default(z27.boolean(), false),
13704
+ anchorToMonthStart: z27._default(z27.boolean(), false)
13702
13705
  }),
13703
13706
  z27.transform((v) => {
13704
13707
  return remap(v, {
13705
- ignorePastDue: "ignore_past_due"
13708
+ ignorePastDue: "ignore_past_due",
13709
+ anchorToMonthStart: "anchor_to_month_start"
13706
13710
  });
13707
13711
  })
13708
13712
  );
@@ -14730,11 +14734,13 @@ var CreatePlanFreeTrialResponse$inboundSchema = z28.pipe(
14730
14734
  var CreatePlanEnv$inboundSchema = inboundSchema(CreatePlanEnv);
14731
14735
  var CreatePlanConfigResponse$inboundSchema = z28.pipe(
14732
14736
  z28.object({
14733
- ignore_past_due: z28._default(boolean2(), false)
14737
+ ignore_past_due: z28._default(boolean2(), false),
14738
+ anchor_to_month_start: z28._default(boolean2(), false)
14734
14739
  }),
14735
14740
  z28.transform((v) => {
14736
14741
  return remap(v, {
14737
- "ignore_past_due": "ignorePastDue"
14742
+ "ignore_past_due": "ignorePastDue",
14743
+ "anchor_to_month_start": "anchorToMonthStart"
14738
14744
  });
14739
14745
  })
14740
14746
  );
@@ -24778,11 +24784,13 @@ var GetPlanFreeTrial$inboundSchema = z55.pipe(
24778
24784
  var GetPlanEnv$inboundSchema = inboundSchema(GetPlanEnv);
24779
24785
  var GetPlanConfig$inboundSchema = z55.pipe(
24780
24786
  z55.object({
24781
- ignore_past_due: z55._default(boolean2(), false)
24787
+ ignore_past_due: z55._default(boolean2(), false),
24788
+ anchor_to_month_start: z55._default(boolean2(), false)
24782
24789
  }),
24783
24790
  z55.transform((v) => {
24784
24791
  return remap(v, {
24785
- "ignore_past_due": "ignorePastDue"
24792
+ "ignore_past_due": "ignorePastDue",
24793
+ "anchor_to_month_start": "anchorToMonthStart"
24786
24794
  });
24787
24795
  })
24788
24796
  );
@@ -29739,11 +29747,13 @@ var ListPlansFreeTrial$inboundSchema = z71.pipe(
29739
29747
  var ListPlansEnv$inboundSchema = inboundSchema(ListPlansEnv);
29740
29748
  var ListPlansConfig$inboundSchema = z71.pipe(
29741
29749
  z71.object({
29742
- ignore_past_due: z71._default(boolean2(), false)
29750
+ ignore_past_due: z71._default(boolean2(), false),
29751
+ anchor_to_month_start: z71._default(boolean2(), false)
29743
29752
  }),
29744
29753
  z71.transform((v) => {
29745
29754
  return remap(v, {
29746
- "ignore_past_due": "ignorePastDue"
29755
+ "ignore_past_due": "ignorePastDue",
29756
+ "anchor_to_month_start": "anchorToMonthStart"
29747
29757
  });
29748
29758
  })
29749
29759
  );
@@ -33687,11 +33697,13 @@ var VariantFreeTrial$inboundSchema = z73.pipe(
33687
33697
  var VariantEnv$inboundSchema = inboundSchema(VariantEnv);
33688
33698
  var VariantConfig$inboundSchema = z73.pipe(
33689
33699
  z73.object({
33690
- ignore_past_due: z73._default(boolean2(), false)
33700
+ ignore_past_due: z73._default(boolean2(), false),
33701
+ anchor_to_month_start: z73._default(boolean2(), false)
33691
33702
  }),
33692
33703
  z73.transform((v) => {
33693
33704
  return remap(v, {
33694
- "ignore_past_due": "ignorePastDue"
33705
+ "ignore_past_due": "ignorePastDue",
33706
+ "anchor_to_month_start": "anchorToMonthStart"
33695
33707
  });
33696
33708
  })
33697
33709
  );
@@ -48857,11 +48869,13 @@ var UpdatePlanFreeTrialParamsRequestBody$outboundSchema = z109.pipe(
48857
48869
  );
48858
48870
  var UpdatePlanConfigRequestBody$outboundSchema = z109.pipe(
48859
48871
  z109.object({
48860
- ignorePastDue: z109._default(z109.boolean(), false)
48872
+ ignorePastDue: z109._default(z109.boolean(), false),
48873
+ anchorToMonthStart: z109._default(z109.boolean(), false)
48861
48874
  }),
48862
48875
  z109.transform((v) => {
48863
48876
  return remap(v, {
48864
- ignorePastDue: "ignore_past_due"
48877
+ ignorePastDue: "ignore_past_due",
48878
+ anchorToMonthStart: "anchor_to_month_start"
48865
48879
  });
48866
48880
  })
48867
48881
  );
@@ -51384,11 +51398,13 @@ var UpdatePlanFreeTrial$inboundSchema = z111.pipe(
51384
51398
  var UpdatePlanEnv$inboundSchema = inboundSchema(UpdatePlanEnv);
51385
51399
  var UpdatePlanConfigResponse$inboundSchema = z111.pipe(
51386
51400
  z111.object({
51387
- ignore_past_due: z111._default(boolean2(), false)
51401
+ ignore_past_due: z111._default(boolean2(), false),
51402
+ anchor_to_month_start: z111._default(boolean2(), false)
51388
51403
  }),
51389
51404
  z111.transform((v) => {
51390
51405
  return remap(v, {
51391
- "ignore_past_due": "ignorePastDue"
51406
+ "ignore_past_due": "ignorePastDue",
51407
+ "anchor_to_month_start": "anchorToMonthStart"
51392
51408
  });
51393
51409
  })
51394
51410
  );
@@ -63631,7 +63647,8 @@ var listPlansProcessorsSchema = import_v48.z.object({
63631
63647
  revenuecat: import_v48.z.union([listPlansRevenuecatSchema, import_v48.z.undefined()]).optional().nullable()
63632
63648
  });
63633
63649
  var listPlansConfigSchema = import_v48.z.object({
63634
- ignorePastDue: import_v48.z.boolean()
63650
+ ignorePastDue: import_v48.z.boolean(),
63651
+ anchorToMonthStart: import_v48.z.boolean()
63635
63652
  });
63636
63653
  var listPlansUsageLimitFilterSchema = import_v48.z.object({
63637
63654
  properties: import_v48.z.record(import_v48.z.string(), import_v48.z.string())
@@ -1,10 +1,10 @@
1
1
  import "./chunk-WYDGEDEU.mjs";
2
2
  import "./chunk-VXND2UDT.mjs";
3
- import "./chunk-VAZV4ZU7.mjs";
4
3
  import {
5
4
  createCoreHandler
6
- } from "./chunk-6PZM4FIO.mjs";
7
- import "./chunk-D5FW7XO5.mjs";
5
+ } from "./chunk-UEXBEEDA.mjs";
6
+ import "./chunk-ZIV7CUX3.mjs";
7
+ import "./chunk-JEDV5ITW.mjs";
8
8
  import "./chunk-MOHYGUMA.mjs";
9
9
  import "./chunk-TBQ27LIK.mjs";
10
10
  import "./chunk-J44WR3QZ.mjs";
@@ -14,14 +14,14 @@ import {
14
14
  } from "./chunk-UAR3TMWI.mjs";
15
15
  import {
16
16
  routeConfigs
17
- } from "./chunk-XCZCV6KV.mjs";
17
+ } from "./chunk-IQQQ5P6R.mjs";
18
18
  import "./chunk-OTXV5FY7.mjs";
19
- import {
20
- secretKeyCheck
21
- } from "./chunk-VZIMT7AO.mjs";
22
19
  import {
23
20
  sanitizeBody
24
21
  } from "./chunk-I7CD6EB6.mjs";
22
+ import {
23
+ secretKeyCheck
24
+ } from "./chunk-VZIMT7AO.mjs";
25
25
  import {
26
26
  backendError,
27
27
  backendSuccess,
@@ -9103,6 +9103,10 @@ type PlanConfig = {
9103
9103
  * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
9104
9104
  */
9105
9105
  ignorePastDue: boolean;
9106
+ /**
9107
+ * Anchor billing and reset cycles to the 1st of the month (UTC).
9108
+ */
9109
+ anchorToMonthStart: boolean;
9106
9110
  };
9107
9111
  /**
9108
9112
  * The time interval for the purchase limit window.
@@ -14791,6 +14795,10 @@ type CreatePlanConfigRequestBody = {
14791
14795
  * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
14792
14796
  */
14793
14797
  ignorePastDue?: boolean | undefined;
14798
+ /**
14799
+ * Anchor billing and reset cycles to the 1st of the month (UTC).
14800
+ */
14801
+ anchorToMonthStart?: boolean | undefined;
14794
14802
  };
14795
14803
  /**
14796
14804
  * The time interval for the purchase limit window.
@@ -15810,6 +15818,10 @@ type CreatePlanConfigResponse = {
15810
15818
  * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
15811
15819
  */
15812
15820
  ignorePastDue: boolean;
15821
+ /**
15822
+ * Anchor billing and reset cycles to the 1st of the month (UTC).
15823
+ */
15824
+ anchorToMonthStart: boolean;
15813
15825
  };
15814
15826
  /**
15815
15827
  * The time interval for the purchase limit window.
@@ -27719,6 +27731,10 @@ type GetPlanConfig = {
27719
27731
  * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
27720
27732
  */
27721
27733
  ignorePastDue: boolean;
27734
+ /**
27735
+ * Anchor billing and reset cycles to the 1st of the month (UTC).
27736
+ */
27737
+ anchorToMonthStart: boolean;
27722
27738
  };
27723
27739
  /**
27724
27740
  * The time interval for the purchase limit window.
@@ -34062,6 +34078,10 @@ type ListPlansConfig = {
34062
34078
  * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
34063
34079
  */
34064
34080
  ignorePastDue: boolean;
34081
+ /**
34082
+ * Anchor billing and reset cycles to the 1st of the month (UTC).
34083
+ */
34084
+ anchorToMonthStart: boolean;
34065
34085
  };
34066
34086
  /**
34067
34087
  * The time interval for the purchase limit window.
@@ -38789,6 +38809,10 @@ type VariantConfig = {
38789
38809
  * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
38790
38810
  */
38791
38811
  ignorePastDue: boolean;
38812
+ /**
38813
+ * Anchor billing and reset cycles to the 1st of the month (UTC).
38814
+ */
38815
+ anchorToMonthStart: boolean;
38792
38816
  };
38793
38817
  /**
38794
38818
  * The time interval for the purchase limit window.
@@ -57146,6 +57170,10 @@ type UpdatePlanConfigRequestBody = {
57146
57170
  * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
57147
57171
  */
57148
57172
  ignorePastDue?: boolean | undefined;
57173
+ /**
57174
+ * Anchor billing and reset cycles to the 1st of the month (UTC).
57175
+ */
57176
+ anchorToMonthStart?: boolean | undefined;
57149
57177
  };
57150
57178
  /**
57151
57179
  * The time interval for the purchase limit window.
@@ -59779,6 +59807,10 @@ type UpdatePlanConfigResponse = {
59779
59807
  * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
59780
59808
  */
59781
59809
  ignorePastDue: boolean;
59810
+ /**
59811
+ * Anchor billing and reset cycles to the 1st of the month (UTC).
59812
+ */
59813
+ anchorToMonthStart: boolean;
59782
59814
  };
59783
59815
  /**
59784
59816
  * The time interval for the purchase limit window.
@@ -9103,6 +9103,10 @@ type PlanConfig = {
9103
9103
  * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
9104
9104
  */
9105
9105
  ignorePastDue: boolean;
9106
+ /**
9107
+ * Anchor billing and reset cycles to the 1st of the month (UTC).
9108
+ */
9109
+ anchorToMonthStart: boolean;
9106
9110
  };
9107
9111
  /**
9108
9112
  * The time interval for the purchase limit window.
@@ -14791,6 +14795,10 @@ type CreatePlanConfigRequestBody = {
14791
14795
  * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
14792
14796
  */
14793
14797
  ignorePastDue?: boolean | undefined;
14798
+ /**
14799
+ * Anchor billing and reset cycles to the 1st of the month (UTC).
14800
+ */
14801
+ anchorToMonthStart?: boolean | undefined;
14794
14802
  };
14795
14803
  /**
14796
14804
  * The time interval for the purchase limit window.
@@ -15810,6 +15818,10 @@ type CreatePlanConfigResponse = {
15810
15818
  * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
15811
15819
  */
15812
15820
  ignorePastDue: boolean;
15821
+ /**
15822
+ * Anchor billing and reset cycles to the 1st of the month (UTC).
15823
+ */
15824
+ anchorToMonthStart: boolean;
15813
15825
  };
15814
15826
  /**
15815
15827
  * The time interval for the purchase limit window.
@@ -27719,6 +27731,10 @@ type GetPlanConfig = {
27719
27731
  * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
27720
27732
  */
27721
27733
  ignorePastDue: boolean;
27734
+ /**
27735
+ * Anchor billing and reset cycles to the 1st of the month (UTC).
27736
+ */
27737
+ anchorToMonthStart: boolean;
27722
27738
  };
27723
27739
  /**
27724
27740
  * The time interval for the purchase limit window.
@@ -34062,6 +34078,10 @@ type ListPlansConfig = {
34062
34078
  * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
34063
34079
  */
34064
34080
  ignorePastDue: boolean;
34081
+ /**
34082
+ * Anchor billing and reset cycles to the 1st of the month (UTC).
34083
+ */
34084
+ anchorToMonthStart: boolean;
34065
34085
  };
34066
34086
  /**
34067
34087
  * The time interval for the purchase limit window.
@@ -38789,6 +38809,10 @@ type VariantConfig = {
38789
38809
  * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
38790
38810
  */
38791
38811
  ignorePastDue: boolean;
38812
+ /**
38813
+ * Anchor billing and reset cycles to the 1st of the month (UTC).
38814
+ */
38815
+ anchorToMonthStart: boolean;
38792
38816
  };
38793
38817
  /**
38794
38818
  * The time interval for the purchase limit window.
@@ -57146,6 +57170,10 @@ type UpdatePlanConfigRequestBody = {
57146
57170
  * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
57147
57171
  */
57148
57172
  ignorePastDue?: boolean | undefined;
57173
+ /**
57174
+ * Anchor billing and reset cycles to the 1st of the month (UTC).
57175
+ */
57176
+ anchorToMonthStart?: boolean | undefined;
57149
57177
  };
57150
57178
  /**
57151
57179
  * The time interval for the purchase limit window.
@@ -59779,6 +59807,10 @@ type UpdatePlanConfigResponse = {
59779
59807
  * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
59780
59808
  */
59781
59809
  ignorePastDue: boolean;
59810
+ /**
59811
+ * Anchor billing and reset cycles to the 1st of the month (UTC).
59812
+ */
59813
+ anchorToMonthStart: boolean;
59782
59814
  };
59783
59815
  /**
59784
59816
  * The time interval for the purchase limit window.
@@ -1445,7 +1445,8 @@ var listPlansProcessorsSchema = z8.object({
1445
1445
  revenuecat: z8.union([listPlansRevenuecatSchema, z8.undefined()]).optional().nullable()
1446
1446
  });
1447
1447
  var listPlansConfigSchema = z8.object({
1448
- ignorePastDue: z8.boolean()
1448
+ ignorePastDue: z8.boolean(),
1449
+ anchorToMonthStart: z8.boolean()
1449
1450
  });
1450
1451
  var listPlansUsageLimitFilterSchema = z8.object({
1451
1452
  properties: z8.record(z8.string(), z8.string())
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  routeConfigs
3
- } from "./chunk-N2T7XEU5.mjs";
3
+ } from "./chunk-H6C42YK7.mjs";
4
4
  import {
5
5
  omitProtectedBodyFields
6
6
  } from "./chunk-GJAMWZNZ.mjs";
@@ -8,7 +8,7 @@ import {
8
8
  routeConfigs,
9
9
  sanitizeBody,
10
10
  secretKeyCheck
11
- } from "./chunk-N2T7XEU5.mjs";
11
+ } from "./chunk-H6C42YK7.mjs";
12
12
  import {
13
13
  getActiveOrganization
14
14
  } from "./chunk-BT3EAYVW.mjs";
@@ -8920,11 +8920,13 @@ var FreeTrial$inboundSchema = z22.pipe(
8920
8920
  var PlanEnv$inboundSchema = inboundSchema(PlanEnv);
8921
8921
  var PlanConfig$inboundSchema = z22.pipe(
8922
8922
  z22.object({
8923
- ignore_past_due: z22._default(boolean2(), false)
8923
+ ignore_past_due: z22._default(boolean2(), false),
8924
+ anchor_to_month_start: z22._default(boolean2(), false)
8924
8925
  }),
8925
8926
  z22.transform((v) => {
8926
8927
  return remap(v, {
8927
- "ignore_past_due": "ignorePastDue"
8928
+ "ignore_past_due": "ignorePastDue",
8929
+ "anchor_to_month_start": "anchorToMonthStart"
8928
8930
  });
8929
8931
  })
8930
8932
  );
@@ -13672,11 +13674,13 @@ var FreeTrialRequestBody$outboundSchema = z27.pipe(
13672
13674
  );
13673
13675
  var CreatePlanConfigRequestBody$outboundSchema = z27.pipe(
13674
13676
  z27.object({
13675
- ignorePastDue: z27._default(z27.boolean(), false)
13677
+ ignorePastDue: z27._default(z27.boolean(), false),
13678
+ anchorToMonthStart: z27._default(z27.boolean(), false)
13676
13679
  }),
13677
13680
  z27.transform((v) => {
13678
13681
  return remap(v, {
13679
- ignorePastDue: "ignore_past_due"
13682
+ ignorePastDue: "ignore_past_due",
13683
+ anchorToMonthStart: "anchor_to_month_start"
13680
13684
  });
13681
13685
  })
13682
13686
  );
@@ -14704,11 +14708,13 @@ var CreatePlanFreeTrialResponse$inboundSchema = z28.pipe(
14704
14708
  var CreatePlanEnv$inboundSchema = inboundSchema(CreatePlanEnv);
14705
14709
  var CreatePlanConfigResponse$inboundSchema = z28.pipe(
14706
14710
  z28.object({
14707
- ignore_past_due: z28._default(boolean2(), false)
14711
+ ignore_past_due: z28._default(boolean2(), false),
14712
+ anchor_to_month_start: z28._default(boolean2(), false)
14708
14713
  }),
14709
14714
  z28.transform((v) => {
14710
14715
  return remap(v, {
14711
- "ignore_past_due": "ignorePastDue"
14716
+ "ignore_past_due": "ignorePastDue",
14717
+ "anchor_to_month_start": "anchorToMonthStart"
14712
14718
  });
14713
14719
  })
14714
14720
  );
@@ -24752,11 +24758,13 @@ var GetPlanFreeTrial$inboundSchema = z55.pipe(
24752
24758
  var GetPlanEnv$inboundSchema = inboundSchema(GetPlanEnv);
24753
24759
  var GetPlanConfig$inboundSchema = z55.pipe(
24754
24760
  z55.object({
24755
- ignore_past_due: z55._default(boolean2(), false)
24761
+ ignore_past_due: z55._default(boolean2(), false),
24762
+ anchor_to_month_start: z55._default(boolean2(), false)
24756
24763
  }),
24757
24764
  z55.transform((v) => {
24758
24765
  return remap(v, {
24759
- "ignore_past_due": "ignorePastDue"
24766
+ "ignore_past_due": "ignorePastDue",
24767
+ "anchor_to_month_start": "anchorToMonthStart"
24760
24768
  });
24761
24769
  })
24762
24770
  );
@@ -29713,11 +29721,13 @@ var ListPlansFreeTrial$inboundSchema = z71.pipe(
29713
29721
  var ListPlansEnv$inboundSchema = inboundSchema(ListPlansEnv);
29714
29722
  var ListPlansConfig$inboundSchema = z71.pipe(
29715
29723
  z71.object({
29716
- ignore_past_due: z71._default(boolean2(), false)
29724
+ ignore_past_due: z71._default(boolean2(), false),
29725
+ anchor_to_month_start: z71._default(boolean2(), false)
29717
29726
  }),
29718
29727
  z71.transform((v) => {
29719
29728
  return remap(v, {
29720
- "ignore_past_due": "ignorePastDue"
29729
+ "ignore_past_due": "ignorePastDue",
29730
+ "anchor_to_month_start": "anchorToMonthStart"
29721
29731
  });
29722
29732
  })
29723
29733
  );
@@ -33661,11 +33671,13 @@ var VariantFreeTrial$inboundSchema = z73.pipe(
33661
33671
  var VariantEnv$inboundSchema = inboundSchema(VariantEnv);
33662
33672
  var VariantConfig$inboundSchema = z73.pipe(
33663
33673
  z73.object({
33664
- ignore_past_due: z73._default(boolean2(), false)
33674
+ ignore_past_due: z73._default(boolean2(), false),
33675
+ anchor_to_month_start: z73._default(boolean2(), false)
33665
33676
  }),
33666
33677
  z73.transform((v) => {
33667
33678
  return remap(v, {
33668
- "ignore_past_due": "ignorePastDue"
33679
+ "ignore_past_due": "ignorePastDue",
33680
+ "anchor_to_month_start": "anchorToMonthStart"
33669
33681
  });
33670
33682
  })
33671
33683
  );
@@ -48831,11 +48843,13 @@ var UpdatePlanFreeTrialParamsRequestBody$outboundSchema = z109.pipe(
48831
48843
  );
48832
48844
  var UpdatePlanConfigRequestBody$outboundSchema = z109.pipe(
48833
48845
  z109.object({
48834
- ignorePastDue: z109._default(z109.boolean(), false)
48846
+ ignorePastDue: z109._default(z109.boolean(), false),
48847
+ anchorToMonthStart: z109._default(z109.boolean(), false)
48835
48848
  }),
48836
48849
  z109.transform((v) => {
48837
48850
  return remap(v, {
48838
- ignorePastDue: "ignore_past_due"
48851
+ ignorePastDue: "ignore_past_due",
48852
+ anchorToMonthStart: "anchor_to_month_start"
48839
48853
  });
48840
48854
  })
48841
48855
  );
@@ -51358,11 +51372,13 @@ var UpdatePlanFreeTrial$inboundSchema = z111.pipe(
51358
51372
  var UpdatePlanEnv$inboundSchema = inboundSchema(UpdatePlanEnv);
51359
51373
  var UpdatePlanConfigResponse$inboundSchema = z111.pipe(
51360
51374
  z111.object({
51361
- ignore_past_due: z111._default(boolean2(), false)
51375
+ ignore_past_due: z111._default(boolean2(), false),
51376
+ anchor_to_month_start: z111._default(boolean2(), false)
51362
51377
  }),
51363
51378
  z111.transform((v) => {
51364
51379
  return remap(v, {
51365
- "ignore_past_due": "ignorePastDue"
51380
+ "ignore_past_due": "ignorePastDue",
51381
+ "anchor_to_month_start": "anchorToMonthStart"
51366
51382
  });
51367
51383
  })
51368
51384
  );