autumn-js 0.1.0 → 0.1.2

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 (238) hide show
  1. package/dist/libraries/backend/better-auth.d.mts +162 -27
  2. package/dist/libraries/backend/better-auth.d.ts +162 -27
  3. package/dist/libraries/backend/better-auth.js +34 -1
  4. package/dist/libraries/backend/better-auth.mjs +20 -7
  5. package/dist/libraries/backend/{chunk-O6KXYXQN.mjs → chunk-F4A665AR.mjs} +1 -1
  6. package/dist/libraries/backend/{chunk-EIP7LDKF.mjs → chunk-GVPYJINB.mjs} +1 -1
  7. package/dist/libraries/backend/{chunk-N4PGGU3D.mjs → chunk-IG3DW6CW.mjs} +1 -1
  8. package/dist/libraries/backend/{chunk-BDMGQV75.mjs → chunk-JARFSM7F.mjs} +1 -1
  9. package/dist/libraries/backend/{chunk-BX2LACTF.mjs → chunk-KYMRM3HV.mjs} +1 -1
  10. package/dist/libraries/backend/{chunk-QGX7ZACH.mjs → chunk-LYDMLZB7.mjs} +23 -1
  11. package/dist/libraries/backend/{chunk-WTKY2U3S.mjs → chunk-UZ7WFRWB.mjs} +6 -6
  12. package/dist/libraries/backend/convex.d.mts +0 -1
  13. package/dist/libraries/backend/convex.d.ts +0 -1
  14. package/dist/libraries/backend/convex.js +24 -3
  15. package/dist/libraries/backend/convex.mjs +9 -9
  16. package/dist/libraries/backend/elysia.js +22 -1
  17. package/dist/libraries/backend/elysia.mjs +7 -7
  18. package/dist/libraries/backend/express.d.mts +2 -2
  19. package/dist/libraries/backend/express.d.ts +2 -2
  20. package/dist/libraries/backend/express.js +23 -2
  21. package/dist/libraries/backend/express.mjs +8 -8
  22. package/dist/libraries/backend/fastify.js +22 -1
  23. package/dist/libraries/backend/fastify.mjs +7 -7
  24. package/dist/libraries/backend/hono.js +22 -1
  25. package/dist/libraries/backend/hono.mjs +7 -7
  26. package/dist/libraries/backend/index.d.mts +1 -1
  27. package/dist/libraries/backend/index.d.ts +1 -1
  28. package/dist/libraries/backend/index.js +22 -1
  29. package/dist/libraries/backend/index.mjs +7 -7
  30. package/dist/libraries/backend/next.js +22 -1
  31. package/dist/libraries/backend/next.mjs +7 -7
  32. package/dist/libraries/backend/react-router.d.mts +3 -12
  33. package/dist/libraries/backend/react-router.d.ts +3 -12
  34. package/dist/libraries/backend/react-router.js +34 -19
  35. package/dist/libraries/backend/react-router.mjs +19 -25
  36. package/dist/libraries/backend/{referralTypes-DHs1hY4_.d.ts → referralTypes-C4KG2r29.d.ts} +66 -41
  37. package/dist/libraries/backend/{referralTypes-DRsv8not.d.mts → referralTypes-DA9Hp6Bm.d.mts} +66 -41
  38. package/dist/libraries/backend/remix_dep.js +22 -1
  39. package/dist/libraries/backend/remix_dep.mjs +7 -7
  40. package/dist/libraries/backend/routes/backendRouter.js +22 -1
  41. package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
  42. package/dist/libraries/backend/routes/entityRoutes.js +22 -1
  43. package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
  44. package/dist/libraries/backend/routes/genRoutes.js +22 -1
  45. package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
  46. package/dist/libraries/backend/routes/productRoutes.js +22 -1
  47. package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
  48. package/dist/libraries/backend/routes/referralRoutes.js +22 -1
  49. package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
  50. package/dist/libraries/backend/supabase.js +22 -1
  51. package/dist/libraries/backend/supabase.mjs +7 -7
  52. package/dist/libraries/backend/tanstack.js +22 -1
  53. package/dist/libraries/backend/tanstack.mjs +7 -7
  54. package/dist/libraries/backend/utils/backendRes.js +22 -1
  55. package/dist/libraries/backend/utils/backendRes.mjs +1 -1
  56. package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
  57. package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
  58. package/dist/libraries/backend/utils/withAuth.js +22 -1
  59. package/dist/libraries/backend/utils/withAuth.mjs +2 -2
  60. package/dist/libraries/react/AutumnContext.d.mts +6 -6
  61. package/dist/libraries/react/AutumnContext.d.ts +6 -6
  62. package/dist/libraries/react/AutumnContext.js +22 -1
  63. package/dist/libraries/react/AutumnContext.mjs +3 -3
  64. package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -6
  65. package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
  66. package/dist/libraries/react/BaseAutumnProvider.js +28 -2
  67. package/dist/libraries/react/BaseAutumnProvider.mjs +8 -8
  68. package/dist/libraries/react/{ReactAutumnClient-BK3wjb-u.d.mts → ReactAutumnClient-BHjd9Tw5.d.mts} +17 -17
  69. package/dist/libraries/react/{ReactAutumnClient-Bh0Sgw6f.d.ts → ReactAutumnClient-DM5ZRTfX.d.ts} +17 -17
  70. package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -2
  71. package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -2
  72. package/dist/libraries/react/ReactAutumnProvider.js +28 -2
  73. package/dist/libraries/react/ReactAutumnProvider.mjs +9 -9
  74. package/dist/{next/client/attachTypes-BCt7D8ym.d.ts → libraries/react/attachTypes-Bz1_JTvk.d.ts} +5 -5
  75. package/dist/{next/client/attachTypes-BThbMcvF.d.mts → libraries/react/attachTypes-C9FJTCo6.d.mts} +5 -5
  76. package/dist/libraries/react/{chunk-WZG3QTZI.mjs → chunk-4V7CDINI.mjs} +3 -3
  77. package/dist/libraries/react/{chunk-FEISQQNM.mjs → chunk-5K2M3CQZ.mjs} +1 -1
  78. package/dist/libraries/react/{chunk-PFN52PHR.mjs → chunk-6D7DZEP5.mjs} +2 -2
  79. package/dist/libraries/react/{chunk-H4J73SMR.mjs → chunk-B7RO2OAP.mjs} +1 -1
  80. package/dist/libraries/react/{chunk-FJWZPMWU.mjs → chunk-BXMZYHE7.mjs} +3 -3
  81. package/dist/libraries/react/{chunk-UCUAGLCJ.mjs → chunk-C5OYITSR.mjs} +1 -1
  82. package/dist/libraries/react/{chunk-IFZCH7DR.mjs → chunk-F52BIZ4N.mjs} +2 -2
  83. package/dist/libraries/react/{chunk-4NCB2TMQ.mjs → chunk-G2GXS74H.mjs} +3 -3
  84. package/dist/libraries/react/{chunk-JLJPPCQJ.mjs → chunk-GKHVCED5.mjs} +2 -2
  85. package/dist/libraries/react/{chunk-LFLX6NJU.mjs → chunk-JOAOLY2Z.mjs} +1 -1
  86. package/dist/libraries/react/{chunk-53HYUF2F.mjs → chunk-JZQQJNF6.mjs} +9 -4
  87. package/dist/libraries/react/{chunk-BGLWB5O2.mjs → chunk-KIKDDSHG.mjs} +428 -425
  88. package/dist/libraries/react/{chunk-TM3NBNVM.mjs → chunk-KVTXABQL.mjs} +1 -1
  89. package/dist/libraries/react/{chunk-KUS3X33V.mjs → chunk-M7SUFZ42.mjs} +1 -1
  90. package/dist/libraries/react/{chunk-OTZ65PCT.mjs → chunk-MN66ZM7X.mjs} +6 -6
  91. package/dist/libraries/react/{chunk-YWQTQ72B.mjs → chunk-NHDZWWMZ.mjs} +2 -2
  92. package/dist/libraries/react/{chunk-7RICWVXV.mjs → chunk-NOUNCJRC.mjs} +2 -2
  93. package/dist/libraries/react/{chunk-UAK4XMNC.mjs → chunk-O2GKDKV5.mjs} +1 -1
  94. package/dist/libraries/react/{chunk-LMQMA7VL.mjs → chunk-S75NZSTG.mjs} +1 -1
  95. package/dist/libraries/react/{chunk-CZBWEEWD.mjs → chunk-SRYI4NMF.mjs} +22 -1
  96. package/dist/libraries/react/{chunk-I2A7PK2L.mjs → chunk-WT5K3J2K.mjs} +17 -17
  97. package/dist/libraries/react/{chunk-JGDTNJTR.mjs → chunk-YCDNQZT5.mjs} +2 -2
  98. package/dist/libraries/react/{chunk-MRZA4JWN.mjs → chunk-YI6OTBFN.mjs} +1 -1
  99. package/dist/libraries/react/client/ReactAutumnClient.d.mts +6 -6
  100. package/dist/libraries/react/client/ReactAutumnClient.d.ts +6 -6
  101. package/dist/libraries/react/client/ReactAutumnClient.js +22 -1
  102. package/dist/libraries/react/client/ReactAutumnClient.mjs +2 -2
  103. package/dist/libraries/react/client/clientCompMethods.d.mts +6 -6
  104. package/dist/libraries/react/client/clientCompMethods.d.ts +6 -6
  105. package/dist/libraries/react/client/clientCusMethods.d.mts +6 -6
  106. package/dist/libraries/react/client/clientCusMethods.d.ts +6 -6
  107. package/dist/libraries/react/client/clientEntityMethods.d.mts +6 -6
  108. package/dist/libraries/react/client/clientEntityMethods.d.ts +6 -6
  109. package/dist/libraries/react/client/clientGenMethods.d.mts +6 -6
  110. package/dist/libraries/react/client/clientGenMethods.d.ts +6 -6
  111. package/dist/libraries/react/client/clientProdMethods.d.mts +6 -6
  112. package/dist/libraries/react/client/clientProdMethods.d.ts +6 -6
  113. package/dist/libraries/react/client/clientReferralMethods.d.mts +6 -6
  114. package/dist/libraries/react/client/clientReferralMethods.d.ts +6 -6
  115. package/dist/libraries/react/client/types/clientAttachTypes.d.mts +20 -20
  116. package/dist/libraries/react/client/types/clientAttachTypes.d.ts +20 -20
  117. package/dist/libraries/react/client/types/clientGenTypes.d.mts +4 -4
  118. package/dist/libraries/react/client/types/clientGenTypes.d.ts +4 -4
  119. package/dist/libraries/react/client/types/clientGenTypes.js +22 -1
  120. package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -1
  121. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.mts +2 -2
  122. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.ts +2 -2
  123. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +30 -3
  124. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +28 -28
  125. package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.mts +2 -2
  126. package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.ts +2 -2
  127. package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.mts +1 -1
  128. package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.ts +1 -1
  129. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.js +22 -1
  130. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +28 -28
  131. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +1 -1
  132. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +1 -1
  133. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
  134. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
  135. package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +30 -3
  136. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +28 -28
  137. package/dist/libraries/react/components/ui/accordion.mjs +3 -3
  138. package/dist/libraries/react/components/ui/button.d.mts +1 -1
  139. package/dist/libraries/react/components/ui/button.d.ts +1 -1
  140. package/dist/libraries/react/components/ui/dialog.mjs +4 -4
  141. package/dist/libraries/react/components/ui/popover.mjs +5 -5
  142. package/dist/libraries/react/components/ui/switch.mjs +3 -3
  143. package/dist/libraries/react/{cusTypes-Dlt0fQmq.d.mts → cusTypes-DT-gAUL9.d.mts} +5 -5
  144. package/dist/libraries/react/{cusTypes-eNmWJ2rC.d.ts → cusTypes-yJ0fSxbq.d.ts} +5 -5
  145. package/dist/libraries/react/{entTypes-B_DvaeRL.d.ts → entTypes-BPdjCunj.d.ts} +1 -1
  146. package/dist/libraries/react/{entTypes-BDZUfZE_.d.mts → entTypes-D79XPrxo.d.mts} +1 -1
  147. package/dist/libraries/react/{genTypes-BIPS92_Q.d.mts → genTypes-BV-Jc6Q1.d.mts} +5 -5
  148. package/dist/libraries/react/{genTypes-Rn-oq2sc.d.ts → genTypes-DJUAkD36.d.ts} +5 -5
  149. package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +6 -6
  150. package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +6 -6
  151. package/dist/libraries/react/hooks/helpers/handleCheck.js +22 -1
  152. package/dist/libraries/react/hooks/helpers/handleCheck.mjs +2 -2
  153. package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +7 -7
  154. package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +7 -7
  155. package/dist/libraries/react/hooks/helpers/useAutumnBase.js +22 -1
  156. package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +3 -3
  157. package/dist/libraries/react/hooks/useAnalytics.d.mts +2 -2
  158. package/dist/libraries/react/hooks/useAnalytics.d.ts +2 -2
  159. package/dist/libraries/react/hooks/useAnalytics.js +22 -1
  160. package/dist/libraries/react/hooks/useAnalytics.mjs +4 -4
  161. package/dist/libraries/react/hooks/useCustomer.d.mts +6 -6
  162. package/dist/libraries/react/hooks/useCustomer.d.ts +6 -6
  163. package/dist/libraries/react/hooks/useCustomer.js +28 -2
  164. package/dist/libraries/react/hooks/useCustomer.mjs +8 -8
  165. package/dist/libraries/react/hooks/useCustomerBase.d.mts +6 -6
  166. package/dist/libraries/react/hooks/useCustomerBase.d.ts +6 -6
  167. package/dist/libraries/react/hooks/useCustomerBase.js +28 -2
  168. package/dist/libraries/react/hooks/useCustomerBase.mjs +7 -7
  169. package/dist/libraries/react/hooks/useEntity.d.mts +6 -6
  170. package/dist/libraries/react/hooks/useEntity.d.ts +6 -6
  171. package/dist/libraries/react/hooks/useEntity.js +22 -1
  172. package/dist/libraries/react/hooks/useEntity.mjs +8 -8
  173. package/dist/libraries/react/hooks/useEntityBase.d.mts +8 -8
  174. package/dist/libraries/react/hooks/useEntityBase.d.ts +8 -8
  175. package/dist/libraries/react/hooks/useEntityBase.js +22 -1
  176. package/dist/libraries/react/hooks/useEntityBase.mjs +7 -7
  177. package/dist/libraries/react/hooks/usePaywall.d.mts +1 -1
  178. package/dist/libraries/react/hooks/usePaywall.d.ts +1 -1
  179. package/dist/libraries/react/hooks/usePaywall.js +22 -1
  180. package/dist/libraries/react/hooks/usePaywall.mjs +4 -4
  181. package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
  182. package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
  183. package/dist/libraries/react/hooks/usePricingTable.js +22 -1
  184. package/dist/libraries/react/hooks/usePricingTable.mjs +5 -5
  185. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +6 -6
  186. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +6 -6
  187. package/dist/libraries/react/hooks/usePricingTableBase.js +22 -1
  188. package/dist/libraries/react/hooks/usePricingTableBase.mjs +2 -2
  189. package/dist/libraries/react/hooks/useProductsBase.d.mts +6 -6
  190. package/dist/libraries/react/hooks/useProductsBase.d.ts +6 -6
  191. package/dist/libraries/react/index.js +30 -3
  192. package/dist/libraries/react/index.mjs +30 -3
  193. package/dist/libraries/react/{prodTypes-DuLXGCiA.d.mts → prodTypes-2tlu9Pyz.d.mts} +5 -5
  194. package/dist/libraries/react/{prodTypes-DuLXGCiA.d.ts → prodTypes-2tlu9Pyz.d.ts} +5 -5
  195. package/dist/next/client/NextAutumnClient.d.mts +7 -7
  196. package/dist/next/client/NextAutumnClient.d.ts +7 -7
  197. package/dist/next/client/NextAutumnProvider.d.mts +2 -2
  198. package/dist/next/client/NextAutumnProvider.d.ts +2 -2
  199. package/dist/{libraries/react/attachTypes-DKmoXHQO.d.mts → next/client/attachTypes-CAvqbMDV.d.mts} +5 -5
  200. package/dist/{libraries/react/attachTypes-Cy6WgUas.d.ts → next/client/attachTypes-zg5EhNcS.d.ts} +5 -5
  201. package/dist/next/client/{clientAttachTypes-whHUVrE3.d.mts → clientAttachTypes-B-zWythK.d.mts} +3 -3
  202. package/dist/next/client/{clientAttachTypes-Df5FVGkw.d.ts → clientAttachTypes-DLh_8bIG.d.ts} +3 -3
  203. package/dist/next/client/clientUtils.d.mts +3 -3
  204. package/dist/next/client/clientUtils.d.ts +3 -3
  205. package/dist/next/client/{cusTypes-CqAsUZEp.d.ts → cusTypes-Crh2qzWb.d.ts} +3 -3
  206. package/dist/next/client/{cusTypes-BuLw67IH.d.mts → cusTypes-XE8bnuf2.d.mts} +3 -3
  207. package/dist/next/client/{entTypes-DTRFxh07.d.mts → entTypes-BcoGsNYC.d.mts} +1 -1
  208. package/dist/next/client/{entTypes-BLLymqnn.d.ts → entTypes-sKOZyw0N.d.ts} +1 -1
  209. package/dist/next/client/hooks/useAutumn.d.mts +4 -4
  210. package/dist/next/client/hooks/useAutumn.d.ts +4 -4
  211. package/dist/next/client/hooks/useCustomer.d.mts +5 -5
  212. package/dist/next/client/hooks/useCustomer.d.ts +5 -5
  213. package/dist/next/client/hooks/useEntity.d.mts +4 -4
  214. package/dist/next/client/hooks/useEntity.d.ts +4 -4
  215. package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
  216. package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
  217. package/dist/next/client/types.d.mts +3 -3
  218. package/dist/next/client/types.d.ts +3 -3
  219. package/dist/next/server/auth/withNextAuth.d.mts +1 -1
  220. package/dist/next/server/auth/withNextAuth.d.ts +1 -1
  221. package/dist/next/server/componentActions.d.mts +1 -1
  222. package/dist/next/server/componentActions.d.ts +1 -1
  223. package/dist/next/server/cusActions.d.mts +17 -15
  224. package/dist/next/server/cusActions.d.ts +17 -15
  225. package/dist/next/server/{cusTypes-B0zde-Pl.d.ts → cusTypes-DUjCLJ7f.d.mts} +28 -5
  226. package/dist/next/server/{cusTypes-B0zde-Pl.d.mts → cusTypes-DUjCLJ7f.d.ts} +28 -5
  227. package/dist/next/server/genActions.d.mts +1 -1
  228. package/dist/next/server/genActions.d.ts +1 -1
  229. package/dist/sdk/index.d.mts +26 -1
  230. package/dist/sdk/index.d.ts +26 -1
  231. package/dist/sdk/index.js +23 -1
  232. package/dist/sdk/index.mjs +23 -2
  233. package/dist/utils/encryptUtils.js +22 -1
  234. package/dist/utils/encryptUtils.mjs +22 -1
  235. package/package.json +2 -1
  236. package/dist/libraries/react/{chunk-7TYAAD2T.mjs → chunk-KWNH6C27.mjs} +11 -11
  237. package/dist/next/client/{prodTypes-UFM-PYm-.d.mts → prodTypes-CER0agHK.d.mts} +2 -2
  238. package/dist/next/client/{prodTypes-UFM-PYm-.d.ts → prodTypes-CER0agHK.d.ts} +2 -2
@@ -1,10 +1,10 @@
1
- import { R as Result, a as AutumnPromise, C as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, Q as QueryResult, A as AttachParams, c as CancelParams, d as CancelResult, g as CheckParams, T as TrackParams, b as TrackResult } from './clientAttachTypes-Df5FVGkw.js';
2
- import { C as CheckoutResult, A as AttachResult } from './attachTypes-BCt7D8ym.js';
3
- import { C as CustomerData, e as CreateCustomerParams, a as Customer, B as BillingPortalResult } from './cusTypes-CqAsUZEp.js';
4
- import { E as Entity, D as DeleteEntityResult } from './entTypes-BLLymqnn.js';
1
+ import { R as Result, a as AutumnPromise, C as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, e as SetupPaymentResult, Q as QueryResult, A as AttachParams, c as CancelParams, d as CancelResult, g as CheckParams, T as TrackParams, b as TrackResult } from './clientAttachTypes-DLh_8bIG.js';
2
+ import { C as CheckoutResult, A as AttachResult } from './attachTypes-zg5EhNcS.js';
3
+ import { C as CustomerData, e as CreateCustomerParams, a as Customer, B as BillingPortalResult } from './cusTypes-Crh2qzWb.js';
4
+ import { E as Entity, D as DeleteEntityResult } from './entTypes-sKOZyw0N.js';
5
5
  import { C as CreateEntityParams, G as GetEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from './clientEntTypes-BFkleT6a.js';
6
6
  import { A as AutumnError } from './error-DHbclCVh.js';
7
- import { P as ProductItem, c as ProductScenario, a as Product } from './prodTypes-UFM-PYm-.js';
7
+ import { P as ProductItem, c as ProductScenario, a as Product } from './prodTypes-CER0agHK.js';
8
8
  import 'zod';
9
9
 
10
10
  interface PricingTableProduct {
@@ -80,9 +80,9 @@ declare class AutumnClient {
80
80
  reward?: string | undefined;
81
81
  checkoutSessionParams?: Record<string, any> | undefined;
82
82
  }) => AutumnPromise<{
83
- customer_id: string;
84
83
  code: string;
85
84
  message: string;
85
+ customer_id: string;
86
86
  product_ids: string[];
87
87
  checkout_url?: string | undefined;
88
88
  customer_data?: any;
@@ -128,9 +128,9 @@ declare class AutumnClient {
128
128
  eventName?: string | undefined;
129
129
  idempotencyKey?: string | undefined;
130
130
  }) => AutumnPromise<{
131
+ code: string;
131
132
  id: string;
132
133
  customer_id: string;
133
- code: string;
134
134
  feature_id?: string | undefined;
135
135
  event_name?: string | undefined;
136
136
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CustomerData } from './cusTypes-BuLw67IH.mjs';
3
- import './prodTypes-UFM-PYm-.mjs';
2
+ import { C as CustomerData } from './cusTypes-XE8bnuf2.mjs';
3
+ import './prodTypes-CER0agHK.mjs';
4
4
  import 'zod';
5
5
 
6
6
  declare const NextAutumnProvider: ({ encryptedCustomerId, customerData, children, }: {
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CustomerData } from './cusTypes-CqAsUZEp.js';
3
- import './prodTypes-UFM-PYm-.js';
2
+ import { C as CustomerData } from './cusTypes-Crh2qzWb.js';
3
+ import './prodTypes-CER0agHK.js';
4
4
  import 'zod';
5
5
 
6
6
  declare const NextAutumnProvider: ({ encryptedCustomerId, customerData, children, }: {
@@ -1,15 +1,15 @@
1
- import { a as ProductItem, P as Product } from './prodTypes-DuLXGCiA.mjs';
1
+ import { P as ProductItem, a as Product } from './prodTypes-CER0agHK.mjs';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare const AttachFeatureOptionsSchema: z.ZodObject<{
5
5
  feature_id: z.ZodString;
6
6
  quantity: z.ZodNumber;
7
7
  }, "strip", z.ZodTypeAny, {
8
- quantity: number;
9
8
  feature_id: string;
10
- }, {
11
9
  quantity: number;
10
+ }, {
12
11
  feature_id: string;
12
+ quantity: number;
13
13
  }>;
14
14
  type AttachFeatureOptions = z.infer<typeof AttachFeatureOptionsSchema>;
15
15
  declare const AttachResultSchema: z.ZodObject<{
@@ -20,16 +20,16 @@ declare const AttachResultSchema: z.ZodObject<{
20
20
  message: z.ZodString;
21
21
  customer_data: z.ZodOptional<z.ZodAny>;
22
22
  }, "strip", z.ZodTypeAny, {
23
- customer_id: string;
24
23
  code: string;
25
24
  message: string;
25
+ customer_id: string;
26
26
  product_ids: string[];
27
27
  checkout_url?: string | undefined;
28
28
  customer_data?: any;
29
29
  }, {
30
- customer_id: string;
31
30
  code: string;
32
31
  message: string;
32
+ customer_id: string;
33
33
  product_ids: string[];
34
34
  checkout_url?: string | undefined;
35
35
  customer_data?: any;
@@ -1,15 +1,15 @@
1
- import { a as ProductItem, P as Product } from './prodTypes-DuLXGCiA.js';
1
+ import { P as ProductItem, a as Product } from './prodTypes-CER0agHK.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare const AttachFeatureOptionsSchema: z.ZodObject<{
5
5
  feature_id: z.ZodString;
6
6
  quantity: z.ZodNumber;
7
7
  }, "strip", z.ZodTypeAny, {
8
- quantity: number;
9
8
  feature_id: string;
10
- }, {
11
9
  quantity: number;
10
+ }, {
12
11
  feature_id: string;
12
+ quantity: number;
13
13
  }>;
14
14
  type AttachFeatureOptions = z.infer<typeof AttachFeatureOptionsSchema>;
15
15
  declare const AttachResultSchema: z.ZodObject<{
@@ -20,16 +20,16 @@ declare const AttachResultSchema: z.ZodObject<{
20
20
  message: z.ZodString;
21
21
  customer_data: z.ZodOptional<z.ZodAny>;
22
22
  }, "strip", z.ZodTypeAny, {
23
- customer_id: string;
24
23
  code: string;
25
24
  message: string;
25
+ customer_id: string;
26
26
  product_ids: string[];
27
27
  checkout_url?: string | undefined;
28
28
  customer_data?: any;
29
29
  }, {
30
- customer_id: string;
31
30
  code: string;
32
31
  message: string;
32
+ customer_id: string;
33
33
  product_ids: string[];
34
34
  checkout_url?: string | undefined;
35
35
  customer_data?: any;
@@ -1,4 +1,4 @@
1
- import { C as CheckFeatureResult, d as CheckProductResult } from './prodTypes-UFM-PYm-.mjs';
1
+ import { C as CheckFeatureResult, d as CheckProductResult } from './prodTypes-CER0agHK.mjs';
2
2
  import { z } from 'zod';
3
3
  import { A as AutumnError } from './error-DHbclCVh.mjs';
4
4
 
@@ -23,15 +23,15 @@ declare const TrackResultSchema: z.ZodObject<{
23
23
  feature_id: z.ZodOptional<z.ZodString>;
24
24
  event_name: z.ZodOptional<z.ZodString>;
25
25
  }, "strip", z.ZodTypeAny, {
26
+ code: string;
26
27
  id: string;
27
28
  customer_id: string;
28
- code: string;
29
29
  feature_id?: string | undefined;
30
30
  event_name?: string | undefined;
31
31
  }, {
32
+ code: string;
32
33
  id: string;
33
34
  customer_id: string;
34
- code: string;
35
35
  feature_id?: string | undefined;
36
36
  event_name?: string | undefined;
37
37
  }>;
@@ -1,4 +1,4 @@
1
- import { C as CheckFeatureResult, d as CheckProductResult } from './prodTypes-UFM-PYm-.js';
1
+ import { C as CheckFeatureResult, d as CheckProductResult } from './prodTypes-CER0agHK.js';
2
2
  import { z } from 'zod';
3
3
  import { A as AutumnError } from './error-DHbclCVh.js';
4
4
 
@@ -23,15 +23,15 @@ declare const TrackResultSchema: z.ZodObject<{
23
23
  feature_id: z.ZodOptional<z.ZodString>;
24
24
  event_name: z.ZodOptional<z.ZodString>;
25
25
  }, "strip", z.ZodTypeAny, {
26
+ code: string;
26
27
  id: string;
27
28
  customer_id: string;
28
- code: string;
29
29
  feature_id?: string | undefined;
30
30
  event_name?: string | undefined;
31
31
  }, {
32
+ code: string;
32
33
  id: string;
33
34
  customer_id: string;
34
- code: string;
35
35
  feature_id?: string | undefined;
36
36
  event_name?: string | undefined;
37
37
  }>;
@@ -1,8 +1,8 @@
1
1
  import { AutumnClientError, PricingTableProduct } from './types.mjs';
2
- import './cusTypes-BuLw67IH.mjs';
3
- import './prodTypes-UFM-PYm-.mjs';
2
+ import './cusTypes-XE8bnuf2.mjs';
3
+ import './prodTypes-CER0agHK.mjs';
4
4
  import 'zod';
5
- import './entTypes-DTRFxh07.mjs';
5
+ import './entTypes-BcoGsNYC.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-CqAsUZEp.js';
3
- import './prodTypes-UFM-PYm-.js';
2
+ import './cusTypes-Crh2qzWb.js';
3
+ import './prodTypes-CER0agHK.js';
4
4
  import 'zod';
5
- import './entTypes-BLLymqnn.js';
5
+ import './entTypes-sKOZyw0N.js';
6
6
 
7
7
  declare const toClientErrorResponse: (error: any) => {
8
8
  data: null;
@@ -1,4 +1,4 @@
1
- import { A as AppEnv, P as ProductItem, b as ProductItemInterval } from './prodTypes-UFM-PYm-.js';
1
+ import { A as AppEnv, P as ProductItem, b as ProductItemInterval } from './prodTypes-CER0agHK.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare enum ProductStatus {
@@ -165,17 +165,17 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
165
165
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
166
166
  expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
167
167
  }, "strip", z.ZodTypeAny, {
168
- id?: string | null | undefined;
169
168
  name?: string | null | undefined;
170
169
  email?: string | null | undefined;
171
170
  fingerprint?: string | null | undefined;
171
+ id?: string | null | undefined;
172
172
  metadata?: Record<string, any> | undefined;
173
173
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
174
174
  }, {
175
- id?: string | null | undefined;
176
175
  name?: string | null | undefined;
177
176
  email?: string | null | undefined;
178
177
  fingerprint?: string | null | undefined;
178
+ id?: string | null | undefined;
179
179
  metadata?: Record<string, any> | undefined;
180
180
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
181
181
  }>;
@@ -1,4 +1,4 @@
1
- import { A as AppEnv, P as ProductItem, b as ProductItemInterval } from './prodTypes-UFM-PYm-.mjs';
1
+ import { A as AppEnv, P as ProductItem, b as ProductItemInterval } from './prodTypes-CER0agHK.mjs';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare enum ProductStatus {
@@ -165,17 +165,17 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
165
165
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
166
166
  expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
167
167
  }, "strip", z.ZodTypeAny, {
168
- id?: string | null | undefined;
169
168
  name?: string | null | undefined;
170
169
  email?: string | null | undefined;
171
170
  fingerprint?: string | null | undefined;
171
+ id?: string | null | undefined;
172
172
  metadata?: Record<string, any> | undefined;
173
173
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
174
174
  }, {
175
- id?: string | null | undefined;
176
175
  name?: string | null | undefined;
177
176
  email?: string | null | undefined;
178
177
  fingerprint?: string | null | undefined;
178
+ id?: string | null | undefined;
179
179
  metadata?: Record<string, any> | undefined;
180
180
  expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
181
181
  }>;
@@ -1,4 +1,4 @@
1
- import { b as CustomerProduct, c as CustomerFeature, d as CustomerInvoice } from './cusTypes-BuLw67IH.mjs';
1
+ import { b as CustomerProduct, c as CustomerFeature, d as CustomerInvoice } from './cusTypes-XE8bnuf2.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-CqAsUZEp.js';
1
+ import { b as CustomerProduct, c as CustomerFeature, d as CustomerInvoice } from './cusTypes-Crh2qzWb.js';
2
2
 
3
3
  type EntityExpandOption = "invoices";
4
4
 
@@ -1,8 +1,8 @@
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-whHUVrE3.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-B-zWythK.mjs';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
3
- import { C as CheckoutResult } from '../attachTypes-BThbMcvF.mjs';
4
- import { B as BillingPortalResult } from '../cusTypes-BuLw67IH.mjs';
5
- import '../prodTypes-UFM-PYm-.mjs';
3
+ import { C as CheckoutResult } from '../attachTypes-CAvqbMDV.mjs';
4
+ import { B as BillingPortalResult } from '../cusTypes-XE8bnuf2.mjs';
5
+ import '../prodTypes-CER0agHK.mjs';
6
6
  import 'zod';
7
7
 
8
8
  declare const useAutumn: () => {
@@ -1,8 +1,8 @@
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-Df5FVGkw.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-DLh_8bIG.js';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.js';
3
- import { C as CheckoutResult } from '../attachTypes-BCt7D8ym.js';
4
- import { B as BillingPortalResult } from '../cusTypes-CqAsUZEp.js';
5
- import '../prodTypes-UFM-PYm-.js';
3
+ import { C as CheckoutResult } from '../attachTypes-zg5EhNcS.js';
4
+ import { B as BillingPortalResult } from '../cusTypes-Crh2qzWb.js';
5
+ import '../prodTypes-CER0agHK.js';
6
6
  import 'zod';
7
7
 
8
8
  declare const useAutumn: () => {
@@ -1,12 +1,12 @@
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-whHUVrE3.mjs';
3
- import { A as AttachResult, C as CheckoutResult } from '../attachTypes-BThbMcvF.mjs';
4
- import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-BuLw67IH.mjs';
5
- import { E as Entity } from '../entTypes-DTRFxh07.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-B-zWythK.mjs';
3
+ import { A as AttachResult, C as CheckoutResult } from '../attachTypes-CAvqbMDV.mjs';
4
+ import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-XE8bnuf2.mjs';
5
+ import { E as Entity } from '../entTypes-BcoGsNYC.mjs';
6
6
  import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.mjs';
7
7
  import { z } from 'zod';
8
8
  import { SWRConfiguration } from 'swr';
9
- import '../prodTypes-UFM-PYm-.mjs';
9
+ import '../prodTypes-CER0agHK.mjs';
10
10
 
11
11
  declare const CreateReferralCodeParamsSchema: z.ZodObject<{
12
12
  programId: z.ZodString;
@@ -1,12 +1,12 @@
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-Df5FVGkw.js';
3
- import { A as AttachResult, C as CheckoutResult } from '../attachTypes-BCt7D8ym.js';
4
- import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-CqAsUZEp.js';
5
- import { E as Entity } from '../entTypes-BLLymqnn.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-DLh_8bIG.js';
3
+ import { A as AttachResult, C as CheckoutResult } from '../attachTypes-zg5EhNcS.js';
4
+ import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-Crh2qzWb.js';
5
+ import { E as Entity } from '../entTypes-sKOZyw0N.js';
6
6
  import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.js';
7
7
  import { z } from 'zod';
8
8
  import { SWRConfiguration } from 'swr';
9
- import '../prodTypes-UFM-PYm-.js';
9
+ import '../prodTypes-CER0agHK.js';
10
10
 
11
11
  declare const CreateReferralCodeParamsSchema: z.ZodObject<{
12
12
  programId: z.ZodString;
@@ -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-whHUVrE3.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-B-zWythK.mjs';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
3
- import { G as GetEntityParams, E as Entity } from '../entTypes-DTRFxh07.mjs';
3
+ import { G as GetEntityParams, E as Entity } from '../entTypes-BcoGsNYC.mjs';
4
4
  import * as swr from 'swr';
5
- import '../prodTypes-UFM-PYm-.mjs';
5
+ import '../prodTypes-CER0agHK.mjs';
6
6
  import 'zod';
7
- import '../cusTypes-BuLw67IH.mjs';
7
+ import '../cusTypes-XE8bnuf2.mjs';
8
8
 
9
9
  declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
10
10
  entity: Entity | null;
@@ -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-Df5FVGkw.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-DLh_8bIG.js';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.js';
3
- import { G as GetEntityParams, E as Entity } from '../entTypes-BLLymqnn.js';
3
+ import { G as GetEntityParams, E as Entity } from '../entTypes-sKOZyw0N.js';
4
4
  import * as swr from 'swr';
5
- import '../prodTypes-UFM-PYm-.js';
5
+ import '../prodTypes-CER0agHK.js';
6
6
  import 'zod';
7
- import '../cusTypes-CqAsUZEp.js';
7
+ import '../cusTypes-Crh2qzWb.js';
8
8
 
9
9
  declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
10
10
  entity: Entity | null;
@@ -1,6 +1,6 @@
1
1
  import * as swr from 'swr';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
3
- import { a as Product } from '../prodTypes-UFM-PYm-.mjs';
3
+ import { a as Product } from '../prodTypes-CER0agHK.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 { a as Product } from '../prodTypes-UFM-PYm-.js';
3
+ import { a as Product } from '../prodTypes-CER0agHK.js';
4
4
  import 'zod';
5
5
 
6
6
  interface ProductDetails {
@@ -1,6 +1,6 @@
1
- import { C as CustomerData, a as Customer } from './cusTypes-BuLw67IH.mjs';
2
- import { E as Entity } from './entTypes-DTRFxh07.mjs';
3
- import './prodTypes-UFM-PYm-.mjs';
1
+ import { C as CustomerData, a as Customer } from './cusTypes-XE8bnuf2.mjs';
2
+ import { E as Entity } from './entTypes-BcoGsNYC.mjs';
3
+ import './prodTypes-CER0agHK.mjs';
4
4
  import 'zod';
5
5
 
6
6
  interface ProductDetails {
@@ -1,6 +1,6 @@
1
- import { C as CustomerData, a as Customer } from './cusTypes-CqAsUZEp.js';
2
- import { E as Entity } from './entTypes-BLLymqnn.js';
3
- import './prodTypes-UFM-PYm-.js';
1
+ import { C as CustomerData, a as Customer } from './cusTypes-Crh2qzWb.js';
2
+ import { E as Entity } from './entTypes-sKOZyw0N.js';
3
+ import './prodTypes-CER0agHK.js';
4
4
  import 'zod';
5
5
 
6
6
  interface ProductDetails {
@@ -1,4 +1,4 @@
1
- import { C as CustomerData } from '../cusTypes-B0zde-Pl.mjs';
1
+ import { C as CustomerData } from '../cusTypes-DUjCLJ7f.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-B0zde-Pl.js';
1
+ import { C as CustomerData } from '../cusTypes-DUjCLJ7f.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-B0zde-Pl.mjs';
1
+ import { C as CustomerData } from './cusTypes-DUjCLJ7f.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-B0zde-Pl.js';
1
+ import { C as CustomerData } from './cusTypes-DUjCLJ7f.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, P as ProductItem, c as Product, G as GetCustomerParams, d as Customer, e as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, f as BillingPortalResult, g as CreateProductParams, L as ListProductsParams, h as CustomerProduct, i as CustomerFeature, j as CustomerInvoice } from './cusTypes-B0zde-Pl.mjs';
1
+ import { C as CustomerData, a as CheckFeatureResult, b as CheckProductResult, P as ProductItem, c as Product, G as GetCustomerParams, d as Customer, e as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, f as BillingPortalResult, g as UpdateBalancesParams, h as UpdateBalancesResult, i as CreateProductParams, L as ListProductsParams, j as CustomerProduct, k as CustomerFeature, l as CustomerInvoice } from './cusTypes-DUjCLJ7f.mjs';
2
2
  import { z } from 'zod';
3
3
  import { R as Result, A as AutumnError } from './response-eH4S4sg0.mjs';
4
4
 
@@ -30,18 +30,18 @@ declare const TrackParamsSchema: z.ZodObject<{
30
30
  entity_data: z.ZodOptional<z.ZodAny>;
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  customer_id: string;
33
+ value?: number | undefined;
33
34
  feature_id?: string | undefined;
34
35
  entity_id?: string | undefined;
35
- value?: number | undefined;
36
36
  customer_data?: any;
37
37
  entity_data?: any;
38
38
  event_name?: string | undefined;
39
39
  idempotency_key?: string | undefined;
40
40
  }, {
41
41
  customer_id: string;
42
+ value?: number | undefined;
42
43
  feature_id?: string | undefined;
43
44
  entity_id?: string | undefined;
44
- value?: number | undefined;
45
45
  customer_data?: any;
46
46
  entity_data?: any;
47
47
  event_name?: string | undefined;
@@ -121,12 +121,12 @@ declare const QueryParamsSchema: z.ZodObject<{
121
121
  feature_id: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
122
122
  range: z.ZodOptional<z.ZodEnum<["24h", "7d", "30d", "90d", "last_cycle"]>>;
123
123
  }, "strip", z.ZodTypeAny, {
124
- feature_id: string | string[];
125
124
  customer_id: string;
125
+ feature_id: string | string[];
126
126
  range?: "24h" | "7d" | "30d" | "90d" | "last_cycle" | undefined;
127
127
  }, {
128
- feature_id: string | string[];
129
128
  customer_id: string;
129
+ feature_id: string | string[];
130
130
  range?: "24h" | "7d" | "30d" | "90d" | "last_cycle" | undefined;
131
131
  }>;
132
132
  type QueryParams = z.infer<typeof QueryParamsSchema>;
@@ -186,11 +186,11 @@ declare const AttachParamsSchema: z.ZodObject<{
186
186
  reward: z.ZodOptional<z.ZodString>;
187
187
  }, "strip", z.ZodTypeAny, {
188
188
  customer_id: string;
189
- entity_id?: string | undefined;
190
189
  options?: {
191
190
  feature_id: string;
192
191
  quantity: number;
193
192
  }[] | undefined;
193
+ entity_id?: string | undefined;
194
194
  metadata?: Record<string, string> | undefined;
195
195
  product_id?: string | undefined;
196
196
  product_ids?: string[] | undefined;
@@ -207,11 +207,11 @@ declare const AttachParamsSchema: z.ZodObject<{
207
207
  reward?: string | undefined;
208
208
  }, {
209
209
  customer_id: string;
210
- entity_id?: string | undefined;
211
210
  options?: {
212
211
  feature_id: string;
213
212
  quantity: number;
214
213
  }[] | undefined;
214
+ entity_id?: string | undefined;
215
215
  metadata?: Record<string, string> | undefined;
216
216
  product_id?: string | undefined;
217
217
  product_ids?: string[] | undefined;
@@ -262,11 +262,11 @@ declare const CheckoutParamsSchema: z.ZodObject<{
262
262
  }, "strip", z.ZodTypeAny, {
263
263
  customer_id: string;
264
264
  product_id: string;
265
- entity_id?: string | undefined;
266
265
  options?: {
267
266
  feature_id: string;
268
267
  quantity: number;
269
268
  }[] | undefined;
269
+ entity_id?: string | undefined;
270
270
  success_url?: string | undefined;
271
271
  customer_data?: {
272
272
  name?: string | null | undefined;
@@ -279,11 +279,11 @@ declare const CheckoutParamsSchema: z.ZodObject<{
279
279
  }, {
280
280
  customer_id: string;
281
281
  product_id: string;
282
- entity_id?: string | undefined;
283
282
  options?: {
284
283
  feature_id: string;
285
284
  quantity: number;
286
285
  }[] | undefined;
286
+ entity_id?: string | undefined;
287
287
  success_url?: string | undefined;
288
288
  customer_data?: {
289
289
  name?: string | null | undefined;
@@ -338,6 +338,7 @@ declare class Autumn {
338
338
  update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
339
339
  delete: (id: string) => Promise<Result<Customer, AutumnError>>;
340
340
  billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
341
+ updateBalances: (id: string, params: UpdateBalancesParams) => Promise<Result<UpdateBalancesResult, AutumnError>>;
341
342
  };
342
343
  static products: {
343
344
  get: (id: string) => Promise<Result<Product, AutumnError>>;
@@ -362,6 +363,7 @@ declare class Autumn {
362
363
  update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
363
364
  delete: (id: string) => Promise<Result<Customer, AutumnError>>;
364
365
  billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
366
+ updateBalances: (id: string, params: UpdateBalancesParams) => Promise<Result<UpdateBalancesResult, AutumnError>>;
365
367
  };
366
368
  products: {
367
369
  get: (id: string) => Promise<Result<Product, AutumnError>>;
@@ -383,18 +385,18 @@ declare class Autumn {
383
385
  static checkout: (params: CheckoutParams) => Promise<Result<CheckoutResult, AutumnError>>;
384
386
  checkout(params: CheckoutParams): Promise<Result<CheckoutResult, AutumnError>>;
385
387
  static attach: (params: AttachParams) => Promise<Result<{
386
- customer_id: string;
387
388
  code: string;
388
389
  message: string;
390
+ customer_id: string;
389
391
  product_ids: string[];
390
392
  customer_data?: any;
391
393
  checkout_url?: string | undefined;
392
394
  }, AutumnError>>;
393
395
  static usage: (params: UsageParams) => Promise<Result<UsageResult, AutumnError>>;
394
396
  attach(params: AttachParams): Promise<Result<{
395
- customer_id: string;
396
397
  code: string;
397
398
  message: string;
399
+ customer_id: string;
398
400
  product_ids: string[];
399
401
  customer_data?: any;
400
402
  checkout_url?: string | undefined;
@@ -414,15 +416,15 @@ declare class Autumn {
414
416
  static check: (params: CheckParams) => Promise<Result<CheckResult, AutumnError>>;
415
417
  check(params: CheckParams): Promise<Result<CheckResult, AutumnError>>;
416
418
  static track: (params: TrackParams) => Promise<Result<{
417
- customer_id: string;
418
419
  code: string;
420
+ customer_id: string;
419
421
  id: string;
420
422
  feature_id?: string | undefined;
421
423
  event_name?: string | undefined;
422
424
  }, AutumnError>>;
423
425
  track(params: TrackParams): Promise<Result<{
424
- customer_id: string;
425
426
  code: string;
427
+ customer_id: string;
426
428
  id: string;
427
429
  feature_id?: string | undefined;
428
430
  event_name?: string | undefined;
@@ -492,11 +494,11 @@ declare const RedeemReferralCodeParamsSchema: z.ZodObject<{
492
494
  code: z.ZodString;
493
495
  customer_id: z.ZodString;
494
496
  }, "strip", z.ZodTypeAny, {
495
- customer_id: string;
496
497
  code: string;
497
- }, {
498
498
  customer_id: string;
499
+ }, {
499
500
  code: string;
501
+ customer_id: string;
500
502
  }>;
501
503
  type RedeemReferralCodeParams = z.infer<typeof RedeemReferralCodeParamsSchema>;
502
504