autumn-js 1.3.47 → 1.3.49

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 (107) hide show
  1. package/dist/backend/adapters/express.js +214 -17
  2. package/dist/backend/adapters/express.mjs +4 -4
  3. package/dist/backend/adapters/fetch.js +214 -17
  4. package/dist/backend/adapters/fetch.mjs +4 -4
  5. package/dist/backend/adapters/hono.js +214 -17
  6. package/dist/backend/adapters/hono.mjs +4 -4
  7. package/dist/backend/adapters/index.js +214 -17
  8. package/dist/backend/adapters/index.mjs +7 -7
  9. package/dist/backend/adapters/next.js +214 -17
  10. package/dist/backend/adapters/next.mjs +4 -4
  11. package/dist/backend/{chunk-6RGLO6FV.mjs → chunk-5CDM4XIN.mjs} +1 -1
  12. package/dist/backend/{chunk-C4IENXIG.mjs → chunk-5DMQUWII.mjs} +1 -1
  13. package/dist/backend/{chunk-ESSDMDXJ.mjs → chunk-BZ54HK66.mjs} +1 -1
  14. package/dist/backend/{chunk-NOJP6FIN.mjs → chunk-HLYVCB6M.mjs} +1 -1
  15. package/dist/backend/{chunk-KSYN5FLV.mjs → chunk-JPQERXWV.mjs} +214 -17
  16. package/dist/backend/{chunk-ZFFEG27F.mjs → chunk-SS7EKOGZ.mjs} +1 -1
  17. package/dist/backend/{chunk-DZBBXOKT.mjs → chunk-ZJSWDKBL.mjs} +1 -1
  18. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  19. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.js +214 -17
  21. package/dist/backend/core/handlers/coreHandler.mjs +2 -2
  22. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  23. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  24. package/dist/backend/core/handlers/handleRouteByName.js +214 -17
  25. package/dist/backend/core/handlers/handleRouteByName.mjs +2 -2
  26. package/dist/backend/core/handlers/index.d.mts +1 -1
  27. package/dist/backend/core/handlers/index.d.ts +1 -1
  28. package/dist/backend/core/handlers/index.js +214 -17
  29. package/dist/backend/core/handlers/index.mjs +3 -3
  30. package/dist/backend/core/index.d.mts +1 -1
  31. package/dist/backend/core/index.d.ts +1 -1
  32. package/dist/backend/core/index.js +214 -17
  33. package/dist/backend/core/index.mjs +3 -3
  34. package/dist/backend/core/routes/index.d.mts +1 -1
  35. package/dist/backend/core/routes/index.d.ts +1 -1
  36. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  37. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  38. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  39. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  40. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  41. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  42. package/dist/backend/core/types/index.d.mts +1 -1
  43. package/dist/backend/core/types/index.d.ts +1 -1
  44. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  45. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  46. package/dist/backend/index.d.mts +2 -2
  47. package/dist/backend/index.d.ts +2 -2
  48. package/dist/backend/index.js +214 -17
  49. package/dist/backend/index.mjs +3 -3
  50. package/dist/backend/{routeTypes-DAI_E67X.d.mts → routeTypes-Czot4Qi-.d.mts} +232 -2
  51. package/dist/backend/{routeTypes-4TatmvQY.d.ts → routeTypes-D4pVj85I.d.ts} +232 -2
  52. package/dist/better-auth/{chunk-R7IEJQOY.mjs → chunk-57PPCUDF.mjs} +214 -17
  53. package/dist/better-auth/index.js +214 -17
  54. package/dist/better-auth/index.mjs +1 -1
  55. package/dist/better-auth/utils/handleBetterAuthRoute.js +214 -17
  56. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  57. package/dist/better-auth/utils/index.js +214 -17
  58. package/dist/better-auth/utils/index.mjs +1 -1
  59. package/dist/react/AutumnContext.d.mts +4 -4
  60. package/dist/react/AutumnContext.d.ts +4 -4
  61. package/dist/react/client/AutumnClient.d.mts +4 -4
  62. package/dist/react/client/AutumnClient.d.ts +4 -4
  63. package/dist/react/client/IAutumnClient.d.mts +4 -4
  64. package/dist/react/client/IAutumnClient.d.ts +4 -4
  65. package/dist/react/client/index.d.mts +4 -4
  66. package/dist/react/client/index.d.ts +4 -4
  67. package/dist/react/{customer-DfpvnPRk.d.mts → customer-CZn6Nd7a.d.mts} +47 -1
  68. package/dist/react/{customer-B0KAd7eZ.d.ts → customer-Dt0OdihJ.d.ts} +47 -1
  69. package/dist/react/hooks/index.d.mts +4 -4
  70. package/dist/react/hooks/index.d.ts +4 -4
  71. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  72. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  73. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  74. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  75. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  76. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  77. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  78. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  79. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  80. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  81. package/dist/react/hooks/internal/useCustomerActions.d.mts +4 -4
  82. package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
  83. package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
  84. package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
  85. package/dist/react/hooks/useCustomer.d.mts +3 -3
  86. package/dist/react/hooks/useCustomer.d.ts +3 -3
  87. package/dist/react/hooks/useEntity.d.mts +2 -2
  88. package/dist/react/hooks/useEntity.d.ts +2 -2
  89. package/dist/react/hooks/useListEvents.d.mts +2 -2
  90. package/dist/react/hooks/useListEvents.d.ts +2 -2
  91. package/dist/react/hooks/useListPlans.d.mts +3 -3
  92. package/dist/react/hooks/useListPlans.d.ts +3 -3
  93. package/dist/react/hooks/useReferrals.d.mts +2 -2
  94. package/dist/react/hooks/useReferrals.d.ts +2 -2
  95. package/dist/react/index.d.mts +4 -4
  96. package/dist/react/index.d.ts +4 -4
  97. package/dist/react/{list-plans-response-6iUDTnPQ.d.ts → list-plans-response-Bx4e7rvw.d.ts} +1 -1
  98. package/dist/react/{list-plans-response-BzsqJlxN.d.mts → list-plans-response-ibIt0k4N.d.mts} +1 -1
  99. package/dist/react/{params-CMcoADwO.d.ts → params-BGpmxI8B.d.mts} +1 -1
  100. package/dist/react/{params-vAoGWtk9.d.mts → params-C7_vr_BA.d.ts} +1 -1
  101. package/dist/react/{plan-Ct5TGTnS.d.mts → plan-CvxFKlF7.d.mts} +2 -2
  102. package/dist/react/{plan-Ct5TGTnS.d.ts → plan-CvxFKlF7.d.ts} +2 -2
  103. package/dist/sdk/index.d.mts +287 -5
  104. package/dist/sdk/index.d.ts +287 -5
  105. package/dist/sdk/index.js +317 -22
  106. package/dist/sdk/index.mjs +286 -21
  107. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
- import { C as Customer } from '../../../customer-DfpvnPRk.mjs';
2
- import '../../../plan-Ct5TGTnS.mjs';
1
+ import { C as Customer } from '../../../customer-CZn6Nd7a.mjs';
2
+ import '../../../plan-CvxFKlF7.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-B0KAd7eZ.js';
2
- import '../../../plan-Ct5TGTnS.js';
1
+ import { C as Customer } from '../../../customer-Dt0OdihJ.js';
2
+ import '../../../plan-CvxFKlF7.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-Ct5TGTnS.mjs';
2
- import { C as Customer } from '../../../customer-DfpvnPRk.mjs';
1
+ import { B as BalanceFeature } from '../../../plan-CvxFKlF7.mjs';
2
+ import { C as Customer } from '../../../customer-CZn6Nd7a.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-Ct5TGTnS.js';
2
- import { C as Customer } from '../../../customer-B0KAd7eZ.js';
1
+ import { B as BalanceFeature } from '../../../plan-CvxFKlF7.js';
2
+ import { C as Customer } from '../../../customer-Dt0OdihJ.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-DfpvnPRk.mjs';
2
- import '../../../plan-Ct5TGTnS.mjs';
1
+ import { C as Customer } from '../../../customer-CZn6Nd7a.mjs';
2
+ import '../../../plan-CvxFKlF7.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-B0KAd7eZ.js';
2
- import '../../../plan-Ct5TGTnS.js';
1
+ import { C as Customer } from '../../../customer-Dt0OdihJ.js';
2
+ import '../../../plan-CvxFKlF7.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-vAoGWtk9.mjs';
2
- import { C as Customer } from '../../customer-DfpvnPRk.mjs';
3
- import '../../plan-Ct5TGTnS.mjs';
1
+ import { n as ClientCheckParams, o as CheckResponse } from '../../params-BGpmxI8B.mjs';
2
+ import { C as Customer } from '../../customer-CZn6Nd7a.mjs';
3
+ import '../../plan-CvxFKlF7.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-CMcoADwO.js';
2
- import { C as Customer } from '../../customer-B0KAd7eZ.js';
3
- import '../../plan-Ct5TGTnS.js';
1
+ import { n as ClientCheckParams, o as CheckResponse } from '../../params-C7_vr_BA.js';
2
+ import { C as Customer } from '../../customer-Dt0OdihJ.js';
3
+ import '../../plan-CvxFKlF7.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-vAoGWtk9.mjs';
2
- import { C as Customer } from '../../customer-DfpvnPRk.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-BGpmxI8B.mjs';
2
+ import { C as Customer } from '../../customer-CZn6Nd7a.mjs';
3
3
  import { IAutumnClient } from '../../client/IAutumnClient.mjs';
4
- import '../../plan-Ct5TGTnS.mjs';
5
- import '../../list-plans-response-BzsqJlxN.mjs';
4
+ import '../../plan-CvxFKlF7.mjs';
5
+ import '../../list-plans-response-ibIt0k4N.mjs';
6
6
 
7
7
  /**
8
8
  * @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
@@ -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-CMcoADwO.js';
2
- import { C as Customer } from '../../customer-B0KAd7eZ.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-C7_vr_BA.js';
2
+ import { C as Customer } from '../../customer-Dt0OdihJ.js';
3
3
  import { IAutumnClient } from '../../client/IAutumnClient.js';
4
- import '../../plan-Ct5TGTnS.js';
5
- import '../../list-plans-response-6iUDTnPQ.js';
4
+ import '../../plan-CvxFKlF7.js';
5
+ import '../../list-plans-response-Bx4e7rvw.js';
6
6
 
7
7
  /**
8
8
  * @deprecated Autumn's React hooks are deprecated, as they don't scale well over time. Please use our backend SDK instead.
@@ -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-vAoGWtk9.mjs';
2
+ import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-BGpmxI8B.mjs';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.mjs';
4
4
  import { HookParams } from './types.mjs';
5
- import '../plan-Ct5TGTnS.mjs';
5
+ import '../plan-CvxFKlF7.mjs';
6
6
 
7
7
  type UseAggregateEventsParams = HookParams<ClientAggregateEventsParams, AggregateEventsResponse>;
8
8
  /**
@@ -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-CMcoADwO.js';
2
+ import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-C7_vr_BA.js';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.js';
4
4
  import { HookParams } from './types.js';
5
- import '../plan-Ct5TGTnS.js';
5
+ import '../plan-CvxFKlF7.js';
6
6
 
7
7
  type UseAggregateEventsParams = HookParams<ClientAggregateEventsParams, AggregateEventsResponse>;
8
8
  /**
@@ -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-vAoGWtk9.mjs';
2
- import { C as Customer } from '../customer-DfpvnPRk.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-BGpmxI8B.mjs';
2
+ import { C as Customer } from '../customer-CZn6Nd7a.mjs';
3
3
  import { HookParams, HookResultWithMethods } from './types.mjs';
4
- import '../plan-Ct5TGTnS.mjs';
4
+ import '../plan-CvxFKlF7.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-CMcoADwO.js';
2
- import { C as Customer } from '../customer-B0KAd7eZ.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-C7_vr_BA.js';
2
+ import { C as Customer } from '../customer-Dt0OdihJ.js';
3
3
  import { HookParams, HookResultWithMethods } from './types.js';
4
- import '../plan-Ct5TGTnS.js';
4
+ import '../plan-CvxFKlF7.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-vAoGWtk9.mjs';
1
+ import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-BGpmxI8B.mjs';
2
2
  import { HookParams, HookResult } from './types.mjs';
3
- import '../plan-Ct5TGTnS.mjs';
3
+ import '../plan-CvxFKlF7.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-CMcoADwO.js';
1
+ import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-C7_vr_BA.js';
2
2
  import { HookParams, HookResult } from './types.js';
3
- import '../plan-Ct5TGTnS.js';
3
+ import '../plan-CvxFKlF7.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-vAoGWtk9.mjs';
2
+ import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-BGpmxI8B.mjs';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.mjs';
4
4
  import { HookParams } from './types.mjs';
5
- import '../plan-Ct5TGTnS.mjs';
5
+ import '../plan-CvxFKlF7.mjs';
6
6
 
7
7
  type UseListEventsParams = HookParams<ClientListEventsParams, ListEventsResponse>;
8
8
  /**
@@ -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-CMcoADwO.js';
2
+ import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-C7_vr_BA.js';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.js';
4
4
  import { HookParams } from './types.js';
5
- import '../plan-Ct5TGTnS.js';
5
+ import '../plan-CvxFKlF7.js';
6
6
 
7
7
  type UseListEventsParams = HookParams<ClientListEventsParams, ListEventsResponse>;
8
8
  /**
@@ -1,9 +1,9 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { a as ListPlansList } from '../list-plans-response-BzsqJlxN.mjs';
3
- import { t as ClientListPlansParams } from '../params-vAoGWtk9.mjs';
2
+ import { a as ListPlansList } from '../list-plans-response-ibIt0k4N.mjs';
3
+ import { t as ClientListPlansParams } from '../params-BGpmxI8B.mjs';
4
4
  import { AutumnClientError } from '../client/AutumnClientError.mjs';
5
5
  import { HookParams } from './types.mjs';
6
- import '../plan-Ct5TGTnS.mjs';
6
+ import '../plan-CvxFKlF7.mjs';
7
7
 
8
8
  type UseListPlansParams = HookParams<ClientListPlansParams, ListPlansList[]>;
9
9
  /**
@@ -1,9 +1,9 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { a as ListPlansList } from '../list-plans-response-6iUDTnPQ.js';
3
- import { t as ClientListPlansParams } from '../params-CMcoADwO.js';
2
+ import { a as ListPlansList } from '../list-plans-response-Bx4e7rvw.js';
3
+ import { t as ClientListPlansParams } from '../params-C7_vr_BA.js';
4
4
  import { AutumnClientError } from '../client/AutumnClientError.js';
5
5
  import { HookParams } from './types.js';
6
- import '../plan-Ct5TGTnS.js';
6
+ import '../plan-CvxFKlF7.js';
7
7
 
8
8
  type UseListPlansParams = HookParams<ClientListPlansParams, ListPlansList[]>;
9
9
  /**
@@ -1,6 +1,6 @@
1
- import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-vAoGWtk9.mjs';
1
+ import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-BGpmxI8B.mjs';
2
2
  import { HookParams, HookResultWithMethods } from './types.mjs';
3
- import '../plan-Ct5TGTnS.mjs';
3
+ import '../plan-CvxFKlF7.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-CMcoADwO.js';
1
+ import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-C7_vr_BA.js';
2
2
  import { HookParams, HookResultWithMethods } from './types.js';
3
- import '../plan-Ct5TGTnS.js';
3
+ import '../plan-CvxFKlF7.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-vAoGWtk9.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-BGpmxI8B.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-Ct5TGTnS.mjs';
13
+ import './plan-CvxFKlF7.mjs';
14
14
  import 'react';
15
- import './customer-DfpvnPRk.mjs';
16
- import './list-plans-response-BzsqJlxN.mjs';
15
+ import './customer-CZn6Nd7a.mjs';
16
+ import './list-plans-response-ibIt0k4N.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-CMcoADwO.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-C7_vr_BA.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-Ct5TGTnS.js';
13
+ import './plan-CvxFKlF7.js';
14
14
  import 'react';
15
- import './customer-B0KAd7eZ.js';
16
- import './list-plans-response-6iUDTnPQ.js';
15
+ import './customer-Dt0OdihJ.js';
16
+ import './list-plans-response-Bx4e7rvw.js';
17
17
  import '@tanstack/react-query';
18
18
  import './hooks/types.js';
@@ -1,4 +1,4 @@
1
- import { O as OpenEnum, C as ClosedEnum, P as Plan } from './plan-Ct5TGTnS.js';
1
+ import { O as OpenEnum, C as ClosedEnum, P as Plan } from './plan-CvxFKlF7.js';
2
2
 
3
3
  type ListPlansAdditionalCurrency = {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { O as OpenEnum, C as ClosedEnum, P as Plan } from './plan-Ct5TGTnS.mjs';
1
+ import { O as OpenEnum, C as ClosedEnum, P as Plan } from './plan-CvxFKlF7.mjs';
2
2
 
3
3
  type ListPlansAdditionalCurrency = {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-Ct5TGTnS.js';
1
+ import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-CvxFKlF7.mjs';
2
2
 
3
3
  /**
4
4
  * Time range to aggregate events for. Either range or custom_range must be provided
@@ -1,4 +1,4 @@
1
- import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-Ct5TGTnS.mjs';
1
+ import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-CvxFKlF7.js';
2
2
 
3
3
  /**
4
4
  * Time range to aggregate events for. Either range or custom_range must be provided
@@ -470,7 +470,7 @@ declare const BalanceSource: {
470
470
  * Where this row's credits come from: shared at the customer level, or owned by the entity.
471
471
  */
472
472
  type BalanceSource = OpenEnum<typeof BalanceSource>;
473
- type Allocation = {
473
+ type BalanceAllocation = {
474
474
  /**
475
475
  * The amount allocated to this entity.
476
476
  */
@@ -524,7 +524,7 @@ type Breakdown = {
524
524
  /**
525
525
  * Set when this row's numbers are the entity's allocated share of the customer's credits.
526
526
  */
527
- allocation?: Allocation | null | undefined;
527
+ allocation?: BalanceAllocation | null | undefined;
528
528
  };
529
529
  type BalanceRollover = {
530
530
  /**
@@ -470,7 +470,7 @@ declare const BalanceSource: {
470
470
  * Where this row's credits come from: shared at the customer level, or owned by the entity.
471
471
  */
472
472
  type BalanceSource = OpenEnum<typeof BalanceSource>;
473
- type Allocation = {
473
+ type BalanceAllocation = {
474
474
  /**
475
475
  * The amount allocated to this entity.
476
476
  */
@@ -524,7 +524,7 @@ type Breakdown = {
524
524
  /**
525
525
  * Set when this row's numbers are the entity's allocated share of the customer's credits.
526
526
  */
527
- allocation?: Allocation | null | undefined;
527
+ allocation?: BalanceAllocation | null | undefined;
528
528
  };
529
529
  type BalanceRollover = {
530
530
  /**