autumn-js 1.2.43 → 1.2.44

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 (138) hide show
  1. package/dist/backend/adapters/express.d.mts +1 -1
  2. package/dist/backend/adapters/express.d.ts +1 -1
  3. package/dist/backend/adapters/express.js +4268 -4046
  4. package/dist/backend/adapters/express.mjs +8 -8
  5. package/dist/backend/adapters/fetch.d.mts +1 -1
  6. package/dist/backend/adapters/fetch.d.ts +1 -1
  7. package/dist/backend/adapters/fetch.js +4268 -4046
  8. package/dist/backend/adapters/fetch.mjs +8 -8
  9. package/dist/backend/adapters/hono.d.mts +1 -1
  10. package/dist/backend/adapters/hono.d.ts +1 -1
  11. package/dist/backend/adapters/hono.js +4268 -4046
  12. package/dist/backend/adapters/hono.mjs +8 -8
  13. package/dist/backend/adapters/index.d.mts +1 -1
  14. package/dist/backend/adapters/index.d.ts +1 -1
  15. package/dist/backend/adapters/index.js +4268 -4046
  16. package/dist/backend/adapters/index.mjs +11 -11
  17. package/dist/backend/adapters/next.d.mts +1 -1
  18. package/dist/backend/adapters/next.d.ts +1 -1
  19. package/dist/backend/adapters/next.js +4268 -4046
  20. package/dist/backend/adapters/next.mjs +8 -8
  21. package/dist/backend/{authTypes-B2FK_0xh.d.mts → authTypes-COW88tnI.d.mts} +6 -2
  22. package/dist/backend/{authTypes-B2FK_0xh.d.ts → authTypes-COW88tnI.d.ts} +6 -2
  23. package/dist/backend/{chunk-P2VDVARN.mjs → chunk-43PV6A4J.mjs} +1 -1
  24. package/dist/backend/{chunk-PMJU66BZ.mjs → chunk-GRPW7PMD.mjs} +1 -1
  25. package/dist/backend/{chunk-PUITHPYB.mjs → chunk-HMEVH6GK.mjs} +7 -7
  26. package/dist/backend/{chunk-VWRIO2AZ.mjs → chunk-NX26QVC6.mjs} +26 -13
  27. package/dist/backend/{chunk-BFEYTUTD.mjs → chunk-PKU2QG3V.mjs} +5 -5
  28. package/dist/backend/{chunk-6JWKVTW6.mjs → chunk-UBDJHK2I.mjs} +4030 -3821
  29. package/dist/backend/{chunk-F7UCOH2H.mjs → chunk-W2L6YF67.mjs} +1 -1
  30. package/dist/backend/{chunk-A4CQFLP2.mjs → chunk-YOZEZHQY.mjs} +1 -1
  31. package/dist/backend/core/handlers/coreHandler.d.mts +2 -2
  32. package/dist/backend/core/handlers/coreHandler.d.ts +2 -2
  33. package/dist/backend/core/handlers/coreHandler.js +4268 -4046
  34. package/dist/backend/core/handlers/coreHandler.mjs +6 -6
  35. package/dist/backend/core/handlers/executeRoute.d.mts +2 -2
  36. package/dist/backend/core/handlers/executeRoute.d.ts +2 -2
  37. package/dist/backend/core/handlers/executeRoute.mjs +3 -3
  38. package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
  39. package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
  40. package/dist/backend/core/handlers/handleRouteByName.js +4268 -4046
  41. package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
  42. package/dist/backend/core/handlers/index.d.mts +2 -2
  43. package/dist/backend/core/handlers/index.d.ts +2 -2
  44. package/dist/backend/core/handlers/index.js +4268 -4046
  45. package/dist/backend/core/handlers/index.mjs +10 -10
  46. package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
  47. package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
  48. package/dist/backend/core/index.d.mts +2 -2
  49. package/dist/backend/core/index.d.ts +2 -2
  50. package/dist/backend/core/index.js +4268 -4046
  51. package/dist/backend/core/index.mjs +7 -7
  52. package/dist/backend/core/routes/index.d.mts +2 -2
  53. package/dist/backend/core/routes/index.d.ts +2 -2
  54. package/dist/backend/core/routes/index.js +26 -13
  55. package/dist/backend/core/routes/index.mjs +1 -1
  56. package/dist/backend/core/routes/routeBuilder.d.mts +2 -2
  57. package/dist/backend/core/routes/routeBuilder.d.ts +2 -2
  58. package/dist/backend/core/routes/routeConfigs.d.mts +2 -2
  59. package/dist/backend/core/routes/routeConfigs.d.ts +2 -2
  60. package/dist/backend/core/routes/routeConfigs.js +26 -13
  61. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  62. package/dist/backend/core/types/authTypes.d.mts +1 -1
  63. package/dist/backend/core/types/authTypes.d.ts +1 -1
  64. package/dist/backend/core/types/handlerTypes.d.mts +2 -2
  65. package/dist/backend/core/types/handlerTypes.d.ts +2 -2
  66. package/dist/backend/core/types/index.d.mts +2 -2
  67. package/dist/backend/core/types/index.d.ts +2 -2
  68. package/dist/backend/core/types/routeTypes.d.mts +2 -2
  69. package/dist/backend/core/types/routeTypes.d.ts +2 -2
  70. package/dist/backend/index.d.mts +4 -4
  71. package/dist/backend/index.d.ts +4 -4
  72. package/dist/backend/index.js +4268 -4046
  73. package/dist/backend/index.mjs +7 -7
  74. package/dist/backend/{routeTypes-BbDgUCjQ.d.mts → routeTypes-CJ1KepjZ.d.mts} +262 -45
  75. package/dist/backend/{routeTypes-Dx6n-_1-.d.ts → routeTypes-CODz5Cb_.d.ts} +262 -45
  76. package/dist/better-auth/{chunk-5XFPQFRG.mjs → chunk-7LUOWWZI.mjs} +26 -13
  77. package/dist/better-auth/{chunk-46KXUK2V.mjs → chunk-W2AEIA6U.mjs} +1 -1
  78. package/dist/better-auth/{chunk-GBZQDO7C.mjs → chunk-XME6A73W.mjs} +4031 -3822
  79. package/dist/better-auth/index.js +4268 -4046
  80. package/dist/better-auth/index.mjs +3 -3
  81. package/dist/better-auth/types.d.mts +6 -2
  82. package/dist/better-auth/types.d.ts +6 -2
  83. package/dist/better-auth/utils/createAutumnEndpoint.js +26 -13
  84. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  85. package/dist/better-auth/utils/handleBetterAuthRoute.js +4268 -4046
  86. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  87. package/dist/better-auth/utils/index.js +4268 -4046
  88. package/dist/better-auth/utils/index.mjs +3 -3
  89. package/dist/react/AutumnContext.d.mts +4 -4
  90. package/dist/react/AutumnContext.d.ts +4 -4
  91. package/dist/react/client/AutumnClient.d.mts +4 -4
  92. package/dist/react/client/AutumnClient.d.ts +4 -4
  93. package/dist/react/client/IAutumnClient.d.mts +4 -4
  94. package/dist/react/client/IAutumnClient.d.ts +4 -4
  95. package/dist/react/client/index.d.mts +4 -4
  96. package/dist/react/client/index.d.ts +4 -4
  97. package/dist/react/{customer-DWsFqhDO.d.ts → customer-2LdIXsvH.d.ts} +1 -1
  98. package/dist/react/{customer-DUVEYKmJ.d.mts → customer-VoTRBlpB.d.mts} +1 -1
  99. package/dist/react/hooks/index.d.mts +4 -4
  100. package/dist/react/hooks/index.d.ts +4 -4
  101. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  102. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  103. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  104. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  105. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  106. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  107. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  108. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  109. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  110. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  111. package/dist/react/hooks/internal/useCustomerActions.d.mts +4 -4
  112. package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
  113. package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
  114. package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
  115. package/dist/react/hooks/useCustomer.d.mts +3 -3
  116. package/dist/react/hooks/useCustomer.d.ts +3 -3
  117. package/dist/react/hooks/useEntity.d.mts +2 -2
  118. package/dist/react/hooks/useEntity.d.ts +2 -2
  119. package/dist/react/hooks/useListEvents.d.mts +2 -2
  120. package/dist/react/hooks/useListEvents.d.ts +2 -2
  121. package/dist/react/hooks/useListPlans.d.mts +3 -3
  122. package/dist/react/hooks/useListPlans.d.ts +3 -3
  123. package/dist/react/hooks/useReferrals.d.mts +2 -2
  124. package/dist/react/hooks/useReferrals.d.ts +2 -2
  125. package/dist/react/index.d.mts +4 -4
  126. package/dist/react/index.d.ts +4 -4
  127. package/dist/react/{list-plans-op-BpypCKd4.d.ts → list-plans-op-Bv7x0N22.d.ts} +7 -3
  128. package/dist/react/{list-plans-op-qIIJzne_.d.mts → list-plans-op-Cj9hlzsX.d.mts} +7 -3
  129. package/dist/react/{params-DGCHegZ2.d.ts → params-5C7THGzd.d.mts} +37 -13
  130. package/dist/react/{params-C-0Z0NXW.d.mts → params-B1og9_ES.d.ts} +37 -13
  131. package/dist/react/{plan-Cv3WkiHC.d.mts → plan-Kbxmz27V.d.mts} +6 -2
  132. package/dist/react/{plan-Cv3WkiHC.d.ts → plan-Kbxmz27V.d.ts} +6 -2
  133. package/dist/sdk/index.d.mts +329 -50
  134. package/dist/sdk/index.d.ts +329 -50
  135. package/dist/sdk/index.js +7317 -7069
  136. package/dist/sdk/index.mjs +7299 -7067
  137. package/package.json +1 -1
  138. package/dist/backend/{chunk-MOHYGUMA.mjs → chunk-IXUCY7AU.mjs} +3 -3
@@ -1,14 +1,14 @@
1
1
  import "../chunk-HIWOK3G6.mjs";
2
2
  import {
3
3
  createAutumnEndpoint
4
- } from "../chunk-46KXUK2V.mjs";
4
+ } from "../chunk-W2AEIA6U.mjs";
5
5
  import {
6
6
  createHandleBetterAuthRoute
7
- } from "../chunk-GBZQDO7C.mjs";
7
+ } from "../chunk-XME6A73W.mjs";
8
8
  import {
9
9
  resolveIdentityFromScope
10
10
  } from "../chunk-J2WYVGHS.mjs";
11
- import "../chunk-5XFPQFRG.mjs";
11
+ import "../chunk-7LUOWWZI.mjs";
12
12
  import {
13
13
  getActiveOrganization
14
14
  } from "../chunk-BT3EAYVW.mjs";
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { IAutumnClient } from './client/IAutumnClient.mjs';
3
- import './params-C-0Z0NXW.mjs';
4
- import './plan-Cv3WkiHC.mjs';
5
- import './customer-DUVEYKmJ.mjs';
6
- import './list-plans-op-qIIJzne_.mjs';
3
+ import './params-5C7THGzd.mjs';
4
+ import './plan-Kbxmz27V.mjs';
5
+ import './customer-VoTRBlpB.mjs';
6
+ import './list-plans-op-Cj9hlzsX.mjs';
7
7
 
8
8
  type AutumnContextValue = {
9
9
  client: IAutumnClient;
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { IAutumnClient } from './client/IAutumnClient.js';
3
- import './params-DGCHegZ2.js';
4
- import './plan-Cv3WkiHC.js';
5
- import './customer-DWsFqhDO.js';
6
- import './list-plans-op-BpypCKd4.js';
3
+ import './params-B1og9_ES.js';
4
+ import './plan-Kbxmz27V.js';
5
+ import './customer-2LdIXsvH.js';
6
+ import './list-plans-op-Bv7x0N22.js';
7
7
 
8
8
  type AutumnContextValue = {
9
9
  client: IAutumnClient;
@@ -1,8 +1,8 @@
1
1
  import { IAutumnClient } from './IAutumnClient.mjs';
2
- import '../params-C-0Z0NXW.mjs';
3
- import '../plan-Cv3WkiHC.mjs';
4
- import '../customer-DUVEYKmJ.mjs';
5
- import '../list-plans-op-qIIJzne_.mjs';
2
+ import '../params-5C7THGzd.mjs';
3
+ import '../plan-Kbxmz27V.mjs';
4
+ import '../customer-VoTRBlpB.mjs';
5
+ import '../list-plans-op-Cj9hlzsX.mjs';
6
6
 
7
7
  /** Configuration for Autumn client */
8
8
  type AutumnClientConfig = {
@@ -1,8 +1,8 @@
1
1
  import { IAutumnClient } from './IAutumnClient.js';
2
- import '../params-DGCHegZ2.js';
3
- import '../plan-Cv3WkiHC.js';
4
- import '../customer-DWsFqhDO.js';
5
- import '../list-plans-op-BpypCKd4.js';
2
+ import '../params-B1og9_ES.js';
3
+ import '../plan-Kbxmz27V.js';
4
+ import '../customer-2LdIXsvH.js';
5
+ import '../list-plans-op-Bv7x0N22.js';
6
6
 
7
7
  /** Configuration for Autumn client */
8
8
  type AutumnClientConfig = {
@@ -1,7 +1,7 @@
1
- import { 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, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-C-0Z0NXW.mjs';
2
- import { C as Customer } from '../customer-DUVEYKmJ.mjs';
3
- import { L as ListPlansResponse } from '../list-plans-op-qIIJzne_.mjs';
4
- import '../plan-Cv3WkiHC.mjs';
1
+ import { 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, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-5C7THGzd.mjs';
2
+ import { C as Customer } from '../customer-VoTRBlpB.mjs';
3
+ import { L as ListPlansResponse } from '../list-plans-op-Cj9hlzsX.mjs';
4
+ import '../plan-Kbxmz27V.mjs';
5
5
 
6
6
  /** Client interface matching backend RPC routes */
7
7
  interface IAutumnClient {
@@ -1,7 +1,7 @@
1
- import { 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, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-DGCHegZ2.js';
2
- import { C as Customer } from '../customer-DWsFqhDO.js';
3
- import { L as ListPlansResponse } from '../list-plans-op-BpypCKd4.js';
4
- import '../plan-Cv3WkiHC.js';
1
+ import { 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, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-B1og9_ES.js';
2
+ import { C as Customer } from '../customer-2LdIXsvH.js';
3
+ import { L as ListPlansResponse } from '../list-plans-op-Bv7x0N22.js';
4
+ import '../plan-Kbxmz27V.js';
5
5
 
6
6
  /** Client interface matching backend RPC routes */
7
7
  interface IAutumnClient {
@@ -1,7 +1,7 @@
1
1
  export { AutumnClientConfig, createAutumnClient } from './AutumnClient.mjs';
2
2
  export { AutumnClientError } from './AutumnClientError.mjs';
3
3
  export { IAutumnClient } from './IAutumnClient.mjs';
4
- import '../params-C-0Z0NXW.mjs';
5
- import '../plan-Cv3WkiHC.mjs';
6
- import '../customer-DUVEYKmJ.mjs';
7
- import '../list-plans-op-qIIJzne_.mjs';
4
+ import '../params-5C7THGzd.mjs';
5
+ import '../plan-Kbxmz27V.mjs';
6
+ import '../customer-VoTRBlpB.mjs';
7
+ import '../list-plans-op-Cj9hlzsX.mjs';
@@ -1,7 +1,7 @@
1
1
  export { AutumnClientConfig, createAutumnClient } from './AutumnClient.js';
2
2
  export { AutumnClientError } from './AutumnClientError.js';
3
3
  export { IAutumnClient } from './IAutumnClient.js';
4
- import '../params-DGCHegZ2.js';
5
- import '../plan-Cv3WkiHC.js';
6
- import '../customer-DWsFqhDO.js';
7
- import '../list-plans-op-BpypCKd4.js';
4
+ import '../params-B1og9_ES.js';
5
+ import '../plan-Kbxmz27V.js';
6
+ import '../customer-2LdIXsvH.js';
7
+ import '../list-plans-op-Bv7x0N22.js';
@@ -1,4 +1,4 @@
1
- import { O as OpenEnum, P as Plan, a as Balance } from './plan-Cv3WkiHC.js';
1
+ import { O as OpenEnum, P as Plan, a as Balance } from './plan-Kbxmz27V.js';
2
2
 
3
3
  /**
4
4
  * The environment this customer was created in.
@@ -1,4 +1,4 @@
1
- import { O as OpenEnum, P as Plan, a as Balance } from './plan-Cv3WkiHC.mjs';
1
+ import { O as OpenEnum, P as Plan, a as Balance } from './plan-Kbxmz27V.mjs';
2
2
 
3
3
  /**
4
4
  * The environment this customer was created in.
@@ -7,7 +7,7 @@ export { UseListPlansParams, useListPlans } from './useListPlans.mjs';
7
7
  export { UseReferralsParams, UseReferralsResult, useReferrals } from './useReferrals.mjs';
8
8
  import '@tanstack/react-query';
9
9
  import '../client/AutumnClientError.mjs';
10
- import '../params-C-0Z0NXW.mjs';
11
- import '../plan-Cv3WkiHC.mjs';
12
- import '../customer-DUVEYKmJ.mjs';
13
- import '../list-plans-op-qIIJzne_.mjs';
10
+ import '../params-5C7THGzd.mjs';
11
+ import '../plan-Kbxmz27V.mjs';
12
+ import '../customer-VoTRBlpB.mjs';
13
+ import '../list-plans-op-Cj9hlzsX.mjs';
@@ -7,7 +7,7 @@ export { UseListPlansParams, useListPlans } from './useListPlans.js';
7
7
  export { UseReferralsParams, UseReferralsResult, useReferrals } from './useReferrals.js';
8
8
  import '@tanstack/react-query';
9
9
  import '../client/AutumnClientError.js';
10
- import '../params-DGCHegZ2.js';
11
- import '../plan-Cv3WkiHC.js';
12
- import '../customer-DWsFqhDO.js';
13
- import '../list-plans-op-BpypCKd4.js';
10
+ import '../params-B1og9_ES.js';
11
+ import '../plan-Kbxmz27V.js';
12
+ import '../customer-2LdIXsvH.js';
13
+ import '../list-plans-op-Bv7x0N22.js';
@@ -1,5 +1,5 @@
1
- import { C as Customer } from '../../../customer-DUVEYKmJ.mjs';
2
- import '../../../plan-Cv3WkiHC.mjs';
1
+ import { C as Customer } from '../../../customer-VoTRBlpB.mjs';
2
+ import '../../../plan-Kbxmz27V.mjs';
3
3
 
4
4
  type CustomerBalance = Customer["balances"][string];
5
5
  type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
@@ -1,5 +1,5 @@
1
- import { C as Customer } from '../../../customer-DWsFqhDO.js';
2
- import '../../../plan-Cv3WkiHC.js';
1
+ import { C as Customer } from '../../../customer-2LdIXsvH.js';
2
+ import '../../../plan-Kbxmz27V.js';
3
3
 
4
4
  type CustomerBalance = Customer["balances"][string];
5
5
  type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
@@ -1,5 +1,5 @@
1
- import { C as Customer } from '../../../customer-DUVEYKmJ.mjs';
2
- import '../../../plan-Cv3WkiHC.mjs';
1
+ import { C as Customer } from '../../../customer-VoTRBlpB.mjs';
2
+ import '../../../plan-Kbxmz27V.mjs';
3
3
 
4
4
  type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
5
5
  declare const customerToFeatures: ({ customer, }: {
@@ -1,5 +1,5 @@
1
- import { C as Customer } from '../../../customer-DWsFqhDO.js';
2
- import '../../../plan-Cv3WkiHC.js';
1
+ import { C as Customer } from '../../../customer-2LdIXsvH.js';
2
+ import '../../../plan-Kbxmz27V.js';
3
3
 
4
4
  type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
5
5
  declare const customerToFeatures: ({ customer, }: {
@@ -1,5 +1,5 @@
1
- import { B as BalanceFeature } from '../../../plan-Cv3WkiHC.mjs';
2
- import { C as Customer } from '../../../customer-DUVEYKmJ.mjs';
1
+ import { B as BalanceFeature } from '../../../plan-Kbxmz27V.mjs';
2
+ import { C as Customer } from '../../../customer-VoTRBlpB.mjs';
3
3
 
4
4
  type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
5
5
  declare const findCreditSystemsByFeature: ({ featureId, features, }: {
@@ -1,5 +1,5 @@
1
- import { B as BalanceFeature } from '../../../plan-Cv3WkiHC.js';
2
- import { C as Customer } from '../../../customer-DWsFqhDO.js';
1
+ import { B as BalanceFeature } from '../../../plan-Kbxmz27V.js';
2
+ import { C as Customer } from '../../../customer-2LdIXsvH.js';
3
3
 
4
4
  type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
5
5
  declare const findCreditSystemsByFeature: ({ featureId, features, }: {
@@ -1,5 +1,5 @@
1
- import { C as Customer } from '../../../customer-DUVEYKmJ.mjs';
2
- import '../../../plan-Cv3WkiHC.mjs';
1
+ import { C as Customer } from '../../../customer-VoTRBlpB.mjs';
2
+ import '../../../plan-Kbxmz27V.mjs';
3
3
 
4
4
  type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
5
5
  declare const getCreditCost: ({ featureId, creditSystem, amount, }: {
@@ -1,5 +1,5 @@
1
- import { C as Customer } from '../../../customer-DWsFqhDO.js';
2
- import '../../../plan-Cv3WkiHC.js';
1
+ import { C as Customer } from '../../../customer-2LdIXsvH.js';
2
+ import '../../../plan-Kbxmz27V.js';
3
3
 
4
4
  type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
5
5
  declare const getCreditCost: ({ featureId, creditSystem, amount, }: {
@@ -1,6 +1,6 @@
1
- import { n as ClientCheckParams, o as CheckResponse } from '../../params-C-0Z0NXW.mjs';
2
- import { C as Customer } from '../../customer-DUVEYKmJ.mjs';
3
- import '../../plan-Cv3WkiHC.mjs';
1
+ import { n as ClientCheckParams, o as CheckResponse } from '../../params-5C7THGzd.mjs';
2
+ import { C as Customer } from '../../customer-VoTRBlpB.mjs';
3
+ import '../../plan-Kbxmz27V.mjs';
4
4
 
5
5
  declare const getLocalCheckResponse: ({ customer, params, }: {
6
6
  customer: Customer | null;
@@ -1,6 +1,6 @@
1
- import { n as ClientCheckParams, o as CheckResponse } from '../../params-DGCHegZ2.js';
2
- import { C as Customer } from '../../customer-DWsFqhDO.js';
3
- import '../../plan-Cv3WkiHC.js';
1
+ import { n as ClientCheckParams, o as CheckResponse } from '../../params-B1og9_ES.js';
2
+ import { C as Customer } from '../../customer-2LdIXsvH.js';
3
+ import '../../plan-Kbxmz27V.js';
4
4
 
5
5
  declare const getLocalCheckResponse: ({ customer, params, }: {
6
6
  customer: Customer | null;
@@ -1,8 +1,8 @@
1
- import { a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, n as ClientCheckParams, o as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-C-0Z0NXW.mjs';
2
- import { C as Customer } from '../../customer-DUVEYKmJ.mjs';
1
+ import { a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, n as ClientCheckParams, o as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-5C7THGzd.mjs';
2
+ import { C as Customer } from '../../customer-VoTRBlpB.mjs';
3
3
  import { IAutumnClient } from '../../client/IAutumnClient.mjs';
4
- import '../../plan-Cv3WkiHC.mjs';
5
- import '../../list-plans-op-qIIJzne_.mjs';
4
+ import '../../plan-Kbxmz27V.mjs';
5
+ import '../../list-plans-op-Cj9hlzsX.mjs';
6
6
 
7
7
  declare const useCustomerActions: ({ client, customer, }: {
8
8
  client: IAutumnClient;
@@ -1,8 +1,8 @@
1
- import { a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, n as ClientCheckParams, o as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-DGCHegZ2.js';
2
- import { C as Customer } from '../../customer-DWsFqhDO.js';
1
+ import { a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, n as ClientCheckParams, o as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-B1og9_ES.js';
2
+ import { C as Customer } from '../../customer-2LdIXsvH.js';
3
3
  import { IAutumnClient } from '../../client/IAutumnClient.js';
4
- import '../../plan-Cv3WkiHC.js';
5
- import '../../list-plans-op-BpypCKd4.js';
4
+ import '../../plan-Kbxmz27V.js';
5
+ import '../../list-plans-op-Bv7x0N22.js';
6
6
 
7
7
  declare const useCustomerActions: ({ client, customer, }: {
8
8
  client: IAutumnClient;
@@ -1,8 +1,8 @@
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-C-0Z0NXW.mjs';
2
+ import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-5C7THGzd.mjs';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.mjs';
4
4
  import { HookParams } from './types.mjs';
5
- import '../plan-Cv3WkiHC.mjs';
5
+ import '../plan-Kbxmz27V.mjs';
6
6
 
7
7
  type UseAggregateEventsParams = HookParams<ClientAggregateEventsParams, AggregateEventsResponse>;
8
8
  declare const useAggregateEvents: (params: UseAggregateEventsParams) => {
@@ -1,8 +1,8 @@
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-DGCHegZ2.js';
2
+ import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-B1og9_ES.js';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.js';
4
4
  import { HookParams } from './types.js';
5
- import '../plan-Cv3WkiHC.js';
5
+ import '../plan-Kbxmz27V.js';
6
6
 
7
7
  type UseAggregateEventsParams = HookParams<ClientAggregateEventsParams, AggregateEventsResponse>;
8
8
  declare const useAggregateEvents: (params: UseAggregateEventsParams) => {
@@ -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-C-0Z0NXW.mjs';
2
- import { C as Customer } from '../customer-DUVEYKmJ.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-5C7THGzd.mjs';
2
+ import { C as Customer } from '../customer-VoTRBlpB.mjs';
3
3
  import { HookParams, HookResultWithMethods } from './types.mjs';
4
- import '../plan-Cv3WkiHC.mjs';
4
+ import '../plan-Kbxmz27V.mjs';
5
5
  import '@tanstack/react-query';
6
6
  import '../client/AutumnClientError.mjs';
7
7
 
@@ -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-DGCHegZ2.js';
2
- import { C as Customer } from '../customer-DWsFqhDO.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-B1og9_ES.js';
2
+ import { C as Customer } from '../customer-2LdIXsvH.js';
3
3
  import { HookParams, HookResultWithMethods } from './types.js';
4
- import '../plan-Cv3WkiHC.js';
4
+ import '../plan-Kbxmz27V.js';
5
5
  import '@tanstack/react-query';
6
6
  import '../client/AutumnClientError.js';
7
7
 
@@ -1,6 +1,6 @@
1
- import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-C-0Z0NXW.mjs';
1
+ import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-5C7THGzd.mjs';
2
2
  import { HookParams, HookResult } from './types.mjs';
3
- import '../plan-Cv3WkiHC.mjs';
3
+ import '../plan-Kbxmz27V.mjs';
4
4
  import '@tanstack/react-query';
5
5
  import '../client/AutumnClientError.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
- import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-DGCHegZ2.js';
1
+ import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-B1og9_ES.js';
2
2
  import { HookParams, HookResult } from './types.js';
3
- import '../plan-Cv3WkiHC.js';
3
+ import '../plan-Kbxmz27V.js';
4
4
  import '@tanstack/react-query';
5
5
  import '../client/AutumnClientError.js';
6
6
 
@@ -1,8 +1,8 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-C-0Z0NXW.mjs';
2
+ import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-5C7THGzd.mjs';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.mjs';
4
4
  import { HookParams } from './types.mjs';
5
- import '../plan-Cv3WkiHC.mjs';
5
+ import '../plan-Kbxmz27V.mjs';
6
6
 
7
7
  type UseListEventsParams = HookParams<ClientListEventsParams, ListEventsResponse>;
8
8
  declare const useListEvents: (params?: UseListEventsParams) => {
@@ -1,8 +1,8 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-DGCHegZ2.js';
2
+ import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-B1og9_ES.js';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.js';
4
4
  import { HookParams } from './types.js';
5
- import '../plan-Cv3WkiHC.js';
5
+ import '../plan-Kbxmz27V.js';
6
6
 
7
7
  type UseListEventsParams = HookParams<ClientListEventsParams, ListEventsResponse>;
8
8
  declare const useListEvents: (params?: UseListEventsParams) => {
@@ -1,9 +1,9 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { a as ListPlansList } from '../list-plans-op-qIIJzne_.mjs';
3
- import { t as ClientListPlansParams } from '../params-C-0Z0NXW.mjs';
2
+ import { a as ListPlansList } from '../list-plans-op-Cj9hlzsX.mjs';
3
+ import { t as ClientListPlansParams } from '../params-5C7THGzd.mjs';
4
4
  import { AutumnClientError } from '../client/AutumnClientError.mjs';
5
5
  import { HookParams } from './types.mjs';
6
- import '../plan-Cv3WkiHC.mjs';
6
+ import '../plan-Kbxmz27V.mjs';
7
7
 
8
8
  type UseListPlansParams = HookParams<ClientListPlansParams, ListPlansList[]>;
9
9
  declare const useListPlans: (params?: UseListPlansParams) => _tanstack_react_query.UseQueryResult<NoInfer<ListPlansList[]>, AutumnClientError>;
@@ -1,9 +1,9 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { a as ListPlansList } from '../list-plans-op-BpypCKd4.js';
3
- import { t as ClientListPlansParams } from '../params-DGCHegZ2.js';
2
+ import { a as ListPlansList } from '../list-plans-op-Bv7x0N22.js';
3
+ import { t as ClientListPlansParams } from '../params-B1og9_ES.js';
4
4
  import { AutumnClientError } from '../client/AutumnClientError.js';
5
5
  import { HookParams } from './types.js';
6
- import '../plan-Cv3WkiHC.js';
6
+ import '../plan-Kbxmz27V.js';
7
7
 
8
8
  type UseListPlansParams = HookParams<ClientListPlansParams, ListPlansList[]>;
9
9
  declare const useListPlans: (params?: UseListPlansParams) => _tanstack_react_query.UseQueryResult<NoInfer<ListPlansList[]>, AutumnClientError>;
@@ -1,6 +1,6 @@
1
- import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-C-0Z0NXW.mjs';
1
+ import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-5C7THGzd.mjs';
2
2
  import { HookParams, HookResultWithMethods } from './types.mjs';
3
- import '../plan-Cv3WkiHC.mjs';
3
+ import '../plan-Kbxmz27V.mjs';
4
4
  import '@tanstack/react-query';
5
5
  import '../client/AutumnClientError.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
- import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-DGCHegZ2.js';
1
+ import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-B1og9_ES.js';
2
2
  import { HookParams, HookResultWithMethods } from './types.js';
3
- import '../plan-Cv3WkiHC.js';
3
+ import '../plan-Kbxmz27V.js';
4
4
  import '@tanstack/react-query';
5
5
  import '../client/AutumnClientError.js';
6
6
 
@@ -1,4 +1,4 @@
1
- export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-C-0Z0NXW.mjs';
1
+ export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-5C7THGzd.mjs';
2
2
  export { useAutumnClient } from './AutumnContext.mjs';
3
3
  export { AutumnProvider, AutumnProviderProps } from './AutumnProvider.mjs';
4
4
  export { AutumnClientConfig, createAutumnClient } from './client/AutumnClient.mjs';
@@ -10,9 +10,9 @@ export { UseEntityParams, UseEntityResult, useEntity } from './hooks/useEntity.m
10
10
  export { UseListEventsParams, useListEvents } from './hooks/useListEvents.mjs';
11
11
  export { UseListPlansParams, useListPlans } from './hooks/useListPlans.mjs';
12
12
  export { UseReferralsParams, UseReferralsResult, useReferrals } from './hooks/useReferrals.mjs';
13
- import './plan-Cv3WkiHC.mjs';
13
+ import './plan-Kbxmz27V.mjs';
14
14
  import 'react';
15
- import './customer-DUVEYKmJ.mjs';
16
- import './list-plans-op-qIIJzne_.mjs';
15
+ import './customer-VoTRBlpB.mjs';
16
+ import './list-plans-op-Cj9hlzsX.mjs';
17
17
  import '@tanstack/react-query';
18
18
  import './hooks/types.mjs';
@@ -1,4 +1,4 @@
1
- export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-DGCHegZ2.js';
1
+ export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-B1og9_ES.js';
2
2
  export { useAutumnClient } from './AutumnContext.js';
3
3
  export { AutumnProvider, AutumnProviderProps } from './AutumnProvider.js';
4
4
  export { AutumnClientConfig, createAutumnClient } from './client/AutumnClient.js';
@@ -10,9 +10,9 @@ export { UseEntityParams, UseEntityResult, useEntity } from './hooks/useEntity.j
10
10
  export { UseListEventsParams, useListEvents } from './hooks/useListEvents.js';
11
11
  export { UseListPlansParams, useListPlans } from './hooks/useListPlans.js';
12
12
  export { UseReferralsParams, UseReferralsResult, useReferrals } from './hooks/useReferrals.js';
13
- import './plan-Cv3WkiHC.js';
13
+ import './plan-Kbxmz27V.js';
14
14
  import 'react';
15
- import './customer-DWsFqhDO.js';
16
- import './list-plans-op-BpypCKd4.js';
15
+ import './customer-2LdIXsvH.js';
16
+ import './list-plans-op-Bv7x0N22.js';
17
17
  import '@tanstack/react-query';
18
18
  import './hooks/types.js';
@@ -1,4 +1,4 @@
1
- import { O as OpenEnum } from './plan-Cv3WkiHC.js';
1
+ import { O as OpenEnum } from './plan-Kbxmz27V.js';
2
2
 
3
3
  type ListPlansAdditionalCurrency = {
4
4
  /**
@@ -754,7 +754,7 @@ declare const ListPlansVariantDetailsPurchaseLimitInterval: {
754
754
  */
755
755
  type ListPlansVariantDetailsPurchaseLimitInterval = OpenEnum<typeof ListPlansVariantDetailsPurchaseLimitInterval>;
756
756
  /**
757
- * Optional rate limit to cap how often auto top-ups occur.
757
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
758
758
  */
759
759
  type ListPlansVariantDetailsPurchaseLimit = {
760
760
  /**
@@ -769,6 +769,10 @@ type ListPlansVariantDetailsPurchaseLimit = {
769
769
  * Maximum number of auto top-ups allowed within the interval.
770
770
  */
771
771
  limit: number;
772
+ /**
773
+ * Set the current window's consumed auto top-up count. Omit to leave runtime state unchanged.
774
+ */
775
+ count?: number | undefined;
772
776
  };
773
777
  type ListPlansVariantDetailsAutoTopup = {
774
778
  /**
@@ -788,7 +792,7 @@ type ListPlansVariantDetailsAutoTopup = {
788
792
  */
789
793
  quantity: number;
790
794
  /**
791
- * Optional rate limit to cap how often auto top-ups occur.
795
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
792
796
  */
793
797
  purchaseLimit?: ListPlansVariantDetailsPurchaseLimit | undefined;
794
798
  /**
@@ -1,4 +1,4 @@
1
- import { O as OpenEnum } from './plan-Cv3WkiHC.mjs';
1
+ import { O as OpenEnum } from './plan-Kbxmz27V.mjs';
2
2
 
3
3
  type ListPlansAdditionalCurrency = {
4
4
  /**
@@ -754,7 +754,7 @@ declare const ListPlansVariantDetailsPurchaseLimitInterval: {
754
754
  */
755
755
  type ListPlansVariantDetailsPurchaseLimitInterval = OpenEnum<typeof ListPlansVariantDetailsPurchaseLimitInterval>;
756
756
  /**
757
- * Optional rate limit to cap how often auto top-ups occur.
757
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
758
758
  */
759
759
  type ListPlansVariantDetailsPurchaseLimit = {
760
760
  /**
@@ -769,6 +769,10 @@ type ListPlansVariantDetailsPurchaseLimit = {
769
769
  * Maximum number of auto top-ups allowed within the interval.
770
770
  */
771
771
  limit: number;
772
+ /**
773
+ * Set the current window's consumed auto top-up count. Omit to leave runtime state unchanged.
774
+ */
775
+ count?: number | undefined;
772
776
  };
773
777
  type ListPlansVariantDetailsAutoTopup = {
774
778
  /**
@@ -788,7 +792,7 @@ type ListPlansVariantDetailsAutoTopup = {
788
792
  */
789
793
  quantity: number;
790
794
  /**
791
- * Optional rate limit to cap how often auto top-ups occur.
795
+ * Optional rate limit to cap how often auto top-ups occur. Pass count to set the current window's consumed top-ups.
792
796
  */
793
797
  purchaseLimit?: ListPlansVariantDetailsPurchaseLimit | undefined;
794
798
  /**