autumn-js 0.1.7 → 0.1.8
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 +33 -33
- package/dist/libraries/backend/better-auth.d.ts +33 -33
- package/dist/libraries/backend/better-auth.mjs +3 -3
- package/dist/libraries/backend/convex.mjs +3 -3
- package/dist/libraries/backend/elysia.mjs +3 -3
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/express.mjs +3 -3
- package/dist/libraries/backend/fastify.mjs +3 -3
- package/dist/libraries/backend/hono.mjs +3 -3
- package/dist/libraries/backend/index.d.mts +1 -1
- package/dist/libraries/backend/index.d.ts +1 -1
- package/dist/libraries/backend/index.mjs +3 -3
- package/dist/libraries/backend/next.mjs +3 -3
- package/dist/libraries/backend/react-router.mjs +3 -3
- package/dist/libraries/backend/remix_dep.mjs +3 -3
- package/dist/libraries/backend/routes/backendRouter.mjs +3 -3
- package/dist/libraries/backend/supabase.mjs +3 -3
- package/dist/libraries/backend/tanstack.mjs +3 -3
- package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
- package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
- package/dist/libraries/react/AutumnContext.mjs +4 -4
- package/dist/libraries/react/BaseAutumnProvider.js +5 -1
- package/dist/libraries/react/BaseAutumnProvider.mjs +7 -7
- package/dist/libraries/react/ReactAutumnProvider.js +5 -1
- package/dist/libraries/react/ReactAutumnProvider.mjs +8 -8
- package/dist/libraries/react/{chunk-OTZ65PCT.mjs → chunk-2TQBFCWM.mjs} +4 -4
- package/dist/libraries/react/{chunk-FEISQQNM.mjs → chunk-5K2M3CQZ.mjs} +1 -1
- package/dist/libraries/react/{chunk-ZJBEC254.mjs → chunk-5OJIHAX7.mjs} +5 -1
- package/dist/libraries/react/{chunk-FMRBH4CP.mjs → chunk-6I7KWRND.mjs} +1 -1
- package/dist/libraries/react/{chunk-ULIUD6YP.mjs → chunk-A5YPS4K4.mjs} +2 -2
- package/dist/libraries/react/{chunk-FJWZPMWU.mjs → chunk-BXMZYHE7.mjs} +3 -3
- package/dist/libraries/react/{chunk-QQKJE2ND.mjs → chunk-HUKIJ7DB.mjs} +2 -2
- package/dist/libraries/react/{chunk-SZJOMZTC.mjs → chunk-I6BTXKGK.mjs} +1 -1
- package/dist/libraries/react/{chunk-SFGXTDMX.mjs → chunk-JK2TFCOG.mjs} +2 -2
- package/dist/libraries/react/{chunk-KUS3X33V.mjs → chunk-M7SUFZ42.mjs} +1 -1
- package/dist/libraries/react/{chunk-YWQTQ72B.mjs → chunk-NHDZWWMZ.mjs} +2 -2
- package/dist/libraries/react/{chunk-KYZ3DYMI.mjs → chunk-OUWRRLOI.mjs} +443 -440
- package/dist/libraries/react/{chunk-JFTZRU2U.mjs → chunk-T3B4TVD4.mjs} +1 -1
- package/dist/libraries/react/{chunk-ECOBNPRU.mjs → chunk-TM6QWQLU.mjs} +3 -3
- package/dist/libraries/react/{chunk-GWVZB5GK.mjs → chunk-UOJ6NIVD.mjs} +2 -2
- package/dist/libraries/react/{chunk-HMZZIUCF.mjs → chunk-WEKDMT3Y.mjs} +1 -1
- package/dist/libraries/react/{chunk-56PEGK2Z.mjs → chunk-WH5MYLSM.mjs} +1 -1
- package/dist/libraries/react/{chunk-I2A7PK2L.mjs → chunk-WT5K3J2K.mjs} +17 -17
- package/dist/libraries/react/{chunk-JGDTNJTR.mjs → chunk-YCDNQZT5.mjs} +2 -2
- package/dist/libraries/react/client/ReactAutumnClient.mjs +3 -3
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +8 -3
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +26 -26
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +26 -26
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +8 -3
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +26 -26
- package/dist/libraries/react/components/ui/accordion.mjs +3 -3
- package/dist/libraries/react/components/ui/button.d.mts +1 -1
- package/dist/libraries/react/components/ui/button.d.ts +1 -1
- package/dist/libraries/react/components/ui/dialog.mjs +4 -4
- package/dist/libraries/react/components/ui/popover.mjs +5 -5
- package/dist/libraries/react/components/ui/switch.mjs +3 -3
- package/dist/libraries/react/hooks/helpers/useAutumnBase.js +5 -1
- package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +1 -1
- package/dist/libraries/react/hooks/useAnalytics.mjs +5 -5
- package/dist/libraries/react/hooks/useCustomer.js +5 -1
- package/dist/libraries/react/hooks/useCustomer.mjs +7 -7
- package/dist/libraries/react/hooks/useCustomerBase.js +5 -1
- package/dist/libraries/react/hooks/useCustomerBase.mjs +6 -6
- package/dist/libraries/react/hooks/useEntity.d.mts +2 -2
- package/dist/libraries/react/hooks/useEntity.d.ts +2 -2
- package/dist/libraries/react/hooks/useEntity.js +5 -1
- package/dist/libraries/react/hooks/useEntity.mjs +7 -7
- package/dist/libraries/react/hooks/useEntityBase.d.mts +2 -2
- package/dist/libraries/react/hooks/useEntityBase.d.ts +2 -2
- package/dist/libraries/react/hooks/useEntityBase.js +5 -1
- package/dist/libraries/react/hooks/useEntityBase.mjs +6 -6
- package/dist/libraries/react/hooks/usePaywall.mjs +5 -5
- package/dist/libraries/react/hooks/usePricingTable.mjs +5 -5
- package/dist/libraries/react/index.js +8 -3
- package/dist/libraries/react/index.mjs +8 -3
- package/dist/next/client/NextAutumnClient.d.mts +20 -20
- package/dist/next/client/NextAutumnClient.d.ts +20 -20
- package/dist/next/client/NextAutumnProvider.d.mts +2 -2
- package/dist/next/client/NextAutumnProvider.d.ts +2 -2
- package/dist/next/client/{attachTypes-EvdK0fPK.d.mts → attachTypes-DZFtFEmv.d.mts} +7 -7
- package/dist/next/client/{attachTypes-DKlQexnQ.d.ts → attachTypes-DxJ0LCjT.d.ts} +7 -7
- package/dist/next/client/{clientAttachTypes-CGPjsdPk.d.ts → clientAttachTypes-BXtfXB4v.d.ts} +29 -29
- package/dist/next/client/{clientAttachTypes-CZFjz8Rq.d.mts → clientAttachTypes-qsdoMt_B.d.mts} +29 -29
- package/dist/next/client/clientUtils.d.mts +3 -3
- package/dist/next/client/clientUtils.d.ts +3 -3
- package/dist/next/client/{cusTypes-DEURYNg4.d.ts → cusTypes-BHYpk8bK.d.ts} +7 -7
- package/dist/next/client/{cusTypes-y5wEmx07.d.mts → cusTypes-Q54uLNO5.d.mts} +7 -7
- package/dist/next/client/{entTypes-KRxjcMFv.d.mts → entTypes-CHHBdhBK.d.mts} +1 -1
- package/dist/next/client/{entTypes-CRFgWhOr.d.ts → entTypes-vjIG3B1G.d.ts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +5 -5
- package/dist/next/client/hooks/useAutumn.d.ts +5 -5
- package/dist/next/client/hooks/useCustomer.d.mts +5 -5
- package/dist/next/client/hooks/useCustomer.d.ts +5 -5
- package/dist/next/client/hooks/useEntity.d.mts +6 -6
- package/dist/next/client/hooks/useEntity.d.ts +6 -6
- package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
- package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
- package/dist/next/client/types.d.mts +3 -3
- package/dist/next/client/types.d.ts +3 -3
- package/dist/next/server/auth/withNextAuth.d.mts +1 -1
- package/dist/next/server/auth/withNextAuth.d.ts +1 -1
- package/dist/next/server/componentActions.d.mts +1 -1
- package/dist/next/server/componentActions.d.ts +1 -1
- package/dist/next/server/cusActions.d.mts +17 -17
- package/dist/next/server/cusActions.d.ts +17 -17
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/package.json +1 -1
- package/dist/libraries/backend/{chunk-3OVRYTZX.mjs → chunk-BRZHNRU5.mjs} +6 -6
- package/dist/libraries/backend/{referralTypes-B50JL4PY.d.mts → referralTypes-DyuV6oJo.d.mts} +43 -43
- package/dist/libraries/backend/{referralTypes-dW2HaxKV.d.ts → referralTypes-zcdPSX-p.d.ts} +43 -43
- package/dist/libraries/react/{chunk-HIC6P67K.mjs → chunk-IDSAD3KF.mjs} +6 -6
- package/dist/libraries/react/{chunk-7TYAAD2T.mjs → chunk-KWNH6C27.mjs} +11 -11
- package/dist/next/client/{prodTypes-DzTLP57C.d.mts → prodTypes-CxvB1YY3.d.mts} +8 -8
- package/dist/next/client/{prodTypes-DzTLP57C.d.ts → prodTypes-CxvB1YY3.d.ts} +8 -8
- package/dist/next/server/{cusTypes-CwopPHB0.d.ts → cusTypes-DgoOZMIt.d.mts} +8 -8
- package/dist/next/server/{cusTypes-CwopPHB0.d.mts → cusTypes-DgoOZMIt.d.ts} +8 -8
|
@@ -10,8 +10,8 @@ declare const autumn: (options?: {
|
|
|
10
10
|
createCustomer: {
|
|
11
11
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
12
12
|
body: {
|
|
13
|
-
errorOnNotFound?: boolean | undefined;
|
|
14
13
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
14
|
+
errorOnNotFound?: boolean | undefined;
|
|
15
15
|
};
|
|
16
16
|
} & {
|
|
17
17
|
method?: "POST" | undefined;
|
|
@@ -42,11 +42,11 @@ declare const autumn: (options?: {
|
|
|
42
42
|
errorOnNotFound: z.ZodOptional<z.ZodBoolean>;
|
|
43
43
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
errorOnNotFound?: boolean | undefined;
|
|
46
45
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
47
|
-
}, {
|
|
48
46
|
errorOnNotFound?: boolean | undefined;
|
|
47
|
+
}, {
|
|
49
48
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
49
|
+
errorOnNotFound?: boolean | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
metadata: {
|
|
52
52
|
isAction: boolean;
|
|
@@ -91,11 +91,11 @@ declare const autumn: (options?: {
|
|
|
91
91
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
92
92
|
body: {
|
|
93
93
|
product_id: string;
|
|
94
|
+
entity_id?: string | undefined;
|
|
94
95
|
options?: {
|
|
95
96
|
feature_id: string;
|
|
96
97
|
quantity: number;
|
|
97
98
|
}[] | undefined;
|
|
98
|
-
entity_id?: string | undefined;
|
|
99
99
|
success_url?: string | undefined;
|
|
100
100
|
customer_data?: {
|
|
101
101
|
name?: string | null | undefined;
|
|
@@ -163,11 +163,11 @@ declare const autumn: (options?: {
|
|
|
163
163
|
reward: z.ZodOptional<z.ZodString>;
|
|
164
164
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
165
165
|
product_id: string;
|
|
166
|
+
entity_id?: string | undefined;
|
|
166
167
|
options?: {
|
|
167
168
|
feature_id: string;
|
|
168
169
|
quantity: number;
|
|
169
170
|
}[] | undefined;
|
|
170
|
-
entity_id?: string | undefined;
|
|
171
171
|
success_url?: string | undefined;
|
|
172
172
|
customer_data?: {
|
|
173
173
|
name?: string | null | undefined;
|
|
@@ -179,11 +179,11 @@ declare const autumn: (options?: {
|
|
|
179
179
|
reward?: string | undefined;
|
|
180
180
|
}, {
|
|
181
181
|
product_id: string;
|
|
182
|
+
entity_id?: string | undefined;
|
|
182
183
|
options?: {
|
|
183
184
|
feature_id: string;
|
|
184
185
|
quantity: number;
|
|
185
186
|
}[] | undefined;
|
|
186
|
-
entity_id?: string | undefined;
|
|
187
187
|
success_url?: string | undefined;
|
|
188
188
|
customer_data?: {
|
|
189
189
|
name?: string | null | undefined;
|
|
@@ -225,14 +225,17 @@ declare const autumn: (options?: {
|
|
|
225
225
|
attach: {
|
|
226
226
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
227
227
|
body: {
|
|
228
|
+
entity_id?: string | undefined;
|
|
228
229
|
options?: {
|
|
229
230
|
feature_id: string;
|
|
230
231
|
quantity: number;
|
|
231
232
|
}[] | undefined;
|
|
232
233
|
metadata?: Record<string, string> | undefined;
|
|
233
234
|
product_id?: string | undefined;
|
|
234
|
-
|
|
235
|
+
product_ids?: string[] | undefined;
|
|
236
|
+
free_trial?: boolean | undefined;
|
|
235
237
|
success_url?: string | undefined;
|
|
238
|
+
force_checkout?: boolean | undefined;
|
|
236
239
|
customer_data?: {
|
|
237
240
|
name?: string | null | undefined;
|
|
238
241
|
email?: string | null | undefined;
|
|
@@ -241,9 +244,6 @@ declare const autumn: (options?: {
|
|
|
241
244
|
entity_data?: any;
|
|
242
245
|
checkout_session_params?: Record<string, any> | undefined;
|
|
243
246
|
reward?: string | undefined;
|
|
244
|
-
product_ids?: string[] | undefined;
|
|
245
|
-
free_trial?: boolean | undefined;
|
|
246
|
-
force_checkout?: boolean | undefined;
|
|
247
247
|
};
|
|
248
248
|
} & {
|
|
249
249
|
method?: "POST" | undefined;
|
|
@@ -305,14 +305,17 @@ declare const autumn: (options?: {
|
|
|
305
305
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
306
306
|
reward: z.ZodOptional<z.ZodString>;
|
|
307
307
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
308
|
+
entity_id?: string | undefined;
|
|
308
309
|
options?: {
|
|
309
310
|
feature_id: string;
|
|
310
311
|
quantity: number;
|
|
311
312
|
}[] | undefined;
|
|
312
313
|
metadata?: Record<string, string> | undefined;
|
|
313
314
|
product_id?: string | undefined;
|
|
314
|
-
|
|
315
|
+
product_ids?: string[] | undefined;
|
|
316
|
+
free_trial?: boolean | undefined;
|
|
315
317
|
success_url?: string | undefined;
|
|
318
|
+
force_checkout?: boolean | undefined;
|
|
316
319
|
customer_data?: {
|
|
317
320
|
name?: string | null | undefined;
|
|
318
321
|
email?: string | null | undefined;
|
|
@@ -321,18 +324,18 @@ declare const autumn: (options?: {
|
|
|
321
324
|
entity_data?: any;
|
|
322
325
|
checkout_session_params?: Record<string, any> | undefined;
|
|
323
326
|
reward?: string | undefined;
|
|
324
|
-
product_ids?: string[] | undefined;
|
|
325
|
-
free_trial?: boolean | undefined;
|
|
326
|
-
force_checkout?: boolean | undefined;
|
|
327
327
|
}, {
|
|
328
|
+
entity_id?: string | undefined;
|
|
328
329
|
options?: {
|
|
329
330
|
feature_id: string;
|
|
330
331
|
quantity: number;
|
|
331
332
|
}[] | undefined;
|
|
332
333
|
metadata?: Record<string, string> | undefined;
|
|
333
334
|
product_id?: string | undefined;
|
|
334
|
-
|
|
335
|
+
product_ids?: string[] | undefined;
|
|
336
|
+
free_trial?: boolean | undefined;
|
|
335
337
|
success_url?: string | undefined;
|
|
338
|
+
force_checkout?: boolean | undefined;
|
|
336
339
|
customer_data?: {
|
|
337
340
|
name?: string | null | undefined;
|
|
338
341
|
email?: string | null | undefined;
|
|
@@ -341,9 +344,6 @@ declare const autumn: (options?: {
|
|
|
341
344
|
entity_data?: any;
|
|
342
345
|
checkout_session_params?: Record<string, any> | undefined;
|
|
343
346
|
reward?: string | undefined;
|
|
344
|
-
product_ids?: string[] | undefined;
|
|
345
|
-
free_trial?: boolean | undefined;
|
|
346
|
-
force_checkout?: boolean | undefined;
|
|
347
347
|
}>;
|
|
348
348
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
349
349
|
session: {
|
|
@@ -376,15 +376,15 @@ declare const autumn: (options?: {
|
|
|
376
376
|
check: {
|
|
377
377
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
378
378
|
body: {
|
|
379
|
-
product_id?: string | undefined;
|
|
380
|
-
entity_id?: string | undefined;
|
|
381
379
|
feature_id?: string | undefined;
|
|
380
|
+
entity_id?: string | undefined;
|
|
381
|
+
required_balance?: number | undefined;
|
|
382
|
+
product_id?: string | undefined;
|
|
382
383
|
customer_data?: any;
|
|
383
384
|
entity_data?: {
|
|
384
385
|
feature_id: string;
|
|
385
386
|
name?: string | undefined;
|
|
386
387
|
} | undefined;
|
|
387
|
-
required_balance?: number | undefined;
|
|
388
388
|
send_event?: boolean | undefined;
|
|
389
389
|
with_preview?: boolean | undefined;
|
|
390
390
|
};
|
|
@@ -432,27 +432,27 @@ declare const autumn: (options?: {
|
|
|
432
432
|
name?: string | undefined;
|
|
433
433
|
}>>;
|
|
434
434
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
435
|
-
product_id?: string | undefined;
|
|
436
|
-
entity_id?: string | undefined;
|
|
437
435
|
feature_id?: string | undefined;
|
|
436
|
+
entity_id?: string | undefined;
|
|
437
|
+
required_balance?: number | undefined;
|
|
438
|
+
product_id?: string | undefined;
|
|
438
439
|
customer_data?: any;
|
|
439
440
|
entity_data?: {
|
|
440
441
|
feature_id: string;
|
|
441
442
|
name?: string | undefined;
|
|
442
443
|
} | undefined;
|
|
443
|
-
required_balance?: number | undefined;
|
|
444
444
|
send_event?: boolean | undefined;
|
|
445
445
|
with_preview?: boolean | undefined;
|
|
446
446
|
}, {
|
|
447
|
-
product_id?: string | undefined;
|
|
448
|
-
entity_id?: string | undefined;
|
|
449
447
|
feature_id?: string | undefined;
|
|
448
|
+
entity_id?: string | undefined;
|
|
449
|
+
required_balance?: number | undefined;
|
|
450
|
+
product_id?: string | undefined;
|
|
450
451
|
customer_data?: any;
|
|
451
452
|
entity_data?: {
|
|
452
453
|
feature_id: string;
|
|
453
454
|
name?: string | undefined;
|
|
454
455
|
} | undefined;
|
|
455
|
-
required_balance?: number | undefined;
|
|
456
456
|
send_event?: boolean | undefined;
|
|
457
457
|
with_preview?: boolean | undefined;
|
|
458
458
|
}>;
|
|
@@ -487,9 +487,9 @@ declare const autumn: (options?: {
|
|
|
487
487
|
track: {
|
|
488
488
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
489
489
|
body: {
|
|
490
|
-
value?: number | undefined;
|
|
491
|
-
entity_id?: string | undefined;
|
|
492
490
|
feature_id?: string | undefined;
|
|
491
|
+
entity_id?: string | undefined;
|
|
492
|
+
value?: number | undefined;
|
|
493
493
|
customer_data?: any;
|
|
494
494
|
entity_data?: any;
|
|
495
495
|
event_name?: string | undefined;
|
|
@@ -529,17 +529,17 @@ declare const autumn: (options?: {
|
|
|
529
529
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
530
530
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
531
531
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
532
|
-
value?: number | undefined;
|
|
533
|
-
entity_id?: string | undefined;
|
|
534
532
|
feature_id?: string | undefined;
|
|
533
|
+
entity_id?: string | undefined;
|
|
534
|
+
value?: number | undefined;
|
|
535
535
|
customer_data?: any;
|
|
536
536
|
entity_data?: any;
|
|
537
537
|
event_name?: string | undefined;
|
|
538
538
|
idempotency_key?: string | undefined;
|
|
539
539
|
}, {
|
|
540
|
-
value?: number | undefined;
|
|
541
|
-
entity_id?: string | undefined;
|
|
542
540
|
feature_id?: string | undefined;
|
|
541
|
+
entity_id?: string | undefined;
|
|
542
|
+
value?: number | undefined;
|
|
543
543
|
customer_data?: any;
|
|
544
544
|
entity_data?: any;
|
|
545
545
|
event_name?: string | undefined;
|
|
@@ -10,8 +10,8 @@ declare const autumn: (options?: {
|
|
|
10
10
|
createCustomer: {
|
|
11
11
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
12
12
|
body: {
|
|
13
|
-
errorOnNotFound?: boolean | undefined;
|
|
14
13
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
14
|
+
errorOnNotFound?: boolean | undefined;
|
|
15
15
|
};
|
|
16
16
|
} & {
|
|
17
17
|
method?: "POST" | undefined;
|
|
@@ -42,11 +42,11 @@ declare const autumn: (options?: {
|
|
|
42
42
|
errorOnNotFound: z.ZodOptional<z.ZodBoolean>;
|
|
43
43
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
errorOnNotFound?: boolean | undefined;
|
|
46
45
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
47
|
-
}, {
|
|
48
46
|
errorOnNotFound?: boolean | undefined;
|
|
47
|
+
}, {
|
|
49
48
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
49
|
+
errorOnNotFound?: boolean | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
metadata: {
|
|
52
52
|
isAction: boolean;
|
|
@@ -91,11 +91,11 @@ declare const autumn: (options?: {
|
|
|
91
91
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
92
92
|
body: {
|
|
93
93
|
product_id: string;
|
|
94
|
+
entity_id?: string | undefined;
|
|
94
95
|
options?: {
|
|
95
96
|
feature_id: string;
|
|
96
97
|
quantity: number;
|
|
97
98
|
}[] | undefined;
|
|
98
|
-
entity_id?: string | undefined;
|
|
99
99
|
success_url?: string | undefined;
|
|
100
100
|
customer_data?: {
|
|
101
101
|
name?: string | null | undefined;
|
|
@@ -163,11 +163,11 @@ declare const autumn: (options?: {
|
|
|
163
163
|
reward: z.ZodOptional<z.ZodString>;
|
|
164
164
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
165
165
|
product_id: string;
|
|
166
|
+
entity_id?: string | undefined;
|
|
166
167
|
options?: {
|
|
167
168
|
feature_id: string;
|
|
168
169
|
quantity: number;
|
|
169
170
|
}[] | undefined;
|
|
170
|
-
entity_id?: string | undefined;
|
|
171
171
|
success_url?: string | undefined;
|
|
172
172
|
customer_data?: {
|
|
173
173
|
name?: string | null | undefined;
|
|
@@ -179,11 +179,11 @@ declare const autumn: (options?: {
|
|
|
179
179
|
reward?: string | undefined;
|
|
180
180
|
}, {
|
|
181
181
|
product_id: string;
|
|
182
|
+
entity_id?: string | undefined;
|
|
182
183
|
options?: {
|
|
183
184
|
feature_id: string;
|
|
184
185
|
quantity: number;
|
|
185
186
|
}[] | undefined;
|
|
186
|
-
entity_id?: string | undefined;
|
|
187
187
|
success_url?: string | undefined;
|
|
188
188
|
customer_data?: {
|
|
189
189
|
name?: string | null | undefined;
|
|
@@ -225,14 +225,17 @@ declare const autumn: (options?: {
|
|
|
225
225
|
attach: {
|
|
226
226
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
227
227
|
body: {
|
|
228
|
+
entity_id?: string | undefined;
|
|
228
229
|
options?: {
|
|
229
230
|
feature_id: string;
|
|
230
231
|
quantity: number;
|
|
231
232
|
}[] | undefined;
|
|
232
233
|
metadata?: Record<string, string> | undefined;
|
|
233
234
|
product_id?: string | undefined;
|
|
234
|
-
|
|
235
|
+
product_ids?: string[] | undefined;
|
|
236
|
+
free_trial?: boolean | undefined;
|
|
235
237
|
success_url?: string | undefined;
|
|
238
|
+
force_checkout?: boolean | undefined;
|
|
236
239
|
customer_data?: {
|
|
237
240
|
name?: string | null | undefined;
|
|
238
241
|
email?: string | null | undefined;
|
|
@@ -241,9 +244,6 @@ declare const autumn: (options?: {
|
|
|
241
244
|
entity_data?: any;
|
|
242
245
|
checkout_session_params?: Record<string, any> | undefined;
|
|
243
246
|
reward?: string | undefined;
|
|
244
|
-
product_ids?: string[] | undefined;
|
|
245
|
-
free_trial?: boolean | undefined;
|
|
246
|
-
force_checkout?: boolean | undefined;
|
|
247
247
|
};
|
|
248
248
|
} & {
|
|
249
249
|
method?: "POST" | undefined;
|
|
@@ -305,14 +305,17 @@ declare const autumn: (options?: {
|
|
|
305
305
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
306
306
|
reward: z.ZodOptional<z.ZodString>;
|
|
307
307
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
308
|
+
entity_id?: string | undefined;
|
|
308
309
|
options?: {
|
|
309
310
|
feature_id: string;
|
|
310
311
|
quantity: number;
|
|
311
312
|
}[] | undefined;
|
|
312
313
|
metadata?: Record<string, string> | undefined;
|
|
313
314
|
product_id?: string | undefined;
|
|
314
|
-
|
|
315
|
+
product_ids?: string[] | undefined;
|
|
316
|
+
free_trial?: boolean | undefined;
|
|
315
317
|
success_url?: string | undefined;
|
|
318
|
+
force_checkout?: boolean | undefined;
|
|
316
319
|
customer_data?: {
|
|
317
320
|
name?: string | null | undefined;
|
|
318
321
|
email?: string | null | undefined;
|
|
@@ -321,18 +324,18 @@ declare const autumn: (options?: {
|
|
|
321
324
|
entity_data?: any;
|
|
322
325
|
checkout_session_params?: Record<string, any> | undefined;
|
|
323
326
|
reward?: string | undefined;
|
|
324
|
-
product_ids?: string[] | undefined;
|
|
325
|
-
free_trial?: boolean | undefined;
|
|
326
|
-
force_checkout?: boolean | undefined;
|
|
327
327
|
}, {
|
|
328
|
+
entity_id?: string | undefined;
|
|
328
329
|
options?: {
|
|
329
330
|
feature_id: string;
|
|
330
331
|
quantity: number;
|
|
331
332
|
}[] | undefined;
|
|
332
333
|
metadata?: Record<string, string> | undefined;
|
|
333
334
|
product_id?: string | undefined;
|
|
334
|
-
|
|
335
|
+
product_ids?: string[] | undefined;
|
|
336
|
+
free_trial?: boolean | undefined;
|
|
335
337
|
success_url?: string | undefined;
|
|
338
|
+
force_checkout?: boolean | undefined;
|
|
336
339
|
customer_data?: {
|
|
337
340
|
name?: string | null | undefined;
|
|
338
341
|
email?: string | null | undefined;
|
|
@@ -341,9 +344,6 @@ declare const autumn: (options?: {
|
|
|
341
344
|
entity_data?: any;
|
|
342
345
|
checkout_session_params?: Record<string, any> | undefined;
|
|
343
346
|
reward?: string | undefined;
|
|
344
|
-
product_ids?: string[] | undefined;
|
|
345
|
-
free_trial?: boolean | undefined;
|
|
346
|
-
force_checkout?: boolean | undefined;
|
|
347
347
|
}>;
|
|
348
348
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
349
349
|
session: {
|
|
@@ -376,15 +376,15 @@ declare const autumn: (options?: {
|
|
|
376
376
|
check: {
|
|
377
377
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
378
378
|
body: {
|
|
379
|
-
product_id?: string | undefined;
|
|
380
|
-
entity_id?: string | undefined;
|
|
381
379
|
feature_id?: string | undefined;
|
|
380
|
+
entity_id?: string | undefined;
|
|
381
|
+
required_balance?: number | undefined;
|
|
382
|
+
product_id?: string | undefined;
|
|
382
383
|
customer_data?: any;
|
|
383
384
|
entity_data?: {
|
|
384
385
|
feature_id: string;
|
|
385
386
|
name?: string | undefined;
|
|
386
387
|
} | undefined;
|
|
387
|
-
required_balance?: number | undefined;
|
|
388
388
|
send_event?: boolean | undefined;
|
|
389
389
|
with_preview?: boolean | undefined;
|
|
390
390
|
};
|
|
@@ -432,27 +432,27 @@ declare const autumn: (options?: {
|
|
|
432
432
|
name?: string | undefined;
|
|
433
433
|
}>>;
|
|
434
434
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
435
|
-
product_id?: string | undefined;
|
|
436
|
-
entity_id?: string | undefined;
|
|
437
435
|
feature_id?: string | undefined;
|
|
436
|
+
entity_id?: string | undefined;
|
|
437
|
+
required_balance?: number | undefined;
|
|
438
|
+
product_id?: string | undefined;
|
|
438
439
|
customer_data?: any;
|
|
439
440
|
entity_data?: {
|
|
440
441
|
feature_id: string;
|
|
441
442
|
name?: string | undefined;
|
|
442
443
|
} | undefined;
|
|
443
|
-
required_balance?: number | undefined;
|
|
444
444
|
send_event?: boolean | undefined;
|
|
445
445
|
with_preview?: boolean | undefined;
|
|
446
446
|
}, {
|
|
447
|
-
product_id?: string | undefined;
|
|
448
|
-
entity_id?: string | undefined;
|
|
449
447
|
feature_id?: string | undefined;
|
|
448
|
+
entity_id?: string | undefined;
|
|
449
|
+
required_balance?: number | undefined;
|
|
450
|
+
product_id?: string | undefined;
|
|
450
451
|
customer_data?: any;
|
|
451
452
|
entity_data?: {
|
|
452
453
|
feature_id: string;
|
|
453
454
|
name?: string | undefined;
|
|
454
455
|
} | undefined;
|
|
455
|
-
required_balance?: number | undefined;
|
|
456
456
|
send_event?: boolean | undefined;
|
|
457
457
|
with_preview?: boolean | undefined;
|
|
458
458
|
}>;
|
|
@@ -487,9 +487,9 @@ declare const autumn: (options?: {
|
|
|
487
487
|
track: {
|
|
488
488
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
489
489
|
body: {
|
|
490
|
-
value?: number | undefined;
|
|
491
|
-
entity_id?: string | undefined;
|
|
492
490
|
feature_id?: string | undefined;
|
|
491
|
+
entity_id?: string | undefined;
|
|
492
|
+
value?: number | undefined;
|
|
493
493
|
customer_data?: any;
|
|
494
494
|
entity_data?: any;
|
|
495
495
|
event_name?: string | undefined;
|
|
@@ -529,17 +529,17 @@ declare const autumn: (options?: {
|
|
|
529
529
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
530
530
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
531
531
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
532
|
-
value?: number | undefined;
|
|
533
|
-
entity_id?: string | undefined;
|
|
534
532
|
feature_id?: string | undefined;
|
|
533
|
+
entity_id?: string | undefined;
|
|
534
|
+
value?: number | undefined;
|
|
535
535
|
customer_data?: any;
|
|
536
536
|
entity_data?: any;
|
|
537
537
|
event_name?: string | undefined;
|
|
538
538
|
idempotency_key?: string | undefined;
|
|
539
539
|
}, {
|
|
540
|
-
value?: number | undefined;
|
|
541
|
-
entity_id?: string | undefined;
|
|
542
540
|
feature_id?: string | undefined;
|
|
541
|
+
entity_id?: string | undefined;
|
|
542
|
+
value?: number | undefined;
|
|
543
543
|
customer_data?: any;
|
|
544
544
|
entity_data?: any;
|
|
545
545
|
event_name?: string | undefined;
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-VBHBF3GP.mjs";
|
|
8
|
-
import "./chunk-GO7TVFSN.mjs";
|
|
6
|
+
} from "./chunk-BRZHNRU5.mjs";
|
|
9
7
|
import "./chunk-TFYLV3GN.mjs";
|
|
10
8
|
import "./chunk-LL53FE2Z.mjs";
|
|
9
|
+
import "./chunk-VBHBF3GP.mjs";
|
|
10
|
+
import "./chunk-GO7TVFSN.mjs";
|
|
11
11
|
import "./chunk-33ET4N4V.mjs";
|
|
12
12
|
import {
|
|
13
13
|
AttachParamsSchema,
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-VBHBF3GP.mjs";
|
|
8
|
-
import "./chunk-GO7TVFSN.mjs";
|
|
6
|
+
} from "./chunk-BRZHNRU5.mjs";
|
|
9
7
|
import "./chunk-TFYLV3GN.mjs";
|
|
10
8
|
import "./chunk-LL53FE2Z.mjs";
|
|
9
|
+
import "./chunk-VBHBF3GP.mjs";
|
|
10
|
+
import "./chunk-GO7TVFSN.mjs";
|
|
11
11
|
import "./chunk-33ET4N4V.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Autumn
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-VBHBF3GP.mjs";
|
|
8
|
-
import "./chunk-GO7TVFSN.mjs";
|
|
6
|
+
} from "./chunk-BRZHNRU5.mjs";
|
|
9
7
|
import "./chunk-TFYLV3GN.mjs";
|
|
10
8
|
import "./chunk-LL53FE2Z.mjs";
|
|
9
|
+
import "./chunk-VBHBF3GP.mjs";
|
|
10
|
+
import "./chunk-GO7TVFSN.mjs";
|
|
11
11
|
import "./chunk-33ET4N4V.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Autumn
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-VBHBF3GP.mjs";
|
|
8
|
-
import "./chunk-GO7TVFSN.mjs";
|
|
6
|
+
} from "./chunk-BRZHNRU5.mjs";
|
|
9
7
|
import "./chunk-TFYLV3GN.mjs";
|
|
10
8
|
import "./chunk-LL53FE2Z.mjs";
|
|
9
|
+
import "./chunk-VBHBF3GP.mjs";
|
|
10
|
+
import "./chunk-GO7TVFSN.mjs";
|
|
11
11
|
import "./chunk-33ET4N4V.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Autumn
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-VBHBF3GP.mjs";
|
|
8
|
-
import "./chunk-GO7TVFSN.mjs";
|
|
6
|
+
} from "./chunk-BRZHNRU5.mjs";
|
|
9
7
|
import "./chunk-TFYLV3GN.mjs";
|
|
10
8
|
import "./chunk-LL53FE2Z.mjs";
|
|
9
|
+
import "./chunk-VBHBF3GP.mjs";
|
|
10
|
+
import "./chunk-GO7TVFSN.mjs";
|
|
11
11
|
import "./chunk-33ET4N4V.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Autumn
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-VBHBF3GP.mjs";
|
|
8
|
-
import "./chunk-GO7TVFSN.mjs";
|
|
6
|
+
} from "./chunk-BRZHNRU5.mjs";
|
|
9
7
|
import "./chunk-TFYLV3GN.mjs";
|
|
10
8
|
import "./chunk-LL53FE2Z.mjs";
|
|
9
|
+
import "./chunk-VBHBF3GP.mjs";
|
|
10
|
+
import "./chunk-GO7TVFSN.mjs";
|
|
11
11
|
import "./chunk-33ET4N4V.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Autumn
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-VBHBF3GP.mjs";
|
|
8
|
-
import "./chunk-GO7TVFSN.mjs";
|
|
6
|
+
} from "./chunk-BRZHNRU5.mjs";
|
|
9
7
|
import "./chunk-TFYLV3GN.mjs";
|
|
10
8
|
import "./chunk-LL53FE2Z.mjs";
|
|
9
|
+
import "./chunk-VBHBF3GP.mjs";
|
|
10
|
+
import "./chunk-GO7TVFSN.mjs";
|
|
11
11
|
import "./chunk-33ET4N4V.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Autumn
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-VBHBF3GP.mjs";
|
|
8
|
-
import "./chunk-GO7TVFSN.mjs";
|
|
6
|
+
} from "./chunk-BRZHNRU5.mjs";
|
|
9
7
|
import "./chunk-TFYLV3GN.mjs";
|
|
10
8
|
import "./chunk-LL53FE2Z.mjs";
|
|
9
|
+
import "./chunk-VBHBF3GP.mjs";
|
|
10
|
+
import "./chunk-GO7TVFSN.mjs";
|
|
11
11
|
import "./chunk-33ET4N4V.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Autumn
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-VBHBF3GP.mjs";
|
|
8
|
-
import "./chunk-GO7TVFSN.mjs";
|
|
6
|
+
} from "./chunk-BRZHNRU5.mjs";
|
|
9
7
|
import "./chunk-TFYLV3GN.mjs";
|
|
10
8
|
import "./chunk-LL53FE2Z.mjs";
|
|
9
|
+
import "./chunk-VBHBF3GP.mjs";
|
|
10
|
+
import "./chunk-GO7TVFSN.mjs";
|
|
11
11
|
import "./chunk-33ET4N4V.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Autumn
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRouterWithOptions
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-VBHBF3GP.mjs";
|
|
5
|
-
import "./chunk-GO7TVFSN.mjs";
|
|
3
|
+
} from "./chunk-BRZHNRU5.mjs";
|
|
6
4
|
import "./chunk-TFYLV3GN.mjs";
|
|
7
5
|
import "./chunk-LL53FE2Z.mjs";
|
|
6
|
+
import "./chunk-VBHBF3GP.mjs";
|
|
7
|
+
import "./chunk-GO7TVFSN.mjs";
|
|
8
8
|
import "./chunk-33ET4N4V.mjs";
|
|
9
9
|
import {
|
|
10
10
|
Autumn
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRouterWithOptions
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-VBHBF3GP.mjs";
|
|
5
|
-
import "../chunk-GO7TVFSN.mjs";
|
|
3
|
+
} from "../chunk-BRZHNRU5.mjs";
|
|
6
4
|
import "../chunk-TFYLV3GN.mjs";
|
|
7
5
|
import "../chunk-LL53FE2Z.mjs";
|
|
6
|
+
import "../chunk-VBHBF3GP.mjs";
|
|
7
|
+
import "../chunk-GO7TVFSN.mjs";
|
|
8
8
|
import "../chunk-33ET4N4V.mjs";
|
|
9
9
|
import "../chunk-AREWK25J.mjs";
|
|
10
10
|
import "../chunk-2TEL6LR5.mjs";
|