/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 8e1cd43d31e1 */ import * as z from "zod/v4"; import { ClosedEnum } from "../types/enums.js"; /** * Deployment status in the deployment lifecycle. * * @remarks * * For observe-only deployments with no release or stack state, `Running` * means the Operator is attached. Connectivity comes from `lastHeartbeatAt`; * resource health comes from inventory and resource heartbeat data. */ export const SyncListRequestStatus = { Pending: "pending", PreflightsFailed: "preflights-failed", InitialSetup: "initial-setup", InitialSetupFailed: "initial-setup-failed", Provisioning: "provisioning", WaitingForMachines: "waiting-for-machines", ProvisioningFailed: "provisioning-failed", Running: "running", RefreshFailed: "refresh-failed", UpdatePending: "update-pending", Updating: "updating", UpdateFailed: "update-failed", DeletePending: "delete-pending", Deleting: "deleting", DeleteFailed: "delete-failed", TeardownRequired: "teardown-required", TeardownFailed: "teardown-failed", Deleted: "deleted", Error: "error", } as const; /** * Deployment status in the deployment lifecycle. * * @remarks * * For observe-only deployments with no release or stack state, `Running` * means the Operator is attached. Connectivity comes from `lastHeartbeatAt`; * resource health comes from inventory and resource heartbeat data. */ export type SyncListRequestStatus = ClosedEnum; /** * Represents the target cloud platform. */ export const SyncListRequestPlatform = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type SyncListRequestPlatform = ClosedEnum< typeof SyncListRequestPlatform >; /** * Request to list full operational deployments */ export type SyncListRequest = { managerId?: string | undefined; /** * Specific deployment IDs to include */ deploymentIds?: Array | undefined; /** * Filter by deployment status */ statuses?: Array | undefined; /** * Filter by deployment platform */ platforms?: Array | undefined; /** * Filter by deployment group ID */ deploymentGroupId?: string | undefined; /** * Maximum records to return */ limit?: number | undefined; }; /** @internal */ export const SyncListRequestStatus$outboundSchema: z.ZodEnum< typeof SyncListRequestStatus > = z.enum(SyncListRequestStatus); /** @internal */ export const SyncListRequestPlatform$outboundSchema: z.ZodEnum< typeof SyncListRequestPlatform > = z.enum(SyncListRequestPlatform); /** @internal */ export type SyncListRequest$Outbound = { managerId?: string | undefined; deploymentIds?: Array | undefined; statuses?: Array | undefined; platforms?: Array | undefined; deploymentGroupId?: string | undefined; limit?: number | undefined; }; /** @internal */ export const SyncListRequest$outboundSchema: z.ZodType< SyncListRequest$Outbound, SyncListRequest > = z.object({ managerId: z.string().optional(), deploymentIds: z.array(z.string()).optional(), statuses: z.array(SyncListRequestStatus$outboundSchema).optional(), platforms: z.array(SyncListRequestPlatform$outboundSchema).optional(), deploymentGroupId: z.string().optional(), limit: z.int().optional(), }); export function syncListRequestToJSON( syncListRequest: SyncListRequest, ): string { return JSON.stringify(SyncListRequest$outboundSchema.parse(syncListRequest)); }