import * as z from "zod/v4"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { DeploymentGroupInfo } from "./deploymentgroupinfo.js"; import { DeploymentProjectInfo } from "./deploymentprojectinfo.js"; import { DeploymentPurpose } from "./deploymentpurpose.js"; import { DeploymentReleaseInfo } from "./deploymentreleaseinfo.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { OperatorCapabilityReport } from "./operatorcapabilityreport.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 declare const DeploymentListItemResponseStatus: { 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 DeploymentListItemResponseStatus = ClosedEnum; /** * Target platform for the deployment */ export declare const DeploymentListItemResponsePlatform: { readonly Aws: "aws"; readonly Gcp: "gcp"; readonly Azure: "azure"; readonly Kubernetes: "kubernetes"; readonly Machines: "machines"; readonly Local: "local"; readonly Test: "test"; }; /** * Target platform for the deployment */ export type DeploymentListItemResponsePlatform = ClosedEnum; export declare const DeploymentListItemResponsePlatformTest: { readonly Test: "test"; }; export type DeploymentListItemResponsePlatformTest = ClosedEnum; /** * Test platform environment information (mock) */ export type DeploymentListItemResponseEnvironmentInfoTest = { /** * Test identifier for this environment */ testId: string; platform: DeploymentListItemResponsePlatformTest; }; export declare const DeploymentListItemResponsePlatformLocal: { readonly Local: "local"; }; export type DeploymentListItemResponsePlatformLocal = ClosedEnum; /** * Local platform environment information */ export type DeploymentListItemResponseEnvironmentInfoLocal = { /** * Architecture (e.g., "x86_64", "aarch64") */ arch: string; /** * Hostname of the machine running the deployment */ hostname: string; /** * Operating system (e.g., "linux", "macos", "windows") */ os: string; platform: DeploymentListItemResponsePlatformLocal; }; export declare const DeploymentListItemResponsePlatformAzure: { readonly Azure: "azure"; }; export type DeploymentListItemResponsePlatformAzure = ClosedEnum; /** * Azure-specific environment information */ export type DeploymentListItemResponseEnvironmentInfoAzure = { /** * Azure location/region */ location: string; /** * Azure subscription ID */ subscriptionId: string; /** * Azure tenant ID */ tenantId: string; platform: DeploymentListItemResponsePlatformAzure; }; export declare const DeploymentListItemResponsePlatformGcp: { readonly Gcp: "gcp"; }; export type DeploymentListItemResponsePlatformGcp = ClosedEnum; /** * GCP-specific environment information */ export type DeploymentListItemResponseEnvironmentInfoGcp = { /** * GCP project ID (e.g., "my-project") */ projectId: string; /** * GCP project number (e.g., "123456789012") */ projectNumber: string; /** * GCP region */ region: string; platform: DeploymentListItemResponsePlatformGcp; }; export declare const DeploymentListItemResponsePlatformAws: { readonly Aws: "aws"; }; export type DeploymentListItemResponsePlatformAws = ClosedEnum; /** * AWS-specific environment information */ export type DeploymentListItemResponseEnvironmentInfoAws = { /** * AWS account ID */ accountId: string; /** * AWS region */ region: string; platform: DeploymentListItemResponsePlatformAws; }; /** * Cloud environment information */ export type DeploymentListItemResponseEnvironmentInfoUnion = DeploymentListItemResponseEnvironmentInfoGcp | DeploymentListItemResponseEnvironmentInfoAzure | DeploymentListItemResponseEnvironmentInfoLocal | DeploymentListItemResponseEnvironmentInfoAws | DeploymentListItemResponseEnvironmentInfoTest | any; /** * Setup source that imported this deployment */ export declare const DeploymentListItemResponseImportSource: { readonly Cloudformation: "cloudformation"; readonly Terraform: "terraform"; readonly Helm: "helm"; }; /** * Setup source that imported this deployment */ export type DeploymentListItemResponseImportSource = ClosedEnum; /** * Setup method that created the deployment record. */ export declare const DeploymentListItemResponseSetupMethod: { readonly Cloudformation: "cloudformation"; readonly GoogleOauth: "google-oauth"; readonly Terraform: "terraform"; readonly Helm: "helm"; readonly Cli: "cli"; readonly Manual: "manual"; }; /** * Setup method that created the deployment record. */ export type DeploymentListItemResponseSetupMethod = ClosedEnum; /** * Latest error information if in a failed state */ export type DeploymentListItemResponseError = { /** * A unique identifier for the type of error. * * @remarks * * This should be a short, machine-readable string that can be used * by clients to programmatically handle different error types. * Examples: "NOT_FOUND", "VALIDATION_ERROR", "TIMEOUT" */ code: string; /** * Additional diagnostic information about the error context. * * @remarks * * This optional field can contain structured data providing more details * about the error, such as validation errors, request parameters that * caused the issue, or other relevant context information. */ context?: any | null | undefined; /** * Optional human-facing remediation hint. */ hint?: string | null | undefined; /** * HTTP status code for this error. * * @remarks * * Used when converting the error to an HTTP response. If None, falls back to * the error type's default status code or 500. */ httpStatusCode?: number | null | undefined; /** * Indicates if this is an internal error that should not be exposed to users. * * @remarks * * When `true`, this error contains sensitive information or implementation * details that should not be shown to end-users. Such errors should be * logged for debugging but replaced with generic error messages in responses. */ internal: boolean; /** * Human-readable error message. * * @remarks * * This message should be clear and actionable for developers or end-users, * providing context about what went wrong and potentially how to fix it. */ message: string; /** * Indicates whether the operation that caused the error should be retried. * * @remarks * * When `true`, the error is transient and the operation might succeed * if attempted again. When `false`, retrying the same operation is * unlikely to succeed without changes. */ retryable: boolean; /** * The underlying error that caused this error, creating an error chain. * * @remarks * * This allows for proper error propagation and debugging by maintaining * the full context of how an error occurred through multiple layers * of an application. */ source?: any | null | undefined; }; export type DeploymentListItemResponse = { /** * Unique identifier for the deployment. */ id: string; name: string; /** * 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. */ status: DeploymentListItemResponseStatus; /** * Unique identifier for the project. */ projectId: string; /** * Target platform for the deployment */ platform: DeploymentListItemResponsePlatform; /** * DeploymentState protocol version owned by the runtime/manager */ deploymentProtocolVersion: number; /** * ID of deployment group this deployment belongs to */ deploymentGroupId: string; /** * Operational purpose of this deployment within its customer environment. */ purpose: DeploymentPurpose; /** * Cloud environment information */ environmentInfo?: DeploymentListItemResponseEnvironmentInfoGcp | DeploymentListItemResponseEnvironmentInfoAzure | DeploymentListItemResponseEnvironmentInfoLocal | DeploymentListItemResponseEnvironmentInfoAws | DeploymentListItemResponseEnvironmentInfoTest | any | null | undefined; /** * ID of the currently deployed release */ currentReleaseId?: string | null | undefined; /** * ID of the desired release */ desiredReleaseId?: string | null | undefined; /** * ID of the pinned release */ pinnedReleaseId?: string | null | undefined; releaseChannel: string; /** * Setup source that imported this deployment */ importSource?: DeploymentListItemResponseImportSource | null | undefined; /** * Setup method that created the deployment record. */ setupMethod?: DeploymentListItemResponseSetupMethod | null | undefined; /** * Setup method metadata needed to guide privileged teardown. */ setupMetadata?: { [k: string]: any | null; } | null | undefined; /** * Imported setup target for compatibility checks */ setupTarget?: string | null | undefined; /** * Imported setup compatibility fingerprint */ setupFingerprint?: string | null | undefined; /** * Imported setup fingerprint version */ setupFingerprintVersion?: number | null | undefined; /** * Display-only scope reported by the Operator manifest */ operatorScope?: string | null | undefined; /** * Display-only permission tier reported by the Operator manifest */ operatorPermission?: string | null | undefined; /** * Version reported by the Operator */ operatorVersion?: string | null | undefined; /** * Capability state reported by the Operator */ capabilities?: Array | null | undefined; /** * Timestamp of the last received heartbeat */ lastHeartbeatAt?: Date | null | undefined; /** * Latest error information if in a failed state */ error?: DeploymentListItemResponseError | null | undefined; /** * Whether a retry has been requested */ retryRequested: boolean; createdAt: Date; updatedAt: Date; /** * ID of the manager */ managerId: string; /** * Unique identifier for the workspace. */ workspaceId: string; release?: DeploymentReleaseInfo | null | undefined; deploymentGroup?: DeploymentGroupInfo | undefined; project?: DeploymentProjectInfo | undefined; }; /** @internal */ export declare const DeploymentListItemResponseStatus$inboundSchema: z.ZodEnum; /** @internal */ export declare const DeploymentListItemResponsePlatform$inboundSchema: z.ZodEnum; /** @internal */ export declare const DeploymentListItemResponsePlatformTest$inboundSchema: z.ZodEnum; /** @internal */ export declare const DeploymentListItemResponseEnvironmentInfoTest$inboundSchema: z.ZodType; export declare function deploymentListItemResponseEnvironmentInfoTestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DeploymentListItemResponsePlatformLocal$inboundSchema: z.ZodEnum; /** @internal */ export declare const DeploymentListItemResponseEnvironmentInfoLocal$inboundSchema: z.ZodType; export declare function deploymentListItemResponseEnvironmentInfoLocalFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DeploymentListItemResponsePlatformAzure$inboundSchema: z.ZodEnum; /** @internal */ export declare const DeploymentListItemResponseEnvironmentInfoAzure$inboundSchema: z.ZodType; export declare function deploymentListItemResponseEnvironmentInfoAzureFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DeploymentListItemResponsePlatformGcp$inboundSchema: z.ZodEnum; /** @internal */ export declare const DeploymentListItemResponseEnvironmentInfoGcp$inboundSchema: z.ZodType; export declare function deploymentListItemResponseEnvironmentInfoGcpFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DeploymentListItemResponsePlatformAws$inboundSchema: z.ZodEnum; /** @internal */ export declare const DeploymentListItemResponseEnvironmentInfoAws$inboundSchema: z.ZodType; export declare function deploymentListItemResponseEnvironmentInfoAwsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DeploymentListItemResponseEnvironmentInfoUnion$inboundSchema: z.ZodType; export declare function deploymentListItemResponseEnvironmentInfoUnionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DeploymentListItemResponseImportSource$inboundSchema: z.ZodEnum; /** @internal */ export declare const DeploymentListItemResponseSetupMethod$inboundSchema: z.ZodEnum; /** @internal */ export declare const DeploymentListItemResponseError$inboundSchema: z.ZodType; export declare function deploymentListItemResponseErrorFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DeploymentListItemResponse$inboundSchema: z.ZodType; export declare function deploymentListItemResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=deploymentlistitemresponse.d.ts.map