autumn-js 0.0.101 → 0.0.102

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 (175) hide show
  1. package/dist/compose/index.d.mts +67 -93
  2. package/dist/compose/index.d.ts +67 -93
  3. package/dist/compose/index.js +14 -83
  4. package/dist/compose/index.mjs +14 -80
  5. package/dist/libraries/backend/better-auth.d.mts +18 -18
  6. package/dist/libraries/backend/better-auth.d.ts +18 -18
  7. package/dist/libraries/backend/elysia.d.mts +1 -1
  8. package/dist/libraries/backend/elysia.d.ts +1 -1
  9. package/dist/libraries/backend/express.d.mts +1 -1
  10. package/dist/libraries/backend/express.d.ts +1 -1
  11. package/dist/libraries/backend/next.js +94 -94
  12. package/dist/libraries/backend/next.mjs +94 -94
  13. package/dist/libraries/backend/{referralTypes-HAk2vTns.d.ts → referralTypes-D1Q2i3mG.d.ts} +28 -27
  14. package/dist/libraries/backend/{referralTypes-Dg9pRvI7.d.mts → referralTypes-Dfg6if8j.d.mts} +28 -27
  15. package/dist/libraries/backend/tanstack.js +2 -2
  16. package/dist/libraries/backend/tanstack.mjs +2 -2
  17. package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
  18. package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
  19. package/dist/libraries/react/AutumnContext.d.mts +4 -4
  20. package/dist/libraries/react/AutumnContext.d.ts +4 -4
  21. package/dist/libraries/react/AutumnContext.mjs +4 -4
  22. package/dist/libraries/react/BaseAutumnProvider.d.mts +4 -4
  23. package/dist/libraries/react/BaseAutumnProvider.d.ts +4 -4
  24. package/dist/libraries/react/BaseAutumnProvider.js +7 -2
  25. package/dist/libraries/react/BaseAutumnProvider.mjs +9 -9
  26. package/dist/libraries/react/{ReactAutumnClient-B4P_QjY1.d.ts → ReactAutumnClient-DBbq29Nn.d.ts} +3 -3
  27. package/dist/libraries/react/{ReactAutumnClient-DCdPx-ps.d.mts → ReactAutumnClient-YzfxjqPK.d.mts} +3 -3
  28. package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
  29. package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
  30. package/dist/libraries/react/ReactAutumnProvider.js +7 -2
  31. package/dist/libraries/react/ReactAutumnProvider.mjs +10 -10
  32. package/dist/libraries/react/{chunk-T5PIJ4HG.mjs → chunk-3VHO7VUQ.mjs} +4 -3
  33. package/dist/libraries/react/{chunk-DVMVIAZE.mjs → chunk-5NDO7C7R.mjs} +3 -3
  34. package/dist/libraries/react/{chunk-AOJCMXVS.mjs → chunk-5URK7LI3.mjs} +3 -3
  35. package/dist/libraries/react/{chunk-YLZ5NFYO.mjs → chunk-AL3VJLFU.mjs} +1 -1
  36. package/dist/libraries/react/{chunk-LVDONEVF.mjs → chunk-CE33P32V.mjs} +7 -3
  37. package/dist/libraries/react/{chunk-G3FBFZLU.mjs → chunk-GQ3TAHSV.mjs} +1 -1
  38. package/dist/libraries/react/{chunk-CAMHARUX.mjs → chunk-H2NGSCWI.mjs} +2 -2
  39. package/dist/libraries/react/{chunk-6CJ3FB74.mjs → chunk-JI7WQ6AC.mjs} +2 -2
  40. package/dist/libraries/react/{chunk-24EVX3BR.mjs → chunk-LKV32IPT.mjs} +20 -41
  41. package/dist/libraries/react/{chunk-RQG36YPD.mjs → chunk-LXSKONN2.mjs} +5 -9
  42. package/dist/libraries/react/{chunk-R46CJXF7.mjs → chunk-OAPUYXBO.mjs} +6 -6
  43. package/dist/libraries/react/{chunk-3CJSWXNT.mjs → chunk-OAWFFAKA.mjs} +6 -6
  44. package/dist/libraries/react/{chunk-CPITDC7S.mjs → chunk-SDMBKRAI.mjs} +37 -172
  45. package/dist/libraries/react/{chunk-APDR7D6A.mjs → chunk-SY5GNYZ7.mjs} +2 -2
  46. package/dist/libraries/react/{chunk-5G3DYUNT.mjs → chunk-T73WQC2X.mjs} +1 -1
  47. package/dist/libraries/react/{chunk-R4BYOLST.mjs → chunk-TPKQIL3N.mjs} +2 -2
  48. package/dist/libraries/react/{chunk-MZDRIPNS.mjs → chunk-X6RY6VG5.mjs} +2 -2
  49. package/dist/libraries/react/{chunk-RQEL7G2O.mjs → chunk-ZVQKDPUP.mjs} +3 -3
  50. package/dist/libraries/react/client/ReactAutumnClient.d.mts +4 -4
  51. package/dist/libraries/react/client/ReactAutumnClient.d.ts +4 -4
  52. package/dist/libraries/react/client/ReactAutumnClient.mjs +3 -3
  53. package/dist/libraries/react/client/clientCompMethods.d.mts +4 -4
  54. package/dist/libraries/react/client/clientCompMethods.d.ts +4 -4
  55. package/dist/libraries/react/client/clientCusMethods.d.mts +4 -4
  56. package/dist/libraries/react/client/clientCusMethods.d.ts +4 -4
  57. package/dist/libraries/react/client/clientEntityMethods.d.mts +4 -4
  58. package/dist/libraries/react/client/clientEntityMethods.d.ts +4 -4
  59. package/dist/libraries/react/client/clientGenMethods.d.mts +4 -4
  60. package/dist/libraries/react/client/clientGenMethods.d.ts +4 -4
  61. package/dist/libraries/react/client/clientProdMethods.d.mts +4 -4
  62. package/dist/libraries/react/client/clientProdMethods.d.ts +4 -4
  63. package/dist/libraries/react/client/clientReferralMethods.d.mts +4 -4
  64. package/dist/libraries/react/client/clientReferralMethods.d.ts +4 -4
  65. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.css +111 -116
  66. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +1 -1
  67. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +1 -1
  68. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +76 -212
  69. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +23 -23
  70. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +1 -1
  71. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +1 -1
  72. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
  73. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
  74. package/dist/libraries/react/components/check-dialog/check-dialog-synced.js +47 -169
  75. package/dist/libraries/react/components/check-dialog/check-dialog-synced.mjs +5 -5
  76. package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
  77. package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
  78. package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +111 -116
  79. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
  80. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
  81. package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +76 -215
  82. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +23 -23
  83. package/dist/libraries/react/components/ui/button.js +3 -3
  84. package/dist/libraries/react/components/ui/button.mjs +2 -2
  85. package/dist/libraries/react/components/ui/dialog.js +43 -157
  86. package/dist/libraries/react/components/ui/dialog.mjs +3 -3
  87. package/dist/libraries/react/components/ui/switch.js +12 -12
  88. package/dist/libraries/react/components/ui/switch.mjs +3 -3
  89. package/dist/libraries/react/{cusTypes-Bf1qr9iE.d.ts → cusTypes-CFofdxsA.d.mts} +2 -1
  90. package/dist/libraries/react/{cusTypes-Bf1qr9iE.d.mts → cusTypes-CFofdxsA.d.ts} +2 -1
  91. package/dist/libraries/react/{entTypes-CscyyE1A.d.mts → entTypes-BeWtfIqo.d.mts} +1 -1
  92. package/dist/libraries/react/{entTypes-O8YXxhrA.d.ts → entTypes-BhUZh8uE.d.ts} +1 -1
  93. package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
  94. package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
  95. package/dist/libraries/react/hooks/useAutumn.d.mts +2 -2
  96. package/dist/libraries/react/hooks/useAutumn.d.ts +2 -2
  97. package/dist/libraries/react/hooks/useAutumn.js +5 -1
  98. package/dist/libraries/react/hooks/useAutumn.mjs +7 -7
  99. package/dist/libraries/react/hooks/useAutumnBase.d.mts +6 -5
  100. package/dist/libraries/react/hooks/useAutumnBase.d.ts +6 -5
  101. package/dist/libraries/react/hooks/useAutumnBase.js +5 -1
  102. package/dist/libraries/react/hooks/useAutumnBase.mjs +6 -6
  103. package/dist/libraries/react/hooks/useCustomer.d.mts +4 -4
  104. package/dist/libraries/react/hooks/useCustomer.d.ts +4 -4
  105. package/dist/libraries/react/hooks/useCustomer.js +7 -2
  106. package/dist/libraries/react/hooks/useCustomer.mjs +8 -8
  107. package/dist/libraries/react/hooks/useCustomerBase.d.mts +4 -4
  108. package/dist/libraries/react/hooks/useCustomerBase.d.ts +4 -4
  109. package/dist/libraries/react/hooks/useCustomerBase.js +7 -2
  110. package/dist/libraries/react/hooks/useCustomerBase.mjs +7 -7
  111. package/dist/libraries/react/hooks/useEntity.d.mts +3 -3
  112. package/dist/libraries/react/hooks/useEntity.d.ts +3 -3
  113. package/dist/libraries/react/hooks/useEntity.js +5 -1
  114. package/dist/libraries/react/hooks/useEntity.mjs +8 -8
  115. package/dist/libraries/react/hooks/useEntityBase.d.mts +4 -4
  116. package/dist/libraries/react/hooks/useEntityBase.d.ts +4 -4
  117. package/dist/libraries/react/hooks/useEntityBase.js +5 -1
  118. package/dist/libraries/react/hooks/useEntityBase.mjs +7 -7
  119. package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
  120. package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
  121. package/dist/libraries/react/hooks/usePricingTable.mjs +6 -6
  122. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +4 -4
  123. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +4 -4
  124. package/dist/libraries/react/hooks/usePricingTableBase.mjs +5 -5
  125. package/dist/libraries/react/hooks/useProductsBase.mjs +4 -4
  126. package/dist/libraries/react/index.d.mts +1 -0
  127. package/dist/libraries/react/index.d.ts +1 -0
  128. package/dist/libraries/react/index.js +80 -222
  129. package/dist/libraries/react/index.mjs +65 -207
  130. package/dist/libraries/react/{response-B4VzjWEU.d.mts → response-AGK9KlYm.d.mts} +1 -1
  131. package/dist/libraries/react/{response-C3S90max.d.ts → response-CxMWdpyl.d.ts} +1 -1
  132. package/dist/next/{AutumnProvider-CCYZC_bN.d.mts → AutumnProvider-Xl1mqxls.d.mts} +1 -0
  133. package/dist/next/{AutumnProvider-CCYZC_bN.d.ts → AutumnProvider-Xl1mqxls.d.ts} +1 -0
  134. package/dist/next/AutumnProvider.d.mts +1 -1
  135. package/dist/next/AutumnProvider.d.ts +1 -1
  136. package/dist/next/client/NextAutumnClient.d.mts +10 -10
  137. package/dist/next/client/NextAutumnClient.d.ts +10 -10
  138. package/dist/next/client/NextAutumnProvider.d.mts +1 -1
  139. package/dist/next/client/NextAutumnProvider.d.ts +1 -1
  140. package/dist/next/client/{clientGenTypes-9ngy1q97.d.mts → clientGenTypes-BcRfHmUS.d.mts} +17 -17
  141. package/dist/next/client/{clientGenTypes-CxB4go6q.d.ts → clientGenTypes-D8f8BwMo.d.ts} +17 -17
  142. package/dist/next/client/clientUtils.d.mts +2 -2
  143. package/dist/next/client/clientUtils.d.ts +2 -2
  144. package/dist/next/client/{cusTypes-D8lhXGaX.d.mts → cusTypes-Gh2wfcmj.d.mts} +1 -0
  145. package/dist/next/client/{cusTypes-D8lhXGaX.d.ts → cusTypes-Gh2wfcmj.d.ts} +1 -0
  146. package/dist/next/client/{entTypes-Dq2mbehl.d.ts → entTypes-B_w6I3y-.d.ts} +1 -1
  147. package/dist/next/client/{entTypes-B-2_9hzP.d.mts → entTypes-C_xS1VPE.d.mts} +1 -1
  148. package/dist/next/client/hooks/useAutumn.d.mts +2 -2
  149. package/dist/next/client/hooks/useAutumn.d.ts +2 -2
  150. package/dist/next/client/hooks/useCustomer.d.mts +3 -3
  151. package/dist/next/client/hooks/useCustomer.d.ts +3 -3
  152. package/dist/next/client/hooks/useEntity.d.mts +5 -5
  153. package/dist/next/client/hooks/useEntity.d.ts +5 -5
  154. package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
  155. package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
  156. package/dist/next/client/types.d.mts +2 -2
  157. package/dist/next/client/types.d.ts +2 -2
  158. package/dist/next/index.d.mts +2 -2
  159. package/dist/next/index.d.ts +2 -2
  160. package/dist/next/server/auth/withNextAuth.d.mts +1 -1
  161. package/dist/next/server/auth/withNextAuth.d.ts +1 -1
  162. package/dist/next/server/componentActions.d.mts +1 -1
  163. package/dist/next/server/componentActions.d.ts +1 -1
  164. package/dist/next/server/cusActions.d.mts +21 -21
  165. package/dist/next/server/cusActions.d.ts +21 -21
  166. package/dist/next/server/{cusTypes-DhOYtM7H.d.mts → cusTypes-DVA6iu7V.d.mts} +3 -2
  167. package/dist/next/server/{cusTypes-DhOYtM7H.d.ts → cusTypes-DVA6iu7V.d.ts} +3 -2
  168. package/dist/next/server/genActions.d.mts +1 -1
  169. package/dist/next/server/genActions.d.ts +1 -1
  170. package/dist/sdk/index.d.mts +1 -0
  171. package/dist/sdk/index.d.ts +1 -0
  172. package/dist/styles/global.css +111 -116
  173. package/package.json +9 -22
  174. package/tsup.config.ts +0 -1
  175. package/dist/libraries/react/{chunk-ALFXUHDD.mjs → chunk-ALIGIMSK.mjs} +6 -6
@@ -1,4 +1,4 @@
1
- import { j as CheckFeatureResult, k as CheckProductResult } from './cusTypes-Bf1qr9iE.mjs';
1
+ import { j as CheckFeatureResult, k as CheckProductResult } from './cusTypes-CFofdxsA.mjs';
2
2
  import { z } from 'zod';
3
3
  import { A as AutumnError } from './error-DHbclCVh.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { j as CheckFeatureResult, k as CheckProductResult } from './cusTypes-Bf1qr9iE.js';
1
+ import { j as CheckFeatureResult, k as CheckProductResult } from './cusTypes-CFofdxsA.js';
2
2
  import { z } from 'zod';
3
3
  import { A as AutumnError } from './error-DHbclCVh.js';
4
4
 
@@ -181,6 +181,7 @@ interface CustomerProduct {
181
181
  status: ProductStatus;
182
182
  started_at: number;
183
183
  canceled_at: number | null;
184
+ version: number;
184
185
  subscription_ids?: string[] | null;
185
186
  current_period_start?: number | null;
186
187
  current_period_end?: number | null;
@@ -181,6 +181,7 @@ interface CustomerProduct {
181
181
  status: ProductStatus;
182
182
  started_at: number;
183
183
  canceled_at: number | null;
184
+ version: number;
184
185
  subscription_ids?: string[] | null;
185
186
  current_period_start?: number | null;
186
187
  current_period_end?: number | null;
@@ -1,3 +1,3 @@
1
1
  import 'react/jsx-runtime';
2
- export { A as AutumnProvider } from './AutumnProvider-CCYZC_bN.mjs';
2
+ export { A as AutumnProvider } from './AutumnProvider-Xl1mqxls.mjs';
3
3
  import 'zod';
@@ -1,3 +1,3 @@
1
1
  import 'react/jsx-runtime';
2
- export { A as AutumnProvider } from './AutumnProvider-CCYZC_bN.js';
2
+ export { A as AutumnProvider } from './AutumnProvider-Xl1mqxls.js';
3
3
  import 'zod';
@@ -1,6 +1,6 @@
1
- import { R as Result, a as AutumnPromise, b as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, g as AttachResult, d as CancelParams, e as CancelResult, C as CheckParams, T as TrackParams, c as TrackResult } from './clientGenTypes-9ngy1q97.mjs';
2
- import { e as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, P as Product } from './cusTypes-D8lhXGaX.mjs';
3
- import { E as Entity, D as DeleteEntityResult } from './entTypes-B-2_9hzP.mjs';
1
+ import { R as Result, a as AutumnPromise, b as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, g as AttachResult, d as CancelParams, e as CancelResult, C as CheckParams, T as TrackParams, c as TrackResult } from './clientGenTypes-BcRfHmUS.mjs';
2
+ import { e as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, P as Product } from './cusTypes-Gh2wfcmj.mjs';
3
+ import { E as Entity, D as DeleteEntityResult } from './entTypes-C_xS1VPE.mjs';
4
4
  import { C as CreateEntityParams, G as GetEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from './clientEntTypes-BFkleT6a.mjs';
5
5
  import * as react from 'react';
6
6
  import { A as AutumnError } from './error-DHbclCVh.mjs';
@@ -63,10 +63,11 @@ declare class AutumnClient {
63
63
  }, AutumnError>>;
64
64
  attach: (params: {
65
65
  options?: {
66
- featureId: string;
67
66
  quantity: number;
67
+ featureId: string;
68
68
  }[] | undefined;
69
69
  metadata?: Record<string, string> | undefined;
70
+ reward?: string | undefined;
70
71
  productId?: string | undefined;
71
72
  entityId?: string | undefined;
72
73
  productIds?: string[] | undefined;
@@ -76,15 +77,14 @@ declare class AutumnClient {
76
77
  dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
77
78
  entityData?: any;
78
79
  openInNewTab?: boolean | undefined;
79
- reward?: string | undefined;
80
80
  checkoutSessionParams?: Record<string, any> | undefined;
81
81
  }) => AutumnPromise<{
82
82
  customer_id: string;
83
83
  code: string;
84
84
  message: string;
85
85
  product_ids: string[];
86
- checkout_url?: string | undefined;
87
86
  customer_data?: any;
87
+ checkout_url?: string | undefined;
88
88
  }>;
89
89
  cancel: (params: {
90
90
  productId: string;
@@ -92,13 +92,13 @@ declare class AutumnClient {
92
92
  cancelImmediately?: boolean | undefined;
93
93
  }) => AutumnPromise<{
94
94
  customer_id: string;
95
- success: boolean;
96
95
  product_id: string;
96
+ success: boolean;
97
97
  }>;
98
98
  check: (params: {
99
+ featureId?: string | undefined;
99
100
  productId?: string | undefined;
100
101
  entityId?: string | undefined;
101
- featureId?: string | undefined;
102
102
  dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
103
103
  entityData?: any;
104
104
  requiredBalance?: number | undefined;
@@ -107,15 +107,15 @@ declare class AutumnClient {
107
107
  }) => AutumnPromise<CheckResult>;
108
108
  track: (params: {
109
109
  value?: number | undefined;
110
- entityId?: string | undefined;
111
110
  featureId?: string | undefined;
111
+ entityId?: string | undefined;
112
112
  entityData?: any;
113
113
  eventName?: string | undefined;
114
114
  idempotencyKey?: string | undefined;
115
115
  }) => AutumnPromise<{
116
- id: string;
117
116
  customer_id: string;
118
117
  code: string;
118
+ id: string;
119
119
  feature_id?: string | undefined;
120
120
  event_name?: string | undefined;
121
121
  }>;
@@ -1,6 +1,6 @@
1
- import { R as Result, a as AutumnPromise, b as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, g as AttachResult, d as CancelParams, e as CancelResult, C as CheckParams, T as TrackParams, c as TrackResult } from './clientGenTypes-CxB4go6q.js';
2
- import { e as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, P as Product } from './cusTypes-D8lhXGaX.js';
3
- import { E as Entity, D as DeleteEntityResult } from './entTypes-Dq2mbehl.js';
1
+ import { R as Result, a as AutumnPromise, b as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, g as AttachResult, d as CancelParams, e as CancelResult, C as CheckParams, T as TrackParams, c as TrackResult } from './clientGenTypes-D8f8BwMo.js';
2
+ import { e as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, P as Product } from './cusTypes-Gh2wfcmj.js';
3
+ import { E as Entity, D as DeleteEntityResult } from './entTypes-B_w6I3y-.js';
4
4
  import { C as CreateEntityParams, G as GetEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from './clientEntTypes-BFkleT6a.js';
5
5
  import * as react from 'react';
6
6
  import { A as AutumnError } from './error-DHbclCVh.js';
@@ -63,10 +63,11 @@ declare class AutumnClient {
63
63
  }, AutumnError>>;
64
64
  attach: (params: {
65
65
  options?: {
66
- featureId: string;
67
66
  quantity: number;
67
+ featureId: string;
68
68
  }[] | undefined;
69
69
  metadata?: Record<string, string> | undefined;
70
+ reward?: string | undefined;
70
71
  productId?: string | undefined;
71
72
  entityId?: string | undefined;
72
73
  productIds?: string[] | undefined;
@@ -76,15 +77,14 @@ declare class AutumnClient {
76
77
  dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
77
78
  entityData?: any;
78
79
  openInNewTab?: boolean | undefined;
79
- reward?: string | undefined;
80
80
  checkoutSessionParams?: Record<string, any> | undefined;
81
81
  }) => AutumnPromise<{
82
82
  customer_id: string;
83
83
  code: string;
84
84
  message: string;
85
85
  product_ids: string[];
86
- checkout_url?: string | undefined;
87
86
  customer_data?: any;
87
+ checkout_url?: string | undefined;
88
88
  }>;
89
89
  cancel: (params: {
90
90
  productId: string;
@@ -92,13 +92,13 @@ declare class AutumnClient {
92
92
  cancelImmediately?: boolean | undefined;
93
93
  }) => AutumnPromise<{
94
94
  customer_id: string;
95
- success: boolean;
96
95
  product_id: string;
96
+ success: boolean;
97
97
  }>;
98
98
  check: (params: {
99
+ featureId?: string | undefined;
99
100
  productId?: string | undefined;
100
101
  entityId?: string | undefined;
101
- featureId?: string | undefined;
102
102
  dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
103
103
  entityData?: any;
104
104
  requiredBalance?: number | undefined;
@@ -107,15 +107,15 @@ declare class AutumnClient {
107
107
  }) => AutumnPromise<CheckResult>;
108
108
  track: (params: {
109
109
  value?: number | undefined;
110
- entityId?: string | undefined;
111
110
  featureId?: string | undefined;
111
+ entityId?: string | undefined;
112
112
  entityData?: any;
113
113
  eventName?: string | undefined;
114
114
  idempotencyKey?: string | undefined;
115
115
  }) => AutumnPromise<{
116
- id: string;
117
116
  customer_id: string;
118
117
  code: string;
118
+ id: string;
119
119
  feature_id?: string | undefined;
120
120
  event_name?: string | undefined;
121
121
  }>;
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CustomerData } from './cusTypes-D8lhXGaX.mjs';
2
+ import { C as CustomerData } from './cusTypes-Gh2wfcmj.mjs';
3
3
  import 'zod';
4
4
 
5
5
  declare const NextAutumnProvider: ({ encryptedCustomerId, customerData, children, }: {
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CustomerData } from './cusTypes-D8lhXGaX.js';
2
+ import { C as CustomerData } from './cusTypes-Gh2wfcmj.js';
3
3
  import 'zod';
4
4
 
5
5
  declare const NextAutumnProvider: ({ encryptedCustomerId, customerData, children, }: {
@@ -1,4 +1,4 @@
1
- import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-D8lhXGaX.mjs';
1
+ import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-Gh2wfcmj.mjs';
2
2
  import { z } from 'zod';
3
3
  import { A as AutumnError } from './error-DHbclCVh.mjs';
4
4
  import * as react from 'react';
@@ -15,15 +15,15 @@ declare const AttachResultSchema: z.ZodObject<{
15
15
  code: string;
16
16
  message: string;
17
17
  product_ids: string[];
18
- checkout_url?: string | undefined;
19
18
  customer_data?: any;
19
+ checkout_url?: string | undefined;
20
20
  }, {
21
21
  customer_id: string;
22
22
  code: string;
23
23
  message: string;
24
24
  product_ids: string[];
25
- checkout_url?: string | undefined;
26
25
  customer_data?: any;
26
+ checkout_url?: string | undefined;
27
27
  }>;
28
28
  type AttachResult = z.infer<typeof AttachResultSchema>;
29
29
  declare const CancelResultSchema: z.ZodObject<{
@@ -32,12 +32,12 @@ declare const CancelResultSchema: z.ZodObject<{
32
32
  product_id: z.ZodString;
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  customer_id: string;
35
- success: boolean;
36
35
  product_id: string;
36
+ success: boolean;
37
37
  }, {
38
38
  customer_id: string;
39
- success: boolean;
40
39
  product_id: string;
40
+ success: boolean;
41
41
  }>;
42
42
  type CancelResult = z.infer<typeof CancelResultSchema>;
43
43
  declare const TrackResultSchema: z.ZodObject<{
@@ -47,15 +47,15 @@ declare const TrackResultSchema: z.ZodObject<{
47
47
  feature_id: z.ZodOptional<z.ZodString>;
48
48
  event_name: z.ZodOptional<z.ZodString>;
49
49
  }, "strip", z.ZodTypeAny, {
50
- id: string;
51
50
  customer_id: string;
52
51
  code: string;
52
+ id: string;
53
53
  feature_id?: string | undefined;
54
54
  event_name?: string | undefined;
55
55
  }, {
56
- id: string;
57
56
  customer_id: string;
58
57
  code: string;
58
+ id: string;
59
59
  feature_id?: string | undefined;
60
60
  event_name?: string | undefined;
61
61
  }>;
@@ -86,11 +86,11 @@ declare const AttachParamsSchema: z.ZodObject<{
86
86
  featureId: z.ZodString;
87
87
  quantity: z.ZodNumber;
88
88
  }, "strip", z.ZodTypeAny, {
89
- featureId: string;
90
89
  quantity: number;
91
- }, {
92
90
  featureId: string;
91
+ }, {
93
92
  quantity: number;
93
+ featureId: string;
94
94
  }>, "many">>;
95
95
  productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
96
96
  freeTrial: z.ZodOptional<z.ZodBoolean>;
@@ -104,10 +104,11 @@ declare const AttachParamsSchema: z.ZodObject<{
104
104
  checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
105
105
  }, "strip", z.ZodTypeAny, {
106
106
  options?: {
107
- featureId: string;
108
107
  quantity: number;
108
+ featureId: string;
109
109
  }[] | undefined;
110
110
  metadata?: Record<string, string> | undefined;
111
+ reward?: string | undefined;
111
112
  productId?: string | undefined;
112
113
  entityId?: string | undefined;
113
114
  productIds?: string[] | undefined;
@@ -117,14 +118,14 @@ declare const AttachParamsSchema: z.ZodObject<{
117
118
  dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
118
119
  entityData?: any;
119
120
  openInNewTab?: boolean | undefined;
120
- reward?: string | undefined;
121
121
  checkoutSessionParams?: Record<string, any> | undefined;
122
122
  }, {
123
123
  options?: {
124
- featureId: string;
125
124
  quantity: number;
125
+ featureId: string;
126
126
  }[] | undefined;
127
127
  metadata?: Record<string, string> | undefined;
128
+ reward?: string | undefined;
128
129
  productId?: string | undefined;
129
130
  entityId?: string | undefined;
130
131
  productIds?: string[] | undefined;
@@ -134,7 +135,6 @@ declare const AttachParamsSchema: z.ZodObject<{
134
135
  dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
135
136
  entityData?: any;
136
137
  openInNewTab?: boolean | undefined;
137
- reward?: string | undefined;
138
138
  checkoutSessionParams?: Record<string, any> | undefined;
139
139
  }>;
140
140
  type AttachParams = z.infer<typeof AttachParamsSchema>;
@@ -162,18 +162,18 @@ declare const CheckParamsSchema: z.ZodObject<{
162
162
  dialog: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodUnion<[z.ZodType<JSX.Element, z.ZodTypeDef, JSX.Element>, z.ZodType<react.ReactNode, z.ZodTypeDef, react.ReactNode>]>>>;
163
163
  entityData: z.ZodOptional<z.ZodAny>;
164
164
  }, "strip", z.ZodTypeAny, {
165
+ featureId?: string | undefined;
165
166
  productId?: string | undefined;
166
167
  entityId?: string | undefined;
167
- featureId?: string | undefined;
168
168
  dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
169
169
  entityData?: any;
170
170
  requiredBalance?: number | undefined;
171
171
  sendEvent?: boolean | undefined;
172
172
  withPreview?: boolean | undefined;
173
173
  }, {
174
+ featureId?: string | undefined;
174
175
  productId?: string | undefined;
175
176
  entityId?: string | undefined;
176
- featureId?: string | undefined;
177
177
  dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
178
178
  entityData?: any;
179
179
  requiredBalance?: number | undefined;
@@ -190,15 +190,15 @@ declare const TrackParamsSchema: z.ZodObject<{
190
190
  entityData: z.ZodOptional<z.ZodAny>;
191
191
  }, "strip", z.ZodTypeAny, {
192
192
  value?: number | undefined;
193
- entityId?: string | undefined;
194
193
  featureId?: string | undefined;
194
+ entityId?: string | undefined;
195
195
  entityData?: any;
196
196
  eventName?: string | undefined;
197
197
  idempotencyKey?: string | undefined;
198
198
  }, {
199
199
  value?: number | undefined;
200
- entityId?: string | undefined;
201
200
  featureId?: string | undefined;
201
+ entityId?: string | undefined;
202
202
  entityData?: any;
203
203
  eventName?: string | undefined;
204
204
  idempotencyKey?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-D8lhXGaX.js';
1
+ import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-Gh2wfcmj.js';
2
2
  import { z } from 'zod';
3
3
  import { A as AutumnError } from './error-DHbclCVh.js';
4
4
  import * as react from 'react';
@@ -15,15 +15,15 @@ declare const AttachResultSchema: z.ZodObject<{
15
15
  code: string;
16
16
  message: string;
17
17
  product_ids: string[];
18
- checkout_url?: string | undefined;
19
18
  customer_data?: any;
19
+ checkout_url?: string | undefined;
20
20
  }, {
21
21
  customer_id: string;
22
22
  code: string;
23
23
  message: string;
24
24
  product_ids: string[];
25
- checkout_url?: string | undefined;
26
25
  customer_data?: any;
26
+ checkout_url?: string | undefined;
27
27
  }>;
28
28
  type AttachResult = z.infer<typeof AttachResultSchema>;
29
29
  declare const CancelResultSchema: z.ZodObject<{
@@ -32,12 +32,12 @@ declare const CancelResultSchema: z.ZodObject<{
32
32
  product_id: z.ZodString;
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  customer_id: string;
35
- success: boolean;
36
35
  product_id: string;
36
+ success: boolean;
37
37
  }, {
38
38
  customer_id: string;
39
- success: boolean;
40
39
  product_id: string;
40
+ success: boolean;
41
41
  }>;
42
42
  type CancelResult = z.infer<typeof CancelResultSchema>;
43
43
  declare const TrackResultSchema: z.ZodObject<{
@@ -47,15 +47,15 @@ declare const TrackResultSchema: z.ZodObject<{
47
47
  feature_id: z.ZodOptional<z.ZodString>;
48
48
  event_name: z.ZodOptional<z.ZodString>;
49
49
  }, "strip", z.ZodTypeAny, {
50
- id: string;
51
50
  customer_id: string;
52
51
  code: string;
52
+ id: string;
53
53
  feature_id?: string | undefined;
54
54
  event_name?: string | undefined;
55
55
  }, {
56
- id: string;
57
56
  customer_id: string;
58
57
  code: string;
58
+ id: string;
59
59
  feature_id?: string | undefined;
60
60
  event_name?: string | undefined;
61
61
  }>;
@@ -86,11 +86,11 @@ declare const AttachParamsSchema: z.ZodObject<{
86
86
  featureId: z.ZodString;
87
87
  quantity: z.ZodNumber;
88
88
  }, "strip", z.ZodTypeAny, {
89
- featureId: string;
90
89
  quantity: number;
91
- }, {
92
90
  featureId: string;
91
+ }, {
93
92
  quantity: number;
93
+ featureId: string;
94
94
  }>, "many">>;
95
95
  productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
96
96
  freeTrial: z.ZodOptional<z.ZodBoolean>;
@@ -104,10 +104,11 @@ declare const AttachParamsSchema: z.ZodObject<{
104
104
  checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
105
105
  }, "strip", z.ZodTypeAny, {
106
106
  options?: {
107
- featureId: string;
108
107
  quantity: number;
108
+ featureId: string;
109
109
  }[] | undefined;
110
110
  metadata?: Record<string, string> | undefined;
111
+ reward?: string | undefined;
111
112
  productId?: string | undefined;
112
113
  entityId?: string | undefined;
113
114
  productIds?: string[] | undefined;
@@ -117,14 +118,14 @@ declare const AttachParamsSchema: z.ZodObject<{
117
118
  dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
118
119
  entityData?: any;
119
120
  openInNewTab?: boolean | undefined;
120
- reward?: string | undefined;
121
121
  checkoutSessionParams?: Record<string, any> | undefined;
122
122
  }, {
123
123
  options?: {
124
- featureId: string;
125
124
  quantity: number;
125
+ featureId: string;
126
126
  }[] | undefined;
127
127
  metadata?: Record<string, string> | undefined;
128
+ reward?: string | undefined;
128
129
  productId?: string | undefined;
129
130
  entityId?: string | undefined;
130
131
  productIds?: string[] | undefined;
@@ -134,7 +135,6 @@ declare const AttachParamsSchema: z.ZodObject<{
134
135
  dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
135
136
  entityData?: any;
136
137
  openInNewTab?: boolean | undefined;
137
- reward?: string | undefined;
138
138
  checkoutSessionParams?: Record<string, any> | undefined;
139
139
  }>;
140
140
  type AttachParams = z.infer<typeof AttachParamsSchema>;
@@ -162,18 +162,18 @@ declare const CheckParamsSchema: z.ZodObject<{
162
162
  dialog: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodUnion<[z.ZodType<JSX.Element, z.ZodTypeDef, JSX.Element>, z.ZodType<react.ReactNode, z.ZodTypeDef, react.ReactNode>]>>>;
163
163
  entityData: z.ZodOptional<z.ZodAny>;
164
164
  }, "strip", z.ZodTypeAny, {
165
+ featureId?: string | undefined;
165
166
  productId?: string | undefined;
166
167
  entityId?: string | undefined;
167
- featureId?: string | undefined;
168
168
  dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
169
169
  entityData?: any;
170
170
  requiredBalance?: number | undefined;
171
171
  sendEvent?: boolean | undefined;
172
172
  withPreview?: boolean | undefined;
173
173
  }, {
174
+ featureId?: string | undefined;
174
175
  productId?: string | undefined;
175
176
  entityId?: string | undefined;
176
- featureId?: string | undefined;
177
177
  dialog?: ((args_0: any, ...args: unknown[]) => JSX.Element | react.ReactNode) | undefined;
178
178
  entityData?: any;
179
179
  requiredBalance?: number | undefined;
@@ -190,15 +190,15 @@ declare const TrackParamsSchema: z.ZodObject<{
190
190
  entityData: z.ZodOptional<z.ZodAny>;
191
191
  }, "strip", z.ZodTypeAny, {
192
192
  value?: number | undefined;
193
- entityId?: string | undefined;
194
193
  featureId?: string | undefined;
194
+ entityId?: string | undefined;
195
195
  entityData?: any;
196
196
  eventName?: string | undefined;
197
197
  idempotencyKey?: string | undefined;
198
198
  }, {
199
199
  value?: number | undefined;
200
- entityId?: string | undefined;
201
200
  featureId?: string | undefined;
201
+ entityId?: string | undefined;
202
202
  entityData?: any;
203
203
  eventName?: string | undefined;
204
204
  idempotencyKey?: string | undefined;
@@ -1,7 +1,7 @@
1
1
  import { AutumnClientError, PricingTableProduct } from './types.mjs';
2
- import './cusTypes-D8lhXGaX.mjs';
2
+ import './cusTypes-Gh2wfcmj.mjs';
3
3
  import 'zod';
4
- import './entTypes-B-2_9hzP.mjs';
4
+ import './entTypes-C_xS1VPE.mjs';
5
5
 
6
6
  declare const toClientErrorResponse: (error: any) => {
7
7
  data: null;
@@ -1,7 +1,7 @@
1
1
  import { AutumnClientError, PricingTableProduct } from './types.js';
2
- import './cusTypes-D8lhXGaX.js';
2
+ import './cusTypes-Gh2wfcmj.js';
3
3
  import 'zod';
4
- import './entTypes-Dq2mbehl.js';
4
+ import './entTypes-B_w6I3y-.js';
5
5
 
6
6
  declare const toClientErrorResponse: (error: any) => {
7
7
  data: null;
@@ -180,6 +180,7 @@ interface CustomerProduct {
180
180
  status: ProductStatus;
181
181
  started_at: number;
182
182
  canceled_at: number | null;
183
+ version: number;
183
184
  subscription_ids?: string[] | null;
184
185
  current_period_start?: number | null;
185
186
  current_period_end?: number | null;
@@ -180,6 +180,7 @@ interface CustomerProduct {
180
180
  status: ProductStatus;
181
181
  started_at: number;
182
182
  canceled_at: number | null;
183
+ version: number;
183
184
  subscription_ids?: string[] | null;
184
185
  current_period_start?: number | null;
185
186
  current_period_end?: number | null;
@@ -1,4 +1,4 @@
1
- import { b as CustomerProduct, c as CustomerFeature, d as CustomerInvoice } from './cusTypes-D8lhXGaX.js';
1
+ import { b as CustomerProduct, c as CustomerFeature, d as CustomerInvoice } from './cusTypes-Gh2wfcmj.js';
2
2
 
3
3
  type EntityExpandOption = "invoices";
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as CustomerProduct, c as CustomerFeature, d as CustomerInvoice } from './cusTypes-D8lhXGaX.mjs';
1
+ import { b as CustomerProduct, c as CustomerFeature, d as CustomerInvoice } from './cusTypes-Gh2wfcmj.mjs';
2
2
 
3
3
  type EntityExpandOption = "invoices";
4
4
 
@@ -1,5 +1,5 @@
1
- import { A as AttachParams, C as CheckParams, a as AutumnPromise, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult } from '../clientGenTypes-9ngy1q97.mjs';
2
- import { B as BillingPortalResult } from '../cusTypes-D8lhXGaX.mjs';
1
+ import { A as AttachParams, C as CheckParams, a as AutumnPromise, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult } from '../clientGenTypes-BcRfHmUS.mjs';
2
+ import { B as BillingPortalResult } from '../cusTypes-Gh2wfcmj.mjs';
3
3
  import 'zod';
4
4
  import '../error-DHbclCVh.mjs';
5
5
  import 'react';
@@ -1,5 +1,5 @@
1
- import { A as AttachParams, C as CheckParams, a as AutumnPromise, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult } from '../clientGenTypes-CxB4go6q.js';
2
- import { B as BillingPortalResult } from '../cusTypes-D8lhXGaX.js';
1
+ import { A as AttachParams, C as CheckParams, a as AutumnPromise, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult } from '../clientGenTypes-D8f8BwMo.js';
2
+ import { B as BillingPortalResult } from '../cusTypes-Gh2wfcmj.js';
3
3
  import 'zod';
4
4
  import '../error-DHbclCVh.js';
5
5
  import 'react';
@@ -1,7 +1,7 @@
1
1
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
2
- import { A as AttachParams, a as AutumnPromise, g as AttachResult, C as CheckParams, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams } from '../clientGenTypes-9ngy1q97.mjs';
3
- import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-D8lhXGaX.mjs';
4
- import { E as Entity } from '../entTypes-B-2_9hzP.mjs';
2
+ import { A as AttachParams, a as AutumnPromise, g as AttachResult, C as CheckParams, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams } from '../clientGenTypes-BcRfHmUS.mjs';
3
+ import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-Gh2wfcmj.mjs';
4
+ import { E as Entity } from '../entTypes-C_xS1VPE.mjs';
5
5
  import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.mjs';
6
6
  import { z } from 'zod';
7
7
  import { SWRConfiguration } from 'swr';
@@ -1,7 +1,7 @@
1
1
  import { A as AutumnError } from '../error-DHbclCVh.js';
2
- import { A as AttachParams, a as AutumnPromise, g as AttachResult, C as CheckParams, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams } from '../clientGenTypes-CxB4go6q.js';
3
- import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-D8lhXGaX.js';
4
- import { E as Entity } from '../entTypes-Dq2mbehl.js';
2
+ import { A as AttachParams, a as AutumnPromise, g as AttachResult, C as CheckParams, b as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams } from '../clientGenTypes-D8f8BwMo.js';
3
+ import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-Gh2wfcmj.js';
4
+ import { E as Entity } from '../entTypes-B_w6I3y-.js';
5
5
  import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.js';
6
6
  import { z } from 'zod';
7
7
  import { SWRConfiguration } from 'swr';
@@ -1,8 +1,8 @@
1
- import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, T as TrackParams } from '../clientGenTypes-9ngy1q97.mjs';
2
- import { G as GetEntityParams, E as Entity } from '../entTypes-B-2_9hzP.mjs';
1
+ import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, T as TrackParams } from '../clientGenTypes-BcRfHmUS.mjs';
2
+ import { G as GetEntityParams, E as Entity } from '../entTypes-C_xS1VPE.mjs';
3
3
  import { A as AllowedParams } from '../handleAllowed-B8TBAzfI.mjs';
4
4
  import * as swr from 'swr';
5
- import '../cusTypes-D8lhXGaX.mjs';
5
+ import '../cusTypes-Gh2wfcmj.mjs';
6
6
  import 'zod';
7
7
  import '../error-DHbclCVh.mjs';
8
8
  import 'react';
@@ -17,13 +17,13 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
17
17
  attach: (params: AttachParams) => Promise<any>;
18
18
  cancel: (params: CancelParams) => AutumnPromise<{
19
19
  customer_id: string;
20
- product_id: string;
21
20
  success: boolean;
21
+ product_id: string;
22
22
  }>;
23
23
  track: (params: TrackParams) => AutumnPromise<{
24
- customer_id: string;
25
24
  code: string;
26
25
  id: string;
26
+ customer_id: string;
27
27
  feature_id?: string | undefined;
28
28
  event_name?: string | undefined;
29
29
  }>;
@@ -1,8 +1,8 @@
1
- import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, T as TrackParams } from '../clientGenTypes-CxB4go6q.js';
2
- import { G as GetEntityParams, E as Entity } from '../entTypes-Dq2mbehl.js';
1
+ import { C as CheckParams, a as AutumnPromise, b as CheckResult, A as AttachParams, d as CancelParams, T as TrackParams } from '../clientGenTypes-D8f8BwMo.js';
2
+ import { G as GetEntityParams, E as Entity } from '../entTypes-B_w6I3y-.js';
3
3
  import { A as AllowedParams } from '../handleAllowed-B8TBAzfI.js';
4
4
  import * as swr from 'swr';
5
- import '../cusTypes-D8lhXGaX.js';
5
+ import '../cusTypes-Gh2wfcmj.js';
6
6
  import 'zod';
7
7
  import '../error-DHbclCVh.js';
8
8
  import 'react';
@@ -17,13 +17,13 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
17
17
  attach: (params: AttachParams) => Promise<any>;
18
18
  cancel: (params: CancelParams) => AutumnPromise<{
19
19
  customer_id: string;
20
- product_id: string;
21
20
  success: boolean;
21
+ product_id: string;
22
22
  }>;
23
23
  track: (params: TrackParams) => AutumnPromise<{
24
- customer_id: string;
25
24
  code: string;
26
25
  id: string;
26
+ customer_id: string;
27
27
  feature_id?: string | undefined;
28
28
  event_name?: string | undefined;
29
29
  }>;