import * as z from "zod/v4"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type ListDeploymentsGlobals = { /** * Workspace name. Platform API keys already select a workspace; other authentication methods can configure it once on the SDK client. */ workspace?: string | undefined; }; /** * 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 declare const ListDeploymentsStatus: { readonly Pending: "pending"; readonly PreflightsFailed: "preflights-failed"; readonly InitialSetup: "initial-setup"; readonly InitialSetupFailed: "initial-setup-failed"; readonly Provisioning: "provisioning"; readonly WaitingForMachines: "waiting-for-machines"; readonly ProvisioningFailed: "provisioning-failed"; readonly Running: "running"; readonly RefreshFailed: "refresh-failed"; readonly UpdatePending: "update-pending"; readonly Updating: "updating"; readonly UpdateFailed: "update-failed"; readonly DeletePending: "delete-pending"; readonly Deleting: "deleting"; readonly DeleteFailed: "delete-failed"; readonly TeardownRequired: "teardown-required"; readonly TeardownFailed: "teardown-failed"; readonly Deleted: "deleted"; readonly Error: "error"; }; /** * 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 ListDeploymentsStatus = ClosedEnum; /** * Represents the target cloud platform. */ export declare const ListDeploymentsEnvironment: { readonly Aws: "aws"; readonly Gcp: "gcp"; readonly Azure: "azure"; readonly Kubernetes: "kubernetes"; readonly Machines: "machines"; readonly Local: "local"; readonly Test: "test"; }; /** * Represents the target cloud platform. */ export type ListDeploymentsEnvironment = ClosedEnum; export declare const ListDeploymentsInclude: { readonly Release: "release"; readonly DeploymentGroup: "deploymentGroup"; readonly Project: "project"; }; export type ListDeploymentsInclude = ClosedEnum; export type ListDeploymentsRequest = { /** * Filter by project ID or name. */ project?: string | undefined; /** * Filter by deployment group ID or name */ deploymentGroup?: string | undefined; /** * Filter by exact deployment name. Must be used with deploymentGroup. */ name?: string | undefined; /** * Filter by manager ID */ managerId?: string | undefined; /** * Filter by deployment purpose */ purpose?: models.DeploymentPurpose | undefined; /** * Search deployments by name, public subdomain, or deployment group name */ search?: string | undefined; /** * Filter deployments by status */ status?: Array | undefined; /** * Filter deployments by effective environment */ environment?: Array | undefined; /** * Optional fields to include: release, deploymentGroup, project */ include?: Array | undefined; /** * Maximum number of items to return per page */ limit?: number | undefined; /** * Cursor for pagination - omit for first page */ cursor?: string | undefined; }; /** * Paginated response */ export type ListDeploymentsResponse = { /** * Items in this page */ items: Array; /** * Cursor for the next page, null if last page */ nextCursor: string | null; }; /** @internal */ export declare const ListDeploymentsStatus$outboundSchema: z.ZodEnum; /** @internal */ export declare const ListDeploymentsEnvironment$outboundSchema: z.ZodEnum; /** @internal */ export declare const ListDeploymentsInclude$outboundSchema: z.ZodEnum; /** @internal */ export type ListDeploymentsRequest$Outbound = { project?: string | undefined; deploymentGroup?: string | undefined; name?: string | undefined; managerId?: string | undefined; purpose?: string | undefined; search?: string | undefined; status?: Array | undefined; environment?: Array | undefined; include?: Array | undefined; limit: number; cursor?: string | undefined; }; /** @internal */ export declare const ListDeploymentsRequest$outboundSchema: z.ZodType; export declare function listDeploymentsRequestToJSON(listDeploymentsRequest: ListDeploymentsRequest): string; /** @internal */ export declare const ListDeploymentsResponse$inboundSchema: z.ZodType; export declare function listDeploymentsResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=listdeployments.d.ts.map