@agentuity/auth 0.1.7 → 0.1.9
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/agentuity/config.d.ts +160 -150
- package/dist/agentuity/config.d.ts.map +1 -1
- package/dist/agentuity/config.js +1 -1
- package/dist/agentuity/config.js.map +1 -1
- package/dist/agentuity/react.d.ts +34 -34
- package/package.json +28 -8
- package/AGENTS.md +0 -117
- package/src/agentuity/config.ts +0 -401
- package/src/agentuity/plugins/api-key.ts +0 -158
- package/src/agentuity/plugins/index.ts +0 -35
- package/src/agentuity/plugins/jwt.ts +0 -30
- package/src/agentuity/plugins/organization.ts +0 -345
- package/src/agentuity/react.tsx +0 -366
- package/src/agentuity/server.ts +0 -734
- package/src/agentuity/types.ts +0 -201
- package/src/index.ts +0 -86
- package/src/schema.ts +0 -270
- package/src/types.ts +0 -30
- package/test/agentuity/config.test.ts +0 -621
- package/test/agentuity/server.test.ts +0 -537
- package/test/schema.test.ts +0 -147
- package/tsconfig.json +0 -13
- package/tsconfig.test.json +0 -11
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -118,8 +118,18 @@ export interface AuthBase {
|
|
|
118
118
|
/**
|
|
119
119
|
* Configuration options for auth.
|
|
120
120
|
* Extends BetterAuth options with Agentuity-specific settings.
|
|
121
|
+
*
|
|
122
|
+
* Note: `trustedOrigins` is narrowed to require strict `string[]` (no null/undefined).
|
|
123
|
+
* This ensures type safety for consumers of @agentuity/auth.
|
|
121
124
|
*/
|
|
122
|
-
export interface AuthOptions extends BetterAuthOptions {
|
|
125
|
+
export interface AuthOptions extends Omit<BetterAuthOptions, 'trustedOrigins'> {
|
|
126
|
+
/**
|
|
127
|
+
* List of trusted origins for CORS and callback validation.
|
|
128
|
+
* Can be a static array of origin strings, or a function that returns origins.
|
|
129
|
+
*
|
|
130
|
+
* Unlike BetterAuth's type, this requires strict `string[]` with no null/undefined.
|
|
131
|
+
*/
|
|
132
|
+
trustedOrigins?: TrustedOrigins;
|
|
123
133
|
/**
|
|
124
134
|
* PostgreSQL connection string.
|
|
125
135
|
* When provided, we create a Bun SQL connection and Drizzle instance internally.
|
|
@@ -194,7 +204,7 @@ export declare function getDefaultPlugins(apiKeyOptions?: ApiKeyPluginOptions |
|
|
|
194
204
|
* });
|
|
195
205
|
* ```
|
|
196
206
|
*/
|
|
197
|
-
export declare function createAuth<T extends AuthOptions>(options: T): AuthBase & import("better-auth").Auth<Omit<T, "
|
|
207
|
+
export declare function createAuth<T extends AuthOptions>(options: T): AuthBase & import("better-auth").Auth<Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
198
208
|
trustedOrigins: TrustedOrigins;
|
|
199
209
|
plugins: any[];
|
|
200
210
|
secret?: string | undefined;
|
|
@@ -264,43 +274,43 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
264
274
|
readonly signInSocial: import("better-auth").StrictEndpoint<"/sign-in/social", {
|
|
265
275
|
method: "POST";
|
|
266
276
|
operationId: string;
|
|
267
|
-
body: import("
|
|
268
|
-
callbackURL: import("
|
|
269
|
-
newUserCallbackURL: import("
|
|
270
|
-
errorCallbackURL: import("
|
|
271
|
-
provider: import("
|
|
272
|
-
disableRedirect: import("
|
|
273
|
-
idToken: import("
|
|
274
|
-
token: import("
|
|
275
|
-
nonce: import("
|
|
276
|
-
accessToken: import("
|
|
277
|
-
refreshToken: import("
|
|
278
|
-
expiresAt: import("
|
|
277
|
+
body: import("zod").ZodObject<{
|
|
278
|
+
callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
|
|
279
|
+
newUserCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
|
|
280
|
+
errorCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
|
|
281
|
+
provider: import("zod").ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, import("better-auth").$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
282
|
+
disableRedirect: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
283
|
+
idToken: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
284
|
+
token: import("zod").ZodString;
|
|
285
|
+
nonce: import("zod").ZodOptional<import("zod").ZodString>;
|
|
286
|
+
accessToken: import("zod").ZodOptional<import("zod").ZodString>;
|
|
287
|
+
refreshToken: import("zod").ZodOptional<import("zod").ZodString>;
|
|
288
|
+
expiresAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
279
289
|
}, import("better-auth").$strip>>;
|
|
280
|
-
scopes: import("
|
|
281
|
-
requestSignUp: import("
|
|
282
|
-
loginHint: import("
|
|
283
|
-
additionalData: import("
|
|
290
|
+
scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
291
|
+
requestSignUp: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
292
|
+
loginHint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
293
|
+
additionalData: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
284
294
|
}, import("better-auth").$strip>;
|
|
285
295
|
metadata: {
|
|
286
296
|
$Infer: {
|
|
287
|
-
body: import("
|
|
288
|
-
callbackURL: import("
|
|
289
|
-
newUserCallbackURL: import("
|
|
290
|
-
errorCallbackURL: import("
|
|
291
|
-
provider: import("
|
|
292
|
-
disableRedirect: import("
|
|
293
|
-
idToken: import("
|
|
294
|
-
token: import("
|
|
295
|
-
nonce: import("
|
|
296
|
-
accessToken: import("
|
|
297
|
-
refreshToken: import("
|
|
298
|
-
expiresAt: import("
|
|
297
|
+
body: import("zod").infer<import("zod").ZodObject<{
|
|
298
|
+
callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
|
|
299
|
+
newUserCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
|
|
300
|
+
errorCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
|
|
301
|
+
provider: import("zod").ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, import("better-auth").$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
302
|
+
disableRedirect: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
303
|
+
idToken: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
304
|
+
token: import("zod").ZodString;
|
|
305
|
+
nonce: import("zod").ZodOptional<import("zod").ZodString>;
|
|
306
|
+
accessToken: import("zod").ZodOptional<import("zod").ZodString>;
|
|
307
|
+
refreshToken: import("zod").ZodOptional<import("zod").ZodString>;
|
|
308
|
+
expiresAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
299
309
|
}, import("better-auth").$strip>>;
|
|
300
|
-
scopes: import("
|
|
301
|
-
requestSignUp: import("
|
|
302
|
-
loginHint: import("
|
|
303
|
-
additionalData: import("
|
|
310
|
+
scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
311
|
+
requestSignUp: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
312
|
+
loginHint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
313
|
+
additionalData: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
304
314
|
}, import("better-auth").$strip>>;
|
|
305
315
|
returned: {
|
|
306
316
|
redirect: boolean;
|
|
@@ -314,7 +324,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
314
324
|
emailVerified: boolean;
|
|
315
325
|
name: string;
|
|
316
326
|
image?: string | null | undefined;
|
|
317
|
-
} & (Omit<T, "
|
|
327
|
+
} & (Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
318
328
|
trustedOrigins: TrustedOrigins;
|
|
319
329
|
plugins: any[];
|
|
320
330
|
secret?: string | undefined;
|
|
@@ -327,7 +337,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
327
337
|
experimental: {
|
|
328
338
|
joins: boolean;
|
|
329
339
|
};
|
|
330
|
-
} extends infer T_1 ? T_1 extends Omit<T, "
|
|
340
|
+
} extends infer T_1 ? T_1 extends Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
331
341
|
trustedOrigins: TrustedOrigins;
|
|
332
342
|
plugins: any[];
|
|
333
343
|
secret?: string | undefined;
|
|
@@ -393,7 +403,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
393
403
|
emailVerified: boolean;
|
|
394
404
|
name: string;
|
|
395
405
|
image?: string | null | undefined;
|
|
396
|
-
} & (Omit<T, "
|
|
406
|
+
} & (Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
397
407
|
trustedOrigins: TrustedOrigins;
|
|
398
408
|
plugins: any[];
|
|
399
409
|
secret?: string | undefined;
|
|
@@ -406,7 +416,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
406
416
|
experimental: {
|
|
407
417
|
joins: boolean;
|
|
408
418
|
};
|
|
409
|
-
} extends infer T_2 ? T_2 extends Omit<T, "
|
|
419
|
+
} extends infer T_2 ? T_2 extends Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
410
420
|
trustedOrigins: TrustedOrigins;
|
|
411
421
|
plugins: any[];
|
|
412
422
|
secret?: string | undefined;
|
|
@@ -424,21 +434,21 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
424
434
|
readonly callbackOAuth: import("better-auth").StrictEndpoint<"/callback/:id", {
|
|
425
435
|
method: ("GET" | "POST")[];
|
|
426
436
|
operationId: string;
|
|
427
|
-
body: import("
|
|
428
|
-
code: import("
|
|
429
|
-
error: import("
|
|
430
|
-
device_id: import("
|
|
431
|
-
error_description: import("
|
|
432
|
-
state: import("
|
|
433
|
-
user: import("
|
|
437
|
+
body: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
438
|
+
code: import("zod").ZodOptional<import("zod").ZodString>;
|
|
439
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
440
|
+
device_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
441
|
+
error_description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
442
|
+
state: import("zod").ZodOptional<import("zod").ZodString>;
|
|
443
|
+
user: import("zod").ZodOptional<import("zod").ZodString>;
|
|
434
444
|
}, import("better-auth").$strip>>;
|
|
435
|
-
query: import("
|
|
436
|
-
code: import("
|
|
437
|
-
error: import("
|
|
438
|
-
device_id: import("
|
|
439
|
-
error_description: import("
|
|
440
|
-
state: import("
|
|
441
|
-
user: import("
|
|
445
|
+
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
446
|
+
code: import("zod").ZodOptional<import("zod").ZodString>;
|
|
447
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
448
|
+
device_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
449
|
+
error_description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
450
|
+
state: import("zod").ZodOptional<import("zod").ZodString>;
|
|
451
|
+
user: import("zod").ZodOptional<import("zod").ZodString>;
|
|
442
452
|
}, import("better-auth").$strip>>;
|
|
443
453
|
metadata: {
|
|
444
454
|
allowedMediaTypes: string[];
|
|
@@ -448,9 +458,9 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
448
458
|
readonly getSession: import("better-auth").StrictEndpoint<"/get-session", {
|
|
449
459
|
method: "GET";
|
|
450
460
|
operationId: string;
|
|
451
|
-
query: import("
|
|
452
|
-
disableCookieCache: import("
|
|
453
|
-
disableRefresh: import("
|
|
461
|
+
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
462
|
+
disableCookieCache: import("zod").ZodOptional<import("zod").ZodCoercedBoolean<unknown>>;
|
|
463
|
+
disableRefresh: import("zod").ZodOptional<import("zod").ZodCoercedBoolean<unknown>>;
|
|
454
464
|
}, import("better-auth").$strip>>;
|
|
455
465
|
requireHeaders: true;
|
|
456
466
|
metadata: {
|
|
@@ -491,7 +501,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
491
501
|
token: string;
|
|
492
502
|
ipAddress?: string | null | undefined;
|
|
493
503
|
userAgent?: string | null | undefined;
|
|
494
|
-
} & (Omit<T, "
|
|
504
|
+
} & (Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
495
505
|
trustedOrigins: TrustedOrigins;
|
|
496
506
|
plugins: any[];
|
|
497
507
|
secret?: string | undefined;
|
|
@@ -504,7 +514,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
504
514
|
experimental: {
|
|
505
515
|
joins: boolean;
|
|
506
516
|
};
|
|
507
|
-
} extends infer T_3 ? T_3 extends Omit<T, "
|
|
517
|
+
} extends infer T_3 ? T_3 extends Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
508
518
|
trustedOrigins: TrustedOrigins;
|
|
509
519
|
plugins: any[];
|
|
510
520
|
secret?: string | undefined;
|
|
@@ -526,7 +536,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
526
536
|
emailVerified: boolean;
|
|
527
537
|
name: string;
|
|
528
538
|
image?: string | null | undefined;
|
|
529
|
-
} & (Omit<T, "
|
|
539
|
+
} & (Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
530
540
|
trustedOrigins: TrustedOrigins;
|
|
531
541
|
plugins: any[];
|
|
532
542
|
secret?: string | undefined;
|
|
@@ -539,7 +549,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
539
549
|
experimental: {
|
|
540
550
|
joins: boolean;
|
|
541
551
|
};
|
|
542
|
-
} extends infer T_4 ? T_4 extends Omit<T, "
|
|
552
|
+
} extends infer T_4 ? T_4 extends Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
543
553
|
trustedOrigins: TrustedOrigins;
|
|
544
554
|
plugins: any[];
|
|
545
555
|
secret?: string | undefined;
|
|
@@ -588,14 +598,14 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
588
598
|
method: "POST";
|
|
589
599
|
operationId: string;
|
|
590
600
|
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
|
|
591
|
-
body: import("
|
|
592
|
-
name: import("
|
|
593
|
-
email: import("
|
|
594
|
-
password: import("
|
|
595
|
-
image: import("
|
|
596
|
-
callbackURL: import("
|
|
597
|
-
rememberMe: import("
|
|
598
|
-
}, import("better-auth").$strip>, import("
|
|
601
|
+
body: import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
602
|
+
name: import("zod").ZodString;
|
|
603
|
+
email: import("zod").ZodEmail;
|
|
604
|
+
password: import("zod").ZodString;
|
|
605
|
+
image: import("zod").ZodOptional<import("zod").ZodString>;
|
|
606
|
+
callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
|
|
607
|
+
rememberMe: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
608
|
+
}, import("better-auth").$strip>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
599
609
|
metadata: {
|
|
600
610
|
allowedMediaTypes: string[];
|
|
601
611
|
$Infer: {
|
|
@@ -606,7 +616,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
606
616
|
image?: string | undefined;
|
|
607
617
|
callbackURL?: string | undefined;
|
|
608
618
|
rememberMe?: boolean | undefined;
|
|
609
|
-
} & import("better-auth/db").InferFieldsFromPlugins<Omit<T, "
|
|
619
|
+
} & import("better-auth/db").InferFieldsFromPlugins<Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
610
620
|
trustedOrigins: TrustedOrigins;
|
|
611
621
|
plugins: any[];
|
|
612
622
|
secret?: string | undefined;
|
|
@@ -619,7 +629,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
619
629
|
experimental: {
|
|
620
630
|
joins: boolean;
|
|
621
631
|
};
|
|
622
|
-
}, "user", "input"> & import("better-auth/db").InferFieldsFromOptions<Omit<T, "
|
|
632
|
+
}, "user", "input"> & import("better-auth/db").InferFieldsFromOptions<Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
623
633
|
trustedOrigins: TrustedOrigins;
|
|
624
634
|
plugins: any[];
|
|
625
635
|
secret?: string | undefined;
|
|
@@ -643,7 +653,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
643
653
|
emailVerified: boolean;
|
|
644
654
|
name: string;
|
|
645
655
|
image?: string | null | undefined;
|
|
646
|
-
} & (Omit<T, "
|
|
656
|
+
} & (Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
647
657
|
trustedOrigins: TrustedOrigins;
|
|
648
658
|
plugins: any[];
|
|
649
659
|
secret?: string | undefined;
|
|
@@ -656,7 +666,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
656
666
|
experimental: {
|
|
657
667
|
joins: boolean;
|
|
658
668
|
};
|
|
659
|
-
} extends infer T_5 ? T_5 extends Omit<T, "
|
|
669
|
+
} extends infer T_5 ? T_5 extends Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
660
670
|
trustedOrigins: TrustedOrigins;
|
|
661
671
|
plugins: any[];
|
|
662
672
|
secret?: string | undefined;
|
|
@@ -797,7 +807,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
797
807
|
emailVerified: boolean;
|
|
798
808
|
name: string;
|
|
799
809
|
image?: string | null | undefined;
|
|
800
|
-
} & (Omit<T, "
|
|
810
|
+
} & (Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
801
811
|
trustedOrigins: TrustedOrigins;
|
|
802
812
|
plugins: any[];
|
|
803
813
|
secret?: string | undefined;
|
|
@@ -810,7 +820,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
810
820
|
experimental: {
|
|
811
821
|
joins: boolean;
|
|
812
822
|
};
|
|
813
|
-
} extends infer T_6 ? T_6 extends Omit<T, "
|
|
823
|
+
} extends infer T_6 ? T_6 extends Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
814
824
|
trustedOrigins: TrustedOrigins;
|
|
815
825
|
plugins: any[];
|
|
816
826
|
secret?: string | undefined;
|
|
@@ -834,7 +844,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
834
844
|
emailVerified: boolean;
|
|
835
845
|
name: string;
|
|
836
846
|
image?: string | null | undefined;
|
|
837
|
-
} & (Omit<T, "
|
|
847
|
+
} & (Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
838
848
|
trustedOrigins: TrustedOrigins;
|
|
839
849
|
plugins: any[];
|
|
840
850
|
secret?: string | undefined;
|
|
@@ -847,7 +857,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
847
857
|
experimental: {
|
|
848
858
|
joins: boolean;
|
|
849
859
|
};
|
|
850
|
-
} extends infer T_7 ? T_7 extends Omit<T, "
|
|
860
|
+
} extends infer T_7 ? T_7 extends Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
851
861
|
trustedOrigins: TrustedOrigins;
|
|
852
862
|
plugins: any[];
|
|
853
863
|
secret?: string | undefined;
|
|
@@ -866,11 +876,11 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
866
876
|
method: "POST";
|
|
867
877
|
operationId: string;
|
|
868
878
|
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
|
|
869
|
-
body: import("
|
|
870
|
-
email: import("
|
|
871
|
-
password: import("
|
|
872
|
-
callbackURL: import("
|
|
873
|
-
rememberMe: import("
|
|
879
|
+
body: import("zod").ZodObject<{
|
|
880
|
+
email: import("zod").ZodString;
|
|
881
|
+
password: import("zod").ZodString;
|
|
882
|
+
callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
|
|
883
|
+
rememberMe: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
874
884
|
}, import("better-auth").$strip>;
|
|
875
885
|
metadata: {
|
|
876
886
|
allowedMediaTypes: string[];
|
|
@@ -893,7 +903,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
893
903
|
emailVerified: boolean;
|
|
894
904
|
name: string;
|
|
895
905
|
image?: string | null | undefined;
|
|
896
|
-
} & (Omit<T, "
|
|
906
|
+
} & (Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
897
907
|
trustedOrigins: TrustedOrigins;
|
|
898
908
|
plugins: any[];
|
|
899
909
|
secret?: string | undefined;
|
|
@@ -906,7 +916,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
906
916
|
experimental: {
|
|
907
917
|
joins: boolean;
|
|
908
918
|
};
|
|
909
|
-
} extends infer T_8 ? T_8 extends Omit<T, "
|
|
919
|
+
} extends infer T_8 ? T_8 extends Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
910
920
|
trustedOrigins: TrustedOrigins;
|
|
911
921
|
plugins: any[];
|
|
912
922
|
secret?: string | undefined;
|
|
@@ -971,7 +981,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
971
981
|
emailVerified: boolean;
|
|
972
982
|
name: string;
|
|
973
983
|
image?: string | null | undefined;
|
|
974
|
-
} & (Omit<T, "
|
|
984
|
+
} & (Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
975
985
|
trustedOrigins: TrustedOrigins;
|
|
976
986
|
plugins: any[];
|
|
977
987
|
secret?: string | undefined;
|
|
@@ -984,7 +994,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
984
994
|
experimental: {
|
|
985
995
|
joins: boolean;
|
|
986
996
|
};
|
|
987
|
-
} extends infer T_9 ? T_9 extends Omit<T, "
|
|
997
|
+
} extends infer T_9 ? T_9 extends Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
988
998
|
trustedOrigins: TrustedOrigins;
|
|
989
999
|
plugins: any[];
|
|
990
1000
|
secret?: string | undefined;
|
|
@@ -1002,12 +1012,12 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
1002
1012
|
readonly resetPassword: import("better-auth").StrictEndpoint<"/reset-password", {
|
|
1003
1013
|
method: "POST";
|
|
1004
1014
|
operationId: string;
|
|
1005
|
-
query: import("
|
|
1006
|
-
token: import("
|
|
1015
|
+
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1016
|
+
token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1007
1017
|
}, import("better-auth").$strip>>;
|
|
1008
|
-
body: import("
|
|
1009
|
-
newPassword: import("
|
|
1010
|
-
token: import("
|
|
1018
|
+
body: import("zod").ZodObject<{
|
|
1019
|
+
newPassword: import("zod").ZodString;
|
|
1020
|
+
token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1011
1021
|
}, import("better-auth").$strip>;
|
|
1012
1022
|
metadata: {
|
|
1013
1023
|
openapi: {
|
|
@@ -1038,9 +1048,9 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
1038
1048
|
readonly verifyEmail: import("better-auth").StrictEndpoint<"/verify-email", {
|
|
1039
1049
|
method: "GET";
|
|
1040
1050
|
operationId: string;
|
|
1041
|
-
query: import("
|
|
1042
|
-
token: import("
|
|
1043
|
-
callbackURL: import("
|
|
1051
|
+
query: import("zod").ZodObject<{
|
|
1052
|
+
token: import("zod").ZodString;
|
|
1053
|
+
callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1044
1054
|
}, import("better-auth").$strip>;
|
|
1045
1055
|
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
|
|
1046
1056
|
metadata: {
|
|
@@ -1094,9 +1104,9 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
1094
1104
|
readonly sendVerificationEmail: import("better-auth").StrictEndpoint<"/send-verification-email", {
|
|
1095
1105
|
method: "POST";
|
|
1096
1106
|
operationId: string;
|
|
1097
|
-
body: import("
|
|
1098
|
-
email: import("
|
|
1099
|
-
callbackURL: import("
|
|
1107
|
+
body: import("zod").ZodObject<{
|
|
1108
|
+
email: import("zod").ZodEmail;
|
|
1109
|
+
callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1100
1110
|
}, import("better-auth").$strip>;
|
|
1101
1111
|
metadata: {
|
|
1102
1112
|
openapi: {
|
|
@@ -1168,9 +1178,9 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
1168
1178
|
}>;
|
|
1169
1179
|
readonly changeEmail: import("better-auth").StrictEndpoint<"/change-email", {
|
|
1170
1180
|
method: "POST";
|
|
1171
|
-
body: import("
|
|
1172
|
-
newEmail: import("
|
|
1173
|
-
callbackURL: import("
|
|
1181
|
+
body: import("zod").ZodObject<{
|
|
1182
|
+
newEmail: import("zod").ZodEmail;
|
|
1183
|
+
callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1174
1184
|
}, import("better-auth").$strip>;
|
|
1175
1185
|
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1176
1186
|
session: {
|
|
@@ -1250,10 +1260,10 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
1250
1260
|
readonly changePassword: import("better-auth").StrictEndpoint<"/change-password", {
|
|
1251
1261
|
method: "POST";
|
|
1252
1262
|
operationId: string;
|
|
1253
|
-
body: import("
|
|
1254
|
-
newPassword: import("
|
|
1255
|
-
currentPassword: import("
|
|
1256
|
-
revokeOtherSessions: import("
|
|
1263
|
+
body: import("zod").ZodObject<{
|
|
1264
|
+
newPassword: import("zod").ZodString;
|
|
1265
|
+
currentPassword: import("zod").ZodString;
|
|
1266
|
+
revokeOtherSessions: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1257
1267
|
}, import("better-auth").$strip>;
|
|
1258
1268
|
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1259
1269
|
session: {
|
|
@@ -1357,8 +1367,8 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
1357
1367
|
}>;
|
|
1358
1368
|
readonly setPassword: import("better-auth").StrictEndpoint<string, {
|
|
1359
1369
|
method: "POST";
|
|
1360
|
-
body: import("
|
|
1361
|
-
newPassword: import("
|
|
1370
|
+
body: import("zod").ZodObject<{
|
|
1371
|
+
newPassword: import("zod").ZodString;
|
|
1362
1372
|
}, import("better-auth").$strip>;
|
|
1363
1373
|
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1364
1374
|
session: {
|
|
@@ -1389,7 +1399,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
1389
1399
|
readonly updateUser: import("better-auth").StrictEndpoint<"/update-user", {
|
|
1390
1400
|
method: "POST";
|
|
1391
1401
|
operationId: string;
|
|
1392
|
-
body: import("
|
|
1402
|
+
body: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
1393
1403
|
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1394
1404
|
session: {
|
|
1395
1405
|
session: Record<string, any> & {
|
|
@@ -1415,7 +1425,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
1415
1425
|
}>)[];
|
|
1416
1426
|
metadata: {
|
|
1417
1427
|
$Infer: {
|
|
1418
|
-
body: Partial<import("better-auth").AdditionalUserFieldsInput<Omit<T, "
|
|
1428
|
+
body: Partial<import("better-auth").AdditionalUserFieldsInput<Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
1419
1429
|
trustedOrigins: TrustedOrigins;
|
|
1420
1430
|
plugins: any[];
|
|
1421
1431
|
secret?: string | undefined;
|
|
@@ -1504,10 +1514,10 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
1504
1514
|
};
|
|
1505
1515
|
};
|
|
1506
1516
|
}>)[];
|
|
1507
|
-
body: import("
|
|
1508
|
-
callbackURL: import("
|
|
1509
|
-
password: import("
|
|
1510
|
-
token: import("
|
|
1517
|
+
body: import("zod").ZodObject<{
|
|
1518
|
+
callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1519
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1520
|
+
token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1511
1521
|
}, import("better-auth").$strip>;
|
|
1512
1522
|
metadata: {
|
|
1513
1523
|
openapi: {
|
|
@@ -1568,9 +1578,9 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
1568
1578
|
}>;
|
|
1569
1579
|
readonly requestPasswordReset: import("better-auth").StrictEndpoint<"/request-password-reset", {
|
|
1570
1580
|
method: "POST";
|
|
1571
|
-
body: import("
|
|
1572
|
-
email: import("
|
|
1573
|
-
redirectTo: import("
|
|
1581
|
+
body: import("zod").ZodObject<{
|
|
1582
|
+
email: import("zod").ZodEmail;
|
|
1583
|
+
redirectTo: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1574
1584
|
}, import("better-auth").$strip>;
|
|
1575
1585
|
metadata: {
|
|
1576
1586
|
openapi: {
|
|
@@ -1605,8 +1615,8 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
1605
1615
|
readonly requestPasswordResetCallback: import("better-auth").StrictEndpoint<"/reset-password/:token", {
|
|
1606
1616
|
method: "GET";
|
|
1607
1617
|
operationId: string;
|
|
1608
|
-
query: import("
|
|
1609
|
-
callbackURL: import("
|
|
1618
|
+
query: import("zod").ZodObject<{
|
|
1619
|
+
callbackURL: import("zod").ZodString;
|
|
1610
1620
|
}, import("better-auth").$strip>;
|
|
1611
1621
|
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
|
|
1612
1622
|
metadata: {
|
|
@@ -1707,7 +1717,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
1707
1717
|
token: string;
|
|
1708
1718
|
ipAddress?: string | null | undefined;
|
|
1709
1719
|
userAgent?: string | null | undefined;
|
|
1710
|
-
} & (Omit<T, "
|
|
1720
|
+
} & (Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
1711
1721
|
trustedOrigins: TrustedOrigins;
|
|
1712
1722
|
plugins: any[];
|
|
1713
1723
|
secret?: string | undefined;
|
|
@@ -1720,7 +1730,7 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
1720
1730
|
experimental: {
|
|
1721
1731
|
joins: boolean;
|
|
1722
1732
|
};
|
|
1723
|
-
} extends infer T_10 ? T_10 extends Omit<T, "
|
|
1733
|
+
} extends infer T_10 ? T_10 extends Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
1724
1734
|
trustedOrigins: TrustedOrigins;
|
|
1725
1735
|
plugins: any[];
|
|
1726
1736
|
secret?: string | undefined;
|
|
@@ -1736,8 +1746,8 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
1736
1746
|
} ? T_10 extends BetterAuthOptions ? import("better-auth").AdditionalSessionFieldsOutput<T_10> : T_10 extends import("better-auth").Auth ? import("better-auth").AdditionalSessionFieldsOutput<T_10["options"]> : {} : never : never)>>>[]>;
|
|
1737
1747
|
readonly revokeSession: import("better-auth").StrictEndpoint<"/revoke-session", {
|
|
1738
1748
|
method: "POST";
|
|
1739
|
-
body: import("
|
|
1740
|
-
token: import("
|
|
1749
|
+
body: import("zod").ZodObject<{
|
|
1750
|
+
token: import("zod").ZodString;
|
|
1741
1751
|
}, import("better-auth").$strip>;
|
|
1742
1752
|
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1743
1753
|
session: {
|
|
@@ -1915,21 +1925,21 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
1915
1925
|
readonly linkSocialAccount: import("better-auth").StrictEndpoint<"/link-social", {
|
|
1916
1926
|
method: "POST";
|
|
1917
1927
|
requireHeaders: true;
|
|
1918
|
-
body: import("
|
|
1919
|
-
callbackURL: import("
|
|
1920
|
-
provider: import("
|
|
1921
|
-
idToken: import("
|
|
1922
|
-
token: import("
|
|
1923
|
-
nonce: import("
|
|
1924
|
-
accessToken: import("
|
|
1925
|
-
refreshToken: import("
|
|
1926
|
-
scopes: import("
|
|
1928
|
+
body: import("zod").ZodObject<{
|
|
1929
|
+
callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1930
|
+
provider: import("zod").ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, import("better-auth").$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
1931
|
+
idToken: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1932
|
+
token: import("zod").ZodString;
|
|
1933
|
+
nonce: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1934
|
+
accessToken: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1935
|
+
refreshToken: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1936
|
+
scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1927
1937
|
}, import("better-auth").$strip>>;
|
|
1928
|
-
requestSignUp: import("
|
|
1929
|
-
scopes: import("
|
|
1930
|
-
errorCallbackURL: import("
|
|
1931
|
-
disableRedirect: import("
|
|
1932
|
-
additionalData: import("
|
|
1938
|
+
requestSignUp: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1939
|
+
scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1940
|
+
errorCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1941
|
+
disableRedirect: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1942
|
+
additionalData: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1933
1943
|
}, import("better-auth").$strip>;
|
|
1934
1944
|
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1935
1945
|
session: {
|
|
@@ -2076,9 +2086,9 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
2076
2086
|
}[]>;
|
|
2077
2087
|
readonly deleteUserCallback: import("better-auth").StrictEndpoint<"/delete-user/callback", {
|
|
2078
2088
|
method: "GET";
|
|
2079
|
-
query: import("
|
|
2080
|
-
token: import("
|
|
2081
|
-
callbackURL: import("
|
|
2089
|
+
query: import("zod").ZodObject<{
|
|
2090
|
+
token: import("zod").ZodString;
|
|
2091
|
+
callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2082
2092
|
}, import("better-auth").$strip>;
|
|
2083
2093
|
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
|
|
2084
2094
|
metadata: {
|
|
@@ -2116,9 +2126,9 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
2116
2126
|
}>;
|
|
2117
2127
|
readonly unlinkAccount: import("better-auth").StrictEndpoint<"/unlink-account", {
|
|
2118
2128
|
method: "POST";
|
|
2119
|
-
body: import("
|
|
2120
|
-
providerId: import("
|
|
2121
|
-
accountId: import("
|
|
2129
|
+
body: import("zod").ZodObject<{
|
|
2130
|
+
providerId: import("zod").ZodString;
|
|
2131
|
+
accountId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2122
2132
|
}, import("better-auth").$strip>;
|
|
2123
2133
|
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
2124
2134
|
session: {
|
|
@@ -2170,10 +2180,10 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
2170
2180
|
}>;
|
|
2171
2181
|
readonly refreshToken: import("better-auth").StrictEndpoint<"/refresh-token", {
|
|
2172
2182
|
method: "POST";
|
|
2173
|
-
body: import("
|
|
2174
|
-
providerId: import("
|
|
2175
|
-
accountId: import("
|
|
2176
|
-
userId: import("
|
|
2183
|
+
body: import("zod").ZodObject<{
|
|
2184
|
+
providerId: import("zod").ZodString;
|
|
2185
|
+
accountId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2186
|
+
userId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2177
2187
|
}, import("better-auth").$strip>;
|
|
2178
2188
|
metadata: {
|
|
2179
2189
|
openapi: {
|
|
@@ -2229,10 +2239,10 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
2229
2239
|
}>;
|
|
2230
2240
|
readonly getAccessToken: import("better-auth").StrictEndpoint<"/get-access-token", {
|
|
2231
2241
|
method: "POST";
|
|
2232
|
-
body: import("
|
|
2233
|
-
providerId: import("
|
|
2234
|
-
accountId: import("
|
|
2235
|
-
userId: import("
|
|
2242
|
+
body: import("zod").ZodObject<{
|
|
2243
|
+
providerId: import("zod").ZodString;
|
|
2244
|
+
accountId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2245
|
+
userId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2236
2246
|
}, import("better-auth").$strip>;
|
|
2237
2247
|
metadata: {
|
|
2238
2248
|
openapi: {
|
|
@@ -2354,14 +2364,14 @@ export declare function createAuth<T extends AuthOptions>(options: T): AuthBase
|
|
|
2354
2364
|
};
|
|
2355
2365
|
};
|
|
2356
2366
|
};
|
|
2357
|
-
query: import("
|
|
2358
|
-
accountId: import("
|
|
2367
|
+
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2368
|
+
accountId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2359
2369
|
}, import("better-auth").$strip>>;
|
|
2360
2370
|
}, {
|
|
2361
2371
|
user: import("better-auth").OAuth2UserInfo;
|
|
2362
2372
|
data: Record<string, any>;
|
|
2363
2373
|
} | null>;
|
|
2364
|
-
} & import("better-auth").UnionToIntersection<(Omit<T, "
|
|
2374
|
+
} & import("better-auth").UnionToIntersection<(Omit<T, "plugins" | "connectionString" | "skipDefaultPlugins" | "apiKey"> & {
|
|
2365
2375
|
trustedOrigins: TrustedOrigins;
|
|
2366
2376
|
plugins: any[];
|
|
2367
2377
|
secret?: string | undefined;
|