/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 3f608697c834 */ import * as z from "zod/v4"; import { remap as remap$ } from "../lib/primitives.js"; import { ClosedEnum } from "../types/enums.js"; import { ImportSourceKind, ImportSourceKind$outboundSchema, } from "./importsourcekind.js"; import { KubernetesBasePlatform, KubernetesBasePlatform$outboundSchema, } from "./kubernetesbaseplatform.js"; import { StackInputValueRequest, StackInputValueRequest$Outbound, StackInputValueRequest$outboundSchema, } from "./stackinputvaluerequest.js"; export const ModePersist = { Persist: "persist", } as const; export type ModePersist = ClosedEnum; /** * Represents the target cloud platform. */ export const PersistImportedDeploymentRequestPlatformEnum = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type PersistImportedDeploymentRequestPlatformEnum = ClosedEnum< typeof PersistImportedDeploymentRequestPlatformEnum >; /** * Failure-domain policy selected for a compute pool. */ export type PersistImportedDeploymentRequestFailureDomains2 = { /** * 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 PersistImportedDeploymentRequestFailureDomainsUnion2 = | PersistImportedDeploymentRequestFailureDomains2 | any; export type PersistImportedDeploymentRequestPoolsAutoscale = { failureDomains?: | PersistImportedDeploymentRequestFailureDomains2 | 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 PersistImportedDeploymentRequestFailureDomains1 = { /** * 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 PersistImportedDeploymentRequestFailureDomainsUnion1 = | PersistImportedDeploymentRequestFailureDomains1 | any; export type PersistImportedDeploymentRequestPoolsFixed = { failureDomains?: | PersistImportedDeploymentRequestFailureDomains1 | 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 PersistImportedDeploymentRequestPoolsUnion = | PersistImportedDeploymentRequestPoolsFixed | PersistImportedDeploymentRequestPoolsAutoscale; /** * 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 PersistImportedDeploymentRequestCompute = { /** * Selected compute choices keyed by pool ID. */ pools?: { [k: string]: | PersistImportedDeploymentRequestPoolsFixed | PersistImportedDeploymentRequestPoolsAutoscale; } | undefined; }; export type PersistImportedDeploymentRequestComputeUnion = | PersistImportedDeploymentRequestCompute | any; /** * Deployment model: how updates are delivered to the remote environment. */ export const PersistImportedDeploymentRequestDeploymentModel = { Push: "push", Pull: "pull", } as const; /** * Deployment model: how updates are delivered to the remote environment. */ export type PersistImportedDeploymentRequestDeploymentModel = ClosedEnum< typeof PersistImportedDeploymentRequestDeploymentModel >; export type PersistImportedDeploymentRequestAws = { certificateArn: string; }; export type PersistImportedDeploymentRequestAwsUnion = | PersistImportedDeploymentRequestAws | any; export type PersistImportedDeploymentRequestAzureStackSettings = { keyVaultCertificateId: string; keyVaultResourceId?: string | null | undefined; }; export type PersistImportedDeploymentRequestAzureUnion = | PersistImportedDeploymentRequestAzureStackSettings | any; export type PersistImportedDeploymentRequestGcpStackSettings = { certificateName: string; }; export type PersistImportedDeploymentRequestGcpUnion = | PersistImportedDeploymentRequestGcpStackSettings | any; /** * Namespace-scoped Kubernetes TLS Secret reference. */ export type PersistImportedDeploymentRequestTlsSecretRef = { /** * Secret namespace. Defaults to the release namespace when omitted. */ namespace?: string | null | undefined; /** * Secret name. */ secretName: string; }; export type PersistImportedDeploymentRequestDomainsKubernetes = { /** * Namespace-scoped Kubernetes TLS Secret reference. */ tlsSecretRef: PersistImportedDeploymentRequestTlsSecretRef; }; export type PersistImportedDeploymentRequestDomainsKubernetesUnion = | PersistImportedDeploymentRequestDomainsKubernetes | any; /** * Platform-specific certificate references for custom domains. */ export type PersistImportedDeploymentRequestDomainsCertificate = { aws?: PersistImportedDeploymentRequestAws | any | null | undefined; azure?: | PersistImportedDeploymentRequestAzureStackSettings | any | null | undefined; gcp?: | PersistImportedDeploymentRequestGcpStackSettings | any | null | undefined; kubernetes?: | PersistImportedDeploymentRequestDomainsKubernetes | any | null | undefined; }; /** * Custom domain configuration for a single resource. */ export type PersistImportedDeploymentRequestCustomDomains = { /** * Platform-specific certificate references for custom domains. */ certificate: PersistImportedDeploymentRequestDomainsCertificate; /** * Fully qualified domain name to use. */ domain: string; }; export const PersistImportedDeploymentRequestModeLoadBalancer = { LoadBalancer: "loadBalancer", } as const; export type PersistImportedDeploymentRequestModeLoadBalancer = ClosedEnum< typeof PersistImportedDeploymentRequestModeLoadBalancer >; export type PersistImportedDeploymentRequestPublicEndpointTargetLoadBalancer = { /** * DNS name or URL for the external load balancer. */ cnameTarget: string; mode: PersistImportedDeploymentRequestModeLoadBalancer; }; export const PersistImportedDeploymentRequestModeMachineAddresses = { MachineAddresses: "machineAddresses", } as const; export type PersistImportedDeploymentRequestModeMachineAddresses = ClosedEnum< typeof PersistImportedDeploymentRequestModeMachineAddresses >; export type PersistImportedDeploymentRequestPublicEndpointTargetMachineAddresses = { mode: PersistImportedDeploymentRequestModeMachineAddresses; }; export type PersistImportedDeploymentRequestPublicEndpointTargetUnion = | PersistImportedDeploymentRequestPublicEndpointTargetLoadBalancer | PersistImportedDeploymentRequestPublicEndpointTargetMachineAddresses | 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 PersistImportedDeploymentRequestDomains = { /** * Custom domain configuration per resource ID. */ customDomains?: | { [k: string]: PersistImportedDeploymentRequestCustomDomains } | null | undefined; publicEndpointTarget?: | PersistImportedDeploymentRequestPublicEndpointTargetLoadBalancer | PersistImportedDeploymentRequestPublicEndpointTargetMachineAddresses | any | null | undefined; }; export type PersistImportedDeploymentRequestDomainsUnion = | PersistImportedDeploymentRequestDomains | 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 PersistImportedDeploymentRequestExternalBindings = {}; /** * How heartbeat health checks are handled. */ export const PersistImportedDeploymentRequestHeartbeats = { Off: "off", On: "on", } as const; /** * How heartbeat health checks are handled. */ export type PersistImportedDeploymentRequestHeartbeats = ClosedEnum< typeof PersistImportedDeploymentRequestHeartbeats >; /** * Optional provider-specific identity for a cloud-backed Kubernetes cluster. */ export type PersistImportedDeploymentRequestCloud = { 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 PersistImportedDeploymentRequestCloudUnion = | PersistImportedDeploymentRequestCloud | any; /** * Ownership model for the Kubernetes cluster. */ export const PersistImportedDeploymentRequestOwnership = { Managed: "managed", Existing: "existing", External: "external", } as const; /** * Ownership model for the Kubernetes cluster. */ export type PersistImportedDeploymentRequestOwnership = ClosedEnum< typeof PersistImportedDeploymentRequestOwnership >; /** * Kubernetes cluster setup settings. */ export type PersistImportedDeploymentRequestCluster = { cloud?: PersistImportedDeploymentRequestCloud | any | null | undefined; /** * Namespace where the Alien chart and application resources run. */ namespace?: string | null | undefined; /** * Ownership model for the Kubernetes cluster. */ ownership: PersistImportedDeploymentRequestOwnership; }; export type PersistImportedDeploymentRequestClusterUnion = | PersistImportedDeploymentRequestCluster | any; export type PersistImportedDeploymentRequestCertificateNone2 = { mode: "none"; }; export type PersistImportedDeploymentRequestCertificateManagedTLSSecret2 = { mode: "managedTlsSecret"; /** * Secret name template. Runtime may substitute resource/deployment tokens. */ secretNameTemplate: string; }; export type PersistImportedDeploymentRequestCertificateAwsAcmArn2 = { /** * Existing ACM certificate ARN. */ certificateArn: string; mode: "awsAcmArn"; }; export type PersistImportedDeploymentRequestCertificateManagedAcmImport2 = { 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 PersistImportedDeploymentRequestCertificateTLSSecretRef2 = { /** * 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 PersistImportedDeploymentRequestCertificateUnion2 = | PersistImportedDeploymentRequestCertificateTLSSecretRef2 | PersistImportedDeploymentRequestCertificateManagedAcmImport2 | PersistImportedDeploymentRequestCertificateAwsAcmArn2 | PersistImportedDeploymentRequestCertificateManagedTLSSecret2 | PersistImportedDeploymentRequestCertificateNone2; export const PersistImportedDeploymentRequestModeCustom = { Custom: "custom", } as const; export type PersistImportedDeploymentRequestModeCustom = ClosedEnum< typeof PersistImportedDeploymentRequestModeCustom >; export const PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum4 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum4 = ClosedEnum< typeof PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum4 >; export type PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers4 = { /** * 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: PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum4; }; export const PersistImportedDeploymentRequestProviderGkeGatewayEnum4 = { GkeGateway: "gkeGateway", } as const; export type PersistImportedDeploymentRequestProviderGkeGatewayEnum4 = ClosedEnum; export type PersistImportedDeploymentRequestProviderGkeGateway4 = { provider: PersistImportedDeploymentRequestProviderGkeGatewayEnum4; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const PersistImportedDeploymentRequestProviderAwsAlbEnum4 = { AwsAlb: "awsAlb", } as const; export type PersistImportedDeploymentRequestProviderAwsAlbEnum4 = ClosedEnum< typeof PersistImportedDeploymentRequestProviderAwsAlbEnum4 >; export type PersistImportedDeploymentRequestProviderAwsAlb4 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: PersistImportedDeploymentRequestProviderAwsAlbEnum4; /** * 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 PersistImportedDeploymentRequestProviderUnion4 = | PersistImportedDeploymentRequestProviderAwsAlb4 | PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers4 | PersistImportedDeploymentRequestProviderGkeGateway4 | any; /** * Shared Gateway API route profile values. */ export type PersistImportedDeploymentRequestRouteGateway2 = { /** * 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?: | PersistImportedDeploymentRequestProviderAwsAlb4 | PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers4 | PersistImportedDeploymentRequestProviderGkeGateway4 | any | null | undefined; routeApi: "gateway"; }; export const PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum3 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum3 = ClosedEnum< typeof PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum3 >; export type PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers3 = { /** * 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: PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum3; }; export const PersistImportedDeploymentRequestProviderGkeGatewayEnum3 = { GkeGateway: "gkeGateway", } as const; export type PersistImportedDeploymentRequestProviderGkeGatewayEnum3 = ClosedEnum; export type PersistImportedDeploymentRequestProviderGkeGateway3 = { provider: PersistImportedDeploymentRequestProviderGkeGatewayEnum3; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const PersistImportedDeploymentRequestProviderAwsAlbEnum3 = { AwsAlb: "awsAlb", } as const; export type PersistImportedDeploymentRequestProviderAwsAlbEnum3 = ClosedEnum< typeof PersistImportedDeploymentRequestProviderAwsAlbEnum3 >; export type PersistImportedDeploymentRequestProviderAwsAlb3 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: PersistImportedDeploymentRequestProviderAwsAlbEnum3; /** * 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 PersistImportedDeploymentRequestProviderUnion3 = | PersistImportedDeploymentRequestProviderAwsAlb3 | PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers3 | PersistImportedDeploymentRequestProviderGkeGateway3 | any; /** * Shared Ingress route profile values. */ export type PersistImportedDeploymentRequestRouteIngress2 = { /** * 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?: | PersistImportedDeploymentRequestProviderAwsAlb3 | PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers3 | PersistImportedDeploymentRequestProviderGkeGateway3 | any | null | undefined; routeApi: "ingress"; }; /** * Kubernetes route API selected for public endpoints. */ export type PersistImportedDeploymentRequestRouteUnion2 = | PersistImportedDeploymentRequestRouteIngress2 | PersistImportedDeploymentRequestRouteGateway2; export type PersistImportedDeploymentRequestExposureCustom = { /** * Certificate publication or reference mode for Kubernetes public endpoints. */ certificate: | PersistImportedDeploymentRequestCertificateTLSSecretRef2 | PersistImportedDeploymentRequestCertificateManagedAcmImport2 | PersistImportedDeploymentRequestCertificateAwsAcmArn2 | PersistImportedDeploymentRequestCertificateManagedTLSSecret2 | PersistImportedDeploymentRequestCertificateNone2; /** * Hostname routed by the Kubernetes public endpoint. */ domain: string; mode: PersistImportedDeploymentRequestModeCustom; /** * Kubernetes route API selected for public endpoints. */ route: | PersistImportedDeploymentRequestRouteIngress2 | PersistImportedDeploymentRequestRouteGateway2; }; export type PersistImportedDeploymentRequestCertificateNone1 = { mode: "none"; }; export type PersistImportedDeploymentRequestCertificateManagedTLSSecret1 = { mode: "managedTlsSecret"; /** * Secret name template. Runtime may substitute resource/deployment tokens. */ secretNameTemplate: string; }; export type PersistImportedDeploymentRequestCertificateAwsAcmArn1 = { /** * Existing ACM certificate ARN. */ certificateArn: string; mode: "awsAcmArn"; }; export type PersistImportedDeploymentRequestCertificateManagedAcmImport1 = { 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 PersistImportedDeploymentRequestCertificateTLSSecretRef1 = { /** * 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 PersistImportedDeploymentRequestCertificateUnion1 = | PersistImportedDeploymentRequestCertificateTLSSecretRef1 | PersistImportedDeploymentRequestCertificateManagedAcmImport1 | PersistImportedDeploymentRequestCertificateAwsAcmArn1 | PersistImportedDeploymentRequestCertificateManagedTLSSecret1 | PersistImportedDeploymentRequestCertificateNone1; export const PersistImportedDeploymentRequestModeGenerated = { Generated: "generated", } as const; export type PersistImportedDeploymentRequestModeGenerated = ClosedEnum< typeof PersistImportedDeploymentRequestModeGenerated >; export const PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum2 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum2 = ClosedEnum< typeof PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum2 >; export type PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers2 = { /** * 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: PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum2; }; export const PersistImportedDeploymentRequestProviderGkeGatewayEnum2 = { GkeGateway: "gkeGateway", } as const; export type PersistImportedDeploymentRequestProviderGkeGatewayEnum2 = ClosedEnum; export type PersistImportedDeploymentRequestProviderGkeGateway2 = { provider: PersistImportedDeploymentRequestProviderGkeGatewayEnum2; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const PersistImportedDeploymentRequestProviderAwsAlbEnum2 = { AwsAlb: "awsAlb", } as const; export type PersistImportedDeploymentRequestProviderAwsAlbEnum2 = ClosedEnum< typeof PersistImportedDeploymentRequestProviderAwsAlbEnum2 >; export type PersistImportedDeploymentRequestProviderAwsAlb2 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: PersistImportedDeploymentRequestProviderAwsAlbEnum2; /** * 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 PersistImportedDeploymentRequestProviderUnion2 = | PersistImportedDeploymentRequestProviderAwsAlb2 | PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers2 | PersistImportedDeploymentRequestProviderGkeGateway2 | any; /** * Shared Gateway API route profile values. */ export type PersistImportedDeploymentRequestRouteGateway1 = { /** * 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?: | PersistImportedDeploymentRequestProviderAwsAlb2 | PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers2 | PersistImportedDeploymentRequestProviderGkeGateway2 | any | null | undefined; routeApi: "gateway"; }; export const PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum1 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum1 = ClosedEnum< typeof PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum1 >; export type PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers1 = { /** * 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: PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum1; }; export const PersistImportedDeploymentRequestProviderGkeGatewayEnum1 = { GkeGateway: "gkeGateway", } as const; export type PersistImportedDeploymentRequestProviderGkeGatewayEnum1 = ClosedEnum; export type PersistImportedDeploymentRequestProviderGkeGateway1 = { provider: PersistImportedDeploymentRequestProviderGkeGatewayEnum1; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const PersistImportedDeploymentRequestProviderAwsAlbEnum1 = { AwsAlb: "awsAlb", } as const; export type PersistImportedDeploymentRequestProviderAwsAlbEnum1 = ClosedEnum< typeof PersistImportedDeploymentRequestProviderAwsAlbEnum1 >; export type PersistImportedDeploymentRequestProviderAwsAlb1 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: PersistImportedDeploymentRequestProviderAwsAlbEnum1; /** * 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 PersistImportedDeploymentRequestProviderUnion1 = | PersistImportedDeploymentRequestProviderAwsAlb1 | PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers1 | PersistImportedDeploymentRequestProviderGkeGateway1 | any; /** * Shared Ingress route profile values. */ export type PersistImportedDeploymentRequestRouteIngress1 = { /** * 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?: | PersistImportedDeploymentRequestProviderAwsAlb1 | PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers1 | PersistImportedDeploymentRequestProviderGkeGateway1 | any | null | undefined; routeApi: "ingress"; }; /** * Kubernetes route API selected for public endpoints. */ export type PersistImportedDeploymentRequestRouteUnion1 = | PersistImportedDeploymentRequestRouteIngress1 | PersistImportedDeploymentRequestRouteGateway1; export type PersistImportedDeploymentRequestExposureGenerated = { /** * Certificate publication or reference mode for Kubernetes public endpoints. */ certificate: | PersistImportedDeploymentRequestCertificateTLSSecretRef1 | PersistImportedDeploymentRequestCertificateManagedAcmImport1 | PersistImportedDeploymentRequestCertificateAwsAcmArn1 | PersistImportedDeploymentRequestCertificateManagedTLSSecret1 | PersistImportedDeploymentRequestCertificateNone1; mode: PersistImportedDeploymentRequestModeGenerated; /** * Kubernetes route API selected for public endpoints. */ route: | PersistImportedDeploymentRequestRouteIngress1 | PersistImportedDeploymentRequestRouteGateway1; }; export const PersistImportedDeploymentRequestModeDisabled = { Disabled: "disabled", } as const; export type PersistImportedDeploymentRequestModeDisabled = ClosedEnum< typeof PersistImportedDeploymentRequestModeDisabled >; export type PersistImportedDeploymentRequestExposureDisabled = { mode: PersistImportedDeploymentRequestModeDisabled; }; export type PersistImportedDeploymentRequestExposureUnion = | PersistImportedDeploymentRequestExposureCustom | PersistImportedDeploymentRequestExposureGenerated | PersistImportedDeploymentRequestExposureDisabled | 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 PersistImportedDeploymentRequestKubernetes = { cluster?: PersistImportedDeploymentRequestCluster | any | null | undefined; exposure?: | PersistImportedDeploymentRequestExposureCustom | PersistImportedDeploymentRequestExposureGenerated | PersistImportedDeploymentRequestExposureDisabled | any | null | undefined; }; export type PersistImportedDeploymentRequestKubernetesUnion = | PersistImportedDeploymentRequestKubernetes | any; export const PersistImportedDeploymentRequestTypeByoVnetAzure = { ByoVnetAzure: "byo-vnet-azure", } as const; export type PersistImportedDeploymentRequestTypeByoVnetAzure = ClosedEnum< typeof PersistImportedDeploymentRequestTypeByoVnetAzure >; export type PersistImportedDeploymentRequestNetworkByoVnetAzure = { /** * 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: PersistImportedDeploymentRequestTypeByoVnetAzure; /** * The full resource ID of the existing VNet */ vnetResourceId: string; }; export const PersistImportedDeploymentRequestTypeByoVpcGcp = { ByoVpcGcp: "byo-vpc-gcp", } as const; export type PersistImportedDeploymentRequestTypeByoVpcGcp = ClosedEnum< typeof PersistImportedDeploymentRequestTypeByoVpcGcp >; export type PersistImportedDeploymentRequestNetworkByoVpcGcp = { /** * 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: PersistImportedDeploymentRequestTypeByoVpcGcp; }; export const PersistImportedDeploymentRequestTypeByoVpcAws = { ByoVpcAws: "byo-vpc-aws", } as const; export type PersistImportedDeploymentRequestTypeByoVpcAws = ClosedEnum< typeof PersistImportedDeploymentRequestTypeByoVpcAws >; export type PersistImportedDeploymentRequestNetworkByoVpcAws = { /** * 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: PersistImportedDeploymentRequestTypeByoVpcAws; /** * The ID of the existing VPC */ vpcId: string; }; export const PersistImportedDeploymentRequestTypeCreate = { Create: "create", } as const; export type PersistImportedDeploymentRequestTypeCreate = ClosedEnum< typeof PersistImportedDeploymentRequestTypeCreate >; export type PersistImportedDeploymentRequestNetworkCreate = { /** * 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: PersistImportedDeploymentRequestTypeCreate; }; export const PersistImportedDeploymentRequestTypeUseDefault = { UseDefault: "use-default", } as const; export type PersistImportedDeploymentRequestTypeUseDefault = ClosedEnum< typeof PersistImportedDeploymentRequestTypeUseDefault >; export type PersistImportedDeploymentRequestNetworkUseDefault = { type: PersistImportedDeploymentRequestTypeUseDefault; }; export type PersistImportedDeploymentRequestNetworkUnion = | PersistImportedDeploymentRequestNetworkByoVpcAws | PersistImportedDeploymentRequestNetworkByoVpcGcp | PersistImportedDeploymentRequestNetworkByoVnetAzure | PersistImportedDeploymentRequestNetworkUseDefault | PersistImportedDeploymentRequestNetworkCreate | any; /** * How telemetry (logs, metrics, traces) is handled. */ export const PersistImportedDeploymentRequestTelemetry = { Off: "off", Auto: "auto", ApprovalRequired: "approval-required", } as const; /** * How telemetry (logs, metrics, traces) is handled. */ export type PersistImportedDeploymentRequestTelemetry = ClosedEnum< typeof PersistImportedDeploymentRequestTelemetry >; /** * How updates are delivered to the deployment. */ export const PersistImportedDeploymentRequestUpdates = { Auto: "auto", ApprovalRequired: "approval-required", } as const; /** * How updates are delivered to the deployment. */ export type PersistImportedDeploymentRequestUpdates = ClosedEnum< typeof PersistImportedDeploymentRequestUpdates >; /** * User-customizable deployment settings specified at deploy time. * * @remarks * * These settings are provided by the customer via CloudFormation parameters, * Terraform attributes, CLI flags, or Helm values. They customize how the * deployment runs and what capabilities are enabled. * * **Key distinction**: StackSettings is user-customizable, while ManagementConfig * is platform-derived (from the Manager's ServiceAccount). */ export type PersistImportedDeploymentRequestStackSettings = { compute?: PersistImportedDeploymentRequestCompute | any | null | undefined; /** * Deployment model: how updates are delivered to the remote environment. */ deploymentModel?: PersistImportedDeploymentRequestDeploymentModel | undefined; domains?: PersistImportedDeploymentRequestDomains | 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?: | PersistImportedDeploymentRequestExternalBindings | null | undefined; /** * How heartbeat health checks are handled. */ heartbeats?: PersistImportedDeploymentRequestHeartbeats | undefined; kubernetes?: | PersistImportedDeploymentRequestKubernetes | any | null | undefined; network?: | PersistImportedDeploymentRequestNetworkByoVpcAws | PersistImportedDeploymentRequestNetworkByoVpcGcp | PersistImportedDeploymentRequestNetworkByoVnetAzure | PersistImportedDeploymentRequestNetworkUseDefault | PersistImportedDeploymentRequestNetworkCreate | 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?: PersistImportedDeploymentRequestTelemetry | undefined; /** * How updates are delivered to the deployment. */ updates?: PersistImportedDeploymentRequestUpdates | undefined; }; export const PersistImportedDeploymentRequestPlatformTest = { Test: "test", } as const; export type PersistImportedDeploymentRequestPlatformTest = ClosedEnum< typeof PersistImportedDeploymentRequestPlatformTest >; /** * Test platform environment information (mock) */ export type PersistImportedDeploymentRequestEnvironmentInfoTest = { /** * Test identifier for this environment */ testId: string; platform: PersistImportedDeploymentRequestPlatformTest; }; export const PersistImportedDeploymentRequestPlatformLocal = { Local: "local", } as const; export type PersistImportedDeploymentRequestPlatformLocal = ClosedEnum< typeof PersistImportedDeploymentRequestPlatformLocal >; /** * Local platform environment information */ export type PersistImportedDeploymentRequestEnvironmentInfoLocal = { /** * 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: PersistImportedDeploymentRequestPlatformLocal; }; export const PersistImportedDeploymentRequestEnvironmentInfoPlatformAzure = { Azure: "azure", } as const; export type PersistImportedDeploymentRequestEnvironmentInfoPlatformAzure = ClosedEnum< typeof PersistImportedDeploymentRequestEnvironmentInfoPlatformAzure >; /** * Azure-specific environment information */ export type PersistImportedDeploymentRequestEnvironmentInfoAzure = { /** * Azure location/region */ location: string; /** * Azure subscription ID */ subscriptionId: string; /** * Azure tenant ID */ tenantId: string; platform: PersistImportedDeploymentRequestEnvironmentInfoPlatformAzure; }; export const PersistImportedDeploymentRequestEnvironmentInfoPlatformGcp = { Gcp: "gcp", } as const; export type PersistImportedDeploymentRequestEnvironmentInfoPlatformGcp = ClosedEnum; /** * GCP-specific environment information */ export type PersistImportedDeploymentRequestEnvironmentInfoGcp = { /** * GCP project ID (e.g., "my-project") */ projectId: string; /** * GCP project number (e.g., "123456789012") */ projectNumber: string; /** * GCP region */ region: string; platform: PersistImportedDeploymentRequestEnvironmentInfoPlatformGcp; }; export const PersistImportedDeploymentRequestEnvironmentInfoPlatformAws = { Aws: "aws", } as const; export type PersistImportedDeploymentRequestEnvironmentInfoPlatformAws = ClosedEnum; /** * AWS-specific environment information */ export type PersistImportedDeploymentRequestEnvironmentInfoAws = { /** * AWS account ID */ accountId: string; /** * AWS region */ region: string; platform: PersistImportedDeploymentRequestEnvironmentInfoPlatformAws; }; /** * Platform-specific environment information */ export type PersistImportedDeploymentRequestEnvironmentInfoUnion = | PersistImportedDeploymentRequestEnvironmentInfoGcp | PersistImportedDeploymentRequestEnvironmentInfoAzure | PersistImportedDeploymentRequestEnvironmentInfoLocal | PersistImportedDeploymentRequestEnvironmentInfoAws | PersistImportedDeploymentRequestEnvironmentInfoTest | any; /** * Actor that owns structural work during the initial setup phase. */ export const PersistImportedDeploymentRequestInitialSetupAuthority = { ImportedHandoff: "importedHandoff", DirectSetup: "directSetup", } as const; /** * Actor that owns structural work during the initial setup phase. */ export type PersistImportedDeploymentRequestInitialSetupAuthority = ClosedEnum< typeof PersistImportedDeploymentRequestInitialSetupAuthority >; export const PersistImportedDeploymentRequestPendingPreparedStackTypeStringList = { StringList: "stringList", } as const; export type PersistImportedDeploymentRequestPendingPreparedStackTypeStringList = ClosedEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackTypeStringList >; export type PersistImportedDeploymentRequestPendingPreparedStackDefaultStringList = { type: PersistImportedDeploymentRequestPendingPreparedStackTypeStringList; /** * String list default. */ value: Array; }; export const PersistImportedDeploymentRequestPendingPreparedStackTypeBoolean = { Boolean: "boolean", } as const; export type PersistImportedDeploymentRequestPendingPreparedStackTypeBoolean = ClosedEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackTypeBoolean >; export type PersistImportedDeploymentRequestPendingPreparedStackDefaultBoolean = { type: PersistImportedDeploymentRequestPendingPreparedStackTypeBoolean; /** * Boolean default. */ value: boolean; }; export const PersistImportedDeploymentRequestPendingPreparedStackTypeNumber = { Number: "number", } as const; export type PersistImportedDeploymentRequestPendingPreparedStackTypeNumber = ClosedEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackTypeNumber >; export type PersistImportedDeploymentRequestPendingPreparedStackDefaultNumber = { type: PersistImportedDeploymentRequestPendingPreparedStackTypeNumber; /** * Number default. */ value: string; }; export const PersistImportedDeploymentRequestPendingPreparedStackTypeString = { String: "string", } as const; export type PersistImportedDeploymentRequestPendingPreparedStackTypeString = ClosedEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackTypeString >; export type PersistImportedDeploymentRequestPendingPreparedStackDefaultString = { type: PersistImportedDeploymentRequestPendingPreparedStackTypeString; /** * String default. */ value: string; }; export type PersistImportedDeploymentRequestPendingPreparedStackDefaultUnion = | PersistImportedDeploymentRequestPendingPreparedStackDefaultString | PersistImportedDeploymentRequestPendingPreparedStackDefaultNumber | PersistImportedDeploymentRequestPendingPreparedStackDefaultBoolean | PersistImportedDeploymentRequestPendingPreparedStackDefaultStringList | any; /** * Environment variable handling for a stack input mapping. */ export const PersistImportedDeploymentRequestPendingPreparedStackTypeEnvEnum = { Plain: "plain", Secret: "secret", } as const; /** * Environment variable handling for a stack input mapping. */ export type PersistImportedDeploymentRequestPendingPreparedStackTypeEnvEnum = ClosedEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackTypeEnvEnum >; export type PersistImportedDeploymentRequestPendingPreparedStackTypeUnion = | PersistImportedDeploymentRequestPendingPreparedStackTypeEnvEnum | any; /** * How a resolved stack input is injected into runtime environment variables. */ export type PersistImportedDeploymentRequestPendingPreparedStackEnv = { /** * Environment variable name. */ name: string; /** * Target resource IDs or patterns. None means every env-capable resource. */ targetResources?: Array | null | undefined; type?: | PersistImportedDeploymentRequestPendingPreparedStackTypeEnvEnum | any | null | undefined; }; /** * Primitive stack input kind. */ export const PersistImportedDeploymentRequestPendingPreparedStackKind = { String: "string", Secret: "secret", Number: "number", Integer: "integer", Boolean: "boolean", Enum: "enum", StringList: "stringList", } as const; /** * Primitive stack input kind. */ export type PersistImportedDeploymentRequestPendingPreparedStackKind = ClosedEnum; /** * Represents the target cloud platform. */ export const PersistImportedDeploymentRequestPendingPreparedStackPlatform = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type PersistImportedDeploymentRequestPendingPreparedStackPlatform = ClosedEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackPlatform >; /** * Who can provide a stack input value. */ export const PersistImportedDeploymentRequestPendingPreparedStackProvidedBy = { Developer: "developer", Deployer: "deployer", } as const; /** * Who can provide a stack input value. */ export type PersistImportedDeploymentRequestPendingPreparedStackProvidedBy = ClosedEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackProvidedBy >; /** * Portable stack input validation constraints. */ export type PersistImportedDeploymentRequestPendingPreparedStackValidation = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackValidationUnion = | PersistImportedDeploymentRequestPendingPreparedStackValidation | any; /** * Stack input definition serialized into a release stack. */ export type PersistImportedDeploymentRequestPendingPreparedStackInput = { default?: | PersistImportedDeploymentRequestPendingPreparedStackDefaultString | PersistImportedDeploymentRequestPendingPreparedStackDefaultNumber | PersistImportedDeploymentRequestPendingPreparedStackDefaultBoolean | PersistImportedDeploymentRequestPendingPreparedStackDefaultStringList | 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: PersistImportedDeploymentRequestPendingPreparedStackKind; /** * 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< PersistImportedDeploymentRequestPendingPreparedStackProvidedBy >; /** * Whether a resolved value is required before deployment can proceed. */ required: boolean; validation?: | PersistImportedDeploymentRequestPendingPreparedStackValidation | any | null | undefined; }; export const PersistImportedDeploymentRequestPendingPreparedStackManagementEnum = { Auto: "auto", } as const; export type PersistImportedDeploymentRequestPendingPreparedStackManagementEnum = ClosedEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackManagementEnum >; /** * AWS-specific binding specification */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideAwResource = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackOverrideAwStack = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackOverrideAwBinding = { /** * AWS-specific binding specification */ resource?: | PersistImportedDeploymentRequestPendingPreparedStackOverrideAwResource | undefined; /** * AWS-specific binding specification */ stack?: | PersistImportedDeploymentRequestPendingPreparedStackOverrideAwStack | undefined; }; /** * IAM effect. Defaults to Allow. */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideEffect = { Allow: "Allow", Deny: "Deny", } as const; /** * IAM effect. Defaults to Allow. */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideEffect = ClosedEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackOverrideEffect >; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideAwGrant = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackOverrideAw = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPendingPreparedStackOverrideAwBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * IAM effect. Defaults to Allow. */ effect?: | PersistImportedDeploymentRequestPendingPreparedStackOverrideEffect | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPendingPreparedStackOverrideAwGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Azure-specific binding specification */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureResource = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Azure-specific binding specification */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureStack = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureBinding = { /** * Azure-specific binding specification */ resource?: | PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureResource | undefined; /** * Azure-specific binding specification */ stack?: | PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureGrant = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackOverrideAzure = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * GCP IAM condition */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionResource = { expression: string; title: string; }; export type PersistImportedDeploymentRequestPendingPreparedStackOverrideResourceConditionUnion = | PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionResource | any; /** * GCP-specific binding specification */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpResource = { condition?: | PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionResource | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * GCP IAM condition */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionStack = { expression: string; title: string; }; export type PersistImportedDeploymentRequestPendingPreparedStackOverrideStackConditionUnion = | PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionStack | any; /** * GCP-specific binding specification */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpStack = { condition?: | PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionStack | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpBinding = { /** * GCP-specific binding specification */ resource?: | PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpResource | undefined; /** * GCP-specific binding specification */ stack?: | PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpGrant = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackOverrideGcp = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Platform-specific permission configurations */ export type PersistImportedDeploymentRequestPendingPreparedStackOverridePlatforms = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackOverride = { /** * 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: PersistImportedDeploymentRequestPendingPreparedStackOverridePlatforms; }; /** * Reference to a permission set - either by name or inline definition */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideUnion = | PersistImportedDeploymentRequestPendingPreparedStackOverride | string; export type PersistImportedDeploymentRequestPendingPreparedStackManagement2 = { /** * 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< PersistImportedDeploymentRequestPendingPreparedStackOverride | string >; }; }; /** * AWS-specific binding specification */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendAwResource = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackExtendAwStack = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackExtendAwBinding = { /** * AWS-specific binding specification */ resource?: | PersistImportedDeploymentRequestPendingPreparedStackExtendAwResource | undefined; /** * AWS-specific binding specification */ stack?: | PersistImportedDeploymentRequestPendingPreparedStackExtendAwStack | undefined; }; /** * IAM effect. Defaults to Allow. */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendEffect = { Allow: "Allow", Deny: "Deny", } as const; /** * IAM effect. Defaults to Allow. */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendEffect = ClosedEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackExtendEffect >; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendAwGrant = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackExtendAw = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPendingPreparedStackExtendAwBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * IAM effect. Defaults to Allow. */ effect?: | PersistImportedDeploymentRequestPendingPreparedStackExtendEffect | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPendingPreparedStackExtendAwGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Azure-specific binding specification */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendAzureResource = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Azure-specific binding specification */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendAzureStack = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendAzureBinding = { /** * Azure-specific binding specification */ resource?: | PersistImportedDeploymentRequestPendingPreparedStackExtendAzureResource | undefined; /** * Azure-specific binding specification */ stack?: | PersistImportedDeploymentRequestPendingPreparedStackExtendAzureStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendAzureGrant = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackExtendAzure = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPendingPreparedStackExtendAzureBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPendingPreparedStackExtendAzureGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * GCP IAM condition */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendConditionResource = { expression: string; title: string; }; export type PersistImportedDeploymentRequestPendingPreparedStackExtendResourceConditionUnion = | PersistImportedDeploymentRequestPendingPreparedStackExtendConditionResource | any; /** * GCP-specific binding specification */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendGcpResource = { condition?: | PersistImportedDeploymentRequestPendingPreparedStackExtendConditionResource | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * GCP IAM condition */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendConditionStack = { expression: string; title: string; }; export type PersistImportedDeploymentRequestPendingPreparedStackExtendStackConditionUnion = | PersistImportedDeploymentRequestPendingPreparedStackExtendConditionStack | any; /** * GCP-specific binding specification */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendGcpStack = { condition?: | PersistImportedDeploymentRequestPendingPreparedStackExtendConditionStack | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendGcpBinding = { /** * GCP-specific binding specification */ resource?: | PersistImportedDeploymentRequestPendingPreparedStackExtendGcpResource | undefined; /** * GCP-specific binding specification */ stack?: | PersistImportedDeploymentRequestPendingPreparedStackExtendGcpStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendGcpGrant = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackExtendGcp = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPendingPreparedStackExtendGcpBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPendingPreparedStackExtendGcpGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Platform-specific permission configurations */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendPlatforms = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackExtend = { /** * 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: PersistImportedDeploymentRequestPendingPreparedStackExtendPlatforms; }; /** * Reference to a permission set - either by name or inline definition */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendUnion = | PersistImportedDeploymentRequestPendingPreparedStackExtend | string; export type PersistImportedDeploymentRequestPendingPreparedStackManagement1 = { /** * 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< PersistImportedDeploymentRequestPendingPreparedStackExtend | string >; }; }; /** * Management permissions configuration for stack management access */ export type PersistImportedDeploymentRequestPendingPreparedStackManagementUnion = | PersistImportedDeploymentRequestPendingPreparedStackManagement1 | PersistImportedDeploymentRequestPendingPreparedStackManagement2 | PersistImportedDeploymentRequestPendingPreparedStackManagementEnum; /** * AWS-specific binding specification */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileAwResource = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackProfileAwStack = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackProfileAwBinding = { /** * AWS-specific binding specification */ resource?: | PersistImportedDeploymentRequestPendingPreparedStackProfileAwResource | undefined; /** * AWS-specific binding specification */ stack?: | PersistImportedDeploymentRequestPendingPreparedStackProfileAwStack | undefined; }; /** * IAM effect. Defaults to Allow. */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileEffect = { Allow: "Allow", Deny: "Deny", } as const; /** * IAM effect. Defaults to Allow. */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileEffect = ClosedEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackProfileEffect >; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileAwGrant = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackProfileAw = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPendingPreparedStackProfileAwBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * IAM effect. Defaults to Allow. */ effect?: | PersistImportedDeploymentRequestPendingPreparedStackProfileEffect | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPendingPreparedStackProfileAwGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Azure-specific binding specification */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileAzureResource = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Azure-specific binding specification */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileAzureStack = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileAzureBinding = { /** * Azure-specific binding specification */ resource?: | PersistImportedDeploymentRequestPendingPreparedStackProfileAzureResource | undefined; /** * Azure-specific binding specification */ stack?: | PersistImportedDeploymentRequestPendingPreparedStackProfileAzureStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileAzureGrant = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackProfileAzure = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPendingPreparedStackProfileAzureBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPendingPreparedStackProfileAzureGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * GCP IAM condition */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileConditionResource = { expression: string; title: string; }; export type PersistImportedDeploymentRequestPendingPreparedStackProfileResourceConditionUnion = | PersistImportedDeploymentRequestPendingPreparedStackProfileConditionResource | any; /** * GCP-specific binding specification */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileGcpResource = { condition?: | PersistImportedDeploymentRequestPendingPreparedStackProfileConditionResource | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * GCP IAM condition */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileConditionStack = { expression: string; title: string; }; export type PersistImportedDeploymentRequestPendingPreparedStackProfileStackConditionUnion = | PersistImportedDeploymentRequestPendingPreparedStackProfileConditionStack | any; /** * GCP-specific binding specification */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileGcpStack = { condition?: | PersistImportedDeploymentRequestPendingPreparedStackProfileConditionStack | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileGcpBinding = { /** * GCP-specific binding specification */ resource?: | PersistImportedDeploymentRequestPendingPreparedStackProfileGcpResource | undefined; /** * GCP-specific binding specification */ stack?: | PersistImportedDeploymentRequestPendingPreparedStackProfileGcpStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileGcpGrant = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackProfileGcp = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPendingPreparedStackProfileGcpBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPendingPreparedStackProfileGcpGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Platform-specific permission configurations */ export type PersistImportedDeploymentRequestPendingPreparedStackProfilePlatforms = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackProfile = { /** * 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: PersistImportedDeploymentRequestPendingPreparedStackProfilePlatforms; }; /** * Reference to a permission set - either by name or inline definition */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileUnion = | PersistImportedDeploymentRequestPendingPreparedStackProfile | string; /** * Combined permissions configuration that contains both profiles and management */ export type PersistImportedDeploymentRequestPendingPreparedStackPermissions = { /** * Management permissions configuration for stack management access */ management?: | PersistImportedDeploymentRequestPendingPreparedStackManagement1 | PersistImportedDeploymentRequestPendingPreparedStackManagement2 | PersistImportedDeploymentRequestPendingPreparedStackManagementEnum | 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< PersistImportedDeploymentRequestPendingPreparedStackProfile | 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 PersistImportedDeploymentRequestPendingPreparedStackConfig = { /** * 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 PersistImportedDeploymentRequestPendingPreparedStackDependency = { 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 PersistImportedDeploymentRequestPendingPreparedStackLifecycle = { Frozen: "frozen", Live: "live", } as const; /** * Describes the lifecycle of a resource within a stack, determining how it's managed and deployed. */ export type PersistImportedDeploymentRequestPendingPreparedStackLifecycle = ClosedEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackLifecycle >; export type PersistImportedDeploymentRequestPendingPreparedStackResources = { /** * 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: PersistImportedDeploymentRequestPendingPreparedStackConfig; /** * Additional dependencies for this resource beyond those defined in the resource itself. * * @remarks * The total dependencies are: resource.get_dependencies() + this list */ dependencies: Array< PersistImportedDeploymentRequestPendingPreparedStackDependency >; /** * 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: PersistImportedDeploymentRequestPendingPreparedStackLifecycle; /** * 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 PersistImportedDeploymentRequestPendingPreparedStackSupportedPlatform = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type PersistImportedDeploymentRequestPendingPreparedStackSupportedPlatform = ClosedEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackSupportedPlatform >; /** * A bag of resources, unaware of any cloud. */ export type PersistImportedDeploymentRequestPendingPreparedStack = { /** * 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?: | PersistImportedDeploymentRequestPendingPreparedStackPermissions | undefined; /** * Map of resource IDs to their configurations and lifecycle settings */ resources: { [k: string]: PersistImportedDeploymentRequestPendingPreparedStackResources; }; /** * Which platforms this stack supports. When None, all platforms are supported. */ supportedPlatforms?: | Array< PersistImportedDeploymentRequestPendingPreparedStackSupportedPlatform > | null | undefined; }; export type PersistImportedDeploymentRequestPendingPreparedStackUnion = | PersistImportedDeploymentRequestPendingPreparedStack | any; export const PersistImportedDeploymentRequestPreparedStackTypeStringList = { StringList: "stringList", } as const; export type PersistImportedDeploymentRequestPreparedStackTypeStringList = ClosedEnum< typeof PersistImportedDeploymentRequestPreparedStackTypeStringList >; export type PersistImportedDeploymentRequestPreparedStackDefaultStringList = { type: PersistImportedDeploymentRequestPreparedStackTypeStringList; /** * String list default. */ value: Array; }; export const PersistImportedDeploymentRequestPreparedStackTypeBoolean = { Boolean: "boolean", } as const; export type PersistImportedDeploymentRequestPreparedStackTypeBoolean = ClosedEnum; export type PersistImportedDeploymentRequestPreparedStackDefaultBoolean = { type: PersistImportedDeploymentRequestPreparedStackTypeBoolean; /** * Boolean default. */ value: boolean; }; export const PersistImportedDeploymentRequestPreparedStackTypeNumber = { Number: "number", } as const; export type PersistImportedDeploymentRequestPreparedStackTypeNumber = ClosedEnum; export type PersistImportedDeploymentRequestPreparedStackDefaultNumber = { type: PersistImportedDeploymentRequestPreparedStackTypeNumber; /** * Number default. */ value: string; }; export const PersistImportedDeploymentRequestPreparedStackTypeString = { String: "string", } as const; export type PersistImportedDeploymentRequestPreparedStackTypeString = ClosedEnum; export type PersistImportedDeploymentRequestPreparedStackDefaultString = { type: PersistImportedDeploymentRequestPreparedStackTypeString; /** * String default. */ value: string; }; export type PersistImportedDeploymentRequestPreparedStackDefaultUnion = | PersistImportedDeploymentRequestPreparedStackDefaultString | PersistImportedDeploymentRequestPreparedStackDefaultNumber | PersistImportedDeploymentRequestPreparedStackDefaultBoolean | PersistImportedDeploymentRequestPreparedStackDefaultStringList | any; /** * Environment variable handling for a stack input mapping. */ export const PersistImportedDeploymentRequestPreparedStackTypeEnvEnum = { Plain: "plain", Secret: "secret", } as const; /** * Environment variable handling for a stack input mapping. */ export type PersistImportedDeploymentRequestPreparedStackTypeEnvEnum = ClosedEnum; export type PersistImportedDeploymentRequestPreparedStackTypeUnion = | PersistImportedDeploymentRequestPreparedStackTypeEnvEnum | any; /** * How a resolved stack input is injected into runtime environment variables. */ export type PersistImportedDeploymentRequestPreparedStackEnv = { /** * Environment variable name. */ name: string; /** * Target resource IDs or patterns. None means every env-capable resource. */ targetResources?: Array | null | undefined; type?: | PersistImportedDeploymentRequestPreparedStackTypeEnvEnum | any | null | undefined; }; /** * Primitive stack input kind. */ export const PersistImportedDeploymentRequestPreparedStackKind = { String: "string", Secret: "secret", Number: "number", Integer: "integer", Boolean: "boolean", Enum: "enum", StringList: "stringList", } as const; /** * Primitive stack input kind. */ export type PersistImportedDeploymentRequestPreparedStackKind = ClosedEnum< typeof PersistImportedDeploymentRequestPreparedStackKind >; /** * Represents the target cloud platform. */ export const PersistImportedDeploymentRequestPreparedStackPlatform = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type PersistImportedDeploymentRequestPreparedStackPlatform = ClosedEnum< typeof PersistImportedDeploymentRequestPreparedStackPlatform >; /** * Who can provide a stack input value. */ export const PersistImportedDeploymentRequestPreparedStackProvidedBy = { Developer: "developer", Deployer: "deployer", } as const; /** * Who can provide a stack input value. */ export type PersistImportedDeploymentRequestPreparedStackProvidedBy = ClosedEnum; /** * Portable stack input validation constraints. */ export type PersistImportedDeploymentRequestPreparedStackValidation = { /** * 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 PersistImportedDeploymentRequestPreparedStackValidationUnion = | PersistImportedDeploymentRequestPreparedStackValidation | any; /** * Stack input definition serialized into a release stack. */ export type PersistImportedDeploymentRequestPreparedStackInput = { default?: | PersistImportedDeploymentRequestPreparedStackDefaultString | PersistImportedDeploymentRequestPreparedStackDefaultNumber | PersistImportedDeploymentRequestPreparedStackDefaultBoolean | PersistImportedDeploymentRequestPreparedStackDefaultStringList | 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: PersistImportedDeploymentRequestPreparedStackKind; /** * 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?: | PersistImportedDeploymentRequestPreparedStackValidation | any | null | undefined; }; export const PersistImportedDeploymentRequestPreparedStackManagementEnum = { Auto: "auto", } as const; export type PersistImportedDeploymentRequestPreparedStackManagementEnum = ClosedEnum< typeof PersistImportedDeploymentRequestPreparedStackManagementEnum >; /** * AWS-specific binding specification */ export type PersistImportedDeploymentRequestPreparedStackOverrideAwResource = { /** * 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 PersistImportedDeploymentRequestPreparedStackOverrideAwStack = { /** * 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 PersistImportedDeploymentRequestPreparedStackOverrideAwBinding = { /** * AWS-specific binding specification */ resource?: | PersistImportedDeploymentRequestPreparedStackOverrideAwResource | undefined; /** * AWS-specific binding specification */ stack?: | PersistImportedDeploymentRequestPreparedStackOverrideAwStack | undefined; }; /** * IAM effect. Defaults to Allow. */ export const PersistImportedDeploymentRequestPreparedStackOverrideEffect = { Allow: "Allow", Deny: "Deny", } as const; /** * IAM effect. Defaults to Allow. */ export type PersistImportedDeploymentRequestPreparedStackOverrideEffect = ClosedEnum< typeof PersistImportedDeploymentRequestPreparedStackOverrideEffect >; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPreparedStackOverrideAwGrant = { /** * 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 PersistImportedDeploymentRequestPreparedStackOverrideAw = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPreparedStackOverrideAwBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * IAM effect. Defaults to Allow. */ effect?: | PersistImportedDeploymentRequestPreparedStackOverrideEffect | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPreparedStackOverrideAwGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Azure-specific binding specification */ export type PersistImportedDeploymentRequestPreparedStackOverrideAzureResource = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Azure-specific binding specification */ export type PersistImportedDeploymentRequestPreparedStackOverrideAzureStack = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type PersistImportedDeploymentRequestPreparedStackOverrideAzureBinding = { /** * Azure-specific binding specification */ resource?: | PersistImportedDeploymentRequestPreparedStackOverrideAzureResource | undefined; /** * Azure-specific binding specification */ stack?: | PersistImportedDeploymentRequestPreparedStackOverrideAzureStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPreparedStackOverrideAzureGrant = { /** * 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 PersistImportedDeploymentRequestPreparedStackOverrideAzure = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPreparedStackOverrideAzureBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPreparedStackOverrideAzureGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * GCP IAM condition */ export type PersistImportedDeploymentRequestPreparedStackOverrideConditionResource = { expression: string; title: string; }; export type PersistImportedDeploymentRequestPreparedStackOverrideResourceConditionUnion = | PersistImportedDeploymentRequestPreparedStackOverrideConditionResource | any; /** * GCP-specific binding specification */ export type PersistImportedDeploymentRequestPreparedStackOverrideGcpResource = { condition?: | PersistImportedDeploymentRequestPreparedStackOverrideConditionResource | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * GCP IAM condition */ export type PersistImportedDeploymentRequestPreparedStackOverrideConditionStack = { expression: string; title: string; }; export type PersistImportedDeploymentRequestPreparedStackOverrideStackConditionUnion = | PersistImportedDeploymentRequestPreparedStackOverrideConditionStack | any; /** * GCP-specific binding specification */ export type PersistImportedDeploymentRequestPreparedStackOverrideGcpStack = { condition?: | PersistImportedDeploymentRequestPreparedStackOverrideConditionStack | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type PersistImportedDeploymentRequestPreparedStackOverrideGcpBinding = { /** * GCP-specific binding specification */ resource?: | PersistImportedDeploymentRequestPreparedStackOverrideGcpResource | undefined; /** * GCP-specific binding specification */ stack?: | PersistImportedDeploymentRequestPreparedStackOverrideGcpStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPreparedStackOverrideGcpGrant = { /** * 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 PersistImportedDeploymentRequestPreparedStackOverrideGcp = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPreparedStackOverrideGcpBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPreparedStackOverrideGcpGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Platform-specific permission configurations */ export type PersistImportedDeploymentRequestPreparedStackOverridePlatforms = { /** * 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 PersistImportedDeploymentRequestPreparedStackOverride = { /** * 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: PersistImportedDeploymentRequestPreparedStackOverridePlatforms; }; /** * Reference to a permission set - either by name or inline definition */ export type PersistImportedDeploymentRequestPreparedStackOverrideUnion = | PersistImportedDeploymentRequestPreparedStackOverride | string; export type PersistImportedDeploymentRequestPreparedStackManagement2 = { /** * 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< PersistImportedDeploymentRequestPreparedStackOverride | string >; }; }; /** * AWS-specific binding specification */ export type PersistImportedDeploymentRequestPreparedStackExtendAwResource = { /** * 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 PersistImportedDeploymentRequestPreparedStackExtendAwStack = { /** * 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 PersistImportedDeploymentRequestPreparedStackExtendAwBinding = { /** * AWS-specific binding specification */ resource?: | PersistImportedDeploymentRequestPreparedStackExtendAwResource | undefined; /** * AWS-specific binding specification */ stack?: | PersistImportedDeploymentRequestPreparedStackExtendAwStack | undefined; }; /** * IAM effect. Defaults to Allow. */ export const PersistImportedDeploymentRequestPreparedStackExtendEffect = { Allow: "Allow", Deny: "Deny", } as const; /** * IAM effect. Defaults to Allow. */ export type PersistImportedDeploymentRequestPreparedStackExtendEffect = ClosedEnum; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPreparedStackExtendAwGrant = { /** * 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 PersistImportedDeploymentRequestPreparedStackExtendAw = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPreparedStackExtendAwBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * IAM effect. Defaults to Allow. */ effect?: | PersistImportedDeploymentRequestPreparedStackExtendEffect | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPreparedStackExtendAwGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Azure-specific binding specification */ export type PersistImportedDeploymentRequestPreparedStackExtendAzureResource = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Azure-specific binding specification */ export type PersistImportedDeploymentRequestPreparedStackExtendAzureStack = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type PersistImportedDeploymentRequestPreparedStackExtendAzureBinding = { /** * Azure-specific binding specification */ resource?: | PersistImportedDeploymentRequestPreparedStackExtendAzureResource | undefined; /** * Azure-specific binding specification */ stack?: | PersistImportedDeploymentRequestPreparedStackExtendAzureStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPreparedStackExtendAzureGrant = { /** * 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 PersistImportedDeploymentRequestPreparedStackExtendAzure = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPreparedStackExtendAzureBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPreparedStackExtendAzureGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * GCP IAM condition */ export type PersistImportedDeploymentRequestPreparedStackExtendConditionResource = { expression: string; title: string; }; export type PersistImportedDeploymentRequestPreparedStackExtendResourceConditionUnion = | PersistImportedDeploymentRequestPreparedStackExtendConditionResource | any; /** * GCP-specific binding specification */ export type PersistImportedDeploymentRequestPreparedStackExtendGcpResource = { condition?: | PersistImportedDeploymentRequestPreparedStackExtendConditionResource | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * GCP IAM condition */ export type PersistImportedDeploymentRequestPreparedStackExtendConditionStack = { expression: string; title: string; }; export type PersistImportedDeploymentRequestPreparedStackExtendStackConditionUnion = | PersistImportedDeploymentRequestPreparedStackExtendConditionStack | any; /** * GCP-specific binding specification */ export type PersistImportedDeploymentRequestPreparedStackExtendGcpStack = { condition?: | PersistImportedDeploymentRequestPreparedStackExtendConditionStack | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type PersistImportedDeploymentRequestPreparedStackExtendGcpBinding = { /** * GCP-specific binding specification */ resource?: | PersistImportedDeploymentRequestPreparedStackExtendGcpResource | undefined; /** * GCP-specific binding specification */ stack?: | PersistImportedDeploymentRequestPreparedStackExtendGcpStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPreparedStackExtendGcpGrant = { /** * 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 PersistImportedDeploymentRequestPreparedStackExtendGcp = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPreparedStackExtendGcpBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPreparedStackExtendGcpGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Platform-specific permission configurations */ export type PersistImportedDeploymentRequestPreparedStackExtendPlatforms = { /** * 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 PersistImportedDeploymentRequestPreparedStackExtend = { /** * 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: PersistImportedDeploymentRequestPreparedStackExtendPlatforms; }; /** * Reference to a permission set - either by name or inline definition */ export type PersistImportedDeploymentRequestPreparedStackExtendUnion = | PersistImportedDeploymentRequestPreparedStackExtend | string; export type PersistImportedDeploymentRequestPreparedStackManagement1 = { /** * 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< PersistImportedDeploymentRequestPreparedStackExtend | string >; }; }; /** * Management permissions configuration for stack management access */ export type PersistImportedDeploymentRequestPreparedStackManagementUnion = | PersistImportedDeploymentRequestPreparedStackManagement1 | PersistImportedDeploymentRequestPreparedStackManagement2 | PersistImportedDeploymentRequestPreparedStackManagementEnum; /** * AWS-specific binding specification */ export type PersistImportedDeploymentRequestPreparedStackProfileAwResource = { /** * 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 PersistImportedDeploymentRequestPreparedStackProfileAwStack = { /** * 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 PersistImportedDeploymentRequestPreparedStackProfileAwBinding = { /** * AWS-specific binding specification */ resource?: | PersistImportedDeploymentRequestPreparedStackProfileAwResource | undefined; /** * AWS-specific binding specification */ stack?: | PersistImportedDeploymentRequestPreparedStackProfileAwStack | undefined; }; /** * IAM effect. Defaults to Allow. */ export const PersistImportedDeploymentRequestPreparedStackProfileEffect = { Allow: "Allow", Deny: "Deny", } as const; /** * IAM effect. Defaults to Allow. */ export type PersistImportedDeploymentRequestPreparedStackProfileEffect = ClosedEnum; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPreparedStackProfileAwGrant = { /** * 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 PersistImportedDeploymentRequestPreparedStackProfileAw = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPreparedStackProfileAwBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * IAM effect. Defaults to Allow. */ effect?: | PersistImportedDeploymentRequestPreparedStackProfileEffect | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPreparedStackProfileAwGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Azure-specific binding specification */ export type PersistImportedDeploymentRequestPreparedStackProfileAzureResource = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Azure-specific binding specification */ export type PersistImportedDeploymentRequestPreparedStackProfileAzureStack = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type PersistImportedDeploymentRequestPreparedStackProfileAzureBinding = { /** * Azure-specific binding specification */ resource?: | PersistImportedDeploymentRequestPreparedStackProfileAzureResource | undefined; /** * Azure-specific binding specification */ stack?: | PersistImportedDeploymentRequestPreparedStackProfileAzureStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPreparedStackProfileAzureGrant = { /** * 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 PersistImportedDeploymentRequestPreparedStackProfileAzure = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPreparedStackProfileAzureBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPreparedStackProfileAzureGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * GCP IAM condition */ export type PersistImportedDeploymentRequestPreparedStackProfileConditionResource = { expression: string; title: string; }; export type PersistImportedDeploymentRequestPreparedStackProfileResourceConditionUnion = | PersistImportedDeploymentRequestPreparedStackProfileConditionResource | any; /** * GCP-specific binding specification */ export type PersistImportedDeploymentRequestPreparedStackProfileGcpResource = { condition?: | PersistImportedDeploymentRequestPreparedStackProfileConditionResource | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * GCP IAM condition */ export type PersistImportedDeploymentRequestPreparedStackProfileConditionStack = { expression: string; title: string; }; export type PersistImportedDeploymentRequestPreparedStackProfileStackConditionUnion = | PersistImportedDeploymentRequestPreparedStackProfileConditionStack | any; /** * GCP-specific binding specification */ export type PersistImportedDeploymentRequestPreparedStackProfileGcpStack = { condition?: | PersistImportedDeploymentRequestPreparedStackProfileConditionStack | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type PersistImportedDeploymentRequestPreparedStackProfileGcpBinding = { /** * GCP-specific binding specification */ resource?: | PersistImportedDeploymentRequestPreparedStackProfileGcpResource | undefined; /** * GCP-specific binding specification */ stack?: | PersistImportedDeploymentRequestPreparedStackProfileGcpStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type PersistImportedDeploymentRequestPreparedStackProfileGcpGrant = { /** * 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 PersistImportedDeploymentRequestPreparedStackProfileGcp = { /** * Generic binding configuration for permissions */ binding: PersistImportedDeploymentRequestPreparedStackProfileGcpBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: PersistImportedDeploymentRequestPreparedStackProfileGcpGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Platform-specific permission configurations */ export type PersistImportedDeploymentRequestPreparedStackProfilePlatforms = { /** * 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 PersistImportedDeploymentRequestPreparedStackProfile = { /** * 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: PersistImportedDeploymentRequestPreparedStackProfilePlatforms; }; /** * Reference to a permission set - either by name or inline definition */ export type PersistImportedDeploymentRequestPreparedStackProfileUnion = | PersistImportedDeploymentRequestPreparedStackProfile | string; /** * Combined permissions configuration that contains both profiles and management */ export type PersistImportedDeploymentRequestPreparedStackPermissions = { /** * Management permissions configuration for stack management access */ management?: | PersistImportedDeploymentRequestPreparedStackManagement1 | PersistImportedDeploymentRequestPreparedStackManagement2 | PersistImportedDeploymentRequestPreparedStackManagementEnum | 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< PersistImportedDeploymentRequestPreparedStackProfile | 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 PersistImportedDeploymentRequestPreparedStackConfig = { /** * 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 PersistImportedDeploymentRequestPreparedStackDependency = { 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 PersistImportedDeploymentRequestPreparedStackLifecycle = { Frozen: "frozen", Live: "live", } as const; /** * Describes the lifecycle of a resource within a stack, determining how it's managed and deployed. */ export type PersistImportedDeploymentRequestPreparedStackLifecycle = ClosedEnum< typeof PersistImportedDeploymentRequestPreparedStackLifecycle >; export type PersistImportedDeploymentRequestPreparedStackResources = { /** * 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: PersistImportedDeploymentRequestPreparedStackConfig; /** * 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: PersistImportedDeploymentRequestPreparedStackLifecycle; /** * 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 PersistImportedDeploymentRequestPreparedStackSupportedPlatform = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type PersistImportedDeploymentRequestPreparedStackSupportedPlatform = ClosedEnum< typeof PersistImportedDeploymentRequestPreparedStackSupportedPlatform >; /** * A bag of resources, unaware of any cloud. */ export type PersistImportedDeploymentRequestPreparedStack = { /** * 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?: | PersistImportedDeploymentRequestPreparedStackPermissions | undefined; /** * Map of resource IDs to their configurations and lifecycle settings */ resources: { [k: string]: PersistImportedDeploymentRequestPreparedStackResources; }; /** * Which platforms this stack supports. When None, all platforms are supported. */ supportedPlatforms?: | Array | null | undefined; }; export type PersistImportedDeploymentRequestPreparedStackUnion = | PersistImportedDeploymentRequestPreparedStack | any; /** * One-shot authority for a setup re-import to replace setup-owned resources. */ export type PersistImportedDeploymentRequestSetupUpdateAuthorization = { /** * 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 PersistImportedDeploymentRequestSetupUpdateAuthorizationUnion = | PersistImportedDeploymentRequestSetupUpdateAuthorization | any; /** * Runtime metadata for deployment * * @remarks * * Stores deployment state that needs to persist across step calls. */ export type PersistImportedDeploymentRequestRuntimeMetadata = { /** * 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?: | PersistImportedDeploymentRequestInitialSetupAuthority | 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?: | PersistImportedDeploymentRequestPendingPreparedStack | 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?: | PersistImportedDeploymentRequestPreparedStack | 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?: | PersistImportedDeploymentRequestSetupUpdateAuthorization | any | 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. */ export const PersistImportedDeploymentRequestStatus = { 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 PersistImportedDeploymentRequestStatus = ClosedEnum< typeof PersistImportedDeploymentRequestStatus >; export type PersistImportedDeploymentRequestManagementConfigKubernetes = { platform: "kubernetes"; }; /** * Azure management configuration extracted from stack settings */ export type PersistImportedDeploymentRequestManagementConfigAzure = { /** * The managing Azure Tenant ID for cross-tenant access */ managingTenantId: string; /** * OIDC issuer URL trusted by the target-side managed identity. */ oidcIssuer: string; /** * OIDC subject claim trusted by the target-side managed identity. */ oidcSubject: string; platform: "azure"; }; /** * GCP management configuration extracted from stack settings */ export type PersistImportedDeploymentRequestManagementConfigGcp = { /** * Service account email for management roles */ serviceAccountEmail: string; platform: "gcp"; }; /** * AWS management configuration extracted from stack settings */ export type PersistImportedDeploymentRequestManagementConfigAws = { /** * The managing AWS IAM role ARN that can assume cross-account roles */ managingRoleArn: string; platform: "aws"; }; /** * Management configuration for different cloud platforms. * * @remarks * * Platform-derived configuration for cross-account/cross-tenant access. * This is NOT user-specified - it's derived from the Manager's ServiceAccount. */ export type PersistImportedDeploymentRequestManagementConfigUnion = | PersistImportedDeploymentRequestManagementConfigAws | PersistImportedDeploymentRequestManagementConfigGcp | PersistImportedDeploymentRequestManagementConfigAzure | PersistImportedDeploymentRequestManagementConfigKubernetes; export type PersistImportedDeploymentRequest = { mode: ModePersist; /** * Deployment name. Must be unique within the deployment group. */ name: string; /** * Unique identifier for the deployment group. */ deploymentGroupId: string; managerId: string; /** * Optional deployment subdomain under the project's generated-domain parent. Operator-only and requires a custom project domain; customer deploy-link tokens and the shared system domain are rejected. Omit to generate a random subdomain. */ publicSubdomain?: string | undefined; /** * Represents the target cloud platform. */ platform: PersistImportedDeploymentRequestPlatformEnum; /** * Base cloud platform for cloud-backed Kubernetes imports. */ basePlatform?: KubernetesBasePlatform | undefined; /** * User-customizable deployment settings specified at deploy time. * * @remarks * * These settings are provided by the customer via CloudFormation parameters, * Terraform attributes, CLI flags, or Helm values. They customize how the * deployment runs and what capabilities are enabled. * * **Key distinction**: StackSettings is user-customizable, while ManagementConfig * is platform-derived (from the Manager's ServiceAccount). */ stackSettings: PersistImportedDeploymentRequestStackSettings; stackState?: any | null | undefined; /** * Platform-specific environment information */ environmentInfo?: | PersistImportedDeploymentRequestEnvironmentInfoGcp | PersistImportedDeploymentRequestEnvironmentInfoAzure | PersistImportedDeploymentRequestEnvironmentInfoLocal | PersistImportedDeploymentRequestEnvironmentInfoAws | PersistImportedDeploymentRequestEnvironmentInfoTest | any | null | undefined; /** * Runtime metadata for deployment * * @remarks * * Stores deployment state that needs to persist across step calls. */ runtimeMetadata: PersistImportedDeploymentRequestRuntimeMetadata; scheduleReconciliation?: boolean | undefined; /** * DeploymentState protocol version owned by the runtime/manager */ deploymentProtocolVersion: number; /** * 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?: PersistImportedDeploymentRequestStatus | undefined; /** * Unique identifier for the release. */ currentReleaseId?: string | undefined; /** * Unique identifier for the release. */ desiredReleaseId?: string | undefined; importSource?: ImportSourceKind | undefined; setupMetadata?: { [k: string]: any | null } | undefined; /** * Stable target key for the setup contract, e.g. aws/us-east-1 */ setupTarget: string; /** * Deterministic setup contract fingerprint for one setup target */ setupFingerprint: string; /** * Setup fingerprint algorithm version */ setupFingerprintVersion: number; deploymentToken?: string | undefined; /** * Management configuration for different cloud platforms. * * @remarks * * Platform-derived configuration for cross-account/cross-tenant access. * This is NOT user-specified - it's derived from the Manager's ServiceAccount. */ managementConfig?: | PersistImportedDeploymentRequestManagementConfigAws | PersistImportedDeploymentRequestManagementConfigGcp | PersistImportedDeploymentRequestManagementConfigAzure | PersistImportedDeploymentRequestManagementConfigKubernetes | undefined; inputValues?: { [k: string]: StackInputValueRequest } | undefined; }; /** @internal */ export const ModePersist$outboundSchema: z.ZodEnum = z.enum( ModePersist, ); /** @internal */ export const PersistImportedDeploymentRequestPlatformEnum$outboundSchema: z.ZodEnum = z.enum( PersistImportedDeploymentRequestPlatformEnum, ); /** @internal */ export type PersistImportedDeploymentRequestFailureDomains2$Outbound = { selectedFailureDomains?: Array | undefined; spread: number; }; /** @internal */ export const PersistImportedDeploymentRequestFailureDomains2$outboundSchema: z.ZodType< PersistImportedDeploymentRequestFailureDomains2$Outbound, PersistImportedDeploymentRequestFailureDomains2 > = z.object({ selectedFailureDomains: z.array(z.string()).optional(), spread: z.int(), }); export function persistImportedDeploymentRequestFailureDomains2ToJSON( persistImportedDeploymentRequestFailureDomains2: PersistImportedDeploymentRequestFailureDomains2, ): string { return JSON.stringify( PersistImportedDeploymentRequestFailureDomains2$outboundSchema.parse( persistImportedDeploymentRequestFailureDomains2, ), ); } /** @internal */ export type PersistImportedDeploymentRequestFailureDomainsUnion2$Outbound = | PersistImportedDeploymentRequestFailureDomains2$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestFailureDomainsUnion2$outboundSchema: z.ZodType< PersistImportedDeploymentRequestFailureDomainsUnion2$Outbound, PersistImportedDeploymentRequestFailureDomainsUnion2 > = z.union([ z.lazy(() => PersistImportedDeploymentRequestFailureDomains2$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestFailureDomainsUnion2ToJSON( persistImportedDeploymentRequestFailureDomainsUnion2: PersistImportedDeploymentRequestFailureDomainsUnion2, ): string { return JSON.stringify( PersistImportedDeploymentRequestFailureDomainsUnion2$outboundSchema.parse( persistImportedDeploymentRequestFailureDomainsUnion2, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPoolsAutoscale$Outbound = { failure_domains?: | PersistImportedDeploymentRequestFailureDomains2$Outbound | any | null | undefined; machine?: string | null | undefined; max: number; min: number; mode: "autoscale"; }; /** @internal */ export const PersistImportedDeploymentRequestPoolsAutoscale$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPoolsAutoscale$Outbound, PersistImportedDeploymentRequestPoolsAutoscale > = z.object({ failureDomains: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestFailureDomains2$outboundSchema ), z.any(), ]), ).optional(), machine: z.nullable(z.string()).optional(), max: z.int(), min: z.int(), mode: z.literal("autoscale"), }).transform((v) => { return remap$(v, { failureDomains: "failure_domains", }); }); export function persistImportedDeploymentRequestPoolsAutoscaleToJSON( persistImportedDeploymentRequestPoolsAutoscale: PersistImportedDeploymentRequestPoolsAutoscale, ): string { return JSON.stringify( PersistImportedDeploymentRequestPoolsAutoscale$outboundSchema.parse( persistImportedDeploymentRequestPoolsAutoscale, ), ); } /** @internal */ export type PersistImportedDeploymentRequestFailureDomains1$Outbound = { selectedFailureDomains?: Array | undefined; spread: number; }; /** @internal */ export const PersistImportedDeploymentRequestFailureDomains1$outboundSchema: z.ZodType< PersistImportedDeploymentRequestFailureDomains1$Outbound, PersistImportedDeploymentRequestFailureDomains1 > = z.object({ selectedFailureDomains: z.array(z.string()).optional(), spread: z.int(), }); export function persistImportedDeploymentRequestFailureDomains1ToJSON( persistImportedDeploymentRequestFailureDomains1: PersistImportedDeploymentRequestFailureDomains1, ): string { return JSON.stringify( PersistImportedDeploymentRequestFailureDomains1$outboundSchema.parse( persistImportedDeploymentRequestFailureDomains1, ), ); } /** @internal */ export type PersistImportedDeploymentRequestFailureDomainsUnion1$Outbound = | PersistImportedDeploymentRequestFailureDomains1$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestFailureDomainsUnion1$outboundSchema: z.ZodType< PersistImportedDeploymentRequestFailureDomainsUnion1$Outbound, PersistImportedDeploymentRequestFailureDomainsUnion1 > = z.union([ z.lazy(() => PersistImportedDeploymentRequestFailureDomains1$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestFailureDomainsUnion1ToJSON( persistImportedDeploymentRequestFailureDomainsUnion1: PersistImportedDeploymentRequestFailureDomainsUnion1, ): string { return JSON.stringify( PersistImportedDeploymentRequestFailureDomainsUnion1$outboundSchema.parse( persistImportedDeploymentRequestFailureDomainsUnion1, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPoolsFixed$Outbound = { failure_domains?: | PersistImportedDeploymentRequestFailureDomains1$Outbound | any | null | undefined; machine?: string | null | undefined; machines: number; mode: "fixed"; }; /** @internal */ export const PersistImportedDeploymentRequestPoolsFixed$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPoolsFixed$Outbound, PersistImportedDeploymentRequestPoolsFixed > = z.object({ failureDomains: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestFailureDomains1$outboundSchema ), z.any(), ]), ).optional(), machine: z.nullable(z.string()).optional(), machines: z.int(), mode: z.literal("fixed"), }).transform((v) => { return remap$(v, { failureDomains: "failure_domains", }); }); export function persistImportedDeploymentRequestPoolsFixedToJSON( persistImportedDeploymentRequestPoolsFixed: PersistImportedDeploymentRequestPoolsFixed, ): string { return JSON.stringify( PersistImportedDeploymentRequestPoolsFixed$outboundSchema.parse( persistImportedDeploymentRequestPoolsFixed, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPoolsUnion$Outbound = | PersistImportedDeploymentRequestPoolsFixed$Outbound | PersistImportedDeploymentRequestPoolsAutoscale$Outbound; /** @internal */ export const PersistImportedDeploymentRequestPoolsUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPoolsUnion$Outbound, PersistImportedDeploymentRequestPoolsUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPoolsFixed$outboundSchema), z.lazy(() => PersistImportedDeploymentRequestPoolsAutoscale$outboundSchema), ]); export function persistImportedDeploymentRequestPoolsUnionToJSON( persistImportedDeploymentRequestPoolsUnion: PersistImportedDeploymentRequestPoolsUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPoolsUnion$outboundSchema.parse( persistImportedDeploymentRequestPoolsUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestCompute$Outbound = { pools?: { [k: string]: | PersistImportedDeploymentRequestPoolsFixed$Outbound | PersistImportedDeploymentRequestPoolsAutoscale$Outbound; } | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestCompute$outboundSchema: z.ZodType< PersistImportedDeploymentRequestCompute$Outbound, PersistImportedDeploymentRequestCompute > = z.object({ pools: z.record( z.string(), z.union([ z.lazy(() => PersistImportedDeploymentRequestPoolsFixed$outboundSchema), z.lazy(() => PersistImportedDeploymentRequestPoolsAutoscale$outboundSchema ), ]), ).optional(), }); export function persistImportedDeploymentRequestComputeToJSON( persistImportedDeploymentRequestCompute: PersistImportedDeploymentRequestCompute, ): string { return JSON.stringify( PersistImportedDeploymentRequestCompute$outboundSchema.parse( persistImportedDeploymentRequestCompute, ), ); } /** @internal */ export type PersistImportedDeploymentRequestComputeUnion$Outbound = | PersistImportedDeploymentRequestCompute$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestComputeUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestComputeUnion$Outbound, PersistImportedDeploymentRequestComputeUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestCompute$outboundSchema), z.any(), ]); export function persistImportedDeploymentRequestComputeUnionToJSON( persistImportedDeploymentRequestComputeUnion: PersistImportedDeploymentRequestComputeUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestComputeUnion$outboundSchema.parse( persistImportedDeploymentRequestComputeUnion, ), ); } /** @internal */ export const PersistImportedDeploymentRequestDeploymentModel$outboundSchema: z.ZodEnum = z.enum( PersistImportedDeploymentRequestDeploymentModel, ); /** @internal */ export type PersistImportedDeploymentRequestAws$Outbound = { certificateArn: string; }; /** @internal */ export const PersistImportedDeploymentRequestAws$outboundSchema: z.ZodType< PersistImportedDeploymentRequestAws$Outbound, PersistImportedDeploymentRequestAws > = z.object({ certificateArn: z.string(), }); export function persistImportedDeploymentRequestAwsToJSON( persistImportedDeploymentRequestAws: PersistImportedDeploymentRequestAws, ): string { return JSON.stringify( PersistImportedDeploymentRequestAws$outboundSchema.parse( persistImportedDeploymentRequestAws, ), ); } /** @internal */ export type PersistImportedDeploymentRequestAwsUnion$Outbound = | PersistImportedDeploymentRequestAws$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestAwsUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestAwsUnion$Outbound, PersistImportedDeploymentRequestAwsUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestAws$outboundSchema), z.any(), ]); export function persistImportedDeploymentRequestAwsUnionToJSON( persistImportedDeploymentRequestAwsUnion: PersistImportedDeploymentRequestAwsUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestAwsUnion$outboundSchema.parse( persistImportedDeploymentRequestAwsUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestAzureStackSettings$Outbound = { keyVaultCertificateId: string; keyVaultResourceId?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestAzureStackSettings$outboundSchema: z.ZodType< PersistImportedDeploymentRequestAzureStackSettings$Outbound, PersistImportedDeploymentRequestAzureStackSettings > = z.object({ keyVaultCertificateId: z.string(), keyVaultResourceId: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestAzureStackSettingsToJSON( persistImportedDeploymentRequestAzureStackSettings: PersistImportedDeploymentRequestAzureStackSettings, ): string { return JSON.stringify( PersistImportedDeploymentRequestAzureStackSettings$outboundSchema.parse( persistImportedDeploymentRequestAzureStackSettings, ), ); } /** @internal */ export type PersistImportedDeploymentRequestAzureUnion$Outbound = | PersistImportedDeploymentRequestAzureStackSettings$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestAzureUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestAzureUnion$Outbound, PersistImportedDeploymentRequestAzureUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestAzureStackSettings$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestAzureUnionToJSON( persistImportedDeploymentRequestAzureUnion: PersistImportedDeploymentRequestAzureUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestAzureUnion$outboundSchema.parse( persistImportedDeploymentRequestAzureUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestGcpStackSettings$Outbound = { certificateName: string; }; /** @internal */ export const PersistImportedDeploymentRequestGcpStackSettings$outboundSchema: z.ZodType< PersistImportedDeploymentRequestGcpStackSettings$Outbound, PersistImportedDeploymentRequestGcpStackSettings > = z.object({ certificateName: z.string(), }); export function persistImportedDeploymentRequestGcpStackSettingsToJSON( persistImportedDeploymentRequestGcpStackSettings: PersistImportedDeploymentRequestGcpStackSettings, ): string { return JSON.stringify( PersistImportedDeploymentRequestGcpStackSettings$outboundSchema.parse( persistImportedDeploymentRequestGcpStackSettings, ), ); } /** @internal */ export type PersistImportedDeploymentRequestGcpUnion$Outbound = | PersistImportedDeploymentRequestGcpStackSettings$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestGcpUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestGcpUnion$Outbound, PersistImportedDeploymentRequestGcpUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestGcpStackSettings$outboundSchema), z.any(), ]); export function persistImportedDeploymentRequestGcpUnionToJSON( persistImportedDeploymentRequestGcpUnion: PersistImportedDeploymentRequestGcpUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestGcpUnion$outboundSchema.parse( persistImportedDeploymentRequestGcpUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestTlsSecretRef$Outbound = { namespace?: string | null | undefined; secretName: string; }; /** @internal */ export const PersistImportedDeploymentRequestTlsSecretRef$outboundSchema: z.ZodType< PersistImportedDeploymentRequestTlsSecretRef$Outbound, PersistImportedDeploymentRequestTlsSecretRef > = z.object({ namespace: z.nullable(z.string()).optional(), secretName: z.string(), }); export function persistImportedDeploymentRequestTlsSecretRefToJSON( persistImportedDeploymentRequestTlsSecretRef: PersistImportedDeploymentRequestTlsSecretRef, ): string { return JSON.stringify( PersistImportedDeploymentRequestTlsSecretRef$outboundSchema.parse( persistImportedDeploymentRequestTlsSecretRef, ), ); } /** @internal */ export type PersistImportedDeploymentRequestDomainsKubernetes$Outbound = { tlsSecretRef: PersistImportedDeploymentRequestTlsSecretRef$Outbound; }; /** @internal */ export const PersistImportedDeploymentRequestDomainsKubernetes$outboundSchema: z.ZodType< PersistImportedDeploymentRequestDomainsKubernetes$Outbound, PersistImportedDeploymentRequestDomainsKubernetes > = z.object({ tlsSecretRef: z.lazy(() => PersistImportedDeploymentRequestTlsSecretRef$outboundSchema ), }); export function persistImportedDeploymentRequestDomainsKubernetesToJSON( persistImportedDeploymentRequestDomainsKubernetes: PersistImportedDeploymentRequestDomainsKubernetes, ): string { return JSON.stringify( PersistImportedDeploymentRequestDomainsKubernetes$outboundSchema.parse( persistImportedDeploymentRequestDomainsKubernetes, ), ); } /** @internal */ export type PersistImportedDeploymentRequestDomainsKubernetesUnion$Outbound = | PersistImportedDeploymentRequestDomainsKubernetes$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestDomainsKubernetesUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestDomainsKubernetesUnion$Outbound, PersistImportedDeploymentRequestDomainsKubernetesUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestDomainsKubernetes$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestDomainsKubernetesUnionToJSON( persistImportedDeploymentRequestDomainsKubernetesUnion: PersistImportedDeploymentRequestDomainsKubernetesUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestDomainsKubernetesUnion$outboundSchema.parse( persistImportedDeploymentRequestDomainsKubernetesUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestDomainsCertificate$Outbound = { aws?: PersistImportedDeploymentRequestAws$Outbound | any | null | undefined; azure?: | PersistImportedDeploymentRequestAzureStackSettings$Outbound | any | null | undefined; gcp?: | PersistImportedDeploymentRequestGcpStackSettings$Outbound | any | null | undefined; kubernetes?: | PersistImportedDeploymentRequestDomainsKubernetes$Outbound | any | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestDomainsCertificate$outboundSchema: z.ZodType< PersistImportedDeploymentRequestDomainsCertificate$Outbound, PersistImportedDeploymentRequestDomainsCertificate > = z.object({ aws: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestAws$outboundSchema), z.any(), ]), ).optional(), azure: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestAzureStackSettings$outboundSchema ), z.any(), ]), ).optional(), gcp: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestGcpStackSettings$outboundSchema ), z.any(), ]), ).optional(), kubernetes: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestDomainsKubernetes$outboundSchema ), z.any(), ]), ).optional(), }); export function persistImportedDeploymentRequestDomainsCertificateToJSON( persistImportedDeploymentRequestDomainsCertificate: PersistImportedDeploymentRequestDomainsCertificate, ): string { return JSON.stringify( PersistImportedDeploymentRequestDomainsCertificate$outboundSchema.parse( persistImportedDeploymentRequestDomainsCertificate, ), ); } /** @internal */ export type PersistImportedDeploymentRequestCustomDomains$Outbound = { certificate: PersistImportedDeploymentRequestDomainsCertificate$Outbound; domain: string; }; /** @internal */ export const PersistImportedDeploymentRequestCustomDomains$outboundSchema: z.ZodType< PersistImportedDeploymentRequestCustomDomains$Outbound, PersistImportedDeploymentRequestCustomDomains > = z.object({ certificate: z.lazy(() => PersistImportedDeploymentRequestDomainsCertificate$outboundSchema ), domain: z.string(), }); export function persistImportedDeploymentRequestCustomDomainsToJSON( persistImportedDeploymentRequestCustomDomains: PersistImportedDeploymentRequestCustomDomains, ): string { return JSON.stringify( PersistImportedDeploymentRequestCustomDomains$outboundSchema.parse( persistImportedDeploymentRequestCustomDomains, ), ); } /** @internal */ export const PersistImportedDeploymentRequestModeLoadBalancer$outboundSchema: z.ZodEnum = z.enum( PersistImportedDeploymentRequestModeLoadBalancer, ); /** @internal */ export type PersistImportedDeploymentRequestPublicEndpointTargetLoadBalancer$Outbound = { cnameTarget: string; mode: string; }; /** @internal */ export const PersistImportedDeploymentRequestPublicEndpointTargetLoadBalancer$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPublicEndpointTargetLoadBalancer$Outbound, PersistImportedDeploymentRequestPublicEndpointTargetLoadBalancer > = z.object({ cnameTarget: z.string(), mode: PersistImportedDeploymentRequestModeLoadBalancer$outboundSchema, }); export function persistImportedDeploymentRequestPublicEndpointTargetLoadBalancerToJSON( persistImportedDeploymentRequestPublicEndpointTargetLoadBalancer: PersistImportedDeploymentRequestPublicEndpointTargetLoadBalancer, ): string { return JSON.stringify( PersistImportedDeploymentRequestPublicEndpointTargetLoadBalancer$outboundSchema .parse(persistImportedDeploymentRequestPublicEndpointTargetLoadBalancer), ); } /** @internal */ export const PersistImportedDeploymentRequestModeMachineAddresses$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestModeMachineAddresses); /** @internal */ export type PersistImportedDeploymentRequestPublicEndpointTargetMachineAddresses$Outbound = { mode: string; }; /** @internal */ export const PersistImportedDeploymentRequestPublicEndpointTargetMachineAddresses$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPublicEndpointTargetMachineAddresses$Outbound, PersistImportedDeploymentRequestPublicEndpointTargetMachineAddresses > = z.object({ mode: PersistImportedDeploymentRequestModeMachineAddresses$outboundSchema, }); export function persistImportedDeploymentRequestPublicEndpointTargetMachineAddressesToJSON( persistImportedDeploymentRequestPublicEndpointTargetMachineAddresses: PersistImportedDeploymentRequestPublicEndpointTargetMachineAddresses, ): string { return JSON.stringify( PersistImportedDeploymentRequestPublicEndpointTargetMachineAddresses$outboundSchema .parse( persistImportedDeploymentRequestPublicEndpointTargetMachineAddresses, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPublicEndpointTargetUnion$Outbound = | PersistImportedDeploymentRequestPublicEndpointTargetLoadBalancer$Outbound | PersistImportedDeploymentRequestPublicEndpointTargetMachineAddresses$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPublicEndpointTargetUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPublicEndpointTargetUnion$Outbound, PersistImportedDeploymentRequestPublicEndpointTargetUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPublicEndpointTargetLoadBalancer$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPublicEndpointTargetMachineAddresses$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPublicEndpointTargetUnionToJSON( persistImportedDeploymentRequestPublicEndpointTargetUnion: PersistImportedDeploymentRequestPublicEndpointTargetUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPublicEndpointTargetUnion$outboundSchema .parse(persistImportedDeploymentRequestPublicEndpointTargetUnion), ); } /** @internal */ export type PersistImportedDeploymentRequestDomains$Outbound = { customDomains?: | { [k: string]: PersistImportedDeploymentRequestCustomDomains$Outbound } | null | undefined; publicEndpointTarget?: | PersistImportedDeploymentRequestPublicEndpointTargetLoadBalancer$Outbound | PersistImportedDeploymentRequestPublicEndpointTargetMachineAddresses$Outbound | any | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestDomains$outboundSchema: z.ZodType< PersistImportedDeploymentRequestDomains$Outbound, PersistImportedDeploymentRequestDomains > = z.object({ customDomains: z.nullable( z.record( z.string(), z.lazy(() => PersistImportedDeploymentRequestCustomDomains$outboundSchema ), ), ).optional(), publicEndpointTarget: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPublicEndpointTargetLoadBalancer$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPublicEndpointTargetMachineAddresses$outboundSchema ), z.any(), ]), ).optional(), }); export function persistImportedDeploymentRequestDomainsToJSON( persistImportedDeploymentRequestDomains: PersistImportedDeploymentRequestDomains, ): string { return JSON.stringify( PersistImportedDeploymentRequestDomains$outboundSchema.parse( persistImportedDeploymentRequestDomains, ), ); } /** @internal */ export type PersistImportedDeploymentRequestDomainsUnion$Outbound = | PersistImportedDeploymentRequestDomains$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestDomainsUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestDomainsUnion$Outbound, PersistImportedDeploymentRequestDomainsUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestDomains$outboundSchema), z.any(), ]); export function persistImportedDeploymentRequestDomainsUnionToJSON( persistImportedDeploymentRequestDomainsUnion: PersistImportedDeploymentRequestDomainsUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestDomainsUnion$outboundSchema.parse( persistImportedDeploymentRequestDomainsUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestExternalBindings$Outbound = {}; /** @internal */ export const PersistImportedDeploymentRequestExternalBindings$outboundSchema: z.ZodType< PersistImportedDeploymentRequestExternalBindings$Outbound, PersistImportedDeploymentRequestExternalBindings > = z.object({}); export function persistImportedDeploymentRequestExternalBindingsToJSON( persistImportedDeploymentRequestExternalBindings: PersistImportedDeploymentRequestExternalBindings, ): string { return JSON.stringify( PersistImportedDeploymentRequestExternalBindings$outboundSchema.parse( persistImportedDeploymentRequestExternalBindings, ), ); } /** @internal */ export const PersistImportedDeploymentRequestHeartbeats$outboundSchema: z.ZodEnum = z.enum( PersistImportedDeploymentRequestHeartbeats, ); /** @internal */ export type PersistImportedDeploymentRequestCloud$Outbound = { 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; }; /** @internal */ export const PersistImportedDeploymentRequestCloud$outboundSchema: z.ZodType< PersistImportedDeploymentRequestCloud$Outbound, PersistImportedDeploymentRequestCloud > = 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 persistImportedDeploymentRequestCloudToJSON( persistImportedDeploymentRequestCloud: PersistImportedDeploymentRequestCloud, ): string { return JSON.stringify( PersistImportedDeploymentRequestCloud$outboundSchema.parse( persistImportedDeploymentRequestCloud, ), ); } /** @internal */ export type PersistImportedDeploymentRequestCloudUnion$Outbound = | PersistImportedDeploymentRequestCloud$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestCloudUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestCloudUnion$Outbound, PersistImportedDeploymentRequestCloudUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestCloud$outboundSchema), z.any(), ]); export function persistImportedDeploymentRequestCloudUnionToJSON( persistImportedDeploymentRequestCloudUnion: PersistImportedDeploymentRequestCloudUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestCloudUnion$outboundSchema.parse( persistImportedDeploymentRequestCloudUnion, ), ); } /** @internal */ export const PersistImportedDeploymentRequestOwnership$outboundSchema: z.ZodEnum = z.enum( PersistImportedDeploymentRequestOwnership, ); /** @internal */ export type PersistImportedDeploymentRequestCluster$Outbound = { cloud?: | PersistImportedDeploymentRequestCloud$Outbound | any | null | undefined; namespace?: string | null | undefined; ownership: string; }; /** @internal */ export const PersistImportedDeploymentRequestCluster$outboundSchema: z.ZodType< PersistImportedDeploymentRequestCluster$Outbound, PersistImportedDeploymentRequestCluster > = z.object({ cloud: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestCloud$outboundSchema), z.any(), ]), ).optional(), namespace: z.nullable(z.string()).optional(), ownership: PersistImportedDeploymentRequestOwnership$outboundSchema, }); export function persistImportedDeploymentRequestClusterToJSON( persistImportedDeploymentRequestCluster: PersistImportedDeploymentRequestCluster, ): string { return JSON.stringify( PersistImportedDeploymentRequestCluster$outboundSchema.parse( persistImportedDeploymentRequestCluster, ), ); } /** @internal */ export type PersistImportedDeploymentRequestClusterUnion$Outbound = | PersistImportedDeploymentRequestCluster$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestClusterUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestClusterUnion$Outbound, PersistImportedDeploymentRequestClusterUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestCluster$outboundSchema), z.any(), ]); export function persistImportedDeploymentRequestClusterUnionToJSON( persistImportedDeploymentRequestClusterUnion: PersistImportedDeploymentRequestClusterUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestClusterUnion$outboundSchema.parse( persistImportedDeploymentRequestClusterUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestCertificateNone2$Outbound = { mode: "none"; }; /** @internal */ export const PersistImportedDeploymentRequestCertificateNone2$outboundSchema: z.ZodType< PersistImportedDeploymentRequestCertificateNone2$Outbound, PersistImportedDeploymentRequestCertificateNone2 > = z.object({ mode: z.literal("none"), }); export function persistImportedDeploymentRequestCertificateNone2ToJSON( persistImportedDeploymentRequestCertificateNone2: PersistImportedDeploymentRequestCertificateNone2, ): string { return JSON.stringify( PersistImportedDeploymentRequestCertificateNone2$outboundSchema.parse( persistImportedDeploymentRequestCertificateNone2, ), ); } /** @internal */ export type PersistImportedDeploymentRequestCertificateManagedTLSSecret2$Outbound = { mode: "managedTlsSecret"; secretNameTemplate: string; }; /** @internal */ export const PersistImportedDeploymentRequestCertificateManagedTLSSecret2$outboundSchema: z.ZodType< PersistImportedDeploymentRequestCertificateManagedTLSSecret2$Outbound, PersistImportedDeploymentRequestCertificateManagedTLSSecret2 > = z.object({ mode: z.literal("managedTlsSecret"), secretNameTemplate: z.string(), }); export function persistImportedDeploymentRequestCertificateManagedTLSSecret2ToJSON( persistImportedDeploymentRequestCertificateManagedTLSSecret2: PersistImportedDeploymentRequestCertificateManagedTLSSecret2, ): string { return JSON.stringify( PersistImportedDeploymentRequestCertificateManagedTLSSecret2$outboundSchema .parse(persistImportedDeploymentRequestCertificateManagedTLSSecret2), ); } /** @internal */ export type PersistImportedDeploymentRequestCertificateAwsAcmArn2$Outbound = { certificateArn: string; mode: "awsAcmArn"; }; /** @internal */ export const PersistImportedDeploymentRequestCertificateAwsAcmArn2$outboundSchema: z.ZodType< PersistImportedDeploymentRequestCertificateAwsAcmArn2$Outbound, PersistImportedDeploymentRequestCertificateAwsAcmArn2 > = z.object({ certificateArn: z.string(), mode: z.literal("awsAcmArn"), }); export function persistImportedDeploymentRequestCertificateAwsAcmArn2ToJSON( persistImportedDeploymentRequestCertificateAwsAcmArn2: PersistImportedDeploymentRequestCertificateAwsAcmArn2, ): string { return JSON.stringify( PersistImportedDeploymentRequestCertificateAwsAcmArn2$outboundSchema.parse( persistImportedDeploymentRequestCertificateAwsAcmArn2, ), ); } /** @internal */ export type PersistImportedDeploymentRequestCertificateManagedAcmImport2$Outbound = { mode: "managedAcmImport"; region?: string | null | undefined; tags?: { [k: string]: string } | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestCertificateManagedAcmImport2$outboundSchema: z.ZodType< PersistImportedDeploymentRequestCertificateManagedAcmImport2$Outbound, PersistImportedDeploymentRequestCertificateManagedAcmImport2 > = z.object({ mode: z.literal("managedAcmImport"), region: z.nullable(z.string()).optional(), tags: z.record(z.string(), z.string()).optional(), }); export function persistImportedDeploymentRequestCertificateManagedAcmImport2ToJSON( persistImportedDeploymentRequestCertificateManagedAcmImport2: PersistImportedDeploymentRequestCertificateManagedAcmImport2, ): string { return JSON.stringify( PersistImportedDeploymentRequestCertificateManagedAcmImport2$outboundSchema .parse(persistImportedDeploymentRequestCertificateManagedAcmImport2), ); } /** @internal */ export type PersistImportedDeploymentRequestCertificateTLSSecretRef2$Outbound = { namespace?: string | null | undefined; secretName: string; mode: "tlsSecretRef"; }; /** @internal */ export const PersistImportedDeploymentRequestCertificateTLSSecretRef2$outboundSchema: z.ZodType< PersistImportedDeploymentRequestCertificateTLSSecretRef2$Outbound, PersistImportedDeploymentRequestCertificateTLSSecretRef2 > = z.object({ namespace: z.nullable(z.string()).optional(), secretName: z.string(), mode: z.literal("tlsSecretRef"), }); export function persistImportedDeploymentRequestCertificateTLSSecretRef2ToJSON( persistImportedDeploymentRequestCertificateTLSSecretRef2: PersistImportedDeploymentRequestCertificateTLSSecretRef2, ): string { return JSON.stringify( PersistImportedDeploymentRequestCertificateTLSSecretRef2$outboundSchema .parse(persistImportedDeploymentRequestCertificateTLSSecretRef2), ); } /** @internal */ export type PersistImportedDeploymentRequestCertificateUnion2$Outbound = | PersistImportedDeploymentRequestCertificateTLSSecretRef2$Outbound | PersistImportedDeploymentRequestCertificateManagedAcmImport2$Outbound | PersistImportedDeploymentRequestCertificateAwsAcmArn2$Outbound | PersistImportedDeploymentRequestCertificateManagedTLSSecret2$Outbound | PersistImportedDeploymentRequestCertificateNone2$Outbound; /** @internal */ export const PersistImportedDeploymentRequestCertificateUnion2$outboundSchema: z.ZodType< PersistImportedDeploymentRequestCertificateUnion2$Outbound, PersistImportedDeploymentRequestCertificateUnion2 > = z.union([ z.lazy(() => PersistImportedDeploymentRequestCertificateTLSSecretRef2$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestCertificateManagedAcmImport2$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestCertificateAwsAcmArn2$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestCertificateManagedTLSSecret2$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestCertificateNone2$outboundSchema ), ]); export function persistImportedDeploymentRequestCertificateUnion2ToJSON( persistImportedDeploymentRequestCertificateUnion2: PersistImportedDeploymentRequestCertificateUnion2, ): string { return JSON.stringify( PersistImportedDeploymentRequestCertificateUnion2$outboundSchema.parse( persistImportedDeploymentRequestCertificateUnion2, ), ); } /** @internal */ export const PersistImportedDeploymentRequestModeCustom$outboundSchema: z.ZodEnum = z.enum( PersistImportedDeploymentRequestModeCustom, ); /** @internal */ export const PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum4$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum4 > = z.enum( PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum4, ); /** @internal */ export type PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers4$Outbound = { albName?: string | null | undefined; albNamespace?: string | null | undefined; frontend: string; provider: string; }; /** @internal */ export const PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers4$outboundSchema: z.ZodType< PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers4$Outbound, PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers4 > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum4$outboundSchema, }); export function persistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers4ToJSON( persistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers4: PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers4, ): string { return JSON.stringify( PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers4$outboundSchema .parse( persistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers4, ), ); } /** @internal */ export const PersistImportedDeploymentRequestProviderGkeGatewayEnum4$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestProviderGkeGatewayEnum4); /** @internal */ export type PersistImportedDeploymentRequestProviderGkeGateway4$Outbound = { provider: string; staticAddressName?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestProviderGkeGateway4$outboundSchema: z.ZodType< PersistImportedDeploymentRequestProviderGkeGateway4$Outbound, PersistImportedDeploymentRequestProviderGkeGateway4 > = z.object({ provider: PersistImportedDeploymentRequestProviderGkeGatewayEnum4$outboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestProviderGkeGateway4ToJSON( persistImportedDeploymentRequestProviderGkeGateway4: PersistImportedDeploymentRequestProviderGkeGateway4, ): string { return JSON.stringify( PersistImportedDeploymentRequestProviderGkeGateway4$outboundSchema.parse( persistImportedDeploymentRequestProviderGkeGateway4, ), ); } /** @internal */ export const PersistImportedDeploymentRequestProviderAwsAlbEnum4$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestProviderAwsAlbEnum4); /** @internal */ export type PersistImportedDeploymentRequestProviderAwsAlb4$Outbound = { ipAddressType?: string | null | undefined; provider: string; scheme: string; subnetIds?: Array | undefined; targetType: string; }; /** @internal */ export const PersistImportedDeploymentRequestProviderAwsAlb4$outboundSchema: z.ZodType< PersistImportedDeploymentRequestProviderAwsAlb4$Outbound, PersistImportedDeploymentRequestProviderAwsAlb4 > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: PersistImportedDeploymentRequestProviderAwsAlbEnum4$outboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function persistImportedDeploymentRequestProviderAwsAlb4ToJSON( persistImportedDeploymentRequestProviderAwsAlb4: PersistImportedDeploymentRequestProviderAwsAlb4, ): string { return JSON.stringify( PersistImportedDeploymentRequestProviderAwsAlb4$outboundSchema.parse( persistImportedDeploymentRequestProviderAwsAlb4, ), ); } /** @internal */ export type PersistImportedDeploymentRequestProviderUnion4$Outbound = | PersistImportedDeploymentRequestProviderAwsAlb4$Outbound | PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers4$Outbound | PersistImportedDeploymentRequestProviderGkeGateway4$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestProviderUnion4$outboundSchema: z.ZodType< PersistImportedDeploymentRequestProviderUnion4$Outbound, PersistImportedDeploymentRequestProviderUnion4 > = z.union([ z.lazy(() => PersistImportedDeploymentRequestProviderAwsAlb4$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers4$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestProviderGkeGateway4$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestProviderUnion4ToJSON( persistImportedDeploymentRequestProviderUnion4: PersistImportedDeploymentRequestProviderUnion4, ): string { return JSON.stringify( PersistImportedDeploymentRequestProviderUnion4$outboundSchema.parse( persistImportedDeploymentRequestProviderUnion4, ), ); } /** @internal */ export type PersistImportedDeploymentRequestRouteGateway2$Outbound = { annotations?: { [k: string]: string } | undefined; controller?: string | null | undefined; gatewayClassName: string; labels?: { [k: string]: string } | undefined; listenerPort: number; provider?: | PersistImportedDeploymentRequestProviderAwsAlb4$Outbound | PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers4$Outbound | PersistImportedDeploymentRequestProviderGkeGateway4$Outbound | any | null | undefined; routeApi: "gateway"; }; /** @internal */ export const PersistImportedDeploymentRequestRouteGateway2$outboundSchema: z.ZodType< PersistImportedDeploymentRequestRouteGateway2$Outbound, PersistImportedDeploymentRequestRouteGateway2 > = 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(() => PersistImportedDeploymentRequestProviderAwsAlb4$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers4$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestProviderGkeGateway4$outboundSchema ), z.any(), ]), ).optional(), routeApi: z.literal("gateway"), }); export function persistImportedDeploymentRequestRouteGateway2ToJSON( persistImportedDeploymentRequestRouteGateway2: PersistImportedDeploymentRequestRouteGateway2, ): string { return JSON.stringify( PersistImportedDeploymentRequestRouteGateway2$outboundSchema.parse( persistImportedDeploymentRequestRouteGateway2, ), ); } /** @internal */ export const PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum3$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum3 > = z.enum( PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum3, ); /** @internal */ export type PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers3$Outbound = { albName?: string | null | undefined; albNamespace?: string | null | undefined; frontend: string; provider: string; }; /** @internal */ export const PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers3$outboundSchema: z.ZodType< PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers3$Outbound, PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers3 > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum3$outboundSchema, }); export function persistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers3ToJSON( persistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers3: PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers3, ): string { return JSON.stringify( PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers3$outboundSchema .parse( persistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers3, ), ); } /** @internal */ export const PersistImportedDeploymentRequestProviderGkeGatewayEnum3$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestProviderGkeGatewayEnum3); /** @internal */ export type PersistImportedDeploymentRequestProviderGkeGateway3$Outbound = { provider: string; staticAddressName?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestProviderGkeGateway3$outboundSchema: z.ZodType< PersistImportedDeploymentRequestProviderGkeGateway3$Outbound, PersistImportedDeploymentRequestProviderGkeGateway3 > = z.object({ provider: PersistImportedDeploymentRequestProviderGkeGatewayEnum3$outboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestProviderGkeGateway3ToJSON( persistImportedDeploymentRequestProviderGkeGateway3: PersistImportedDeploymentRequestProviderGkeGateway3, ): string { return JSON.stringify( PersistImportedDeploymentRequestProviderGkeGateway3$outboundSchema.parse( persistImportedDeploymentRequestProviderGkeGateway3, ), ); } /** @internal */ export const PersistImportedDeploymentRequestProviderAwsAlbEnum3$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestProviderAwsAlbEnum3); /** @internal */ export type PersistImportedDeploymentRequestProviderAwsAlb3$Outbound = { ipAddressType?: string | null | undefined; provider: string; scheme: string; subnetIds?: Array | undefined; targetType: string; }; /** @internal */ export const PersistImportedDeploymentRequestProviderAwsAlb3$outboundSchema: z.ZodType< PersistImportedDeploymentRequestProviderAwsAlb3$Outbound, PersistImportedDeploymentRequestProviderAwsAlb3 > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: PersistImportedDeploymentRequestProviderAwsAlbEnum3$outboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function persistImportedDeploymentRequestProviderAwsAlb3ToJSON( persistImportedDeploymentRequestProviderAwsAlb3: PersistImportedDeploymentRequestProviderAwsAlb3, ): string { return JSON.stringify( PersistImportedDeploymentRequestProviderAwsAlb3$outboundSchema.parse( persistImportedDeploymentRequestProviderAwsAlb3, ), ); } /** @internal */ export type PersistImportedDeploymentRequestProviderUnion3$Outbound = | PersistImportedDeploymentRequestProviderAwsAlb3$Outbound | PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers3$Outbound | PersistImportedDeploymentRequestProviderGkeGateway3$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestProviderUnion3$outboundSchema: z.ZodType< PersistImportedDeploymentRequestProviderUnion3$Outbound, PersistImportedDeploymentRequestProviderUnion3 > = z.union([ z.lazy(() => PersistImportedDeploymentRequestProviderAwsAlb3$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers3$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestProviderGkeGateway3$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestProviderUnion3ToJSON( persistImportedDeploymentRequestProviderUnion3: PersistImportedDeploymentRequestProviderUnion3, ): string { return JSON.stringify( PersistImportedDeploymentRequestProviderUnion3$outboundSchema.parse( persistImportedDeploymentRequestProviderUnion3, ), ); } /** @internal */ export type PersistImportedDeploymentRequestRouteIngress2$Outbound = { annotations?: { [k: string]: string } | undefined; controller?: string | null | undefined; ingressClassName: string; labels?: { [k: string]: string } | undefined; provider?: | PersistImportedDeploymentRequestProviderAwsAlb3$Outbound | PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers3$Outbound | PersistImportedDeploymentRequestProviderGkeGateway3$Outbound | any | null | undefined; routeApi: "ingress"; }; /** @internal */ export const PersistImportedDeploymentRequestRouteIngress2$outboundSchema: z.ZodType< PersistImportedDeploymentRequestRouteIngress2$Outbound, PersistImportedDeploymentRequestRouteIngress2 > = 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(() => PersistImportedDeploymentRequestProviderAwsAlb3$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers3$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestProviderGkeGateway3$outboundSchema ), z.any(), ]), ).optional(), routeApi: z.literal("ingress"), }); export function persistImportedDeploymentRequestRouteIngress2ToJSON( persistImportedDeploymentRequestRouteIngress2: PersistImportedDeploymentRequestRouteIngress2, ): string { return JSON.stringify( PersistImportedDeploymentRequestRouteIngress2$outboundSchema.parse( persistImportedDeploymentRequestRouteIngress2, ), ); } /** @internal */ export type PersistImportedDeploymentRequestRouteUnion2$Outbound = | PersistImportedDeploymentRequestRouteIngress2$Outbound | PersistImportedDeploymentRequestRouteGateway2$Outbound; /** @internal */ export const PersistImportedDeploymentRequestRouteUnion2$outboundSchema: z.ZodType< PersistImportedDeploymentRequestRouteUnion2$Outbound, PersistImportedDeploymentRequestRouteUnion2 > = z.union([ z.lazy(() => PersistImportedDeploymentRequestRouteIngress2$outboundSchema), z.lazy(() => PersistImportedDeploymentRequestRouteGateway2$outboundSchema), ]); export function persistImportedDeploymentRequestRouteUnion2ToJSON( persistImportedDeploymentRequestRouteUnion2: PersistImportedDeploymentRequestRouteUnion2, ): string { return JSON.stringify( PersistImportedDeploymentRequestRouteUnion2$outboundSchema.parse( persistImportedDeploymentRequestRouteUnion2, ), ); } /** @internal */ export type PersistImportedDeploymentRequestExposureCustom$Outbound = { certificate: | PersistImportedDeploymentRequestCertificateTLSSecretRef2$Outbound | PersistImportedDeploymentRequestCertificateManagedAcmImport2$Outbound | PersistImportedDeploymentRequestCertificateAwsAcmArn2$Outbound | PersistImportedDeploymentRequestCertificateManagedTLSSecret2$Outbound | PersistImportedDeploymentRequestCertificateNone2$Outbound; domain: string; mode: string; route: | PersistImportedDeploymentRequestRouteIngress2$Outbound | PersistImportedDeploymentRequestRouteGateway2$Outbound; }; /** @internal */ export const PersistImportedDeploymentRequestExposureCustom$outboundSchema: z.ZodType< PersistImportedDeploymentRequestExposureCustom$Outbound, PersistImportedDeploymentRequestExposureCustom > = z.object({ certificate: z.union([ z.lazy(() => PersistImportedDeploymentRequestCertificateTLSSecretRef2$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestCertificateManagedAcmImport2$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestCertificateAwsAcmArn2$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestCertificateManagedTLSSecret2$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestCertificateNone2$outboundSchema ), ]), domain: z.string(), mode: PersistImportedDeploymentRequestModeCustom$outboundSchema, route: z.union([ z.lazy(() => PersistImportedDeploymentRequestRouteIngress2$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestRouteGateway2$outboundSchema ), ]), }); export function persistImportedDeploymentRequestExposureCustomToJSON( persistImportedDeploymentRequestExposureCustom: PersistImportedDeploymentRequestExposureCustom, ): string { return JSON.stringify( PersistImportedDeploymentRequestExposureCustom$outboundSchema.parse( persistImportedDeploymentRequestExposureCustom, ), ); } /** @internal */ export type PersistImportedDeploymentRequestCertificateNone1$Outbound = { mode: "none"; }; /** @internal */ export const PersistImportedDeploymentRequestCertificateNone1$outboundSchema: z.ZodType< PersistImportedDeploymentRequestCertificateNone1$Outbound, PersistImportedDeploymentRequestCertificateNone1 > = z.object({ mode: z.literal("none"), }); export function persistImportedDeploymentRequestCertificateNone1ToJSON( persistImportedDeploymentRequestCertificateNone1: PersistImportedDeploymentRequestCertificateNone1, ): string { return JSON.stringify( PersistImportedDeploymentRequestCertificateNone1$outboundSchema.parse( persistImportedDeploymentRequestCertificateNone1, ), ); } /** @internal */ export type PersistImportedDeploymentRequestCertificateManagedTLSSecret1$Outbound = { mode: "managedTlsSecret"; secretNameTemplate: string; }; /** @internal */ export const PersistImportedDeploymentRequestCertificateManagedTLSSecret1$outboundSchema: z.ZodType< PersistImportedDeploymentRequestCertificateManagedTLSSecret1$Outbound, PersistImportedDeploymentRequestCertificateManagedTLSSecret1 > = z.object({ mode: z.literal("managedTlsSecret"), secretNameTemplate: z.string(), }); export function persistImportedDeploymentRequestCertificateManagedTLSSecret1ToJSON( persistImportedDeploymentRequestCertificateManagedTLSSecret1: PersistImportedDeploymentRequestCertificateManagedTLSSecret1, ): string { return JSON.stringify( PersistImportedDeploymentRequestCertificateManagedTLSSecret1$outboundSchema .parse(persistImportedDeploymentRequestCertificateManagedTLSSecret1), ); } /** @internal */ export type PersistImportedDeploymentRequestCertificateAwsAcmArn1$Outbound = { certificateArn: string; mode: "awsAcmArn"; }; /** @internal */ export const PersistImportedDeploymentRequestCertificateAwsAcmArn1$outboundSchema: z.ZodType< PersistImportedDeploymentRequestCertificateAwsAcmArn1$Outbound, PersistImportedDeploymentRequestCertificateAwsAcmArn1 > = z.object({ certificateArn: z.string(), mode: z.literal("awsAcmArn"), }); export function persistImportedDeploymentRequestCertificateAwsAcmArn1ToJSON( persistImportedDeploymentRequestCertificateAwsAcmArn1: PersistImportedDeploymentRequestCertificateAwsAcmArn1, ): string { return JSON.stringify( PersistImportedDeploymentRequestCertificateAwsAcmArn1$outboundSchema.parse( persistImportedDeploymentRequestCertificateAwsAcmArn1, ), ); } /** @internal */ export type PersistImportedDeploymentRequestCertificateManagedAcmImport1$Outbound = { mode: "managedAcmImport"; region?: string | null | undefined; tags?: { [k: string]: string } | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestCertificateManagedAcmImport1$outboundSchema: z.ZodType< PersistImportedDeploymentRequestCertificateManagedAcmImport1$Outbound, PersistImportedDeploymentRequestCertificateManagedAcmImport1 > = z.object({ mode: z.literal("managedAcmImport"), region: z.nullable(z.string()).optional(), tags: z.record(z.string(), z.string()).optional(), }); export function persistImportedDeploymentRequestCertificateManagedAcmImport1ToJSON( persistImportedDeploymentRequestCertificateManagedAcmImport1: PersistImportedDeploymentRequestCertificateManagedAcmImport1, ): string { return JSON.stringify( PersistImportedDeploymentRequestCertificateManagedAcmImport1$outboundSchema .parse(persistImportedDeploymentRequestCertificateManagedAcmImport1), ); } /** @internal */ export type PersistImportedDeploymentRequestCertificateTLSSecretRef1$Outbound = { namespace?: string | null | undefined; secretName: string; mode: "tlsSecretRef"; }; /** @internal */ export const PersistImportedDeploymentRequestCertificateTLSSecretRef1$outboundSchema: z.ZodType< PersistImportedDeploymentRequestCertificateTLSSecretRef1$Outbound, PersistImportedDeploymentRequestCertificateTLSSecretRef1 > = z.object({ namespace: z.nullable(z.string()).optional(), secretName: z.string(), mode: z.literal("tlsSecretRef"), }); export function persistImportedDeploymentRequestCertificateTLSSecretRef1ToJSON( persistImportedDeploymentRequestCertificateTLSSecretRef1: PersistImportedDeploymentRequestCertificateTLSSecretRef1, ): string { return JSON.stringify( PersistImportedDeploymentRequestCertificateTLSSecretRef1$outboundSchema .parse(persistImportedDeploymentRequestCertificateTLSSecretRef1), ); } /** @internal */ export type PersistImportedDeploymentRequestCertificateUnion1$Outbound = | PersistImportedDeploymentRequestCertificateTLSSecretRef1$Outbound | PersistImportedDeploymentRequestCertificateManagedAcmImport1$Outbound | PersistImportedDeploymentRequestCertificateAwsAcmArn1$Outbound | PersistImportedDeploymentRequestCertificateManagedTLSSecret1$Outbound | PersistImportedDeploymentRequestCertificateNone1$Outbound; /** @internal */ export const PersistImportedDeploymentRequestCertificateUnion1$outboundSchema: z.ZodType< PersistImportedDeploymentRequestCertificateUnion1$Outbound, PersistImportedDeploymentRequestCertificateUnion1 > = z.union([ z.lazy(() => PersistImportedDeploymentRequestCertificateTLSSecretRef1$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestCertificateManagedAcmImport1$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestCertificateAwsAcmArn1$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestCertificateManagedTLSSecret1$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestCertificateNone1$outboundSchema ), ]); export function persistImportedDeploymentRequestCertificateUnion1ToJSON( persistImportedDeploymentRequestCertificateUnion1: PersistImportedDeploymentRequestCertificateUnion1, ): string { return JSON.stringify( PersistImportedDeploymentRequestCertificateUnion1$outboundSchema.parse( persistImportedDeploymentRequestCertificateUnion1, ), ); } /** @internal */ export const PersistImportedDeploymentRequestModeGenerated$outboundSchema: z.ZodEnum = z.enum( PersistImportedDeploymentRequestModeGenerated, ); /** @internal */ export const PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum2$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum2 > = z.enum( PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum2, ); /** @internal */ export type PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers2$Outbound = { albName?: string | null | undefined; albNamespace?: string | null | undefined; frontend: string; provider: string; }; /** @internal */ export const PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers2$outboundSchema: z.ZodType< PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers2$Outbound, PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers2 > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum2$outboundSchema, }); export function persistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers2ToJSON( persistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers2: PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers2, ): string { return JSON.stringify( PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers2$outboundSchema .parse( persistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers2, ), ); } /** @internal */ export const PersistImportedDeploymentRequestProviderGkeGatewayEnum2$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestProviderGkeGatewayEnum2); /** @internal */ export type PersistImportedDeploymentRequestProviderGkeGateway2$Outbound = { provider: string; staticAddressName?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestProviderGkeGateway2$outboundSchema: z.ZodType< PersistImportedDeploymentRequestProviderGkeGateway2$Outbound, PersistImportedDeploymentRequestProviderGkeGateway2 > = z.object({ provider: PersistImportedDeploymentRequestProviderGkeGatewayEnum2$outboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestProviderGkeGateway2ToJSON( persistImportedDeploymentRequestProviderGkeGateway2: PersistImportedDeploymentRequestProviderGkeGateway2, ): string { return JSON.stringify( PersistImportedDeploymentRequestProviderGkeGateway2$outboundSchema.parse( persistImportedDeploymentRequestProviderGkeGateway2, ), ); } /** @internal */ export const PersistImportedDeploymentRequestProviderAwsAlbEnum2$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestProviderAwsAlbEnum2); /** @internal */ export type PersistImportedDeploymentRequestProviderAwsAlb2$Outbound = { ipAddressType?: string | null | undefined; provider: string; scheme: string; subnetIds?: Array | undefined; targetType: string; }; /** @internal */ export const PersistImportedDeploymentRequestProviderAwsAlb2$outboundSchema: z.ZodType< PersistImportedDeploymentRequestProviderAwsAlb2$Outbound, PersistImportedDeploymentRequestProviderAwsAlb2 > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: PersistImportedDeploymentRequestProviderAwsAlbEnum2$outboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function persistImportedDeploymentRequestProviderAwsAlb2ToJSON( persistImportedDeploymentRequestProviderAwsAlb2: PersistImportedDeploymentRequestProviderAwsAlb2, ): string { return JSON.stringify( PersistImportedDeploymentRequestProviderAwsAlb2$outboundSchema.parse( persistImportedDeploymentRequestProviderAwsAlb2, ), ); } /** @internal */ export type PersistImportedDeploymentRequestProviderUnion2$Outbound = | PersistImportedDeploymentRequestProviderAwsAlb2$Outbound | PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers2$Outbound | PersistImportedDeploymentRequestProviderGkeGateway2$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestProviderUnion2$outboundSchema: z.ZodType< PersistImportedDeploymentRequestProviderUnion2$Outbound, PersistImportedDeploymentRequestProviderUnion2 > = z.union([ z.lazy(() => PersistImportedDeploymentRequestProviderAwsAlb2$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers2$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestProviderGkeGateway2$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestProviderUnion2ToJSON( persistImportedDeploymentRequestProviderUnion2: PersistImportedDeploymentRequestProviderUnion2, ): string { return JSON.stringify( PersistImportedDeploymentRequestProviderUnion2$outboundSchema.parse( persistImportedDeploymentRequestProviderUnion2, ), ); } /** @internal */ export type PersistImportedDeploymentRequestRouteGateway1$Outbound = { annotations?: { [k: string]: string } | undefined; controller?: string | null | undefined; gatewayClassName: string; labels?: { [k: string]: string } | undefined; listenerPort: number; provider?: | PersistImportedDeploymentRequestProviderAwsAlb2$Outbound | PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers2$Outbound | PersistImportedDeploymentRequestProviderGkeGateway2$Outbound | any | null | undefined; routeApi: "gateway"; }; /** @internal */ export const PersistImportedDeploymentRequestRouteGateway1$outboundSchema: z.ZodType< PersistImportedDeploymentRequestRouteGateway1$Outbound, PersistImportedDeploymentRequestRouteGateway1 > = 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(() => PersistImportedDeploymentRequestProviderAwsAlb2$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers2$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestProviderGkeGateway2$outboundSchema ), z.any(), ]), ).optional(), routeApi: z.literal("gateway"), }); export function persistImportedDeploymentRequestRouteGateway1ToJSON( persistImportedDeploymentRequestRouteGateway1: PersistImportedDeploymentRequestRouteGateway1, ): string { return JSON.stringify( PersistImportedDeploymentRequestRouteGateway1$outboundSchema.parse( persistImportedDeploymentRequestRouteGateway1, ), ); } /** @internal */ export const PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum1$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum1 > = z.enum( PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum1, ); /** @internal */ export type PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers1$Outbound = { albName?: string | null | undefined; albNamespace?: string | null | undefined; frontend: string; provider: string; }; /** @internal */ export const PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers1$outboundSchema: z.ZodType< PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers1$Outbound, PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers1 > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainersEnum1$outboundSchema, }); export function persistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers1ToJSON( persistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers1: PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers1, ): string { return JSON.stringify( PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers1$outboundSchema .parse( persistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers1, ), ); } /** @internal */ export const PersistImportedDeploymentRequestProviderGkeGatewayEnum1$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestProviderGkeGatewayEnum1); /** @internal */ export type PersistImportedDeploymentRequestProviderGkeGateway1$Outbound = { provider: string; staticAddressName?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestProviderGkeGateway1$outboundSchema: z.ZodType< PersistImportedDeploymentRequestProviderGkeGateway1$Outbound, PersistImportedDeploymentRequestProviderGkeGateway1 > = z.object({ provider: PersistImportedDeploymentRequestProviderGkeGatewayEnum1$outboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestProviderGkeGateway1ToJSON( persistImportedDeploymentRequestProviderGkeGateway1: PersistImportedDeploymentRequestProviderGkeGateway1, ): string { return JSON.stringify( PersistImportedDeploymentRequestProviderGkeGateway1$outboundSchema.parse( persistImportedDeploymentRequestProviderGkeGateway1, ), ); } /** @internal */ export const PersistImportedDeploymentRequestProviderAwsAlbEnum1$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestProviderAwsAlbEnum1); /** @internal */ export type PersistImportedDeploymentRequestProviderAwsAlb1$Outbound = { ipAddressType?: string | null | undefined; provider: string; scheme: string; subnetIds?: Array | undefined; targetType: string; }; /** @internal */ export const PersistImportedDeploymentRequestProviderAwsAlb1$outboundSchema: z.ZodType< PersistImportedDeploymentRequestProviderAwsAlb1$Outbound, PersistImportedDeploymentRequestProviderAwsAlb1 > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: PersistImportedDeploymentRequestProviderAwsAlbEnum1$outboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function persistImportedDeploymentRequestProviderAwsAlb1ToJSON( persistImportedDeploymentRequestProviderAwsAlb1: PersistImportedDeploymentRequestProviderAwsAlb1, ): string { return JSON.stringify( PersistImportedDeploymentRequestProviderAwsAlb1$outboundSchema.parse( persistImportedDeploymentRequestProviderAwsAlb1, ), ); } /** @internal */ export type PersistImportedDeploymentRequestProviderUnion1$Outbound = | PersistImportedDeploymentRequestProviderAwsAlb1$Outbound | PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers1$Outbound | PersistImportedDeploymentRequestProviderGkeGateway1$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestProviderUnion1$outboundSchema: z.ZodType< PersistImportedDeploymentRequestProviderUnion1$Outbound, PersistImportedDeploymentRequestProviderUnion1 > = z.union([ z.lazy(() => PersistImportedDeploymentRequestProviderAwsAlb1$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers1$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestProviderGkeGateway1$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestProviderUnion1ToJSON( persistImportedDeploymentRequestProviderUnion1: PersistImportedDeploymentRequestProviderUnion1, ): string { return JSON.stringify( PersistImportedDeploymentRequestProviderUnion1$outboundSchema.parse( persistImportedDeploymentRequestProviderUnion1, ), ); } /** @internal */ export type PersistImportedDeploymentRequestRouteIngress1$Outbound = { annotations?: { [k: string]: string } | undefined; controller?: string | null | undefined; ingressClassName: string; labels?: { [k: string]: string } | undefined; provider?: | PersistImportedDeploymentRequestProviderAwsAlb1$Outbound | PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers1$Outbound | PersistImportedDeploymentRequestProviderGkeGateway1$Outbound | any | null | undefined; routeApi: "ingress"; }; /** @internal */ export const PersistImportedDeploymentRequestRouteIngress1$outboundSchema: z.ZodType< PersistImportedDeploymentRequestRouteIngress1$Outbound, PersistImportedDeploymentRequestRouteIngress1 > = 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(() => PersistImportedDeploymentRequestProviderAwsAlb1$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestProviderAzureApplicationGatewayForContainers1$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestProviderGkeGateway1$outboundSchema ), z.any(), ]), ).optional(), routeApi: z.literal("ingress"), }); export function persistImportedDeploymentRequestRouteIngress1ToJSON( persistImportedDeploymentRequestRouteIngress1: PersistImportedDeploymentRequestRouteIngress1, ): string { return JSON.stringify( PersistImportedDeploymentRequestRouteIngress1$outboundSchema.parse( persistImportedDeploymentRequestRouteIngress1, ), ); } /** @internal */ export type PersistImportedDeploymentRequestRouteUnion1$Outbound = | PersistImportedDeploymentRequestRouteIngress1$Outbound | PersistImportedDeploymentRequestRouteGateway1$Outbound; /** @internal */ export const PersistImportedDeploymentRequestRouteUnion1$outboundSchema: z.ZodType< PersistImportedDeploymentRequestRouteUnion1$Outbound, PersistImportedDeploymentRequestRouteUnion1 > = z.union([ z.lazy(() => PersistImportedDeploymentRequestRouteIngress1$outboundSchema), z.lazy(() => PersistImportedDeploymentRequestRouteGateway1$outboundSchema), ]); export function persistImportedDeploymentRequestRouteUnion1ToJSON( persistImportedDeploymentRequestRouteUnion1: PersistImportedDeploymentRequestRouteUnion1, ): string { return JSON.stringify( PersistImportedDeploymentRequestRouteUnion1$outboundSchema.parse( persistImportedDeploymentRequestRouteUnion1, ), ); } /** @internal */ export type PersistImportedDeploymentRequestExposureGenerated$Outbound = { certificate: | PersistImportedDeploymentRequestCertificateTLSSecretRef1$Outbound | PersistImportedDeploymentRequestCertificateManagedAcmImport1$Outbound | PersistImportedDeploymentRequestCertificateAwsAcmArn1$Outbound | PersistImportedDeploymentRequestCertificateManagedTLSSecret1$Outbound | PersistImportedDeploymentRequestCertificateNone1$Outbound; mode: string; route: | PersistImportedDeploymentRequestRouteIngress1$Outbound | PersistImportedDeploymentRequestRouteGateway1$Outbound; }; /** @internal */ export const PersistImportedDeploymentRequestExposureGenerated$outboundSchema: z.ZodType< PersistImportedDeploymentRequestExposureGenerated$Outbound, PersistImportedDeploymentRequestExposureGenerated > = z.object({ certificate: z.union([ z.lazy(() => PersistImportedDeploymentRequestCertificateTLSSecretRef1$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestCertificateManagedAcmImport1$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestCertificateAwsAcmArn1$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestCertificateManagedTLSSecret1$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestCertificateNone1$outboundSchema ), ]), mode: PersistImportedDeploymentRequestModeGenerated$outboundSchema, route: z.union([ z.lazy(() => PersistImportedDeploymentRequestRouteIngress1$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestRouteGateway1$outboundSchema ), ]), }); export function persistImportedDeploymentRequestExposureGeneratedToJSON( persistImportedDeploymentRequestExposureGenerated: PersistImportedDeploymentRequestExposureGenerated, ): string { return JSON.stringify( PersistImportedDeploymentRequestExposureGenerated$outboundSchema.parse( persistImportedDeploymentRequestExposureGenerated, ), ); } /** @internal */ export const PersistImportedDeploymentRequestModeDisabled$outboundSchema: z.ZodEnum = z.enum( PersistImportedDeploymentRequestModeDisabled, ); /** @internal */ export type PersistImportedDeploymentRequestExposureDisabled$Outbound = { mode: string; }; /** @internal */ export const PersistImportedDeploymentRequestExposureDisabled$outboundSchema: z.ZodType< PersistImportedDeploymentRequestExposureDisabled$Outbound, PersistImportedDeploymentRequestExposureDisabled > = z.object({ mode: PersistImportedDeploymentRequestModeDisabled$outboundSchema, }); export function persistImportedDeploymentRequestExposureDisabledToJSON( persistImportedDeploymentRequestExposureDisabled: PersistImportedDeploymentRequestExposureDisabled, ): string { return JSON.stringify( PersistImportedDeploymentRequestExposureDisabled$outboundSchema.parse( persistImportedDeploymentRequestExposureDisabled, ), ); } /** @internal */ export type PersistImportedDeploymentRequestExposureUnion$Outbound = | PersistImportedDeploymentRequestExposureCustom$Outbound | PersistImportedDeploymentRequestExposureGenerated$Outbound | PersistImportedDeploymentRequestExposureDisabled$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestExposureUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestExposureUnion$Outbound, PersistImportedDeploymentRequestExposureUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestExposureCustom$outboundSchema), z.lazy(() => PersistImportedDeploymentRequestExposureGenerated$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestExposureDisabled$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestExposureUnionToJSON( persistImportedDeploymentRequestExposureUnion: PersistImportedDeploymentRequestExposureUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestExposureUnion$outboundSchema.parse( persistImportedDeploymentRequestExposureUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestKubernetes$Outbound = { cluster?: | PersistImportedDeploymentRequestCluster$Outbound | any | null | undefined; exposure?: | PersistImportedDeploymentRequestExposureCustom$Outbound | PersistImportedDeploymentRequestExposureGenerated$Outbound | PersistImportedDeploymentRequestExposureDisabled$Outbound | any | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestKubernetes$outboundSchema: z.ZodType< PersistImportedDeploymentRequestKubernetes$Outbound, PersistImportedDeploymentRequestKubernetes > = z.object({ cluster: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestCluster$outboundSchema), z.any(), ]), ).optional(), exposure: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestExposureCustom$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestExposureGenerated$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestExposureDisabled$outboundSchema ), z.any(), ]), ).optional(), }); export function persistImportedDeploymentRequestKubernetesToJSON( persistImportedDeploymentRequestKubernetes: PersistImportedDeploymentRequestKubernetes, ): string { return JSON.stringify( PersistImportedDeploymentRequestKubernetes$outboundSchema.parse( persistImportedDeploymentRequestKubernetes, ), ); } /** @internal */ export type PersistImportedDeploymentRequestKubernetesUnion$Outbound = | PersistImportedDeploymentRequestKubernetes$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestKubernetesUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestKubernetesUnion$Outbound, PersistImportedDeploymentRequestKubernetesUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestKubernetes$outboundSchema), z.any(), ]); export function persistImportedDeploymentRequestKubernetesUnionToJSON( persistImportedDeploymentRequestKubernetesUnion: PersistImportedDeploymentRequestKubernetesUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestKubernetesUnion$outboundSchema.parse( persistImportedDeploymentRequestKubernetesUnion, ), ); } /** @internal */ export const PersistImportedDeploymentRequestTypeByoVnetAzure$outboundSchema: z.ZodEnum = z.enum( PersistImportedDeploymentRequestTypeByoVnetAzure, ); /** @internal */ export type PersistImportedDeploymentRequestNetworkByoVnetAzure$Outbound = { application_gateway_subnet_name?: string | null | undefined; private_endpoint_subnet_name?: string | null | undefined; private_subnet_name: string; public_subnet_name: string; type: string; vnet_resource_id: string; }; /** @internal */ export const PersistImportedDeploymentRequestNetworkByoVnetAzure$outboundSchema: z.ZodType< PersistImportedDeploymentRequestNetworkByoVnetAzure$Outbound, PersistImportedDeploymentRequestNetworkByoVnetAzure > = z.object({ applicationGatewaySubnetName: z.nullable(z.string()).optional(), privateEndpointSubnetName: z.nullable(z.string()).optional(), privateSubnetName: z.string(), publicSubnetName: z.string(), type: PersistImportedDeploymentRequestTypeByoVnetAzure$outboundSchema, vnetResourceId: z.string(), }).transform((v) => { return remap$(v, { applicationGatewaySubnetName: "application_gateway_subnet_name", privateEndpointSubnetName: "private_endpoint_subnet_name", privateSubnetName: "private_subnet_name", publicSubnetName: "public_subnet_name", vnetResourceId: "vnet_resource_id", }); }); export function persistImportedDeploymentRequestNetworkByoVnetAzureToJSON( persistImportedDeploymentRequestNetworkByoVnetAzure: PersistImportedDeploymentRequestNetworkByoVnetAzure, ): string { return JSON.stringify( PersistImportedDeploymentRequestNetworkByoVnetAzure$outboundSchema.parse( persistImportedDeploymentRequestNetworkByoVnetAzure, ), ); } /** @internal */ export const PersistImportedDeploymentRequestTypeByoVpcGcp$outboundSchema: z.ZodEnum = z.enum( PersistImportedDeploymentRequestTypeByoVpcGcp, ); /** @internal */ export type PersistImportedDeploymentRequestNetworkByoVpcGcp$Outbound = { network_name: string; region: string; subnet_name: string; type: string; }; /** @internal */ export const PersistImportedDeploymentRequestNetworkByoVpcGcp$outboundSchema: z.ZodType< PersistImportedDeploymentRequestNetworkByoVpcGcp$Outbound, PersistImportedDeploymentRequestNetworkByoVpcGcp > = z.object({ networkName: z.string(), region: z.string(), subnetName: z.string(), type: PersistImportedDeploymentRequestTypeByoVpcGcp$outboundSchema, }).transform((v) => { return remap$(v, { networkName: "network_name", subnetName: "subnet_name", }); }); export function persistImportedDeploymentRequestNetworkByoVpcGcpToJSON( persistImportedDeploymentRequestNetworkByoVpcGcp: PersistImportedDeploymentRequestNetworkByoVpcGcp, ): string { return JSON.stringify( PersistImportedDeploymentRequestNetworkByoVpcGcp$outboundSchema.parse( persistImportedDeploymentRequestNetworkByoVpcGcp, ), ); } /** @internal */ export const PersistImportedDeploymentRequestTypeByoVpcAws$outboundSchema: z.ZodEnum = z.enum( PersistImportedDeploymentRequestTypeByoVpcAws, ); /** @internal */ export type PersistImportedDeploymentRequestNetworkByoVpcAws$Outbound = { private_subnet_ids: Array; public_subnet_ids: Array; security_group_ids?: Array | undefined; type: string; vpc_id: string; }; /** @internal */ export const PersistImportedDeploymentRequestNetworkByoVpcAws$outboundSchema: z.ZodType< PersistImportedDeploymentRequestNetworkByoVpcAws$Outbound, PersistImportedDeploymentRequestNetworkByoVpcAws > = z.object({ privateSubnetIds: z.array(z.string()), publicSubnetIds: z.array(z.string()), securityGroupIds: z.array(z.string()).optional(), type: PersistImportedDeploymentRequestTypeByoVpcAws$outboundSchema, vpcId: z.string(), }).transform((v) => { return remap$(v, { privateSubnetIds: "private_subnet_ids", publicSubnetIds: "public_subnet_ids", securityGroupIds: "security_group_ids", vpcId: "vpc_id", }); }); export function persistImportedDeploymentRequestNetworkByoVpcAwsToJSON( persistImportedDeploymentRequestNetworkByoVpcAws: PersistImportedDeploymentRequestNetworkByoVpcAws, ): string { return JSON.stringify( PersistImportedDeploymentRequestNetworkByoVpcAws$outboundSchema.parse( persistImportedDeploymentRequestNetworkByoVpcAws, ), ); } /** @internal */ export const PersistImportedDeploymentRequestTypeCreate$outboundSchema: z.ZodEnum = z.enum( PersistImportedDeploymentRequestTypeCreate, ); /** @internal */ export type PersistImportedDeploymentRequestNetworkCreate$Outbound = { availability_zones?: number | undefined; cidr?: string | null | undefined; type: string; }; /** @internal */ export const PersistImportedDeploymentRequestNetworkCreate$outboundSchema: z.ZodType< PersistImportedDeploymentRequestNetworkCreate$Outbound, PersistImportedDeploymentRequestNetworkCreate > = z.object({ availabilityZones: z.int().optional(), cidr: z.nullable(z.string()).optional(), type: PersistImportedDeploymentRequestTypeCreate$outboundSchema, }).transform((v) => { return remap$(v, { availabilityZones: "availability_zones", }); }); export function persistImportedDeploymentRequestNetworkCreateToJSON( persistImportedDeploymentRequestNetworkCreate: PersistImportedDeploymentRequestNetworkCreate, ): string { return JSON.stringify( PersistImportedDeploymentRequestNetworkCreate$outboundSchema.parse( persistImportedDeploymentRequestNetworkCreate, ), ); } /** @internal */ export const PersistImportedDeploymentRequestTypeUseDefault$outboundSchema: z.ZodEnum = z.enum( PersistImportedDeploymentRequestTypeUseDefault, ); /** @internal */ export type PersistImportedDeploymentRequestNetworkUseDefault$Outbound = { type: string; }; /** @internal */ export const PersistImportedDeploymentRequestNetworkUseDefault$outboundSchema: z.ZodType< PersistImportedDeploymentRequestNetworkUseDefault$Outbound, PersistImportedDeploymentRequestNetworkUseDefault > = z.object({ type: PersistImportedDeploymentRequestTypeUseDefault$outboundSchema, }); export function persistImportedDeploymentRequestNetworkUseDefaultToJSON( persistImportedDeploymentRequestNetworkUseDefault: PersistImportedDeploymentRequestNetworkUseDefault, ): string { return JSON.stringify( PersistImportedDeploymentRequestNetworkUseDefault$outboundSchema.parse( persistImportedDeploymentRequestNetworkUseDefault, ), ); } /** @internal */ export type PersistImportedDeploymentRequestNetworkUnion$Outbound = | PersistImportedDeploymentRequestNetworkByoVpcAws$Outbound | PersistImportedDeploymentRequestNetworkByoVpcGcp$Outbound | PersistImportedDeploymentRequestNetworkByoVnetAzure$Outbound | PersistImportedDeploymentRequestNetworkUseDefault$Outbound | PersistImportedDeploymentRequestNetworkCreate$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestNetworkUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestNetworkUnion$Outbound, PersistImportedDeploymentRequestNetworkUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestNetworkByoVpcAws$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestNetworkByoVpcGcp$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestNetworkByoVnetAzure$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestNetworkUseDefault$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestNetworkCreate$outboundSchema), z.any(), ]); export function persistImportedDeploymentRequestNetworkUnionToJSON( persistImportedDeploymentRequestNetworkUnion: PersistImportedDeploymentRequestNetworkUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestNetworkUnion$outboundSchema.parse( persistImportedDeploymentRequestNetworkUnion, ), ); } /** @internal */ export const PersistImportedDeploymentRequestTelemetry$outboundSchema: z.ZodEnum = z.enum( PersistImportedDeploymentRequestTelemetry, ); /** @internal */ export const PersistImportedDeploymentRequestUpdates$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestUpdates > = z.enum(PersistImportedDeploymentRequestUpdates); /** @internal */ export type PersistImportedDeploymentRequestStackSettings$Outbound = { compute?: | PersistImportedDeploymentRequestCompute$Outbound | any | null | undefined; deploymentModel?: string | undefined; domains?: | PersistImportedDeploymentRequestDomains$Outbound | any | null | undefined; externalBindings?: | PersistImportedDeploymentRequestExternalBindings$Outbound | null | undefined; heartbeats?: string | undefined; kubernetes?: | PersistImportedDeploymentRequestKubernetes$Outbound | any | null | undefined; network?: | PersistImportedDeploymentRequestNetworkByoVpcAws$Outbound | PersistImportedDeploymentRequestNetworkByoVpcGcp$Outbound | PersistImportedDeploymentRequestNetworkByoVnetAzure$Outbound | PersistImportedDeploymentRequestNetworkUseDefault$Outbound | PersistImportedDeploymentRequestNetworkCreate$Outbound | any | null | undefined; publicEndpoints?: { [k: string]: { [k: string]: string } } | null | undefined; telemetry?: string | undefined; updates?: string | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestStackSettings$outboundSchema: z.ZodType< PersistImportedDeploymentRequestStackSettings$Outbound, PersistImportedDeploymentRequestStackSettings > = z.object({ compute: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestCompute$outboundSchema), z.any(), ]), ).optional(), deploymentModel: PersistImportedDeploymentRequestDeploymentModel$outboundSchema.optional(), domains: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestDomains$outboundSchema), z.any(), ]), ).optional(), externalBindings: z.nullable( z.lazy(() => PersistImportedDeploymentRequestExternalBindings$outboundSchema ), ).optional(), heartbeats: PersistImportedDeploymentRequestHeartbeats$outboundSchema .optional(), kubernetes: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestKubernetes$outboundSchema), z.any(), ]), ).optional(), network: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestNetworkByoVpcAws$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestNetworkByoVpcGcp$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestNetworkByoVnetAzure$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestNetworkUseDefault$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestNetworkCreate$outboundSchema ), z.any(), ]), ).optional(), publicEndpoints: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), telemetry: PersistImportedDeploymentRequestTelemetry$outboundSchema .optional(), updates: PersistImportedDeploymentRequestUpdates$outboundSchema.optional(), }); export function persistImportedDeploymentRequestStackSettingsToJSON( persistImportedDeploymentRequestStackSettings: PersistImportedDeploymentRequestStackSettings, ): string { return JSON.stringify( PersistImportedDeploymentRequestStackSettings$outboundSchema.parse( persistImportedDeploymentRequestStackSettings, ), ); } /** @internal */ export const PersistImportedDeploymentRequestPlatformTest$outboundSchema: z.ZodEnum = z.enum( PersistImportedDeploymentRequestPlatformTest, ); /** @internal */ export type PersistImportedDeploymentRequestEnvironmentInfoTest$Outbound = { testId: string; platform: string; }; /** @internal */ export const PersistImportedDeploymentRequestEnvironmentInfoTest$outboundSchema: z.ZodType< PersistImportedDeploymentRequestEnvironmentInfoTest$Outbound, PersistImportedDeploymentRequestEnvironmentInfoTest > = z.object({ testId: z.string(), platform: PersistImportedDeploymentRequestPlatformTest$outboundSchema, }); export function persistImportedDeploymentRequestEnvironmentInfoTestToJSON( persistImportedDeploymentRequestEnvironmentInfoTest: PersistImportedDeploymentRequestEnvironmentInfoTest, ): string { return JSON.stringify( PersistImportedDeploymentRequestEnvironmentInfoTest$outboundSchema.parse( persistImportedDeploymentRequestEnvironmentInfoTest, ), ); } /** @internal */ export const PersistImportedDeploymentRequestPlatformLocal$outboundSchema: z.ZodEnum = z.enum( PersistImportedDeploymentRequestPlatformLocal, ); /** @internal */ export type PersistImportedDeploymentRequestEnvironmentInfoLocal$Outbound = { arch: string; hostname: string; os: string; platform: string; }; /** @internal */ export const PersistImportedDeploymentRequestEnvironmentInfoLocal$outboundSchema: z.ZodType< PersistImportedDeploymentRequestEnvironmentInfoLocal$Outbound, PersistImportedDeploymentRequestEnvironmentInfoLocal > = z.object({ arch: z.string(), hostname: z.string(), os: z.string(), platform: PersistImportedDeploymentRequestPlatformLocal$outboundSchema, }); export function persistImportedDeploymentRequestEnvironmentInfoLocalToJSON( persistImportedDeploymentRequestEnvironmentInfoLocal: PersistImportedDeploymentRequestEnvironmentInfoLocal, ): string { return JSON.stringify( PersistImportedDeploymentRequestEnvironmentInfoLocal$outboundSchema.parse( persistImportedDeploymentRequestEnvironmentInfoLocal, ), ); } /** @internal */ export const PersistImportedDeploymentRequestEnvironmentInfoPlatformAzure$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestEnvironmentInfoPlatformAzure > = z.enum(PersistImportedDeploymentRequestEnvironmentInfoPlatformAzure); /** @internal */ export type PersistImportedDeploymentRequestEnvironmentInfoAzure$Outbound = { location: string; subscriptionId: string; tenantId: string; platform: string; }; /** @internal */ export const PersistImportedDeploymentRequestEnvironmentInfoAzure$outboundSchema: z.ZodType< PersistImportedDeploymentRequestEnvironmentInfoAzure$Outbound, PersistImportedDeploymentRequestEnvironmentInfoAzure > = z.object({ location: z.string(), subscriptionId: z.string(), tenantId: z.string(), platform: PersistImportedDeploymentRequestEnvironmentInfoPlatformAzure$outboundSchema, }); export function persistImportedDeploymentRequestEnvironmentInfoAzureToJSON( persistImportedDeploymentRequestEnvironmentInfoAzure: PersistImportedDeploymentRequestEnvironmentInfoAzure, ): string { return JSON.stringify( PersistImportedDeploymentRequestEnvironmentInfoAzure$outboundSchema.parse( persistImportedDeploymentRequestEnvironmentInfoAzure, ), ); } /** @internal */ export const PersistImportedDeploymentRequestEnvironmentInfoPlatformGcp$outboundSchema: z.ZodEnum = z.enum(PersistImportedDeploymentRequestEnvironmentInfoPlatformGcp); /** @internal */ export type PersistImportedDeploymentRequestEnvironmentInfoGcp$Outbound = { projectId: string; projectNumber: string; region: string; platform: string; }; /** @internal */ export const PersistImportedDeploymentRequestEnvironmentInfoGcp$outboundSchema: z.ZodType< PersistImportedDeploymentRequestEnvironmentInfoGcp$Outbound, PersistImportedDeploymentRequestEnvironmentInfoGcp > = z.object({ projectId: z.string(), projectNumber: z.string(), region: z.string(), platform: PersistImportedDeploymentRequestEnvironmentInfoPlatformGcp$outboundSchema, }); export function persistImportedDeploymentRequestEnvironmentInfoGcpToJSON( persistImportedDeploymentRequestEnvironmentInfoGcp: PersistImportedDeploymentRequestEnvironmentInfoGcp, ): string { return JSON.stringify( PersistImportedDeploymentRequestEnvironmentInfoGcp$outboundSchema.parse( persistImportedDeploymentRequestEnvironmentInfoGcp, ), ); } /** @internal */ export const PersistImportedDeploymentRequestEnvironmentInfoPlatformAws$outboundSchema: z.ZodEnum = z.enum(PersistImportedDeploymentRequestEnvironmentInfoPlatformAws); /** @internal */ export type PersistImportedDeploymentRequestEnvironmentInfoAws$Outbound = { accountId: string; region: string; platform: string; }; /** @internal */ export const PersistImportedDeploymentRequestEnvironmentInfoAws$outboundSchema: z.ZodType< PersistImportedDeploymentRequestEnvironmentInfoAws$Outbound, PersistImportedDeploymentRequestEnvironmentInfoAws > = z.object({ accountId: z.string(), region: z.string(), platform: PersistImportedDeploymentRequestEnvironmentInfoPlatformAws$outboundSchema, }); export function persistImportedDeploymentRequestEnvironmentInfoAwsToJSON( persistImportedDeploymentRequestEnvironmentInfoAws: PersistImportedDeploymentRequestEnvironmentInfoAws, ): string { return JSON.stringify( PersistImportedDeploymentRequestEnvironmentInfoAws$outboundSchema.parse( persistImportedDeploymentRequestEnvironmentInfoAws, ), ); } /** @internal */ export type PersistImportedDeploymentRequestEnvironmentInfoUnion$Outbound = | PersistImportedDeploymentRequestEnvironmentInfoGcp$Outbound | PersistImportedDeploymentRequestEnvironmentInfoAzure$Outbound | PersistImportedDeploymentRequestEnvironmentInfoLocal$Outbound | PersistImportedDeploymentRequestEnvironmentInfoAws$Outbound | PersistImportedDeploymentRequestEnvironmentInfoTest$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestEnvironmentInfoUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestEnvironmentInfoUnion$Outbound, PersistImportedDeploymentRequestEnvironmentInfoUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestEnvironmentInfoGcp$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestEnvironmentInfoAzure$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestEnvironmentInfoLocal$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestEnvironmentInfoAws$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestEnvironmentInfoTest$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestEnvironmentInfoUnionToJSON( persistImportedDeploymentRequestEnvironmentInfoUnion: PersistImportedDeploymentRequestEnvironmentInfoUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestEnvironmentInfoUnion$outboundSchema.parse( persistImportedDeploymentRequestEnvironmentInfoUnion, ), ); } /** @internal */ export const PersistImportedDeploymentRequestInitialSetupAuthority$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestInitialSetupAuthority); /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackTypeStringList$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackTypeStringList > = z.enum( PersistImportedDeploymentRequestPendingPreparedStackTypeStringList, ); /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackDefaultStringList$Outbound = { type: string; value: Array; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackDefaultStringList$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackDefaultStringList$Outbound, PersistImportedDeploymentRequestPendingPreparedStackDefaultStringList > = z.object({ type: PersistImportedDeploymentRequestPendingPreparedStackTypeStringList$outboundSchema, value: z.array(z.string()), }); export function persistImportedDeploymentRequestPendingPreparedStackDefaultStringListToJSON( persistImportedDeploymentRequestPendingPreparedStackDefaultStringList: PersistImportedDeploymentRequestPendingPreparedStackDefaultStringList, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackDefaultStringList$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackDefaultStringList, ), ); } /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackTypeBoolean$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackTypeBoolean > = z.enum(PersistImportedDeploymentRequestPendingPreparedStackTypeBoolean); /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackDefaultBoolean$Outbound = { type: string; value: boolean; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackDefaultBoolean$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackDefaultBoolean$Outbound, PersistImportedDeploymentRequestPendingPreparedStackDefaultBoolean > = z.object({ type: PersistImportedDeploymentRequestPendingPreparedStackTypeBoolean$outboundSchema, value: z.boolean(), }); export function persistImportedDeploymentRequestPendingPreparedStackDefaultBooleanToJSON( persistImportedDeploymentRequestPendingPreparedStackDefaultBoolean: PersistImportedDeploymentRequestPendingPreparedStackDefaultBoolean, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackDefaultBoolean$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackDefaultBoolean, ), ); } /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackTypeNumber$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackTypeNumber > = z.enum(PersistImportedDeploymentRequestPendingPreparedStackTypeNumber); /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackDefaultNumber$Outbound = { type: string; value: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackDefaultNumber$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackDefaultNumber$Outbound, PersistImportedDeploymentRequestPendingPreparedStackDefaultNumber > = z.object({ type: PersistImportedDeploymentRequestPendingPreparedStackTypeNumber$outboundSchema, value: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackDefaultNumberToJSON( persistImportedDeploymentRequestPendingPreparedStackDefaultNumber: PersistImportedDeploymentRequestPendingPreparedStackDefaultNumber, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackDefaultNumber$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackDefaultNumber), ); } /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackTypeString$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackTypeString > = z.enum(PersistImportedDeploymentRequestPendingPreparedStackTypeString); /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackDefaultString$Outbound = { type: string; value: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackDefaultString$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackDefaultString$Outbound, PersistImportedDeploymentRequestPendingPreparedStackDefaultString > = z.object({ type: PersistImportedDeploymentRequestPendingPreparedStackTypeString$outboundSchema, value: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackDefaultStringToJSON( persistImportedDeploymentRequestPendingPreparedStackDefaultString: PersistImportedDeploymentRequestPendingPreparedStackDefaultString, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackDefaultString$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackDefaultString), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackDefaultUnion$Outbound = | PersistImportedDeploymentRequestPendingPreparedStackDefaultString$Outbound | PersistImportedDeploymentRequestPendingPreparedStackDefaultNumber$Outbound | PersistImportedDeploymentRequestPendingPreparedStackDefaultBoolean$Outbound | PersistImportedDeploymentRequestPendingPreparedStackDefaultStringList$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackDefaultUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackDefaultUnion$Outbound, PersistImportedDeploymentRequestPendingPreparedStackDefaultUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackDefaultString$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackDefaultNumber$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackDefaultBoolean$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackDefaultStringList$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPendingPreparedStackDefaultUnionToJSON( persistImportedDeploymentRequestPendingPreparedStackDefaultUnion: PersistImportedDeploymentRequestPendingPreparedStackDefaultUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackDefaultUnion$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackDefaultUnion), ); } /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackTypeEnvEnum$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackTypeEnvEnum > = z.enum(PersistImportedDeploymentRequestPendingPreparedStackTypeEnvEnum); /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackTypeUnion$Outbound = | string | any; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackTypeUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackTypeUnion$Outbound, PersistImportedDeploymentRequestPendingPreparedStackTypeUnion > = z.union([ PersistImportedDeploymentRequestPendingPreparedStackTypeEnvEnum$outboundSchema, z.any(), ]); export function persistImportedDeploymentRequestPendingPreparedStackTypeUnionToJSON( persistImportedDeploymentRequestPendingPreparedStackTypeUnion: PersistImportedDeploymentRequestPendingPreparedStackTypeUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackTypeUnion$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackTypeUnion), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackEnv$Outbound = { name: string; targetResources?: Array | null | undefined; type?: string | any | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackEnv$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackEnv$Outbound, PersistImportedDeploymentRequestPendingPreparedStackEnv > = z.object({ name: z.string(), targetResources: z.nullable(z.array(z.string())).optional(), type: z.nullable( z.union([ PersistImportedDeploymentRequestPendingPreparedStackTypeEnvEnum$outboundSchema, z.any(), ]), ).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackEnvToJSON( persistImportedDeploymentRequestPendingPreparedStackEnv: PersistImportedDeploymentRequestPendingPreparedStackEnv, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackEnv$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackEnv), ); } /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackKind$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestPendingPreparedStackKind); /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackPlatform$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackPlatform > = z.enum(PersistImportedDeploymentRequestPendingPreparedStackPlatform); /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProvidedBy$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackProvidedBy > = z.enum(PersistImportedDeploymentRequestPendingPreparedStackProvidedBy); /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackValidation$Outbound = { format?: string | null | undefined; max?: string | null | undefined; maxItems?: number | null | undefined; maxLength?: number | null | undefined; min?: string | null | undefined; minItems?: number | null | undefined; minLength?: number | null | undefined; pattern?: string | null | undefined; values?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackValidation$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackValidation$Outbound, PersistImportedDeploymentRequestPendingPreparedStackValidation > = 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 persistImportedDeploymentRequestPendingPreparedStackValidationToJSON( persistImportedDeploymentRequestPendingPreparedStackValidation: PersistImportedDeploymentRequestPendingPreparedStackValidation, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackValidation$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackValidation), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackValidationUnion$Outbound = | PersistImportedDeploymentRequestPendingPreparedStackValidation$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackValidationUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackValidationUnion$Outbound, PersistImportedDeploymentRequestPendingPreparedStackValidationUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackValidation$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPendingPreparedStackValidationUnionToJSON( persistImportedDeploymentRequestPendingPreparedStackValidationUnion: PersistImportedDeploymentRequestPendingPreparedStackValidationUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackValidationUnion$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackValidationUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackInput$Outbound = { default?: | PersistImportedDeploymentRequestPendingPreparedStackDefaultString$Outbound | PersistImportedDeploymentRequestPendingPreparedStackDefaultNumber$Outbound | PersistImportedDeploymentRequestPendingPreparedStackDefaultBoolean$Outbound | PersistImportedDeploymentRequestPendingPreparedStackDefaultStringList$Outbound | any | null | undefined; description: string; env?: | Array | undefined; id: string; kind: string; label: string; placeholder?: string | null | undefined; platforms?: Array | null | undefined; providedBy: Array; required: boolean; validation?: | PersistImportedDeploymentRequestPendingPreparedStackValidation$Outbound | any | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackInput$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackInput$Outbound, PersistImportedDeploymentRequestPendingPreparedStackInput > = z.object({ default: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackDefaultString$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackDefaultNumber$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackDefaultBoolean$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackDefaultStringList$outboundSchema ), z.any(), ]), ).optional(), description: z.string(), env: z.array( z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackEnv$outboundSchema ), ).optional(), id: z.string(), kind: PersistImportedDeploymentRequestPendingPreparedStackKind$outboundSchema, label: z.string(), placeholder: z.nullable(z.string()).optional(), platforms: z.nullable( z.array( PersistImportedDeploymentRequestPendingPreparedStackPlatform$outboundSchema, ), ).optional(), providedBy: z.array( PersistImportedDeploymentRequestPendingPreparedStackProvidedBy$outboundSchema, ), required: z.boolean(), validation: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackValidation$outboundSchema ), z.any(), ]), ).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackInputToJSON( persistImportedDeploymentRequestPendingPreparedStackInput: PersistImportedDeploymentRequestPendingPreparedStackInput, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackInput$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackInput), ); } /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackManagementEnum$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackManagementEnum > = z.enum( PersistImportedDeploymentRequestPendingPreparedStackManagementEnum, ); /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideAwResource$Outbound = { condition?: { [k: string]: { [k: string]: string } } | null | undefined; resources: Array; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideAwResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideAwResource$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideAwResource > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function persistImportedDeploymentRequestPendingPreparedStackOverrideAwResourceToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideAwResource: PersistImportedDeploymentRequestPendingPreparedStackOverrideAwResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideAwResource$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackOverrideAwResource, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideAwStack$Outbound = { condition?: { [k: string]: { [k: string]: string } } | null | undefined; resources: Array; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideAwStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideAwStack$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideAwStack > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function persistImportedDeploymentRequestPendingPreparedStackOverrideAwStackToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideAwStack: PersistImportedDeploymentRequestPendingPreparedStackOverrideAwStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideAwStack$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackOverrideAwStack, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideAwBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPendingPreparedStackOverrideAwResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPendingPreparedStackOverrideAwStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideAwBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideAwBinding$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideAwBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideAwResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideAwStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackOverrideAwBindingToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideAwBinding: PersistImportedDeploymentRequestPendingPreparedStackOverrideAwBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideAwBinding$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackOverrideAwBinding, ), ); } /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideEffect$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackOverrideEffect > = z.enum( PersistImportedDeploymentRequestPendingPreparedStackOverrideEffect, ); /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideAwGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideAwGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideAwGrant$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideAwGrant > = 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 persistImportedDeploymentRequestPendingPreparedStackOverrideAwGrantToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideAwGrant: PersistImportedDeploymentRequestPendingPreparedStackOverrideAwGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideAwGrant$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackOverrideAwGrant, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideAw$Outbound = { binding: PersistImportedDeploymentRequestPendingPreparedStackOverrideAwBinding$Outbound; description?: string | null | undefined; effect?: string | undefined; grant: PersistImportedDeploymentRequestPendingPreparedStackOverrideAwGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideAw$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideAw$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideAw > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideAwBinding$outboundSchema ), description: z.nullable(z.string()).optional(), effect: PersistImportedDeploymentRequestPendingPreparedStackOverrideEffect$outboundSchema .optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideAwGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackOverrideAwToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideAw: PersistImportedDeploymentRequestPendingPreparedStackOverrideAw, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideAw$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackOverrideAw), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureResource$Outbound = { scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureResource$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureResource > = z.object({ scope: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackOverrideAzureResourceToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideAzureResource: PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureResource$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackOverrideAzureResource, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureStack$Outbound = { scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureStack$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureStack > = z.object({ scope: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackOverrideAzureStackToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideAzureStack: PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureStack$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackOverrideAzureStack, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureBinding$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackOverrideAzureBindingToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideAzureBinding: PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureBinding$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackOverrideAzureBinding, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureGrant$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureGrant > = 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 persistImportedDeploymentRequestPendingPreparedStackOverrideAzureGrantToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideAzureGrant: PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureGrant$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackOverrideAzureGrant, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideAzure$Outbound = { binding: PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureBinding$Outbound; description?: string | null | undefined; grant: PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideAzure$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideAzure$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideAzure > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureBinding$outboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideAzureGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackOverrideAzureToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideAzure: PersistImportedDeploymentRequestPendingPreparedStackOverrideAzure, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideAzure$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackOverrideAzure), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionResource$Outbound = { expression: string; title: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionResource$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionResource > = z.object({ expression: z.string(), title: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackOverrideConditionResourceToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideConditionResource: PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionResource$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackOverrideConditionResource, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideResourceConditionUnion$Outbound = | PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionResource$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideResourceConditionUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideResourceConditionUnion$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideResourceConditionUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionResource$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPendingPreparedStackOverrideResourceConditionUnionToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideResourceConditionUnion: PersistImportedDeploymentRequestPendingPreparedStackOverrideResourceConditionUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideResourceConditionUnion$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackOverrideResourceConditionUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpResource$Outbound = { condition?: | PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionResource$Outbound | any | null | undefined; scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpResource$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpResource > = z.object({ condition: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionResource$outboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackOverrideGcpResourceToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideGcpResource: PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpResource$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackOverrideGcpResource, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionStack$Outbound = { expression: string; title: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionStack$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionStack > = z.object({ expression: z.string(), title: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackOverrideConditionStackToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideConditionStack: PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionStack$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackOverrideConditionStack, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideStackConditionUnion$Outbound = | PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionStack$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideStackConditionUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideStackConditionUnion$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideStackConditionUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionStack$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPendingPreparedStackOverrideStackConditionUnionToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideStackConditionUnion: PersistImportedDeploymentRequestPendingPreparedStackOverrideStackConditionUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideStackConditionUnion$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackOverrideStackConditionUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpStack$Outbound = { condition?: | PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionStack$Outbound | any | null | undefined; scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpStack$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpStack > = z.object({ condition: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideConditionStack$outboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackOverrideGcpStackToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideGcpStack: PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpStack$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackOverrideGcpStack, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpBinding$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackOverrideGcpBindingToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideGcpBinding: PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpBinding$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackOverrideGcpBinding, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpGrant$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpGrant > = 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 persistImportedDeploymentRequestPendingPreparedStackOverrideGcpGrantToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideGcpGrant: PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpGrant$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackOverrideGcpGrant, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideGcp$Outbound = { binding: PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpBinding$Outbound; description?: string | null | undefined; grant: PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideGcp$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideGcp$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideGcp > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpBinding$outboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideGcpGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackOverrideGcpToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideGcp: PersistImportedDeploymentRequestPendingPreparedStackOverrideGcp, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideGcp$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackOverrideGcp), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverridePlatforms$Outbound = { aws?: | Array< PersistImportedDeploymentRequestPendingPreparedStackOverrideAw$Outbound > | null | undefined; azure?: | Array< PersistImportedDeploymentRequestPendingPreparedStackOverrideAzure$Outbound > | null | undefined; gcp?: | Array< PersistImportedDeploymentRequestPendingPreparedStackOverrideGcp$Outbound > | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverridePlatforms$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverridePlatforms$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverridePlatforms > = z.object({ aws: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideAw$outboundSchema )), ).optional(), azure: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideAzure$outboundSchema )), ).optional(), gcp: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverrideGcp$outboundSchema )), ).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackOverridePlatformsToJSON( persistImportedDeploymentRequestPendingPreparedStackOverridePlatforms: PersistImportedDeploymentRequestPendingPreparedStackOverridePlatforms, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverridePlatforms$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackOverridePlatforms, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverride$Outbound = { description: string; id: string; platforms: PersistImportedDeploymentRequestPendingPreparedStackOverridePlatforms$Outbound; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverride$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverride$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverride > = z.object({ description: z.string(), id: z.string(), platforms: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverridePlatforms$outboundSchema ), }); export function persistImportedDeploymentRequestPendingPreparedStackOverrideToJSON( persistImportedDeploymentRequestPendingPreparedStackOverride: PersistImportedDeploymentRequestPendingPreparedStackOverride, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverride$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackOverride), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackOverrideUnion$Outbound = | PersistImportedDeploymentRequestPendingPreparedStackOverride$Outbound | string; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackOverrideUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackOverrideUnion$Outbound, PersistImportedDeploymentRequestPendingPreparedStackOverrideUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverride$outboundSchema ), z.string(), ]); export function persistImportedDeploymentRequestPendingPreparedStackOverrideUnionToJSON( persistImportedDeploymentRequestPendingPreparedStackOverrideUnion: PersistImportedDeploymentRequestPendingPreparedStackOverrideUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackOverrideUnion$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackOverrideUnion), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackManagement2$Outbound = { override: { [k: string]: Array< | PersistImportedDeploymentRequestPendingPreparedStackOverride$Outbound | string >; }; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackManagement2$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackManagement2$Outbound, PersistImportedDeploymentRequestPendingPreparedStackManagement2 > = z.object({ override: z.record( z.string(), z.array(z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackOverride$outboundSchema ), z.string(), ])), ), }); export function persistImportedDeploymentRequestPendingPreparedStackManagement2ToJSON( persistImportedDeploymentRequestPendingPreparedStackManagement2: PersistImportedDeploymentRequestPendingPreparedStackManagement2, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackManagement2$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackManagement2), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendAwResource$Outbound = { condition?: { [k: string]: { [k: string]: string } } | null | undefined; resources: Array; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendAwResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendAwResource$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendAwResource > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function persistImportedDeploymentRequestPendingPreparedStackExtendAwResourceToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendAwResource: PersistImportedDeploymentRequestPendingPreparedStackExtendAwResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendAwResource$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackExtendAwResource, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendAwStack$Outbound = { condition?: { [k: string]: { [k: string]: string } } | null | undefined; resources: Array; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendAwStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendAwStack$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendAwStack > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function persistImportedDeploymentRequestPendingPreparedStackExtendAwStackToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendAwStack: PersistImportedDeploymentRequestPendingPreparedStackExtendAwStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendAwStack$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackExtendAwStack), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendAwBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPendingPreparedStackExtendAwResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPendingPreparedStackExtendAwStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendAwBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendAwBinding$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendAwBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendAwResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendAwStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackExtendAwBindingToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendAwBinding: PersistImportedDeploymentRequestPendingPreparedStackExtendAwBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendAwBinding$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackExtendAwBinding, ), ); } /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendEffect$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackExtendEffect > = z.enum(PersistImportedDeploymentRequestPendingPreparedStackExtendEffect); /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendAwGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendAwGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendAwGrant$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendAwGrant > = 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 persistImportedDeploymentRequestPendingPreparedStackExtendAwGrantToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendAwGrant: PersistImportedDeploymentRequestPendingPreparedStackExtendAwGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendAwGrant$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackExtendAwGrant), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendAw$Outbound = { binding: PersistImportedDeploymentRequestPendingPreparedStackExtendAwBinding$Outbound; description?: string | null | undefined; effect?: string | undefined; grant: PersistImportedDeploymentRequestPendingPreparedStackExtendAwGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendAw$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendAw$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendAw > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendAwBinding$outboundSchema ), description: z.nullable(z.string()).optional(), effect: PersistImportedDeploymentRequestPendingPreparedStackExtendEffect$outboundSchema .optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendAwGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackExtendAwToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendAw: PersistImportedDeploymentRequestPendingPreparedStackExtendAw, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendAw$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackExtendAw), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendAzureResource$Outbound = { scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendAzureResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendAzureResource$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendAzureResource > = z.object({ scope: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackExtendAzureResourceToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendAzureResource: PersistImportedDeploymentRequestPendingPreparedStackExtendAzureResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendAzureResource$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackExtendAzureResource, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendAzureStack$Outbound = { scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendAzureStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendAzureStack$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendAzureStack > = z.object({ scope: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackExtendAzureStackToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendAzureStack: PersistImportedDeploymentRequestPendingPreparedStackExtendAzureStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendAzureStack$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackExtendAzureStack, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendAzureBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPendingPreparedStackExtendAzureResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPendingPreparedStackExtendAzureStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendAzureBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendAzureBinding$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendAzureBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendAzureResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendAzureStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackExtendAzureBindingToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendAzureBinding: PersistImportedDeploymentRequestPendingPreparedStackExtendAzureBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendAzureBinding$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackExtendAzureBinding, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendAzureGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendAzureGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendAzureGrant$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendAzureGrant > = 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 persistImportedDeploymentRequestPendingPreparedStackExtendAzureGrantToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendAzureGrant: PersistImportedDeploymentRequestPendingPreparedStackExtendAzureGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendAzureGrant$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackExtendAzureGrant, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendAzure$Outbound = { binding: PersistImportedDeploymentRequestPendingPreparedStackExtendAzureBinding$Outbound; description?: string | null | undefined; grant: PersistImportedDeploymentRequestPendingPreparedStackExtendAzureGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendAzure$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendAzure$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendAzure > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendAzureBinding$outboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendAzureGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackExtendAzureToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendAzure: PersistImportedDeploymentRequestPendingPreparedStackExtendAzure, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendAzure$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackExtendAzure), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendConditionResource$Outbound = { expression: string; title: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendConditionResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendConditionResource$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendConditionResource > = z.object({ expression: z.string(), title: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackExtendConditionResourceToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendConditionResource: PersistImportedDeploymentRequestPendingPreparedStackExtendConditionResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendConditionResource$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackExtendConditionResource, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendResourceConditionUnion$Outbound = | PersistImportedDeploymentRequestPendingPreparedStackExtendConditionResource$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendResourceConditionUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendResourceConditionUnion$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendResourceConditionUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendConditionResource$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPendingPreparedStackExtendResourceConditionUnionToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendResourceConditionUnion: PersistImportedDeploymentRequestPendingPreparedStackExtendResourceConditionUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendResourceConditionUnion$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackExtendResourceConditionUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendGcpResource$Outbound = { condition?: | PersistImportedDeploymentRequestPendingPreparedStackExtendConditionResource$Outbound | any | null | undefined; scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendGcpResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendGcpResource$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendGcpResource > = z.object({ condition: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendConditionResource$outboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackExtendGcpResourceToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendGcpResource: PersistImportedDeploymentRequestPendingPreparedStackExtendGcpResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendGcpResource$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackExtendGcpResource, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendConditionStack$Outbound = { expression: string; title: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendConditionStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendConditionStack$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendConditionStack > = z.object({ expression: z.string(), title: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackExtendConditionStackToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendConditionStack: PersistImportedDeploymentRequestPendingPreparedStackExtendConditionStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendConditionStack$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackExtendConditionStack, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendStackConditionUnion$Outbound = | PersistImportedDeploymentRequestPendingPreparedStackExtendConditionStack$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendStackConditionUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendStackConditionUnion$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendStackConditionUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendConditionStack$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPendingPreparedStackExtendStackConditionUnionToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendStackConditionUnion: PersistImportedDeploymentRequestPendingPreparedStackExtendStackConditionUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendStackConditionUnion$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackExtendStackConditionUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendGcpStack$Outbound = { condition?: | PersistImportedDeploymentRequestPendingPreparedStackExtendConditionStack$Outbound | any | null | undefined; scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendGcpStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendGcpStack$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendGcpStack > = z.object({ condition: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendConditionStack$outboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackExtendGcpStackToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendGcpStack: PersistImportedDeploymentRequestPendingPreparedStackExtendGcpStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendGcpStack$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackExtendGcpStack, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendGcpBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPendingPreparedStackExtendGcpResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPendingPreparedStackExtendGcpStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendGcpBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendGcpBinding$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendGcpBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendGcpResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendGcpStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackExtendGcpBindingToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendGcpBinding: PersistImportedDeploymentRequestPendingPreparedStackExtendGcpBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendGcpBinding$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackExtendGcpBinding, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendGcpGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendGcpGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendGcpGrant$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendGcpGrant > = 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 persistImportedDeploymentRequestPendingPreparedStackExtendGcpGrantToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendGcpGrant: PersistImportedDeploymentRequestPendingPreparedStackExtendGcpGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendGcpGrant$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackExtendGcpGrant, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendGcp$Outbound = { binding: PersistImportedDeploymentRequestPendingPreparedStackExtendGcpBinding$Outbound; description?: string | null | undefined; grant: PersistImportedDeploymentRequestPendingPreparedStackExtendGcpGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendGcp$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendGcp$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendGcp > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendGcpBinding$outboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendGcpGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackExtendGcpToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendGcp: PersistImportedDeploymentRequestPendingPreparedStackExtendGcp, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendGcp$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackExtendGcp), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendPlatforms$Outbound = { aws?: | Array< PersistImportedDeploymentRequestPendingPreparedStackExtendAw$Outbound > | null | undefined; azure?: | Array< PersistImportedDeploymentRequestPendingPreparedStackExtendAzure$Outbound > | null | undefined; gcp?: | Array< PersistImportedDeploymentRequestPendingPreparedStackExtendGcp$Outbound > | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendPlatforms$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendPlatforms$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendPlatforms > = z.object({ aws: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendAw$outboundSchema )), ).optional(), azure: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendAzure$outboundSchema )), ).optional(), gcp: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendGcp$outboundSchema )), ).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackExtendPlatformsToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendPlatforms: PersistImportedDeploymentRequestPendingPreparedStackExtendPlatforms, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendPlatforms$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackExtendPlatforms, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtend$Outbound = { description: string; id: string; platforms: PersistImportedDeploymentRequestPendingPreparedStackExtendPlatforms$Outbound; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtend$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtend$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtend > = z.object({ description: z.string(), id: z.string(), platforms: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtendPlatforms$outboundSchema ), }); export function persistImportedDeploymentRequestPendingPreparedStackExtendToJSON( persistImportedDeploymentRequestPendingPreparedStackExtend: PersistImportedDeploymentRequestPendingPreparedStackExtend, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtend$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackExtend), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackExtendUnion$Outbound = | PersistImportedDeploymentRequestPendingPreparedStackExtend$Outbound | string; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackExtendUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackExtendUnion$Outbound, PersistImportedDeploymentRequestPendingPreparedStackExtendUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtend$outboundSchema ), z.string(), ]); export function persistImportedDeploymentRequestPendingPreparedStackExtendUnionToJSON( persistImportedDeploymentRequestPendingPreparedStackExtendUnion: PersistImportedDeploymentRequestPendingPreparedStackExtendUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackExtendUnion$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackExtendUnion), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackManagement1$Outbound = { extend: { [k: string]: Array< | PersistImportedDeploymentRequestPendingPreparedStackExtend$Outbound | string >; }; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackManagement1$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackManagement1$Outbound, PersistImportedDeploymentRequestPendingPreparedStackManagement1 > = z.object({ extend: z.record( z.string(), z.array(z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackExtend$outboundSchema ), z.string(), ])), ), }); export function persistImportedDeploymentRequestPendingPreparedStackManagement1ToJSON( persistImportedDeploymentRequestPendingPreparedStackManagement1: PersistImportedDeploymentRequestPendingPreparedStackManagement1, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackManagement1$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackManagement1), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackManagementUnion$Outbound = | PersistImportedDeploymentRequestPendingPreparedStackManagement1$Outbound | PersistImportedDeploymentRequestPendingPreparedStackManagement2$Outbound | string; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackManagementUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackManagementUnion$Outbound, PersistImportedDeploymentRequestPendingPreparedStackManagementUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackManagement1$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackManagement2$outboundSchema ), PersistImportedDeploymentRequestPendingPreparedStackManagementEnum$outboundSchema, ]); export function persistImportedDeploymentRequestPendingPreparedStackManagementUnionToJSON( persistImportedDeploymentRequestPendingPreparedStackManagementUnion: PersistImportedDeploymentRequestPendingPreparedStackManagementUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackManagementUnion$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackManagementUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileAwResource$Outbound = { condition?: { [k: string]: { [k: string]: string } } | null | undefined; resources: Array; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileAwResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileAwResource$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileAwResource > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function persistImportedDeploymentRequestPendingPreparedStackProfileAwResourceToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileAwResource: PersistImportedDeploymentRequestPendingPreparedStackProfileAwResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileAwResource$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackProfileAwResource, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileAwStack$Outbound = { condition?: { [k: string]: { [k: string]: string } } | null | undefined; resources: Array; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileAwStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileAwStack$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileAwStack > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function persistImportedDeploymentRequestPendingPreparedStackProfileAwStackToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileAwStack: PersistImportedDeploymentRequestPendingPreparedStackProfileAwStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileAwStack$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackProfileAwStack, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileAwBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPendingPreparedStackProfileAwResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPendingPreparedStackProfileAwStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileAwBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileAwBinding$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileAwBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileAwResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileAwStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackProfileAwBindingToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileAwBinding: PersistImportedDeploymentRequestPendingPreparedStackProfileAwBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileAwBinding$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackProfileAwBinding, ), ); } /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileEffect$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackProfileEffect > = z.enum(PersistImportedDeploymentRequestPendingPreparedStackProfileEffect); /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileAwGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileAwGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileAwGrant$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileAwGrant > = 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 persistImportedDeploymentRequestPendingPreparedStackProfileAwGrantToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileAwGrant: PersistImportedDeploymentRequestPendingPreparedStackProfileAwGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileAwGrant$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackProfileAwGrant, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileAw$Outbound = { binding: PersistImportedDeploymentRequestPendingPreparedStackProfileAwBinding$Outbound; description?: string | null | undefined; effect?: string | undefined; grant: PersistImportedDeploymentRequestPendingPreparedStackProfileAwGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileAw$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileAw$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileAw > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileAwBinding$outboundSchema ), description: z.nullable(z.string()).optional(), effect: PersistImportedDeploymentRequestPendingPreparedStackProfileEffect$outboundSchema .optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileAwGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackProfileAwToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileAw: PersistImportedDeploymentRequestPendingPreparedStackProfileAw, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileAw$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackProfileAw), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileAzureResource$Outbound = { scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileAzureResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileAzureResource$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileAzureResource > = z.object({ scope: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackProfileAzureResourceToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileAzureResource: PersistImportedDeploymentRequestPendingPreparedStackProfileAzureResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileAzureResource$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackProfileAzureResource, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileAzureStack$Outbound = { scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileAzureStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileAzureStack$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileAzureStack > = z.object({ scope: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackProfileAzureStackToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileAzureStack: PersistImportedDeploymentRequestPendingPreparedStackProfileAzureStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileAzureStack$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackProfileAzureStack, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileAzureBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPendingPreparedStackProfileAzureResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPendingPreparedStackProfileAzureStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileAzureBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileAzureBinding$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileAzureBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileAzureResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileAzureStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackProfileAzureBindingToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileAzureBinding: PersistImportedDeploymentRequestPendingPreparedStackProfileAzureBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileAzureBinding$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackProfileAzureBinding, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileAzureGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileAzureGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileAzureGrant$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileAzureGrant > = 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 persistImportedDeploymentRequestPendingPreparedStackProfileAzureGrantToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileAzureGrant: PersistImportedDeploymentRequestPendingPreparedStackProfileAzureGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileAzureGrant$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackProfileAzureGrant, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileAzure$Outbound = { binding: PersistImportedDeploymentRequestPendingPreparedStackProfileAzureBinding$Outbound; description?: string | null | undefined; grant: PersistImportedDeploymentRequestPendingPreparedStackProfileAzureGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileAzure$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileAzure$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileAzure > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileAzureBinding$outboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileAzureGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackProfileAzureToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileAzure: PersistImportedDeploymentRequestPendingPreparedStackProfileAzure, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileAzure$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackProfileAzure), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileConditionResource$Outbound = { expression: string; title: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileConditionResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileConditionResource$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileConditionResource > = z.object({ expression: z.string(), title: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackProfileConditionResourceToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileConditionResource: PersistImportedDeploymentRequestPendingPreparedStackProfileConditionResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileConditionResource$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackProfileConditionResource, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileResourceConditionUnion$Outbound = | PersistImportedDeploymentRequestPendingPreparedStackProfileConditionResource$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileResourceConditionUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileResourceConditionUnion$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileResourceConditionUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileConditionResource$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPendingPreparedStackProfileResourceConditionUnionToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileResourceConditionUnion: PersistImportedDeploymentRequestPendingPreparedStackProfileResourceConditionUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileResourceConditionUnion$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackProfileResourceConditionUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileGcpResource$Outbound = { condition?: | PersistImportedDeploymentRequestPendingPreparedStackProfileConditionResource$Outbound | any | null | undefined; scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileGcpResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileGcpResource$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileGcpResource > = z.object({ condition: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileConditionResource$outboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackProfileGcpResourceToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileGcpResource: PersistImportedDeploymentRequestPendingPreparedStackProfileGcpResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileGcpResource$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackProfileGcpResource, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileConditionStack$Outbound = { expression: string; title: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileConditionStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileConditionStack$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileConditionStack > = z.object({ expression: z.string(), title: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackProfileConditionStackToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileConditionStack: PersistImportedDeploymentRequestPendingPreparedStackProfileConditionStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileConditionStack$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackProfileConditionStack, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileStackConditionUnion$Outbound = | PersistImportedDeploymentRequestPendingPreparedStackProfileConditionStack$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileStackConditionUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileStackConditionUnion$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileStackConditionUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileConditionStack$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPendingPreparedStackProfileStackConditionUnionToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileStackConditionUnion: PersistImportedDeploymentRequestPendingPreparedStackProfileStackConditionUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileStackConditionUnion$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackProfileStackConditionUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileGcpStack$Outbound = { condition?: | PersistImportedDeploymentRequestPendingPreparedStackProfileConditionStack$Outbound | any | null | undefined; scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileGcpStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileGcpStack$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileGcpStack > = z.object({ condition: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileConditionStack$outboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackProfileGcpStackToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileGcpStack: PersistImportedDeploymentRequestPendingPreparedStackProfileGcpStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileGcpStack$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackProfileGcpStack, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileGcpBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPendingPreparedStackProfileGcpResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPendingPreparedStackProfileGcpStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileGcpBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileGcpBinding$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileGcpBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileGcpResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileGcpStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackProfileGcpBindingToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileGcpBinding: PersistImportedDeploymentRequestPendingPreparedStackProfileGcpBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileGcpBinding$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackProfileGcpBinding, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileGcpGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileGcpGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileGcpGrant$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileGcpGrant > = 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 persistImportedDeploymentRequestPendingPreparedStackProfileGcpGrantToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileGcpGrant: PersistImportedDeploymentRequestPendingPreparedStackProfileGcpGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileGcpGrant$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackProfileGcpGrant, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileGcp$Outbound = { binding: PersistImportedDeploymentRequestPendingPreparedStackProfileGcpBinding$Outbound; description?: string | null | undefined; grant: PersistImportedDeploymentRequestPendingPreparedStackProfileGcpGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileGcp$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileGcp$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileGcp > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileGcpBinding$outboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileGcpGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackProfileGcpToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileGcp: PersistImportedDeploymentRequestPendingPreparedStackProfileGcp, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileGcp$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackProfileGcp), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfilePlatforms$Outbound = { aws?: | Array< PersistImportedDeploymentRequestPendingPreparedStackProfileAw$Outbound > | null | undefined; azure?: | Array< PersistImportedDeploymentRequestPendingPreparedStackProfileAzure$Outbound > | null | undefined; gcp?: | Array< PersistImportedDeploymentRequestPendingPreparedStackProfileGcp$Outbound > | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfilePlatforms$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfilePlatforms$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfilePlatforms > = z.object({ aws: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileAw$outboundSchema )), ).optional(), azure: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileAzure$outboundSchema )), ).optional(), gcp: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfileGcp$outboundSchema )), ).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackProfilePlatformsToJSON( persistImportedDeploymentRequestPendingPreparedStackProfilePlatforms: PersistImportedDeploymentRequestPendingPreparedStackProfilePlatforms, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfilePlatforms$outboundSchema .parse( persistImportedDeploymentRequestPendingPreparedStackProfilePlatforms, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfile$Outbound = { description: string; id: string; platforms: PersistImportedDeploymentRequestPendingPreparedStackProfilePlatforms$Outbound; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfile$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfile$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfile > = z.object({ description: z.string(), id: z.string(), platforms: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfilePlatforms$outboundSchema ), }); export function persistImportedDeploymentRequestPendingPreparedStackProfileToJSON( persistImportedDeploymentRequestPendingPreparedStackProfile: PersistImportedDeploymentRequestPendingPreparedStackProfile, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfile$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackProfile), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackProfileUnion$Outbound = | PersistImportedDeploymentRequestPendingPreparedStackProfile$Outbound | string; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackProfileUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackProfileUnion$Outbound, PersistImportedDeploymentRequestPendingPreparedStackProfileUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfile$outboundSchema ), z.string(), ]); export function persistImportedDeploymentRequestPendingPreparedStackProfileUnionToJSON( persistImportedDeploymentRequestPendingPreparedStackProfileUnion: PersistImportedDeploymentRequestPendingPreparedStackProfileUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackProfileUnion$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackProfileUnion), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackPermissions$Outbound = { management?: | PersistImportedDeploymentRequestPendingPreparedStackManagement1$Outbound | PersistImportedDeploymentRequestPendingPreparedStackManagement2$Outbound | string | undefined; profiles: { [k: string]: { [k: string]: Array< | PersistImportedDeploymentRequestPendingPreparedStackProfile$Outbound | string >; }; }; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackPermissions$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackPermissions$Outbound, PersistImportedDeploymentRequestPendingPreparedStackPermissions > = z.object({ management: z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackManagement1$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackManagement2$outboundSchema ), PersistImportedDeploymentRequestPendingPreparedStackManagementEnum$outboundSchema, ]).optional(), profiles: z.record( z.string(), z.record( z.string(), z.array( z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackProfile$outboundSchema ), z.string(), ]), ), ), ), }); export function persistImportedDeploymentRequestPendingPreparedStackPermissionsToJSON( persistImportedDeploymentRequestPendingPreparedStackPermissions: PersistImportedDeploymentRequestPendingPreparedStackPermissions, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackPermissions$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackPermissions), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackConfig$Outbound = { id: string; type: string; [additionalProperties: string]: unknown; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackConfig$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackConfig$Outbound, PersistImportedDeploymentRequestPendingPreparedStackConfig > = z.object({ id: z.string(), type: z.string(), additionalProperties: z.record(z.string(), z.nullable(z.any())).optional(), }).transform((v) => { return { ...v.additionalProperties, ...remap$(v, { additionalProperties: null, }), }; }); export function persistImportedDeploymentRequestPendingPreparedStackConfigToJSON( persistImportedDeploymentRequestPendingPreparedStackConfig: PersistImportedDeploymentRequestPendingPreparedStackConfig, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackConfig$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackConfig), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackDependency$Outbound = { id: string; type: string; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackDependency$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackDependency$Outbound, PersistImportedDeploymentRequestPendingPreparedStackDependency > = z.object({ id: z.string(), type: z.string(), }); export function persistImportedDeploymentRequestPendingPreparedStackDependencyToJSON( persistImportedDeploymentRequestPendingPreparedStackDependency: PersistImportedDeploymentRequestPendingPreparedStackDependency, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackDependency$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackDependency), ); } /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackLifecycle$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackLifecycle > = z.enum(PersistImportedDeploymentRequestPendingPreparedStackLifecycle); /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackResources$Outbound = { config: PersistImportedDeploymentRequestPendingPreparedStackConfig$Outbound; dependencies: Array< PersistImportedDeploymentRequestPendingPreparedStackDependency$Outbound >; enabledWhen?: string | null | undefined; lifecycle: string; remoteAccess?: boolean | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackResources$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackResources$Outbound, PersistImportedDeploymentRequestPendingPreparedStackResources > = z.object({ config: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackConfig$outboundSchema ), dependencies: z.array( z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackDependency$outboundSchema ), ), enabledWhen: z.nullable(z.string()).optional(), lifecycle: PersistImportedDeploymentRequestPendingPreparedStackLifecycle$outboundSchema, remoteAccess: z.boolean().optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackResourcesToJSON( persistImportedDeploymentRequestPendingPreparedStackResources: PersistImportedDeploymentRequestPendingPreparedStackResources, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackResources$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackResources), ); } /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackSupportedPlatform$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestPendingPreparedStackSupportedPlatform > = z.enum( PersistImportedDeploymentRequestPendingPreparedStackSupportedPlatform, ); /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStack$Outbound = { id: string; inputs?: | Array | undefined; permissions?: | PersistImportedDeploymentRequestPendingPreparedStackPermissions$Outbound | undefined; resources: { [k: string]: PersistImportedDeploymentRequestPendingPreparedStackResources$Outbound; }; supportedPlatforms?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStack$Outbound, PersistImportedDeploymentRequestPendingPreparedStack > = z.object({ id: z.string(), inputs: z.array( z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackInput$outboundSchema ), ).optional(), permissions: z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackPermissions$outboundSchema ).optional(), resources: z.record( z.string(), z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStackResources$outboundSchema ), ), supportedPlatforms: z.nullable( z.array( PersistImportedDeploymentRequestPendingPreparedStackSupportedPlatform$outboundSchema, ), ).optional(), }); export function persistImportedDeploymentRequestPendingPreparedStackToJSON( persistImportedDeploymentRequestPendingPreparedStack: PersistImportedDeploymentRequestPendingPreparedStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStack$outboundSchema.parse( persistImportedDeploymentRequestPendingPreparedStack, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPendingPreparedStackUnion$Outbound = | PersistImportedDeploymentRequestPendingPreparedStack$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPendingPreparedStackUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPendingPreparedStackUnion$Outbound, PersistImportedDeploymentRequestPendingPreparedStackUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStack$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPendingPreparedStackUnionToJSON( persistImportedDeploymentRequestPendingPreparedStackUnion: PersistImportedDeploymentRequestPendingPreparedStackUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPendingPreparedStackUnion$outboundSchema .parse(persistImportedDeploymentRequestPendingPreparedStackUnion), ); } /** @internal */ export const PersistImportedDeploymentRequestPreparedStackTypeStringList$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestPreparedStackTypeStringList > = z.enum(PersistImportedDeploymentRequestPreparedStackTypeStringList); /** @internal */ export type PersistImportedDeploymentRequestPreparedStackDefaultStringList$Outbound = { type: string; value: Array; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackDefaultStringList$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackDefaultStringList$Outbound, PersistImportedDeploymentRequestPreparedStackDefaultStringList > = z.object({ type: PersistImportedDeploymentRequestPreparedStackTypeStringList$outboundSchema, value: z.array(z.string()), }); export function persistImportedDeploymentRequestPreparedStackDefaultStringListToJSON( persistImportedDeploymentRequestPreparedStackDefaultStringList: PersistImportedDeploymentRequestPreparedStackDefaultStringList, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackDefaultStringList$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackDefaultStringList), ); } /** @internal */ export const PersistImportedDeploymentRequestPreparedStackTypeBoolean$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestPreparedStackTypeBoolean); /** @internal */ export type PersistImportedDeploymentRequestPreparedStackDefaultBoolean$Outbound = { type: string; value: boolean; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackDefaultBoolean$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackDefaultBoolean$Outbound, PersistImportedDeploymentRequestPreparedStackDefaultBoolean > = z.object({ type: PersistImportedDeploymentRequestPreparedStackTypeBoolean$outboundSchema, value: z.boolean(), }); export function persistImportedDeploymentRequestPreparedStackDefaultBooleanToJSON( persistImportedDeploymentRequestPreparedStackDefaultBoolean: PersistImportedDeploymentRequestPreparedStackDefaultBoolean, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackDefaultBoolean$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackDefaultBoolean), ); } /** @internal */ export const PersistImportedDeploymentRequestPreparedStackTypeNumber$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestPreparedStackTypeNumber); /** @internal */ export type PersistImportedDeploymentRequestPreparedStackDefaultNumber$Outbound = { type: string; value: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackDefaultNumber$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackDefaultNumber$Outbound, PersistImportedDeploymentRequestPreparedStackDefaultNumber > = z.object({ type: PersistImportedDeploymentRequestPreparedStackTypeNumber$outboundSchema, value: z.string(), }); export function persistImportedDeploymentRequestPreparedStackDefaultNumberToJSON( persistImportedDeploymentRequestPreparedStackDefaultNumber: PersistImportedDeploymentRequestPreparedStackDefaultNumber, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackDefaultNumber$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackDefaultNumber), ); } /** @internal */ export const PersistImportedDeploymentRequestPreparedStackTypeString$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestPreparedStackTypeString); /** @internal */ export type PersistImportedDeploymentRequestPreparedStackDefaultString$Outbound = { type: string; value: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackDefaultString$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackDefaultString$Outbound, PersistImportedDeploymentRequestPreparedStackDefaultString > = z.object({ type: PersistImportedDeploymentRequestPreparedStackTypeString$outboundSchema, value: z.string(), }); export function persistImportedDeploymentRequestPreparedStackDefaultStringToJSON( persistImportedDeploymentRequestPreparedStackDefaultString: PersistImportedDeploymentRequestPreparedStackDefaultString, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackDefaultString$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackDefaultString), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackDefaultUnion$Outbound = | PersistImportedDeploymentRequestPreparedStackDefaultString$Outbound | PersistImportedDeploymentRequestPreparedStackDefaultNumber$Outbound | PersistImportedDeploymentRequestPreparedStackDefaultBoolean$Outbound | PersistImportedDeploymentRequestPreparedStackDefaultStringList$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackDefaultUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackDefaultUnion$Outbound, PersistImportedDeploymentRequestPreparedStackDefaultUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackDefaultString$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPreparedStackDefaultNumber$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPreparedStackDefaultBoolean$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPreparedStackDefaultStringList$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPreparedStackDefaultUnionToJSON( persistImportedDeploymentRequestPreparedStackDefaultUnion: PersistImportedDeploymentRequestPreparedStackDefaultUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackDefaultUnion$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackDefaultUnion), ); } /** @internal */ export const PersistImportedDeploymentRequestPreparedStackTypeEnvEnum$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestPreparedStackTypeEnvEnum); /** @internal */ export type PersistImportedDeploymentRequestPreparedStackTypeUnion$Outbound = | string | any; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackTypeUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackTypeUnion$Outbound, PersistImportedDeploymentRequestPreparedStackTypeUnion > = z.union([ PersistImportedDeploymentRequestPreparedStackTypeEnvEnum$outboundSchema, z.any(), ]); export function persistImportedDeploymentRequestPreparedStackTypeUnionToJSON( persistImportedDeploymentRequestPreparedStackTypeUnion: PersistImportedDeploymentRequestPreparedStackTypeUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackTypeUnion$outboundSchema.parse( persistImportedDeploymentRequestPreparedStackTypeUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackEnv$Outbound = { name: string; targetResources?: Array | null | undefined; type?: string | any | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackEnv$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackEnv$Outbound, PersistImportedDeploymentRequestPreparedStackEnv > = z.object({ name: z.string(), targetResources: z.nullable(z.array(z.string())).optional(), type: z.nullable( z.union([ PersistImportedDeploymentRequestPreparedStackTypeEnvEnum$outboundSchema, z.any(), ]), ).optional(), }); export function persistImportedDeploymentRequestPreparedStackEnvToJSON( persistImportedDeploymentRequestPreparedStackEnv: PersistImportedDeploymentRequestPreparedStackEnv, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackEnv$outboundSchema.parse( persistImportedDeploymentRequestPreparedStackEnv, ), ); } /** @internal */ export const PersistImportedDeploymentRequestPreparedStackKind$outboundSchema: z.ZodEnum = z.enum( PersistImportedDeploymentRequestPreparedStackKind, ); /** @internal */ export const PersistImportedDeploymentRequestPreparedStackPlatform$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestPreparedStackPlatform); /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProvidedBy$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestPreparedStackProvidedBy); /** @internal */ export type PersistImportedDeploymentRequestPreparedStackValidation$Outbound = { format?: string | null | undefined; max?: string | null | undefined; maxItems?: number | null | undefined; maxLength?: number | null | undefined; min?: string | null | undefined; minItems?: number | null | undefined; minLength?: number | null | undefined; pattern?: string | null | undefined; values?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackValidation$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackValidation$Outbound, PersistImportedDeploymentRequestPreparedStackValidation > = 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 persistImportedDeploymentRequestPreparedStackValidationToJSON( persistImportedDeploymentRequestPreparedStackValidation: PersistImportedDeploymentRequestPreparedStackValidation, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackValidation$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackValidation), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackValidationUnion$Outbound = | PersistImportedDeploymentRequestPreparedStackValidation$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackValidationUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackValidationUnion$Outbound, PersistImportedDeploymentRequestPreparedStackValidationUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackValidation$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPreparedStackValidationUnionToJSON( persistImportedDeploymentRequestPreparedStackValidationUnion: PersistImportedDeploymentRequestPreparedStackValidationUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackValidationUnion$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackValidationUnion), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackInput$Outbound = { default?: | PersistImportedDeploymentRequestPreparedStackDefaultString$Outbound | PersistImportedDeploymentRequestPreparedStackDefaultNumber$Outbound | PersistImportedDeploymentRequestPreparedStackDefaultBoolean$Outbound | PersistImportedDeploymentRequestPreparedStackDefaultStringList$Outbound | any | null | undefined; description: string; env?: | Array | undefined; id: string; kind: string; label: string; placeholder?: string | null | undefined; platforms?: Array | null | undefined; providedBy: Array; required: boolean; validation?: | PersistImportedDeploymentRequestPreparedStackValidation$Outbound | any | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackInput$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackInput$Outbound, PersistImportedDeploymentRequestPreparedStackInput > = z.object({ default: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackDefaultString$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPreparedStackDefaultNumber$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPreparedStackDefaultBoolean$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPreparedStackDefaultStringList$outboundSchema ), z.any(), ]), ).optional(), description: z.string(), env: z.array( z.lazy(() => PersistImportedDeploymentRequestPreparedStackEnv$outboundSchema ), ).optional(), id: z.string(), kind: PersistImportedDeploymentRequestPreparedStackKind$outboundSchema, label: z.string(), placeholder: z.nullable(z.string()).optional(), platforms: z.nullable( z.array( PersistImportedDeploymentRequestPreparedStackPlatform$outboundSchema, ), ).optional(), providedBy: z.array( PersistImportedDeploymentRequestPreparedStackProvidedBy$outboundSchema, ), required: z.boolean(), validation: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackValidation$outboundSchema ), z.any(), ]), ).optional(), }); export function persistImportedDeploymentRequestPreparedStackInputToJSON( persistImportedDeploymentRequestPreparedStackInput: PersistImportedDeploymentRequestPreparedStackInput, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackInput$outboundSchema.parse( persistImportedDeploymentRequestPreparedStackInput, ), ); } /** @internal */ export const PersistImportedDeploymentRequestPreparedStackManagementEnum$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestPreparedStackManagementEnum > = z.enum(PersistImportedDeploymentRequestPreparedStackManagementEnum); /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideAwResource$Outbound = { condition?: { [k: string]: { [k: string]: string } } | null | undefined; resources: Array; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideAwResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideAwResource$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideAwResource > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function persistImportedDeploymentRequestPreparedStackOverrideAwResourceToJSON( persistImportedDeploymentRequestPreparedStackOverrideAwResource: PersistImportedDeploymentRequestPreparedStackOverrideAwResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideAwResource$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackOverrideAwResource), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideAwStack$Outbound = { condition?: { [k: string]: { [k: string]: string } } | null | undefined; resources: Array; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideAwStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideAwStack$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideAwStack > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function persistImportedDeploymentRequestPreparedStackOverrideAwStackToJSON( persistImportedDeploymentRequestPreparedStackOverrideAwStack: PersistImportedDeploymentRequestPreparedStackOverrideAwStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideAwStack$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackOverrideAwStack), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideAwBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPreparedStackOverrideAwResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPreparedStackOverrideAwStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideAwBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideAwBinding$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideAwBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideAwResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideAwStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPreparedStackOverrideAwBindingToJSON( persistImportedDeploymentRequestPreparedStackOverrideAwBinding: PersistImportedDeploymentRequestPreparedStackOverrideAwBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideAwBinding$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackOverrideAwBinding), ); } /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideEffect$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestPreparedStackOverrideEffect > = z.enum(PersistImportedDeploymentRequestPreparedStackOverrideEffect); /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideAwGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideAwGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideAwGrant$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideAwGrant > = 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 persistImportedDeploymentRequestPreparedStackOverrideAwGrantToJSON( persistImportedDeploymentRequestPreparedStackOverrideAwGrant: PersistImportedDeploymentRequestPreparedStackOverrideAwGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideAwGrant$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackOverrideAwGrant), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideAw$Outbound = { binding: PersistImportedDeploymentRequestPreparedStackOverrideAwBinding$Outbound; description?: string | null | undefined; effect?: string | undefined; grant: PersistImportedDeploymentRequestPreparedStackOverrideAwGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideAw$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideAw$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideAw > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideAwBinding$outboundSchema ), description: z.nullable(z.string()).optional(), effect: PersistImportedDeploymentRequestPreparedStackOverrideEffect$outboundSchema .optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideAwGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPreparedStackOverrideAwToJSON( persistImportedDeploymentRequestPreparedStackOverrideAw: PersistImportedDeploymentRequestPreparedStackOverrideAw, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideAw$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackOverrideAw), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideAzureResource$Outbound = { scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideAzureResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideAzureResource$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideAzureResource > = z.object({ scope: z.string(), }); export function persistImportedDeploymentRequestPreparedStackOverrideAzureResourceToJSON( persistImportedDeploymentRequestPreparedStackOverrideAzureResource: PersistImportedDeploymentRequestPreparedStackOverrideAzureResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideAzureResource$outboundSchema .parse( persistImportedDeploymentRequestPreparedStackOverrideAzureResource, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideAzureStack$Outbound = { scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideAzureStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideAzureStack$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideAzureStack > = z.object({ scope: z.string(), }); export function persistImportedDeploymentRequestPreparedStackOverrideAzureStackToJSON( persistImportedDeploymentRequestPreparedStackOverrideAzureStack: PersistImportedDeploymentRequestPreparedStackOverrideAzureStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideAzureStack$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackOverrideAzureStack), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideAzureBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPreparedStackOverrideAzureResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPreparedStackOverrideAzureStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideAzureBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideAzureBinding$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideAzureBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideAzureResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideAzureStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPreparedStackOverrideAzureBindingToJSON( persistImportedDeploymentRequestPreparedStackOverrideAzureBinding: PersistImportedDeploymentRequestPreparedStackOverrideAzureBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideAzureBinding$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackOverrideAzureBinding), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideAzureGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideAzureGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideAzureGrant$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideAzureGrant > = 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 persistImportedDeploymentRequestPreparedStackOverrideAzureGrantToJSON( persistImportedDeploymentRequestPreparedStackOverrideAzureGrant: PersistImportedDeploymentRequestPreparedStackOverrideAzureGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideAzureGrant$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackOverrideAzureGrant), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideAzure$Outbound = { binding: PersistImportedDeploymentRequestPreparedStackOverrideAzureBinding$Outbound; description?: string | null | undefined; grant: PersistImportedDeploymentRequestPreparedStackOverrideAzureGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideAzure$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideAzure$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideAzure > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideAzureBinding$outboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideAzureGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPreparedStackOverrideAzureToJSON( persistImportedDeploymentRequestPreparedStackOverrideAzure: PersistImportedDeploymentRequestPreparedStackOverrideAzure, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideAzure$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackOverrideAzure), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideConditionResource$Outbound = { expression: string; title: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideConditionResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideConditionResource$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideConditionResource > = z.object({ expression: z.string(), title: z.string(), }); export function persistImportedDeploymentRequestPreparedStackOverrideConditionResourceToJSON( persistImportedDeploymentRequestPreparedStackOverrideConditionResource: PersistImportedDeploymentRequestPreparedStackOverrideConditionResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideConditionResource$outboundSchema .parse( persistImportedDeploymentRequestPreparedStackOverrideConditionResource, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideResourceConditionUnion$Outbound = | PersistImportedDeploymentRequestPreparedStackOverrideConditionResource$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideResourceConditionUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideResourceConditionUnion$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideResourceConditionUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideConditionResource$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPreparedStackOverrideResourceConditionUnionToJSON( persistImportedDeploymentRequestPreparedStackOverrideResourceConditionUnion: PersistImportedDeploymentRequestPreparedStackOverrideResourceConditionUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideResourceConditionUnion$outboundSchema .parse( persistImportedDeploymentRequestPreparedStackOverrideResourceConditionUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideGcpResource$Outbound = { condition?: | PersistImportedDeploymentRequestPreparedStackOverrideConditionResource$Outbound | any | null | undefined; scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideGcpResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideGcpResource$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideGcpResource > = z.object({ condition: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideConditionResource$outboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function persistImportedDeploymentRequestPreparedStackOverrideGcpResourceToJSON( persistImportedDeploymentRequestPreparedStackOverrideGcpResource: PersistImportedDeploymentRequestPreparedStackOverrideGcpResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideGcpResource$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackOverrideGcpResource), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideConditionStack$Outbound = { expression: string; title: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideConditionStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideConditionStack$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideConditionStack > = z.object({ expression: z.string(), title: z.string(), }); export function persistImportedDeploymentRequestPreparedStackOverrideConditionStackToJSON( persistImportedDeploymentRequestPreparedStackOverrideConditionStack: PersistImportedDeploymentRequestPreparedStackOverrideConditionStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideConditionStack$outboundSchema .parse( persistImportedDeploymentRequestPreparedStackOverrideConditionStack, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideStackConditionUnion$Outbound = | PersistImportedDeploymentRequestPreparedStackOverrideConditionStack$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideStackConditionUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideStackConditionUnion$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideStackConditionUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideConditionStack$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPreparedStackOverrideStackConditionUnionToJSON( persistImportedDeploymentRequestPreparedStackOverrideStackConditionUnion: PersistImportedDeploymentRequestPreparedStackOverrideStackConditionUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideStackConditionUnion$outboundSchema .parse( persistImportedDeploymentRequestPreparedStackOverrideStackConditionUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideGcpStack$Outbound = { condition?: | PersistImportedDeploymentRequestPreparedStackOverrideConditionStack$Outbound | any | null | undefined; scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideGcpStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideGcpStack$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideGcpStack > = z.object({ condition: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideConditionStack$outboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function persistImportedDeploymentRequestPreparedStackOverrideGcpStackToJSON( persistImportedDeploymentRequestPreparedStackOverrideGcpStack: PersistImportedDeploymentRequestPreparedStackOverrideGcpStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideGcpStack$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackOverrideGcpStack), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideGcpBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPreparedStackOverrideGcpResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPreparedStackOverrideGcpStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideGcpBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideGcpBinding$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideGcpBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideGcpResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideGcpStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPreparedStackOverrideGcpBindingToJSON( persistImportedDeploymentRequestPreparedStackOverrideGcpBinding: PersistImportedDeploymentRequestPreparedStackOverrideGcpBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideGcpBinding$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackOverrideGcpBinding), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideGcpGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideGcpGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideGcpGrant$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideGcpGrant > = 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 persistImportedDeploymentRequestPreparedStackOverrideGcpGrantToJSON( persistImportedDeploymentRequestPreparedStackOverrideGcpGrant: PersistImportedDeploymentRequestPreparedStackOverrideGcpGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideGcpGrant$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackOverrideGcpGrant), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideGcp$Outbound = { binding: PersistImportedDeploymentRequestPreparedStackOverrideGcpBinding$Outbound; description?: string | null | undefined; grant: PersistImportedDeploymentRequestPreparedStackOverrideGcpGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideGcp$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideGcp$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideGcp > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideGcpBinding$outboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideGcpGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPreparedStackOverrideGcpToJSON( persistImportedDeploymentRequestPreparedStackOverrideGcp: PersistImportedDeploymentRequestPreparedStackOverrideGcp, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideGcp$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackOverrideGcp), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverridePlatforms$Outbound = { aws?: | Array | null | undefined; azure?: | Array< PersistImportedDeploymentRequestPreparedStackOverrideAzure$Outbound > | null | undefined; gcp?: | Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverridePlatforms$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverridePlatforms$Outbound, PersistImportedDeploymentRequestPreparedStackOverridePlatforms > = z.object({ aws: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideAw$outboundSchema )), ).optional(), azure: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideAzure$outboundSchema )), ).optional(), gcp: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverrideGcp$outboundSchema )), ).optional(), }); export function persistImportedDeploymentRequestPreparedStackOverridePlatformsToJSON( persistImportedDeploymentRequestPreparedStackOverridePlatforms: PersistImportedDeploymentRequestPreparedStackOverridePlatforms, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverridePlatforms$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackOverridePlatforms), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverride$Outbound = { description: string; id: string; platforms: PersistImportedDeploymentRequestPreparedStackOverridePlatforms$Outbound; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverride$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverride$Outbound, PersistImportedDeploymentRequestPreparedStackOverride > = z.object({ description: z.string(), id: z.string(), platforms: z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverridePlatforms$outboundSchema ), }); export function persistImportedDeploymentRequestPreparedStackOverrideToJSON( persistImportedDeploymentRequestPreparedStackOverride: PersistImportedDeploymentRequestPreparedStackOverride, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverride$outboundSchema.parse( persistImportedDeploymentRequestPreparedStackOverride, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackOverrideUnion$Outbound = | PersistImportedDeploymentRequestPreparedStackOverride$Outbound | string; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackOverrideUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackOverrideUnion$Outbound, PersistImportedDeploymentRequestPreparedStackOverrideUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverride$outboundSchema ), z.string(), ]); export function persistImportedDeploymentRequestPreparedStackOverrideUnionToJSON( persistImportedDeploymentRequestPreparedStackOverrideUnion: PersistImportedDeploymentRequestPreparedStackOverrideUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackOverrideUnion$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackOverrideUnion), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackManagement2$Outbound = { override: { [k: string]: Array< PersistImportedDeploymentRequestPreparedStackOverride$Outbound | string >; }; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackManagement2$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackManagement2$Outbound, PersistImportedDeploymentRequestPreparedStackManagement2 > = z.object({ override: z.record( z.string(), z.array(z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackOverride$outboundSchema ), z.string(), ])), ), }); export function persistImportedDeploymentRequestPreparedStackManagement2ToJSON( persistImportedDeploymentRequestPreparedStackManagement2: PersistImportedDeploymentRequestPreparedStackManagement2, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackManagement2$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackManagement2), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendAwResource$Outbound = { condition?: { [k: string]: { [k: string]: string } } | null | undefined; resources: Array; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendAwResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendAwResource$Outbound, PersistImportedDeploymentRequestPreparedStackExtendAwResource > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function persistImportedDeploymentRequestPreparedStackExtendAwResourceToJSON( persistImportedDeploymentRequestPreparedStackExtendAwResource: PersistImportedDeploymentRequestPreparedStackExtendAwResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendAwResource$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackExtendAwResource), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendAwStack$Outbound = { condition?: { [k: string]: { [k: string]: string } } | null | undefined; resources: Array; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendAwStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendAwStack$Outbound, PersistImportedDeploymentRequestPreparedStackExtendAwStack > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function persistImportedDeploymentRequestPreparedStackExtendAwStackToJSON( persistImportedDeploymentRequestPreparedStackExtendAwStack: PersistImportedDeploymentRequestPreparedStackExtendAwStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendAwStack$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackExtendAwStack), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendAwBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPreparedStackExtendAwResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPreparedStackExtendAwStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendAwBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendAwBinding$Outbound, PersistImportedDeploymentRequestPreparedStackExtendAwBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendAwResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendAwStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPreparedStackExtendAwBindingToJSON( persistImportedDeploymentRequestPreparedStackExtendAwBinding: PersistImportedDeploymentRequestPreparedStackExtendAwBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendAwBinding$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackExtendAwBinding), ); } /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendEffect$outboundSchema: z.ZodEnum = z.enum(PersistImportedDeploymentRequestPreparedStackExtendEffect); /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendAwGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendAwGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendAwGrant$Outbound, PersistImportedDeploymentRequestPreparedStackExtendAwGrant > = 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 persistImportedDeploymentRequestPreparedStackExtendAwGrantToJSON( persistImportedDeploymentRequestPreparedStackExtendAwGrant: PersistImportedDeploymentRequestPreparedStackExtendAwGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendAwGrant$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackExtendAwGrant), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendAw$Outbound = { binding: PersistImportedDeploymentRequestPreparedStackExtendAwBinding$Outbound; description?: string | null | undefined; effect?: string | undefined; grant: PersistImportedDeploymentRequestPreparedStackExtendAwGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendAw$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendAw$Outbound, PersistImportedDeploymentRequestPreparedStackExtendAw > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendAwBinding$outboundSchema ), description: z.nullable(z.string()).optional(), effect: PersistImportedDeploymentRequestPreparedStackExtendEffect$outboundSchema .optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendAwGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPreparedStackExtendAwToJSON( persistImportedDeploymentRequestPreparedStackExtendAw: PersistImportedDeploymentRequestPreparedStackExtendAw, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendAw$outboundSchema.parse( persistImportedDeploymentRequestPreparedStackExtendAw, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendAzureResource$Outbound = { scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendAzureResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendAzureResource$Outbound, PersistImportedDeploymentRequestPreparedStackExtendAzureResource > = z.object({ scope: z.string(), }); export function persistImportedDeploymentRequestPreparedStackExtendAzureResourceToJSON( persistImportedDeploymentRequestPreparedStackExtendAzureResource: PersistImportedDeploymentRequestPreparedStackExtendAzureResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendAzureResource$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackExtendAzureResource), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendAzureStack$Outbound = { scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendAzureStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendAzureStack$Outbound, PersistImportedDeploymentRequestPreparedStackExtendAzureStack > = z.object({ scope: z.string(), }); export function persistImportedDeploymentRequestPreparedStackExtendAzureStackToJSON( persistImportedDeploymentRequestPreparedStackExtendAzureStack: PersistImportedDeploymentRequestPreparedStackExtendAzureStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendAzureStack$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackExtendAzureStack), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendAzureBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPreparedStackExtendAzureResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPreparedStackExtendAzureStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendAzureBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendAzureBinding$Outbound, PersistImportedDeploymentRequestPreparedStackExtendAzureBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendAzureResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendAzureStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPreparedStackExtendAzureBindingToJSON( persistImportedDeploymentRequestPreparedStackExtendAzureBinding: PersistImportedDeploymentRequestPreparedStackExtendAzureBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendAzureBinding$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackExtendAzureBinding), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendAzureGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendAzureGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendAzureGrant$Outbound, PersistImportedDeploymentRequestPreparedStackExtendAzureGrant > = 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 persistImportedDeploymentRequestPreparedStackExtendAzureGrantToJSON( persistImportedDeploymentRequestPreparedStackExtendAzureGrant: PersistImportedDeploymentRequestPreparedStackExtendAzureGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendAzureGrant$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackExtendAzureGrant), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendAzure$Outbound = { binding: PersistImportedDeploymentRequestPreparedStackExtendAzureBinding$Outbound; description?: string | null | undefined; grant: PersistImportedDeploymentRequestPreparedStackExtendAzureGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendAzure$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendAzure$Outbound, PersistImportedDeploymentRequestPreparedStackExtendAzure > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendAzureBinding$outboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendAzureGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPreparedStackExtendAzureToJSON( persistImportedDeploymentRequestPreparedStackExtendAzure: PersistImportedDeploymentRequestPreparedStackExtendAzure, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendAzure$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackExtendAzure), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendConditionResource$Outbound = { expression: string; title: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendConditionResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendConditionResource$Outbound, PersistImportedDeploymentRequestPreparedStackExtendConditionResource > = z.object({ expression: z.string(), title: z.string(), }); export function persistImportedDeploymentRequestPreparedStackExtendConditionResourceToJSON( persistImportedDeploymentRequestPreparedStackExtendConditionResource: PersistImportedDeploymentRequestPreparedStackExtendConditionResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendConditionResource$outboundSchema .parse( persistImportedDeploymentRequestPreparedStackExtendConditionResource, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendResourceConditionUnion$Outbound = | PersistImportedDeploymentRequestPreparedStackExtendConditionResource$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendResourceConditionUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendResourceConditionUnion$Outbound, PersistImportedDeploymentRequestPreparedStackExtendResourceConditionUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendConditionResource$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPreparedStackExtendResourceConditionUnionToJSON( persistImportedDeploymentRequestPreparedStackExtendResourceConditionUnion: PersistImportedDeploymentRequestPreparedStackExtendResourceConditionUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendResourceConditionUnion$outboundSchema .parse( persistImportedDeploymentRequestPreparedStackExtendResourceConditionUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendGcpResource$Outbound = { condition?: | PersistImportedDeploymentRequestPreparedStackExtendConditionResource$Outbound | any | null | undefined; scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendGcpResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendGcpResource$Outbound, PersistImportedDeploymentRequestPreparedStackExtendGcpResource > = z.object({ condition: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendConditionResource$outboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function persistImportedDeploymentRequestPreparedStackExtendGcpResourceToJSON( persistImportedDeploymentRequestPreparedStackExtendGcpResource: PersistImportedDeploymentRequestPreparedStackExtendGcpResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendGcpResource$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackExtendGcpResource), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendConditionStack$Outbound = { expression: string; title: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendConditionStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendConditionStack$Outbound, PersistImportedDeploymentRequestPreparedStackExtendConditionStack > = z.object({ expression: z.string(), title: z.string(), }); export function persistImportedDeploymentRequestPreparedStackExtendConditionStackToJSON( persistImportedDeploymentRequestPreparedStackExtendConditionStack: PersistImportedDeploymentRequestPreparedStackExtendConditionStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendConditionStack$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackExtendConditionStack), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendStackConditionUnion$Outbound = | PersistImportedDeploymentRequestPreparedStackExtendConditionStack$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendStackConditionUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendStackConditionUnion$Outbound, PersistImportedDeploymentRequestPreparedStackExtendStackConditionUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendConditionStack$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPreparedStackExtendStackConditionUnionToJSON( persistImportedDeploymentRequestPreparedStackExtendStackConditionUnion: PersistImportedDeploymentRequestPreparedStackExtendStackConditionUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendStackConditionUnion$outboundSchema .parse( persistImportedDeploymentRequestPreparedStackExtendStackConditionUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendGcpStack$Outbound = { condition?: | PersistImportedDeploymentRequestPreparedStackExtendConditionStack$Outbound | any | null | undefined; scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendGcpStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendGcpStack$Outbound, PersistImportedDeploymentRequestPreparedStackExtendGcpStack > = z.object({ condition: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendConditionStack$outboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function persistImportedDeploymentRequestPreparedStackExtendGcpStackToJSON( persistImportedDeploymentRequestPreparedStackExtendGcpStack: PersistImportedDeploymentRequestPreparedStackExtendGcpStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendGcpStack$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackExtendGcpStack), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendGcpBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPreparedStackExtendGcpResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPreparedStackExtendGcpStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendGcpBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendGcpBinding$Outbound, PersistImportedDeploymentRequestPreparedStackExtendGcpBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendGcpResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendGcpStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPreparedStackExtendGcpBindingToJSON( persistImportedDeploymentRequestPreparedStackExtendGcpBinding: PersistImportedDeploymentRequestPreparedStackExtendGcpBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendGcpBinding$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackExtendGcpBinding), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendGcpGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendGcpGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendGcpGrant$Outbound, PersistImportedDeploymentRequestPreparedStackExtendGcpGrant > = 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 persistImportedDeploymentRequestPreparedStackExtendGcpGrantToJSON( persistImportedDeploymentRequestPreparedStackExtendGcpGrant: PersistImportedDeploymentRequestPreparedStackExtendGcpGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendGcpGrant$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackExtendGcpGrant), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendGcp$Outbound = { binding: PersistImportedDeploymentRequestPreparedStackExtendGcpBinding$Outbound; description?: string | null | undefined; grant: PersistImportedDeploymentRequestPreparedStackExtendGcpGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendGcp$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendGcp$Outbound, PersistImportedDeploymentRequestPreparedStackExtendGcp > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendGcpBinding$outboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendGcpGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPreparedStackExtendGcpToJSON( persistImportedDeploymentRequestPreparedStackExtendGcp: PersistImportedDeploymentRequestPreparedStackExtendGcp, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendGcp$outboundSchema.parse( persistImportedDeploymentRequestPreparedStackExtendGcp, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendPlatforms$Outbound = { aws?: | Array | null | undefined; azure?: | Array | null | undefined; gcp?: | Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendPlatforms$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendPlatforms$Outbound, PersistImportedDeploymentRequestPreparedStackExtendPlatforms > = z.object({ aws: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendAw$outboundSchema )), ).optional(), azure: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendAzure$outboundSchema )), ).optional(), gcp: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendGcp$outboundSchema )), ).optional(), }); export function persistImportedDeploymentRequestPreparedStackExtendPlatformsToJSON( persistImportedDeploymentRequestPreparedStackExtendPlatforms: PersistImportedDeploymentRequestPreparedStackExtendPlatforms, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendPlatforms$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackExtendPlatforms), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtend$Outbound = { description: string; id: string; platforms: PersistImportedDeploymentRequestPreparedStackExtendPlatforms$Outbound; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtend$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtend$Outbound, PersistImportedDeploymentRequestPreparedStackExtend > = z.object({ description: z.string(), id: z.string(), platforms: z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtendPlatforms$outboundSchema ), }); export function persistImportedDeploymentRequestPreparedStackExtendToJSON( persistImportedDeploymentRequestPreparedStackExtend: PersistImportedDeploymentRequestPreparedStackExtend, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtend$outboundSchema.parse( persistImportedDeploymentRequestPreparedStackExtend, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackExtendUnion$Outbound = | PersistImportedDeploymentRequestPreparedStackExtend$Outbound | string; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackExtendUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackExtendUnion$Outbound, PersistImportedDeploymentRequestPreparedStackExtendUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtend$outboundSchema ), z.string(), ]); export function persistImportedDeploymentRequestPreparedStackExtendUnionToJSON( persistImportedDeploymentRequestPreparedStackExtendUnion: PersistImportedDeploymentRequestPreparedStackExtendUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackExtendUnion$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackExtendUnion), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackManagement1$Outbound = { extend: { [k: string]: Array< PersistImportedDeploymentRequestPreparedStackExtend$Outbound | string >; }; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackManagement1$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackManagement1$Outbound, PersistImportedDeploymentRequestPreparedStackManagement1 > = z.object({ extend: z.record( z.string(), z.array(z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackExtend$outboundSchema ), z.string(), ])), ), }); export function persistImportedDeploymentRequestPreparedStackManagement1ToJSON( persistImportedDeploymentRequestPreparedStackManagement1: PersistImportedDeploymentRequestPreparedStackManagement1, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackManagement1$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackManagement1), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackManagementUnion$Outbound = | PersistImportedDeploymentRequestPreparedStackManagement1$Outbound | PersistImportedDeploymentRequestPreparedStackManagement2$Outbound | string; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackManagementUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackManagementUnion$Outbound, PersistImportedDeploymentRequestPreparedStackManagementUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackManagement1$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPreparedStackManagement2$outboundSchema ), PersistImportedDeploymentRequestPreparedStackManagementEnum$outboundSchema, ]); export function persistImportedDeploymentRequestPreparedStackManagementUnionToJSON( persistImportedDeploymentRequestPreparedStackManagementUnion: PersistImportedDeploymentRequestPreparedStackManagementUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackManagementUnion$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackManagementUnion), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileAwResource$Outbound = { condition?: { [k: string]: { [k: string]: string } } | null | undefined; resources: Array; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileAwResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileAwResource$Outbound, PersistImportedDeploymentRequestPreparedStackProfileAwResource > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function persistImportedDeploymentRequestPreparedStackProfileAwResourceToJSON( persistImportedDeploymentRequestPreparedStackProfileAwResource: PersistImportedDeploymentRequestPreparedStackProfileAwResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileAwResource$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackProfileAwResource), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileAwStack$Outbound = { condition?: { [k: string]: { [k: string]: string } } | null | undefined; resources: Array; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileAwStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileAwStack$Outbound, PersistImportedDeploymentRequestPreparedStackProfileAwStack > = z.object({ condition: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), resources: z.array(z.string()), }); export function persistImportedDeploymentRequestPreparedStackProfileAwStackToJSON( persistImportedDeploymentRequestPreparedStackProfileAwStack: PersistImportedDeploymentRequestPreparedStackProfileAwStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileAwStack$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackProfileAwStack), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileAwBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPreparedStackProfileAwResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPreparedStackProfileAwStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileAwBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileAwBinding$Outbound, PersistImportedDeploymentRequestPreparedStackProfileAwBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileAwResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileAwStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPreparedStackProfileAwBindingToJSON( persistImportedDeploymentRequestPreparedStackProfileAwBinding: PersistImportedDeploymentRequestPreparedStackProfileAwBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileAwBinding$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackProfileAwBinding), ); } /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileEffect$outboundSchema: z.ZodEnum = z.enum(PersistImportedDeploymentRequestPreparedStackProfileEffect); /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileAwGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileAwGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileAwGrant$Outbound, PersistImportedDeploymentRequestPreparedStackProfileAwGrant > = 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 persistImportedDeploymentRequestPreparedStackProfileAwGrantToJSON( persistImportedDeploymentRequestPreparedStackProfileAwGrant: PersistImportedDeploymentRequestPreparedStackProfileAwGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileAwGrant$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackProfileAwGrant), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileAw$Outbound = { binding: PersistImportedDeploymentRequestPreparedStackProfileAwBinding$Outbound; description?: string | null | undefined; effect?: string | undefined; grant: PersistImportedDeploymentRequestPreparedStackProfileAwGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileAw$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileAw$Outbound, PersistImportedDeploymentRequestPreparedStackProfileAw > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileAwBinding$outboundSchema ), description: z.nullable(z.string()).optional(), effect: PersistImportedDeploymentRequestPreparedStackProfileEffect$outboundSchema .optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileAwGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPreparedStackProfileAwToJSON( persistImportedDeploymentRequestPreparedStackProfileAw: PersistImportedDeploymentRequestPreparedStackProfileAw, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileAw$outboundSchema.parse( persistImportedDeploymentRequestPreparedStackProfileAw, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileAzureResource$Outbound = { scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileAzureResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileAzureResource$Outbound, PersistImportedDeploymentRequestPreparedStackProfileAzureResource > = z.object({ scope: z.string(), }); export function persistImportedDeploymentRequestPreparedStackProfileAzureResourceToJSON( persistImportedDeploymentRequestPreparedStackProfileAzureResource: PersistImportedDeploymentRequestPreparedStackProfileAzureResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileAzureResource$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackProfileAzureResource), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileAzureStack$Outbound = { scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileAzureStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileAzureStack$Outbound, PersistImportedDeploymentRequestPreparedStackProfileAzureStack > = z.object({ scope: z.string(), }); export function persistImportedDeploymentRequestPreparedStackProfileAzureStackToJSON( persistImportedDeploymentRequestPreparedStackProfileAzureStack: PersistImportedDeploymentRequestPreparedStackProfileAzureStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileAzureStack$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackProfileAzureStack), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileAzureBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPreparedStackProfileAzureResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPreparedStackProfileAzureStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileAzureBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileAzureBinding$Outbound, PersistImportedDeploymentRequestPreparedStackProfileAzureBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileAzureResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileAzureStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPreparedStackProfileAzureBindingToJSON( persistImportedDeploymentRequestPreparedStackProfileAzureBinding: PersistImportedDeploymentRequestPreparedStackProfileAzureBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileAzureBinding$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackProfileAzureBinding), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileAzureGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileAzureGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileAzureGrant$Outbound, PersistImportedDeploymentRequestPreparedStackProfileAzureGrant > = 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 persistImportedDeploymentRequestPreparedStackProfileAzureGrantToJSON( persistImportedDeploymentRequestPreparedStackProfileAzureGrant: PersistImportedDeploymentRequestPreparedStackProfileAzureGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileAzureGrant$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackProfileAzureGrant), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileAzure$Outbound = { binding: PersistImportedDeploymentRequestPreparedStackProfileAzureBinding$Outbound; description?: string | null | undefined; grant: PersistImportedDeploymentRequestPreparedStackProfileAzureGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileAzure$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileAzure$Outbound, PersistImportedDeploymentRequestPreparedStackProfileAzure > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileAzureBinding$outboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileAzureGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPreparedStackProfileAzureToJSON( persistImportedDeploymentRequestPreparedStackProfileAzure: PersistImportedDeploymentRequestPreparedStackProfileAzure, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileAzure$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackProfileAzure), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileConditionResource$Outbound = { expression: string; title: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileConditionResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileConditionResource$Outbound, PersistImportedDeploymentRequestPreparedStackProfileConditionResource > = z.object({ expression: z.string(), title: z.string(), }); export function persistImportedDeploymentRequestPreparedStackProfileConditionResourceToJSON( persistImportedDeploymentRequestPreparedStackProfileConditionResource: PersistImportedDeploymentRequestPreparedStackProfileConditionResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileConditionResource$outboundSchema .parse( persistImportedDeploymentRequestPreparedStackProfileConditionResource, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileResourceConditionUnion$Outbound = | PersistImportedDeploymentRequestPreparedStackProfileConditionResource$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileResourceConditionUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileResourceConditionUnion$Outbound, PersistImportedDeploymentRequestPreparedStackProfileResourceConditionUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileConditionResource$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPreparedStackProfileResourceConditionUnionToJSON( persistImportedDeploymentRequestPreparedStackProfileResourceConditionUnion: PersistImportedDeploymentRequestPreparedStackProfileResourceConditionUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileResourceConditionUnion$outboundSchema .parse( persistImportedDeploymentRequestPreparedStackProfileResourceConditionUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileGcpResource$Outbound = { condition?: | PersistImportedDeploymentRequestPreparedStackProfileConditionResource$Outbound | any | null | undefined; scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileGcpResource$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileGcpResource$Outbound, PersistImportedDeploymentRequestPreparedStackProfileGcpResource > = z.object({ condition: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileConditionResource$outboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function persistImportedDeploymentRequestPreparedStackProfileGcpResourceToJSON( persistImportedDeploymentRequestPreparedStackProfileGcpResource: PersistImportedDeploymentRequestPreparedStackProfileGcpResource, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileGcpResource$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackProfileGcpResource), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileConditionStack$Outbound = { expression: string; title: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileConditionStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileConditionStack$Outbound, PersistImportedDeploymentRequestPreparedStackProfileConditionStack > = z.object({ expression: z.string(), title: z.string(), }); export function persistImportedDeploymentRequestPreparedStackProfileConditionStackToJSON( persistImportedDeploymentRequestPreparedStackProfileConditionStack: PersistImportedDeploymentRequestPreparedStackProfileConditionStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileConditionStack$outboundSchema .parse( persistImportedDeploymentRequestPreparedStackProfileConditionStack, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileStackConditionUnion$Outbound = | PersistImportedDeploymentRequestPreparedStackProfileConditionStack$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileStackConditionUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileStackConditionUnion$Outbound, PersistImportedDeploymentRequestPreparedStackProfileStackConditionUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileConditionStack$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestPreparedStackProfileStackConditionUnionToJSON( persistImportedDeploymentRequestPreparedStackProfileStackConditionUnion: PersistImportedDeploymentRequestPreparedStackProfileStackConditionUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileStackConditionUnion$outboundSchema .parse( persistImportedDeploymentRequestPreparedStackProfileStackConditionUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileGcpStack$Outbound = { condition?: | PersistImportedDeploymentRequestPreparedStackProfileConditionStack$Outbound | any | null | undefined; scope: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileGcpStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileGcpStack$Outbound, PersistImportedDeploymentRequestPreparedStackProfileGcpStack > = z.object({ condition: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileConditionStack$outboundSchema ), z.any(), ]), ).optional(), scope: z.string(), }); export function persistImportedDeploymentRequestPreparedStackProfileGcpStackToJSON( persistImportedDeploymentRequestPreparedStackProfileGcpStack: PersistImportedDeploymentRequestPreparedStackProfileGcpStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileGcpStack$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackProfileGcpStack), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileGcpBinding$Outbound = { resource?: | PersistImportedDeploymentRequestPreparedStackProfileGcpResource$Outbound | undefined; stack?: | PersistImportedDeploymentRequestPreparedStackProfileGcpStack$Outbound | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileGcpBinding$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileGcpBinding$Outbound, PersistImportedDeploymentRequestPreparedStackProfileGcpBinding > = z.object({ resource: z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileGcpResource$outboundSchema ).optional(), stack: z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileGcpStack$outboundSchema ).optional(), }); export function persistImportedDeploymentRequestPreparedStackProfileGcpBindingToJSON( persistImportedDeploymentRequestPreparedStackProfileGcpBinding: PersistImportedDeploymentRequestPreparedStackProfileGcpBinding, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileGcpBinding$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackProfileGcpBinding), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileGcpGrant$Outbound = { actions?: Array | null | undefined; dataActions?: Array | null | undefined; permissions?: Array | null | undefined; predefinedRoles?: Array | null | undefined; residualPermissions?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileGcpGrant$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileGcpGrant$Outbound, PersistImportedDeploymentRequestPreparedStackProfileGcpGrant > = 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 persistImportedDeploymentRequestPreparedStackProfileGcpGrantToJSON( persistImportedDeploymentRequestPreparedStackProfileGcpGrant: PersistImportedDeploymentRequestPreparedStackProfileGcpGrant, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileGcpGrant$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackProfileGcpGrant), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileGcp$Outbound = { binding: PersistImportedDeploymentRequestPreparedStackProfileGcpBinding$Outbound; description?: string | null | undefined; grant: PersistImportedDeploymentRequestPreparedStackProfileGcpGrant$Outbound; label?: string | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileGcp$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileGcp$Outbound, PersistImportedDeploymentRequestPreparedStackProfileGcp > = z.object({ binding: z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileGcpBinding$outboundSchema ), description: z.nullable(z.string()).optional(), grant: z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileGcpGrant$outboundSchema ), label: z.nullable(z.string()).optional(), }); export function persistImportedDeploymentRequestPreparedStackProfileGcpToJSON( persistImportedDeploymentRequestPreparedStackProfileGcp: PersistImportedDeploymentRequestPreparedStackProfileGcp, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileGcp$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackProfileGcp), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfilePlatforms$Outbound = { aws?: | Array | null | undefined; azure?: | Array< PersistImportedDeploymentRequestPreparedStackProfileAzure$Outbound > | null | undefined; gcp?: | Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfilePlatforms$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfilePlatforms$Outbound, PersistImportedDeploymentRequestPreparedStackProfilePlatforms > = z.object({ aws: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileAw$outboundSchema )), ).optional(), azure: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileAzure$outboundSchema )), ).optional(), gcp: z.nullable( z.array(z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfileGcp$outboundSchema )), ).optional(), }); export function persistImportedDeploymentRequestPreparedStackProfilePlatformsToJSON( persistImportedDeploymentRequestPreparedStackProfilePlatforms: PersistImportedDeploymentRequestPreparedStackProfilePlatforms, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfilePlatforms$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackProfilePlatforms), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfile$Outbound = { description: string; id: string; platforms: PersistImportedDeploymentRequestPreparedStackProfilePlatforms$Outbound; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfile$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfile$Outbound, PersistImportedDeploymentRequestPreparedStackProfile > = z.object({ description: z.string(), id: z.string(), platforms: z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfilePlatforms$outboundSchema ), }); export function persistImportedDeploymentRequestPreparedStackProfileToJSON( persistImportedDeploymentRequestPreparedStackProfile: PersistImportedDeploymentRequestPreparedStackProfile, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfile$outboundSchema.parse( persistImportedDeploymentRequestPreparedStackProfile, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackProfileUnion$Outbound = | PersistImportedDeploymentRequestPreparedStackProfile$Outbound | string; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackProfileUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackProfileUnion$Outbound, PersistImportedDeploymentRequestPreparedStackProfileUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfile$outboundSchema ), z.string(), ]); export function persistImportedDeploymentRequestPreparedStackProfileUnionToJSON( persistImportedDeploymentRequestPreparedStackProfileUnion: PersistImportedDeploymentRequestPreparedStackProfileUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackProfileUnion$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackProfileUnion), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackPermissions$Outbound = { management?: | PersistImportedDeploymentRequestPreparedStackManagement1$Outbound | PersistImportedDeploymentRequestPreparedStackManagement2$Outbound | string | undefined; profiles: { [k: string]: { [k: string]: Array< PersistImportedDeploymentRequestPreparedStackProfile$Outbound | string >; }; }; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackPermissions$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackPermissions$Outbound, PersistImportedDeploymentRequestPreparedStackPermissions > = z.object({ management: z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackManagement1$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestPreparedStackManagement2$outboundSchema ), PersistImportedDeploymentRequestPreparedStackManagementEnum$outboundSchema, ]).optional(), profiles: z.record( z.string(), z.record( z.string(), z.array( z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStackProfile$outboundSchema ), z.string(), ]), ), ), ), }); export function persistImportedDeploymentRequestPreparedStackPermissionsToJSON( persistImportedDeploymentRequestPreparedStackPermissions: PersistImportedDeploymentRequestPreparedStackPermissions, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackPermissions$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackPermissions), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackConfig$Outbound = { id: string; type: string; [additionalProperties: string]: unknown; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackConfig$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackConfig$Outbound, PersistImportedDeploymentRequestPreparedStackConfig > = z.object({ id: z.string(), type: z.string(), additionalProperties: z.record(z.string(), z.nullable(z.any())).optional(), }).transform((v) => { return { ...v.additionalProperties, ...remap$(v, { additionalProperties: null, }), }; }); export function persistImportedDeploymentRequestPreparedStackConfigToJSON( persistImportedDeploymentRequestPreparedStackConfig: PersistImportedDeploymentRequestPreparedStackConfig, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackConfig$outboundSchema.parse( persistImportedDeploymentRequestPreparedStackConfig, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackDependency$Outbound = { id: string; type: string; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackDependency$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackDependency$Outbound, PersistImportedDeploymentRequestPreparedStackDependency > = z.object({ id: z.string(), type: z.string(), }); export function persistImportedDeploymentRequestPreparedStackDependencyToJSON( persistImportedDeploymentRequestPreparedStackDependency: PersistImportedDeploymentRequestPreparedStackDependency, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackDependency$outboundSchema .parse(persistImportedDeploymentRequestPreparedStackDependency), ); } /** @internal */ export const PersistImportedDeploymentRequestPreparedStackLifecycle$outboundSchema: z.ZodEnum = z .enum(PersistImportedDeploymentRequestPreparedStackLifecycle); /** @internal */ export type PersistImportedDeploymentRequestPreparedStackResources$Outbound = { config: PersistImportedDeploymentRequestPreparedStackConfig$Outbound; dependencies: Array< PersistImportedDeploymentRequestPreparedStackDependency$Outbound >; enabledWhen?: string | null | undefined; lifecycle: string; remoteAccess?: boolean | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackResources$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackResources$Outbound, PersistImportedDeploymentRequestPreparedStackResources > = z.object({ config: z.lazy(() => PersistImportedDeploymentRequestPreparedStackConfig$outboundSchema ), dependencies: z.array( z.lazy(() => PersistImportedDeploymentRequestPreparedStackDependency$outboundSchema ), ), enabledWhen: z.nullable(z.string()).optional(), lifecycle: PersistImportedDeploymentRequestPreparedStackLifecycle$outboundSchema, remoteAccess: z.boolean().optional(), }); export function persistImportedDeploymentRequestPreparedStackResourcesToJSON( persistImportedDeploymentRequestPreparedStackResources: PersistImportedDeploymentRequestPreparedStackResources, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackResources$outboundSchema.parse( persistImportedDeploymentRequestPreparedStackResources, ), ); } /** @internal */ export const PersistImportedDeploymentRequestPreparedStackSupportedPlatform$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestPreparedStackSupportedPlatform > = z.enum(PersistImportedDeploymentRequestPreparedStackSupportedPlatform); /** @internal */ export type PersistImportedDeploymentRequestPreparedStack$Outbound = { id: string; inputs?: | Array | undefined; permissions?: | PersistImportedDeploymentRequestPreparedStackPermissions$Outbound | undefined; resources: { [k: string]: PersistImportedDeploymentRequestPreparedStackResources$Outbound; }; supportedPlatforms?: Array | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestPreparedStack$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStack$Outbound, PersistImportedDeploymentRequestPreparedStack > = z.object({ id: z.string(), inputs: z.array( z.lazy(() => PersistImportedDeploymentRequestPreparedStackInput$outboundSchema ), ).optional(), permissions: z.lazy(() => PersistImportedDeploymentRequestPreparedStackPermissions$outboundSchema ).optional(), resources: z.record( z.string(), z.lazy(() => PersistImportedDeploymentRequestPreparedStackResources$outboundSchema ), ), supportedPlatforms: z.nullable( z.array( PersistImportedDeploymentRequestPreparedStackSupportedPlatform$outboundSchema, ), ).optional(), }); export function persistImportedDeploymentRequestPreparedStackToJSON( persistImportedDeploymentRequestPreparedStack: PersistImportedDeploymentRequestPreparedStack, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStack$outboundSchema.parse( persistImportedDeploymentRequestPreparedStack, ), ); } /** @internal */ export type PersistImportedDeploymentRequestPreparedStackUnion$Outbound = | PersistImportedDeploymentRequestPreparedStack$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestPreparedStackUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestPreparedStackUnion$Outbound, PersistImportedDeploymentRequestPreparedStackUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStack$outboundSchema), z.any(), ]); export function persistImportedDeploymentRequestPreparedStackUnionToJSON( persistImportedDeploymentRequestPreparedStackUnion: PersistImportedDeploymentRequestPreparedStackUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestPreparedStackUnion$outboundSchema.parse( persistImportedDeploymentRequestPreparedStackUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequestSetupUpdateAuthorization$Outbound = { baselineFrozenDigest: string; nonce: string; releaseId: string; setupFingerprint: string; setupFingerprintVersion: number; setupTarget: string; targetFrozenDigest: string; }; /** @internal */ export const PersistImportedDeploymentRequestSetupUpdateAuthorization$outboundSchema: z.ZodType< PersistImportedDeploymentRequestSetupUpdateAuthorization$Outbound, PersistImportedDeploymentRequestSetupUpdateAuthorization > = 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 persistImportedDeploymentRequestSetupUpdateAuthorizationToJSON( persistImportedDeploymentRequestSetupUpdateAuthorization: PersistImportedDeploymentRequestSetupUpdateAuthorization, ): string { return JSON.stringify( PersistImportedDeploymentRequestSetupUpdateAuthorization$outboundSchema .parse(persistImportedDeploymentRequestSetupUpdateAuthorization), ); } /** @internal */ export type PersistImportedDeploymentRequestSetupUpdateAuthorizationUnion$Outbound = | PersistImportedDeploymentRequestSetupUpdateAuthorization$Outbound | any; /** @internal */ export const PersistImportedDeploymentRequestSetupUpdateAuthorizationUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestSetupUpdateAuthorizationUnion$Outbound, PersistImportedDeploymentRequestSetupUpdateAuthorizationUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestSetupUpdateAuthorization$outboundSchema ), z.any(), ]); export function persistImportedDeploymentRequestSetupUpdateAuthorizationUnionToJSON( persistImportedDeploymentRequestSetupUpdateAuthorizationUnion: PersistImportedDeploymentRequestSetupUpdateAuthorizationUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestSetupUpdateAuthorizationUnion$outboundSchema .parse(persistImportedDeploymentRequestSetupUpdateAuthorizationUnion), ); } /** @internal */ export type PersistImportedDeploymentRequestRuntimeMetadata$Outbound = { directSetupRevision?: string | null | undefined; initialSetupAuthority?: string | undefined; lastSyncedEnvVarsHash?: string | null | undefined; lastSyncedSecretNames?: Array | undefined; pendingPreparedStack?: | PersistImportedDeploymentRequestPendingPreparedStack$Outbound | any | null | undefined; persistedGateAnswers?: { [k: string]: boolean } | undefined; preparedStack?: | PersistImportedDeploymentRequestPreparedStack$Outbound | any | null | undefined; registryAccessGranted?: boolean | undefined; setupUpdateAuthorization?: | PersistImportedDeploymentRequestSetupUpdateAuthorization$Outbound | any | null | undefined; }; /** @internal */ export const PersistImportedDeploymentRequestRuntimeMetadata$outboundSchema: z.ZodType< PersistImportedDeploymentRequestRuntimeMetadata$Outbound, PersistImportedDeploymentRequestRuntimeMetadata > = z.object({ directSetupRevision: z.nullable(z.string()).optional(), initialSetupAuthority: PersistImportedDeploymentRequestInitialSetupAuthority$outboundSchema .optional(), lastSyncedEnvVarsHash: z.nullable(z.string()).optional(), lastSyncedSecretNames: z.array(z.string()).optional(), pendingPreparedStack: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPendingPreparedStack$outboundSchema ), z.any(), ]), ).optional(), persistedGateAnswers: z.record(z.string(), z.boolean()).optional(), preparedStack: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestPreparedStack$outboundSchema ), z.any(), ]), ).optional(), registryAccessGranted: z.boolean().optional(), setupUpdateAuthorization: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestSetupUpdateAuthorization$outboundSchema ), z.any(), ]), ).optional(), }); export function persistImportedDeploymentRequestRuntimeMetadataToJSON( persistImportedDeploymentRequestRuntimeMetadata: PersistImportedDeploymentRequestRuntimeMetadata, ): string { return JSON.stringify( PersistImportedDeploymentRequestRuntimeMetadata$outboundSchema.parse( persistImportedDeploymentRequestRuntimeMetadata, ), ); } /** @internal */ export const PersistImportedDeploymentRequestStatus$outboundSchema: z.ZodEnum< typeof PersistImportedDeploymentRequestStatus > = z.enum(PersistImportedDeploymentRequestStatus); /** @internal */ export type PersistImportedDeploymentRequestManagementConfigKubernetes$Outbound = { platform: "kubernetes"; }; /** @internal */ export const PersistImportedDeploymentRequestManagementConfigKubernetes$outboundSchema: z.ZodType< PersistImportedDeploymentRequestManagementConfigKubernetes$Outbound, PersistImportedDeploymentRequestManagementConfigKubernetes > = z.object({ platform: z.literal("kubernetes"), }); export function persistImportedDeploymentRequestManagementConfigKubernetesToJSON( persistImportedDeploymentRequestManagementConfigKubernetes: PersistImportedDeploymentRequestManagementConfigKubernetes, ): string { return JSON.stringify( PersistImportedDeploymentRequestManagementConfigKubernetes$outboundSchema .parse(persistImportedDeploymentRequestManagementConfigKubernetes), ); } /** @internal */ export type PersistImportedDeploymentRequestManagementConfigAzure$Outbound = { managingTenantId: string; oidcIssuer: string; oidcSubject: string; platform: "azure"; }; /** @internal */ export const PersistImportedDeploymentRequestManagementConfigAzure$outboundSchema: z.ZodType< PersistImportedDeploymentRequestManagementConfigAzure$Outbound, PersistImportedDeploymentRequestManagementConfigAzure > = z.object({ managingTenantId: z.string(), oidcIssuer: z.string(), oidcSubject: z.string(), platform: z.literal("azure"), }); export function persistImportedDeploymentRequestManagementConfigAzureToJSON( persistImportedDeploymentRequestManagementConfigAzure: PersistImportedDeploymentRequestManagementConfigAzure, ): string { return JSON.stringify( PersistImportedDeploymentRequestManagementConfigAzure$outboundSchema.parse( persistImportedDeploymentRequestManagementConfigAzure, ), ); } /** @internal */ export type PersistImportedDeploymentRequestManagementConfigGcp$Outbound = { serviceAccountEmail: string; platform: "gcp"; }; /** @internal */ export const PersistImportedDeploymentRequestManagementConfigGcp$outboundSchema: z.ZodType< PersistImportedDeploymentRequestManagementConfigGcp$Outbound, PersistImportedDeploymentRequestManagementConfigGcp > = z.object({ serviceAccountEmail: z.string(), platform: z.literal("gcp"), }); export function persistImportedDeploymentRequestManagementConfigGcpToJSON( persistImportedDeploymentRequestManagementConfigGcp: PersistImportedDeploymentRequestManagementConfigGcp, ): string { return JSON.stringify( PersistImportedDeploymentRequestManagementConfigGcp$outboundSchema.parse( persistImportedDeploymentRequestManagementConfigGcp, ), ); } /** @internal */ export type PersistImportedDeploymentRequestManagementConfigAws$Outbound = { managingRoleArn: string; platform: "aws"; }; /** @internal */ export const PersistImportedDeploymentRequestManagementConfigAws$outboundSchema: z.ZodType< PersistImportedDeploymentRequestManagementConfigAws$Outbound, PersistImportedDeploymentRequestManagementConfigAws > = z.object({ managingRoleArn: z.string(), platform: z.literal("aws"), }); export function persistImportedDeploymentRequestManagementConfigAwsToJSON( persistImportedDeploymentRequestManagementConfigAws: PersistImportedDeploymentRequestManagementConfigAws, ): string { return JSON.stringify( PersistImportedDeploymentRequestManagementConfigAws$outboundSchema.parse( persistImportedDeploymentRequestManagementConfigAws, ), ); } /** @internal */ export type PersistImportedDeploymentRequestManagementConfigUnion$Outbound = | PersistImportedDeploymentRequestManagementConfigAws$Outbound | PersistImportedDeploymentRequestManagementConfigGcp$Outbound | PersistImportedDeploymentRequestManagementConfigAzure$Outbound | PersistImportedDeploymentRequestManagementConfigKubernetes$Outbound; /** @internal */ export const PersistImportedDeploymentRequestManagementConfigUnion$outboundSchema: z.ZodType< PersistImportedDeploymentRequestManagementConfigUnion$Outbound, PersistImportedDeploymentRequestManagementConfigUnion > = z.union([ z.lazy(() => PersistImportedDeploymentRequestManagementConfigAws$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestManagementConfigGcp$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestManagementConfigAzure$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestManagementConfigKubernetes$outboundSchema ), ]); export function persistImportedDeploymentRequestManagementConfigUnionToJSON( persistImportedDeploymentRequestManagementConfigUnion: PersistImportedDeploymentRequestManagementConfigUnion, ): string { return JSON.stringify( PersistImportedDeploymentRequestManagementConfigUnion$outboundSchema.parse( persistImportedDeploymentRequestManagementConfigUnion, ), ); } /** @internal */ export type PersistImportedDeploymentRequest$Outbound = { mode: string; name: string; deploymentGroupId: string; managerId: string; publicSubdomain?: string | undefined; platform: string; basePlatform?: string | undefined; stackSettings: PersistImportedDeploymentRequestStackSettings$Outbound; stackState?: any | null | undefined; environmentInfo?: | PersistImportedDeploymentRequestEnvironmentInfoGcp$Outbound | PersistImportedDeploymentRequestEnvironmentInfoAzure$Outbound | PersistImportedDeploymentRequestEnvironmentInfoLocal$Outbound | PersistImportedDeploymentRequestEnvironmentInfoAws$Outbound | PersistImportedDeploymentRequestEnvironmentInfoTest$Outbound | any | null | undefined; runtimeMetadata: PersistImportedDeploymentRequestRuntimeMetadata$Outbound; scheduleReconciliation: boolean; deploymentProtocolVersion: number; status: string; currentReleaseId?: string | undefined; desiredReleaseId?: string | undefined; importSource?: string | undefined; setupMetadata?: { [k: string]: any | null } | undefined; setupTarget: string; setupFingerprint: string; setupFingerprintVersion: number; deploymentToken?: string | undefined; managementConfig?: | PersistImportedDeploymentRequestManagementConfigAws$Outbound | PersistImportedDeploymentRequestManagementConfigGcp$Outbound | PersistImportedDeploymentRequestManagementConfigAzure$Outbound | PersistImportedDeploymentRequestManagementConfigKubernetes$Outbound | undefined; inputValues?: { [k: string]: StackInputValueRequest$Outbound } | undefined; }; /** @internal */ export const PersistImportedDeploymentRequest$outboundSchema: z.ZodType< PersistImportedDeploymentRequest$Outbound, PersistImportedDeploymentRequest > = z.object({ mode: ModePersist$outboundSchema, name: z.string(), deploymentGroupId: z.string(), managerId: z.string(), publicSubdomain: z.string().optional(), platform: PersistImportedDeploymentRequestPlatformEnum$outboundSchema, basePlatform: KubernetesBasePlatform$outboundSchema.optional(), stackSettings: z.lazy(() => PersistImportedDeploymentRequestStackSettings$outboundSchema ), stackState: z.nullable(z.any()).optional(), environmentInfo: z.nullable( z.union([ z.lazy(() => PersistImportedDeploymentRequestEnvironmentInfoGcp$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestEnvironmentInfoAzure$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestEnvironmentInfoLocal$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestEnvironmentInfoAws$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestEnvironmentInfoTest$outboundSchema ), z.any(), ]), ).optional(), runtimeMetadata: z.lazy(() => PersistImportedDeploymentRequestRuntimeMetadata$outboundSchema ), scheduleReconciliation: z.boolean().default(false), deploymentProtocolVersion: z.int(), status: PersistImportedDeploymentRequestStatus$outboundSchema.default( "provisioning", ), currentReleaseId: z.string().optional(), desiredReleaseId: z.string().optional(), importSource: ImportSourceKind$outboundSchema.optional(), setupMetadata: z.record(z.string(), z.nullable(z.any())).optional(), setupTarget: z.string(), setupFingerprint: z.string(), setupFingerprintVersion: z.int(), deploymentToken: z.string().optional(), managementConfig: z.union([ z.lazy(() => PersistImportedDeploymentRequestManagementConfigAws$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestManagementConfigGcp$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestManagementConfigAzure$outboundSchema ), z.lazy(() => PersistImportedDeploymentRequestManagementConfigKubernetes$outboundSchema ), ]).optional(), inputValues: z.record(z.string(), StackInputValueRequest$outboundSchema) .optional(), }); export function persistImportedDeploymentRequestToJSON( persistImportedDeploymentRequest: PersistImportedDeploymentRequest, ): string { return JSON.stringify( PersistImportedDeploymentRequest$outboundSchema.parse( persistImportedDeploymentRequest, ), ); }