autumn-js 0.0.101 → 0.0.103

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 (188) hide show
  1. package/dist/compose/index.d.mts +67 -93
  2. package/dist/compose/index.d.ts +67 -93
  3. package/dist/compose/index.js +14 -83
  4. package/dist/compose/index.mjs +14 -80
  5. package/dist/libraries/backend/better-auth.d.mts +18 -18
  6. package/dist/libraries/backend/better-auth.d.ts +18 -18
  7. package/dist/libraries/backend/better-auth.mjs +3 -3
  8. package/dist/libraries/backend/convex.mjs +3 -3
  9. package/dist/libraries/backend/elysia.d.mts +1 -1
  10. package/dist/libraries/backend/elysia.d.ts +1 -1
  11. package/dist/libraries/backend/elysia.mjs +3 -3
  12. package/dist/libraries/backend/express.d.mts +1 -1
  13. package/dist/libraries/backend/express.d.ts +1 -1
  14. package/dist/libraries/backend/express.mjs +3 -3
  15. package/dist/libraries/backend/fastify.mjs +3 -3
  16. package/dist/libraries/backend/hono.mjs +3 -3
  17. package/dist/libraries/backend/next.js +209 -186
  18. package/dist/libraries/backend/next.mjs +212 -189
  19. package/dist/libraries/backend/react-router.mjs +3 -3
  20. package/dist/libraries/backend/{referralTypes-HAk2vTns.d.ts → referralTypes-DV8s1h8w.d.ts} +34 -29
  21. package/dist/libraries/backend/{referralTypes-Dg9pRvI7.d.mts → referralTypes-DcDxMGTp.d.mts} +34 -29
  22. package/dist/libraries/backend/remix_dep.mjs +3 -3
  23. package/dist/libraries/backend/routes/backendRouter.mjs +3 -3
  24. package/dist/libraries/backend/supabase.mjs +3 -3
  25. package/dist/libraries/backend/tanstack.js +2 -2
  26. package/dist/libraries/backend/tanstack.mjs +5 -5
  27. package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
  28. package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
  29. package/dist/libraries/react/AutumnContext.d.mts +4 -4
  30. package/dist/libraries/react/AutumnContext.d.ts +4 -4
  31. package/dist/libraries/react/AutumnContext.mjs +5 -5
  32. package/dist/libraries/react/BaseAutumnProvider.d.mts +4 -4
  33. package/dist/libraries/react/BaseAutumnProvider.d.ts +4 -4
  34. package/dist/libraries/react/BaseAutumnProvider.js +7 -2
  35. package/dist/libraries/react/BaseAutumnProvider.mjs +10 -10
  36. package/dist/libraries/react/{ReactAutumnClient-B4P_QjY1.d.ts → ReactAutumnClient-BlxQQOXE.d.ts} +5 -5
  37. package/dist/libraries/react/{ReactAutumnClient-DCdPx-ps.d.mts → ReactAutumnClient-C8Nt-pqu.d.mts} +5 -5
  38. package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
  39. package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
  40. package/dist/libraries/react/ReactAutumnProvider.js +7 -2
  41. package/dist/libraries/react/ReactAutumnProvider.mjs +11 -11
  42. package/dist/libraries/react/{chunk-APDR7D6A.mjs → chunk-3SGSKYJ7.mjs} +2 -2
  43. package/dist/libraries/react/{chunk-YLZ5NFYO.mjs → chunk-AL3VJLFU.mjs} +1 -1
  44. package/dist/libraries/react/{chunk-G3FBFZLU.mjs → chunk-CGWNDUYV.mjs} +1 -1
  45. package/dist/libraries/react/{chunk-T5PIJ4HG.mjs → chunk-DBGTWERW.mjs} +4 -3
  46. package/dist/libraries/react/{chunk-CAMHARUX.mjs → chunk-DHJ36QEV.mjs} +2 -2
  47. package/dist/libraries/react/{chunk-R4BYOLST.mjs → chunk-EHOBTSZ7.mjs} +2 -2
  48. package/dist/libraries/react/{chunk-AOJCMXVS.mjs → chunk-GQIE3MFB.mjs} +3 -3
  49. package/dist/libraries/react/{chunk-LVDONEVF.mjs → chunk-KYSWTOMQ.mjs} +7 -3
  50. package/dist/libraries/react/{chunk-RQG36YPD.mjs → chunk-LXSKONN2.mjs} +5 -9
  51. package/dist/libraries/react/{chunk-R46CJXF7.mjs → chunk-OAPUYXBO.mjs} +6 -6
  52. package/dist/libraries/react/{chunk-3CJSWXNT.mjs → chunk-OAWFFAKA.mjs} +6 -6
  53. package/dist/libraries/react/{chunk-5G3DYUNT.mjs → chunk-PZJQBCVG.mjs} +1 -1
  54. package/dist/libraries/react/{chunk-DVMVIAZE.mjs → chunk-RQN4VDAE.mjs} +1 -1
  55. package/dist/libraries/react/{chunk-MZDRIPNS.mjs → chunk-S6JUZ43Q.mjs} +2 -2
  56. package/dist/libraries/react/{chunk-CPITDC7S.mjs → chunk-SDMBKRAI.mjs} +37 -172
  57. package/dist/libraries/react/{chunk-6CJ3FB74.mjs → chunk-X4R3V6O6.mjs} +2 -2
  58. package/dist/libraries/react/{chunk-24EVX3BR.mjs → chunk-ZEVKOP7Z.mjs} +24 -45
  59. package/dist/libraries/react/{chunk-RQEL7G2O.mjs → chunk-ZVQKDPUP.mjs} +3 -3
  60. package/dist/libraries/react/client/ReactAutumnClient.d.mts +4 -4
  61. package/dist/libraries/react/client/ReactAutumnClient.d.ts +4 -4
  62. package/dist/libraries/react/client/ReactAutumnClient.mjs +4 -4
  63. package/dist/libraries/react/client/clientCompMethods.d.mts +4 -4
  64. package/dist/libraries/react/client/clientCompMethods.d.ts +4 -4
  65. package/dist/libraries/react/client/clientCusMethods.d.mts +4 -4
  66. package/dist/libraries/react/client/clientCusMethods.d.ts +4 -4
  67. package/dist/libraries/react/client/clientEntityMethods.d.mts +4 -4
  68. package/dist/libraries/react/client/clientEntityMethods.d.ts +4 -4
  69. package/dist/libraries/react/client/clientGenMethods.d.mts +4 -4
  70. package/dist/libraries/react/client/clientGenMethods.d.ts +4 -4
  71. package/dist/libraries/react/client/clientProdMethods.d.mts +4 -4
  72. package/dist/libraries/react/client/clientProdMethods.d.ts +4 -4
  73. package/dist/libraries/react/client/clientReferralMethods.d.mts +4 -4
  74. package/dist/libraries/react/client/clientReferralMethods.d.ts +4 -4
  75. package/dist/libraries/react/client/types/clientGenTypes.d.mts +4 -4
  76. package/dist/libraries/react/client/types/clientGenTypes.d.ts +4 -4
  77. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.css +111 -116
  78. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +1 -1
  79. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +1 -1
  80. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +76 -212
  81. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +25 -25
  82. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +1 -1
  83. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +1 -1
  84. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
  85. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
  86. package/dist/libraries/react/components/check-dialog/check-dialog-synced.js +47 -169
  87. package/dist/libraries/react/components/check-dialog/check-dialog-synced.mjs +5 -5
  88. package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
  89. package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
  90. package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +111 -116
  91. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
  92. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
  93. package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +76 -215
  94. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +25 -25
  95. package/dist/libraries/react/components/ui/button.js +3 -3
  96. package/dist/libraries/react/components/ui/button.mjs +2 -2
  97. package/dist/libraries/react/components/ui/dialog.js +43 -157
  98. package/dist/libraries/react/components/ui/dialog.mjs +3 -3
  99. package/dist/libraries/react/components/ui/switch.js +12 -12
  100. package/dist/libraries/react/components/ui/switch.mjs +3 -3
  101. package/dist/libraries/react/{cusTypes-Bf1qr9iE.d.ts → cusTypes-CHcG59KG.d.mts} +4 -3
  102. package/dist/libraries/react/{cusTypes-Bf1qr9iE.d.mts → cusTypes-CHcG59KG.d.ts} +4 -3
  103. package/dist/libraries/react/{entTypes-CscyyE1A.d.mts → entTypes-3t7AbNhm.d.mts} +1 -1
  104. package/dist/libraries/react/{entTypes-O8YXxhrA.d.ts → entTypes-8-4TWxee.d.ts} +1 -1
  105. package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
  106. package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
  107. package/dist/libraries/react/hooks/useAutumn.d.mts +2 -2
  108. package/dist/libraries/react/hooks/useAutumn.d.ts +2 -2
  109. package/dist/libraries/react/hooks/useAutumn.js +5 -1
  110. package/dist/libraries/react/hooks/useAutumn.mjs +8 -8
  111. package/dist/libraries/react/hooks/useAutumnBase.d.mts +6 -5
  112. package/dist/libraries/react/hooks/useAutumnBase.d.ts +6 -5
  113. package/dist/libraries/react/hooks/useAutumnBase.js +5 -1
  114. package/dist/libraries/react/hooks/useAutumnBase.mjs +7 -7
  115. package/dist/libraries/react/hooks/useCustomer.d.mts +4 -4
  116. package/dist/libraries/react/hooks/useCustomer.d.ts +4 -4
  117. package/dist/libraries/react/hooks/useCustomer.js +7 -2
  118. package/dist/libraries/react/hooks/useCustomer.mjs +9 -9
  119. package/dist/libraries/react/hooks/useCustomerBase.d.mts +4 -4
  120. package/dist/libraries/react/hooks/useCustomerBase.d.ts +4 -4
  121. package/dist/libraries/react/hooks/useCustomerBase.js +7 -2
  122. package/dist/libraries/react/hooks/useCustomerBase.mjs +8 -8
  123. package/dist/libraries/react/hooks/useEntity.d.mts +3 -3
  124. package/dist/libraries/react/hooks/useEntity.d.ts +3 -3
  125. package/dist/libraries/react/hooks/useEntity.js +5 -1
  126. package/dist/libraries/react/hooks/useEntity.mjs +9 -9
  127. package/dist/libraries/react/hooks/useEntityBase.d.mts +4 -4
  128. package/dist/libraries/react/hooks/useEntityBase.d.ts +4 -4
  129. package/dist/libraries/react/hooks/useEntityBase.js +5 -1
  130. package/dist/libraries/react/hooks/useEntityBase.mjs +8 -8
  131. package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
  132. package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
  133. package/dist/libraries/react/hooks/usePricingTable.mjs +7 -7
  134. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +4 -4
  135. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +4 -4
  136. package/dist/libraries/react/hooks/usePricingTableBase.mjs +6 -6
  137. package/dist/libraries/react/hooks/useProductsBase.mjs +5 -5
  138. package/dist/libraries/react/index.d.mts +1 -0
  139. package/dist/libraries/react/index.d.ts +1 -0
  140. package/dist/libraries/react/index.js +80 -222
  141. package/dist/libraries/react/index.mjs +65 -207
  142. package/dist/libraries/react/{response-B4VzjWEU.d.mts → response-B8MYd86O.d.mts} +1 -1
  143. package/dist/libraries/react/{response-C3S90max.d.ts → response-DnJCkvfc.d.ts} +1 -1
  144. package/dist/next/{AutumnProvider-CCYZC_bN.d.mts → AutumnProvider-Xl1mqxls.d.mts} +1 -0
  145. package/dist/next/{AutumnProvider-CCYZC_bN.d.ts → AutumnProvider-Xl1mqxls.d.ts} +1 -0
  146. package/dist/next/AutumnProvider.d.mts +1 -1
  147. package/dist/next/AutumnProvider.d.ts +1 -1
  148. package/dist/next/client/NextAutumnClient.d.mts +7 -7
  149. package/dist/next/client/NextAutumnClient.d.ts +7 -7
  150. package/dist/next/client/NextAutumnProvider.d.mts +1 -1
  151. package/dist/next/client/NextAutumnProvider.d.ts +1 -1
  152. package/dist/next/client/{clientGenTypes-CxB4go6q.d.ts → clientGenTypes-Dx1TULjb.d.ts} +9 -9
  153. package/dist/next/client/{clientGenTypes-9ngy1q97.d.mts → clientGenTypes-tE8HbEdV.d.mts} +9 -9
  154. package/dist/next/client/clientUtils.d.mts +2 -2
  155. package/dist/next/client/clientUtils.d.ts +2 -2
  156. package/dist/next/client/{cusTypes-D8lhXGaX.d.mts → cusTypes-nWQygxXu.d.mts} +3 -2
  157. package/dist/next/client/{cusTypes-D8lhXGaX.d.ts → cusTypes-nWQygxXu.d.ts} +3 -2
  158. package/dist/next/client/{entTypes-Dq2mbehl.d.ts → entTypes-DDZyYuom.d.ts} +1 -1
  159. package/dist/next/client/{entTypes-B-2_9hzP.d.mts → entTypes-DusU3WqD.d.mts} +1 -1
  160. package/dist/next/client/hooks/useAutumn.d.mts +2 -2
  161. package/dist/next/client/hooks/useAutumn.d.ts +2 -2
  162. package/dist/next/client/hooks/useCustomer.d.mts +3 -3
  163. package/dist/next/client/hooks/useCustomer.d.ts +3 -3
  164. package/dist/next/client/hooks/useEntity.d.mts +3 -3
  165. package/dist/next/client/hooks/useEntity.d.ts +3 -3
  166. package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
  167. package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
  168. package/dist/next/client/types.d.mts +2 -2
  169. package/dist/next/client/types.d.ts +2 -2
  170. package/dist/next/index.d.mts +2 -2
  171. package/dist/next/index.d.ts +2 -2
  172. package/dist/next/server/auth/withNextAuth.d.mts +1 -1
  173. package/dist/next/server/auth/withNextAuth.d.ts +1 -1
  174. package/dist/next/server/componentActions.d.mts +1 -1
  175. package/dist/next/server/componentActions.d.ts +1 -1
  176. package/dist/next/server/cusActions.d.mts +3 -3
  177. package/dist/next/server/cusActions.d.ts +3 -3
  178. package/dist/next/server/{cusTypes-DhOYtM7H.d.mts → cusTypes-Tc189V9T.d.mts} +6 -1
  179. package/dist/next/server/{cusTypes-DhOYtM7H.d.ts → cusTypes-Tc189V9T.d.ts} +6 -1
  180. package/dist/next/server/genActions.d.mts +1 -1
  181. package/dist/next/server/genActions.d.ts +1 -1
  182. package/dist/sdk/index.d.mts +3 -2
  183. package/dist/sdk/index.d.ts +3 -2
  184. package/dist/styles/global.css +111 -116
  185. package/package.json +3 -24
  186. package/tsup.config.ts +0 -1
  187. package/dist/libraries/backend/{chunk-NW6B7QXB.mjs → chunk-YFWJ6E4U.mjs} +6 -6
  188. package/dist/libraries/react/{chunk-ALFXUHDD.mjs → chunk-CYW4LNFZ.mjs} +9 -9
@@ -1,4 +1,4 @@
1
- import { j as CheckFeatureResult, k as CheckProductResult } from './cusTypes-Bf1qr9iE.mjs';
1
+ import { j as CheckFeatureResult, k as CheckProductResult } from './cusTypes-CHcG59KG.mjs';
2
2
  import { z } from 'zod';
3
3
  import { A as AutumnError } from './error-DHbclCVh.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { j as CheckFeatureResult, k as CheckProductResult } from './cusTypes-Bf1qr9iE.js';
1
+ import { j as CheckFeatureResult, k as CheckProductResult } from './cusTypes-CHcG59KG.js';
2
2
  import { z } from 'zod';
3
3
  import { A as AutumnError } from './error-DHbclCVh.js';
4
4
 
@@ -181,6 +181,7 @@ interface CustomerProduct {
181
181
  status: ProductStatus;
182
182
  started_at: number;
183
183
  canceled_at: number | null;
184
+ version: number;
184
185
  subscription_ids?: string[] | null;
185
186
  current_period_start?: number | null;
186
187
  current_period_end?: number | null;
@@ -181,6 +181,7 @@ interface CustomerProduct {
181
181
  status: ProductStatus;
182
182
  started_at: number;
183
183
  canceled_at: number | null;
184
+ version: number;
184
185
  subscription_ids?: string[] | null;
185
186
  current_period_start?: number | null;
186
187
  current_period_end?: number | null;
@@ -1,3 +1,3 @@
1
1
  import 'react/jsx-runtime';
2
- export { A as AutumnProvider } from './AutumnProvider-CCYZC_bN.mjs';
2
+ export { A as AutumnProvider } from './AutumnProvider-Xl1mqxls.mjs';
3
3
  import 'zod';
@@ -1,3 +1,3 @@
1
1
  import 'react/jsx-runtime';
2
- export { A as AutumnProvider } from './AutumnProvider-CCYZC_bN.js';
2
+ export { A as AutumnProvider } from './AutumnProvider-Xl1mqxls.js';
3
3
  import 'zod';
@@ -1,6 +1,6 @@
1
- import { R as Result, a as AutumnPromise, b as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, g as AttachResult, d as CancelParams, e as CancelResult, C as CheckParams, T as TrackParams, c as TrackResult } from './clientGenTypes-9ngy1q97.mjs';
2
- import { e as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, P as Product } from './cusTypes-D8lhXGaX.mjs';
3
- import { E as Entity, D as DeleteEntityResult } from './entTypes-B-2_9hzP.mjs';
1
+ import { R as Result, a as AutumnPromise, b as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, g as AttachResult, d as CancelParams, e as CancelResult, C as CheckParams, T as TrackParams, c as TrackResult } from './clientGenTypes-tE8HbEdV.mjs';
2
+ import { e as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, P as Product } from './cusTypes-nWQygxXu.mjs';
3
+ import { E as Entity, D as DeleteEntityResult } from './entTypes-DusU3WqD.mjs';
4
4
  import { C as CreateEntityParams, G as GetEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from './clientEntTypes-BFkleT6a.mjs';
5
5
  import * as react from 'react';
6
6
  import { A as AutumnError } from './error-DHbclCVh.mjs';
@@ -73,15 +73,15 @@ declare class AutumnClient {
73
73
  freeTrial?: boolean | undefined;
74
74
  successUrl?: string | undefined;
75
75
  forceCheckout?: boolean | undefined;
76
- dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
76
+ dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
77
77
  entityData?: any;
78
78
  openInNewTab?: boolean | undefined;
79
79
  reward?: string | undefined;
80
80
  checkoutSessionParams?: Record<string, any> | undefined;
81
81
  }) => AutumnPromise<{
82
- customer_id: string;
83
82
  code: string;
84
83
  message: string;
84
+ customer_id: string;
85
85
  product_ids: string[];
86
86
  checkout_url?: string | undefined;
87
87
  customer_data?: any;
@@ -99,7 +99,7 @@ declare class AutumnClient {
99
99
  productId?: string | undefined;
100
100
  entityId?: string | undefined;
101
101
  featureId?: string | undefined;
102
- dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
102
+ dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
103
103
  entityData?: any;
104
104
  requiredBalance?: number | undefined;
105
105
  sendEvent?: boolean | undefined;
@@ -114,8 +114,8 @@ declare class AutumnClient {
114
114
  idempotencyKey?: string | undefined;
115
115
  }) => AutumnPromise<{
116
116
  id: string;
117
- customer_id: string;
118
117
  code: string;
118
+ customer_id: string;
119
119
  feature_id?: string | undefined;
120
120
  event_name?: string | undefined;
121
121
  }>;
@@ -1,6 +1,6 @@
1
- import { R as Result, a as AutumnPromise, b as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, g as AttachResult, d as CancelParams, e as CancelResult, C as CheckParams, T as TrackParams, c as TrackResult } from './clientGenTypes-CxB4go6q.js';
2
- import { e as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, P as Product } from './cusTypes-D8lhXGaX.js';
3
- import { E as Entity, D as DeleteEntityResult } from './entTypes-Dq2mbehl.js';
1
+ import { R as Result, a as AutumnPromise, b as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, g as AttachResult, d as CancelParams, e as CancelResult, C as CheckParams, T as TrackParams, c as TrackResult } from './clientGenTypes-Dx1TULjb.js';
2
+ import { e as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, P as Product } from './cusTypes-nWQygxXu.js';
3
+ import { E as Entity, D as DeleteEntityResult } from './entTypes-DDZyYuom.js';
4
4
  import { C as CreateEntityParams, G as GetEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from './clientEntTypes-BFkleT6a.js';
5
5
  import * as react from 'react';
6
6
  import { A as AutumnError } from './error-DHbclCVh.js';
@@ -73,15 +73,15 @@ declare class AutumnClient {
73
73
  freeTrial?: boolean | undefined;
74
74
  successUrl?: string | undefined;
75
75
  forceCheckout?: boolean | undefined;
76
- dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
76
+ dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
77
77
  entityData?: any;
78
78
  openInNewTab?: boolean | undefined;
79
79
  reward?: string | undefined;
80
80
  checkoutSessionParams?: Record<string, any> | undefined;
81
81
  }) => AutumnPromise<{
82
- customer_id: string;
83
82
  code: string;
84
83
  message: string;
84
+ customer_id: string;
85
85
  product_ids: string[];
86
86
  checkout_url?: string | undefined;
87
87
  customer_data?: any;
@@ -99,7 +99,7 @@ declare class AutumnClient {
99
99
  productId?: string | undefined;
100
100
  entityId?: string | undefined;
101
101
  featureId?: string | undefined;
102
- dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
102
+ dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
103
103
  entityData?: any;
104
104
  requiredBalance?: number | undefined;
105
105
  sendEvent?: boolean | undefined;
@@ -114,8 +114,8 @@ declare class AutumnClient {
114
114
  idempotencyKey?: string | undefined;
115
115
  }) => AutumnPromise<{
116
116
  id: string;
117
- customer_id: string;
118
117
  code: string;
118
+ customer_id: string;
119
119
  feature_id?: string | undefined;
120
120
  event_name?: string | undefined;
121
121
  }>;
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CustomerData } from './cusTypes-D8lhXGaX.mjs';
2
+ import { C as CustomerData } from './cusTypes-nWQygxXu.mjs';
3
3
  import 'zod';
4
4
 
5
5
  declare const NextAutumnProvider: ({ encryptedCustomerId, customerData, children, }: {
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CustomerData } from './cusTypes-D8lhXGaX.js';
2
+ import { C as CustomerData } from './cusTypes-nWQygxXu.js';
3
3
  import 'zod';
4
4
 
5
5
  declare const NextAutumnProvider: ({ encryptedCustomerId, customerData, children, }: {
@@ -1,4 +1,4 @@
1
- import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-D8lhXGaX.js';
1
+ import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-nWQygxXu.js';
2
2
  import { z } from 'zod';
3
3
  import { A as AutumnError } from './error-DHbclCVh.js';
4
4
  import * as react from 'react';
@@ -11,16 +11,16 @@ declare const AttachResultSchema: z.ZodObject<{
11
11
  message: z.ZodString;
12
12
  customer_data: z.ZodOptional<z.ZodAny>;
13
13
  }, "strip", z.ZodTypeAny, {
14
- customer_id: string;
15
14
  code: string;
16
15
  message: string;
16
+ customer_id: string;
17
17
  product_ids: string[];
18
18
  checkout_url?: string | undefined;
19
19
  customer_data?: any;
20
20
  }, {
21
- customer_id: string;
22
21
  code: string;
23
22
  message: string;
23
+ customer_id: string;
24
24
  product_ids: string[];
25
25
  checkout_url?: string | undefined;
26
26
  customer_data?: any;
@@ -48,14 +48,14 @@ declare const TrackResultSchema: z.ZodObject<{
48
48
  event_name: z.ZodOptional<z.ZodString>;
49
49
  }, "strip", z.ZodTypeAny, {
50
50
  id: string;
51
- customer_id: string;
52
51
  code: string;
52
+ customer_id: string;
53
53
  feature_id?: string | undefined;
54
54
  event_name?: string | undefined;
55
55
  }, {
56
56
  id: string;
57
- customer_id: string;
58
57
  code: string;
58
+ customer_id: string;
59
59
  feature_id?: string | undefined;
60
60
  event_name?: string | undefined;
61
61
  }>;
@@ -114,7 +114,7 @@ declare const AttachParamsSchema: z.ZodObject<{
114
114
  freeTrial?: boolean | undefined;
115
115
  successUrl?: string | undefined;
116
116
  forceCheckout?: boolean | undefined;
117
- dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
117
+ dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
118
118
  entityData?: any;
119
119
  openInNewTab?: boolean | undefined;
120
120
  reward?: string | undefined;
@@ -131,7 +131,7 @@ declare const AttachParamsSchema: z.ZodObject<{
131
131
  freeTrial?: boolean | undefined;
132
132
  successUrl?: string | undefined;
133
133
  forceCheckout?: boolean | undefined;
134
- dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
134
+ dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
135
135
  entityData?: any;
136
136
  openInNewTab?: boolean | undefined;
137
137
  reward?: string | undefined;
@@ -165,7 +165,7 @@ declare const CheckParamsSchema: z.ZodObject<{
165
165
  productId?: string | undefined;
166
166
  entityId?: string | undefined;
167
167
  featureId?: string | undefined;
168
- dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
168
+ dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
169
169
  entityData?: any;
170
170
  requiredBalance?: number | undefined;
171
171
  sendEvent?: boolean | undefined;
@@ -174,7 +174,7 @@ declare const CheckParamsSchema: z.ZodObject<{
174
174
  productId?: string | undefined;
175
175
  entityId?: string | undefined;
176
176
  featureId?: string | undefined;
177
- dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
177
+ dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
178
178
  entityData?: any;
179
179
  requiredBalance?: number | undefined;
180
180
  sendEvent?: boolean | undefined;
@@ -1,4 +1,4 @@
1
- import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-D8lhXGaX.mjs';
1
+ import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-nWQygxXu.mjs';
2
2
  import { z } from 'zod';
3
3
  import { A as AutumnError } from './error-DHbclCVh.mjs';
4
4
  import * as react from 'react';
@@ -11,16 +11,16 @@ declare const AttachResultSchema: z.ZodObject<{
11
11
  message: z.ZodString;
12
12
  customer_data: z.ZodOptional<z.ZodAny>;
13
13
  }, "strip", z.ZodTypeAny, {
14
- customer_id: string;
15
14
  code: string;
16
15
  message: string;
16
+ customer_id: string;
17
17
  product_ids: string[];
18
18
  checkout_url?: string | undefined;
19
19
  customer_data?: any;
20
20
  }, {
21
- customer_id: string;
22
21
  code: string;
23
22
  message: string;
23
+ customer_id: string;
24
24
  product_ids: string[];
25
25
  checkout_url?: string | undefined;
26
26
  customer_data?: any;
@@ -48,14 +48,14 @@ declare const TrackResultSchema: z.ZodObject<{
48
48
  event_name: z.ZodOptional<z.ZodString>;
49
49
  }, "strip", z.ZodTypeAny, {
50
50
  id: string;
51
- customer_id: string;
52
51
  code: string;
52
+ customer_id: string;
53
53
  feature_id?: string | undefined;
54
54
  event_name?: string | undefined;
55
55
  }, {
56
56
  id: string;
57
- customer_id: string;
58
57
  code: string;
58
+ customer_id: string;
59
59
  feature_id?: string | undefined;
60
60
  event_name?: string | undefined;
61
61
  }>;
@@ -114,7 +114,7 @@ declare const AttachParamsSchema: z.ZodObject<{
114
114
  freeTrial?: boolean | undefined;
115
115
  successUrl?: string | undefined;
116
116
  forceCheckout?: boolean | undefined;
117
- dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
117
+ dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
118
118
  entityData?: any;
119
119
  openInNewTab?: boolean | undefined;
120
120
  reward?: string | undefined;
@@ -131,7 +131,7 @@ declare const AttachParamsSchema: z.ZodObject<{
131
131
  freeTrial?: boolean | undefined;
132
132
  successUrl?: string | undefined;
133
133
  forceCheckout?: boolean | undefined;
134
- dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
134
+ dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
135
135
  entityData?: any;
136
136
  openInNewTab?: boolean | undefined;
137
137
  reward?: string | undefined;
@@ -165,7 +165,7 @@ declare const CheckParamsSchema: z.ZodObject<{
165
165
  productId?: string | undefined;
166
166
  entityId?: string | undefined;
167
167
  featureId?: string | undefined;
168
- dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
168
+ dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
169
169
  entityData?: any;
170
170
  requiredBalance?: number | undefined;
171
171
  sendEvent?: boolean | undefined;
@@ -174,7 +174,7 @@ declare const CheckParamsSchema: z.ZodObject<{
174
174
  productId?: string | undefined;
175
175
  entityId?: string | undefined;
176
176
  featureId?: string | undefined;
177
- dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
177
+ dialog?: ((args_0: any, ...args: unknown[]) => react.ReactNode | JSX.Element) | undefined;
178
178
  entityData?: any;
179
179
  requiredBalance?: number | undefined;
180
180
  sendEvent?: boolean | undefined;
@@ -1,7 +1,7 @@
1
1
  import { AutumnClientError, PricingTableProduct } from './types.mjs';
2
- import './cusTypes-D8lhXGaX.mjs';
2
+ import './cusTypes-nWQygxXu.mjs';
3
3
  import 'zod';
4
- import './entTypes-B-2_9hzP.mjs';
4
+ import './entTypes-DusU3WqD.mjs';
5
5
 
6
6
  declare const toClientErrorResponse: (error: any) => {
7
7
  data: null;
@@ -1,7 +1,7 @@
1
1
  import { AutumnClientError, PricingTableProduct } from './types.js';
2
- import './cusTypes-D8lhXGaX.js';
2
+ import './cusTypes-nWQygxXu.js';
3
3
  import 'zod';
4
- import './entTypes-Dq2mbehl.js';
4
+ import './entTypes-DDZyYuom.js';
5
5
 
6
6
  declare const toClientErrorResponse: (error: any) => {
7
7
  data: null;
@@ -180,6 +180,7 @@ interface CustomerProduct {
180
180
  status: ProductStatus;
181
181
  started_at: number;
182
182
  canceled_at: number | null;
183
+ version: number;
183
184
  subscription_ids?: string[] | null;
184
185
  current_period_start?: number | null;
185
186
  current_period_end?: number | null;
@@ -216,15 +217,15 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
216
217
  expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
217
218
  }, "strip", z.ZodTypeAny, {
218
219
  id?: string | null | undefined;
219
- name?: string | null | undefined;
220
220
  email?: string | null | undefined;
221
+ name?: string | null | undefined;
221
222
  fingerprint?: string | null | undefined;
222
223
  metadata?: Record<string, any> | undefined;
223
224
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
224
225
  }, {
225
226
  id?: string | null | undefined;
226
- name?: string | null | undefined;
227
227
  email?: string | null | undefined;
228
+ name?: string | null | undefined;
228
229
  fingerprint?: string | null | undefined;
229
230
  metadata?: Record<string, any> | undefined;
230
231
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
@@ -180,6 +180,7 @@ interface CustomerProduct {
180
180
  status: ProductStatus;
181
181
  started_at: number;
182
182
  canceled_at: number | null;
183
+ version: number;
183
184
  subscription_ids?: string[] | null;
184
185
  current_period_start?: number | null;
185
186
  current_period_end?: number | null;
@@ -216,15 +217,15 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
216
217
  expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
217
218
  }, "strip", z.ZodTypeAny, {
218
219
  id?: string | null | undefined;
219
- name?: string | null | undefined;
220
220
  email?: string | null | undefined;
221
+ name?: string | null | undefined;
221
222
  fingerprint?: string | null | undefined;
222
223
  metadata?: Record<string, any> | undefined;
223
224
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
224
225
  }, {
225
226
  id?: string | null | undefined;
226
- name?: string | null | undefined;
227
227
  email?: string | null | undefined;
228
+ name?: string | null | undefined;
228
229
  fingerprint?: string | null | undefined;
229
230
  metadata?: Record<string, any> | undefined;
230
231
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
@@ -1,4 +1,4 @@
1
- import { b as CustomerProduct, c as CustomerFeature, d as CustomerInvoice } from './cusTypes-D8lhXGaX.js';
1
+ import { b as CustomerProduct, c as CustomerFeature, d as CustomerInvoice } from './cusTypes-nWQygxXu.js';
2
2
 
3
3
  type EntityExpandOption = "invoices";
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as CustomerProduct, c as CustomerFeature, d as CustomerInvoice } from './cusTypes-D8lhXGaX.mjs';
1
+ import { b as CustomerProduct, c as CustomerFeature, d as CustomerInvoice } from './cusTypes-nWQygxXu.mjs';
2
2
 
3
3
  type EntityExpandOption = "invoices";
4
4
 
@@ -1,5 +1,5 @@
1
- import { A as AttachParams, C as CheckParams, a as AutumnPromise, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult } from '../clientGenTypes-9ngy1q97.mjs';
2
- import { B as BillingPortalResult } from '../cusTypes-D8lhXGaX.mjs';
1
+ import { A as AttachParams, C as CheckParams, a as AutumnPromise, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult } from '../clientGenTypes-tE8HbEdV.mjs';
2
+ import { B as BillingPortalResult } from '../cusTypes-nWQygxXu.mjs';
3
3
  import 'zod';
4
4
  import '../error-DHbclCVh.mjs';
5
5
  import 'react';
@@ -1,5 +1,5 @@
1
- import { A as AttachParams, C as CheckParams, a as AutumnPromise, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult } from '../clientGenTypes-CxB4go6q.js';
2
- import { B as BillingPortalResult } from '../cusTypes-D8lhXGaX.js';
1
+ import { A as AttachParams, C as CheckParams, a as AutumnPromise, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult } from '../clientGenTypes-Dx1TULjb.js';
2
+ import { B as BillingPortalResult } from '../cusTypes-nWQygxXu.js';
3
3
  import 'zod';
4
4
  import '../error-DHbclCVh.js';
5
5
  import 'react';
@@ -1,7 +1,7 @@
1
1
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
2
- import { A as AttachParams, a as AutumnPromise, g as AttachResult, C as CheckParams, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams } from '../clientGenTypes-9ngy1q97.mjs';
3
- import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-D8lhXGaX.mjs';
4
- import { E as Entity } from '../entTypes-B-2_9hzP.mjs';
2
+ import { A as AttachParams, a as AutumnPromise, g as AttachResult, C as CheckParams, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams } from '../clientGenTypes-tE8HbEdV.mjs';
3
+ import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-nWQygxXu.mjs';
4
+ import { E as Entity } from '../entTypes-DusU3WqD.mjs';
5
5
  import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.mjs';
6
6
  import { z } from 'zod';
7
7
  import { SWRConfiguration } from 'swr';
@@ -1,7 +1,7 @@
1
1
  import { A as AutumnError } from '../error-DHbclCVh.js';
2
- import { A as AttachParams, a as AutumnPromise, g as AttachResult, C as CheckParams, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams } from '../clientGenTypes-CxB4go6q.js';
3
- import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-D8lhXGaX.js';
4
- import { E as Entity } from '../entTypes-Dq2mbehl.js';
2
+ import { A as AttachParams, a as AutumnPromise, g as AttachResult, C as CheckParams, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams } from '../clientGenTypes-Dx1TULjb.js';
3
+ import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-nWQygxXu.js';
4
+ import { E as Entity } from '../entTypes-DDZyYuom.js';
5
5
  import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.js';
6
6
  import { z } from 'zod';
7
7
  import { SWRConfiguration } from 'swr';
@@ -1,8 +1,8 @@
1
- import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, T as TrackParams } from '../clientGenTypes-9ngy1q97.mjs';
2
- import { G as GetEntityParams, E as Entity } from '../entTypes-B-2_9hzP.mjs';
1
+ import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, T as TrackParams } from '../clientGenTypes-tE8HbEdV.mjs';
2
+ import { G as GetEntityParams, E as Entity } from '../entTypes-DusU3WqD.mjs';
3
3
  import { A as AllowedParams } from '../handleAllowed-B8TBAzfI.mjs';
4
4
  import * as swr from 'swr';
5
- import '../cusTypes-D8lhXGaX.mjs';
5
+ import '../cusTypes-nWQygxXu.mjs';
6
6
  import 'zod';
7
7
  import '../error-DHbclCVh.mjs';
8
8
  import 'react';
@@ -1,8 +1,8 @@
1
- import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, T as TrackParams } from '../clientGenTypes-CxB4go6q.js';
2
- import { G as GetEntityParams, E as Entity } from '../entTypes-Dq2mbehl.js';
1
+ import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, T as TrackParams } from '../clientGenTypes-Dx1TULjb.js';
2
+ import { G as GetEntityParams, E as Entity } from '../entTypes-DDZyYuom.js';
3
3
  import { A as AllowedParams } from '../handleAllowed-B8TBAzfI.js';
4
4
  import * as swr from 'swr';
5
- import '../cusTypes-D8lhXGaX.js';
5
+ import '../cusTypes-nWQygxXu.js';
6
6
  import 'zod';
7
7
  import '../error-DHbclCVh.js';
8
8
  import 'react';
@@ -1,6 +1,6 @@
1
1
  import * as swr from 'swr';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
3
- import { P as Product } from '../cusTypes-D8lhXGaX.mjs';
3
+ import { P as Product } from '../cusTypes-nWQygxXu.mjs';
4
4
  import 'zod';
5
5
 
6
6
  interface ProductDetails {
@@ -1,6 +1,6 @@
1
1
  import * as swr from 'swr';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.js';
3
- import { P as Product } from '../cusTypes-D8lhXGaX.js';
3
+ import { P as Product } from '../cusTypes-nWQygxXu.js';
4
4
  import 'zod';
5
5
 
6
6
  interface ProductDetails {
@@ -1,5 +1,5 @@
1
- import { C as CustomerData, a as Customer } from './cusTypes-D8lhXGaX.mjs';
2
- import { E as Entity } from './entTypes-B-2_9hzP.mjs';
1
+ import { C as CustomerData, a as Customer } from './cusTypes-nWQygxXu.mjs';
2
+ import { E as Entity } from './entTypes-DusU3WqD.mjs';
3
3
  import 'zod';
4
4
 
5
5
  interface ProductDetails {
@@ -1,5 +1,5 @@
1
- import { C as CustomerData, a as Customer } from './cusTypes-D8lhXGaX.js';
2
- import { E as Entity } from './entTypes-Dq2mbehl.js';
1
+ import { C as CustomerData, a as Customer } from './cusTypes-nWQygxXu.js';
2
+ import { E as Entity } from './entTypes-DDZyYuom.js';
3
3
  import 'zod';
4
4
 
5
5
  interface ProductDetails {
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CheckFeatureResult, a as CheckProductResult, P as ProductItem, b as ProductScenario, c as CustomerProduct, d as CustomerFeature, e as CustomerInvoice, f as CustomerData, g as CreateCustomerParams, h as Customer, B as BillingPortalResult, i as Product, j as CustomerExpandOption } from './AutumnProvider-CCYZC_bN.mjs';
3
- export { A as AutumnProvider } from './AutumnProvider-CCYZC_bN.mjs';
2
+ import { C as CheckFeatureResult, a as CheckProductResult, P as ProductItem, b as ProductScenario, c as CustomerProduct, d as CustomerFeature, e as CustomerInvoice, f as CustomerData, g as CreateCustomerParams, h as Customer, B as BillingPortalResult, i as Product, j as CustomerExpandOption } from './AutumnProvider-Xl1mqxls.mjs';
3
+ export { A as AutumnProvider } from './AutumnProvider-Xl1mqxls.mjs';
4
4
  import { z } from 'zod';
5
5
  import * as swr from 'swr';
6
6
  import { SWRConfiguration } from 'swr';
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CheckFeatureResult, a as CheckProductResult, P as ProductItem, b as ProductScenario, c as CustomerProduct, d as CustomerFeature, e as CustomerInvoice, f as CustomerData, g as CreateCustomerParams, h as Customer, B as BillingPortalResult, i as Product, j as CustomerExpandOption } from './AutumnProvider-CCYZC_bN.js';
3
- export { A as AutumnProvider } from './AutumnProvider-CCYZC_bN.js';
2
+ import { C as CheckFeatureResult, a as CheckProductResult, P as ProductItem, b as ProductScenario, c as CustomerProduct, d as CustomerFeature, e as CustomerInvoice, f as CustomerData, g as CreateCustomerParams, h as Customer, B as BillingPortalResult, i as Product, j as CustomerExpandOption } from './AutumnProvider-Xl1mqxls.js';
3
+ export { A as AutumnProvider } from './AutumnProvider-Xl1mqxls.js';
4
4
  import { z } from 'zod';
5
5
  import * as swr from 'swr';
6
6
  import { SWRConfiguration } from 'swr';
@@ -1,4 +1,4 @@
1
- import { C as CustomerData } from '../cusTypes-DhOYtM7H.mjs';
1
+ import { C as CustomerData } from '../cusTypes-Tc189V9T.mjs';
2
2
  import 'zod';
3
3
 
4
4
  declare const withAuth: <T extends {
@@ -1,4 +1,4 @@
1
- import { C as CustomerData } from '../cusTypes-DhOYtM7H.js';
1
+ import { C as CustomerData } from '../cusTypes-Tc189V9T.js';
2
2
  import 'zod';
3
3
 
4
4
  declare const withAuth: <T extends {
@@ -1,4 +1,4 @@
1
- import { C as CustomerData } from './cusTypes-DhOYtM7H.mjs';
1
+ import { C as CustomerData } from './cusTypes-Tc189V9T.mjs';
2
2
  import 'zod';
3
3
 
4
4
  declare const getPricingTableAction: (args: Omit<{
@@ -1,4 +1,4 @@
1
- import { C as CustomerData } from './cusTypes-DhOYtM7H.js';
1
+ import { C as CustomerData } from './cusTypes-Tc189V9T.js';
2
2
  import 'zod';
3
3
 
4
4
  declare const getPricingTableAction: (args: Omit<{
@@ -1,4 +1,4 @@
1
- import { C as CustomerData, a as CheckFeatureResult, b as CheckProductResult, G as GetCustomerParams, c as Customer, d as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, P as Product, e as CreateProductParams, L as ListProductsParams, f as CustomerProduct, g as CustomerFeature, h as CustomerInvoice } from './cusTypes-DhOYtM7H.mjs';
1
+ import { C as CustomerData, a as CheckFeatureResult, b as CheckProductResult, G as GetCustomerParams, c as Customer, d as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, e as BillingPortalResult, P as Product, f as CreateProductParams, L as ListProductsParams, g as CustomerProduct, h as CustomerFeature, i as CustomerInvoice } from './cusTypes-Tc189V9T.mjs';
2
2
  import { z } from 'zod';
3
3
  import { R as Result, A as AutumnError } from './response-eH4S4sg0.mjs';
4
4
 
@@ -198,7 +198,7 @@ declare class Autumn {
198
198
  create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
199
199
  update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
200
200
  delete: (id: string) => Promise<Result<Customer, AutumnError>>;
201
- billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResponse, AutumnError>>;
201
+ billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
202
202
  };
203
203
  static products: {
204
204
  get: (id: string) => Promise<Result<Product, AutumnError>>;
@@ -221,7 +221,7 @@ declare class Autumn {
221
221
  create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
222
222
  update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
223
223
  delete: (id: string) => Promise<Result<Customer, AutumnError>>;
224
- billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResponse, AutumnError>>;
224
+ billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
225
225
  };
226
226
  products: {
227
227
  get: (id: string) => Promise<Result<Product, AutumnError>>;
@@ -1,4 +1,4 @@
1
- import { C as CustomerData, a as CheckFeatureResult, b as CheckProductResult, G as GetCustomerParams, c as Customer, d as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, P as Product, e as CreateProductParams, L as ListProductsParams, f as CustomerProduct, g as CustomerFeature, h as CustomerInvoice } from './cusTypes-DhOYtM7H.js';
1
+ import { C as CustomerData, a as CheckFeatureResult, b as CheckProductResult, G as GetCustomerParams, c as Customer, d as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, e as BillingPortalResult, P as Product, f as CreateProductParams, L as ListProductsParams, g as CustomerProduct, h as CustomerFeature, i as CustomerInvoice } from './cusTypes-Tc189V9T.js';
2
2
  import { z } from 'zod';
3
3
  import { R as Result, A as AutumnError } from './response-eH4S4sg0.js';
4
4
 
@@ -198,7 +198,7 @@ declare class Autumn {
198
198
  create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
199
199
  update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
200
200
  delete: (id: string) => Promise<Result<Customer, AutumnError>>;
201
- billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResponse, AutumnError>>;
201
+ billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
202
202
  };
203
203
  static products: {
204
204
  get: (id: string) => Promise<Result<Product, AutumnError>>;
@@ -221,7 +221,7 @@ declare class Autumn {
221
221
  create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
222
222
  update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
223
223
  delete: (id: string) => Promise<Result<Customer, AutumnError>>;
224
- billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResponse, AutumnError>>;
224
+ billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
225
225
  };
226
226
  products: {
227
227
  get: (id: string) => Promise<Result<Product, AutumnError>>;