autumn-js 1.3.13 → 1.3.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 (102) hide show
  1. package/dist/backend/adapters/express.js +10761 -10483
  2. package/dist/backend/adapters/express.mjs +5 -5
  3. package/dist/backend/adapters/fetch.js +10761 -10483
  4. package/dist/backend/adapters/fetch.mjs +5 -5
  5. package/dist/backend/adapters/hono.js +10761 -10483
  6. package/dist/backend/adapters/hono.mjs +5 -5
  7. package/dist/backend/adapters/index.js +10761 -10483
  8. package/dist/backend/adapters/index.mjs +8 -8
  9. package/dist/backend/adapters/next.js +10761 -10483
  10. package/dist/backend/adapters/next.mjs +5 -5
  11. package/dist/backend/{chunk-C2NPCEJI.mjs → chunk-3NWZ5JCS.mjs} +1 -1
  12. package/dist/backend/{chunk-C6ZZJ7EE.mjs → chunk-5L2FQENX.mjs} +1 -1
  13. package/dist/backend/{chunk-IAILCOBU.mjs → chunk-HLTECDHI.mjs} +10740 -10478
  14. package/dist/backend/{chunk-R6G7SG3N.mjs → chunk-ITZ2QE2R.mjs} +16 -0
  15. package/dist/backend/{chunk-DPUV4QAN.mjs → chunk-NFNIIF6U.mjs} +1 -1
  16. package/dist/backend/{chunk-2UUPONJZ.mjs → chunk-QRHOBVQP.mjs} +1 -1
  17. package/dist/backend/{chunk-SYMBZ24L.mjs → chunk-SQEGXZCR.mjs} +2 -2
  18. package/dist/backend/{chunk-XJWHTUI6.mjs → chunk-WTIOYLNM.mjs} +2 -2
  19. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  21. package/dist/backend/core/handlers/coreHandler.js +10761 -10483
  22. package/dist/backend/core/handlers/coreHandler.mjs +3 -3
  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/handleRouteByName.js +10761 -10483
  26. package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
  27. package/dist/backend/core/handlers/index.d.mts +1 -1
  28. package/dist/backend/core/handlers/index.d.ts +1 -1
  29. package/dist/backend/core/handlers/index.js +10761 -10483
  30. package/dist/backend/core/handlers/index.mjs +4 -4
  31. package/dist/backend/core/index.d.mts +1 -1
  32. package/dist/backend/core/index.d.ts +1 -1
  33. package/dist/backend/core/index.js +10761 -10483
  34. package/dist/backend/core/index.mjs +4 -4
  35. package/dist/backend/core/routes/index.d.mts +1 -1
  36. package/dist/backend/core/routes/index.d.ts +1 -1
  37. package/dist/backend/core/routes/index.js +16 -0
  38. package/dist/backend/core/routes/index.mjs +1 -1
  39. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  40. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  41. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  43. package/dist/backend/core/routes/routeConfigs.js +16 -0
  44. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  45. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  46. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  47. package/dist/backend/core/types/index.d.mts +1 -1
  48. package/dist/backend/core/types/index.d.ts +1 -1
  49. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  50. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  51. package/dist/backend/index.d.mts +2 -2
  52. package/dist/backend/index.d.ts +2 -2
  53. package/dist/backend/index.js +10761 -10483
  54. package/dist/backend/index.mjs +4 -4
  55. package/dist/backend/{routeTypes-CIZ-ZBtX.d.ts → routeTypes-BO-VBvq4.d.ts} +108 -1
  56. package/dist/backend/{routeTypes-BoCJIb-T.d.mts → routeTypes-BPqyn4tP.d.mts} +108 -1
  57. package/dist/better-auth/{chunk-U5BLUB3E.mjs → chunk-AXWF2UCR.mjs} +16 -0
  58. package/dist/better-auth/{chunk-C6ATXDH4.mjs → chunk-IQCXDDKS.mjs} +10741 -10479
  59. package/dist/better-auth/{chunk-CWELMXBP.mjs → chunk-IT7LJSHT.mjs} +1 -1
  60. package/dist/better-auth/index.js +10761 -10483
  61. package/dist/better-auth/index.mjs +3 -3
  62. package/dist/better-auth/utils/createAutumnEndpoint.js +16 -0
  63. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  64. package/dist/better-auth/utils/handleBetterAuthRoute.js +10761 -10483
  65. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  66. package/dist/better-auth/utils/index.js +10761 -10483
  67. package/dist/better-auth/utils/index.mjs +3 -3
  68. package/dist/react/AutumnContext.d.mts +1 -1
  69. package/dist/react/AutumnContext.d.ts +1 -1
  70. package/dist/react/client/AutumnClient.d.mts +1 -1
  71. package/dist/react/client/AutumnClient.d.ts +1 -1
  72. package/dist/react/client/IAutumnClient.d.mts +1 -1
  73. package/dist/react/client/IAutumnClient.d.ts +1 -1
  74. package/dist/react/client/index.d.mts +1 -1
  75. package/dist/react/client/index.d.ts +1 -1
  76. package/dist/react/hooks/index.d.mts +1 -1
  77. package/dist/react/hooks/index.d.ts +1 -1
  78. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +1 -1
  79. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +1 -1
  80. package/dist/react/hooks/internal/useCustomerActions.d.mts +1 -1
  81. package/dist/react/hooks/internal/useCustomerActions.d.ts +1 -1
  82. package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
  83. package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
  84. package/dist/react/hooks/useCustomer.d.mts +1 -1
  85. package/dist/react/hooks/useCustomer.d.ts +1 -1
  86. package/dist/react/hooks/useEntity.d.mts +1 -1
  87. package/dist/react/hooks/useEntity.d.ts +1 -1
  88. package/dist/react/hooks/useListEvents.d.mts +1 -1
  89. package/dist/react/hooks/useListEvents.d.ts +1 -1
  90. package/dist/react/hooks/useListPlans.d.mts +1 -1
  91. package/dist/react/hooks/useListPlans.d.ts +1 -1
  92. package/dist/react/hooks/useReferrals.d.mts +1 -1
  93. package/dist/react/hooks/useReferrals.d.ts +1 -1
  94. package/dist/react/index.d.mts +1 -1
  95. package/dist/react/index.d.ts +1 -1
  96. package/dist/react/{params-B5IVa4Ut.d.mts → params-BNmjxPTb.d.mts} +26 -0
  97. package/dist/react/{params-CT8HBmlA.d.ts → params-DOhtJtIQ.d.ts} +26 -0
  98. package/dist/sdk/index.d.mts +158 -2
  99. package/dist/sdk/index.d.ts +158 -2
  100. package/dist/sdk/index.js +343 -39
  101. package/dist/sdk/index.mjs +328 -40
  102. package/package.json +2 -2
@@ -1,14 +1,14 @@
1
1
  import "../chunk-HIWOK3G6.mjs";
2
2
  import {
3
3
  createAutumnEndpoint
4
- } from "../chunk-CWELMXBP.mjs";
4
+ } from "../chunk-IT7LJSHT.mjs";
5
5
  import {
6
6
  createHandleBetterAuthRoute
7
- } from "../chunk-C6ATXDH4.mjs";
7
+ } from "../chunk-IQCXDDKS.mjs";
8
8
  import {
9
9
  resolveIdentityFromScope
10
10
  } from "../chunk-J2WYVGHS.mjs";
11
- import "../chunk-U5BLUB3E.mjs";
11
+ import "../chunk-AXWF2UCR.mjs";
12
12
  import {
13
13
  getActiveOrganization
14
14
  } from "../chunk-BT3EAYVW.mjs";
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { IAutumnClient } from './client/IAutumnClient.mjs';
3
- import './params-B5IVa4Ut.mjs';
3
+ import './params-BNmjxPTb.mjs';
4
4
  import './plan-CrpW2EZo.mjs';
5
5
  import './customer-Ho7hCUyc.mjs';
6
6
  import './list-plans-response-CN5npYlB.mjs';
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { IAutumnClient } from './client/IAutumnClient.js';
3
- import './params-CT8HBmlA.js';
3
+ import './params-DOhtJtIQ.js';
4
4
  import './plan-CrpW2EZo.js';
5
5
  import './customer-Bp7Npmb4.js';
6
6
  import './list-plans-response-ZA4i4qbk.js';
@@ -1,5 +1,5 @@
1
1
  import { IAutumnClient } from './IAutumnClient.mjs';
2
- import '../params-B5IVa4Ut.mjs';
2
+ import '../params-BNmjxPTb.mjs';
3
3
  import '../plan-CrpW2EZo.mjs';
4
4
  import '../customer-Ho7hCUyc.mjs';
5
5
  import '../list-plans-response-CN5npYlB.mjs';
@@ -1,5 +1,5 @@
1
1
  import { IAutumnClient } from './IAutumnClient.js';
2
- import '../params-CT8HBmlA.js';
2
+ import '../params-DOhtJtIQ.js';
3
3
  import '../plan-CrpW2EZo.js';
4
4
  import '../customer-Bp7Npmb4.js';
5
5
  import '../list-plans-response-ZA4i4qbk.js';
@@ -1,4 +1,4 @@
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-B5IVa4Ut.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-BNmjxPTb.mjs';
2
2
  import { C as Customer } from '../customer-Ho7hCUyc.mjs';
3
3
  import { L as ListPlansResponse } from '../list-plans-response-CN5npYlB.mjs';
4
4
  import '../plan-CrpW2EZo.mjs';
@@ -1,4 +1,4 @@
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-CT8HBmlA.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-DOhtJtIQ.js';
2
2
  import { C as Customer } from '../customer-Bp7Npmb4.js';
3
3
  import { L as ListPlansResponse } from '../list-plans-response-ZA4i4qbk.js';
4
4
  import '../plan-CrpW2EZo.js';
@@ -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-B5IVa4Ut.mjs';
4
+ import '../params-BNmjxPTb.mjs';
5
5
  import '../plan-CrpW2EZo.mjs';
6
6
  import '../customer-Ho7hCUyc.mjs';
7
7
  import '../list-plans-response-CN5npYlB.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-CT8HBmlA.js';
4
+ import '../params-DOhtJtIQ.js';
5
5
  import '../plan-CrpW2EZo.js';
6
6
  import '../customer-Bp7Npmb4.js';
7
7
  import '../list-plans-response-ZA4i4qbk.js';
@@ -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-B5IVa4Ut.mjs';
10
+ import '../params-BNmjxPTb.mjs';
11
11
  import '../plan-CrpW2EZo.mjs';
12
12
  import '../customer-Ho7hCUyc.mjs';
13
13
  import '../list-plans-response-CN5npYlB.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-CT8HBmlA.js';
10
+ import '../params-DOhtJtIQ.js';
11
11
  import '../plan-CrpW2EZo.js';
12
12
  import '../customer-Bp7Npmb4.js';
13
13
  import '../list-plans-response-ZA4i4qbk.js';
@@ -1,4 +1,4 @@
1
- import { n as ClientCheckParams, o as CheckResponse } from '../../params-B5IVa4Ut.mjs';
1
+ import { n as ClientCheckParams, o as CheckResponse } from '../../params-BNmjxPTb.mjs';
2
2
  import { C as Customer } from '../../customer-Ho7hCUyc.mjs';
3
3
  import '../../plan-CrpW2EZo.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { n as ClientCheckParams, o as CheckResponse } from '../../params-CT8HBmlA.js';
1
+ import { n as ClientCheckParams, o as CheckResponse } from '../../params-DOhtJtIQ.js';
2
2
  import { C as Customer } from '../../customer-Bp7Npmb4.js';
3
3
  import '../../plan-CrpW2EZo.js';
4
4
 
@@ -1,4 +1,4 @@
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-B5IVa4Ut.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-BNmjxPTb.mjs';
2
2
  import { C as Customer } from '../../customer-Ho7hCUyc.mjs';
3
3
  import { IAutumnClient } from '../../client/IAutumnClient.mjs';
4
4
  import '../../plan-CrpW2EZo.mjs';
@@ -1,4 +1,4 @@
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-CT8HBmlA.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-DOhtJtIQ.js';
2
2
  import { C as Customer } from '../../customer-Bp7Npmb4.js';
3
3
  import { IAutumnClient } from '../../client/IAutumnClient.js';
4
4
  import '../../plan-CrpW2EZo.js';
@@ -1,5 +1,5 @@
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-B5IVa4Ut.mjs';
2
+ import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-BNmjxPTb.mjs';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.mjs';
4
4
  import { HookParams } from './types.mjs';
5
5
  import '../plan-CrpW2EZo.mjs';
@@ -1,5 +1,5 @@
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-CT8HBmlA.js';
2
+ import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-DOhtJtIQ.js';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.js';
4
4
  import { HookParams } from './types.js';
5
5
  import '../plan-CrpW2EZo.js';
@@ -1,4 +1,4 @@
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-B5IVa4Ut.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-BNmjxPTb.mjs';
2
2
  import { C as Customer } from '../customer-Ho7hCUyc.mjs';
3
3
  import { HookParams, HookResultWithMethods } from './types.mjs';
4
4
  import '../plan-CrpW2EZo.mjs';
@@ -1,4 +1,4 @@
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-CT8HBmlA.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-DOhtJtIQ.js';
2
2
  import { C as Customer } from '../customer-Bp7Npmb4.js';
3
3
  import { HookParams, HookResultWithMethods } from './types.js';
4
4
  import '../plan-CrpW2EZo.js';
@@ -1,4 +1,4 @@
1
- import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-B5IVa4Ut.mjs';
1
+ import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-BNmjxPTb.mjs';
2
2
  import { HookParams, HookResult } from './types.mjs';
3
3
  import '../plan-CrpW2EZo.mjs';
4
4
  import '@tanstack/react-query';
@@ -1,4 +1,4 @@
1
- import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-CT8HBmlA.js';
1
+ import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-DOhtJtIQ.js';
2
2
  import { HookParams, HookResult } from './types.js';
3
3
  import '../plan-CrpW2EZo.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, w as ListEventsList } from '../params-B5IVa4Ut.mjs';
2
+ import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-BNmjxPTb.mjs';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.mjs';
4
4
  import { HookParams } from './types.mjs';
5
5
  import '../plan-CrpW2EZo.mjs';
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-CT8HBmlA.js';
2
+ import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-DOhtJtIQ.js';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.js';
4
4
  import { HookParams } from './types.js';
5
5
  import '../plan-CrpW2EZo.js';
@@ -1,6 +1,6 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { a as ListPlansList } from '../list-plans-response-CN5npYlB.mjs';
3
- import { t as ClientListPlansParams } from '../params-B5IVa4Ut.mjs';
3
+ import { t as ClientListPlansParams } from '../params-BNmjxPTb.mjs';
4
4
  import { AutumnClientError } from '../client/AutumnClientError.mjs';
5
5
  import { HookParams } from './types.mjs';
6
6
  import '../plan-CrpW2EZo.mjs';
@@ -1,6 +1,6 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { a as ListPlansList } from '../list-plans-response-ZA4i4qbk.js';
3
- import { t as ClientListPlansParams } from '../params-CT8HBmlA.js';
3
+ import { t as ClientListPlansParams } from '../params-DOhtJtIQ.js';
4
4
  import { AutumnClientError } from '../client/AutumnClientError.js';
5
5
  import { HookParams } from './types.js';
6
6
  import '../plan-CrpW2EZo.js';
@@ -1,4 +1,4 @@
1
- import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-B5IVa4Ut.mjs';
1
+ import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-BNmjxPTb.mjs';
2
2
  import { HookParams, HookResultWithMethods } from './types.mjs';
3
3
  import '../plan-CrpW2EZo.mjs';
4
4
  import '@tanstack/react-query';
@@ -1,4 +1,4 @@
1
- import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-CT8HBmlA.js';
1
+ import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-DOhtJtIQ.js';
2
2
  import { HookParams, HookResultWithMethods } from './types.js';
3
3
  import '../plan-CrpW2EZo.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-B5IVa4Ut.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-BNmjxPTb.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';
@@ -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-CT8HBmlA.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-DOhtJtIQ.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';
@@ -4814,6 +4814,15 @@ type BillingUpdateAttachDiscount = {
4814
4814
  */
4815
4815
  promotionCode?: string | undefined;
4816
4816
  };
4817
+ /**
4818
+ * A discount to remove from the subscription. Discounts that are no longer applied are ignored.
4819
+ */
4820
+ type BillingUpdateRemoveDiscount = {
4821
+ /**
4822
+ * The ID of the reward (or Stripe coupon) to remove.
4823
+ */
4824
+ rewardId: string;
4825
+ };
4817
4826
  type BillingUpdateCustomLineItem = {
4818
4827
  /**
4819
4828
  * Amount in dollars for this line item (e.g. 10.50). Can be negative for credits.
@@ -4928,6 +4937,10 @@ type UpdateSubscriptionParams = {
4928
4937
  * List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code.
4929
4938
  */
4930
4939
  discounts?: Array<BillingUpdateAttachDiscount> | undefined;
4940
+ /**
4941
+ * Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged.
4942
+ */
4943
+ removeDiscounts?: Array<BillingUpdateRemoveDiscount> | undefined;
4931
4944
  /**
4932
4945
  * Custom line items that replace the auto-generated proration invoice, or bill a standalone invoice when nothing else changes. Only valid on an existing recurring subscription.
4933
4946
  */
@@ -15779,6 +15792,15 @@ type PreviewUpdateAttachDiscount = {
15779
15792
  */
15780
15793
  promotionCode?: string | undefined;
15781
15794
  };
15795
+ /**
15796
+ * A discount to remove from the subscription. Discounts that are no longer applied are ignored.
15797
+ */
15798
+ type PreviewUpdateRemoveDiscount = {
15799
+ /**
15800
+ * The ID of the reward (or Stripe coupon) to remove.
15801
+ */
15802
+ rewardId: string;
15803
+ };
15782
15804
  type PreviewUpdateCustomLineItem = {
15783
15805
  /**
15784
15806
  * Amount in dollars for this line item (e.g. 10.50). Can be negative for credits.
@@ -15893,6 +15915,10 @@ type PreviewUpdateParams = {
15893
15915
  * List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code.
15894
15916
  */
15895
15917
  discounts?: Array<PreviewUpdateAttachDiscount> | undefined;
15918
+ /**
15919
+ * Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged.
15920
+ */
15921
+ removeDiscounts?: Array<PreviewUpdateRemoveDiscount> | undefined;
15896
15922
  /**
15897
15923
  * Custom line items that replace the auto-generated proration invoice, or bill a standalone invoice when nothing else changes. Only valid on an existing recurring subscription.
15898
15924
  */
@@ -4814,6 +4814,15 @@ type BillingUpdateAttachDiscount = {
4814
4814
  */
4815
4815
  promotionCode?: string | undefined;
4816
4816
  };
4817
+ /**
4818
+ * A discount to remove from the subscription. Discounts that are no longer applied are ignored.
4819
+ */
4820
+ type BillingUpdateRemoveDiscount = {
4821
+ /**
4822
+ * The ID of the reward (or Stripe coupon) to remove.
4823
+ */
4824
+ rewardId: string;
4825
+ };
4817
4826
  type BillingUpdateCustomLineItem = {
4818
4827
  /**
4819
4828
  * Amount in dollars for this line item (e.g. 10.50). Can be negative for credits.
@@ -4928,6 +4937,10 @@ type UpdateSubscriptionParams = {
4928
4937
  * List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code.
4929
4938
  */
4930
4939
  discounts?: Array<BillingUpdateAttachDiscount> | undefined;
4940
+ /**
4941
+ * Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged.
4942
+ */
4943
+ removeDiscounts?: Array<BillingUpdateRemoveDiscount> | undefined;
4931
4944
  /**
4932
4945
  * Custom line items that replace the auto-generated proration invoice, or bill a standalone invoice when nothing else changes. Only valid on an existing recurring subscription.
4933
4946
  */
@@ -15779,6 +15792,15 @@ type PreviewUpdateAttachDiscount = {
15779
15792
  */
15780
15793
  promotionCode?: string | undefined;
15781
15794
  };
15795
+ /**
15796
+ * A discount to remove from the subscription. Discounts that are no longer applied are ignored.
15797
+ */
15798
+ type PreviewUpdateRemoveDiscount = {
15799
+ /**
15800
+ * The ID of the reward (or Stripe coupon) to remove.
15801
+ */
15802
+ rewardId: string;
15803
+ };
15782
15804
  type PreviewUpdateCustomLineItem = {
15783
15805
  /**
15784
15806
  * Amount in dollars for this line item (e.g. 10.50). Can be negative for credits.
@@ -15893,6 +15915,10 @@ type PreviewUpdateParams = {
15893
15915
  * List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code.
15894
15916
  */
15895
15917
  discounts?: Array<PreviewUpdateAttachDiscount> | undefined;
15918
+ /**
15919
+ * Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged.
15920
+ */
15921
+ removeDiscounts?: Array<PreviewUpdateRemoveDiscount> | undefined;
15896
15922
  /**
15897
15923
  * Custom line items that replace the auto-generated proration invoice, or bill a standalone invoice when nothing else changes. Only valid on an existing recurring subscription.
15898
15924
  */