autumn-js 1.2.13 → 1.2.15

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 (126) hide show
  1. package/dist/backend/adapters/express.js +623 -108
  2. package/dist/backend/adapters/express.mjs +8 -8
  3. package/dist/backend/adapters/fetch.js +623 -108
  4. package/dist/backend/adapters/fetch.mjs +8 -8
  5. package/dist/backend/adapters/hono.js +623 -108
  6. package/dist/backend/adapters/hono.mjs +8 -8
  7. package/dist/backend/adapters/index.js +623 -108
  8. package/dist/backend/adapters/index.mjs +11 -11
  9. package/dist/backend/adapters/next.js +623 -108
  10. package/dist/backend/adapters/next.mjs +8 -8
  11. package/dist/backend/{chunk-DNNJOZAT.mjs → chunk-BQVZ6GCE.mjs} +1 -1
  12. package/dist/backend/{chunk-YSQQKZBU.mjs → chunk-IEOQUAJY.mjs} +7 -7
  13. package/dist/backend/{chunk-MANTLPDT.mjs → chunk-IQS3LQVP.mjs} +36 -8
  14. package/dist/backend/{chunk-7BVATYGA.mjs → chunk-NDB3VKT4.mjs} +1 -1
  15. package/dist/backend/{chunk-RPH5L44S.mjs → chunk-NRTK5YZK.mjs} +1 -1
  16. package/dist/backend/{chunk-T42RZEUZ.mjs → chunk-OXCQHLZX.mjs} +587 -100
  17. package/dist/backend/{chunk-EJGHP7KT.mjs → chunk-RSIOYTRW.mjs} +5 -5
  18. package/dist/backend/{chunk-OUDB34Y7.mjs → chunk-X7LDYBKC.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 +623 -108
  22. package/dist/backend/core/handlers/coreHandler.mjs +6 -6
  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 +3 -3
  26. package/dist/backend/core/handlers/handleRouteByName.js +623 -108
  27. package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
  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 +623 -108
  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 +623 -108
  35. package/dist/backend/core/index.mjs +7 -7
  36. package/dist/backend/core/routes/index.d.mts +1 -1
  37. package/dist/backend/core/routes/index.d.ts +1 -1
  38. package/dist/backend/core/routes/index.js +36 -8
  39. package/dist/backend/core/routes/index.mjs +1 -1
  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 +36 -8
  45. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  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/index.d.mts +2 -2
  53. package/dist/backend/index.d.ts +2 -2
  54. package/dist/backend/index.js +623 -108
  55. package/dist/backend/index.mjs +7 -7
  56. package/dist/backend/{routeTypes-DVwngaBn.d.mts → routeTypes-CIspXIZ4.d.mts} +841 -169
  57. package/dist/backend/{routeTypes-B94_Mq2J.d.ts → routeTypes-COwIJFNS.d.ts} +841 -169
  58. package/dist/better-auth/{chunk-4OWECHZC.mjs → chunk-L6XX4ONM.mjs} +1 -1
  59. package/dist/better-auth/{chunk-ZZGFPTHO.mjs → chunk-QT6R3AXQ.mjs} +588 -101
  60. package/dist/better-auth/{chunk-JIFD4TSN.mjs → chunk-ZO3KGM5W.mjs} +36 -8
  61. package/dist/better-auth/client.d.mts +2 -4
  62. package/dist/better-auth/client.d.ts +2 -4
  63. package/dist/better-auth/{createAutumnEndpoint-CvXRCg-M.d.ts → createAutumnEndpoint-Clm1sxhQ.d.mts} +4 -8
  64. package/dist/better-auth/{createAutumnEndpoint-CvXRCg-M.d.mts → createAutumnEndpoint-Clm1sxhQ.d.ts} +4 -8
  65. package/dist/better-auth/index.d.mts +2 -4
  66. package/dist/better-auth/index.d.ts +2 -4
  67. package/dist/better-auth/index.js +623 -108
  68. package/dist/better-auth/index.mjs +3 -3
  69. package/dist/better-auth/utils/createAutumnEndpoint.d.mts +2 -4
  70. package/dist/better-auth/utils/createAutumnEndpoint.d.ts +2 -4
  71. package/dist/better-auth/utils/createAutumnEndpoint.js +36 -8
  72. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  73. package/dist/better-auth/utils/handleBetterAuthRoute.d.mts +2 -4
  74. package/dist/better-auth/utils/handleBetterAuthRoute.d.ts +2 -4
  75. package/dist/better-auth/utils/handleBetterAuthRoute.js +623 -108
  76. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  77. package/dist/better-auth/utils/index.d.mts +3 -4
  78. package/dist/better-auth/utils/index.d.ts +3 -4
  79. package/dist/better-auth/utils/index.js +623 -108
  80. package/dist/better-auth/utils/index.mjs +3 -3
  81. package/dist/react/AutumnContext.d.mts +2 -2
  82. package/dist/react/AutumnContext.d.ts +2 -2
  83. package/dist/react/client/AutumnClient.d.mts +2 -2
  84. package/dist/react/client/AutumnClient.d.ts +2 -2
  85. package/dist/react/client/IAutumnClient.d.mts +2 -2
  86. package/dist/react/client/IAutumnClient.d.ts +2 -2
  87. package/dist/react/client/index.d.mts +2 -2
  88. package/dist/react/client/index.d.ts +2 -2
  89. package/dist/react/{customer-DB8vL_m7.d.mts → customer-BDxW2bu6.d.mts} +35 -9
  90. package/dist/react/{customer-CaGJEN5J.d.ts → customer-BPUObmME.d.ts} +35 -9
  91. package/dist/react/hooks/index.d.mts +2 -2
  92. package/dist/react/hooks/index.d.ts +2 -2
  93. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
  94. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
  95. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
  96. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
  97. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
  98. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
  99. package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
  100. package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
  101. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +2 -2
  102. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +2 -2
  103. package/dist/react/hooks/internal/useCustomerActions.d.mts +2 -2
  104. package/dist/react/hooks/internal/useCustomerActions.d.ts +2 -2
  105. package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
  106. package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
  107. package/dist/react/hooks/useCustomer.d.mts +2 -2
  108. package/dist/react/hooks/useCustomer.d.ts +2 -2
  109. package/dist/react/hooks/useEntity.d.mts +1 -1
  110. package/dist/react/hooks/useEntity.d.ts +1 -1
  111. package/dist/react/hooks/useListEvents.d.mts +1 -1
  112. package/dist/react/hooks/useListEvents.d.ts +1 -1
  113. package/dist/react/hooks/useListPlans.d.mts +1 -1
  114. package/dist/react/hooks/useListPlans.d.ts +1 -1
  115. package/dist/react/hooks/useReferrals.d.mts +1 -1
  116. package/dist/react/hooks/useReferrals.d.ts +1 -1
  117. package/dist/react/index.d.mts +2 -2
  118. package/dist/react/index.d.ts +2 -2
  119. package/dist/react/{params-B5l9vHfZ.d.ts → params-D4cEukOJ.d.ts} +615 -64
  120. package/dist/react/{params-BVglT8vT.d.mts → params-DzbSUS8O.d.mts} +615 -64
  121. package/dist/sdk/index.d.mts +980 -173
  122. package/dist/sdk/index.d.ts +980 -173
  123. package/dist/sdk/index.js +978 -212
  124. package/dist/sdk/index.mjs +825 -149
  125. package/package.json +1 -1
  126. package/dist/backend/{chunk-S5HPMJ4U.mjs → chunk-55C2WWXQ.mjs} +3 -3
@@ -1,14 +1,14 @@
1
1
  import "../chunk-HIWOK3G6.mjs";
2
2
  import {
3
3
  createAutumnEndpoint
4
- } from "../chunk-4OWECHZC.mjs";
4
+ } from "../chunk-L6XX4ONM.mjs";
5
5
  import {
6
6
  createHandleBetterAuthRoute
7
- } from "../chunk-ZZGFPTHO.mjs";
7
+ } from "../chunk-QT6R3AXQ.mjs";
8
8
  import {
9
9
  resolveIdentityFromScope
10
10
  } from "../chunk-J2WYVGHS.mjs";
11
- import "../chunk-JIFD4TSN.mjs";
11
+ import "../chunk-ZO3KGM5W.mjs";
12
12
  import {
13
13
  getActiveOrganization
14
14
  } from "../chunk-BT3EAYVW.mjs";
@@ -1,8 +1,8 @@
1
1
  import * as react from 'react';
2
2
  import { IAutumnClient } from './client/IAutumnClient.mjs';
3
- import './params-BVglT8vT.mjs';
3
+ import './params-DzbSUS8O.mjs';
4
4
  import './plan-DSTBzzTY.mjs';
5
- import './customer-DB8vL_m7.mjs';
5
+ import './customer-BDxW2bu6.mjs';
6
6
 
7
7
  type AutumnContextValue = {
8
8
  client: IAutumnClient;
@@ -1,8 +1,8 @@
1
1
  import * as react from 'react';
2
2
  import { IAutumnClient } from './client/IAutumnClient.js';
3
- import './params-B5l9vHfZ.js';
3
+ import './params-D4cEukOJ.js';
4
4
  import './plan-DSTBzzTY.js';
5
- import './customer-CaGJEN5J.js';
5
+ import './customer-BPUObmME.js';
6
6
 
7
7
  type AutumnContextValue = {
8
8
  client: IAutumnClient;
@@ -1,7 +1,7 @@
1
1
  import { IAutumnClient } from './IAutumnClient.mjs';
2
- import '../params-BVglT8vT.mjs';
2
+ import '../params-DzbSUS8O.mjs';
3
3
  import '../plan-DSTBzzTY.mjs';
4
- import '../customer-DB8vL_m7.mjs';
4
+ import '../customer-BDxW2bu6.mjs';
5
5
 
6
6
  /** Configuration for Autumn client */
7
7
  type AutumnClientConfig = {
@@ -1,7 +1,7 @@
1
1
  import { IAutumnClient } from './IAutumnClient.js';
2
- import '../params-B5l9vHfZ.js';
2
+ import '../params-D4cEukOJ.js';
3
3
  import '../plan-DSTBzzTY.js';
4
- import '../customer-CaGJEN5J.js';
4
+ import '../customer-BPUObmME.js';
5
5
 
6
6
  /** Configuration for Autumn client */
7
7
  type AutumnClientConfig = {
@@ -1,5 +1,5 @@
1
- import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, v as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, A as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-BVglT8vT.mjs';
2
- import { C as Customer } from '../customer-DB8vL_m7.mjs';
1
+ import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, v as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, A as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-DzbSUS8O.mjs';
2
+ import { C as Customer } from '../customer-BDxW2bu6.mjs';
3
3
  import { O as OpenEnum } from '../plan-DSTBzzTY.mjs';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, v as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, A as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-B5l9vHfZ.js';
2
- import { C as Customer } from '../customer-CaGJEN5J.js';
1
+ import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, v as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, A as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-D4cEukOJ.js';
2
+ import { C as Customer } from '../customer-BPUObmME.js';
3
3
  import { O as OpenEnum } from '../plan-DSTBzzTY.js';
4
4
 
5
5
  /**
@@ -1,6 +1,6 @@
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-BVglT8vT.mjs';
4
+ import '../params-DzbSUS8O.mjs';
5
5
  import '../plan-DSTBzzTY.mjs';
6
- import '../customer-DB8vL_m7.mjs';
6
+ import '../customer-BDxW2bu6.mjs';
@@ -1,6 +1,6 @@
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-B5l9vHfZ.js';
4
+ import '../params-D4cEukOJ.js';
5
5
  import '../plan-DSTBzzTY.js';
6
- import '../customer-CaGJEN5J.js';
6
+ import '../customer-BPUObmME.js';
@@ -11,10 +11,39 @@ declare const CustomerEnv: {
11
11
  * The environment this customer was created in.
12
12
  */
13
13
  type CustomerEnv = OpenEnum<typeof CustomerEnv>;
14
+ declare const CustomerInterval2: {
15
+ readonly Hour: "hour";
16
+ readonly Day: "day";
17
+ readonly Week: "week";
18
+ readonly Month: "month";
19
+ };
20
+ type CustomerInterval2 = OpenEnum<typeof CustomerInterval2>;
21
+ type CustomerPurchaseLimit2 = {
22
+ /**
23
+ * The time interval for the purchase limit window. Null when no purchase limit is configured.
24
+ */
25
+ interval: CustomerInterval2 | null;
26
+ /**
27
+ * Number of intervals in the purchase limit window. Null when no purchase limit is configured.
28
+ */
29
+ intervalCount: number | null;
30
+ /**
31
+ * Maximum number of auto top-ups allowed within the interval. Null when no purchase limit is configured.
32
+ */
33
+ limit: number | null;
34
+ /**
35
+ * Number of auto top-ups already consumed in the current window.
36
+ */
37
+ count: number;
38
+ /**
39
+ * Unix ms timestamp when the current purchase window ends and the count resets.
40
+ */
41
+ nextResetAt: number;
42
+ };
14
43
  /**
15
44
  * The time interval for the purchase limit window.
16
45
  */
17
- declare const CustomerInterval: {
46
+ declare const CustomerInterval1: {
18
47
  readonly Hour: "hour";
19
48
  readonly Day: "day";
20
49
  readonly Week: "week";
@@ -23,15 +52,12 @@ declare const CustomerInterval: {
23
52
  /**
24
53
  * The time interval for the purchase limit window.
25
54
  */
26
- type CustomerInterval = OpenEnum<typeof CustomerInterval>;
27
- /**
28
- * Optional rate limit to cap how often auto top-ups occur.
29
- */
30
- type CustomerPurchaseLimit = {
55
+ type CustomerInterval1 = OpenEnum<typeof CustomerInterval1>;
56
+ type CustomerPurchaseLimit1 = {
31
57
  /**
32
58
  * The time interval for the purchase limit window.
33
59
  */
34
- interval: CustomerInterval;
60
+ interval: CustomerInterval1;
35
61
  /**
36
62
  * Number of intervals in the purchase limit window.
37
63
  */
@@ -59,9 +85,9 @@ type CustomerAutoTopup = {
59
85
  */
60
86
  quantity: number;
61
87
  /**
62
- * Optional rate limit to cap how often auto top-ups occur.
88
+ * Optional rate limit to cap how often auto top-ups occur. Expand billing_controls.auto_topups.purchase_limit for a count of top ups and the next_reset_at.
63
89
  */
64
- purchaseLimit?: CustomerPurchaseLimit | undefined;
90
+ purchaseLimit?: CustomerPurchaseLimit2 | CustomerPurchaseLimit1 | undefined;
65
91
  /**
66
92
  * When true, auto top-up creates a send_invoice invoice instead of auto-charging.
67
93
  */
@@ -11,10 +11,39 @@ declare const CustomerEnv: {
11
11
  * The environment this customer was created in.
12
12
  */
13
13
  type CustomerEnv = OpenEnum<typeof CustomerEnv>;
14
+ declare const CustomerInterval2: {
15
+ readonly Hour: "hour";
16
+ readonly Day: "day";
17
+ readonly Week: "week";
18
+ readonly Month: "month";
19
+ };
20
+ type CustomerInterval2 = OpenEnum<typeof CustomerInterval2>;
21
+ type CustomerPurchaseLimit2 = {
22
+ /**
23
+ * The time interval for the purchase limit window. Null when no purchase limit is configured.
24
+ */
25
+ interval: CustomerInterval2 | null;
26
+ /**
27
+ * Number of intervals in the purchase limit window. Null when no purchase limit is configured.
28
+ */
29
+ intervalCount: number | null;
30
+ /**
31
+ * Maximum number of auto top-ups allowed within the interval. Null when no purchase limit is configured.
32
+ */
33
+ limit: number | null;
34
+ /**
35
+ * Number of auto top-ups already consumed in the current window.
36
+ */
37
+ count: number;
38
+ /**
39
+ * Unix ms timestamp when the current purchase window ends and the count resets.
40
+ */
41
+ nextResetAt: number;
42
+ };
14
43
  /**
15
44
  * The time interval for the purchase limit window.
16
45
  */
17
- declare const CustomerInterval: {
46
+ declare const CustomerInterval1: {
18
47
  readonly Hour: "hour";
19
48
  readonly Day: "day";
20
49
  readonly Week: "week";
@@ -23,15 +52,12 @@ declare const CustomerInterval: {
23
52
  /**
24
53
  * The time interval for the purchase limit window.
25
54
  */
26
- type CustomerInterval = OpenEnum<typeof CustomerInterval>;
27
- /**
28
- * Optional rate limit to cap how often auto top-ups occur.
29
- */
30
- type CustomerPurchaseLimit = {
55
+ type CustomerInterval1 = OpenEnum<typeof CustomerInterval1>;
56
+ type CustomerPurchaseLimit1 = {
31
57
  /**
32
58
  * The time interval for the purchase limit window.
33
59
  */
34
- interval: CustomerInterval;
60
+ interval: CustomerInterval1;
35
61
  /**
36
62
  * Number of intervals in the purchase limit window.
37
63
  */
@@ -59,9 +85,9 @@ type CustomerAutoTopup = {
59
85
  */
60
86
  quantity: number;
61
87
  /**
62
- * Optional rate limit to cap how often auto top-ups occur.
88
+ * Optional rate limit to cap how often auto top-ups occur. Expand billing_controls.auto_topups.purchase_limit for a count of top ups and the next_reset_at.
63
89
  */
64
- purchaseLimit?: CustomerPurchaseLimit | undefined;
90
+ purchaseLimit?: CustomerPurchaseLimit2 | CustomerPurchaseLimit1 | undefined;
65
91
  /**
66
92
  * When true, auto top-up creates a send_invoice invoice instead of auto-charging.
67
93
  */
@@ -7,6 +7,6 @@ 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-BVglT8vT.mjs';
10
+ import '../params-DzbSUS8O.mjs';
11
11
  import '../plan-DSTBzzTY.mjs';
12
- import '../customer-DB8vL_m7.mjs';
12
+ import '../customer-BDxW2bu6.mjs';
@@ -7,6 +7,6 @@ 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-B5l9vHfZ.js';
10
+ import '../params-D4cEukOJ.js';
11
11
  import '../plan-DSTBzzTY.js';
12
- import '../customer-CaGJEN5J.js';
12
+ import '../customer-BPUObmME.js';
@@ -1,4 +1,4 @@
1
- import { C as Customer } from '../../../customer-DB8vL_m7.mjs';
1
+ import { C as Customer } from '../../../customer-BDxW2bu6.mjs';
2
2
  import '../../../plan-DSTBzzTY.mjs';
3
3
 
4
4
  type CustomerBalance = Customer["balances"][string];
@@ -1,4 +1,4 @@
1
- import { C as Customer } from '../../../customer-CaGJEN5J.js';
1
+ import { C as Customer } from '../../../customer-BPUObmME.js';
2
2
  import '../../../plan-DSTBzzTY.js';
3
3
 
4
4
  type CustomerBalance = Customer["balances"][string];
@@ -1,4 +1,4 @@
1
- import { C as Customer } from '../../../customer-DB8vL_m7.mjs';
1
+ import { C as Customer } from '../../../customer-BDxW2bu6.mjs';
2
2
  import '../../../plan-DSTBzzTY.mjs';
3
3
 
4
4
  type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
@@ -1,4 +1,4 @@
1
- import { C as Customer } from '../../../customer-CaGJEN5J.js';
1
+ import { C as Customer } from '../../../customer-BPUObmME.js';
2
2
  import '../../../plan-DSTBzzTY.js';
3
3
 
4
4
  type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
@@ -1,5 +1,5 @@
1
1
  import { B as BalanceFeature } from '../../../plan-DSTBzzTY.mjs';
2
- import { C as Customer } from '../../../customer-DB8vL_m7.mjs';
2
+ import { C as Customer } from '../../../customer-BDxW2bu6.mjs';
3
3
 
4
4
  type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
5
5
  declare const findCreditSystemsByFeature: ({ featureId, features, }: {
@@ -1,5 +1,5 @@
1
1
  import { B as BalanceFeature } from '../../../plan-DSTBzzTY.js';
2
- import { C as Customer } from '../../../customer-CaGJEN5J.js';
2
+ import { C as Customer } from '../../../customer-BPUObmME.js';
3
3
 
4
4
  type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
5
5
  declare const findCreditSystemsByFeature: ({ featureId, features, }: {
@@ -1,4 +1,4 @@
1
- import { C as Customer } from '../../../customer-DB8vL_m7.mjs';
1
+ import { C as Customer } from '../../../customer-BDxW2bu6.mjs';
2
2
  import '../../../plan-DSTBzzTY.mjs';
3
3
 
4
4
  type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
@@ -1,4 +1,4 @@
1
- import { C as Customer } from '../../../customer-CaGJEN5J.js';
1
+ import { C as Customer } from '../../../customer-BPUObmME.js';
2
2
  import '../../../plan-DSTBzzTY.js';
3
3
 
4
4
  type CustomerFeature = NonNullable<Customer["balances"][string]["feature"]>;
@@ -1,5 +1,5 @@
1
- import { o as ClientCheckParams, s as CheckResponse } from '../../params-BVglT8vT.mjs';
2
- import { C as Customer } from '../../customer-DB8vL_m7.mjs';
1
+ import { o as ClientCheckParams, s as CheckResponse } from '../../params-DzbSUS8O.mjs';
2
+ import { C as Customer } from '../../customer-BDxW2bu6.mjs';
3
3
  import '../../plan-DSTBzzTY.mjs';
4
4
 
5
5
  declare const getLocalCheckResponse: ({ customer, params, }: {
@@ -1,5 +1,5 @@
1
- import { o as ClientCheckParams, s as CheckResponse } from '../../params-B5l9vHfZ.js';
2
- import { C as Customer } from '../../customer-CaGJEN5J.js';
1
+ import { o as ClientCheckParams, s as CheckResponse } from '../../params-D4cEukOJ.js';
2
+ import { C as Customer } from '../../customer-BPUObmME.js';
3
3
  import '../../plan-DSTBzzTY.js';
4
4
 
5
5
  declare const getLocalCheckResponse: ({ customer, params, }: {
@@ -1,5 +1,5 @@
1
- import { a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, o as ClientCheckParams, s as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-BVglT8vT.mjs';
2
- import { C as Customer } from '../../customer-DB8vL_m7.mjs';
1
+ import { a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, o as ClientCheckParams, s as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-DzbSUS8O.mjs';
2
+ import { C as Customer } from '../../customer-BDxW2bu6.mjs';
3
3
  import { IAutumnClient } from '../../client/IAutumnClient.mjs';
4
4
  import '../../plan-DSTBzzTY.mjs';
5
5
 
@@ -1,5 +1,5 @@
1
- import { a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, o as ClientCheckParams, s as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-B5l9vHfZ.js';
2
- import { C as Customer } from '../../customer-CaGJEN5J.js';
1
+ import { a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, o as ClientCheckParams, s as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-D4cEukOJ.js';
2
+ import { C as Customer } from '../../customer-BPUObmME.js';
3
3
  import { IAutumnClient } from '../../client/IAutumnClient.js';
4
4
  import '../../plan-DSTBzzTY.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { C as ClientAggregateEventsParams, A as AggregateEventsResponse, n as AggregateEventsList, T as Total } from '../params-BVglT8vT.mjs';
2
+ import { C as ClientAggregateEventsParams, A as AggregateEventsResponse, n as AggregateEventsList, T as Total } from '../params-DzbSUS8O.mjs';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.mjs';
4
4
  import { HookParams } from './types.mjs';
5
5
  import '../plan-DSTBzzTY.mjs';
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { C as ClientAggregateEventsParams, A as AggregateEventsResponse, n as AggregateEventsList, T as Total } from '../params-B5l9vHfZ.js';
2
+ import { C as ClientAggregateEventsParams, A as AggregateEventsResponse, n as AggregateEventsList, T as Total } from '../params-D4cEukOJ.js';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.js';
4
4
  import { HookParams } from './types.js';
5
5
  import '../plan-DSTBzzTY.js';
@@ -1,5 +1,5 @@
1
- import { o as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, s as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-BVglT8vT.mjs';
2
- import { C as Customer } from '../customer-DB8vL_m7.mjs';
1
+ import { o as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, s as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-DzbSUS8O.mjs';
2
+ import { C as Customer } from '../customer-BDxW2bu6.mjs';
3
3
  import { HookParams, HookResultWithMethods } from './types.mjs';
4
4
  import '../plan-DSTBzzTY.mjs';
5
5
  import '@tanstack/react-query';
@@ -1,5 +1,5 @@
1
- import { o as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, s as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-B5l9vHfZ.js';
2
- import { C as Customer } from '../customer-CaGJEN5J.js';
1
+ import { o as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, p as AttachResponse, h as ClientPreviewAttachParams, q as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, r as PreviewUpdateResponse, s as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, t as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-D4cEukOJ.js';
2
+ import { C as Customer } from '../customer-BPUObmME.js';
3
3
  import { HookParams, HookResultWithMethods } from './types.js';
4
4
  import '../plan-DSTBzzTY.js';
5
5
  import '@tanstack/react-query';
@@ -1,4 +1,4 @@
1
- import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-BVglT8vT.mjs';
1
+ import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-DzbSUS8O.mjs';
2
2
  import { HookParams, HookResult } from './types.mjs';
3
3
  import '../plan-DSTBzzTY.mjs';
4
4
  import '@tanstack/react-query';
@@ -1,4 +1,4 @@
1
- import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-B5l9vHfZ.js';
1
+ import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-D4cEukOJ.js';
2
2
  import { HookParams, HookResult } from './types.js';
3
3
  import '../plan-DSTBzzTY.js';
4
4
  import '@tanstack/react-query';
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { e as ClientListEventsParams, L as ListEventsResponse, u as ListEventsList } from '../params-BVglT8vT.mjs';
2
+ import { e as ClientListEventsParams, L as ListEventsResponse, u as ListEventsList } from '../params-DzbSUS8O.mjs';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.mjs';
4
4
  import { HookParams } from './types.mjs';
5
5
  import '../plan-DSTBzzTY.mjs';
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { e as ClientListEventsParams, L as ListEventsResponse, u as ListEventsList } from '../params-B5l9vHfZ.js';
2
+ import { e as ClientListEventsParams, L as ListEventsResponse, u as ListEventsList } from '../params-D4cEukOJ.js';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.js';
4
4
  import { HookParams } from './types.js';
5
5
  import '../plan-DSTBzzTY.js';
@@ -1,6 +1,6 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { P as Plan } from '../plan-DSTBzzTY.mjs';
3
- import { v as ClientListPlansParams } from '../params-BVglT8vT.mjs';
3
+ import { v as ClientListPlansParams } from '../params-DzbSUS8O.mjs';
4
4
  import { AutumnClientError } from '../client/AutumnClientError.mjs';
5
5
  import { HookParams } from './types.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { P as Plan } from '../plan-DSTBzzTY.js';
3
- import { v as ClientListPlansParams } from '../params-B5l9vHfZ.js';
3
+ import { v as ClientListPlansParams } from '../params-D4cEukOJ.js';
4
4
  import { AutumnClientError } from '../client/AutumnClientError.js';
5
5
  import { HookParams } from './types.js';
6
6
 
@@ -1,4 +1,4 @@
1
- import { b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-BVglT8vT.mjs';
1
+ import { b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-DzbSUS8O.mjs';
2
2
  import { HookParams, HookResultWithMethods } from './types.mjs';
3
3
  import '../plan-DSTBzzTY.mjs';
4
4
  import '@tanstack/react-query';
@@ -1,4 +1,4 @@
1
- import { b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-B5l9vHfZ.js';
1
+ import { b as ClientCreateReferralCodeParams, w as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-D4cEukOJ.js';
2
2
  import { HookParams, HookResultWithMethods } from './types.js';
3
3
  import '../plan-DSTBzzTY.js';
4
4
  import '@tanstack/react-query';
@@ -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-BVglT8vT.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-DzbSUS8O.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';
@@ -13,6 +13,6 @@ export { UseReferralsParams, UseReferralsResult, useReferrals } from './hooks/us
13
13
  import './plan-DSTBzzTY.mjs';
14
14
  import 'react';
15
15
  import 'react/jsx-runtime';
16
- import './customer-DB8vL_m7.mjs';
16
+ import './customer-BDxW2bu6.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-B5l9vHfZ.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-D4cEukOJ.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';
@@ -13,6 +13,6 @@ export { UseReferralsParams, UseReferralsResult, useReferrals } from './hooks/us
13
13
  import './plan-DSTBzzTY.js';
14
14
  import 'react';
15
15
  import 'react/jsx-runtime';
16
- import './customer-CaGJEN5J.js';
16
+ import './customer-BPUObmME.js';
17
17
  import '@tanstack/react-query';
18
18
  import './hooks/types.js';