autumn-js 1.2.12 → 1.2.13

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 (159) hide show
  1. package/dist/backend/adapters/express.js +91 -4
  2. package/dist/backend/adapters/express.mjs +6 -6
  3. package/dist/backend/adapters/fetch.js +91 -4
  4. package/dist/backend/adapters/fetch.mjs +6 -6
  5. package/dist/backend/adapters/hono.js +91 -4
  6. package/dist/backend/adapters/hono.mjs +6 -6
  7. package/dist/backend/adapters/index.js +91 -4
  8. package/dist/backend/adapters/index.mjs +9 -9
  9. package/dist/backend/adapters/next.js +91 -4
  10. package/dist/backend/adapters/next.mjs +6 -6
  11. package/dist/backend/{chunk-JQX5WYYY.mjs → chunk-7BVATYGA.mjs} +1 -1
  12. package/dist/backend/{chunk-7Q77N2K2.mjs → chunk-DNNJOZAT.mjs} +1 -1
  13. package/dist/backend/{chunk-N53PKNZ6.mjs → chunk-EJGHP7KT.mjs} +2 -2
  14. package/dist/backend/{chunk-X4LPDDOP.mjs → chunk-MANTLPDT.mjs} +4 -0
  15. package/dist/backend/{chunk-4Q54RXI2.mjs → chunk-OUDB34Y7.mjs} +1 -1
  16. package/dist/backend/{chunk-SE5CK5NY.mjs → chunk-RPH5L44S.mjs} +1 -1
  17. package/dist/backend/{chunk-UEYDU64U.mjs → chunk-T42RZEUZ.mjs} +87 -4
  18. package/dist/backend/{chunk-ITXMMCSD.mjs → chunk-YSQQKZBU.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 +91 -4
  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 +91 -4
  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 +91 -4
  31. package/dist/backend/core/handlers/index.mjs +5 -5
  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 +91 -4
  35. package/dist/backend/core/index.mjs +7 -7
  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 +4 -0
  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 +4 -0
  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 +91 -4
  56. package/dist/backend/index.mjs +7 -7
  57. package/dist/backend/{routeTypes-D0ag5-Tb.d.ts → routeTypes-B94_Mq2J.d.ts} +93 -0
  58. package/dist/backend/{routeTypes-Cu-XQy7A.d.mts → routeTypes-DVwngaBn.d.mts} +93 -0
  59. package/dist/better-auth/{chunk-TEP6CVHR.mjs → chunk-4OWECHZC.mjs} +1 -1
  60. package/dist/better-auth/{chunk-GKUK5UGW.mjs → chunk-JIFD4TSN.mjs} +4 -0
  61. package/dist/better-auth/{chunk-XFATOIZD.mjs → chunk-ZZGFPTHO.mjs} +88 -5
  62. package/dist/better-auth/client.d.mts +3 -7
  63. package/dist/better-auth/client.d.ts +3 -7
  64. package/dist/better-auth/createAutumnEndpoint-CvXRCg-M.d.mts +43 -0
  65. package/dist/better-auth/createAutumnEndpoint-CvXRCg-M.d.ts +43 -0
  66. package/dist/better-auth/index.d.mts +3 -7
  67. package/dist/better-auth/index.d.ts +3 -7
  68. package/dist/better-auth/index.js +91 -4
  69. package/dist/better-auth/index.mjs +3 -3
  70. package/dist/better-auth/utils/createAutumnEndpoint.d.mts +3 -7
  71. package/dist/better-auth/utils/createAutumnEndpoint.d.ts +3 -7
  72. package/dist/better-auth/utils/createAutumnEndpoint.js +4 -0
  73. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  74. package/dist/better-auth/utils/handleBetterAuthRoute.d.mts +3 -7
  75. package/dist/better-auth/utils/handleBetterAuthRoute.d.ts +3 -7
  76. package/dist/better-auth/utils/handleBetterAuthRoute.js +91 -4
  77. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  78. package/dist/better-auth/utils/index.d.mts +3 -8
  79. package/dist/better-auth/utils/index.d.ts +3 -8
  80. package/dist/better-auth/utils/index.js +91 -4
  81. package/dist/better-auth/utils/index.mjs +3 -3
  82. package/dist/react/AutumnContext.d.mts +3 -3
  83. package/dist/react/AutumnContext.d.ts +3 -3
  84. package/dist/react/AutumnProvider.js +15 -15
  85. package/dist/react/AutumnProvider.mjs +2 -2
  86. package/dist/react/{chunk-26CKSAPZ.mjs → chunk-7IDH4OMG.mjs} +1 -1
  87. package/dist/react/{chunk-HSQUB3BZ.mjs → chunk-BDG6JHEW.mjs} +1 -1
  88. package/dist/react/{chunk-KB72KQKN.mjs → chunk-DEZBJQEG.mjs} +1 -1
  89. package/dist/react/{chunk-XJZH5NMZ.mjs → chunk-E5ZHOMZ4.mjs} +23 -23
  90. package/dist/react/{chunk-OXQG65ZT.mjs → chunk-FWWIAOPU.mjs} +1 -1
  91. package/dist/react/{chunk-ZGPE4R6H.mjs → chunk-HVBDZARN.mjs} +2 -2
  92. package/dist/react/{chunk-MC2YYATT.mjs → chunk-J6SLKTKE.mjs} +1 -1
  93. package/dist/react/{chunk-CHU7CIWP.mjs → chunk-NSFHAUTD.mjs} +1 -1
  94. package/dist/react/{chunk-G7FTQLT7.mjs → chunk-YQFYWH7J.mjs} +1 -1
  95. package/dist/react/client/AutumnClient.d.mts +3 -3
  96. package/dist/react/client/AutumnClient.d.ts +3 -3
  97. package/dist/react/client/IAutumnClient.d.mts +16 -3
  98. package/dist/react/client/IAutumnClient.d.ts +16 -3
  99. package/dist/react/client/index.d.mts +3 -3
  100. package/dist/react/client/index.d.ts +3 -3
  101. package/dist/react/{customer-CbcVyRCQ.d.ts → customer-CaGJEN5J.d.ts} +1 -1
  102. package/dist/react/{customer-BYYt9N1h.d.mts → customer-DB8vL_m7.d.mts} +1 -1
  103. package/dist/react/hooks/index.d.mts +3 -3
  104. package/dist/react/hooks/index.d.ts +3 -3
  105. package/dist/react/hooks/index.js +16 -16
  106. package/dist/react/hooks/index.mjs +8 -8
  107. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  108. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  109. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  110. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  111. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  112. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  113. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  114. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  115. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  116. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  117. package/dist/react/hooks/internal/useCustomerActions.d.mts +3 -3
  118. package/dist/react/hooks/internal/useCustomerActions.d.ts +3 -3
  119. package/dist/react/hooks/internal/useCustomerActions.js +1 -1
  120. package/dist/react/hooks/internal/useCustomerActions.mjs +2 -2
  121. package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
  122. package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
  123. package/dist/react/hooks/useAggregateEvents.js +16 -16
  124. package/dist/react/hooks/useAggregateEvents.mjs +2 -2
  125. package/dist/react/hooks/useCustomer.d.mts +3 -3
  126. package/dist/react/hooks/useCustomer.d.ts +3 -3
  127. package/dist/react/hooks/useCustomer.js +16 -16
  128. package/dist/react/hooks/useCustomer.mjs +3 -3
  129. package/dist/react/hooks/useEntity.d.mts +2 -2
  130. package/dist/react/hooks/useEntity.d.ts +2 -2
  131. package/dist/react/hooks/useEntity.js +16 -16
  132. package/dist/react/hooks/useEntity.mjs +2 -2
  133. package/dist/react/hooks/useListEvents.d.mts +2 -2
  134. package/dist/react/hooks/useListEvents.d.ts +2 -2
  135. package/dist/react/hooks/useListEvents.js +16 -16
  136. package/dist/react/hooks/useListEvents.mjs +2 -2
  137. package/dist/react/hooks/useListPlans.d.mts +2 -2
  138. package/dist/react/hooks/useListPlans.d.ts +2 -2
  139. package/dist/react/hooks/useListPlans.js +16 -16
  140. package/dist/react/hooks/useListPlans.mjs +2 -2
  141. package/dist/react/hooks/useReferrals.d.mts +2 -2
  142. package/dist/react/hooks/useReferrals.d.ts +2 -2
  143. package/dist/react/hooks/useReferrals.js +16 -16
  144. package/dist/react/hooks/useReferrals.mjs +2 -2
  145. package/dist/react/index.d.mts +3 -3
  146. package/dist/react/index.d.ts +3 -3
  147. package/dist/react/index.js +22 -22
  148. package/dist/react/index.mjs +9 -9
  149. package/dist/react/{params-By0MIRsJ.d.ts → params-B5l9vHfZ.d.ts} +1 -1
  150. package/dist/react/{params-CUb0ZlUG.d.mts → params-BVglT8vT.d.mts} +1 -1
  151. package/dist/react/{plan-CqxFGNk2.d.mts → plan-DSTBzzTY.d.mts} +13 -0
  152. package/dist/react/{plan-CqxFGNk2.d.ts → plan-DSTBzzTY.d.ts} +13 -0
  153. package/dist/sdk/index.d.mts +125 -1
  154. package/dist/sdk/index.d.ts +125 -1
  155. package/dist/sdk/index.js +146 -4
  156. package/dist/sdk/index.mjs +133 -5
  157. package/package.json +1 -1
  158. package/dist/better-auth/createAutumnEndpoint-D9Plymvy.d.mts +0 -309
  159. package/dist/better-auth/createAutumnEndpoint-D9Plymvy.d.ts +0 -309
@@ -57,7 +57,7 @@ var useAutumnClient = ({
57
57
  return context.client;
58
58
  };
59
59
 
60
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/subscribable.js
60
+ // ../../node_modules/@tanstack/query-core/build/modern/subscribable.js
61
61
  var Subscribable = class {
62
62
  constructor() {
63
63
  this.listeners = /* @__PURE__ */ new Set();
@@ -80,7 +80,7 @@ var Subscribable = class {
80
80
  }
81
81
  };
82
82
 
83
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/utils.js
83
+ // ../../node_modules/@tanstack/query-core/build/modern/utils.js
84
84
  var isServer = typeof window === "undefined" || "Deno" in globalThis;
85
85
  function noop() {
86
86
  }
@@ -305,7 +305,7 @@ function shouldThrowError(throwOnError, params) {
305
305
  return !!throwOnError;
306
306
  }
307
307
 
308
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/focusManager.js
308
+ // ../../node_modules/@tanstack/query-core/build/modern/focusManager.js
309
309
  var FocusManager = class extends Subscribable {
310
310
  #focused;
311
311
  #cleanup;
@@ -367,7 +367,7 @@ var FocusManager = class extends Subscribable {
367
367
  };
368
368
  var focusManager = new FocusManager();
369
369
 
370
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/onlineManager.js
370
+ // ../../node_modules/@tanstack/query-core/build/modern/onlineManager.js
371
371
  var OnlineManager = class extends Subscribable {
372
372
  #online = true;
373
373
  #cleanup;
@@ -419,7 +419,7 @@ var OnlineManager = class extends Subscribable {
419
419
  };
420
420
  var onlineManager = new OnlineManager();
421
421
 
422
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/thenable.js
422
+ // ../../node_modules/@tanstack/query-core/build/modern/thenable.js
423
423
  function pendingThenable() {
424
424
  let resolve;
425
425
  let reject;
@@ -452,7 +452,7 @@ function pendingThenable() {
452
452
  return thenable;
453
453
  }
454
454
 
455
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/retryer.js
455
+ // ../../node_modules/@tanstack/query-core/build/modern/retryer.js
456
456
  function defaultRetryDelay(failureCount) {
457
457
  return Math.min(1e3 * 2 ** failureCount, 3e4);
458
458
  }
@@ -572,7 +572,7 @@ function createRetryer(config) {
572
572
  };
573
573
  }
574
574
 
575
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/notifyManager.js
575
+ // ../../node_modules/@tanstack/query-core/build/modern/notifyManager.js
576
576
  var defaultScheduler = (cb) => setTimeout(cb, 0);
577
577
  function createNotifyManager() {
578
578
  let queue = [];
@@ -652,7 +652,7 @@ function createNotifyManager() {
652
652
  }
653
653
  var notifyManager = createNotifyManager();
654
654
 
655
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/removable.js
655
+ // ../../node_modules/@tanstack/query-core/build/modern/removable.js
656
656
  var Removable = class {
657
657
  #gcTimeout;
658
658
  destroy() {
@@ -680,7 +680,7 @@ var Removable = class {
680
680
  }
681
681
  };
682
682
 
683
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/query.js
683
+ // ../../node_modules/@tanstack/query-core/build/modern/query.js
684
684
  var Query = class extends Removable {
685
685
  #initialState;
686
686
  #revertState;
@@ -1081,7 +1081,7 @@ function getDefaultState(options) {
1081
1081
  };
1082
1082
  }
1083
1083
 
1084
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/queryCache.js
1084
+ // ../../node_modules/@tanstack/query-core/build/modern/queryCache.js
1085
1085
  var QueryCache = class extends Subscribable {
1086
1086
  constructor(config = {}) {
1087
1087
  super();
@@ -1171,7 +1171,7 @@ var QueryCache = class extends Subscribable {
1171
1171
  }
1172
1172
  };
1173
1173
 
1174
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/mutation.js
1174
+ // ../../node_modules/@tanstack/query-core/build/modern/mutation.js
1175
1175
  var Mutation = class extends Removable {
1176
1176
  #observers;
1177
1177
  #mutationCache;
@@ -1402,7 +1402,7 @@ function getDefaultState2() {
1402
1402
  };
1403
1403
  }
1404
1404
 
1405
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/mutationCache.js
1405
+ // ../../node_modules/@tanstack/query-core/build/modern/mutationCache.js
1406
1406
  var MutationCache = class extends Subscribable {
1407
1407
  constructor(config = {}) {
1408
1408
  super();
@@ -1518,7 +1518,7 @@ function scopeFor(mutation) {
1518
1518
  return mutation.options.scope?.id;
1519
1519
  }
1520
1520
 
1521
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
1521
+ // ../../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
1522
1522
  function infiniteQueryBehavior(pages) {
1523
1523
  return {
1524
1524
  onFetch: (context, query) => {
@@ -1627,7 +1627,7 @@ function getPreviousPageParam(options, { pages, pageParams }) {
1627
1627
  return pages.length > 0 ? options.getPreviousPageParam?.(pages[0], pages, pageParams[0], pageParams) : void 0;
1628
1628
  }
1629
1629
 
1630
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/queryClient.js
1630
+ // ../../node_modules/@tanstack/query-core/build/modern/queryClient.js
1631
1631
  var QueryClient = class {
1632
1632
  #queryCache;
1633
1633
  #mutationCache;
@@ -1914,7 +1914,7 @@ var QueryClient = class {
1914
1914
  }
1915
1915
  };
1916
1916
 
1917
- // ../../node_modules/.bun/@tanstack+query-core@5.85.6/node_modules/@tanstack/query-core/build/modern/queryObserver.js
1917
+ // ../../node_modules/@tanstack/query-core/build/modern/queryObserver.js
1918
1918
  var QueryObserver = class extends Subscribable {
1919
1919
  constructor(client, options) {
1920
1920
  super();
@@ -2362,7 +2362,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
2362
2362
  return false;
2363
2363
  }
2364
2364
 
2365
- // ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
2365
+ // ../../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
2366
2366
  var React = __toESM(require("react"), 1);
2367
2367
  var import_jsx_runtime = require("react/jsx-runtime");
2368
2368
  var QueryClientContext = React.createContext(
@@ -2391,13 +2391,13 @@ var QueryClientProvider = ({
2391
2391
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryClientContext.Provider, { value: client, children });
2392
2392
  };
2393
2393
 
2394
- // ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
2394
+ // ../../node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
2395
2395
  var React2 = __toESM(require("react"), 1);
2396
2396
  var IsRestoringContext = React2.createContext(false);
2397
2397
  var useIsRestoring = () => React2.useContext(IsRestoringContext);
2398
2398
  var IsRestoringProvider = IsRestoringContext.Provider;
2399
2399
 
2400
- // ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
2400
+ // ../../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
2401
2401
  var React3 = __toESM(require("react"), 1);
2402
2402
  var import_jsx_runtime2 = require("react/jsx-runtime");
2403
2403
  function createValue() {
@@ -2417,7 +2417,7 @@ function createValue() {
2417
2417
  var QueryErrorResetBoundaryContext = React3.createContext(createValue());
2418
2418
  var useQueryErrorResetBoundary = () => React3.useContext(QueryErrorResetBoundaryContext);
2419
2419
 
2420
- // ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
2420
+ // ../../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
2421
2421
  var React4 = __toESM(require("react"), 1);
2422
2422
  var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
2423
2423
  if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {
@@ -2441,7 +2441,7 @@ var getHasError = ({
2441
2441
  return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
2442
2442
  };
2443
2443
 
2444
- // ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/suspense.js
2444
+ // ../../node_modules/@tanstack/react-query/build/modern/suspense.js
2445
2445
  var ensureSuspenseTimers = (defaultedOptions) => {
2446
2446
  if (defaultedOptions.suspense) {
2447
2447
  const clamp = (value) => value === "static" ? value : Math.max(value ?? 1e3, 1e3);
@@ -2458,7 +2458,7 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
2458
2458
  errorResetBoundary.clearReset();
2459
2459
  });
2460
2460
 
2461
- // ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
2461
+ // ../../node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
2462
2462
  var React5 = __toESM(require("react"), 1);
2463
2463
  function useBaseQuery(options, Observer, queryClient) {
2464
2464
  if (process.env.NODE_ENV !== "production") {
@@ -2542,7 +2542,7 @@ function useBaseQuery(options, Observer, queryClient) {
2542
2542
  return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
2543
2543
  }
2544
2544
 
2545
- // ../../node_modules/.bun/@tanstack+react-query@5.85.6+f4eacebf2041cd4f/node_modules/@tanstack/react-query/build/modern/useQuery.js
2545
+ // ../../node_modules/@tanstack/react-query/build/modern/useQuery.js
2546
2546
  function useQuery(options, queryClient) {
2547
2547
  return useBaseQuery(options, QueryObserver, queryClient);
2548
2548
  }
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  AutumnProvider
4
- } from "./chunk-26CKSAPZ.mjs";
4
+ } from "./chunk-7IDH4OMG.mjs";
5
5
  import "./chunk-7KBQVCNO.mjs";
6
6
  import {
7
7
  createAutumnClient
@@ -12,11 +12,11 @@ import {
12
12
  } from "./chunk-IC3QHWR6.mjs";
13
13
  import {
14
14
  useAggregateEvents
15
- } from "./chunk-CHU7CIWP.mjs";
15
+ } from "./chunk-NSFHAUTD.mjs";
16
16
  import {
17
17
  useCustomer
18
- } from "./chunk-ZGPE4R6H.mjs";
19
- import "./chunk-KB72KQKN.mjs";
18
+ } from "./chunk-HVBDZARN.mjs";
19
+ import "./chunk-DEZBJQEG.mjs";
20
20
  import "./chunk-BWKG32GC.mjs";
21
21
  import "./chunk-GSJF6P3Q.mjs";
22
22
  import "./chunk-SEQHNPTF.mjs";
@@ -24,17 +24,17 @@ import "./chunk-4TON573W.mjs";
24
24
  import "./chunk-D6DFRS3U.mjs";
25
25
  import {
26
26
  useEntity
27
- } from "./chunk-OXQG65ZT.mjs";
27
+ } from "./chunk-FWWIAOPU.mjs";
28
28
  import {
29
29
  useListEvents
30
- } from "./chunk-MC2YYATT.mjs";
30
+ } from "./chunk-J6SLKTKE.mjs";
31
31
  import {
32
32
  useListPlans
33
- } from "./chunk-HSQUB3BZ.mjs";
33
+ } from "./chunk-BDG6JHEW.mjs";
34
34
  import {
35
35
  useReferrals
36
- } from "./chunk-G7FTQLT7.mjs";
37
- import "./chunk-XJZH5NMZ.mjs";
36
+ } from "./chunk-YQFYWH7J.mjs";
37
+ import "./chunk-E5ZHOMZ4.mjs";
38
38
  import {
39
39
  useAutumnClient
40
40
  } from "./chunk-SOA7GEAN.mjs";
@@ -1,4 +1,4 @@
1
- import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-CqxFGNk2.js';
1
+ import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-DSTBzzTY.js';
2
2
 
3
3
  /**
4
4
  * Time range to aggregate events for. Either range or custom_range must be provided
@@ -1,4 +1,4 @@
1
- import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-CqxFGNk2.mjs';
1
+ import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-DSTBzzTY.mjs';
2
2
 
3
3
  /**
4
4
  * Time range to aggregate events for. Either range or custom_range must be provided
@@ -569,6 +569,15 @@ declare const PlanEnv: {
569
569
  * Environment this plan belongs to ('sandbox' or 'live').
570
570
  */
571
571
  type PlanEnv = OpenEnum<typeof PlanEnv>;
572
+ /**
573
+ * Miscellaneous plan-level configuration flags.
574
+ */
575
+ type PlanConfig = {
576
+ /**
577
+ * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
578
+ */
579
+ ignorePastDue: boolean;
580
+ };
572
581
  /**
573
582
  * The customer's current status with this plan. 'active' if attached, 'scheduled' if pending activation.
574
583
  */
@@ -673,6 +682,10 @@ type Plan = {
673
682
  * If this is a variant, the ID of the base plan it was created from.
674
683
  */
675
684
  baseVariantId: string | null;
685
+ /**
686
+ * Miscellaneous plan-level configuration flags.
687
+ */
688
+ config: PlanConfig;
676
689
  customerEligibility?: CustomerEligibility | undefined;
677
690
  };
678
691
 
@@ -569,6 +569,15 @@ declare const PlanEnv: {
569
569
  * Environment this plan belongs to ('sandbox' or 'live').
570
570
  */
571
571
  type PlanEnv = OpenEnum<typeof PlanEnv>;
572
+ /**
573
+ * Miscellaneous plan-level configuration flags.
574
+ */
575
+ type PlanConfig = {
576
+ /**
577
+ * If true, entitlements attached to this plan will still reset on schedule even when the customer's product is in a past_due state.
578
+ */
579
+ ignorePastDue: boolean;
580
+ };
572
581
  /**
573
582
  * The customer's current status with this plan. 'active' if attached, 'scheduled' if pending activation.
574
583
  */
@@ -673,6 +682,10 @@ type Plan = {
673
682
  * If this is a variant, the ID of the base plan it was created from.
674
683
  */
675
684
  baseVariantId: string | null;
685
+ /**
686
+ * Miscellaneous plan-level configuration flags.
687
+ */
688
+ config: PlanConfig;
676
689
  customerEligibility?: CustomerEligibility | undefined;
677
690
  };
678
691