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 { ReleaseRolloutState } from "./releaserolloutstate.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 ReleaseDeploymentItemStatus: { 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 ReleaseDeploymentItemStatus = ClosedEnum; /** * Target platform for the deployment */ export declare const ReleaseDeploymentItemPlatform: { 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 ReleaseDeploymentItemPlatform = ClosedEnum; export declare const ReleaseDeploymentItemPlatformTest: { readonly Test: "test"; }; export type ReleaseDeploymentItemPlatformTest = ClosedEnum; /** * Test platform environment information (mock) */ export type ReleaseDeploymentItemEnvironmentInfoTest = { /** * Test identifier for this environment */ testId: string; platform: ReleaseDeploymentItemPlatformTest; }; export declare const ReleaseDeploymentItemPlatformLocal: { readonly Local: "local"; }; export type ReleaseDeploymentItemPlatformLocal = ClosedEnum; /** * Local platform environment information */ export type ReleaseDeploymentItemEnvironmentInfoLocal = { /** * 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: ReleaseDeploymentItemPlatformLocal; }; export declare const ReleaseDeploymentItemPlatformAzure: { readonly Azure: "azure"; }; export type ReleaseDeploymentItemPlatformAzure = ClosedEnum; /** * Azure-specific environment information */ export type ReleaseDeploymentItemEnvironmentInfoAzure = { /** * Azure location/region */ location: string; /** * Azure subscription ID */ subscriptionId: string; /** * Azure tenant ID */ tenantId: string; platform: ReleaseDeploymentItemPlatformAzure; }; export declare const ReleaseDeploymentItemPlatformGcp: { readonly Gcp: "gcp"; }; export type ReleaseDeploymentItemPlatformGcp = ClosedEnum; /** * GCP-specific environment information */ export type ReleaseDeploymentItemEnvironmentInfoGcp = { /** * GCP project ID (e.g., "my-project") */ projectId: string; /** * GCP project number (e.g., "123456789012") */ projectNumber: string; /** * GCP region */ region: string; platform: ReleaseDeploymentItemPlatformGcp; }; export declare const ReleaseDeploymentItemPlatformAws: { readonly Aws: "aws"; }; export type ReleaseDeploymentItemPlatformAws = ClosedEnum; /** * AWS-specific environment information */ export type ReleaseDeploymentItemEnvironmentInfoAws = { /** * AWS account ID */ accountId: string; /** * AWS region */ region: string; platform: ReleaseDeploymentItemPlatformAws; }; /** * Cloud environment information */ export type ReleaseDeploymentItemEnvironmentInfoUnion = ReleaseDeploymentItemEnvironmentInfoGcp | ReleaseDeploymentItemEnvironmentInfoAzure | ReleaseDeploymentItemEnvironmentInfoLocal | ReleaseDeploymentItemEnvironmentInfoAws | ReleaseDeploymentItemEnvironmentInfoTest | any; /** * Deployment group this deployment belongs to */ export type ReleaseDeploymentItemDeploymentGroup = { /** * Unique identifier for the deployment group. */ id: string; /** * Deployment group name. */ name: string; /** * Case-sensitive, URL- and header-safe identifier from the integrating application. */ externalId: string | null; }; /** * Latest error information if the deployment is in a failed state */ export type ReleaseDeploymentItemError = { /** * 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 ReleaseDeploymentItem = { /** * 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: ReleaseDeploymentItemStatus; /** * Target platform for the deployment */ platform: ReleaseDeploymentItemPlatform; /** * Cloud environment information */ environmentInfo?: ReleaseDeploymentItemEnvironmentInfoGcp | ReleaseDeploymentItemEnvironmentInfoAzure | ReleaseDeploymentItemEnvironmentInfoLocal | ReleaseDeploymentItemEnvironmentInfoAws | ReleaseDeploymentItemEnvironmentInfoTest | any | null | undefined; /** * Deployment group this deployment belongs to */ deploymentGroup?: ReleaseDeploymentItemDeploymentGroup | 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; /** * Timestamp of the last received heartbeat */ lastHeartbeatAt?: Date | null | undefined; rolloutState: ReleaseRolloutState; /** * When this release went live on the deployment, null if it never did */ releasedAt: Date | null; /** * Time from release creation until the deployment finished updating, in milliseconds. Null for initial provisions and deployments that never ran this release. */ durationMs: number | null; /** * Latest error information if the deployment is in a failed state */ error?: ReleaseDeploymentItemError | null | undefined; }; /** @internal */ export declare const ReleaseDeploymentItemStatus$inboundSchema: z.ZodEnum; /** @internal */ export declare const ReleaseDeploymentItemPlatform$inboundSchema: z.ZodEnum; /** @internal */ export declare const ReleaseDeploymentItemPlatformTest$inboundSchema: z.ZodEnum; /** @internal */ export declare const ReleaseDeploymentItemEnvironmentInfoTest$inboundSchema: z.ZodType; export declare function releaseDeploymentItemEnvironmentInfoTestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ReleaseDeploymentItemPlatformLocal$inboundSchema: z.ZodEnum; /** @internal */ export declare const ReleaseDeploymentItemEnvironmentInfoLocal$inboundSchema: z.ZodType; export declare function releaseDeploymentItemEnvironmentInfoLocalFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ReleaseDeploymentItemPlatformAzure$inboundSchema: z.ZodEnum; /** @internal */ export declare const ReleaseDeploymentItemEnvironmentInfoAzure$inboundSchema: z.ZodType; export declare function releaseDeploymentItemEnvironmentInfoAzureFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ReleaseDeploymentItemPlatformGcp$inboundSchema: z.ZodEnum; /** @internal */ export declare const ReleaseDeploymentItemEnvironmentInfoGcp$inboundSchema: z.ZodType; export declare function releaseDeploymentItemEnvironmentInfoGcpFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ReleaseDeploymentItemPlatformAws$inboundSchema: z.ZodEnum; /** @internal */ export declare const ReleaseDeploymentItemEnvironmentInfoAws$inboundSchema: z.ZodType; export declare function releaseDeploymentItemEnvironmentInfoAwsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ReleaseDeploymentItemEnvironmentInfoUnion$inboundSchema: z.ZodType; export declare function releaseDeploymentItemEnvironmentInfoUnionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ReleaseDeploymentItemDeploymentGroup$inboundSchema: z.ZodType; export declare function releaseDeploymentItemDeploymentGroupFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ReleaseDeploymentItemError$inboundSchema: z.ZodType; export declare function releaseDeploymentItemErrorFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ReleaseDeploymentItem$inboundSchema: z.ZodType; export declare function releaseDeploymentItemFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=releasedeploymentitem.d.ts.map