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/projects/stop.ts
Views: 688
1
import { z } from "../../framework";
2
3
import { FailedAPIOperationSchema, OkAPIOperationSchema } from "../common";
4
5
import { ProjectIdSchema } from "./common";
6
7
// OpenAPI spec
8
//
9
export const StopProjectInputSchema = z
10
.object({
11
project_id: ProjectIdSchema,
12
})
13
.describe("Stops a running project.");
14
15
export const StopProjectOutputSchema = z.union([
16
FailedAPIOperationSchema,
17
OkAPIOperationSchema,
18
]);
19
20
export type StopProjectInput = z.infer<typeof StopProjectInputSchema>;
21
export type StopProjectOutput = z.infer<typeof StopProjectOutputSchema>;
22
23