autumn-js 0.1.4 → 0.1.5
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 +30 -30
- package/dist/libraries/backend/better-auth.d.ts +30 -30
- package/dist/libraries/backend/better-auth.js +2 -1
- package/dist/libraries/backend/better-auth.mjs +2 -2
- package/dist/libraries/backend/{chunk-P6KFNVAM.mjs → chunk-2LSEWYPD.mjs} +1 -1
- package/dist/libraries/backend/{chunk-3HEVKGSY.mjs → chunk-WBYCMG34.mjs} +2 -1
- package/dist/libraries/backend/convex.js +2 -1
- package/dist/libraries/backend/convex.mjs +2 -2
- package/dist/libraries/backend/elysia.js +2 -1
- package/dist/libraries/backend/elysia.mjs +2 -2
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/express.js +2 -1
- package/dist/libraries/backend/express.mjs +2 -2
- package/dist/libraries/backend/fastify.js +2 -1
- package/dist/libraries/backend/fastify.mjs +2 -2
- package/dist/libraries/backend/hono.js +2 -1
- package/dist/libraries/backend/hono.mjs +2 -2
- package/dist/libraries/backend/index.d.mts +1 -1
- package/dist/libraries/backend/index.d.ts +1 -1
- package/dist/libraries/backend/index.js +2 -1
- package/dist/libraries/backend/index.mjs +2 -2
- package/dist/libraries/backend/next.js +2 -1
- package/dist/libraries/backend/next.mjs +2 -2
- package/dist/libraries/backend/react-router.js +2 -1
- package/dist/libraries/backend/react-router.mjs +2 -2
- package/dist/libraries/backend/remix_dep.js +2 -1
- package/dist/libraries/backend/remix_dep.mjs +2 -2
- package/dist/libraries/backend/routes/backendRouter.js +2 -1
- package/dist/libraries/backend/routes/backendRouter.mjs +2 -2
- package/dist/libraries/backend/routes/productRoutes.js +2 -1
- package/dist/libraries/backend/routes/productRoutes.mjs +1 -1
- package/dist/libraries/backend/supabase.js +2 -1
- package/dist/libraries/backend/supabase.mjs +2 -2
- package/dist/libraries/backend/tanstack.js +2 -1
- package/dist/libraries/backend/tanstack.mjs +2 -2
- 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.d.mts +6 -6
- package/dist/libraries/react/AutumnContext.d.ts +6 -6
- package/dist/libraries/react/AutumnContext.mjs +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.mts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.mjs +6 -6
- package/dist/libraries/react/{ReactAutumnClient-b59cM6db.d.mts → ReactAutumnClient-BHjd9Tw5.d.mts} +5 -5
- package/dist/libraries/react/{ReactAutumnClient-Dk1xLBOC.d.ts → ReactAutumnClient-DM5ZRTfX.d.ts} +5 -5
- package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.mjs +7 -7
- package/dist/libraries/react/{attachTypes-CcB6xjSF.d.ts → attachTypes-Bz1_JTvk.d.ts} +1 -1
- package/dist/libraries/react/{attachTypes-DqUN3q8s.d.mts → attachTypes-C9FJTCo6.d.mts} +1 -1
- package/dist/libraries/react/{chunk-OTZ65PCT.mjs → chunk-2TQBFCWM.mjs} +4 -4
- package/dist/libraries/react/{chunk-XFNHMA6J.mjs → chunk-33OTK7MB.mjs} +1 -1
- package/dist/libraries/react/{chunk-FEISQQNM.mjs → chunk-5K2M3CQZ.mjs} +1 -1
- package/dist/libraries/react/{chunk-FJWZPMWU.mjs → chunk-BXMZYHE7.mjs} +3 -3
- package/dist/libraries/react/{chunk-ADKXC74U.mjs → chunk-EXK6MS5M.mjs} +442 -440
- package/dist/libraries/react/{chunk-AXQT5O4P.mjs → chunk-F5QUME7S.mjs} +1 -1
- package/dist/libraries/react/{chunk-6TQS3YV6.mjs → chunk-GUDRYJ3O.mjs} +2 -2
- package/dist/libraries/react/{chunk-5X73Q4YJ.mjs → chunk-IM2FNHYV.mjs} +2 -2
- package/dist/libraries/react/{chunk-IUYVVTGM.mjs → chunk-KLSRAX2F.mjs} +1 -1
- package/dist/libraries/react/{chunk-KZQPLQR5.mjs → chunk-KZVVSY52.mjs} +1 -1
- 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-K55IHYAQ.mjs → chunk-PGU4IXT7.mjs} +1 -1
- package/dist/libraries/react/{chunk-QNIJJHAD.mjs → chunk-QW2YS3JY.mjs} +1 -1
- package/dist/libraries/react/{chunk-PLEVZHHH.mjs → chunk-TJMYXANS.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/{chunk-NV52XFEQ.mjs → chunk-ZT5TN67S.mjs} +3 -3
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +6 -6
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +6 -6
- package/dist/libraries/react/client/ReactAutumnClient.mjs +3 -3
- package/dist/libraries/react/client/clientCompMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientCompMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientCusMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientCusMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientEntityMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientEntityMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientGenMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientGenMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientProdMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientProdMethods.d.ts +6 -6
- package/dist/libraries/react/client/clientReferralMethods.d.mts +6 -6
- package/dist/libraries/react/client/clientReferralMethods.d.ts +6 -6
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.mts +2 -2
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.ts +2 -2
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +23 -23
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.mts +2 -2
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.ts +2 -2
- package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.mts +1 -1
- package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.ts +1 -1
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +23 -23
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +2 -2
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +23 -23
- 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/{cusTypes-CSmAk5io.d.mts → cusTypes-DT-gAUL9.d.mts} +1 -1
- package/dist/libraries/react/{cusTypes-DHjT-9rV.d.ts → cusTypes-yJ0fSxbq.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-CoF9enrR.d.ts → entTypes-BPdjCunj.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-S4hkh1RG.d.mts → entTypes-D79XPrxo.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-fEH_nqSm.d.mts → genTypes-BV-Jc6Q1.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-DsiuvyWS.d.ts → genTypes-DJUAkD36.d.ts} +1 -1
- package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +6 -6
- package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +6 -6
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +7 -7
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +7 -7
- package/dist/libraries/react/hooks/useAnalytics.d.mts +2 -2
- package/dist/libraries/react/hooks/useAnalytics.d.ts +2 -2
- package/dist/libraries/react/hooks/useAnalytics.mjs +5 -5
- package/dist/libraries/react/hooks/useCustomer.d.mts +6 -6
- package/dist/libraries/react/hooks/useCustomer.d.ts +6 -6
- package/dist/libraries/react/hooks/useCustomer.mjs +6 -6
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +6 -6
- package/dist/libraries/react/hooks/useCustomerBase.mjs +5 -5
- package/dist/libraries/react/hooks/useEntity.d.mts +4 -4
- package/dist/libraries/react/hooks/useEntity.d.ts +4 -4
- package/dist/libraries/react/hooks/useEntity.mjs +6 -6
- package/dist/libraries/react/hooks/useEntityBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useEntityBase.d.ts +6 -6
- package/dist/libraries/react/hooks/useEntityBase.mjs +5 -5
- package/dist/libraries/react/hooks/usePaywall.d.mts +1 -1
- package/dist/libraries/react/hooks/usePaywall.d.ts +1 -1
- package/dist/libraries/react/hooks/usePaywall.mjs +5 -5
- package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.mjs +5 -5
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +6 -6
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +6 -6
- package/dist/libraries/react/hooks/useProductsBase.d.mts +6 -6
- package/dist/libraries/react/hooks/useProductsBase.d.ts +6 -6
- package/dist/libraries/react/index.js +2 -2
- package/dist/libraries/react/index.mjs +2 -2
- package/dist/libraries/react/{prodTypes--VvnyGlN.d.mts → prodTypes-2tlu9Pyz.d.mts} +1 -1
- package/dist/libraries/react/{prodTypes--VvnyGlN.d.ts → prodTypes-2tlu9Pyz.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/libraries/backend/{referralTypes-CYvuZZeF.d.mts → referralTypes-BfrNJ62q.d.mts} +41 -41
- package/dist/libraries/backend/{referralTypes-B0_fYSI3.d.ts → referralTypes-Djyi4iGt.d.ts} +41 -41
- package/dist/libraries/react/{chunk-7TYAAD2T.mjs → chunk-KWNH6C27.mjs} +11 -11
- package/dist/libraries/react/{chunk-EFRTEIEY.mjs → chunk-QV6Q2XXO.mjs} +6 -6
|
@@ -131,11 +131,11 @@ declare const autumn: (options?: {
|
|
|
131
131
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
132
132
|
body: {
|
|
133
133
|
product_id: string;
|
|
134
|
-
entity_id?: string | undefined;
|
|
135
134
|
options?: {
|
|
136
135
|
feature_id: string;
|
|
137
136
|
quantity: number;
|
|
138
137
|
}[] | undefined;
|
|
138
|
+
entity_id?: string | undefined;
|
|
139
139
|
success_url?: string | undefined;
|
|
140
140
|
customer_data?: {
|
|
141
141
|
name?: string | null | undefined;
|
|
@@ -203,11 +203,11 @@ declare const autumn: (options?: {
|
|
|
203
203
|
reward: z.ZodOptional<z.ZodString>;
|
|
204
204
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
205
205
|
product_id: string;
|
|
206
|
-
entity_id?: string | undefined;
|
|
207
206
|
options?: {
|
|
208
207
|
feature_id: string;
|
|
209
208
|
quantity: number;
|
|
210
209
|
}[] | undefined;
|
|
210
|
+
entity_id?: string | undefined;
|
|
211
211
|
success_url?: string | undefined;
|
|
212
212
|
customer_data?: {
|
|
213
213
|
name?: string | null | undefined;
|
|
@@ -219,11 +219,11 @@ declare const autumn: (options?: {
|
|
|
219
219
|
reward?: string | undefined;
|
|
220
220
|
}, {
|
|
221
221
|
product_id: string;
|
|
222
|
-
entity_id?: string | undefined;
|
|
223
222
|
options?: {
|
|
224
223
|
feature_id: string;
|
|
225
224
|
quantity: number;
|
|
226
225
|
}[] | undefined;
|
|
226
|
+
entity_id?: string | undefined;
|
|
227
227
|
success_url?: string | undefined;
|
|
228
228
|
customer_data?: {
|
|
229
229
|
name?: string | null | undefined;
|
|
@@ -265,17 +265,14 @@ declare const autumn: (options?: {
|
|
|
265
265
|
attach: {
|
|
266
266
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
267
267
|
body: {
|
|
268
|
-
entity_id?: string | undefined;
|
|
269
268
|
options?: {
|
|
270
269
|
feature_id: string;
|
|
271
270
|
quantity: number;
|
|
272
271
|
}[] | undefined;
|
|
273
272
|
metadata?: Record<string, string> | undefined;
|
|
274
273
|
product_id?: string | undefined;
|
|
275
|
-
|
|
276
|
-
free_trial?: boolean | undefined;
|
|
274
|
+
entity_id?: string | undefined;
|
|
277
275
|
success_url?: string | undefined;
|
|
278
|
-
force_checkout?: boolean | undefined;
|
|
279
276
|
customer_data?: {
|
|
280
277
|
name?: string | null | undefined;
|
|
281
278
|
email?: string | null | undefined;
|
|
@@ -284,6 +281,9 @@ declare const autumn: (options?: {
|
|
|
284
281
|
entity_data?: any;
|
|
285
282
|
checkout_session_params?: Record<string, any> | undefined;
|
|
286
283
|
reward?: string | undefined;
|
|
284
|
+
product_ids?: string[] | undefined;
|
|
285
|
+
free_trial?: boolean | undefined;
|
|
286
|
+
force_checkout?: boolean | undefined;
|
|
287
287
|
};
|
|
288
288
|
} & {
|
|
289
289
|
method?: "POST" | undefined;
|
|
@@ -345,17 +345,14 @@ declare const autumn: (options?: {
|
|
|
345
345
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
346
346
|
reward: z.ZodOptional<z.ZodString>;
|
|
347
347
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
348
|
-
entity_id?: string | undefined;
|
|
349
348
|
options?: {
|
|
350
349
|
feature_id: string;
|
|
351
350
|
quantity: number;
|
|
352
351
|
}[] | undefined;
|
|
353
352
|
metadata?: Record<string, string> | undefined;
|
|
354
353
|
product_id?: string | undefined;
|
|
355
|
-
|
|
356
|
-
free_trial?: boolean | undefined;
|
|
354
|
+
entity_id?: string | undefined;
|
|
357
355
|
success_url?: string | undefined;
|
|
358
|
-
force_checkout?: boolean | undefined;
|
|
359
356
|
customer_data?: {
|
|
360
357
|
name?: string | null | undefined;
|
|
361
358
|
email?: string | null | undefined;
|
|
@@ -364,18 +361,18 @@ declare const autumn: (options?: {
|
|
|
364
361
|
entity_data?: any;
|
|
365
362
|
checkout_session_params?: Record<string, any> | undefined;
|
|
366
363
|
reward?: string | undefined;
|
|
364
|
+
product_ids?: string[] | undefined;
|
|
365
|
+
free_trial?: boolean | undefined;
|
|
366
|
+
force_checkout?: boolean | undefined;
|
|
367
367
|
}, {
|
|
368
|
-
entity_id?: string | undefined;
|
|
369
368
|
options?: {
|
|
370
369
|
feature_id: string;
|
|
371
370
|
quantity: number;
|
|
372
371
|
}[] | undefined;
|
|
373
372
|
metadata?: Record<string, string> | undefined;
|
|
374
373
|
product_id?: string | undefined;
|
|
375
|
-
|
|
376
|
-
free_trial?: boolean | undefined;
|
|
374
|
+
entity_id?: string | undefined;
|
|
377
375
|
success_url?: string | undefined;
|
|
378
|
-
force_checkout?: boolean | undefined;
|
|
379
376
|
customer_data?: {
|
|
380
377
|
name?: string | null | undefined;
|
|
381
378
|
email?: string | null | undefined;
|
|
@@ -384,6 +381,9 @@ declare const autumn: (options?: {
|
|
|
384
381
|
entity_data?: any;
|
|
385
382
|
checkout_session_params?: Record<string, any> | undefined;
|
|
386
383
|
reward?: string | undefined;
|
|
384
|
+
product_ids?: string[] | undefined;
|
|
385
|
+
free_trial?: boolean | undefined;
|
|
386
|
+
force_checkout?: boolean | undefined;
|
|
387
387
|
}>;
|
|
388
388
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
389
389
|
session: {
|
|
@@ -416,15 +416,15 @@ declare const autumn: (options?: {
|
|
|
416
416
|
check: {
|
|
417
417
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
418
418
|
body: {
|
|
419
|
-
feature_id?: string | undefined;
|
|
420
|
-
entity_id?: string | undefined;
|
|
421
|
-
required_balance?: number | undefined;
|
|
422
419
|
product_id?: string | undefined;
|
|
420
|
+
entity_id?: string | undefined;
|
|
421
|
+
feature_id?: string | undefined;
|
|
423
422
|
customer_data?: any;
|
|
424
423
|
entity_data?: {
|
|
425
424
|
feature_id: string;
|
|
426
425
|
name?: string | undefined;
|
|
427
426
|
} | undefined;
|
|
427
|
+
required_balance?: number | undefined;
|
|
428
428
|
send_event?: boolean | undefined;
|
|
429
429
|
with_preview?: boolean | undefined;
|
|
430
430
|
};
|
|
@@ -472,27 +472,27 @@ declare const autumn: (options?: {
|
|
|
472
472
|
name?: string | undefined;
|
|
473
473
|
}>>;
|
|
474
474
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
475
|
-
feature_id?: string | undefined;
|
|
476
|
-
entity_id?: string | undefined;
|
|
477
|
-
required_balance?: number | undefined;
|
|
478
475
|
product_id?: string | undefined;
|
|
476
|
+
entity_id?: string | undefined;
|
|
477
|
+
feature_id?: string | undefined;
|
|
479
478
|
customer_data?: any;
|
|
480
479
|
entity_data?: {
|
|
481
480
|
feature_id: string;
|
|
482
481
|
name?: string | undefined;
|
|
483
482
|
} | undefined;
|
|
483
|
+
required_balance?: number | undefined;
|
|
484
484
|
send_event?: boolean | undefined;
|
|
485
485
|
with_preview?: boolean | undefined;
|
|
486
486
|
}, {
|
|
487
|
-
feature_id?: string | undefined;
|
|
488
|
-
entity_id?: string | undefined;
|
|
489
|
-
required_balance?: number | undefined;
|
|
490
487
|
product_id?: string | undefined;
|
|
488
|
+
entity_id?: string | undefined;
|
|
489
|
+
feature_id?: string | undefined;
|
|
491
490
|
customer_data?: any;
|
|
492
491
|
entity_data?: {
|
|
493
492
|
feature_id: string;
|
|
494
493
|
name?: string | undefined;
|
|
495
494
|
} | undefined;
|
|
495
|
+
required_balance?: number | undefined;
|
|
496
496
|
send_event?: boolean | undefined;
|
|
497
497
|
with_preview?: boolean | undefined;
|
|
498
498
|
}>;
|
|
@@ -527,9 +527,9 @@ declare const autumn: (options?: {
|
|
|
527
527
|
track: {
|
|
528
528
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
529
529
|
body: {
|
|
530
|
-
feature_id?: string | undefined;
|
|
531
|
-
entity_id?: string | undefined;
|
|
532
530
|
value?: number | undefined;
|
|
531
|
+
entity_id?: string | undefined;
|
|
532
|
+
feature_id?: string | undefined;
|
|
533
533
|
customer_data?: any;
|
|
534
534
|
entity_data?: any;
|
|
535
535
|
event_name?: string | undefined;
|
|
@@ -569,17 +569,17 @@ declare const autumn: (options?: {
|
|
|
569
569
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
570
570
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
571
571
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
572
|
-
feature_id?: string | undefined;
|
|
573
|
-
entity_id?: string | undefined;
|
|
574
572
|
value?: number | undefined;
|
|
573
|
+
entity_id?: string | undefined;
|
|
574
|
+
feature_id?: string | undefined;
|
|
575
575
|
customer_data?: any;
|
|
576
576
|
entity_data?: any;
|
|
577
577
|
event_name?: string | undefined;
|
|
578
578
|
idempotency_key?: string | undefined;
|
|
579
579
|
}, {
|
|
580
|
-
feature_id?: string | undefined;
|
|
581
|
-
entity_id?: string | undefined;
|
|
582
580
|
value?: number | undefined;
|
|
581
|
+
entity_id?: string | undefined;
|
|
582
|
+
feature_id?: string | undefined;
|
|
583
583
|
customer_data?: any;
|
|
584
584
|
entity_data?: any;
|
|
585
585
|
event_name?: string | undefined;
|
|
@@ -131,11 +131,11 @@ declare const autumn: (options?: {
|
|
|
131
131
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
132
132
|
body: {
|
|
133
133
|
product_id: string;
|
|
134
|
-
entity_id?: string | undefined;
|
|
135
134
|
options?: {
|
|
136
135
|
feature_id: string;
|
|
137
136
|
quantity: number;
|
|
138
137
|
}[] | undefined;
|
|
138
|
+
entity_id?: string | undefined;
|
|
139
139
|
success_url?: string | undefined;
|
|
140
140
|
customer_data?: {
|
|
141
141
|
name?: string | null | undefined;
|
|
@@ -203,11 +203,11 @@ declare const autumn: (options?: {
|
|
|
203
203
|
reward: z.ZodOptional<z.ZodString>;
|
|
204
204
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
205
205
|
product_id: string;
|
|
206
|
-
entity_id?: string | undefined;
|
|
207
206
|
options?: {
|
|
208
207
|
feature_id: string;
|
|
209
208
|
quantity: number;
|
|
210
209
|
}[] | undefined;
|
|
210
|
+
entity_id?: string | undefined;
|
|
211
211
|
success_url?: string | undefined;
|
|
212
212
|
customer_data?: {
|
|
213
213
|
name?: string | null | undefined;
|
|
@@ -219,11 +219,11 @@ declare const autumn: (options?: {
|
|
|
219
219
|
reward?: string | undefined;
|
|
220
220
|
}, {
|
|
221
221
|
product_id: string;
|
|
222
|
-
entity_id?: string | undefined;
|
|
223
222
|
options?: {
|
|
224
223
|
feature_id: string;
|
|
225
224
|
quantity: number;
|
|
226
225
|
}[] | undefined;
|
|
226
|
+
entity_id?: string | undefined;
|
|
227
227
|
success_url?: string | undefined;
|
|
228
228
|
customer_data?: {
|
|
229
229
|
name?: string | null | undefined;
|
|
@@ -265,17 +265,14 @@ declare const autumn: (options?: {
|
|
|
265
265
|
attach: {
|
|
266
266
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
267
267
|
body: {
|
|
268
|
-
entity_id?: string | undefined;
|
|
269
268
|
options?: {
|
|
270
269
|
feature_id: string;
|
|
271
270
|
quantity: number;
|
|
272
271
|
}[] | undefined;
|
|
273
272
|
metadata?: Record<string, string> | undefined;
|
|
274
273
|
product_id?: string | undefined;
|
|
275
|
-
|
|
276
|
-
free_trial?: boolean | undefined;
|
|
274
|
+
entity_id?: string | undefined;
|
|
277
275
|
success_url?: string | undefined;
|
|
278
|
-
force_checkout?: boolean | undefined;
|
|
279
276
|
customer_data?: {
|
|
280
277
|
name?: string | null | undefined;
|
|
281
278
|
email?: string | null | undefined;
|
|
@@ -284,6 +281,9 @@ declare const autumn: (options?: {
|
|
|
284
281
|
entity_data?: any;
|
|
285
282
|
checkout_session_params?: Record<string, any> | undefined;
|
|
286
283
|
reward?: string | undefined;
|
|
284
|
+
product_ids?: string[] | undefined;
|
|
285
|
+
free_trial?: boolean | undefined;
|
|
286
|
+
force_checkout?: boolean | undefined;
|
|
287
287
|
};
|
|
288
288
|
} & {
|
|
289
289
|
method?: "POST" | undefined;
|
|
@@ -345,17 +345,14 @@ declare const autumn: (options?: {
|
|
|
345
345
|
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
346
346
|
reward: z.ZodOptional<z.ZodString>;
|
|
347
347
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
348
|
-
entity_id?: string | undefined;
|
|
349
348
|
options?: {
|
|
350
349
|
feature_id: string;
|
|
351
350
|
quantity: number;
|
|
352
351
|
}[] | undefined;
|
|
353
352
|
metadata?: Record<string, string> | undefined;
|
|
354
353
|
product_id?: string | undefined;
|
|
355
|
-
|
|
356
|
-
free_trial?: boolean | undefined;
|
|
354
|
+
entity_id?: string | undefined;
|
|
357
355
|
success_url?: string | undefined;
|
|
358
|
-
force_checkout?: boolean | undefined;
|
|
359
356
|
customer_data?: {
|
|
360
357
|
name?: string | null | undefined;
|
|
361
358
|
email?: string | null | undefined;
|
|
@@ -364,18 +361,18 @@ declare const autumn: (options?: {
|
|
|
364
361
|
entity_data?: any;
|
|
365
362
|
checkout_session_params?: Record<string, any> | undefined;
|
|
366
363
|
reward?: string | undefined;
|
|
364
|
+
product_ids?: string[] | undefined;
|
|
365
|
+
free_trial?: boolean | undefined;
|
|
366
|
+
force_checkout?: boolean | undefined;
|
|
367
367
|
}, {
|
|
368
|
-
entity_id?: string | undefined;
|
|
369
368
|
options?: {
|
|
370
369
|
feature_id: string;
|
|
371
370
|
quantity: number;
|
|
372
371
|
}[] | undefined;
|
|
373
372
|
metadata?: Record<string, string> | undefined;
|
|
374
373
|
product_id?: string | undefined;
|
|
375
|
-
|
|
376
|
-
free_trial?: boolean | undefined;
|
|
374
|
+
entity_id?: string | undefined;
|
|
377
375
|
success_url?: string | undefined;
|
|
378
|
-
force_checkout?: boolean | undefined;
|
|
379
376
|
customer_data?: {
|
|
380
377
|
name?: string | null | undefined;
|
|
381
378
|
email?: string | null | undefined;
|
|
@@ -384,6 +381,9 @@ declare const autumn: (options?: {
|
|
|
384
381
|
entity_data?: any;
|
|
385
382
|
checkout_session_params?: Record<string, any> | undefined;
|
|
386
383
|
reward?: string | undefined;
|
|
384
|
+
product_ids?: string[] | undefined;
|
|
385
|
+
free_trial?: boolean | undefined;
|
|
386
|
+
force_checkout?: boolean | undefined;
|
|
387
387
|
}>;
|
|
388
388
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
389
389
|
session: {
|
|
@@ -416,15 +416,15 @@ declare const autumn: (options?: {
|
|
|
416
416
|
check: {
|
|
417
417
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
418
418
|
body: {
|
|
419
|
-
feature_id?: string | undefined;
|
|
420
|
-
entity_id?: string | undefined;
|
|
421
|
-
required_balance?: number | undefined;
|
|
422
419
|
product_id?: string | undefined;
|
|
420
|
+
entity_id?: string | undefined;
|
|
421
|
+
feature_id?: string | undefined;
|
|
423
422
|
customer_data?: any;
|
|
424
423
|
entity_data?: {
|
|
425
424
|
feature_id: string;
|
|
426
425
|
name?: string | undefined;
|
|
427
426
|
} | undefined;
|
|
427
|
+
required_balance?: number | undefined;
|
|
428
428
|
send_event?: boolean | undefined;
|
|
429
429
|
with_preview?: boolean | undefined;
|
|
430
430
|
};
|
|
@@ -472,27 +472,27 @@ declare const autumn: (options?: {
|
|
|
472
472
|
name?: string | undefined;
|
|
473
473
|
}>>;
|
|
474
474
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
475
|
-
feature_id?: string | undefined;
|
|
476
|
-
entity_id?: string | undefined;
|
|
477
|
-
required_balance?: number | undefined;
|
|
478
475
|
product_id?: string | undefined;
|
|
476
|
+
entity_id?: string | undefined;
|
|
477
|
+
feature_id?: string | undefined;
|
|
479
478
|
customer_data?: any;
|
|
480
479
|
entity_data?: {
|
|
481
480
|
feature_id: string;
|
|
482
481
|
name?: string | undefined;
|
|
483
482
|
} | undefined;
|
|
483
|
+
required_balance?: number | undefined;
|
|
484
484
|
send_event?: boolean | undefined;
|
|
485
485
|
with_preview?: boolean | undefined;
|
|
486
486
|
}, {
|
|
487
|
-
feature_id?: string | undefined;
|
|
488
|
-
entity_id?: string | undefined;
|
|
489
|
-
required_balance?: number | undefined;
|
|
490
487
|
product_id?: string | undefined;
|
|
488
|
+
entity_id?: string | undefined;
|
|
489
|
+
feature_id?: string | undefined;
|
|
491
490
|
customer_data?: any;
|
|
492
491
|
entity_data?: {
|
|
493
492
|
feature_id: string;
|
|
494
493
|
name?: string | undefined;
|
|
495
494
|
} | undefined;
|
|
495
|
+
required_balance?: number | undefined;
|
|
496
496
|
send_event?: boolean | undefined;
|
|
497
497
|
with_preview?: boolean | undefined;
|
|
498
498
|
}>;
|
|
@@ -527,9 +527,9 @@ declare const autumn: (options?: {
|
|
|
527
527
|
track: {
|
|
528
528
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
529
529
|
body: {
|
|
530
|
-
feature_id?: string | undefined;
|
|
531
|
-
entity_id?: string | undefined;
|
|
532
530
|
value?: number | undefined;
|
|
531
|
+
entity_id?: string | undefined;
|
|
532
|
+
feature_id?: string | undefined;
|
|
533
533
|
customer_data?: any;
|
|
534
534
|
entity_data?: any;
|
|
535
535
|
event_name?: string | undefined;
|
|
@@ -569,17 +569,17 @@ declare const autumn: (options?: {
|
|
|
569
569
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
570
570
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
571
571
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
572
|
-
feature_id?: string | undefined;
|
|
573
|
-
entity_id?: string | undefined;
|
|
574
572
|
value?: number | undefined;
|
|
573
|
+
entity_id?: string | undefined;
|
|
574
|
+
feature_id?: string | undefined;
|
|
575
575
|
customer_data?: any;
|
|
576
576
|
entity_data?: any;
|
|
577
577
|
event_name?: string | undefined;
|
|
578
578
|
idempotency_key?: string | undefined;
|
|
579
579
|
}, {
|
|
580
|
-
feature_id?: string | undefined;
|
|
581
|
-
entity_id?: string | undefined;
|
|
582
580
|
value?: number | undefined;
|
|
581
|
+
entity_id?: string | undefined;
|
|
582
|
+
feature_id?: string | undefined;
|
|
583
583
|
customer_data?: any;
|
|
584
584
|
entity_data?: any;
|
|
585
585
|
event_name?: string | undefined;
|
|
@@ -1089,7 +1089,8 @@ var listProductsHandler = withAuth({
|
|
|
1089
1089
|
return await autumn2.products.list({
|
|
1090
1090
|
customer_id
|
|
1091
1091
|
});
|
|
1092
|
-
}
|
|
1092
|
+
},
|
|
1093
|
+
requireCustomer: false
|
|
1093
1094
|
});
|
|
1094
1095
|
var addProductRoutes = async (router2) => {
|
|
1095
1096
|
(0, import_rou34.addRoute)(router2, "GET", `${BASE_PATH}/products`, {
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2LSEWYPD.mjs";
|
|
7
7
|
import "./chunk-QVLMREDB.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-WBYCMG34.mjs";
|
|
9
9
|
import "./chunk-Y63QWBQ6.mjs";
|
|
10
10
|
import "./chunk-7Z2OYXN4.mjs";
|
|
11
11
|
import "./chunk-NTPYEOME.mjs";
|
|
@@ -1086,7 +1086,8 @@ var listProductsHandler = withAuth({
|
|
|
1086
1086
|
return await autumn.products.list({
|
|
1087
1087
|
customer_id
|
|
1088
1088
|
});
|
|
1089
|
-
}
|
|
1089
|
+
},
|
|
1090
|
+
requireCustomer: false
|
|
1090
1091
|
});
|
|
1091
1092
|
var addProductRoutes = async (router) => {
|
|
1092
1093
|
(0, import_rou34.addRoute)(router, "GET", `${BASE_PATH}/products`, {
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2LSEWYPD.mjs";
|
|
7
7
|
import "./chunk-QVLMREDB.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-WBYCMG34.mjs";
|
|
9
9
|
import "./chunk-Y63QWBQ6.mjs";
|
|
10
10
|
import "./chunk-7Z2OYXN4.mjs";
|
|
11
11
|
import "./chunk-NTPYEOME.mjs";
|
|
@@ -1087,7 +1087,8 @@ var listProductsHandler = withAuth({
|
|
|
1087
1087
|
return await autumn.products.list({
|
|
1088
1088
|
customer_id
|
|
1089
1089
|
});
|
|
1090
|
-
}
|
|
1090
|
+
},
|
|
1091
|
+
requireCustomer: false
|
|
1091
1092
|
});
|
|
1092
1093
|
var addProductRoutes = async (router) => {
|
|
1093
1094
|
(0, import_rou34.addRoute)(router, "GET", `${BASE_PATH}/products`, {
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2LSEWYPD.mjs";
|
|
7
7
|
import "./chunk-QVLMREDB.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-WBYCMG34.mjs";
|
|
9
9
|
import "./chunk-Y63QWBQ6.mjs";
|
|
10
10
|
import "./chunk-7Z2OYXN4.mjs";
|
|
11
11
|
import "./chunk-NTPYEOME.mjs";
|
|
@@ -1087,7 +1087,8 @@ var listProductsHandler = withAuth({
|
|
|
1087
1087
|
return await autumn.products.list({
|
|
1088
1088
|
customer_id
|
|
1089
1089
|
});
|
|
1090
|
-
}
|
|
1090
|
+
},
|
|
1091
|
+
requireCustomer: false
|
|
1091
1092
|
});
|
|
1092
1093
|
var addProductRoutes = async (router) => {
|
|
1093
1094
|
(0, import_rou34.addRoute)(router, "GET", `${BASE_PATH}/products`, {
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2LSEWYPD.mjs";
|
|
7
7
|
import "./chunk-QVLMREDB.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-WBYCMG34.mjs";
|
|
9
9
|
import "./chunk-Y63QWBQ6.mjs";
|
|
10
10
|
import "./chunk-7Z2OYXN4.mjs";
|
|
11
11
|
import "./chunk-NTPYEOME.mjs";
|
|
@@ -1087,7 +1087,8 @@ var listProductsHandler = withAuth({
|
|
|
1087
1087
|
return await autumn.products.list({
|
|
1088
1088
|
customer_id
|
|
1089
1089
|
});
|
|
1090
|
-
}
|
|
1090
|
+
},
|
|
1091
|
+
requireCustomer: false
|
|
1091
1092
|
});
|
|
1092
1093
|
var addProductRoutes = async (router) => {
|
|
1093
1094
|
(0, import_rou34.addRoute)(router, "GET", `${BASE_PATH}/products`, {
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2LSEWYPD.mjs";
|
|
7
7
|
import "./chunk-QVLMREDB.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-WBYCMG34.mjs";
|
|
9
9
|
import "./chunk-Y63QWBQ6.mjs";
|
|
10
10
|
import "./chunk-7Z2OYXN4.mjs";
|
|
11
11
|
import "./chunk-NTPYEOME.mjs";
|
|
@@ -1087,7 +1087,8 @@ var listProductsHandler = withAuth({
|
|
|
1087
1087
|
return await autumn.products.list({
|
|
1088
1088
|
customer_id
|
|
1089
1089
|
});
|
|
1090
|
-
}
|
|
1090
|
+
},
|
|
1091
|
+
requireCustomer: false
|
|
1091
1092
|
});
|
|
1092
1093
|
var addProductRoutes = async (router) => {
|
|
1093
1094
|
(0, import_rou34.addRoute)(router, "GET", `${BASE_PATH}/products`, {
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2LSEWYPD.mjs";
|
|
7
7
|
import "./chunk-QVLMREDB.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-WBYCMG34.mjs";
|
|
9
9
|
import "./chunk-Y63QWBQ6.mjs";
|
|
10
10
|
import "./chunk-7Z2OYXN4.mjs";
|
|
11
11
|
import "./chunk-NTPYEOME.mjs";
|
|
@@ -1087,7 +1087,8 @@ var listProductsHandler = withAuth({
|
|
|
1087
1087
|
return await autumn.products.list({
|
|
1088
1088
|
customer_id
|
|
1089
1089
|
});
|
|
1090
|
-
}
|
|
1090
|
+
},
|
|
1091
|
+
requireCustomer: false
|
|
1091
1092
|
});
|
|
1092
1093
|
var addProductRoutes = async (router) => {
|
|
1093
1094
|
(0, import_rou34.addRoute)(router, "GET", `${BASE_PATH}/products`, {
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2LSEWYPD.mjs";
|
|
7
7
|
import "./chunk-QVLMREDB.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-WBYCMG34.mjs";
|
|
9
9
|
import "./chunk-Y63QWBQ6.mjs";
|
|
10
10
|
import "./chunk-7Z2OYXN4.mjs";
|
|
11
11
|
import "./chunk-NTPYEOME.mjs";
|
|
@@ -1090,7 +1090,8 @@ var listProductsHandler = withAuth({
|
|
|
1090
1090
|
return await autumn.products.list({
|
|
1091
1091
|
customer_id
|
|
1092
1092
|
});
|
|
1093
|
-
}
|
|
1093
|
+
},
|
|
1094
|
+
requireCustomer: false
|
|
1094
1095
|
});
|
|
1095
1096
|
var addProductRoutes = async (router) => {
|
|
1096
1097
|
(0, import_rou34.addRoute)(router, "GET", `${BASE_PATH}/products`, {
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
} from "./chunk-UNZHJTEY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createRouterWithOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2LSEWYPD.mjs";
|
|
7
7
|
import "./chunk-QVLMREDB.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-WBYCMG34.mjs";
|
|
9
9
|
import "./chunk-Y63QWBQ6.mjs";
|
|
10
10
|
import "./chunk-7Z2OYXN4.mjs";
|
|
11
11
|
import "./chunk-NTPYEOME.mjs";
|
|
@@ -1087,7 +1087,8 @@ var listProductsHandler = withAuth({
|
|
|
1087
1087
|
return await autumn.products.list({
|
|
1088
1088
|
customer_id
|
|
1089
1089
|
});
|
|
1090
|
-
}
|
|
1090
|
+
},
|
|
1091
|
+
requireCustomer: false
|
|
1091
1092
|
});
|
|
1092
1093
|
var addProductRoutes = async (router) => {
|
|
1093
1094
|
(0, import_rou34.addRoute)(router, "GET", `${BASE_PATH}/products`, {
|