import { z } from "../../framework";
import { FailedAPIOperationSchema } from "../common";
import { ProjectIdSchema } from "../projects/common";
import { ComputeServerIdSchema, ComputeServerTitleSchema } from "./common";
export const GetComputeServersInputSchema = z
.object({
id: ComputeServerIdSchema.optional(),
project_id: ProjectIdSchema.optional(),
})
.describe("Parameters that restrict compute servers to get.");
export const GetComputeServersOutputSchema = z.union([
FailedAPIOperationSchema,
z.array(
z.object({
id: ComputeServerIdSchema,
title: ComputeServerTitleSchema,
}),
),
]);
export type GetComputeServersInput = z.infer<
typeof GetComputeServersInputSchema
>;
export type GetComputeServersOutput = z.infer<
typeof GetComputeServersOutputSchema
>;