autumn-js 0.1.6 → 0.1.7

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 (222) hide show
  1. package/dist/libraries/backend/better-auth.d.mts +33 -33
  2. package/dist/libraries/backend/better-auth.d.ts +33 -33
  3. package/dist/libraries/backend/better-auth.js +28 -0
  4. package/dist/libraries/backend/better-auth.mjs +7 -7
  5. package/dist/libraries/backend/{chunk-NTPYEOME.mjs → chunk-33ET4N4V.mjs} +1 -1
  6. package/dist/libraries/backend/{chunk-2LSEWYPD.mjs → chunk-3OVRYTZX.mjs} +6 -6
  7. package/dist/libraries/backend/{chunk-TTNUEXHB.mjs → chunk-AREWK25J.mjs} +28 -0
  8. package/dist/libraries/backend/{chunk-WBYCMG34.mjs → chunk-GO7TVFSN.mjs} +1 -1
  9. package/dist/libraries/backend/{chunk-7Z2OYXN4.mjs → chunk-LL53FE2Z.mjs} +1 -1
  10. package/dist/libraries/backend/{chunk-Y63QWBQ6.mjs → chunk-TFYLV3GN.mjs} +1 -1
  11. package/dist/libraries/backend/{chunk-QVLMREDB.mjs → chunk-VBHBF3GP.mjs} +1 -1
  12. package/dist/libraries/backend/convex.js +28 -0
  13. package/dist/libraries/backend/convex.mjs +7 -7
  14. package/dist/libraries/backend/elysia.js +28 -0
  15. package/dist/libraries/backend/elysia.mjs +7 -7
  16. package/dist/libraries/backend/express.d.mts +1 -1
  17. package/dist/libraries/backend/express.d.ts +1 -1
  18. package/dist/libraries/backend/express.js +28 -0
  19. package/dist/libraries/backend/express.mjs +7 -7
  20. package/dist/libraries/backend/fastify.js +28 -0
  21. package/dist/libraries/backend/fastify.mjs +7 -7
  22. package/dist/libraries/backend/hono.js +28 -0
  23. package/dist/libraries/backend/hono.mjs +7 -7
  24. package/dist/libraries/backend/index.d.mts +1 -1
  25. package/dist/libraries/backend/index.d.ts +1 -1
  26. package/dist/libraries/backend/index.js +28 -0
  27. package/dist/libraries/backend/index.mjs +7 -7
  28. package/dist/libraries/backend/next.js +28 -0
  29. package/dist/libraries/backend/next.mjs +7 -7
  30. package/dist/libraries/backend/react-router.js +28 -0
  31. package/dist/libraries/backend/react-router.mjs +7 -7
  32. package/dist/libraries/backend/{referralTypes-CYvuZZeF.d.mts → referralTypes-B50JL4PY.d.mts} +110 -43
  33. package/dist/libraries/backend/{referralTypes-B0_fYSI3.d.ts → referralTypes-dW2HaxKV.d.ts} +110 -43
  34. package/dist/libraries/backend/remix_dep.js +28 -0
  35. package/dist/libraries/backend/remix_dep.mjs +7 -7
  36. package/dist/libraries/backend/routes/backendRouter.js +28 -0
  37. package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
  38. package/dist/libraries/backend/routes/entityRoutes.js +28 -0
  39. package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
  40. package/dist/libraries/backend/routes/genRoutes.js +28 -0
  41. package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
  42. package/dist/libraries/backend/routes/productRoutes.js +28 -0
  43. package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
  44. package/dist/libraries/backend/routes/referralRoutes.js +28 -0
  45. package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
  46. package/dist/libraries/backend/supabase.js +28 -0
  47. package/dist/libraries/backend/supabase.mjs +7 -7
  48. package/dist/libraries/backend/tanstack.js +28 -0
  49. package/dist/libraries/backend/tanstack.mjs +7 -7
  50. package/dist/libraries/backend/utils/backendRes.js +28 -0
  51. package/dist/libraries/backend/utils/backendRes.mjs +1 -1
  52. package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
  53. package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
  54. package/dist/libraries/backend/utils/withAuth.js +28 -0
  55. package/dist/libraries/backend/utils/withAuth.mjs +2 -2
  56. package/dist/libraries/react/AutumnContext.d.mts +6 -6
  57. package/dist/libraries/react/AutumnContext.d.ts +6 -6
  58. package/dist/libraries/react/AutumnContext.js +35 -1
  59. package/dist/libraries/react/AutumnContext.mjs +5 -5
  60. package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -6
  61. package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
  62. package/dist/libraries/react/BaseAutumnProvider.js +35 -1
  63. package/dist/libraries/react/BaseAutumnProvider.mjs +10 -10
  64. package/dist/libraries/react/{ReactAutumnClient-CK8k8OA5.d.ts → ReactAutumnClient-BUq9E84_.d.ts} +20 -18
  65. package/dist/libraries/react/{ReactAutumnClient-CjaZ_g4X.d.mts → ReactAutumnClient-CpAGyyur.d.mts} +20 -18
  66. package/dist/libraries/react/ReactAutumnProvider.d.mts +4 -3
  67. package/dist/libraries/react/ReactAutumnProvider.d.ts +4 -3
  68. package/dist/libraries/react/ReactAutumnProvider.js +39 -3
  69. package/dist/libraries/react/ReactAutumnProvider.mjs +11 -11
  70. package/dist/libraries/react/{attachTypes-BetWkt95.d.ts → attachTypes-CcB6xjSF.d.ts} +5 -5
  71. package/dist/{next/client/attachTypes-DZFtFEmv.d.mts → libraries/react/attachTypes-DqUN3q8s.d.mts} +3 -3
  72. package/dist/libraries/react/{chunk-KZVVSY52.mjs → chunk-56PEGK2Z.mjs} +2 -2
  73. package/dist/libraries/react/{chunk-ZT5TN67S.mjs → chunk-ECOBNPRU.mjs} +7 -5
  74. package/dist/libraries/react/{chunk-PGU4IXT7.mjs → chunk-FMRBH4CP.mjs} +1 -1
  75. package/dist/libraries/react/{chunk-KLSRAX2F.mjs → chunk-GWVZB5GK.mjs} +3 -3
  76. package/dist/libraries/react/{chunk-QV6Q2XXO.mjs → chunk-HIC6P67K.mjs} +14 -8
  77. package/dist/libraries/react/{chunk-33OTK7MB.mjs → chunk-HMZZIUCF.mjs} +1 -1
  78. package/dist/libraries/react/{chunk-TJMYXANS.mjs → chunk-JFTZRU2U.mjs} +1 -1
  79. package/dist/libraries/react/{chunk-7AJBRRXV.mjs → chunk-JNR7QAPG.mjs} +1 -1
  80. package/dist/libraries/react/{chunk-7PFOXY3Y.mjs → chunk-KYZ3DYMI.mjs} +13 -13
  81. package/dist/libraries/react/{chunk-W5XUD2S6.mjs → chunk-MW2FSYG3.mjs} +1 -1
  82. package/dist/libraries/react/{chunk-IM2FNHYV.mjs → chunk-QQKJE2ND.mjs} +2 -2
  83. package/dist/libraries/react/{chunk-GUDRYJ3O.mjs → chunk-SFGXTDMX.mjs} +2 -2
  84. package/dist/libraries/react/{chunk-QW2YS3JY.mjs → chunk-SZJOMZTC.mjs} +2 -2
  85. package/dist/libraries/react/{chunk-F5QUME7S.mjs → chunk-ULIUD6YP.mjs} +3 -3
  86. package/dist/libraries/react/{chunk-EK2RMWXP.mjs → chunk-WQXUZO6K.mjs} +28 -0
  87. package/dist/libraries/react/{chunk-SFDHYUHA.mjs → chunk-ZJBEC254.mjs} +1 -1
  88. package/dist/libraries/react/client/ReactAutumnClient.d.mts +6 -6
  89. package/dist/libraries/react/client/ReactAutumnClient.d.ts +6 -6
  90. package/dist/libraries/react/client/ReactAutumnClient.js +35 -1
  91. package/dist/libraries/react/client/ReactAutumnClient.mjs +4 -4
  92. package/dist/libraries/react/client/clientCompMethods.d.mts +6 -6
  93. package/dist/libraries/react/client/clientCompMethods.d.ts +6 -6
  94. package/dist/libraries/react/client/clientCusMethods.d.mts +6 -6
  95. package/dist/libraries/react/client/clientCusMethods.d.ts +6 -6
  96. package/dist/libraries/react/client/clientEntityMethods.d.mts +6 -6
  97. package/dist/libraries/react/client/clientEntityMethods.d.ts +6 -6
  98. package/dist/libraries/react/client/clientGenMethods.d.mts +6 -6
  99. package/dist/libraries/react/client/clientGenMethods.d.ts +6 -6
  100. package/dist/libraries/react/client/clientProdMethods.d.mts +6 -6
  101. package/dist/libraries/react/client/clientProdMethods.d.ts +6 -6
  102. package/dist/libraries/react/client/clientReferralMethods.d.mts +6 -6
  103. package/dist/libraries/react/client/clientReferralMethods.d.ts +6 -6
  104. package/dist/libraries/react/client/types/clientAttachTypes.d.mts +20 -20
  105. package/dist/libraries/react/client/types/clientAttachTypes.d.ts +20 -20
  106. package/dist/libraries/react/client/types/clientGenTypes.d.mts +4 -4
  107. package/dist/libraries/react/client/types/clientGenTypes.d.ts +4 -4
  108. package/dist/libraries/react/client/types/clientGenTypes.js +28 -0
  109. package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -1
  110. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.mts +2 -2
  111. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.ts +2 -2
  112. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +35 -1
  113. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +21 -21
  114. package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.mts +2 -2
  115. package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.ts +2 -2
  116. package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.mts +1 -1
  117. package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.ts +1 -1
  118. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.js +35 -1
  119. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +21 -21
  120. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +1 -1
  121. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +1 -1
  122. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
  123. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
  124. package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +35 -1
  125. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +21 -21
  126. package/dist/libraries/react/{cusTypes-DINgmPwV.d.mts → cusTypes-CSmAk5io.d.mts} +5 -5
  127. package/dist/libraries/react/{cusTypes-D5d_cu-K.d.ts → cusTypes-DHjT-9rV.d.ts} +5 -5
  128. package/dist/libraries/react/{entTypes-DNW_l3s0.d.ts → entTypes-CoF9enrR.d.ts} +1 -1
  129. package/dist/libraries/react/{entTypes-biskqmpT.d.mts → entTypes-S4hkh1RG.d.mts} +1 -1
  130. package/dist/libraries/react/{genTypes-EyxQImzh.d.ts → genTypes-DsiuvyWS.d.ts} +5 -5
  131. package/dist/libraries/react/{genTypes-DSvR32on.d.mts → genTypes-fEH_nqSm.d.mts} +5 -5
  132. package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +6 -6
  133. package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +6 -6
  134. package/dist/libraries/react/hooks/helpers/handleCheck.js +28 -0
  135. package/dist/libraries/react/hooks/helpers/handleCheck.mjs +2 -2
  136. package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +7 -7
  137. package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +7 -7
  138. package/dist/libraries/react/hooks/helpers/useAutumnBase.js +28 -0
  139. package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +3 -3
  140. package/dist/libraries/react/hooks/useAnalytics.d.mts +2 -2
  141. package/dist/libraries/react/hooks/useAnalytics.d.ts +2 -2
  142. package/dist/libraries/react/hooks/useAnalytics.js +35 -1
  143. package/dist/libraries/react/hooks/useAnalytics.mjs +6 -6
  144. package/dist/libraries/react/hooks/useCustomer.d.mts +6 -6
  145. package/dist/libraries/react/hooks/useCustomer.d.ts +6 -6
  146. package/dist/libraries/react/hooks/useCustomer.js +35 -1
  147. package/dist/libraries/react/hooks/useCustomer.mjs +10 -10
  148. package/dist/libraries/react/hooks/useCustomerBase.d.mts +6 -6
  149. package/dist/libraries/react/hooks/useCustomerBase.d.ts +6 -6
  150. package/dist/libraries/react/hooks/useCustomerBase.js +35 -1
  151. package/dist/libraries/react/hooks/useCustomerBase.mjs +9 -9
  152. package/dist/libraries/react/hooks/useEntity.d.mts +6 -6
  153. package/dist/libraries/react/hooks/useEntity.d.ts +6 -6
  154. package/dist/libraries/react/hooks/useEntity.js +35 -1
  155. package/dist/libraries/react/hooks/useEntity.mjs +10 -10
  156. package/dist/libraries/react/hooks/useEntityBase.d.mts +8 -8
  157. package/dist/libraries/react/hooks/useEntityBase.d.ts +8 -8
  158. package/dist/libraries/react/hooks/useEntityBase.js +35 -1
  159. package/dist/libraries/react/hooks/useEntityBase.mjs +9 -9
  160. package/dist/libraries/react/hooks/usePaywall.d.mts +1 -1
  161. package/dist/libraries/react/hooks/usePaywall.d.ts +1 -1
  162. package/dist/libraries/react/hooks/usePaywall.js +35 -1
  163. package/dist/libraries/react/hooks/usePaywall.mjs +6 -6
  164. package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
  165. package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
  166. package/dist/libraries/react/hooks/usePricingTable.js +35 -1
  167. package/dist/libraries/react/hooks/usePricingTable.mjs +7 -7
  168. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +6 -6
  169. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +6 -6
  170. package/dist/libraries/react/hooks/usePricingTableBase.js +28 -0
  171. package/dist/libraries/react/hooks/usePricingTableBase.mjs +2 -2
  172. package/dist/libraries/react/hooks/useProductsBase.d.mts +6 -6
  173. package/dist/libraries/react/hooks/useProductsBase.d.ts +6 -6
  174. package/dist/libraries/react/index.d.mts +2 -1
  175. package/dist/libraries/react/index.d.ts +2 -1
  176. package/dist/libraries/react/index.js +39 -3
  177. package/dist/libraries/react/index.mjs +39 -3
  178. package/dist/libraries/react/{prodTypes-Bmoibf-M.d.mts → prodTypes--VvnyGlN.d.mts} +5 -5
  179. package/dist/libraries/react/{prodTypes-Bmoibf-M.d.ts → prodTypes--VvnyGlN.d.ts} +5 -5
  180. package/dist/next/client/NextAutumnClient.d.mts +23 -21
  181. package/dist/next/client/NextAutumnClient.d.ts +23 -21
  182. package/dist/next/client/NextAutumnProvider.d.mts +2 -2
  183. package/dist/next/client/NextAutumnProvider.d.ts +2 -2
  184. package/dist/next/client/{attachTypes-DxJ0LCjT.d.ts → attachTypes-DKlQexnQ.d.ts} +7 -7
  185. package/dist/{libraries/react/attachTypes-DbI59BLC.d.mts → next/client/attachTypes-EvdK0fPK.d.mts} +9 -9
  186. package/dist/next/client/{clientAttachTypes-BXtfXB4v.d.ts → clientAttachTypes-CGPjsdPk.d.ts} +29 -29
  187. package/dist/next/client/{clientAttachTypes-qsdoMt_B.d.mts → clientAttachTypes-CZFjz8Rq.d.mts} +29 -29
  188. package/dist/next/client/clientUtils.d.mts +3 -3
  189. package/dist/next/client/clientUtils.d.ts +3 -3
  190. package/dist/next/client/{cusTypes-BHYpk8bK.d.ts → cusTypes-DEURYNg4.d.ts} +7 -7
  191. package/dist/next/client/{cusTypes-Q54uLNO5.d.mts → cusTypes-y5wEmx07.d.mts} +7 -7
  192. package/dist/next/client/{entTypes-vjIG3B1G.d.ts → entTypes-CRFgWhOr.d.ts} +1 -1
  193. package/dist/next/client/{entTypes-CHHBdhBK.d.mts → entTypes-KRxjcMFv.d.mts} +1 -1
  194. package/dist/next/client/hooks/useAutumn.d.mts +5 -5
  195. package/dist/next/client/hooks/useAutumn.d.ts +5 -5
  196. package/dist/next/client/hooks/useCustomer.d.mts +5 -5
  197. package/dist/next/client/hooks/useCustomer.d.ts +5 -5
  198. package/dist/next/client/hooks/useEntity.d.mts +7 -7
  199. package/dist/next/client/hooks/useEntity.d.ts +7 -7
  200. package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
  201. package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
  202. package/dist/next/client/types.d.mts +3 -3
  203. package/dist/next/client/types.d.ts +3 -3
  204. package/dist/next/server/auth/withNextAuth.d.mts +1 -1
  205. package/dist/next/server/auth/withNextAuth.d.ts +1 -1
  206. package/dist/next/server/componentActions.d.mts +1 -1
  207. package/dist/next/server/componentActions.d.ts +1 -1
  208. package/dist/next/server/cusActions.d.mts +90 -23
  209. package/dist/next/server/cusActions.d.ts +90 -23
  210. package/dist/next/server/genActions.d.mts +1 -1
  211. package/dist/next/server/genActions.d.ts +1 -1
  212. package/dist/sdk/index.d.mts +70 -3
  213. package/dist/sdk/index.d.ts +70 -3
  214. package/dist/sdk/index.js +28 -0
  215. package/dist/sdk/index.mjs +28 -0
  216. package/dist/utils/encryptUtils.js +28 -0
  217. package/dist/utils/encryptUtils.mjs +28 -0
  218. package/package.json +1 -1
  219. package/dist/next/client/{prodTypes-CxvB1YY3.d.mts → prodTypes-DzTLP57C.d.mts} +8 -8
  220. package/dist/next/client/{prodTypes-CxvB1YY3.d.ts → prodTypes-DzTLP57C.d.ts} +8 -8
  221. package/dist/next/server/{cusTypes-D38IpLCT.d.ts → cusTypes-CwopPHB0.d.mts} +10 -10
  222. package/dist/next/server/{cusTypes-D38IpLCT.d.mts → cusTypes-CwopPHB0.d.ts} +10 -10
@@ -1,4 +1,4 @@
1
- import { C as CheckFeatureResult, d as CheckProductResult } from './prodTypes-CxvB1YY3.js';
1
+ import { C as CheckFeatureResult, d as CheckProductResult } from './prodTypes-DzTLP57C.js';
2
2
  import { z } from 'zod';
3
3
  import { A as AutumnError } from './error-DHbclCVh.js';
4
4
 
@@ -8,12 +8,12 @@ declare const CancelResultSchema: z.ZodObject<{
8
8
  product_id: z.ZodString;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  customer_id: string;
11
- success: boolean;
12
11
  product_id: string;
12
+ success: boolean;
13
13
  }, {
14
14
  customer_id: string;
15
- success: boolean;
16
15
  product_id: string;
16
+ success: boolean;
17
17
  }>;
18
18
  type CancelResult = z.infer<typeof CancelResultSchema>;
19
19
  declare const TrackResultSchema: z.ZodObject<{
@@ -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
- id: string;
27
- customer_id: string;
28
26
  code: string;
27
+ customer_id: string;
28
+ id: string;
29
29
  feature_id?: string | undefined;
30
30
  event_name?: string | undefined;
31
31
  }, {
32
- id: string;
33
- customer_id: string;
34
32
  code: string;
33
+ customer_id: string;
34
+ id: string;
35
35
  feature_id?: string | undefined;
36
36
  event_name?: string | undefined;
37
37
  }>;
@@ -89,20 +89,20 @@ declare const CheckParamsSchema: z.ZodObject<{
89
89
  productId?: string | undefined;
90
90
  entityId?: string | undefined;
91
91
  featureId?: string | undefined;
92
- dialog?: any;
93
- entityData?: any;
94
92
  requiredBalance?: number | undefined;
95
93
  sendEvent?: boolean | undefined;
96
94
  withPreview?: boolean | undefined;
95
+ dialog?: any;
96
+ entityData?: any;
97
97
  }, {
98
98
  productId?: string | undefined;
99
99
  entityId?: string | undefined;
100
100
  featureId?: string | undefined;
101
- dialog?: any;
102
- entityData?: any;
103
101
  requiredBalance?: number | undefined;
104
102
  sendEvent?: boolean | undefined;
105
103
  withPreview?: boolean | undefined;
104
+ dialog?: any;
105
+ entityData?: any;
106
106
  }>;
107
107
  type CheckParams = z.infer<typeof CheckParamsSchema>;
108
108
  declare const TrackParamsSchema: z.ZodObject<{
@@ -145,11 +145,11 @@ declare const AttachParamsSchema: z.ZodObject<{
145
145
  featureId: z.ZodString;
146
146
  quantity: z.ZodNumber;
147
147
  }, "strip", z.ZodTypeAny, {
148
- featureId: string;
149
148
  quantity: number;
150
- }, {
151
149
  featureId: string;
150
+ }, {
152
151
  quantity: number;
152
+ featureId: string;
153
153
  }>, "many">>;
154
154
  productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
155
155
  freeTrial: z.ZodOptional<z.ZodBoolean>;
@@ -166,37 +166,37 @@ declare const AttachParamsSchema: z.ZodObject<{
166
166
  checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
167
167
  }, "strip", z.ZodTypeAny, {
168
168
  options?: {
169
- featureId: string;
170
169
  quantity: number;
170
+ featureId: string;
171
171
  }[] | undefined;
172
172
  metadata?: Record<string, string> | undefined;
173
+ reward?: string | undefined;
173
174
  productId?: string | undefined;
174
175
  entityId?: string | undefined;
176
+ dialog?: any;
177
+ entityData?: any;
175
178
  productIds?: string[] | undefined;
176
179
  freeTrial?: boolean | undefined;
177
180
  successUrl?: string | undefined;
178
181
  forceCheckout?: boolean | undefined;
179
- dialog?: any;
180
- entityData?: any;
181
182
  openInNewTab?: boolean | undefined;
182
- reward?: string | undefined;
183
183
  checkoutSessionParams?: Record<string, any> | undefined;
184
184
  }, {
185
185
  options?: {
186
- featureId: string;
187
186
  quantity: number;
187
+ featureId: string;
188
188
  }[] | undefined;
189
189
  metadata?: Record<string, string> | undefined;
190
+ reward?: string | undefined;
190
191
  productId?: string | undefined;
191
192
  entityId?: string | undefined;
193
+ dialog?: any;
194
+ entityData?: any;
192
195
  productIds?: string[] | undefined;
193
196
  freeTrial?: boolean | undefined;
194
197
  successUrl?: string | undefined;
195
198
  forceCheckout?: boolean | undefined;
196
- dialog?: any;
197
- entityData?: any;
198
199
  openInNewTab?: boolean | undefined;
199
- reward?: string | undefined;
200
200
  checkoutSessionParams?: Record<string, any> | undefined;
201
201
  }>;
202
202
  type AttachParams = z.infer<typeof AttachParamsSchema>;
@@ -208,11 +208,11 @@ declare const CheckoutParamsSchema: z.ZodObject<{
208
208
  featureId: z.ZodString;
209
209
  quantity: z.ZodNumber;
210
210
  }, "strip", z.ZodTypeAny, {
211
- featureId: string;
212
211
  quantity: number;
213
- }, {
214
212
  featureId: string;
213
+ }, {
215
214
  quantity: number;
215
+ featureId: string;
216
216
  }>, "many">>;
217
217
  successUrl: z.ZodOptional<z.ZodString>;
218
218
  openInNewTab: z.ZodOptional<z.ZodBoolean>;
@@ -222,28 +222,28 @@ declare const CheckoutParamsSchema: z.ZodObject<{
222
222
  }, "strip", z.ZodTypeAny, {
223
223
  productId: string;
224
224
  options?: {
225
- featureId: string;
226
225
  quantity: number;
226
+ featureId: string;
227
227
  }[] | undefined;
228
+ reward?: string | undefined;
228
229
  entityId?: string | undefined;
229
- successUrl?: string | undefined;
230
230
  dialog?: any;
231
231
  entityData?: any;
232
+ successUrl?: string | undefined;
232
233
  openInNewTab?: boolean | undefined;
233
- reward?: string | undefined;
234
234
  checkoutSessionParams?: Record<string, any> | undefined;
235
235
  }, {
236
236
  productId: string;
237
237
  options?: {
238
- featureId: string;
239
238
  quantity: number;
239
+ featureId: string;
240
240
  }[] | undefined;
241
+ reward?: string | undefined;
241
242
  entityId?: string | undefined;
242
- successUrl?: string | undefined;
243
243
  dialog?: any;
244
244
  entityData?: any;
245
+ successUrl?: string | undefined;
245
246
  openInNewTab?: boolean | undefined;
246
- reward?: string | undefined;
247
247
  checkoutSessionParams?: Record<string, any> | undefined;
248
248
  }>;
249
249
  type CheckoutParams = z.infer<typeof CheckoutParamsSchema>;
@@ -1,4 +1,4 @@
1
- import { C as CheckFeatureResult, d as CheckProductResult } from './prodTypes-CxvB1YY3.mjs';
1
+ import { C as CheckFeatureResult, d as CheckProductResult } from './prodTypes-DzTLP57C.mjs';
2
2
  import { z } from 'zod';
3
3
  import { A as AutumnError } from './error-DHbclCVh.mjs';
4
4
 
@@ -8,12 +8,12 @@ declare const CancelResultSchema: z.ZodObject<{
8
8
  product_id: z.ZodString;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  customer_id: string;
11
- success: boolean;
12
11
  product_id: string;
12
+ success: boolean;
13
13
  }, {
14
14
  customer_id: string;
15
- success: boolean;
16
15
  product_id: string;
16
+ success: boolean;
17
17
  }>;
18
18
  type CancelResult = z.infer<typeof CancelResultSchema>;
19
19
  declare const TrackResultSchema: z.ZodObject<{
@@ -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
- id: string;
27
- customer_id: string;
28
26
  code: string;
27
+ customer_id: string;
28
+ id: string;
29
29
  feature_id?: string | undefined;
30
30
  event_name?: string | undefined;
31
31
  }, {
32
- id: string;
33
- customer_id: string;
34
32
  code: string;
33
+ customer_id: string;
34
+ id: string;
35
35
  feature_id?: string | undefined;
36
36
  event_name?: string | undefined;
37
37
  }>;
@@ -89,20 +89,20 @@ declare const CheckParamsSchema: z.ZodObject<{
89
89
  productId?: string | undefined;
90
90
  entityId?: string | undefined;
91
91
  featureId?: string | undefined;
92
- dialog?: any;
93
- entityData?: any;
94
92
  requiredBalance?: number | undefined;
95
93
  sendEvent?: boolean | undefined;
96
94
  withPreview?: boolean | undefined;
95
+ dialog?: any;
96
+ entityData?: any;
97
97
  }, {
98
98
  productId?: string | undefined;
99
99
  entityId?: string | undefined;
100
100
  featureId?: string | undefined;
101
- dialog?: any;
102
- entityData?: any;
103
101
  requiredBalance?: number | undefined;
104
102
  sendEvent?: boolean | undefined;
105
103
  withPreview?: boolean | undefined;
104
+ dialog?: any;
105
+ entityData?: any;
106
106
  }>;
107
107
  type CheckParams = z.infer<typeof CheckParamsSchema>;
108
108
  declare const TrackParamsSchema: z.ZodObject<{
@@ -145,11 +145,11 @@ declare const AttachParamsSchema: z.ZodObject<{
145
145
  featureId: z.ZodString;
146
146
  quantity: z.ZodNumber;
147
147
  }, "strip", z.ZodTypeAny, {
148
- featureId: string;
149
148
  quantity: number;
150
- }, {
151
149
  featureId: string;
150
+ }, {
152
151
  quantity: number;
152
+ featureId: string;
153
153
  }>, "many">>;
154
154
  productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
155
155
  freeTrial: z.ZodOptional<z.ZodBoolean>;
@@ -166,37 +166,37 @@ declare const AttachParamsSchema: z.ZodObject<{
166
166
  checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
167
167
  }, "strip", z.ZodTypeAny, {
168
168
  options?: {
169
- featureId: string;
170
169
  quantity: number;
170
+ featureId: string;
171
171
  }[] | undefined;
172
172
  metadata?: Record<string, string> | undefined;
173
+ reward?: string | undefined;
173
174
  productId?: string | undefined;
174
175
  entityId?: string | undefined;
176
+ dialog?: any;
177
+ entityData?: any;
175
178
  productIds?: string[] | undefined;
176
179
  freeTrial?: boolean | undefined;
177
180
  successUrl?: string | undefined;
178
181
  forceCheckout?: boolean | undefined;
179
- dialog?: any;
180
- entityData?: any;
181
182
  openInNewTab?: boolean | undefined;
182
- reward?: string | undefined;
183
183
  checkoutSessionParams?: Record<string, any> | undefined;
184
184
  }, {
185
185
  options?: {
186
- featureId: string;
187
186
  quantity: number;
187
+ featureId: string;
188
188
  }[] | undefined;
189
189
  metadata?: Record<string, string> | undefined;
190
+ reward?: string | undefined;
190
191
  productId?: string | undefined;
191
192
  entityId?: string | undefined;
193
+ dialog?: any;
194
+ entityData?: any;
192
195
  productIds?: string[] | undefined;
193
196
  freeTrial?: boolean | undefined;
194
197
  successUrl?: string | undefined;
195
198
  forceCheckout?: boolean | undefined;
196
- dialog?: any;
197
- entityData?: any;
198
199
  openInNewTab?: boolean | undefined;
199
- reward?: string | undefined;
200
200
  checkoutSessionParams?: Record<string, any> | undefined;
201
201
  }>;
202
202
  type AttachParams = z.infer<typeof AttachParamsSchema>;
@@ -208,11 +208,11 @@ declare const CheckoutParamsSchema: z.ZodObject<{
208
208
  featureId: z.ZodString;
209
209
  quantity: z.ZodNumber;
210
210
  }, "strip", z.ZodTypeAny, {
211
- featureId: string;
212
211
  quantity: number;
213
- }, {
214
212
  featureId: string;
213
+ }, {
215
214
  quantity: number;
215
+ featureId: string;
216
216
  }>, "many">>;
217
217
  successUrl: z.ZodOptional<z.ZodString>;
218
218
  openInNewTab: z.ZodOptional<z.ZodBoolean>;
@@ -222,28 +222,28 @@ declare const CheckoutParamsSchema: z.ZodObject<{
222
222
  }, "strip", z.ZodTypeAny, {
223
223
  productId: string;
224
224
  options?: {
225
- featureId: string;
226
225
  quantity: number;
226
+ featureId: string;
227
227
  }[] | undefined;
228
+ reward?: string | undefined;
228
229
  entityId?: string | undefined;
229
- successUrl?: string | undefined;
230
230
  dialog?: any;
231
231
  entityData?: any;
232
+ successUrl?: string | undefined;
232
233
  openInNewTab?: boolean | undefined;
233
- reward?: string | undefined;
234
234
  checkoutSessionParams?: Record<string, any> | undefined;
235
235
  }, {
236
236
  productId: string;
237
237
  options?: {
238
- featureId: string;
239
238
  quantity: number;
239
+ featureId: string;
240
240
  }[] | undefined;
241
+ reward?: string | undefined;
241
242
  entityId?: string | undefined;
242
- successUrl?: string | undefined;
243
243
  dialog?: any;
244
244
  entityData?: any;
245
+ successUrl?: string | undefined;
245
246
  openInNewTab?: boolean | undefined;
246
- reward?: string | undefined;
247
247
  checkoutSessionParams?: Record<string, any> | undefined;
248
248
  }>;
249
249
  type CheckoutParams = z.infer<typeof CheckoutParamsSchema>;
@@ -1,8 +1,8 @@
1
1
  import { AutumnClientError, PricingTableProduct } from './types.mjs';
2
- import './cusTypes-Q54uLNO5.mjs';
3
- import './prodTypes-CxvB1YY3.mjs';
2
+ import './cusTypes-y5wEmx07.mjs';
3
+ import './prodTypes-DzTLP57C.mjs';
4
4
  import 'zod';
5
- import './entTypes-CHHBdhBK.mjs';
5
+ import './entTypes-KRxjcMFv.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-BHYpk8bK.js';
3
- import './prodTypes-CxvB1YY3.js';
2
+ import './cusTypes-DEURYNg4.js';
3
+ import './prodTypes-DzTLP57C.js';
4
4
  import 'zod';
5
- import './entTypes-vjIG3B1G.js';
5
+ import './entTypes-CRFgWhOr.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-CxvB1YY3.js';
1
+ import { A as AppEnv, P as ProductItem, b as ProductItemInterval } from './prodTypes-DzTLP57C.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare enum ProductStatus {
@@ -59,14 +59,14 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
59
59
  credit_amount: number;
60
60
  }>, "many">>;
61
61
  }, "strip", z.ZodTypeAny, {
62
- balance?: number | null | undefined;
62
+ usage_limit?: number | undefined;
63
63
  unlimited?: boolean | undefined;
64
64
  interval?: ProductItemInterval | undefined;
65
+ balance?: number | null | undefined;
65
66
  usage?: number | undefined;
66
67
  included_usage?: number | undefined;
67
68
  next_reset_at?: number | null | undefined;
68
69
  overage_allowed?: boolean | undefined;
69
- usage_limit?: number | undefined;
70
70
  rollovers?: {
71
71
  balance: number;
72
72
  expires_at: number;
@@ -83,14 +83,14 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
83
83
  credit_amount: number;
84
84
  }[] | undefined;
85
85
  }, {
86
- balance?: number | null | undefined;
86
+ usage_limit?: number | undefined;
87
87
  unlimited?: boolean | undefined;
88
88
  interval?: ProductItemInterval | undefined;
89
+ balance?: number | null | undefined;
89
90
  usage?: number | undefined;
90
91
  included_usage?: number | undefined;
91
92
  next_reset_at?: number | null | undefined;
92
93
  overage_allowed?: boolean | undefined;
93
- usage_limit?: number | undefined;
94
94
  rollovers?: {
95
95
  balance: number;
96
96
  expires_at: number;
@@ -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-CxvB1YY3.mjs';
1
+ import { A as AppEnv, P as ProductItem, b as ProductItemInterval } from './prodTypes-DzTLP57C.mjs';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare enum ProductStatus {
@@ -59,14 +59,14 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
59
59
  credit_amount: number;
60
60
  }>, "many">>;
61
61
  }, "strip", z.ZodTypeAny, {
62
- balance?: number | null | undefined;
62
+ usage_limit?: number | undefined;
63
63
  unlimited?: boolean | undefined;
64
64
  interval?: ProductItemInterval | undefined;
65
+ balance?: number | null | undefined;
65
66
  usage?: number | undefined;
66
67
  included_usage?: number | undefined;
67
68
  next_reset_at?: number | null | undefined;
68
69
  overage_allowed?: boolean | undefined;
69
- usage_limit?: number | undefined;
70
70
  rollovers?: {
71
71
  balance: number;
72
72
  expires_at: number;
@@ -83,14 +83,14 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
83
83
  credit_amount: number;
84
84
  }[] | undefined;
85
85
  }, {
86
- balance?: number | null | undefined;
86
+ usage_limit?: number | undefined;
87
87
  unlimited?: boolean | undefined;
88
88
  interval?: ProductItemInterval | undefined;
89
+ balance?: number | null | undefined;
89
90
  usage?: number | undefined;
90
91
  included_usage?: number | undefined;
91
92
  next_reset_at?: number | null | undefined;
92
93
  overage_allowed?: boolean | undefined;
93
- usage_limit?: number | undefined;
94
94
  rollovers?: {
95
95
  balance: number;
96
96
  expires_at: number;
@@ -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-BHYpk8bK.js';
1
+ import { b as CustomerProduct, c as CustomerFeature, d as CustomerInvoice } from './cusTypes-DEURYNg4.js';
2
2
 
3
3
  type EntityExpandOption = "invoices";
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as CustomerProduct, c as CustomerFeature, d as CustomerInvoice } from './cusTypes-Q54uLNO5.mjs';
1
+ import { b as CustomerProduct, c as CustomerFeature, d as CustomerInvoice } from './cusTypes-y5wEmx07.mjs';
2
2
 
3
3
  type EntityExpandOption = "invoices";
4
4
 
@@ -1,15 +1,15 @@
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-CZFjz8Rq.mjs';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
3
- import { C as CheckoutResult } from '../attachTypes-DZFtFEmv.mjs';
4
- import { B as BillingPortalResult } from '../cusTypes-Q54uLNO5.mjs';
5
- import '../prodTypes-CxvB1YY3.mjs';
3
+ import { C as CheckoutResult } from '../attachTypes-EvdK0fPK.mjs';
4
+ import { B as BillingPortalResult } from '../cusTypes-y5wEmx07.mjs';
5
+ import '../prodTypes-DzTLP57C.mjs';
6
6
  import 'zod';
7
7
 
8
8
  declare const useAutumn: () => {
9
9
  attach: (params: AttachParams) => Promise<Result<{
10
+ customer_id: string;
10
11
  code: string;
11
12
  message: string;
12
- customer_id: string;
13
13
  product_ids: string[];
14
14
  customer_data?: any;
15
15
  checkout_url?: string | undefined;
@@ -1,15 +1,15 @@
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-CGPjsdPk.js';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.js';
3
- import { C as CheckoutResult } from '../attachTypes-DxJ0LCjT.js';
4
- import { B as BillingPortalResult } from '../cusTypes-BHYpk8bK.js';
5
- import '../prodTypes-CxvB1YY3.js';
3
+ import { C as CheckoutResult } from '../attachTypes-DKlQexnQ.js';
4
+ import { B as BillingPortalResult } from '../cusTypes-DEURYNg4.js';
5
+ import '../prodTypes-DzTLP57C.js';
6
6
  import 'zod';
7
7
 
8
8
  declare const useAutumn: () => {
9
9
  attach: (params: AttachParams) => Promise<Result<{
10
+ customer_id: string;
10
11
  code: string;
11
12
  message: string;
12
- customer_id: string;
13
13
  product_ids: string[];
14
14
  customer_data?: any;
15
15
  checkout_url?: string | undefined;
@@ -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-qsdoMt_B.mjs';
3
- import { A as AttachResult, C as CheckoutResult } from '../attachTypes-DZFtFEmv.mjs';
4
- import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-Q54uLNO5.mjs';
5
- import { E as Entity } from '../entTypes-CHHBdhBK.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-CZFjz8Rq.mjs';
3
+ import { A as AttachResult, C as CheckoutResult } from '../attachTypes-EvdK0fPK.mjs';
4
+ import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-y5wEmx07.mjs';
5
+ import { E as Entity } from '../entTypes-KRxjcMFv.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-CxvB1YY3.mjs';
9
+ import '../prodTypes-DzTLP57C.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-BXtfXB4v.js';
3
- import { A as AttachResult, C as CheckoutResult } from '../attachTypes-DxJ0LCjT.js';
4
- import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-BHYpk8bK.js';
5
- import { E as Entity } from '../entTypes-vjIG3B1G.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-CGPjsdPk.js';
3
+ import { A as AttachResult, C as CheckoutResult } from '../attachTypes-DKlQexnQ.js';
4
+ import { f as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-DEURYNg4.js';
5
+ import { E as Entity } from '../entTypes-CRFgWhOr.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-CxvB1YY3.js';
9
+ import '../prodTypes-DzTLP57C.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-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-CZFjz8Rq.mjs';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
3
- import { G as GetEntityParams, E as Entity } from '../entTypes-CHHBdhBK.mjs';
3
+ import { G as GetEntityParams, E as Entity } from '../entTypes-KRxjcMFv.mjs';
4
4
  import * as swr from 'swr';
5
- import '../prodTypes-CxvB1YY3.mjs';
5
+ import '../prodTypes-DzTLP57C.mjs';
6
6
  import 'zod';
7
- import '../cusTypes-Q54uLNO5.mjs';
7
+ import '../cusTypes-y5wEmx07.mjs';
8
8
 
9
9
  declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
10
10
  entity: Entity | null;
@@ -16,22 +16,22 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
16
16
  error: null;
17
17
  };
18
18
  attach: (params: AttachParams) => Promise<Result<{
19
+ customer_id: string;
19
20
  code: string;
20
21
  message: string;
21
- customer_id: string;
22
22
  product_ids: string[];
23
23
  customer_data?: any;
24
24
  checkout_url?: string | undefined;
25
25
  } | CheckResult, AutumnError>>;
26
26
  cancel: (params: CancelParams) => AutumnPromise<{
27
27
  customer_id: string;
28
- success: boolean;
29
28
  product_id: string;
29
+ success: boolean;
30
30
  }>;
31
31
  track: (params: TrackParams) => AutumnPromise<{
32
+ customer_id: string;
32
33
  code: string;
33
34
  id: string;
34
- customer_id: string;
35
35
  feature_id?: string | undefined;
36
36
  event_name?: string | undefined;
37
37
  }>;
@@ -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-CGPjsdPk.js';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.js';
3
- import { G as GetEntityParams, E as Entity } from '../entTypes-vjIG3B1G.js';
3
+ import { G as GetEntityParams, E as Entity } from '../entTypes-CRFgWhOr.js';
4
4
  import * as swr from 'swr';
5
- import '../prodTypes-CxvB1YY3.js';
5
+ import '../prodTypes-DzTLP57C.js';
6
6
  import 'zod';
7
- import '../cusTypes-BHYpk8bK.js';
7
+ import '../cusTypes-DEURYNg4.js';
8
8
 
9
9
  declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
10
10
  entity: Entity | null;
@@ -16,22 +16,22 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
16
16
  error: null;
17
17
  };
18
18
  attach: (params: AttachParams) => Promise<Result<{
19
+ customer_id: string;
19
20
  code: string;
20
21
  message: string;
21
- customer_id: string;
22
22
  product_ids: string[];
23
23
  customer_data?: any;
24
24
  checkout_url?: string | undefined;
25
25
  } | CheckResult, AutumnError>>;
26
26
  cancel: (params: CancelParams) => AutumnPromise<{
27
27
  customer_id: string;
28
- success: boolean;
29
28
  product_id: string;
29
+ success: boolean;
30
30
  }>;
31
31
  track: (params: TrackParams) => AutumnPromise<{
32
+ customer_id: string;
32
33
  code: string;
33
34
  id: string;
34
- customer_id: string;
35
35
  feature_id?: string | undefined;
36
36
  event_name?: string | undefined;
37
37
  }>;