autumn-js 1.2.44 → 1.2.46

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 (148) hide show
  1. package/dist/backend/adapters/express.js +179 -23
  2. package/dist/backend/adapters/express.mjs +9 -9
  3. package/dist/backend/adapters/fetch.js +179 -23
  4. package/dist/backend/adapters/fetch.mjs +9 -9
  5. package/dist/backend/adapters/hono.js +179 -23
  6. package/dist/backend/adapters/hono.mjs +9 -9
  7. package/dist/backend/adapters/index.js +179 -23
  8. package/dist/backend/adapters/index.mjs +12 -12
  9. package/dist/backend/adapters/next.js +179 -23
  10. package/dist/backend/adapters/next.mjs +9 -9
  11. package/dist/backend/{chunk-GRPW7PMD.mjs → chunk-564D2O3W.mjs} +1 -1
  12. package/dist/backend/{chunk-PKU2QG3V.mjs → chunk-KW47VZ73.mjs} +5 -5
  13. package/dist/backend/{chunk-UBDJHK2I.mjs → chunk-RPUV2OZA.mjs} +125 -19
  14. package/dist/backend/{chunk-HMEVH6GK.mjs → chunk-SBZEXVB4.mjs} +7 -7
  15. package/dist/backend/{chunk-43PV6A4J.mjs → chunk-TEDQUFQV.mjs} +1 -1
  16. package/dist/backend/{chunk-NX26QVC6.mjs → chunk-UJS4Q7J4.mjs} +54 -4
  17. package/dist/backend/{chunk-YOZEZHQY.mjs → chunk-WR6ZPCQG.mjs} +1 -1
  18. package/dist/backend/{chunk-W2L6YF67.mjs → chunk-XOAX5KAL.mjs} +1 -1
  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 +179 -23
  22. package/dist/backend/core/handlers/coreHandler.mjs +7 -7
  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 +4 -4
  26. package/dist/backend/core/handlers/handleRouteByName.js +179 -23
  27. package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
  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 +179 -23
  31. package/dist/backend/core/handlers/index.mjs +10 -10
  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 +179 -23
  35. package/dist/backend/core/index.mjs +10 -10
  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 +54 -4
  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 +54 -4
  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 +179 -23
  56. package/dist/backend/index.mjs +10 -10
  57. package/dist/backend/{routeTypes-CJ1KepjZ.d.mts → routeTypes-DnUY8ksp.d.mts} +257 -8
  58. package/dist/backend/{routeTypes-CODz5Cb_.d.ts → routeTypes-TbN5QHEp.d.ts} +257 -8
  59. package/dist/better-auth/{chunk-XME6A73W.mjs → chunk-SABPXZTZ.mjs} +126 -20
  60. package/dist/better-auth/{chunk-W2AEIA6U.mjs → chunk-TOQRV6D7.mjs} +1 -1
  61. package/dist/better-auth/{chunk-7LUOWWZI.mjs → chunk-YRHQ4VL7.mjs} +54 -4
  62. package/dist/better-auth/index.js +179 -23
  63. package/dist/better-auth/index.mjs +3 -3
  64. package/dist/better-auth/utils/createAutumnEndpoint.js +54 -4
  65. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  66. package/dist/better-auth/utils/handleBetterAuthRoute.js +179 -23
  67. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  68. package/dist/better-auth/utils/index.js +179 -23
  69. package/dist/better-auth/utils/index.mjs +3 -3
  70. package/dist/react/AutumnContext.d.mts +7 -4
  71. package/dist/react/AutumnContext.d.ts +7 -4
  72. package/dist/react/AutumnProvider.js +1 -1
  73. package/dist/react/AutumnProvider.mjs +2 -2
  74. package/dist/react/{chunk-EE3XPYSL.mjs → chunk-2C6RX3EW.mjs} +1 -1
  75. package/dist/react/{chunk-SBCI4L22.mjs → chunk-2X7HXG2W.mjs} +1 -1
  76. package/dist/react/{chunk-7SRCZYRC.mjs → chunk-3WU4ZFXU.mjs} +1 -1
  77. package/dist/react/{chunk-LUBYNTYC.mjs → chunk-4HU5BGSM.mjs} +1 -1
  78. package/dist/react/{chunk-RTZAB46K.mjs → chunk-7RF3IGDO.mjs} +1 -1
  79. package/dist/react/{chunk-KCOHZSS3.mjs → chunk-C6I2RW56.mjs} +8 -8
  80. package/dist/react/{chunk-CQF3ER2L.mjs → chunk-NWF7OFFQ.mjs} +2 -2
  81. package/dist/react/{chunk-CSJHU3F2.mjs → chunk-SRSYG5ZV.mjs} +1 -1
  82. package/dist/react/{chunk-QUGX6XRQ.mjs → chunk-UNQZV3K5.mjs} +1 -1
  83. package/dist/react/client/AutumnClient.d.mts +4 -4
  84. package/dist/react/client/AutumnClient.d.ts +4 -4
  85. package/dist/react/client/IAutumnClient.d.mts +4 -4
  86. package/dist/react/client/IAutumnClient.d.ts +4 -4
  87. package/dist/react/client/index.d.mts +4 -4
  88. package/dist/react/client/index.d.ts +4 -4
  89. package/dist/react/{customer-2LdIXsvH.d.ts → customer-CNfSCDv_.d.ts} +1 -1
  90. package/dist/react/{customer-VoTRBlpB.d.mts → customer-VD6pkmpz.d.mts} +1 -1
  91. package/dist/react/hooks/index.d.mts +4 -4
  92. package/dist/react/hooks/index.d.ts +4 -4
  93. package/dist/react/hooks/index.js +7 -7
  94. package/dist/react/hooks/index.mjs +8 -8
  95. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  96. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  97. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  98. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  99. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  100. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  101. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  102. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  103. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  104. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  105. package/dist/react/hooks/internal/useCustomerActions.d.mts +7 -4
  106. package/dist/react/hooks/internal/useCustomerActions.d.ts +7 -4
  107. package/dist/react/hooks/internal/useCustomerActions.js +1 -1
  108. package/dist/react/hooks/internal/useCustomerActions.mjs +2 -2
  109. package/dist/react/hooks/useAggregateEvents.d.mts +5 -2
  110. package/dist/react/hooks/useAggregateEvents.d.ts +5 -2
  111. package/dist/react/hooks/useAggregateEvents.js +7 -7
  112. package/dist/react/hooks/useAggregateEvents.mjs +2 -2
  113. package/dist/react/hooks/useCustomer.d.mts +4 -3
  114. package/dist/react/hooks/useCustomer.d.ts +4 -3
  115. package/dist/react/hooks/useCustomer.js +7 -7
  116. package/dist/react/hooks/useCustomer.mjs +3 -3
  117. package/dist/react/hooks/useEntity.d.mts +3 -2
  118. package/dist/react/hooks/useEntity.d.ts +3 -2
  119. package/dist/react/hooks/useEntity.js +7 -7
  120. package/dist/react/hooks/useEntity.mjs +2 -2
  121. package/dist/react/hooks/useListEvents.d.mts +5 -2
  122. package/dist/react/hooks/useListEvents.d.ts +5 -2
  123. package/dist/react/hooks/useListEvents.js +7 -7
  124. package/dist/react/hooks/useListEvents.mjs +2 -2
  125. package/dist/react/hooks/useListPlans.d.mts +6 -3
  126. package/dist/react/hooks/useListPlans.d.ts +6 -3
  127. package/dist/react/hooks/useListPlans.js +7 -7
  128. package/dist/react/hooks/useListPlans.mjs +2 -2
  129. package/dist/react/hooks/useReferrals.d.mts +3 -2
  130. package/dist/react/hooks/useReferrals.d.ts +3 -2
  131. package/dist/react/hooks/useReferrals.js +7 -7
  132. package/dist/react/hooks/useReferrals.mjs +2 -2
  133. package/dist/react/index.d.mts +4 -4
  134. package/dist/react/index.d.ts +4 -4
  135. package/dist/react/index.js +7 -7
  136. package/dist/react/index.mjs +9 -9
  137. package/dist/react/{list-plans-op-Cj9hlzsX.d.mts → list-plans-op-B87IUSZR.d.ts} +9 -1
  138. package/dist/react/{list-plans-op-Bv7x0N22.d.ts → list-plans-op-CvGXtKAO.d.mts} +9 -1
  139. package/dist/react/{params-5C7THGzd.d.mts → params-BrFcJdeO.d.mts} +119 -5
  140. package/dist/react/{params-B1og9_ES.d.ts → params-BwHZca3H.d.ts} +119 -5
  141. package/dist/react/{plan-Kbxmz27V.d.mts → plan-DBswUtWr.d.mts} +8 -0
  142. package/dist/react/{plan-Kbxmz27V.d.ts → plan-DBswUtWr.d.ts} +8 -0
  143. package/dist/sdk/index.d.mts +311 -10
  144. package/dist/sdk/index.d.ts +311 -10
  145. package/dist/sdk/index.js +144 -21
  146. package/dist/sdk/index.mjs +133 -20
  147. package/package.json +1 -1
  148. package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
@@ -2,13 +2,13 @@
2
2
  "use client";
3
3
  import {
4
4
  useCustomerActions
5
- } from "../../chunk-LUBYNTYC.mjs";
5
+ } from "../../chunk-4HU5BGSM.mjs";
6
6
  import "../../chunk-BWKG32GC.mjs";
7
7
  import "../../chunk-GSJF6P3Q.mjs";
8
8
  import "../../chunk-SEQHNPTF.mjs";
9
9
  import "../../chunk-4TON573W.mjs";
10
10
  import "../../chunk-D6DFRS3U.mjs";
11
- import "../../chunk-KCOHZSS3.mjs";
11
+ import "../../chunk-C6I2RW56.mjs";
12
12
  export {
13
13
  useCustomerActions
14
14
  };
@@ -1,10 +1,13 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-5C7THGzd.mjs';
2
+ import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-BrFcJdeO.mjs';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.mjs';
4
4
  import { HookParams } from './types.mjs';
5
- import '../plan-Kbxmz27V.mjs';
5
+ import '../plan-DBswUtWr.mjs';
6
6
 
7
7
  type UseAggregateEventsParams = HookParams<ClientAggregateEventsParams, AggregateEventsResponse>;
8
+ /**
9
+ * @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
10
+ */
8
11
  declare const useAggregateEvents: (params: UseAggregateEventsParams) => {
9
12
  list: AggregateEventsList[] | undefined;
10
13
  total: {
@@ -1,10 +1,13 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-B1og9_ES.js';
2
+ import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-BwHZca3H.js';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.js';
4
4
  import { HookParams } from './types.js';
5
- import '../plan-Kbxmz27V.js';
5
+ import '../plan-DBswUtWr.js';
6
6
 
7
7
  type UseAggregateEventsParams = HookParams<ClientAggregateEventsParams, AggregateEventsResponse>;
8
+ /**
9
+ * @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
10
+ */
8
11
  declare const useAggregateEvents: (params: UseAggregateEventsParams) => {
9
12
  list: AggregateEventsList[] | undefined;
10
13
  total: {
@@ -952,7 +952,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
952
952
  return false;
953
953
  }
954
954
 
955
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
955
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
956
956
  var React = __toESM(require("react"), 1);
957
957
  var import_jsx_runtime = require("react/jsx-runtime");
958
958
  var QueryClientContext = React.createContext(
@@ -969,13 +969,13 @@ var useQueryClient = (queryClient) => {
969
969
  return client;
970
970
  };
971
971
 
972
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
972
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
973
973
  var React2 = __toESM(require("react"), 1);
974
974
  var IsRestoringContext = React2.createContext(false);
975
975
  var useIsRestoring = () => React2.useContext(IsRestoringContext);
976
976
  var IsRestoringProvider = IsRestoringContext.Provider;
977
977
 
978
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
978
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
979
979
  var React3 = __toESM(require("react"), 1);
980
980
  var import_jsx_runtime2 = require("react/jsx-runtime");
981
981
  function createValue() {
@@ -995,7 +995,7 @@ function createValue() {
995
995
  var QueryErrorResetBoundaryContext = React3.createContext(createValue());
996
996
  var useQueryErrorResetBoundary = () => React3.useContext(QueryErrorResetBoundaryContext);
997
997
 
998
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
998
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
999
999
  var React4 = __toESM(require("react"), 1);
1000
1000
  var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {
1001
1001
  const throwOnError = query?.state.error && typeof options.throwOnError === "function" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;
@@ -1020,7 +1020,7 @@ var getHasError = ({
1020
1020
  return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
1021
1021
  };
1022
1022
 
1023
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/suspense.js
1023
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/suspense.js
1024
1024
  var ensureSuspenseTimers = (defaultedOptions) => {
1025
1025
  if (defaultedOptions.suspense) {
1026
1026
  const MIN_SUSPENSE_TIME_MS = 1e3;
@@ -1041,7 +1041,7 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
1041
1041
  errorResetBoundary.clearReset();
1042
1042
  });
1043
1043
 
1044
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
1044
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
1045
1045
  var React5 = __toESM(require("react"), 1);
1046
1046
  function useBaseQuery(options, Observer, queryClient) {
1047
1047
  if (process.env.NODE_ENV !== "production") {
@@ -1127,7 +1127,7 @@ function useBaseQuery(options, Observer, queryClient) {
1127
1127
  return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
1128
1128
  }
1129
1129
 
1130
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/useQuery.js
1130
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useQuery.js
1131
1131
  function useQuery(options, queryClient) {
1132
1132
  return useBaseQuery(options, QueryObserver, queryClient);
1133
1133
  }
@@ -2,8 +2,8 @@
2
2
  "use client";
3
3
  import {
4
4
  useAggregateEvents
5
- } from "../chunk-RTZAB46K.mjs";
6
- import "../chunk-KCOHZSS3.mjs";
5
+ } from "../chunk-7RF3IGDO.mjs";
6
+ import "../chunk-C6I2RW56.mjs";
7
7
  import "../chunk-SOA7GEAN.mjs";
8
8
  export {
9
9
  useAggregateEvents
@@ -1,7 +1,7 @@
1
- import { n as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-5C7THGzd.mjs';
2
- import { C as Customer } from '../customer-VoTRBlpB.mjs';
1
+ import { n as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-BrFcJdeO.mjs';
2
+ import { C as Customer } from '../customer-VD6pkmpz.mjs';
3
3
  import { HookParams, HookResultWithMethods } from './types.mjs';
4
- import '../plan-Kbxmz27V.mjs';
4
+ import '../plan-DBswUtWr.mjs';
5
5
  import '@tanstack/react-query';
6
6
  import '../client/AutumnClientError.mjs';
7
7
 
@@ -75,6 +75,7 @@ type UseCustomerResult = HookResultWithMethods<Customer | null, {
75
75
  * Fetches or creates an Autumn customer and provides billing actions.
76
76
  *
77
77
  * @returns Customer data along with billing methods: `attach`, `previewAttach`, `updateSubscription`, `previewUpdateSubscription`, `multiAttach`, `previewMultiAttach`, `check`, `setupPayment`, and `openCustomerPortal`.
78
+ * @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
78
79
  */
79
80
  declare const useCustomer: (params?: UseCustomerParams) => UseCustomerResult;
80
81
 
@@ -1,7 +1,7 @@
1
- import { n as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-B1og9_ES.js';
2
- import { C as Customer } from '../customer-2LdIXsvH.js';
1
+ import { n as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-BwHZca3H.js';
2
+ import { C as Customer } from '../customer-CNfSCDv_.js';
3
3
  import { HookParams, HookResultWithMethods } from './types.js';
4
- import '../plan-Kbxmz27V.js';
4
+ import '../plan-DBswUtWr.js';
5
5
  import '@tanstack/react-query';
6
6
  import '../client/AutumnClientError.js';
7
7
 
@@ -75,6 +75,7 @@ type UseCustomerResult = HookResultWithMethods<Customer | null, {
75
75
  * Fetches or creates an Autumn customer and provides billing actions.
76
76
  *
77
77
  * @returns Customer data along with billing methods: `attach`, `previewAttach`, `updateSubscription`, `previewUpdateSubscription`, `multiAttach`, `previewMultiAttach`, `check`, `setupPayment`, and `openCustomerPortal`.
78
+ * @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
78
79
  */
79
80
  declare const useCustomer: (params?: UseCustomerParams) => UseCustomerResult;
80
81
 
@@ -952,7 +952,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
952
952
  return false;
953
953
  }
954
954
 
955
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
955
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
956
956
  var React = __toESM(require("react"), 1);
957
957
  var import_jsx_runtime = require("react/jsx-runtime");
958
958
  var QueryClientContext = React.createContext(
@@ -969,13 +969,13 @@ var useQueryClient = (queryClient) => {
969
969
  return client;
970
970
  };
971
971
 
972
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
972
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
973
973
  var React2 = __toESM(require("react"), 1);
974
974
  var IsRestoringContext = React2.createContext(false);
975
975
  var useIsRestoring = () => React2.useContext(IsRestoringContext);
976
976
  var IsRestoringProvider = IsRestoringContext.Provider;
977
977
 
978
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
978
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
979
979
  var React3 = __toESM(require("react"), 1);
980
980
  var import_jsx_runtime2 = require("react/jsx-runtime");
981
981
  function createValue() {
@@ -995,7 +995,7 @@ function createValue() {
995
995
  var QueryErrorResetBoundaryContext = React3.createContext(createValue());
996
996
  var useQueryErrorResetBoundary = () => React3.useContext(QueryErrorResetBoundaryContext);
997
997
 
998
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
998
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
999
999
  var React4 = __toESM(require("react"), 1);
1000
1000
  var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {
1001
1001
  const throwOnError = query?.state.error && typeof options.throwOnError === "function" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;
@@ -1020,7 +1020,7 @@ var getHasError = ({
1020
1020
  return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
1021
1021
  };
1022
1022
 
1023
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/suspense.js
1023
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/suspense.js
1024
1024
  var ensureSuspenseTimers = (defaultedOptions) => {
1025
1025
  if (defaultedOptions.suspense) {
1026
1026
  const MIN_SUSPENSE_TIME_MS = 1e3;
@@ -1041,7 +1041,7 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
1041
1041
  errorResetBoundary.clearReset();
1042
1042
  });
1043
1043
 
1044
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
1044
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
1045
1045
  var React5 = __toESM(require("react"), 1);
1046
1046
  function useBaseQuery(options, Observer, queryClient) {
1047
1047
  if (process.env.NODE_ENV !== "production") {
@@ -1127,7 +1127,7 @@ function useBaseQuery(options, Observer, queryClient) {
1127
1127
  return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
1128
1128
  }
1129
1129
 
1130
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/useQuery.js
1130
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useQuery.js
1131
1131
  function useQuery(options, queryClient) {
1132
1132
  return useBaseQuery(options, QueryObserver, queryClient);
1133
1133
  }
@@ -2,14 +2,14 @@
2
2
  "use client";
3
3
  import {
4
4
  useCustomer
5
- } from "../chunk-CQF3ER2L.mjs";
6
- import "../chunk-LUBYNTYC.mjs";
5
+ } from "../chunk-NWF7OFFQ.mjs";
6
+ import "../chunk-4HU5BGSM.mjs";
7
7
  import "../chunk-BWKG32GC.mjs";
8
8
  import "../chunk-GSJF6P3Q.mjs";
9
9
  import "../chunk-SEQHNPTF.mjs";
10
10
  import "../chunk-4TON573W.mjs";
11
11
  import "../chunk-D6DFRS3U.mjs";
12
- import "../chunk-KCOHZSS3.mjs";
12
+ import "../chunk-C6I2RW56.mjs";
13
13
  import "../chunk-SOA7GEAN.mjs";
14
14
  export {
15
15
  useCustomer
@@ -1,6 +1,6 @@
1
- import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-5C7THGzd.mjs';
1
+ import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-BrFcJdeO.mjs';
2
2
  import { HookParams, HookResult } from './types.mjs';
3
- import '../plan-Kbxmz27V.mjs';
3
+ import '../plan-DBswUtWr.mjs';
4
4
  import '@tanstack/react-query';
5
5
  import '../client/AutumnClientError.mjs';
6
6
 
@@ -10,6 +10,7 @@ type UseEntityResult = HookResult<GetEntityResponse | null>;
10
10
  * Fetches an Autumn entity (sub-resource of a customer, eg. a seat or project).
11
11
  *
12
12
  * @returns Entity data including subscriptions, purchases, and balances.
13
+ * @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
13
14
  */
14
15
  declare const useEntity: (params: UseEntityParams) => UseEntityResult;
15
16
 
@@ -1,6 +1,6 @@
1
- import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-B1og9_ES.js';
1
+ import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-BwHZca3H.js';
2
2
  import { HookParams, HookResult } from './types.js';
3
- import '../plan-Kbxmz27V.js';
3
+ import '../plan-DBswUtWr.js';
4
4
  import '@tanstack/react-query';
5
5
  import '../client/AutumnClientError.js';
6
6
 
@@ -10,6 +10,7 @@ type UseEntityResult = HookResult<GetEntityResponse | null>;
10
10
  * Fetches an Autumn entity (sub-resource of a customer, eg. a seat or project).
11
11
  *
12
12
  * @returns Entity data including subscriptions, purchases, and balances.
13
+ * @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
13
14
  */
14
15
  declare const useEntity: (params: UseEntityParams) => UseEntityResult;
15
16
 
@@ -952,7 +952,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
952
952
  return false;
953
953
  }
954
954
 
955
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
955
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
956
956
  var React = __toESM(require("react"), 1);
957
957
  var import_jsx_runtime = require("react/jsx-runtime");
958
958
  var QueryClientContext = React.createContext(
@@ -969,13 +969,13 @@ var useQueryClient = (queryClient) => {
969
969
  return client;
970
970
  };
971
971
 
972
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
972
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
973
973
  var React2 = __toESM(require("react"), 1);
974
974
  var IsRestoringContext = React2.createContext(false);
975
975
  var useIsRestoring = () => React2.useContext(IsRestoringContext);
976
976
  var IsRestoringProvider = IsRestoringContext.Provider;
977
977
 
978
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
978
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
979
979
  var React3 = __toESM(require("react"), 1);
980
980
  var import_jsx_runtime2 = require("react/jsx-runtime");
981
981
  function createValue() {
@@ -995,7 +995,7 @@ function createValue() {
995
995
  var QueryErrorResetBoundaryContext = React3.createContext(createValue());
996
996
  var useQueryErrorResetBoundary = () => React3.useContext(QueryErrorResetBoundaryContext);
997
997
 
998
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
998
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
999
999
  var React4 = __toESM(require("react"), 1);
1000
1000
  var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {
1001
1001
  const throwOnError = query?.state.error && typeof options.throwOnError === "function" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;
@@ -1020,7 +1020,7 @@ var getHasError = ({
1020
1020
  return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
1021
1021
  };
1022
1022
 
1023
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/suspense.js
1023
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/suspense.js
1024
1024
  var ensureSuspenseTimers = (defaultedOptions) => {
1025
1025
  if (defaultedOptions.suspense) {
1026
1026
  const MIN_SUSPENSE_TIME_MS = 1e3;
@@ -1041,7 +1041,7 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
1041
1041
  errorResetBoundary.clearReset();
1042
1042
  });
1043
1043
 
1044
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
1044
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
1045
1045
  var React5 = __toESM(require("react"), 1);
1046
1046
  function useBaseQuery(options, Observer, queryClient) {
1047
1047
  if (process.env.NODE_ENV !== "production") {
@@ -1127,7 +1127,7 @@ function useBaseQuery(options, Observer, queryClient) {
1127
1127
  return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
1128
1128
  }
1129
1129
 
1130
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/useQuery.js
1130
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useQuery.js
1131
1131
  function useQuery(options, queryClient) {
1132
1132
  return useBaseQuery(options, QueryObserver, queryClient);
1133
1133
  }
@@ -2,8 +2,8 @@
2
2
  "use client";
3
3
  import {
4
4
  useEntity
5
- } from "../chunk-7SRCZYRC.mjs";
6
- import "../chunk-KCOHZSS3.mjs";
5
+ } from "../chunk-3WU4ZFXU.mjs";
6
+ import "../chunk-C6I2RW56.mjs";
7
7
  import "../chunk-SOA7GEAN.mjs";
8
8
  export {
9
9
  useEntity
@@ -1,10 +1,13 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-5C7THGzd.mjs';
2
+ import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-BrFcJdeO.mjs';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.mjs';
4
4
  import { HookParams } from './types.mjs';
5
- import '../plan-Kbxmz27V.mjs';
5
+ import '../plan-DBswUtWr.mjs';
6
6
 
7
7
  type UseListEventsParams = HookParams<ClientListEventsParams, ListEventsResponse>;
8
+ /**
9
+ * @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
10
+ */
8
11
  declare const useListEvents: (params?: UseListEventsParams) => {
9
12
  list: ListEventsList[] | undefined;
10
13
  hasMore: boolean;
@@ -1,10 +1,13 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-B1og9_ES.js';
2
+ import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-BwHZca3H.js';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.js';
4
4
  import { HookParams } from './types.js';
5
- import '../plan-Kbxmz27V.js';
5
+ import '../plan-DBswUtWr.js';
6
6
 
7
7
  type UseListEventsParams = HookParams<ClientListEventsParams, ListEventsResponse>;
8
+ /**
9
+ * @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
10
+ */
8
11
  declare const useListEvents: (params?: UseListEventsParams) => {
9
12
  list: ListEventsList[] | undefined;
10
13
  hasMore: boolean;
@@ -952,7 +952,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
952
952
  return false;
953
953
  }
954
954
 
955
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
955
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
956
956
  var React = __toESM(require("react"), 1);
957
957
  var import_jsx_runtime = require("react/jsx-runtime");
958
958
  var QueryClientContext = React.createContext(
@@ -969,13 +969,13 @@ var useQueryClient = (queryClient) => {
969
969
  return client;
970
970
  };
971
971
 
972
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
972
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
973
973
  var React2 = __toESM(require("react"), 1);
974
974
  var IsRestoringContext = React2.createContext(false);
975
975
  var useIsRestoring = () => React2.useContext(IsRestoringContext);
976
976
  var IsRestoringProvider = IsRestoringContext.Provider;
977
977
 
978
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
978
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
979
979
  var React3 = __toESM(require("react"), 1);
980
980
  var import_jsx_runtime2 = require("react/jsx-runtime");
981
981
  function createValue() {
@@ -995,7 +995,7 @@ function createValue() {
995
995
  var QueryErrorResetBoundaryContext = React3.createContext(createValue());
996
996
  var useQueryErrorResetBoundary = () => React3.useContext(QueryErrorResetBoundaryContext);
997
997
 
998
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
998
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
999
999
  var React4 = __toESM(require("react"), 1);
1000
1000
  var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {
1001
1001
  const throwOnError = query?.state.error && typeof options.throwOnError === "function" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;
@@ -1020,7 +1020,7 @@ var getHasError = ({
1020
1020
  return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
1021
1021
  };
1022
1022
 
1023
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/suspense.js
1023
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/suspense.js
1024
1024
  var ensureSuspenseTimers = (defaultedOptions) => {
1025
1025
  if (defaultedOptions.suspense) {
1026
1026
  const MIN_SUSPENSE_TIME_MS = 1e3;
@@ -1041,7 +1041,7 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
1041
1041
  errorResetBoundary.clearReset();
1042
1042
  });
1043
1043
 
1044
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
1044
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
1045
1045
  var React5 = __toESM(require("react"), 1);
1046
1046
  function useBaseQuery(options, Observer, queryClient) {
1047
1047
  if (process.env.NODE_ENV !== "production") {
@@ -1127,7 +1127,7 @@ function useBaseQuery(options, Observer, queryClient) {
1127
1127
  return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
1128
1128
  }
1129
1129
 
1130
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/useQuery.js
1130
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useQuery.js
1131
1131
  function useQuery(options, queryClient) {
1132
1132
  return useBaseQuery(options, QueryObserver, queryClient);
1133
1133
  }
@@ -2,8 +2,8 @@
2
2
  "use client";
3
3
  import {
4
4
  useListEvents
5
- } from "../chunk-CSJHU3F2.mjs";
6
- import "../chunk-KCOHZSS3.mjs";
5
+ } from "../chunk-SRSYG5ZV.mjs";
6
+ import "../chunk-C6I2RW56.mjs";
7
7
  import "../chunk-SOA7GEAN.mjs";
8
8
  export {
9
9
  useListEvents
@@ -1,11 +1,14 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { a as ListPlansList } from '../list-plans-op-Cj9hlzsX.mjs';
3
- import { t as ClientListPlansParams } from '../params-5C7THGzd.mjs';
2
+ import { a as ListPlansList } from '../list-plans-op-CvGXtKAO.mjs';
3
+ import { t as ClientListPlansParams } from '../params-BrFcJdeO.mjs';
4
4
  import { AutumnClientError } from '../client/AutumnClientError.mjs';
5
5
  import { HookParams } from './types.mjs';
6
- import '../plan-Kbxmz27V.mjs';
6
+ import '../plan-DBswUtWr.mjs';
7
7
 
8
8
  type UseListPlansParams = HookParams<ClientListPlansParams, ListPlansList[]>;
9
+ /**
10
+ * @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
11
+ */
9
12
  declare const useListPlans: (params?: UseListPlansParams) => _tanstack_react_query.UseQueryResult<NoInfer<ListPlansList[]>, AutumnClientError>;
10
13
 
11
14
  export { type UseListPlansParams, useListPlans };
@@ -1,11 +1,14 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { a as ListPlansList } from '../list-plans-op-Bv7x0N22.js';
3
- import { t as ClientListPlansParams } from '../params-B1og9_ES.js';
2
+ import { a as ListPlansList } from '../list-plans-op-B87IUSZR.js';
3
+ import { t as ClientListPlansParams } from '../params-BwHZca3H.js';
4
4
  import { AutumnClientError } from '../client/AutumnClientError.js';
5
5
  import { HookParams } from './types.js';
6
- import '../plan-Kbxmz27V.js';
6
+ import '../plan-DBswUtWr.js';
7
7
 
8
8
  type UseListPlansParams = HookParams<ClientListPlansParams, ListPlansList[]>;
9
+ /**
10
+ * @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
11
+ */
9
12
  declare const useListPlans: (params?: UseListPlansParams) => _tanstack_react_query.UseQueryResult<NoInfer<ListPlansList[]>, AutumnClientError>;
10
13
 
11
14
  export { type UseListPlansParams, useListPlans };
@@ -952,7 +952,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
952
952
  return false;
953
953
  }
954
954
 
955
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
955
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
956
956
  var React = __toESM(require("react"), 1);
957
957
  var import_jsx_runtime = require("react/jsx-runtime");
958
958
  var QueryClientContext = React.createContext(
@@ -969,13 +969,13 @@ var useQueryClient = (queryClient) => {
969
969
  return client;
970
970
  };
971
971
 
972
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
972
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
973
973
  var React2 = __toESM(require("react"), 1);
974
974
  var IsRestoringContext = React2.createContext(false);
975
975
  var useIsRestoring = () => React2.useContext(IsRestoringContext);
976
976
  var IsRestoringProvider = IsRestoringContext.Provider;
977
977
 
978
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
978
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
979
979
  var React3 = __toESM(require("react"), 1);
980
980
  var import_jsx_runtime2 = require("react/jsx-runtime");
981
981
  function createValue() {
@@ -995,7 +995,7 @@ function createValue() {
995
995
  var QueryErrorResetBoundaryContext = React3.createContext(createValue());
996
996
  var useQueryErrorResetBoundary = () => React3.useContext(QueryErrorResetBoundaryContext);
997
997
 
998
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
998
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
999
999
  var React4 = __toESM(require("react"), 1);
1000
1000
  var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {
1001
1001
  const throwOnError = query?.state.error && typeof options.throwOnError === "function" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;
@@ -1020,7 +1020,7 @@ var getHasError = ({
1020
1020
  return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
1021
1021
  };
1022
1022
 
1023
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/suspense.js
1023
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/suspense.js
1024
1024
  var ensureSuspenseTimers = (defaultedOptions) => {
1025
1025
  if (defaultedOptions.suspense) {
1026
1026
  const MIN_SUSPENSE_TIME_MS = 1e3;
@@ -1041,7 +1041,7 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
1041
1041
  errorResetBoundary.clearReset();
1042
1042
  });
1043
1043
 
1044
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
1044
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
1045
1045
  var React5 = __toESM(require("react"), 1);
1046
1046
  function useBaseQuery(options, Observer, queryClient) {
1047
1047
  if (process.env.NODE_ENV !== "production") {
@@ -1127,7 +1127,7 @@ function useBaseQuery(options, Observer, queryClient) {
1127
1127
  return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
1128
1128
  }
1129
1129
 
1130
- // ../../node_modules/.bun/@tanstack+react-query@5.101.1+e14d3f224186685e/node_modules/@tanstack/react-query/build/modern/useQuery.js
1130
+ // ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useQuery.js
1131
1131
  function useQuery(options, queryClient) {
1132
1132
  return useBaseQuery(options, QueryObserver, queryClient);
1133
1133
  }
@@ -2,8 +2,8 @@
2
2
  "use client";
3
3
  import {
4
4
  useListPlans
5
- } from "../chunk-SBCI4L22.mjs";
6
- import "../chunk-KCOHZSS3.mjs";
5
+ } from "../chunk-2X7HXG2W.mjs";
6
+ import "../chunk-C6I2RW56.mjs";
7
7
  import "../chunk-SOA7GEAN.mjs";
8
8
  export {
9
9
  useListPlans
@@ -1,6 +1,6 @@
1
- import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-5C7THGzd.mjs';
1
+ import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-BrFcJdeO.mjs';
2
2
  import { HookParams, HookResultWithMethods } from './types.mjs';
3
- import '../plan-Kbxmz27V.mjs';
3
+ import '../plan-DBswUtWr.mjs';
4
4
  import '@tanstack/react-query';
5
5
  import '../client/AutumnClientError.mjs';
6
6
 
@@ -15,6 +15,7 @@ type UseReferralsResult = HookResultWithMethods<CreateReferralCodeResponse, {
15
15
  * - `data` is the latest create-code response.
16
16
  * - Access the code as `data?.code`.
17
17
  * - Call `refetch()` to create/fetch the code for `programId`.
18
+ * @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
18
19
  */
19
20
  declare const useReferrals: (params: UseReferralsParams) => UseReferralsResult;
20
21
 
@@ -1,6 +1,6 @@
1
- import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-B1og9_ES.js';
1
+ import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-BwHZca3H.js';
2
2
  import { HookParams, HookResultWithMethods } from './types.js';
3
- import '../plan-Kbxmz27V.js';
3
+ import '../plan-DBswUtWr.js';
4
4
  import '@tanstack/react-query';
5
5
  import '../client/AutumnClientError.js';
6
6
 
@@ -15,6 +15,7 @@ type UseReferralsResult = HookResultWithMethods<CreateReferralCodeResponse, {
15
15
  * - `data` is the latest create-code response.
16
16
  * - Access the code as `data?.code`.
17
17
  * - Call `refetch()` to create/fetch the code for `programId`.
18
+ * @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
18
19
  */
19
20
  declare const useReferrals: (params: UseReferralsParams) => UseReferralsResult;
20
21