CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/lib/api/schema/accounts/send-verification-email.ts
Views: 688
1
import { z } from "../../framework";
2
3
import {
4
FailedAPIOperationSchema,
5
SuccessfulAPIOperationSchema,
6
} from "../common";
7
8
import { AccountEmailSchema } from "./common";
9
10
// OpenAPI spec
11
//
12
export const SendAccountVerificationEmailInputSchema = z
13
.object({
14
email_address: AccountEmailSchema,
15
})
16
.describe("Send account verification email.");
17
18
export const SendAccountVerificationEmailOutputSchema = z.union([
19
FailedAPIOperationSchema,
20
SuccessfulAPIOperationSchema,
21
]);
22
23
export type SendAccountVerificationEmailInput = z.infer<
24
typeof SendAccountVerificationEmailInputSchema
25
>;
26
export type SendAccountVerificationEmailOutput = z.infer<
27
typeof SendAccountVerificationEmailOutputSchema
28
>;
29
30