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/get-templates.ts
Views: 688
1
import { z } from "../../framework";
2
3
import { FailedAPIOperationSchema } from "../common";
4
5
import { GetComputeServerTemplateSchema } from "./get-template";
6
7
// OpenAPI spec
8
//
9
export const GetComputeServerTemplatesOutputSchema = z.union([
10
FailedAPIOperationSchema,
11
z.object({
12
templates: z.array(GetComputeServerTemplateSchema),
13
})
14
.describe("Default compute server templates."),
15
]);
16
17
export type GetComputeServerTemplatesOutput = z.infer<typeof GetComputeServerTemplatesOutputSchema>;
18
19