autumn-js 0.0.114 → 0.0.116

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 (245) hide show
  1. package/README.md +1 -139
  2. package/dist/libraries/backend/better-auth.d.mts +18 -18
  3. package/dist/libraries/backend/better-auth.d.ts +18 -18
  4. package/dist/libraries/backend/better-auth.js +21 -1
  5. package/dist/libraries/backend/better-auth.mjs +7 -7
  6. package/dist/libraries/backend/{chunk-5W265EHC.mjs → chunk-BDMGQV75.mjs} +1 -1
  7. package/dist/libraries/backend/{chunk-AE3ATQW3.mjs → chunk-BX2LACTF.mjs} +1 -1
  8. package/dist/libraries/backend/{chunk-AHC5CF27.mjs → chunk-EIP7LDKF.mjs} +1 -1
  9. package/dist/libraries/backend/{chunk-QGTZAKB7.mjs → chunk-N4PGGU3D.mjs} +1 -1
  10. package/dist/libraries/backend/{chunk-JUTZHAHU.mjs → chunk-O6KXYXQN.mjs} +1 -1
  11. package/dist/libraries/backend/{chunk-SHE3OJIL.mjs → chunk-QGX7ZACH.mjs} +21 -1
  12. package/dist/libraries/backend/{chunk-YFHV4POF.mjs → chunk-WTKY2U3S.mjs} +6 -6
  13. package/dist/libraries/backend/convex.js +21 -1
  14. package/dist/libraries/backend/convex.mjs +7 -7
  15. package/dist/libraries/backend/elysia.js +21 -1
  16. package/dist/libraries/backend/elysia.mjs +7 -7
  17. package/dist/libraries/backend/express.d.mts +1 -1
  18. package/dist/libraries/backend/express.d.ts +1 -1
  19. package/dist/libraries/backend/express.js +21 -1
  20. package/dist/libraries/backend/express.mjs +7 -7
  21. package/dist/libraries/backend/fastify.js +21 -1
  22. package/dist/libraries/backend/fastify.mjs +7 -7
  23. package/dist/libraries/backend/hono.js +21 -1
  24. package/dist/libraries/backend/hono.mjs +7 -7
  25. package/dist/libraries/backend/index.d.mts +1 -1
  26. package/dist/libraries/backend/index.d.ts +1 -1
  27. package/dist/libraries/backend/index.js +21 -1
  28. package/dist/libraries/backend/index.mjs +7 -7
  29. package/dist/libraries/backend/next.js +21 -1
  30. package/dist/libraries/backend/next.mjs +7 -7
  31. package/dist/libraries/backend/react-router.js +21 -1
  32. package/dist/libraries/backend/react-router.mjs +7 -7
  33. package/dist/libraries/backend/{referralTypes-qMay-K9l.d.ts → referralTypes-DXhjwazw.d.ts} +109 -45
  34. package/dist/libraries/backend/{referralTypes-COVVwj-1.d.mts → referralTypes-Dxn4bOpT.d.mts} +109 -45
  35. package/dist/libraries/backend/remix_dep.js +21 -1
  36. package/dist/libraries/backend/remix_dep.mjs +7 -7
  37. package/dist/libraries/backend/routes/backendRouter.js +21 -1
  38. package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
  39. package/dist/libraries/backend/routes/entityRoutes.js +21 -1
  40. package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
  41. package/dist/libraries/backend/routes/genRoutes.js +21 -1
  42. package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
  43. package/dist/libraries/backend/routes/productRoutes.js +21 -1
  44. package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
  45. package/dist/libraries/backend/routes/referralRoutes.js +21 -1
  46. package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
  47. package/dist/libraries/backend/supabase.js +21 -1
  48. package/dist/libraries/backend/supabase.mjs +7 -7
  49. package/dist/libraries/backend/tanstack.js +21 -1
  50. package/dist/libraries/backend/tanstack.mjs +7 -7
  51. package/dist/libraries/backend/utils/backendRes.js +21 -1
  52. package/dist/libraries/backend/utils/backendRes.mjs +1 -1
  53. package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
  54. package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
  55. package/dist/libraries/backend/utils/withAuth.js +21 -1
  56. package/dist/libraries/backend/utils/withAuth.mjs +2 -2
  57. package/dist/libraries/react/AutumnContext.d.mts +6 -6
  58. package/dist/libraries/react/AutumnContext.d.ts +6 -6
  59. package/dist/libraries/react/AutumnContext.js +21 -1
  60. package/dist/libraries/react/AutumnContext.mjs +3 -3
  61. package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -6
  62. package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
  63. package/dist/libraries/react/BaseAutumnProvider.js +21 -1
  64. package/dist/libraries/react/BaseAutumnProvider.mjs +8 -8
  65. package/dist/libraries/react/{ReactAutumnClient-BbbdQEOx.d.ts → ReactAutumnClient-5mFEwitR.d.ts} +11 -8
  66. package/dist/libraries/react/{ReactAutumnClient-BD8mQ965.d.mts → ReactAutumnClient-DooIpMm0.d.mts} +11 -8
  67. package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -2
  68. package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -2
  69. package/dist/libraries/react/ReactAutumnProvider.js +21 -1
  70. package/dist/libraries/react/ReactAutumnProvider.mjs +9 -9
  71. package/dist/libraries/react/{attachTypes-BfITg8QI.d.mts → attachTypes-By0coJIV.d.mts} +3 -3
  72. package/dist/{next/client/attachTypes-BPWwj1YK.d.ts → libraries/react/attachTypes-CSutLgVn.d.ts} +3 -3
  73. package/dist/libraries/react/{chunk-37PNTTHW.mjs → chunk-77DMPCGK.mjs} +35 -37
  74. package/dist/libraries/react/{chunk-5PA5P2UE.mjs → chunk-7RICWVXV.mjs} +2 -2
  75. package/dist/libraries/react/{chunk-62QDB3KQ.mjs → chunk-AXHU3KAH.mjs} +3 -3
  76. package/dist/libraries/react/{chunk-O6TAJHK3.mjs → chunk-BLM4DAAR.mjs} +3 -3
  77. package/dist/libraries/react/{chunk-3JORYFTY.mjs → chunk-CZBWEEWD.mjs} +21 -1
  78. package/dist/libraries/react/{chunk-CZVP6BZG.mjs → chunk-EXUNRZTP.mjs} +3 -3
  79. package/dist/libraries/react/{chunk-YEG5KJEI.mjs → chunk-H4J73SMR.mjs} +1 -1
  80. package/dist/libraries/react/{chunk-HBCCTYA6.mjs → chunk-I5ZGIAIX.mjs} +3 -3
  81. package/dist/libraries/react/{chunk-YDRULJZE.mjs → chunk-IFZCH7DR.mjs} +2 -2
  82. package/dist/libraries/react/{chunk-RGAEIODW.mjs → chunk-LFLX6NJU.mjs} +1 -1
  83. package/dist/libraries/react/{chunk-FOXUAY7Y.mjs → chunk-LMQMA7VL.mjs} +1 -1
  84. package/dist/libraries/react/{chunk-3UNBBJY5.mjs → chunk-MPA65MFU.mjs} +1 -1
  85. package/dist/libraries/react/{chunk-6R3O2T4H.mjs → chunk-MRZA4JWN.mjs} +1 -1
  86. package/dist/libraries/react/{chunk-PEYCQWHI.mjs → chunk-PFN52PHR.mjs} +2 -2
  87. package/dist/libraries/react/{chunk-CV4TKYAC.mjs → chunk-QJJC6MB3.mjs} +2 -2
  88. package/dist/libraries/react/{chunk-4Q7BDIOS.mjs → chunk-UAK4XMNC.mjs} +1 -1
  89. package/dist/libraries/react/{chunk-E2H5MYIO.mjs → chunk-UCUAGLCJ.mjs} +1 -1
  90. package/dist/libraries/react/{chunk-HBVLIBOE.mjs → chunk-WZG3QTZI.mjs} +3 -3
  91. package/dist/libraries/react/client/ReactAutumnClient.d.mts +6 -6
  92. package/dist/libraries/react/client/ReactAutumnClient.d.ts +6 -6
  93. package/dist/libraries/react/client/ReactAutumnClient.js +21 -1
  94. package/dist/libraries/react/client/ReactAutumnClient.mjs +2 -2
  95. package/dist/libraries/react/client/clientCompMethods.d.mts +6 -6
  96. package/dist/libraries/react/client/clientCompMethods.d.ts +6 -6
  97. package/dist/libraries/react/client/clientCusMethods.d.mts +6 -6
  98. package/dist/libraries/react/client/clientCusMethods.d.ts +6 -6
  99. package/dist/libraries/react/client/clientEntityMethods.d.mts +6 -6
  100. package/dist/libraries/react/client/clientEntityMethods.d.ts +6 -6
  101. package/dist/libraries/react/client/clientGenMethods.d.mts +6 -6
  102. package/dist/libraries/react/client/clientGenMethods.d.ts +6 -6
  103. package/dist/libraries/react/client/clientProdMethods.d.mts +6 -6
  104. package/dist/libraries/react/client/clientProdMethods.d.ts +6 -6
  105. package/dist/libraries/react/client/clientReferralMethods.d.mts +6 -6
  106. package/dist/libraries/react/client/clientReferralMethods.d.ts +6 -6
  107. package/dist/libraries/react/client/types/clientAttachTypes.d.mts +9 -0
  108. package/dist/libraries/react/client/types/clientAttachTypes.d.ts +9 -0
  109. package/dist/libraries/react/client/types/clientAttachTypes.js +4 -1
  110. package/dist/libraries/react/client/types/clientAttachTypes.mjs +4 -1
  111. package/dist/libraries/react/client/types/clientGenTypes.js +21 -1
  112. package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -1
  113. package/dist/libraries/react/components/{attach-dialog/attach-dialog-synced.d.mts → checkout-dialog/checkout-dialog-synced.d.mts} +5 -5
  114. package/dist/libraries/react/components/{attach-dialog/attach-dialog-synced.d.ts → checkout-dialog/checkout-dialog-synced.d.ts} +5 -5
  115. package/dist/libraries/react/components/{attach-dialog/attach-dialog-synced.js → checkout-dialog/checkout-dialog-synced.js} +33 -13
  116. package/dist/libraries/react/components/{attach-dialog/attach-dialog-synced.mjs → checkout-dialog/checkout-dialog-synced.mjs} +27 -27
  117. package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.mts +11 -0
  118. package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.ts +11 -0
  119. package/dist/libraries/react/components/{attach-dialog/lib/attach-content.js → checkout-dialog/lib/checkout-content.js} +7 -7
  120. package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.mjs +8 -0
  121. package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.mts +9 -0
  122. package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.ts +9 -0
  123. package/dist/libraries/react/components/{check-dialog/lib/check-content.js → paywall-dialog/lib/paywall-content.js} +7 -7
  124. package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.mjs +8 -0
  125. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.d.mts +11 -0
  126. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.d.ts +11 -0
  127. package/dist/libraries/react/components/{check-dialog/check-dialog-synced.js → paywall-dialog/paywall-dialog-synced.js} +34 -14
  128. package/dist/libraries/react/components/{check-dialog/check-dialog-synced.mjs → paywall-dialog/paywall-dialog-synced.mjs} +27 -27
  129. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +1 -1
  130. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +1 -1
  131. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +4 -4
  132. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +4 -4
  133. package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +30 -12
  134. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +25 -25
  135. package/dist/libraries/react/components/ui/dialog.mjs +2 -2
  136. package/dist/libraries/react/components/ui/popover.mjs +2 -2
  137. package/dist/libraries/react/{cusTypes-CMj2sP-4.d.ts → cusTypes-Bbmd8V3j.d.mts} +23 -5
  138. package/dist/libraries/react/{cusTypes-Dj2tcwg7.d.mts → cusTypes-d_DR9uFs.d.ts} +23 -5
  139. package/dist/libraries/react/{entTypes-Cltx_-C_.d.mts → entTypes-B2DgO6PV.d.mts} +1 -1
  140. package/dist/libraries/react/{entTypes-fYtiTl7W.d.ts → entTypes-D6eoGCKH.d.ts} +1 -1
  141. package/dist/libraries/react/{genTypes-A2nf2M_h.d.ts → genTypes-BNXXZTFn.d.ts} +5 -5
  142. package/dist/libraries/react/{genTypes-CH9EbOfb.d.mts → genTypes-C2VFQqmX.d.mts} +5 -5
  143. package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +6 -6
  144. package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +6 -6
  145. package/dist/libraries/react/hooks/helpers/handleCheck.js +21 -1
  146. package/dist/libraries/react/hooks/helpers/handleCheck.mjs +2 -2
  147. package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +6 -6
  148. package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +6 -6
  149. package/dist/libraries/react/hooks/helpers/useAutumnBase.js +21 -1
  150. package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +3 -3
  151. package/dist/libraries/react/hooks/useAnalytics.d.mts +2 -2
  152. package/dist/libraries/react/hooks/useAnalytics.d.ts +2 -2
  153. package/dist/libraries/react/hooks/useAnalytics.js +21 -1
  154. package/dist/libraries/react/hooks/useAnalytics.mjs +4 -4
  155. package/dist/libraries/react/hooks/useCustomer.d.mts +6 -6
  156. package/dist/libraries/react/hooks/useCustomer.d.ts +6 -6
  157. package/dist/libraries/react/hooks/useCustomer.js +21 -1
  158. package/dist/libraries/react/hooks/useCustomer.mjs +8 -8
  159. package/dist/libraries/react/hooks/useCustomerBase.d.mts +6 -6
  160. package/dist/libraries/react/hooks/useCustomerBase.d.ts +6 -6
  161. package/dist/libraries/react/hooks/useCustomerBase.js +21 -1
  162. package/dist/libraries/react/hooks/useCustomerBase.mjs +7 -7
  163. package/dist/libraries/react/hooks/useEntity.d.mts +6 -6
  164. package/dist/libraries/react/hooks/useEntity.d.ts +6 -6
  165. package/dist/libraries/react/hooks/useEntity.js +21 -1
  166. package/dist/libraries/react/hooks/useEntity.mjs +8 -8
  167. package/dist/libraries/react/hooks/useEntityBase.d.mts +8 -8
  168. package/dist/libraries/react/hooks/useEntityBase.d.ts +8 -8
  169. package/dist/libraries/react/hooks/useEntityBase.js +21 -1
  170. package/dist/libraries/react/hooks/useEntityBase.mjs +7 -7
  171. package/dist/libraries/react/hooks/usePaywall.d.mts +1 -1
  172. package/dist/libraries/react/hooks/usePaywall.d.ts +1 -1
  173. package/dist/libraries/react/hooks/usePaywall.js +21 -1
  174. package/dist/libraries/react/hooks/usePaywall.mjs +4 -4
  175. package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
  176. package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
  177. package/dist/libraries/react/hooks/usePricingTable.js +21 -1
  178. package/dist/libraries/react/hooks/usePricingTable.mjs +5 -5
  179. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +6 -6
  180. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +6 -6
  181. package/dist/libraries/react/hooks/usePricingTableBase.js +21 -1
  182. package/dist/libraries/react/hooks/usePricingTableBase.mjs +2 -2
  183. package/dist/libraries/react/hooks/useProductsBase.d.mts +6 -6
  184. package/dist/libraries/react/hooks/useProductsBase.d.ts +6 -6
  185. package/dist/libraries/react/index.d.mts +51 -6
  186. package/dist/libraries/react/index.d.ts +51 -6
  187. package/dist/libraries/react/index.js +38 -20
  188. package/dist/libraries/react/index.mjs +36 -18
  189. package/dist/libraries/react/{prodTypes-DZUJPsRN.d.mts → prodTypes-B3iWy6kz.d.mts} +21 -3
  190. package/dist/libraries/react/{prodTypes-DZUJPsRN.d.ts → prodTypes-B3iWy6kz.d.ts} +21 -3
  191. package/dist/next/client/NextAutumnClient.d.mts +22 -19
  192. package/dist/next/client/NextAutumnClient.d.ts +22 -19
  193. package/dist/next/client/NextAutumnProvider.d.mts +2 -2
  194. package/dist/next/client/NextAutumnProvider.d.ts +2 -2
  195. package/dist/{libraries/react/attachTypes-ZMWuxpzI.d.ts → next/client/attachTypes-BCt7D8ym.d.ts} +5 -5
  196. package/dist/next/client/{attachTypes-C67U2LbK.d.mts → attachTypes-BThbMcvF.d.mts} +9 -9
  197. package/dist/next/client/{clientAttachTypes-B4i2ri-1.d.ts → clientAttachTypes-Df5FVGkw.d.ts} +36 -27
  198. package/dist/next/client/{clientAttachTypes-EGitteWV.d.mts → clientAttachTypes-whHUVrE3.d.mts} +36 -27
  199. package/dist/next/client/clientUtils.d.mts +3 -3
  200. package/dist/next/client/clientUtils.d.ts +3 -3
  201. package/dist/next/client/{cusTypes-Dn0ETI7G.d.ts → cusTypes-BuLw67IH.d.mts} +23 -5
  202. package/dist/next/client/{cusTypes-CRJanGZd.d.mts → cusTypes-CqAsUZEp.d.ts} +23 -5
  203. package/dist/next/client/{entTypes-Caov3CJ9.d.ts → entTypes-BLLymqnn.d.ts} +1 -1
  204. package/dist/next/client/{entTypes-Qyo2WYGP.d.mts → entTypes-DTRFxh07.d.mts} +1 -1
  205. package/dist/next/client/hooks/useAutumn.d.mts +4 -4
  206. package/dist/next/client/hooks/useAutumn.d.ts +4 -4
  207. package/dist/next/client/hooks/useCustomer.d.mts +5 -5
  208. package/dist/next/client/hooks/useCustomer.d.ts +5 -5
  209. package/dist/next/client/hooks/useEntity.d.mts +6 -6
  210. package/dist/next/client/hooks/useEntity.d.ts +6 -6
  211. package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
  212. package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
  213. package/dist/next/client/{prodTypes-si707oHg.d.mts → prodTypes-UFM-PYm-.d.mts} +22 -4
  214. package/dist/next/client/{prodTypes-si707oHg.d.ts → prodTypes-UFM-PYm-.d.ts} +22 -4
  215. package/dist/next/client/types.d.mts +3 -3
  216. package/dist/next/client/types.d.ts +3 -3
  217. package/dist/next/server/auth/withNextAuth.d.mts +1 -1
  218. package/dist/next/server/auth/withNextAuth.d.ts +1 -1
  219. package/dist/next/server/componentActions.d.mts +1 -1
  220. package/dist/next/server/componentActions.d.ts +1 -1
  221. package/dist/next/server/cusActions.d.mts +39 -11
  222. package/dist/next/server/cusActions.d.ts +39 -11
  223. package/dist/next/server/{cusTypes-wfx--BDG.d.ts → cusTypes-MnneoF1F.d.mts} +36 -0
  224. package/dist/next/server/{cusTypes-wfx--BDG.d.mts → cusTypes-MnneoF1F.d.ts} +36 -0
  225. package/dist/next/server/genActions.d.mts +1 -1
  226. package/dist/next/server/genActions.d.ts +1 -1
  227. package/dist/sdk/index.d.mts +75 -11
  228. package/dist/sdk/index.d.ts +75 -11
  229. package/dist/sdk/index.js +22 -1
  230. package/dist/sdk/index.mjs +22 -2
  231. package/dist/utils/encryptUtils.js +21 -1
  232. package/dist/utils/encryptUtils.mjs +21 -1
  233. package/package.json +1 -1
  234. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +0 -11
  235. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +0 -11
  236. package/dist/libraries/react/components/attach-dialog/lib/attach-content.mjs +0 -8
  237. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +0 -11
  238. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +0 -11
  239. package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +0 -9
  240. package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +0 -9
  241. package/dist/libraries/react/components/check-dialog/lib/check-content.mjs +0 -8
  242. package/dist/libraries/react/{chunk-7JNU5ABT.mjs → chunk-FJWZPMWU.mjs} +3 -3
  243. package/dist/libraries/react/{chunk-LCWL3TIT.mjs → chunk-OTZ65PCT.mjs} +3 -3
  244. /package/dist/libraries/react/components/{attach-dialog/attach-dialog-synced.css → checkout-dialog/checkout-dialog-synced.css} +0 -0
  245. /package/dist/libraries/react/components/{check-dialog/check-dialog-synced.css → paywall-dialog/paywall-dialog-synced.css} +0 -0
@@ -229,6 +229,7 @@ var entityMethods = (instance) => {
229
229
  params
230
230
  }),
231
231
  create: (customer_id, params) => staticWrapper(createEntity, instance, { customer_id, params }),
232
+ transfer: (customer_id, params) => staticWrapper(transferProduct, instance, { customer_id, params }),
232
233
  delete: (customer_id, entity_id) => staticWrapper(deleteEntity, instance, { customer_id, entity_id })
233
234
  };
234
235
  };
@@ -264,6 +265,13 @@ var deleteEntity = async ({
264
265
  }) => {
265
266
  return instance.delete(`/customers/${customer_id}/entities/${entity_id}`);
266
267
  };
268
+ var transferProduct = async ({
269
+ instance,
270
+ customer_id,
271
+ params
272
+ }) => {
273
+ return instance.post(`/customers/${customer_id}/transfer`, params);
274
+ };
267
275
 
268
276
  // src/sdk/products/prodMethods.ts
269
277
  var productMethods = (instance) => {
@@ -570,6 +578,10 @@ var CoreCusFeatureSchema = import_zod2.z.object({
570
578
  next_reset_at: import_zod2.z.number().nullish(),
571
579
  overage_allowed: import_zod2.z.boolean().optional(),
572
580
  usage_limit: import_zod2.z.number().optional(),
581
+ rollovers: import_zod2.z.object({
582
+ balance: import_zod2.z.number(),
583
+ expires_at: import_zod2.z.number()
584
+ }).optional(),
573
585
  breakdown: import_zod2.z.array(
574
586
  import_zod2.z.object({
575
587
  interval: import_zod2.z.nativeEnum(ProductItemInterval),
@@ -619,6 +631,11 @@ var EntityDataSchema = import_zod4.z.object({
619
631
  name: import_zod4.z.string().optional(),
620
632
  feature_id: import_zod4.z.string()
621
633
  });
634
+ var TransferProductParamsSchema = import_zod4.z.object({
635
+ from_entity_id: import_zod4.z.string(),
636
+ to_entity_id: import_zod4.z.string(),
637
+ product_id: import_zod4.z.string()
638
+ });
622
639
 
623
640
  // src/sdk/general/genTypes.ts
624
641
  var import_zod5 = require("zod");
@@ -712,9 +729,12 @@ var CheckoutParamsSchema = import_zod7.z.object({
712
729
  customer_id: import_zod7.z.string(),
713
730
  product_id: import_zod7.z.string(),
714
731
  entity_id: import_zod7.z.string().optional(),
732
+ options: import_zod7.z.array(AttachFeatureOptionsSchema).optional(),
715
733
  success_url: import_zod7.z.string().optional(),
716
734
  customer_data: CustomerDataSchema.optional(),
717
- options: import_zod7.z.array(AttachFeatureOptionsSchema).optional()
735
+ entity_data: import_zod7.z.any().optional(),
736
+ checkout_session_params: import_zod7.z.record(import_zod7.z.any()).optional(),
737
+ reward: import_zod7.z.string().optional()
718
738
  });
719
739
 
720
740
  // src/libraries/react/errorUtils/logFetchError.ts
@@ -3,15 +3,15 @@
3
3
  "use client";
4
4
  import {
5
5
  BaseAutumnProvider
6
- } from "./chunk-3UNBBJY5.mjs";
6
+ } from "./chunk-MPA65MFU.mjs";
7
7
  import "./chunk-RFSQBGLO.mjs";
8
- import "./chunk-CZVP6BZG.mjs";
9
- import "./chunk-RGAEIODW.mjs";
10
- import "./chunk-4Q7BDIOS.mjs";
11
- import "./chunk-E2H5MYIO.mjs";
12
- import "./chunk-YEG5KJEI.mjs";
13
- import "./chunk-FOXUAY7Y.mjs";
14
- import "./chunk-3JORYFTY.mjs";
8
+ import "./chunk-EXUNRZTP.mjs";
9
+ import "./chunk-LFLX6NJU.mjs";
10
+ import "./chunk-UAK4XMNC.mjs";
11
+ import "./chunk-UCUAGLCJ.mjs";
12
+ import "./chunk-H4J73SMR.mjs";
13
+ import "./chunk-LMQMA7VL.mjs";
14
+ import "./chunk-CZBWEEWD.mjs";
15
15
  import "./chunk-V575SGOW.mjs";
16
16
  import "./chunk-ZV4RPZTM.mjs";
17
17
  import "./chunk-JVCOY7ZL.mjs";
@@ -1,11 +1,11 @@
1
1
  import { CreateEntityParams, GetEntityParams } from './client/types/clientEntTypes.js';
2
2
  import { OpenBillingPortalParams, SetupPaymentParams } from './client/types/clientGenTypes.js';
3
3
  import { A as AutumnError } from './error-DHbclCVh.js';
4
- import { a as CheckResult, S as SetupPaymentResult, Q as QueryResult } from './genTypes-A2nf2M_h.js';
5
- import { C as CheckoutResult } from './attachTypes-ZMWuxpzI.js';
6
- import { R as Result, A as AutumnPromise, E as Entity, D as DeleteEntityResult } from './entTypes-fYtiTl7W.js';
7
- import { c as ProductItem, e as ProductScenario, P as Product } from './prodTypes-DZUJPsRN.js';
8
- import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult } from './cusTypes-CMj2sP-4.js';
4
+ import { a as CheckResult, S as SetupPaymentResult, Q as QueryResult } from './genTypes-BNXXZTFn.js';
5
+ import { C as CheckoutResult } from './attachTypes-CSutLgVn.js';
6
+ import { R as Result, A as AutumnPromise, E as Entity, D as DeleteEntityResult } from './entTypes-D6eoGCKH.js';
7
+ import { a as ProductItem, e as ProductScenario, P as Product } from './prodTypes-B3iWy6kz.js';
8
+ import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult } from './cusTypes-d_DR9uFs.js';
9
9
 
10
10
  interface PricingTableProduct {
11
11
  id: string;
@@ -97,9 +97,9 @@ declare class AutumnClient {
97
97
  openInNewTab?: boolean | undefined;
98
98
  checkoutSessionParams?: Record<string, any> | undefined;
99
99
  }) => AutumnPromise<{
100
- customer_id: string;
101
100
  code: string;
102
101
  message: string;
102
+ customer_id: string;
103
103
  product_ids: string[];
104
104
  customer_data?: any;
105
105
  checkout_url?: string | undefined;
@@ -110,10 +110,13 @@ declare class AutumnClient {
110
110
  quantity: number;
111
111
  featureId: string;
112
112
  }[] | undefined;
113
+ reward?: string | undefined;
113
114
  entityId?: string | undefined;
114
115
  dialog?: any;
116
+ entityData?: any;
115
117
  successUrl?: string | undefined;
116
118
  openInNewTab?: boolean | undefined;
119
+ checkoutSessionParams?: Record<string, any> | undefined;
117
120
  }) => AutumnPromise<CheckoutResult>;
118
121
  cancel: (params: {
119
122
  productId: string;
@@ -142,9 +145,9 @@ declare class AutumnClient {
142
145
  eventName?: string | undefined;
143
146
  idempotencyKey?: string | undefined;
144
147
  }) => AutumnPromise<{
145
- customer_id: string;
146
- code: string;
147
148
  id: string;
149
+ code: string;
150
+ customer_id: string;
148
151
  feature_id?: string | undefined;
149
152
  event_name?: string | undefined;
150
153
  }>;
@@ -1,11 +1,11 @@
1
1
  import { CreateEntityParams, GetEntityParams } from './client/types/clientEntTypes.mjs';
2
2
  import { OpenBillingPortalParams, SetupPaymentParams } from './client/types/clientGenTypes.mjs';
3
3
  import { A as AutumnError } from './error-DHbclCVh.mjs';
4
- import { a as CheckResult, S as SetupPaymentResult, Q as QueryResult } from './genTypes-CH9EbOfb.mjs';
5
- import { C as CheckoutResult } from './attachTypes-BfITg8QI.mjs';
6
- import { R as Result, A as AutumnPromise, E as Entity, D as DeleteEntityResult } from './entTypes-Cltx_-C_.mjs';
7
- import { c as ProductItem, e as ProductScenario, P as Product } from './prodTypes-DZUJPsRN.mjs';
8
- import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult } from './cusTypes-Dj2tcwg7.mjs';
4
+ import { a as CheckResult, S as SetupPaymentResult, Q as QueryResult } from './genTypes-C2VFQqmX.mjs';
5
+ import { C as CheckoutResult } from './attachTypes-By0coJIV.mjs';
6
+ import { R as Result, A as AutumnPromise, E as Entity, D as DeleteEntityResult } from './entTypes-B2DgO6PV.mjs';
7
+ import { a as ProductItem, e as ProductScenario, P as Product } from './prodTypes-B3iWy6kz.mjs';
8
+ import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult } from './cusTypes-Bbmd8V3j.mjs';
9
9
 
10
10
  interface PricingTableProduct {
11
11
  id: string;
@@ -97,9 +97,9 @@ declare class AutumnClient {
97
97
  openInNewTab?: boolean | undefined;
98
98
  checkoutSessionParams?: Record<string, any> | undefined;
99
99
  }) => AutumnPromise<{
100
- customer_id: string;
101
100
  code: string;
102
101
  message: string;
102
+ customer_id: string;
103
103
  product_ids: string[];
104
104
  customer_data?: any;
105
105
  checkout_url?: string | undefined;
@@ -110,10 +110,13 @@ declare class AutumnClient {
110
110
  quantity: number;
111
111
  featureId: string;
112
112
  }[] | undefined;
113
+ reward?: string | undefined;
113
114
  entityId?: string | undefined;
114
115
  dialog?: any;
116
+ entityData?: any;
115
117
  successUrl?: string | undefined;
116
118
  openInNewTab?: boolean | undefined;
119
+ checkoutSessionParams?: Record<string, any> | undefined;
117
120
  }) => AutumnPromise<CheckoutResult>;
118
121
  cancel: (params: {
119
122
  productId: string;
@@ -142,9 +145,9 @@ declare class AutumnClient {
142
145
  eventName?: string | undefined;
143
146
  idempotencyKey?: string | undefined;
144
147
  }) => AutumnPromise<{
145
- customer_id: string;
146
- code: string;
147
148
  id: string;
149
+ code: string;
150
+ customer_id: string;
148
151
  feature_id?: string | undefined;
149
152
  event_name?: string | undefined;
150
153
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CustomerData } from './cusTypes-Dj2tcwg7.mjs';
3
- import './prodTypes-DZUJPsRN.mjs';
2
+ import { C as CustomerData } from './cusTypes-Bbmd8V3j.mjs';
3
+ import './prodTypes-B3iWy6kz.mjs';
4
4
  import 'zod';
5
5
 
6
6
  declare const ReactAutumnProvider: ({ children, getBearerToken, backendUrl, customerData, includeCredentials, betterAuthUrl, }: {
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CustomerData } from './cusTypes-CMj2sP-4.js';
3
- import './prodTypes-DZUJPsRN.js';
2
+ import { C as CustomerData } from './cusTypes-d_DR9uFs.js';
3
+ import './prodTypes-B3iWy6kz.js';
4
4
  import 'zod';
5
5
 
6
6
  declare const ReactAutumnProvider: ({ children, getBearerToken, backendUrl, customerData, includeCredentials, betterAuthUrl, }: {
@@ -230,6 +230,7 @@ var entityMethods = (instance) => {
230
230
  params
231
231
  }),
232
232
  create: (customer_id, params) => staticWrapper(createEntity, instance, { customer_id, params }),
233
+ transfer: (customer_id, params) => staticWrapper(transferProduct, instance, { customer_id, params }),
233
234
  delete: (customer_id, entity_id) => staticWrapper(deleteEntity, instance, { customer_id, entity_id })
234
235
  };
235
236
  };
@@ -265,6 +266,13 @@ var deleteEntity = async ({
265
266
  }) => {
266
267
  return instance.delete(`/customers/${customer_id}/entities/${entity_id}`);
267
268
  };
269
+ var transferProduct = async ({
270
+ instance,
271
+ customer_id,
272
+ params
273
+ }) => {
274
+ return instance.post(`/customers/${customer_id}/transfer`, params);
275
+ };
268
276
 
269
277
  // src/sdk/products/prodMethods.ts
270
278
  var productMethods = (instance) => {
@@ -571,6 +579,10 @@ var CoreCusFeatureSchema = import_zod2.z.object({
571
579
  next_reset_at: import_zod2.z.number().nullish(),
572
580
  overage_allowed: import_zod2.z.boolean().optional(),
573
581
  usage_limit: import_zod2.z.number().optional(),
582
+ rollovers: import_zod2.z.object({
583
+ balance: import_zod2.z.number(),
584
+ expires_at: import_zod2.z.number()
585
+ }).optional(),
574
586
  breakdown: import_zod2.z.array(
575
587
  import_zod2.z.object({
576
588
  interval: import_zod2.z.nativeEnum(ProductItemInterval),
@@ -620,6 +632,11 @@ var EntityDataSchema = import_zod4.z.object({
620
632
  name: import_zod4.z.string().optional(),
621
633
  feature_id: import_zod4.z.string()
622
634
  });
635
+ var TransferProductParamsSchema = import_zod4.z.object({
636
+ from_entity_id: import_zod4.z.string(),
637
+ to_entity_id: import_zod4.z.string(),
638
+ product_id: import_zod4.z.string()
639
+ });
623
640
 
624
641
  // src/sdk/general/genTypes.ts
625
642
  var import_zod5 = require("zod");
@@ -713,9 +730,12 @@ var CheckoutParamsSchema = import_zod7.z.object({
713
730
  customer_id: import_zod7.z.string(),
714
731
  product_id: import_zod7.z.string(),
715
732
  entity_id: import_zod7.z.string().optional(),
733
+ options: import_zod7.z.array(AttachFeatureOptionsSchema).optional(),
716
734
  success_url: import_zod7.z.string().optional(),
717
735
  customer_data: CustomerDataSchema.optional(),
718
- options: import_zod7.z.array(AttachFeatureOptionsSchema).optional()
736
+ entity_data: import_zod7.z.any().optional(),
737
+ checkout_session_params: import_zod7.z.record(import_zod7.z.any()).optional(),
738
+ reward: import_zod7.z.string().optional()
719
739
  });
720
740
 
721
741
  // src/libraries/react/errorUtils/logFetchError.ts
@@ -2,16 +2,16 @@
2
2
 
3
3
  import {
4
4
  ReactAutumnProvider
5
- } from "./chunk-62QDB3KQ.mjs";
6
- import "./chunk-3UNBBJY5.mjs";
5
+ } from "./chunk-AXHU3KAH.mjs";
6
+ import "./chunk-MPA65MFU.mjs";
7
7
  import "./chunk-RFSQBGLO.mjs";
8
- import "./chunk-CZVP6BZG.mjs";
9
- import "./chunk-RGAEIODW.mjs";
10
- import "./chunk-4Q7BDIOS.mjs";
11
- import "./chunk-E2H5MYIO.mjs";
12
- import "./chunk-YEG5KJEI.mjs";
13
- import "./chunk-FOXUAY7Y.mjs";
14
- import "./chunk-3JORYFTY.mjs";
8
+ import "./chunk-EXUNRZTP.mjs";
9
+ import "./chunk-LFLX6NJU.mjs";
10
+ import "./chunk-UAK4XMNC.mjs";
11
+ import "./chunk-UCUAGLCJ.mjs";
12
+ import "./chunk-H4J73SMR.mjs";
13
+ import "./chunk-LMQMA7VL.mjs";
14
+ import "./chunk-CZBWEEWD.mjs";
15
15
  import "./chunk-V575SGOW.mjs";
16
16
  import "./chunk-ZV4RPZTM.mjs";
17
17
  import "./chunk-JVCOY7ZL.mjs";
@@ -1,4 +1,4 @@
1
- import { c as ProductItem, P as Product } from './prodTypes-DZUJPsRN.mjs';
1
+ import { a as ProductItem, P as Product } from './prodTypes-B3iWy6kz.mjs';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare const AttachFeatureOptionsSchema: 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
  customer_data?: any;
28
28
  checkout_url?: string | undefined;
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
  customer_data?: any;
35
35
  checkout_url?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { P as ProductItem, a as Product } from './prodTypes-si707oHg.js';
1
+ import { a as ProductItem, P as Product } from './prodTypes-B3iWy6kz.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare const AttachFeatureOptionsSchema: z.ZodObject<{
@@ -20,15 +20,15 @@ declare const AttachResultSchema: z.ZodObject<{
20
20
  message: z.ZodString;
21
21
  customer_data: z.ZodOptional<z.ZodAny>;
22
22
  }, "strip", z.ZodTypeAny, {
23
- message: string;
24
23
  code: string;
24
+ message: string;
25
25
  customer_id: string;
26
26
  product_ids: string[];
27
27
  customer_data?: any;
28
28
  checkout_url?: string | undefined;
29
29
  }, {
30
- message: string;
31
30
  code: string;
31
+ message: string;
32
32
  customer_id: string;
33
33
  product_ids: string[];
34
34
  customer_data?: any;
@@ -3,6 +3,27 @@
3
3
  import {
4
4
  getPricingTableContent
5
5
  } from "./chunk-URQMBRFZ.mjs";
6
+ import {
7
+ getCheckoutContent
8
+ } from "./chunk-BLM4DAAR.mjs";
9
+ import {
10
+ getPaywallContent
11
+ } from "./chunk-I5ZGIAIX.mjs";
12
+ import {
13
+ Input
14
+ } from "./chunk-GUM4HIGI.mjs";
15
+ import {
16
+ Popover,
17
+ PopoverContent,
18
+ PopoverTrigger
19
+ } from "./chunk-OTZ65PCT.mjs";
20
+ import {
21
+ Switch
22
+ } from "./chunk-YWQTQ72B.mjs";
23
+ import {
24
+ loadingStyles,
25
+ spinnerStyles
26
+ } from "./chunk-WVKYZYFT.mjs";
6
27
  import {
7
28
  Accordion,
8
29
  AccordionContent,
@@ -18,47 +39,26 @@ import {
18
39
  DialogContent,
19
40
  DialogFooter,
20
41
  DialogTitle
21
- } from "./chunk-7JNU5ABT.mjs";
42
+ } from "./chunk-FJWZPMWU.mjs";
22
43
  import {
23
44
  ArrowRight,
24
45
  ChevronDown,
25
46
  LoaderCircle
26
47
  } from "./chunk-QJPZFEVW.mjs";
27
- import {
28
- Input
29
- } from "./chunk-GUM4HIGI.mjs";
30
- import {
31
- Popover,
32
- PopoverContent,
33
- PopoverTrigger
34
- } from "./chunk-LCWL3TIT.mjs";
35
- import {
36
- Switch
37
- } from "./chunk-YWQTQ72B.mjs";
38
- import {
39
- getAttachContent
40
- } from "./chunk-O6TAJHK3.mjs";
41
- import {
42
- getCheckContent
43
- } from "./chunk-HBCCTYA6.mjs";
44
- import {
45
- loadingStyles,
46
- spinnerStyles
47
- } from "./chunk-WVKYZYFT.mjs";
48
48
  import {
49
49
  usePaywall
50
- } from "./chunk-6R3O2T4H.mjs";
50
+ } from "./chunk-MRZA4JWN.mjs";
51
51
  import {
52
52
  usePricingTable
53
- } from "./chunk-PEYCQWHI.mjs";
53
+ } from "./chunk-PFN52PHR.mjs";
54
54
  import {
55
55
  cn
56
56
  } from "./chunk-4J6OC4ZQ.mjs";
57
57
  import {
58
58
  useCustomer
59
- } from "./chunk-CV4TKYAC.mjs";
59
+ } from "./chunk-QJJC6MB3.mjs";
60
60
 
61
- // src/libraries/react/components/attach-dialog/attach-dialog-synced.tsx
61
+ // src/libraries/react/components/checkout-dialog/checkout-dialog-synced.tsx
62
62
  import { useEffect, useState } from "react";
63
63
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
64
64
  var formatCurrency = ({
@@ -70,7 +70,7 @@ var formatCurrency = ({
70
70
  currency
71
71
  }).format(amount);
72
72
  };
73
- function AttachDialog(params) {
73
+ function CheckoutDialog(params) {
74
74
  const { attach } = useCustomer();
75
75
  const [checkoutResult, setCheckoutResult] = useState(params?.checkoutResult);
76
76
  useEffect(() => {
@@ -83,7 +83,7 @@ function AttachDialog(params) {
83
83
  return /* @__PURE__ */ jsx(Fragment, {});
84
84
  }
85
85
  const { open, setOpen } = params;
86
- const { title, message } = getAttachContent(checkoutResult);
86
+ const { title, message } = getCheckoutContent(checkoutResult);
87
87
  const isFree = checkoutResult?.product.properties?.is_free;
88
88
  const isPaid = isFree === false;
89
89
  return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange: setOpen, children: /* @__PURE__ */ jsxs(DialogContent, { className: "au-p-0 au-pt-4 au-gap-0 au-text-foreground au-overflow-hidden au-text-sm", children: [
@@ -449,7 +449,7 @@ function PricingTable({
449
449
  if (product.id) {
450
450
  await checkout({
451
451
  productId: product.id,
452
- dialog: AttachDialog
452
+ dialog: CheckoutDialog
453
453
  });
454
454
  } else if (product.display?.button_url) {
455
455
  window.open(product.display?.button_url, "_blank");
@@ -545,7 +545,7 @@ var PricingCard = ({
545
545
  if (!product) {
546
546
  throw new Error(`Product with id ${productId} not found`);
547
547
  }
548
- const { name, display: productDisplay, items } = product;
548
+ const { name, display: productDisplay } = product;
549
549
  const { buttonText } = getPricingTableContent(product);
550
550
  const isRecommended = productDisplay?.recommend_text ? true : false;
551
551
  const mainPriceDisplay = product.properties?.is_free ? {
@@ -586,7 +586,6 @@ var PricingCard = ({
586
586
  PricingFeatureList,
587
587
  {
588
588
  items: featureItems,
589
- showIcon: true,
590
589
  everythingFrom: product.display?.everything_from
591
590
  }
592
591
  ) })
@@ -614,7 +613,6 @@ var PricingCard = ({
614
613
  };
615
614
  var PricingFeatureList = ({
616
615
  items,
617
- showIcon = true,
618
616
  everythingFrom,
619
617
  className
620
618
  }) => {
@@ -696,9 +694,9 @@ var RecommendedBadge = ({ recommended }) => {
696
694
  return /* @__PURE__ */ jsx2("div", { className: "au-bg-secondary au-absolute au-border au-text-muted-foreground au-text-sm au-font-medium lg:au-rounded-full au-px-3 lg:au-py-0.5 lg:au-top-4 lg:au-right-4 au-top-[-1px] au-right-[-1px] au-rounded-bl-lg", children: recommended });
697
695
  };
698
696
 
699
- // src/libraries/react/components/check-dialog/check-dialog-synced.tsx
697
+ // src/libraries/react/components/paywall-dialog/paywall-dialog-synced.tsx
700
698
  import { Fragment as Fragment3, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
701
- function CheckDialog(params) {
699
+ function PaywallDialog(params) {
702
700
  const { data: preview } = usePaywall({
703
701
  featureId: params?.featureId,
704
702
  entityId: params?.entityId
@@ -707,7 +705,7 @@ function CheckDialog(params) {
707
705
  return /* @__PURE__ */ jsx3(Fragment3, {});
708
706
  }
709
707
  const { open, setOpen } = params;
710
- const { title, message } = getCheckContent(preview);
708
+ const { title, message } = getPaywallContent(preview);
711
709
  return /* @__PURE__ */ jsx3(Dialog, { open, onOpenChange: setOpen, children: /* @__PURE__ */ jsxs3(DialogContent, { className: "au-p-0 au-pt-4 au-gap-0 au-text-foreground au-overflow-hidden au-text-sm", children: [
712
710
  /* @__PURE__ */ jsx3(DialogTitle, { className: cn("au-font-bold au-text-xl au-px-6"), children: title }),
713
711
  /* @__PURE__ */ jsx3("div", { className: "au-px-6 au-my-2", children: message }),
@@ -726,7 +724,7 @@ function CheckDialog(params) {
726
724
  }
727
725
 
728
726
  export {
729
- CheckDialog,
727
+ PaywallDialog,
730
728
  PricingTable,
731
729
  usePricingTableContext,
732
730
  PricingTableContainer,
@@ -735,7 +733,7 @@ export {
735
733
  PricingCardButton,
736
734
  AnnualSwitch,
737
735
  RecommendedBadge,
738
- AttachDialog,
736
+ CheckoutDialog,
739
737
  PriceItem,
740
738
  PricingDialogButton
741
739
  };
@@ -2,10 +2,10 @@
2
2
 
3
3
  import {
4
4
  useEntityBase
5
- } from "./chunk-HBVLIBOE.mjs";
5
+ } from "./chunk-WZG3QTZI.mjs";
6
6
  import {
7
7
  AutumnContext
8
- } from "./chunk-YEG5KJEI.mjs";
8
+ } from "./chunk-H4J73SMR.mjs";
9
9
 
10
10
  // src/libraries/react/hooks/useEntity.tsx
11
11
  var useEntity = (entityId, params) => {
@@ -2,13 +2,13 @@
2
2
 
3
3
  import {
4
4
  BaseAutumnProvider
5
- } from "./chunk-3UNBBJY5.mjs";
5
+ } from "./chunk-MPA65MFU.mjs";
6
6
  import {
7
7
  AutumnContext
8
- } from "./chunk-YEG5KJEI.mjs";
8
+ } from "./chunk-H4J73SMR.mjs";
9
9
  import {
10
10
  AutumnClient
11
- } from "./chunk-FOXUAY7Y.mjs";
11
+ } from "./chunk-LMQMA7VL.mjs";
12
12
 
13
13
  // src/libraries/react/ReactAutumnProvider.tsx
14
14
  import { jsx } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
 
3
3
 
4
- // src/libraries/react/components/attach-dialog/lib/attach-content.tsx
4
+ // src/libraries/react/components/checkout-dialog/lib/checkout-content.tsx
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
- var getAttachContent = (checkoutResult) => {
6
+ var getCheckoutContent = (checkoutResult) => {
7
7
  const { product, current_product, next_cycle } = checkoutResult;
8
8
  const { is_one_off, is_free, has_trial, updateable } = product.properties;
9
9
  const scenario = product.scenario;
@@ -154,5 +154,5 @@ var getAttachContent = (checkoutResult) => {
154
154
  };
155
155
 
156
156
  export {
157
- getAttachContent
157
+ getCheckoutContent
158
158
  };
@@ -116,6 +116,10 @@ var CoreCusFeatureSchema = z2.object({
116
116
  next_reset_at: z2.number().nullish(),
117
117
  overage_allowed: z2.boolean().optional(),
118
118
  usage_limit: z2.number().optional(),
119
+ rollovers: z2.object({
120
+ balance: z2.number(),
121
+ expires_at: z2.number()
122
+ }).optional(),
119
123
  breakdown: z2.array(
120
124
  z2.object({
121
125
  interval: z2.nativeEnum(ProductItemInterval),
@@ -165,6 +169,11 @@ var EntityDataSchema = z4.object({
165
169
  name: z4.string().optional(),
166
170
  feature_id: z4.string()
167
171
  });
172
+ var TransferProductParamsSchema = z4.object({
173
+ from_entity_id: z4.string(),
174
+ to_entity_id: z4.string(),
175
+ product_id: z4.string()
176
+ });
168
177
 
169
178
  // src/sdk/general/genTypes.ts
170
179
  import { z as z5 } from "zod";
@@ -343,6 +352,7 @@ var entityMethods = (instance) => {
343
352
  params
344
353
  }),
345
354
  create: (customer_id, params) => staticWrapper(createEntity, instance, { customer_id, params }),
355
+ transfer: (customer_id, params) => staticWrapper(transferProduct, instance, { customer_id, params }),
346
356
  delete: (customer_id, entity_id) => staticWrapper(deleteEntity, instance, { customer_id, entity_id })
347
357
  };
348
358
  };
@@ -378,6 +388,13 @@ var deleteEntity = async ({
378
388
  }) => {
379
389
  return instance.delete(`/customers/${customer_id}/entities/${entity_id}`);
380
390
  };
391
+ var transferProduct = async ({
392
+ instance,
393
+ customer_id,
394
+ params
395
+ }) => {
396
+ return instance.post(`/customers/${customer_id}/transfer`, params);
397
+ };
381
398
 
382
399
  // src/sdk/products/prodMethods.ts
383
400
  var productMethods = (instance) => {
@@ -639,9 +656,12 @@ var CheckoutParamsSchema = z7.object({
639
656
  customer_id: z7.string(),
640
657
  product_id: z7.string(),
641
658
  entity_id: z7.string().optional(),
659
+ options: z7.array(AttachFeatureOptionsSchema).optional(),
642
660
  success_url: z7.string().optional(),
643
661
  customer_data: CustomerDataSchema.optional(),
644
- options: z7.array(AttachFeatureOptionsSchema).optional()
662
+ entity_data: z7.any().optional(),
663
+ checkout_session_params: z7.record(z7.any()).optional(),
664
+ reward: z7.string().optional()
645
665
  });
646
666
 
647
667
  export {
@@ -3,13 +3,13 @@
3
3
  import {
4
4
  handleCheck,
5
5
  openDialog
6
- } from "./chunk-RGAEIODW.mjs";
6
+ } from "./chunk-LFLX6NJU.mjs";
7
7
  import {
8
8
  useAutumnBase
9
- } from "./chunk-4Q7BDIOS.mjs";
9
+ } from "./chunk-UAK4XMNC.mjs";
10
10
  import {
11
11
  useAutumnContext
12
- } from "./chunk-YEG5KJEI.mjs";
12
+ } from "./chunk-H4J73SMR.mjs";
13
13
 
14
14
  // src/libraries/react/hooks/useCustomerBase.tsx
15
15
  import useSWR from "swr";
@@ -2,7 +2,7 @@
2
2
 
3
3
  import {
4
4
  AutumnClient
5
- } from "./chunk-FOXUAY7Y.mjs";
5
+ } from "./chunk-LMQMA7VL.mjs";
6
6
 
7
7
  // src/libraries/react/AutumnContext.tsx
8
8
  import { createContext, useContext } from "react";
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
 
3
3
 
4
- // src/libraries/react/components/check-dialog/lib/check-content.tsx
5
- var getCheckContent = (preview) => {
4
+ // src/libraries/react/components/paywall-dialog/lib/paywall-content.tsx
5
+ var getPaywallContent = (preview) => {
6
6
  if (!preview) {
7
7
  return {
8
8
  title: "Feature Unavailable",
@@ -53,5 +53,5 @@ var getCheckContent = (preview) => {
53
53
  };
54
54
 
55
55
  export {
56
- getCheckContent
56
+ getPaywallContent
57
57
  };