/opt/canhelp/node_modules/better-auth/dist/api/routes
Edit: /opt/canhelp/node_modules/better-auth/dist/api/routes/sign-up.d.mts (4657B)
import { AdditionalUserFieldsInput, User } from "../../types/models.mjs";
import { BetterAuthOptions } from "@better-auth/core";
import * as better_call0 from "better-call";
import * as z from "zod";
//#region src/api/routes/sign-up.d.ts
declare const signUpEmail:
() => better_call0.StrictEndpoint<"/sign-up/email", {
method: "POST";
operationId: string;
use: ((inputContext: better_call0.MiddlewareInputContext) => Promise)[];
body: z.ZodIntersection;
callbackURL: z.ZodOptional;
rememberMe: z.ZodOptional;
}, z.core.$strip>, z.ZodRecord>;
metadata: {
allowedMediaTypes: string[];
$Infer: {
body: {
name: string;
email: string;
password: string;
image?: string | undefined;
callbackURL?: string | undefined;
rememberMe?: boolean | undefined;
} & AdditionalUserFieldsInput;
returned: {
token: string | null;
user: User;
};
};
openapi: {
operationId: string;
description: string;
requestBody: {
content: {
"application/json": {
schema: {
type: "object";
properties: {
name: {
type: string;
description: string;
};
email: {
type: string;
description: string;
};
password: {
type: string;
description: string;
};
image: {
type: string;
description: string;
};
callbackURL: {
type: string;
description: string;
};
rememberMe: {
type: string;
description: string;
};
};
required: string[];
};
};
};
};
responses: {
"200": {
description: string;
content: {
"application/json": {
schema: {
type: "object";
properties: {
token: {
type: string;
nullable: boolean;
description: string;
};
user: {
type: string;
properties: {
id: {
type: string;
description: string;
};
email: {
type: string;
format: string;
description: string;
};
name: {
type: string;
description: string;
};
image: {
type: string;
format: string;
nullable: boolean;
description: string;
};
emailVerified: {
type: string;
description: string;
};
createdAt: {
type: string;
format: string;
description: string;
};
updatedAt: {
type: string;
format: string;
description: string;
};
};
required: string[];
};
};
required: string[];
};
};
};
};
"422": {
description: string;
content: {
"application/json": {
schema: {
type: "object";
properties: {
message: {
type: string;
};
};
};
};
};
};
};
};
};
}, {
token: null;
user: User;
} | {
token: string;
user: User;
}>;
//#endregion
export { signUpEmail };
//# sourceMappingURL=sign-up.d.mts.map