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/compute/delete-api-key.ts
Views: 688
1
import { z } from "../../framework";
2
3
import { FailedAPIOperationSchema, OkAPIOperationSchema } from "../common";
4
5
import { ComputeServerIdSchema } from "./common";
6
7
// OpenAPI spec
8
//
9
export const DeleteComputeServerAPIKeyInputSchema = z
10
.object({
11
id: ComputeServerIdSchema,
12
})
13
.describe(
14
"Deletes the project API key associated with a particular compute server.",
15
);
16
17
export const DeleteComputeServerAPIKeyOutputSchema = z.union([
18
FailedAPIOperationSchema,
19
OkAPIOperationSchema,
20
]);
21
22
export type DeleteComputeServerAPIKeyInput = z.infer<
23
typeof DeleteComputeServerAPIKeyInputSchema
24
>;
25
export type DeleteComputeServerAPIKeyOutput = z.infer<
26
typeof DeleteComputeServerAPIKeyOutputSchema
27
>;
28
29