autumn-js 0.1.16 → 0.1.17
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.
- package/dist/libraries/backend/better-auth.d.mts +52 -52
- package/dist/libraries/backend/better-auth.d.ts +52 -52
- package/dist/libraries/react/AutumnContext.d.mts +1 -1
- package/dist/libraries/react/AutumnContext.d.ts +1 -1
- package/dist/libraries/react/AutumnContext.mjs +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/BaseAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/BaseAutumnProvider.mjs +6 -6
- package/dist/libraries/react/{ReactAutumnClient-BG8_E3nb.d.ts → ReactAutumnClient-CqDsfKHI.d.ts} +1 -0
- package/dist/libraries/react/{ReactAutumnClient-gvMVYgdO.d.mts → ReactAutumnClient-DxzJiNXI.d.mts} +1 -0
- package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -1
- package/dist/libraries/react/ReactAutumnProvider.js +2 -1
- package/dist/libraries/react/ReactAutumnProvider.mjs +7 -7
- package/dist/libraries/react/{chunk-QJPZFEVW.mjs → chunk-2OHJ6PS6.mjs} +10 -10
- package/dist/libraries/react/{chunk-WT5K3J2K.mjs → chunk-2PBWI3T6.mjs} +19 -19
- package/dist/libraries/react/{chunk-UJVW3UWD.mjs → chunk-4UZ5VXK2.mjs} +5 -4
- package/dist/libraries/react/{chunk-5K2M3CQZ.mjs → chunk-65S4VY5K.mjs} +32 -32
- package/dist/libraries/react/{chunk-SBX6TYV2.mjs → chunk-AKE6UAQS.mjs} +1 -1
- package/dist/libraries/react/{chunk-M7SUFZ42.mjs → chunk-DAZBMK7R.mjs} +2 -2
- package/dist/libraries/react/{chunk-RPEGNKJH.mjs → chunk-DXHYWJOY.mjs} +3 -3
- package/dist/libraries/react/{chunk-A6E436YR.mjs → chunk-EY2AQBIO.mjs} +464 -466
- package/dist/libraries/react/{chunk-6S7MT3MM.mjs → chunk-FD42XGXU.mjs} +1 -1
- package/dist/libraries/react/{chunk-37TR2YZH.mjs → chunk-GYL7XSVZ.mjs} +2 -2
- package/dist/libraries/react/{chunk-FJX2BGGF.mjs → chunk-I24K3F47.mjs} +1 -1
- package/dist/libraries/react/{chunk-FAODWMTA.mjs → chunk-L4FS7ENO.mjs} +1 -1
- package/dist/libraries/react/{chunk-USBPNC5B.mjs → chunk-QL75Q3H6.mjs} +1 -1
- package/dist/libraries/react/{chunk-AIBWQU4K.mjs → chunk-QWWPID3I.mjs} +2 -2
- package/dist/libraries/react/{chunk-S52LXSZB.mjs → chunk-RJSVDPCH.mjs} +1 -1
- package/dist/libraries/react/{chunk-EV5RNY5U.mjs → chunk-SWSFJTEQ.mjs} +1 -1
- package/dist/libraries/react/{chunk-YCDNQZT5.mjs → chunk-VYBU4WHO.mjs} +9 -9
- package/dist/libraries/react/{chunk-NHDZWWMZ.mjs → chunk-WUEXMQIT.mjs} +6 -6
- package/dist/libraries/react/{chunk-2TQBFCWM.mjs → chunk-X6FMCHSB.mjs} +14 -14
- package/dist/libraries/react/{chunk-BXMZYHE7.mjs → chunk-YE6KQQS7.mjs} +6 -6
- package/dist/libraries/react/{chunk-KWNH6C27.mjs → chunk-YN67J64M.mjs} +17 -17
- package/dist/libraries/react/{chunk-H2QK3ZOW.mjs → chunk-ZAYIRIY2.mjs} +1 -1
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +1 -1
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +1 -1
- package/dist/libraries/react/client/ReactAutumnClient.mjs +3 -3
- package/dist/libraries/react/client/clientCompMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientCompMethods.d.ts +1 -1
- package/dist/libraries/react/client/clientCusMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientCusMethods.d.ts +1 -1
- package/dist/libraries/react/client/clientEntityMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientEntityMethods.d.ts +1 -1
- package/dist/libraries/react/client/clientGenMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientGenMethods.d.ts +1 -1
- package/dist/libraries/react/client/clientProdMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientProdMethods.d.ts +1 -1
- package/dist/libraries/react/client/clientReferralMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientReferralMethods.d.ts +1 -1
- package/dist/libraries/react/client/types/clientAttachTypes.d.mts +1 -0
- package/dist/libraries/react/client/types/clientAttachTypes.d.ts +1 -0
- package/dist/libraries/react/client/types/clientAttachTypes.js +1 -0
- package/dist/libraries/react/client/types/clientAttachTypes.mjs +1 -0
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.css +120 -141
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +71 -71
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +26 -26
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.css +120 -141
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.js +69 -69
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +26 -26
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +120 -141
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +70 -70
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +26 -26
- package/dist/libraries/react/components/ui/accordion.js +23 -23
- package/dist/libraries/react/components/ui/accordion.mjs +5 -5
- package/dist/libraries/react/components/ui/button.js +3 -3
- package/dist/libraries/react/components/ui/button.mjs +2 -2
- package/dist/libraries/react/components/ui/dialog.js +49 -49
- package/dist/libraries/react/components/ui/dialog.mjs +6 -6
- package/dist/libraries/react/components/ui/popover.js +50 -50
- package/dist/libraries/react/components/ui/popover.mjs +6 -6
- package/dist/libraries/react/components/ui/switch.js +12 -12
- package/dist/libraries/react/components/ui/switch.mjs +4 -4
- package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +1 -1
- package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +1 -1
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +1 -1
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +1 -1
- package/dist/libraries/react/hooks/useAnalytics.mjs +5 -5
- package/dist/libraries/react/hooks/useCustomer.d.mts +1 -1
- package/dist/libraries/react/hooks/useCustomer.d.ts +1 -1
- package/dist/libraries/react/hooks/useCustomer.mjs +6 -6
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +1 -1
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +1 -1
- package/dist/libraries/react/hooks/useCustomerBase.mjs +5 -5
- package/dist/libraries/react/hooks/useEntity.mjs +6 -6
- package/dist/libraries/react/hooks/useEntityBase.d.mts +1 -1
- package/dist/libraries/react/hooks/useEntityBase.d.ts +1 -1
- package/dist/libraries/react/hooks/useEntityBase.mjs +5 -5
- package/dist/libraries/react/hooks/usePaywall.mjs +5 -5
- package/dist/libraries/react/hooks/usePricingTable.mjs +5 -5
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +1 -1
- package/dist/libraries/react/hooks/useProductsBase.d.mts +1 -1
- package/dist/libraries/react/hooks/useProductsBase.d.ts +1 -1
- package/dist/libraries/react/index.d.mts +3 -1
- package/dist/libraries/react/index.d.ts +3 -1
- package/dist/libraries/react/index.js +73 -72
- package/dist/libraries/react/index.mjs +73 -72
- package/dist/next/client/NextAutumnClient.d.mts +2 -1
- package/dist/next/client/NextAutumnClient.d.ts +2 -1
- package/dist/next/client/{clientAttachTypes-traKz9UZ.d.mts → clientAttachTypes-B0BWHPDs.d.mts} +1 -0
- package/dist/next/client/{clientAttachTypes-DWFk8mOR.d.ts → clientAttachTypes-C2rh2H-X.d.ts} +1 -0
- package/dist/next/client/hooks/useAutumn.d.mts +1 -1
- package/dist/next/client/hooks/useAutumn.d.ts +1 -1
- package/dist/next/client/hooks/useCustomer.d.mts +1 -1
- package/dist/next/client/hooks/useCustomer.d.ts +1 -1
- package/dist/next/client/hooks/useEntity.d.mts +1 -1
- package/dist/next/client/hooks/useEntity.d.ts +1 -1
- package/dist/styles/global.css +120 -141
- package/package.json +1 -1
- package/dist/libraries/react/{chunk-XZ7XNWDB.mjs → chunk-2OPGTDRC.mjs} +6 -6
|
@@ -92,15 +92,14 @@ declare const autumn: (options?: {
|
|
|
92
92
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
93
93
|
body: {
|
|
94
94
|
product_id: string;
|
|
95
|
+
entity_id?: string | undefined;
|
|
95
96
|
options?: {
|
|
96
97
|
feature_id: string;
|
|
97
98
|
quantity: number;
|
|
98
99
|
}[] | undefined;
|
|
99
100
|
product_ids?: string[] | undefined;
|
|
100
|
-
entity_id?: string | undefined;
|
|
101
|
-
force_checkout?: boolean | undefined;
|
|
102
|
-
invoice?: boolean | undefined;
|
|
103
101
|
success_url?: string | undefined;
|
|
102
|
+
force_checkout?: boolean | undefined;
|
|
104
103
|
customer_data?: {
|
|
105
104
|
name?: string | null | undefined;
|
|
106
105
|
email?: string | null | undefined;
|
|
@@ -109,6 +108,7 @@ declare const autumn: (options?: {
|
|
|
109
108
|
entity_data?: any;
|
|
110
109
|
checkout_session_params?: Record<string, any> | undefined;
|
|
111
110
|
reward?: string | undefined;
|
|
111
|
+
invoice?: boolean | undefined;
|
|
112
112
|
};
|
|
113
113
|
} & {
|
|
114
114
|
method?: "POST" | undefined;
|
|
@@ -135,16 +135,15 @@ declare const autumn: (options?: {
|
|
|
135
135
|
options: {
|
|
136
136
|
method: "POST";
|
|
137
137
|
body: z.ZodObject<{
|
|
138
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
139
|
+
product_id: z.ZodString;
|
|
138
140
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
139
141
|
feature_id: z.ZodString;
|
|
140
142
|
quantity: z.ZodNumber;
|
|
141
143
|
}, z.core.$strip>>>;
|
|
142
|
-
product_id: z.ZodString;
|
|
143
144
|
product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
144
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
145
|
-
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
-
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
147
145
|
success_url: z.ZodOptional<z.ZodString>;
|
|
146
|
+
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
148
147
|
customer_data: z.ZodOptional<z.ZodObject<{
|
|
149
148
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
150
149
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -153,24 +152,25 @@ declare const autumn: (options?: {
|
|
|
153
152
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
154
153
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
155
154
|
reward: z.ZodOptional<z.ZodString>;
|
|
155
|
+
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
156
156
|
}, z.core.$strip>;
|
|
157
157
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
158
158
|
session: {
|
|
159
159
|
session: Record<string, any> & {
|
|
160
160
|
id: string;
|
|
161
|
-
token: string;
|
|
162
161
|
userId: string;
|
|
163
162
|
expiresAt: Date;
|
|
164
163
|
createdAt: Date;
|
|
165
164
|
updatedAt: Date;
|
|
165
|
+
token: string;
|
|
166
166
|
ipAddress?: string | null | undefined;
|
|
167
167
|
userAgent?: string | null | undefined;
|
|
168
168
|
};
|
|
169
169
|
user: Record<string, any> & {
|
|
170
170
|
id: string;
|
|
171
|
-
name: string;
|
|
172
|
-
emailVerified: boolean;
|
|
173
171
|
email: string;
|
|
172
|
+
emailVerified: boolean;
|
|
173
|
+
name: string;
|
|
174
174
|
createdAt: Date;
|
|
175
175
|
updatedAt: Date;
|
|
176
176
|
image?: string | null | undefined;
|
|
@@ -185,17 +185,17 @@ declare const autumn: (options?: {
|
|
|
185
185
|
attach: {
|
|
186
186
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
187
187
|
body: {
|
|
188
|
+
entity_id?: string | undefined;
|
|
189
|
+
metadata?: Record<string, string> | undefined;
|
|
190
|
+
product_id?: string | undefined;
|
|
188
191
|
options?: {
|
|
189
192
|
feature_id: string;
|
|
190
193
|
quantity: number;
|
|
191
194
|
}[] | undefined;
|
|
192
|
-
metadata?: Record<string, string> | undefined;
|
|
193
|
-
product_id?: string | undefined;
|
|
194
195
|
product_ids?: string[] | undefined;
|
|
195
|
-
|
|
196
|
-
force_checkout?: boolean | undefined;
|
|
197
|
-
invoice?: boolean | undefined;
|
|
196
|
+
free_trial?: boolean | undefined;
|
|
198
197
|
success_url?: string | undefined;
|
|
198
|
+
force_checkout?: boolean | undefined;
|
|
199
199
|
customer_data?: {
|
|
200
200
|
name?: string | null | undefined;
|
|
201
201
|
email?: string | null | undefined;
|
|
@@ -204,7 +204,7 @@ declare const autumn: (options?: {
|
|
|
204
204
|
entity_data?: any;
|
|
205
205
|
checkout_session_params?: Record<string, any> | undefined;
|
|
206
206
|
reward?: string | undefined;
|
|
207
|
-
|
|
207
|
+
invoice?: boolean | undefined;
|
|
208
208
|
};
|
|
209
209
|
} & {
|
|
210
210
|
method?: "POST" | undefined;
|
|
@@ -231,17 +231,17 @@ declare const autumn: (options?: {
|
|
|
231
231
|
options: {
|
|
232
232
|
method: "POST";
|
|
233
233
|
body: z.ZodObject<{
|
|
234
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
235
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
236
|
+
product_id: z.ZodOptional<z.ZodString>;
|
|
234
237
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
235
238
|
feature_id: z.ZodString;
|
|
236
239
|
quantity: z.ZodNumber;
|
|
237
240
|
}, z.core.$strip>>>;
|
|
238
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
239
|
-
product_id: z.ZodOptional<z.ZodString>;
|
|
240
241
|
product_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
241
|
-
|
|
242
|
-
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
243
|
-
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
+
free_trial: z.ZodOptional<z.ZodBoolean>;
|
|
244
243
|
success_url: z.ZodOptional<z.ZodString>;
|
|
244
|
+
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
245
245
|
customer_data: z.ZodOptional<z.ZodObject<{
|
|
246
246
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
247
247
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -250,25 +250,25 @@ declare const autumn: (options?: {
|
|
|
250
250
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
251
251
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
252
252
|
reward: z.ZodOptional<z.ZodString>;
|
|
253
|
-
|
|
253
|
+
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
254
254
|
}, z.core.$strip>;
|
|
255
255
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
256
256
|
session: {
|
|
257
257
|
session: Record<string, any> & {
|
|
258
258
|
id: string;
|
|
259
|
-
token: string;
|
|
260
259
|
userId: string;
|
|
261
260
|
expiresAt: Date;
|
|
262
261
|
createdAt: Date;
|
|
263
262
|
updatedAt: Date;
|
|
263
|
+
token: string;
|
|
264
264
|
ipAddress?: string | null | undefined;
|
|
265
265
|
userAgent?: string | null | undefined;
|
|
266
266
|
};
|
|
267
267
|
user: Record<string, any> & {
|
|
268
268
|
id: string;
|
|
269
|
-
name: string;
|
|
270
|
-
emailVerified: boolean;
|
|
271
269
|
email: string;
|
|
270
|
+
emailVerified: boolean;
|
|
271
|
+
name: string;
|
|
272
272
|
createdAt: Date;
|
|
273
273
|
updatedAt: Date;
|
|
274
274
|
image?: string | null | undefined;
|
|
@@ -283,15 +283,15 @@ declare const autumn: (options?: {
|
|
|
283
283
|
check: {
|
|
284
284
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
285
285
|
body: {
|
|
286
|
-
product_id?: string | undefined;
|
|
287
|
-
entity_id?: string | undefined;
|
|
288
286
|
feature_id?: string | undefined;
|
|
287
|
+
entity_id?: string | undefined;
|
|
288
|
+
required_balance?: number | undefined;
|
|
289
|
+
product_id?: string | undefined;
|
|
289
290
|
customer_data?: any;
|
|
290
291
|
entity_data?: {
|
|
291
292
|
feature_id: string;
|
|
292
293
|
name?: string | undefined;
|
|
293
294
|
} | undefined;
|
|
294
|
-
required_balance?: number | undefined;
|
|
295
295
|
send_event?: boolean | undefined;
|
|
296
296
|
with_preview?: boolean | undefined;
|
|
297
297
|
};
|
|
@@ -320,15 +320,15 @@ declare const autumn: (options?: {
|
|
|
320
320
|
options: {
|
|
321
321
|
method: "POST";
|
|
322
322
|
body: z.ZodObject<{
|
|
323
|
-
product_id: z.ZodOptional<z.ZodString>;
|
|
324
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
325
323
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
324
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
325
|
+
required_balance: z.ZodOptional<z.ZodNumber>;
|
|
326
|
+
product_id: z.ZodOptional<z.ZodString>;
|
|
326
327
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
327
328
|
entity_data: z.ZodOptional<z.ZodObject<{
|
|
328
329
|
name: z.ZodOptional<z.ZodString>;
|
|
329
330
|
feature_id: z.ZodString;
|
|
330
331
|
}, z.core.$strip>>;
|
|
331
|
-
required_balance: z.ZodOptional<z.ZodNumber>;
|
|
332
332
|
send_event: z.ZodOptional<z.ZodBoolean>;
|
|
333
333
|
with_preview: z.ZodOptional<z.ZodBoolean>;
|
|
334
334
|
}, z.core.$strip>;
|
|
@@ -336,19 +336,19 @@ declare const autumn: (options?: {
|
|
|
336
336
|
session: {
|
|
337
337
|
session: Record<string, any> & {
|
|
338
338
|
id: string;
|
|
339
|
-
token: string;
|
|
340
339
|
userId: string;
|
|
341
340
|
expiresAt: Date;
|
|
342
341
|
createdAt: Date;
|
|
343
342
|
updatedAt: Date;
|
|
343
|
+
token: string;
|
|
344
344
|
ipAddress?: string | null | undefined;
|
|
345
345
|
userAgent?: string | null | undefined;
|
|
346
346
|
};
|
|
347
347
|
user: Record<string, any> & {
|
|
348
348
|
id: string;
|
|
349
|
-
name: string;
|
|
350
|
-
emailVerified: boolean;
|
|
351
349
|
email: string;
|
|
350
|
+
emailVerified: boolean;
|
|
351
|
+
name: string;
|
|
352
352
|
createdAt: Date;
|
|
353
353
|
updatedAt: Date;
|
|
354
354
|
image?: string | null | undefined;
|
|
@@ -363,8 +363,8 @@ declare const autumn: (options?: {
|
|
|
363
363
|
track: {
|
|
364
364
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
365
365
|
body: {
|
|
366
|
-
entity_id?: string | undefined;
|
|
367
366
|
feature_id?: string | undefined;
|
|
367
|
+
entity_id?: string | undefined;
|
|
368
368
|
customer_data?: any;
|
|
369
369
|
entity_data?: any;
|
|
370
370
|
value?: number | undefined;
|
|
@@ -396,8 +396,8 @@ declare const autumn: (options?: {
|
|
|
396
396
|
options: {
|
|
397
397
|
method: "POST";
|
|
398
398
|
body: z.ZodObject<{
|
|
399
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
400
399
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
400
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
401
401
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
402
402
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
403
403
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -408,19 +408,19 @@ declare const autumn: (options?: {
|
|
|
408
408
|
session: {
|
|
409
409
|
session: Record<string, any> & {
|
|
410
410
|
id: string;
|
|
411
|
-
token: string;
|
|
412
411
|
userId: string;
|
|
413
412
|
expiresAt: Date;
|
|
414
413
|
createdAt: Date;
|
|
415
414
|
updatedAt: Date;
|
|
415
|
+
token: string;
|
|
416
416
|
ipAddress?: string | null | undefined;
|
|
417
417
|
userAgent?: string | null | undefined;
|
|
418
418
|
};
|
|
419
419
|
user: Record<string, any> & {
|
|
420
420
|
id: string;
|
|
421
|
-
name: string;
|
|
422
|
-
emailVerified: boolean;
|
|
423
421
|
email: string;
|
|
422
|
+
emailVerified: boolean;
|
|
423
|
+
name: string;
|
|
424
424
|
createdAt: Date;
|
|
425
425
|
updatedAt: Date;
|
|
426
426
|
image?: string | null | undefined;
|
|
@@ -464,27 +464,27 @@ declare const autumn: (options?: {
|
|
|
464
464
|
options: {
|
|
465
465
|
method: "POST";
|
|
466
466
|
body: z.ZodObject<{
|
|
467
|
-
product_id: z.ZodString;
|
|
468
467
|
entity_id: z.ZodOptional<z.ZodString>;
|
|
468
|
+
product_id: z.ZodString;
|
|
469
469
|
cancel_immediately: z.ZodOptional<z.ZodBoolean>;
|
|
470
470
|
}, z.core.$strip>;
|
|
471
471
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
472
472
|
session: {
|
|
473
473
|
session: Record<string, any> & {
|
|
474
474
|
id: string;
|
|
475
|
-
token: string;
|
|
476
475
|
userId: string;
|
|
477
476
|
expiresAt: Date;
|
|
478
477
|
createdAt: Date;
|
|
479
478
|
updatedAt: Date;
|
|
479
|
+
token: string;
|
|
480
480
|
ipAddress?: string | null | undefined;
|
|
481
481
|
userAgent?: string | null | undefined;
|
|
482
482
|
};
|
|
483
483
|
user: Record<string, any> & {
|
|
484
484
|
id: string;
|
|
485
|
-
name: string;
|
|
486
|
-
emailVerified: boolean;
|
|
487
485
|
email: string;
|
|
486
|
+
emailVerified: boolean;
|
|
487
|
+
name: string;
|
|
488
488
|
createdAt: Date;
|
|
489
489
|
updatedAt: Date;
|
|
490
490
|
image?: string | null | undefined;
|
|
@@ -532,19 +532,19 @@ declare const autumn: (options?: {
|
|
|
532
532
|
session: {
|
|
533
533
|
session: Record<string, any> & {
|
|
534
534
|
id: string;
|
|
535
|
-
token: string;
|
|
536
535
|
userId: string;
|
|
537
536
|
expiresAt: Date;
|
|
538
537
|
createdAt: Date;
|
|
539
538
|
updatedAt: Date;
|
|
539
|
+
token: string;
|
|
540
540
|
ipAddress?: string | null | undefined;
|
|
541
541
|
userAgent?: string | null | undefined;
|
|
542
542
|
};
|
|
543
543
|
user: Record<string, any> & {
|
|
544
544
|
id: string;
|
|
545
|
-
name: string;
|
|
546
|
-
emailVerified: boolean;
|
|
547
545
|
email: string;
|
|
546
|
+
emailVerified: boolean;
|
|
547
|
+
name: string;
|
|
548
548
|
createdAt: Date;
|
|
549
549
|
updatedAt: Date;
|
|
550
550
|
image?: string | null | undefined;
|
|
@@ -592,19 +592,19 @@ declare const autumn: (options?: {
|
|
|
592
592
|
session: {
|
|
593
593
|
session: Record<string, any> & {
|
|
594
594
|
id: string;
|
|
595
|
-
token: string;
|
|
596
595
|
userId: string;
|
|
597
596
|
expiresAt: Date;
|
|
598
597
|
createdAt: Date;
|
|
599
598
|
updatedAt: Date;
|
|
599
|
+
token: string;
|
|
600
600
|
ipAddress?: string | null | undefined;
|
|
601
601
|
userAgent?: string | null | undefined;
|
|
602
602
|
};
|
|
603
603
|
user: Record<string, any> & {
|
|
604
604
|
id: string;
|
|
605
|
-
name: string;
|
|
606
|
-
emailVerified: boolean;
|
|
607
605
|
email: string;
|
|
606
|
+
emailVerified: boolean;
|
|
607
|
+
name: string;
|
|
608
608
|
createdAt: Date;
|
|
609
609
|
updatedAt: Date;
|
|
610
610
|
image?: string | null | undefined;
|
|
@@ -655,19 +655,19 @@ declare const autumn: (options?: {
|
|
|
655
655
|
session: {
|
|
656
656
|
session: Record<string, any> & {
|
|
657
657
|
id: string;
|
|
658
|
-
token: string;
|
|
659
658
|
userId: string;
|
|
660
659
|
expiresAt: Date;
|
|
661
660
|
createdAt: Date;
|
|
662
661
|
updatedAt: Date;
|
|
662
|
+
token: string;
|
|
663
663
|
ipAddress?: string | null | undefined;
|
|
664
664
|
userAgent?: string | null | undefined;
|
|
665
665
|
};
|
|
666
666
|
user: Record<string, any> & {
|
|
667
667
|
id: string;
|
|
668
|
-
name: string;
|
|
669
|
-
emailVerified: boolean;
|
|
670
668
|
email: string;
|
|
669
|
+
emailVerified: boolean;
|
|
670
|
+
name: string;
|
|
671
671
|
createdAt: Date;
|
|
672
672
|
updatedAt: Date;
|
|
673
673
|
image?: string | null | undefined;
|