autumn-js 0.1.10 → 0.1.11

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 (246) hide show
  1. package/dist/libraries/backend/better-auth.d.mts +54 -228
  2. package/dist/libraries/backend/better-auth.d.ts +54 -228
  3. package/dist/libraries/backend/better-auth.js +150 -150
  4. package/dist/libraries/backend/better-auth.mjs +8 -8
  5. package/dist/libraries/backend/{chunk-274BIVOC.mjs → chunk-5DDCZMDB.mjs} +1 -1
  6. package/dist/libraries/backend/{chunk-EJBD5GH7.mjs → chunk-7K3RATTK.mjs} +1 -1
  7. package/dist/libraries/backend/{chunk-I43OU64D.mjs → chunk-EW2R7722.mjs} +1 -1
  8. package/dist/libraries/backend/{chunk-KY3RLTE7.mjs → chunk-NAP2URIW.mjs} +13 -13
  9. package/dist/libraries/backend/{chunk-YN334O74.mjs → chunk-P3ARLB2M.mjs} +1 -1
  10. package/dist/libraries/backend/{chunk-7WWKVE4J.mjs → chunk-RAHKKJED.mjs} +6 -6
  11. package/dist/libraries/backend/{chunk-JN4ULI5R.mjs → chunk-VNJ3MFJE.mjs} +1 -1
  12. package/dist/libraries/backend/convex.js +146 -146
  13. package/dist/libraries/backend/convex.mjs +7 -7
  14. package/dist/libraries/backend/elysia.js +146 -146
  15. package/dist/libraries/backend/elysia.mjs +7 -7
  16. package/dist/libraries/backend/express.d.mts +2 -1
  17. package/dist/libraries/backend/express.d.ts +2 -1
  18. package/dist/libraries/backend/express.js +146 -146
  19. package/dist/libraries/backend/express.mjs +7 -7
  20. package/dist/libraries/backend/fastify.js +146 -146
  21. package/dist/libraries/backend/fastify.mjs +7 -7
  22. package/dist/libraries/backend/hono.js +146 -146
  23. package/dist/libraries/backend/hono.mjs +7 -7
  24. package/dist/libraries/backend/index.d.mts +2 -1
  25. package/dist/libraries/backend/index.d.ts +2 -1
  26. package/dist/libraries/backend/index.js +146 -146
  27. package/dist/libraries/backend/index.mjs +7 -7
  28. package/dist/libraries/backend/next.js +146 -146
  29. package/dist/libraries/backend/next.mjs +7 -7
  30. package/dist/libraries/backend/react-router.js +146 -146
  31. package/dist/libraries/backend/react-router.mjs +7 -7
  32. package/dist/libraries/backend/{referralTypes-DpLmOy8-.d.mts → referralTypes-C1eZ8cjO.d.mts} +79 -458
  33. package/dist/libraries/backend/{referralTypes-nXl36Opw.d.ts → referralTypes-FlI0fYwz.d.ts} +79 -458
  34. package/dist/libraries/backend/remix_dep.js +146 -146
  35. package/dist/libraries/backend/remix_dep.mjs +7 -7
  36. package/dist/libraries/backend/routes/backendRouter.js +146 -146
  37. package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
  38. package/dist/libraries/backend/routes/entityRoutes.js +146 -146
  39. package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
  40. package/dist/libraries/backend/routes/genRoutes.js +146 -146
  41. package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
  42. package/dist/libraries/backend/routes/productRoutes.js +146 -146
  43. package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
  44. package/dist/libraries/backend/routes/referralRoutes.js +146 -146
  45. package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
  46. package/dist/libraries/backend/schemas/zod.d.mts +15 -153
  47. package/dist/libraries/backend/schemas/zod.d.ts +15 -153
  48. package/dist/libraries/backend/schemas/zod.js +43 -43
  49. package/dist/libraries/backend/schemas/zod.mjs +3 -3
  50. package/dist/libraries/backend/supabase.js +146 -146
  51. package/dist/libraries/backend/supabase.mjs +7 -7
  52. package/dist/libraries/backend/tanstack.js +146 -146
  53. package/dist/libraries/backend/tanstack.mjs +7 -7
  54. package/dist/libraries/backend/utils/backendRes.js +146 -146
  55. package/dist/libraries/backend/utils/backendRes.mjs +1 -1
  56. package/dist/libraries/backend/utils/withAuth.d.mts +2 -1
  57. package/dist/libraries/backend/utils/withAuth.d.ts +2 -1
  58. package/dist/libraries/backend/utils/withAuth.js +146 -146
  59. package/dist/libraries/backend/utils/withAuth.mjs +2 -2
  60. package/dist/libraries/react/AutumnContext.d.mts +7 -7
  61. package/dist/libraries/react/AutumnContext.d.ts +7 -7
  62. package/dist/libraries/react/AutumnContext.js +146 -146
  63. package/dist/libraries/react/AutumnContext.mjs +4 -4
  64. package/dist/libraries/react/BaseAutumnProvider.d.mts +7 -7
  65. package/dist/libraries/react/BaseAutumnProvider.d.ts +7 -7
  66. package/dist/libraries/react/BaseAutumnProvider.js +146 -146
  67. package/dist/libraries/react/BaseAutumnProvider.mjs +9 -9
  68. package/dist/libraries/react/{ReactAutumnClient-BozBPLWS.d.ts → ReactAutumnClient-CfDtucnL.d.ts} +21 -21
  69. package/dist/libraries/react/{ReactAutumnClient-CDp4DLo0.d.mts → ReactAutumnClient-IFdMWiu5.d.mts} +21 -21
  70. package/dist/libraries/react/ReactAutumnProvider.d.mts +3 -3
  71. package/dist/libraries/react/ReactAutumnProvider.d.ts +3 -3
  72. package/dist/libraries/react/ReactAutumnProvider.js +146 -146
  73. package/dist/libraries/react/ReactAutumnProvider.mjs +10 -10
  74. package/dist/libraries/react/attachTypes-C5gcbNrS.d.mts +45 -0
  75. package/dist/libraries/react/attachTypes-CLK4jfuj.d.ts +45 -0
  76. package/dist/libraries/react/{chunk-UQ5HI732.mjs → chunk-2ENHPIYQ.mjs} +3 -3
  77. package/dist/libraries/react/{chunk-JJVQIA5V.mjs → chunk-3MF54MDU.mjs} +1 -1
  78. package/dist/libraries/react/{chunk-CPN2LD2I.mjs → chunk-4NZ7ML7V.mjs} +2 -2
  79. package/dist/libraries/react/{chunk-QZPMYB2V.mjs → chunk-67RWFVWN.mjs} +2 -2
  80. package/dist/libraries/react/{chunk-URFTKUL2.mjs → chunk-6D6TYTTO.mjs} +1 -1
  81. package/dist/libraries/react/{chunk-E2BEY4ZP.mjs → chunk-FDNQ6GRK.mjs} +1 -1
  82. package/dist/libraries/react/{chunk-4EPRIJNB.mjs → chunk-JHFJKAXG.mjs} +453 -455
  83. package/dist/libraries/react/{chunk-XTONWQ65.mjs → chunk-KMYL54B4.mjs} +1 -1
  84. package/dist/libraries/react/{chunk-IRTAGYDD.mjs → chunk-KP2Q65Y3.mjs} +2 -2
  85. package/dist/libraries/react/{chunk-3YIV3N5Y.mjs → chunk-OMJJLT2Q.mjs} +1 -1
  86. package/dist/libraries/react/{chunk-DRUVAAUW.mjs → chunk-TTLL63A4.mjs} +3 -3
  87. package/dist/libraries/react/{chunk-KG2NPWAE.mjs → chunk-U3OQJXCW.mjs} +4 -4
  88. package/dist/libraries/react/{chunk-7LOW3KZ3.mjs → chunk-VZY225C6.mjs} +2 -2
  89. package/dist/libraries/react/{chunk-JIWMNR2E.mjs → chunk-WYQMHQUE.mjs} +13 -13
  90. package/dist/libraries/react/{chunk-TBRYCVBL.mjs → chunk-XK3AXQED.mjs} +3 -3
  91. package/dist/libraries/react/{chunk-MKP43WD6.mjs → chunk-YHT2JUXO.mjs} +1 -1
  92. package/dist/libraries/react/client/ReactAutumnClient.d.mts +7 -7
  93. package/dist/libraries/react/client/ReactAutumnClient.d.ts +7 -7
  94. package/dist/libraries/react/client/ReactAutumnClient.js +146 -146
  95. package/dist/libraries/react/client/ReactAutumnClient.mjs +3 -3
  96. package/dist/libraries/react/client/clientCompMethods.d.mts +7 -7
  97. package/dist/libraries/react/client/clientCompMethods.d.ts +7 -7
  98. package/dist/libraries/react/client/clientCusMethods.d.mts +7 -7
  99. package/dist/libraries/react/client/clientCusMethods.d.ts +7 -7
  100. package/dist/libraries/react/client/clientEntityMethods.d.mts +7 -7
  101. package/dist/libraries/react/client/clientEntityMethods.d.ts +7 -7
  102. package/dist/libraries/react/client/clientGenMethods.d.mts +7 -7
  103. package/dist/libraries/react/client/clientGenMethods.d.ts +7 -7
  104. package/dist/libraries/react/client/clientProdMethods.d.mts +7 -7
  105. package/dist/libraries/react/client/clientProdMethods.d.ts +7 -7
  106. package/dist/libraries/react/client/clientReferralMethods.d.mts +7 -7
  107. package/dist/libraries/react/client/clientReferralMethods.d.ts +7 -7
  108. package/dist/libraries/react/client/types/clientAttachTypes.d.mts +7 -88
  109. package/dist/libraries/react/client/types/clientAttachTypes.d.ts +7 -88
  110. package/dist/libraries/react/client/types/clientAttachTypes.js +28 -28
  111. package/dist/libraries/react/client/types/clientAttachTypes.mjs +4 -4
  112. package/dist/libraries/react/client/types/clientGenTypes.d.mts +13 -53
  113. package/dist/libraries/react/client/types/clientGenTypes.d.ts +13 -53
  114. package/dist/libraries/react/client/types/clientGenTypes.js +169 -169
  115. package/dist/libraries/react/client/types/clientGenTypes.mjs +2 -2
  116. package/dist/libraries/react/client/types/clientReferralTypes.d.mts +3 -11
  117. package/dist/libraries/react/client/types/clientReferralTypes.d.ts +3 -11
  118. package/dist/libraries/react/client/types/clientReferralTypes.js +5 -5
  119. package/dist/libraries/react/client/types/clientReferralTypes.mjs +1 -1
  120. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.mts +3 -3
  121. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.ts +3 -3
  122. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +146 -146
  123. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +20 -20
  124. package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.mts +3 -3
  125. package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.ts +3 -3
  126. package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.mts +2 -2
  127. package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.ts +2 -2
  128. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.js +146 -146
  129. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +20 -20
  130. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +2 -2
  131. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +2 -2
  132. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +2 -2
  133. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +2 -2
  134. package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +146 -146
  135. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +20 -20
  136. package/dist/libraries/react/components/ui/button.d.mts +1 -1
  137. package/dist/libraries/react/components/ui/button.d.ts +1 -1
  138. package/dist/libraries/react/cusTypes-CBapqjzm.d.mts +111 -0
  139. package/dist/libraries/react/cusTypes-D13MXEN7.d.ts +111 -0
  140. package/dist/libraries/react/{entTypes-ItJ8BoHV.d.mts → entTypes-C1bM1Zpv.d.mts} +1 -1
  141. package/dist/libraries/react/{entTypes-Byz3wYbQ.d.ts → entTypes-DbIrfEpl.d.ts} +1 -1
  142. package/dist/libraries/react/{genTypes-EyxQImzh.d.ts → genTypes-C_ilxndU.d.mts} +4 -24
  143. package/dist/libraries/react/{genTypes-DSvR32on.d.mts → genTypes-DjcQWIOM.d.ts} +4 -24
  144. package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +7 -7
  145. package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +7 -7
  146. package/dist/libraries/react/hooks/helpers/handleCheck.js +146 -146
  147. package/dist/libraries/react/hooks/helpers/handleCheck.mjs +2 -2
  148. package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +9 -9
  149. package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +9 -9
  150. package/dist/libraries/react/hooks/helpers/useAutumnBase.js +146 -146
  151. package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +3 -3
  152. package/dist/libraries/react/hooks/useAnalytics.d.mts +3 -3
  153. package/dist/libraries/react/hooks/useAnalytics.d.ts +3 -3
  154. package/dist/libraries/react/hooks/useAnalytics.js +146 -146
  155. package/dist/libraries/react/hooks/useAnalytics.mjs +5 -5
  156. package/dist/libraries/react/hooks/useCustomer.d.mts +7 -7
  157. package/dist/libraries/react/hooks/useCustomer.d.ts +7 -7
  158. package/dist/libraries/react/hooks/useCustomer.js +146 -146
  159. package/dist/libraries/react/hooks/useCustomer.mjs +9 -9
  160. package/dist/libraries/react/hooks/useCustomerBase.d.mts +7 -7
  161. package/dist/libraries/react/hooks/useCustomerBase.d.ts +7 -7
  162. package/dist/libraries/react/hooks/useCustomerBase.js +146 -146
  163. package/dist/libraries/react/hooks/useCustomerBase.mjs +8 -8
  164. package/dist/libraries/react/hooks/useEntity.d.mts +10 -10
  165. package/dist/libraries/react/hooks/useEntity.d.ts +10 -10
  166. package/dist/libraries/react/hooks/useEntity.js +146 -146
  167. package/dist/libraries/react/hooks/useEntity.mjs +9 -9
  168. package/dist/libraries/react/hooks/useEntityBase.d.mts +12 -12
  169. package/dist/libraries/react/hooks/useEntityBase.d.ts +12 -12
  170. package/dist/libraries/react/hooks/useEntityBase.js +146 -146
  171. package/dist/libraries/react/hooks/useEntityBase.mjs +8 -8
  172. package/dist/libraries/react/hooks/usePaywall.d.mts +2 -2
  173. package/dist/libraries/react/hooks/usePaywall.d.ts +2 -2
  174. package/dist/libraries/react/hooks/usePaywall.js +146 -146
  175. package/dist/libraries/react/hooks/usePaywall.mjs +5 -5
  176. package/dist/libraries/react/hooks/usePricingTable.d.mts +2 -2
  177. package/dist/libraries/react/hooks/usePricingTable.d.ts +2 -2
  178. package/dist/libraries/react/hooks/usePricingTable.js +146 -146
  179. package/dist/libraries/react/hooks/usePricingTable.mjs +6 -6
  180. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +7 -7
  181. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +7 -7
  182. package/dist/libraries/react/hooks/usePricingTableBase.js +146 -146
  183. package/dist/libraries/react/hooks/usePricingTableBase.mjs +2 -2
  184. package/dist/libraries/react/hooks/useProductsBase.d.mts +7 -7
  185. package/dist/libraries/react/hooks/useProductsBase.d.ts +7 -7
  186. package/dist/libraries/react/index.d.mts +44 -396
  187. package/dist/libraries/react/index.d.ts +44 -396
  188. package/dist/libraries/react/index.js +146 -146
  189. package/dist/libraries/react/index.mjs +13 -13
  190. package/dist/libraries/react/{prodTypes-Bmoibf-M.d.ts → prodTypes-B8NdKyKo.d.mts} +8 -91
  191. package/dist/libraries/react/{prodTypes-Bmoibf-M.d.mts → prodTypes-B8NdKyKo.d.ts} +8 -91
  192. package/dist/next/AutumnProvider.d.mts +2 -10
  193. package/dist/next/AutumnProvider.d.ts +2 -10
  194. package/dist/next/client/NextAutumnClient.d.mts +22 -22
  195. package/dist/next/client/NextAutumnClient.d.ts +22 -22
  196. package/dist/next/client/NextAutumnProvider.d.mts +3 -3
  197. package/dist/next/client/NextAutumnProvider.d.ts +3 -3
  198. package/dist/next/client/attachTypes-DRO-C_G5.d.mts +45 -0
  199. package/dist/next/client/attachTypes-gOerywTE.d.ts +45 -0
  200. package/dist/next/client/clientAttachTypes-DWFk8mOR.d.ts +116 -0
  201. package/dist/next/client/clientAttachTypes-traKz9UZ.d.mts +116 -0
  202. package/dist/next/client/clientUtils.d.mts +4 -4
  203. package/dist/next/client/clientUtils.d.ts +4 -4
  204. package/dist/next/client/cusTypes-CNOLnLMs.d.ts +111 -0
  205. package/dist/next/client/cusTypes-dkOgZJbj.d.mts +111 -0
  206. package/dist/next/client/{entTypes-Bf0302Om.d.mts → entTypes-CXZqtZX3.d.mts} +1 -1
  207. package/dist/next/client/{entTypes-KSBxuyW-.d.ts → entTypes-D0T20Mxt.d.ts} +1 -1
  208. package/dist/next/client/hooks/useAutumn.d.mts +8 -8
  209. package/dist/next/client/hooks/useAutumn.d.ts +8 -8
  210. package/dist/next/client/hooks/useCustomer.d.mts +8 -16
  211. package/dist/next/client/hooks/useCustomer.d.ts +8 -16
  212. package/dist/next/client/hooks/useEntity.d.mts +10 -10
  213. package/dist/next/client/hooks/useEntity.d.ts +10 -10
  214. package/dist/next/client/hooks/usePricingTable.d.mts +2 -2
  215. package/dist/next/client/hooks/usePricingTable.d.ts +2 -2
  216. package/dist/next/client/{prodTypes-CxvB1YY3.d.mts → prodTypes-DwM7QuGf.d.mts} +7 -90
  217. package/dist/next/client/{prodTypes-CxvB1YY3.d.ts → prodTypes-DwM7QuGf.d.ts} +7 -90
  218. package/dist/next/client/types.d.mts +4 -4
  219. package/dist/next/client/types.d.ts +4 -4
  220. package/dist/next/server/auth/withNextAuth.d.mts +2 -2
  221. package/dist/next/server/auth/withNextAuth.d.ts +2 -2
  222. package/dist/next/server/componentActions.d.mts +2 -2
  223. package/dist/next/server/componentActions.d.ts +2 -2
  224. package/dist/next/server/cusActions.d.mts +57 -250
  225. package/dist/next/server/cusActions.d.ts +57 -250
  226. package/dist/next/server/{cusTypes-Cu6SOTmn.d.mts → cusTypes-CTuY9T7g.d.mts} +26 -212
  227. package/dist/next/server/{cusTypes-Cu6SOTmn.d.ts → cusTypes-CTuY9T7g.d.ts} +26 -212
  228. package/dist/next/server/genActions.d.mts +13 -13
  229. package/dist/next/server/genActions.d.ts +13 -13
  230. package/dist/sdk/index.d.mts +98 -530
  231. package/dist/sdk/index.d.ts +98 -530
  232. package/dist/sdk/index.js +147 -147
  233. package/dist/sdk/index.mjs +14 -14
  234. package/dist/utils/encryptUtils.js +146 -146
  235. package/dist/utils/encryptUtils.mjs +13 -13
  236. package/package.json +2 -2
  237. package/dist/libraries/react/attachTypes-BqXH38Ft.d.mts +0 -91
  238. package/dist/libraries/react/attachTypes-DxfaWOQB.d.ts +0 -91
  239. package/dist/libraries/react/cusTypes-B2w8Kg9H.d.mts +0 -198
  240. package/dist/libraries/react/cusTypes-C8UH2xVw.d.ts +0 -198
  241. package/dist/next/client/attachTypes--97TsCMB.d.mts +0 -91
  242. package/dist/next/client/attachTypes-B1sM-0vf.d.ts +0 -91
  243. package/dist/next/client/clientAttachTypes-BXtfXB4v.d.ts +0 -251
  244. package/dist/next/client/clientAttachTypes-qsdoMt_B.d.mts +0 -251
  245. package/dist/next/client/cusTypes-DRJ574aU.d.ts +0 -198
  246. package/dist/next/client/cusTypes-c6-g1-Yy.d.mts +0 -198
@@ -0,0 +1,116 @@
1
+ import { C as CheckFeatureResult, d as CheckProductResult } from './prodTypes-DwM7QuGf.mjs';
2
+ import { z } from 'zod/v4';
3
+ import { A as AutumnError } from './error-DHbclCVh.mjs';
4
+
5
+ declare const CancelResultSchema: z.ZodObject<{
6
+ success: z.ZodBoolean;
7
+ customer_id: z.ZodString;
8
+ product_id: z.ZodString;
9
+ }, z.core.$strip>;
10
+ type CancelResult = z.infer<typeof CancelResultSchema>;
11
+ declare const TrackResultSchema: z.ZodObject<{
12
+ id: z.ZodString;
13
+ code: z.ZodString;
14
+ customer_id: z.ZodString;
15
+ feature_id: z.ZodOptional<z.ZodString>;
16
+ event_name: z.ZodOptional<z.ZodString>;
17
+ }, z.core.$strip>;
18
+ type TrackResult = z.infer<typeof TrackResultSchema>;
19
+ type CheckResult = CheckFeatureResult & CheckProductResult;
20
+ interface SetupPaymentResult {
21
+ customer_id: string;
22
+ url: string;
23
+ }
24
+ type QueryResult = {
25
+ list: Array<{
26
+ period: string;
27
+ } & {
28
+ [key: string]: number;
29
+ }>;
30
+ };
31
+
32
+ type Success<T> = {
33
+ data: T;
34
+ error: null;
35
+ statusCode?: number;
36
+ };
37
+ type Failure<E> = {
38
+ data: null;
39
+ error: E;
40
+ statusCode?: number;
41
+ };
42
+ type Result<T, E> = Success<T> | Failure<E>;
43
+ type AutumnPromise<T> = Promise<Result<T, AutumnError>>;
44
+
45
+ declare const CancelParamsSchema: z.ZodObject<{
46
+ productId: z.ZodString;
47
+ entityId: z.ZodOptional<z.ZodString>;
48
+ cancelImmediately: z.ZodOptional<z.ZodBoolean>;
49
+ }, z.core.$strip>;
50
+ type CancelParams = z.infer<typeof CancelParamsSchema>;
51
+ declare const CheckParamsSchema: z.ZodObject<{
52
+ featureId: z.ZodOptional<z.ZodString>;
53
+ productId: z.ZodOptional<z.ZodString>;
54
+ entityId: z.ZodOptional<z.ZodString>;
55
+ requiredBalance: z.ZodOptional<z.ZodNumber>;
56
+ sendEvent: z.ZodOptional<z.ZodBoolean>;
57
+ withPreview: z.ZodOptional<z.ZodBoolean>;
58
+ dialog: z.ZodOptional<z.ZodAny>;
59
+ entityData: z.ZodOptional<z.ZodAny>;
60
+ }, z.core.$strip>;
61
+ type CheckParams = z.infer<typeof CheckParamsSchema>;
62
+ declare const TrackParamsSchema: z.ZodObject<{
63
+ featureId: z.ZodOptional<z.ZodString>;
64
+ eventName: z.ZodOptional<z.ZodString>;
65
+ entityId: z.ZodOptional<z.ZodString>;
66
+ value: z.ZodOptional<z.ZodNumber>;
67
+ idempotencyKey: z.ZodOptional<z.ZodString>;
68
+ entityData: z.ZodOptional<z.ZodAny>;
69
+ }, z.core.$strip>;
70
+ type TrackParams = z.infer<typeof TrackParamsSchema>;
71
+ interface OpenBillingPortalParams {
72
+ returnUrl?: string;
73
+ openInNewTab?: boolean;
74
+ }
75
+ interface SetupPaymentParams {
76
+ successUrl?: string;
77
+ checkoutSessionParams?: Record<string, any>;
78
+ openInNewTab?: boolean;
79
+ }
80
+
81
+ declare const AttachParamsSchema: z.ZodObject<{
82
+ productId: z.ZodOptional<z.ZodString>;
83
+ entityId: z.ZodOptional<z.ZodString>;
84
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
85
+ featureId: z.ZodString;
86
+ quantity: z.ZodNumber;
87
+ }, z.core.$strip>>>;
88
+ productIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
89
+ freeTrial: z.ZodOptional<z.ZodBoolean>;
90
+ successUrl: z.ZodOptional<z.ZodString>;
91
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
92
+ forceCheckout: z.ZodOptional<z.ZodBoolean>;
93
+ dialog: z.ZodOptional<z.ZodAny>;
94
+ entityData: z.ZodOptional<z.ZodAny>;
95
+ openInNewTab: z.ZodOptional<z.ZodBoolean>;
96
+ reward: z.ZodOptional<z.ZodString>;
97
+ checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
98
+ }, z.core.$strip>;
99
+ type AttachParams = z.infer<typeof AttachParamsSchema>;
100
+ declare const CheckoutParamsSchema: z.ZodObject<{
101
+ productId: z.ZodString;
102
+ entityId: z.ZodOptional<z.ZodString>;
103
+ entityData: z.ZodOptional<z.ZodAny>;
104
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
105
+ featureId: z.ZodString;
106
+ quantity: z.ZodNumber;
107
+ }, z.core.$strip>>>;
108
+ successUrl: z.ZodOptional<z.ZodString>;
109
+ openInNewTab: z.ZodOptional<z.ZodBoolean>;
110
+ dialog: z.ZodOptional<z.ZodAny>;
111
+ checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
112
+ reward: z.ZodOptional<z.ZodString>;
113
+ }, z.core.$strip>;
114
+ type CheckoutParams = z.infer<typeof CheckoutParamsSchema>;
115
+
116
+ export type { AttachParams as A, CheckResult as C, OpenBillingPortalParams as O, QueryResult as Q, Result as R, SetupPaymentParams as S, TrackParams as T, AutumnPromise as a, TrackResult as b, CancelParams as c, CancelResult as d, SetupPaymentResult as e, CheckoutParams as f, CheckParams as g, Success as h };
@@ -1,8 +1,8 @@
1
1
  import { AutumnClientError, PricingTableProduct } from './types.mjs';
2
- import './cusTypes-c6-g1-Yy.mjs';
3
- import './prodTypes-CxvB1YY3.mjs';
4
- import 'zod';
5
- import './entTypes-Bf0302Om.mjs';
2
+ import './cusTypes-dkOgZJbj.mjs';
3
+ import './prodTypes-DwM7QuGf.mjs';
4
+ import 'zod/v4';
5
+ import './entTypes-CXZqtZX3.mjs';
6
6
 
7
7
  declare const toClientErrorResponse: (error: any) => {
8
8
  data: null;
@@ -1,8 +1,8 @@
1
1
  import { AutumnClientError, PricingTableProduct } from './types.js';
2
- import './cusTypes-DRJ574aU.js';
3
- import './prodTypes-CxvB1YY3.js';
4
- import 'zod';
5
- import './entTypes-KSBxuyW-.js';
2
+ import './cusTypes-CNOLnLMs.js';
3
+ import './prodTypes-DwM7QuGf.js';
4
+ import 'zod/v4';
5
+ import './entTypes-D0T20Mxt.js';
6
6
 
7
7
  declare const toClientErrorResponse: (error: any) => {
8
8
  data: null;
@@ -0,0 +1,111 @@
1
+ import { A as AppEnv, P as ProductItem, b as ProductItemInterval } from './prodTypes-DwM7QuGf.js';
2
+ import { z } from 'zod/v4';
3
+
4
+ declare enum ProductStatus {
5
+ Active = "active",
6
+ Expired = "expired",
7
+ Trialing = "trialing",
8
+ Scheduled = "scheduled",
9
+ PastDue = "past_due"
10
+ }
11
+ type CustomerExpandOption = "invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method";
12
+
13
+ declare const CoreCusFeatureSchema: z.ZodObject<{
14
+ unlimited: z.ZodOptional<z.ZodBoolean>;
15
+ interval: z.ZodOptional<z.ZodEnum<typeof ProductItemInterval>>;
16
+ balance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
+ usage: z.ZodOptional<z.ZodNumber>;
18
+ included_usage: z.ZodOptional<z.ZodNumber>;
19
+ next_reset_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ overage_allowed: z.ZodOptional<z.ZodBoolean>;
21
+ usage_limit: z.ZodOptional<z.ZodNumber>;
22
+ rollovers: z.ZodOptional<z.ZodObject<{
23
+ balance: z.ZodNumber;
24
+ expires_at: z.ZodNumber;
25
+ }, z.core.$strip>>;
26
+ breakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
+ interval: z.ZodEnum<typeof ProductItemInterval>;
28
+ balance: z.ZodOptional<z.ZodNumber>;
29
+ usage: z.ZodOptional<z.ZodNumber>;
30
+ included_usage: z.ZodOptional<z.ZodNumber>;
31
+ next_reset_at: z.ZodOptional<z.ZodNumber>;
32
+ }, z.core.$strip>>>;
33
+ credit_schema: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
+ feature_id: z.ZodString;
35
+ credit_amount: z.ZodNumber;
36
+ }, z.core.$strip>>>;
37
+ }, z.core.$strip>;
38
+ type CoreCustomerFeature = z.infer<typeof CoreCusFeatureSchema>;
39
+ interface CustomerFeature extends CoreCustomerFeature {
40
+ id: string;
41
+ name: string;
42
+ type: "static" | "single_use" | "continuous_use";
43
+ }
44
+ interface CustomerProduct {
45
+ id: string;
46
+ name: string | null;
47
+ group: string | null;
48
+ status: ProductStatus;
49
+ started_at: number;
50
+ canceled_at: number | null;
51
+ version: number;
52
+ subscription_ids?: string[] | null;
53
+ current_period_start?: number | null;
54
+ current_period_end?: number | null;
55
+ trial_ends_at?: number;
56
+ entity_id?: string;
57
+ is_add_on: boolean;
58
+ is_default: boolean;
59
+ items: ProductItem[];
60
+ }
61
+ interface Customer {
62
+ id: string | null;
63
+ created_at: number;
64
+ name: string | null;
65
+ email: string | null;
66
+ fingerprint: string | null;
67
+ stripe_id: string | null;
68
+ env: AppEnv;
69
+ metadata: Record<string, any>;
70
+ products: CustomerProduct[];
71
+ features: Record<string, CustomerFeature>;
72
+ invoices?: CustomerInvoice[];
73
+ payment_method?: any;
74
+ }
75
+ declare const CustomerDataSchema: z.ZodObject<{
76
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ }, z.core.$strip>;
80
+ type CustomerData = z.infer<typeof CustomerDataSchema>;
81
+ declare const CreateCustomerParamsSchema: z.ZodObject<{
82
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
87
+ expand: z.ZodOptional<z.ZodArray<z.ZodEnum<{
88
+ invoices: "invoices";
89
+ rewards: "rewards";
90
+ trials_used: "trials_used";
91
+ entities: "entities";
92
+ referrals: "referrals";
93
+ payment_method: "payment_method";
94
+ }>>>;
95
+ }, z.core.$strip>;
96
+ type CreateCustomerParams = z.infer<typeof CreateCustomerParamsSchema>;
97
+ interface BillingPortalResult {
98
+ customer_id: string;
99
+ url: string;
100
+ }
101
+ interface CustomerInvoice {
102
+ product_ids: string[];
103
+ stripe_id: string;
104
+ status: string;
105
+ total: number;
106
+ currency: string;
107
+ created_at: number;
108
+ hosted_invoice_url: string;
109
+ }
110
+
111
+ export type { BillingPortalResult as B, CustomerData as C, Customer as a, CustomerProduct as b, CustomerFeature as c, CustomerInvoice as d, CreateCustomerParams as e, CustomerExpandOption as f };
@@ -0,0 +1,111 @@
1
+ import { A as AppEnv, P as ProductItem, b as ProductItemInterval } from './prodTypes-DwM7QuGf.mjs';
2
+ import { z } from 'zod/v4';
3
+
4
+ declare enum ProductStatus {
5
+ Active = "active",
6
+ Expired = "expired",
7
+ Trialing = "trialing",
8
+ Scheduled = "scheduled",
9
+ PastDue = "past_due"
10
+ }
11
+ type CustomerExpandOption = "invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method";
12
+
13
+ declare const CoreCusFeatureSchema: z.ZodObject<{
14
+ unlimited: z.ZodOptional<z.ZodBoolean>;
15
+ interval: z.ZodOptional<z.ZodEnum<typeof ProductItemInterval>>;
16
+ balance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
+ usage: z.ZodOptional<z.ZodNumber>;
18
+ included_usage: z.ZodOptional<z.ZodNumber>;
19
+ next_reset_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ overage_allowed: z.ZodOptional<z.ZodBoolean>;
21
+ usage_limit: z.ZodOptional<z.ZodNumber>;
22
+ rollovers: z.ZodOptional<z.ZodObject<{
23
+ balance: z.ZodNumber;
24
+ expires_at: z.ZodNumber;
25
+ }, z.core.$strip>>;
26
+ breakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
+ interval: z.ZodEnum<typeof ProductItemInterval>;
28
+ balance: z.ZodOptional<z.ZodNumber>;
29
+ usage: z.ZodOptional<z.ZodNumber>;
30
+ included_usage: z.ZodOptional<z.ZodNumber>;
31
+ next_reset_at: z.ZodOptional<z.ZodNumber>;
32
+ }, z.core.$strip>>>;
33
+ credit_schema: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
+ feature_id: z.ZodString;
35
+ credit_amount: z.ZodNumber;
36
+ }, z.core.$strip>>>;
37
+ }, z.core.$strip>;
38
+ type CoreCustomerFeature = z.infer<typeof CoreCusFeatureSchema>;
39
+ interface CustomerFeature extends CoreCustomerFeature {
40
+ id: string;
41
+ name: string;
42
+ type: "static" | "single_use" | "continuous_use";
43
+ }
44
+ interface CustomerProduct {
45
+ id: string;
46
+ name: string | null;
47
+ group: string | null;
48
+ status: ProductStatus;
49
+ started_at: number;
50
+ canceled_at: number | null;
51
+ version: number;
52
+ subscription_ids?: string[] | null;
53
+ current_period_start?: number | null;
54
+ current_period_end?: number | null;
55
+ trial_ends_at?: number;
56
+ entity_id?: string;
57
+ is_add_on: boolean;
58
+ is_default: boolean;
59
+ items: ProductItem[];
60
+ }
61
+ interface Customer {
62
+ id: string | null;
63
+ created_at: number;
64
+ name: string | null;
65
+ email: string | null;
66
+ fingerprint: string | null;
67
+ stripe_id: string | null;
68
+ env: AppEnv;
69
+ metadata: Record<string, any>;
70
+ products: CustomerProduct[];
71
+ features: Record<string, CustomerFeature>;
72
+ invoices?: CustomerInvoice[];
73
+ payment_method?: any;
74
+ }
75
+ declare const CustomerDataSchema: z.ZodObject<{
76
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ }, z.core.$strip>;
80
+ type CustomerData = z.infer<typeof CustomerDataSchema>;
81
+ declare const CreateCustomerParamsSchema: z.ZodObject<{
82
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
87
+ expand: z.ZodOptional<z.ZodArray<z.ZodEnum<{
88
+ invoices: "invoices";
89
+ rewards: "rewards";
90
+ trials_used: "trials_used";
91
+ entities: "entities";
92
+ referrals: "referrals";
93
+ payment_method: "payment_method";
94
+ }>>>;
95
+ }, z.core.$strip>;
96
+ type CreateCustomerParams = z.infer<typeof CreateCustomerParamsSchema>;
97
+ interface BillingPortalResult {
98
+ customer_id: string;
99
+ url: string;
100
+ }
101
+ interface CustomerInvoice {
102
+ product_ids: string[];
103
+ stripe_id: string;
104
+ status: string;
105
+ total: number;
106
+ currency: string;
107
+ created_at: number;
108
+ hosted_invoice_url: string;
109
+ }
110
+
111
+ export type { BillingPortalResult as B, CustomerData as C, Customer as a, CustomerProduct as b, CustomerFeature as c, CustomerInvoice as d, CreateCustomerParams as e, CustomerExpandOption as f };
@@ -1,4 +1,4 @@
1
- import { b as CustomerProduct, c as CustomerFeature, d as CustomerInvoice } from './cusTypes-c6-g1-Yy.mjs';
1
+ import { b as CustomerProduct, c as CustomerFeature, d as CustomerInvoice } from './cusTypes-dkOgZJbj.mjs';
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-DRJ574aU.js';
1
+ import { b as CustomerProduct, c as CustomerFeature, d as CustomerInvoice } from './cusTypes-CNOLnLMs.js';
2
2
 
3
3
  type EntityExpandOption = "invoices";
4
4
 
@@ -1,16 +1,17 @@
1
- import { A as AttachParams, R as Result, C as CheckResult, T as TrackParams, a as AutumnPromise, b as TrackResult, c as CancelParams, d as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, f as CheckoutParams } from '../clientAttachTypes-qsdoMt_B.mjs';
1
+ import { A as AttachParams, R as Result, C as CheckResult, T as TrackParams, a as AutumnPromise, b as TrackResult, c as CancelParams, d as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, f as CheckoutParams } from '../clientAttachTypes-traKz9UZ.mjs';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
3
- import { C as CheckoutResult } from '../attachTypes--97TsCMB.mjs';
4
- import { B as BillingPortalResult } from '../cusTypes-c6-g1-Yy.mjs';
5
- import '../prodTypes-CxvB1YY3.mjs';
6
- import 'zod';
3
+ import { C as CheckoutResult } from '../attachTypes-DRO-C_G5.mjs';
4
+ import { B as BillingPortalResult } from '../cusTypes-dkOgZJbj.mjs';
5
+ import '../prodTypes-DwM7QuGf.mjs';
6
+ import 'zod/v4';
7
7
 
8
8
  declare const useAutumn: () => {
9
9
  attach: (params: AttachParams) => Promise<Result<{
10
- code: string;
11
- message: string;
12
10
  customer_id: string;
13
11
  product_ids: string[];
12
+ code: string;
13
+ message: string;
14
+ checkout_url?: string | undefined;
14
15
  customer_data?: any;
15
16
  invoice?: {
16
17
  status: string;
@@ -19,7 +20,6 @@ declare const useAutumn: () => {
19
20
  total: number;
20
21
  currency: string;
21
22
  } | undefined;
22
- checkout_url?: string | undefined;
23
23
  } | CheckResult, AutumnError>>;
24
24
  track: (params: TrackParams) => AutumnPromise<TrackResult>;
25
25
  cancel: (params: CancelParams) => AutumnPromise<CancelResult>;
@@ -1,16 +1,17 @@
1
- import { A as AttachParams, R as Result, C as CheckResult, T as TrackParams, a as AutumnPromise, b as TrackResult, c as CancelParams, d as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, f as CheckoutParams } from '../clientAttachTypes-BXtfXB4v.js';
1
+ import { A as AttachParams, R as Result, C as CheckResult, T as TrackParams, a as AutumnPromise, b as TrackResult, c as CancelParams, d as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, f as CheckoutParams } from '../clientAttachTypes-DWFk8mOR.js';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.js';
3
- import { C as CheckoutResult } from '../attachTypes-B1sM-0vf.js';
4
- import { B as BillingPortalResult } from '../cusTypes-DRJ574aU.js';
5
- import '../prodTypes-CxvB1YY3.js';
6
- import 'zod';
3
+ import { C as CheckoutResult } from '../attachTypes-gOerywTE.js';
4
+ import { B as BillingPortalResult } from '../cusTypes-CNOLnLMs.js';
5
+ import '../prodTypes-DwM7QuGf.js';
6
+ import 'zod/v4';
7
7
 
8
8
  declare const useAutumn: () => {
9
9
  attach: (params: AttachParams) => Promise<Result<{
10
- code: string;
11
- message: string;
12
10
  customer_id: string;
13
11
  product_ids: string[];
12
+ code: string;
13
+ message: string;
14
+ checkout_url?: string | undefined;
14
15
  customer_data?: any;
15
16
  invoice?: {
16
17
  status: string;
@@ -19,7 +20,6 @@ declare const useAutumn: () => {
19
20
  total: number;
20
21
  currency: string;
21
22
  } | undefined;
22
- checkout_url?: string | undefined;
23
23
  } | CheckResult, AutumnError>>;
24
24
  track: (params: TrackParams) => AutumnPromise<TrackResult>;
25
25
  cancel: (params: CancelParams) => AutumnPromise<CancelResult>;
@@ -1,28 +1,20 @@
1
1
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
2
- import { A as AttachParams, a as AutumnPromise, C as CheckResult, T as TrackParams, b as TrackResult, c as CancelParams, d as CancelResult, S as SetupPaymentParams, e as SetupPaymentResult, O as OpenBillingPortalParams, f as CheckoutParams, g as CheckParams, h as Success } from '../clientAttachTypes-qsdoMt_B.mjs';
3
- import { A as AttachResult, C as CheckoutResult } from '../attachTypes--97TsCMB.mjs';
4
- import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-c6-g1-Yy.mjs';
5
- import { E as Entity } from '../entTypes-Bf0302Om.mjs';
2
+ import { A as AttachParams, a as AutumnPromise, C as CheckResult, T as TrackParams, b as TrackResult, c as CancelParams, d as CancelResult, S as SetupPaymentParams, e as SetupPaymentResult, O as OpenBillingPortalParams, f as CheckoutParams, g as CheckParams, h as Success } from '../clientAttachTypes-traKz9UZ.mjs';
3
+ import { A as AttachResult, C as CheckoutResult } from '../attachTypes-DRO-C_G5.mjs';
4
+ import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-dkOgZJbj.mjs';
5
+ import { E as Entity } from '../entTypes-CXZqtZX3.mjs';
6
6
  import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.mjs';
7
- import { z } from 'zod';
7
+ import { z } from 'zod/v4';
8
8
  import { SWRConfiguration } from 'swr';
9
- import '../prodTypes-CxvB1YY3.mjs';
9
+ import '../prodTypes-DwM7QuGf.mjs';
10
10
 
11
11
  declare const CreateReferralCodeParamsSchema: z.ZodObject<{
12
12
  programId: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- programId: string;
15
- }, {
16
- programId: string;
17
- }>;
13
+ }, z.core.$strip>;
18
14
  type CreateReferralCodeParams = z.infer<typeof CreateReferralCodeParamsSchema>;
19
15
  declare const RedeemReferralCodeParamsSchema: z.ZodObject<{
20
16
  code: z.ZodString;
21
- }, "strip", z.ZodTypeAny, {
22
- code: string;
23
- }, {
24
- code: string;
25
- }>;
17
+ }, z.core.$strip>;
26
18
  type RedeemReferralCodeParams = z.infer<typeof RedeemReferralCodeParamsSchema>;
27
19
 
28
20
  interface AllowedParams {
@@ -1,28 +1,20 @@
1
1
  import { A as AutumnError } from '../error-DHbclCVh.js';
2
- import { A as AttachParams, a as AutumnPromise, C as CheckResult, T as TrackParams, b as TrackResult, c as CancelParams, d as CancelResult, S as SetupPaymentParams, e as SetupPaymentResult, O as OpenBillingPortalParams, f as CheckoutParams, g as CheckParams, h as Success } from '../clientAttachTypes-BXtfXB4v.js';
3
- import { A as AttachResult, C as CheckoutResult } from '../attachTypes-B1sM-0vf.js';
4
- import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-DRJ574aU.js';
5
- import { E as Entity } from '../entTypes-KSBxuyW-.js';
2
+ import { A as AttachParams, a as AutumnPromise, C as CheckResult, T as TrackParams, b as TrackResult, c as CancelParams, d as CancelResult, S as SetupPaymentParams, e as SetupPaymentResult, O as OpenBillingPortalParams, f as CheckoutParams, g as CheckParams, h as Success } from '../clientAttachTypes-DWFk8mOR.js';
3
+ import { A as AttachResult, C as CheckoutResult } from '../attachTypes-gOerywTE.js';
4
+ import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-CNOLnLMs.js';
5
+ import { E as Entity } from '../entTypes-D0T20Mxt.js';
6
6
  import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.js';
7
- import { z } from 'zod';
7
+ import { z } from 'zod/v4';
8
8
  import { SWRConfiguration } from 'swr';
9
- import '../prodTypes-CxvB1YY3.js';
9
+ import '../prodTypes-DwM7QuGf.js';
10
10
 
11
11
  declare const CreateReferralCodeParamsSchema: z.ZodObject<{
12
12
  programId: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- programId: string;
15
- }, {
16
- programId: string;
17
- }>;
13
+ }, z.core.$strip>;
18
14
  type CreateReferralCodeParams = z.infer<typeof CreateReferralCodeParamsSchema>;
19
15
  declare const RedeemReferralCodeParamsSchema: z.ZodObject<{
20
16
  code: z.ZodString;
21
- }, "strip", z.ZodTypeAny, {
22
- code: string;
23
- }, {
24
- code: string;
25
- }>;
17
+ }, z.core.$strip>;
26
18
  type RedeemReferralCodeParams = z.infer<typeof RedeemReferralCodeParamsSchema>;
27
19
 
28
20
  interface AllowedParams {
@@ -1,10 +1,10 @@
1
- import { g as CheckParams, C as CheckResult, A as AttachParams, R as Result, c as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-qsdoMt_B.mjs';
1
+ import { g as CheckParams, C as CheckResult, A as AttachParams, R as Result, c as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-traKz9UZ.mjs';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
3
- import { G as GetEntityParams, E as Entity } from '../entTypes-Bf0302Om.mjs';
3
+ import { G as GetEntityParams, E as Entity } from '../entTypes-CXZqtZX3.mjs';
4
4
  import * as swr from 'swr';
5
- import '../prodTypes-CxvB1YY3.mjs';
6
- import 'zod';
7
- import '../cusTypes-c6-g1-Yy.mjs';
5
+ import '../prodTypes-DwM7QuGf.mjs';
6
+ import 'zod/v4';
7
+ import '../cusTypes-dkOgZJbj.mjs';
8
8
 
9
9
  declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
10
10
  entity: Entity | null;
@@ -16,10 +16,11 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
16
16
  error: null;
17
17
  };
18
18
  attach: (params: AttachParams) => Promise<Result<{
19
- code: string;
20
- message: string;
21
19
  customer_id: string;
22
20
  product_ids: string[];
21
+ code: string;
22
+ message: string;
23
+ checkout_url?: string | undefined;
23
24
  customer_data?: any;
24
25
  invoice?: {
25
26
  status: string;
@@ -28,16 +29,15 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
28
29
  total: number;
29
30
  currency: string;
30
31
  } | undefined;
31
- checkout_url?: string | undefined;
32
32
  } | CheckResult, AutumnError>>;
33
33
  cancel: (params: CancelParams) => AutumnPromise<{
34
- customer_id: string;
35
34
  success: boolean;
35
+ customer_id: string;
36
36
  product_id: string;
37
37
  }>;
38
38
  track: (params: TrackParams) => AutumnPromise<{
39
- code: string;
40
39
  id: string;
40
+ code: string;
41
41
  customer_id: string;
42
42
  feature_id?: string | undefined;
43
43
  event_name?: string | undefined;
@@ -1,10 +1,10 @@
1
- import { g as CheckParams, C as CheckResult, A as AttachParams, R as Result, c as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-BXtfXB4v.js';
1
+ import { g as CheckParams, C as CheckResult, A as AttachParams, R as Result, c as CancelParams, a as AutumnPromise, T as TrackParams } from '../clientAttachTypes-DWFk8mOR.js';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.js';
3
- import { G as GetEntityParams, E as Entity } from '../entTypes-KSBxuyW-.js';
3
+ import { G as GetEntityParams, E as Entity } from '../entTypes-D0T20Mxt.js';
4
4
  import * as swr from 'swr';
5
- import '../prodTypes-CxvB1YY3.js';
6
- import 'zod';
7
- import '../cusTypes-DRJ574aU.js';
5
+ import '../prodTypes-DwM7QuGf.js';
6
+ import 'zod/v4';
7
+ import '../cusTypes-CNOLnLMs.js';
8
8
 
9
9
  declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
10
10
  entity: Entity | null;
@@ -16,10 +16,11 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
16
16
  error: null;
17
17
  };
18
18
  attach: (params: AttachParams) => Promise<Result<{
19
- code: string;
20
- message: string;
21
19
  customer_id: string;
22
20
  product_ids: string[];
21
+ code: string;
22
+ message: string;
23
+ checkout_url?: string | undefined;
23
24
  customer_data?: any;
24
25
  invoice?: {
25
26
  status: string;
@@ -28,16 +29,15 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
28
29
  total: number;
29
30
  currency: string;
30
31
  } | undefined;
31
- checkout_url?: string | undefined;
32
32
  } | CheckResult, AutumnError>>;
33
33
  cancel: (params: CancelParams) => AutumnPromise<{
34
- customer_id: string;
35
34
  success: boolean;
35
+ customer_id: string;
36
36
  product_id: string;
37
37
  }>;
38
38
  track: (params: TrackParams) => AutumnPromise<{
39
- code: string;
40
39
  id: string;
40
+ code: string;
41
41
  customer_id: string;
42
42
  feature_id?: string | undefined;
43
43
  event_name?: string | undefined;
@@ -1,7 +1,7 @@
1
1
  import * as swr from 'swr';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
3
- import { a as Product } from '../prodTypes-CxvB1YY3.mjs';
4
- import 'zod';
3
+ import { a as Product } from '../prodTypes-DwM7QuGf.mjs';
4
+ import 'zod/v4';
5
5
 
6
6
  interface ProductDetails {
7
7
  id?: string;
@@ -1,7 +1,7 @@
1
1
  import * as swr from 'swr';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.js';
3
- import { a as Product } from '../prodTypes-CxvB1YY3.js';
4
- import 'zod';
3
+ import { a as Product } from '../prodTypes-DwM7QuGf.js';
4
+ import 'zod/v4';
5
5
 
6
6
  interface ProductDetails {
7
7
  id?: string;