autumn-js 0.1.9 → 0.1.10
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/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/index.d.mts +1 -1
- package/dist/libraries/backend/index.d.ts +1 -1
- package/dist/libraries/backend/{referralTypes-BEcapeWf.d.mts → referralTypes-DpLmOy8-.d.mts} +44 -43
- package/dist/libraries/backend/{referralTypes-DuAlUwev.d.ts → referralTypes-nXl36Opw.d.ts} +44 -43
- 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/BaseAutumnProvider.d.mts +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.ts +6 -6
- package/dist/libraries/react/{ReactAutumnClient-DCMQEadM.d.ts → ReactAutumnClient-BozBPLWS.d.ts} +17 -17
- package/dist/libraries/react/{ReactAutumnClient-Dm14G99_.d.mts → ReactAutumnClient-CDp4DLo0.d.mts} +17 -17
- package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -2
- package/dist/libraries/react/{attachTypes-Sv_paJZ2.d.mts → attachTypes-BqXH38Ft.d.mts} +5 -5
- package/dist/libraries/react/{attachTypes-QTf_JXj7.d.ts → attachTypes-DxfaWOQB.d.ts} +5 -5
- package/dist/libraries/react/{chunk-4UPD6W4L.mjs → chunk-4EPRIJNB.mjs} +425 -423
- 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/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/client/types/clientAttachTypes.d.mts +20 -20
- package/dist/libraries/react/client/types/clientAttachTypes.d.ts +20 -20
- package/dist/libraries/react/client/types/clientGenTypes.d.mts +4 -4
- package/dist/libraries/react/client/types/clientGenTypes.d.ts +4 -4
- 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 +12 -12
- 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 +12 -12
- 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.mjs +12 -12
- package/dist/libraries/react/components/ui/dialog.mjs +2 -2
- package/dist/libraries/react/components/ui/popover.mjs +2 -2
- package/dist/libraries/react/{cusTypes-DbCQV8Sj.d.mts → cusTypes-B2w8Kg9H.d.mts} +4 -3
- package/dist/libraries/react/{cusTypes-BeSXIQ6P.d.ts → cusTypes-C8UH2xVw.d.ts} +4 -3
- package/dist/libraries/react/{entTypes-0CBBecul.d.ts → entTypes-Byz3wYbQ.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-kVUQcah5.d.mts → entTypes-ItJ8BoHV.d.mts} +1 -1
- package/dist/libraries/react/{genTypes-fEH_nqSm.d.mts → genTypes-DSvR32on.d.mts} +5 -5
- package/dist/libraries/react/{genTypes-DsiuvyWS.d.ts → genTypes-EyxQImzh.d.ts} +5 -5
- 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/useCustomer.d.mts +6 -6
- package/dist/libraries/react/hooks/useCustomer.d.ts +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/useEntity.d.mts +4 -4
- package/dist/libraries/react/hooks/useEntity.d.ts +4 -4
- 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/usePaywall.d.mts +1 -1
- package/dist/libraries/react/hooks/usePaywall.d.ts +1 -1
- 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/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.d.mts +1 -0
- package/dist/libraries/react/index.d.ts +1 -0
- package/dist/libraries/react/{prodTypes--VvnyGlN.d.mts → prodTypes-Bmoibf-M.d.mts} +5 -5
- package/dist/libraries/react/{prodTypes--VvnyGlN.d.ts → prodTypes-Bmoibf-M.d.ts} +5 -5
- package/dist/next/client/NextAutumnClient.d.mts +6 -6
- package/dist/next/client/NextAutumnClient.d.ts +6 -6
- package/dist/next/client/NextAutumnProvider.d.mts +1 -1
- package/dist/next/client/NextAutumnProvider.d.ts +1 -1
- package/dist/next/client/clientUtils.d.mts +2 -2
- package/dist/next/client/clientUtils.d.ts +2 -2
- package/dist/next/client/{cusTypes-CYojUJSJ.d.ts → cusTypes-DRJ574aU.d.ts} +3 -2
- package/dist/next/client/{cusTypes-CIGvysWL.d.mts → cusTypes-c6-g1-Yy.d.mts} +3 -2
- package/dist/next/client/{entTypes-mOI7WnPZ.d.mts → entTypes-Bf0302Om.d.mts} +1 -1
- package/dist/next/client/{entTypes-BAD1NMvb.d.ts → entTypes-KSBxuyW-.d.ts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +3 -3
- package/dist/next/client/hooks/useAutumn.d.ts +3 -3
- package/dist/next/client/hooks/useCustomer.d.mts +4 -4
- package/dist/next/client/hooks/useCustomer.d.ts +4 -4
- package/dist/next/client/hooks/useEntity.d.mts +3 -3
- package/dist/next/client/hooks/useEntity.d.ts +3 -3
- package/dist/next/client/types.d.mts +2 -2
- package/dist/next/client/types.d.ts +2 -2
- 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 +1 -1
- package/dist/next/server/cusActions.d.ts +1 -1
- package/dist/next/server/{cusTypes-CwopPHB0.d.mts → cusTypes-Cu6SOTmn.d.mts} +1 -0
- package/dist/next/server/{cusTypes-CwopPHB0.d.ts → cusTypes-Cu6SOTmn.d.ts} +1 -0
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/dist/sdk/index.d.mts +1 -0
- package/dist/sdk/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/libraries/react/{chunk-FJWZPMWU.mjs → chunk-7JNU5ABT.mjs} +3 -3
- package/dist/libraries/react/{chunk-OTZ65PCT.mjs → chunk-LCWL3TIT.mjs} +3 -3
- package/dist/next/client/{attachTypes-DUUIHTBt.d.mts → attachTypes--97TsCMB.d.mts} +2 -2
- package/dist/next/client/{attachTypes-CReq8zJ_.d.ts → attachTypes-B1sM-0vf.d.ts} +2 -2
- package/dist/next/client/{clientAttachTypes-umadXlvp.d.ts → clientAttachTypes-BXtfXB4v.d.ts} +2 -2
- package/dist/next/client/{clientAttachTypes-BzsPgggN.d.mts → clientAttachTypes-qsdoMt_B.d.mts} +2 -2
|
@@ -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
|
-
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
14
13
|
errorOnNotFound?: boolean | undefined;
|
|
14
|
+
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | 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
|
-
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
46
45
|
errorOnNotFound?: boolean | undefined;
|
|
47
|
-
}, {
|
|
48
46
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
47
|
+
}, {
|
|
49
48
|
errorOnNotFound?: boolean | undefined;
|
|
49
|
+
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | 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;
|
|
95
94
|
options?: {
|
|
96
95
|
feature_id: string;
|
|
97
96
|
quantity: number;
|
|
98
97
|
}[] | 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;
|
|
167
166
|
options?: {
|
|
168
167
|
feature_id: string;
|
|
169
168
|
quantity: number;
|
|
170
169
|
}[] | 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;
|
|
183
182
|
options?: {
|
|
184
183
|
feature_id: string;
|
|
185
184
|
quantity: number;
|
|
186
185
|
}[] | undefined;
|
|
186
|
+
entity_id?: string | undefined;
|
|
187
187
|
success_url?: string | undefined;
|
|
188
188
|
customer_data?: {
|
|
189
189
|
name?: string | null | undefined;
|
|
@@ -225,17 +225,14 @@ 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;
|
|
229
228
|
options?: {
|
|
230
229
|
feature_id: string;
|
|
231
230
|
quantity: number;
|
|
232
231
|
}[] | undefined;
|
|
233
232
|
metadata?: Record<string, string> | undefined;
|
|
234
233
|
product_id?: string | undefined;
|
|
235
|
-
|
|
236
|
-
free_trial?: boolean | undefined;
|
|
234
|
+
entity_id?: string | undefined;
|
|
237
235
|
success_url?: string | undefined;
|
|
238
|
-
force_checkout?: boolean | undefined;
|
|
239
236
|
customer_data?: {
|
|
240
237
|
name?: string | null | undefined;
|
|
241
238
|
email?: string | null | undefined;
|
|
@@ -244,6 +241,9 @@ declare const autumn: (options?: {
|
|
|
244
241
|
entity_data?: any;
|
|
245
242
|
checkout_session_params?: Record<string, any> | undefined;
|
|
246
243
|
reward?: string | undefined;
|
|
244
|
+
product_ids?: string[] | undefined;
|
|
245
|
+
free_trial?: boolean | undefined;
|
|
246
|
+
force_checkout?: boolean | undefined;
|
|
247
247
|
invoice?: boolean | undefined;
|
|
248
248
|
};
|
|
249
249
|
} & {
|
|
@@ -307,17 +307,14 @@ declare const autumn: (options?: {
|
|
|
307
307
|
reward: z.ZodOptional<z.ZodString>;
|
|
308
308
|
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
309
309
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
310
|
-
entity_id?: string | undefined;
|
|
311
310
|
options?: {
|
|
312
311
|
feature_id: string;
|
|
313
312
|
quantity: number;
|
|
314
313
|
}[] | undefined;
|
|
315
314
|
metadata?: Record<string, string> | undefined;
|
|
316
315
|
product_id?: string | undefined;
|
|
317
|
-
|
|
318
|
-
free_trial?: boolean | undefined;
|
|
316
|
+
entity_id?: string | undefined;
|
|
319
317
|
success_url?: string | undefined;
|
|
320
|
-
force_checkout?: boolean | undefined;
|
|
321
318
|
customer_data?: {
|
|
322
319
|
name?: string | null | undefined;
|
|
323
320
|
email?: string | null | undefined;
|
|
@@ -326,19 +323,19 @@ declare const autumn: (options?: {
|
|
|
326
323
|
entity_data?: any;
|
|
327
324
|
checkout_session_params?: Record<string, any> | undefined;
|
|
328
325
|
reward?: string | undefined;
|
|
326
|
+
product_ids?: string[] | undefined;
|
|
327
|
+
free_trial?: boolean | undefined;
|
|
328
|
+
force_checkout?: boolean | undefined;
|
|
329
329
|
invoice?: boolean | undefined;
|
|
330
330
|
}, {
|
|
331
|
-
entity_id?: string | undefined;
|
|
332
331
|
options?: {
|
|
333
332
|
feature_id: string;
|
|
334
333
|
quantity: number;
|
|
335
334
|
}[] | undefined;
|
|
336
335
|
metadata?: Record<string, string> | undefined;
|
|
337
336
|
product_id?: string | undefined;
|
|
338
|
-
|
|
339
|
-
free_trial?: boolean | undefined;
|
|
337
|
+
entity_id?: string | undefined;
|
|
340
338
|
success_url?: string | undefined;
|
|
341
|
-
force_checkout?: boolean | undefined;
|
|
342
339
|
customer_data?: {
|
|
343
340
|
name?: string | null | undefined;
|
|
344
341
|
email?: string | null | undefined;
|
|
@@ -347,6 +344,9 @@ declare const autumn: (options?: {
|
|
|
347
344
|
entity_data?: any;
|
|
348
345
|
checkout_session_params?: Record<string, any> | undefined;
|
|
349
346
|
reward?: string | undefined;
|
|
347
|
+
product_ids?: string[] | undefined;
|
|
348
|
+
free_trial?: boolean | undefined;
|
|
349
|
+
force_checkout?: boolean | undefined;
|
|
350
350
|
invoice?: boolean | undefined;
|
|
351
351
|
}>;
|
|
352
352
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
@@ -380,15 +380,15 @@ declare const autumn: (options?: {
|
|
|
380
380
|
check: {
|
|
381
381
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
382
382
|
body: {
|
|
383
|
-
feature_id?: string | undefined;
|
|
384
|
-
entity_id?: string | undefined;
|
|
385
|
-
required_balance?: number | undefined;
|
|
386
383
|
product_id?: string | undefined;
|
|
384
|
+
entity_id?: string | undefined;
|
|
385
|
+
feature_id?: string | undefined;
|
|
387
386
|
customer_data?: any;
|
|
388
387
|
entity_data?: {
|
|
389
388
|
feature_id: string;
|
|
390
389
|
name?: string | undefined;
|
|
391
390
|
} | undefined;
|
|
391
|
+
required_balance?: number | undefined;
|
|
392
392
|
send_event?: boolean | undefined;
|
|
393
393
|
with_preview?: boolean | undefined;
|
|
394
394
|
};
|
|
@@ -436,27 +436,27 @@ declare const autumn: (options?: {
|
|
|
436
436
|
name?: string | undefined;
|
|
437
437
|
}>>;
|
|
438
438
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
439
|
-
feature_id?: string | undefined;
|
|
440
|
-
entity_id?: string | undefined;
|
|
441
|
-
required_balance?: number | undefined;
|
|
442
439
|
product_id?: string | undefined;
|
|
440
|
+
entity_id?: string | undefined;
|
|
441
|
+
feature_id?: string | undefined;
|
|
443
442
|
customer_data?: any;
|
|
444
443
|
entity_data?: {
|
|
445
444
|
feature_id: string;
|
|
446
445
|
name?: string | undefined;
|
|
447
446
|
} | undefined;
|
|
447
|
+
required_balance?: number | undefined;
|
|
448
448
|
send_event?: boolean | undefined;
|
|
449
449
|
with_preview?: boolean | undefined;
|
|
450
450
|
}, {
|
|
451
|
-
feature_id?: string | undefined;
|
|
452
|
-
entity_id?: string | undefined;
|
|
453
|
-
required_balance?: number | undefined;
|
|
454
451
|
product_id?: string | undefined;
|
|
452
|
+
entity_id?: string | undefined;
|
|
453
|
+
feature_id?: string | undefined;
|
|
455
454
|
customer_data?: any;
|
|
456
455
|
entity_data?: {
|
|
457
456
|
feature_id: string;
|
|
458
457
|
name?: string | undefined;
|
|
459
458
|
} | undefined;
|
|
459
|
+
required_balance?: number | undefined;
|
|
460
460
|
send_event?: boolean | undefined;
|
|
461
461
|
with_preview?: boolean | undefined;
|
|
462
462
|
}>;
|
|
@@ -491,9 +491,9 @@ declare const autumn: (options?: {
|
|
|
491
491
|
track: {
|
|
492
492
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
493
493
|
body: {
|
|
494
|
-
feature_id?: string | undefined;
|
|
495
|
-
entity_id?: string | undefined;
|
|
496
494
|
value?: number | undefined;
|
|
495
|
+
entity_id?: string | undefined;
|
|
496
|
+
feature_id?: string | undefined;
|
|
497
497
|
customer_data?: any;
|
|
498
498
|
entity_data?: any;
|
|
499
499
|
event_name?: string | undefined;
|
|
@@ -533,17 +533,17 @@ declare const autumn: (options?: {
|
|
|
533
533
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
534
534
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
535
535
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
536
|
-
feature_id?: string | undefined;
|
|
537
|
-
entity_id?: string | undefined;
|
|
538
536
|
value?: number | undefined;
|
|
537
|
+
entity_id?: string | undefined;
|
|
538
|
+
feature_id?: string | undefined;
|
|
539
539
|
customer_data?: any;
|
|
540
540
|
entity_data?: any;
|
|
541
541
|
event_name?: string | undefined;
|
|
542
542
|
idempotency_key?: string | undefined;
|
|
543
543
|
}, {
|
|
544
|
-
feature_id?: string | undefined;
|
|
545
|
-
entity_id?: string | undefined;
|
|
546
544
|
value?: number | undefined;
|
|
545
|
+
entity_id?: string | undefined;
|
|
546
|
+
feature_id?: string | undefined;
|
|
547
547
|
customer_data?: any;
|
|
548
548
|
entity_data?: any;
|
|
549
549
|
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
|
-
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
14
13
|
errorOnNotFound?: boolean | undefined;
|
|
14
|
+
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | 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
|
-
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
46
45
|
errorOnNotFound?: boolean | undefined;
|
|
47
|
-
}, {
|
|
48
46
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
47
|
+
}, {
|
|
49
48
|
errorOnNotFound?: boolean | undefined;
|
|
49
|
+
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | 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;
|
|
95
94
|
options?: {
|
|
96
95
|
feature_id: string;
|
|
97
96
|
quantity: number;
|
|
98
97
|
}[] | 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;
|
|
167
166
|
options?: {
|
|
168
167
|
feature_id: string;
|
|
169
168
|
quantity: number;
|
|
170
169
|
}[] | 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;
|
|
183
182
|
options?: {
|
|
184
183
|
feature_id: string;
|
|
185
184
|
quantity: number;
|
|
186
185
|
}[] | undefined;
|
|
186
|
+
entity_id?: string | undefined;
|
|
187
187
|
success_url?: string | undefined;
|
|
188
188
|
customer_data?: {
|
|
189
189
|
name?: string | null | undefined;
|
|
@@ -225,17 +225,14 @@ 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;
|
|
229
228
|
options?: {
|
|
230
229
|
feature_id: string;
|
|
231
230
|
quantity: number;
|
|
232
231
|
}[] | undefined;
|
|
233
232
|
metadata?: Record<string, string> | undefined;
|
|
234
233
|
product_id?: string | undefined;
|
|
235
|
-
|
|
236
|
-
free_trial?: boolean | undefined;
|
|
234
|
+
entity_id?: string | undefined;
|
|
237
235
|
success_url?: string | undefined;
|
|
238
|
-
force_checkout?: boolean | undefined;
|
|
239
236
|
customer_data?: {
|
|
240
237
|
name?: string | null | undefined;
|
|
241
238
|
email?: string | null | undefined;
|
|
@@ -244,6 +241,9 @@ declare const autumn: (options?: {
|
|
|
244
241
|
entity_data?: any;
|
|
245
242
|
checkout_session_params?: Record<string, any> | undefined;
|
|
246
243
|
reward?: string | undefined;
|
|
244
|
+
product_ids?: string[] | undefined;
|
|
245
|
+
free_trial?: boolean | undefined;
|
|
246
|
+
force_checkout?: boolean | undefined;
|
|
247
247
|
invoice?: boolean | undefined;
|
|
248
248
|
};
|
|
249
249
|
} & {
|
|
@@ -307,17 +307,14 @@ declare const autumn: (options?: {
|
|
|
307
307
|
reward: z.ZodOptional<z.ZodString>;
|
|
308
308
|
invoice: z.ZodOptional<z.ZodBoolean>;
|
|
309
309
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
310
|
-
entity_id?: string | undefined;
|
|
311
310
|
options?: {
|
|
312
311
|
feature_id: string;
|
|
313
312
|
quantity: number;
|
|
314
313
|
}[] | undefined;
|
|
315
314
|
metadata?: Record<string, string> | undefined;
|
|
316
315
|
product_id?: string | undefined;
|
|
317
|
-
|
|
318
|
-
free_trial?: boolean | undefined;
|
|
316
|
+
entity_id?: string | undefined;
|
|
319
317
|
success_url?: string | undefined;
|
|
320
|
-
force_checkout?: boolean | undefined;
|
|
321
318
|
customer_data?: {
|
|
322
319
|
name?: string | null | undefined;
|
|
323
320
|
email?: string | null | undefined;
|
|
@@ -326,19 +323,19 @@ declare const autumn: (options?: {
|
|
|
326
323
|
entity_data?: any;
|
|
327
324
|
checkout_session_params?: Record<string, any> | undefined;
|
|
328
325
|
reward?: string | undefined;
|
|
326
|
+
product_ids?: string[] | undefined;
|
|
327
|
+
free_trial?: boolean | undefined;
|
|
328
|
+
force_checkout?: boolean | undefined;
|
|
329
329
|
invoice?: boolean | undefined;
|
|
330
330
|
}, {
|
|
331
|
-
entity_id?: string | undefined;
|
|
332
331
|
options?: {
|
|
333
332
|
feature_id: string;
|
|
334
333
|
quantity: number;
|
|
335
334
|
}[] | undefined;
|
|
336
335
|
metadata?: Record<string, string> | undefined;
|
|
337
336
|
product_id?: string | undefined;
|
|
338
|
-
|
|
339
|
-
free_trial?: boolean | undefined;
|
|
337
|
+
entity_id?: string | undefined;
|
|
340
338
|
success_url?: string | undefined;
|
|
341
|
-
force_checkout?: boolean | undefined;
|
|
342
339
|
customer_data?: {
|
|
343
340
|
name?: string | null | undefined;
|
|
344
341
|
email?: string | null | undefined;
|
|
@@ -347,6 +344,9 @@ declare const autumn: (options?: {
|
|
|
347
344
|
entity_data?: any;
|
|
348
345
|
checkout_session_params?: Record<string, any> | undefined;
|
|
349
346
|
reward?: string | undefined;
|
|
347
|
+
product_ids?: string[] | undefined;
|
|
348
|
+
free_trial?: boolean | undefined;
|
|
349
|
+
force_checkout?: boolean | undefined;
|
|
350
350
|
invoice?: boolean | undefined;
|
|
351
351
|
}>;
|
|
352
352
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
@@ -380,15 +380,15 @@ declare const autumn: (options?: {
|
|
|
380
380
|
check: {
|
|
381
381
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
382
382
|
body: {
|
|
383
|
-
feature_id?: string | undefined;
|
|
384
|
-
entity_id?: string | undefined;
|
|
385
|
-
required_balance?: number | undefined;
|
|
386
383
|
product_id?: string | undefined;
|
|
384
|
+
entity_id?: string | undefined;
|
|
385
|
+
feature_id?: string | undefined;
|
|
387
386
|
customer_data?: any;
|
|
388
387
|
entity_data?: {
|
|
389
388
|
feature_id: string;
|
|
390
389
|
name?: string | undefined;
|
|
391
390
|
} | undefined;
|
|
391
|
+
required_balance?: number | undefined;
|
|
392
392
|
send_event?: boolean | undefined;
|
|
393
393
|
with_preview?: boolean | undefined;
|
|
394
394
|
};
|
|
@@ -436,27 +436,27 @@ declare const autumn: (options?: {
|
|
|
436
436
|
name?: string | undefined;
|
|
437
437
|
}>>;
|
|
438
438
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
439
|
-
feature_id?: string | undefined;
|
|
440
|
-
entity_id?: string | undefined;
|
|
441
|
-
required_balance?: number | undefined;
|
|
442
439
|
product_id?: string | undefined;
|
|
440
|
+
entity_id?: string | undefined;
|
|
441
|
+
feature_id?: string | undefined;
|
|
443
442
|
customer_data?: any;
|
|
444
443
|
entity_data?: {
|
|
445
444
|
feature_id: string;
|
|
446
445
|
name?: string | undefined;
|
|
447
446
|
} | undefined;
|
|
447
|
+
required_balance?: number | undefined;
|
|
448
448
|
send_event?: boolean | undefined;
|
|
449
449
|
with_preview?: boolean | undefined;
|
|
450
450
|
}, {
|
|
451
|
-
feature_id?: string | undefined;
|
|
452
|
-
entity_id?: string | undefined;
|
|
453
|
-
required_balance?: number | undefined;
|
|
454
451
|
product_id?: string | undefined;
|
|
452
|
+
entity_id?: string | undefined;
|
|
453
|
+
feature_id?: string | undefined;
|
|
455
454
|
customer_data?: any;
|
|
456
455
|
entity_data?: {
|
|
457
456
|
feature_id: string;
|
|
458
457
|
name?: string | undefined;
|
|
459
458
|
} | undefined;
|
|
459
|
+
required_balance?: number | undefined;
|
|
460
460
|
send_event?: boolean | undefined;
|
|
461
461
|
with_preview?: boolean | undefined;
|
|
462
462
|
}>;
|
|
@@ -491,9 +491,9 @@ declare const autumn: (options?: {
|
|
|
491
491
|
track: {
|
|
492
492
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
493
493
|
body: {
|
|
494
|
-
feature_id?: string | undefined;
|
|
495
|
-
entity_id?: string | undefined;
|
|
496
494
|
value?: number | undefined;
|
|
495
|
+
entity_id?: string | undefined;
|
|
496
|
+
feature_id?: string | undefined;
|
|
497
497
|
customer_data?: any;
|
|
498
498
|
entity_data?: any;
|
|
499
499
|
event_name?: string | undefined;
|
|
@@ -533,17 +533,17 @@ declare const autumn: (options?: {
|
|
|
533
533
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
534
534
|
entity_data: z.ZodOptional<z.ZodAny>;
|
|
535
535
|
}, "customer_id">, "strip", z.ZodTypeAny, {
|
|
536
|
-
feature_id?: string | undefined;
|
|
537
|
-
entity_id?: string | undefined;
|
|
538
536
|
value?: number | undefined;
|
|
537
|
+
entity_id?: string | undefined;
|
|
538
|
+
feature_id?: string | undefined;
|
|
539
539
|
customer_data?: any;
|
|
540
540
|
entity_data?: any;
|
|
541
541
|
event_name?: string | undefined;
|
|
542
542
|
idempotency_key?: string | undefined;
|
|
543
543
|
}, {
|
|
544
|
-
feature_id?: string | undefined;
|
|
545
|
-
entity_id?: string | undefined;
|
|
546
544
|
value?: number | undefined;
|
|
545
|
+
entity_id?: string | undefined;
|
|
546
|
+
feature_id?: string | undefined;
|
|
547
547
|
customer_data?: any;
|
|
548
548
|
entity_data?: any;
|
|
549
549
|
event_name?: string | undefined;
|