Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/next/lib/api/schema/compute/get-images.ts
Views: 688
import { z } from "../../framework";12import { FailedAPIOperationSchema, RequestNoCacheSchema } from "../common";34import { ComputeServerImageProxySchema } from "./common";56// OpenAPI spec7//8export const GetComputeServerImagesInputSchema = z9.object({10noCache: RequestNoCacheSchema.optional(),11})12.describe("Used to get available compute server images.");1314export const GetComputeServerImagesOutputSchema = z.union([15FailedAPIOperationSchema,16z17.record(18z.string(),19z.object({20system: z.boolean().describe("").optional(),21priority: z.number().min(0).describe("").optional(),22disabled: z.boolean().describe("").optional(),23label: z.string().describe("").optional(),24comment: z.string().describe("").optional(),25package: z.string().describe("").optional(),26package_arm64: z.string().describe("").optional(),27minDiskSizeGb: z.number().min(0).describe("").optional(),28dockerSizeGb: z.number().min(0).describe("").optional(),29gpu: z.boolean().describe("").optional(),30icon: z.string().describe("").optional(),31url: z.string().describe("").optional(),32source: z.string().describe("").optional(),33description: z.string().describe("").optional(),34versions: z35.array(36z.object({37tag: z.string(),38tested: z.boolean(),39version: z.string().optional(),40label: z.string().optional(),41}),42)43.optional(),44videos: z.array(z.string()).optional(),45tutorials: z.array(z.string()).optional(),46jupyterKernels: z.boolean().optional(),47requireDns: z.boolean().optional(),48upstreamVersions: z.string().optional(),49proxy: ComputeServerImageProxySchema.optional(),50}),51)52.describe(53`Maps server image keys to detailed JSON information about the server image (e.g.,54download URL, descriptions, source files, etc.`,55),56]);5758export type GetComputeServerImagesInput = z.infer<59typeof GetComputeServerImagesInputSchema60>;61export type GetComputeServerImagesOutput = z.infer<62typeof GetComputeServerImagesOutputSchema63>;646566