better-auth 1.2.6-beta.7 → 1.2.7-beta.1
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/adapters/drizzle-adapter/index.cjs +186 -249
- package/dist/adapters/drizzle-adapter/index.d.cts +11 -49
- package/dist/adapters/drizzle-adapter/index.d.mts +11 -49
- package/dist/adapters/drizzle-adapter/index.d.ts +11 -49
- package/dist/adapters/drizzle-adapter/index.mjs +186 -249
- package/dist/adapters/index.cjs +26 -0
- package/dist/adapters/index.d.cts +17 -0
- package/dist/adapters/index.d.mts +17 -0
- package/dist/adapters/index.d.ts +17 -0
- package/dist/adapters/index.mjs +20 -0
- package/dist/adapters/kysely-adapter/index.cjs +7 -7
- package/dist/adapters/kysely-adapter/index.d.cts +17 -49
- package/dist/adapters/kysely-adapter/index.d.mts +17 -49
- package/dist/adapters/kysely-adapter/index.d.ts +17 -49
- package/dist/adapters/kysely-adapter/index.mjs +8 -8
- package/dist/adapters/memory-adapter/index.cjs +7 -8
- package/dist/adapters/memory-adapter/index.d.cts +9 -49
- package/dist/adapters/memory-adapter/index.d.mts +9 -49
- package/dist/adapters/memory-adapter/index.d.ts +9 -49
- package/dist/adapters/memory-adapter/index.mjs +8 -9
- package/dist/adapters/mongodb-adapter/index.cjs +2 -2
- package/dist/adapters/mongodb-adapter/index.d.cts +4 -4
- package/dist/adapters/mongodb-adapter/index.d.mts +4 -4
- package/dist/adapters/mongodb-adapter/index.d.ts +4 -4
- package/dist/adapters/mongodb-adapter/index.mjs +3 -3
- package/dist/adapters/prisma-adapter/index.cjs +130 -203
- package/dist/adapters/prisma-adapter/index.d.cts +17 -49
- package/dist/adapters/prisma-adapter/index.d.mts +17 -49
- package/dist/adapters/prisma-adapter/index.d.ts +17 -49
- package/dist/adapters/prisma-adapter/index.mjs +131 -204
- package/dist/adapters/test.cjs +710 -377
- package/dist/adapters/test.d.cts +64 -5
- package/dist/adapters/test.d.mts +64 -5
- package/dist/adapters/test.d.ts +64 -5
- package/dist/adapters/test.mjs +712 -380
- package/dist/api/index.cjs +61 -25
- package/dist/api/index.d.cts +3 -3
- package/dist/api/index.d.mts +3 -3
- package/dist/api/index.d.ts +3 -3
- package/dist/api/index.mjs +63 -27
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.mts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/plugins/index.cjs +13 -15
- package/dist/client/plugins/index.d.cts +80 -19
- package/dist/client/plugins/index.d.mts +80 -19
- package/dist/client/plugins/index.d.ts +80 -19
- package/dist/client/plugins/index.mjs +13 -16
- package/dist/client/react/index.cjs +4 -4
- package/dist/client/react/index.d.cts +3 -3
- package/dist/client/react/index.d.mts +3 -3
- package/dist/client/react/index.d.ts +3 -3
- package/dist/client/solid/index.d.cts +3 -3
- package/dist/client/solid/index.d.mts +3 -3
- package/dist/client/solid/index.d.ts +3 -3
- package/dist/client/svelte/index.d.cts +3 -3
- package/dist/client/svelte/index.d.mts +3 -3
- package/dist/client/svelte/index.d.ts +3 -3
- package/dist/client/vue/index.d.cts +3 -3
- package/dist/client/vue/index.d.mts +3 -3
- package/dist/client/vue/index.d.ts +3 -3
- package/dist/cookies/index.cjs +13 -2
- package/dist/cookies/index.d.cts +3 -3
- package/dist/cookies/index.d.mts +3 -3
- package/dist/cookies/index.d.ts +3 -3
- package/dist/cookies/index.mjs +13 -2
- package/dist/db/index.cjs +6 -5
- package/dist/db/index.d.cts +4 -4
- package/dist/db/index.d.mts +4 -4
- package/dist/db/index.d.ts +4 -4
- package/dist/db/index.mjs +7 -6
- package/dist/index.cjs +11 -7
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +14 -10
- package/dist/integrations/next-js.cjs +4 -5
- package/dist/integrations/next-js.d.cts +3 -3
- package/dist/integrations/next-js.d.mts +3 -3
- package/dist/integrations/next-js.d.ts +3 -3
- package/dist/integrations/next-js.mjs +5 -6
- package/dist/integrations/node.d.cts +3 -3
- package/dist/integrations/node.d.mts +3 -3
- package/dist/integrations/node.d.ts +3 -3
- package/dist/integrations/react-start.cjs +5 -6
- package/dist/integrations/react-start.d.cts +3 -3
- package/dist/integrations/react-start.d.mts +3 -3
- package/dist/integrations/react-start.d.ts +3 -3
- package/dist/integrations/react-start.mjs +6 -7
- package/dist/integrations/svelte-kit.d.cts +3 -3
- package/dist/integrations/svelte-kit.d.mts +3 -3
- package/dist/integrations/svelte-kit.d.ts +3 -3
- package/dist/oauth2/index.d.cts +5 -5
- package/dist/oauth2/index.d.mts +5 -5
- package/dist/oauth2/index.d.ts +5 -5
- package/dist/plugins/access/index.d.cts +1 -1
- package/dist/plugins/access/index.d.mts +1 -1
- package/dist/plugins/access/index.d.ts +1 -1
- package/dist/plugins/admin/access/index.d.cts +1 -1
- package/dist/plugins/admin/access/index.d.mts +1 -1
- package/dist/plugins/admin/access/index.d.ts +1 -1
- package/dist/plugins/admin/index.cjs +4 -4
- package/dist/plugins/admin/index.d.cts +74 -14
- package/dist/plugins/admin/index.d.mts +74 -14
- package/dist/plugins/admin/index.d.ts +74 -14
- package/dist/plugins/admin/index.mjs +5 -5
- package/dist/plugins/anonymous/index.cjs +4 -5
- package/dist/plugins/anonymous/index.d.cts +3 -3
- package/dist/plugins/anonymous/index.d.mts +3 -3
- package/dist/plugins/anonymous/index.d.ts +3 -3
- package/dist/plugins/anonymous/index.mjs +5 -6
- package/dist/plugins/bearer/index.cjs +2 -2
- package/dist/plugins/bearer/index.d.cts +3 -3
- package/dist/plugins/bearer/index.d.mts +3 -3
- package/dist/plugins/bearer/index.d.ts +3 -3
- package/dist/plugins/bearer/index.mjs +3 -3
- package/dist/plugins/captcha/index.cjs +110 -45
- package/dist/plugins/captcha/index.d.cts +26 -6
- package/dist/plugins/captcha/index.d.mts +26 -6
- package/dist/plugins/captcha/index.d.ts +26 -6
- package/dist/plugins/captcha/index.mjs +110 -45
- package/dist/plugins/custom-session/index.cjs +24 -5
- package/dist/plugins/custom-session/index.d.cts +25 -6
- package/dist/plugins/custom-session/index.d.mts +25 -6
- package/dist/plugins/custom-session/index.d.ts +25 -6
- package/dist/plugins/custom-session/index.mjs +25 -6
- package/dist/plugins/email-otp/index.cjs +96 -30
- package/dist/plugins/email-otp/index.d.cts +33 -10
- package/dist/plugins/email-otp/index.d.mts +33 -10
- package/dist/plugins/email-otp/index.d.ts +33 -10
- package/dist/plugins/email-otp/index.mjs +97 -31
- package/dist/plugins/generic-oauth/index.cjs +81 -20
- package/dist/plugins/generic-oauth/index.d.cts +46 -3
- package/dist/plugins/generic-oauth/index.d.mts +46 -3
- package/dist/plugins/generic-oauth/index.d.ts +46 -3
- package/dist/plugins/generic-oauth/index.mjs +82 -21
- package/dist/plugins/haveibeenpwned/index.cjs +98 -0
- package/dist/plugins/haveibeenpwned/index.d.cts +36 -0
- package/dist/plugins/haveibeenpwned/index.d.mts +36 -0
- package/dist/plugins/haveibeenpwned/index.d.ts +36 -0
- package/dist/plugins/haveibeenpwned/index.mjs +96 -0
- package/dist/plugins/index.cjs +583 -19
- package/dist/plugins/index.d.cts +7 -5
- package/dist/plugins/index.d.mts +7 -5
- package/dist/plugins/index.d.ts +7 -5
- package/dist/plugins/index.mjs +583 -21
- package/dist/plugins/jwt/index.cjs +45 -21
- package/dist/plugins/jwt/index.d.cts +52 -6
- package/dist/plugins/jwt/index.d.mts +52 -6
- package/dist/plugins/jwt/index.d.ts +52 -6
- package/dist/plugins/jwt/index.mjs +46 -22
- package/dist/plugins/magic-link/index.cjs +3 -3
- package/dist/plugins/magic-link/index.mjs +4 -4
- package/dist/plugins/multi-session/index.cjs +3 -3
- package/dist/plugins/multi-session/index.d.cts +3 -3
- package/dist/plugins/multi-session/index.d.mts +3 -3
- package/dist/plugins/multi-session/index.d.ts +3 -3
- package/dist/plugins/multi-session/index.mjs +4 -4
- package/dist/plugins/oauth-proxy/index.cjs +4 -4
- package/dist/plugins/oauth-proxy/index.d.cts +3 -3
- package/dist/plugins/oauth-proxy/index.d.mts +3 -3
- package/dist/plugins/oauth-proxy/index.d.ts +3 -3
- package/dist/plugins/oauth-proxy/index.mjs +5 -5
- package/dist/plugins/oidc-provider/index.cjs +227 -8
- package/dist/plugins/oidc-provider/index.d.cts +215 -3
- package/dist/plugins/oidc-provider/index.d.mts +215 -3
- package/dist/plugins/oidc-provider/index.d.ts +215 -3
- package/dist/plugins/oidc-provider/index.mjs +228 -9
- package/dist/plugins/one-tap/index.cjs +5 -5
- package/dist/plugins/one-tap/index.mjs +6 -6
- package/dist/plugins/one-time-token/index.cjs +119 -0
- package/dist/plugins/one-time-token/index.d.cts +134 -0
- package/dist/plugins/one-time-token/index.d.mts +134 -0
- package/dist/plugins/one-time-token/index.d.ts +134 -0
- package/dist/plugins/one-time-token/index.mjs +117 -0
- package/dist/plugins/open-api/index.cjs +3 -3
- package/dist/plugins/open-api/index.d.cts +3 -3
- package/dist/plugins/open-api/index.d.mts +3 -3
- package/dist/plugins/open-api/index.d.ts +3 -3
- package/dist/plugins/open-api/index.mjs +4 -4
- package/dist/plugins/organization/access/index.d.cts +1 -1
- package/dist/plugins/organization/access/index.d.mts +1 -1
- package/dist/plugins/organization/access/index.d.ts +1 -1
- package/dist/plugins/organization/index.cjs +4 -4
- package/dist/plugins/organization/index.d.cts +708 -55
- package/dist/plugins/organization/index.d.mts +708 -55
- package/dist/plugins/organization/index.d.ts +708 -55
- package/dist/plugins/organization/index.mjs +5 -5
- package/dist/plugins/passkey/index.cjs +82 -8
- package/dist/plugins/passkey/index.d.cts +72 -3
- package/dist/plugins/passkey/index.d.mts +72 -3
- package/dist/plugins/passkey/index.d.ts +72 -3
- package/dist/plugins/passkey/index.mjs +83 -9
- package/dist/plugins/phone-number/index.cjs +194 -26
- package/dist/plugins/phone-number/index.d.cts +132 -8
- package/dist/plugins/phone-number/index.d.mts +132 -8
- package/dist/plugins/phone-number/index.d.ts +132 -8
- package/dist/plugins/phone-number/index.mjs +195 -27
- package/dist/plugins/sso/index.cjs +190 -7
- package/dist/plugins/sso/index.d.cts +181 -15
- package/dist/plugins/sso/index.d.mts +181 -15
- package/dist/plugins/sso/index.d.ts +181 -15
- package/dist/plugins/sso/index.mjs +191 -8
- package/dist/plugins/two-factor/index.cjs +443 -92
- package/dist/plugins/two-factor/index.d.cts +230 -396
- package/dist/plugins/two-factor/index.d.mts +230 -396
- package/dist/plugins/two-factor/index.d.ts +230 -396
- package/dist/plugins/two-factor/index.mjs +431 -80
- package/dist/plugins/username/index.cjs +34 -31
- package/dist/plugins/username/index.d.cts +15 -12
- package/dist/plugins/username/index.d.mts +15 -12
- package/dist/plugins/username/index.d.ts +15 -12
- package/dist/plugins/username/index.mjs +35 -32
- package/dist/shared/better-auth.1DR6suCQ.mjs +307 -0
- package/dist/shared/{better-auth.BSsp73pg.cjs → better-auth.B7cZ2juS.cjs} +15 -14
- package/dist/shared/{better-auth.bKwabe3I.d.mts → better-auth.B88xucNq.d.mts} +529 -39
- package/dist/shared/{better-auth.CApEjVDP.cjs → better-auth.BW8BpneG.cjs} +4 -1
- package/dist/shared/{better-auth.BiQsvaIP.d.cts → better-auth.BcU1Kjyq.d.cts} +2051 -518
- package/dist/shared/better-auth.BfG24BjZ.cjs +118 -0
- package/dist/shared/{better-auth.A3TjrU8G.mjs → better-auth.Bk5IMdhM.mjs} +32 -12
- package/dist/shared/{better-auth.D9VnBkRI.mjs → better-auth.Bm9HxIzE.mjs} +47 -24
- package/dist/shared/{better-auth.BRf6Iynu.d.ts → better-auth.Bwc-6kOr.d.ts} +1 -1
- package/dist/shared/{better-auth.D-oLmHIj.d.mts → better-auth.CA2hFK4N.d.ts} +2051 -518
- package/dist/shared/{better-auth.Dmhe30iW.d.mts → better-auth.CGukGrxT.d.cts} +1 -1
- package/dist/shared/{better-auth.CsSpq0zL.cjs → better-auth.CHUzBidy.cjs} +46 -23
- package/dist/shared/{better-auth.DWRligF8.d.cts → better-auth.CT9J6rD-.d.cts} +539 -7
- package/dist/shared/better-auth.CVCo5Z2T.cjs +310 -0
- package/dist/shared/{better-auth.D4jH-sJA.mjs → better-auth.CWwVo_61.mjs} +458 -118
- package/dist/shared/{better-auth.Bi8FQwDD.d.cts → better-auth.CYegVoq1.d.cts} +1 -1
- package/dist/shared/{better-auth.Bi8FQwDD.d.mts → better-auth.CYegVoq1.d.mts} +1 -1
- package/dist/shared/{better-auth.Bi8FQwDD.d.ts → better-auth.CYegVoq1.d.ts} +1 -1
- package/dist/shared/{better-auth.CepcSj5H.mjs → better-auth.Cc72UxUH.mjs} +1 -2
- package/dist/shared/{better-auth.BWp5dztg.d.ts → better-auth.CmN4mlPh.d.ts} +539 -7
- package/dist/shared/{better-auth.DH3YjMQH.mjs → better-auth.Cqykj82J.mjs} +1 -1
- package/dist/shared/{better-auth.wcdMj2cT.d.mts → better-auth.DIt2e3lu.d.mts} +539 -7
- package/dist/shared/{better-auth.BANAxdkL.d.ts → better-auth.DNTAFSt1.d.ts} +529 -39
- package/dist/shared/{better-auth.DU2QNVc_.d.ts → better-auth.DQ7OSJbI.d.mts} +2051 -518
- package/dist/shared/{better-auth.DLTzKoOS.cjs → better-auth.DSVbLSt7.cjs} +4 -1
- package/dist/shared/{better-auth.B2Fw1vhH.d.cts → better-auth.DTiSPWEk.d.cts} +529 -39
- package/dist/shared/better-auth.DURsStt9.mjs +116 -0
- package/dist/shared/{better-auth.BIjcZ_vt.cjs → better-auth.DYoLD99C.cjs} +31 -11
- package/dist/shared/{better-auth.CV1L7TPV.cjs → better-auth.D_ZIX1O8.cjs} +317 -47
- package/dist/shared/{better-auth.C5H9XEzZ.cjs → better-auth.DcWKCjjf.cjs} +1 -2
- package/dist/shared/{better-auth.BDYXUcLv.cjs → better-auth.Dg0siV5C.cjs} +457 -117
- package/dist/shared/better-auth.DjryM8pE.cjs +760 -0
- package/dist/shared/{better-auth.DPBQN9Fs.mjs → better-auth.Dn_Ms1Uf.mjs} +318 -48
- package/dist/shared/{better-auth.DiG4KL2x.mjs → better-auth.OuYYTHC7.mjs} +4 -1
- package/dist/shared/{better-auth.DtC8i3pf.d.cts → better-auth.S1jimRbX.d.mts} +1 -1
- package/dist/shared/better-auth.SPmq4a4z.d.mts +344 -0
- package/dist/shared/{better-auth.cOCrlspr.mjs → better-auth.bkwPl2G4.mjs} +4 -1
- package/dist/shared/better-auth.cp2rC2iM.d.ts +344 -0
- package/dist/shared/better-auth.eVy4DZvP.d.cts +344 -0
- package/dist/shared/{better-auth.BrOpzmqo.mjs → better-auth.iKoUsdFE.mjs} +15 -14
- package/dist/shared/better-auth.rSYJCd3o.mjs +758 -0
- package/dist/social-providers/index.cjs +75 -3
- package/dist/social-providers/index.d.cts +2 -2
- package/dist/social-providers/index.d.mts +2 -2
- package/dist/social-providers/index.d.ts +2 -2
- package/dist/social-providers/index.mjs +77 -6
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/package.json +42 -5
- package/dist/chunks/server.cjs +0 -905
- package/dist/chunks/server.mjs +0 -895
- package/dist/shared/better-auth.BcoSd9tC.mjs +0 -10
- package/dist/shared/better-auth.BnRFp-t0.mjs +0 -405
- package/dist/shared/better-auth.C1-vpKly.cjs +0 -12
- package/dist/shared/better-auth.ClTSOgiD.mjs +0 -140
- package/dist/shared/better-auth.DC8JQbiE.mjs +0 -173
- package/dist/shared/better-auth.DWHWPllD.cjs +0 -175
- package/dist/shared/better-auth.DqLjzBlO.cjs +0 -408
- package/dist/shared/better-auth.m575EIBC.cjs +0 -144
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { L as LiteralString, d as LiteralUnion, D as DeepPartial, U as UnionToIntersection, S as StripEmptyObjects, O as OmitId,
|
|
1
|
+
import { L as LiteralString, d as LiteralUnion, D as DeepPartial, U as UnionToIntersection, S as StripEmptyObjects, O as OmitId, a as PrettifyDeep, P as Prettify, E as Expand } from './better-auth.CYegVoq1.cjs';
|
|
2
2
|
import * as zod from 'zod';
|
|
3
3
|
import { ZodSchema, z } from 'zod';
|
|
4
|
-
import { a as OAuthProvider, S as SocialProviders, b as SocialProviderList, O as OAuth2Tokens } from './better-auth.
|
|
4
|
+
import { a as OAuthProvider, S as SocialProviders, b as SocialProviderList, O as OAuth2Tokens } from './better-auth.DTiSPWEk.cjs';
|
|
5
5
|
import { Migration, PostgresPool, MysqlPool, Dialect, Kysely } from 'kysely';
|
|
6
6
|
import * as better_call from 'better-call';
|
|
7
7
|
import { EndpointContext, InputContext, CookieOptions, Endpoint, Middleware } from 'better-call';
|
|
@@ -199,7 +199,7 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
|
|
|
199
199
|
accessTokenExpiresAt?: Date | null | undefined;
|
|
200
200
|
refreshTokenExpiresAt?: Date | null | undefined;
|
|
201
201
|
}[]>;
|
|
202
|
-
updateAccount: (
|
|
202
|
+
updateAccount: (id: string, data: Partial<Account>, context?: GenericEndpointContext) => Promise<any>;
|
|
203
203
|
createVerificationValue: (data: Omit<Verification, "createdAt" | "id" | "updatedAt"> & Partial<Verification>, context?: GenericEndpointContext) => Promise<{
|
|
204
204
|
id: string;
|
|
205
205
|
value: string;
|
|
@@ -207,7 +207,6 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
|
|
|
207
207
|
updatedAt: Date;
|
|
208
208
|
expiresAt: Date;
|
|
209
209
|
identifier: string;
|
|
210
|
-
nonce?: string | null | undefined;
|
|
211
210
|
}>;
|
|
212
211
|
findVerificationValue: (identifier: string) => Promise<{
|
|
213
212
|
id: string;
|
|
@@ -216,7 +215,6 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
|
|
|
216
215
|
updatedAt: Date;
|
|
217
216
|
expiresAt: Date;
|
|
218
217
|
identifier: string;
|
|
219
|
-
nonce?: string | null | undefined;
|
|
220
218
|
} | null>;
|
|
221
219
|
deleteVerificationValue: (id: string) => Promise<void>;
|
|
222
220
|
deleteVerificationByIdentifier: (identifier: string) => Promise<void>;
|
|
@@ -506,7 +504,6 @@ declare const verificationSchema: z.ZodObject<{
|
|
|
506
504
|
updatedAt: z.ZodDefault<z.ZodDate>;
|
|
507
505
|
expiresAt: z.ZodDate;
|
|
508
506
|
identifier: z.ZodString;
|
|
509
|
-
nonce: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
510
507
|
}, "strip", z.ZodTypeAny, {
|
|
511
508
|
id: string;
|
|
512
509
|
value: string;
|
|
@@ -514,7 +511,6 @@ declare const verificationSchema: z.ZodObject<{
|
|
|
514
511
|
updatedAt: Date;
|
|
515
512
|
expiresAt: Date;
|
|
516
513
|
identifier: string;
|
|
517
|
-
nonce?: string | null | undefined;
|
|
518
514
|
}, {
|
|
519
515
|
id: string;
|
|
520
516
|
value: string;
|
|
@@ -522,7 +518,6 @@ declare const verificationSchema: z.ZodObject<{
|
|
|
522
518
|
identifier: string;
|
|
523
519
|
createdAt?: Date | undefined;
|
|
524
520
|
updatedAt?: Date | undefined;
|
|
525
|
-
nonce?: string | null | undefined;
|
|
526
521
|
}>;
|
|
527
522
|
declare function parseOutputData<T extends Record<string, any>>(data: T, schema: {
|
|
528
523
|
fields: Record<string, FieldAttribute>;
|
|
@@ -898,7 +893,7 @@ type BetterAuthPlugin = {
|
|
|
898
893
|
};
|
|
899
894
|
middlewares?: {
|
|
900
895
|
path: string;
|
|
901
|
-
middleware:
|
|
896
|
+
middleware: Middleware;
|
|
902
897
|
}[];
|
|
903
898
|
onRequest?: (request: Request, ctx: AuthContext) => Promise<{
|
|
904
899
|
response: Response;
|
|
@@ -1003,7 +998,7 @@ type Adapter = {
|
|
|
1003
998
|
id: string;
|
|
1004
999
|
create: <T extends Record<string, any>, R = T>(data: {
|
|
1005
1000
|
model: string;
|
|
1006
|
-
data: T
|
|
1001
|
+
data: Omit<T, "id">;
|
|
1007
1002
|
select?: string[];
|
|
1008
1003
|
}) => Promise<R>;
|
|
1009
1004
|
findOne: <T>(data: {
|
|
@@ -1436,6 +1431,12 @@ type BetterAuthOptions = {
|
|
|
1436
1431
|
* This is useful for cleaning up user data
|
|
1437
1432
|
*/
|
|
1438
1433
|
afterDelete?: (user: User, request?: Request) => Promise<void>;
|
|
1434
|
+
/**
|
|
1435
|
+
* The expiration time for the delete token.
|
|
1436
|
+
*
|
|
1437
|
+
* @default 1 day (60 * 60 * 24) in seconds
|
|
1438
|
+
*/
|
|
1439
|
+
deleteTokenExpiresIn?: number;
|
|
1439
1440
|
};
|
|
1440
1441
|
};
|
|
1441
1442
|
session?: {
|
|
@@ -1468,6 +1469,13 @@ type BetterAuthOptions = {
|
|
|
1468
1469
|
* @default 1 day (60 * 60 * 24)
|
|
1469
1470
|
*/
|
|
1470
1471
|
updateAge?: number;
|
|
1472
|
+
/**
|
|
1473
|
+
* Disable session refresh so that the session is not updated
|
|
1474
|
+
* regardless of the `updateAge` option.
|
|
1475
|
+
*
|
|
1476
|
+
* @default false
|
|
1477
|
+
*/
|
|
1478
|
+
disableSessionRefresh?: boolean;
|
|
1471
1479
|
/**
|
|
1472
1480
|
* Additional fields for the session
|
|
1473
1481
|
*/
|
|
@@ -1729,11 +1737,43 @@ type BetterAuthOptions = {
|
|
|
1729
1737
|
* ```
|
|
1730
1738
|
*/
|
|
1731
1739
|
cookiePrefix?: string;
|
|
1740
|
+
/**
|
|
1741
|
+
* Database configuration.
|
|
1742
|
+
*/
|
|
1743
|
+
database?: {
|
|
1744
|
+
/**
|
|
1745
|
+
* The default number of records to return from the database
|
|
1746
|
+
* when using the `findMany` adapter method.
|
|
1747
|
+
*
|
|
1748
|
+
* @default 100
|
|
1749
|
+
*/
|
|
1750
|
+
defaultFindManyLimit?: number;
|
|
1751
|
+
/**
|
|
1752
|
+
* If your database auto increments number ids, set this to `true`.
|
|
1753
|
+
*
|
|
1754
|
+
* Note: If enabled, we will not handle ID generation (including if you use `generateId`), and it would be expected that your database will provide the ID automatically.
|
|
1755
|
+
*
|
|
1756
|
+
* @default false
|
|
1757
|
+
*/
|
|
1758
|
+
useNumberId?: boolean;
|
|
1759
|
+
/**
|
|
1760
|
+
* Custom generateId function.
|
|
1761
|
+
*
|
|
1762
|
+
* If not provided, random ids will be generated.
|
|
1763
|
+
* If set to false, the database's auto generated id will be used.
|
|
1764
|
+
*/
|
|
1765
|
+
generateId?: ((options: {
|
|
1766
|
+
model: LiteralUnion<Models, string>;
|
|
1767
|
+
size?: number;
|
|
1768
|
+
}) => string) | false;
|
|
1769
|
+
};
|
|
1732
1770
|
/**
|
|
1733
1771
|
* Custom generateId function.
|
|
1734
1772
|
*
|
|
1735
1773
|
* If not provided, random ids will be generated.
|
|
1736
1774
|
* If set to false, the database's auto generated id will be used.
|
|
1775
|
+
*
|
|
1776
|
+
* @deprecated Please use `database.generateId` instead. This will be potentially removed in future releases.
|
|
1737
1777
|
*/
|
|
1738
1778
|
generateId?: ((options: {
|
|
1739
1779
|
model: LiteralUnion<Models, string>;
|
|
@@ -1786,15 +1826,15 @@ type BetterAuthOptions = {
|
|
|
1786
1826
|
session?: {
|
|
1787
1827
|
create?: {
|
|
1788
1828
|
/**
|
|
1789
|
-
* Hook that is called before a session is
|
|
1790
|
-
* if the hook returns false, the session will not be
|
|
1829
|
+
* Hook that is called before a session is created.
|
|
1830
|
+
* if the hook returns false, the session will not be created.
|
|
1791
1831
|
* If the hook returns an object, it'll be used instead of the original data
|
|
1792
1832
|
*/
|
|
1793
1833
|
before?: (session: Session, context?: GenericEndpointContext) => Promise<boolean | void | {
|
|
1794
1834
|
data: Partial<Session> & Record<string, any>;
|
|
1795
1835
|
}>;
|
|
1796
1836
|
/**
|
|
1797
|
-
* Hook that is called after a session is
|
|
1837
|
+
* Hook that is called after a session is created.
|
|
1798
1838
|
*/
|
|
1799
1839
|
after?: (session: Session, context?: GenericEndpointContext) => Promise<void>;
|
|
1800
1840
|
};
|
|
@@ -1964,7 +2004,7 @@ type InferAPI<API> = InferSessionAPI<API> & FilteredAPI<API>;
|
|
|
1964
2004
|
declare const signInSocial: {
|
|
1965
2005
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
1966
2006
|
body: {
|
|
1967
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
2007
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
1968
2008
|
scopes?: string[] | undefined;
|
|
1969
2009
|
loginHint?: string | undefined;
|
|
1970
2010
|
idToken?: {
|
|
@@ -2058,7 +2098,7 @@ declare const signInSocial: {
|
|
|
2058
2098
|
/**
|
|
2059
2099
|
* OAuth2 provider to use`
|
|
2060
2100
|
*/
|
|
2061
|
-
provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick")[]]>;
|
|
2101
|
+
provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom")[]]>;
|
|
2062
2102
|
/**
|
|
2063
2103
|
* Disable automatic redirection to the provider
|
|
2064
2104
|
*
|
|
@@ -2125,7 +2165,7 @@ declare const signInSocial: {
|
|
|
2125
2165
|
*/
|
|
2126
2166
|
loginHint: z.ZodOptional<z.ZodString>;
|
|
2127
2167
|
}, "strip", z.ZodTypeAny, {
|
|
2128
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
2168
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
2129
2169
|
scopes?: string[] | undefined;
|
|
2130
2170
|
loginHint?: string | undefined;
|
|
2131
2171
|
idToken?: {
|
|
@@ -2141,7 +2181,7 @@ declare const signInSocial: {
|
|
|
2141
2181
|
newUserCallbackURL?: string | undefined;
|
|
2142
2182
|
disableRedirect?: boolean | undefined;
|
|
2143
2183
|
}, {
|
|
2144
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
2184
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
2145
2185
|
scopes?: string[] | undefined;
|
|
2146
2186
|
loginHint?: string | undefined;
|
|
2147
2187
|
idToken?: {
|
|
@@ -2160,6 +2200,7 @@ declare const signInSocial: {
|
|
|
2160
2200
|
metadata: {
|
|
2161
2201
|
openapi: {
|
|
2162
2202
|
description: string;
|
|
2203
|
+
operationId: string;
|
|
2163
2204
|
responses: {
|
|
2164
2205
|
"200": {
|
|
2165
2206
|
description: string;
|
|
@@ -2167,22 +2208,53 @@ declare const signInSocial: {
|
|
|
2167
2208
|
"application/json": {
|
|
2168
2209
|
schema: {
|
|
2169
2210
|
type: "object";
|
|
2211
|
+
description: string;
|
|
2170
2212
|
properties: {
|
|
2171
|
-
|
|
2172
|
-
type: string;
|
|
2173
|
-
};
|
|
2174
|
-
user: {
|
|
2175
|
-
type: string;
|
|
2176
|
-
ref: string;
|
|
2177
|
-
};
|
|
2178
|
-
url: {
|
|
2213
|
+
redirect: {
|
|
2179
2214
|
type: string;
|
|
2215
|
+
enum: boolean[];
|
|
2180
2216
|
};
|
|
2181
|
-
|
|
2217
|
+
token: {
|
|
2182
2218
|
type: string;
|
|
2219
|
+
description: string;
|
|
2220
|
+
url: {
|
|
2221
|
+
type: string;
|
|
2222
|
+
nullable: boolean;
|
|
2223
|
+
};
|
|
2224
|
+
user: {
|
|
2225
|
+
type: string;
|
|
2226
|
+
properties: {
|
|
2227
|
+
id: {
|
|
2228
|
+
type: string;
|
|
2229
|
+
};
|
|
2230
|
+
email: {
|
|
2231
|
+
type: string;
|
|
2232
|
+
};
|
|
2233
|
+
name: {
|
|
2234
|
+
type: string;
|
|
2235
|
+
nullable: boolean;
|
|
2236
|
+
};
|
|
2237
|
+
image: {
|
|
2238
|
+
type: string;
|
|
2239
|
+
nullable: boolean;
|
|
2240
|
+
};
|
|
2241
|
+
emailVerified: {
|
|
2242
|
+
type: string;
|
|
2243
|
+
};
|
|
2244
|
+
createdAt: {
|
|
2245
|
+
type: string;
|
|
2246
|
+
format: string;
|
|
2247
|
+
};
|
|
2248
|
+
updatedAt: {
|
|
2249
|
+
type: string;
|
|
2250
|
+
format: string;
|
|
2251
|
+
};
|
|
2252
|
+
};
|
|
2253
|
+
required: string[];
|
|
2254
|
+
};
|
|
2183
2255
|
};
|
|
2256
|
+
required: string[];
|
|
2184
2257
|
};
|
|
2185
|
-
required: string[];
|
|
2186
2258
|
};
|
|
2187
2259
|
};
|
|
2188
2260
|
};
|
|
@@ -2293,19 +2365,50 @@ declare const signInEmail: {
|
|
|
2293
2365
|
"application/json": {
|
|
2294
2366
|
schema: {
|
|
2295
2367
|
type: "object";
|
|
2368
|
+
description: string;
|
|
2296
2369
|
properties: {
|
|
2297
|
-
|
|
2370
|
+
redirect: {
|
|
2298
2371
|
type: string;
|
|
2372
|
+
enum: boolean[];
|
|
2299
2373
|
};
|
|
2300
|
-
|
|
2374
|
+
token: {
|
|
2301
2375
|
type: string;
|
|
2302
|
-
|
|
2376
|
+
description: string;
|
|
2303
2377
|
};
|
|
2304
2378
|
url: {
|
|
2305
2379
|
type: string;
|
|
2380
|
+
nullable: boolean;
|
|
2306
2381
|
};
|
|
2307
|
-
|
|
2382
|
+
user: {
|
|
2308
2383
|
type: string;
|
|
2384
|
+
properties: {
|
|
2385
|
+
id: {
|
|
2386
|
+
type: string;
|
|
2387
|
+
};
|
|
2388
|
+
email: {
|
|
2389
|
+
type: string;
|
|
2390
|
+
};
|
|
2391
|
+
name: {
|
|
2392
|
+
type: string;
|
|
2393
|
+
nullable: boolean;
|
|
2394
|
+
};
|
|
2395
|
+
image: {
|
|
2396
|
+
type: string;
|
|
2397
|
+
nullable: boolean;
|
|
2398
|
+
};
|
|
2399
|
+
emailVerified: {
|
|
2400
|
+
type: string;
|
|
2401
|
+
};
|
|
2402
|
+
createdAt: {
|
|
2403
|
+
type: string;
|
|
2404
|
+
format: string;
|
|
2405
|
+
};
|
|
2406
|
+
updatedAt: {
|
|
2407
|
+
type: string;
|
|
2408
|
+
format: string;
|
|
2409
|
+
};
|
|
2410
|
+
};
|
|
2411
|
+
required: string[];
|
|
2309
2412
|
};
|
|
2310
2413
|
};
|
|
2311
2414
|
required: string[];
|
|
@@ -2329,6 +2432,7 @@ declare const callbackOAuth: {
|
|
|
2329
2432
|
code?: string | undefined;
|
|
2330
2433
|
device_id?: string | undefined;
|
|
2331
2434
|
error?: string | undefined;
|
|
2435
|
+
user?: string | undefined;
|
|
2332
2436
|
error_description?: string | undefined;
|
|
2333
2437
|
} | undefined;
|
|
2334
2438
|
} & {
|
|
@@ -2339,6 +2443,7 @@ declare const callbackOAuth: {
|
|
|
2339
2443
|
code?: string | undefined;
|
|
2340
2444
|
device_id?: string | undefined;
|
|
2341
2445
|
error?: string | undefined;
|
|
2446
|
+
user?: string | undefined;
|
|
2342
2447
|
error_description?: string | undefined;
|
|
2343
2448
|
} | undefined;
|
|
2344
2449
|
} & {
|
|
@@ -2369,17 +2474,20 @@ declare const callbackOAuth: {
|
|
|
2369
2474
|
device_id: z.ZodOptional<z.ZodString>;
|
|
2370
2475
|
error_description: z.ZodOptional<z.ZodString>;
|
|
2371
2476
|
state: z.ZodOptional<z.ZodString>;
|
|
2477
|
+
user: z.ZodOptional<z.ZodString>;
|
|
2372
2478
|
}, "strip", z.ZodTypeAny, {
|
|
2373
2479
|
state?: string | undefined;
|
|
2374
2480
|
code?: string | undefined;
|
|
2375
2481
|
device_id?: string | undefined;
|
|
2376
2482
|
error?: string | undefined;
|
|
2483
|
+
user?: string | undefined;
|
|
2377
2484
|
error_description?: string | undefined;
|
|
2378
2485
|
}, {
|
|
2379
2486
|
state?: string | undefined;
|
|
2380
2487
|
code?: string | undefined;
|
|
2381
2488
|
device_id?: string | undefined;
|
|
2382
2489
|
error?: string | undefined;
|
|
2490
|
+
user?: string | undefined;
|
|
2383
2491
|
error_description?: string | undefined;
|
|
2384
2492
|
}>>;
|
|
2385
2493
|
query: z.ZodOptional<z.ZodObject<{
|
|
@@ -2388,17 +2496,20 @@ declare const callbackOAuth: {
|
|
|
2388
2496
|
device_id: z.ZodOptional<z.ZodString>;
|
|
2389
2497
|
error_description: z.ZodOptional<z.ZodString>;
|
|
2390
2498
|
state: z.ZodOptional<z.ZodString>;
|
|
2499
|
+
user: z.ZodOptional<z.ZodString>;
|
|
2391
2500
|
}, "strip", z.ZodTypeAny, {
|
|
2392
2501
|
state?: string | undefined;
|
|
2393
2502
|
code?: string | undefined;
|
|
2394
2503
|
device_id?: string | undefined;
|
|
2395
2504
|
error?: string | undefined;
|
|
2505
|
+
user?: string | undefined;
|
|
2396
2506
|
error_description?: string | undefined;
|
|
2397
2507
|
}, {
|
|
2398
2508
|
state?: string | undefined;
|
|
2399
2509
|
code?: string | undefined;
|
|
2400
2510
|
device_id?: string | undefined;
|
|
2401
2511
|
error?: string | undefined;
|
|
2512
|
+
user?: string | undefined;
|
|
2402
2513
|
error_description?: string | undefined;
|
|
2403
2514
|
}>>;
|
|
2404
2515
|
metadata: {
|
|
@@ -2507,14 +2618,13 @@ declare const getSession: <Option extends BetterAuthOptions>() => {
|
|
|
2507
2618
|
type: "object";
|
|
2508
2619
|
properties: {
|
|
2509
2620
|
session: {
|
|
2510
|
-
type: string;
|
|
2511
2621
|
$ref: string;
|
|
2512
2622
|
};
|
|
2513
2623
|
user: {
|
|
2514
|
-
type: string;
|
|
2515
2624
|
$ref: string;
|
|
2516
2625
|
};
|
|
2517
2626
|
};
|
|
2627
|
+
required: string[];
|
|
2518
2628
|
};
|
|
2519
2629
|
};
|
|
2520
2630
|
};
|
|
@@ -2686,18 +2796,7 @@ declare const listSessions: <Option extends BetterAuthOptions>() => {
|
|
|
2686
2796
|
schema: {
|
|
2687
2797
|
type: "array";
|
|
2688
2798
|
items: {
|
|
2689
|
-
|
|
2690
|
-
properties: {
|
|
2691
|
-
token: {
|
|
2692
|
-
type: string;
|
|
2693
|
-
};
|
|
2694
|
-
userId: {
|
|
2695
|
-
type: string;
|
|
2696
|
-
};
|
|
2697
|
-
expiresAt: {
|
|
2698
|
-
type: string;
|
|
2699
|
-
};
|
|
2700
|
-
};
|
|
2799
|
+
$ref: string;
|
|
2701
2800
|
};
|
|
2702
2801
|
};
|
|
2703
2802
|
};
|
|
@@ -2789,6 +2888,7 @@ declare const revokeSession: {
|
|
|
2789
2888
|
properties: {
|
|
2790
2889
|
token: {
|
|
2791
2890
|
type: string;
|
|
2891
|
+
description: string;
|
|
2792
2892
|
};
|
|
2793
2893
|
};
|
|
2794
2894
|
required: string[];
|
|
@@ -2796,6 +2896,25 @@ declare const revokeSession: {
|
|
|
2796
2896
|
};
|
|
2797
2897
|
};
|
|
2798
2898
|
};
|
|
2899
|
+
responses: {
|
|
2900
|
+
"200": {
|
|
2901
|
+
description: string;
|
|
2902
|
+
content: {
|
|
2903
|
+
"application/json": {
|
|
2904
|
+
schema: {
|
|
2905
|
+
type: "object";
|
|
2906
|
+
properties: {
|
|
2907
|
+
status: {
|
|
2908
|
+
type: string;
|
|
2909
|
+
description: string;
|
|
2910
|
+
};
|
|
2911
|
+
};
|
|
2912
|
+
required: string[];
|
|
2913
|
+
};
|
|
2914
|
+
};
|
|
2915
|
+
};
|
|
2916
|
+
};
|
|
2917
|
+
};
|
|
2799
2918
|
};
|
|
2800
2919
|
};
|
|
2801
2920
|
} & {
|
|
@@ -2874,6 +2993,7 @@ declare const revokeSessions: {
|
|
|
2874
2993
|
properties: {
|
|
2875
2994
|
status: {
|
|
2876
2995
|
type: string;
|
|
2996
|
+
description: string;
|
|
2877
2997
|
};
|
|
2878
2998
|
};
|
|
2879
2999
|
required: string[];
|
|
@@ -2957,8 +3077,10 @@ declare const revokeOtherSessions: {
|
|
|
2957
3077
|
properties: {
|
|
2958
3078
|
status: {
|
|
2959
3079
|
type: string;
|
|
3080
|
+
description: string;
|
|
2960
3081
|
};
|
|
2961
3082
|
};
|
|
3083
|
+
required: string[];
|
|
2962
3084
|
};
|
|
2963
3085
|
};
|
|
2964
3086
|
};
|
|
@@ -3328,10 +3450,13 @@ declare const sendVerificationEmail: {
|
|
|
3328
3450
|
email: {
|
|
3329
3451
|
type: string;
|
|
3330
3452
|
description: string;
|
|
3453
|
+
example: string;
|
|
3331
3454
|
};
|
|
3332
3455
|
callbackURL: {
|
|
3333
3456
|
type: string;
|
|
3334
3457
|
description: string;
|
|
3458
|
+
example: string;
|
|
3459
|
+
nullable: boolean;
|
|
3335
3460
|
};
|
|
3336
3461
|
};
|
|
3337
3462
|
required: string[];
|
|
@@ -3349,6 +3474,25 @@ declare const sendVerificationEmail: {
|
|
|
3349
3474
|
properties: {
|
|
3350
3475
|
status: {
|
|
3351
3476
|
type: string;
|
|
3477
|
+
description: string;
|
|
3478
|
+
example: boolean;
|
|
3479
|
+
};
|
|
3480
|
+
};
|
|
3481
|
+
};
|
|
3482
|
+
};
|
|
3483
|
+
};
|
|
3484
|
+
};
|
|
3485
|
+
"400": {
|
|
3486
|
+
description: string;
|
|
3487
|
+
content: {
|
|
3488
|
+
"application/json": {
|
|
3489
|
+
schema: {
|
|
3490
|
+
type: "object";
|
|
3491
|
+
properties: {
|
|
3492
|
+
message: {
|
|
3493
|
+
type: string;
|
|
3494
|
+
description: string;
|
|
3495
|
+
example: string;
|
|
3352
3496
|
};
|
|
3353
3497
|
};
|
|
3354
3498
|
};
|
|
@@ -3435,6 +3579,23 @@ declare const verifyEmail: {
|
|
|
3435
3579
|
metadata: {
|
|
3436
3580
|
openapi: {
|
|
3437
3581
|
description: string;
|
|
3582
|
+
parameters: ({
|
|
3583
|
+
name: string;
|
|
3584
|
+
in: "query";
|
|
3585
|
+
description: string;
|
|
3586
|
+
required: true;
|
|
3587
|
+
schema: {
|
|
3588
|
+
type: "string";
|
|
3589
|
+
};
|
|
3590
|
+
} | {
|
|
3591
|
+
name: string;
|
|
3592
|
+
in: "query";
|
|
3593
|
+
description: string;
|
|
3594
|
+
required: false;
|
|
3595
|
+
schema: {
|
|
3596
|
+
type: "string";
|
|
3597
|
+
};
|
|
3598
|
+
})[];
|
|
3438
3599
|
responses: {
|
|
3439
3600
|
"200": {
|
|
3440
3601
|
description: string;
|
|
@@ -3445,13 +3606,44 @@ declare const verifyEmail: {
|
|
|
3445
3606
|
properties: {
|
|
3446
3607
|
user: {
|
|
3447
3608
|
type: string;
|
|
3448
|
-
|
|
3609
|
+
properties: {
|
|
3610
|
+
id: {
|
|
3611
|
+
type: string;
|
|
3612
|
+
description: string;
|
|
3613
|
+
};
|
|
3614
|
+
email: {
|
|
3615
|
+
type: string;
|
|
3616
|
+
description: string;
|
|
3617
|
+
};
|
|
3618
|
+
name: {
|
|
3619
|
+
type: string;
|
|
3620
|
+
description: string;
|
|
3621
|
+
};
|
|
3622
|
+
image: {
|
|
3623
|
+
type: string;
|
|
3624
|
+
description: string;
|
|
3625
|
+
};
|
|
3626
|
+
emailVerified: {
|
|
3627
|
+
type: string;
|
|
3628
|
+
description: string;
|
|
3629
|
+
};
|
|
3630
|
+
createdAt: {
|
|
3631
|
+
type: string;
|
|
3632
|
+
description: string;
|
|
3633
|
+
};
|
|
3634
|
+
updatedAt: {
|
|
3635
|
+
type: string;
|
|
3636
|
+
description: string;
|
|
3637
|
+
};
|
|
3638
|
+
};
|
|
3639
|
+
required: string[];
|
|
3449
3640
|
};
|
|
3450
3641
|
status: {
|
|
3451
3642
|
type: string;
|
|
3643
|
+
description: string;
|
|
3452
3644
|
};
|
|
3645
|
+
required: string[];
|
|
3453
3646
|
};
|
|
3454
|
-
required: string[];
|
|
3455
3647
|
};
|
|
3456
3648
|
};
|
|
3457
3649
|
};
|
|
@@ -3528,9 +3720,9 @@ declare const updateUser: <O extends BetterAuthOptions>() => {
|
|
|
3528
3720
|
schema: {
|
|
3529
3721
|
type: "object";
|
|
3530
3722
|
properties: {
|
|
3531
|
-
|
|
3723
|
+
status: {
|
|
3532
3724
|
type: string;
|
|
3533
|
-
|
|
3725
|
+
description: string;
|
|
3534
3726
|
};
|
|
3535
3727
|
};
|
|
3536
3728
|
};
|
|
@@ -3604,9 +3796,9 @@ declare const updateUser: <O extends BetterAuthOptions>() => {
|
|
|
3604
3796
|
schema: {
|
|
3605
3797
|
type: "object";
|
|
3606
3798
|
properties: {
|
|
3607
|
-
|
|
3799
|
+
status: {
|
|
3608
3800
|
type: string;
|
|
3609
|
-
|
|
3801
|
+
description: string;
|
|
3610
3802
|
};
|
|
3611
3803
|
};
|
|
3612
3804
|
};
|
|
@@ -3701,9 +3893,9 @@ declare const updateUser: <O extends BetterAuthOptions>() => {
|
|
|
3701
3893
|
schema: {
|
|
3702
3894
|
type: "object";
|
|
3703
3895
|
properties: {
|
|
3704
|
-
|
|
3896
|
+
status: {
|
|
3705
3897
|
type: string;
|
|
3706
|
-
|
|
3898
|
+
description: string;
|
|
3707
3899
|
};
|
|
3708
3900
|
};
|
|
3709
3901
|
};
|
|
@@ -3806,9 +3998,9 @@ declare const updateUser: <O extends BetterAuthOptions>() => {
|
|
|
3806
3998
|
schema: {
|
|
3807
3999
|
type: "object";
|
|
3808
4000
|
properties: {
|
|
3809
|
-
|
|
4001
|
+
status: {
|
|
3810
4002
|
type: string;
|
|
3811
|
-
|
|
4003
|
+
description: string;
|
|
3812
4004
|
};
|
|
3813
4005
|
};
|
|
3814
4006
|
};
|
|
@@ -3933,11 +4125,52 @@ declare const changePassword: {
|
|
|
3933
4125
|
schema: {
|
|
3934
4126
|
type: "object";
|
|
3935
4127
|
properties: {
|
|
3936
|
-
|
|
4128
|
+
token: {
|
|
4129
|
+
type: string;
|
|
4130
|
+
nullable: boolean;
|
|
3937
4131
|
description: string;
|
|
3938
|
-
|
|
4132
|
+
};
|
|
4133
|
+
user: {
|
|
4134
|
+
type: string;
|
|
4135
|
+
properties: {
|
|
4136
|
+
id: {
|
|
4137
|
+
type: string;
|
|
4138
|
+
description: string;
|
|
4139
|
+
};
|
|
4140
|
+
email: {
|
|
4141
|
+
type: string;
|
|
4142
|
+
format: string;
|
|
4143
|
+
description: string;
|
|
4144
|
+
};
|
|
4145
|
+
name: {
|
|
4146
|
+
type: string;
|
|
4147
|
+
description: string;
|
|
4148
|
+
};
|
|
4149
|
+
image: {
|
|
4150
|
+
type: string;
|
|
4151
|
+
format: string;
|
|
4152
|
+
nullable: boolean;
|
|
4153
|
+
description: string;
|
|
4154
|
+
};
|
|
4155
|
+
emailVerified: {
|
|
4156
|
+
type: string;
|
|
4157
|
+
description: string;
|
|
4158
|
+
};
|
|
4159
|
+
createdAt: {
|
|
4160
|
+
type: string;
|
|
4161
|
+
format: string;
|
|
4162
|
+
description: string;
|
|
4163
|
+
};
|
|
4164
|
+
updatedAt: {
|
|
4165
|
+
type: string;
|
|
4166
|
+
format: string;
|
|
4167
|
+
description: string;
|
|
4168
|
+
};
|
|
4169
|
+
};
|
|
4170
|
+
required: string[];
|
|
3939
4171
|
};
|
|
3940
4172
|
};
|
|
4173
|
+
required: string[];
|
|
3941
4174
|
};
|
|
3942
4175
|
};
|
|
3943
4176
|
};
|
|
@@ -4118,6 +4351,18 @@ declare const deleteUser: {
|
|
|
4118
4351
|
"application/json": {
|
|
4119
4352
|
schema: {
|
|
4120
4353
|
type: "object";
|
|
4354
|
+
properties: {
|
|
4355
|
+
success: {
|
|
4356
|
+
type: string;
|
|
4357
|
+
description: string;
|
|
4358
|
+
};
|
|
4359
|
+
message: {
|
|
4360
|
+
type: string;
|
|
4361
|
+
enum: string[];
|
|
4362
|
+
description: string;
|
|
4363
|
+
};
|
|
4364
|
+
};
|
|
4365
|
+
required: string[];
|
|
4121
4366
|
};
|
|
4122
4367
|
};
|
|
4123
4368
|
};
|
|
@@ -4177,20 +4422,49 @@ declare const deleteUserCallback: {
|
|
|
4177
4422
|
callbackURL?: string | undefined;
|
|
4178
4423
|
}>;
|
|
4179
4424
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<void>)[];
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4425
|
+
metadata: {
|
|
4426
|
+
openapi: {
|
|
4427
|
+
description: string;
|
|
4428
|
+
responses: {
|
|
4429
|
+
"200": {
|
|
4430
|
+
description: string;
|
|
4431
|
+
content: {
|
|
4432
|
+
"application/json": {
|
|
4433
|
+
schema: {
|
|
4434
|
+
type: "object";
|
|
4435
|
+
properties: {
|
|
4436
|
+
success: {
|
|
4437
|
+
type: string;
|
|
4438
|
+
description: string;
|
|
4439
|
+
};
|
|
4440
|
+
message: {
|
|
4441
|
+
type: string;
|
|
4442
|
+
enum: string[];
|
|
4443
|
+
description: string;
|
|
4444
|
+
};
|
|
4445
|
+
};
|
|
4446
|
+
required: string[];
|
|
4447
|
+
};
|
|
4448
|
+
};
|
|
4449
|
+
};
|
|
4450
|
+
};
|
|
4451
|
+
};
|
|
4452
|
+
};
|
|
4453
|
+
};
|
|
4454
|
+
} & {
|
|
4455
|
+
use: any[];
|
|
4456
|
+
};
|
|
4457
|
+
path: "/delete-user/callback";
|
|
4458
|
+
};
|
|
4459
|
+
declare const changeEmail: {
|
|
4460
|
+
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
4461
|
+
body: {
|
|
4462
|
+
newEmail: string;
|
|
4463
|
+
callbackURL?: string | undefined;
|
|
4464
|
+
};
|
|
4465
|
+
} & {
|
|
4466
|
+
method?: "POST" | undefined;
|
|
4467
|
+
} & {
|
|
4194
4468
|
query?: Record<string, any> | undefined;
|
|
4195
4469
|
} & {
|
|
4196
4470
|
params?: Record<string, any>;
|
|
@@ -4259,14 +4533,18 @@ declare const changeEmail: {
|
|
|
4259
4533
|
schema: {
|
|
4260
4534
|
type: "object";
|
|
4261
4535
|
properties: {
|
|
4262
|
-
|
|
4536
|
+
status: {
|
|
4263
4537
|
type: string;
|
|
4264
|
-
|
|
4538
|
+
description: string;
|
|
4265
4539
|
};
|
|
4266
|
-
|
|
4540
|
+
message: {
|
|
4267
4541
|
type: string;
|
|
4542
|
+
enum: string[];
|
|
4543
|
+
description: string;
|
|
4544
|
+
nullable: boolean;
|
|
4268
4545
|
};
|
|
4269
4546
|
};
|
|
4547
|
+
required: string[];
|
|
4270
4548
|
};
|
|
4271
4549
|
};
|
|
4272
4550
|
};
|
|
@@ -4317,6 +4595,7 @@ declare const error: {
|
|
|
4317
4595
|
"text/html": {
|
|
4318
4596
|
schema: {
|
|
4319
4597
|
type: "string";
|
|
4598
|
+
description: string;
|
|
4320
4599
|
};
|
|
4321
4600
|
};
|
|
4322
4601
|
};
|
|
@@ -4375,8 +4654,10 @@ declare const ok: {
|
|
|
4375
4654
|
properties: {
|
|
4376
4655
|
ok: {
|
|
4377
4656
|
type: string;
|
|
4657
|
+
description: string;
|
|
4378
4658
|
};
|
|
4379
4659
|
};
|
|
4660
|
+
required: string[];
|
|
4380
4661
|
};
|
|
4381
4662
|
};
|
|
4382
4663
|
};
|
|
@@ -4441,27 +4722,52 @@ declare const signUpEmail: <O extends BetterAuthOptions>() => {
|
|
|
4441
4722
|
schema: {
|
|
4442
4723
|
type: "object";
|
|
4443
4724
|
properties: {
|
|
4444
|
-
|
|
4445
|
-
type: string;
|
|
4446
|
-
description: string;
|
|
4447
|
-
};
|
|
4448
|
-
email: {
|
|
4449
|
-
type: string;
|
|
4450
|
-
description: string;
|
|
4451
|
-
};
|
|
4452
|
-
name: {
|
|
4453
|
-
type: string;
|
|
4454
|
-
description: string;
|
|
4455
|
-
};
|
|
4456
|
-
image: {
|
|
4725
|
+
token: {
|
|
4457
4726
|
type: string;
|
|
4727
|
+
nullable: boolean;
|
|
4458
4728
|
description: string;
|
|
4459
4729
|
};
|
|
4460
|
-
|
|
4730
|
+
user: {
|
|
4461
4731
|
type: string;
|
|
4462
|
-
|
|
4732
|
+
properties: {
|
|
4733
|
+
id: {
|
|
4734
|
+
type: string;
|
|
4735
|
+
description: string;
|
|
4736
|
+
};
|
|
4737
|
+
email: {
|
|
4738
|
+
type: string;
|
|
4739
|
+
format: string;
|
|
4740
|
+
description: string;
|
|
4741
|
+
};
|
|
4742
|
+
name: {
|
|
4743
|
+
type: string;
|
|
4744
|
+
description: string;
|
|
4745
|
+
};
|
|
4746
|
+
image: {
|
|
4747
|
+
type: string;
|
|
4748
|
+
format: string;
|
|
4749
|
+
nullable: boolean;
|
|
4750
|
+
description: string;
|
|
4751
|
+
};
|
|
4752
|
+
emailVerified: {
|
|
4753
|
+
type: string;
|
|
4754
|
+
description: string;
|
|
4755
|
+
};
|
|
4756
|
+
createdAt: {
|
|
4757
|
+
type: string;
|
|
4758
|
+
format: string;
|
|
4759
|
+
description: string;
|
|
4760
|
+
};
|
|
4761
|
+
updatedAt: {
|
|
4762
|
+
type: string;
|
|
4763
|
+
format: string;
|
|
4764
|
+
description: string;
|
|
4765
|
+
};
|
|
4766
|
+
};
|
|
4767
|
+
required: string[];
|
|
4463
4768
|
};
|
|
4464
4769
|
};
|
|
4770
|
+
required: string[];
|
|
4465
4771
|
};
|
|
4466
4772
|
};
|
|
4467
4773
|
};
|
|
@@ -4520,27 +4826,52 @@ declare const signUpEmail: <O extends BetterAuthOptions>() => {
|
|
|
4520
4826
|
schema: {
|
|
4521
4827
|
type: "object";
|
|
4522
4828
|
properties: {
|
|
4523
|
-
|
|
4524
|
-
type: string;
|
|
4525
|
-
description: string;
|
|
4526
|
-
};
|
|
4527
|
-
email: {
|
|
4528
|
-
type: string;
|
|
4529
|
-
description: string;
|
|
4530
|
-
};
|
|
4531
|
-
name: {
|
|
4532
|
-
type: string;
|
|
4533
|
-
description: string;
|
|
4534
|
-
};
|
|
4535
|
-
image: {
|
|
4829
|
+
token: {
|
|
4536
4830
|
type: string;
|
|
4831
|
+
nullable: boolean;
|
|
4537
4832
|
description: string;
|
|
4538
4833
|
};
|
|
4539
|
-
|
|
4834
|
+
user: {
|
|
4540
4835
|
type: string;
|
|
4541
|
-
|
|
4836
|
+
properties: {
|
|
4837
|
+
id: {
|
|
4838
|
+
type: string;
|
|
4839
|
+
description: string;
|
|
4840
|
+
};
|
|
4841
|
+
email: {
|
|
4842
|
+
type: string;
|
|
4843
|
+
format: string;
|
|
4844
|
+
description: string;
|
|
4845
|
+
};
|
|
4846
|
+
name: {
|
|
4847
|
+
type: string;
|
|
4848
|
+
description: string;
|
|
4849
|
+
};
|
|
4850
|
+
image: {
|
|
4851
|
+
type: string;
|
|
4852
|
+
format: string;
|
|
4853
|
+
nullable: boolean;
|
|
4854
|
+
description: string;
|
|
4855
|
+
};
|
|
4856
|
+
emailVerified: {
|
|
4857
|
+
type: string;
|
|
4858
|
+
description: string;
|
|
4859
|
+
};
|
|
4860
|
+
createdAt: {
|
|
4861
|
+
type: string;
|
|
4862
|
+
format: string;
|
|
4863
|
+
description: string;
|
|
4864
|
+
};
|
|
4865
|
+
updatedAt: {
|
|
4866
|
+
type: string;
|
|
4867
|
+
format: string;
|
|
4868
|
+
description: string;
|
|
4869
|
+
};
|
|
4870
|
+
};
|
|
4871
|
+
required: string[];
|
|
4542
4872
|
};
|
|
4543
4873
|
};
|
|
4874
|
+
required: string[];
|
|
4544
4875
|
};
|
|
4545
4876
|
};
|
|
4546
4877
|
};
|
|
@@ -4621,27 +4952,52 @@ declare const signUpEmail: <O extends BetterAuthOptions>() => {
|
|
|
4621
4952
|
schema: {
|
|
4622
4953
|
type: "object";
|
|
4623
4954
|
properties: {
|
|
4624
|
-
|
|
4625
|
-
type: string;
|
|
4626
|
-
description: string;
|
|
4627
|
-
};
|
|
4628
|
-
email: {
|
|
4629
|
-
type: string;
|
|
4630
|
-
description: string;
|
|
4631
|
-
};
|
|
4632
|
-
name: {
|
|
4633
|
-
type: string;
|
|
4634
|
-
description: string;
|
|
4635
|
-
};
|
|
4636
|
-
image: {
|
|
4955
|
+
token: {
|
|
4637
4956
|
type: string;
|
|
4957
|
+
nullable: boolean;
|
|
4638
4958
|
description: string;
|
|
4639
4959
|
};
|
|
4640
|
-
|
|
4960
|
+
user: {
|
|
4641
4961
|
type: string;
|
|
4642
|
-
|
|
4962
|
+
properties: {
|
|
4963
|
+
id: {
|
|
4964
|
+
type: string;
|
|
4965
|
+
description: string;
|
|
4966
|
+
};
|
|
4967
|
+
email: {
|
|
4968
|
+
type: string;
|
|
4969
|
+
format: string;
|
|
4970
|
+
description: string;
|
|
4971
|
+
};
|
|
4972
|
+
name: {
|
|
4973
|
+
type: string;
|
|
4974
|
+
description: string;
|
|
4975
|
+
};
|
|
4976
|
+
image: {
|
|
4977
|
+
type: string;
|
|
4978
|
+
format: string;
|
|
4979
|
+
nullable: boolean;
|
|
4980
|
+
description: string;
|
|
4981
|
+
};
|
|
4982
|
+
emailVerified: {
|
|
4983
|
+
type: string;
|
|
4984
|
+
description: string;
|
|
4985
|
+
};
|
|
4986
|
+
createdAt: {
|
|
4987
|
+
type: string;
|
|
4988
|
+
format: string;
|
|
4989
|
+
description: string;
|
|
4990
|
+
};
|
|
4991
|
+
updatedAt: {
|
|
4992
|
+
type: string;
|
|
4993
|
+
format: string;
|
|
4994
|
+
description: string;
|
|
4995
|
+
};
|
|
4996
|
+
};
|
|
4997
|
+
required: string[];
|
|
4643
4998
|
};
|
|
4644
4999
|
};
|
|
5000
|
+
required: string[];
|
|
4645
5001
|
};
|
|
4646
5002
|
};
|
|
4647
5003
|
};
|
|
@@ -4770,27 +5126,52 @@ declare const signUpEmail: <O extends BetterAuthOptions>() => {
|
|
|
4770
5126
|
schema: {
|
|
4771
5127
|
type: "object";
|
|
4772
5128
|
properties: {
|
|
4773
|
-
|
|
4774
|
-
type: string;
|
|
4775
|
-
description: string;
|
|
4776
|
-
};
|
|
4777
|
-
email: {
|
|
4778
|
-
type: string;
|
|
4779
|
-
description: string;
|
|
4780
|
-
};
|
|
4781
|
-
name: {
|
|
4782
|
-
type: string;
|
|
4783
|
-
description: string;
|
|
4784
|
-
};
|
|
4785
|
-
image: {
|
|
5129
|
+
token: {
|
|
4786
5130
|
type: string;
|
|
5131
|
+
nullable: boolean;
|
|
4787
5132
|
description: string;
|
|
4788
5133
|
};
|
|
4789
|
-
|
|
5134
|
+
user: {
|
|
4790
5135
|
type: string;
|
|
4791
|
-
|
|
5136
|
+
properties: {
|
|
5137
|
+
id: {
|
|
5138
|
+
type: string;
|
|
5139
|
+
description: string;
|
|
5140
|
+
};
|
|
5141
|
+
email: {
|
|
5142
|
+
type: string;
|
|
5143
|
+
format: string;
|
|
5144
|
+
description: string;
|
|
5145
|
+
};
|
|
5146
|
+
name: {
|
|
5147
|
+
type: string;
|
|
5148
|
+
description: string;
|
|
5149
|
+
};
|
|
5150
|
+
image: {
|
|
5151
|
+
type: string;
|
|
5152
|
+
format: string;
|
|
5153
|
+
nullable: boolean;
|
|
5154
|
+
description: string;
|
|
5155
|
+
};
|
|
5156
|
+
emailVerified: {
|
|
5157
|
+
type: string;
|
|
5158
|
+
description: string;
|
|
5159
|
+
};
|
|
5160
|
+
createdAt: {
|
|
5161
|
+
type: string;
|
|
5162
|
+
format: string;
|
|
5163
|
+
description: string;
|
|
5164
|
+
};
|
|
5165
|
+
updatedAt: {
|
|
5166
|
+
type: string;
|
|
5167
|
+
format: string;
|
|
5168
|
+
description: string;
|
|
5169
|
+
};
|
|
5170
|
+
};
|
|
5171
|
+
required: string[];
|
|
4792
5172
|
};
|
|
4793
5173
|
};
|
|
5174
|
+
required: string[];
|
|
4794
5175
|
};
|
|
4795
5176
|
};
|
|
4796
5177
|
};
|
|
@@ -4889,21 +5270,24 @@ declare const listUserAccounts: {
|
|
|
4889
5270
|
};
|
|
4890
5271
|
createdAt: {
|
|
4891
5272
|
type: string;
|
|
5273
|
+
format: string;
|
|
4892
5274
|
};
|
|
4893
5275
|
updatedAt: {
|
|
4894
5276
|
type: string;
|
|
5277
|
+
format: string;
|
|
4895
5278
|
};
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
5279
|
+
};
|
|
5280
|
+
accountId: {
|
|
5281
|
+
type: string;
|
|
5282
|
+
};
|
|
5283
|
+
scopes: {
|
|
5284
|
+
type: string;
|
|
5285
|
+
items: {
|
|
4900
5286
|
type: string;
|
|
4901
|
-
items: {
|
|
4902
|
-
type: string;
|
|
4903
|
-
};
|
|
4904
5287
|
};
|
|
4905
5288
|
};
|
|
4906
5289
|
};
|
|
5290
|
+
required: string[];
|
|
4907
5291
|
};
|
|
4908
5292
|
};
|
|
4909
5293
|
};
|
|
@@ -4919,7 +5303,8 @@ declare const listUserAccounts: {
|
|
|
4919
5303
|
declare const linkSocialAccount: {
|
|
4920
5304
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
4921
5305
|
body: {
|
|
4922
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
5306
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
5307
|
+
scopes?: string[] | undefined;
|
|
4923
5308
|
callbackURL?: string | undefined;
|
|
4924
5309
|
};
|
|
4925
5310
|
} & {
|
|
@@ -4961,12 +5346,20 @@ declare const linkSocialAccount: {
|
|
|
4961
5346
|
/**
|
|
4962
5347
|
* OAuth2 provider to use
|
|
4963
5348
|
*/
|
|
4964
|
-
provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick")[]]>;
|
|
5349
|
+
provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom")[]]>;
|
|
5350
|
+
/**
|
|
5351
|
+
* Additional scopes to request when linking the account.
|
|
5352
|
+
* This is useful for requesting additional permissions when
|
|
5353
|
+
* linking a social account compared to the initial authentication.
|
|
5354
|
+
*/
|
|
5355
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4965
5356
|
}, "strip", z.ZodTypeAny, {
|
|
4966
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
5357
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
5358
|
+
scopes?: string[] | undefined;
|
|
4967
5359
|
callbackURL?: string | undefined;
|
|
4968
5360
|
}, {
|
|
4969
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
5361
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
5362
|
+
scopes?: string[] | undefined;
|
|
4970
5363
|
callbackURL?: string | undefined;
|
|
4971
5364
|
}>;
|
|
4972
5365
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
@@ -5005,9 +5398,11 @@ declare const linkSocialAccount: {
|
|
|
5005
5398
|
properties: {
|
|
5006
5399
|
url: {
|
|
5007
5400
|
type: string;
|
|
5401
|
+
description: string;
|
|
5008
5402
|
};
|
|
5009
5403
|
redirect: {
|
|
5010
5404
|
type: string;
|
|
5405
|
+
description: string;
|
|
5011
5406
|
};
|
|
5012
5407
|
};
|
|
5013
5408
|
required: string[];
|
|
@@ -5090,6 +5485,28 @@ declare const unlinkAccount: {
|
|
|
5090
5485
|
};
|
|
5091
5486
|
};
|
|
5092
5487
|
}>)[];
|
|
5488
|
+
metadata: {
|
|
5489
|
+
openapi: {
|
|
5490
|
+
description: string;
|
|
5491
|
+
responses: {
|
|
5492
|
+
"200": {
|
|
5493
|
+
description: string;
|
|
5494
|
+
content: {
|
|
5495
|
+
"application/json": {
|
|
5496
|
+
schema: {
|
|
5497
|
+
type: "object";
|
|
5498
|
+
properties: {
|
|
5499
|
+
status: {
|
|
5500
|
+
type: string;
|
|
5501
|
+
};
|
|
5502
|
+
};
|
|
5503
|
+
};
|
|
5504
|
+
};
|
|
5505
|
+
};
|
|
5506
|
+
};
|
|
5507
|
+
};
|
|
5508
|
+
};
|
|
5509
|
+
};
|
|
5093
5510
|
} & {
|
|
5094
5511
|
use: any[];
|
|
5095
5512
|
};
|
|
@@ -5241,8 +5658,10 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
5241
5658
|
properties: {
|
|
5242
5659
|
ok: {
|
|
5243
5660
|
type: string;
|
|
5661
|
+
description: string;
|
|
5244
5662
|
};
|
|
5245
5663
|
};
|
|
5664
|
+
required: string[];
|
|
5246
5665
|
};
|
|
5247
5666
|
};
|
|
5248
5667
|
};
|
|
@@ -5293,6 +5712,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
5293
5712
|
"text/html": {
|
|
5294
5713
|
schema: {
|
|
5295
5714
|
type: "string";
|
|
5715
|
+
description: string;
|
|
5296
5716
|
};
|
|
5297
5717
|
};
|
|
5298
5718
|
};
|
|
@@ -5309,7 +5729,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
5309
5729
|
signInSocial: {
|
|
5310
5730
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
5311
5731
|
body: {
|
|
5312
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
5732
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
5313
5733
|
scopes?: string[] | undefined;
|
|
5314
5734
|
loginHint?: string | undefined;
|
|
5315
5735
|
idToken?: {
|
|
@@ -5385,7 +5805,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
5385
5805
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
5386
5806
|
newUserCallbackURL: zod.ZodOptional<zod.ZodString>;
|
|
5387
5807
|
errorCallbackURL: zod.ZodOptional<zod.ZodString>;
|
|
5388
|
-
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick")[]]>;
|
|
5808
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom")[]]>;
|
|
5389
5809
|
disableRedirect: zod.ZodOptional<zod.ZodBoolean>;
|
|
5390
5810
|
idToken: zod.ZodOptional<zod.ZodObject<{
|
|
5391
5811
|
token: zod.ZodString;
|
|
@@ -5410,7 +5830,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
5410
5830
|
requestSignUp: zod.ZodOptional<zod.ZodBoolean>;
|
|
5411
5831
|
loginHint: zod.ZodOptional<zod.ZodString>;
|
|
5412
5832
|
}, "strip", zod.ZodTypeAny, {
|
|
5413
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
5833
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
5414
5834
|
scopes?: string[] | undefined;
|
|
5415
5835
|
loginHint?: string | undefined;
|
|
5416
5836
|
idToken?: {
|
|
@@ -5426,7 +5846,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
5426
5846
|
newUserCallbackURL?: string | undefined;
|
|
5427
5847
|
disableRedirect?: boolean | undefined;
|
|
5428
5848
|
}, {
|
|
5429
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
5849
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
5430
5850
|
scopes?: string[] | undefined;
|
|
5431
5851
|
loginHint?: string | undefined;
|
|
5432
5852
|
idToken?: {
|
|
@@ -5445,6 +5865,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
5445
5865
|
metadata: {
|
|
5446
5866
|
openapi: {
|
|
5447
5867
|
description: string;
|
|
5868
|
+
operationId: string;
|
|
5448
5869
|
responses: {
|
|
5449
5870
|
"200": {
|
|
5450
5871
|
description: string;
|
|
@@ -5452,22 +5873,53 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
5452
5873
|
"application/json": {
|
|
5453
5874
|
schema: {
|
|
5454
5875
|
type: "object";
|
|
5876
|
+
description: string;
|
|
5455
5877
|
properties: {
|
|
5456
|
-
|
|
5457
|
-
type: string;
|
|
5458
|
-
};
|
|
5459
|
-
user: {
|
|
5460
|
-
type: string;
|
|
5461
|
-
ref: string;
|
|
5462
|
-
};
|
|
5463
|
-
url: {
|
|
5878
|
+
redirect: {
|
|
5464
5879
|
type: string;
|
|
5880
|
+
enum: boolean[];
|
|
5465
5881
|
};
|
|
5466
|
-
|
|
5882
|
+
token: {
|
|
5467
5883
|
type: string;
|
|
5884
|
+
description: string;
|
|
5885
|
+
url: {
|
|
5886
|
+
type: string;
|
|
5887
|
+
nullable: boolean;
|
|
5888
|
+
};
|
|
5889
|
+
user: {
|
|
5890
|
+
type: string;
|
|
5891
|
+
properties: {
|
|
5892
|
+
id: {
|
|
5893
|
+
type: string;
|
|
5894
|
+
};
|
|
5895
|
+
email: {
|
|
5896
|
+
type: string;
|
|
5897
|
+
};
|
|
5898
|
+
name: {
|
|
5899
|
+
type: string;
|
|
5900
|
+
nullable: boolean;
|
|
5901
|
+
};
|
|
5902
|
+
image: {
|
|
5903
|
+
type: string;
|
|
5904
|
+
nullable: boolean;
|
|
5905
|
+
};
|
|
5906
|
+
emailVerified: {
|
|
5907
|
+
type: string;
|
|
5908
|
+
};
|
|
5909
|
+
createdAt: {
|
|
5910
|
+
type: string;
|
|
5911
|
+
format: string;
|
|
5912
|
+
};
|
|
5913
|
+
updatedAt: {
|
|
5914
|
+
type: string;
|
|
5915
|
+
format: string;
|
|
5916
|
+
};
|
|
5917
|
+
};
|
|
5918
|
+
required: string[];
|
|
5919
|
+
};
|
|
5468
5920
|
};
|
|
5921
|
+
required: string[];
|
|
5469
5922
|
};
|
|
5470
|
-
required: string[];
|
|
5471
5923
|
};
|
|
5472
5924
|
};
|
|
5473
5925
|
};
|
|
@@ -5487,6 +5939,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
5487
5939
|
code?: string | undefined;
|
|
5488
5940
|
device_id?: string | undefined;
|
|
5489
5941
|
error?: string | undefined;
|
|
5942
|
+
user?: string | undefined;
|
|
5490
5943
|
error_description?: string | undefined;
|
|
5491
5944
|
} | undefined;
|
|
5492
5945
|
} & {
|
|
@@ -5497,6 +5950,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
5497
5950
|
code?: string | undefined;
|
|
5498
5951
|
device_id?: string | undefined;
|
|
5499
5952
|
error?: string | undefined;
|
|
5953
|
+
user?: string | undefined;
|
|
5500
5954
|
error_description?: string | undefined;
|
|
5501
5955
|
} | undefined;
|
|
5502
5956
|
} & {
|
|
@@ -5527,17 +5981,20 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
5527
5981
|
device_id: zod.ZodOptional<zod.ZodString>;
|
|
5528
5982
|
error_description: zod.ZodOptional<zod.ZodString>;
|
|
5529
5983
|
state: zod.ZodOptional<zod.ZodString>;
|
|
5984
|
+
user: zod.ZodOptional<zod.ZodString>;
|
|
5530
5985
|
}, "strip", zod.ZodTypeAny, {
|
|
5531
5986
|
state?: string | undefined;
|
|
5532
5987
|
code?: string | undefined;
|
|
5533
5988
|
device_id?: string | undefined;
|
|
5534
5989
|
error?: string | undefined;
|
|
5990
|
+
user?: string | undefined;
|
|
5535
5991
|
error_description?: string | undefined;
|
|
5536
5992
|
}, {
|
|
5537
5993
|
state?: string | undefined;
|
|
5538
5994
|
code?: string | undefined;
|
|
5539
5995
|
device_id?: string | undefined;
|
|
5540
5996
|
error?: string | undefined;
|
|
5997
|
+
user?: string | undefined;
|
|
5541
5998
|
error_description?: string | undefined;
|
|
5542
5999
|
}>>;
|
|
5543
6000
|
query: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -5546,17 +6003,20 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
5546
6003
|
device_id: zod.ZodOptional<zod.ZodString>;
|
|
5547
6004
|
error_description: zod.ZodOptional<zod.ZodString>;
|
|
5548
6005
|
state: zod.ZodOptional<zod.ZodString>;
|
|
6006
|
+
user: zod.ZodOptional<zod.ZodString>;
|
|
5549
6007
|
}, "strip", zod.ZodTypeAny, {
|
|
5550
6008
|
state?: string | undefined;
|
|
5551
6009
|
code?: string | undefined;
|
|
5552
6010
|
device_id?: string | undefined;
|
|
5553
6011
|
error?: string | undefined;
|
|
6012
|
+
user?: string | undefined;
|
|
5554
6013
|
error_description?: string | undefined;
|
|
5555
6014
|
}, {
|
|
5556
6015
|
state?: string | undefined;
|
|
5557
6016
|
code?: string | undefined;
|
|
5558
6017
|
device_id?: string | undefined;
|
|
5559
6018
|
error?: string | undefined;
|
|
6019
|
+
user?: string | undefined;
|
|
5560
6020
|
error_description?: string | undefined;
|
|
5561
6021
|
}>>;
|
|
5562
6022
|
metadata: {
|
|
@@ -5660,14 +6120,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
5660
6120
|
type: "object";
|
|
5661
6121
|
properties: {
|
|
5662
6122
|
session: {
|
|
5663
|
-
type: string;
|
|
5664
6123
|
$ref: string;
|
|
5665
6124
|
};
|
|
5666
6125
|
user: {
|
|
5667
|
-
type: string;
|
|
5668
6126
|
$ref: string;
|
|
5669
6127
|
};
|
|
5670
6128
|
};
|
|
6129
|
+
required: string[];
|
|
5671
6130
|
};
|
|
5672
6131
|
};
|
|
5673
6132
|
};
|
|
@@ -5789,27 +6248,52 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
5789
6248
|
schema: {
|
|
5790
6249
|
type: "object";
|
|
5791
6250
|
properties: {
|
|
5792
|
-
|
|
5793
|
-
type: string;
|
|
5794
|
-
description: string;
|
|
5795
|
-
};
|
|
5796
|
-
email: {
|
|
5797
|
-
type: string;
|
|
5798
|
-
description: string;
|
|
5799
|
-
};
|
|
5800
|
-
name: {
|
|
5801
|
-
type: string;
|
|
5802
|
-
description: string;
|
|
5803
|
-
};
|
|
5804
|
-
image: {
|
|
6251
|
+
token: {
|
|
5805
6252
|
type: string;
|
|
6253
|
+
nullable: boolean;
|
|
5806
6254
|
description: string;
|
|
5807
6255
|
};
|
|
5808
|
-
|
|
6256
|
+
user: {
|
|
5809
6257
|
type: string;
|
|
5810
|
-
|
|
6258
|
+
properties: {
|
|
6259
|
+
id: {
|
|
6260
|
+
type: string;
|
|
6261
|
+
description: string;
|
|
6262
|
+
};
|
|
6263
|
+
email: {
|
|
6264
|
+
type: string;
|
|
6265
|
+
format: string;
|
|
6266
|
+
description: string;
|
|
6267
|
+
};
|
|
6268
|
+
name: {
|
|
6269
|
+
type: string;
|
|
6270
|
+
description: string;
|
|
6271
|
+
};
|
|
6272
|
+
image: {
|
|
6273
|
+
type: string;
|
|
6274
|
+
format: string;
|
|
6275
|
+
nullable: boolean;
|
|
6276
|
+
description: string;
|
|
6277
|
+
};
|
|
6278
|
+
emailVerified: {
|
|
6279
|
+
type: string;
|
|
6280
|
+
description: string;
|
|
6281
|
+
};
|
|
6282
|
+
createdAt: {
|
|
6283
|
+
type: string;
|
|
6284
|
+
format: string;
|
|
6285
|
+
description: string;
|
|
6286
|
+
};
|
|
6287
|
+
updatedAt: {
|
|
6288
|
+
type: string;
|
|
6289
|
+
format: string;
|
|
6290
|
+
description: string;
|
|
6291
|
+
};
|
|
6292
|
+
};
|
|
6293
|
+
required: string[];
|
|
5811
6294
|
};
|
|
5812
6295
|
};
|
|
6296
|
+
required: string[];
|
|
5813
6297
|
};
|
|
5814
6298
|
};
|
|
5815
6299
|
};
|
|
@@ -5868,27 +6352,52 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
5868
6352
|
schema: {
|
|
5869
6353
|
type: "object";
|
|
5870
6354
|
properties: {
|
|
5871
|
-
|
|
5872
|
-
type: string;
|
|
5873
|
-
description: string;
|
|
5874
|
-
};
|
|
5875
|
-
email: {
|
|
5876
|
-
type: string;
|
|
5877
|
-
description: string;
|
|
5878
|
-
};
|
|
5879
|
-
name: {
|
|
5880
|
-
type: string;
|
|
5881
|
-
description: string;
|
|
5882
|
-
};
|
|
5883
|
-
image: {
|
|
6355
|
+
token: {
|
|
5884
6356
|
type: string;
|
|
6357
|
+
nullable: boolean;
|
|
5885
6358
|
description: string;
|
|
5886
6359
|
};
|
|
5887
|
-
|
|
6360
|
+
user: {
|
|
5888
6361
|
type: string;
|
|
5889
|
-
|
|
6362
|
+
properties: {
|
|
6363
|
+
id: {
|
|
6364
|
+
type: string;
|
|
6365
|
+
description: string;
|
|
6366
|
+
};
|
|
6367
|
+
email: {
|
|
6368
|
+
type: string;
|
|
6369
|
+
format: string;
|
|
6370
|
+
description: string;
|
|
6371
|
+
};
|
|
6372
|
+
name: {
|
|
6373
|
+
type: string;
|
|
6374
|
+
description: string;
|
|
6375
|
+
};
|
|
6376
|
+
image: {
|
|
6377
|
+
type: string;
|
|
6378
|
+
format: string;
|
|
6379
|
+
nullable: boolean;
|
|
6380
|
+
description: string;
|
|
6381
|
+
};
|
|
6382
|
+
emailVerified: {
|
|
6383
|
+
type: string;
|
|
6384
|
+
description: string;
|
|
6385
|
+
};
|
|
6386
|
+
createdAt: {
|
|
6387
|
+
type: string;
|
|
6388
|
+
format: string;
|
|
6389
|
+
description: string;
|
|
6390
|
+
};
|
|
6391
|
+
updatedAt: {
|
|
6392
|
+
type: string;
|
|
6393
|
+
format: string;
|
|
6394
|
+
description: string;
|
|
6395
|
+
};
|
|
6396
|
+
};
|
|
6397
|
+
required: string[];
|
|
5890
6398
|
};
|
|
5891
6399
|
};
|
|
6400
|
+
required: string[];
|
|
5892
6401
|
};
|
|
5893
6402
|
};
|
|
5894
6403
|
};
|
|
@@ -5968,28 +6477,53 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
5968
6477
|
"application/json": {
|
|
5969
6478
|
schema: {
|
|
5970
6479
|
type: "object";
|
|
5971
|
-
properties: {
|
|
5972
|
-
|
|
5973
|
-
type: string;
|
|
5974
|
-
description: string;
|
|
5975
|
-
};
|
|
5976
|
-
email: {
|
|
5977
|
-
type: string;
|
|
5978
|
-
description: string;
|
|
5979
|
-
};
|
|
5980
|
-
name: {
|
|
5981
|
-
type: string;
|
|
5982
|
-
description: string;
|
|
5983
|
-
};
|
|
5984
|
-
image: {
|
|
6480
|
+
properties: {
|
|
6481
|
+
token: {
|
|
5985
6482
|
type: string;
|
|
6483
|
+
nullable: boolean;
|
|
5986
6484
|
description: string;
|
|
5987
6485
|
};
|
|
5988
|
-
|
|
6486
|
+
user: {
|
|
5989
6487
|
type: string;
|
|
5990
|
-
|
|
6488
|
+
properties: {
|
|
6489
|
+
id: {
|
|
6490
|
+
type: string;
|
|
6491
|
+
description: string;
|
|
6492
|
+
};
|
|
6493
|
+
email: {
|
|
6494
|
+
type: string;
|
|
6495
|
+
format: string;
|
|
6496
|
+
description: string;
|
|
6497
|
+
};
|
|
6498
|
+
name: {
|
|
6499
|
+
type: string;
|
|
6500
|
+
description: string;
|
|
6501
|
+
};
|
|
6502
|
+
image: {
|
|
6503
|
+
type: string;
|
|
6504
|
+
format: string;
|
|
6505
|
+
nullable: boolean;
|
|
6506
|
+
description: string;
|
|
6507
|
+
};
|
|
6508
|
+
emailVerified: {
|
|
6509
|
+
type: string;
|
|
6510
|
+
description: string;
|
|
6511
|
+
};
|
|
6512
|
+
createdAt: {
|
|
6513
|
+
type: string;
|
|
6514
|
+
format: string;
|
|
6515
|
+
description: string;
|
|
6516
|
+
};
|
|
6517
|
+
updatedAt: {
|
|
6518
|
+
type: string;
|
|
6519
|
+
format: string;
|
|
6520
|
+
description: string;
|
|
6521
|
+
};
|
|
6522
|
+
};
|
|
6523
|
+
required: string[];
|
|
5991
6524
|
};
|
|
5992
6525
|
};
|
|
6526
|
+
required: string[];
|
|
5993
6527
|
};
|
|
5994
6528
|
};
|
|
5995
6529
|
};
|
|
@@ -6118,27 +6652,52 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
6118
6652
|
schema: {
|
|
6119
6653
|
type: "object";
|
|
6120
6654
|
properties: {
|
|
6121
|
-
|
|
6122
|
-
type: string;
|
|
6123
|
-
description: string;
|
|
6124
|
-
};
|
|
6125
|
-
email: {
|
|
6126
|
-
type: string;
|
|
6127
|
-
description: string;
|
|
6128
|
-
};
|
|
6129
|
-
name: {
|
|
6130
|
-
type: string;
|
|
6131
|
-
description: string;
|
|
6132
|
-
};
|
|
6133
|
-
image: {
|
|
6655
|
+
token: {
|
|
6134
6656
|
type: string;
|
|
6657
|
+
nullable: boolean;
|
|
6135
6658
|
description: string;
|
|
6136
6659
|
};
|
|
6137
|
-
|
|
6660
|
+
user: {
|
|
6138
6661
|
type: string;
|
|
6139
|
-
|
|
6662
|
+
properties: {
|
|
6663
|
+
id: {
|
|
6664
|
+
type: string;
|
|
6665
|
+
description: string;
|
|
6666
|
+
};
|
|
6667
|
+
email: {
|
|
6668
|
+
type: string;
|
|
6669
|
+
format: string;
|
|
6670
|
+
description: string;
|
|
6671
|
+
};
|
|
6672
|
+
name: {
|
|
6673
|
+
type: string;
|
|
6674
|
+
description: string;
|
|
6675
|
+
};
|
|
6676
|
+
image: {
|
|
6677
|
+
type: string;
|
|
6678
|
+
format: string;
|
|
6679
|
+
nullable: boolean;
|
|
6680
|
+
description: string;
|
|
6681
|
+
};
|
|
6682
|
+
emailVerified: {
|
|
6683
|
+
type: string;
|
|
6684
|
+
description: string;
|
|
6685
|
+
};
|
|
6686
|
+
createdAt: {
|
|
6687
|
+
type: string;
|
|
6688
|
+
format: string;
|
|
6689
|
+
description: string;
|
|
6690
|
+
};
|
|
6691
|
+
updatedAt: {
|
|
6692
|
+
type: string;
|
|
6693
|
+
format: string;
|
|
6694
|
+
description: string;
|
|
6695
|
+
};
|
|
6696
|
+
};
|
|
6697
|
+
required: string[];
|
|
6140
6698
|
};
|
|
6141
6699
|
};
|
|
6700
|
+
required: string[];
|
|
6142
6701
|
};
|
|
6143
6702
|
};
|
|
6144
6703
|
};
|
|
@@ -6235,19 +6794,50 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
6235
6794
|
"application/json": {
|
|
6236
6795
|
schema: {
|
|
6237
6796
|
type: "object";
|
|
6797
|
+
description: string;
|
|
6238
6798
|
properties: {
|
|
6239
|
-
|
|
6799
|
+
redirect: {
|
|
6240
6800
|
type: string;
|
|
6801
|
+
enum: boolean[];
|
|
6241
6802
|
};
|
|
6242
|
-
|
|
6803
|
+
token: {
|
|
6243
6804
|
type: string;
|
|
6244
|
-
|
|
6805
|
+
description: string;
|
|
6245
6806
|
};
|
|
6246
6807
|
url: {
|
|
6247
6808
|
type: string;
|
|
6809
|
+
nullable: boolean;
|
|
6248
6810
|
};
|
|
6249
|
-
|
|
6811
|
+
user: {
|
|
6250
6812
|
type: string;
|
|
6813
|
+
properties: {
|
|
6814
|
+
id: {
|
|
6815
|
+
type: string;
|
|
6816
|
+
};
|
|
6817
|
+
email: {
|
|
6818
|
+
type: string;
|
|
6819
|
+
};
|
|
6820
|
+
name: {
|
|
6821
|
+
type: string;
|
|
6822
|
+
nullable: boolean;
|
|
6823
|
+
};
|
|
6824
|
+
image: {
|
|
6825
|
+
type: string;
|
|
6826
|
+
nullable: boolean;
|
|
6827
|
+
};
|
|
6828
|
+
emailVerified: {
|
|
6829
|
+
type: string;
|
|
6830
|
+
};
|
|
6831
|
+
createdAt: {
|
|
6832
|
+
type: string;
|
|
6833
|
+
format: string;
|
|
6834
|
+
};
|
|
6835
|
+
updatedAt: {
|
|
6836
|
+
type: string;
|
|
6837
|
+
format: string;
|
|
6838
|
+
};
|
|
6839
|
+
};
|
|
6840
|
+
required: string[];
|
|
6251
6841
|
};
|
|
6252
6842
|
};
|
|
6253
6843
|
required: string[];
|
|
@@ -6486,6 +7076,23 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
6486
7076
|
metadata: {
|
|
6487
7077
|
openapi: {
|
|
6488
7078
|
description: string;
|
|
7079
|
+
parameters: ({
|
|
7080
|
+
name: string;
|
|
7081
|
+
in: "query";
|
|
7082
|
+
description: string;
|
|
7083
|
+
required: true;
|
|
7084
|
+
schema: {
|
|
7085
|
+
type: "string";
|
|
7086
|
+
};
|
|
7087
|
+
} | {
|
|
7088
|
+
name: string;
|
|
7089
|
+
in: "query";
|
|
7090
|
+
description: string;
|
|
7091
|
+
required: false;
|
|
7092
|
+
schema: {
|
|
7093
|
+
type: "string";
|
|
7094
|
+
};
|
|
7095
|
+
})[];
|
|
6489
7096
|
responses: {
|
|
6490
7097
|
"200": {
|
|
6491
7098
|
description: string;
|
|
@@ -6496,13 +7103,44 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
6496
7103
|
properties: {
|
|
6497
7104
|
user: {
|
|
6498
7105
|
type: string;
|
|
6499
|
-
|
|
7106
|
+
properties: {
|
|
7107
|
+
id: {
|
|
7108
|
+
type: string;
|
|
7109
|
+
description: string;
|
|
7110
|
+
};
|
|
7111
|
+
email: {
|
|
7112
|
+
type: string;
|
|
7113
|
+
description: string;
|
|
7114
|
+
};
|
|
7115
|
+
name: {
|
|
7116
|
+
type: string;
|
|
7117
|
+
description: string;
|
|
7118
|
+
};
|
|
7119
|
+
image: {
|
|
7120
|
+
type: string;
|
|
7121
|
+
description: string;
|
|
7122
|
+
};
|
|
7123
|
+
emailVerified: {
|
|
7124
|
+
type: string;
|
|
7125
|
+
description: string;
|
|
7126
|
+
};
|
|
7127
|
+
createdAt: {
|
|
7128
|
+
type: string;
|
|
7129
|
+
description: string;
|
|
7130
|
+
};
|
|
7131
|
+
updatedAt: {
|
|
7132
|
+
type: string;
|
|
7133
|
+
description: string;
|
|
7134
|
+
};
|
|
7135
|
+
};
|
|
7136
|
+
required: string[];
|
|
6500
7137
|
};
|
|
6501
7138
|
status: {
|
|
6502
7139
|
type: string;
|
|
7140
|
+
description: string;
|
|
6503
7141
|
};
|
|
7142
|
+
required: string[];
|
|
6504
7143
|
};
|
|
6505
|
-
required: string[];
|
|
6506
7144
|
};
|
|
6507
7145
|
};
|
|
6508
7146
|
};
|
|
@@ -6571,10 +7209,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
6571
7209
|
email: {
|
|
6572
7210
|
type: string;
|
|
6573
7211
|
description: string;
|
|
7212
|
+
example: string;
|
|
6574
7213
|
};
|
|
6575
7214
|
callbackURL: {
|
|
6576
7215
|
type: string;
|
|
6577
7216
|
description: string;
|
|
7217
|
+
example: string;
|
|
7218
|
+
nullable: boolean;
|
|
6578
7219
|
};
|
|
6579
7220
|
};
|
|
6580
7221
|
required: string[];
|
|
@@ -6592,6 +7233,25 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
6592
7233
|
properties: {
|
|
6593
7234
|
status: {
|
|
6594
7235
|
type: string;
|
|
7236
|
+
description: string;
|
|
7237
|
+
example: boolean;
|
|
7238
|
+
};
|
|
7239
|
+
};
|
|
7240
|
+
};
|
|
7241
|
+
};
|
|
7242
|
+
};
|
|
7243
|
+
};
|
|
7244
|
+
"400": {
|
|
7245
|
+
description: string;
|
|
7246
|
+
content: {
|
|
7247
|
+
"application/json": {
|
|
7248
|
+
schema: {
|
|
7249
|
+
type: "object";
|
|
7250
|
+
properties: {
|
|
7251
|
+
message: {
|
|
7252
|
+
type: string;
|
|
7253
|
+
description: string;
|
|
7254
|
+
example: string;
|
|
6595
7255
|
};
|
|
6596
7256
|
};
|
|
6597
7257
|
};
|
|
@@ -6683,14 +7343,18 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
6683
7343
|
schema: {
|
|
6684
7344
|
type: "object";
|
|
6685
7345
|
properties: {
|
|
6686
|
-
|
|
7346
|
+
status: {
|
|
6687
7347
|
type: string;
|
|
6688
|
-
|
|
7348
|
+
description: string;
|
|
6689
7349
|
};
|
|
6690
|
-
|
|
7350
|
+
message: {
|
|
6691
7351
|
type: string;
|
|
7352
|
+
enum: string[];
|
|
7353
|
+
description: string;
|
|
7354
|
+
nullable: boolean;
|
|
6692
7355
|
};
|
|
6693
7356
|
};
|
|
7357
|
+
required: string[];
|
|
6694
7358
|
};
|
|
6695
7359
|
};
|
|
6696
7360
|
};
|
|
@@ -6803,11 +7467,52 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
6803
7467
|
schema: {
|
|
6804
7468
|
type: "object";
|
|
6805
7469
|
properties: {
|
|
6806
|
-
|
|
7470
|
+
token: {
|
|
7471
|
+
type: string;
|
|
7472
|
+
nullable: boolean;
|
|
6807
7473
|
description: string;
|
|
6808
|
-
|
|
7474
|
+
};
|
|
7475
|
+
user: {
|
|
7476
|
+
type: string;
|
|
7477
|
+
properties: {
|
|
7478
|
+
id: {
|
|
7479
|
+
type: string;
|
|
7480
|
+
description: string;
|
|
7481
|
+
};
|
|
7482
|
+
email: {
|
|
7483
|
+
type: string;
|
|
7484
|
+
format: string;
|
|
7485
|
+
description: string;
|
|
7486
|
+
};
|
|
7487
|
+
name: {
|
|
7488
|
+
type: string;
|
|
7489
|
+
description: string;
|
|
7490
|
+
};
|
|
7491
|
+
image: {
|
|
7492
|
+
type: string;
|
|
7493
|
+
format: string;
|
|
7494
|
+
nullable: boolean;
|
|
7495
|
+
description: string;
|
|
7496
|
+
};
|
|
7497
|
+
emailVerified: {
|
|
7498
|
+
type: string;
|
|
7499
|
+
description: string;
|
|
7500
|
+
};
|
|
7501
|
+
createdAt: {
|
|
7502
|
+
type: string;
|
|
7503
|
+
format: string;
|
|
7504
|
+
description: string;
|
|
7505
|
+
};
|
|
7506
|
+
updatedAt: {
|
|
7507
|
+
type: string;
|
|
7508
|
+
format: string;
|
|
7509
|
+
description: string;
|
|
7510
|
+
};
|
|
7511
|
+
};
|
|
7512
|
+
required: string[];
|
|
6809
7513
|
};
|
|
6810
7514
|
};
|
|
7515
|
+
required: string[];
|
|
6811
7516
|
};
|
|
6812
7517
|
};
|
|
6813
7518
|
};
|
|
@@ -6954,9 +7659,9 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
6954
7659
|
schema: {
|
|
6955
7660
|
type: "object";
|
|
6956
7661
|
properties: {
|
|
6957
|
-
|
|
7662
|
+
status: {
|
|
6958
7663
|
type: string;
|
|
6959
|
-
|
|
7664
|
+
description: string;
|
|
6960
7665
|
};
|
|
6961
7666
|
};
|
|
6962
7667
|
};
|
|
@@ -7030,9 +7735,9 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
7030
7735
|
schema: {
|
|
7031
7736
|
type: "object";
|
|
7032
7737
|
properties: {
|
|
7033
|
-
|
|
7738
|
+
status: {
|
|
7034
7739
|
type: string;
|
|
7035
|
-
|
|
7740
|
+
description: string;
|
|
7036
7741
|
};
|
|
7037
7742
|
};
|
|
7038
7743
|
};
|
|
@@ -7127,9 +7832,9 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
7127
7832
|
schema: {
|
|
7128
7833
|
type: "object";
|
|
7129
7834
|
properties: {
|
|
7130
|
-
|
|
7835
|
+
status: {
|
|
7131
7836
|
type: string;
|
|
7132
|
-
|
|
7837
|
+
description: string;
|
|
7133
7838
|
};
|
|
7134
7839
|
};
|
|
7135
7840
|
};
|
|
@@ -7232,9 +7937,9 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
7232
7937
|
schema: {
|
|
7233
7938
|
type: "object";
|
|
7234
7939
|
properties: {
|
|
7235
|
-
|
|
7940
|
+
status: {
|
|
7236
7941
|
type: string;
|
|
7237
|
-
|
|
7942
|
+
description: string;
|
|
7238
7943
|
};
|
|
7239
7944
|
};
|
|
7240
7945
|
};
|
|
@@ -7332,6 +8037,18 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
7332
8037
|
"application/json": {
|
|
7333
8038
|
schema: {
|
|
7334
8039
|
type: "object";
|
|
8040
|
+
properties: {
|
|
8041
|
+
success: {
|
|
8042
|
+
type: string;
|
|
8043
|
+
description: string;
|
|
8044
|
+
};
|
|
8045
|
+
message: {
|
|
8046
|
+
type: string;
|
|
8047
|
+
enum: string[];
|
|
8048
|
+
description: string;
|
|
8049
|
+
};
|
|
8050
|
+
};
|
|
8051
|
+
required: string[];
|
|
7335
8052
|
};
|
|
7336
8053
|
};
|
|
7337
8054
|
};
|
|
@@ -7490,18 +8207,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
7490
8207
|
schema: {
|
|
7491
8208
|
type: "array";
|
|
7492
8209
|
items: {
|
|
7493
|
-
|
|
7494
|
-
properties: {
|
|
7495
|
-
token: {
|
|
7496
|
-
type: string;
|
|
7497
|
-
};
|
|
7498
|
-
userId: {
|
|
7499
|
-
type: string;
|
|
7500
|
-
};
|
|
7501
|
-
expiresAt: {
|
|
7502
|
-
type: string;
|
|
7503
|
-
};
|
|
7504
|
-
};
|
|
8210
|
+
$ref: string;
|
|
7505
8211
|
};
|
|
7506
8212
|
};
|
|
7507
8213
|
};
|
|
@@ -7590,6 +8296,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
7590
8296
|
properties: {
|
|
7591
8297
|
token: {
|
|
7592
8298
|
type: string;
|
|
8299
|
+
description: string;
|
|
7593
8300
|
};
|
|
7594
8301
|
};
|
|
7595
8302
|
required: string[];
|
|
@@ -7597,6 +8304,25 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
7597
8304
|
};
|
|
7598
8305
|
};
|
|
7599
8306
|
};
|
|
8307
|
+
responses: {
|
|
8308
|
+
"200": {
|
|
8309
|
+
description: string;
|
|
8310
|
+
content: {
|
|
8311
|
+
"application/json": {
|
|
8312
|
+
schema: {
|
|
8313
|
+
type: "object";
|
|
8314
|
+
properties: {
|
|
8315
|
+
status: {
|
|
8316
|
+
type: string;
|
|
8317
|
+
description: string;
|
|
8318
|
+
};
|
|
8319
|
+
};
|
|
8320
|
+
required: string[];
|
|
8321
|
+
};
|
|
8322
|
+
};
|
|
8323
|
+
};
|
|
8324
|
+
};
|
|
8325
|
+
};
|
|
7600
8326
|
};
|
|
7601
8327
|
};
|
|
7602
8328
|
} & {
|
|
@@ -7672,6 +8398,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
7672
8398
|
properties: {
|
|
7673
8399
|
status: {
|
|
7674
8400
|
type: string;
|
|
8401
|
+
description: string;
|
|
7675
8402
|
};
|
|
7676
8403
|
};
|
|
7677
8404
|
required: string[];
|
|
@@ -7755,8 +8482,10 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
7755
8482
|
properties: {
|
|
7756
8483
|
status: {
|
|
7757
8484
|
type: string;
|
|
8485
|
+
description: string;
|
|
7758
8486
|
};
|
|
7759
8487
|
};
|
|
8488
|
+
required: string[];
|
|
7760
8489
|
};
|
|
7761
8490
|
};
|
|
7762
8491
|
};
|
|
@@ -7772,7 +8501,8 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
7772
8501
|
linkSocialAccount: {
|
|
7773
8502
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
7774
8503
|
body: {
|
|
7775
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
8504
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
8505
|
+
scopes?: string[] | undefined;
|
|
7776
8506
|
callbackURL?: string | undefined;
|
|
7777
8507
|
};
|
|
7778
8508
|
} & {
|
|
@@ -7808,12 +8538,15 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
7808
8538
|
requireHeaders: true;
|
|
7809
8539
|
body: zod.ZodObject<{
|
|
7810
8540
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
7811
|
-
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick")[]]>;
|
|
8541
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom")[]]>;
|
|
8542
|
+
scopes: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
7812
8543
|
}, "strip", zod.ZodTypeAny, {
|
|
7813
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
8544
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
8545
|
+
scopes?: string[] | undefined;
|
|
7814
8546
|
callbackURL?: string | undefined;
|
|
7815
8547
|
}, {
|
|
7816
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
8548
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
8549
|
+
scopes?: string[] | undefined;
|
|
7817
8550
|
callbackURL?: string | undefined;
|
|
7818
8551
|
}>;
|
|
7819
8552
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
@@ -7852,9 +8585,11 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
7852
8585
|
properties: {
|
|
7853
8586
|
url: {
|
|
7854
8587
|
type: string;
|
|
8588
|
+
description: string;
|
|
7855
8589
|
};
|
|
7856
8590
|
redirect: {
|
|
7857
8591
|
type: string;
|
|
8592
|
+
description: string;
|
|
7858
8593
|
};
|
|
7859
8594
|
};
|
|
7860
8595
|
required: string[];
|
|
@@ -7955,21 +8690,24 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
7955
8690
|
};
|
|
7956
8691
|
createdAt: {
|
|
7957
8692
|
type: string;
|
|
8693
|
+
format: string;
|
|
7958
8694
|
};
|
|
7959
8695
|
updatedAt: {
|
|
7960
8696
|
type: string;
|
|
8697
|
+
format: string;
|
|
7961
8698
|
};
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
8699
|
+
};
|
|
8700
|
+
accountId: {
|
|
8701
|
+
type: string;
|
|
8702
|
+
};
|
|
8703
|
+
scopes: {
|
|
8704
|
+
type: string;
|
|
8705
|
+
items: {
|
|
7966
8706
|
type: string;
|
|
7967
|
-
items: {
|
|
7968
|
-
type: string;
|
|
7969
|
-
};
|
|
7970
8707
|
};
|
|
7971
8708
|
};
|
|
7972
8709
|
};
|
|
8710
|
+
required: string[];
|
|
7973
8711
|
};
|
|
7974
8712
|
};
|
|
7975
8713
|
};
|
|
@@ -8012,23 +8750,52 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
8012
8750
|
success: boolean;
|
|
8013
8751
|
message: string;
|
|
8014
8752
|
};
|
|
8015
|
-
} : {
|
|
8016
|
-
success: boolean;
|
|
8017
|
-
message: string;
|
|
8018
|
-
}>;
|
|
8019
|
-
options: {
|
|
8020
|
-
method: "GET";
|
|
8021
|
-
query: zod.ZodObject<{
|
|
8022
|
-
token: zod.ZodString;
|
|
8023
|
-
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
8024
|
-
}, "strip", zod.ZodTypeAny, {
|
|
8025
|
-
token: string;
|
|
8026
|
-
callbackURL?: string | undefined;
|
|
8027
|
-
}, {
|
|
8028
|
-
token: string;
|
|
8029
|
-
callbackURL?: string | undefined;
|
|
8030
|
-
}>;
|
|
8031
|
-
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<void>)[];
|
|
8753
|
+
} : {
|
|
8754
|
+
success: boolean;
|
|
8755
|
+
message: string;
|
|
8756
|
+
}>;
|
|
8757
|
+
options: {
|
|
8758
|
+
method: "GET";
|
|
8759
|
+
query: zod.ZodObject<{
|
|
8760
|
+
token: zod.ZodString;
|
|
8761
|
+
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
8762
|
+
}, "strip", zod.ZodTypeAny, {
|
|
8763
|
+
token: string;
|
|
8764
|
+
callbackURL?: string | undefined;
|
|
8765
|
+
}, {
|
|
8766
|
+
token: string;
|
|
8767
|
+
callbackURL?: string | undefined;
|
|
8768
|
+
}>;
|
|
8769
|
+
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<void>)[];
|
|
8770
|
+
metadata: {
|
|
8771
|
+
openapi: {
|
|
8772
|
+
description: string;
|
|
8773
|
+
responses: {
|
|
8774
|
+
"200": {
|
|
8775
|
+
description: string;
|
|
8776
|
+
content: {
|
|
8777
|
+
"application/json": {
|
|
8778
|
+
schema: {
|
|
8779
|
+
type: "object";
|
|
8780
|
+
properties: {
|
|
8781
|
+
success: {
|
|
8782
|
+
type: string;
|
|
8783
|
+
description: string;
|
|
8784
|
+
};
|
|
8785
|
+
message: {
|
|
8786
|
+
type: string;
|
|
8787
|
+
enum: string[];
|
|
8788
|
+
description: string;
|
|
8789
|
+
};
|
|
8790
|
+
};
|
|
8791
|
+
required: string[];
|
|
8792
|
+
};
|
|
8793
|
+
};
|
|
8794
|
+
};
|
|
8795
|
+
};
|
|
8796
|
+
};
|
|
8797
|
+
};
|
|
8798
|
+
};
|
|
8032
8799
|
} & {
|
|
8033
8800
|
use: any[];
|
|
8034
8801
|
};
|
|
@@ -8101,6 +8868,28 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
8101
8868
|
};
|
|
8102
8869
|
};
|
|
8103
8870
|
}>)[];
|
|
8871
|
+
metadata: {
|
|
8872
|
+
openapi: {
|
|
8873
|
+
description: string;
|
|
8874
|
+
responses: {
|
|
8875
|
+
"200": {
|
|
8876
|
+
description: string;
|
|
8877
|
+
content: {
|
|
8878
|
+
"application/json": {
|
|
8879
|
+
schema: {
|
|
8880
|
+
type: "object";
|
|
8881
|
+
properties: {
|
|
8882
|
+
status: {
|
|
8883
|
+
type: string;
|
|
8884
|
+
};
|
|
8885
|
+
};
|
|
8886
|
+
};
|
|
8887
|
+
};
|
|
8888
|
+
};
|
|
8889
|
+
};
|
|
8890
|
+
};
|
|
8891
|
+
};
|
|
8892
|
+
};
|
|
8104
8893
|
} & {
|
|
8105
8894
|
use: any[];
|
|
8106
8895
|
};
|
|
@@ -8252,8 +9041,10 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
8252
9041
|
properties: {
|
|
8253
9042
|
ok: {
|
|
8254
9043
|
type: string;
|
|
9044
|
+
description: string;
|
|
8255
9045
|
};
|
|
8256
9046
|
};
|
|
9047
|
+
required: string[];
|
|
8257
9048
|
};
|
|
8258
9049
|
};
|
|
8259
9050
|
};
|
|
@@ -8304,6 +9095,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
8304
9095
|
"text/html": {
|
|
8305
9096
|
schema: {
|
|
8306
9097
|
type: "string";
|
|
9098
|
+
description: string;
|
|
8307
9099
|
};
|
|
8308
9100
|
};
|
|
8309
9101
|
};
|
|
@@ -8320,7 +9112,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
8320
9112
|
signInSocial: {
|
|
8321
9113
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
8322
9114
|
body: {
|
|
8323
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
9115
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
8324
9116
|
scopes?: string[] | undefined;
|
|
8325
9117
|
loginHint?: string | undefined;
|
|
8326
9118
|
idToken?: {
|
|
@@ -8396,7 +9188,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
8396
9188
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
8397
9189
|
newUserCallbackURL: zod.ZodOptional<zod.ZodString>;
|
|
8398
9190
|
errorCallbackURL: zod.ZodOptional<zod.ZodString>;
|
|
8399
|
-
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick")[]]>;
|
|
9191
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom")[]]>;
|
|
8400
9192
|
disableRedirect: zod.ZodOptional<zod.ZodBoolean>;
|
|
8401
9193
|
idToken: zod.ZodOptional<zod.ZodObject<{
|
|
8402
9194
|
token: zod.ZodString;
|
|
@@ -8421,7 +9213,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
8421
9213
|
requestSignUp: zod.ZodOptional<zod.ZodBoolean>;
|
|
8422
9214
|
loginHint: zod.ZodOptional<zod.ZodString>;
|
|
8423
9215
|
}, "strip", zod.ZodTypeAny, {
|
|
8424
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
9216
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
8425
9217
|
scopes?: string[] | undefined;
|
|
8426
9218
|
loginHint?: string | undefined;
|
|
8427
9219
|
idToken?: {
|
|
@@ -8437,7 +9229,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
8437
9229
|
newUserCallbackURL?: string | undefined;
|
|
8438
9230
|
disableRedirect?: boolean | undefined;
|
|
8439
9231
|
}, {
|
|
8440
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
9232
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
8441
9233
|
scopes?: string[] | undefined;
|
|
8442
9234
|
loginHint?: string | undefined;
|
|
8443
9235
|
idToken?: {
|
|
@@ -8456,6 +9248,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
8456
9248
|
metadata: {
|
|
8457
9249
|
openapi: {
|
|
8458
9250
|
description: string;
|
|
9251
|
+
operationId: string;
|
|
8459
9252
|
responses: {
|
|
8460
9253
|
"200": {
|
|
8461
9254
|
description: string;
|
|
@@ -8463,22 +9256,53 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
8463
9256
|
"application/json": {
|
|
8464
9257
|
schema: {
|
|
8465
9258
|
type: "object";
|
|
9259
|
+
description: string;
|
|
8466
9260
|
properties: {
|
|
8467
|
-
|
|
8468
|
-
type: string;
|
|
8469
|
-
};
|
|
8470
|
-
user: {
|
|
8471
|
-
type: string;
|
|
8472
|
-
ref: string;
|
|
8473
|
-
};
|
|
8474
|
-
url: {
|
|
9261
|
+
redirect: {
|
|
8475
9262
|
type: string;
|
|
9263
|
+
enum: boolean[];
|
|
8476
9264
|
};
|
|
8477
|
-
|
|
9265
|
+
token: {
|
|
8478
9266
|
type: string;
|
|
9267
|
+
description: string;
|
|
9268
|
+
url: {
|
|
9269
|
+
type: string;
|
|
9270
|
+
nullable: boolean;
|
|
9271
|
+
};
|
|
9272
|
+
user: {
|
|
9273
|
+
type: string;
|
|
9274
|
+
properties: {
|
|
9275
|
+
id: {
|
|
9276
|
+
type: string;
|
|
9277
|
+
};
|
|
9278
|
+
email: {
|
|
9279
|
+
type: string;
|
|
9280
|
+
};
|
|
9281
|
+
name: {
|
|
9282
|
+
type: string;
|
|
9283
|
+
nullable: boolean;
|
|
9284
|
+
};
|
|
9285
|
+
image: {
|
|
9286
|
+
type: string;
|
|
9287
|
+
nullable: boolean;
|
|
9288
|
+
};
|
|
9289
|
+
emailVerified: {
|
|
9290
|
+
type: string;
|
|
9291
|
+
};
|
|
9292
|
+
createdAt: {
|
|
9293
|
+
type: string;
|
|
9294
|
+
format: string;
|
|
9295
|
+
};
|
|
9296
|
+
updatedAt: {
|
|
9297
|
+
type: string;
|
|
9298
|
+
format: string;
|
|
9299
|
+
};
|
|
9300
|
+
};
|
|
9301
|
+
required: string[];
|
|
9302
|
+
};
|
|
8479
9303
|
};
|
|
9304
|
+
required: string[];
|
|
8480
9305
|
};
|
|
8481
|
-
required: string[];
|
|
8482
9306
|
};
|
|
8483
9307
|
};
|
|
8484
9308
|
};
|
|
@@ -8498,6 +9322,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
8498
9322
|
code?: string | undefined;
|
|
8499
9323
|
device_id?: string | undefined;
|
|
8500
9324
|
error?: string | undefined;
|
|
9325
|
+
user?: string | undefined;
|
|
8501
9326
|
error_description?: string | undefined;
|
|
8502
9327
|
} | undefined;
|
|
8503
9328
|
} & {
|
|
@@ -8508,6 +9333,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
8508
9333
|
code?: string | undefined;
|
|
8509
9334
|
device_id?: string | undefined;
|
|
8510
9335
|
error?: string | undefined;
|
|
9336
|
+
user?: string | undefined;
|
|
8511
9337
|
error_description?: string | undefined;
|
|
8512
9338
|
} | undefined;
|
|
8513
9339
|
} & {
|
|
@@ -8538,17 +9364,20 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
8538
9364
|
device_id: zod.ZodOptional<zod.ZodString>;
|
|
8539
9365
|
error_description: zod.ZodOptional<zod.ZodString>;
|
|
8540
9366
|
state: zod.ZodOptional<zod.ZodString>;
|
|
9367
|
+
user: zod.ZodOptional<zod.ZodString>;
|
|
8541
9368
|
}, "strip", zod.ZodTypeAny, {
|
|
8542
9369
|
state?: string | undefined;
|
|
8543
9370
|
code?: string | undefined;
|
|
8544
9371
|
device_id?: string | undefined;
|
|
8545
9372
|
error?: string | undefined;
|
|
9373
|
+
user?: string | undefined;
|
|
8546
9374
|
error_description?: string | undefined;
|
|
8547
9375
|
}, {
|
|
8548
9376
|
state?: string | undefined;
|
|
8549
9377
|
code?: string | undefined;
|
|
8550
9378
|
device_id?: string | undefined;
|
|
8551
9379
|
error?: string | undefined;
|
|
9380
|
+
user?: string | undefined;
|
|
8552
9381
|
error_description?: string | undefined;
|
|
8553
9382
|
}>>;
|
|
8554
9383
|
query: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -8557,17 +9386,20 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
8557
9386
|
device_id: zod.ZodOptional<zod.ZodString>;
|
|
8558
9387
|
error_description: zod.ZodOptional<zod.ZodString>;
|
|
8559
9388
|
state: zod.ZodOptional<zod.ZodString>;
|
|
9389
|
+
user: zod.ZodOptional<zod.ZodString>;
|
|
8560
9390
|
}, "strip", zod.ZodTypeAny, {
|
|
8561
9391
|
state?: string | undefined;
|
|
8562
9392
|
code?: string | undefined;
|
|
8563
9393
|
device_id?: string | undefined;
|
|
8564
9394
|
error?: string | undefined;
|
|
9395
|
+
user?: string | undefined;
|
|
8565
9396
|
error_description?: string | undefined;
|
|
8566
9397
|
}, {
|
|
8567
9398
|
state?: string | undefined;
|
|
8568
9399
|
code?: string | undefined;
|
|
8569
9400
|
device_id?: string | undefined;
|
|
8570
9401
|
error?: string | undefined;
|
|
9402
|
+
user?: string | undefined;
|
|
8571
9403
|
error_description?: string | undefined;
|
|
8572
9404
|
}>>;
|
|
8573
9405
|
metadata: {
|
|
@@ -8671,14 +9503,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
8671
9503
|
type: "object";
|
|
8672
9504
|
properties: {
|
|
8673
9505
|
session: {
|
|
8674
|
-
type: string;
|
|
8675
9506
|
$ref: string;
|
|
8676
9507
|
};
|
|
8677
9508
|
user: {
|
|
8678
|
-
type: string;
|
|
8679
9509
|
$ref: string;
|
|
8680
9510
|
};
|
|
8681
9511
|
};
|
|
9512
|
+
required: string[];
|
|
8682
9513
|
};
|
|
8683
9514
|
};
|
|
8684
9515
|
};
|
|
@@ -8800,27 +9631,52 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
8800
9631
|
schema: {
|
|
8801
9632
|
type: "object";
|
|
8802
9633
|
properties: {
|
|
8803
|
-
|
|
8804
|
-
type: string;
|
|
8805
|
-
description: string;
|
|
8806
|
-
};
|
|
8807
|
-
email: {
|
|
8808
|
-
type: string;
|
|
8809
|
-
description: string;
|
|
8810
|
-
};
|
|
8811
|
-
name: {
|
|
8812
|
-
type: string;
|
|
8813
|
-
description: string;
|
|
8814
|
-
};
|
|
8815
|
-
image: {
|
|
9634
|
+
token: {
|
|
8816
9635
|
type: string;
|
|
9636
|
+
nullable: boolean;
|
|
8817
9637
|
description: string;
|
|
8818
9638
|
};
|
|
8819
|
-
|
|
9639
|
+
user: {
|
|
8820
9640
|
type: string;
|
|
8821
|
-
|
|
9641
|
+
properties: {
|
|
9642
|
+
id: {
|
|
9643
|
+
type: string;
|
|
9644
|
+
description: string;
|
|
9645
|
+
};
|
|
9646
|
+
email: {
|
|
9647
|
+
type: string;
|
|
9648
|
+
format: string;
|
|
9649
|
+
description: string;
|
|
9650
|
+
};
|
|
9651
|
+
name: {
|
|
9652
|
+
type: string;
|
|
9653
|
+
description: string;
|
|
9654
|
+
};
|
|
9655
|
+
image: {
|
|
9656
|
+
type: string;
|
|
9657
|
+
format: string;
|
|
9658
|
+
nullable: boolean;
|
|
9659
|
+
description: string;
|
|
9660
|
+
};
|
|
9661
|
+
emailVerified: {
|
|
9662
|
+
type: string;
|
|
9663
|
+
description: string;
|
|
9664
|
+
};
|
|
9665
|
+
createdAt: {
|
|
9666
|
+
type: string;
|
|
9667
|
+
format: string;
|
|
9668
|
+
description: string;
|
|
9669
|
+
};
|
|
9670
|
+
updatedAt: {
|
|
9671
|
+
type: string;
|
|
9672
|
+
format: string;
|
|
9673
|
+
description: string;
|
|
9674
|
+
};
|
|
9675
|
+
};
|
|
9676
|
+
required: string[];
|
|
8822
9677
|
};
|
|
8823
9678
|
};
|
|
9679
|
+
required: string[];
|
|
8824
9680
|
};
|
|
8825
9681
|
};
|
|
8826
9682
|
};
|
|
@@ -8879,27 +9735,52 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
8879
9735
|
schema: {
|
|
8880
9736
|
type: "object";
|
|
8881
9737
|
properties: {
|
|
8882
|
-
|
|
8883
|
-
type: string;
|
|
8884
|
-
description: string;
|
|
8885
|
-
};
|
|
8886
|
-
email: {
|
|
8887
|
-
type: string;
|
|
8888
|
-
description: string;
|
|
8889
|
-
};
|
|
8890
|
-
name: {
|
|
8891
|
-
type: string;
|
|
8892
|
-
description: string;
|
|
8893
|
-
};
|
|
8894
|
-
image: {
|
|
9738
|
+
token: {
|
|
8895
9739
|
type: string;
|
|
9740
|
+
nullable: boolean;
|
|
8896
9741
|
description: string;
|
|
8897
9742
|
};
|
|
8898
|
-
|
|
9743
|
+
user: {
|
|
8899
9744
|
type: string;
|
|
8900
|
-
|
|
9745
|
+
properties: {
|
|
9746
|
+
id: {
|
|
9747
|
+
type: string;
|
|
9748
|
+
description: string;
|
|
9749
|
+
};
|
|
9750
|
+
email: {
|
|
9751
|
+
type: string;
|
|
9752
|
+
format: string;
|
|
9753
|
+
description: string;
|
|
9754
|
+
};
|
|
9755
|
+
name: {
|
|
9756
|
+
type: string;
|
|
9757
|
+
description: string;
|
|
9758
|
+
};
|
|
9759
|
+
image: {
|
|
9760
|
+
type: string;
|
|
9761
|
+
format: string;
|
|
9762
|
+
nullable: boolean;
|
|
9763
|
+
description: string;
|
|
9764
|
+
};
|
|
9765
|
+
emailVerified: {
|
|
9766
|
+
type: string;
|
|
9767
|
+
description: string;
|
|
9768
|
+
};
|
|
9769
|
+
createdAt: {
|
|
9770
|
+
type: string;
|
|
9771
|
+
format: string;
|
|
9772
|
+
description: string;
|
|
9773
|
+
};
|
|
9774
|
+
updatedAt: {
|
|
9775
|
+
type: string;
|
|
9776
|
+
format: string;
|
|
9777
|
+
description: string;
|
|
9778
|
+
};
|
|
9779
|
+
};
|
|
9780
|
+
required: string[];
|
|
8901
9781
|
};
|
|
8902
9782
|
};
|
|
9783
|
+
required: string[];
|
|
8903
9784
|
};
|
|
8904
9785
|
};
|
|
8905
9786
|
};
|
|
@@ -8980,27 +9861,52 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
8980
9861
|
schema: {
|
|
8981
9862
|
type: "object";
|
|
8982
9863
|
properties: {
|
|
8983
|
-
|
|
8984
|
-
type: string;
|
|
8985
|
-
description: string;
|
|
8986
|
-
};
|
|
8987
|
-
email: {
|
|
8988
|
-
type: string;
|
|
8989
|
-
description: string;
|
|
8990
|
-
};
|
|
8991
|
-
name: {
|
|
8992
|
-
type: string;
|
|
8993
|
-
description: string;
|
|
8994
|
-
};
|
|
8995
|
-
image: {
|
|
9864
|
+
token: {
|
|
8996
9865
|
type: string;
|
|
9866
|
+
nullable: boolean;
|
|
8997
9867
|
description: string;
|
|
8998
9868
|
};
|
|
8999
|
-
|
|
9869
|
+
user: {
|
|
9000
9870
|
type: string;
|
|
9001
|
-
|
|
9871
|
+
properties: {
|
|
9872
|
+
id: {
|
|
9873
|
+
type: string;
|
|
9874
|
+
description: string;
|
|
9875
|
+
};
|
|
9876
|
+
email: {
|
|
9877
|
+
type: string;
|
|
9878
|
+
format: string;
|
|
9879
|
+
description: string;
|
|
9880
|
+
};
|
|
9881
|
+
name: {
|
|
9882
|
+
type: string;
|
|
9883
|
+
description: string;
|
|
9884
|
+
};
|
|
9885
|
+
image: {
|
|
9886
|
+
type: string;
|
|
9887
|
+
format: string;
|
|
9888
|
+
nullable: boolean;
|
|
9889
|
+
description: string;
|
|
9890
|
+
};
|
|
9891
|
+
emailVerified: {
|
|
9892
|
+
type: string;
|
|
9893
|
+
description: string;
|
|
9894
|
+
};
|
|
9895
|
+
createdAt: {
|
|
9896
|
+
type: string;
|
|
9897
|
+
format: string;
|
|
9898
|
+
description: string;
|
|
9899
|
+
};
|
|
9900
|
+
updatedAt: {
|
|
9901
|
+
type: string;
|
|
9902
|
+
format: string;
|
|
9903
|
+
description: string;
|
|
9904
|
+
};
|
|
9905
|
+
};
|
|
9906
|
+
required: string[];
|
|
9002
9907
|
};
|
|
9003
9908
|
};
|
|
9909
|
+
required: string[];
|
|
9004
9910
|
};
|
|
9005
9911
|
};
|
|
9006
9912
|
};
|
|
@@ -9129,27 +10035,52 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
9129
10035
|
schema: {
|
|
9130
10036
|
type: "object";
|
|
9131
10037
|
properties: {
|
|
9132
|
-
|
|
9133
|
-
type: string;
|
|
9134
|
-
description: string;
|
|
9135
|
-
};
|
|
9136
|
-
email: {
|
|
9137
|
-
type: string;
|
|
9138
|
-
description: string;
|
|
9139
|
-
};
|
|
9140
|
-
name: {
|
|
9141
|
-
type: string;
|
|
9142
|
-
description: string;
|
|
9143
|
-
};
|
|
9144
|
-
image: {
|
|
10038
|
+
token: {
|
|
9145
10039
|
type: string;
|
|
10040
|
+
nullable: boolean;
|
|
9146
10041
|
description: string;
|
|
9147
10042
|
};
|
|
9148
|
-
|
|
10043
|
+
user: {
|
|
9149
10044
|
type: string;
|
|
9150
|
-
|
|
10045
|
+
properties: {
|
|
10046
|
+
id: {
|
|
10047
|
+
type: string;
|
|
10048
|
+
description: string;
|
|
10049
|
+
};
|
|
10050
|
+
email: {
|
|
10051
|
+
type: string;
|
|
10052
|
+
format: string;
|
|
10053
|
+
description: string;
|
|
10054
|
+
};
|
|
10055
|
+
name: {
|
|
10056
|
+
type: string;
|
|
10057
|
+
description: string;
|
|
10058
|
+
};
|
|
10059
|
+
image: {
|
|
10060
|
+
type: string;
|
|
10061
|
+
format: string;
|
|
10062
|
+
nullable: boolean;
|
|
10063
|
+
description: string;
|
|
10064
|
+
};
|
|
10065
|
+
emailVerified: {
|
|
10066
|
+
type: string;
|
|
10067
|
+
description: string;
|
|
10068
|
+
};
|
|
10069
|
+
createdAt: {
|
|
10070
|
+
type: string;
|
|
10071
|
+
format: string;
|
|
10072
|
+
description: string;
|
|
10073
|
+
};
|
|
10074
|
+
updatedAt: {
|
|
10075
|
+
type: string;
|
|
10076
|
+
format: string;
|
|
10077
|
+
description: string;
|
|
10078
|
+
};
|
|
10079
|
+
};
|
|
10080
|
+
required: string[];
|
|
9151
10081
|
};
|
|
9152
10082
|
};
|
|
10083
|
+
required: string[];
|
|
9153
10084
|
};
|
|
9154
10085
|
};
|
|
9155
10086
|
};
|
|
@@ -9246,19 +10177,50 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
9246
10177
|
"application/json": {
|
|
9247
10178
|
schema: {
|
|
9248
10179
|
type: "object";
|
|
10180
|
+
description: string;
|
|
9249
10181
|
properties: {
|
|
9250
|
-
|
|
10182
|
+
redirect: {
|
|
9251
10183
|
type: string;
|
|
10184
|
+
enum: boolean[];
|
|
9252
10185
|
};
|
|
9253
|
-
|
|
10186
|
+
token: {
|
|
9254
10187
|
type: string;
|
|
9255
|
-
|
|
10188
|
+
description: string;
|
|
9256
10189
|
};
|
|
9257
10190
|
url: {
|
|
9258
10191
|
type: string;
|
|
10192
|
+
nullable: boolean;
|
|
9259
10193
|
};
|
|
9260
|
-
|
|
10194
|
+
user: {
|
|
9261
10195
|
type: string;
|
|
10196
|
+
properties: {
|
|
10197
|
+
id: {
|
|
10198
|
+
type: string;
|
|
10199
|
+
};
|
|
10200
|
+
email: {
|
|
10201
|
+
type: string;
|
|
10202
|
+
};
|
|
10203
|
+
name: {
|
|
10204
|
+
type: string;
|
|
10205
|
+
nullable: boolean;
|
|
10206
|
+
};
|
|
10207
|
+
image: {
|
|
10208
|
+
type: string;
|
|
10209
|
+
nullable: boolean;
|
|
10210
|
+
};
|
|
10211
|
+
emailVerified: {
|
|
10212
|
+
type: string;
|
|
10213
|
+
};
|
|
10214
|
+
createdAt: {
|
|
10215
|
+
type: string;
|
|
10216
|
+
format: string;
|
|
10217
|
+
};
|
|
10218
|
+
updatedAt: {
|
|
10219
|
+
type: string;
|
|
10220
|
+
format: string;
|
|
10221
|
+
};
|
|
10222
|
+
};
|
|
10223
|
+
required: string[];
|
|
9262
10224
|
};
|
|
9263
10225
|
};
|
|
9264
10226
|
required: string[];
|
|
@@ -9497,6 +10459,23 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
9497
10459
|
metadata: {
|
|
9498
10460
|
openapi: {
|
|
9499
10461
|
description: string;
|
|
10462
|
+
parameters: ({
|
|
10463
|
+
name: string;
|
|
10464
|
+
in: "query";
|
|
10465
|
+
description: string;
|
|
10466
|
+
required: true;
|
|
10467
|
+
schema: {
|
|
10468
|
+
type: "string";
|
|
10469
|
+
};
|
|
10470
|
+
} | {
|
|
10471
|
+
name: string;
|
|
10472
|
+
in: "query";
|
|
10473
|
+
description: string;
|
|
10474
|
+
required: false;
|
|
10475
|
+
schema: {
|
|
10476
|
+
type: "string";
|
|
10477
|
+
};
|
|
10478
|
+
})[];
|
|
9500
10479
|
responses: {
|
|
9501
10480
|
"200": {
|
|
9502
10481
|
description: string;
|
|
@@ -9507,13 +10486,44 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
9507
10486
|
properties: {
|
|
9508
10487
|
user: {
|
|
9509
10488
|
type: string;
|
|
9510
|
-
|
|
10489
|
+
properties: {
|
|
10490
|
+
id: {
|
|
10491
|
+
type: string;
|
|
10492
|
+
description: string;
|
|
10493
|
+
};
|
|
10494
|
+
email: {
|
|
10495
|
+
type: string;
|
|
10496
|
+
description: string;
|
|
10497
|
+
};
|
|
10498
|
+
name: {
|
|
10499
|
+
type: string;
|
|
10500
|
+
description: string;
|
|
10501
|
+
};
|
|
10502
|
+
image: {
|
|
10503
|
+
type: string;
|
|
10504
|
+
description: string;
|
|
10505
|
+
};
|
|
10506
|
+
emailVerified: {
|
|
10507
|
+
type: string;
|
|
10508
|
+
description: string;
|
|
10509
|
+
};
|
|
10510
|
+
createdAt: {
|
|
10511
|
+
type: string;
|
|
10512
|
+
description: string;
|
|
10513
|
+
};
|
|
10514
|
+
updatedAt: {
|
|
10515
|
+
type: string;
|
|
10516
|
+
description: string;
|
|
10517
|
+
};
|
|
10518
|
+
};
|
|
10519
|
+
required: string[];
|
|
9511
10520
|
};
|
|
9512
10521
|
status: {
|
|
9513
10522
|
type: string;
|
|
10523
|
+
description: string;
|
|
9514
10524
|
};
|
|
10525
|
+
required: string[];
|
|
9515
10526
|
};
|
|
9516
|
-
required: string[];
|
|
9517
10527
|
};
|
|
9518
10528
|
};
|
|
9519
10529
|
};
|
|
@@ -9582,10 +10592,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
9582
10592
|
email: {
|
|
9583
10593
|
type: string;
|
|
9584
10594
|
description: string;
|
|
10595
|
+
example: string;
|
|
9585
10596
|
};
|
|
9586
10597
|
callbackURL: {
|
|
9587
10598
|
type: string;
|
|
9588
10599
|
description: string;
|
|
10600
|
+
example: string;
|
|
10601
|
+
nullable: boolean;
|
|
9589
10602
|
};
|
|
9590
10603
|
};
|
|
9591
10604
|
required: string[];
|
|
@@ -9603,6 +10616,25 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
9603
10616
|
properties: {
|
|
9604
10617
|
status: {
|
|
9605
10618
|
type: string;
|
|
10619
|
+
description: string;
|
|
10620
|
+
example: boolean;
|
|
10621
|
+
};
|
|
10622
|
+
};
|
|
10623
|
+
};
|
|
10624
|
+
};
|
|
10625
|
+
};
|
|
10626
|
+
};
|
|
10627
|
+
"400": {
|
|
10628
|
+
description: string;
|
|
10629
|
+
content: {
|
|
10630
|
+
"application/json": {
|
|
10631
|
+
schema: {
|
|
10632
|
+
type: "object";
|
|
10633
|
+
properties: {
|
|
10634
|
+
message: {
|
|
10635
|
+
type: string;
|
|
10636
|
+
description: string;
|
|
10637
|
+
example: string;
|
|
9606
10638
|
};
|
|
9607
10639
|
};
|
|
9608
10640
|
};
|
|
@@ -9694,14 +10726,18 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
9694
10726
|
schema: {
|
|
9695
10727
|
type: "object";
|
|
9696
10728
|
properties: {
|
|
9697
|
-
|
|
10729
|
+
status: {
|
|
9698
10730
|
type: string;
|
|
9699
|
-
|
|
10731
|
+
description: string;
|
|
9700
10732
|
};
|
|
9701
|
-
|
|
10733
|
+
message: {
|
|
9702
10734
|
type: string;
|
|
10735
|
+
enum: string[];
|
|
10736
|
+
description: string;
|
|
10737
|
+
nullable: boolean;
|
|
9703
10738
|
};
|
|
9704
10739
|
};
|
|
10740
|
+
required: string[];
|
|
9705
10741
|
};
|
|
9706
10742
|
};
|
|
9707
10743
|
};
|
|
@@ -9814,11 +10850,52 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
9814
10850
|
schema: {
|
|
9815
10851
|
type: "object";
|
|
9816
10852
|
properties: {
|
|
9817
|
-
|
|
10853
|
+
token: {
|
|
10854
|
+
type: string;
|
|
10855
|
+
nullable: boolean;
|
|
9818
10856
|
description: string;
|
|
9819
|
-
|
|
10857
|
+
};
|
|
10858
|
+
user: {
|
|
10859
|
+
type: string;
|
|
10860
|
+
properties: {
|
|
10861
|
+
id: {
|
|
10862
|
+
type: string;
|
|
10863
|
+
description: string;
|
|
10864
|
+
};
|
|
10865
|
+
email: {
|
|
10866
|
+
type: string;
|
|
10867
|
+
format: string;
|
|
10868
|
+
description: string;
|
|
10869
|
+
};
|
|
10870
|
+
name: {
|
|
10871
|
+
type: string;
|
|
10872
|
+
description: string;
|
|
10873
|
+
};
|
|
10874
|
+
image: {
|
|
10875
|
+
type: string;
|
|
10876
|
+
format: string;
|
|
10877
|
+
nullable: boolean;
|
|
10878
|
+
description: string;
|
|
10879
|
+
};
|
|
10880
|
+
emailVerified: {
|
|
10881
|
+
type: string;
|
|
10882
|
+
description: string;
|
|
10883
|
+
};
|
|
10884
|
+
createdAt: {
|
|
10885
|
+
type: string;
|
|
10886
|
+
format: string;
|
|
10887
|
+
description: string;
|
|
10888
|
+
};
|
|
10889
|
+
updatedAt: {
|
|
10890
|
+
type: string;
|
|
10891
|
+
format: string;
|
|
10892
|
+
description: string;
|
|
10893
|
+
};
|
|
10894
|
+
};
|
|
10895
|
+
required: string[];
|
|
9820
10896
|
};
|
|
9821
10897
|
};
|
|
10898
|
+
required: string[];
|
|
9822
10899
|
};
|
|
9823
10900
|
};
|
|
9824
10901
|
};
|
|
@@ -9965,9 +11042,9 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
9965
11042
|
schema: {
|
|
9966
11043
|
type: "object";
|
|
9967
11044
|
properties: {
|
|
9968
|
-
|
|
11045
|
+
status: {
|
|
9969
11046
|
type: string;
|
|
9970
|
-
|
|
11047
|
+
description: string;
|
|
9971
11048
|
};
|
|
9972
11049
|
};
|
|
9973
11050
|
};
|
|
@@ -10041,9 +11118,9 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
10041
11118
|
schema: {
|
|
10042
11119
|
type: "object";
|
|
10043
11120
|
properties: {
|
|
10044
|
-
|
|
11121
|
+
status: {
|
|
10045
11122
|
type: string;
|
|
10046
|
-
|
|
11123
|
+
description: string;
|
|
10047
11124
|
};
|
|
10048
11125
|
};
|
|
10049
11126
|
};
|
|
@@ -10138,9 +11215,9 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
10138
11215
|
schema: {
|
|
10139
11216
|
type: "object";
|
|
10140
11217
|
properties: {
|
|
10141
|
-
|
|
11218
|
+
status: {
|
|
10142
11219
|
type: string;
|
|
10143
|
-
|
|
11220
|
+
description: string;
|
|
10144
11221
|
};
|
|
10145
11222
|
};
|
|
10146
11223
|
};
|
|
@@ -10243,9 +11320,9 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
10243
11320
|
schema: {
|
|
10244
11321
|
type: "object";
|
|
10245
11322
|
properties: {
|
|
10246
|
-
|
|
11323
|
+
status: {
|
|
10247
11324
|
type: string;
|
|
10248
|
-
|
|
11325
|
+
description: string;
|
|
10249
11326
|
};
|
|
10250
11327
|
};
|
|
10251
11328
|
};
|
|
@@ -10343,6 +11420,18 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
10343
11420
|
"application/json": {
|
|
10344
11421
|
schema: {
|
|
10345
11422
|
type: "object";
|
|
11423
|
+
properties: {
|
|
11424
|
+
success: {
|
|
11425
|
+
type: string;
|
|
11426
|
+
description: string;
|
|
11427
|
+
};
|
|
11428
|
+
message: {
|
|
11429
|
+
type: string;
|
|
11430
|
+
enum: string[];
|
|
11431
|
+
description: string;
|
|
11432
|
+
};
|
|
11433
|
+
};
|
|
11434
|
+
required: string[];
|
|
10346
11435
|
};
|
|
10347
11436
|
};
|
|
10348
11437
|
};
|
|
@@ -10501,18 +11590,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
10501
11590
|
schema: {
|
|
10502
11591
|
type: "array";
|
|
10503
11592
|
items: {
|
|
10504
|
-
|
|
10505
|
-
properties: {
|
|
10506
|
-
token: {
|
|
10507
|
-
type: string;
|
|
10508
|
-
};
|
|
10509
|
-
userId: {
|
|
10510
|
-
type: string;
|
|
10511
|
-
};
|
|
10512
|
-
expiresAt: {
|
|
10513
|
-
type: string;
|
|
10514
|
-
};
|
|
10515
|
-
};
|
|
11593
|
+
$ref: string;
|
|
10516
11594
|
};
|
|
10517
11595
|
};
|
|
10518
11596
|
};
|
|
@@ -10601,6 +11679,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
10601
11679
|
properties: {
|
|
10602
11680
|
token: {
|
|
10603
11681
|
type: string;
|
|
11682
|
+
description: string;
|
|
10604
11683
|
};
|
|
10605
11684
|
};
|
|
10606
11685
|
required: string[];
|
|
@@ -10608,6 +11687,25 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
10608
11687
|
};
|
|
10609
11688
|
};
|
|
10610
11689
|
};
|
|
11690
|
+
responses: {
|
|
11691
|
+
"200": {
|
|
11692
|
+
description: string;
|
|
11693
|
+
content: {
|
|
11694
|
+
"application/json": {
|
|
11695
|
+
schema: {
|
|
11696
|
+
type: "object";
|
|
11697
|
+
properties: {
|
|
11698
|
+
status: {
|
|
11699
|
+
type: string;
|
|
11700
|
+
description: string;
|
|
11701
|
+
};
|
|
11702
|
+
};
|
|
11703
|
+
required: string[];
|
|
11704
|
+
};
|
|
11705
|
+
};
|
|
11706
|
+
};
|
|
11707
|
+
};
|
|
11708
|
+
};
|
|
10611
11709
|
};
|
|
10612
11710
|
};
|
|
10613
11711
|
} & {
|
|
@@ -10683,6 +11781,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
10683
11781
|
properties: {
|
|
10684
11782
|
status: {
|
|
10685
11783
|
type: string;
|
|
11784
|
+
description: string;
|
|
10686
11785
|
};
|
|
10687
11786
|
};
|
|
10688
11787
|
required: string[];
|
|
@@ -10766,8 +11865,10 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
10766
11865
|
properties: {
|
|
10767
11866
|
status: {
|
|
10768
11867
|
type: string;
|
|
11868
|
+
description: string;
|
|
10769
11869
|
};
|
|
10770
11870
|
};
|
|
11871
|
+
required: string[];
|
|
10771
11872
|
};
|
|
10772
11873
|
};
|
|
10773
11874
|
};
|
|
@@ -10783,7 +11884,8 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
10783
11884
|
linkSocialAccount: {
|
|
10784
11885
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
10785
11886
|
body: {
|
|
10786
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
11887
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
11888
|
+
scopes?: string[] | undefined;
|
|
10787
11889
|
callbackURL?: string | undefined;
|
|
10788
11890
|
};
|
|
10789
11891
|
} & {
|
|
@@ -10819,12 +11921,15 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
10819
11921
|
requireHeaders: true;
|
|
10820
11922
|
body: zod.ZodObject<{
|
|
10821
11923
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
10822
|
-
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick")[]]>;
|
|
11924
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom")[]]>;
|
|
11925
|
+
scopes: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
10823
11926
|
}, "strip", zod.ZodTypeAny, {
|
|
10824
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
11927
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
11928
|
+
scopes?: string[] | undefined;
|
|
10825
11929
|
callbackURL?: string | undefined;
|
|
10826
11930
|
}, {
|
|
10827
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
11931
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
11932
|
+
scopes?: string[] | undefined;
|
|
10828
11933
|
callbackURL?: string | undefined;
|
|
10829
11934
|
}>;
|
|
10830
11935
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
@@ -10863,9 +11968,11 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
10863
11968
|
properties: {
|
|
10864
11969
|
url: {
|
|
10865
11970
|
type: string;
|
|
11971
|
+
description: string;
|
|
10866
11972
|
};
|
|
10867
11973
|
redirect: {
|
|
10868
11974
|
type: string;
|
|
11975
|
+
description: string;
|
|
10869
11976
|
};
|
|
10870
11977
|
};
|
|
10871
11978
|
required: string[];
|
|
@@ -10966,21 +12073,24 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
10966
12073
|
};
|
|
10967
12074
|
createdAt: {
|
|
10968
12075
|
type: string;
|
|
12076
|
+
format: string;
|
|
10969
12077
|
};
|
|
10970
12078
|
updatedAt: {
|
|
10971
12079
|
type: string;
|
|
12080
|
+
format: string;
|
|
10972
12081
|
};
|
|
10973
|
-
|
|
10974
|
-
|
|
10975
|
-
|
|
10976
|
-
|
|
12082
|
+
};
|
|
12083
|
+
accountId: {
|
|
12084
|
+
type: string;
|
|
12085
|
+
};
|
|
12086
|
+
scopes: {
|
|
12087
|
+
type: string;
|
|
12088
|
+
items: {
|
|
10977
12089
|
type: string;
|
|
10978
|
-
items: {
|
|
10979
|
-
type: string;
|
|
10980
|
-
};
|
|
10981
12090
|
};
|
|
10982
12091
|
};
|
|
10983
12092
|
};
|
|
12093
|
+
required: string[];
|
|
10984
12094
|
};
|
|
10985
12095
|
};
|
|
10986
12096
|
};
|
|
@@ -11040,6 +12150,35 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
11040
12150
|
callbackURL?: string | undefined;
|
|
11041
12151
|
}>;
|
|
11042
12152
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<void>)[];
|
|
12153
|
+
metadata: {
|
|
12154
|
+
openapi: {
|
|
12155
|
+
description: string;
|
|
12156
|
+
responses: {
|
|
12157
|
+
"200": {
|
|
12158
|
+
description: string;
|
|
12159
|
+
content: {
|
|
12160
|
+
"application/json": {
|
|
12161
|
+
schema: {
|
|
12162
|
+
type: "object";
|
|
12163
|
+
properties: {
|
|
12164
|
+
success: {
|
|
12165
|
+
type: string;
|
|
12166
|
+
description: string;
|
|
12167
|
+
};
|
|
12168
|
+
message: {
|
|
12169
|
+
type: string;
|
|
12170
|
+
enum: string[];
|
|
12171
|
+
description: string;
|
|
12172
|
+
};
|
|
12173
|
+
};
|
|
12174
|
+
required: string[];
|
|
12175
|
+
};
|
|
12176
|
+
};
|
|
12177
|
+
};
|
|
12178
|
+
};
|
|
12179
|
+
};
|
|
12180
|
+
};
|
|
12181
|
+
};
|
|
11043
12182
|
} & {
|
|
11044
12183
|
use: any[];
|
|
11045
12184
|
};
|
|
@@ -11112,6 +12251,28 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
11112
12251
|
};
|
|
11113
12252
|
};
|
|
11114
12253
|
}>)[];
|
|
12254
|
+
metadata: {
|
|
12255
|
+
openapi: {
|
|
12256
|
+
description: string;
|
|
12257
|
+
responses: {
|
|
12258
|
+
"200": {
|
|
12259
|
+
description: string;
|
|
12260
|
+
content: {
|
|
12261
|
+
"application/json": {
|
|
12262
|
+
schema: {
|
|
12263
|
+
type: "object";
|
|
12264
|
+
properties: {
|
|
12265
|
+
status: {
|
|
12266
|
+
type: string;
|
|
12267
|
+
};
|
|
12268
|
+
};
|
|
12269
|
+
};
|
|
12270
|
+
};
|
|
12271
|
+
};
|
|
12272
|
+
};
|
|
12273
|
+
};
|
|
12274
|
+
};
|
|
12275
|
+
};
|
|
11115
12276
|
} & {
|
|
11116
12277
|
use: any[];
|
|
11117
12278
|
};
|
|
@@ -11287,8 +12448,10 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
11287
12448
|
properties: {
|
|
11288
12449
|
ok: {
|
|
11289
12450
|
type: string;
|
|
12451
|
+
description: string;
|
|
11290
12452
|
};
|
|
11291
12453
|
};
|
|
12454
|
+
required: string[];
|
|
11292
12455
|
};
|
|
11293
12456
|
};
|
|
11294
12457
|
};
|
|
@@ -11339,6 +12502,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
11339
12502
|
"text/html": {
|
|
11340
12503
|
schema: {
|
|
11341
12504
|
type: "string";
|
|
12505
|
+
description: string;
|
|
11342
12506
|
};
|
|
11343
12507
|
};
|
|
11344
12508
|
};
|
|
@@ -11355,7 +12519,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
11355
12519
|
signInSocial: {
|
|
11356
12520
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
11357
12521
|
body: {
|
|
11358
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
12522
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
11359
12523
|
scopes?: string[] | undefined;
|
|
11360
12524
|
loginHint?: string | undefined;
|
|
11361
12525
|
idToken?: {
|
|
@@ -11431,7 +12595,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
11431
12595
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
11432
12596
|
newUserCallbackURL: zod.ZodOptional<zod.ZodString>;
|
|
11433
12597
|
errorCallbackURL: zod.ZodOptional<zod.ZodString>;
|
|
11434
|
-
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick")[]]>;
|
|
12598
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom")[]]>;
|
|
11435
12599
|
disableRedirect: zod.ZodOptional<zod.ZodBoolean>;
|
|
11436
12600
|
idToken: zod.ZodOptional<zod.ZodObject<{
|
|
11437
12601
|
token: zod.ZodString;
|
|
@@ -11456,7 +12620,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
11456
12620
|
requestSignUp: zod.ZodOptional<zod.ZodBoolean>;
|
|
11457
12621
|
loginHint: zod.ZodOptional<zod.ZodString>;
|
|
11458
12622
|
}, "strip", zod.ZodTypeAny, {
|
|
11459
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
12623
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
11460
12624
|
scopes?: string[] | undefined;
|
|
11461
12625
|
loginHint?: string | undefined;
|
|
11462
12626
|
idToken?: {
|
|
@@ -11472,7 +12636,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
11472
12636
|
newUserCallbackURL?: string | undefined;
|
|
11473
12637
|
disableRedirect?: boolean | undefined;
|
|
11474
12638
|
}, {
|
|
11475
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
12639
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
11476
12640
|
scopes?: string[] | undefined;
|
|
11477
12641
|
loginHint?: string | undefined;
|
|
11478
12642
|
idToken?: {
|
|
@@ -11491,6 +12655,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
11491
12655
|
metadata: {
|
|
11492
12656
|
openapi: {
|
|
11493
12657
|
description: string;
|
|
12658
|
+
operationId: string;
|
|
11494
12659
|
responses: {
|
|
11495
12660
|
"200": {
|
|
11496
12661
|
description: string;
|
|
@@ -11498,22 +12663,53 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
11498
12663
|
"application/json": {
|
|
11499
12664
|
schema: {
|
|
11500
12665
|
type: "object";
|
|
12666
|
+
description: string;
|
|
11501
12667
|
properties: {
|
|
11502
|
-
|
|
11503
|
-
type: string;
|
|
11504
|
-
};
|
|
11505
|
-
user: {
|
|
11506
|
-
type: string;
|
|
11507
|
-
ref: string;
|
|
11508
|
-
};
|
|
11509
|
-
url: {
|
|
12668
|
+
redirect: {
|
|
11510
12669
|
type: string;
|
|
12670
|
+
enum: boolean[];
|
|
11511
12671
|
};
|
|
11512
|
-
|
|
12672
|
+
token: {
|
|
11513
12673
|
type: string;
|
|
12674
|
+
description: string;
|
|
12675
|
+
url: {
|
|
12676
|
+
type: string;
|
|
12677
|
+
nullable: boolean;
|
|
12678
|
+
};
|
|
12679
|
+
user: {
|
|
12680
|
+
type: string;
|
|
12681
|
+
properties: {
|
|
12682
|
+
id: {
|
|
12683
|
+
type: string;
|
|
12684
|
+
};
|
|
12685
|
+
email: {
|
|
12686
|
+
type: string;
|
|
12687
|
+
};
|
|
12688
|
+
name: {
|
|
12689
|
+
type: string;
|
|
12690
|
+
nullable: boolean;
|
|
12691
|
+
};
|
|
12692
|
+
image: {
|
|
12693
|
+
type: string;
|
|
12694
|
+
nullable: boolean;
|
|
12695
|
+
};
|
|
12696
|
+
emailVerified: {
|
|
12697
|
+
type: string;
|
|
12698
|
+
};
|
|
12699
|
+
createdAt: {
|
|
12700
|
+
type: string;
|
|
12701
|
+
format: string;
|
|
12702
|
+
};
|
|
12703
|
+
updatedAt: {
|
|
12704
|
+
type: string;
|
|
12705
|
+
format: string;
|
|
12706
|
+
};
|
|
12707
|
+
};
|
|
12708
|
+
required: string[];
|
|
12709
|
+
};
|
|
11514
12710
|
};
|
|
12711
|
+
required: string[];
|
|
11515
12712
|
};
|
|
11516
|
-
required: string[];
|
|
11517
12713
|
};
|
|
11518
12714
|
};
|
|
11519
12715
|
};
|
|
@@ -11533,6 +12729,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
11533
12729
|
code?: string | undefined;
|
|
11534
12730
|
device_id?: string | undefined;
|
|
11535
12731
|
error?: string | undefined;
|
|
12732
|
+
user?: string | undefined;
|
|
11536
12733
|
error_description?: string | undefined;
|
|
11537
12734
|
} | undefined;
|
|
11538
12735
|
} & {
|
|
@@ -11543,6 +12740,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
11543
12740
|
code?: string | undefined;
|
|
11544
12741
|
device_id?: string | undefined;
|
|
11545
12742
|
error?: string | undefined;
|
|
12743
|
+
user?: string | undefined;
|
|
11546
12744
|
error_description?: string | undefined;
|
|
11547
12745
|
} | undefined;
|
|
11548
12746
|
} & {
|
|
@@ -11573,17 +12771,20 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
11573
12771
|
device_id: zod.ZodOptional<zod.ZodString>;
|
|
11574
12772
|
error_description: zod.ZodOptional<zod.ZodString>;
|
|
11575
12773
|
state: zod.ZodOptional<zod.ZodString>;
|
|
12774
|
+
user: zod.ZodOptional<zod.ZodString>;
|
|
11576
12775
|
}, "strip", zod.ZodTypeAny, {
|
|
11577
12776
|
state?: string | undefined;
|
|
11578
12777
|
code?: string | undefined;
|
|
11579
12778
|
device_id?: string | undefined;
|
|
11580
12779
|
error?: string | undefined;
|
|
12780
|
+
user?: string | undefined;
|
|
11581
12781
|
error_description?: string | undefined;
|
|
11582
12782
|
}, {
|
|
11583
12783
|
state?: string | undefined;
|
|
11584
12784
|
code?: string | undefined;
|
|
11585
12785
|
device_id?: string | undefined;
|
|
11586
12786
|
error?: string | undefined;
|
|
12787
|
+
user?: string | undefined;
|
|
11587
12788
|
error_description?: string | undefined;
|
|
11588
12789
|
}>>;
|
|
11589
12790
|
query: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -11592,17 +12793,20 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
11592
12793
|
device_id: zod.ZodOptional<zod.ZodString>;
|
|
11593
12794
|
error_description: zod.ZodOptional<zod.ZodString>;
|
|
11594
12795
|
state: zod.ZodOptional<zod.ZodString>;
|
|
12796
|
+
user: zod.ZodOptional<zod.ZodString>;
|
|
11595
12797
|
}, "strip", zod.ZodTypeAny, {
|
|
11596
12798
|
state?: string | undefined;
|
|
11597
12799
|
code?: string | undefined;
|
|
11598
12800
|
device_id?: string | undefined;
|
|
11599
12801
|
error?: string | undefined;
|
|
12802
|
+
user?: string | undefined;
|
|
11600
12803
|
error_description?: string | undefined;
|
|
11601
12804
|
}, {
|
|
11602
12805
|
state?: string | undefined;
|
|
11603
12806
|
code?: string | undefined;
|
|
11604
12807
|
device_id?: string | undefined;
|
|
11605
12808
|
error?: string | undefined;
|
|
12809
|
+
user?: string | undefined;
|
|
11606
12810
|
error_description?: string | undefined;
|
|
11607
12811
|
}>>;
|
|
11608
12812
|
metadata: {
|
|
@@ -11706,14 +12910,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
11706
12910
|
type: "object";
|
|
11707
12911
|
properties: {
|
|
11708
12912
|
session: {
|
|
11709
|
-
type: string;
|
|
11710
12913
|
$ref: string;
|
|
11711
12914
|
};
|
|
11712
12915
|
user: {
|
|
11713
|
-
type: string;
|
|
11714
12916
|
$ref: string;
|
|
11715
12917
|
};
|
|
11716
12918
|
};
|
|
12919
|
+
required: string[];
|
|
11717
12920
|
};
|
|
11718
12921
|
};
|
|
11719
12922
|
};
|
|
@@ -11835,27 +13038,52 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
11835
13038
|
schema: {
|
|
11836
13039
|
type: "object";
|
|
11837
13040
|
properties: {
|
|
11838
|
-
|
|
11839
|
-
type: string;
|
|
11840
|
-
description: string;
|
|
11841
|
-
};
|
|
11842
|
-
email: {
|
|
11843
|
-
type: string;
|
|
11844
|
-
description: string;
|
|
11845
|
-
};
|
|
11846
|
-
name: {
|
|
11847
|
-
type: string;
|
|
11848
|
-
description: string;
|
|
11849
|
-
};
|
|
11850
|
-
image: {
|
|
13041
|
+
token: {
|
|
11851
13042
|
type: string;
|
|
13043
|
+
nullable: boolean;
|
|
11852
13044
|
description: string;
|
|
11853
13045
|
};
|
|
11854
|
-
|
|
13046
|
+
user: {
|
|
11855
13047
|
type: string;
|
|
11856
|
-
|
|
13048
|
+
properties: {
|
|
13049
|
+
id: {
|
|
13050
|
+
type: string;
|
|
13051
|
+
description: string;
|
|
13052
|
+
};
|
|
13053
|
+
email: {
|
|
13054
|
+
type: string;
|
|
13055
|
+
format: string;
|
|
13056
|
+
description: string;
|
|
13057
|
+
};
|
|
13058
|
+
name: {
|
|
13059
|
+
type: string;
|
|
13060
|
+
description: string;
|
|
13061
|
+
};
|
|
13062
|
+
image: {
|
|
13063
|
+
type: string;
|
|
13064
|
+
format: string;
|
|
13065
|
+
nullable: boolean;
|
|
13066
|
+
description: string;
|
|
13067
|
+
};
|
|
13068
|
+
emailVerified: {
|
|
13069
|
+
type: string;
|
|
13070
|
+
description: string;
|
|
13071
|
+
};
|
|
13072
|
+
createdAt: {
|
|
13073
|
+
type: string;
|
|
13074
|
+
format: string;
|
|
13075
|
+
description: string;
|
|
13076
|
+
};
|
|
13077
|
+
updatedAt: {
|
|
13078
|
+
type: string;
|
|
13079
|
+
format: string;
|
|
13080
|
+
description: string;
|
|
13081
|
+
};
|
|
13082
|
+
};
|
|
13083
|
+
required: string[];
|
|
11857
13084
|
};
|
|
11858
13085
|
};
|
|
13086
|
+
required: string[];
|
|
11859
13087
|
};
|
|
11860
13088
|
};
|
|
11861
13089
|
};
|
|
@@ -11914,27 +13142,52 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
11914
13142
|
schema: {
|
|
11915
13143
|
type: "object";
|
|
11916
13144
|
properties: {
|
|
11917
|
-
|
|
11918
|
-
type: string;
|
|
11919
|
-
description: string;
|
|
11920
|
-
};
|
|
11921
|
-
email: {
|
|
11922
|
-
type: string;
|
|
11923
|
-
description: string;
|
|
11924
|
-
};
|
|
11925
|
-
name: {
|
|
11926
|
-
type: string;
|
|
11927
|
-
description: string;
|
|
11928
|
-
};
|
|
11929
|
-
image: {
|
|
13145
|
+
token: {
|
|
11930
13146
|
type: string;
|
|
13147
|
+
nullable: boolean;
|
|
11931
13148
|
description: string;
|
|
11932
13149
|
};
|
|
11933
|
-
|
|
13150
|
+
user: {
|
|
11934
13151
|
type: string;
|
|
11935
|
-
|
|
13152
|
+
properties: {
|
|
13153
|
+
id: {
|
|
13154
|
+
type: string;
|
|
13155
|
+
description: string;
|
|
13156
|
+
};
|
|
13157
|
+
email: {
|
|
13158
|
+
type: string;
|
|
13159
|
+
format: string;
|
|
13160
|
+
description: string;
|
|
13161
|
+
};
|
|
13162
|
+
name: {
|
|
13163
|
+
type: string;
|
|
13164
|
+
description: string;
|
|
13165
|
+
};
|
|
13166
|
+
image: {
|
|
13167
|
+
type: string;
|
|
13168
|
+
format: string;
|
|
13169
|
+
nullable: boolean;
|
|
13170
|
+
description: string;
|
|
13171
|
+
};
|
|
13172
|
+
emailVerified: {
|
|
13173
|
+
type: string;
|
|
13174
|
+
description: string;
|
|
13175
|
+
};
|
|
13176
|
+
createdAt: {
|
|
13177
|
+
type: string;
|
|
13178
|
+
format: string;
|
|
13179
|
+
description: string;
|
|
13180
|
+
};
|
|
13181
|
+
updatedAt: {
|
|
13182
|
+
type: string;
|
|
13183
|
+
format: string;
|
|
13184
|
+
description: string;
|
|
13185
|
+
};
|
|
13186
|
+
};
|
|
13187
|
+
required: string[];
|
|
11936
13188
|
};
|
|
11937
13189
|
};
|
|
13190
|
+
required: string[];
|
|
11938
13191
|
};
|
|
11939
13192
|
};
|
|
11940
13193
|
};
|
|
@@ -12015,27 +13268,52 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
12015
13268
|
schema: {
|
|
12016
13269
|
type: "object";
|
|
12017
13270
|
properties: {
|
|
12018
|
-
|
|
12019
|
-
type: string;
|
|
12020
|
-
description: string;
|
|
12021
|
-
};
|
|
12022
|
-
email: {
|
|
12023
|
-
type: string;
|
|
12024
|
-
description: string;
|
|
12025
|
-
};
|
|
12026
|
-
name: {
|
|
12027
|
-
type: string;
|
|
12028
|
-
description: string;
|
|
12029
|
-
};
|
|
12030
|
-
image: {
|
|
13271
|
+
token: {
|
|
12031
13272
|
type: string;
|
|
13273
|
+
nullable: boolean;
|
|
12032
13274
|
description: string;
|
|
12033
13275
|
};
|
|
12034
|
-
|
|
13276
|
+
user: {
|
|
12035
13277
|
type: string;
|
|
12036
|
-
|
|
13278
|
+
properties: {
|
|
13279
|
+
id: {
|
|
13280
|
+
type: string;
|
|
13281
|
+
description: string;
|
|
13282
|
+
};
|
|
13283
|
+
email: {
|
|
13284
|
+
type: string;
|
|
13285
|
+
format: string;
|
|
13286
|
+
description: string;
|
|
13287
|
+
};
|
|
13288
|
+
name: {
|
|
13289
|
+
type: string;
|
|
13290
|
+
description: string;
|
|
13291
|
+
};
|
|
13292
|
+
image: {
|
|
13293
|
+
type: string;
|
|
13294
|
+
format: string;
|
|
13295
|
+
nullable: boolean;
|
|
13296
|
+
description: string;
|
|
13297
|
+
};
|
|
13298
|
+
emailVerified: {
|
|
13299
|
+
type: string;
|
|
13300
|
+
description: string;
|
|
13301
|
+
};
|
|
13302
|
+
createdAt: {
|
|
13303
|
+
type: string;
|
|
13304
|
+
format: string;
|
|
13305
|
+
description: string;
|
|
13306
|
+
};
|
|
13307
|
+
updatedAt: {
|
|
13308
|
+
type: string;
|
|
13309
|
+
format: string;
|
|
13310
|
+
description: string;
|
|
13311
|
+
};
|
|
13312
|
+
};
|
|
13313
|
+
required: string[];
|
|
12037
13314
|
};
|
|
12038
13315
|
};
|
|
13316
|
+
required: string[];
|
|
12039
13317
|
};
|
|
12040
13318
|
};
|
|
12041
13319
|
};
|
|
@@ -12164,27 +13442,52 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
12164
13442
|
schema: {
|
|
12165
13443
|
type: "object";
|
|
12166
13444
|
properties: {
|
|
12167
|
-
|
|
12168
|
-
type: string;
|
|
12169
|
-
description: string;
|
|
12170
|
-
};
|
|
12171
|
-
email: {
|
|
12172
|
-
type: string;
|
|
12173
|
-
description: string;
|
|
12174
|
-
};
|
|
12175
|
-
name: {
|
|
12176
|
-
type: string;
|
|
12177
|
-
description: string;
|
|
12178
|
-
};
|
|
12179
|
-
image: {
|
|
13445
|
+
token: {
|
|
12180
13446
|
type: string;
|
|
13447
|
+
nullable: boolean;
|
|
12181
13448
|
description: string;
|
|
12182
13449
|
};
|
|
12183
|
-
|
|
13450
|
+
user: {
|
|
12184
13451
|
type: string;
|
|
12185
|
-
|
|
13452
|
+
properties: {
|
|
13453
|
+
id: {
|
|
13454
|
+
type: string;
|
|
13455
|
+
description: string;
|
|
13456
|
+
};
|
|
13457
|
+
email: {
|
|
13458
|
+
type: string;
|
|
13459
|
+
format: string;
|
|
13460
|
+
description: string;
|
|
13461
|
+
};
|
|
13462
|
+
name: {
|
|
13463
|
+
type: string;
|
|
13464
|
+
description: string;
|
|
13465
|
+
};
|
|
13466
|
+
image: {
|
|
13467
|
+
type: string;
|
|
13468
|
+
format: string;
|
|
13469
|
+
nullable: boolean;
|
|
13470
|
+
description: string;
|
|
13471
|
+
};
|
|
13472
|
+
emailVerified: {
|
|
13473
|
+
type: string;
|
|
13474
|
+
description: string;
|
|
13475
|
+
};
|
|
13476
|
+
createdAt: {
|
|
13477
|
+
type: string;
|
|
13478
|
+
format: string;
|
|
13479
|
+
description: string;
|
|
13480
|
+
};
|
|
13481
|
+
updatedAt: {
|
|
13482
|
+
type: string;
|
|
13483
|
+
format: string;
|
|
13484
|
+
description: string;
|
|
13485
|
+
};
|
|
13486
|
+
};
|
|
13487
|
+
required: string[];
|
|
12186
13488
|
};
|
|
12187
13489
|
};
|
|
13490
|
+
required: string[];
|
|
12188
13491
|
};
|
|
12189
13492
|
};
|
|
12190
13493
|
};
|
|
@@ -12281,19 +13584,50 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
12281
13584
|
"application/json": {
|
|
12282
13585
|
schema: {
|
|
12283
13586
|
type: "object";
|
|
13587
|
+
description: string;
|
|
12284
13588
|
properties: {
|
|
12285
|
-
|
|
13589
|
+
redirect: {
|
|
12286
13590
|
type: string;
|
|
13591
|
+
enum: boolean[];
|
|
12287
13592
|
};
|
|
12288
|
-
|
|
13593
|
+
token: {
|
|
12289
13594
|
type: string;
|
|
12290
|
-
|
|
13595
|
+
description: string;
|
|
12291
13596
|
};
|
|
12292
13597
|
url: {
|
|
12293
13598
|
type: string;
|
|
13599
|
+
nullable: boolean;
|
|
12294
13600
|
};
|
|
12295
|
-
|
|
13601
|
+
user: {
|
|
12296
13602
|
type: string;
|
|
13603
|
+
properties: {
|
|
13604
|
+
id: {
|
|
13605
|
+
type: string;
|
|
13606
|
+
};
|
|
13607
|
+
email: {
|
|
13608
|
+
type: string;
|
|
13609
|
+
};
|
|
13610
|
+
name: {
|
|
13611
|
+
type: string;
|
|
13612
|
+
nullable: boolean;
|
|
13613
|
+
};
|
|
13614
|
+
image: {
|
|
13615
|
+
type: string;
|
|
13616
|
+
nullable: boolean;
|
|
13617
|
+
};
|
|
13618
|
+
emailVerified: {
|
|
13619
|
+
type: string;
|
|
13620
|
+
};
|
|
13621
|
+
createdAt: {
|
|
13622
|
+
type: string;
|
|
13623
|
+
format: string;
|
|
13624
|
+
};
|
|
13625
|
+
updatedAt: {
|
|
13626
|
+
type: string;
|
|
13627
|
+
format: string;
|
|
13628
|
+
};
|
|
13629
|
+
};
|
|
13630
|
+
required: string[];
|
|
12297
13631
|
};
|
|
12298
13632
|
};
|
|
12299
13633
|
required: string[];
|
|
@@ -12532,6 +13866,23 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
12532
13866
|
metadata: {
|
|
12533
13867
|
openapi: {
|
|
12534
13868
|
description: string;
|
|
13869
|
+
parameters: ({
|
|
13870
|
+
name: string;
|
|
13871
|
+
in: "query";
|
|
13872
|
+
description: string;
|
|
13873
|
+
required: true;
|
|
13874
|
+
schema: {
|
|
13875
|
+
type: "string";
|
|
13876
|
+
};
|
|
13877
|
+
} | {
|
|
13878
|
+
name: string;
|
|
13879
|
+
in: "query";
|
|
13880
|
+
description: string;
|
|
13881
|
+
required: false;
|
|
13882
|
+
schema: {
|
|
13883
|
+
type: "string";
|
|
13884
|
+
};
|
|
13885
|
+
})[];
|
|
12535
13886
|
responses: {
|
|
12536
13887
|
"200": {
|
|
12537
13888
|
description: string;
|
|
@@ -12542,13 +13893,44 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
12542
13893
|
properties: {
|
|
12543
13894
|
user: {
|
|
12544
13895
|
type: string;
|
|
12545
|
-
|
|
13896
|
+
properties: {
|
|
13897
|
+
id: {
|
|
13898
|
+
type: string;
|
|
13899
|
+
description: string;
|
|
13900
|
+
};
|
|
13901
|
+
email: {
|
|
13902
|
+
type: string;
|
|
13903
|
+
description: string;
|
|
13904
|
+
};
|
|
13905
|
+
name: {
|
|
13906
|
+
type: string;
|
|
13907
|
+
description: string;
|
|
13908
|
+
};
|
|
13909
|
+
image: {
|
|
13910
|
+
type: string;
|
|
13911
|
+
description: string;
|
|
13912
|
+
};
|
|
13913
|
+
emailVerified: {
|
|
13914
|
+
type: string;
|
|
13915
|
+
description: string;
|
|
13916
|
+
};
|
|
13917
|
+
createdAt: {
|
|
13918
|
+
type: string;
|
|
13919
|
+
description: string;
|
|
13920
|
+
};
|
|
13921
|
+
updatedAt: {
|
|
13922
|
+
type: string;
|
|
13923
|
+
description: string;
|
|
13924
|
+
};
|
|
13925
|
+
};
|
|
13926
|
+
required: string[];
|
|
12546
13927
|
};
|
|
12547
13928
|
status: {
|
|
12548
13929
|
type: string;
|
|
13930
|
+
description: string;
|
|
12549
13931
|
};
|
|
13932
|
+
required: string[];
|
|
12550
13933
|
};
|
|
12551
|
-
required: string[];
|
|
12552
13934
|
};
|
|
12553
13935
|
};
|
|
12554
13936
|
};
|
|
@@ -12617,10 +13999,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
12617
13999
|
email: {
|
|
12618
14000
|
type: string;
|
|
12619
14001
|
description: string;
|
|
14002
|
+
example: string;
|
|
12620
14003
|
};
|
|
12621
14004
|
callbackURL: {
|
|
12622
14005
|
type: string;
|
|
12623
14006
|
description: string;
|
|
14007
|
+
example: string;
|
|
14008
|
+
nullable: boolean;
|
|
12624
14009
|
};
|
|
12625
14010
|
};
|
|
12626
14011
|
required: string[];
|
|
@@ -12638,6 +14023,25 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
12638
14023
|
properties: {
|
|
12639
14024
|
status: {
|
|
12640
14025
|
type: string;
|
|
14026
|
+
description: string;
|
|
14027
|
+
example: boolean;
|
|
14028
|
+
};
|
|
14029
|
+
};
|
|
14030
|
+
};
|
|
14031
|
+
};
|
|
14032
|
+
};
|
|
14033
|
+
};
|
|
14034
|
+
"400": {
|
|
14035
|
+
description: string;
|
|
14036
|
+
content: {
|
|
14037
|
+
"application/json": {
|
|
14038
|
+
schema: {
|
|
14039
|
+
type: "object";
|
|
14040
|
+
properties: {
|
|
14041
|
+
message: {
|
|
14042
|
+
type: string;
|
|
14043
|
+
description: string;
|
|
14044
|
+
example: string;
|
|
12641
14045
|
};
|
|
12642
14046
|
};
|
|
12643
14047
|
};
|
|
@@ -12729,14 +14133,18 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
12729
14133
|
schema: {
|
|
12730
14134
|
type: "object";
|
|
12731
14135
|
properties: {
|
|
12732
|
-
|
|
14136
|
+
status: {
|
|
12733
14137
|
type: string;
|
|
12734
|
-
|
|
14138
|
+
description: string;
|
|
12735
14139
|
};
|
|
12736
|
-
|
|
14140
|
+
message: {
|
|
12737
14141
|
type: string;
|
|
14142
|
+
enum: string[];
|
|
14143
|
+
description: string;
|
|
14144
|
+
nullable: boolean;
|
|
12738
14145
|
};
|
|
12739
14146
|
};
|
|
14147
|
+
required: string[];
|
|
12740
14148
|
};
|
|
12741
14149
|
};
|
|
12742
14150
|
};
|
|
@@ -12849,11 +14257,52 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
12849
14257
|
schema: {
|
|
12850
14258
|
type: "object";
|
|
12851
14259
|
properties: {
|
|
12852
|
-
|
|
14260
|
+
token: {
|
|
14261
|
+
type: string;
|
|
14262
|
+
nullable: boolean;
|
|
12853
14263
|
description: string;
|
|
12854
|
-
|
|
14264
|
+
};
|
|
14265
|
+
user: {
|
|
14266
|
+
type: string;
|
|
14267
|
+
properties: {
|
|
14268
|
+
id: {
|
|
14269
|
+
type: string;
|
|
14270
|
+
description: string;
|
|
14271
|
+
};
|
|
14272
|
+
email: {
|
|
14273
|
+
type: string;
|
|
14274
|
+
format: string;
|
|
14275
|
+
description: string;
|
|
14276
|
+
};
|
|
14277
|
+
name: {
|
|
14278
|
+
type: string;
|
|
14279
|
+
description: string;
|
|
14280
|
+
};
|
|
14281
|
+
image: {
|
|
14282
|
+
type: string;
|
|
14283
|
+
format: string;
|
|
14284
|
+
nullable: boolean;
|
|
14285
|
+
description: string;
|
|
14286
|
+
};
|
|
14287
|
+
emailVerified: {
|
|
14288
|
+
type: string;
|
|
14289
|
+
description: string;
|
|
14290
|
+
};
|
|
14291
|
+
createdAt: {
|
|
14292
|
+
type: string;
|
|
14293
|
+
format: string;
|
|
14294
|
+
description: string;
|
|
14295
|
+
};
|
|
14296
|
+
updatedAt: {
|
|
14297
|
+
type: string;
|
|
14298
|
+
format: string;
|
|
14299
|
+
description: string;
|
|
14300
|
+
};
|
|
14301
|
+
};
|
|
14302
|
+
required: string[];
|
|
12855
14303
|
};
|
|
12856
14304
|
};
|
|
14305
|
+
required: string[];
|
|
12857
14306
|
};
|
|
12858
14307
|
};
|
|
12859
14308
|
};
|
|
@@ -13000,9 +14449,9 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
13000
14449
|
schema: {
|
|
13001
14450
|
type: "object";
|
|
13002
14451
|
properties: {
|
|
13003
|
-
|
|
14452
|
+
status: {
|
|
13004
14453
|
type: string;
|
|
13005
|
-
|
|
14454
|
+
description: string;
|
|
13006
14455
|
};
|
|
13007
14456
|
};
|
|
13008
14457
|
};
|
|
@@ -13076,9 +14525,9 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
13076
14525
|
schema: {
|
|
13077
14526
|
type: "object";
|
|
13078
14527
|
properties: {
|
|
13079
|
-
|
|
14528
|
+
status: {
|
|
13080
14529
|
type: string;
|
|
13081
|
-
|
|
14530
|
+
description: string;
|
|
13082
14531
|
};
|
|
13083
14532
|
};
|
|
13084
14533
|
};
|
|
@@ -13173,9 +14622,9 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
13173
14622
|
schema: {
|
|
13174
14623
|
type: "object";
|
|
13175
14624
|
properties: {
|
|
13176
|
-
|
|
14625
|
+
status: {
|
|
13177
14626
|
type: string;
|
|
13178
|
-
|
|
14627
|
+
description: string;
|
|
13179
14628
|
};
|
|
13180
14629
|
};
|
|
13181
14630
|
};
|
|
@@ -13278,9 +14727,9 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
13278
14727
|
schema: {
|
|
13279
14728
|
type: "object";
|
|
13280
14729
|
properties: {
|
|
13281
|
-
|
|
14730
|
+
status: {
|
|
13282
14731
|
type: string;
|
|
13283
|
-
|
|
14732
|
+
description: string;
|
|
13284
14733
|
};
|
|
13285
14734
|
};
|
|
13286
14735
|
};
|
|
@@ -13378,6 +14827,18 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
13378
14827
|
"application/json": {
|
|
13379
14828
|
schema: {
|
|
13380
14829
|
type: "object";
|
|
14830
|
+
properties: {
|
|
14831
|
+
success: {
|
|
14832
|
+
type: string;
|
|
14833
|
+
description: string;
|
|
14834
|
+
};
|
|
14835
|
+
message: {
|
|
14836
|
+
type: string;
|
|
14837
|
+
enum: string[];
|
|
14838
|
+
description: string;
|
|
14839
|
+
};
|
|
14840
|
+
};
|
|
14841
|
+
required: string[];
|
|
13381
14842
|
};
|
|
13382
14843
|
};
|
|
13383
14844
|
};
|
|
@@ -13536,18 +14997,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
13536
14997
|
schema: {
|
|
13537
14998
|
type: "array";
|
|
13538
14999
|
items: {
|
|
13539
|
-
|
|
13540
|
-
properties: {
|
|
13541
|
-
token: {
|
|
13542
|
-
type: string;
|
|
13543
|
-
};
|
|
13544
|
-
userId: {
|
|
13545
|
-
type: string;
|
|
13546
|
-
};
|
|
13547
|
-
expiresAt: {
|
|
13548
|
-
type: string;
|
|
13549
|
-
};
|
|
13550
|
-
};
|
|
15000
|
+
$ref: string;
|
|
13551
15001
|
};
|
|
13552
15002
|
};
|
|
13553
15003
|
};
|
|
@@ -13636,6 +15086,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
13636
15086
|
properties: {
|
|
13637
15087
|
token: {
|
|
13638
15088
|
type: string;
|
|
15089
|
+
description: string;
|
|
13639
15090
|
};
|
|
13640
15091
|
};
|
|
13641
15092
|
required: string[];
|
|
@@ -13643,6 +15094,25 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
13643
15094
|
};
|
|
13644
15095
|
};
|
|
13645
15096
|
};
|
|
15097
|
+
responses: {
|
|
15098
|
+
"200": {
|
|
15099
|
+
description: string;
|
|
15100
|
+
content: {
|
|
15101
|
+
"application/json": {
|
|
15102
|
+
schema: {
|
|
15103
|
+
type: "object";
|
|
15104
|
+
properties: {
|
|
15105
|
+
status: {
|
|
15106
|
+
type: string;
|
|
15107
|
+
description: string;
|
|
15108
|
+
};
|
|
15109
|
+
};
|
|
15110
|
+
required: string[];
|
|
15111
|
+
};
|
|
15112
|
+
};
|
|
15113
|
+
};
|
|
15114
|
+
};
|
|
15115
|
+
};
|
|
13646
15116
|
};
|
|
13647
15117
|
};
|
|
13648
15118
|
} & {
|
|
@@ -13718,6 +15188,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
13718
15188
|
properties: {
|
|
13719
15189
|
status: {
|
|
13720
15190
|
type: string;
|
|
15191
|
+
description: string;
|
|
13721
15192
|
};
|
|
13722
15193
|
};
|
|
13723
15194
|
required: string[];
|
|
@@ -13801,8 +15272,10 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
13801
15272
|
properties: {
|
|
13802
15273
|
status: {
|
|
13803
15274
|
type: string;
|
|
15275
|
+
description: string;
|
|
13804
15276
|
};
|
|
13805
15277
|
};
|
|
15278
|
+
required: string[];
|
|
13806
15279
|
};
|
|
13807
15280
|
};
|
|
13808
15281
|
};
|
|
@@ -13818,7 +15291,8 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
13818
15291
|
linkSocialAccount: {
|
|
13819
15292
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
13820
15293
|
body: {
|
|
13821
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
15294
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
15295
|
+
scopes?: string[] | undefined;
|
|
13822
15296
|
callbackURL?: string | undefined;
|
|
13823
15297
|
};
|
|
13824
15298
|
} & {
|
|
@@ -13854,12 +15328,15 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
13854
15328
|
requireHeaders: true;
|
|
13855
15329
|
body: zod.ZodObject<{
|
|
13856
15330
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
13857
|
-
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick")[]]>;
|
|
15331
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom")[]]>;
|
|
15332
|
+
scopes: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
13858
15333
|
}, "strip", zod.ZodTypeAny, {
|
|
13859
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
15334
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
15335
|
+
scopes?: string[] | undefined;
|
|
13860
15336
|
callbackURL?: string | undefined;
|
|
13861
15337
|
}, {
|
|
13862
|
-
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick";
|
|
15338
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
|
|
15339
|
+
scopes?: string[] | undefined;
|
|
13863
15340
|
callbackURL?: string | undefined;
|
|
13864
15341
|
}>;
|
|
13865
15342
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
@@ -13898,9 +15375,11 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
13898
15375
|
properties: {
|
|
13899
15376
|
url: {
|
|
13900
15377
|
type: string;
|
|
15378
|
+
description: string;
|
|
13901
15379
|
};
|
|
13902
15380
|
redirect: {
|
|
13903
15381
|
type: string;
|
|
15382
|
+
description: string;
|
|
13904
15383
|
};
|
|
13905
15384
|
};
|
|
13906
15385
|
required: string[];
|
|
@@ -14001,21 +15480,24 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
14001
15480
|
};
|
|
14002
15481
|
createdAt: {
|
|
14003
15482
|
type: string;
|
|
15483
|
+
format: string;
|
|
14004
15484
|
};
|
|
14005
15485
|
updatedAt: {
|
|
14006
15486
|
type: string;
|
|
15487
|
+
format: string;
|
|
14007
15488
|
};
|
|
14008
|
-
|
|
14009
|
-
|
|
14010
|
-
|
|
14011
|
-
|
|
15489
|
+
};
|
|
15490
|
+
accountId: {
|
|
15491
|
+
type: string;
|
|
15492
|
+
};
|
|
15493
|
+
scopes: {
|
|
15494
|
+
type: string;
|
|
15495
|
+
items: {
|
|
14012
15496
|
type: string;
|
|
14013
|
-
items: {
|
|
14014
|
-
type: string;
|
|
14015
|
-
};
|
|
14016
15497
|
};
|
|
14017
15498
|
};
|
|
14018
15499
|
};
|
|
15500
|
+
required: string[];
|
|
14019
15501
|
};
|
|
14020
15502
|
};
|
|
14021
15503
|
};
|
|
@@ -14075,6 +15557,35 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
14075
15557
|
callbackURL?: string | undefined;
|
|
14076
15558
|
}>;
|
|
14077
15559
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<void>)[];
|
|
15560
|
+
metadata: {
|
|
15561
|
+
openapi: {
|
|
15562
|
+
description: string;
|
|
15563
|
+
responses: {
|
|
15564
|
+
"200": {
|
|
15565
|
+
description: string;
|
|
15566
|
+
content: {
|
|
15567
|
+
"application/json": {
|
|
15568
|
+
schema: {
|
|
15569
|
+
type: "object";
|
|
15570
|
+
properties: {
|
|
15571
|
+
success: {
|
|
15572
|
+
type: string;
|
|
15573
|
+
description: string;
|
|
15574
|
+
};
|
|
15575
|
+
message: {
|
|
15576
|
+
type: string;
|
|
15577
|
+
enum: string[];
|
|
15578
|
+
description: string;
|
|
15579
|
+
};
|
|
15580
|
+
};
|
|
15581
|
+
required: string[];
|
|
15582
|
+
};
|
|
15583
|
+
};
|
|
15584
|
+
};
|
|
15585
|
+
};
|
|
15586
|
+
};
|
|
15587
|
+
};
|
|
15588
|
+
};
|
|
14078
15589
|
} & {
|
|
14079
15590
|
use: any[];
|
|
14080
15591
|
};
|
|
@@ -14147,6 +15658,28 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
14147
15658
|
};
|
|
14148
15659
|
};
|
|
14149
15660
|
}>)[];
|
|
15661
|
+
metadata: {
|
|
15662
|
+
openapi: {
|
|
15663
|
+
description: string;
|
|
15664
|
+
responses: {
|
|
15665
|
+
"200": {
|
|
15666
|
+
description: string;
|
|
15667
|
+
content: {
|
|
15668
|
+
"application/json": {
|
|
15669
|
+
schema: {
|
|
15670
|
+
type: "object";
|
|
15671
|
+
properties: {
|
|
15672
|
+
status: {
|
|
15673
|
+
type: string;
|
|
15674
|
+
};
|
|
15675
|
+
};
|
|
15676
|
+
};
|
|
15677
|
+
};
|
|
15678
|
+
};
|
|
15679
|
+
};
|
|
15680
|
+
};
|
|
15681
|
+
};
|
|
15682
|
+
};
|
|
14150
15683
|
} & {
|
|
14151
15684
|
use: any[];
|
|
14152
15685
|
};
|
|
@@ -14264,4 +15797,4 @@ type Auth = {
|
|
|
14264
15797
|
$context: Promise<AuthContext>;
|
|
14265
15798
|
};
|
|
14266
15799
|
|
|
14267
|
-
export {
|
|
15800
|
+
export { type InternalAdapter as $, type AuthPluginSchema as A, type BetterAuthPlugin as B, type SecondaryStorage as C, type FilteredAPI as D, type FilterActions as E, type FieldAttribute as F, type GenericEndpointContext as G, type HookEndpointContext as H, type InferOptionSchema as I, type InferSessionAPI as J, type KyselyDatabaseType as K, type InferAPI as L, type Models as M, type LogLevel as N, levels as O, shouldPublishLog as P, type Logger as Q, type RateLimit as R, type Session as S, type LogHandlerParams as T, type User as U, type Verification as V, type Where as W, createLogger as X, logger as Y, type FieldType as Z, createInternalAdapter as _, type InferPluginErrorCodes as a, deleteUserCallback as a$, type FieldAttributeConfig as a0, createFieldAttribute as a1, type InferValueType as a2, type InferFieldsOutput as a3, type InferFieldsInput as a4, type InferFieldsInputClient as a5, type PluginFieldAttribute as a6, type InferFieldsFromPlugins as a7, type InferFieldsFromOptions as a8, getAuthTables as a9, setCookieToHeader as aA, getEndpoints as aB, router as aC, signInSocial as aD, signInEmail as aE, callbackOAuth as aF, getSession as aG, getSessionFromCtx as aH, sessionMiddleware as aI, requestOnlySessionMiddleware as aJ, freshSessionMiddleware as aK, listSessions as aL, revokeSession as aM, revokeSessions as aN, revokeOtherSessions as aO, signOut as aP, forgetPassword as aQ, forgetPasswordCallback as aR, resetPassword as aS, createEmailVerificationToken as aT, sendVerificationEmailFn as aU, sendVerificationEmail as aV, verifyEmail as aW, updateUser as aX, changePassword as aY, setPassword as aZ, deleteUser as a_, accountSchema as aa, userSchema as ab, sessionSchema as ac, verificationSchema as ad, parseOutputData as ae, getAllFields as af, parseUserOutput as ag, parseAccountOutput as ah, parseSessionOutput as ai, parseInputData as aj, parseUserInput as ak, parseAdditionalUserInput as al, parseAccountInput as am, parseSessionInput as an, mergeSchema as ao, createCookieGetter as ap, getCookies as aq, type BetterAuthCookies as ar, setCookieCache as as, setSessionCookie as at, deleteSessionCookie as au, parseCookies as av, type EligibleCookies as aw, getSessionCookie as ax, getCookieCache as ay, parseSetCookieHeader as az, createAuthEndpoint as b, changeEmail as b0, error as b1, ok as b2, signUpEmail as b3, listUserAccounts as b4, linkSocialAccount as b5, unlinkAccount as b6, refreshToken as b7, originCheckMiddleware as b8, originCheck as b9, createAuthMiddleware as c, type AuthEndpoint as d, type AuthMiddleware as e, type BetterAuthOptions as f, type Adapter as g, type BetterAuthDbSchema as h, type AdapterSchemaCreation as i, BASE_ERROR_CODES as j, type Auth as k, type AuthContext as l, type InferUser as m, type InferSession as n, optionsMiddleware as o, checkPassword as p, type WithJsDoc as q, betterAuth as r, type AdditionalUserFieldsInput as s, type AdditionalUserFieldsOutput as t, type AdditionalSessionFieldsInput as u, type AdditionalSessionFieldsOutput as v, type InferPluginTypes as w, type Account as x, init as y, type AdapterInstance as z };
|