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/remove-ban.ts
Views: 688
1
import { z } from "../../framework";
2
3
import {
4
FailedAPIOperationSchema,
5
SuccessfulAPIOperationSchema,
6
} from "../common";
7
8
import { AccountIdSchema } from "./common";
9
10
// OpenAPI spec
11
//
12
export const RemoveAccountBanInputSchema = z
13
.object({
14
account_id: AccountIdSchema.describe("Account id to remove ban for."),
15
})
16
.describe(
17
"**Administrators only**. Used to remove an existing ban on a user's account",
18
);
19
20
export const RemoveAccountBanOutputSchema = z.union([
21
FailedAPIOperationSchema,
22
SuccessfulAPIOperationSchema,
23
]);
24
25
export type RemoveAccountBanInput = z.infer<typeof RemoveAccountBanInputSchema>;
26
export type RemoveAccountBanOutput = z.infer<
27
typeof RemoveAccountBanOutputSchema
28
>;
29
30