/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 722c878aecd2 */ import * as z from "zod/v4"; import { remap as remap$ } from "../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { DeploymentGroupInfo, DeploymentGroupInfo$inboundSchema, } from "./deploymentgroupinfo.js"; import { DeploymentOperatorSyncStatus, DeploymentOperatorSyncStatus$inboundSchema, } from "./deploymentoperatorsyncstatus.js"; import { DeploymentOperatorSyncStuckReason, DeploymentOperatorSyncStuckReason$inboundSchema, } from "./deploymentoperatorsyncstuckreason.js"; import { DeploymentProjectInfo, DeploymentProjectInfo$inboundSchema, } from "./deploymentprojectinfo.js"; import { DeploymentPurpose, DeploymentPurpose$inboundSchema, } from "./deploymentpurpose.js"; import { DeploymentReleaseInfo, DeploymentReleaseInfo$inboundSchema, } from "./deploymentreleaseinfo.js"; import { DeploymentUpdateOperationSummary, DeploymentUpdateOperationSummary$inboundSchema, } from "./deploymentupdateoperationsummary.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { OperatorCapabilityReport, OperatorCapabilityReport$inboundSchema, } from "./operatorcapabilityreport.js"; import { ReportedOperation, ReportedOperation$inboundSchema, } from "./reportedoperation.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 DeploymentDetailResponseStatus = { 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 DeploymentDetailResponseStatus = ClosedEnum< typeof DeploymentDetailResponseStatus >; /** * Target platform for the deployment */ export const DeploymentDetailResponsePlatform = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Target platform for the deployment */ export type DeploymentDetailResponsePlatform = ClosedEnum< typeof DeploymentDetailResponsePlatform >; /** * Underlying cloud platform for Kubernetes deployments. */ export const DeploymentDetailResponseBasePlatform = { Aws: "aws", Gcp: "gcp", Azure: "azure", } as const; /** * Underlying cloud platform for Kubernetes deployments. */ export type DeploymentDetailResponseBasePlatform = ClosedEnum< typeof DeploymentDetailResponseBasePlatform >; export const DeploymentDetailResponsePlatformTest = { Test: "test", } as const; export type DeploymentDetailResponsePlatformTest = ClosedEnum< typeof DeploymentDetailResponsePlatformTest >; /** * Test platform environment information (mock) */ export type DeploymentDetailResponseEnvironmentInfoTest = { /** * Test identifier for this environment */ testId: string; platform: DeploymentDetailResponsePlatformTest; }; export const DeploymentDetailResponsePlatformLocal = { Local: "local", } as const; export type DeploymentDetailResponsePlatformLocal = ClosedEnum< typeof DeploymentDetailResponsePlatformLocal >; /** * Local platform environment information */ export type DeploymentDetailResponseEnvironmentInfoLocal = { /** * 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: DeploymentDetailResponsePlatformLocal; }; export const DeploymentDetailResponsePlatformAzure = { Azure: "azure", } as const; export type DeploymentDetailResponsePlatformAzure = ClosedEnum< typeof DeploymentDetailResponsePlatformAzure >; /** * Azure-specific environment information */ export type DeploymentDetailResponseEnvironmentInfoAzure = { /** * Azure location/region */ location: string; /** * Azure subscription ID */ subscriptionId: string; /** * Azure tenant ID */ tenantId: string; platform: DeploymentDetailResponsePlatformAzure; }; export const DeploymentDetailResponsePlatformGcp = { Gcp: "gcp", } as const; export type DeploymentDetailResponsePlatformGcp = ClosedEnum< typeof DeploymentDetailResponsePlatformGcp >; /** * GCP-specific environment information */ export type DeploymentDetailResponseEnvironmentInfoGcp = { /** * GCP project ID (e.g., "my-project") */ projectId: string; /** * GCP project number (e.g., "123456789012") */ projectNumber: string; /** * GCP region */ region: string; platform: DeploymentDetailResponsePlatformGcp; }; export const DeploymentDetailResponsePlatformAws = { Aws: "aws", } as const; export type DeploymentDetailResponsePlatformAws = ClosedEnum< typeof DeploymentDetailResponsePlatformAws >; /** * AWS-specific environment information */ export type DeploymentDetailResponseEnvironmentInfoAws = { /** * AWS account ID */ accountId: string; /** * AWS region */ region: string; platform: DeploymentDetailResponsePlatformAws; }; /** * Cloud environment information */ export type DeploymentDetailResponseEnvironmentInfoUnion = | DeploymentDetailResponseEnvironmentInfoGcp | DeploymentDetailResponseEnvironmentInfoAzure | DeploymentDetailResponseEnvironmentInfoLocal | DeploymentDetailResponseEnvironmentInfoAws | DeploymentDetailResponseEnvironmentInfoTest | any; /** * Failure-domain policy selected for a compute pool. */ export type DeploymentDetailResponseFailureDomains2 = { /** * Concrete provider domains selected during setup. * * @remarks * Empty delegates deterministic selection to the provider setup implementation. */ selectedFailureDomains?: Array | undefined; /** * Number of distinct failure domains across which new stateful replicas may be spread. */ spread: number; }; export type DeploymentDetailResponseFailureDomainsUnion2 = | DeploymentDetailResponseFailureDomains2 | any; export type DeploymentDetailResponsePoolsAutoscale = { failureDomains?: | DeploymentDetailResponseFailureDomains2 | any | null | undefined; /** * Provider machine type selected for this deployment. */ machine?: string | null | undefined; /** * Maximum machine count. */ max: number; /** * Minimum machine count. */ min: number; mode: "autoscale"; }; /** * Failure-domain policy selected for a compute pool. */ export type DeploymentDetailResponseFailureDomains1 = { /** * Concrete provider domains selected during setup. * * @remarks * Empty delegates deterministic selection to the provider setup implementation. */ selectedFailureDomains?: Array | undefined; /** * Number of distinct failure domains across which new stateful replicas may be spread. */ spread: number; }; export type DeploymentDetailResponseFailureDomainsUnion1 = | DeploymentDetailResponseFailureDomains1 | any; export type DeploymentDetailResponsePoolsFixed = { failureDomains?: | DeploymentDetailResponseFailureDomains1 | any | null | undefined; /** * Provider machine type selected for this deployment. */ machine?: string | null | undefined; /** * Number of machines to run. */ machines: number; mode: "fixed"; }; /** * User-selected deployment settings for one compute pool. */ export type DeploymentDetailResponsePoolsUnion = | DeploymentDetailResponsePoolsFixed | DeploymentDetailResponsePoolsAutoscale; /** * Deployment-time compute choices for Alien-managed compute pools. * * @remarks * * Application source declares portable pool requirements. This settings * object stores the concrete choices made for one deployment, such as the * provider machine type and selected machine counts. */ export type DeploymentDetailResponseCompute = { /** * Selected compute choices keyed by pool ID. */ pools?: { [k: string]: | DeploymentDetailResponsePoolsFixed | DeploymentDetailResponsePoolsAutoscale; } | undefined; }; export type DeploymentDetailResponseComputeUnion = | DeploymentDetailResponseCompute | any; /** * Deployment model: how updates are delivered to the remote environment. */ export const DeploymentDetailResponseDeploymentModel = { Push: "push", Pull: "pull", } as const; /** * Deployment model: how updates are delivered to the remote environment. */ export type DeploymentDetailResponseDeploymentModel = ClosedEnum< typeof DeploymentDetailResponseDeploymentModel >; export type DeploymentDetailResponseAws = { certificateArn: string; }; export type DeploymentDetailResponseAwsUnion = | DeploymentDetailResponseAws | any; export type DeploymentDetailResponseAzureStackSettings = { keyVaultCertificateId: string; keyVaultResourceId?: string | null | undefined; }; export type DeploymentDetailResponseAzureUnion = | DeploymentDetailResponseAzureStackSettings | any; export type DeploymentDetailResponseGcpStackSettings = { certificateName: string; }; export type DeploymentDetailResponseGcpUnion = | DeploymentDetailResponseGcpStackSettings | any; /** * Namespace-scoped Kubernetes TLS Secret reference. */ export type DeploymentDetailResponseTlsSecretRef = { /** * Secret namespace. Defaults to the release namespace when omitted. */ namespace?: string | null | undefined; /** * Secret name. */ secretName: string; }; export type DeploymentDetailResponseDomainsKubernetes = { /** * Namespace-scoped Kubernetes TLS Secret reference. */ tlsSecretRef: DeploymentDetailResponseTlsSecretRef; }; export type DeploymentDetailResponseDomainsKubernetesUnion = | DeploymentDetailResponseDomainsKubernetes | any; /** * Platform-specific certificate references for custom domains. */ export type DeploymentDetailResponseDomainsCertificate = { aws?: DeploymentDetailResponseAws | any | null | undefined; azure?: DeploymentDetailResponseAzureStackSettings | any | null | undefined; gcp?: DeploymentDetailResponseGcpStackSettings | any | null | undefined; kubernetes?: | DeploymentDetailResponseDomainsKubernetes | any | null | undefined; }; /** * Custom domain configuration for a single resource. */ export type DeploymentDetailResponseCustomDomains = { /** * Platform-specific certificate references for custom domains. */ certificate: DeploymentDetailResponseDomainsCertificate; /** * Fully qualified domain name to use. */ domain: string; }; export const DeploymentDetailResponseModeLoadBalancer = { LoadBalancer: "loadBalancer", } as const; export type DeploymentDetailResponseModeLoadBalancer = ClosedEnum< typeof DeploymentDetailResponseModeLoadBalancer >; export type DeploymentDetailResponsePublicEndpointTargetLoadBalancer = { /** * DNS name or URL for the external load balancer. */ cnameTarget: string; mode: DeploymentDetailResponseModeLoadBalancer; }; export const DeploymentDetailResponseModeMachineAddresses = { MachineAddresses: "machineAddresses", } as const; export type DeploymentDetailResponseModeMachineAddresses = ClosedEnum< typeof DeploymentDetailResponseModeMachineAddresses >; export type DeploymentDetailResponsePublicEndpointTargetMachineAddresses = { mode: DeploymentDetailResponseModeMachineAddresses; }; export type DeploymentDetailResponsePublicEndpointTargetUnion = | DeploymentDetailResponsePublicEndpointTargetLoadBalancer | DeploymentDetailResponsePublicEndpointTargetMachineAddresses | any; /** * Domain configuration for the stack. * * @remarks * * When `custom_domains` is set, the specified resources use customer-provided * domains and certificates. Otherwise, Alien auto-generates domains. */ export type DeploymentDetailResponseDomains = { /** * Custom domain configuration per resource ID. */ customDomains?: | { [k: string]: DeploymentDetailResponseCustomDomains } | null | undefined; publicEndpointTarget?: | DeploymentDetailResponsePublicEndpointTargetLoadBalancer | DeploymentDetailResponsePublicEndpointTargetMachineAddresses | any | null | undefined; }; export type DeploymentDetailResponseDomainsUnion = | DeploymentDetailResponseDomains | any; /** * External bindings for pre-existing infrastructure. * * @remarks * Allows using existing resources (MinIO, Redis, shared Container Apps * Environment, etc.) instead of having Alien provision them. * Required for Kubernetes platform, optional for cloud platforms. */ export type DeploymentDetailResponseExternalBindings = {}; /** * How heartbeat health checks are handled. */ export const DeploymentDetailResponseHeartbeats = { Off: "off", On: "on", } as const; /** * How heartbeat health checks are handled. */ export type DeploymentDetailResponseHeartbeats = ClosedEnum< typeof DeploymentDetailResponseHeartbeats >; /** * Optional provider-specific identity for a cloud-backed Kubernetes cluster. */ export type DeploymentDetailResponseCloud = { accountId?: string | null | undefined; clusterId?: string | null | undefined; clusterName?: string | null | undefined; projectId?: string | null | undefined; region?: string | null | undefined; resourceGroup?: string | null | undefined; subscriptionId?: string | null | undefined; }; export type DeploymentDetailResponseCloudUnion = | DeploymentDetailResponseCloud | any; /** * Ownership model for the Kubernetes cluster. */ export const DeploymentDetailResponseOwnership = { Managed: "managed", Existing: "existing", External: "external", } as const; /** * Ownership model for the Kubernetes cluster. */ export type DeploymentDetailResponseOwnership = ClosedEnum< typeof DeploymentDetailResponseOwnership >; /** * Kubernetes cluster setup settings. */ export type DeploymentDetailResponseCluster = { cloud?: DeploymentDetailResponseCloud | any | null | undefined; /** * Namespace where the Alien chart and application resources run. */ namespace?: string | null | undefined; /** * Ownership model for the Kubernetes cluster. */ ownership: DeploymentDetailResponseOwnership; }; export type DeploymentDetailResponseClusterUnion = | DeploymentDetailResponseCluster | any; export type DeploymentDetailResponseCertificateNone2 = { mode: "none"; }; export type DeploymentDetailResponseCertificateManagedTLSSecret2 = { mode: "managedTlsSecret"; /** * Secret name template. Runtime may substitute resource/deployment tokens. */ secretNameTemplate: string; }; export type DeploymentDetailResponseCertificateAwsAcmArn2 = { /** * Existing ACM certificate ARN. */ certificateArn: string; mode: "awsAcmArn"; }; export type DeploymentDetailResponseCertificateManagedAcmImport2 = { mode: "managedAcmImport"; /** * ACM region. Defaults to the deployment region when omitted. */ region?: string | null | undefined; /** * Tags applied to runtime-imported ACM certificates. */ tags?: { [k: string]: string } | undefined; }; /** * Namespace-scoped Kubernetes TLS Secret reference. */ export type DeploymentDetailResponseCertificateTLSSecretRef2 = { /** * Secret namespace. Defaults to the release namespace when omitted. */ namespace?: string | null | undefined; /** * Secret name. */ secretName: string; mode: "tlsSecretRef"; }; /** * Certificate publication or reference mode for Kubernetes public endpoints. */ export type DeploymentDetailResponseCertificateUnion2 = | DeploymentDetailResponseCertificateTLSSecretRef2 | DeploymentDetailResponseCertificateManagedAcmImport2 | DeploymentDetailResponseCertificateAwsAcmArn2 | DeploymentDetailResponseCertificateManagedTLSSecret2 | DeploymentDetailResponseCertificateNone2; export const DeploymentDetailResponseModeCustom = { Custom: "custom", } as const; export type DeploymentDetailResponseModeCustom = ClosedEnum< typeof DeploymentDetailResponseModeCustom >; export const DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum4 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum4 = ClosedEnum< typeof DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum4 >; export type DeploymentDetailResponseProviderAzureApplicationGatewayForContainers4 = { /** * Optional ALB name when using BYO Application Gateway resources. */ albName?: string | null | undefined; /** * Optional ALB namespace when using BYO Application Gateway resources. */ albNamespace?: string | null | undefined; /** * Public or internal frontend exposure. */ frontend: string; provider: DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum4; }; export const DeploymentDetailResponseProviderGkeGatewayEnum4 = { GkeGateway: "gkeGateway", } as const; export type DeploymentDetailResponseProviderGkeGatewayEnum4 = ClosedEnum< typeof DeploymentDetailResponseProviderGkeGatewayEnum4 >; export type DeploymentDetailResponseProviderGkeGateway4 = { provider: DeploymentDetailResponseProviderGkeGatewayEnum4; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const DeploymentDetailResponseProviderAwsAlbEnum4 = { AwsAlb: "awsAlb", } as const; export type DeploymentDetailResponseProviderAwsAlbEnum4 = ClosedEnum< typeof DeploymentDetailResponseProviderAwsAlbEnum4 >; export type DeploymentDetailResponseProviderAwsAlb4 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: DeploymentDetailResponseProviderAwsAlbEnum4; /** * Internet-facing or internal ALB scheme. */ scheme: string; /** * Explicit subnet IDs when the profile cannot rely on controller discovery. */ subnetIds?: Array | undefined; /** * ALB target type, usually `ip`. */ targetType: string; }; export type DeploymentDetailResponseProviderUnion4 = | DeploymentDetailResponseProviderAwsAlb4 | DeploymentDetailResponseProviderAzureApplicationGatewayForContainers4 | DeploymentDetailResponseProviderGkeGateway4 | any; /** * Shared Gateway API route profile values. */ export type DeploymentDetailResponseRouteGateway2 = { /** * Annotations applied to route objects. */ annotations?: { [k: string]: string } | undefined; /** * Route controller identifier, for example a cloud Gateway controller. */ controller?: string | null | undefined; /** * GatewayClass selected for generated Gateways. */ gatewayClassName: string; /** * Labels applied to route objects. */ labels?: { [k: string]: string } | undefined; /** * Listener port, usually 443. */ listenerPort: number; provider?: | DeploymentDetailResponseProviderAwsAlb4 | DeploymentDetailResponseProviderAzureApplicationGatewayForContainers4 | DeploymentDetailResponseProviderGkeGateway4 | any | null | undefined; routeApi: "gateway"; }; export const DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum3 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum3 = ClosedEnum< typeof DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum3 >; export type DeploymentDetailResponseProviderAzureApplicationGatewayForContainers3 = { /** * Optional ALB name when using BYO Application Gateway resources. */ albName?: string | null | undefined; /** * Optional ALB namespace when using BYO Application Gateway resources. */ albNamespace?: string | null | undefined; /** * Public or internal frontend exposure. */ frontend: string; provider: DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum3; }; export const DeploymentDetailResponseProviderGkeGatewayEnum3 = { GkeGateway: "gkeGateway", } as const; export type DeploymentDetailResponseProviderGkeGatewayEnum3 = ClosedEnum< typeof DeploymentDetailResponseProviderGkeGatewayEnum3 >; export type DeploymentDetailResponseProviderGkeGateway3 = { provider: DeploymentDetailResponseProviderGkeGatewayEnum3; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const DeploymentDetailResponseProviderAwsAlbEnum3 = { AwsAlb: "awsAlb", } as const; export type DeploymentDetailResponseProviderAwsAlbEnum3 = ClosedEnum< typeof DeploymentDetailResponseProviderAwsAlbEnum3 >; export type DeploymentDetailResponseProviderAwsAlb3 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: DeploymentDetailResponseProviderAwsAlbEnum3; /** * Internet-facing or internal ALB scheme. */ scheme: string; /** * Explicit subnet IDs when the profile cannot rely on controller discovery. */ subnetIds?: Array | undefined; /** * ALB target type, usually `ip`. */ targetType: string; }; export type DeploymentDetailResponseProviderUnion3 = | DeploymentDetailResponseProviderAwsAlb3 | DeploymentDetailResponseProviderAzureApplicationGatewayForContainers3 | DeploymentDetailResponseProviderGkeGateway3 | any; /** * Shared Ingress route profile values. */ export type DeploymentDetailResponseRouteIngress2 = { /** * Annotations applied to route objects. */ annotations?: { [k: string]: string } | undefined; /** * Route controller identifier, for example `eks.amazonaws.com/alb`. */ controller?: string | null | undefined; /** * `spec.ingressClassName` for generated Ingresses. */ ingressClassName: string; /** * Labels applied to route objects. */ labels?: { [k: string]: string } | undefined; provider?: | DeploymentDetailResponseProviderAwsAlb3 | DeploymentDetailResponseProviderAzureApplicationGatewayForContainers3 | DeploymentDetailResponseProviderGkeGateway3 | any | null | undefined; routeApi: "ingress"; }; /** * Kubernetes route API selected for public endpoints. */ export type DeploymentDetailResponseRouteUnion2 = | DeploymentDetailResponseRouteIngress2 | DeploymentDetailResponseRouteGateway2; export type DeploymentDetailResponseExposureCustom = { /** * Certificate publication or reference mode for Kubernetes public endpoints. */ certificate: | DeploymentDetailResponseCertificateTLSSecretRef2 | DeploymentDetailResponseCertificateManagedAcmImport2 | DeploymentDetailResponseCertificateAwsAcmArn2 | DeploymentDetailResponseCertificateManagedTLSSecret2 | DeploymentDetailResponseCertificateNone2; /** * Hostname routed by the Kubernetes public endpoint. */ domain: string; mode: DeploymentDetailResponseModeCustom; /** * Kubernetes route API selected for public endpoints. */ route: | DeploymentDetailResponseRouteIngress2 | DeploymentDetailResponseRouteGateway2; }; export type DeploymentDetailResponseCertificateNone1 = { mode: "none"; }; export type DeploymentDetailResponseCertificateManagedTLSSecret1 = { mode: "managedTlsSecret"; /** * Secret name template. Runtime may substitute resource/deployment tokens. */ secretNameTemplate: string; }; export type DeploymentDetailResponseCertificateAwsAcmArn1 = { /** * Existing ACM certificate ARN. */ certificateArn: string; mode: "awsAcmArn"; }; export type DeploymentDetailResponseCertificateManagedAcmImport1 = { mode: "managedAcmImport"; /** * ACM region. Defaults to the deployment region when omitted. */ region?: string | null | undefined; /** * Tags applied to runtime-imported ACM certificates. */ tags?: { [k: string]: string } | undefined; }; /** * Namespace-scoped Kubernetes TLS Secret reference. */ export type DeploymentDetailResponseCertificateTLSSecretRef1 = { /** * Secret namespace. Defaults to the release namespace when omitted. */ namespace?: string | null | undefined; /** * Secret name. */ secretName: string; mode: "tlsSecretRef"; }; /** * Certificate publication or reference mode for Kubernetes public endpoints. */ export type DeploymentDetailResponseCertificateUnion1 = | DeploymentDetailResponseCertificateTLSSecretRef1 | DeploymentDetailResponseCertificateManagedAcmImport1 | DeploymentDetailResponseCertificateAwsAcmArn1 | DeploymentDetailResponseCertificateManagedTLSSecret1 | DeploymentDetailResponseCertificateNone1; export const DeploymentDetailResponseModeGenerated = { Generated: "generated", } as const; export type DeploymentDetailResponseModeGenerated = ClosedEnum< typeof DeploymentDetailResponseModeGenerated >; export const DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum2 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum2 = ClosedEnum< typeof DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum2 >; export type DeploymentDetailResponseProviderAzureApplicationGatewayForContainers2 = { /** * Optional ALB name when using BYO Application Gateway resources. */ albName?: string | null | undefined; /** * Optional ALB namespace when using BYO Application Gateway resources. */ albNamespace?: string | null | undefined; /** * Public or internal frontend exposure. */ frontend: string; provider: DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum2; }; export const DeploymentDetailResponseProviderGkeGatewayEnum2 = { GkeGateway: "gkeGateway", } as const; export type DeploymentDetailResponseProviderGkeGatewayEnum2 = ClosedEnum< typeof DeploymentDetailResponseProviderGkeGatewayEnum2 >; export type DeploymentDetailResponseProviderGkeGateway2 = { provider: DeploymentDetailResponseProviderGkeGatewayEnum2; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const DeploymentDetailResponseProviderAwsAlbEnum2 = { AwsAlb: "awsAlb", } as const; export type DeploymentDetailResponseProviderAwsAlbEnum2 = ClosedEnum< typeof DeploymentDetailResponseProviderAwsAlbEnum2 >; export type DeploymentDetailResponseProviderAwsAlb2 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: DeploymentDetailResponseProviderAwsAlbEnum2; /** * Internet-facing or internal ALB scheme. */ scheme: string; /** * Explicit subnet IDs when the profile cannot rely on controller discovery. */ subnetIds?: Array | undefined; /** * ALB target type, usually `ip`. */ targetType: string; }; export type DeploymentDetailResponseProviderUnion2 = | DeploymentDetailResponseProviderAwsAlb2 | DeploymentDetailResponseProviderAzureApplicationGatewayForContainers2 | DeploymentDetailResponseProviderGkeGateway2 | any; /** * Shared Gateway API route profile values. */ export type DeploymentDetailResponseRouteGateway1 = { /** * Annotations applied to route objects. */ annotations?: { [k: string]: string } | undefined; /** * Route controller identifier, for example a cloud Gateway controller. */ controller?: string | null | undefined; /** * GatewayClass selected for generated Gateways. */ gatewayClassName: string; /** * Labels applied to route objects. */ labels?: { [k: string]: string } | undefined; /** * Listener port, usually 443. */ listenerPort: number; provider?: | DeploymentDetailResponseProviderAwsAlb2 | DeploymentDetailResponseProviderAzureApplicationGatewayForContainers2 | DeploymentDetailResponseProviderGkeGateway2 | any | null | undefined; routeApi: "gateway"; }; export const DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum1 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum1 = ClosedEnum< typeof DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum1 >; export type DeploymentDetailResponseProviderAzureApplicationGatewayForContainers1 = { /** * Optional ALB name when using BYO Application Gateway resources. */ albName?: string | null | undefined; /** * Optional ALB namespace when using BYO Application Gateway resources. */ albNamespace?: string | null | undefined; /** * Public or internal frontend exposure. */ frontend: string; provider: DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum1; }; export const DeploymentDetailResponseProviderGkeGatewayEnum1 = { GkeGateway: "gkeGateway", } as const; export type DeploymentDetailResponseProviderGkeGatewayEnum1 = ClosedEnum< typeof DeploymentDetailResponseProviderGkeGatewayEnum1 >; export type DeploymentDetailResponseProviderGkeGateway1 = { provider: DeploymentDetailResponseProviderGkeGatewayEnum1; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const DeploymentDetailResponseProviderAwsAlbEnum1 = { AwsAlb: "awsAlb", } as const; export type DeploymentDetailResponseProviderAwsAlbEnum1 = ClosedEnum< typeof DeploymentDetailResponseProviderAwsAlbEnum1 >; export type DeploymentDetailResponseProviderAwsAlb1 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: DeploymentDetailResponseProviderAwsAlbEnum1; /** * Internet-facing or internal ALB scheme. */ scheme: string; /** * Explicit subnet IDs when the profile cannot rely on controller discovery. */ subnetIds?: Array | undefined; /** * ALB target type, usually `ip`. */ targetType: string; }; export type DeploymentDetailResponseProviderUnion1 = | DeploymentDetailResponseProviderAwsAlb1 | DeploymentDetailResponseProviderAzureApplicationGatewayForContainers1 | DeploymentDetailResponseProviderGkeGateway1 | any; /** * Shared Ingress route profile values. */ export type DeploymentDetailResponseRouteIngress1 = { /** * Annotations applied to route objects. */ annotations?: { [k: string]: string } | undefined; /** * Route controller identifier, for example `eks.amazonaws.com/alb`. */ controller?: string | null | undefined; /** * `spec.ingressClassName` for generated Ingresses. */ ingressClassName: string; /** * Labels applied to route objects. */ labels?: { [k: string]: string } | undefined; provider?: | DeploymentDetailResponseProviderAwsAlb1 | DeploymentDetailResponseProviderAzureApplicationGatewayForContainers1 | DeploymentDetailResponseProviderGkeGateway1 | any | null | undefined; routeApi: "ingress"; }; /** * Kubernetes route API selected for public endpoints. */ export type DeploymentDetailResponseRouteUnion1 = | DeploymentDetailResponseRouteIngress1 | DeploymentDetailResponseRouteGateway1; export type DeploymentDetailResponseExposureGenerated = { /** * Certificate publication or reference mode for Kubernetes public endpoints. */ certificate: | DeploymentDetailResponseCertificateTLSSecretRef1 | DeploymentDetailResponseCertificateManagedAcmImport1 | DeploymentDetailResponseCertificateAwsAcmArn1 | DeploymentDetailResponseCertificateManagedTLSSecret1 | DeploymentDetailResponseCertificateNone1; mode: DeploymentDetailResponseModeGenerated; /** * Kubernetes route API selected for public endpoints. */ route: | DeploymentDetailResponseRouteIngress1 | DeploymentDetailResponseRouteGateway1; }; export const DeploymentDetailResponseModeDisabled = { Disabled: "disabled", } as const; export type DeploymentDetailResponseModeDisabled = ClosedEnum< typeof DeploymentDetailResponseModeDisabled >; export type DeploymentDetailResponseExposureDisabled = { mode: DeploymentDetailResponseModeDisabled; }; export type DeploymentDetailResponseExposureUnion = | DeploymentDetailResponseExposureCustom | DeploymentDetailResponseExposureGenerated | DeploymentDetailResponseExposureDisabled | any; /** * Kubernetes runtime substrate configuration. * * @remarks * * This controls how setup chooses the cluster backing `Platform::Kubernetes` * deployments. When omitted, cloud-backed Kubernetes deployments default to a * managed cluster and generic/on-prem Kubernetes defaults to an external * cluster. */ export type DeploymentDetailResponseKubernetes = { cluster?: DeploymentDetailResponseCluster | any | null | undefined; exposure?: | DeploymentDetailResponseExposureCustom | DeploymentDetailResponseExposureGenerated | DeploymentDetailResponseExposureDisabled | any | null | undefined; }; export type DeploymentDetailResponseKubernetesUnion = | DeploymentDetailResponseKubernetes | any; export const DeploymentDetailResponseTypeByoVnetAzure = { ByoVnetAzure: "byo-vnet-azure", } as const; export type DeploymentDetailResponseTypeByoVnetAzure = ClosedEnum< typeof DeploymentDetailResponseTypeByoVnetAzure >; export type DeploymentDetailResponseNetworkByoVnetAzure = { /** * Name of the dedicated classic Application Gateway subnet within the VNet. */ applicationGatewaySubnetName?: string | null | undefined; /** * Name of the dedicated subnet that hosts Private Endpoints (e.g. for a * * @remarks * Postgres Flexible Server). A Private Endpoint must not share the private * subnet, which is already claimed by the Container Apps environment's * `infrastructure_subnet_id`. Required only when the stack contains a * Postgres resource; otherwise unused. */ privateEndpointSubnetName?: string | null | undefined; /** * Name of the private subnet within the VNet */ privateSubnetName: string; /** * Name of the public subnet within the VNet */ publicSubnetName: string; type: DeploymentDetailResponseTypeByoVnetAzure; /** * The full resource ID of the existing VNet */ vnetResourceId: string; }; export const DeploymentDetailResponseTypeByoVpcGcp = { ByoVpcGcp: "byo-vpc-gcp", } as const; export type DeploymentDetailResponseTypeByoVpcGcp = ClosedEnum< typeof DeploymentDetailResponseTypeByoVpcGcp >; export type DeploymentDetailResponseNetworkByoVpcGcp = { /** * The name of the existing VPC network */ networkName: string; /** * The region of the subnet */ region: string; /** * The name of the subnet to use */ subnetName: string; type: DeploymentDetailResponseTypeByoVpcGcp; }; export const DeploymentDetailResponseTypeByoVpcAws = { ByoVpcAws: "byo-vpc-aws", } as const; export type DeploymentDetailResponseTypeByoVpcAws = ClosedEnum< typeof DeploymentDetailResponseTypeByoVpcAws >; export type DeploymentDetailResponseNetworkByoVpcAws = { /** * IDs of private subnets */ privateSubnetIds: Array; /** * IDs of public subnets (required for public ingress) */ publicSubnetIds: Array; /** * Optional security group IDs to use */ securityGroupIds?: Array | undefined; type: DeploymentDetailResponseTypeByoVpcAws; /** * The ID of the existing VPC */ vpcId: string; }; export const DeploymentDetailResponseTypeCreate = { Create: "create", } as const; export type DeploymentDetailResponseTypeCreate = ClosedEnum< typeof DeploymentDetailResponseTypeCreate >; export type DeploymentDetailResponseNetworkCreate = { /** * Number of availability zones (default: 2). */ availabilityZones?: number | undefined; /** * VPC/VNet CIDR block. If not specified, auto-generated from stack ID * * @remarks * to reduce conflicts (e.g., "10.{hash}.0.0/16"). */ cidr?: string | null | undefined; type: DeploymentDetailResponseTypeCreate; }; export const DeploymentDetailResponseTypeUseDefault = { UseDefault: "use-default", } as const; export type DeploymentDetailResponseTypeUseDefault = ClosedEnum< typeof DeploymentDetailResponseTypeUseDefault >; export type DeploymentDetailResponseNetworkUseDefault = { type: DeploymentDetailResponseTypeUseDefault; }; export type DeploymentDetailResponseNetworkUnion = | DeploymentDetailResponseNetworkByoVpcAws | DeploymentDetailResponseNetworkByoVpcGcp | DeploymentDetailResponseNetworkByoVnetAzure | DeploymentDetailResponseNetworkUseDefault | DeploymentDetailResponseNetworkCreate | any; /** * How telemetry (logs, metrics, traces) is handled. */ export const DeploymentDetailResponseTelemetry = { Off: "off", Auto: "auto", ApprovalRequired: "approval-required", } as const; /** * How telemetry (logs, metrics, traces) is handled. */ export type DeploymentDetailResponseTelemetry = ClosedEnum< typeof DeploymentDetailResponseTelemetry >; /** * How updates are delivered to the deployment. */ export const DeploymentDetailResponseUpdates = { Auto: "auto", ApprovalRequired: "approval-required", } as const; /** * How updates are delivered to the deployment. */ export type DeploymentDetailResponseUpdates = ClosedEnum< typeof DeploymentDetailResponseUpdates >; /** * User-provided configuration (network, deployment model, approvals) */ export type DeploymentDetailResponseStackSettings = { compute?: DeploymentDetailResponseCompute | any | null | undefined; /** * Deployment model: how updates are delivered to the remote environment. */ deploymentModel?: DeploymentDetailResponseDeploymentModel | undefined; domains?: DeploymentDetailResponseDomains | any | null | undefined; /** * External bindings for pre-existing infrastructure. * * @remarks * Allows using existing resources (MinIO, Redis, shared Container Apps * Environment, etc.) instead of having Alien provision them. * Required for Kubernetes platform, optional for cloud platforms. */ externalBindings?: | DeploymentDetailResponseExternalBindings | null | undefined; /** * How heartbeat health checks are handled. */ heartbeats?: DeploymentDetailResponseHeartbeats | undefined; kubernetes?: DeploymentDetailResponseKubernetes | any | null | undefined; network?: | DeploymentDetailResponseNetworkByoVpcAws | DeploymentDetailResponseNetworkByoVpcGcp | DeploymentDetailResponseNetworkByoVnetAzure | DeploymentDetailResponseNetworkUseDefault | DeploymentDetailResponseNetworkCreate | any | null | undefined; /** * Exact externally managed endpoint URLs, keyed by resource ID and endpoint name. * * @remarks * * This is intended for adopted Machines deployments whose DNS and certificates remain * customer-owned. The platform passes these URLs to the runtime without creating or * replacing DNS records or certificates. */ publicEndpoints?: { [k: string]: { [k: string]: string } } | null | undefined; /** * How telemetry (logs, metrics, traces) is handled. */ telemetry?: DeploymentDetailResponseTelemetry | undefined; /** * How updates are delivered to the deployment. */ updates?: DeploymentDetailResponseUpdates | undefined; }; /** * Represents the target cloud platform. */ export const DeploymentDetailResponseStackStatePlatform = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type DeploymentDetailResponseStackStatePlatform = ClosedEnum< typeof DeploymentDetailResponseStackStatePlatform >; /** * Resource that can hold any resource type in the Alien system. All resources share common 'type' and 'id' fields with additional type-specific properties. */ export type DeploymentDetailResponseStackStateConfig = { /** * The unique identifier for this specific resource instance. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]). Maximum 64 characters. */ id: string; /** * Resource type identifier that determines the specific kind of resource. This field is used for polymorphic deserialization and resource-specific behavior. */ type: string; additionalProperties?: { [k: string]: any | null } | undefined; }; /** * Represents the target cloud platform. */ export const DeploymentDetailResponseControllerPlatformEnum = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type DeploymentDetailResponseControllerPlatformEnum = ClosedEnum< typeof DeploymentDetailResponseControllerPlatformEnum >; export type DeploymentDetailResponseControllerPlatformUnion = | DeploymentDetailResponseControllerPlatformEnum | any; /** * Reference to a resource by its stable id and resource type. */ export type DeploymentDetailResponseStackStateDependency = { id: string; /** * Resource type identifier that determines the specific kind of resource. This field is used for polymorphic deserialization and resource-specific behavior. */ type: string; }; /** * Canonical error container that provides a structured way to represent errors * * @remarks * with rich metadata including error codes, human-readable messages, context, * and chaining capabilities for error propagation. * * This struct is designed to be both machine-readable and user-friendly, * supporting serialization for API responses and detailed error reporting * in distributed systems. */ export type DeploymentDetailResponseErrorStackState = { /** * 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 DeploymentDetailResponseErrorUnion = | DeploymentDetailResponseErrorStackState | any; /** * Describes the lifecycle of a resource within a stack, determining how it's managed and deployed. */ export const DeploymentDetailResponseLifecycleStackStateEnum = { Frozen: "frozen", Live: "live", } as const; /** * Describes the lifecycle of a resource within a stack, determining how it's managed and deployed. */ export type DeploymentDetailResponseLifecycleStackStateEnum = ClosedEnum< typeof DeploymentDetailResponseLifecycleStackStateEnum >; export type DeploymentDetailResponseLifecycleUnion = | DeploymentDetailResponseLifecycleStackStateEnum | any; /** * Resource outputs that can hold output data for any resource type in the Alien system. All resource outputs share a common 'type' field with additional type-specific output properties. */ export type DeploymentDetailResponseOutputs = { /** * Resource type identifier that determines the specific kind of resource. This field is used for polymorphic deserialization and resource-specific behavior. */ type: string; additionalProperties?: { [k: string]: any | null } | undefined; }; export type DeploymentDetailResponseOutputsUnion = | DeploymentDetailResponseOutputs | any; /** * Resource that can hold any resource type in the Alien system. All resources share common 'type' and 'id' fields with additional type-specific properties. */ export type DeploymentDetailResponsePreviousConfig = { /** * The unique identifier for this specific resource instance. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]). Maximum 64 characters. */ id: string; /** * Resource type identifier that determines the specific kind of resource. This field is used for polymorphic deserialization and resource-specific behavior. */ type: string; additionalProperties?: { [k: string]: any | null } | undefined; }; export type DeploymentDetailResponsePreviousConfigUnion = | DeploymentDetailResponsePreviousConfig | any; /** * Represents the high-level status of a resource during its lifecycle. */ export const DeploymentDetailResponseStackStateStatus = { Pending: "pending", Provisioning: "provisioning", ProvisionFailed: "provision-failed", Running: "running", Updating: "updating", UpdateFailed: "update-failed", Deleting: "deleting", DeleteFailed: "delete-failed", TeardownRequired: "teardown-required", Deleted: "deleted", RefreshFailed: "refresh-failed", } as const; /** * Represents the high-level status of a resource during its lifecycle. */ export type DeploymentDetailResponseStackStateStatus = ClosedEnum< typeof DeploymentDetailResponseStackStateStatus >; /** * Represents the state of a single resource within the stack for a specific platform. */ export type DeploymentDetailResponseStackStateResources = { /** * The platform-specific resource controller that manages this resource's lifecycle. * * @remarks * This is None when the resource status is Pending. * Stored as JSON to make the struct serializable and movable to alien-core. */ internal?: any | null | undefined; /** * Resource that can hold any resource type in the Alien system. All resources share common 'type' and 'id' fields with additional type-specific properties. */ config: DeploymentDetailResponseStackStateConfig; controllerPlatform?: | DeploymentDetailResponseControllerPlatformEnum | any | null | undefined; /** * Complete list of dependencies for this resource, including infrastructure dependencies. * * @remarks * This preserves the full dependency information from the stack definition. */ dependencies?: | Array | undefined; error?: DeploymentDetailResponseErrorStackState | any | null | undefined; /** * Stores the controller state that failed, used for manual retry operations. * * @remarks * This allows resuming from the exact point where the failure occurred. * Stored as JSON to make the struct serializable and movable to alien-core. */ lastFailedState?: any | null | undefined; lifecycle?: | DeploymentDetailResponseLifecycleStackStateEnum | any | null | undefined; outputs?: DeploymentDetailResponseOutputs | any | null | undefined; previousConfig?: | DeploymentDetailResponsePreviousConfig | any | null | undefined; /** * Binding parameters for remote access. * * @remarks * Only populated when the resource has `remote_access: true` in its ResourceEntry. * This is the JSON serialization of the binding configuration (e.g., StorageBinding, VaultBinding). * Populated by controllers during provisioning using get_binding_params(). */ remoteBindingParams?: any | null | undefined; /** * Tracks consecutive retry attempts for the current state transition. */ retryAttempt?: number | undefined; /** * Represents the high-level status of a resource during its lifecycle. */ status: DeploymentDetailResponseStackStateStatus; /** * The high-level type of the resource (e.g., Worker::RESOURCE_TYPE, Storage::RESOURCE_TYPE). */ type: string; }; /** * State of infrastructure components managed by this deployment */ export type DeploymentDetailResponseStackState = { /** * Represents the target cloud platform. */ platform: DeploymentDetailResponseStackStatePlatform; /** * A prefix used for resource naming to ensure uniqueness across deployments. */ resourcePrefix: string; /** * The state of individual resources, keyed by resource ID. */ resources: { [k: string]: DeploymentDetailResponseStackStateResources }; }; /** * Actor that owns structural work during the initial setup phase. */ export const DeploymentDetailResponseInitialSetupAuthority = { ImportedHandoff: "importedHandoff", DirectSetup: "directSetup", } as const; /** * Actor that owns structural work during the initial setup phase. */ export type DeploymentDetailResponseInitialSetupAuthority = ClosedEnum< typeof DeploymentDetailResponseInitialSetupAuthority >; export const DeploymentDetailResponsePendingPreparedStackTypeStringList = { StringList: "stringList", } as const; export type DeploymentDetailResponsePendingPreparedStackTypeStringList = ClosedEnum; export type DeploymentDetailResponsePendingPreparedStackDefaultStringList = { type: DeploymentDetailResponsePendingPreparedStackTypeStringList; /** * String list default. */ value: Array; }; export const DeploymentDetailResponsePendingPreparedStackTypeBoolean = { Boolean: "boolean", } as const; export type DeploymentDetailResponsePendingPreparedStackTypeBoolean = ClosedEnum; export type DeploymentDetailResponsePendingPreparedStackDefaultBoolean = { type: DeploymentDetailResponsePendingPreparedStackTypeBoolean; /** * Boolean default. */ value: boolean; }; export const DeploymentDetailResponsePendingPreparedStackTypeNumber = { Number: "number", } as const; export type DeploymentDetailResponsePendingPreparedStackTypeNumber = ClosedEnum< typeof DeploymentDetailResponsePendingPreparedStackTypeNumber >; export type DeploymentDetailResponsePendingPreparedStackDefaultNumber = { type: DeploymentDetailResponsePendingPreparedStackTypeNumber; /** * Number default. */ value: string; }; export const DeploymentDetailResponsePendingPreparedStackTypeString = { String: "string", } as const; export type DeploymentDetailResponsePendingPreparedStackTypeString = ClosedEnum< typeof DeploymentDetailResponsePendingPreparedStackTypeString >; export type DeploymentDetailResponsePendingPreparedStackDefaultString = { type: DeploymentDetailResponsePendingPreparedStackTypeString; /** * String default. */ value: string; }; export type DeploymentDetailResponsePendingPreparedStackDefaultUnion = | DeploymentDetailResponsePendingPreparedStackDefaultString | DeploymentDetailResponsePendingPreparedStackDefaultNumber | DeploymentDetailResponsePendingPreparedStackDefaultBoolean | DeploymentDetailResponsePendingPreparedStackDefaultStringList | any; /** * Environment variable handling for a stack input mapping. */ export const DeploymentDetailResponsePendingPreparedStackTypeEnvEnum = { Plain: "plain", Secret: "secret", } as const; /** * Environment variable handling for a stack input mapping. */ export type DeploymentDetailResponsePendingPreparedStackTypeEnvEnum = ClosedEnum; export type DeploymentDetailResponsePendingPreparedStackTypeUnion = | DeploymentDetailResponsePendingPreparedStackTypeEnvEnum | any; /** * How a resolved stack input is injected into runtime environment variables. */ export type DeploymentDetailResponsePendingPreparedStackEnv = { /** * Environment variable name. */ name: string; /** * Target resource IDs or patterns. None means every env-capable resource. */ targetResources?: Array | null | undefined; type?: | DeploymentDetailResponsePendingPreparedStackTypeEnvEnum | any | null | undefined; }; /** * Primitive stack input kind. */ export const DeploymentDetailResponsePendingPreparedStackKind = { String: "string", Secret: "secret", Number: "number", Integer: "integer", Boolean: "boolean", Enum: "enum", StringList: "stringList", } as const; /** * Primitive stack input kind. */ export type DeploymentDetailResponsePendingPreparedStackKind = ClosedEnum< typeof DeploymentDetailResponsePendingPreparedStackKind >; /** * Represents the target cloud platform. */ export const DeploymentDetailResponsePendingPreparedStackPlatform = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type DeploymentDetailResponsePendingPreparedStackPlatform = ClosedEnum< typeof DeploymentDetailResponsePendingPreparedStackPlatform >; /** * Who can provide a stack input value. */ export const DeploymentDetailResponsePendingPreparedStackProvidedBy = { Developer: "developer", Deployer: "deployer", } as const; /** * Who can provide a stack input value. */ export type DeploymentDetailResponsePendingPreparedStackProvidedBy = ClosedEnum< typeof DeploymentDetailResponsePendingPreparedStackProvidedBy >; /** * Portable stack input validation constraints. */ export type DeploymentDetailResponsePendingPreparedStackValidation = { /** * Semantic format hint such as url. */ format?: string | null | undefined; /** * Maximum number. */ max?: string | null | undefined; /** * Maximum string-list items. */ maxItems?: number | null | undefined; /** * Maximum string length. */ maxLength?: number | null | undefined; /** * Minimum number. */ min?: string | null | undefined; /** * Minimum string-list items. */ minItems?: number | null | undefined; /** * Minimum string length. */ minLength?: number | null | undefined; /** * Portable whole-value regex pattern. */ pattern?: string | null | undefined; /** * Allowed string enum values. */ values?: Array | null | undefined; }; export type DeploymentDetailResponsePendingPreparedStackValidationUnion = | DeploymentDetailResponsePendingPreparedStackValidation | any; /** * Stack input definition serialized into a release stack. */ export type DeploymentDetailResponsePendingPreparedStackInput = { default?: | DeploymentDetailResponsePendingPreparedStackDefaultString | DeploymentDetailResponsePendingPreparedStackDefaultNumber | DeploymentDetailResponsePendingPreparedStackDefaultBoolean | DeploymentDetailResponsePendingPreparedStackDefaultStringList | any | null | undefined; /** * Human-facing helper text. */ description: string; /** * Runtime env-var mappings for v1 input resolution. */ env?: Array | undefined; /** * Stable input ID used by CLI/API calls. */ id: string; /** * Primitive stack input kind. */ kind: DeploymentDetailResponsePendingPreparedStackKind; /** * Human-facing field label. */ label: string; /** * Example placeholder shown in UI. */ placeholder?: string | null | undefined; /** * Platforms where this input applies. */ platforms?: | Array | null | undefined; /** * Who can provide this value. */ providedBy: Array; /** * Whether a resolved value is required before deployment can proceed. */ required: boolean; validation?: | DeploymentDetailResponsePendingPreparedStackValidation | any | null | undefined; }; export const DeploymentDetailResponsePendingPreparedStackManagementEnum = { Auto: "auto", } as const; export type DeploymentDetailResponsePendingPreparedStackManagementEnum = ClosedEnum; /** * AWS-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackOverrideAwResource = { /** * Optional condition for additional filtering (rare) */ condition?: { [k: string]: { [k: string]: string } } | null | undefined; /** * Resource ARNs to bind to */ resources: Array; }; /** * AWS-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackOverrideAwStack = { /** * Optional condition for additional filtering (rare) */ condition?: { [k: string]: { [k: string]: string } } | null | undefined; /** * Resource ARNs to bind to */ resources: Array; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePendingPreparedStackOverrideAwBinding = { /** * AWS-specific binding specification */ resource?: | DeploymentDetailResponsePendingPreparedStackOverrideAwResource | undefined; /** * AWS-specific binding specification */ stack?: | DeploymentDetailResponsePendingPreparedStackOverrideAwStack | undefined; }; /** * IAM effect. Defaults to Allow. */ export const DeploymentDetailResponsePendingPreparedStackOverrideEffect = { Allow: "Allow", Deny: "Deny", } as const; /** * IAM effect. Defaults to Allow. */ export type DeploymentDetailResponsePendingPreparedStackOverrideEffect = ClosedEnum; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePendingPreparedStackOverrideAwGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * AWS-specific platform permission configuration */ export type DeploymentDetailResponsePendingPreparedStackOverrideAw = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePendingPreparedStackOverrideAwBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * IAM effect. Defaults to Allow. */ effect?: | DeploymentDetailResponsePendingPreparedStackOverrideEffect | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePendingPreparedStackOverrideAwGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Azure-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackOverrideAzureResource = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Azure-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackOverrideAzureStack = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePendingPreparedStackOverrideAzureBinding = { /** * Azure-specific binding specification */ resource?: | DeploymentDetailResponsePendingPreparedStackOverrideAzureResource | undefined; /** * Azure-specific binding specification */ stack?: | DeploymentDetailResponsePendingPreparedStackOverrideAzureStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePendingPreparedStackOverrideAzureGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * Azure-specific platform permission configuration */ export type DeploymentDetailResponsePendingPreparedStackOverrideAzure = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePendingPreparedStackOverrideAzureBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePendingPreparedStackOverrideAzureGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * GCP IAM condition */ export type DeploymentDetailResponsePendingPreparedStackOverrideConditionResource = { expression: string; title: string; }; export type DeploymentDetailResponsePendingPreparedStackOverrideResourceConditionUnion = | DeploymentDetailResponsePendingPreparedStackOverrideConditionResource | any; /** * GCP-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackOverrideGcpResource = { condition?: | DeploymentDetailResponsePendingPreparedStackOverrideConditionResource | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * GCP IAM condition */ export type DeploymentDetailResponsePendingPreparedStackOverrideConditionStack = { expression: string; title: string; }; export type DeploymentDetailResponsePendingPreparedStackOverrideStackConditionUnion = | DeploymentDetailResponsePendingPreparedStackOverrideConditionStack | any; /** * GCP-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackOverrideGcpStack = { condition?: | DeploymentDetailResponsePendingPreparedStackOverrideConditionStack | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePendingPreparedStackOverrideGcpBinding = { /** * GCP-specific binding specification */ resource?: | DeploymentDetailResponsePendingPreparedStackOverrideGcpResource | undefined; /** * GCP-specific binding specification */ stack?: | DeploymentDetailResponsePendingPreparedStackOverrideGcpStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePendingPreparedStackOverrideGcpGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * GCP-specific platform permission configuration */ export type DeploymentDetailResponsePendingPreparedStackOverrideGcp = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePendingPreparedStackOverrideGcpBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePendingPreparedStackOverrideGcpGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Platform-specific permission configurations */ export type DeploymentDetailResponsePendingPreparedStackOverridePlatforms = { /** * AWS permission configurations */ aws?: | Array | null | undefined; /** * Azure permission configurations */ azure?: | Array | null | undefined; /** * GCP permission configurations */ gcp?: | Array | null | undefined; }; /** * A permission set that can be applied across different cloud platforms */ export type DeploymentDetailResponsePendingPreparedStackOverride = { /** * Human-readable description of what this permission set allows */ description: string; /** * Unique identifier for the permission set (e.g., "storage/data-read") */ id: string; /** * Platform-specific permission configurations */ platforms: DeploymentDetailResponsePendingPreparedStackOverridePlatforms; }; /** * Reference to a permission set - either by name or inline definition */ export type DeploymentDetailResponsePendingPreparedStackOverrideUnion = | DeploymentDetailResponsePendingPreparedStackOverride | string; export type DeploymentDetailResponsePendingPreparedStackManagement2 = { /** * Permission profile that maps resources to permission sets * * @remarks * Key can be "*" for all resources or resource name for specific resource */ override: { [k: string]: Array< DeploymentDetailResponsePendingPreparedStackOverride | string >; }; }; /** * AWS-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackExtendAwResource = { /** * Optional condition for additional filtering (rare) */ condition?: { [k: string]: { [k: string]: string } } | null | undefined; /** * Resource ARNs to bind to */ resources: Array; }; /** * AWS-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackExtendAwStack = { /** * Optional condition for additional filtering (rare) */ condition?: { [k: string]: { [k: string]: string } } | null | undefined; /** * Resource ARNs to bind to */ resources: Array; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePendingPreparedStackExtendAwBinding = { /** * AWS-specific binding specification */ resource?: | DeploymentDetailResponsePendingPreparedStackExtendAwResource | undefined; /** * AWS-specific binding specification */ stack?: DeploymentDetailResponsePendingPreparedStackExtendAwStack | undefined; }; /** * IAM effect. Defaults to Allow. */ export const DeploymentDetailResponsePendingPreparedStackExtendEffect = { Allow: "Allow", Deny: "Deny", } as const; /** * IAM effect. Defaults to Allow. */ export type DeploymentDetailResponsePendingPreparedStackExtendEffect = ClosedEnum; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePendingPreparedStackExtendAwGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * AWS-specific platform permission configuration */ export type DeploymentDetailResponsePendingPreparedStackExtendAw = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePendingPreparedStackExtendAwBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * IAM effect. Defaults to Allow. */ effect?: DeploymentDetailResponsePendingPreparedStackExtendEffect | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePendingPreparedStackExtendAwGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Azure-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackExtendAzureResource = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Azure-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackExtendAzureStack = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePendingPreparedStackExtendAzureBinding = { /** * Azure-specific binding specification */ resource?: | DeploymentDetailResponsePendingPreparedStackExtendAzureResource | undefined; /** * Azure-specific binding specification */ stack?: | DeploymentDetailResponsePendingPreparedStackExtendAzureStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePendingPreparedStackExtendAzureGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * Azure-specific platform permission configuration */ export type DeploymentDetailResponsePendingPreparedStackExtendAzure = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePendingPreparedStackExtendAzureBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePendingPreparedStackExtendAzureGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * GCP IAM condition */ export type DeploymentDetailResponsePendingPreparedStackExtendConditionResource = { expression: string; title: string; }; export type DeploymentDetailResponsePendingPreparedStackExtendResourceConditionUnion = | DeploymentDetailResponsePendingPreparedStackExtendConditionResource | any; /** * GCP-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackExtendGcpResource = { condition?: | DeploymentDetailResponsePendingPreparedStackExtendConditionResource | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * GCP IAM condition */ export type DeploymentDetailResponsePendingPreparedStackExtendConditionStack = { expression: string; title: string; }; export type DeploymentDetailResponsePendingPreparedStackExtendStackConditionUnion = | DeploymentDetailResponsePendingPreparedStackExtendConditionStack | any; /** * GCP-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackExtendGcpStack = { condition?: | DeploymentDetailResponsePendingPreparedStackExtendConditionStack | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePendingPreparedStackExtendGcpBinding = { /** * GCP-specific binding specification */ resource?: | DeploymentDetailResponsePendingPreparedStackExtendGcpResource | undefined; /** * GCP-specific binding specification */ stack?: | DeploymentDetailResponsePendingPreparedStackExtendGcpStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePendingPreparedStackExtendGcpGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * GCP-specific platform permission configuration */ export type DeploymentDetailResponsePendingPreparedStackExtendGcp = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePendingPreparedStackExtendGcpBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePendingPreparedStackExtendGcpGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Platform-specific permission configurations */ export type DeploymentDetailResponsePendingPreparedStackExtendPlatforms = { /** * AWS permission configurations */ aws?: | Array | null | undefined; /** * Azure permission configurations */ azure?: | Array | null | undefined; /** * GCP permission configurations */ gcp?: | Array | null | undefined; }; /** * A permission set that can be applied across different cloud platforms */ export type DeploymentDetailResponsePendingPreparedStackExtend = { /** * Human-readable description of what this permission set allows */ description: string; /** * Unique identifier for the permission set (e.g., "storage/data-read") */ id: string; /** * Platform-specific permission configurations */ platforms: DeploymentDetailResponsePendingPreparedStackExtendPlatforms; }; /** * Reference to a permission set - either by name or inline definition */ export type DeploymentDetailResponsePendingPreparedStackExtendUnion = | DeploymentDetailResponsePendingPreparedStackExtend | string; export type DeploymentDetailResponsePendingPreparedStackManagement1 = { /** * Permission profile that maps resources to permission sets * * @remarks * Key can be "*" for all resources or resource name for specific resource */ extend: { [k: string]: Array< DeploymentDetailResponsePendingPreparedStackExtend | string >; }; }; /** * Management permissions configuration for stack management access */ export type DeploymentDetailResponsePendingPreparedStackManagementUnion = | DeploymentDetailResponsePendingPreparedStackManagement1 | DeploymentDetailResponsePendingPreparedStackManagement2 | DeploymentDetailResponsePendingPreparedStackManagementEnum; /** * AWS-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackProfileAwResource = { /** * Optional condition for additional filtering (rare) */ condition?: { [k: string]: { [k: string]: string } } | null | undefined; /** * Resource ARNs to bind to */ resources: Array; }; /** * AWS-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackProfileAwStack = { /** * Optional condition for additional filtering (rare) */ condition?: { [k: string]: { [k: string]: string } } | null | undefined; /** * Resource ARNs to bind to */ resources: Array; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePendingPreparedStackProfileAwBinding = { /** * AWS-specific binding specification */ resource?: | DeploymentDetailResponsePendingPreparedStackProfileAwResource | undefined; /** * AWS-specific binding specification */ stack?: | DeploymentDetailResponsePendingPreparedStackProfileAwStack | undefined; }; /** * IAM effect. Defaults to Allow. */ export const DeploymentDetailResponsePendingPreparedStackProfileEffect = { Allow: "Allow", Deny: "Deny", } as const; /** * IAM effect. Defaults to Allow. */ export type DeploymentDetailResponsePendingPreparedStackProfileEffect = ClosedEnum; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePendingPreparedStackProfileAwGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * AWS-specific platform permission configuration */ export type DeploymentDetailResponsePendingPreparedStackProfileAw = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePendingPreparedStackProfileAwBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * IAM effect. Defaults to Allow. */ effect?: | DeploymentDetailResponsePendingPreparedStackProfileEffect | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePendingPreparedStackProfileAwGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Azure-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackProfileAzureResource = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Azure-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackProfileAzureStack = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePendingPreparedStackProfileAzureBinding = { /** * Azure-specific binding specification */ resource?: | DeploymentDetailResponsePendingPreparedStackProfileAzureResource | undefined; /** * Azure-specific binding specification */ stack?: | DeploymentDetailResponsePendingPreparedStackProfileAzureStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePendingPreparedStackProfileAzureGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * Azure-specific platform permission configuration */ export type DeploymentDetailResponsePendingPreparedStackProfileAzure = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePendingPreparedStackProfileAzureBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePendingPreparedStackProfileAzureGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * GCP IAM condition */ export type DeploymentDetailResponsePendingPreparedStackProfileConditionResource = { expression: string; title: string; }; export type DeploymentDetailResponsePendingPreparedStackProfileResourceConditionUnion = | DeploymentDetailResponsePendingPreparedStackProfileConditionResource | any; /** * GCP-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackProfileGcpResource = { condition?: | DeploymentDetailResponsePendingPreparedStackProfileConditionResource | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * GCP IAM condition */ export type DeploymentDetailResponsePendingPreparedStackProfileConditionStack = { expression: string; title: string; }; export type DeploymentDetailResponsePendingPreparedStackProfileStackConditionUnion = | DeploymentDetailResponsePendingPreparedStackProfileConditionStack | any; /** * GCP-specific binding specification */ export type DeploymentDetailResponsePendingPreparedStackProfileGcpStack = { condition?: | DeploymentDetailResponsePendingPreparedStackProfileConditionStack | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePendingPreparedStackProfileGcpBinding = { /** * GCP-specific binding specification */ resource?: | DeploymentDetailResponsePendingPreparedStackProfileGcpResource | undefined; /** * GCP-specific binding specification */ stack?: | DeploymentDetailResponsePendingPreparedStackProfileGcpStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePendingPreparedStackProfileGcpGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * GCP-specific platform permission configuration */ export type DeploymentDetailResponsePendingPreparedStackProfileGcp = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePendingPreparedStackProfileGcpBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePendingPreparedStackProfileGcpGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Platform-specific permission configurations */ export type DeploymentDetailResponsePendingPreparedStackProfilePlatforms = { /** * AWS permission configurations */ aws?: | Array | null | undefined; /** * Azure permission configurations */ azure?: | Array | null | undefined; /** * GCP permission configurations */ gcp?: | Array | null | undefined; }; /** * A permission set that can be applied across different cloud platforms */ export type DeploymentDetailResponsePendingPreparedStackProfile = { /** * Human-readable description of what this permission set allows */ description: string; /** * Unique identifier for the permission set (e.g., "storage/data-read") */ id: string; /** * Platform-specific permission configurations */ platforms: DeploymentDetailResponsePendingPreparedStackProfilePlatforms; }; /** * Reference to a permission set - either by name or inline definition */ export type DeploymentDetailResponsePendingPreparedStackProfileUnion = | DeploymentDetailResponsePendingPreparedStackProfile | string; /** * Combined permissions configuration that contains both profiles and management */ export type DeploymentDetailResponsePendingPreparedStackPermissions = { /** * Management permissions configuration for stack management access */ management?: | DeploymentDetailResponsePendingPreparedStackManagement1 | DeploymentDetailResponsePendingPreparedStackManagement2 | DeploymentDetailResponsePendingPreparedStackManagementEnum | undefined; /** * Permission profiles that define access control for compute services * * @remarks * Key is the profile name, value is the permission configuration */ profiles: { [k: string]: { [k: string]: Array< DeploymentDetailResponsePendingPreparedStackProfile | string >; }; }; }; /** * Resource that can hold any resource type in the Alien system. All resources share common 'type' and 'id' fields with additional type-specific properties. */ export type DeploymentDetailResponsePendingPreparedStackConfig = { /** * The unique identifier for this specific resource instance. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]). Maximum 64 characters. */ id: string; /** * Resource type identifier that determines the specific kind of resource. This field is used for polymorphic deserialization and resource-specific behavior. */ type: string; additionalProperties?: { [k: string]: any | null } | undefined; }; /** * Reference to a resource by its stable id and resource type. */ export type DeploymentDetailResponsePendingPreparedStackDependency = { id: string; /** * Resource type identifier that determines the specific kind of resource. This field is used for polymorphic deserialization and resource-specific behavior. */ type: string; }; /** * Describes the lifecycle of a resource within a stack, determining how it's managed and deployed. */ export const DeploymentDetailResponsePendingPreparedStackLifecycle = { Frozen: "frozen", Live: "live", } as const; /** * Describes the lifecycle of a resource within a stack, determining how it's managed and deployed. */ export type DeploymentDetailResponsePendingPreparedStackLifecycle = ClosedEnum< typeof DeploymentDetailResponsePendingPreparedStackLifecycle >; export type DeploymentDetailResponsePendingPreparedStackResources = { /** * Resource that can hold any resource type in the Alien system. All resources share common 'type' and 'id' fields with additional type-specific properties. */ config: DeploymentDetailResponsePendingPreparedStackConfig; /** * Additional dependencies for this resource beyond those defined in the resource itself. * * @remarks * The total dependencies are: resource.get_dependencies() + this list */ dependencies: Array; /** * Id of the boolean stack input that decides whether this resource is * * @remarks * created at all. `None` means always create it. * * Set by `.enabled(input)` in the SDK. Setup emitters render the resource * conditionally on the matching template variable, so a deployer who says no * never gets the resource, its outputs, or anything derived from it. */ enabledWhen?: string | null | undefined; /** * Describes the lifecycle of a resource within a stack, determining how it's managed and deployed. */ lifecycle: DeploymentDetailResponsePendingPreparedStackLifecycle; /** * Enable remote bindings for this resource (BYOB use case). * * @remarks * When true, binding params are synced to StackState's `remote_binding_params`. * Default: false (prevents sensitive data in synced state). */ remoteAccess?: boolean | undefined; }; /** * Represents the target cloud platform. */ export const DeploymentDetailResponsePendingPreparedStackSupportedPlatform = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type DeploymentDetailResponsePendingPreparedStackSupportedPlatform = ClosedEnum< typeof DeploymentDetailResponsePendingPreparedStackSupportedPlatform >; /** * A bag of resources, unaware of any cloud. */ export type DeploymentDetailResponsePendingPreparedStack = { /** * Unique identifier for the stack */ id: string; /** * Input definitions required before setup or deployment can proceed. */ inputs?: Array | undefined; /** * Combined permissions configuration that contains both profiles and management */ permissions?: | DeploymentDetailResponsePendingPreparedStackPermissions | undefined; /** * Map of resource IDs to their configurations and lifecycle settings */ resources: { [k: string]: DeploymentDetailResponsePendingPreparedStackResources; }; /** * Which platforms this stack supports. When None, all platforms are supported. */ supportedPlatforms?: | Array | null | undefined; }; export type DeploymentDetailResponsePendingPreparedStackUnion = | DeploymentDetailResponsePendingPreparedStack | any; export const DeploymentDetailResponsePreparedStackTypeStringList = { StringList: "stringList", } as const; export type DeploymentDetailResponsePreparedStackTypeStringList = ClosedEnum< typeof DeploymentDetailResponsePreparedStackTypeStringList >; export type DeploymentDetailResponsePreparedStackDefaultStringList = { type: DeploymentDetailResponsePreparedStackTypeStringList; /** * String list default. */ value: Array; }; export const DeploymentDetailResponsePreparedStackTypeBoolean = { Boolean: "boolean", } as const; export type DeploymentDetailResponsePreparedStackTypeBoolean = ClosedEnum< typeof DeploymentDetailResponsePreparedStackTypeBoolean >; export type DeploymentDetailResponsePreparedStackDefaultBoolean = { type: DeploymentDetailResponsePreparedStackTypeBoolean; /** * Boolean default. */ value: boolean; }; export const DeploymentDetailResponsePreparedStackTypeNumber = { Number: "number", } as const; export type DeploymentDetailResponsePreparedStackTypeNumber = ClosedEnum< typeof DeploymentDetailResponsePreparedStackTypeNumber >; export type DeploymentDetailResponsePreparedStackDefaultNumber = { type: DeploymentDetailResponsePreparedStackTypeNumber; /** * Number default. */ value: string; }; export const DeploymentDetailResponsePreparedStackTypeString = { String: "string", } as const; export type DeploymentDetailResponsePreparedStackTypeString = ClosedEnum< typeof DeploymentDetailResponsePreparedStackTypeString >; export type DeploymentDetailResponsePreparedStackDefaultString = { type: DeploymentDetailResponsePreparedStackTypeString; /** * String default. */ value: string; }; export type DeploymentDetailResponsePreparedStackDefaultUnion = | DeploymentDetailResponsePreparedStackDefaultString | DeploymentDetailResponsePreparedStackDefaultNumber | DeploymentDetailResponsePreparedStackDefaultBoolean | DeploymentDetailResponsePreparedStackDefaultStringList | any; /** * Environment variable handling for a stack input mapping. */ export const DeploymentDetailResponsePreparedStackTypeEnvEnum = { Plain: "plain", Secret: "secret", } as const; /** * Environment variable handling for a stack input mapping. */ export type DeploymentDetailResponsePreparedStackTypeEnvEnum = ClosedEnum< typeof DeploymentDetailResponsePreparedStackTypeEnvEnum >; export type DeploymentDetailResponsePreparedStackTypeUnion = | DeploymentDetailResponsePreparedStackTypeEnvEnum | any; /** * How a resolved stack input is injected into runtime environment variables. */ export type DeploymentDetailResponsePreparedStackEnv = { /** * Environment variable name. */ name: string; /** * Target resource IDs or patterns. None means every env-capable resource. */ targetResources?: Array | null | undefined; type?: | DeploymentDetailResponsePreparedStackTypeEnvEnum | any | null | undefined; }; /** * Primitive stack input kind. */ export const DeploymentDetailResponsePreparedStackKind = { String: "string", Secret: "secret", Number: "number", Integer: "integer", Boolean: "boolean", Enum: "enum", StringList: "stringList", } as const; /** * Primitive stack input kind. */ export type DeploymentDetailResponsePreparedStackKind = ClosedEnum< typeof DeploymentDetailResponsePreparedStackKind >; /** * Represents the target cloud platform. */ export const DeploymentDetailResponsePreparedStackPlatform = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type DeploymentDetailResponsePreparedStackPlatform = ClosedEnum< typeof DeploymentDetailResponsePreparedStackPlatform >; /** * Who can provide a stack input value. */ export const DeploymentDetailResponsePreparedStackProvidedBy = { Developer: "developer", Deployer: "deployer", } as const; /** * Who can provide a stack input value. */ export type DeploymentDetailResponsePreparedStackProvidedBy = ClosedEnum< typeof DeploymentDetailResponsePreparedStackProvidedBy >; /** * Portable stack input validation constraints. */ export type DeploymentDetailResponsePreparedStackValidation = { /** * Semantic format hint such as url. */ format?: string | null | undefined; /** * Maximum number. */ max?: string | null | undefined; /** * Maximum string-list items. */ maxItems?: number | null | undefined; /** * Maximum string length. */ maxLength?: number | null | undefined; /** * Minimum number. */ min?: string | null | undefined; /** * Minimum string-list items. */ minItems?: number | null | undefined; /** * Minimum string length. */ minLength?: number | null | undefined; /** * Portable whole-value regex pattern. */ pattern?: string | null | undefined; /** * Allowed string enum values. */ values?: Array | null | undefined; }; export type DeploymentDetailResponsePreparedStackValidationUnion = | DeploymentDetailResponsePreparedStackValidation | any; /** * Stack input definition serialized into a release stack. */ export type DeploymentDetailResponsePreparedStackInput = { default?: | DeploymentDetailResponsePreparedStackDefaultString | DeploymentDetailResponsePreparedStackDefaultNumber | DeploymentDetailResponsePreparedStackDefaultBoolean | DeploymentDetailResponsePreparedStackDefaultStringList | any | null | undefined; /** * Human-facing helper text. */ description: string; /** * Runtime env-var mappings for v1 input resolution. */ env?: Array | undefined; /** * Stable input ID used by CLI/API calls. */ id: string; /** * Primitive stack input kind. */ kind: DeploymentDetailResponsePreparedStackKind; /** * Human-facing field label. */ label: string; /** * Example placeholder shown in UI. */ placeholder?: string | null | undefined; /** * Platforms where this input applies. */ platforms?: | Array | null | undefined; /** * Who can provide this value. */ providedBy: Array; /** * Whether a resolved value is required before deployment can proceed. */ required: boolean; validation?: | DeploymentDetailResponsePreparedStackValidation | any | null | undefined; }; export const DeploymentDetailResponsePreparedStackManagementEnum = { Auto: "auto", } as const; export type DeploymentDetailResponsePreparedStackManagementEnum = ClosedEnum< typeof DeploymentDetailResponsePreparedStackManagementEnum >; /** * AWS-specific binding specification */ export type DeploymentDetailResponsePreparedStackOverrideAwResource = { /** * Optional condition for additional filtering (rare) */ condition?: { [k: string]: { [k: string]: string } } | null | undefined; /** * Resource ARNs to bind to */ resources: Array; }; /** * AWS-specific binding specification */ export type DeploymentDetailResponsePreparedStackOverrideAwStack = { /** * Optional condition for additional filtering (rare) */ condition?: { [k: string]: { [k: string]: string } } | null | undefined; /** * Resource ARNs to bind to */ resources: Array; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePreparedStackOverrideAwBinding = { /** * AWS-specific binding specification */ resource?: | DeploymentDetailResponsePreparedStackOverrideAwResource | undefined; /** * AWS-specific binding specification */ stack?: DeploymentDetailResponsePreparedStackOverrideAwStack | undefined; }; /** * IAM effect. Defaults to Allow. */ export const DeploymentDetailResponsePreparedStackOverrideEffect = { Allow: "Allow", Deny: "Deny", } as const; /** * IAM effect. Defaults to Allow. */ export type DeploymentDetailResponsePreparedStackOverrideEffect = ClosedEnum< typeof DeploymentDetailResponsePreparedStackOverrideEffect >; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePreparedStackOverrideAwGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * AWS-specific platform permission configuration */ export type DeploymentDetailResponsePreparedStackOverrideAw = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePreparedStackOverrideAwBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * IAM effect. Defaults to Allow. */ effect?: DeploymentDetailResponsePreparedStackOverrideEffect | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePreparedStackOverrideAwGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Azure-specific binding specification */ export type DeploymentDetailResponsePreparedStackOverrideAzureResource = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Azure-specific binding specification */ export type DeploymentDetailResponsePreparedStackOverrideAzureStack = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePreparedStackOverrideAzureBinding = { /** * Azure-specific binding specification */ resource?: | DeploymentDetailResponsePreparedStackOverrideAzureResource | undefined; /** * Azure-specific binding specification */ stack?: DeploymentDetailResponsePreparedStackOverrideAzureStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePreparedStackOverrideAzureGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * Azure-specific platform permission configuration */ export type DeploymentDetailResponsePreparedStackOverrideAzure = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePreparedStackOverrideAzureBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePreparedStackOverrideAzureGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * GCP IAM condition */ export type DeploymentDetailResponsePreparedStackOverrideConditionResource = { expression: string; title: string; }; export type DeploymentDetailResponsePreparedStackOverrideResourceConditionUnion = | DeploymentDetailResponsePreparedStackOverrideConditionResource | any; /** * GCP-specific binding specification */ export type DeploymentDetailResponsePreparedStackOverrideGcpResource = { condition?: | DeploymentDetailResponsePreparedStackOverrideConditionResource | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * GCP IAM condition */ export type DeploymentDetailResponsePreparedStackOverrideConditionStack = { expression: string; title: string; }; export type DeploymentDetailResponsePreparedStackOverrideStackConditionUnion = | DeploymentDetailResponsePreparedStackOverrideConditionStack | any; /** * GCP-specific binding specification */ export type DeploymentDetailResponsePreparedStackOverrideGcpStack = { condition?: | DeploymentDetailResponsePreparedStackOverrideConditionStack | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePreparedStackOverrideGcpBinding = { /** * GCP-specific binding specification */ resource?: | DeploymentDetailResponsePreparedStackOverrideGcpResource | undefined; /** * GCP-specific binding specification */ stack?: DeploymentDetailResponsePreparedStackOverrideGcpStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePreparedStackOverrideGcpGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * GCP-specific platform permission configuration */ export type DeploymentDetailResponsePreparedStackOverrideGcp = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePreparedStackOverrideGcpBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePreparedStackOverrideGcpGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Platform-specific permission configurations */ export type DeploymentDetailResponsePreparedStackOverridePlatforms = { /** * AWS permission configurations */ aws?: | Array | null | undefined; /** * Azure permission configurations */ azure?: | Array | null | undefined; /** * GCP permission configurations */ gcp?: | Array | null | undefined; }; /** * A permission set that can be applied across different cloud platforms */ export type DeploymentDetailResponsePreparedStackOverride = { /** * Human-readable description of what this permission set allows */ description: string; /** * Unique identifier for the permission set (e.g., "storage/data-read") */ id: string; /** * Platform-specific permission configurations */ platforms: DeploymentDetailResponsePreparedStackOverridePlatforms; }; /** * Reference to a permission set - either by name or inline definition */ export type DeploymentDetailResponsePreparedStackOverrideUnion = | DeploymentDetailResponsePreparedStackOverride | string; export type DeploymentDetailResponsePreparedStackManagement2 = { /** * Permission profile that maps resources to permission sets * * @remarks * Key can be "*" for all resources or resource name for specific resource */ override: { [k: string]: Array; }; }; /** * AWS-specific binding specification */ export type DeploymentDetailResponsePreparedStackExtendAwResource = { /** * Optional condition for additional filtering (rare) */ condition?: { [k: string]: { [k: string]: string } } | null | undefined; /** * Resource ARNs to bind to */ resources: Array; }; /** * AWS-specific binding specification */ export type DeploymentDetailResponsePreparedStackExtendAwStack = { /** * Optional condition for additional filtering (rare) */ condition?: { [k: string]: { [k: string]: string } } | null | undefined; /** * Resource ARNs to bind to */ resources: Array; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePreparedStackExtendAwBinding = { /** * AWS-specific binding specification */ resource?: DeploymentDetailResponsePreparedStackExtendAwResource | undefined; /** * AWS-specific binding specification */ stack?: DeploymentDetailResponsePreparedStackExtendAwStack | undefined; }; /** * IAM effect. Defaults to Allow. */ export const DeploymentDetailResponsePreparedStackExtendEffect = { Allow: "Allow", Deny: "Deny", } as const; /** * IAM effect. Defaults to Allow. */ export type DeploymentDetailResponsePreparedStackExtendEffect = ClosedEnum< typeof DeploymentDetailResponsePreparedStackExtendEffect >; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePreparedStackExtendAwGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * AWS-specific platform permission configuration */ export type DeploymentDetailResponsePreparedStackExtendAw = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePreparedStackExtendAwBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * IAM effect. Defaults to Allow. */ effect?: DeploymentDetailResponsePreparedStackExtendEffect | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePreparedStackExtendAwGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Azure-specific binding specification */ export type DeploymentDetailResponsePreparedStackExtendAzureResource = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Azure-specific binding specification */ export type DeploymentDetailResponsePreparedStackExtendAzureStack = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePreparedStackExtendAzureBinding = { /** * Azure-specific binding specification */ resource?: | DeploymentDetailResponsePreparedStackExtendAzureResource | undefined; /** * Azure-specific binding specification */ stack?: DeploymentDetailResponsePreparedStackExtendAzureStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePreparedStackExtendAzureGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * Azure-specific platform permission configuration */ export type DeploymentDetailResponsePreparedStackExtendAzure = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePreparedStackExtendAzureBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePreparedStackExtendAzureGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * GCP IAM condition */ export type DeploymentDetailResponsePreparedStackExtendConditionResource = { expression: string; title: string; }; export type DeploymentDetailResponsePreparedStackExtendResourceConditionUnion = | DeploymentDetailResponsePreparedStackExtendConditionResource | any; /** * GCP-specific binding specification */ export type DeploymentDetailResponsePreparedStackExtendGcpResource = { condition?: | DeploymentDetailResponsePreparedStackExtendConditionResource | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * GCP IAM condition */ export type DeploymentDetailResponsePreparedStackExtendConditionStack = { expression: string; title: string; }; export type DeploymentDetailResponsePreparedStackExtendStackConditionUnion = | DeploymentDetailResponsePreparedStackExtendConditionStack | any; /** * GCP-specific binding specification */ export type DeploymentDetailResponsePreparedStackExtendGcpStack = { condition?: | DeploymentDetailResponsePreparedStackExtendConditionStack | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePreparedStackExtendGcpBinding = { /** * GCP-specific binding specification */ resource?: DeploymentDetailResponsePreparedStackExtendGcpResource | undefined; /** * GCP-specific binding specification */ stack?: DeploymentDetailResponsePreparedStackExtendGcpStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePreparedStackExtendGcpGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * GCP-specific platform permission configuration */ export type DeploymentDetailResponsePreparedStackExtendGcp = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePreparedStackExtendGcpBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePreparedStackExtendGcpGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Platform-specific permission configurations */ export type DeploymentDetailResponsePreparedStackExtendPlatforms = { /** * AWS permission configurations */ aws?: Array | null | undefined; /** * Azure permission configurations */ azure?: | Array | null | undefined; /** * GCP permission configurations */ gcp?: | Array | null | undefined; }; /** * A permission set that can be applied across different cloud platforms */ export type DeploymentDetailResponsePreparedStackExtend = { /** * Human-readable description of what this permission set allows */ description: string; /** * Unique identifier for the permission set (e.g., "storage/data-read") */ id: string; /** * Platform-specific permission configurations */ platforms: DeploymentDetailResponsePreparedStackExtendPlatforms; }; /** * Reference to a permission set - either by name or inline definition */ export type DeploymentDetailResponsePreparedStackExtendUnion = | DeploymentDetailResponsePreparedStackExtend | string; export type DeploymentDetailResponsePreparedStackManagement1 = { /** * Permission profile that maps resources to permission sets * * @remarks * Key can be "*" for all resources or resource name for specific resource */ extend: { [k: string]: Array; }; }; /** * Management permissions configuration for stack management access */ export type DeploymentDetailResponsePreparedStackManagementUnion = | DeploymentDetailResponsePreparedStackManagement1 | DeploymentDetailResponsePreparedStackManagement2 | DeploymentDetailResponsePreparedStackManagementEnum; /** * AWS-specific binding specification */ export type DeploymentDetailResponsePreparedStackProfileAwResource = { /** * Optional condition for additional filtering (rare) */ condition?: { [k: string]: { [k: string]: string } } | null | undefined; /** * Resource ARNs to bind to */ resources: Array; }; /** * AWS-specific binding specification */ export type DeploymentDetailResponsePreparedStackProfileAwStack = { /** * Optional condition for additional filtering (rare) */ condition?: { [k: string]: { [k: string]: string } } | null | undefined; /** * Resource ARNs to bind to */ resources: Array; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePreparedStackProfileAwBinding = { /** * AWS-specific binding specification */ resource?: DeploymentDetailResponsePreparedStackProfileAwResource | undefined; /** * AWS-specific binding specification */ stack?: DeploymentDetailResponsePreparedStackProfileAwStack | undefined; }; /** * IAM effect. Defaults to Allow. */ export const DeploymentDetailResponsePreparedStackProfileEffect = { Allow: "Allow", Deny: "Deny", } as const; /** * IAM effect. Defaults to Allow. */ export type DeploymentDetailResponsePreparedStackProfileEffect = ClosedEnum< typeof DeploymentDetailResponsePreparedStackProfileEffect >; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePreparedStackProfileAwGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * AWS-specific platform permission configuration */ export type DeploymentDetailResponsePreparedStackProfileAw = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePreparedStackProfileAwBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * IAM effect. Defaults to Allow. */ effect?: DeploymentDetailResponsePreparedStackProfileEffect | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePreparedStackProfileAwGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Azure-specific binding specification */ export type DeploymentDetailResponsePreparedStackProfileAzureResource = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Azure-specific binding specification */ export type DeploymentDetailResponsePreparedStackProfileAzureStack = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePreparedStackProfileAzureBinding = { /** * Azure-specific binding specification */ resource?: | DeploymentDetailResponsePreparedStackProfileAzureResource | undefined; /** * Azure-specific binding specification */ stack?: DeploymentDetailResponsePreparedStackProfileAzureStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePreparedStackProfileAzureGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * Azure-specific platform permission configuration */ export type DeploymentDetailResponsePreparedStackProfileAzure = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePreparedStackProfileAzureBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePreparedStackProfileAzureGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * GCP IAM condition */ export type DeploymentDetailResponsePreparedStackProfileConditionResource = { expression: string; title: string; }; export type DeploymentDetailResponsePreparedStackProfileResourceConditionUnion = | DeploymentDetailResponsePreparedStackProfileConditionResource | any; /** * GCP-specific binding specification */ export type DeploymentDetailResponsePreparedStackProfileGcpResource = { condition?: | DeploymentDetailResponsePreparedStackProfileConditionResource | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * GCP IAM condition */ export type DeploymentDetailResponsePreparedStackProfileConditionStack = { expression: string; title: string; }; export type DeploymentDetailResponsePreparedStackProfileStackConditionUnion = | DeploymentDetailResponsePreparedStackProfileConditionStack | any; /** * GCP-specific binding specification */ export type DeploymentDetailResponsePreparedStackProfileGcpStack = { condition?: | DeploymentDetailResponsePreparedStackProfileConditionStack | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type DeploymentDetailResponsePreparedStackProfileGcpBinding = { /** * GCP-specific binding specification */ resource?: | DeploymentDetailResponsePreparedStackProfileGcpResource | undefined; /** * GCP-specific binding specification */ stack?: DeploymentDetailResponsePreparedStackProfileGcpStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type DeploymentDetailResponsePreparedStackProfileGcpGrant = { /** * AWS IAM actions (only for AWS) */ actions?: Array | null | undefined; /** * Azure actions (only for Azure) */ dataActions?: Array | null | undefined; /** * GCP permissions that require an exact residual custom role. */ permissions?: Array | null | undefined; /** * Provider predefined roles to bind directly. */ predefinedRoles?: Array | null | undefined; /** * GCP residual custom permissions to pair with predefined roles. */ residualPermissions?: Array | null | undefined; }; /** * GCP-specific platform permission configuration */ export type DeploymentDetailResponsePreparedStackProfileGcp = { /** * Generic binding configuration for permissions */ binding: DeploymentDetailResponsePreparedStackProfileGcpBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: DeploymentDetailResponsePreparedStackProfileGcpGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Platform-specific permission configurations */ export type DeploymentDetailResponsePreparedStackProfilePlatforms = { /** * AWS permission configurations */ aws?: | Array | null | undefined; /** * Azure permission configurations */ azure?: | Array | null | undefined; /** * GCP permission configurations */ gcp?: | Array | null | undefined; }; /** * A permission set that can be applied across different cloud platforms */ export type DeploymentDetailResponsePreparedStackProfile = { /** * Human-readable description of what this permission set allows */ description: string; /** * Unique identifier for the permission set (e.g., "storage/data-read") */ id: string; /** * Platform-specific permission configurations */ platforms: DeploymentDetailResponsePreparedStackProfilePlatforms; }; /** * Reference to a permission set - either by name or inline definition */ export type DeploymentDetailResponsePreparedStackProfileUnion = | DeploymentDetailResponsePreparedStackProfile | string; /** * Combined permissions configuration that contains both profiles and management */ export type DeploymentDetailResponsePreparedStackPermissions = { /** * Management permissions configuration for stack management access */ management?: | DeploymentDetailResponsePreparedStackManagement1 | DeploymentDetailResponsePreparedStackManagement2 | DeploymentDetailResponsePreparedStackManagementEnum | undefined; /** * Permission profiles that define access control for compute services * * @remarks * Key is the profile name, value is the permission configuration */ profiles: { [k: string]: { [k: string]: Array; }; }; }; /** * Resource that can hold any resource type in the Alien system. All resources share common 'type' and 'id' fields with additional type-specific properties. */ export type DeploymentDetailResponsePreparedStackConfig = { /** * The unique identifier for this specific resource instance. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]). Maximum 64 characters. */ id: string; /** * Resource type identifier that determines the specific kind of resource. This field is used for polymorphic deserialization and resource-specific behavior. */ type: string; additionalProperties?: { [k: string]: any | null } | undefined; }; /** * Reference to a resource by its stable id and resource type. */ export type DeploymentDetailResponsePreparedStackDependency = { id: string; /** * Resource type identifier that determines the specific kind of resource. This field is used for polymorphic deserialization and resource-specific behavior. */ type: string; }; /** * Describes the lifecycle of a resource within a stack, determining how it's managed and deployed. */ export const DeploymentDetailResponsePreparedStackLifecycle = { Frozen: "frozen", Live: "live", } as const; /** * Describes the lifecycle of a resource within a stack, determining how it's managed and deployed. */ export type DeploymentDetailResponsePreparedStackLifecycle = ClosedEnum< typeof DeploymentDetailResponsePreparedStackLifecycle >; export type DeploymentDetailResponsePreparedStackResources = { /** * Resource that can hold any resource type in the Alien system. All resources share common 'type' and 'id' fields with additional type-specific properties. */ config: DeploymentDetailResponsePreparedStackConfig; /** * Additional dependencies for this resource beyond those defined in the resource itself. * * @remarks * The total dependencies are: resource.get_dependencies() + this list */ dependencies: Array; /** * Id of the boolean stack input that decides whether this resource is * * @remarks * created at all. `None` means always create it. * * Set by `.enabled(input)` in the SDK. Setup emitters render the resource * conditionally on the matching template variable, so a deployer who says no * never gets the resource, its outputs, or anything derived from it. */ enabledWhen?: string | null | undefined; /** * Describes the lifecycle of a resource within a stack, determining how it's managed and deployed. */ lifecycle: DeploymentDetailResponsePreparedStackLifecycle; /** * Enable remote bindings for this resource (BYOB use case). * * @remarks * When true, binding params are synced to StackState's `remote_binding_params`. * Default: false (prevents sensitive data in synced state). */ remoteAccess?: boolean | undefined; }; /** * Represents the target cloud platform. */ export const DeploymentDetailResponsePreparedStackSupportedPlatform = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type DeploymentDetailResponsePreparedStackSupportedPlatform = ClosedEnum< typeof DeploymentDetailResponsePreparedStackSupportedPlatform >; /** * A bag of resources, unaware of any cloud. */ export type DeploymentDetailResponsePreparedStack = { /** * Unique identifier for the stack */ id: string; /** * Input definitions required before setup or deployment can proceed. */ inputs?: Array | undefined; /** * Combined permissions configuration that contains both profiles and management */ permissions?: DeploymentDetailResponsePreparedStackPermissions | undefined; /** * Map of resource IDs to their configurations and lifecycle settings */ resources: { [k: string]: DeploymentDetailResponsePreparedStackResources }; /** * Which platforms this stack supports. When None, all platforms are supported. */ supportedPlatforms?: | Array | null | undefined; }; export type DeploymentDetailResponsePreparedStackUnion = | DeploymentDetailResponsePreparedStack | any; /** * One-shot authority for a setup re-import to replace setup-owned resources. */ export type DeploymentDetailResponseSetupUpdateAuthorization = { /** * Frozen resource projection from the last successful deployment. */ baselineFrozenDigest: string; /** * Unique revision used by persistence layers for compare-and-swap updates. */ nonce: string; /** * Release whose stack was prepared by setup. */ releaseId: string; /** * Exact setup artifact revision that authored this authority. */ setupFingerprint: string; /** * Setup fingerprint contract version. */ setupFingerprintVersion: number; /** * Stable setup target recorded on the imported deployment. */ setupTarget: string; /** * Frozen resource projection prepared by the setup re-import. */ targetFrozenDigest: string; }; export type DeploymentDetailResponseSetupUpdateAuthorizationUnion = | DeploymentDetailResponseSetupUpdateAuthorization | any; /** * Runtime metadata for deployment state persistence */ export type DeploymentDetailResponseRuntimeMetadata = { /** * Last generated CLI package revision whose direct setup was applied. * * @remarks * This lets a newer generated CLI refresh setup-owned infrastructure once * before handing runtime changes back to the hosted manager. */ directSetupRevision?: string | null | undefined; /** * Actor that owns structural work during the initial setup phase. */ initialSetupAuthority?: | DeploymentDetailResponseInitialSetupAuthority | undefined; /** * Hash of the environment variables snapshot that was last synced to the vault * * @remarks * Used to avoid redundant sync operations during incremental deployment */ lastSyncedEnvVarsHash?: string | null | undefined; /** * Exact vault keys owned by the deployment secret synchronizer. This * * @remarks * inventory lets a later snapshot delete removed keys without listing or * touching unrelated values in the same vault. */ lastSyncedSecretNames?: Array | undefined; pendingPreparedStack?: | DeploymentDetailResponsePendingPreparedStack | any | null | undefined; /** * Canonical resolved answers for inputs that gate Frozen resources, * * @remarks * keyed by input id, recorded when the deployment is created or its * setup import registers. * * A frozen gate's answer is fixed for the deployment's lifetime: the * update path refuses input values that conflict with these, and a Live * resource sharing such an input resolves the persisted answer forever. */ persistedGateAnswers?: { [k: string]: boolean } | undefined; preparedStack?: | DeploymentDetailResponsePreparedStack | any | null | undefined; /** * Whether cross-account registry access has been successfully granted. * * @remarks * Set to true after the manager successfully sets the ECR/GAR repo policy * for this deployment's target account. Prevents redundant API calls on * every reconcile tick. */ registryAccessGranted?: boolean | undefined; setupUpdateAuthorization?: | DeploymentDetailResponseSetupUpdateAuthorization | any | null | undefined; }; /** * Setup source that imported this deployment */ export const DeploymentDetailResponseImportSource = { Cloudformation: "cloudformation", Terraform: "terraform", Helm: "helm", } as const; /** * Setup source that imported this deployment */ export type DeploymentDetailResponseImportSource = ClosedEnum< typeof DeploymentDetailResponseImportSource >; /** * Setup method that created the deployment record and owns setup-time resources. */ export const DeploymentDetailResponseSetupMethod = { Cloudformation: "cloudformation", GoogleOauth: "google-oauth", Terraform: "terraform", Helm: "helm", Cli: "cli", Manual: "manual", } as const; /** * Setup method that created the deployment record and owns setup-time resources. */ export type DeploymentDetailResponseSetupMethod = ClosedEnum< typeof DeploymentDetailResponseSetupMethod >; /** * Latest error information if the deployment is in a failed state */ export type DeploymentDetailResponseError = { /** * 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; }; /** * Durable progress for deployment updates */ export type DeploymentDetailResponseUpdateState = { active: DeploymentUpdateOperationSummary | null; next: DeploymentUpdateOperationSummary | null; latest: DeploymentUpdateOperationSummary | null; }; /** * Plugin/operations-bundle sync status for this deployment's Operator. Null for non-pull deployments. */ export type OperatorSync = { /** * Unique identifier for the deployment operator sync. */ id: string; status: DeploymentOperatorSyncStatus; stuckReason?: DeploymentOperatorSyncStuckReason | null | undefined; /** * Human-readable explanation of the status */ statusMessage?: string | null | undefined; targetBundleHash: string; /** * Enabled-plugin-bundle-set hash last reported by the Operator */ observedBundleHash?: string | null | undefined; /** * Expected `plugin/operation` names not reported by the Operator (catalog-mismatch only) */ missingOperations?: Array | null | undefined; targetSetAt: Date; observedAt?: Date | null | undefined; }; export type DeploymentDetailResponse = { /** * Unique identifier for the deployment. */ id: string; /** * Deployment name. */ name: string; /** * Public subdomain for auto-generated domains */ publicSubdomain?: string | null | 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. */ status: DeploymentDetailResponseStatus; /** * Unique identifier for the project. */ projectId: string; /** * Target platform for the deployment */ platform: DeploymentDetailResponsePlatform; /** * Underlying cloud platform for Kubernetes deployments. */ basePlatform?: DeploymentDetailResponseBasePlatform | null | undefined; /** * Cloud region or location for the deployment. */ region?: string | null | undefined; /** * 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?: | DeploymentDetailResponseEnvironmentInfoGcp | DeploymentDetailResponseEnvironmentInfoAzure | DeploymentDetailResponseEnvironmentInfoLocal | DeploymentDetailResponseEnvironmentInfoAws | DeploymentDetailResponseEnvironmentInfoTest | any | null | undefined; /** * User-provided configuration (network, deployment model, approvals) */ stackSettings: DeploymentDetailResponseStackSettings; /** * State of infrastructure components managed by this deployment */ stackState?: DeploymentDetailResponseStackState | null | undefined; /** * Runtime metadata for deployment state persistence */ runtimeMetadata?: DeploymentDetailResponseRuntimeMetadata | null | undefined; /** * ID of the currently deployed release (actual state) */ currentReleaseId?: string | null | undefined; /** * ID of the desired release for deployment/update (desired state) */ desiredReleaseId?: string | null | undefined; /** * ID of the pinned release */ pinnedReleaseId?: string | null | undefined; releaseChannel: string; /** * Setup source that imported this deployment */ importSource?: DeploymentDetailResponseImportSource | null | undefined; /** * Setup method that created the deployment record and owns setup-time resources. */ setupMethod?: DeploymentDetailResponseSetupMethod | 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 algorithm 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; /** * Enabled-plugin-bundle-set hash the Operator reports having loaded */ observedOperationsBundleHash?: string | null | undefined; /** * Operations the Operator reports as currently loaded */ observedOperations?: Array | null | undefined; /** * Whether a retry has been requested for a failed deployment */ retryRequested: boolean; /** * Timestamp of the last received heartbeat from the deployment */ lastHeartbeatAt?: Date | null | undefined; /** * Latest error information if the deployment is in a failed state */ error?: DeploymentDetailResponseError | null | undefined; /** * Durable progress for deployment updates */ updateState?: DeploymentDetailResponseUpdateState | undefined; createdAt: Date; updatedAt: Date; managerId: string; /** * Unique identifier for the workspace. */ workspaceId: string; release?: DeploymentReleaseInfo | null | undefined; deploymentGroup?: DeploymentGroupInfo | undefined; project?: DeploymentProjectInfo | undefined; /** * Plugin/operations-bundle sync status for this deployment's Operator. Null for non-pull deployments. */ operatorSync?: OperatorSync | null | undefined; }; /** @internal */ export const DeploymentDetailResponseStatus$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseStatus > = z.enum(DeploymentDetailResponseStatus); /** @internal */ export const DeploymentDetailResponsePlatform$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponsePlatform > = z.enum(DeploymentDetailResponsePlatform); /** @internal */ export const DeploymentDetailResponseBasePlatform$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseBasePlatform > = z.enum(DeploymentDetailResponseBasePlatform); /** @internal */ export const DeploymentDetailResponsePlatformTest$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponsePlatformTest > = z.enum(DeploymentDetailResponsePlatformTest); /** @internal */ export const DeploymentDetailResponseEnvironmentInfoTest$inboundSchema: z.ZodType = z.object({ testId: z.string(), platform: DeploymentDetailResponsePlatformTest$inboundSchema, }); export function deploymentDetailResponseEnvironmentInfoTestFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseEnvironmentInfoTest, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseEnvironmentInfoTest$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseEnvironmentInfoTest' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePlatformLocal$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponsePlatformLocal > = z.enum(DeploymentDetailResponsePlatformLocal); /** @internal */ export const DeploymentDetailResponseEnvironmentInfoLocal$inboundSchema: z.ZodType = z.object({ arch: z.string(), hostname: z.string(), os: z.string(), platform: DeploymentDetailResponsePlatformLocal$inboundSchema, }); export function deploymentDetailResponseEnvironmentInfoLocalFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseEnvironmentInfoLocal, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseEnvironmentInfoLocal$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseEnvironmentInfoLocal' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePlatformAzure$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponsePlatformAzure > = z.enum(DeploymentDetailResponsePlatformAzure); /** @internal */ export const DeploymentDetailResponseEnvironmentInfoAzure$inboundSchema: z.ZodType = z.object({ location: z.string(), subscriptionId: z.string(), tenantId: z.string(), platform: DeploymentDetailResponsePlatformAzure$inboundSchema, }); export function deploymentDetailResponseEnvironmentInfoAzureFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseEnvironmentInfoAzure, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseEnvironmentInfoAzure$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseEnvironmentInfoAzure' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePlatformGcp$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponsePlatformGcp > = z.enum(DeploymentDetailResponsePlatformGcp); /** @internal */ export const DeploymentDetailResponseEnvironmentInfoGcp$inboundSchema: z.ZodType = z.object({ projectId: z.string(), projectNumber: z.string(), region: z.string(), platform: DeploymentDetailResponsePlatformGcp$inboundSchema, }); export function deploymentDetailResponseEnvironmentInfoGcpFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseEnvironmentInfoGcp, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseEnvironmentInfoGcp$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseEnvironmentInfoGcp' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePlatformAws$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponsePlatformAws > = z.enum(DeploymentDetailResponsePlatformAws); /** @internal */ export const DeploymentDetailResponseEnvironmentInfoAws$inboundSchema: z.ZodType = z.object({ accountId: z.string(), region: z.string(), platform: DeploymentDetailResponsePlatformAws$inboundSchema, }); export function deploymentDetailResponseEnvironmentInfoAwsFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseEnvironmentInfoAws, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseEnvironmentInfoAws$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseEnvironmentInfoAws' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseEnvironmentInfoUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentDetailResponseEnvironmentInfoGcp$inboundSchema), z.lazy(() => DeploymentDetailResponseEnvironmentInfoAzure$inboundSchema), z.lazy(() => DeploymentDetailResponseEnvironmentInfoLocal$inboundSchema), z.lazy(() => DeploymentDetailResponseEnvironmentInfoAws$inboundSchema), z.lazy(() => DeploymentDetailResponseEnvironmentInfoTest$inboundSchema), z.any(), ]); export function deploymentDetailResponseEnvironmentInfoUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseEnvironmentInfoUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseEnvironmentInfoUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseEnvironmentInfoUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseFailureDomains2$inboundSchema: z.ZodType< DeploymentDetailResponseFailureDomains2, unknown > = z.object({ selectedFailureDomains: z.array(z.string()).optional(), spread: z.int(), }); export function deploymentDetailResponseFailureDomains2FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseFailureDomains2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseFailureDomains2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseFailureDomains2' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseFailureDomainsUnion2$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentDetailResponseFailureDomains2$inboundSchema), z.any(), ]); export function deploymentDetailResponseFailureDomainsUnion2FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseFailureDomainsUnion2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseFailureDomainsUnion2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseFailureDomainsUnion2' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePoolsAutoscale$inboundSchema: z.ZodType< DeploymentDetailResponsePoolsAutoscale, unknown > = z.object({ failure_domains: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseFailureDomains2$inboundSchema), z.any(), ]), ).optional(), machine: z.nullable(z.string()).optional(), max: z.int(), min: z.int(), mode: z.literal("autoscale"), }).transform((v) => { return remap$(v, { "failure_domains": "failureDomains", }); }); export function deploymentDetailResponsePoolsAutoscaleFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponsePoolsAutoscale$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePoolsAutoscale' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseFailureDomains1$inboundSchema: z.ZodType< DeploymentDetailResponseFailureDomains1, unknown > = z.object({ selectedFailureDomains: z.array(z.string()).optional(), spread: z.int(), }); export function deploymentDetailResponseFailureDomains1FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseFailureDomains1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseFailureDomains1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseFailureDomains1' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseFailureDomainsUnion1$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentDetailResponseFailureDomains1$inboundSchema), z.any(), ]); export function deploymentDetailResponseFailureDomainsUnion1FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseFailureDomainsUnion1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseFailureDomainsUnion1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseFailureDomainsUnion1' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePoolsFixed$inboundSchema: z.ZodType< DeploymentDetailResponsePoolsFixed, unknown > = z.object({ failure_domains: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseFailureDomains1$inboundSchema), z.any(), ]), ).optional(), machine: z.nullable(z.string()).optional(), machines: z.int(), mode: z.literal("fixed"), }).transform((v) => { return remap$(v, { "failure_domains": "failureDomains", }); }); export function deploymentDetailResponsePoolsFixedFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponsePoolsFixed$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePoolsFixed' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePoolsUnion$inboundSchema: z.ZodType< DeploymentDetailResponsePoolsUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponsePoolsFixed$inboundSchema), z.lazy(() => DeploymentDetailResponsePoolsAutoscale$inboundSchema), ]); export function deploymentDetailResponsePoolsUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponsePoolsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePoolsUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseCompute$inboundSchema: z.ZodType< DeploymentDetailResponseCompute, unknown > = z.object({ pools: z.record( z.string(), z.union([ z.lazy(() => DeploymentDetailResponsePoolsFixed$inboundSchema), z.lazy(() => DeploymentDetailResponsePoolsAutoscale$inboundSchema), ]), ).optional(), }); export function deploymentDetailResponseComputeFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseCompute$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseCompute' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseComputeUnion$inboundSchema: z.ZodType< DeploymentDetailResponseComputeUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseCompute$inboundSchema), z.any(), ]); export function deploymentDetailResponseComputeUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseComputeUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseComputeUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseDeploymentModel$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseDeploymentModel > = z.enum(DeploymentDetailResponseDeploymentModel); /** @internal */ export const DeploymentDetailResponseAws$inboundSchema: z.ZodType< DeploymentDetailResponseAws, unknown > = z.object({ certificateArn: z.string(), }); export function deploymentDetailResponseAwsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseAws$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseAws' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseAwsUnion$inboundSchema: z.ZodType< DeploymentDetailResponseAwsUnion, unknown > = z.union([z.lazy(() => DeploymentDetailResponseAws$inboundSchema), z.any()]); export function deploymentDetailResponseAwsUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseAwsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseAwsUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseAzureStackSettings$inboundSchema: z.ZodType = z.object({ keyVaultCertificateId: z.string(), keyVaultResourceId: z.nullable(z.string()).optional(), }); export function deploymentDetailResponseAzureStackSettingsFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseAzureStackSettings, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseAzureStackSettings$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseAzureStackSettings' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseAzureUnion$inboundSchema: z.ZodType< DeploymentDetailResponseAzureUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseAzureStackSettings$inboundSchema), z.any(), ]); export function deploymentDetailResponseAzureUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseAzureUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseAzureUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseGcpStackSettings$inboundSchema: z.ZodType< DeploymentDetailResponseGcpStackSettings, unknown > = z.object({ certificateName: z.string(), }); export function deploymentDetailResponseGcpStackSettingsFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseGcpStackSettings, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseGcpStackSettings$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseGcpStackSettings' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseGcpUnion$inboundSchema: z.ZodType< DeploymentDetailResponseGcpUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseGcpStackSettings$inboundSchema), z.any(), ]); export function deploymentDetailResponseGcpUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseGcpUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseGcpUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseTlsSecretRef$inboundSchema: z.ZodType< DeploymentDetailResponseTlsSecretRef, unknown > = z.object({ namespace: z.nullable(z.string()).optional(), secretName: z.string(), }); export function deploymentDetailResponseTlsSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseTlsSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseTlsSecretRef' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseDomainsKubernetes$inboundSchema: z.ZodType< DeploymentDetailResponseDomainsKubernetes, unknown > = z.object({ tlsSecretRef: z.lazy(() => DeploymentDetailResponseTlsSecretRef$inboundSchema ), }); export function deploymentDetailResponseDomainsKubernetesFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseDomainsKubernetes, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseDomainsKubernetes$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseDomainsKubernetes' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseDomainsKubernetesUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentDetailResponseDomainsKubernetes$inboundSchema), z.any(), ]); export function deploymentDetailResponseDomainsKubernetesUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseDomainsKubernetesUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseDomainsKubernetesUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseDomainsKubernetesUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseDomainsCertificate$inboundSchema: z.ZodType = z.object({ aws: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseAws$inboundSchema), z.any(), ]), ).optional(), azure: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseAzureStackSettings$inboundSchema), z.any(), ]), ).optional(), gcp: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseGcpStackSettings$inboundSchema), z.any(), ]), ).optional(), kubernetes: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseDomainsKubernetes$inboundSchema), z.any(), ]), ).optional(), }); export function deploymentDetailResponseDomainsCertificateFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseDomainsCertificate, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseDomainsCertificate$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseDomainsCertificate' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseCustomDomains$inboundSchema: z.ZodType< DeploymentDetailResponseCustomDomains, unknown > = z.object({ certificate: z.lazy(() => DeploymentDetailResponseDomainsCertificate$inboundSchema ), domain: z.string(), }); export function deploymentDetailResponseCustomDomainsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseCustomDomains$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseCustomDomains' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseModeLoadBalancer$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseModeLoadBalancer > = z.enum(DeploymentDetailResponseModeLoadBalancer); /** @internal */ export const DeploymentDetailResponsePublicEndpointTargetLoadBalancer$inboundSchema: z.ZodType = z.object({ cnameTarget: z.string(), mode: DeploymentDetailResponseModeLoadBalancer$inboundSchema, }); export function deploymentDetailResponsePublicEndpointTargetLoadBalancerFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePublicEndpointTargetLoadBalancer, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePublicEndpointTargetLoadBalancer$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePublicEndpointTargetLoadBalancer' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseModeMachineAddresses$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponseModeMachineAddresses, ); /** @internal */ export const DeploymentDetailResponsePublicEndpointTargetMachineAddresses$inboundSchema: z.ZodType< DeploymentDetailResponsePublicEndpointTargetMachineAddresses, unknown > = z.object({ mode: DeploymentDetailResponseModeMachineAddresses$inboundSchema, }); export function deploymentDetailResponsePublicEndpointTargetMachineAddressesFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePublicEndpointTargetMachineAddresses, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePublicEndpointTargetMachineAddresses$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePublicEndpointTargetMachineAddresses' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePublicEndpointTargetUnion$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentDetailResponsePublicEndpointTargetLoadBalancer$inboundSchema ), z.lazy(() => DeploymentDetailResponsePublicEndpointTargetMachineAddresses$inboundSchema ), z.any(), ]); export function deploymentDetailResponsePublicEndpointTargetUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePublicEndpointTargetUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePublicEndpointTargetUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePublicEndpointTargetUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseDomains$inboundSchema: z.ZodType< DeploymentDetailResponseDomains, unknown > = z.object({ customDomains: z.nullable( z.record( z.string(), z.lazy(() => DeploymentDetailResponseCustomDomains$inboundSchema), ), ).optional(), publicEndpointTarget: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePublicEndpointTargetLoadBalancer$inboundSchema ), z.lazy(() => DeploymentDetailResponsePublicEndpointTargetMachineAddresses$inboundSchema ), z.any(), ]), ).optional(), }); export function deploymentDetailResponseDomainsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseDomains$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseDomains' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseDomainsUnion$inboundSchema: z.ZodType< DeploymentDetailResponseDomainsUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseDomains$inboundSchema), z.any(), ]); export function deploymentDetailResponseDomainsUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseDomainsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseDomainsUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseExternalBindings$inboundSchema: z.ZodType< DeploymentDetailResponseExternalBindings, unknown > = z.object({}); export function deploymentDetailResponseExternalBindingsFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseExternalBindings, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseExternalBindings$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseExternalBindings' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseHeartbeats$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseHeartbeats > = z.enum(DeploymentDetailResponseHeartbeats); /** @internal */ export const DeploymentDetailResponseCloud$inboundSchema: z.ZodType< DeploymentDetailResponseCloud, unknown > = z.object({ accountId: z.nullable(z.string()).optional(), clusterId: z.nullable(z.string()).optional(), clusterName: z.nullable(z.string()).optional(), projectId: z.nullable(z.string()).optional(), region: z.nullable(z.string()).optional(), resourceGroup: z.nullable(z.string()).optional(), subscriptionId: z.nullable(z.string()).optional(), }); export function deploymentDetailResponseCloudFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseCloud$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseCloud' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseCloudUnion$inboundSchema: z.ZodType< DeploymentDetailResponseCloudUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseCloud$inboundSchema), z.any(), ]); export function deploymentDetailResponseCloudUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseCloudUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseCloudUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseOwnership$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseOwnership > = z.enum(DeploymentDetailResponseOwnership); /** @internal */ export const DeploymentDetailResponseCluster$inboundSchema: z.ZodType< DeploymentDetailResponseCluster, unknown > = z.object({ cloud: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseCloud$inboundSchema), z.any(), ]), ).optional(), namespace: z.nullable(z.string()).optional(), ownership: DeploymentDetailResponseOwnership$inboundSchema, }); export function deploymentDetailResponseClusterFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseCluster$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseCluster' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseClusterUnion$inboundSchema: z.ZodType< DeploymentDetailResponseClusterUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseCluster$inboundSchema), z.any(), ]); export function deploymentDetailResponseClusterUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseClusterUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseClusterUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseCertificateNone2$inboundSchema: z.ZodType< DeploymentDetailResponseCertificateNone2, unknown > = z.object({ mode: z.literal("none"), }); export function deploymentDetailResponseCertificateNone2FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseCertificateNone2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseCertificateNone2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseCertificateNone2' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseCertificateManagedTLSSecret2$inboundSchema: z.ZodType = z .object({ mode: z.literal("managedTlsSecret"), secretNameTemplate: z.string(), }); export function deploymentDetailResponseCertificateManagedTLSSecret2FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseCertificateManagedTLSSecret2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseCertificateManagedTLSSecret2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseCertificateManagedTLSSecret2' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseCertificateAwsAcmArn2$inboundSchema: z.ZodType = z.object({ certificateArn: z.string(), mode: z.literal("awsAcmArn"), }); export function deploymentDetailResponseCertificateAwsAcmArn2FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseCertificateAwsAcmArn2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseCertificateAwsAcmArn2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseCertificateAwsAcmArn2' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseCertificateManagedAcmImport2$inboundSchema: z.ZodType = z .object({ mode: z.literal("managedAcmImport"), region: z.nullable(z.string()).optional(), tags: z.record(z.string(), z.string()).optional(), }); export function deploymentDetailResponseCertificateManagedAcmImport2FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseCertificateManagedAcmImport2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseCertificateManagedAcmImport2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseCertificateManagedAcmImport2' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseCertificateTLSSecretRef2$inboundSchema: z.ZodType = z .object({ namespace: z.nullable(z.string()).optional(), secretName: z.string(), mode: z.literal("tlsSecretRef"), }); export function deploymentDetailResponseCertificateTLSSecretRef2FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseCertificateTLSSecretRef2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseCertificateTLSSecretRef2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseCertificateTLSSecretRef2' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseCertificateUnion2$inboundSchema: z.ZodType< DeploymentDetailResponseCertificateUnion2, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseCertificateTLSSecretRef2$inboundSchema), z.lazy(() => DeploymentDetailResponseCertificateManagedAcmImport2$inboundSchema ), z.lazy(() => DeploymentDetailResponseCertificateAwsAcmArn2$inboundSchema), z.lazy(() => DeploymentDetailResponseCertificateManagedTLSSecret2$inboundSchema ), z.lazy(() => DeploymentDetailResponseCertificateNone2$inboundSchema), ]); export function deploymentDetailResponseCertificateUnion2FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseCertificateUnion2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseCertificateUnion2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseCertificateUnion2' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseModeCustom$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseModeCustom > = z.enum(DeploymentDetailResponseModeCustom); /** @internal */ export const DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum4$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum4 > = z.enum( DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum4, ); /** @internal */ export const DeploymentDetailResponseProviderAzureApplicationGatewayForContainers4$inboundSchema: z.ZodType< DeploymentDetailResponseProviderAzureApplicationGatewayForContainers4, unknown > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum4$inboundSchema, }); export function deploymentDetailResponseProviderAzureApplicationGatewayForContainers4FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseProviderAzureApplicationGatewayForContainers4, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseProviderAzureApplicationGatewayForContainers4$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseProviderAzureApplicationGatewayForContainers4' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseProviderGkeGatewayEnum4$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponseProviderGkeGatewayEnum4, ); /** @internal */ export const DeploymentDetailResponseProviderGkeGateway4$inboundSchema: z.ZodType = z.object({ provider: DeploymentDetailResponseProviderGkeGatewayEnum4$inboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function deploymentDetailResponseProviderGkeGateway4FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseProviderGkeGateway4, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseProviderGkeGateway4$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseProviderGkeGateway4' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseProviderAwsAlbEnum4$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponseProviderAwsAlbEnum4, ); /** @internal */ export const DeploymentDetailResponseProviderAwsAlb4$inboundSchema: z.ZodType< DeploymentDetailResponseProviderAwsAlb4, unknown > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: DeploymentDetailResponseProviderAwsAlbEnum4$inboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function deploymentDetailResponseProviderAwsAlb4FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseProviderAwsAlb4, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseProviderAwsAlb4$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseProviderAwsAlb4' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseProviderUnion4$inboundSchema: z.ZodType< DeploymentDetailResponseProviderUnion4, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseProviderAwsAlb4$inboundSchema), z.lazy(() => DeploymentDetailResponseProviderAzureApplicationGatewayForContainers4$inboundSchema ), z.lazy(() => DeploymentDetailResponseProviderGkeGateway4$inboundSchema), z.any(), ]); export function deploymentDetailResponseProviderUnion4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseProviderUnion4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseProviderUnion4' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseRouteGateway2$inboundSchema: z.ZodType< DeploymentDetailResponseRouteGateway2, unknown > = z.object({ annotations: z.record(z.string(), z.string()).optional(), controller: z.nullable(z.string()).optional(), gatewayClassName: z.string(), labels: z.record(z.string(), z.string()).optional(), listenerPort: z.int(), provider: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseProviderAwsAlb4$inboundSchema), z.lazy(() => DeploymentDetailResponseProviderAzureApplicationGatewayForContainers4$inboundSchema ), z.lazy(() => DeploymentDetailResponseProviderGkeGateway4$inboundSchema), z.any(), ]), ).optional(), routeApi: z.literal("gateway"), }); export function deploymentDetailResponseRouteGateway2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseRouteGateway2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseRouteGateway2' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum3$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum3 > = z.enum( DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum3, ); /** @internal */ export const DeploymentDetailResponseProviderAzureApplicationGatewayForContainers3$inboundSchema: z.ZodType< DeploymentDetailResponseProviderAzureApplicationGatewayForContainers3, unknown > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum3$inboundSchema, }); export function deploymentDetailResponseProviderAzureApplicationGatewayForContainers3FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseProviderAzureApplicationGatewayForContainers3, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseProviderAzureApplicationGatewayForContainers3$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseProviderAzureApplicationGatewayForContainers3' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseProviderGkeGatewayEnum3$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponseProviderGkeGatewayEnum3, ); /** @internal */ export const DeploymentDetailResponseProviderGkeGateway3$inboundSchema: z.ZodType = z.object({ provider: DeploymentDetailResponseProviderGkeGatewayEnum3$inboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function deploymentDetailResponseProviderGkeGateway3FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseProviderGkeGateway3, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseProviderGkeGateway3$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseProviderGkeGateway3' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseProviderAwsAlbEnum3$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponseProviderAwsAlbEnum3, ); /** @internal */ export const DeploymentDetailResponseProviderAwsAlb3$inboundSchema: z.ZodType< DeploymentDetailResponseProviderAwsAlb3, unknown > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: DeploymentDetailResponseProviderAwsAlbEnum3$inboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function deploymentDetailResponseProviderAwsAlb3FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseProviderAwsAlb3, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseProviderAwsAlb3$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseProviderAwsAlb3' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseProviderUnion3$inboundSchema: z.ZodType< DeploymentDetailResponseProviderUnion3, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseProviderAwsAlb3$inboundSchema), z.lazy(() => DeploymentDetailResponseProviderAzureApplicationGatewayForContainers3$inboundSchema ), z.lazy(() => DeploymentDetailResponseProviderGkeGateway3$inboundSchema), z.any(), ]); export function deploymentDetailResponseProviderUnion3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseProviderUnion3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseProviderUnion3' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseRouteIngress2$inboundSchema: z.ZodType< DeploymentDetailResponseRouteIngress2, unknown > = z.object({ annotations: z.record(z.string(), z.string()).optional(), controller: z.nullable(z.string()).optional(), ingressClassName: z.string(), labels: z.record(z.string(), z.string()).optional(), provider: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseProviderAwsAlb3$inboundSchema), z.lazy(() => DeploymentDetailResponseProviderAzureApplicationGatewayForContainers3$inboundSchema ), z.lazy(() => DeploymentDetailResponseProviderGkeGateway3$inboundSchema), z.any(), ]), ).optional(), routeApi: z.literal("ingress"), }); export function deploymentDetailResponseRouteIngress2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseRouteIngress2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseRouteIngress2' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseRouteUnion2$inboundSchema: z.ZodType< DeploymentDetailResponseRouteUnion2, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseRouteIngress2$inboundSchema), z.lazy(() => DeploymentDetailResponseRouteGateway2$inboundSchema), ]); export function deploymentDetailResponseRouteUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseRouteUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseRouteUnion2' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseExposureCustom$inboundSchema: z.ZodType< DeploymentDetailResponseExposureCustom, unknown > = z.object({ certificate: z.union([ z.lazy(() => DeploymentDetailResponseCertificateTLSSecretRef2$inboundSchema ), z.lazy(() => DeploymentDetailResponseCertificateManagedAcmImport2$inboundSchema ), z.lazy(() => DeploymentDetailResponseCertificateAwsAcmArn2$inboundSchema), z.lazy(() => DeploymentDetailResponseCertificateManagedTLSSecret2$inboundSchema ), z.lazy(() => DeploymentDetailResponseCertificateNone2$inboundSchema), ]), domain: z.string(), mode: DeploymentDetailResponseModeCustom$inboundSchema, route: z.union([ z.lazy(() => DeploymentDetailResponseRouteIngress2$inboundSchema), z.lazy(() => DeploymentDetailResponseRouteGateway2$inboundSchema), ]), }); export function deploymentDetailResponseExposureCustomFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseExposureCustom$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseExposureCustom' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseCertificateNone1$inboundSchema: z.ZodType< DeploymentDetailResponseCertificateNone1, unknown > = z.object({ mode: z.literal("none"), }); export function deploymentDetailResponseCertificateNone1FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseCertificateNone1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseCertificateNone1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseCertificateNone1' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseCertificateManagedTLSSecret1$inboundSchema: z.ZodType = z .object({ mode: z.literal("managedTlsSecret"), secretNameTemplate: z.string(), }); export function deploymentDetailResponseCertificateManagedTLSSecret1FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseCertificateManagedTLSSecret1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseCertificateManagedTLSSecret1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseCertificateManagedTLSSecret1' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseCertificateAwsAcmArn1$inboundSchema: z.ZodType = z.object({ certificateArn: z.string(), mode: z.literal("awsAcmArn"), }); export function deploymentDetailResponseCertificateAwsAcmArn1FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseCertificateAwsAcmArn1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseCertificateAwsAcmArn1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseCertificateAwsAcmArn1' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseCertificateManagedAcmImport1$inboundSchema: z.ZodType = z .object({ mode: z.literal("managedAcmImport"), region: z.nullable(z.string()).optional(), tags: z.record(z.string(), z.string()).optional(), }); export function deploymentDetailResponseCertificateManagedAcmImport1FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseCertificateManagedAcmImport1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseCertificateManagedAcmImport1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseCertificateManagedAcmImport1' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseCertificateTLSSecretRef1$inboundSchema: z.ZodType = z .object({ namespace: z.nullable(z.string()).optional(), secretName: z.string(), mode: z.literal("tlsSecretRef"), }); export function deploymentDetailResponseCertificateTLSSecretRef1FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseCertificateTLSSecretRef1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseCertificateTLSSecretRef1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseCertificateTLSSecretRef1' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseCertificateUnion1$inboundSchema: z.ZodType< DeploymentDetailResponseCertificateUnion1, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseCertificateTLSSecretRef1$inboundSchema), z.lazy(() => DeploymentDetailResponseCertificateManagedAcmImport1$inboundSchema ), z.lazy(() => DeploymentDetailResponseCertificateAwsAcmArn1$inboundSchema), z.lazy(() => DeploymentDetailResponseCertificateManagedTLSSecret1$inboundSchema ), z.lazy(() => DeploymentDetailResponseCertificateNone1$inboundSchema), ]); export function deploymentDetailResponseCertificateUnion1FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseCertificateUnion1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseCertificateUnion1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseCertificateUnion1' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseModeGenerated$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseModeGenerated > = z.enum(DeploymentDetailResponseModeGenerated); /** @internal */ export const DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum2$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum2 > = z.enum( DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum2, ); /** @internal */ export const DeploymentDetailResponseProviderAzureApplicationGatewayForContainers2$inboundSchema: z.ZodType< DeploymentDetailResponseProviderAzureApplicationGatewayForContainers2, unknown > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum2$inboundSchema, }); export function deploymentDetailResponseProviderAzureApplicationGatewayForContainers2FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseProviderAzureApplicationGatewayForContainers2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseProviderAzureApplicationGatewayForContainers2$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseProviderAzureApplicationGatewayForContainers2' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseProviderGkeGatewayEnum2$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponseProviderGkeGatewayEnum2, ); /** @internal */ export const DeploymentDetailResponseProviderGkeGateway2$inboundSchema: z.ZodType = z.object({ provider: DeploymentDetailResponseProviderGkeGatewayEnum2$inboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function deploymentDetailResponseProviderGkeGateway2FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseProviderGkeGateway2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseProviderGkeGateway2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseProviderGkeGateway2' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseProviderAwsAlbEnum2$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponseProviderAwsAlbEnum2, ); /** @internal */ export const DeploymentDetailResponseProviderAwsAlb2$inboundSchema: z.ZodType< DeploymentDetailResponseProviderAwsAlb2, unknown > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: DeploymentDetailResponseProviderAwsAlbEnum2$inboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function deploymentDetailResponseProviderAwsAlb2FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseProviderAwsAlb2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseProviderAwsAlb2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseProviderAwsAlb2' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseProviderUnion2$inboundSchema: z.ZodType< DeploymentDetailResponseProviderUnion2, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseProviderAwsAlb2$inboundSchema), z.lazy(() => DeploymentDetailResponseProviderAzureApplicationGatewayForContainers2$inboundSchema ), z.lazy(() => DeploymentDetailResponseProviderGkeGateway2$inboundSchema), z.any(), ]); export function deploymentDetailResponseProviderUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseProviderUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseProviderUnion2' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseRouteGateway1$inboundSchema: z.ZodType< DeploymentDetailResponseRouteGateway1, unknown > = z.object({ annotations: z.record(z.string(), z.string()).optional(), controller: z.nullable(z.string()).optional(), gatewayClassName: z.string(), labels: z.record(z.string(), z.string()).optional(), listenerPort: z.int(), provider: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseProviderAwsAlb2$inboundSchema), z.lazy(() => DeploymentDetailResponseProviderAzureApplicationGatewayForContainers2$inboundSchema ), z.lazy(() => DeploymentDetailResponseProviderGkeGateway2$inboundSchema), z.any(), ]), ).optional(), routeApi: z.literal("gateway"), }); export function deploymentDetailResponseRouteGateway1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseRouteGateway1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseRouteGateway1' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum1$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum1 > = z.enum( DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum1, ); /** @internal */ export const DeploymentDetailResponseProviderAzureApplicationGatewayForContainers1$inboundSchema: z.ZodType< DeploymentDetailResponseProviderAzureApplicationGatewayForContainers1, unknown > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: DeploymentDetailResponseProviderAzureApplicationGatewayForContainersEnum1$inboundSchema, }); export function deploymentDetailResponseProviderAzureApplicationGatewayForContainers1FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseProviderAzureApplicationGatewayForContainers1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseProviderAzureApplicationGatewayForContainers1$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseProviderAzureApplicationGatewayForContainers1' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseProviderGkeGatewayEnum1$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponseProviderGkeGatewayEnum1, ); /** @internal */ export const DeploymentDetailResponseProviderGkeGateway1$inboundSchema: z.ZodType = z.object({ provider: DeploymentDetailResponseProviderGkeGatewayEnum1$inboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function deploymentDetailResponseProviderGkeGateway1FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseProviderGkeGateway1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseProviderGkeGateway1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseProviderGkeGateway1' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseProviderAwsAlbEnum1$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponseProviderAwsAlbEnum1, ); /** @internal */ export const DeploymentDetailResponseProviderAwsAlb1$inboundSchema: z.ZodType< DeploymentDetailResponseProviderAwsAlb1, unknown > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: DeploymentDetailResponseProviderAwsAlbEnum1$inboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function deploymentDetailResponseProviderAwsAlb1FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseProviderAwsAlb1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseProviderAwsAlb1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseProviderAwsAlb1' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseProviderUnion1$inboundSchema: z.ZodType< DeploymentDetailResponseProviderUnion1, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseProviderAwsAlb1$inboundSchema), z.lazy(() => DeploymentDetailResponseProviderAzureApplicationGatewayForContainers1$inboundSchema ), z.lazy(() => DeploymentDetailResponseProviderGkeGateway1$inboundSchema), z.any(), ]); export function deploymentDetailResponseProviderUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseProviderUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseProviderUnion1' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseRouteIngress1$inboundSchema: z.ZodType< DeploymentDetailResponseRouteIngress1, unknown > = z.object({ annotations: z.record(z.string(), z.string()).optional(), controller: z.nullable(z.string()).optional(), ingressClassName: z.string(), labels: z.record(z.string(), z.string()).optional(), provider: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseProviderAwsAlb1$inboundSchema), z.lazy(() => DeploymentDetailResponseProviderAzureApplicationGatewayForContainers1$inboundSchema ), z.lazy(() => DeploymentDetailResponseProviderGkeGateway1$inboundSchema), z.any(), ]), ).optional(), routeApi: z.literal("ingress"), }); export function deploymentDetailResponseRouteIngress1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseRouteIngress1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseRouteIngress1' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseRouteUnion1$inboundSchema: z.ZodType< DeploymentDetailResponseRouteUnion1, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseRouteIngress1$inboundSchema), z.lazy(() => DeploymentDetailResponseRouteGateway1$inboundSchema), ]); export function deploymentDetailResponseRouteUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseRouteUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseRouteUnion1' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseExposureGenerated$inboundSchema: z.ZodType< DeploymentDetailResponseExposureGenerated, unknown > = z.object({ certificate: z.union([ z.lazy(() => DeploymentDetailResponseCertificateTLSSecretRef1$inboundSchema ), z.lazy(() => DeploymentDetailResponseCertificateManagedAcmImport1$inboundSchema ), z.lazy(() => DeploymentDetailResponseCertificateAwsAcmArn1$inboundSchema), z.lazy(() => DeploymentDetailResponseCertificateManagedTLSSecret1$inboundSchema ), z.lazy(() => DeploymentDetailResponseCertificateNone1$inboundSchema), ]), mode: DeploymentDetailResponseModeGenerated$inboundSchema, route: z.union([ z.lazy(() => DeploymentDetailResponseRouteIngress1$inboundSchema), z.lazy(() => DeploymentDetailResponseRouteGateway1$inboundSchema), ]), }); export function deploymentDetailResponseExposureGeneratedFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseExposureGenerated, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseExposureGenerated$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseExposureGenerated' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseModeDisabled$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseModeDisabled > = z.enum(DeploymentDetailResponseModeDisabled); /** @internal */ export const DeploymentDetailResponseExposureDisabled$inboundSchema: z.ZodType< DeploymentDetailResponseExposureDisabled, unknown > = z.object({ mode: DeploymentDetailResponseModeDisabled$inboundSchema, }); export function deploymentDetailResponseExposureDisabledFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseExposureDisabled, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseExposureDisabled$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseExposureDisabled' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseExposureUnion$inboundSchema: z.ZodType< DeploymentDetailResponseExposureUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseExposureCustom$inboundSchema), z.lazy(() => DeploymentDetailResponseExposureGenerated$inboundSchema), z.lazy(() => DeploymentDetailResponseExposureDisabled$inboundSchema), z.any(), ]); export function deploymentDetailResponseExposureUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseExposureUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseExposureUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseKubernetes$inboundSchema: z.ZodType< DeploymentDetailResponseKubernetes, unknown > = z.object({ cluster: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseCluster$inboundSchema), z.any(), ]), ).optional(), exposure: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseExposureCustom$inboundSchema), z.lazy(() => DeploymentDetailResponseExposureGenerated$inboundSchema), z.lazy(() => DeploymentDetailResponseExposureDisabled$inboundSchema), z.any(), ]), ).optional(), }); export function deploymentDetailResponseKubernetesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseKubernetes$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseKubernetes' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseKubernetesUnion$inboundSchema: z.ZodType< DeploymentDetailResponseKubernetesUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseKubernetes$inboundSchema), z.any(), ]); export function deploymentDetailResponseKubernetesUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseKubernetesUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseKubernetesUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseKubernetesUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseTypeByoVnetAzure$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseTypeByoVnetAzure > = z.enum(DeploymentDetailResponseTypeByoVnetAzure); /** @internal */ export const DeploymentDetailResponseNetworkByoVnetAzure$inboundSchema: z.ZodType = z.object({ application_gateway_subnet_name: z.nullable(z.string()).optional(), private_endpoint_subnet_name: z.nullable(z.string()).optional(), private_subnet_name: z.string(), public_subnet_name: z.string(), type: DeploymentDetailResponseTypeByoVnetAzure$inboundSchema, vnet_resource_id: z.string(), }).transform((v) => { return remap$(v, { "application_gateway_subnet_name": "applicationGatewaySubnetName", "private_endpoint_subnet_name": "privateEndpointSubnetName", "private_subnet_name": "privateSubnetName", "public_subnet_name": "publicSubnetName", "vnet_resource_id": "vnetResourceId", }); }); export function deploymentDetailResponseNetworkByoVnetAzureFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseNetworkByoVnetAzure, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseNetworkByoVnetAzure$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseNetworkByoVnetAzure' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseTypeByoVpcGcp$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseTypeByoVpcGcp > = z.enum(DeploymentDetailResponseTypeByoVpcGcp); /** @internal */ export const DeploymentDetailResponseNetworkByoVpcGcp$inboundSchema: z.ZodType< DeploymentDetailResponseNetworkByoVpcGcp, unknown > = z.object({ network_name: z.string(), region: z.string(), subnet_name: z.string(), type: DeploymentDetailResponseTypeByoVpcGcp$inboundSchema, }).transform((v) => { return remap$(v, { "network_name": "networkName", "subnet_name": "subnetName", }); }); export function deploymentDetailResponseNetworkByoVpcGcpFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseNetworkByoVpcGcp, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseNetworkByoVpcGcp$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseNetworkByoVpcGcp' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseTypeByoVpcAws$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseTypeByoVpcAws > = z.enum(DeploymentDetailResponseTypeByoVpcAws); /** @internal */ export const DeploymentDetailResponseNetworkByoVpcAws$inboundSchema: z.ZodType< DeploymentDetailResponseNetworkByoVpcAws, unknown > = z.object({ private_subnet_ids: z.array(z.string()), public_subnet_ids: z.array(z.string()), security_group_ids: z.array(z.string()).optional(), type: DeploymentDetailResponseTypeByoVpcAws$inboundSchema, vpc_id: z.string(), }).transform((v) => { return remap$(v, { "private_subnet_ids": "privateSubnetIds", "public_subnet_ids": "publicSubnetIds", "security_group_ids": "securityGroupIds", "vpc_id": "vpcId", }); }); export function deploymentDetailResponseNetworkByoVpcAwsFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseNetworkByoVpcAws, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseNetworkByoVpcAws$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseNetworkByoVpcAws' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseTypeCreate$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseTypeCreate > = z.enum(DeploymentDetailResponseTypeCreate); /** @internal */ export const DeploymentDetailResponseNetworkCreate$inboundSchema: z.ZodType< DeploymentDetailResponseNetworkCreate, unknown > = z.object({ availability_zones: z.int().optional(), cidr: z.nullable(z.string()).optional(), type: DeploymentDetailResponseTypeCreate$inboundSchema, }).transform((v) => { return remap$(v, { "availability_zones": "availabilityZones", }); }); export function deploymentDetailResponseNetworkCreateFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseNetworkCreate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseNetworkCreate' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseTypeUseDefault$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseTypeUseDefault > = z.enum(DeploymentDetailResponseTypeUseDefault); /** @internal */ export const DeploymentDetailResponseNetworkUseDefault$inboundSchema: z.ZodType< DeploymentDetailResponseNetworkUseDefault, unknown > = z.object({ type: DeploymentDetailResponseTypeUseDefault$inboundSchema, }); export function deploymentDetailResponseNetworkUseDefaultFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseNetworkUseDefault, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseNetworkUseDefault$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseNetworkUseDefault' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseNetworkUnion$inboundSchema: z.ZodType< DeploymentDetailResponseNetworkUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseNetworkByoVpcAws$inboundSchema), z.lazy(() => DeploymentDetailResponseNetworkByoVpcGcp$inboundSchema), z.lazy(() => DeploymentDetailResponseNetworkByoVnetAzure$inboundSchema), z.lazy(() => DeploymentDetailResponseNetworkUseDefault$inboundSchema), z.lazy(() => DeploymentDetailResponseNetworkCreate$inboundSchema), z.any(), ]); export function deploymentDetailResponseNetworkUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseNetworkUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseNetworkUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseTelemetry$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseTelemetry > = z.enum(DeploymentDetailResponseTelemetry); /** @internal */ export const DeploymentDetailResponseUpdates$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseUpdates > = z.enum(DeploymentDetailResponseUpdates); /** @internal */ export const DeploymentDetailResponseStackSettings$inboundSchema: z.ZodType< DeploymentDetailResponseStackSettings, unknown > = z.object({ compute: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseCompute$inboundSchema), z.any(), ]), ).optional(), deploymentModel: DeploymentDetailResponseDeploymentModel$inboundSchema .optional(), domains: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseDomains$inboundSchema), z.any(), ]), ).optional(), externalBindings: z.nullable( z.lazy(() => DeploymentDetailResponseExternalBindings$inboundSchema), ).optional(), heartbeats: DeploymentDetailResponseHeartbeats$inboundSchema.optional(), kubernetes: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseKubernetes$inboundSchema), z.any(), ]), ).optional(), network: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseNetworkByoVpcAws$inboundSchema), z.lazy(() => DeploymentDetailResponseNetworkByoVpcGcp$inboundSchema), z.lazy(() => DeploymentDetailResponseNetworkByoVnetAzure$inboundSchema), z.lazy(() => DeploymentDetailResponseNetworkUseDefault$inboundSchema), z.lazy(() => DeploymentDetailResponseNetworkCreate$inboundSchema), z.any(), ]), ).optional(), publicEndpoints: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), telemetry: DeploymentDetailResponseTelemetry$inboundSchema.optional(), updates: DeploymentDetailResponseUpdates$inboundSchema.optional(), }); export function deploymentDetailResponseStackSettingsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseStackSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseStackSettings' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseStackStatePlatform$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponseStackStatePlatform, ); /** @internal */ export const DeploymentDetailResponseStackStateConfig$inboundSchema: z.ZodType< DeploymentDetailResponseStackStateConfig, unknown > = collectExtraKeys$( z.object({ id: z.string(), type: z.string(), }).catchall(z.any()), "additionalProperties", true, ); export function deploymentDetailResponseStackStateConfigFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseStackStateConfig, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseStackStateConfig$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseStackStateConfig' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseControllerPlatformEnum$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponseControllerPlatformEnum, ); /** @internal */ export const DeploymentDetailResponseControllerPlatformUnion$inboundSchema: z.ZodType = z.union( [DeploymentDetailResponseControllerPlatformEnum$inboundSchema, z.any()], ); export function deploymentDetailResponseControllerPlatformUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseControllerPlatformUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseControllerPlatformUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseControllerPlatformUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseStackStateDependency$inboundSchema: z.ZodType = z.object({ id: z.string(), type: z.string(), }); export function deploymentDetailResponseStackStateDependencyFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseStackStateDependency, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseStackStateDependency$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseStackStateDependency' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseErrorStackState$inboundSchema: z.ZodType< DeploymentDetailResponseErrorStackState, unknown > = z.object({ code: z.string(), context: z.nullable(z.any()).optional(), hint: z.nullable(z.string()).optional(), httpStatusCode: z.nullable(z.int()).optional(), internal: z.boolean(), message: z.string(), retryable: z.boolean().default(false), source: z.nullable(z.any()).optional(), }); export function deploymentDetailResponseErrorStackStateFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseErrorStackState, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseErrorStackState$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseErrorStackState' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseErrorUnion$inboundSchema: z.ZodType< DeploymentDetailResponseErrorUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseErrorStackState$inboundSchema), z.any(), ]); export function deploymentDetailResponseErrorUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseErrorUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseErrorUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseLifecycleStackStateEnum$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponseLifecycleStackStateEnum, ); /** @internal */ export const DeploymentDetailResponseLifecycleUnion$inboundSchema: z.ZodType< DeploymentDetailResponseLifecycleUnion, unknown > = z.union([ DeploymentDetailResponseLifecycleStackStateEnum$inboundSchema, z.any(), ]); export function deploymentDetailResponseLifecycleUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseLifecycleUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseLifecycleUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseOutputs$inboundSchema: z.ZodType< DeploymentDetailResponseOutputs, unknown > = collectExtraKeys$( z.object({ type: z.string(), }).catchall(z.any()), "additionalProperties", true, ); export function deploymentDetailResponseOutputsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseOutputs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseOutputs' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseOutputsUnion$inboundSchema: z.ZodType< DeploymentDetailResponseOutputsUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponseOutputs$inboundSchema), z.any(), ]); export function deploymentDetailResponseOutputsUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseOutputsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseOutputsUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreviousConfig$inboundSchema: z.ZodType< DeploymentDetailResponsePreviousConfig, unknown > = collectExtraKeys$( z.object({ id: z.string(), type: z.string(), }).catchall(z.any()), "additionalProperties", true, ); export function deploymentDetailResponsePreviousConfigFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponsePreviousConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreviousConfig' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreviousConfigUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentDetailResponsePreviousConfig$inboundSchema), z.any(), ]); export function deploymentDetailResponsePreviousConfigUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreviousConfigUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreviousConfigUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreviousConfigUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseStackStateStatus$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseStackStateStatus > = z.enum(DeploymentDetailResponseStackStateStatus); /** @internal */ export const DeploymentDetailResponseStackStateResources$inboundSchema: z.ZodType = z.object({ _internal: z.nullable(z.any()).optional(), config: z.lazy(() => DeploymentDetailResponseStackStateConfig$inboundSchema ), controllerPlatform: z.nullable( z.union([ DeploymentDetailResponseControllerPlatformEnum$inboundSchema, z.any(), ]), ).optional(), dependencies: z.array( z.lazy(() => DeploymentDetailResponseStackStateDependency$inboundSchema), ).optional(), error: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseErrorStackState$inboundSchema), z.any(), ]), ).optional(), lastFailedState: z.nullable(z.any()).optional(), lifecycle: z.nullable( z.union([ DeploymentDetailResponseLifecycleStackStateEnum$inboundSchema, z.any(), ]), ).optional(), outputs: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseOutputs$inboundSchema), z.any(), ]), ).optional(), previousConfig: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePreviousConfig$inboundSchema), z.any(), ]), ).optional(), remoteBindingParams: z.nullable(z.any()).optional(), retryAttempt: z.int().optional(), status: DeploymentDetailResponseStackStateStatus$inboundSchema, type: z.string(), }).transform((v) => { return remap$(v, { "_internal": "internal", }); }); export function deploymentDetailResponseStackStateResourcesFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseStackStateResources, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseStackStateResources$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseStackStateResources' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseStackState$inboundSchema: z.ZodType< DeploymentDetailResponseStackState, unknown > = z.object({ platform: DeploymentDetailResponseStackStatePlatform$inboundSchema, resourcePrefix: z.string(), resources: z.record( z.string(), z.lazy(() => DeploymentDetailResponseStackStateResources$inboundSchema), ), }); export function deploymentDetailResponseStackStateFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseStackState$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseStackState' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseInitialSetupAuthority$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponseInitialSetupAuthority, ); /** @internal */ export const DeploymentDetailResponsePendingPreparedStackTypeStringList$inboundSchema: z.ZodEnum = z.enum(DeploymentDetailResponsePendingPreparedStackTypeStringList); /** @internal */ export const DeploymentDetailResponsePendingPreparedStackDefaultStringList$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackDefaultStringList, unknown > = z.object({ type: DeploymentDetailResponsePendingPreparedStackTypeStringList$inboundSchema, value: z.array(z.string()), }); export function deploymentDetailResponsePendingPreparedStackDefaultStringListFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackDefaultStringList, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackDefaultStringList$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackDefaultStringList' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackTypeBoolean$inboundSchema: z.ZodEnum = z .enum(DeploymentDetailResponsePendingPreparedStackTypeBoolean); /** @internal */ export const DeploymentDetailResponsePendingPreparedStackDefaultBoolean$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackDefaultBoolean, unknown > = z.object({ type: DeploymentDetailResponsePendingPreparedStackTypeBoolean$inboundSchema, value: z.boolean(), }); export function deploymentDetailResponsePendingPreparedStackDefaultBooleanFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackDefaultBoolean, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackDefaultBoolean$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackDefaultBoolean' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackTypeNumber$inboundSchema: z.ZodEnum = z .enum(DeploymentDetailResponsePendingPreparedStackTypeNumber); /** @internal */ export const DeploymentDetailResponsePendingPreparedStackDefaultNumber$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackDefaultNumber, unknown > = z.object({ type: DeploymentDetailResponsePendingPreparedStackTypeNumber$inboundSchema, value: z.string(), }); export function deploymentDetailResponsePendingPreparedStackDefaultNumberFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackDefaultNumber, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackDefaultNumber$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackDefaultNumber' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackTypeString$inboundSchema: z.ZodEnum = z .enum(DeploymentDetailResponsePendingPreparedStackTypeString); /** @internal */ export const DeploymentDetailResponsePendingPreparedStackDefaultString$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackDefaultString, unknown > = z.object({ type: DeploymentDetailResponsePendingPreparedStackTypeString$inboundSchema, value: z.string(), }); export function deploymentDetailResponsePendingPreparedStackDefaultStringFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackDefaultString, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackDefaultString$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackDefaultString' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackDefaultUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackDefaultString$inboundSchema ), z.lazy(() => DeploymentDetailResponsePendingPreparedStackDefaultNumber$inboundSchema ), z.lazy(() => DeploymentDetailResponsePendingPreparedStackDefaultBoolean$inboundSchema ), z.lazy(() => DeploymentDetailResponsePendingPreparedStackDefaultStringList$inboundSchema ), z.any(), ]); export function deploymentDetailResponsePendingPreparedStackDefaultUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackDefaultUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackDefaultUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackDefaultUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackTypeEnvEnum$inboundSchema: z.ZodEnum = z .enum(DeploymentDetailResponsePendingPreparedStackTypeEnvEnum); /** @internal */ export const DeploymentDetailResponsePendingPreparedStackTypeUnion$inboundSchema: z.ZodType = z .union([ DeploymentDetailResponsePendingPreparedStackTypeEnvEnum$inboundSchema, z.any(), ]); export function deploymentDetailResponsePendingPreparedStackTypeUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackTypeUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackTypeUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackTypeUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackEnv$inboundSchema: z.ZodType = z .object({ name: z.string(), targetResources: z.nullable(z.array(z.string())).optional(), type: z.nullable( z.union([ DeploymentDetailResponsePendingPreparedStackTypeEnvEnum$inboundSchema, z.any(), ]), ).optional(), }); export function deploymentDetailResponsePendingPreparedStackEnvFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackEnv, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackEnv$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackEnv' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackKind$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponsePendingPreparedStackKind, ); /** @internal */ export const DeploymentDetailResponsePendingPreparedStackPlatform$inboundSchema: z.ZodEnum = z .enum(DeploymentDetailResponsePendingPreparedStackPlatform); /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProvidedBy$inboundSchema: z.ZodEnum = z .enum(DeploymentDetailResponsePendingPreparedStackProvidedBy); /** @internal */ export const DeploymentDetailResponsePendingPreparedStackValidation$inboundSchema: z.ZodType = z .object({ format: z.nullable(z.string()).optional(), max: z.nullable(z.string()).optional(), maxItems: z.nullable(z.int()).optional(), maxLength: z.nullable(z.int()).optional(), min: z.nullable(z.string()).optional(), minItems: z.nullable(z.int()).optional(), minLength: z.nullable(z.int()).optional(), pattern: z.nullable(z.string()).optional(), values: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePendingPreparedStackValidationFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackValidation, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackValidation$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackValidation' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackValidationUnion$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackValidationUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackValidation$inboundSchema ), z.any(), ]); export function deploymentDetailResponsePendingPreparedStackValidationUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackValidationUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackValidationUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackValidationUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackInput$inboundSchema: z.ZodType = z .object({ default: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackDefaultString$inboundSchema ), z.lazy(() => DeploymentDetailResponsePendingPreparedStackDefaultNumber$inboundSchema ), z.lazy(() => DeploymentDetailResponsePendingPreparedStackDefaultBoolean$inboundSchema ), z.lazy(() => DeploymentDetailResponsePendingPreparedStackDefaultStringList$inboundSchema ), z.any(), ]), ).optional(), description: z.string(), env: z.array( z.lazy(() => DeploymentDetailResponsePendingPreparedStackEnv$inboundSchema ), ).optional(), id: z.string(), kind: DeploymentDetailResponsePendingPreparedStackKind$inboundSchema, label: z.string(), placeholder: z.nullable(z.string()).optional(), platforms: z.nullable( z.array( DeploymentDetailResponsePendingPreparedStackPlatform$inboundSchema, ), ).optional(), providedBy: z.array( DeploymentDetailResponsePendingPreparedStackProvidedBy$inboundSchema, ), required: z.boolean(), validation: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackValidation$inboundSchema ), z.any(), ]), ).optional(), }); export function deploymentDetailResponsePendingPreparedStackInputFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackInput, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackInput$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackInput' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackManagementEnum$inboundSchema: z.ZodEnum = z.enum(DeploymentDetailResponsePendingPreparedStackManagementEnum); /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideAwResource$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideAwResource, unknown > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function deploymentDetailResponsePendingPreparedStackOverrideAwResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideAwResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideAwResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideAwResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideAwStack$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideAwStack, unknown > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function deploymentDetailResponsePendingPreparedStackOverrideAwStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideAwStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideAwStack$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideAwStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideAwBinding$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideAwBinding, unknown > = z.object({ resource: z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideAwResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideAwStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePendingPreparedStackOverrideAwBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideAwBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideAwBinding$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideAwBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideEffect$inboundSchema: z.ZodEnum = z.enum(DeploymentDetailResponsePendingPreparedStackOverrideEffect); /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideAwGrant$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideAwGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePendingPreparedStackOverrideAwGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideAwGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideAwGrant$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideAwGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideAw$inboundSchema: z.ZodType = z .object({ binding: z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideAwBinding$inboundSchema ), description: z.nullable(z.string()).optional(), effect: DeploymentDetailResponsePendingPreparedStackOverrideEffect$inboundSchema .optional(), grant: z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideAwGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }); export function deploymentDetailResponsePendingPreparedStackOverrideAwFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideAw, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideAw$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideAw' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideAzureResource$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideAzureResource, unknown > = z.object({ scope: z.string(), }); export function deploymentDetailResponsePendingPreparedStackOverrideAzureResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideAzureResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideAzureResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideAzureResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideAzureStack$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideAzureStack, unknown > = z.object({ scope: z.string(), }); export function deploymentDetailResponsePendingPreparedStackOverrideAzureStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideAzureStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideAzureStack$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideAzureStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideAzureBinding$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideAzureBinding, unknown > = z.object({ resource: z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideAzureResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideAzureStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePendingPreparedStackOverrideAzureBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideAzureBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideAzureBinding$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideAzureBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideAzureGrant$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideAzureGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePendingPreparedStackOverrideAzureGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideAzureGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideAzureGrant$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideAzureGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideAzure$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideAzure, unknown > = z.object({ binding: z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideAzureBinding$inboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideAzureGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }); export function deploymentDetailResponsePendingPreparedStackOverrideAzureFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideAzure, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideAzure$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideAzure' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideConditionResource$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideConditionResource, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function deploymentDetailResponsePendingPreparedStackOverrideConditionResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideConditionResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideConditionResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideConditionResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideResourceConditionUnion$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideResourceConditionUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideConditionResource$inboundSchema ), z.any(), ]); export function deploymentDetailResponsePendingPreparedStackOverrideResourceConditionUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideResourceConditionUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideResourceConditionUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideResourceConditionUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideGcpResource$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideGcpResource, unknown > = z.object({ condition: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideConditionResource$inboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function deploymentDetailResponsePendingPreparedStackOverrideGcpResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideGcpResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideGcpResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideGcpResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideConditionStack$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideConditionStack, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function deploymentDetailResponsePendingPreparedStackOverrideConditionStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideConditionStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideConditionStack$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideConditionStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideStackConditionUnion$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideStackConditionUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideConditionStack$inboundSchema ), z.any(), ]); export function deploymentDetailResponsePendingPreparedStackOverrideStackConditionUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideStackConditionUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideStackConditionUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideStackConditionUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideGcpStack$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideGcpStack, unknown > = z.object({ condition: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideConditionStack$inboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function deploymentDetailResponsePendingPreparedStackOverrideGcpStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideGcpStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideGcpStack$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideGcpStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideGcpBinding$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideGcpBinding, unknown > = z.object({ resource: z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideGcpResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideGcpStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePendingPreparedStackOverrideGcpBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideGcpBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideGcpBinding$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideGcpBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideGcpGrant$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideGcpGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePendingPreparedStackOverrideGcpGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideGcpGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideGcpGrant$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideGcpGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideGcp$inboundSchema: z.ZodType = z.object({ binding: z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideGcpBinding$inboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideGcpGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }); export function deploymentDetailResponsePendingPreparedStackOverrideGcpFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideGcp, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideGcp$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideGcp' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverridePlatforms$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverridePlatforms, unknown > = z.object({ aws: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideAw$inboundSchema )), ).optional(), azure: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideAzure$inboundSchema )), ).optional(), gcp: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverrideGcp$inboundSchema )), ).optional(), }); export function deploymentDetailResponsePendingPreparedStackOverridePlatformsFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverridePlatforms, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverridePlatforms$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverridePlatforms' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverride$inboundSchema: z.ZodType = z .object({ description: z.string(), id: z.string(), platforms: z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverridePlatforms$inboundSchema ), }); export function deploymentDetailResponsePendingPreparedStackOverrideFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverride, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverride$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverride' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackOverrideUnion$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackOverrideUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverride$inboundSchema ), z.string(), ]); export function deploymentDetailResponsePendingPreparedStackOverrideUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackOverrideUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackOverrideUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackOverrideUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackManagement2$inboundSchema: z.ZodType = z.object({ override: z.record( z.string(), z.array(z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackOverride$inboundSchema ), z.string(), ])), ), }); export function deploymentDetailResponsePendingPreparedStackManagement2FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackManagement2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackManagement2$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackManagement2' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendAwResource$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackExtendAwResource, unknown > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function deploymentDetailResponsePendingPreparedStackExtendAwResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendAwResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendAwResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendAwResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendAwStack$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackExtendAwStack, unknown > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function deploymentDetailResponsePendingPreparedStackExtendAwStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendAwStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendAwStack$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendAwStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendAwBinding$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackExtendAwBinding, unknown > = z.object({ resource: z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendAwResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendAwStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePendingPreparedStackExtendAwBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendAwBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendAwBinding$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendAwBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendEffect$inboundSchema: z.ZodEnum = z .enum(DeploymentDetailResponsePendingPreparedStackExtendEffect); /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendAwGrant$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackExtendAwGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePendingPreparedStackExtendAwGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendAwGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendAwGrant$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendAwGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendAw$inboundSchema: z.ZodType = z .object({ binding: z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendAwBinding$inboundSchema ), description: z.nullable(z.string()).optional(), effect: DeploymentDetailResponsePendingPreparedStackExtendEffect$inboundSchema .optional(), grant: z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendAwGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }); export function deploymentDetailResponsePendingPreparedStackExtendAwFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendAw, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendAw$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendAw' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendAzureResource$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackExtendAzureResource, unknown > = z.object({ scope: z.string(), }); export function deploymentDetailResponsePendingPreparedStackExtendAzureResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendAzureResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendAzureResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendAzureResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendAzureStack$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackExtendAzureStack, unknown > = z.object({ scope: z.string(), }); export function deploymentDetailResponsePendingPreparedStackExtendAzureStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendAzureStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendAzureStack$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendAzureStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendAzureBinding$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackExtendAzureBinding, unknown > = z.object({ resource: z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendAzureResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendAzureStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePendingPreparedStackExtendAzureBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendAzureBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendAzureBinding$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendAzureBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendAzureGrant$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackExtendAzureGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePendingPreparedStackExtendAzureGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendAzureGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendAzureGrant$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendAzureGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendAzure$inboundSchema: z.ZodType = z.object({ binding: z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendAzureBinding$inboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendAzureGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }); export function deploymentDetailResponsePendingPreparedStackExtendAzureFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendAzure, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendAzure$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendAzure' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendConditionResource$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackExtendConditionResource, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function deploymentDetailResponsePendingPreparedStackExtendConditionResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendConditionResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendConditionResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendConditionResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendResourceConditionUnion$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackExtendResourceConditionUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendConditionResource$inboundSchema ), z.any(), ]); export function deploymentDetailResponsePendingPreparedStackExtendResourceConditionUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendResourceConditionUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendResourceConditionUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendResourceConditionUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendGcpResource$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackExtendGcpResource, unknown > = z.object({ condition: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendConditionResource$inboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function deploymentDetailResponsePendingPreparedStackExtendGcpResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendGcpResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendGcpResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendGcpResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendConditionStack$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackExtendConditionStack, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function deploymentDetailResponsePendingPreparedStackExtendConditionStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendConditionStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendConditionStack$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendConditionStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendStackConditionUnion$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackExtendStackConditionUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendConditionStack$inboundSchema ), z.any(), ]); export function deploymentDetailResponsePendingPreparedStackExtendStackConditionUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendStackConditionUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendStackConditionUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendStackConditionUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendGcpStack$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackExtendGcpStack, unknown > = z.object({ condition: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendConditionStack$inboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function deploymentDetailResponsePendingPreparedStackExtendGcpStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendGcpStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendGcpStack$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendGcpStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendGcpBinding$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackExtendGcpBinding, unknown > = z.object({ resource: z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendGcpResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendGcpStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePendingPreparedStackExtendGcpBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendGcpBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendGcpBinding$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendGcpBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendGcpGrant$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackExtendGcpGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePendingPreparedStackExtendGcpGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendGcpGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendGcpGrant$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendGcpGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendGcp$inboundSchema: z.ZodType = z .object({ binding: z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendGcpBinding$inboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendGcpGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }); export function deploymentDetailResponsePendingPreparedStackExtendGcpFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendGcp, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendGcp$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendGcp' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendPlatforms$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackExtendPlatforms, unknown > = z.object({ aws: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendAw$inboundSchema )), ).optional(), azure: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendAzure$inboundSchema )), ).optional(), gcp: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendGcp$inboundSchema )), ).optional(), }); export function deploymentDetailResponsePendingPreparedStackExtendPlatformsFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendPlatforms, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendPlatforms$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendPlatforms' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtend$inboundSchema: z.ZodType = z .object({ description: z.string(), id: z.string(), platforms: z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtendPlatforms$inboundSchema ), }); export function deploymentDetailResponsePendingPreparedStackExtendFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtend, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtend$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtend' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackExtendUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtend$inboundSchema ), z.string(), ]); export function deploymentDetailResponsePendingPreparedStackExtendUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackExtendUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackExtendUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackExtendUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackManagement1$inboundSchema: z.ZodType = z.object({ extend: z.record( z.string(), z.array(z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackExtend$inboundSchema ), z.string(), ])), ), }); export function deploymentDetailResponsePendingPreparedStackManagement1FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackManagement1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackManagement1$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackManagement1' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackManagementUnion$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackManagementUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackManagement1$inboundSchema ), z.lazy(() => DeploymentDetailResponsePendingPreparedStackManagement2$inboundSchema ), DeploymentDetailResponsePendingPreparedStackManagementEnum$inboundSchema, ]); export function deploymentDetailResponsePendingPreparedStackManagementUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackManagementUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackManagementUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackManagementUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileAwResource$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackProfileAwResource, unknown > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function deploymentDetailResponsePendingPreparedStackProfileAwResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileAwResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileAwResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileAwResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileAwStack$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackProfileAwStack, unknown > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function deploymentDetailResponsePendingPreparedStackProfileAwStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileAwStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileAwStack$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileAwStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileAwBinding$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackProfileAwBinding, unknown > = z.object({ resource: z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileAwResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileAwStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePendingPreparedStackProfileAwBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileAwBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileAwBinding$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileAwBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileEffect$inboundSchema: z.ZodEnum = z.enum(DeploymentDetailResponsePendingPreparedStackProfileEffect); /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileAwGrant$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackProfileAwGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePendingPreparedStackProfileAwGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileAwGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileAwGrant$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileAwGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileAw$inboundSchema: z.ZodType = z .object({ binding: z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileAwBinding$inboundSchema ), description: z.nullable(z.string()).optional(), effect: DeploymentDetailResponsePendingPreparedStackProfileEffect$inboundSchema .optional(), grant: z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileAwGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }); export function deploymentDetailResponsePendingPreparedStackProfileAwFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileAw, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileAw$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileAw' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileAzureResource$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackProfileAzureResource, unknown > = z.object({ scope: z.string(), }); export function deploymentDetailResponsePendingPreparedStackProfileAzureResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileAzureResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileAzureResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileAzureResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileAzureStack$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackProfileAzureStack, unknown > = z.object({ scope: z.string(), }); export function deploymentDetailResponsePendingPreparedStackProfileAzureStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileAzureStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileAzureStack$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileAzureStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileAzureBinding$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackProfileAzureBinding, unknown > = z.object({ resource: z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileAzureResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileAzureStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePendingPreparedStackProfileAzureBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileAzureBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileAzureBinding$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileAzureBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileAzureGrant$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackProfileAzureGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePendingPreparedStackProfileAzureGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileAzureGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileAzureGrant$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileAzureGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileAzure$inboundSchema: z.ZodType = z.object({ binding: z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileAzureBinding$inboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileAzureGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }); export function deploymentDetailResponsePendingPreparedStackProfileAzureFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileAzure, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileAzure$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileAzure' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileConditionResource$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackProfileConditionResource, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function deploymentDetailResponsePendingPreparedStackProfileConditionResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileConditionResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileConditionResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileConditionResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileResourceConditionUnion$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackProfileResourceConditionUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileConditionResource$inboundSchema ), z.any(), ]); export function deploymentDetailResponsePendingPreparedStackProfileResourceConditionUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileResourceConditionUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileResourceConditionUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileResourceConditionUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileGcpResource$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackProfileGcpResource, unknown > = z.object({ condition: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileConditionResource$inboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function deploymentDetailResponsePendingPreparedStackProfileGcpResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileGcpResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileGcpResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileGcpResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileConditionStack$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackProfileConditionStack, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function deploymentDetailResponsePendingPreparedStackProfileConditionStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileConditionStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileConditionStack$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileConditionStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileStackConditionUnion$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackProfileStackConditionUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileConditionStack$inboundSchema ), z.any(), ]); export function deploymentDetailResponsePendingPreparedStackProfileStackConditionUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileStackConditionUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileStackConditionUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileStackConditionUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileGcpStack$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackProfileGcpStack, unknown > = z.object({ condition: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileConditionStack$inboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function deploymentDetailResponsePendingPreparedStackProfileGcpStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileGcpStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileGcpStack$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileGcpStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileGcpBinding$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackProfileGcpBinding, unknown > = z.object({ resource: z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileGcpResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileGcpStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePendingPreparedStackProfileGcpBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileGcpBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileGcpBinding$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileGcpBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileGcpGrant$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackProfileGcpGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePendingPreparedStackProfileGcpGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileGcpGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileGcpGrant$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileGcpGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileGcp$inboundSchema: z.ZodType = z .object({ binding: z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileGcpBinding$inboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileGcpGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }); export function deploymentDetailResponsePendingPreparedStackProfileGcpFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileGcp, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileGcp$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileGcp' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfilePlatforms$inboundSchema: z.ZodType< DeploymentDetailResponsePendingPreparedStackProfilePlatforms, unknown > = z.object({ aws: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileAw$inboundSchema )), ).optional(), azure: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileAzure$inboundSchema )), ).optional(), gcp: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfileGcp$inboundSchema )), ).optional(), }); export function deploymentDetailResponsePendingPreparedStackProfilePlatformsFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfilePlatforms, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfilePlatforms$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfilePlatforms' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfile$inboundSchema: z.ZodType = z .object({ description: z.string(), id: z.string(), platforms: z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfilePlatforms$inboundSchema ), }); export function deploymentDetailResponsePendingPreparedStackProfileFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfile, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfile$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfile' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackProfileUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfile$inboundSchema ), z.string(), ]); export function deploymentDetailResponsePendingPreparedStackProfileUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackProfileUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackProfileUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackProfileUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackPermissions$inboundSchema: z.ZodType = z.object({ management: z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackManagement1$inboundSchema ), z.lazy(() => DeploymentDetailResponsePendingPreparedStackManagement2$inboundSchema ), DeploymentDetailResponsePendingPreparedStackManagementEnum$inboundSchema, ]).optional(), profiles: z.record( z.string(), z.record( z.string(), z.array( z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStackProfile$inboundSchema ), z.string(), ]), ), ), ), }); export function deploymentDetailResponsePendingPreparedStackPermissionsFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackPermissions, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackPermissions$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackPermissions' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackConfig$inboundSchema: z.ZodType = collectExtraKeys$( z.object({ id: z.string(), type: z.string(), }).catchall(z.any()), "additionalProperties", true, ); export function deploymentDetailResponsePendingPreparedStackConfigFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackConfig, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackConfig$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackConfig' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackDependency$inboundSchema: z.ZodType = z .object({ id: z.string(), type: z.string(), }); export function deploymentDetailResponsePendingPreparedStackDependencyFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackDependency, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackDependency$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackDependency' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackLifecycle$inboundSchema: z.ZodEnum = z .enum(DeploymentDetailResponsePendingPreparedStackLifecycle); /** @internal */ export const DeploymentDetailResponsePendingPreparedStackResources$inboundSchema: z.ZodType = z .object({ config: z.lazy(() => DeploymentDetailResponsePendingPreparedStackConfig$inboundSchema ), dependencies: z.array( z.lazy(() => DeploymentDetailResponsePendingPreparedStackDependency$inboundSchema ), ), enabledWhen: z.nullable(z.string()).optional(), lifecycle: DeploymentDetailResponsePendingPreparedStackLifecycle$inboundSchema, remoteAccess: z.boolean().optional(), }); export function deploymentDetailResponsePendingPreparedStackResourcesFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackResources, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackResources$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackResources' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackSupportedPlatform$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponsePendingPreparedStackSupportedPlatform > = z.enum(DeploymentDetailResponsePendingPreparedStackSupportedPlatform); /** @internal */ export const DeploymentDetailResponsePendingPreparedStack$inboundSchema: z.ZodType = z.object({ id: z.string(), inputs: z.array( z.lazy(() => DeploymentDetailResponsePendingPreparedStackInput$inboundSchema ), ).optional(), permissions: z.lazy(() => DeploymentDetailResponsePendingPreparedStackPermissions$inboundSchema ).optional(), resources: z.record( z.string(), z.lazy(() => DeploymentDetailResponsePendingPreparedStackResources$inboundSchema ), ), supportedPlatforms: z.nullable( z.array( DeploymentDetailResponsePendingPreparedStackSupportedPlatform$inboundSchema, ), ).optional(), }); export function deploymentDetailResponsePendingPreparedStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStack$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePendingPreparedStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePendingPreparedStackUnion$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStack$inboundSchema), z.any(), ]); export function deploymentDetailResponsePendingPreparedStackUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePendingPreparedStackUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePendingPreparedStackUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePendingPreparedStackUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackTypeStringList$inboundSchema: z.ZodEnum = z .enum(DeploymentDetailResponsePreparedStackTypeStringList); /** @internal */ export const DeploymentDetailResponsePreparedStackDefaultStringList$inboundSchema: z.ZodType = z .object({ type: DeploymentDetailResponsePreparedStackTypeStringList$inboundSchema, value: z.array(z.string()), }); export function deploymentDetailResponsePreparedStackDefaultStringListFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackDefaultStringList, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackDefaultStringList$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackDefaultStringList' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackTypeBoolean$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponsePreparedStackTypeBoolean, ); /** @internal */ export const DeploymentDetailResponsePreparedStackDefaultBoolean$inboundSchema: z.ZodType = z .object({ type: DeploymentDetailResponsePreparedStackTypeBoolean$inboundSchema, value: z.boolean(), }); export function deploymentDetailResponsePreparedStackDefaultBooleanFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackDefaultBoolean, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackDefaultBoolean$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackDefaultBoolean' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackTypeNumber$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponsePreparedStackTypeNumber, ); /** @internal */ export const DeploymentDetailResponsePreparedStackDefaultNumber$inboundSchema: z.ZodType = z .object({ type: DeploymentDetailResponsePreparedStackTypeNumber$inboundSchema, value: z.string(), }); export function deploymentDetailResponsePreparedStackDefaultNumberFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackDefaultNumber, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackDefaultNumber$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackDefaultNumber' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackTypeString$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponsePreparedStackTypeString, ); /** @internal */ export const DeploymentDetailResponsePreparedStackDefaultString$inboundSchema: z.ZodType = z .object({ type: DeploymentDetailResponsePreparedStackTypeString$inboundSchema, value: z.string(), }); export function deploymentDetailResponsePreparedStackDefaultStringFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackDefaultString, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackDefaultString$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackDefaultString' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackDefaultUnion$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentDetailResponsePreparedStackDefaultString$inboundSchema ), z.lazy(() => DeploymentDetailResponsePreparedStackDefaultNumber$inboundSchema ), z.lazy(() => DeploymentDetailResponsePreparedStackDefaultBoolean$inboundSchema ), z.lazy(() => DeploymentDetailResponsePreparedStackDefaultStringList$inboundSchema ), z.any(), ]); export function deploymentDetailResponsePreparedStackDefaultUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackDefaultUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackDefaultUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackDefaultUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackTypeEnvEnum$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponsePreparedStackTypeEnvEnum, ); /** @internal */ export const DeploymentDetailResponsePreparedStackTypeUnion$inboundSchema: z.ZodType = z.union([ DeploymentDetailResponsePreparedStackTypeEnvEnum$inboundSchema, z.any(), ]); export function deploymentDetailResponsePreparedStackTypeUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackTypeUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackTypeUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackTypeUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackEnv$inboundSchema: z.ZodType< DeploymentDetailResponsePreparedStackEnv, unknown > = z.object({ name: z.string(), targetResources: z.nullable(z.array(z.string())).optional(), type: z.nullable( z.union([ DeploymentDetailResponsePreparedStackTypeEnvEnum$inboundSchema, z.any(), ]), ).optional(), }); export function deploymentDetailResponsePreparedStackEnvFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackEnv, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackEnv$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackEnv' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackKind$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponsePreparedStackKind > = z.enum(DeploymentDetailResponsePreparedStackKind); /** @internal */ export const DeploymentDetailResponsePreparedStackPlatform$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponsePreparedStackPlatform, ); /** @internal */ export const DeploymentDetailResponsePreparedStackProvidedBy$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponsePreparedStackProvidedBy, ); /** @internal */ export const DeploymentDetailResponsePreparedStackValidation$inboundSchema: z.ZodType = z .object({ format: z.nullable(z.string()).optional(), max: z.nullable(z.string()).optional(), maxItems: z.nullable(z.int()).optional(), maxLength: z.nullable(z.int()).optional(), min: z.nullable(z.string()).optional(), minItems: z.nullable(z.int()).optional(), minLength: z.nullable(z.int()).optional(), pattern: z.nullable(z.string()).optional(), values: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePreparedStackValidationFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackValidation, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackValidation$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackValidation' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackValidationUnion$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentDetailResponsePreparedStackValidation$inboundSchema ), z.any(), ]); export function deploymentDetailResponsePreparedStackValidationUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackValidationUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackValidationUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackValidationUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackInput$inboundSchema: z.ZodType = z.object({ default: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackDefaultString$inboundSchema ), z.lazy(() => DeploymentDetailResponsePreparedStackDefaultNumber$inboundSchema ), z.lazy(() => DeploymentDetailResponsePreparedStackDefaultBoolean$inboundSchema ), z.lazy(() => DeploymentDetailResponsePreparedStackDefaultStringList$inboundSchema ), z.any(), ]), ).optional(), description: z.string(), env: z.array( z.lazy(() => DeploymentDetailResponsePreparedStackEnv$inboundSchema), ).optional(), id: z.string(), kind: DeploymentDetailResponsePreparedStackKind$inboundSchema, label: z.string(), placeholder: z.nullable(z.string()).optional(), platforms: z.nullable( z.array(DeploymentDetailResponsePreparedStackPlatform$inboundSchema), ).optional(), providedBy: z.array( DeploymentDetailResponsePreparedStackProvidedBy$inboundSchema, ), required: z.boolean(), validation: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackValidation$inboundSchema ), z.any(), ]), ).optional(), }); export function deploymentDetailResponsePreparedStackInputFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackInput, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackInput$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackInput' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackManagementEnum$inboundSchema: z.ZodEnum = z .enum(DeploymentDetailResponsePreparedStackManagementEnum); /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideAwResource$inboundSchema: z.ZodType = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function deploymentDetailResponsePreparedStackOverrideAwResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideAwResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideAwResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideAwResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideAwStack$inboundSchema: z.ZodType = z .object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function deploymentDetailResponsePreparedStackOverrideAwStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideAwStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideAwStack$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideAwStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideAwBinding$inboundSchema: z.ZodType = z .object({ resource: z.lazy(() => DeploymentDetailResponsePreparedStackOverrideAwResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePreparedStackOverrideAwStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePreparedStackOverrideAwBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideAwBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideAwBinding$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideAwBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideEffect$inboundSchema: z.ZodEnum = z .enum(DeploymentDetailResponsePreparedStackOverrideEffect); /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideAwGrant$inboundSchema: z.ZodType = z .object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePreparedStackOverrideAwGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideAwGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideAwGrant$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideAwGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideAw$inboundSchema: z.ZodType = z .object({ binding: z.lazy(() => DeploymentDetailResponsePreparedStackOverrideAwBinding$inboundSchema ), description: z.nullable(z.string()).optional(), effect: DeploymentDetailResponsePreparedStackOverrideEffect$inboundSchema .optional(), grant: z.lazy(() => DeploymentDetailResponsePreparedStackOverrideAwGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }); export function deploymentDetailResponsePreparedStackOverrideAwFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideAw, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideAw$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideAw' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideAzureResource$inboundSchema: z.ZodType< DeploymentDetailResponsePreparedStackOverrideAzureResource, unknown > = z.object({ scope: z.string(), }); export function deploymentDetailResponsePreparedStackOverrideAzureResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideAzureResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideAzureResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideAzureResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideAzureStack$inboundSchema: z.ZodType = z.object({ scope: z.string(), }); export function deploymentDetailResponsePreparedStackOverrideAzureStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideAzureStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideAzureStack$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideAzureStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideAzureBinding$inboundSchema: z.ZodType< DeploymentDetailResponsePreparedStackOverrideAzureBinding, unknown > = z.object({ resource: z.lazy(() => DeploymentDetailResponsePreparedStackOverrideAzureResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePreparedStackOverrideAzureStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePreparedStackOverrideAzureBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideAzureBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideAzureBinding$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideAzureBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideAzureGrant$inboundSchema: z.ZodType = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePreparedStackOverrideAzureGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideAzureGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideAzureGrant$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideAzureGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideAzure$inboundSchema: z.ZodType = z .object({ binding: z.lazy(() => DeploymentDetailResponsePreparedStackOverrideAzureBinding$inboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => DeploymentDetailResponsePreparedStackOverrideAzureGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }); export function deploymentDetailResponsePreparedStackOverrideAzureFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideAzure, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideAzure$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideAzure' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideConditionResource$inboundSchema: z.ZodType< DeploymentDetailResponsePreparedStackOverrideConditionResource, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function deploymentDetailResponsePreparedStackOverrideConditionResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideConditionResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideConditionResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideConditionResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideResourceConditionUnion$inboundSchema: z.ZodType< DeploymentDetailResponsePreparedStackOverrideResourceConditionUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackOverrideConditionResource$inboundSchema ), z.any(), ]); export function deploymentDetailResponsePreparedStackOverrideResourceConditionUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideResourceConditionUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideResourceConditionUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideResourceConditionUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideGcpResource$inboundSchema: z.ZodType = z.object({ condition: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackOverrideConditionResource$inboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function deploymentDetailResponsePreparedStackOverrideGcpResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideGcpResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideGcpResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideGcpResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideConditionStack$inboundSchema: z.ZodType< DeploymentDetailResponsePreparedStackOverrideConditionStack, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function deploymentDetailResponsePreparedStackOverrideConditionStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideConditionStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideConditionStack$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideConditionStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideStackConditionUnion$inboundSchema: z.ZodType< DeploymentDetailResponsePreparedStackOverrideStackConditionUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackOverrideConditionStack$inboundSchema ), z.any(), ]); export function deploymentDetailResponsePreparedStackOverrideStackConditionUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideStackConditionUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideStackConditionUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideStackConditionUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideGcpStack$inboundSchema: z.ZodType = z .object({ condition: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackOverrideConditionStack$inboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function deploymentDetailResponsePreparedStackOverrideGcpStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideGcpStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideGcpStack$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideGcpStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideGcpBinding$inboundSchema: z.ZodType = z.object({ resource: z.lazy(() => DeploymentDetailResponsePreparedStackOverrideGcpResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePreparedStackOverrideGcpStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePreparedStackOverrideGcpBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideGcpBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideGcpBinding$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideGcpBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideGcpGrant$inboundSchema: z.ZodType = z .object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePreparedStackOverrideGcpGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideGcpGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideGcpGrant$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideGcpGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideGcp$inboundSchema: z.ZodType = z .object({ binding: z.lazy(() => DeploymentDetailResponsePreparedStackOverrideGcpBinding$inboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => DeploymentDetailResponsePreparedStackOverrideGcpGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }); export function deploymentDetailResponsePreparedStackOverrideGcpFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideGcp, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideGcp$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideGcp' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverridePlatforms$inboundSchema: z.ZodType = z .object({ aws: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePreparedStackOverrideAw$inboundSchema )), ).optional(), azure: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePreparedStackOverrideAzure$inboundSchema )), ).optional(), gcp: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePreparedStackOverrideGcp$inboundSchema )), ).optional(), }); export function deploymentDetailResponsePreparedStackOverridePlatformsFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverridePlatforms, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverridePlatforms$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackOverridePlatforms' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverride$inboundSchema: z.ZodType = z.object({ description: z.string(), id: z.string(), platforms: z.lazy(() => DeploymentDetailResponsePreparedStackOverridePlatforms$inboundSchema ), }); export function deploymentDetailResponsePreparedStackOverrideFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverride, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverride$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackOverride' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackOverrideUnion$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentDetailResponsePreparedStackOverride$inboundSchema), z.string(), ]); export function deploymentDetailResponsePreparedStackOverrideUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackOverrideUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackOverrideUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackOverrideUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackManagement2$inboundSchema: z.ZodType = z .object({ override: z.record( z.string(), z.array(z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackOverride$inboundSchema ), z.string(), ])), ), }); export function deploymentDetailResponsePreparedStackManagement2FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackManagement2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackManagement2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackManagement2' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendAwResource$inboundSchema: z.ZodType = z .object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function deploymentDetailResponsePreparedStackExtendAwResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendAwResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendAwResource$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendAwResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendAwStack$inboundSchema: z.ZodType = z .object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function deploymentDetailResponsePreparedStackExtendAwStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendAwStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendAwStack$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendAwStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendAwBinding$inboundSchema: z.ZodType = z .object({ resource: z.lazy(() => DeploymentDetailResponsePreparedStackExtendAwResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePreparedStackExtendAwStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePreparedStackExtendAwBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendAwBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendAwBinding$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendAwBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendEffect$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponsePreparedStackExtendEffect, ); /** @internal */ export const DeploymentDetailResponsePreparedStackExtendAwGrant$inboundSchema: z.ZodType = z .object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePreparedStackExtendAwGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendAwGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendAwGrant$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendAwGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendAw$inboundSchema: z.ZodType = z.object({ binding: z.lazy(() => DeploymentDetailResponsePreparedStackExtendAwBinding$inboundSchema ), description: z.nullable(z.string()).optional(), effect: DeploymentDetailResponsePreparedStackExtendEffect$inboundSchema .optional(), grant: z.lazy(() => DeploymentDetailResponsePreparedStackExtendAwGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }); export function deploymentDetailResponsePreparedStackExtendAwFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendAw, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendAw$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendAw' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendAzureResource$inboundSchema: z.ZodType = z.object({ scope: z.string(), }); export function deploymentDetailResponsePreparedStackExtendAzureResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendAzureResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendAzureResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendAzureResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendAzureStack$inboundSchema: z.ZodType = z .object({ scope: z.string(), }); export function deploymentDetailResponsePreparedStackExtendAzureStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendAzureStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendAzureStack$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendAzureStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendAzureBinding$inboundSchema: z.ZodType = z.object({ resource: z.lazy(() => DeploymentDetailResponsePreparedStackExtendAzureResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePreparedStackExtendAzureStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePreparedStackExtendAzureBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendAzureBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendAzureBinding$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendAzureBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendAzureGrant$inboundSchema: z.ZodType = z .object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePreparedStackExtendAzureGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendAzureGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendAzureGrant$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendAzureGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendAzure$inboundSchema: z.ZodType = z .object({ binding: z.lazy(() => DeploymentDetailResponsePreparedStackExtendAzureBinding$inboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => DeploymentDetailResponsePreparedStackExtendAzureGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }); export function deploymentDetailResponsePreparedStackExtendAzureFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendAzure, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendAzure$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendAzure' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendConditionResource$inboundSchema: z.ZodType< DeploymentDetailResponsePreparedStackExtendConditionResource, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function deploymentDetailResponsePreparedStackExtendConditionResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendConditionResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendConditionResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendConditionResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendResourceConditionUnion$inboundSchema: z.ZodType< DeploymentDetailResponsePreparedStackExtendResourceConditionUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackExtendConditionResource$inboundSchema ), z.any(), ]); export function deploymentDetailResponsePreparedStackExtendResourceConditionUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendResourceConditionUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendResourceConditionUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendResourceConditionUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendGcpResource$inboundSchema: z.ZodType = z .object({ condition: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackExtendConditionResource$inboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function deploymentDetailResponsePreparedStackExtendGcpResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendGcpResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendGcpResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendGcpResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendConditionStack$inboundSchema: z.ZodType< DeploymentDetailResponsePreparedStackExtendConditionStack, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function deploymentDetailResponsePreparedStackExtendConditionStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendConditionStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendConditionStack$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendConditionStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendStackConditionUnion$inboundSchema: z.ZodType< DeploymentDetailResponsePreparedStackExtendStackConditionUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackExtendConditionStack$inboundSchema ), z.any(), ]); export function deploymentDetailResponsePreparedStackExtendStackConditionUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendStackConditionUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendStackConditionUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendStackConditionUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendGcpStack$inboundSchema: z.ZodType = z .object({ condition: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackExtendConditionStack$inboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function deploymentDetailResponsePreparedStackExtendGcpStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendGcpStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendGcpStack$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendGcpStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendGcpBinding$inboundSchema: z.ZodType = z .object({ resource: z.lazy(() => DeploymentDetailResponsePreparedStackExtendGcpResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePreparedStackExtendGcpStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePreparedStackExtendGcpBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendGcpBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendGcpBinding$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendGcpBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendGcpGrant$inboundSchema: z.ZodType = z .object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePreparedStackExtendGcpGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendGcpGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendGcpGrant$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendGcpGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendGcp$inboundSchema: z.ZodType = z.object( { binding: z.lazy(() => DeploymentDetailResponsePreparedStackExtendGcpBinding$inboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => DeploymentDetailResponsePreparedStackExtendGcpGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }, ); export function deploymentDetailResponsePreparedStackExtendGcpFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendGcp, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendGcp$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendGcp' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendPlatforms$inboundSchema: z.ZodType = z .object({ aws: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePreparedStackExtendAw$inboundSchema )), ).optional(), azure: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePreparedStackExtendAzure$inboundSchema )), ).optional(), gcp: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePreparedStackExtendGcp$inboundSchema )), ).optional(), }); export function deploymentDetailResponsePreparedStackExtendPlatformsFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendPlatforms, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendPlatforms$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendPlatforms' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtend$inboundSchema: z.ZodType = z.object({ description: z.string(), id: z.string(), platforms: z.lazy(() => DeploymentDetailResponsePreparedStackExtendPlatforms$inboundSchema ), }); export function deploymentDetailResponsePreparedStackExtendFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtend, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtend$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackExtend' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackExtendUnion$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentDetailResponsePreparedStackExtend$inboundSchema), z.string(), ]); export function deploymentDetailResponsePreparedStackExtendUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackExtendUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackExtendUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackExtendUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackManagement1$inboundSchema: z.ZodType = z .object({ extend: z.record( z.string(), z.array(z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackExtend$inboundSchema ), z.string(), ])), ), }); export function deploymentDetailResponsePreparedStackManagement1FromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackManagement1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackManagement1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackManagement1' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackManagementUnion$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentDetailResponsePreparedStackManagement1$inboundSchema ), z.lazy(() => DeploymentDetailResponsePreparedStackManagement2$inboundSchema ), DeploymentDetailResponsePreparedStackManagementEnum$inboundSchema, ]); export function deploymentDetailResponsePreparedStackManagementUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackManagementUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackManagementUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackManagementUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileAwResource$inboundSchema: z.ZodType = z .object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function deploymentDetailResponsePreparedStackProfileAwResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileAwResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileAwResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileAwResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileAwStack$inboundSchema: z.ZodType = z .object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function deploymentDetailResponsePreparedStackProfileAwStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileAwStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileAwStack$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileAwStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileAwBinding$inboundSchema: z.ZodType = z .object({ resource: z.lazy(() => DeploymentDetailResponsePreparedStackProfileAwResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePreparedStackProfileAwStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePreparedStackProfileAwBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileAwBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileAwBinding$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileAwBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileEffect$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponsePreparedStackProfileEffect, ); /** @internal */ export const DeploymentDetailResponsePreparedStackProfileAwGrant$inboundSchema: z.ZodType = z .object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePreparedStackProfileAwGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileAwGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileAwGrant$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileAwGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileAw$inboundSchema: z.ZodType = z.object( { binding: z.lazy(() => DeploymentDetailResponsePreparedStackProfileAwBinding$inboundSchema ), description: z.nullable(z.string()).optional(), effect: DeploymentDetailResponsePreparedStackProfileEffect$inboundSchema .optional(), grant: z.lazy(() => DeploymentDetailResponsePreparedStackProfileAwGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }, ); export function deploymentDetailResponsePreparedStackProfileAwFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileAw, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileAw$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileAw' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileAzureResource$inboundSchema: z.ZodType< DeploymentDetailResponsePreparedStackProfileAzureResource, unknown > = z.object({ scope: z.string(), }); export function deploymentDetailResponsePreparedStackProfileAzureResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileAzureResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileAzureResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileAzureResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileAzureStack$inboundSchema: z.ZodType = z .object({ scope: z.string(), }); export function deploymentDetailResponsePreparedStackProfileAzureStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileAzureStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileAzureStack$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileAzureStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileAzureBinding$inboundSchema: z.ZodType = z.object({ resource: z.lazy(() => DeploymentDetailResponsePreparedStackProfileAzureResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePreparedStackProfileAzureStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePreparedStackProfileAzureBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileAzureBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileAzureBinding$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileAzureBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileAzureGrant$inboundSchema: z.ZodType = z .object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePreparedStackProfileAzureGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileAzureGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileAzureGrant$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileAzureGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileAzure$inboundSchema: z.ZodType = z .object({ binding: z.lazy(() => DeploymentDetailResponsePreparedStackProfileAzureBinding$inboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => DeploymentDetailResponsePreparedStackProfileAzureGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }); export function deploymentDetailResponsePreparedStackProfileAzureFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileAzure, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileAzure$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileAzure' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileConditionResource$inboundSchema: z.ZodType< DeploymentDetailResponsePreparedStackProfileConditionResource, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function deploymentDetailResponsePreparedStackProfileConditionResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileConditionResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileConditionResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileConditionResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileResourceConditionUnion$inboundSchema: z.ZodType< DeploymentDetailResponsePreparedStackProfileResourceConditionUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackProfileConditionResource$inboundSchema ), z.any(), ]); export function deploymentDetailResponsePreparedStackProfileResourceConditionUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileResourceConditionUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileResourceConditionUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileResourceConditionUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileGcpResource$inboundSchema: z.ZodType = z.object({ condition: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackProfileConditionResource$inboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function deploymentDetailResponsePreparedStackProfileGcpResourceFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileGcpResource, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileGcpResource$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileGcpResource' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileConditionStack$inboundSchema: z.ZodType< DeploymentDetailResponsePreparedStackProfileConditionStack, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function deploymentDetailResponsePreparedStackProfileConditionStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileConditionStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileConditionStack$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileConditionStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileStackConditionUnion$inboundSchema: z.ZodType< DeploymentDetailResponsePreparedStackProfileStackConditionUnion, unknown > = z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackProfileConditionStack$inboundSchema ), z.any(), ]); export function deploymentDetailResponsePreparedStackProfileStackConditionUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileStackConditionUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileStackConditionUnion$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileStackConditionUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileGcpStack$inboundSchema: z.ZodType = z .object({ condition: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackProfileConditionStack$inboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function deploymentDetailResponsePreparedStackProfileGcpStackFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileGcpStack, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileGcpStack$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileGcpStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileGcpBinding$inboundSchema: z.ZodType = z .object({ resource: z.lazy(() => DeploymentDetailResponsePreparedStackProfileGcpResource$inboundSchema ).optional(), stack: z.lazy(() => DeploymentDetailResponsePreparedStackProfileGcpStack$inboundSchema ).optional(), }); export function deploymentDetailResponsePreparedStackProfileGcpBindingFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileGcpBinding, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileGcpBinding$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileGcpBinding' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileGcpGrant$inboundSchema: z.ZodType = z .object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function deploymentDetailResponsePreparedStackProfileGcpGrantFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileGcpGrant, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileGcpGrant$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileGcpGrant' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileGcp$inboundSchema: z.ZodType = z .object({ binding: z.lazy(() => DeploymentDetailResponsePreparedStackProfileGcpBinding$inboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => DeploymentDetailResponsePreparedStackProfileGcpGrant$inboundSchema ), label: z.nullable(z.string()).optional(), }); export function deploymentDetailResponsePreparedStackProfileGcpFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileGcp, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileGcp$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileGcp' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfilePlatforms$inboundSchema: z.ZodType = z .object({ aws: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePreparedStackProfileAw$inboundSchema )), ).optional(), azure: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePreparedStackProfileAzure$inboundSchema )), ).optional(), gcp: z.nullable( z.array(z.lazy(() => DeploymentDetailResponsePreparedStackProfileGcp$inboundSchema )), ).optional(), }); export function deploymentDetailResponsePreparedStackProfilePlatformsFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfilePlatforms, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfilePlatforms$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackProfilePlatforms' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfile$inboundSchema: z.ZodType = z.object({ description: z.string(), id: z.string(), platforms: z.lazy(() => DeploymentDetailResponsePreparedStackProfilePlatforms$inboundSchema ), }); export function deploymentDetailResponsePreparedStackProfileFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfile, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfile$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackProfile' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackProfileUnion$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentDetailResponsePreparedStackProfile$inboundSchema), z.string(), ]); export function deploymentDetailResponsePreparedStackProfileUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackProfileUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackProfileUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackProfileUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackPermissions$inboundSchema: z.ZodType = z .object({ management: z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackManagement1$inboundSchema ), z.lazy(() => DeploymentDetailResponsePreparedStackManagement2$inboundSchema ), DeploymentDetailResponsePreparedStackManagementEnum$inboundSchema, ]).optional(), profiles: z.record( z.string(), z.record( z.string(), z.array( z.union([ z.lazy(() => DeploymentDetailResponsePreparedStackProfile$inboundSchema ), z.string(), ]), ), ), ), }); export function deploymentDetailResponsePreparedStackPermissionsFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackPermissions, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackPermissions$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackPermissions' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackConfig$inboundSchema: z.ZodType = collectExtraKeys$( z.object({ id: z.string(), type: z.string(), }).catchall(z.any()), "additionalProperties", true, ); export function deploymentDetailResponsePreparedStackConfigFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackConfig, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackConfig$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackConfig' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackDependency$inboundSchema: z.ZodType = z .object({ id: z.string(), type: z.string(), }); export function deploymentDetailResponsePreparedStackDependencyFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackDependency, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackDependency$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackDependency' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackLifecycle$inboundSchema: z.ZodEnum = z.enum( DeploymentDetailResponsePreparedStackLifecycle, ); /** @internal */ export const DeploymentDetailResponsePreparedStackResources$inboundSchema: z.ZodType = z.object( { config: z.lazy(() => DeploymentDetailResponsePreparedStackConfig$inboundSchema ), dependencies: z.array(z.lazy(() => DeploymentDetailResponsePreparedStackDependency$inboundSchema )), enabledWhen: z.nullable(z.string()).optional(), lifecycle: DeploymentDetailResponsePreparedStackLifecycle$inboundSchema, remoteAccess: z.boolean().optional(), }, ); export function deploymentDetailResponsePreparedStackResourcesFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackResources, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackResources$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackResources' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackSupportedPlatform$inboundSchema: z.ZodEnum = z .enum(DeploymentDetailResponsePreparedStackSupportedPlatform); /** @internal */ export const DeploymentDetailResponsePreparedStack$inboundSchema: z.ZodType< DeploymentDetailResponsePreparedStack, unknown > = z.object({ id: z.string(), inputs: z.array( z.lazy(() => DeploymentDetailResponsePreparedStackInput$inboundSchema), ).optional(), permissions: z.lazy(() => DeploymentDetailResponsePreparedStackPermissions$inboundSchema ).optional(), resources: z.record( z.string(), z.lazy(() => DeploymentDetailResponsePreparedStackResources$inboundSchema), ), supportedPlatforms: z.nullable( z.array( DeploymentDetailResponsePreparedStackSupportedPlatform$inboundSchema, ), ).optional(), }); export function deploymentDetailResponsePreparedStackFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponsePreparedStack' from JSON`, ); } /** @internal */ export const DeploymentDetailResponsePreparedStackUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentDetailResponsePreparedStack$inboundSchema), z.any(), ]); export function deploymentDetailResponsePreparedStackUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponsePreparedStackUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponsePreparedStackUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponsePreparedStackUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseSetupUpdateAuthorization$inboundSchema: z.ZodType = z .object({ baselineFrozenDigest: z.string(), nonce: z.string(), releaseId: z.string(), setupFingerprint: z.string(), setupFingerprintVersion: z.int(), setupTarget: z.string(), targetFrozenDigest: z.string(), }); export function deploymentDetailResponseSetupUpdateAuthorizationFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseSetupUpdateAuthorization, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseSetupUpdateAuthorization$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseSetupUpdateAuthorization' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseSetupUpdateAuthorizationUnion$inboundSchema: z.ZodType = z .union([ z.lazy(() => DeploymentDetailResponseSetupUpdateAuthorization$inboundSchema ), z.any(), ]); export function deploymentDetailResponseSetupUpdateAuthorizationUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseSetupUpdateAuthorizationUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseSetupUpdateAuthorizationUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseSetupUpdateAuthorizationUnion' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseRuntimeMetadata$inboundSchema: z.ZodType< DeploymentDetailResponseRuntimeMetadata, unknown > = z.object({ directSetupRevision: z.nullable(z.string()).optional(), initialSetupAuthority: DeploymentDetailResponseInitialSetupAuthority$inboundSchema.optional(), lastSyncedEnvVarsHash: z.nullable(z.string()).optional(), lastSyncedSecretNames: z.array(z.string()).optional(), pendingPreparedStack: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePendingPreparedStack$inboundSchema), z.any(), ]), ).optional(), persistedGateAnswers: z.record(z.string(), z.boolean()).optional(), preparedStack: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponsePreparedStack$inboundSchema), z.any(), ]), ).optional(), registryAccessGranted: z.boolean().optional(), setupUpdateAuthorization: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseSetupUpdateAuthorization$inboundSchema ), z.any(), ]), ).optional(), }); export function deploymentDetailResponseRuntimeMetadataFromJSON( jsonString: string, ): SafeParseResult< DeploymentDetailResponseRuntimeMetadata, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentDetailResponseRuntimeMetadata$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentDetailResponseRuntimeMetadata' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseImportSource$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseImportSource > = z.enum(DeploymentDetailResponseImportSource); /** @internal */ export const DeploymentDetailResponseSetupMethod$inboundSchema: z.ZodEnum< typeof DeploymentDetailResponseSetupMethod > = z.enum(DeploymentDetailResponseSetupMethod); /** @internal */ export const DeploymentDetailResponseError$inboundSchema: z.ZodType< DeploymentDetailResponseError, unknown > = z.object({ code: z.string(), context: z.nullable(z.any()).optional(), hint: z.nullable(z.string()).optional(), httpStatusCode: z.nullable(z.int()).optional(), internal: z.boolean(), message: z.string(), retryable: z.boolean().default(false), source: z.nullable(z.any()).optional(), }); export function deploymentDetailResponseErrorFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseError' from JSON`, ); } /** @internal */ export const DeploymentDetailResponseUpdateState$inboundSchema: z.ZodType< DeploymentDetailResponseUpdateState, unknown > = z.object({ active: z.nullable(DeploymentUpdateOperationSummary$inboundSchema), next: z.nullable(DeploymentUpdateOperationSummary$inboundSchema), latest: z.nullable(DeploymentUpdateOperationSummary$inboundSchema), }); export function deploymentDetailResponseUpdateStateFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponseUpdateState$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponseUpdateState' from JSON`, ); } /** @internal */ export const OperatorSync$inboundSchema: z.ZodType = z .object({ id: z.string(), status: DeploymentOperatorSyncStatus$inboundSchema, stuckReason: z.nullable(DeploymentOperatorSyncStuckReason$inboundSchema) .optional(), statusMessage: z.nullable(z.string()).optional(), targetBundleHash: z.string(), observedBundleHash: z.nullable(z.string()).optional(), missingOperations: z.nullable(z.array(z.string())).optional(), targetSetAt: z.iso.datetime({ offset: true }).transform(v => new Date(v)), observedAt: z.nullable( z.iso.datetime({ offset: true }).transform(v => new Date(v)), ).optional(), }); export function operatorSyncFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => OperatorSync$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OperatorSync' from JSON`, ); } /** @internal */ export const DeploymentDetailResponse$inboundSchema: z.ZodType< DeploymentDetailResponse, unknown > = z.object({ id: z.string(), name: z.string(), publicSubdomain: z.nullable(z.string()).optional(), status: DeploymentDetailResponseStatus$inboundSchema, projectId: z.string(), platform: DeploymentDetailResponsePlatform$inboundSchema, basePlatform: z.nullable(DeploymentDetailResponseBasePlatform$inboundSchema) .optional(), region: z.nullable(z.string()).optional(), deploymentProtocolVersion: z.int(), deploymentGroupId: z.string(), purpose: DeploymentPurpose$inboundSchema, environmentInfo: z.nullable( z.union([ z.lazy(() => DeploymentDetailResponseEnvironmentInfoGcp$inboundSchema), z.lazy(() => DeploymentDetailResponseEnvironmentInfoAzure$inboundSchema), z.lazy(() => DeploymentDetailResponseEnvironmentInfoLocal$inboundSchema), z.lazy(() => DeploymentDetailResponseEnvironmentInfoAws$inboundSchema), z.lazy(() => DeploymentDetailResponseEnvironmentInfoTest$inboundSchema), z.any(), ]), ).optional(), stackSettings: z.lazy(() => DeploymentDetailResponseStackSettings$inboundSchema ), stackState: z.nullable( z.lazy(() => DeploymentDetailResponseStackState$inboundSchema), ).optional(), runtimeMetadata: z.nullable( z.lazy(() => DeploymentDetailResponseRuntimeMetadata$inboundSchema), ).optional(), currentReleaseId: z.nullable(z.string()).optional(), desiredReleaseId: z.nullable(z.string()).optional(), pinnedReleaseId: z.nullable(z.string()).optional(), releaseChannel: z.string(), importSource: z.nullable(DeploymentDetailResponseImportSource$inboundSchema) .optional(), setupMethod: z.nullable(DeploymentDetailResponseSetupMethod$inboundSchema) .optional(), setupMetadata: z.nullable(z.record(z.string(), z.nullable(z.any()))) .optional(), setupTarget: z.nullable(z.string()).optional(), setupFingerprint: z.nullable(z.string()).optional(), setupFingerprintVersion: z.nullable(z.int()).optional(), operatorScope: z.nullable(z.string()).optional(), operatorPermission: z.nullable(z.string()).optional(), operatorVersion: z.nullable(z.string()).optional(), capabilities: z.nullable(z.array(OperatorCapabilityReport$inboundSchema)) .optional(), observedOperationsBundleHash: z.nullable(z.string()).optional(), observedOperations: z.nullable(z.array(ReportedOperation$inboundSchema)) .optional(), retryRequested: z.boolean(), lastHeartbeatAt: z.nullable( z.iso.datetime({ offset: true }).transform(v => new Date(v)), ).optional(), error: z.nullable(z.lazy(() => DeploymentDetailResponseError$inboundSchema)) .optional(), updateState: z.lazy(() => DeploymentDetailResponseUpdateState$inboundSchema) .optional(), createdAt: z.iso.datetime({ offset: true }).transform(v => new Date(v)), updatedAt: z.iso.datetime({ offset: true }).transform(v => new Date(v)), managerId: z.string(), workspaceId: z.string(), release: z.nullable(DeploymentReleaseInfo$inboundSchema).optional(), deploymentGroup: DeploymentGroupInfo$inboundSchema.optional(), project: DeploymentProjectInfo$inboundSchema.optional(), operatorSync: z.nullable(z.lazy(() => OperatorSync$inboundSchema)).optional(), }); export function deploymentDetailResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentDetailResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponse' from JSON`, ); }