/opt/canhelp/node_modules/better-auth/dist/api/routes
NameSizeModeActions
account.d.mts119240644editdlrm
account.mjs195270644editdlrm
account.mjs.map405090644editdlrm
callback.d.mts10140644editdlrm
callback.mjs69790644editdlrm
callback.mjs.map135720644editdlrm
email-verification.d.mts40800644editdlrm
email-verification.mjs114020644editdlrm
email-verification.mjs.map233670644editdlrm
error.d.mts6030644editdlrm
error.mjs129680644editdlrm
error.mjs.map170090644editdlrm
index.d.mts10440644editdlrm
index.mjs10580644editdlrm
ok.d.mts7730644editdlrm
ok.mjs7040644editdlrm
ok.mjs.map14240644editdlrm
password.d.mts45140644editdlrm
password.mjs84580644editdlrm
password.mjs.map168640644editdlrm
session.d.mts116080644editdlrm
session.mjs186520644editdlrm
session.mjs.map404940644editdlrm
sign-in.d.mts73530644editdlrm
sign-in.mjs109480644editdlrm
sign-in.mjs.map253640644editdlrm
sign-out.d.mts7880644editdlrm
sign-out.mjs10260644editdlrm
sign-out.mjs.map20100644editdlrm
sign-up.d.mts46570644editdlrm
sign-up.mjs97190644editdlrm
sign-up.mjs.map203860644editdlrm
update-session.d.mts19910644editdlrm
update-session.mjs19840644editdlrm
update-session.mjs.map40180644editdlrm
update-user.d.mts115680644editdlrm
update-user.mjs191580644editdlrm
update-user.mjs.map390530644editdlrm
Edit: /opt/canhelp/node_modules/better-auth/dist/api/routes/account.d.mts (11924B)
import * as _better_auth_core_oauth20 from "@better-auth/core/oauth2"; import * as better_call0 from "better-call"; import * as z from "zod"; //#region src/api/routes/account.d.ts declare const listUserAccounts: better_call0.StrictEndpoint<"/list-accounts", { method: "GET"; use: ((inputContext: better_call0.MiddlewareInputContext) => Promise<{ session: { session: Record & { id: string; createdAt: Date; updatedAt: Date; userId: string; expiresAt: Date; token: string; ipAddress?: string | null | undefined; userAgent?: string | null | undefined; }; user: Record & { id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined; }; }; }>)[]; metadata: { openapi: { operationId: string; description: string; responses: { "200": { description: string; content: { "application/json": { schema: { type: "array"; items: { type: string; properties: { id: { type: string; }; providerId: { type: string; }; createdAt: { type: string; format: string; }; updatedAt: { type: string; format: string; }; accountId: { type: string; }; userId: { type: string; }; scopes: { type: string; items: { type: string; }; }; }; required: string[]; }; }; }; }; }; }; }; }; }, { scopes: string[]; id: string; createdAt: Date; updatedAt: Date; userId: string; providerId: string; accountId: string; }[]>; declare const linkSocialAccount: better_call0.StrictEndpoint<"/link-social", { method: "POST"; requireHeaders: true; body: z.ZodObject<{ callbackURL: z.ZodOptional; provider: z.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, z.core.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>; idToken: z.ZodOptional; accessToken: z.ZodOptional; refreshToken: z.ZodOptional; scopes: z.ZodOptional>; }, z.core.$strip>>; requestSignUp: z.ZodOptional; scopes: z.ZodOptional>; errorCallbackURL: z.ZodOptional; disableRedirect: z.ZodOptional; additionalData: z.ZodOptional>; }, z.core.$strip>; use: ((inputContext: better_call0.MiddlewareInputContext) => Promise<{ session: { session: Record & { id: string; createdAt: Date; updatedAt: Date; userId: string; expiresAt: Date; token: string; ipAddress?: string | null | undefined; userAgent?: string | null | undefined; }; user: Record & { id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined; }; }; }>)[]; metadata: { openapi: { description: string; operationId: string; responses: { "200": { description: string; content: { "application/json": { schema: { type: "object"; properties: { url: { type: string; description: string; }; redirect: { type: string; description: string; }; status: { type: string; }; }; required: string[]; }; }; }; }; }; }; }; }, { url: string; redirect: boolean; }>; declare const unlinkAccount: better_call0.StrictEndpoint<"/unlink-account", { method: "POST"; body: z.ZodObject<{ providerId: z.ZodString; accountId: z.ZodOptional; }, z.core.$strip>; use: ((inputContext: better_call0.MiddlewareInputContext) => Promise<{ session: { session: Record & { id: string; createdAt: Date; updatedAt: Date; userId: string; expiresAt: Date; token: string; ipAddress?: string | null | undefined; userAgent?: string | null | undefined; }; user: Record & { id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined; }; }; }>)[]; metadata: { openapi: { description: string; responses: { "200": { description: string; content: { "application/json": { schema: { type: "object"; properties: { status: { type: string; }; }; }; }; }; }; }; }; }; }, { status: boolean; }>; declare const getAccessToken: better_call0.StrictEndpoint<"/get-access-token", { method: "POST"; body: z.ZodObject<{ providerId: z.ZodString; accountId: z.ZodOptional; userId: z.ZodOptional; }, z.core.$strip>; metadata: { openapi: { description: string; responses: { 200: { description: string; content: { "application/json": { schema: { type: "object"; properties: { tokenType: { type: string; }; idToken: { type: string; }; accessToken: { type: string; }; accessTokenExpiresAt: { type: string; format: string; }; }; }; }; }; }; 400: { description: string; }; }; }; }; }, { accessToken: string; accessTokenExpiresAt: Date | undefined; scopes: string[]; idToken: string | undefined; }>; declare const refreshToken: better_call0.StrictEndpoint<"/refresh-token", { method: "POST"; body: z.ZodObject<{ providerId: z.ZodString; accountId: z.ZodOptional; userId: z.ZodOptional; }, z.core.$strip>; metadata: { openapi: { description: string; responses: { 200: { description: string; content: { "application/json": { schema: { type: "object"; properties: { tokenType: { type: string; }; idToken: { type: string; }; accessToken: { type: string; }; refreshToken: { type: string; }; accessTokenExpiresAt: { type: string; format: string; }; refreshTokenExpiresAt: { type: string; format: string; }; }; }; }; }; }; 400: { description: string; }; }; }; }; }, { accessToken: string | undefined; refreshToken: string; accessTokenExpiresAt: Date | undefined; refreshTokenExpiresAt: Date | null | undefined; scope: string | null | undefined; idToken: string | null | undefined; providerId: string; accountId: string; }>; declare const accountInfo: better_call0.StrictEndpoint<"/account-info", { method: "GET"; use: ((inputContext: better_call0.MiddlewareInputContext) => Promise<{ session: { session: Record & { id: string; createdAt: Date; updatedAt: Date; userId: string; expiresAt: Date; token: string; ipAddress?: string | null | undefined; userAgent?: string | null | undefined; }; user: Record & { id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined; }; }; }>)[]; metadata: { openapi: { description: string; responses: { "200": { description: string; content: { "application/json": { schema: { type: "object"; properties: { user: { type: string; properties: { id: { type: string; }; name: { type: string; }; email: { type: string; }; image: { type: string; }; emailVerified: { type: string; }; }; required: string[]; }; data: { type: string; properties: {}; additionalProperties: boolean; }; }; required: string[]; additionalProperties: boolean; }; }; }; }; }; }; }; query: z.ZodOptional; }, z.core.$strip>>; }, { user: _better_auth_core_oauth20.OAuth2UserInfo; data: Record; } | null>; //#endregion export { accountInfo, getAccessToken, linkSocialAccount, listUserAccounts, refreshToken, unlinkAccount }; //# sourceMappingURL=account.d.mts.map