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-serial-port-output.ts
Views: 688
1
import { z } from "../../framework";
2
3
import { FailedAPIOperationSchema } from "../common";
4
import { ComputeServerIdSchema } from "./common";
5
6
// OpenAPI spec
7
//
8
export const GetComputeServerSerialPortOutputInputSchema = z
9
.object({
10
id: ComputeServerIdSchema,
11
})
12
.describe("Get serial port output for a compute server.");
13
14
export const GetComputeServerSerialPortOutputOutputSchema = z.union([
15
FailedAPIOperationSchema,
16
z.string().describe("Serial port output for the compute server."),
17
]);
18
19
export type GetComputeServerSerialPortOutputInput = z.infer<
20
typeof GetComputeServerSerialPortOutputInputSchema
21
>;
22
export type GetComputeServerSerialPortOutputOutput = z.infer<
23
typeof GetComputeServerSerialPortOutputOutputSchema
24
>;
25
26