/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 4c09056cefcb */ import * as z from "zod/v4"; import { remap as remap$ } from "../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, safeParse, } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * Represents the target cloud platform. */ export const TargetDeploymentBasePlatformEnum = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type TargetDeploymentBasePlatformEnum = ClosedEnum< typeof TargetDeploymentBasePlatformEnum >; export type TargetDeploymentBasePlatformUnion = | TargetDeploymentBasePlatformEnum | any; /** * Configuration for a single container worker cluster. * * @remarks * * Contains the cluster ID and management token needed to interact with * the managed container control plane API for container operations. */ export type TargetDeploymentClusters = { /** * Cluster ID (deterministic: workspace/project/deployment/resourceid) */ clusterId: string; /** * Management token for API access (hm_...) * * @remarks * Used by alien-deployment controllers to create/update containers */ managementToken: string; }; /** * AWS Horizon machine image catalog. */ export type TargetDeploymentHorizonMachineImageAws = { /** * AMI IDs by architecture, then AWS region. */ amis: { [k: string]: { [k: string]: string } }; }; export type TargetDeploymentHorizonMachineImageAwsUnion = | TargetDeploymentHorizonMachineImageAws | any; /** * Azure Horizon machine image entry. */ export type TargetDeploymentAzureImages = { /** * Azure Compute Gallery image version ID. */ imageVersionId: string; }; /** * Azure Horizon machine image catalog. */ export type HorizonMachineImageAzureConfig = { /** * Images by architecture. */ images: { [k: string]: TargetDeploymentAzureImages }; }; export type HorizonMachineImageConfigAzureUnion = | HorizonMachineImageAzureConfig | any; /** * Base image metadata for the Horizon machine image. */ export type TargetDeploymentBaseImage = { /** * Base OS image name. */ name: string; /** * Base OS image version or channel. */ version: string; }; /** * GCP Horizon machine image entry. */ export type TargetDeploymentGcpImages = { /** * Source image self link or image-family URL. */ sourceImage: string; }; /** * GCP Horizon machine image catalog. */ export type HorizonMachineImageGcpConfig = { /** * Images by architecture. */ images: { [k: string]: TargetDeploymentGcpImages }; }; export type HorizonMachineImageConfigGcpUnion = | HorizonMachineImageGcpConfig | any; /** * Download artifact for one horizond release platform. */ export type TargetDeploymentHorizondArtifacts = { /** * SHA-256 digest for the artifact payload. */ sha256: string; /** * HTTPS URL for the artifact. */ url: string; }; /** * Horizon machine image catalog. * * @remarks * * Platform resolves concrete provider images from this catalog during rollout. */ export type TargetDeploymentHorizonMachineImage = { aws?: TargetDeploymentHorizonMachineImageAws | any | null | undefined; azure?: HorizonMachineImageAzureConfig | any | null | undefined; /** * Base image metadata for the Horizon machine image. */ baseImage: TargetDeploymentBaseImage; /** * Logical image channel, such as prod, staging, or canary. */ channel: string; /** * Image manifest creation timestamp. */ createdAt: string; gcp?: HorizonMachineImageGcpConfig | any | null | undefined; /** * Git commit SHA used to build the image. */ gitSha: string; /** * Per-architecture horizond artifacts by release-platform key. */ horizondArtifacts: { [k: string]: TargetDeploymentHorizondArtifacts }; /** * horizond daemon version baked into the image. */ horizondVersion: string; /** * Published immutable machine image version. */ machineImageVersion: string; }; export type TargetDeploymentHorizonMachineImageUnion = | TargetDeploymentHorizonMachineImage | any; export const TargetDeploymentComputeBackendType = { Horizon: "horizon", } as const; export type TargetDeploymentComputeBackendType = ClosedEnum< typeof TargetDeploymentComputeBackendType >; /** * Compute backend for Container and Worker resources. * * @remarks * * Determines how compute workloads are orchestrated on cloud platforms. * When None, the platform default is used for cloud platforms. */ export type TargetDeploymentComputeBackendHorizon = { /** * Cluster configurations (one per ComputeCluster resource) * * @remarks * Key: ComputeCluster resource ID from stack * Value: Cluster ID and management token for that cluster */ clusters: { [k: string]: TargetDeploymentClusters }; horizonMachineImage?: | TargetDeploymentHorizonMachineImage | any | null | undefined; /** * Horizon control-plane API base URL. */ url: string; type: TargetDeploymentComputeBackendType; }; export type TargetDeploymentComputeBackendUnion = | TargetDeploymentComputeBackendHorizon | any; /** * Certificate status in the certificate lifecycle */ export const TargetDeploymentAliasCertificateStatus = { Pending: "pending", Issued: "issued", Renewing: "renewing", RenewalFailed: "renewal-failed", Failed: "failed", Deleting: "deleting", } as const; /** * Certificate status in the certificate lifecycle */ export type TargetDeploymentAliasCertificateStatus = ClosedEnum< typeof TargetDeploymentAliasCertificateStatus >; /** * DNS record status in the DNS lifecycle */ export const TargetDeploymentAliasDnsStatus = { Pending: "pending", Active: "active", Updating: "updating", Deleting: "deleting", Failed: "failed", } as const; /** * DNS record status in the DNS lifecycle */ export type TargetDeploymentAliasDnsStatus = ClosedEnum< typeof TargetDeploymentAliasDnsStatus >; /** * Certificate and DNS metadata for a managed hostname. * * @remarks * * Includes decrypted certificate data for issued certificates. * Private keys are deployment-scoped secrets (like environment variables). */ export type TargetDeploymentAlias = { /** * Full PEM certificate chain (only present if status is "issued"). */ certificateChain?: string | null | undefined; /** * Certificate ID (for tracking/logging). */ certificateId: string; /** * Certificate status in the certificate lifecycle */ certificateStatus: TargetDeploymentAliasCertificateStatus; /** * Last DNS error message. Present when DNS previously failed, even if status * * @remarks * was reset to pending for retry. Used to surface actionable error context * in WaitingForDns failure messages. */ dnsError?: string | null | undefined; /** * DNS record status in the DNS lifecycle */ dnsStatus: TargetDeploymentAliasDnsStatus; /** * Fully qualified domain name. */ fqdn: string; /** * ISO 8601 timestamp when certificate was issued (for renewal detection). */ issuedAt?: string | null | undefined; /** * Decrypted private key (only present if status is "issued"). */ privateKey?: string | null | undefined; }; /** * Certificate status in the certificate lifecycle */ export const TargetDeploymentCertificateStatus = { Pending: "pending", Issued: "issued", Renewing: "renewing", RenewalFailed: "renewal-failed", Failed: "failed", Deleting: "deleting", } as const; /** * Certificate status in the certificate lifecycle */ export type TargetDeploymentCertificateStatus = ClosedEnum< typeof TargetDeploymentCertificateStatus >; /** * DNS record status in the DNS lifecycle */ export const TargetDeploymentDnsStatus = { Pending: "pending", Active: "active", Updating: "updating", Deleting: "deleting", Failed: "failed", } as const; /** * DNS record status in the DNS lifecycle */ export type TargetDeploymentDnsStatus = ClosedEnum< typeof TargetDeploymentDnsStatus >; /** * Certificate status in the certificate lifecycle */ export const TargetDeploymentEndpointsCertificateStatus = { Pending: "pending", Issued: "issued", Renewing: "renewing", RenewalFailed: "renewal-failed", Failed: "failed", Deleting: "deleting", } as const; /** * Certificate status in the certificate lifecycle */ export type TargetDeploymentEndpointsCertificateStatus = ClosedEnum< typeof TargetDeploymentEndpointsCertificateStatus >; /** * DNS record status in the DNS lifecycle */ export const TargetDeploymentEndpointsDnsStatus = { Pending: "pending", Active: "active", Updating: "updating", Deleting: "deleting", Failed: "failed", } as const; /** * DNS record status in the DNS lifecycle */ export type TargetDeploymentEndpointsDnsStatus = ClosedEnum< typeof TargetDeploymentEndpointsDnsStatus >; /** * Certificate and DNS metadata for a managed hostname. * * @remarks * * Includes decrypted certificate data for issued certificates. * Private keys are deployment-scoped secrets (like environment variables). */ export type TargetDeploymentEndpoints = { /** * Full PEM certificate chain (only present if status is "issued"). */ certificateChain?: string | null | undefined; /** * Certificate ID (for tracking/logging). */ certificateId: string; /** * Certificate status in the certificate lifecycle */ certificateStatus: TargetDeploymentEndpointsCertificateStatus; /** * Last DNS error message. Present when DNS previously failed, even if status * * @remarks * was reset to pending for retry. Used to surface actionable error context * in WaitingForDns failure messages. */ dnsError?: string | null | undefined; /** * DNS record status in the DNS lifecycle */ dnsStatus: TargetDeploymentEndpointsDnsStatus; /** * Fully qualified domain name. */ fqdn: string; /** * ISO 8601 timestamp when certificate was issued (for renewal detection). */ issuedAt?: string | null | undefined; /** * Decrypted private key (only present if status is "issued"). */ privateKey?: string | null | undefined; }; /** * Certificate and DNS metadata for a public resource. * * @remarks * * The direct fields describe the primary endpoint hostname. `endpoints` * contains endpoint-scoped metadata keyed by endpoint name. `aliases` contains * additional managed hostnames that route directly to the primary endpoint. */ export type ConfigResources = { /** * Additional managed hostnames for the resource. */ aliases?: Array | undefined; /** * Full PEM certificate chain (only present if status is "issued"). */ certificateChain?: string | null | undefined; /** * Certificate ID (for tracking/logging). */ certificateId: string; /** * Certificate status in the certificate lifecycle */ certificateStatus: TargetDeploymentCertificateStatus; /** * Last DNS error message. */ dnsError?: string | null | undefined; /** * DNS record status in the DNS lifecycle */ dnsStatus: TargetDeploymentDnsStatus; /** * Endpoint-scoped metadata keyed by endpoint name. */ endpoints?: { [k: string]: TargetDeploymentEndpoints } | undefined; /** * Fully qualified domain name. */ fqdn: string; /** * ISO 8601 timestamp when certificate was issued (for renewal detection). */ issuedAt?: string | null | undefined; /** * Decrypted private key (only present if status is "issued"). */ privateKey?: string | null | undefined; }; /** * Domain metadata for auto-managed public resources (no private keys). */ export type TargetDeploymentDomainMetadata = { /** * Base domain for auto-generated domains (e.g., "vpc.direct"). */ baseDomain: string; /** * Hosted zone ID for DNS records. */ hostedZoneId: string; /** * Deployment public subdomain (e.g., "k8f2j3"). */ publicSubdomain: string; /** * Metadata per resource ID. */ resources: { [k: string]: ConfigResources }; }; export type TargetDeploymentDomainMetadataUnion = | TargetDeploymentDomainMetadata | any; /** * Type of environment variable */ export const TargetDeploymentEnvironmentVariablesType = { Plain: "plain", Secret: "secret", } as const; /** * Type of environment variable */ export type TargetDeploymentEnvironmentVariablesType = ClosedEnum< typeof TargetDeploymentEnvironmentVariablesType >; /** * Environment variable for deployment */ export type TargetDeploymentVariable = { /** * Variable name */ name: string; /** * Target resource patterns (null = all resources, Some = wildcard patterns) */ targetResources?: Array | null | undefined; /** * Type of environment variable */ type: TargetDeploymentEnvironmentVariablesType; /** * Variable value (decrypted - deployment has access to decryption keys) */ value: string; }; /** * Snapshot of environment variables at a point in time */ export type TargetDeploymentEnvironmentVariables = { /** * ISO 8601 timestamp when snapshot was created */ createdAt: string; /** * Deterministic hash of all variables (for change detection) */ hash: string; /** * Environment variables in the snapshot */ variables: Array; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentApiKeySecretRef = { key: string; name: string; }; export type TargetDeploymentApiKey = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentApiKeySecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentApiKeyUnion = TargetDeploymentApiKey | any | string; export const TargetDeploymentTypeAi = { Ai: "ai", } as const; export type TargetDeploymentTypeAi = ClosedEnum; /** * External AI provider binding configuration (BYO-key). * * @remarks * * The operator-supplied secret rides inside the binding via * `BindingValue`, so it is a literal on cloud platforms and gains * Kubernetes SecretRef resolution for free (`extract_binding_secrets` walks * the binding JSON for `secretRef`). */ export type TargetDeploymentExternalBindingsAi = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ apiKey?: TargetDeploymentApiKey | any | string | null | undefined; /** * The external AI provider name (e.g., "openai", "anthropic") */ provider: string; type: TargetDeploymentTypeAi; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentDatabaseSecretRef6 = { key: string; name: string; }; export type TargetDeploymentDatabase6 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentDatabaseSecretRef6; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentDatabaseUnion5 = | TargetDeploymentDatabase6 | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentHostSecretRef4 = { key: string; name: string; }; export type TargetDeploymentHost4 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentHostSecretRef4; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentHostUnion4 = TargetDeploymentHost4 | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentPortSecretRef5 = { key: string; name: string; }; export type TargetDeploymentPort5 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentPortSecretRef5; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentPortUnion5 = TargetDeploymentPort5 | number | any; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentUsernameSecretRef5 = { key: string; name: string; }; export type TargetDeploymentUsername5 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentUsernameSecretRef5; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentUsernameUnion5 = | TargetDeploymentUsername5 | any | string; export const TargetDeploymentTypePostgres5 = { Postgres: "postgres", } as const; export type TargetDeploymentTypePostgres5 = ClosedEnum< typeof TargetDeploymentTypePostgres5 >; /** * Local embedded Postgres binding. */ export type TargetDeploymentExternalBindingsLocalPostgres = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ database?: TargetDeploymentDatabase6 | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ host?: TargetDeploymentHost4 | any | string | null | undefined; password: string; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ port?: TargetDeploymentPort5 | number | any | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ username?: TargetDeploymentUsername5 | any | string | null | undefined; service: "local-postgres"; type: TargetDeploymentTypePostgres5; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentDatabaseSecretRef5 = { key: string; name: string; }; export type TargetDeploymentDatabase5 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentDatabaseSecretRef5; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentDatabaseUnion4 = | TargetDeploymentDatabase5 | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentHostSecretRef3 = { key: string; name: string; }; export type TargetDeploymentHost3 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentHostSecretRef3; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentHostUnion3 = TargetDeploymentHost3 | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentPortSecretRef4 = { key: string; name: string; }; export type TargetDeploymentPort4 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentPortSecretRef4; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentPortUnion4 = TargetDeploymentPort4 | number | any; /** * TLS policy for an operator-provided / BYO Postgres database. * * @remarks * * Unlike libpq's ambiguous `prefer` mode, both choices map exactly to the * connection settings exposed by every supported SDK. */ export const TargetDeploymentSslMode = { VerifyFull: "verify-full", Disable: "disable", } as const; /** * TLS policy for an operator-provided / BYO Postgres database. * * @remarks * * Unlike libpq's ambiguous `prefer` mode, both choices map exactly to the * connection settings exposed by every supported SDK. */ export type TargetDeploymentSslMode = ClosedEnum< typeof TargetDeploymentSslMode >; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentUsernameSecretRef4 = { key: string; name: string; }; export type TargetDeploymentUsername4 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentUsernameSecretRef4; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentUsernameUnion4 = | TargetDeploymentUsername4 | any | string; export const TargetDeploymentTypePostgres4 = { Postgres: "postgres", } as const; export type TargetDeploymentTypePostgres4 = ClosedEnum< typeof TargetDeploymentTypePostgres4 >; /** * Operator-provided / BYO database binding. */ export type TargetDeploymentExternalBindingsExternal = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ database?: TargetDeploymentDatabase5 | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ host?: TargetDeploymentHost3 | any | string | null | undefined; /** * Connection password as a concrete value, never an unresolved `SecretRef`: the platform * * @remarks * materializes the Kubernetes secret into the pod env. The cloud variants carry a secret * locator instead. */ password: string; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ port?: TargetDeploymentPort4 | number | any | null | undefined; /** * TLS policy for an operator-provided / BYO Postgres database. * * @remarks * * Unlike libpq's ambiguous `prefer` mode, both choices map exactly to the * connection settings exposed by every supported SDK. */ sslMode?: TargetDeploymentSslMode | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ username?: TargetDeploymentUsername4 | any | string | null | undefined; service: "external"; type: TargetDeploymentTypePostgres4; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentDatabaseSecretRef4 = { key: string; name: string; }; export type TargetDeploymentDatabase4 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentDatabaseSecretRef4; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentDatabaseUnion3 = | TargetDeploymentDatabase4 | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentHostSecretRef2 = { key: string; name: string; }; export type TargetDeploymentHost2 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentHostSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentHostUnion2 = TargetDeploymentHost2 | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentPasswordSecretUriSecretRef = { key: string; name: string; }; export type TargetDeploymentPasswordSecretUri = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentPasswordSecretUriSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentPasswordSecretUriUnion = | TargetDeploymentPasswordSecretUri | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentPortSecretRef3 = { key: string; name: string; }; export type TargetDeploymentPort3 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentPortSecretRef3; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentPortUnion3 = TargetDeploymentPort3 | number | any; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentUsernameSecretRef3 = { key: string; name: string; }; export type TargetDeploymentUsername3 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentUsernameSecretRef3; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentUsernameUnion3 = | TargetDeploymentUsername3 | any | string; export const TargetDeploymentTypePostgres3 = { Postgres: "postgres", } as const; export type TargetDeploymentTypePostgres3 = ClosedEnum< typeof TargetDeploymentTypePostgres3 >; /** * Azure Flexible Server binding. */ export type TargetDeploymentExternalBindingsFlexibleServer = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ database?: TargetDeploymentDatabase4 | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ host?: TargetDeploymentHost2 | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ passwordSecretUri?: | TargetDeploymentPasswordSecretUri | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ port?: TargetDeploymentPort3 | number | any | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ username?: TargetDeploymentUsername3 | any | string | null | undefined; service: "flexible-server"; type: TargetDeploymentTypePostgres3; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentDatabaseSecretRef3 = { key: string; name: string; }; export type TargetDeploymentDatabase3 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentDatabaseSecretRef3; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentDatabaseUnion2 = | TargetDeploymentDatabase3 | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentHostSecretRef1 = { key: string; name: string; }; export type TargetDeploymentHost1 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentHostSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentHostUnion1 = TargetDeploymentHost1 | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentPasswordSecretNameSecretRef = { key: string; name: string; }; export type TargetDeploymentPasswordSecretName = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentPasswordSecretNameSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentPasswordSecretNameUnion = | TargetDeploymentPasswordSecretName | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentPortSecretRef2 = { key: string; name: string; }; export type TargetDeploymentPort2 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentPortSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentPortUnion2 = TargetDeploymentPort2 | number | any; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentServerCaCertificatesSecretRef = { key: string; name: string; }; export type TargetDeploymentServerCaCertificates = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentServerCaCertificatesSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentServerCaCertificatesUnion = | TargetDeploymentServerCaCertificates | Array | any; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentUsernameSecretRef2 = { key: string; name: string; }; export type TargetDeploymentUsername2 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentUsernameSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentUsernameUnion2 = | TargetDeploymentUsername2 | any | string; export const TargetDeploymentTypePostgres2 = { Postgres: "postgres", } as const; export type TargetDeploymentTypePostgres2 = ClosedEnum< typeof TargetDeploymentTypePostgres2 >; /** * GCP Cloud SQL binding. */ export type TargetDeploymentExternalBindingsCloudSQL = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ database?: TargetDeploymentDatabase3 | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ host?: TargetDeploymentHost1 | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ passwordSecretName?: | TargetDeploymentPasswordSecretName | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ port?: TargetDeploymentPort2 | number | any | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ serverCaCertificates?: | TargetDeploymentServerCaCertificates | Array | any | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ username?: TargetDeploymentUsername2 | any | string | null | undefined; service: "cloud-sql"; type: TargetDeploymentTypePostgres2; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentClusterEndpointSecretRef = { key: string; name: string; }; export type TargetDeploymentClusterEndpoint = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentClusterEndpointSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentClusterEndpointUnion = | TargetDeploymentClusterEndpoint | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentDatabaseSecretRef2 = { key: string; name: string; }; export type TargetDeploymentDatabase2 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentDatabaseSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentDatabaseUnion1 = | TargetDeploymentDatabase2 | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentPasswordSecretArnSecretRef = { key: string; name: string; }; export type TargetDeploymentPasswordSecretArn = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentPasswordSecretArnSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentPasswordSecretArnUnion = | TargetDeploymentPasswordSecretArn | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentPortSecretRef1 = { key: string; name: string; }; export type TargetDeploymentPort1 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentPortSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentPortUnion1 = TargetDeploymentPort1 | number | any; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentUsernameSecretRef1 = { key: string; name: string; }; export type TargetDeploymentUsername1 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentUsernameSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentUsernameUnion1 = | TargetDeploymentUsername1 | any | string; export const TargetDeploymentTypePostgres1 = { Postgres: "postgres", } as const; export type TargetDeploymentTypePostgres1 = ClosedEnum< typeof TargetDeploymentTypePostgres1 >; /** * AWS Aurora Serverless v2 binding. */ export type TargetDeploymentExternalBindingsAurora = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ clusterEndpoint?: | TargetDeploymentClusterEndpoint | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ database?: TargetDeploymentDatabase2 | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ passwordSecretArn?: | TargetDeploymentPasswordSecretArn | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ port?: TargetDeploymentPort1 | number | any | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ username?: TargetDeploymentUsername1 | any | string | null | undefined; service: "aurora"; type: TargetDeploymentTypePostgres1; }; /** * Connection details for a Postgres database, one variant per backend. */ export type TargetDeploymentExternalBindingsUnion6 = | TargetDeploymentExternalBindingsAurora | TargetDeploymentExternalBindingsCloudSQL | TargetDeploymentExternalBindingsFlexibleServer | TargetDeploymentExternalBindingsExternal | TargetDeploymentExternalBindingsLocalPostgres; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentDefaultDomainSecretRef = { key: string; name: string; }; export type TargetDeploymentDefaultDomain = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentDefaultDomainSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentDefaultDomainUnion = | TargetDeploymentDefaultDomain | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentEnvironmentNameSecretRef = { key: string; name: string; }; export type TargetDeploymentEnvironmentName = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentEnvironmentNameSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentEnvironmentNameUnion = | TargetDeploymentEnvironmentName | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentResourceGroupNameSecretRef3 = { key: string; name: string; }; export type TargetDeploymentResourceGroupName3 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentResourceGroupNameSecretRef3; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentResourceGroupNameUnion3 = | TargetDeploymentResourceGroupName3 | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentResourceIdSecretRef = { key: string; name: string; }; export type TargetDeploymentResourceId = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentResourceIdSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentResourceIdUnion = | TargetDeploymentResourceId | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentStaticIpSecretRef = { key: string; name: string; }; export type TargetDeploymentStaticIp = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentStaticIpSecretRef; }; export const TargetDeploymentTypeContainerAppsEnvironment = { ContainerAppsEnvironment: "container_apps_environment", } as const; export type TargetDeploymentTypeContainerAppsEnvironment = ClosedEnum< typeof TargetDeploymentTypeContainerAppsEnvironment >; /** * Binding configuration for a pre-existing Azure Container Apps Environment. * * @remarks * * Used when deploying to an existing environment instead of having Alien provision one. * This is useful for shared environments (e.g., test infrastructure) or enterprise * setups where environments are managed by a separate team. */ export type TargetDeploymentExternalBindingsContainerAppsEnvironment = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ defaultDomain?: | TargetDeploymentDefaultDomain | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ environmentName?: | TargetDeploymentEnvironmentName | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ resourceGroupName?: | TargetDeploymentResourceGroupName3 | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ resourceId?: TargetDeploymentResourceId | any | string | null | undefined; staticIp?: any | null | undefined; type: TargetDeploymentTypeContainerAppsEnvironment; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentDataDirSecretRef3 = { key: string; name: string; }; export type TargetDeploymentDataDir3 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentDataDirSecretRef3; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentDataDirUnion2 = | TargetDeploymentDataDir3 | any | string; export const TargetDeploymentTypeVault5 = { Vault: "vault", } as const; export type TargetDeploymentTypeVault5 = ClosedEnum< typeof TargetDeploymentTypeVault5 >; /** * Local development vault binding (for testing/development) */ export type TargetDeploymentExternalBindingsLocalVault = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ dataDir?: TargetDeploymentDataDir3 | any | string | null | undefined; /** * The vault name for local storage */ vaultName: string; service: "local-vault"; type: TargetDeploymentTypeVault5; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentNamespaceSecretRef2 = { key: string; name: string; }; export type TargetDeploymentNamespace2 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentNamespaceSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentNamespaceUnion2 = | TargetDeploymentNamespace2 | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentVaultPrefixSecretRef3 = { key: string; name: string; }; export type TargetDeploymentVaultPrefix3 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentVaultPrefixSecretRef3; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentVaultPrefixUnion3 = | TargetDeploymentVaultPrefix3 | any | string; export const TargetDeploymentTypeVault4 = { Vault: "vault", } as const; export type TargetDeploymentTypeVault4 = ClosedEnum< typeof TargetDeploymentTypeVault4 >; /** * Kubernetes Secrets vault binding configuration */ export type TargetDeploymentExternalBindingsKubernetesSecret = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ namespace?: TargetDeploymentNamespace2 | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ vaultPrefix?: TargetDeploymentVaultPrefix3 | any | string | null | undefined; service: "kubernetes-secret"; type: TargetDeploymentTypeVault4; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentVaultNameSecretRef = { key: string; name: string; }; export type TargetDeploymentVaultName = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentVaultNameSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentVaultNameUnion = | TargetDeploymentVaultName | any | string; export const TargetDeploymentTypeVault3 = { Vault: "vault", } as const; export type TargetDeploymentTypeVault3 = ClosedEnum< typeof TargetDeploymentTypeVault3 >; /** * Azure Key Vault binding configuration */ export type TargetDeploymentExternalBindingsKeyVault = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ vaultName?: TargetDeploymentVaultName | any | string | null | undefined; service: "key-vault"; type: TargetDeploymentTypeVault3; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentVaultPrefixSecretRef2 = { key: string; name: string; }; export type TargetDeploymentVaultPrefix2 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentVaultPrefixSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentVaultPrefixUnion2 = | TargetDeploymentVaultPrefix2 | any | string; export const TargetDeploymentTypeVault2 = { Vault: "vault", } as const; export type TargetDeploymentTypeVault2 = ClosedEnum< typeof TargetDeploymentTypeVault2 >; /** * GCP Secret Manager vault binding configuration */ export type TargetDeploymentExternalBindingsSecretManager = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ vaultPrefix?: TargetDeploymentVaultPrefix2 | any | string | null | undefined; service: "secret-manager"; type: TargetDeploymentTypeVault2; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentVaultPrefixSecretRef1 = { key: string; name: string; }; export type TargetDeploymentVaultPrefix1 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentVaultPrefixSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentVaultPrefixUnion1 = | TargetDeploymentVaultPrefix1 | any | string; export const TargetDeploymentTypeVault1 = { Vault: "vault", } as const; export type TargetDeploymentTypeVault1 = ClosedEnum< typeof TargetDeploymentTypeVault1 >; /** * AWS SSM Parameter Store vault binding configuration */ export type TargetDeploymentExternalBindingsParameterStore = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ vaultPrefix?: TargetDeploymentVaultPrefix1 | any | string | null | undefined; service: "parameter-store"; type: TargetDeploymentTypeVault1; }; /** * Represents a vault binding for secure secret management */ export type TargetDeploymentExternalBindingsUnion5 = | TargetDeploymentExternalBindingsParameterStore | TargetDeploymentExternalBindingsSecretManager | TargetDeploymentExternalBindingsKeyVault | TargetDeploymentExternalBindingsKubernetesSecret | TargetDeploymentExternalBindingsLocalVault; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentDataDirSecretRef2 = { key: string; name: string; }; export type TargetDeploymentDataDir2 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentDataDirSecretRef2; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentRegistryUrlSecretRef = { key: string; name: string; }; export type TargetDeploymentRegistryUrl = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentRegistryUrlSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentRegistryUrlUnion = | TargetDeploymentRegistryUrl | any | string; export const TargetDeploymentTypeArtifactRegistry4 = { ArtifactRegistry: "artifact_registry", } as const; export type TargetDeploymentTypeArtifactRegistry4 = ClosedEnum< typeof TargetDeploymentTypeArtifactRegistry4 >; /** * Local container registry binding configuration. * * @remarks * * The local registry runs on localhost only and does not require authentication. * Security boundary is the OS process isolation on the customer's machine. * External image access is secured by the manager's registry proxy (deployment tokens). */ export type TargetDeploymentExternalBindingsLocal = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ dataDir?: any | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ registryUrl?: TargetDeploymentRegistryUrl | any | string | null | undefined; service: "local"; type: TargetDeploymentTypeArtifactRegistry4; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentPullServiceAccountEmailSecretRef = { key: string; name: string; }; export type TargetDeploymentPullServiceAccountEmail = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentPullServiceAccountEmailSecretRef; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentPushServiceAccountEmailSecretRef = { key: string; name: string; }; export type TargetDeploymentPushServiceAccountEmail = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentPushServiceAccountEmailSecretRef; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentRepositoryNameSecretRef = { key: string; name: string; }; export type TargetDeploymentRepositoryName = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentRepositoryNameSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentRepositoryNameUnion = | TargetDeploymentRepositoryName | any | string; export const TargetDeploymentTypeArtifactRegistry3 = { ArtifactRegistry: "artifact_registry", } as const; export type TargetDeploymentTypeArtifactRegistry3 = ClosedEnum< typeof TargetDeploymentTypeArtifactRegistry3 >; /** * Google Artifact Registry binding configuration */ export type TargetDeploymentExternalBindingsGar = { pullServiceAccountEmail?: any | null | undefined; pushServiceAccountEmail?: any | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ repositoryName?: | TargetDeploymentRepositoryName | any | string | null | undefined; service: "gar"; type: TargetDeploymentTypeArtifactRegistry3; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentRegistryNameSecretRef = { key: string; name: string; }; export type TargetDeploymentRegistryName = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentRegistryNameSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentRegistryNameUnion = | TargetDeploymentRegistryName | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentRepositoryPrefixSecretRef2 = { key: string; name: string; }; export type TargetDeploymentRepositoryPrefix2 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentRepositoryPrefixSecretRef2; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentResourceGroupNameSecretRef2 = { key: string; name: string; }; export type TargetDeploymentResourceGroupName2 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentResourceGroupNameSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentResourceGroupNameUnion2 = | TargetDeploymentResourceGroupName2 | any | string; export const TargetDeploymentTypeArtifactRegistry2 = { ArtifactRegistry: "artifact_registry", } as const; export type TargetDeploymentTypeArtifactRegistry2 = ClosedEnum< typeof TargetDeploymentTypeArtifactRegistry2 >; /** * Azure Container Registry binding configuration */ export type TargetDeploymentExternalBindingsAcr = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ registryName?: TargetDeploymentRegistryName | any | string | null | undefined; repositoryPrefix?: any | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ resourceGroupName?: | TargetDeploymentResourceGroupName2 | any | string | null | undefined; service: "acr"; type: TargetDeploymentTypeArtifactRegistry2; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentPullRoleArnSecretRef = { key: string; name: string; }; export type TargetDeploymentPullRoleArn = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentPullRoleArnSecretRef; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentPushRoleArnSecretRef = { key: string; name: string; }; export type TargetDeploymentPushRoleArn = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentPushRoleArnSecretRef; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentRepositoryPrefixSecretRef1 = { key: string; name: string; }; export type TargetDeploymentRepositoryPrefix1 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentRepositoryPrefixSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentRepositoryPrefixUnion = | TargetDeploymentRepositoryPrefix1 | any | string; export const TargetDeploymentTypeArtifactRegistry1 = { ArtifactRegistry: "artifact_registry", } as const; export type TargetDeploymentTypeArtifactRegistry1 = ClosedEnum< typeof TargetDeploymentTypeArtifactRegistry1 >; /** * AWS ECR (Elastic Container Registry) binding configuration */ export type TargetDeploymentExternalBindingsEcr = { pullRoleArn?: any | null | undefined; pushRoleArn?: any | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ repositoryPrefix?: | TargetDeploymentRepositoryPrefix1 | any | string | null | undefined; service: "ecr"; type: TargetDeploymentTypeArtifactRegistry1; }; /** * Service-type based artifact registry binding that supports multiple registry providers */ export type TargetDeploymentExternalBindingsUnion4 = | TargetDeploymentExternalBindingsEcr | TargetDeploymentExternalBindingsAcr | TargetDeploymentExternalBindingsGar | TargetDeploymentExternalBindingsLocal; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentDataDirSecretRef1 = { key: string; name: string; }; export type TargetDeploymentDataDir1 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentDataDirSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentDataDirUnion1 = | TargetDeploymentDataDir1 | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentKeyPrefixSecretRef2 = { key: string; name: string; }; export type TargetDeploymentKeyPrefix2 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentKeyPrefixSecretRef2; }; export const TargetDeploymentTypeKv5 = { Kv: "kv", } as const; export type TargetDeploymentTypeKv5 = ClosedEnum< typeof TargetDeploymentTypeKv5 >; /** * Local development KV binding configuration */ export type TargetDeploymentExternalBindingsLocalKv = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ dataDir?: TargetDeploymentDataDir1 | any | string | null | undefined; keyPrefix?: any | null | undefined; service: "local-kv"; type: TargetDeploymentTypeKv5; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentConnectionUrlSecretRef = { key: string; name: string; }; export type TargetDeploymentConnectionUrl = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentConnectionUrlSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentConnectionUrlUnion = | TargetDeploymentConnectionUrl | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentDatabaseSecretRef1 = { key: string; name: string; }; export type TargetDeploymentDatabase1 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentDatabaseSecretRef1; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentKeyPrefixSecretRef1 = { key: string; name: string; }; export type TargetDeploymentKeyPrefix1 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentKeyPrefixSecretRef1; }; export const TargetDeploymentTypeKv4 = { Kv: "kv", } as const; export type TargetDeploymentTypeKv4 = ClosedEnum< typeof TargetDeploymentTypeKv4 >; /** * Redis KV binding configuration */ export type TargetDeploymentExternalBindingsRedis = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ connectionUrl?: | TargetDeploymentConnectionUrl | any | string | null | undefined; database?: any | null | undefined; keyPrefix?: any | null | undefined; service: "redis"; type: TargetDeploymentTypeKv4; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentAccountNameSecretRef2 = { key: string; name: string; }; export type TargetDeploymentAccountName2 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentAccountNameSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentAccountNameUnion2 = | TargetDeploymentAccountName2 | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentResourceGroupNameSecretRef1 = { key: string; name: string; }; export type TargetDeploymentResourceGroupName1 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentResourceGroupNameSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentResourceGroupNameUnion1 = | TargetDeploymentResourceGroupName1 | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentTableNameSecretRef2 = { key: string; name: string; }; export type TargetDeploymentTableName2 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentTableNameSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentTableNameUnion2 = | TargetDeploymentTableName2 | any | string; export const TargetDeploymentTypeKv3 = { Kv: "kv", } as const; export type TargetDeploymentTypeKv3 = ClosedEnum< typeof TargetDeploymentTypeKv3 >; /** * Azure Table Storage KV binding configuration */ export type TargetDeploymentExternalBindingsTablestorage = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ accountName?: TargetDeploymentAccountName2 | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ resourceGroupName?: | TargetDeploymentResourceGroupName1 | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ tableName?: TargetDeploymentTableName2 | any | string | null | undefined; service: "tablestorage"; type: TargetDeploymentTypeKv3; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentCollectionNameSecretRef = { key: string; name: string; }; export type TargetDeploymentCollectionName = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentCollectionNameSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentCollectionNameUnion = | TargetDeploymentCollectionName | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentDatabaseIdSecretRef = { key: string; name: string; }; export type TargetDeploymentDatabaseId = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentDatabaseIdSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentDatabaseIdUnion = | TargetDeploymentDatabaseId | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentProjectIdSecretRef = { key: string; name: string; }; export type TargetDeploymentProjectId = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentProjectIdSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentProjectIdUnion = | TargetDeploymentProjectId | any | string; export const TargetDeploymentTypeKv2 = { Kv: "kv", } as const; export type TargetDeploymentTypeKv2 = ClosedEnum< typeof TargetDeploymentTypeKv2 >; /** * GCP Firestore KV binding configuration */ export type TargetDeploymentExternalBindingsFirestore = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ collectionName?: | TargetDeploymentCollectionName | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ databaseId?: TargetDeploymentDatabaseId | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ projectId?: TargetDeploymentProjectId | any | string | null | undefined; service: "firestore"; type: TargetDeploymentTypeKv2; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentEndpointUrlSecretRef = { key: string; name: string; }; export type TargetDeploymentEndpointUrl = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentEndpointUrlSecretRef; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentRegionSecretRef = { key: string; name: string; }; export type TargetDeploymentRegion = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentRegionSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentRegionUnion = TargetDeploymentRegion | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentTableNameSecretRef1 = { key: string; name: string; }; export type TargetDeploymentTableName1 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentTableNameSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentTableNameUnion1 = | TargetDeploymentTableName1 | any | string; export const TargetDeploymentTypeKv1 = { Kv: "kv", } as const; export type TargetDeploymentTypeKv1 = ClosedEnum< typeof TargetDeploymentTypeKv1 >; /** * AWS DynamoDB KV binding configuration */ export type TargetDeploymentExternalBindingsDynamodb = { endpointUrl?: any | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ region?: TargetDeploymentRegion | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ tableName?: TargetDeploymentTableName1 | any | string | null | undefined; service: "dynamodb"; type: TargetDeploymentTypeKv1; }; /** * Represents a KV binding for key-value storage across platforms */ export type TargetDeploymentExternalBindingsUnion3 = | TargetDeploymentExternalBindingsDynamodb | TargetDeploymentExternalBindingsFirestore | TargetDeploymentExternalBindingsTablestorage | TargetDeploymentExternalBindingsRedis | TargetDeploymentExternalBindingsLocalKv; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentQueuePathSecretRef = { key: string; name: string; }; export type TargetDeploymentQueuePath = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentQueuePathSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentQueuePathUnion = | TargetDeploymentQueuePath | any | string; export const TargetDeploymentTypeQueue4 = { Queue: "queue", } as const; export type TargetDeploymentTypeQueue4 = ClosedEnum< typeof TargetDeploymentTypeQueue4 >; /** * Local queue parameters */ export type TargetDeploymentExternalBindingsLocalQueue = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ queuePath?: TargetDeploymentQueuePath | any | string | null | undefined; service: "local-queue"; type: TargetDeploymentTypeQueue4; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentNamespaceSecretRef1 = { key: string; name: string; }; export type TargetDeploymentNamespace1 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentNamespaceSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentNamespaceUnion1 = | TargetDeploymentNamespace1 | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentQueueNameSecretRef = { key: string; name: string; }; export type TargetDeploymentQueueName = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentQueueNameSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentQueueNameUnion = | TargetDeploymentQueueName | any | string; export const TargetDeploymentTypeQueue3 = { Queue: "queue", } as const; export type TargetDeploymentTypeQueue3 = ClosedEnum< typeof TargetDeploymentTypeQueue3 >; /** * Azure Service Bus parameters */ export type TargetDeploymentExternalBindingsServicebus = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ namespace?: TargetDeploymentNamespace1 | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ queueName?: TargetDeploymentQueueName | any | string | null | undefined; service: "servicebus"; type: TargetDeploymentTypeQueue3; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentSubscriptionSecretRef = { key: string; name: string; }; export type TargetDeploymentSubscription = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentSubscriptionSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentSubscriptionUnion = | TargetDeploymentSubscription | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentTopicSecretRef = { key: string; name: string; }; export type TargetDeploymentTopic = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentTopicSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentTopicUnion = TargetDeploymentTopic | any | string; export const TargetDeploymentTypeQueue2 = { Queue: "queue", } as const; export type TargetDeploymentTypeQueue2 = ClosedEnum< typeof TargetDeploymentTypeQueue2 >; /** * GCP Pub/Sub parameters */ export type TargetDeploymentExternalBindingsPubsub = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ subscription?: TargetDeploymentSubscription | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ topic?: TargetDeploymentTopic | any | string | null | undefined; service: "pubsub"; type: TargetDeploymentTypeQueue2; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentQueueUrlSecretRef = { key: string; name: string; }; export type TargetDeploymentQueueUrl = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentQueueUrlSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentQueueUrlUnion = | TargetDeploymentQueueUrl | any | string; export const TargetDeploymentTypeQueue1 = { Queue: "queue", } as const; export type TargetDeploymentTypeQueue1 = ClosedEnum< typeof TargetDeploymentTypeQueue1 >; /** * AWS SQS queue parameters */ export type TargetDeploymentExternalBindingsSqs = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ queueUrl?: TargetDeploymentQueueUrl | any | string | null | undefined; service: "sqs"; type: TargetDeploymentTypeQueue1; }; /** * Binding parameters for Queue at runtime or in templates. */ export type TargetDeploymentExternalBindingsUnion2 = | TargetDeploymentExternalBindingsSqs | TargetDeploymentExternalBindingsPubsub | TargetDeploymentExternalBindingsServicebus | TargetDeploymentExternalBindingsLocalQueue; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentStoragePathSecretRef = { key: string; name: string; }; export type TargetDeploymentStoragePath = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentStoragePathSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentStoragePathUnion = | TargetDeploymentStoragePath | any | string; export const TargetDeploymentTypeStorage4 = { Storage: "storage", } as const; export type TargetDeploymentTypeStorage4 = ClosedEnum< typeof TargetDeploymentTypeStorage4 >; /** * Local filesystem storage binding configuration */ export type TargetDeploymentExternalBindingsLocalStorage = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ storagePath?: TargetDeploymentStoragePath | any | string | null | undefined; service: "local-storage"; type: TargetDeploymentTypeStorage4; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentBucketNameSecretRef2 = { key: string; name: string; }; export type TargetDeploymentBucketName2 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentBucketNameSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentBucketNameUnion2 = | TargetDeploymentBucketName2 | any | string; export const TargetDeploymentTypeStorage3 = { Storage: "storage", } as const; export type TargetDeploymentTypeStorage3 = ClosedEnum< typeof TargetDeploymentTypeStorage3 >; /** * Google Cloud Storage binding configuration */ export type TargetDeploymentExternalBindingsGcs = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ bucketName?: TargetDeploymentBucketName2 | any | string | null | undefined; service: "gcs"; type: TargetDeploymentTypeStorage3; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentAccountNameSecretRef1 = { key: string; name: string; }; export type TargetDeploymentAccountName1 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentAccountNameSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentAccountNameUnion1 = | TargetDeploymentAccountName1 | any | string; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentContainerNameSecretRef = { key: string; name: string; }; export type TargetDeploymentContainerName = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentContainerNameSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentContainerNameUnion = | TargetDeploymentContainerName | any | string; export const TargetDeploymentTypeStorage2 = { Storage: "storage", } as const; export type TargetDeploymentTypeStorage2 = ClosedEnum< typeof TargetDeploymentTypeStorage2 >; /** * Azure Blob Storage binding configuration */ export type TargetDeploymentExternalBindingsBlob = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ accountName?: TargetDeploymentAccountName1 | any | string | null | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ containerName?: | TargetDeploymentContainerName | any | string | null | undefined; service: "blob"; type: TargetDeploymentTypeStorage2; }; /** * Reference to a Kubernetes Secret */ export type TargetDeploymentBucketNameSecretRef1 = { key: string; name: string; }; export type TargetDeploymentBucketName1 = { /** * Reference to a Kubernetes Secret */ secretRef: TargetDeploymentBucketNameSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type TargetDeploymentBucketNameUnion1 = | TargetDeploymentBucketName1 | any | string; export const TargetDeploymentTypeStorage1 = { Storage: "storage", } as const; export type TargetDeploymentTypeStorage1 = ClosedEnum< typeof TargetDeploymentTypeStorage1 >; /** * AWS S3 storage binding configuration */ export type TargetDeploymentExternalBindingsS3 = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ bucketName?: TargetDeploymentBucketName1 | any | string | null | undefined; service: "s3"; type: TargetDeploymentTypeStorage1; }; /** * Service-type based storage binding that supports multiple storage providers */ export type TargetDeploymentExternalBindingsUnion1 = | TargetDeploymentExternalBindingsS3 | TargetDeploymentExternalBindingsBlob | TargetDeploymentExternalBindingsGcs | TargetDeploymentExternalBindingsLocalStorage; /** * Represents a binding to pre-existing infrastructure. * * @remarks * * The binding type must match the resource type it's applied to. * Validated at runtime by the executor. */ export type TargetDeploymentExternalBindingsUnion7 = | TargetDeploymentExternalBindingsAi | TargetDeploymentExternalBindingsContainerAppsEnvironment | TargetDeploymentExternalBindingsS3 | TargetDeploymentExternalBindingsBlob | TargetDeploymentExternalBindingsGcs | TargetDeploymentExternalBindingsLocalStorage | TargetDeploymentExternalBindingsSqs | TargetDeploymentExternalBindingsPubsub | TargetDeploymentExternalBindingsServicebus | TargetDeploymentExternalBindingsLocalQueue | TargetDeploymentExternalBindingsDynamodb | TargetDeploymentExternalBindingsFirestore | TargetDeploymentExternalBindingsTablestorage | TargetDeploymentExternalBindingsRedis | TargetDeploymentExternalBindingsLocalKv | TargetDeploymentExternalBindingsEcr | TargetDeploymentExternalBindingsAcr | TargetDeploymentExternalBindingsGar | TargetDeploymentExternalBindingsLocal | TargetDeploymentExternalBindingsParameterStore | TargetDeploymentExternalBindingsSecretManager | TargetDeploymentExternalBindingsKeyVault | TargetDeploymentExternalBindingsKubernetesSecret | TargetDeploymentExternalBindingsLocalVault | TargetDeploymentExternalBindingsAurora | TargetDeploymentExternalBindingsCloudSQL | TargetDeploymentExternalBindingsFlexibleServer | TargetDeploymentExternalBindingsExternal | TargetDeploymentExternalBindingsLocalPostgres; export const ConfigPlatformKubernetes = { Kubernetes: "kubernetes", } as const; export type ConfigPlatformKubernetes = ClosedEnum< typeof ConfigPlatformKubernetes >; export type TargetDeploymentManagementConfigKubernetes = { platform: ConfigPlatformKubernetes; }; export const ConfigPlatformAzure = { Azure: "azure", } as const; export type ConfigPlatformAzure = ClosedEnum; /** * Azure management configuration extracted from stack settings */ export type TargetDeploymentManagementConfigAzure = { /** * 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: ConfigPlatformAzure; }; export const ConfigPlatformGcp = { Gcp: "gcp", } as const; export type ConfigPlatformGcp = ClosedEnum; /** * GCP management configuration extracted from stack settings */ export type TargetDeploymentManagementConfigGcp = { /** * Service account email for management roles */ serviceAccountEmail: string; platform: ConfigPlatformGcp; }; export const ConfigPlatformAws = { Aws: "aws", } as const; export type ConfigPlatformAws = ClosedEnum; /** * AWS management configuration extracted from stack settings */ export type TargetDeploymentManagementConfigAws = { /** * The managing AWS IAM role ARN that can assume cross-account roles */ managingRoleArn: string; platform: ConfigPlatformAws; }; export type TargetDeploymentManagementConfigUnion = | TargetDeploymentManagementConfigAzure | TargetDeploymentManagementConfigAws | TargetDeploymentManagementConfigGcp | TargetDeploymentManagementConfigKubernetes | any; /** * OTLP log export configuration for a deployment. * * @remarks * * When set, injected compute runtimes export captured application logs * through the given endpoint via OTLP/HTTP; which resources are injected * is platform-dependent. Workers read auth headers from a runtime-only * secret. Runtime-less Containers and Daemons receive standard OTEL auth * variables only at the final hosting boundary: Local passes them directly * to the process and Kubernetes projects them from a per-workload Secret. */ export type TargetDeploymentMonitoring = { /** * Auth header value in "key=value,..." format. * * @remarks * Example: "authorization=Bearer " */ logsAuthHeader: string; /** * Full OTLP logs endpoint URL. * * @remarks * Example: "https:///v1/logs" */ logsEndpoint: string; /** * Auth header value for the metrics endpoint in "key=value,..." format (optional). * * @remarks * * When absent, `logs_auth_header` is reused for metrics -- suitable when the same * credential covers both signals. When present (e.g. Axiom with separate datasets), * this value is used exclusively for metrics. * * Example: "authorization=Bearer ,x-axiom-dataset=" */ metricsAuthHeader?: string | null | undefined; /** * Full OTLP metrics endpoint URL (optional). * * @remarks * When set, the worker runtime exports its own VM/container orchestration metrics here. * Example: "https://api.axiom.co/v1/metrics" */ metricsEndpoint?: string | null | undefined; /** * Resource attributes attached to every OTLP signal emitted for this deployment. * * @remarks * * Platform managers use this for stable identity such as `alien.workspace_id`, * `alien.project_id`, `alien.deployment_group_id`, and `alien.deployment_id`. * Runtime-specific resource attributes such as `service.name` remain owned by * the runtime/exporter. */ resourceAttributes?: { [k: string]: string } | undefined; }; export type TargetDeploymentMonitoringUnion = TargetDeploymentMonitoring | any; /** * Failure-domain policy selected for a compute pool. */ export type TargetDeploymentFailureDomains2 = { /** * 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 TargetDeploymentFailureDomainsUnion2 = | TargetDeploymentFailureDomains2 | any; export type TargetDeploymentPoolsAutoscale = { failureDomains?: TargetDeploymentFailureDomains2 | 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 TargetDeploymentFailureDomains1 = { /** * 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 TargetDeploymentFailureDomainsUnion1 = | TargetDeploymentFailureDomains1 | any; export type TargetDeploymentPoolsFixed = { failureDomains?: TargetDeploymentFailureDomains1 | 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 TargetDeploymentPoolsUnion = | TargetDeploymentPoolsFixed | TargetDeploymentPoolsAutoscale; /** * 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 TargetDeploymentCompute = { /** * Selected compute choices keyed by pool ID. */ pools?: { [k: string]: TargetDeploymentPoolsFixed | TargetDeploymentPoolsAutoscale; } | undefined; }; export type TargetDeploymentComputeUnion = TargetDeploymentCompute | any; /** * Deployment model: how updates are delivered to the remote environment. */ export const TargetDeploymentDeploymentModel = { Push: "push", Pull: "pull", } as const; /** * Deployment model: how updates are delivered to the remote environment. */ export type TargetDeploymentDeploymentModel = ClosedEnum< typeof TargetDeploymentDeploymentModel >; export type TargetDeploymentAwsStackSettings = { certificateArn: string; }; export type TargetDeploymentStackSettingsAwsUnion = | TargetDeploymentAwsStackSettings | any; export type AzureConfigStackSettings = { keyVaultCertificateId: string; keyVaultResourceId?: string | null | undefined; }; export type ConfigStackSettingsAzureUnion = AzureConfigStackSettings | any; export type GcpConfigStackSettings = { certificateName: string; }; export type ConfigStackSettingsGcpUnion = GcpConfigStackSettings | any; /** * Namespace-scoped Kubernetes TLS Secret reference. */ export type TargetDeploymentTlsSecretRef = { /** * Secret namespace. Defaults to the release namespace when omitted. */ namespace?: string | null | undefined; /** * Secret name. */ secretName: string; }; export type TargetDeploymentDomainsKubernetes = { /** * Namespace-scoped Kubernetes TLS Secret reference. */ tlsSecretRef: TargetDeploymentTlsSecretRef; }; export type TargetDeploymentDomainsKubernetesUnion = | TargetDeploymentDomainsKubernetes | any; /** * Platform-specific certificate references for custom domains. */ export type TargetDeploymentDomainsCertificate = { aws?: TargetDeploymentAwsStackSettings | any | null | undefined; azure?: AzureConfigStackSettings | any | null | undefined; gcp?: GcpConfigStackSettings | any | null | undefined; kubernetes?: TargetDeploymentDomainsKubernetes | any | null | undefined; }; /** * Custom domain configuration for a single resource. */ export type TargetDeploymentCustomDomains = { /** * Platform-specific certificate references for custom domains. */ certificate: TargetDeploymentDomainsCertificate; /** * Fully qualified domain name to use. */ domain: string; }; export const TargetDeploymentModeLoadBalancer = { LoadBalancer: "loadBalancer", } as const; export type TargetDeploymentModeLoadBalancer = ClosedEnum< typeof TargetDeploymentModeLoadBalancer >; export type TargetDeploymentPublicEndpointTargetLoadBalancer = { /** * DNS name or URL for the external load balancer. */ cnameTarget: string; mode: TargetDeploymentModeLoadBalancer; }; export const TargetDeploymentModeMachineAddresses = { MachineAddresses: "machineAddresses", } as const; export type TargetDeploymentModeMachineAddresses = ClosedEnum< typeof TargetDeploymentModeMachineAddresses >; export type TargetDeploymentPublicEndpointTargetMachineAddresses = { mode: TargetDeploymentModeMachineAddresses; }; export type TargetDeploymentPublicEndpointTargetUnion = | TargetDeploymentPublicEndpointTargetLoadBalancer | TargetDeploymentPublicEndpointTargetMachineAddresses | 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 TargetDeploymentDomains = { /** * Custom domain configuration per resource ID. */ customDomains?: | { [k: string]: TargetDeploymentCustomDomains } | null | undefined; publicEndpointTarget?: | TargetDeploymentPublicEndpointTargetLoadBalancer | TargetDeploymentPublicEndpointTargetMachineAddresses | any | null | undefined; }; export type TargetDeploymentDomainsUnion = TargetDeploymentDomains | 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 TargetDeploymentStackSettingsExternalBindings = {}; /** * How heartbeat health checks are handled. */ export const TargetDeploymentHeartbeats = { Off: "off", On: "on", } as const; /** * How heartbeat health checks are handled. */ export type TargetDeploymentHeartbeats = ClosedEnum< typeof TargetDeploymentHeartbeats >; /** * Optional provider-specific identity for a cloud-backed Kubernetes cluster. */ export type TargetDeploymentCloud = { 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 TargetDeploymentCloudUnion = TargetDeploymentCloud | any; /** * Ownership model for the Kubernetes cluster. */ export const TargetDeploymentOwnership = { Managed: "managed", Existing: "existing", External: "external", } as const; /** * Ownership model for the Kubernetes cluster. */ export type TargetDeploymentOwnership = ClosedEnum< typeof TargetDeploymentOwnership >; /** * Kubernetes cluster setup settings. */ export type TargetDeploymentCluster = { cloud?: TargetDeploymentCloud | any | null | undefined; /** * Namespace where the Alien chart and application resources run. */ namespace?: string | null | undefined; /** * Ownership model for the Kubernetes cluster. */ ownership: TargetDeploymentOwnership; }; export type TargetDeploymentClusterUnion = TargetDeploymentCluster | any; export type TargetDeploymentCertificateNone2 = { mode: "none"; }; export type TargetDeploymentCertificateManagedTLSSecret2 = { mode: "managedTlsSecret"; /** * Secret name template. Runtime may substitute resource/deployment tokens. */ secretNameTemplate: string; }; export type TargetDeploymentCertificateAwsAcmArn2 = { /** * Existing ACM certificate ARN. */ certificateArn: string; mode: "awsAcmArn"; }; export type TargetDeploymentCertificateManagedAcmImport2 = { 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 TargetDeploymentCertificateTLSSecretRef2 = { /** * 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 TargetDeploymentCertificateUnion2 = | TargetDeploymentCertificateTLSSecretRef2 | TargetDeploymentCertificateManagedAcmImport2 | TargetDeploymentCertificateAwsAcmArn2 | TargetDeploymentCertificateManagedTLSSecret2 | TargetDeploymentCertificateNone2; export const TargetDeploymentModeCustom = { Custom: "custom", } as const; export type TargetDeploymentModeCustom = ClosedEnum< typeof TargetDeploymentModeCustom >; export const TargetDeploymentProviderAzureApplicationGatewayForContainersEnum4 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type TargetDeploymentProviderAzureApplicationGatewayForContainersEnum4 = ClosedEnum< typeof TargetDeploymentProviderAzureApplicationGatewayForContainersEnum4 >; export type TargetDeploymentProviderAzureApplicationGatewayForContainers4 = { /** * 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: TargetDeploymentProviderAzureApplicationGatewayForContainersEnum4; }; export const TargetDeploymentProviderGkeGatewayEnum4 = { GkeGateway: "gkeGateway", } as const; export type TargetDeploymentProviderGkeGatewayEnum4 = ClosedEnum< typeof TargetDeploymentProviderGkeGatewayEnum4 >; export type TargetDeploymentProviderGkeGateway4 = { provider: TargetDeploymentProviderGkeGatewayEnum4; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const TargetDeploymentProviderAwsAlbEnum4 = { AwsAlb: "awsAlb", } as const; export type TargetDeploymentProviderAwsAlbEnum4 = ClosedEnum< typeof TargetDeploymentProviderAwsAlbEnum4 >; export type TargetDeploymentProviderAwsAlb4 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: TargetDeploymentProviderAwsAlbEnum4; /** * 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 TargetDeploymentProviderUnion4 = | TargetDeploymentProviderAwsAlb4 | TargetDeploymentProviderAzureApplicationGatewayForContainers4 | TargetDeploymentProviderGkeGateway4 | any; /** * Shared Gateway API route profile values. */ export type TargetDeploymentRouteGateway2 = { /** * 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?: | TargetDeploymentProviderAwsAlb4 | TargetDeploymentProviderAzureApplicationGatewayForContainers4 | TargetDeploymentProviderGkeGateway4 | any | null | undefined; routeApi: "gateway"; }; export const TargetDeploymentProviderAzureApplicationGatewayForContainersEnum3 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type TargetDeploymentProviderAzureApplicationGatewayForContainersEnum3 = ClosedEnum< typeof TargetDeploymentProviderAzureApplicationGatewayForContainersEnum3 >; export type TargetDeploymentProviderAzureApplicationGatewayForContainers3 = { /** * 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: TargetDeploymentProviderAzureApplicationGatewayForContainersEnum3; }; export const TargetDeploymentProviderGkeGatewayEnum3 = { GkeGateway: "gkeGateway", } as const; export type TargetDeploymentProviderGkeGatewayEnum3 = ClosedEnum< typeof TargetDeploymentProviderGkeGatewayEnum3 >; export type TargetDeploymentProviderGkeGateway3 = { provider: TargetDeploymentProviderGkeGatewayEnum3; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const TargetDeploymentProviderAwsAlbEnum3 = { AwsAlb: "awsAlb", } as const; export type TargetDeploymentProviderAwsAlbEnum3 = ClosedEnum< typeof TargetDeploymentProviderAwsAlbEnum3 >; export type TargetDeploymentProviderAwsAlb3 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: TargetDeploymentProviderAwsAlbEnum3; /** * 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 TargetDeploymentProviderUnion3 = | TargetDeploymentProviderAwsAlb3 | TargetDeploymentProviderAzureApplicationGatewayForContainers3 | TargetDeploymentProviderGkeGateway3 | any; /** * Shared Ingress route profile values. */ export type TargetDeploymentRouteIngress2 = { /** * 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?: | TargetDeploymentProviderAwsAlb3 | TargetDeploymentProviderAzureApplicationGatewayForContainers3 | TargetDeploymentProviderGkeGateway3 | any | null | undefined; routeApi: "ingress"; }; /** * Kubernetes route API selected for public endpoints. */ export type TargetDeploymentRouteUnion2 = | TargetDeploymentRouteIngress2 | TargetDeploymentRouteGateway2; export type TargetDeploymentExposureCustom = { /** * Certificate publication or reference mode for Kubernetes public endpoints. */ certificate: | TargetDeploymentCertificateTLSSecretRef2 | TargetDeploymentCertificateManagedAcmImport2 | TargetDeploymentCertificateAwsAcmArn2 | TargetDeploymentCertificateManagedTLSSecret2 | TargetDeploymentCertificateNone2; /** * Hostname routed by the Kubernetes public endpoint. */ domain: string; mode: TargetDeploymentModeCustom; /** * Kubernetes route API selected for public endpoints. */ route: TargetDeploymentRouteIngress2 | TargetDeploymentRouteGateway2; }; export type TargetDeploymentCertificateNone1 = { mode: "none"; }; export type TargetDeploymentCertificateManagedTLSSecret1 = { mode: "managedTlsSecret"; /** * Secret name template. Runtime may substitute resource/deployment tokens. */ secretNameTemplate: string; }; export type TargetDeploymentCertificateAwsAcmArn1 = { /** * Existing ACM certificate ARN. */ certificateArn: string; mode: "awsAcmArn"; }; export type TargetDeploymentCertificateManagedAcmImport1 = { 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 TargetDeploymentCertificateTLSSecretRef1 = { /** * 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 TargetDeploymentCertificateUnion1 = | TargetDeploymentCertificateTLSSecretRef1 | TargetDeploymentCertificateManagedAcmImport1 | TargetDeploymentCertificateAwsAcmArn1 | TargetDeploymentCertificateManagedTLSSecret1 | TargetDeploymentCertificateNone1; export const TargetDeploymentModeGenerated = { Generated: "generated", } as const; export type TargetDeploymentModeGenerated = ClosedEnum< typeof TargetDeploymentModeGenerated >; export const TargetDeploymentProviderAzureApplicationGatewayForContainersEnum2 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type TargetDeploymentProviderAzureApplicationGatewayForContainersEnum2 = ClosedEnum< typeof TargetDeploymentProviderAzureApplicationGatewayForContainersEnum2 >; export type TargetDeploymentProviderAzureApplicationGatewayForContainers2 = { /** * 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: TargetDeploymentProviderAzureApplicationGatewayForContainersEnum2; }; export const TargetDeploymentProviderGkeGatewayEnum2 = { GkeGateway: "gkeGateway", } as const; export type TargetDeploymentProviderGkeGatewayEnum2 = ClosedEnum< typeof TargetDeploymentProviderGkeGatewayEnum2 >; export type TargetDeploymentProviderGkeGateway2 = { provider: TargetDeploymentProviderGkeGatewayEnum2; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const TargetDeploymentProviderAwsAlbEnum2 = { AwsAlb: "awsAlb", } as const; export type TargetDeploymentProviderAwsAlbEnum2 = ClosedEnum< typeof TargetDeploymentProviderAwsAlbEnum2 >; export type TargetDeploymentProviderAwsAlb2 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: TargetDeploymentProviderAwsAlbEnum2; /** * 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 TargetDeploymentProviderUnion2 = | TargetDeploymentProviderAwsAlb2 | TargetDeploymentProviderAzureApplicationGatewayForContainers2 | TargetDeploymentProviderGkeGateway2 | any; /** * Shared Gateway API route profile values. */ export type TargetDeploymentRouteGateway1 = { /** * 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?: | TargetDeploymentProviderAwsAlb2 | TargetDeploymentProviderAzureApplicationGatewayForContainers2 | TargetDeploymentProviderGkeGateway2 | any | null | undefined; routeApi: "gateway"; }; export const TargetDeploymentProviderAzureApplicationGatewayForContainersEnum1 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type TargetDeploymentProviderAzureApplicationGatewayForContainersEnum1 = ClosedEnum< typeof TargetDeploymentProviderAzureApplicationGatewayForContainersEnum1 >; export type TargetDeploymentProviderAzureApplicationGatewayForContainers1 = { /** * 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: TargetDeploymentProviderAzureApplicationGatewayForContainersEnum1; }; export const TargetDeploymentProviderGkeGatewayEnum1 = { GkeGateway: "gkeGateway", } as const; export type TargetDeploymentProviderGkeGatewayEnum1 = ClosedEnum< typeof TargetDeploymentProviderGkeGatewayEnum1 >; export type TargetDeploymentProviderGkeGateway1 = { provider: TargetDeploymentProviderGkeGatewayEnum1; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const TargetDeploymentProviderAwsAlbEnum1 = { AwsAlb: "awsAlb", } as const; export type TargetDeploymentProviderAwsAlbEnum1 = ClosedEnum< typeof TargetDeploymentProviderAwsAlbEnum1 >; export type TargetDeploymentProviderAwsAlb1 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: TargetDeploymentProviderAwsAlbEnum1; /** * 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 TargetDeploymentProviderUnion1 = | TargetDeploymentProviderAwsAlb1 | TargetDeploymentProviderAzureApplicationGatewayForContainers1 | TargetDeploymentProviderGkeGateway1 | any; /** * Shared Ingress route profile values. */ export type TargetDeploymentRouteIngress1 = { /** * 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?: | TargetDeploymentProviderAwsAlb1 | TargetDeploymentProviderAzureApplicationGatewayForContainers1 | TargetDeploymentProviderGkeGateway1 | any | null | undefined; routeApi: "ingress"; }; /** * Kubernetes route API selected for public endpoints. */ export type TargetDeploymentRouteUnion1 = | TargetDeploymentRouteIngress1 | TargetDeploymentRouteGateway1; export type TargetDeploymentExposureGenerated = { /** * Certificate publication or reference mode for Kubernetes public endpoints. */ certificate: | TargetDeploymentCertificateTLSSecretRef1 | TargetDeploymentCertificateManagedAcmImport1 | TargetDeploymentCertificateAwsAcmArn1 | TargetDeploymentCertificateManagedTLSSecret1 | TargetDeploymentCertificateNone1; mode: TargetDeploymentModeGenerated; /** * Kubernetes route API selected for public endpoints. */ route: TargetDeploymentRouteIngress1 | TargetDeploymentRouteGateway1; }; export const TargetDeploymentModeDisabled = { Disabled: "disabled", } as const; export type TargetDeploymentModeDisabled = ClosedEnum< typeof TargetDeploymentModeDisabled >; export type TargetDeploymentExposureDisabled = { mode: TargetDeploymentModeDisabled; }; export type TargetDeploymentExposureUnion = | TargetDeploymentExposureCustom | TargetDeploymentExposureGenerated | TargetDeploymentExposureDisabled | 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 TargetDeploymentKubernetes = { cluster?: TargetDeploymentCluster | any | null | undefined; exposure?: | TargetDeploymentExposureCustom | TargetDeploymentExposureGenerated | TargetDeploymentExposureDisabled | any | null | undefined; }; export type TargetDeploymentKubernetesUnion = TargetDeploymentKubernetes | any; export const TargetDeploymentTypeByoVnetAzure = { ByoVnetAzure: "byo-vnet-azure", } as const; export type TargetDeploymentTypeByoVnetAzure = ClosedEnum< typeof TargetDeploymentTypeByoVnetAzure >; export type TargetDeploymentNetworkByoVnetAzure = { /** * 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: TargetDeploymentTypeByoVnetAzure; /** * The full resource ID of the existing VNet */ vnetResourceId: string; }; export const TargetDeploymentTypeByoVpcGcp = { ByoVpcGcp: "byo-vpc-gcp", } as const; export type TargetDeploymentTypeByoVpcGcp = ClosedEnum< typeof TargetDeploymentTypeByoVpcGcp >; export type TargetDeploymentNetworkByoVpcGcp = { /** * 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: TargetDeploymentTypeByoVpcGcp; }; export const TargetDeploymentTypeByoVpcAws = { ByoVpcAws: "byo-vpc-aws", } as const; export type TargetDeploymentTypeByoVpcAws = ClosedEnum< typeof TargetDeploymentTypeByoVpcAws >; export type TargetDeploymentNetworkByoVpcAws = { /** * 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: TargetDeploymentTypeByoVpcAws; /** * The ID of the existing VPC */ vpcId: string; }; export const TargetDeploymentTypeCreate = { Create: "create", } as const; export type TargetDeploymentTypeCreate = ClosedEnum< typeof TargetDeploymentTypeCreate >; export type TargetDeploymentNetworkCreate = { /** * 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: TargetDeploymentTypeCreate; }; export const TargetDeploymentTypeUseDefault = { UseDefault: "use-default", } as const; export type TargetDeploymentTypeUseDefault = ClosedEnum< typeof TargetDeploymentTypeUseDefault >; export type TargetDeploymentNetworkUseDefault = { type: TargetDeploymentTypeUseDefault; }; export type TargetDeploymentNetworkUnion = | TargetDeploymentNetworkByoVpcAws | TargetDeploymentNetworkByoVpcGcp | TargetDeploymentNetworkByoVnetAzure | TargetDeploymentNetworkUseDefault | TargetDeploymentNetworkCreate | any; /** * How telemetry (logs, metrics, traces) is handled. */ export const TargetDeploymentTelemetry = { Off: "off", Auto: "auto", ApprovalRequired: "approval-required", } as const; /** * How telemetry (logs, metrics, traces) is handled. */ export type TargetDeploymentTelemetry = ClosedEnum< typeof TargetDeploymentTelemetry >; /** * How updates are delivered to the deployment. */ export const TargetDeploymentUpdates = { Auto: "auto", ApprovalRequired: "approval-required", } as const; /** * How updates are delivered to the deployment. */ export type TargetDeploymentUpdates = ClosedEnum< typeof TargetDeploymentUpdates >; /** * 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 TargetDeploymentStackSettings = { compute?: TargetDeploymentCompute | any | null | undefined; /** * Deployment model: how updates are delivered to the remote environment. */ deploymentModel?: TargetDeploymentDeploymentModel | undefined; domains?: TargetDeploymentDomains | 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?: | TargetDeploymentStackSettingsExternalBindings | null | undefined; /** * How heartbeat health checks are handled. */ heartbeats?: TargetDeploymentHeartbeats | undefined; kubernetes?: TargetDeploymentKubernetes | any | null | undefined; network?: | TargetDeploymentNetworkByoVpcAws | TargetDeploymentNetworkByoVpcGcp | TargetDeploymentNetworkByoVnetAzure | TargetDeploymentNetworkUseDefault | TargetDeploymentNetworkCreate | 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?: TargetDeploymentTelemetry | undefined; /** * How updates are delivered to the deployment. */ updates?: TargetDeploymentUpdates | undefined; }; /** * Deployment configuration * * @remarks * * Configuration for how to perform the deployment. * Note: Credentials (ClientConfig) are passed separately to step() function. */ export type TargetDeploymentConfig = { /** * Allow frozen resource changes during updates * * @remarks * When true, skips the frozen resources compatibility check. * This requires running with elevated cloud credentials. */ allowFrozenChanges?: boolean | undefined; basePlatform?: TargetDeploymentBasePlatformEnum | any | null | undefined; computeBackend?: | TargetDeploymentComputeBackendHorizon | any | null | undefined; /** * Human-readable deployment name for cloud console metadata. * * @remarks * * This is separate from the physical resource prefix in StackState. It is * used only for display text such as IAM role descriptions, service * account descriptions, and custom role titles. */ deploymentName?: string | null | undefined; /** * Deployment token for pull authentication with the manager's registry. * * @remarks * * Used by controllers to configure registry credentials so cloud platforms * and K8s can pull images from the manager's `/v2/` endpoint. */ deploymentToken?: string | null | undefined; domainMetadata?: TargetDeploymentDomainMetadata | any | null | undefined; /** * Snapshot of environment variables at a point in time */ environmentVariables: TargetDeploymentEnvironmentVariables; /** * Map from resource ID to external binding. * * @remarks * * Validated at runtime: binding type must match resource type. */ externalBindings?: { [k: string]: | TargetDeploymentExternalBindingsAi | TargetDeploymentExternalBindingsContainerAppsEnvironment | TargetDeploymentExternalBindingsS3 | TargetDeploymentExternalBindingsBlob | TargetDeploymentExternalBindingsGcs | TargetDeploymentExternalBindingsLocalStorage | TargetDeploymentExternalBindingsSqs | TargetDeploymentExternalBindingsPubsub | TargetDeploymentExternalBindingsServicebus | TargetDeploymentExternalBindingsLocalQueue | TargetDeploymentExternalBindingsDynamodb | TargetDeploymentExternalBindingsFirestore | TargetDeploymentExternalBindingsTablestorage | TargetDeploymentExternalBindingsRedis | TargetDeploymentExternalBindingsLocalKv | TargetDeploymentExternalBindingsEcr | TargetDeploymentExternalBindingsAcr | TargetDeploymentExternalBindingsGar | TargetDeploymentExternalBindingsLocal | TargetDeploymentExternalBindingsParameterStore | TargetDeploymentExternalBindingsSecretManager | TargetDeploymentExternalBindingsKeyVault | TargetDeploymentExternalBindingsKubernetesSecret | TargetDeploymentExternalBindingsLocalVault | TargetDeploymentExternalBindingsAurora | TargetDeploymentExternalBindingsCloudSQL | TargetDeploymentExternalBindingsFlexibleServer | TargetDeploymentExternalBindingsExternal | TargetDeploymentExternalBindingsLocalPostgres; } | undefined; /** * Deployer-provided stack input values, keyed by input id. A resource * * @remarks * gated with `.enabled(input)` and a Live lifecycle follows these * values; a missing key falls back to the input's declared boolean * default. Suppliers must not place secret-kind input values here: * this map serializes and debug-prints unredacted. */ inputValues?: { [k: string]: any | null } | undefined; /** * DNS-style label domain used for Kubernetes resource ownership labels. * * @remarks * * Defaults to `alien.dev` when absent. Whitelabeled Operator builds set this * so generated workloads and optional log collectors share the same label * namespace. */ labelDomain?: string | null | undefined; managementConfig?: | TargetDeploymentManagementConfigAzure | TargetDeploymentManagementConfigAws | TargetDeploymentManagementConfigGcp | TargetDeploymentManagementConfigKubernetes | any | null | undefined; /** * Manager base URL (e.g., "https://manager.alien.dev"). * * @remarks * * The manager IS the container registry — its `/v2/` endpoint serves as * the OCI Distribution API. Controllers derive the proxy host from this * to configure pull auth (RegistryCredentials, imagePullSecrets). * * When None (e.g., `alien dev`), controllers use image URIs as-is. */ managerUrl?: string | null | undefined; monitoring?: TargetDeploymentMonitoring | any | null | undefined; /** * Native image registry host+prefix for platforms that require it. * * @remarks * * Lambda (ECR) and Cloud Run (GAR) require native registry URIs. Other * runtimes, including Azure Container Apps, pull through the manager's * registry proxy. * * Derived by the manager from the artifact registry binding: * - ECR: `{account_id}.dkr.ecr.{region}.amazonaws.com/{repository_prefix}` * - GAR: `{region}-docker.pkg.dev/{project_id}/{repository_name}` */ nativeImageHost?: string | null | undefined; /** * When true the observe pass reports raw resources across every namespace * * @remarks * (cluster scope); otherwise it stays within the operator's own namespace. * The label selector, if any, still filters within whichever scope applies. * Ignored by cloud observers. */ observeAllNamespaces?: boolean | undefined; /** * Kubernetes label selector that narrows which raw resources the observe * * @remarks * pass reports (e.g. `app.kubernetes.io/part-of=my-app`). `None` observes * everything in the namespace. Ignored by cloud observers. */ observeLabelSelector?: string | null | undefined; /** * Public endpoint URLs for exposed resources (optional override). * * @remarks * * Use this only when a caller already knows the public URL. Managed public * endpoint flows should prefer `domain_metadata` plus controller-reported * load balancer outputs so DNS, certificate renewal, and route readiness * stay tied to the resource state. * * If not set, platforms determine public endpoint URLs from other sources: * - Managed DNS/TLS flows: `domain_metadata` FQDN or load balancer DNS * - Local: `http://localhost:{allocated_port}` * - Custom or disabled exposure: no public endpoint URL unless a controller reports one * * Outer key: resource ID. Inner key: endpoint name. Value: public URL. */ publicEndpoints?: { [k: string]: { [k: string]: string } } | null | 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?: TargetDeploymentStackSettings | undefined; }; export const ReleaseInfoTypeStringList = { StringList: "stringList", } as const; export type ReleaseInfoTypeStringList = ClosedEnum< typeof ReleaseInfoTypeStringList >; export type TargetDeploymentDefaultStringList = { type: ReleaseInfoTypeStringList; /** * String list default. */ value: Array; }; export const ReleaseInfoTypeBoolean = { Boolean: "boolean", } as const; export type ReleaseInfoTypeBoolean = ClosedEnum; export type TargetDeploymentDefaultBoolean = { type: ReleaseInfoTypeBoolean; /** * Boolean default. */ value: boolean; }; export const ReleaseInfoTypeNumber = { Number: "number", } as const; export type ReleaseInfoTypeNumber = ClosedEnum; export type TargetDeploymentDefaultNumber = { type: ReleaseInfoTypeNumber; /** * Number default. */ value: string; }; export const ReleaseInfoTypeString = { String: "string", } as const; export type ReleaseInfoTypeString = ClosedEnum; export type TargetDeploymentDefaultString = { type: ReleaseInfoTypeString; /** * String default. */ value: string; }; export type TargetDeploymentDefaultUnion = | TargetDeploymentDefaultString | TargetDeploymentDefaultNumber | TargetDeploymentDefaultBoolean | TargetDeploymentDefaultStringList | any; /** * Environment variable handling for a stack input mapping. */ export const TypeReleaseInfoEnvEnum = { Plain: "plain", Secret: "secret", } as const; /** * Environment variable handling for a stack input mapping. */ export type TypeReleaseInfoEnvEnum = ClosedEnum; export type ReleaseInfoTypeUnion = TypeReleaseInfoEnvEnum | any; /** * How a resolved stack input is injected into runtime environment variables. */ export type TargetDeploymentEnv = { /** * Environment variable name. */ name: string; /** * Target resource IDs or patterns. None means every env-capable resource. */ targetResources?: Array | null | undefined; type?: TypeReleaseInfoEnvEnum | any | null | undefined; }; /** * Primitive stack input kind. */ export const TargetDeploymentKind = { String: "string", Secret: "secret", Number: "number", Integer: "integer", Boolean: "boolean", Enum: "enum", StringList: "stringList", } as const; /** * Primitive stack input kind. */ export type TargetDeploymentKind = ClosedEnum; /** * Represents the target cloud platform. */ export const ReleaseInfoPlatform = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type ReleaseInfoPlatform = ClosedEnum; /** * Who can provide a stack input value. */ export const TargetDeploymentProvidedBy = { Developer: "developer", Deployer: "deployer", } as const; /** * Who can provide a stack input value. */ export type TargetDeploymentProvidedBy = ClosedEnum< typeof TargetDeploymentProvidedBy >; /** * Portable stack input validation constraints. */ export type TargetDeploymentValidation = { /** * 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 TargetDeploymentValidationUnion = TargetDeploymentValidation | any; /** * Stack input definition serialized into a release stack. */ export type TargetDeploymentInput = { default?: | TargetDeploymentDefaultString | TargetDeploymentDefaultNumber | TargetDeploymentDefaultBoolean | TargetDeploymentDefaultStringList | 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: TargetDeploymentKind; /** * 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?: TargetDeploymentValidation | any | null | undefined; }; export const TargetDeploymentManagementEnum = { Auto: "auto", } as const; export type TargetDeploymentManagementEnum = ClosedEnum< typeof TargetDeploymentManagementEnum >; /** * AWS-specific binding specification */ export type TargetDeploymentOverrideAwResource = { /** * 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 TargetDeploymentOverrideAwStack = { /** * 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 TargetDeploymentOverrideAwBinding = { /** * AWS-specific binding specification */ resource?: TargetDeploymentOverrideAwResource | undefined; /** * AWS-specific binding specification */ stack?: TargetDeploymentOverrideAwStack | undefined; }; /** * IAM effect. Defaults to Allow. */ export const TargetDeploymentOverrideEffect = { Allow: "Allow", Deny: "Deny", } as const; /** * IAM effect. Defaults to Allow. */ export type TargetDeploymentOverrideEffect = ClosedEnum< typeof TargetDeploymentOverrideEffect >; /** * Grant permissions for a specific cloud platform */ export type TargetDeploymentOverrideAwGrant = { /** * 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 TargetDeploymentOverrideAw = { /** * Generic binding configuration for permissions */ binding: TargetDeploymentOverrideAwBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * IAM effect. Defaults to Allow. */ effect?: TargetDeploymentOverrideEffect | undefined; /** * Grant permissions for a specific cloud platform */ grant: TargetDeploymentOverrideAwGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Azure-specific binding specification */ export type TargetDeploymentOverrideAzureResource = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Azure-specific binding specification */ export type TargetDeploymentOverrideAzureStack = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type TargetDeploymentOverrideAzureBinding = { /** * Azure-specific binding specification */ resource?: TargetDeploymentOverrideAzureResource | undefined; /** * Azure-specific binding specification */ stack?: TargetDeploymentOverrideAzureStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type TargetDeploymentOverrideAzureGrant = { /** * 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 OverrideReleaseInfoAzure = { /** * Generic binding configuration for permissions */ binding: TargetDeploymentOverrideAzureBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: TargetDeploymentOverrideAzureGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * GCP IAM condition */ export type TargetDeploymentOverrideConditionResource = { expression: string; title: string; }; export type TargetDeploymentOverrideResourceConditionUnion = | TargetDeploymentOverrideConditionResource | any; /** * GCP-specific binding specification */ export type TargetDeploymentOverrideGcpResource = { condition?: | TargetDeploymentOverrideConditionResource | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * GCP IAM condition */ export type TargetDeploymentOverrideCondition = { expression: string; title: string; }; export type TargetDeploymentOverrideConditionUnion = | TargetDeploymentOverrideCondition | any; /** * GCP-specific binding specification */ export type TargetDeploymentOverrideGcpStack = { condition?: TargetDeploymentOverrideCondition | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type TargetDeploymentOverrideGcpBinding = { /** * GCP-specific binding specification */ resource?: TargetDeploymentOverrideGcpResource | undefined; /** * GCP-specific binding specification */ stack?: TargetDeploymentOverrideGcpStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type TargetDeploymentOverrideGcpGrant = { /** * 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 OverrideReleaseInfoGcp = { /** * Generic binding configuration for permissions */ binding: TargetDeploymentOverrideGcpBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: TargetDeploymentOverrideGcpGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Platform-specific permission configurations */ export type TargetDeploymentOverridePlatforms = { /** * 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 TargetDeploymentOverride = { /** * 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: TargetDeploymentOverridePlatforms; }; /** * Reference to a permission set - either by name or inline definition */ export type TargetDeploymentOverrideUnion = TargetDeploymentOverride | string; export type TargetDeploymentManagement2 = { /** * Permission profile that maps resources to permission sets * * @remarks * Key can be "*" for all resources or resource name for specific resource */ override: { [k: string]: Array }; }; /** * AWS-specific binding specification */ export type TargetDeploymentExtendAwResource = { /** * 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 TargetDeploymentExtendAwStack = { /** * 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 TargetDeploymentExtendAwBinding = { /** * AWS-specific binding specification */ resource?: TargetDeploymentExtendAwResource | undefined; /** * AWS-specific binding specification */ stack?: TargetDeploymentExtendAwStack | undefined; }; /** * IAM effect. Defaults to Allow. */ export const TargetDeploymentExtendEffect = { Allow: "Allow", Deny: "Deny", } as const; /** * IAM effect. Defaults to Allow. */ export type TargetDeploymentExtendEffect = ClosedEnum< typeof TargetDeploymentExtendEffect >; /** * Grant permissions for a specific cloud platform */ export type TargetDeploymentExtendAwGrant = { /** * 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 TargetDeploymentExtendAw = { /** * Generic binding configuration for permissions */ binding: TargetDeploymentExtendAwBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * IAM effect. Defaults to Allow. */ effect?: TargetDeploymentExtendEffect | undefined; /** * Grant permissions for a specific cloud platform */ grant: TargetDeploymentExtendAwGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Azure-specific binding specification */ export type TargetDeploymentExtendAzureResource = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Azure-specific binding specification */ export type TargetDeploymentExtendAzureStack = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type TargetDeploymentExtendAzureBinding = { /** * Azure-specific binding specification */ resource?: TargetDeploymentExtendAzureResource | undefined; /** * Azure-specific binding specification */ stack?: TargetDeploymentExtendAzureStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type TargetDeploymentExtendAzureGrant = { /** * 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 ExtendReleaseInfoAzure = { /** * Generic binding configuration for permissions */ binding: TargetDeploymentExtendAzureBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: TargetDeploymentExtendAzureGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * GCP IAM condition */ export type TargetDeploymentExtendConditionResource = { expression: string; title: string; }; export type TargetDeploymentExtendResourceConditionUnion = | TargetDeploymentExtendConditionResource | any; /** * GCP-specific binding specification */ export type TargetDeploymentExtendGcpResource = { condition?: TargetDeploymentExtendConditionResource | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * GCP IAM condition */ export type TargetDeploymentExtendCondition = { expression: string; title: string; }; export type TargetDeploymentExtendConditionUnion = | TargetDeploymentExtendCondition | any; /** * GCP-specific binding specification */ export type TargetDeploymentExtendGcpStack = { condition?: TargetDeploymentExtendCondition | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type TargetDeploymentExtendGcpBinding = { /** * GCP-specific binding specification */ resource?: TargetDeploymentExtendGcpResource | undefined; /** * GCP-specific binding specification */ stack?: TargetDeploymentExtendGcpStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type TargetDeploymentExtendGcpGrant = { /** * 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 ExtendReleaseInfoGcp = { /** * Generic binding configuration for permissions */ binding: TargetDeploymentExtendGcpBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: TargetDeploymentExtendGcpGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Platform-specific permission configurations */ export type TargetDeploymentExtendPlatforms = { /** * 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 TargetDeploymentExtend = { /** * 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: TargetDeploymentExtendPlatforms; }; /** * Reference to a permission set - either by name or inline definition */ export type TargetDeploymentExtendUnion = TargetDeploymentExtend | string; export type TargetDeploymentManagement1 = { /** * Permission profile that maps resources to permission sets * * @remarks * Key can be "*" for all resources or resource name for specific resource */ extend: { [k: string]: Array }; }; /** * Management permissions configuration for stack management access */ export type TargetDeploymentManagementUnion = | TargetDeploymentManagement1 | TargetDeploymentManagement2 | TargetDeploymentManagementEnum; /** * AWS-specific binding specification */ export type TargetDeploymentProfileAwResource = { /** * 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 TargetDeploymentProfileAwStack = { /** * 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 TargetDeploymentProfileAwBinding = { /** * AWS-specific binding specification */ resource?: TargetDeploymentProfileAwResource | undefined; /** * AWS-specific binding specification */ stack?: TargetDeploymentProfileAwStack | undefined; }; /** * IAM effect. Defaults to Allow. */ export const TargetDeploymentProfileEffect = { Allow: "Allow", Deny: "Deny", } as const; /** * IAM effect. Defaults to Allow. */ export type TargetDeploymentProfileEffect = ClosedEnum< typeof TargetDeploymentProfileEffect >; /** * Grant permissions for a specific cloud platform */ export type TargetDeploymentProfileAwGrant = { /** * 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 TargetDeploymentProfileAw = { /** * Generic binding configuration for permissions */ binding: TargetDeploymentProfileAwBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * IAM effect. Defaults to Allow. */ effect?: TargetDeploymentProfileEffect | undefined; /** * Grant permissions for a specific cloud platform */ grant: TargetDeploymentProfileAwGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Azure-specific binding specification */ export type TargetDeploymentProfileAzureResource = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Azure-specific binding specification */ export type TargetDeploymentProfileAzureStack = { /** * Scope (subscription/resource group/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type TargetDeploymentProfileAzureBinding = { /** * Azure-specific binding specification */ resource?: TargetDeploymentProfileAzureResource | undefined; /** * Azure-specific binding specification */ stack?: TargetDeploymentProfileAzureStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type TargetDeploymentProfileAzureGrant = { /** * 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 ProfileReleaseInfoAzure = { /** * Generic binding configuration for permissions */ binding: TargetDeploymentProfileAzureBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: TargetDeploymentProfileAzureGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * GCP IAM condition */ export type TargetDeploymentProfileConditionResource = { expression: string; title: string; }; export type TargetDeploymentProfileResourceConditionUnion = | TargetDeploymentProfileConditionResource | any; /** * GCP-specific binding specification */ export type TargetDeploymentProfileGcpResource = { condition?: TargetDeploymentProfileConditionResource | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * GCP IAM condition */ export type TargetDeploymentProfileCondition = { expression: string; title: string; }; export type TargetDeploymentProfileConditionUnion = | TargetDeploymentProfileCondition | any; /** * GCP-specific binding specification */ export type TargetDeploymentProfileGcpStack = { condition?: TargetDeploymentProfileCondition | any | null | undefined; /** * Scope (project/resource level) */ scope: string; }; /** * Generic binding configuration for permissions */ export type TargetDeploymentProfileGcpBinding = { /** * GCP-specific binding specification */ resource?: TargetDeploymentProfileGcpResource | undefined; /** * GCP-specific binding specification */ stack?: TargetDeploymentProfileGcpStack | undefined; }; /** * Grant permissions for a specific cloud platform */ export type TargetDeploymentProfileGcpGrant = { /** * 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 ProfileReleaseInfoGcp = { /** * Generic binding configuration for permissions */ binding: TargetDeploymentProfileGcpBinding; /** * Short admin-facing description of why this entry exists. */ description?: string | null | undefined; /** * Grant permissions for a specific cloud platform */ grant: TargetDeploymentProfileGcpGrant; /** * Stable admin-facing label for this permission entry. */ label?: string | null | undefined; }; /** * Platform-specific permission configurations */ export type TargetDeploymentProfilePlatforms = { /** * 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 TargetDeploymentProfile = { /** * 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: TargetDeploymentProfilePlatforms; }; /** * Reference to a permission set - either by name or inline definition */ export type TargetDeploymentProfileUnion = TargetDeploymentProfile | string; /** * Combined permissions configuration that contains both profiles and management */ export type TargetDeploymentPermissions = { /** * Management permissions configuration for stack management access */ management?: | TargetDeploymentManagement1 | TargetDeploymentManagement2 | TargetDeploymentManagementEnum | undefined; /** * Permission profiles that define access control for compute services * * @remarks * Key is the profile name, value is the permission configuration */ profiles: { [k: string]: { [k: string]: Array }; }; }; /** * Resource that can hold any resource type in the Alien system. All resources share common 'type' and 'id' fields with additional type-specific properties. */ export type ReleaseInfoConfig = { /** * 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 TargetDeploymentDependency = { 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 TargetDeploymentLifecycle = { Frozen: "frozen", Live: "live", } as const; /** * Describes the lifecycle of a resource within a stack, determining how it's managed and deployed. */ export type TargetDeploymentLifecycle = ClosedEnum< typeof TargetDeploymentLifecycle >; export type ReleaseInfoResources = { /** * 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: ReleaseInfoConfig; /** * 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: TargetDeploymentLifecycle; /** * 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 TargetDeploymentSupportedPlatform = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type TargetDeploymentSupportedPlatform = ClosedEnum< typeof TargetDeploymentSupportedPlatform >; /** * A bag of resources, unaware of any cloud. */ export type TargetDeploymentStack = { /** * 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?: TargetDeploymentPermissions | undefined; /** * Map of resource IDs to their configurations and lifecycle settings */ resources: { [k: string]: ReleaseInfoResources }; /** * Which platforms this stack supports. When None, all platforms are supported. */ supportedPlatforms?: | Array | null | undefined; }; /** * Release metadata * * @remarks * * Identifies a specific release version and includes the stack definition. * The deployment engine uses this to track which release is currently deployed * and which is the target. */ export type ReleaseInfo = { /** * Short description of the release */ description?: string | null | undefined; /** * Release ID (e.g., rel_xyz). `None` for an observe deployment, which has no * * @remarks * Alien-assigned release — the platform resolves a release from `version`. */ releaseId?: string | null | undefined; /** * A bag of resources, unaware of any cloud. */ stack: TargetDeploymentStack; /** * Version string (e.g., 2.1.0) */ version?: string | null | undefined; }; /** * Target deployment if update is needed */ export type TargetDeployment = { /** * Deployment configuration * * @remarks * * Configuration for how to perform the deployment. * Note: Credentials (ClientConfig) are passed separately to step() function. */ config: TargetDeploymentConfig; /** * Release metadata * * @remarks * * Identifies a specific release version and includes the stack definition. * The deployment engine uses this to track which release is currently deployed * and which is the target. */ releaseInfo: ReleaseInfo; }; /** @internal */ export const TargetDeploymentBasePlatformEnum$inboundSchema: z.ZodEnum< typeof TargetDeploymentBasePlatformEnum > = z.enum(TargetDeploymentBasePlatformEnum); /** @internal */ export const TargetDeploymentBasePlatformUnion$inboundSchema: z.ZodType< TargetDeploymentBasePlatformUnion, unknown > = z.union([TargetDeploymentBasePlatformEnum$inboundSchema, z.any()]); export function targetDeploymentBasePlatformUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentBasePlatformUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentBasePlatformUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentClusters$inboundSchema: z.ZodType< TargetDeploymentClusters, unknown > = z.object({ clusterId: z.string(), managementToken: z.string(), }); export function targetDeploymentClustersFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentClusters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentClusters' from JSON`, ); } /** @internal */ export const TargetDeploymentHorizonMachineImageAws$inboundSchema: z.ZodType< TargetDeploymentHorizonMachineImageAws, unknown > = z.object({ amis: z.record(z.string(), z.record(z.string(), z.string())), }); export function targetDeploymentHorizonMachineImageAwsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentHorizonMachineImageAws$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentHorizonMachineImageAws' from JSON`, ); } /** @internal */ export const TargetDeploymentHorizonMachineImageAwsUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => TargetDeploymentHorizonMachineImageAws$inboundSchema), z.any(), ]); export function targetDeploymentHorizonMachineImageAwsUnionFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentHorizonMachineImageAwsUnion, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentHorizonMachineImageAwsUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentHorizonMachineImageAwsUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentAzureImages$inboundSchema: z.ZodType< TargetDeploymentAzureImages, unknown > = z.object({ imageVersionId: z.string(), }); export function targetDeploymentAzureImagesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentAzureImages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentAzureImages' from JSON`, ); } /** @internal */ export const HorizonMachineImageAzureConfig$inboundSchema: z.ZodType< HorizonMachineImageAzureConfig, unknown > = z.object({ images: z.record( z.string(), z.lazy(() => TargetDeploymentAzureImages$inboundSchema), ), }); export function horizonMachineImageAzureConfigFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => HorizonMachineImageAzureConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HorizonMachineImageAzureConfig' from JSON`, ); } /** @internal */ export const HorizonMachineImageConfigAzureUnion$inboundSchema: z.ZodType< HorizonMachineImageConfigAzureUnion, unknown > = z.union([ z.lazy(() => HorizonMachineImageAzureConfig$inboundSchema), z.any(), ]); export function horizonMachineImageConfigAzureUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => HorizonMachineImageConfigAzureUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HorizonMachineImageConfigAzureUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentBaseImage$inboundSchema: z.ZodType< TargetDeploymentBaseImage, unknown > = z.object({ name: z.string(), version: z.string(), }); export function targetDeploymentBaseImageFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentBaseImage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentBaseImage' from JSON`, ); } /** @internal */ export const TargetDeploymentGcpImages$inboundSchema: z.ZodType< TargetDeploymentGcpImages, unknown > = z.object({ sourceImage: z.string(), }); export function targetDeploymentGcpImagesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentGcpImages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentGcpImages' from JSON`, ); } /** @internal */ export const HorizonMachineImageGcpConfig$inboundSchema: z.ZodType< HorizonMachineImageGcpConfig, unknown > = z.object({ images: z.record( z.string(), z.lazy(() => TargetDeploymentGcpImages$inboundSchema), ), }); export function horizonMachineImageGcpConfigFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => HorizonMachineImageGcpConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HorizonMachineImageGcpConfig' from JSON`, ); } /** @internal */ export const HorizonMachineImageConfigGcpUnion$inboundSchema: z.ZodType< HorizonMachineImageConfigGcpUnion, unknown > = z.union([ z.lazy(() => HorizonMachineImageGcpConfig$inboundSchema), z.any(), ]); export function horizonMachineImageConfigGcpUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => HorizonMachineImageConfigGcpUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HorizonMachineImageConfigGcpUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentHorizondArtifacts$inboundSchema: z.ZodType< TargetDeploymentHorizondArtifacts, unknown > = z.object({ sha256: z.string(), url: z.string(), }); export function targetDeploymentHorizondArtifactsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentHorizondArtifacts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentHorizondArtifacts' from JSON`, ); } /** @internal */ export const TargetDeploymentHorizonMachineImage$inboundSchema: z.ZodType< TargetDeploymentHorizonMachineImage, unknown > = z.object({ aws: z.nullable( z.union([ z.lazy(() => TargetDeploymentHorizonMachineImageAws$inboundSchema), z.any(), ]), ).optional(), azure: z.nullable( z.union([ z.lazy(() => HorizonMachineImageAzureConfig$inboundSchema), z.any(), ]), ).optional(), baseImage: z.lazy(() => TargetDeploymentBaseImage$inboundSchema), channel: z.string(), createdAt: z.string(), gcp: z.nullable( z.union([ z.lazy(() => HorizonMachineImageGcpConfig$inboundSchema), z.any(), ]), ).optional(), gitSha: z.string(), horizondArtifacts: z.record( z.string(), z.lazy(() => TargetDeploymentHorizondArtifacts$inboundSchema), ), horizondVersion: z.string(), machineImageVersion: z.string(), }); export function targetDeploymentHorizonMachineImageFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentHorizonMachineImage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentHorizonMachineImage' from JSON`, ); } /** @internal */ export const TargetDeploymentHorizonMachineImageUnion$inboundSchema: z.ZodType< TargetDeploymentHorizonMachineImageUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentHorizonMachineImage$inboundSchema), z.any(), ]); export function targetDeploymentHorizonMachineImageUnionFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentHorizonMachineImageUnion, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentHorizonMachineImageUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentHorizonMachineImageUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentComputeBackendType$inboundSchema: z.ZodEnum< typeof TargetDeploymentComputeBackendType > = z.enum(TargetDeploymentComputeBackendType); /** @internal */ export const TargetDeploymentComputeBackendHorizon$inboundSchema: z.ZodType< TargetDeploymentComputeBackendHorizon, unknown > = z.object({ clusters: z.record( z.string(), z.lazy(() => TargetDeploymentClusters$inboundSchema), ), horizonMachineImage: z.nullable( z.union([ z.lazy(() => TargetDeploymentHorizonMachineImage$inboundSchema), z.any(), ]), ).optional(), url: z.string(), type: TargetDeploymentComputeBackendType$inboundSchema, }); export function targetDeploymentComputeBackendHorizonFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentComputeBackendHorizon$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentComputeBackendHorizon' from JSON`, ); } /** @internal */ export const TargetDeploymentComputeBackendUnion$inboundSchema: z.ZodType< TargetDeploymentComputeBackendUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentComputeBackendHorizon$inboundSchema), z.any(), ]); export function targetDeploymentComputeBackendUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentComputeBackendUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentComputeBackendUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentAliasCertificateStatus$inboundSchema: z.ZodEnum< typeof TargetDeploymentAliasCertificateStatus > = z.enum(TargetDeploymentAliasCertificateStatus); /** @internal */ export const TargetDeploymentAliasDnsStatus$inboundSchema: z.ZodEnum< typeof TargetDeploymentAliasDnsStatus > = z.enum(TargetDeploymentAliasDnsStatus); /** @internal */ export const TargetDeploymentAlias$inboundSchema: z.ZodType< TargetDeploymentAlias, unknown > = z.object({ certificateChain: z.nullable(z.string()).optional(), certificateId: z.string(), certificateStatus: TargetDeploymentAliasCertificateStatus$inboundSchema, dnsError: z.nullable(z.string()).optional(), dnsStatus: TargetDeploymentAliasDnsStatus$inboundSchema, fqdn: z.string(), issuedAt: z.nullable(z.string()).optional(), privateKey: z.nullable(z.string()).optional(), }); export function targetDeploymentAliasFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentAlias$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentAlias' from JSON`, ); } /** @internal */ export const TargetDeploymentCertificateStatus$inboundSchema: z.ZodEnum< typeof TargetDeploymentCertificateStatus > = z.enum(TargetDeploymentCertificateStatus); /** @internal */ export const TargetDeploymentDnsStatus$inboundSchema: z.ZodEnum< typeof TargetDeploymentDnsStatus > = z.enum(TargetDeploymentDnsStatus); /** @internal */ export const TargetDeploymentEndpointsCertificateStatus$inboundSchema: z.ZodEnum = z.enum( TargetDeploymentEndpointsCertificateStatus, ); /** @internal */ export const TargetDeploymentEndpointsDnsStatus$inboundSchema: z.ZodEnum< typeof TargetDeploymentEndpointsDnsStatus > = z.enum(TargetDeploymentEndpointsDnsStatus); /** @internal */ export const TargetDeploymentEndpoints$inboundSchema: z.ZodType< TargetDeploymentEndpoints, unknown > = z.object({ certificateChain: z.nullable(z.string()).optional(), certificateId: z.string(), certificateStatus: TargetDeploymentEndpointsCertificateStatus$inboundSchema, dnsError: z.nullable(z.string()).optional(), dnsStatus: TargetDeploymentEndpointsDnsStatus$inboundSchema, fqdn: z.string(), issuedAt: z.nullable(z.string()).optional(), privateKey: z.nullable(z.string()).optional(), }); export function targetDeploymentEndpointsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentEndpoints$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentEndpoints' from JSON`, ); } /** @internal */ export const ConfigResources$inboundSchema: z.ZodType< ConfigResources, unknown > = z.object({ aliases: z.array(z.lazy(() => TargetDeploymentAlias$inboundSchema)) .optional(), certificateChain: z.nullable(z.string()).optional(), certificateId: z.string(), certificateStatus: TargetDeploymentCertificateStatus$inboundSchema, dnsError: z.nullable(z.string()).optional(), dnsStatus: TargetDeploymentDnsStatus$inboundSchema, endpoints: z.record( z.string(), z.lazy(() => TargetDeploymentEndpoints$inboundSchema), ).optional(), fqdn: z.string(), issuedAt: z.nullable(z.string()).optional(), privateKey: z.nullable(z.string()).optional(), }); export function configResourcesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ConfigResources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConfigResources' from JSON`, ); } /** @internal */ export const TargetDeploymentDomainMetadata$inboundSchema: z.ZodType< TargetDeploymentDomainMetadata, unknown > = z.object({ baseDomain: z.string(), hostedZoneId: z.string(), publicSubdomain: z.string(), resources: z.record(z.string(), z.lazy(() => ConfigResources$inboundSchema)), }); export function targetDeploymentDomainMetadataFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDomainMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDomainMetadata' from JSON`, ); } /** @internal */ export const TargetDeploymentDomainMetadataUnion$inboundSchema: z.ZodType< TargetDeploymentDomainMetadataUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentDomainMetadata$inboundSchema), z.any(), ]); export function targetDeploymentDomainMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDomainMetadataUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDomainMetadataUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentEnvironmentVariablesType$inboundSchema: z.ZodEnum< typeof TargetDeploymentEnvironmentVariablesType > = z.enum(TargetDeploymentEnvironmentVariablesType); /** @internal */ export const TargetDeploymentVariable$inboundSchema: z.ZodType< TargetDeploymentVariable, unknown > = z.object({ name: z.string(), targetResources: z.nullable(z.array(z.string())).optional(), type: TargetDeploymentEnvironmentVariablesType$inboundSchema, value: z.string(), }); export function targetDeploymentVariableFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentVariable$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentVariable' from JSON`, ); } /** @internal */ export const TargetDeploymentEnvironmentVariables$inboundSchema: z.ZodType< TargetDeploymentEnvironmentVariables, unknown > = z.object({ createdAt: z.string(), hash: z.string(), variables: z.array(z.lazy(() => TargetDeploymentVariable$inboundSchema)), }); export function targetDeploymentEnvironmentVariablesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentEnvironmentVariables$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentEnvironmentVariables' from JSON`, ); } /** @internal */ export const TargetDeploymentApiKeySecretRef$inboundSchema: z.ZodType< TargetDeploymentApiKeySecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentApiKeySecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentApiKeySecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentApiKeySecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentApiKey$inboundSchema: z.ZodType< TargetDeploymentApiKey, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentApiKeySecretRef$inboundSchema), }); export function targetDeploymentApiKeyFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentApiKey$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentApiKey' from JSON`, ); } /** @internal */ export const TargetDeploymentApiKeyUnion$inboundSchema: z.ZodType< TargetDeploymentApiKeyUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentApiKey$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentApiKeyUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentApiKeyUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentApiKeyUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeAi$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeAi > = z.enum(TargetDeploymentTypeAi); /** @internal */ export const TargetDeploymentExternalBindingsAi$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsAi, unknown > = z.object({ apiKey: z.nullable( z.union([ z.lazy(() => TargetDeploymentApiKey$inboundSchema), z.any(), z.string(), ]), ).optional(), provider: z.string(), type: TargetDeploymentTypeAi$inboundSchema, }); export function targetDeploymentExternalBindingsAiFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsAi$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsAi' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabaseSecretRef6$inboundSchema: z.ZodType< TargetDeploymentDatabaseSecretRef6, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentDatabaseSecretRef6FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabaseSecretRef6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabaseSecretRef6' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabase6$inboundSchema: z.ZodType< TargetDeploymentDatabase6, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentDatabaseSecretRef6$inboundSchema), }); export function targetDeploymentDatabase6FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabase6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabase6' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabaseUnion5$inboundSchema: z.ZodType< TargetDeploymentDatabaseUnion5, unknown > = z.union([ z.lazy(() => TargetDeploymentDatabase6$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentDatabaseUnion5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabaseUnion5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabaseUnion5' from JSON`, ); } /** @internal */ export const TargetDeploymentHostSecretRef4$inboundSchema: z.ZodType< TargetDeploymentHostSecretRef4, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentHostSecretRef4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentHostSecretRef4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentHostSecretRef4' from JSON`, ); } /** @internal */ export const TargetDeploymentHost4$inboundSchema: z.ZodType< TargetDeploymentHost4, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentHostSecretRef4$inboundSchema), }); export function targetDeploymentHost4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentHost4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentHost4' from JSON`, ); } /** @internal */ export const TargetDeploymentHostUnion4$inboundSchema: z.ZodType< TargetDeploymentHostUnion4, unknown > = z.union([ z.lazy(() => TargetDeploymentHost4$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentHostUnion4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentHostUnion4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentHostUnion4' from JSON`, ); } /** @internal */ export const TargetDeploymentPortSecretRef5$inboundSchema: z.ZodType< TargetDeploymentPortSecretRef5, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentPortSecretRef5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPortSecretRef5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPortSecretRef5' from JSON`, ); } /** @internal */ export const TargetDeploymentPort5$inboundSchema: z.ZodType< TargetDeploymentPort5, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentPortSecretRef5$inboundSchema), }); export function targetDeploymentPort5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPort5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPort5' from JSON`, ); } /** @internal */ export const TargetDeploymentPortUnion5$inboundSchema: z.ZodType< TargetDeploymentPortUnion5, unknown > = z.union([ z.lazy(() => TargetDeploymentPort5$inboundSchema), z.int(), z.any(), ]); export function targetDeploymentPortUnion5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPortUnion5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPortUnion5' from JSON`, ); } /** @internal */ export const TargetDeploymentUsernameSecretRef5$inboundSchema: z.ZodType< TargetDeploymentUsernameSecretRef5, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentUsernameSecretRef5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentUsernameSecretRef5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentUsernameSecretRef5' from JSON`, ); } /** @internal */ export const TargetDeploymentUsername5$inboundSchema: z.ZodType< TargetDeploymentUsername5, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentUsernameSecretRef5$inboundSchema), }); export function targetDeploymentUsername5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentUsername5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentUsername5' from JSON`, ); } /** @internal */ export const TargetDeploymentUsernameUnion5$inboundSchema: z.ZodType< TargetDeploymentUsernameUnion5, unknown > = z.union([ z.lazy(() => TargetDeploymentUsername5$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentUsernameUnion5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentUsernameUnion5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentUsernameUnion5' from JSON`, ); } /** @internal */ export const TargetDeploymentTypePostgres5$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypePostgres5 > = z.enum(TargetDeploymentTypePostgres5); /** @internal */ export const TargetDeploymentExternalBindingsLocalPostgres$inboundSchema: z.ZodType = z.object({ database: z.nullable( z.union([ z.lazy(() => TargetDeploymentDatabase6$inboundSchema), z.any(), z.string(), ]), ).optional(), host: z.nullable( z.union([ z.lazy(() => TargetDeploymentHost4$inboundSchema), z.any(), z.string(), ]), ).optional(), password: z.string(), port: z.nullable( z.union([ z.lazy(() => TargetDeploymentPort5$inboundSchema), z.int(), z.any(), ]), ).optional(), username: z.nullable( z.union([ z.lazy(() => TargetDeploymentUsername5$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("local-postgres"), type: TargetDeploymentTypePostgres5$inboundSchema, }); export function targetDeploymentExternalBindingsLocalPostgresFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExternalBindingsLocalPostgres, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsLocalPostgres$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExternalBindingsLocalPostgres' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabaseSecretRef5$inboundSchema: z.ZodType< TargetDeploymentDatabaseSecretRef5, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentDatabaseSecretRef5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabaseSecretRef5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabaseSecretRef5' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabase5$inboundSchema: z.ZodType< TargetDeploymentDatabase5, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentDatabaseSecretRef5$inboundSchema), }); export function targetDeploymentDatabase5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabase5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabase5' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabaseUnion4$inboundSchema: z.ZodType< TargetDeploymentDatabaseUnion4, unknown > = z.union([ z.lazy(() => TargetDeploymentDatabase5$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentDatabaseUnion4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabaseUnion4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabaseUnion4' from JSON`, ); } /** @internal */ export const TargetDeploymentHostSecretRef3$inboundSchema: z.ZodType< TargetDeploymentHostSecretRef3, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentHostSecretRef3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentHostSecretRef3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentHostSecretRef3' from JSON`, ); } /** @internal */ export const TargetDeploymentHost3$inboundSchema: z.ZodType< TargetDeploymentHost3, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentHostSecretRef3$inboundSchema), }); export function targetDeploymentHost3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentHost3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentHost3' from JSON`, ); } /** @internal */ export const TargetDeploymentHostUnion3$inboundSchema: z.ZodType< TargetDeploymentHostUnion3, unknown > = z.union([ z.lazy(() => TargetDeploymentHost3$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentHostUnion3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentHostUnion3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentHostUnion3' from JSON`, ); } /** @internal */ export const TargetDeploymentPortSecretRef4$inboundSchema: z.ZodType< TargetDeploymentPortSecretRef4, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentPortSecretRef4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPortSecretRef4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPortSecretRef4' from JSON`, ); } /** @internal */ export const TargetDeploymentPort4$inboundSchema: z.ZodType< TargetDeploymentPort4, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentPortSecretRef4$inboundSchema), }); export function targetDeploymentPort4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPort4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPort4' from JSON`, ); } /** @internal */ export const TargetDeploymentPortUnion4$inboundSchema: z.ZodType< TargetDeploymentPortUnion4, unknown > = z.union([ z.lazy(() => TargetDeploymentPort4$inboundSchema), z.int(), z.any(), ]); export function targetDeploymentPortUnion4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPortUnion4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPortUnion4' from JSON`, ); } /** @internal */ export const TargetDeploymentSslMode$inboundSchema: z.ZodEnum< typeof TargetDeploymentSslMode > = z.enum(TargetDeploymentSslMode); /** @internal */ export const TargetDeploymentUsernameSecretRef4$inboundSchema: z.ZodType< TargetDeploymentUsernameSecretRef4, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentUsernameSecretRef4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentUsernameSecretRef4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentUsernameSecretRef4' from JSON`, ); } /** @internal */ export const TargetDeploymentUsername4$inboundSchema: z.ZodType< TargetDeploymentUsername4, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentUsernameSecretRef4$inboundSchema), }); export function targetDeploymentUsername4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentUsername4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentUsername4' from JSON`, ); } /** @internal */ export const TargetDeploymentUsernameUnion4$inboundSchema: z.ZodType< TargetDeploymentUsernameUnion4, unknown > = z.union([ z.lazy(() => TargetDeploymentUsername4$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentUsernameUnion4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentUsernameUnion4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentUsernameUnion4' from JSON`, ); } /** @internal */ export const TargetDeploymentTypePostgres4$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypePostgres4 > = z.enum(TargetDeploymentTypePostgres4); /** @internal */ export const TargetDeploymentExternalBindingsExternal$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsExternal, unknown > = z.object({ database: z.nullable( z.union([ z.lazy(() => TargetDeploymentDatabase5$inboundSchema), z.any(), z.string(), ]), ).optional(), host: z.nullable( z.union([ z.lazy(() => TargetDeploymentHost3$inboundSchema), z.any(), z.string(), ]), ).optional(), password: z.string(), port: z.nullable( z.union([ z.lazy(() => TargetDeploymentPort4$inboundSchema), z.int(), z.any(), ]), ).optional(), sslMode: TargetDeploymentSslMode$inboundSchema.optional(), username: z.nullable( z.union([ z.lazy(() => TargetDeploymentUsername4$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("external"), type: TargetDeploymentTypePostgres4$inboundSchema, }); export function targetDeploymentExternalBindingsExternalFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExternalBindingsExternal, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsExternal$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExternalBindingsExternal' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabaseSecretRef4$inboundSchema: z.ZodType< TargetDeploymentDatabaseSecretRef4, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentDatabaseSecretRef4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabaseSecretRef4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabaseSecretRef4' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabase4$inboundSchema: z.ZodType< TargetDeploymentDatabase4, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentDatabaseSecretRef4$inboundSchema), }); export function targetDeploymentDatabase4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabase4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabase4' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabaseUnion3$inboundSchema: z.ZodType< TargetDeploymentDatabaseUnion3, unknown > = z.union([ z.lazy(() => TargetDeploymentDatabase4$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentDatabaseUnion3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabaseUnion3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabaseUnion3' from JSON`, ); } /** @internal */ export const TargetDeploymentHostSecretRef2$inboundSchema: z.ZodType< TargetDeploymentHostSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentHostSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentHostSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentHostSecretRef2' from JSON`, ); } /** @internal */ export const TargetDeploymentHost2$inboundSchema: z.ZodType< TargetDeploymentHost2, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentHostSecretRef2$inboundSchema), }); export function targetDeploymentHost2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentHost2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentHost2' from JSON`, ); } /** @internal */ export const TargetDeploymentHostUnion2$inboundSchema: z.ZodType< TargetDeploymentHostUnion2, unknown > = z.union([ z.lazy(() => TargetDeploymentHost2$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentHostUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentHostUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentHostUnion2' from JSON`, ); } /** @internal */ export const TargetDeploymentPasswordSecretUriSecretRef$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentPasswordSecretUriSecretRefFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentPasswordSecretUriSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentPasswordSecretUriSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentPasswordSecretUriSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentPasswordSecretUri$inboundSchema: z.ZodType< TargetDeploymentPasswordSecretUri, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentPasswordSecretUriSecretRef$inboundSchema ), }); export function targetDeploymentPasswordSecretUriFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPasswordSecretUri$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPasswordSecretUri' from JSON`, ); } /** @internal */ export const TargetDeploymentPasswordSecretUriUnion$inboundSchema: z.ZodType< TargetDeploymentPasswordSecretUriUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentPasswordSecretUri$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentPasswordSecretUriUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPasswordSecretUriUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPasswordSecretUriUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentPortSecretRef3$inboundSchema: z.ZodType< TargetDeploymentPortSecretRef3, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentPortSecretRef3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPortSecretRef3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPortSecretRef3' from JSON`, ); } /** @internal */ export const TargetDeploymentPort3$inboundSchema: z.ZodType< TargetDeploymentPort3, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentPortSecretRef3$inboundSchema), }); export function targetDeploymentPort3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPort3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPort3' from JSON`, ); } /** @internal */ export const TargetDeploymentPortUnion3$inboundSchema: z.ZodType< TargetDeploymentPortUnion3, unknown > = z.union([ z.lazy(() => TargetDeploymentPort3$inboundSchema), z.int(), z.any(), ]); export function targetDeploymentPortUnion3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPortUnion3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPortUnion3' from JSON`, ); } /** @internal */ export const TargetDeploymentUsernameSecretRef3$inboundSchema: z.ZodType< TargetDeploymentUsernameSecretRef3, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentUsernameSecretRef3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentUsernameSecretRef3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentUsernameSecretRef3' from JSON`, ); } /** @internal */ export const TargetDeploymentUsername3$inboundSchema: z.ZodType< TargetDeploymentUsername3, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentUsernameSecretRef3$inboundSchema), }); export function targetDeploymentUsername3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentUsername3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentUsername3' from JSON`, ); } /** @internal */ export const TargetDeploymentUsernameUnion3$inboundSchema: z.ZodType< TargetDeploymentUsernameUnion3, unknown > = z.union([ z.lazy(() => TargetDeploymentUsername3$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentUsernameUnion3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentUsernameUnion3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentUsernameUnion3' from JSON`, ); } /** @internal */ export const TargetDeploymentTypePostgres3$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypePostgres3 > = z.enum(TargetDeploymentTypePostgres3); /** @internal */ export const TargetDeploymentExternalBindingsFlexibleServer$inboundSchema: z.ZodType = z.object( { database: z.nullable(z.union([ z.lazy(() => TargetDeploymentDatabase4$inboundSchema), z.any(), z.string(), ])).optional(), host: z.nullable(z.union([ z.lazy(() => TargetDeploymentHost2$inboundSchema), z.any(), z.string(), ])).optional(), passwordSecretUri: z.nullable(z.union([ z.lazy(() => TargetDeploymentPasswordSecretUri$inboundSchema), z.any(), z.string(), ])).optional(), port: z.nullable(z.union([ z.lazy(() => TargetDeploymentPort3$inboundSchema), z.int(), z.any(), ])).optional(), username: z.nullable(z.union([ z.lazy(() => TargetDeploymentUsername3$inboundSchema), z.any(), z.string(), ])).optional(), service: z.literal("flexible-server"), type: TargetDeploymentTypePostgres3$inboundSchema, }, ); export function targetDeploymentExternalBindingsFlexibleServerFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExternalBindingsFlexibleServer, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsFlexibleServer$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExternalBindingsFlexibleServer' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabaseSecretRef3$inboundSchema: z.ZodType< TargetDeploymentDatabaseSecretRef3, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentDatabaseSecretRef3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabaseSecretRef3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabaseSecretRef3' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabase3$inboundSchema: z.ZodType< TargetDeploymentDatabase3, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentDatabaseSecretRef3$inboundSchema), }); export function targetDeploymentDatabase3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabase3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabase3' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabaseUnion2$inboundSchema: z.ZodType< TargetDeploymentDatabaseUnion2, unknown > = z.union([ z.lazy(() => TargetDeploymentDatabase3$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentDatabaseUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabaseUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabaseUnion2' from JSON`, ); } /** @internal */ export const TargetDeploymentHostSecretRef1$inboundSchema: z.ZodType< TargetDeploymentHostSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentHostSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentHostSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentHostSecretRef1' from JSON`, ); } /** @internal */ export const TargetDeploymentHost1$inboundSchema: z.ZodType< TargetDeploymentHost1, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentHostSecretRef1$inboundSchema), }); export function targetDeploymentHost1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentHost1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentHost1' from JSON`, ); } /** @internal */ export const TargetDeploymentHostUnion1$inboundSchema: z.ZodType< TargetDeploymentHostUnion1, unknown > = z.union([ z.lazy(() => TargetDeploymentHost1$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentHostUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentHostUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentHostUnion1' from JSON`, ); } /** @internal */ export const TargetDeploymentPasswordSecretNameSecretRef$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentPasswordSecretNameSecretRefFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentPasswordSecretNameSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentPasswordSecretNameSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentPasswordSecretNameSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentPasswordSecretName$inboundSchema: z.ZodType< TargetDeploymentPasswordSecretName, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentPasswordSecretNameSecretRef$inboundSchema ), }); export function targetDeploymentPasswordSecretNameFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPasswordSecretName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPasswordSecretName' from JSON`, ); } /** @internal */ export const TargetDeploymentPasswordSecretNameUnion$inboundSchema: z.ZodType< TargetDeploymentPasswordSecretNameUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentPasswordSecretName$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentPasswordSecretNameUnionFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentPasswordSecretNameUnion, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentPasswordSecretNameUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentPasswordSecretNameUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentPortSecretRef2$inboundSchema: z.ZodType< TargetDeploymentPortSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentPortSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPortSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPortSecretRef2' from JSON`, ); } /** @internal */ export const TargetDeploymentPort2$inboundSchema: z.ZodType< TargetDeploymentPort2, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentPortSecretRef2$inboundSchema), }); export function targetDeploymentPort2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPort2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPort2' from JSON`, ); } /** @internal */ export const TargetDeploymentPortUnion2$inboundSchema: z.ZodType< TargetDeploymentPortUnion2, unknown > = z.union([ z.lazy(() => TargetDeploymentPort2$inboundSchema), z.int(), z.any(), ]); export function targetDeploymentPortUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPortUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPortUnion2' from JSON`, ); } /** @internal */ export const TargetDeploymentServerCaCertificatesSecretRef$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentServerCaCertificatesSecretRefFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentServerCaCertificatesSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentServerCaCertificatesSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentServerCaCertificatesSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentServerCaCertificates$inboundSchema: z.ZodType< TargetDeploymentServerCaCertificates, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentServerCaCertificatesSecretRef$inboundSchema ), }); export function targetDeploymentServerCaCertificatesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentServerCaCertificates$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentServerCaCertificates' from JSON`, ); } /** @internal */ export const TargetDeploymentServerCaCertificatesUnion$inboundSchema: z.ZodType< TargetDeploymentServerCaCertificatesUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentServerCaCertificates$inboundSchema), z.array(z.string()), z.any(), ]); export function targetDeploymentServerCaCertificatesUnionFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentServerCaCertificatesUnion, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentServerCaCertificatesUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentServerCaCertificatesUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentUsernameSecretRef2$inboundSchema: z.ZodType< TargetDeploymentUsernameSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentUsernameSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentUsernameSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentUsernameSecretRef2' from JSON`, ); } /** @internal */ export const TargetDeploymentUsername2$inboundSchema: z.ZodType< TargetDeploymentUsername2, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentUsernameSecretRef2$inboundSchema), }); export function targetDeploymentUsername2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentUsername2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentUsername2' from JSON`, ); } /** @internal */ export const TargetDeploymentUsernameUnion2$inboundSchema: z.ZodType< TargetDeploymentUsernameUnion2, unknown > = z.union([ z.lazy(() => TargetDeploymentUsername2$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentUsernameUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentUsernameUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentUsernameUnion2' from JSON`, ); } /** @internal */ export const TargetDeploymentTypePostgres2$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypePostgres2 > = z.enum(TargetDeploymentTypePostgres2); /** @internal */ export const TargetDeploymentExternalBindingsCloudSQL$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsCloudSQL, unknown > = z.object({ database: z.nullable( z.union([ z.lazy(() => TargetDeploymentDatabase3$inboundSchema), z.any(), z.string(), ]), ).optional(), host: z.nullable( z.union([ z.lazy(() => TargetDeploymentHost1$inboundSchema), z.any(), z.string(), ]), ).optional(), passwordSecretName: z.nullable( z.union([ z.lazy(() => TargetDeploymentPasswordSecretName$inboundSchema), z.any(), z.string(), ]), ).optional(), port: z.nullable( z.union([ z.lazy(() => TargetDeploymentPort2$inboundSchema), z.int(), z.any(), ]), ).optional(), serverCaCertificates: z.nullable( z.union([ z.lazy(() => TargetDeploymentServerCaCertificates$inboundSchema), z.array(z.string()), z.any(), ]), ).optional(), username: z.nullable( z.union([ z.lazy(() => TargetDeploymentUsername2$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("cloud-sql"), type: TargetDeploymentTypePostgres2$inboundSchema, }); export function targetDeploymentExternalBindingsCloudSQLFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExternalBindingsCloudSQL, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsCloudSQL$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExternalBindingsCloudSQL' from JSON`, ); } /** @internal */ export const TargetDeploymentClusterEndpointSecretRef$inboundSchema: z.ZodType< TargetDeploymentClusterEndpointSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentClusterEndpointSecretRefFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentClusterEndpointSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentClusterEndpointSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentClusterEndpointSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentClusterEndpoint$inboundSchema: z.ZodType< TargetDeploymentClusterEndpoint, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentClusterEndpointSecretRef$inboundSchema ), }); export function targetDeploymentClusterEndpointFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentClusterEndpoint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentClusterEndpoint' from JSON`, ); } /** @internal */ export const TargetDeploymentClusterEndpointUnion$inboundSchema: z.ZodType< TargetDeploymentClusterEndpointUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentClusterEndpoint$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentClusterEndpointUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentClusterEndpointUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentClusterEndpointUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabaseSecretRef2$inboundSchema: z.ZodType< TargetDeploymentDatabaseSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentDatabaseSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabaseSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabaseSecretRef2' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabase2$inboundSchema: z.ZodType< TargetDeploymentDatabase2, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentDatabaseSecretRef2$inboundSchema), }); export function targetDeploymentDatabase2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabase2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabase2' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabaseUnion1$inboundSchema: z.ZodType< TargetDeploymentDatabaseUnion1, unknown > = z.union([ z.lazy(() => TargetDeploymentDatabase2$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentDatabaseUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabaseUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabaseUnion1' from JSON`, ); } /** @internal */ export const TargetDeploymentPasswordSecretArnSecretRef$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentPasswordSecretArnSecretRefFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentPasswordSecretArnSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentPasswordSecretArnSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentPasswordSecretArnSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentPasswordSecretArn$inboundSchema: z.ZodType< TargetDeploymentPasswordSecretArn, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentPasswordSecretArnSecretRef$inboundSchema ), }); export function targetDeploymentPasswordSecretArnFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPasswordSecretArn$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPasswordSecretArn' from JSON`, ); } /** @internal */ export const TargetDeploymentPasswordSecretArnUnion$inboundSchema: z.ZodType< TargetDeploymentPasswordSecretArnUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentPasswordSecretArn$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentPasswordSecretArnUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPasswordSecretArnUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPasswordSecretArnUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentPortSecretRef1$inboundSchema: z.ZodType< TargetDeploymentPortSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentPortSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPortSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPortSecretRef1' from JSON`, ); } /** @internal */ export const TargetDeploymentPort1$inboundSchema: z.ZodType< TargetDeploymentPort1, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentPortSecretRef1$inboundSchema), }); export function targetDeploymentPort1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPort1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPort1' from JSON`, ); } /** @internal */ export const TargetDeploymentPortUnion1$inboundSchema: z.ZodType< TargetDeploymentPortUnion1, unknown > = z.union([ z.lazy(() => TargetDeploymentPort1$inboundSchema), z.int(), z.any(), ]); export function targetDeploymentPortUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPortUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPortUnion1' from JSON`, ); } /** @internal */ export const TargetDeploymentUsernameSecretRef1$inboundSchema: z.ZodType< TargetDeploymentUsernameSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentUsernameSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentUsernameSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentUsernameSecretRef1' from JSON`, ); } /** @internal */ export const TargetDeploymentUsername1$inboundSchema: z.ZodType< TargetDeploymentUsername1, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentUsernameSecretRef1$inboundSchema), }); export function targetDeploymentUsername1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentUsername1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentUsername1' from JSON`, ); } /** @internal */ export const TargetDeploymentUsernameUnion1$inboundSchema: z.ZodType< TargetDeploymentUsernameUnion1, unknown > = z.union([ z.lazy(() => TargetDeploymentUsername1$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentUsernameUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentUsernameUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentUsernameUnion1' from JSON`, ); } /** @internal */ export const TargetDeploymentTypePostgres1$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypePostgres1 > = z.enum(TargetDeploymentTypePostgres1); /** @internal */ export const TargetDeploymentExternalBindingsAurora$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsAurora, unknown > = z.object({ clusterEndpoint: z.nullable( z.union([ z.lazy(() => TargetDeploymentClusterEndpoint$inboundSchema), z.any(), z.string(), ]), ).optional(), database: z.nullable( z.union([ z.lazy(() => TargetDeploymentDatabase2$inboundSchema), z.any(), z.string(), ]), ).optional(), passwordSecretArn: z.nullable( z.union([ z.lazy(() => TargetDeploymentPasswordSecretArn$inboundSchema), z.any(), z.string(), ]), ).optional(), port: z.nullable( z.union([ z.lazy(() => TargetDeploymentPort1$inboundSchema), z.int(), z.any(), ]), ).optional(), username: z.nullable( z.union([ z.lazy(() => TargetDeploymentUsername1$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("aurora"), type: TargetDeploymentTypePostgres1$inboundSchema, }); export function targetDeploymentExternalBindingsAuroraFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsAurora$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsAurora' from JSON`, ); } /** @internal */ export const TargetDeploymentExternalBindingsUnion6$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsUnion6, unknown > = z.union([ z.lazy(() => TargetDeploymentExternalBindingsAurora$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsCloudSQL$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsFlexibleServer$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsExternal$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsLocalPostgres$inboundSchema), ]); export function targetDeploymentExternalBindingsUnion6FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsUnion6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsUnion6' from JSON`, ); } /** @internal */ export const TargetDeploymentDefaultDomainSecretRef$inboundSchema: z.ZodType< TargetDeploymentDefaultDomainSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentDefaultDomainSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDefaultDomainSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDefaultDomainSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentDefaultDomain$inboundSchema: z.ZodType< TargetDeploymentDefaultDomain, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentDefaultDomainSecretRef$inboundSchema), }); export function targetDeploymentDefaultDomainFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDefaultDomain$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDefaultDomain' from JSON`, ); } /** @internal */ export const TargetDeploymentDefaultDomainUnion$inboundSchema: z.ZodType< TargetDeploymentDefaultDomainUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentDefaultDomain$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentDefaultDomainUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDefaultDomainUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDefaultDomainUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentEnvironmentNameSecretRef$inboundSchema: z.ZodType< TargetDeploymentEnvironmentNameSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentEnvironmentNameSecretRefFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentEnvironmentNameSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentEnvironmentNameSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentEnvironmentNameSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentEnvironmentName$inboundSchema: z.ZodType< TargetDeploymentEnvironmentName, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentEnvironmentNameSecretRef$inboundSchema ), }); export function targetDeploymentEnvironmentNameFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentEnvironmentName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentEnvironmentName' from JSON`, ); } /** @internal */ export const TargetDeploymentEnvironmentNameUnion$inboundSchema: z.ZodType< TargetDeploymentEnvironmentNameUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentEnvironmentName$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentEnvironmentNameUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentEnvironmentNameUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentEnvironmentNameUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentResourceGroupNameSecretRef3$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentResourceGroupNameSecretRef3FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentResourceGroupNameSecretRef3, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentResourceGroupNameSecretRef3$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentResourceGroupNameSecretRef3' from JSON`, ); } /** @internal */ export const TargetDeploymentResourceGroupName3$inboundSchema: z.ZodType< TargetDeploymentResourceGroupName3, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentResourceGroupNameSecretRef3$inboundSchema ), }); export function targetDeploymentResourceGroupName3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentResourceGroupName3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentResourceGroupName3' from JSON`, ); } /** @internal */ export const TargetDeploymentResourceGroupNameUnion3$inboundSchema: z.ZodType< TargetDeploymentResourceGroupNameUnion3, unknown > = z.union([ z.lazy(() => TargetDeploymentResourceGroupName3$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentResourceGroupNameUnion3FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentResourceGroupNameUnion3, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentResourceGroupNameUnion3$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentResourceGroupNameUnion3' from JSON`, ); } /** @internal */ export const TargetDeploymentResourceIdSecretRef$inboundSchema: z.ZodType< TargetDeploymentResourceIdSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentResourceIdSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentResourceIdSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentResourceIdSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentResourceId$inboundSchema: z.ZodType< TargetDeploymentResourceId, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentResourceIdSecretRef$inboundSchema), }); export function targetDeploymentResourceIdFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentResourceId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentResourceId' from JSON`, ); } /** @internal */ export const TargetDeploymentResourceIdUnion$inboundSchema: z.ZodType< TargetDeploymentResourceIdUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentResourceId$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentResourceIdUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentResourceIdUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentResourceIdUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentStaticIpSecretRef$inboundSchema: z.ZodType< TargetDeploymentStaticIpSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentStaticIpSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentStaticIpSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentStaticIpSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentStaticIp$inboundSchema: z.ZodType< TargetDeploymentStaticIp, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentStaticIpSecretRef$inboundSchema), }); export function targetDeploymentStaticIpFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentStaticIp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentStaticIp' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeContainerAppsEnvironment$inboundSchema: z.ZodEnum = z.enum( TargetDeploymentTypeContainerAppsEnvironment, ); /** @internal */ export const TargetDeploymentExternalBindingsContainerAppsEnvironment$inboundSchema: z.ZodType = z.object({ defaultDomain: z.nullable( z.union([ z.lazy(() => TargetDeploymentDefaultDomain$inboundSchema), z.any(), z.string(), ]), ).optional(), environmentName: z.nullable( z.union([ z.lazy(() => TargetDeploymentEnvironmentName$inboundSchema), z.any(), z.string(), ]), ).optional(), resourceGroupName: z.nullable( z.union([ z.lazy(() => TargetDeploymentResourceGroupName3$inboundSchema), z.any(), z.string(), ]), ).optional(), resourceId: z.nullable( z.union([ z.lazy(() => TargetDeploymentResourceId$inboundSchema), z.any(), z.string(), ]), ).optional(), staticIp: z.nullable(z.any()).optional(), type: TargetDeploymentTypeContainerAppsEnvironment$inboundSchema, }); export function targetDeploymentExternalBindingsContainerAppsEnvironmentFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExternalBindingsContainerAppsEnvironment, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsContainerAppsEnvironment$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsContainerAppsEnvironment' from JSON`, ); } /** @internal */ export const TargetDeploymentDataDirSecretRef3$inboundSchema: z.ZodType< TargetDeploymentDataDirSecretRef3, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentDataDirSecretRef3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDataDirSecretRef3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDataDirSecretRef3' from JSON`, ); } /** @internal */ export const TargetDeploymentDataDir3$inboundSchema: z.ZodType< TargetDeploymentDataDir3, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentDataDirSecretRef3$inboundSchema), }); export function targetDeploymentDataDir3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDataDir3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDataDir3' from JSON`, ); } /** @internal */ export const TargetDeploymentDataDirUnion2$inboundSchema: z.ZodType< TargetDeploymentDataDirUnion2, unknown > = z.union([ z.lazy(() => TargetDeploymentDataDir3$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentDataDirUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDataDirUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDataDirUnion2' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeVault5$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeVault5 > = z.enum(TargetDeploymentTypeVault5); /** @internal */ export const TargetDeploymentExternalBindingsLocalVault$inboundSchema: z.ZodType = z.object({ dataDir: z.nullable( z.union([ z.lazy(() => TargetDeploymentDataDir3$inboundSchema), z.any(), z.string(), ]), ).optional(), vaultName: z.string(), service: z.literal("local-vault"), type: TargetDeploymentTypeVault5$inboundSchema, }); export function targetDeploymentExternalBindingsLocalVaultFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExternalBindingsLocalVault, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsLocalVault$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExternalBindingsLocalVault' from JSON`, ); } /** @internal */ export const TargetDeploymentNamespaceSecretRef2$inboundSchema: z.ZodType< TargetDeploymentNamespaceSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentNamespaceSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentNamespaceSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentNamespaceSecretRef2' from JSON`, ); } /** @internal */ export const TargetDeploymentNamespace2$inboundSchema: z.ZodType< TargetDeploymentNamespace2, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentNamespaceSecretRef2$inboundSchema), }); export function targetDeploymentNamespace2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentNamespace2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentNamespace2' from JSON`, ); } /** @internal */ export const TargetDeploymentNamespaceUnion2$inboundSchema: z.ZodType< TargetDeploymentNamespaceUnion2, unknown > = z.union([ z.lazy(() => TargetDeploymentNamespace2$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentNamespaceUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentNamespaceUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentNamespaceUnion2' from JSON`, ); } /** @internal */ export const TargetDeploymentVaultPrefixSecretRef3$inboundSchema: z.ZodType< TargetDeploymentVaultPrefixSecretRef3, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentVaultPrefixSecretRef3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentVaultPrefixSecretRef3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentVaultPrefixSecretRef3' from JSON`, ); } /** @internal */ export const TargetDeploymentVaultPrefix3$inboundSchema: z.ZodType< TargetDeploymentVaultPrefix3, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentVaultPrefixSecretRef3$inboundSchema), }); export function targetDeploymentVaultPrefix3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentVaultPrefix3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentVaultPrefix3' from JSON`, ); } /** @internal */ export const TargetDeploymentVaultPrefixUnion3$inboundSchema: z.ZodType< TargetDeploymentVaultPrefixUnion3, unknown > = z.union([ z.lazy(() => TargetDeploymentVaultPrefix3$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentVaultPrefixUnion3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentVaultPrefixUnion3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentVaultPrefixUnion3' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeVault4$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeVault4 > = z.enum(TargetDeploymentTypeVault4); /** @internal */ export const TargetDeploymentExternalBindingsKubernetesSecret$inboundSchema: z.ZodType = z .object({ namespace: z.nullable( z.union([ z.lazy(() => TargetDeploymentNamespace2$inboundSchema), z.any(), z.string(), ]), ).optional(), vaultPrefix: z.nullable( z.union([ z.lazy(() => TargetDeploymentVaultPrefix3$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("kubernetes-secret"), type: TargetDeploymentTypeVault4$inboundSchema, }); export function targetDeploymentExternalBindingsKubernetesSecretFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExternalBindingsKubernetesSecret, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsKubernetesSecret$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExternalBindingsKubernetesSecret' from JSON`, ); } /** @internal */ export const TargetDeploymentVaultNameSecretRef$inboundSchema: z.ZodType< TargetDeploymentVaultNameSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentVaultNameSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentVaultNameSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentVaultNameSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentVaultName$inboundSchema: z.ZodType< TargetDeploymentVaultName, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentVaultNameSecretRef$inboundSchema), }); export function targetDeploymentVaultNameFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentVaultName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentVaultName' from JSON`, ); } /** @internal */ export const TargetDeploymentVaultNameUnion$inboundSchema: z.ZodType< TargetDeploymentVaultNameUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentVaultName$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentVaultNameUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentVaultNameUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentVaultNameUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeVault3$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeVault3 > = z.enum(TargetDeploymentTypeVault3); /** @internal */ export const TargetDeploymentExternalBindingsKeyVault$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsKeyVault, unknown > = z.object({ vaultName: z.nullable( z.union([ z.lazy(() => TargetDeploymentVaultName$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("key-vault"), type: TargetDeploymentTypeVault3$inboundSchema, }); export function targetDeploymentExternalBindingsKeyVaultFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExternalBindingsKeyVault, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsKeyVault$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExternalBindingsKeyVault' from JSON`, ); } /** @internal */ export const TargetDeploymentVaultPrefixSecretRef2$inboundSchema: z.ZodType< TargetDeploymentVaultPrefixSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentVaultPrefixSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentVaultPrefixSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentVaultPrefixSecretRef2' from JSON`, ); } /** @internal */ export const TargetDeploymentVaultPrefix2$inboundSchema: z.ZodType< TargetDeploymentVaultPrefix2, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentVaultPrefixSecretRef2$inboundSchema), }); export function targetDeploymentVaultPrefix2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentVaultPrefix2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentVaultPrefix2' from JSON`, ); } /** @internal */ export const TargetDeploymentVaultPrefixUnion2$inboundSchema: z.ZodType< TargetDeploymentVaultPrefixUnion2, unknown > = z.union([ z.lazy(() => TargetDeploymentVaultPrefix2$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentVaultPrefixUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentVaultPrefixUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentVaultPrefixUnion2' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeVault2$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeVault2 > = z.enum(TargetDeploymentTypeVault2); /** @internal */ export const TargetDeploymentExternalBindingsSecretManager$inboundSchema: z.ZodType = z.object({ vaultPrefix: z.nullable( z.union([ z.lazy(() => TargetDeploymentVaultPrefix2$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("secret-manager"), type: TargetDeploymentTypeVault2$inboundSchema, }); export function targetDeploymentExternalBindingsSecretManagerFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExternalBindingsSecretManager, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsSecretManager$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExternalBindingsSecretManager' from JSON`, ); } /** @internal */ export const TargetDeploymentVaultPrefixSecretRef1$inboundSchema: z.ZodType< TargetDeploymentVaultPrefixSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentVaultPrefixSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentVaultPrefixSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentVaultPrefixSecretRef1' from JSON`, ); } /** @internal */ export const TargetDeploymentVaultPrefix1$inboundSchema: z.ZodType< TargetDeploymentVaultPrefix1, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentVaultPrefixSecretRef1$inboundSchema), }); export function targetDeploymentVaultPrefix1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentVaultPrefix1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentVaultPrefix1' from JSON`, ); } /** @internal */ export const TargetDeploymentVaultPrefixUnion1$inboundSchema: z.ZodType< TargetDeploymentVaultPrefixUnion1, unknown > = z.union([ z.lazy(() => TargetDeploymentVaultPrefix1$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentVaultPrefixUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentVaultPrefixUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentVaultPrefixUnion1' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeVault1$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeVault1 > = z.enum(TargetDeploymentTypeVault1); /** @internal */ export const TargetDeploymentExternalBindingsParameterStore$inboundSchema: z.ZodType = z.object( { vaultPrefix: z.nullable(z.union([ z.lazy(() => TargetDeploymentVaultPrefix1$inboundSchema), z.any(), z.string(), ])).optional(), service: z.literal("parameter-store"), type: TargetDeploymentTypeVault1$inboundSchema, }, ); export function targetDeploymentExternalBindingsParameterStoreFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExternalBindingsParameterStore, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsParameterStore$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExternalBindingsParameterStore' from JSON`, ); } /** @internal */ export const TargetDeploymentExternalBindingsUnion5$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsUnion5, unknown > = z.union([ z.lazy(() => TargetDeploymentExternalBindingsParameterStore$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsSecretManager$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsKeyVault$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsKubernetesSecret$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsLocalVault$inboundSchema), ]); export function targetDeploymentExternalBindingsUnion5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsUnion5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsUnion5' from JSON`, ); } /** @internal */ export const TargetDeploymentDataDirSecretRef2$inboundSchema: z.ZodType< TargetDeploymentDataDirSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentDataDirSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDataDirSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDataDirSecretRef2' from JSON`, ); } /** @internal */ export const TargetDeploymentDataDir2$inboundSchema: z.ZodType< TargetDeploymentDataDir2, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentDataDirSecretRef2$inboundSchema), }); export function targetDeploymentDataDir2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDataDir2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDataDir2' from JSON`, ); } /** @internal */ export const TargetDeploymentRegistryUrlSecretRef$inboundSchema: z.ZodType< TargetDeploymentRegistryUrlSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentRegistryUrlSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRegistryUrlSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRegistryUrlSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentRegistryUrl$inboundSchema: z.ZodType< TargetDeploymentRegistryUrl, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentRegistryUrlSecretRef$inboundSchema), }); export function targetDeploymentRegistryUrlFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRegistryUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRegistryUrl' from JSON`, ); } /** @internal */ export const TargetDeploymentRegistryUrlUnion$inboundSchema: z.ZodType< TargetDeploymentRegistryUrlUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentRegistryUrl$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentRegistryUrlUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRegistryUrlUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRegistryUrlUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeArtifactRegistry4$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeArtifactRegistry4 > = z.enum(TargetDeploymentTypeArtifactRegistry4); /** @internal */ export const TargetDeploymentExternalBindingsLocal$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsLocal, unknown > = z.object({ dataDir: z.nullable(z.any()).optional(), registryUrl: z.nullable( z.union([ z.lazy(() => TargetDeploymentRegistryUrl$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("local"), type: TargetDeploymentTypeArtifactRegistry4$inboundSchema, }); export function targetDeploymentExternalBindingsLocalFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsLocal$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsLocal' from JSON`, ); } /** @internal */ export const TargetDeploymentPullServiceAccountEmailSecretRef$inboundSchema: z.ZodType = z .object({ key: z.string(), name: z.string(), }); export function targetDeploymentPullServiceAccountEmailSecretRefFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentPullServiceAccountEmailSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentPullServiceAccountEmailSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentPullServiceAccountEmailSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentPullServiceAccountEmail$inboundSchema: z.ZodType< TargetDeploymentPullServiceAccountEmail, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentPullServiceAccountEmailSecretRef$inboundSchema ), }); export function targetDeploymentPullServiceAccountEmailFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentPullServiceAccountEmail, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentPullServiceAccountEmail$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentPullServiceAccountEmail' from JSON`, ); } /** @internal */ export const TargetDeploymentPushServiceAccountEmailSecretRef$inboundSchema: z.ZodType = z .object({ key: z.string(), name: z.string(), }); export function targetDeploymentPushServiceAccountEmailSecretRefFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentPushServiceAccountEmailSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentPushServiceAccountEmailSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentPushServiceAccountEmailSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentPushServiceAccountEmail$inboundSchema: z.ZodType< TargetDeploymentPushServiceAccountEmail, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentPushServiceAccountEmailSecretRef$inboundSchema ), }); export function targetDeploymentPushServiceAccountEmailFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentPushServiceAccountEmail, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentPushServiceAccountEmail$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentPushServiceAccountEmail' from JSON`, ); } /** @internal */ export const TargetDeploymentRepositoryNameSecretRef$inboundSchema: z.ZodType< TargetDeploymentRepositoryNameSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentRepositoryNameSecretRefFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentRepositoryNameSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentRepositoryNameSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentRepositoryNameSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentRepositoryName$inboundSchema: z.ZodType< TargetDeploymentRepositoryName, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentRepositoryNameSecretRef$inboundSchema ), }); export function targetDeploymentRepositoryNameFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRepositoryName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRepositoryName' from JSON`, ); } /** @internal */ export const TargetDeploymentRepositoryNameUnion$inboundSchema: z.ZodType< TargetDeploymentRepositoryNameUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentRepositoryName$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentRepositoryNameUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRepositoryNameUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRepositoryNameUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeArtifactRegistry3$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeArtifactRegistry3 > = z.enum(TargetDeploymentTypeArtifactRegistry3); /** @internal */ export const TargetDeploymentExternalBindingsGar$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsGar, unknown > = z.object({ pullServiceAccountEmail: z.nullable(z.any()).optional(), pushServiceAccountEmail: z.nullable(z.any()).optional(), repositoryName: z.nullable( z.union([ z.lazy(() => TargetDeploymentRepositoryName$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("gar"), type: TargetDeploymentTypeArtifactRegistry3$inboundSchema, }); export function targetDeploymentExternalBindingsGarFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsGar$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsGar' from JSON`, ); } /** @internal */ export const TargetDeploymentRegistryNameSecretRef$inboundSchema: z.ZodType< TargetDeploymentRegistryNameSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentRegistryNameSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRegistryNameSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRegistryNameSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentRegistryName$inboundSchema: z.ZodType< TargetDeploymentRegistryName, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentRegistryNameSecretRef$inboundSchema), }); export function targetDeploymentRegistryNameFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRegistryName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRegistryName' from JSON`, ); } /** @internal */ export const TargetDeploymentRegistryNameUnion$inboundSchema: z.ZodType< TargetDeploymentRegistryNameUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentRegistryName$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentRegistryNameUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRegistryNameUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRegistryNameUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentRepositoryPrefixSecretRef2$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentRepositoryPrefixSecretRef2FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentRepositoryPrefixSecretRef2, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentRepositoryPrefixSecretRef2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentRepositoryPrefixSecretRef2' from JSON`, ); } /** @internal */ export const TargetDeploymentRepositoryPrefix2$inboundSchema: z.ZodType< TargetDeploymentRepositoryPrefix2, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentRepositoryPrefixSecretRef2$inboundSchema ), }); export function targetDeploymentRepositoryPrefix2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRepositoryPrefix2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRepositoryPrefix2' from JSON`, ); } /** @internal */ export const TargetDeploymentResourceGroupNameSecretRef2$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentResourceGroupNameSecretRef2FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentResourceGroupNameSecretRef2, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentResourceGroupNameSecretRef2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentResourceGroupNameSecretRef2' from JSON`, ); } /** @internal */ export const TargetDeploymentResourceGroupName2$inboundSchema: z.ZodType< TargetDeploymentResourceGroupName2, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentResourceGroupNameSecretRef2$inboundSchema ), }); export function targetDeploymentResourceGroupName2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentResourceGroupName2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentResourceGroupName2' from JSON`, ); } /** @internal */ export const TargetDeploymentResourceGroupNameUnion2$inboundSchema: z.ZodType< TargetDeploymentResourceGroupNameUnion2, unknown > = z.union([ z.lazy(() => TargetDeploymentResourceGroupName2$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentResourceGroupNameUnion2FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentResourceGroupNameUnion2, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentResourceGroupNameUnion2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentResourceGroupNameUnion2' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeArtifactRegistry2$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeArtifactRegistry2 > = z.enum(TargetDeploymentTypeArtifactRegistry2); /** @internal */ export const TargetDeploymentExternalBindingsAcr$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsAcr, unknown > = z.object({ registryName: z.nullable( z.union([ z.lazy(() => TargetDeploymentRegistryName$inboundSchema), z.any(), z.string(), ]), ).optional(), repositoryPrefix: z.nullable(z.any()).optional(), resourceGroupName: z.nullable( z.union([ z.lazy(() => TargetDeploymentResourceGroupName2$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("acr"), type: TargetDeploymentTypeArtifactRegistry2$inboundSchema, }); export function targetDeploymentExternalBindingsAcrFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsAcr$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsAcr' from JSON`, ); } /** @internal */ export const TargetDeploymentPullRoleArnSecretRef$inboundSchema: z.ZodType< TargetDeploymentPullRoleArnSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentPullRoleArnSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPullRoleArnSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPullRoleArnSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentPullRoleArn$inboundSchema: z.ZodType< TargetDeploymentPullRoleArn, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentPullRoleArnSecretRef$inboundSchema), }); export function targetDeploymentPullRoleArnFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPullRoleArn$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPullRoleArn' from JSON`, ); } /** @internal */ export const TargetDeploymentPushRoleArnSecretRef$inboundSchema: z.ZodType< TargetDeploymentPushRoleArnSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentPushRoleArnSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPushRoleArnSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPushRoleArnSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentPushRoleArn$inboundSchema: z.ZodType< TargetDeploymentPushRoleArn, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentPushRoleArnSecretRef$inboundSchema), }); export function targetDeploymentPushRoleArnFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPushRoleArn$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPushRoleArn' from JSON`, ); } /** @internal */ export const TargetDeploymentRepositoryPrefixSecretRef1$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentRepositoryPrefixSecretRef1FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentRepositoryPrefixSecretRef1, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentRepositoryPrefixSecretRef1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentRepositoryPrefixSecretRef1' from JSON`, ); } /** @internal */ export const TargetDeploymentRepositoryPrefix1$inboundSchema: z.ZodType< TargetDeploymentRepositoryPrefix1, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentRepositoryPrefixSecretRef1$inboundSchema ), }); export function targetDeploymentRepositoryPrefix1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRepositoryPrefix1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRepositoryPrefix1' from JSON`, ); } /** @internal */ export const TargetDeploymentRepositoryPrefixUnion$inboundSchema: z.ZodType< TargetDeploymentRepositoryPrefixUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentRepositoryPrefix1$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentRepositoryPrefixUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRepositoryPrefixUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRepositoryPrefixUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeArtifactRegistry1$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeArtifactRegistry1 > = z.enum(TargetDeploymentTypeArtifactRegistry1); /** @internal */ export const TargetDeploymentExternalBindingsEcr$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsEcr, unknown > = z.object({ pullRoleArn: z.nullable(z.any()).optional(), pushRoleArn: z.nullable(z.any()).optional(), repositoryPrefix: z.nullable( z.union([ z.lazy(() => TargetDeploymentRepositoryPrefix1$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("ecr"), type: TargetDeploymentTypeArtifactRegistry1$inboundSchema, }); export function targetDeploymentExternalBindingsEcrFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsEcr$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsEcr' from JSON`, ); } /** @internal */ export const TargetDeploymentExternalBindingsUnion4$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsUnion4, unknown > = z.union([ z.lazy(() => TargetDeploymentExternalBindingsEcr$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsAcr$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsGar$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsLocal$inboundSchema), ]); export function targetDeploymentExternalBindingsUnion4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsUnion4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsUnion4' from JSON`, ); } /** @internal */ export const TargetDeploymentDataDirSecretRef1$inboundSchema: z.ZodType< TargetDeploymentDataDirSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentDataDirSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDataDirSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDataDirSecretRef1' from JSON`, ); } /** @internal */ export const TargetDeploymentDataDir1$inboundSchema: z.ZodType< TargetDeploymentDataDir1, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentDataDirSecretRef1$inboundSchema), }); export function targetDeploymentDataDir1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDataDir1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDataDir1' from JSON`, ); } /** @internal */ export const TargetDeploymentDataDirUnion1$inboundSchema: z.ZodType< TargetDeploymentDataDirUnion1, unknown > = z.union([ z.lazy(() => TargetDeploymentDataDir1$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentDataDirUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDataDirUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDataDirUnion1' from JSON`, ); } /** @internal */ export const TargetDeploymentKeyPrefixSecretRef2$inboundSchema: z.ZodType< TargetDeploymentKeyPrefixSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentKeyPrefixSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentKeyPrefixSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentKeyPrefixSecretRef2' from JSON`, ); } /** @internal */ export const TargetDeploymentKeyPrefix2$inboundSchema: z.ZodType< TargetDeploymentKeyPrefix2, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentKeyPrefixSecretRef2$inboundSchema), }); export function targetDeploymentKeyPrefix2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentKeyPrefix2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentKeyPrefix2' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeKv5$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeKv5 > = z.enum(TargetDeploymentTypeKv5); /** @internal */ export const TargetDeploymentExternalBindingsLocalKv$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsLocalKv, unknown > = z.object({ dataDir: z.nullable( z.union([ z.lazy(() => TargetDeploymentDataDir1$inboundSchema), z.any(), z.string(), ]), ).optional(), keyPrefix: z.nullable(z.any()).optional(), service: z.literal("local-kv"), type: TargetDeploymentTypeKv5$inboundSchema, }); export function targetDeploymentExternalBindingsLocalKvFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExternalBindingsLocalKv, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsLocalKv$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExternalBindingsLocalKv' from JSON`, ); } /** @internal */ export const TargetDeploymentConnectionUrlSecretRef$inboundSchema: z.ZodType< TargetDeploymentConnectionUrlSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentConnectionUrlSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentConnectionUrlSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentConnectionUrlSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentConnectionUrl$inboundSchema: z.ZodType< TargetDeploymentConnectionUrl, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentConnectionUrlSecretRef$inboundSchema), }); export function targetDeploymentConnectionUrlFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentConnectionUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentConnectionUrl' from JSON`, ); } /** @internal */ export const TargetDeploymentConnectionUrlUnion$inboundSchema: z.ZodType< TargetDeploymentConnectionUrlUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentConnectionUrl$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentConnectionUrlUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentConnectionUrlUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentConnectionUrlUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabaseSecretRef1$inboundSchema: z.ZodType< TargetDeploymentDatabaseSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentDatabaseSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabaseSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabaseSecretRef1' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabase1$inboundSchema: z.ZodType< TargetDeploymentDatabase1, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentDatabaseSecretRef1$inboundSchema), }); export function targetDeploymentDatabase1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabase1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabase1' from JSON`, ); } /** @internal */ export const TargetDeploymentKeyPrefixSecretRef1$inboundSchema: z.ZodType< TargetDeploymentKeyPrefixSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentKeyPrefixSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentKeyPrefixSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentKeyPrefixSecretRef1' from JSON`, ); } /** @internal */ export const TargetDeploymentKeyPrefix1$inboundSchema: z.ZodType< TargetDeploymentKeyPrefix1, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentKeyPrefixSecretRef1$inboundSchema), }); export function targetDeploymentKeyPrefix1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentKeyPrefix1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentKeyPrefix1' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeKv4$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeKv4 > = z.enum(TargetDeploymentTypeKv4); /** @internal */ export const TargetDeploymentExternalBindingsRedis$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsRedis, unknown > = z.object({ connectionUrl: z.nullable( z.union([ z.lazy(() => TargetDeploymentConnectionUrl$inboundSchema), z.any(), z.string(), ]), ).optional(), database: z.nullable(z.any()).optional(), keyPrefix: z.nullable(z.any()).optional(), service: z.literal("redis"), type: TargetDeploymentTypeKv4$inboundSchema, }); export function targetDeploymentExternalBindingsRedisFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsRedis$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsRedis' from JSON`, ); } /** @internal */ export const TargetDeploymentAccountNameSecretRef2$inboundSchema: z.ZodType< TargetDeploymentAccountNameSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentAccountNameSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentAccountNameSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentAccountNameSecretRef2' from JSON`, ); } /** @internal */ export const TargetDeploymentAccountName2$inboundSchema: z.ZodType< TargetDeploymentAccountName2, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentAccountNameSecretRef2$inboundSchema), }); export function targetDeploymentAccountName2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentAccountName2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentAccountName2' from JSON`, ); } /** @internal */ export const TargetDeploymentAccountNameUnion2$inboundSchema: z.ZodType< TargetDeploymentAccountNameUnion2, unknown > = z.union([ z.lazy(() => TargetDeploymentAccountName2$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentAccountNameUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentAccountNameUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentAccountNameUnion2' from JSON`, ); } /** @internal */ export const TargetDeploymentResourceGroupNameSecretRef1$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentResourceGroupNameSecretRef1FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentResourceGroupNameSecretRef1, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentResourceGroupNameSecretRef1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentResourceGroupNameSecretRef1' from JSON`, ); } /** @internal */ export const TargetDeploymentResourceGroupName1$inboundSchema: z.ZodType< TargetDeploymentResourceGroupName1, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentResourceGroupNameSecretRef1$inboundSchema ), }); export function targetDeploymentResourceGroupName1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentResourceGroupName1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentResourceGroupName1' from JSON`, ); } /** @internal */ export const TargetDeploymentResourceGroupNameUnion1$inboundSchema: z.ZodType< TargetDeploymentResourceGroupNameUnion1, unknown > = z.union([ z.lazy(() => TargetDeploymentResourceGroupName1$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentResourceGroupNameUnion1FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentResourceGroupNameUnion1, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentResourceGroupNameUnion1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentResourceGroupNameUnion1' from JSON`, ); } /** @internal */ export const TargetDeploymentTableNameSecretRef2$inboundSchema: z.ZodType< TargetDeploymentTableNameSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentTableNameSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentTableNameSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentTableNameSecretRef2' from JSON`, ); } /** @internal */ export const TargetDeploymentTableName2$inboundSchema: z.ZodType< TargetDeploymentTableName2, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentTableNameSecretRef2$inboundSchema), }); export function targetDeploymentTableName2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentTableName2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentTableName2' from JSON`, ); } /** @internal */ export const TargetDeploymentTableNameUnion2$inboundSchema: z.ZodType< TargetDeploymentTableNameUnion2, unknown > = z.union([ z.lazy(() => TargetDeploymentTableName2$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentTableNameUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentTableNameUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentTableNameUnion2' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeKv3$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeKv3 > = z.enum(TargetDeploymentTypeKv3); /** @internal */ export const TargetDeploymentExternalBindingsTablestorage$inboundSchema: z.ZodType = z.object({ accountName: z.nullable( z.union([ z.lazy(() => TargetDeploymentAccountName2$inboundSchema), z.any(), z.string(), ]), ).optional(), resourceGroupName: z.nullable( z.union([ z.lazy(() => TargetDeploymentResourceGroupName1$inboundSchema), z.any(), z.string(), ]), ).optional(), tableName: z.nullable( z.union([ z.lazy(() => TargetDeploymentTableName2$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("tablestorage"), type: TargetDeploymentTypeKv3$inboundSchema, }); export function targetDeploymentExternalBindingsTablestorageFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExternalBindingsTablestorage, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsTablestorage$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExternalBindingsTablestorage' from JSON`, ); } /** @internal */ export const TargetDeploymentCollectionNameSecretRef$inboundSchema: z.ZodType< TargetDeploymentCollectionNameSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentCollectionNameSecretRefFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentCollectionNameSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentCollectionNameSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentCollectionNameSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentCollectionName$inboundSchema: z.ZodType< TargetDeploymentCollectionName, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentCollectionNameSecretRef$inboundSchema ), }); export function targetDeploymentCollectionNameFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentCollectionName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentCollectionName' from JSON`, ); } /** @internal */ export const TargetDeploymentCollectionNameUnion$inboundSchema: z.ZodType< TargetDeploymentCollectionNameUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentCollectionName$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentCollectionNameUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentCollectionNameUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentCollectionNameUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabaseIdSecretRef$inboundSchema: z.ZodType< TargetDeploymentDatabaseIdSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentDatabaseIdSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabaseIdSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabaseIdSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabaseId$inboundSchema: z.ZodType< TargetDeploymentDatabaseId, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentDatabaseIdSecretRef$inboundSchema), }); export function targetDeploymentDatabaseIdFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabaseId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabaseId' from JSON`, ); } /** @internal */ export const TargetDeploymentDatabaseIdUnion$inboundSchema: z.ZodType< TargetDeploymentDatabaseIdUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentDatabaseId$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentDatabaseIdUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDatabaseIdUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDatabaseIdUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentProjectIdSecretRef$inboundSchema: z.ZodType< TargetDeploymentProjectIdSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentProjectIdSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProjectIdSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProjectIdSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentProjectId$inboundSchema: z.ZodType< TargetDeploymentProjectId, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentProjectIdSecretRef$inboundSchema), }); export function targetDeploymentProjectIdFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProjectId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProjectId' from JSON`, ); } /** @internal */ export const TargetDeploymentProjectIdUnion$inboundSchema: z.ZodType< TargetDeploymentProjectIdUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentProjectId$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentProjectIdUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProjectIdUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProjectIdUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeKv2$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeKv2 > = z.enum(TargetDeploymentTypeKv2); /** @internal */ export const TargetDeploymentExternalBindingsFirestore$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsFirestore, unknown > = z.object({ collectionName: z.nullable( z.union([ z.lazy(() => TargetDeploymentCollectionName$inboundSchema), z.any(), z.string(), ]), ).optional(), databaseId: z.nullable( z.union([ z.lazy(() => TargetDeploymentDatabaseId$inboundSchema), z.any(), z.string(), ]), ).optional(), projectId: z.nullable( z.union([ z.lazy(() => TargetDeploymentProjectId$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("firestore"), type: TargetDeploymentTypeKv2$inboundSchema, }); export function targetDeploymentExternalBindingsFirestoreFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExternalBindingsFirestore, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsFirestore$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExternalBindingsFirestore' from JSON`, ); } /** @internal */ export const TargetDeploymentEndpointUrlSecretRef$inboundSchema: z.ZodType< TargetDeploymentEndpointUrlSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentEndpointUrlSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentEndpointUrlSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentEndpointUrlSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentEndpointUrl$inboundSchema: z.ZodType< TargetDeploymentEndpointUrl, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentEndpointUrlSecretRef$inboundSchema), }); export function targetDeploymentEndpointUrlFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentEndpointUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentEndpointUrl' from JSON`, ); } /** @internal */ export const TargetDeploymentRegionSecretRef$inboundSchema: z.ZodType< TargetDeploymentRegionSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentRegionSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRegionSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRegionSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentRegion$inboundSchema: z.ZodType< TargetDeploymentRegion, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentRegionSecretRef$inboundSchema), }); export function targetDeploymentRegionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRegion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRegion' from JSON`, ); } /** @internal */ export const TargetDeploymentRegionUnion$inboundSchema: z.ZodType< TargetDeploymentRegionUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentRegion$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentRegionUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRegionUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRegionUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentTableNameSecretRef1$inboundSchema: z.ZodType< TargetDeploymentTableNameSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentTableNameSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentTableNameSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentTableNameSecretRef1' from JSON`, ); } /** @internal */ export const TargetDeploymentTableName1$inboundSchema: z.ZodType< TargetDeploymentTableName1, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentTableNameSecretRef1$inboundSchema), }); export function targetDeploymentTableName1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentTableName1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentTableName1' from JSON`, ); } /** @internal */ export const TargetDeploymentTableNameUnion1$inboundSchema: z.ZodType< TargetDeploymentTableNameUnion1, unknown > = z.union([ z.lazy(() => TargetDeploymentTableName1$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentTableNameUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentTableNameUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentTableNameUnion1' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeKv1$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeKv1 > = z.enum(TargetDeploymentTypeKv1); /** @internal */ export const TargetDeploymentExternalBindingsDynamodb$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsDynamodb, unknown > = z.object({ endpointUrl: z.nullable(z.any()).optional(), region: z.nullable( z.union([ z.lazy(() => TargetDeploymentRegion$inboundSchema), z.any(), z.string(), ]), ).optional(), tableName: z.nullable( z.union([ z.lazy(() => TargetDeploymentTableName1$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("dynamodb"), type: TargetDeploymentTypeKv1$inboundSchema, }); export function targetDeploymentExternalBindingsDynamodbFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExternalBindingsDynamodb, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsDynamodb$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExternalBindingsDynamodb' from JSON`, ); } /** @internal */ export const TargetDeploymentExternalBindingsUnion3$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsUnion3, unknown > = z.union([ z.lazy(() => TargetDeploymentExternalBindingsDynamodb$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsFirestore$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsTablestorage$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsRedis$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsLocalKv$inboundSchema), ]); export function targetDeploymentExternalBindingsUnion3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsUnion3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsUnion3' from JSON`, ); } /** @internal */ export const TargetDeploymentQueuePathSecretRef$inboundSchema: z.ZodType< TargetDeploymentQueuePathSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentQueuePathSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentQueuePathSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentQueuePathSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentQueuePath$inboundSchema: z.ZodType< TargetDeploymentQueuePath, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentQueuePathSecretRef$inboundSchema), }); export function targetDeploymentQueuePathFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentQueuePath$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentQueuePath' from JSON`, ); } /** @internal */ export const TargetDeploymentQueuePathUnion$inboundSchema: z.ZodType< TargetDeploymentQueuePathUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentQueuePath$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentQueuePathUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentQueuePathUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentQueuePathUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeQueue4$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeQueue4 > = z.enum(TargetDeploymentTypeQueue4); /** @internal */ export const TargetDeploymentExternalBindingsLocalQueue$inboundSchema: z.ZodType = z.object({ queuePath: z.nullable( z.union([ z.lazy(() => TargetDeploymentQueuePath$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("local-queue"), type: TargetDeploymentTypeQueue4$inboundSchema, }); export function targetDeploymentExternalBindingsLocalQueueFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExternalBindingsLocalQueue, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsLocalQueue$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExternalBindingsLocalQueue' from JSON`, ); } /** @internal */ export const TargetDeploymentNamespaceSecretRef1$inboundSchema: z.ZodType< TargetDeploymentNamespaceSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentNamespaceSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentNamespaceSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentNamespaceSecretRef1' from JSON`, ); } /** @internal */ export const TargetDeploymentNamespace1$inboundSchema: z.ZodType< TargetDeploymentNamespace1, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentNamespaceSecretRef1$inboundSchema), }); export function targetDeploymentNamespace1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentNamespace1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentNamespace1' from JSON`, ); } /** @internal */ export const TargetDeploymentNamespaceUnion1$inboundSchema: z.ZodType< TargetDeploymentNamespaceUnion1, unknown > = z.union([ z.lazy(() => TargetDeploymentNamespace1$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentNamespaceUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentNamespaceUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentNamespaceUnion1' from JSON`, ); } /** @internal */ export const TargetDeploymentQueueNameSecretRef$inboundSchema: z.ZodType< TargetDeploymentQueueNameSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentQueueNameSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentQueueNameSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentQueueNameSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentQueueName$inboundSchema: z.ZodType< TargetDeploymentQueueName, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentQueueNameSecretRef$inboundSchema), }); export function targetDeploymentQueueNameFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentQueueName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentQueueName' from JSON`, ); } /** @internal */ export const TargetDeploymentQueueNameUnion$inboundSchema: z.ZodType< TargetDeploymentQueueNameUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentQueueName$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentQueueNameUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentQueueNameUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentQueueNameUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeQueue3$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeQueue3 > = z.enum(TargetDeploymentTypeQueue3); /** @internal */ export const TargetDeploymentExternalBindingsServicebus$inboundSchema: z.ZodType = z.object({ namespace: z.nullable( z.union([ z.lazy(() => TargetDeploymentNamespace1$inboundSchema), z.any(), z.string(), ]), ).optional(), queueName: z.nullable( z.union([ z.lazy(() => TargetDeploymentQueueName$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("servicebus"), type: TargetDeploymentTypeQueue3$inboundSchema, }); export function targetDeploymentExternalBindingsServicebusFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExternalBindingsServicebus, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsServicebus$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExternalBindingsServicebus' from JSON`, ); } /** @internal */ export const TargetDeploymentSubscriptionSecretRef$inboundSchema: z.ZodType< TargetDeploymentSubscriptionSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentSubscriptionSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentSubscriptionSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentSubscriptionSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentSubscription$inboundSchema: z.ZodType< TargetDeploymentSubscription, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentSubscriptionSecretRef$inboundSchema), }); export function targetDeploymentSubscriptionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentSubscription$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentSubscription' from JSON`, ); } /** @internal */ export const TargetDeploymentSubscriptionUnion$inboundSchema: z.ZodType< TargetDeploymentSubscriptionUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentSubscription$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentSubscriptionUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentSubscriptionUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentSubscriptionUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentTopicSecretRef$inboundSchema: z.ZodType< TargetDeploymentTopicSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentTopicSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentTopicSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentTopicSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentTopic$inboundSchema: z.ZodType< TargetDeploymentTopic, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentTopicSecretRef$inboundSchema), }); export function targetDeploymentTopicFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentTopic$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentTopic' from JSON`, ); } /** @internal */ export const TargetDeploymentTopicUnion$inboundSchema: z.ZodType< TargetDeploymentTopicUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentTopic$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentTopicUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentTopicUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentTopicUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeQueue2$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeQueue2 > = z.enum(TargetDeploymentTypeQueue2); /** @internal */ export const TargetDeploymentExternalBindingsPubsub$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsPubsub, unknown > = z.object({ subscription: z.nullable( z.union([ z.lazy(() => TargetDeploymentSubscription$inboundSchema), z.any(), z.string(), ]), ).optional(), topic: z.nullable( z.union([ z.lazy(() => TargetDeploymentTopic$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("pubsub"), type: TargetDeploymentTypeQueue2$inboundSchema, }); export function targetDeploymentExternalBindingsPubsubFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsPubsub$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsPubsub' from JSON`, ); } /** @internal */ export const TargetDeploymentQueueUrlSecretRef$inboundSchema: z.ZodType< TargetDeploymentQueueUrlSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentQueueUrlSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentQueueUrlSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentQueueUrlSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentQueueUrl$inboundSchema: z.ZodType< TargetDeploymentQueueUrl, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentQueueUrlSecretRef$inboundSchema), }); export function targetDeploymentQueueUrlFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentQueueUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentQueueUrl' from JSON`, ); } /** @internal */ export const TargetDeploymentQueueUrlUnion$inboundSchema: z.ZodType< TargetDeploymentQueueUrlUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentQueueUrl$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentQueueUrlUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentQueueUrlUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentQueueUrlUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeQueue1$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeQueue1 > = z.enum(TargetDeploymentTypeQueue1); /** @internal */ export const TargetDeploymentExternalBindingsSqs$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsSqs, unknown > = z.object({ queueUrl: z.nullable( z.union([ z.lazy(() => TargetDeploymentQueueUrl$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("sqs"), type: TargetDeploymentTypeQueue1$inboundSchema, }); export function targetDeploymentExternalBindingsSqsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsSqs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsSqs' from JSON`, ); } /** @internal */ export const TargetDeploymentExternalBindingsUnion2$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsUnion2, unknown > = z.union([ z.lazy(() => TargetDeploymentExternalBindingsSqs$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsPubsub$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsServicebus$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsLocalQueue$inboundSchema), ]); export function targetDeploymentExternalBindingsUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsUnion2' from JSON`, ); } /** @internal */ export const TargetDeploymentStoragePathSecretRef$inboundSchema: z.ZodType< TargetDeploymentStoragePathSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentStoragePathSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentStoragePathSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentStoragePathSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentStoragePath$inboundSchema: z.ZodType< TargetDeploymentStoragePath, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentStoragePathSecretRef$inboundSchema), }); export function targetDeploymentStoragePathFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentStoragePath$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentStoragePath' from JSON`, ); } /** @internal */ export const TargetDeploymentStoragePathUnion$inboundSchema: z.ZodType< TargetDeploymentStoragePathUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentStoragePath$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentStoragePathUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentStoragePathUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentStoragePathUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeStorage4$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeStorage4 > = z.enum(TargetDeploymentTypeStorage4); /** @internal */ export const TargetDeploymentExternalBindingsLocalStorage$inboundSchema: z.ZodType = z.object({ storagePath: z.nullable( z.union([ z.lazy(() => TargetDeploymentStoragePath$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("local-storage"), type: TargetDeploymentTypeStorage4$inboundSchema, }); export function targetDeploymentExternalBindingsLocalStorageFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExternalBindingsLocalStorage, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsLocalStorage$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExternalBindingsLocalStorage' from JSON`, ); } /** @internal */ export const TargetDeploymentBucketNameSecretRef2$inboundSchema: z.ZodType< TargetDeploymentBucketNameSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentBucketNameSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentBucketNameSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentBucketNameSecretRef2' from JSON`, ); } /** @internal */ export const TargetDeploymentBucketName2$inboundSchema: z.ZodType< TargetDeploymentBucketName2, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentBucketNameSecretRef2$inboundSchema), }); export function targetDeploymentBucketName2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentBucketName2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentBucketName2' from JSON`, ); } /** @internal */ export const TargetDeploymentBucketNameUnion2$inboundSchema: z.ZodType< TargetDeploymentBucketNameUnion2, unknown > = z.union([ z.lazy(() => TargetDeploymentBucketName2$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentBucketNameUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentBucketNameUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentBucketNameUnion2' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeStorage3$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeStorage3 > = z.enum(TargetDeploymentTypeStorage3); /** @internal */ export const TargetDeploymentExternalBindingsGcs$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsGcs, unknown > = z.object({ bucketName: z.nullable( z.union([ z.lazy(() => TargetDeploymentBucketName2$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("gcs"), type: TargetDeploymentTypeStorage3$inboundSchema, }); export function targetDeploymentExternalBindingsGcsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsGcs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsGcs' from JSON`, ); } /** @internal */ export const TargetDeploymentAccountNameSecretRef1$inboundSchema: z.ZodType< TargetDeploymentAccountNameSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentAccountNameSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentAccountNameSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentAccountNameSecretRef1' from JSON`, ); } /** @internal */ export const TargetDeploymentAccountName1$inboundSchema: z.ZodType< TargetDeploymentAccountName1, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentAccountNameSecretRef1$inboundSchema), }); export function targetDeploymentAccountName1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentAccountName1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentAccountName1' from JSON`, ); } /** @internal */ export const TargetDeploymentAccountNameUnion1$inboundSchema: z.ZodType< TargetDeploymentAccountNameUnion1, unknown > = z.union([ z.lazy(() => TargetDeploymentAccountName1$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentAccountNameUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentAccountNameUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentAccountNameUnion1' from JSON`, ); } /** @internal */ export const TargetDeploymentContainerNameSecretRef$inboundSchema: z.ZodType< TargetDeploymentContainerNameSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentContainerNameSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentContainerNameSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentContainerNameSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentContainerName$inboundSchema: z.ZodType< TargetDeploymentContainerName, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentContainerNameSecretRef$inboundSchema), }); export function targetDeploymentContainerNameFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentContainerName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentContainerName' from JSON`, ); } /** @internal */ export const TargetDeploymentContainerNameUnion$inboundSchema: z.ZodType< TargetDeploymentContainerNameUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentContainerName$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentContainerNameUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentContainerNameUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentContainerNameUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeStorage2$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeStorage2 > = z.enum(TargetDeploymentTypeStorage2); /** @internal */ export const TargetDeploymentExternalBindingsBlob$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsBlob, unknown > = z.object({ accountName: z.nullable( z.union([ z.lazy(() => TargetDeploymentAccountName1$inboundSchema), z.any(), z.string(), ]), ).optional(), containerName: z.nullable( z.union([ z.lazy(() => TargetDeploymentContainerName$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("blob"), type: TargetDeploymentTypeStorage2$inboundSchema, }); export function targetDeploymentExternalBindingsBlobFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsBlob$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsBlob' from JSON`, ); } /** @internal */ export const TargetDeploymentBucketNameSecretRef1$inboundSchema: z.ZodType< TargetDeploymentBucketNameSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function targetDeploymentBucketNameSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentBucketNameSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentBucketNameSecretRef1' from JSON`, ); } /** @internal */ export const TargetDeploymentBucketName1$inboundSchema: z.ZodType< TargetDeploymentBucketName1, unknown > = z.object({ secretRef: z.lazy(() => TargetDeploymentBucketNameSecretRef1$inboundSchema), }); export function targetDeploymentBucketName1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentBucketName1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentBucketName1' from JSON`, ); } /** @internal */ export const TargetDeploymentBucketNameUnion1$inboundSchema: z.ZodType< TargetDeploymentBucketNameUnion1, unknown > = z.union([ z.lazy(() => TargetDeploymentBucketName1$inboundSchema), z.any(), z.string(), ]); export function targetDeploymentBucketNameUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentBucketNameUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentBucketNameUnion1' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeStorage1$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeStorage1 > = z.enum(TargetDeploymentTypeStorage1); /** @internal */ export const TargetDeploymentExternalBindingsS3$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsS3, unknown > = z.object({ bucketName: z.nullable( z.union([ z.lazy(() => TargetDeploymentBucketName1$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("s3"), type: TargetDeploymentTypeStorage1$inboundSchema, }); export function targetDeploymentExternalBindingsS3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsS3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsS3' from JSON`, ); } /** @internal */ export const TargetDeploymentExternalBindingsUnion1$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsUnion1, unknown > = z.union([ z.lazy(() => TargetDeploymentExternalBindingsS3$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsBlob$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsGcs$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsLocalStorage$inboundSchema), ]); export function targetDeploymentExternalBindingsUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsUnion1' from JSON`, ); } /** @internal */ export const TargetDeploymentExternalBindingsUnion7$inboundSchema: z.ZodType< TargetDeploymentExternalBindingsUnion7, unknown > = z.union([ z.lazy(() => TargetDeploymentExternalBindingsAi$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsContainerAppsEnvironment$inboundSchema ), z.union([ z.lazy(() => TargetDeploymentExternalBindingsS3$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsBlob$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsGcs$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsLocalStorage$inboundSchema), ]), z.union([ z.lazy(() => TargetDeploymentExternalBindingsSqs$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsPubsub$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsServicebus$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsLocalQueue$inboundSchema), ]), z.union([ z.lazy(() => TargetDeploymentExternalBindingsDynamodb$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsFirestore$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsTablestorage$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsRedis$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsLocalKv$inboundSchema), ]), z.union([ z.lazy(() => TargetDeploymentExternalBindingsEcr$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsAcr$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsGar$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsLocal$inboundSchema), ]), z.union([ z.lazy(() => TargetDeploymentExternalBindingsParameterStore$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsSecretManager$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsKeyVault$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsKubernetesSecret$inboundSchema ), z.lazy(() => TargetDeploymentExternalBindingsLocalVault$inboundSchema), ]), z.union([ z.lazy(() => TargetDeploymentExternalBindingsAurora$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsCloudSQL$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsFlexibleServer$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsExternal$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsLocalPostgres$inboundSchema), ]), ]); export function targetDeploymentExternalBindingsUnion7FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExternalBindingsUnion7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExternalBindingsUnion7' from JSON`, ); } /** @internal */ export const ConfigPlatformKubernetes$inboundSchema: z.ZodEnum< typeof ConfigPlatformKubernetes > = z.enum(ConfigPlatformKubernetes); /** @internal */ export const TargetDeploymentManagementConfigKubernetes$inboundSchema: z.ZodType = z.object({ platform: ConfigPlatformKubernetes$inboundSchema, }); export function targetDeploymentManagementConfigKubernetesFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentManagementConfigKubernetes, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentManagementConfigKubernetes$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentManagementConfigKubernetes' from JSON`, ); } /** @internal */ export const ConfigPlatformAzure$inboundSchema: z.ZodEnum< typeof ConfigPlatformAzure > = z.enum(ConfigPlatformAzure); /** @internal */ export const TargetDeploymentManagementConfigAzure$inboundSchema: z.ZodType< TargetDeploymentManagementConfigAzure, unknown > = z.object({ managingTenantId: z.string(), oidcIssuer: z.string(), oidcSubject: z.string(), platform: ConfigPlatformAzure$inboundSchema, }); export function targetDeploymentManagementConfigAzureFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentManagementConfigAzure$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentManagementConfigAzure' from JSON`, ); } /** @internal */ export const ConfigPlatformGcp$inboundSchema: z.ZodEnum< typeof ConfigPlatformGcp > = z.enum(ConfigPlatformGcp); /** @internal */ export const TargetDeploymentManagementConfigGcp$inboundSchema: z.ZodType< TargetDeploymentManagementConfigGcp, unknown > = z.object({ serviceAccountEmail: z.string(), platform: ConfigPlatformGcp$inboundSchema, }); export function targetDeploymentManagementConfigGcpFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentManagementConfigGcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentManagementConfigGcp' from JSON`, ); } /** @internal */ export const ConfigPlatformAws$inboundSchema: z.ZodEnum< typeof ConfigPlatformAws > = z.enum(ConfigPlatformAws); /** @internal */ export const TargetDeploymentManagementConfigAws$inboundSchema: z.ZodType< TargetDeploymentManagementConfigAws, unknown > = z.object({ managingRoleArn: z.string(), platform: ConfigPlatformAws$inboundSchema, }); export function targetDeploymentManagementConfigAwsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentManagementConfigAws$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentManagementConfigAws' from JSON`, ); } /** @internal */ export const TargetDeploymentManagementConfigUnion$inboundSchema: z.ZodType< TargetDeploymentManagementConfigUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentManagementConfigAzure$inboundSchema), z.lazy(() => TargetDeploymentManagementConfigAws$inboundSchema), z.lazy(() => TargetDeploymentManagementConfigGcp$inboundSchema), z.lazy(() => TargetDeploymentManagementConfigKubernetes$inboundSchema), z.any(), ]); export function targetDeploymentManagementConfigUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentManagementConfigUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentManagementConfigUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentMonitoring$inboundSchema: z.ZodType< TargetDeploymentMonitoring, unknown > = z.object({ logsAuthHeader: z.string(), logsEndpoint: z.string(), metricsAuthHeader: z.nullable(z.string()).optional(), metricsEndpoint: z.nullable(z.string()).optional(), resourceAttributes: z.record(z.string(), z.string()).optional(), }); export function targetDeploymentMonitoringFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentMonitoring$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentMonitoring' from JSON`, ); } /** @internal */ export const TargetDeploymentMonitoringUnion$inboundSchema: z.ZodType< TargetDeploymentMonitoringUnion, unknown > = z.union([z.lazy(() => TargetDeploymentMonitoring$inboundSchema), z.any()]); export function targetDeploymentMonitoringUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentMonitoringUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentMonitoringUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentFailureDomains2$inboundSchema: z.ZodType< TargetDeploymentFailureDomains2, unknown > = z.object({ selectedFailureDomains: z.array(z.string()).optional(), spread: z.int(), }); export function targetDeploymentFailureDomains2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentFailureDomains2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentFailureDomains2' from JSON`, ); } /** @internal */ export const TargetDeploymentFailureDomainsUnion2$inboundSchema: z.ZodType< TargetDeploymentFailureDomainsUnion2, unknown > = z.union([ z.lazy(() => TargetDeploymentFailureDomains2$inboundSchema), z.any(), ]); export function targetDeploymentFailureDomainsUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentFailureDomainsUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentFailureDomainsUnion2' from JSON`, ); } /** @internal */ export const TargetDeploymentPoolsAutoscale$inboundSchema: z.ZodType< TargetDeploymentPoolsAutoscale, unknown > = z.object({ failure_domains: z.nullable( z.union([ z.lazy(() => TargetDeploymentFailureDomains2$inboundSchema), z.any(), ]), ).optional(), machine: z.nullable(z.string()).optional(), max: z.int(), min: z.int(), mode: z.literal("autoscale"), }).transform((v) => { return remap$(v, { "failure_domains": "failureDomains", }); }); export function targetDeploymentPoolsAutoscaleFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPoolsAutoscale$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPoolsAutoscale' from JSON`, ); } /** @internal */ export const TargetDeploymentFailureDomains1$inboundSchema: z.ZodType< TargetDeploymentFailureDomains1, unknown > = z.object({ selectedFailureDomains: z.array(z.string()).optional(), spread: z.int(), }); export function targetDeploymentFailureDomains1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentFailureDomains1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentFailureDomains1' from JSON`, ); } /** @internal */ export const TargetDeploymentFailureDomainsUnion1$inboundSchema: z.ZodType< TargetDeploymentFailureDomainsUnion1, unknown > = z.union([ z.lazy(() => TargetDeploymentFailureDomains1$inboundSchema), z.any(), ]); export function targetDeploymentFailureDomainsUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentFailureDomainsUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentFailureDomainsUnion1' from JSON`, ); } /** @internal */ export const TargetDeploymentPoolsFixed$inboundSchema: z.ZodType< TargetDeploymentPoolsFixed, unknown > = z.object({ failure_domains: z.nullable( z.union([ z.lazy(() => TargetDeploymentFailureDomains1$inboundSchema), z.any(), ]), ).optional(), machine: z.nullable(z.string()).optional(), machines: z.int(), mode: z.literal("fixed"), }).transform((v) => { return remap$(v, { "failure_domains": "failureDomains", }); }); export function targetDeploymentPoolsFixedFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPoolsFixed$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPoolsFixed' from JSON`, ); } /** @internal */ export const TargetDeploymentPoolsUnion$inboundSchema: z.ZodType< TargetDeploymentPoolsUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentPoolsFixed$inboundSchema), z.lazy(() => TargetDeploymentPoolsAutoscale$inboundSchema), ]); export function targetDeploymentPoolsUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPoolsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPoolsUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentCompute$inboundSchema: z.ZodType< TargetDeploymentCompute, unknown > = z.object({ pools: z.record( z.string(), z.union([ z.lazy(() => TargetDeploymentPoolsFixed$inboundSchema), z.lazy(() => TargetDeploymentPoolsAutoscale$inboundSchema), ]), ).optional(), }); export function targetDeploymentComputeFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentCompute$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentCompute' from JSON`, ); } /** @internal */ export const TargetDeploymentComputeUnion$inboundSchema: z.ZodType< TargetDeploymentComputeUnion, unknown > = z.union([z.lazy(() => TargetDeploymentCompute$inboundSchema), z.any()]); export function targetDeploymentComputeUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentComputeUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentComputeUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentDeploymentModel$inboundSchema: z.ZodEnum< typeof TargetDeploymentDeploymentModel > = z.enum(TargetDeploymentDeploymentModel); /** @internal */ export const TargetDeploymentAwsStackSettings$inboundSchema: z.ZodType< TargetDeploymentAwsStackSettings, unknown > = z.object({ certificateArn: z.string(), }); export function targetDeploymentAwsStackSettingsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentAwsStackSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentAwsStackSettings' from JSON`, ); } /** @internal */ export const TargetDeploymentStackSettingsAwsUnion$inboundSchema: z.ZodType< TargetDeploymentStackSettingsAwsUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentAwsStackSettings$inboundSchema), z.any(), ]); export function targetDeploymentStackSettingsAwsUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentStackSettingsAwsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentStackSettingsAwsUnion' from JSON`, ); } /** @internal */ export const AzureConfigStackSettings$inboundSchema: z.ZodType< AzureConfigStackSettings, unknown > = z.object({ keyVaultCertificateId: z.string(), keyVaultResourceId: z.nullable(z.string()).optional(), }); export function azureConfigStackSettingsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => AzureConfigStackSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AzureConfigStackSettings' from JSON`, ); } /** @internal */ export const ConfigStackSettingsAzureUnion$inboundSchema: z.ZodType< ConfigStackSettingsAzureUnion, unknown > = z.union([z.lazy(() => AzureConfigStackSettings$inboundSchema), z.any()]); export function configStackSettingsAzureUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ConfigStackSettingsAzureUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConfigStackSettingsAzureUnion' from JSON`, ); } /** @internal */ export const GcpConfigStackSettings$inboundSchema: z.ZodType< GcpConfigStackSettings, unknown > = z.object({ certificateName: z.string(), }); export function gcpConfigStackSettingsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => GcpConfigStackSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GcpConfigStackSettings' from JSON`, ); } /** @internal */ export const ConfigStackSettingsGcpUnion$inboundSchema: z.ZodType< ConfigStackSettingsGcpUnion, unknown > = z.union([z.lazy(() => GcpConfigStackSettings$inboundSchema), z.any()]); export function configStackSettingsGcpUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ConfigStackSettingsGcpUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConfigStackSettingsGcpUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentTlsSecretRef$inboundSchema: z.ZodType< TargetDeploymentTlsSecretRef, unknown > = z.object({ namespace: z.nullable(z.string()).optional(), secretName: z.string(), }); export function targetDeploymentTlsSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentTlsSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentTlsSecretRef' from JSON`, ); } /** @internal */ export const TargetDeploymentDomainsKubernetes$inboundSchema: z.ZodType< TargetDeploymentDomainsKubernetes, unknown > = z.object({ tlsSecretRef: z.lazy(() => TargetDeploymentTlsSecretRef$inboundSchema), }); export function targetDeploymentDomainsKubernetesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDomainsKubernetes$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDomainsKubernetes' from JSON`, ); } /** @internal */ export const TargetDeploymentDomainsKubernetesUnion$inboundSchema: z.ZodType< TargetDeploymentDomainsKubernetesUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentDomainsKubernetes$inboundSchema), z.any(), ]); export function targetDeploymentDomainsKubernetesUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDomainsKubernetesUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDomainsKubernetesUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentDomainsCertificate$inboundSchema: z.ZodType< TargetDeploymentDomainsCertificate, unknown > = z.object({ aws: z.nullable( z.union([ z.lazy(() => TargetDeploymentAwsStackSettings$inboundSchema), z.any(), ]), ).optional(), azure: z.nullable( z.union([z.lazy(() => AzureConfigStackSettings$inboundSchema), z.any()]), ).optional(), gcp: z.nullable( z.union([z.lazy(() => GcpConfigStackSettings$inboundSchema), z.any()]), ).optional(), kubernetes: z.nullable( z.union([ z.lazy(() => TargetDeploymentDomainsKubernetes$inboundSchema), z.any(), ]), ).optional(), }); export function targetDeploymentDomainsCertificateFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDomainsCertificate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDomainsCertificate' from JSON`, ); } /** @internal */ export const TargetDeploymentCustomDomains$inboundSchema: z.ZodType< TargetDeploymentCustomDomains, unknown > = z.object({ certificate: z.lazy(() => TargetDeploymentDomainsCertificate$inboundSchema), domain: z.string(), }); export function targetDeploymentCustomDomainsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentCustomDomains$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentCustomDomains' from JSON`, ); } /** @internal */ export const TargetDeploymentModeLoadBalancer$inboundSchema: z.ZodEnum< typeof TargetDeploymentModeLoadBalancer > = z.enum(TargetDeploymentModeLoadBalancer); /** @internal */ export const TargetDeploymentPublicEndpointTargetLoadBalancer$inboundSchema: z.ZodType = z .object({ cnameTarget: z.string(), mode: TargetDeploymentModeLoadBalancer$inboundSchema, }); export function targetDeploymentPublicEndpointTargetLoadBalancerFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentPublicEndpointTargetLoadBalancer, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentPublicEndpointTargetLoadBalancer$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentPublicEndpointTargetLoadBalancer' from JSON`, ); } /** @internal */ export const TargetDeploymentModeMachineAddresses$inboundSchema: z.ZodEnum< typeof TargetDeploymentModeMachineAddresses > = z.enum(TargetDeploymentModeMachineAddresses); /** @internal */ export const TargetDeploymentPublicEndpointTargetMachineAddresses$inboundSchema: z.ZodType = z .object({ mode: TargetDeploymentModeMachineAddresses$inboundSchema, }); export function targetDeploymentPublicEndpointTargetMachineAddressesFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentPublicEndpointTargetMachineAddresses, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentPublicEndpointTargetMachineAddresses$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentPublicEndpointTargetMachineAddresses' from JSON`, ); } /** @internal */ export const TargetDeploymentPublicEndpointTargetUnion$inboundSchema: z.ZodType< TargetDeploymentPublicEndpointTargetUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentPublicEndpointTargetLoadBalancer$inboundSchema), z.lazy(() => TargetDeploymentPublicEndpointTargetMachineAddresses$inboundSchema ), z.any(), ]); export function targetDeploymentPublicEndpointTargetUnionFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentPublicEndpointTargetUnion, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentPublicEndpointTargetUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentPublicEndpointTargetUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentDomains$inboundSchema: z.ZodType< TargetDeploymentDomains, unknown > = z.object({ customDomains: z.nullable( z.record( z.string(), z.lazy(() => TargetDeploymentCustomDomains$inboundSchema), ), ).optional(), publicEndpointTarget: z.nullable( z.union([ z.lazy(() => TargetDeploymentPublicEndpointTargetLoadBalancer$inboundSchema ), z.lazy(() => TargetDeploymentPublicEndpointTargetMachineAddresses$inboundSchema ), z.any(), ]), ).optional(), }); export function targetDeploymentDomainsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDomains$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDomains' from JSON`, ); } /** @internal */ export const TargetDeploymentDomainsUnion$inboundSchema: z.ZodType< TargetDeploymentDomainsUnion, unknown > = z.union([z.lazy(() => TargetDeploymentDomains$inboundSchema), z.any()]); export function targetDeploymentDomainsUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDomainsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDomainsUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentStackSettingsExternalBindings$inboundSchema: z.ZodType = z.object( {}, ); export function targetDeploymentStackSettingsExternalBindingsFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentStackSettingsExternalBindings, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentStackSettingsExternalBindings$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentStackSettingsExternalBindings' from JSON`, ); } /** @internal */ export const TargetDeploymentHeartbeats$inboundSchema: z.ZodEnum< typeof TargetDeploymentHeartbeats > = z.enum(TargetDeploymentHeartbeats); /** @internal */ export const TargetDeploymentCloud$inboundSchema: z.ZodType< TargetDeploymentCloud, unknown > = z.object({ accountId: z.nullable(z.string()).optional(), clusterId: z.nullable(z.string()).optional(), clusterName: z.nullable(z.string()).optional(), projectId: z.nullable(z.string()).optional(), region: z.nullable(z.string()).optional(), resourceGroup: z.nullable(z.string()).optional(), subscriptionId: z.nullable(z.string()).optional(), }); export function targetDeploymentCloudFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentCloud$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentCloud' from JSON`, ); } /** @internal */ export const TargetDeploymentCloudUnion$inboundSchema: z.ZodType< TargetDeploymentCloudUnion, unknown > = z.union([z.lazy(() => TargetDeploymentCloud$inboundSchema), z.any()]); export function targetDeploymentCloudUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentCloudUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentCloudUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentOwnership$inboundSchema: z.ZodEnum< typeof TargetDeploymentOwnership > = z.enum(TargetDeploymentOwnership); /** @internal */ export const TargetDeploymentCluster$inboundSchema: z.ZodType< TargetDeploymentCluster, unknown > = z.object({ cloud: z.nullable( z.union([z.lazy(() => TargetDeploymentCloud$inboundSchema), z.any()]), ).optional(), namespace: z.nullable(z.string()).optional(), ownership: TargetDeploymentOwnership$inboundSchema, }); export function targetDeploymentClusterFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentCluster$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentCluster' from JSON`, ); } /** @internal */ export const TargetDeploymentClusterUnion$inboundSchema: z.ZodType< TargetDeploymentClusterUnion, unknown > = z.union([z.lazy(() => TargetDeploymentCluster$inboundSchema), z.any()]); export function targetDeploymentClusterUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentClusterUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentClusterUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentCertificateNone2$inboundSchema: z.ZodType< TargetDeploymentCertificateNone2, unknown > = z.object({ mode: z.literal("none"), }); export function targetDeploymentCertificateNone2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentCertificateNone2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentCertificateNone2' from JSON`, ); } /** @internal */ export const TargetDeploymentCertificateManagedTLSSecret2$inboundSchema: z.ZodType = z.object({ mode: z.literal("managedTlsSecret"), secretNameTemplate: z.string(), }); export function targetDeploymentCertificateManagedTLSSecret2FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentCertificateManagedTLSSecret2, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentCertificateManagedTLSSecret2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentCertificateManagedTLSSecret2' from JSON`, ); } /** @internal */ export const TargetDeploymentCertificateAwsAcmArn2$inboundSchema: z.ZodType< TargetDeploymentCertificateAwsAcmArn2, unknown > = z.object({ certificateArn: z.string(), mode: z.literal("awsAcmArn"), }); export function targetDeploymentCertificateAwsAcmArn2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentCertificateAwsAcmArn2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentCertificateAwsAcmArn2' from JSON`, ); } /** @internal */ export const TargetDeploymentCertificateManagedAcmImport2$inboundSchema: z.ZodType = z.object({ mode: z.literal("managedAcmImport"), region: z.nullable(z.string()).optional(), tags: z.record(z.string(), z.string()).optional(), }); export function targetDeploymentCertificateManagedAcmImport2FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentCertificateManagedAcmImport2, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentCertificateManagedAcmImport2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentCertificateManagedAcmImport2' from JSON`, ); } /** @internal */ export const TargetDeploymentCertificateTLSSecretRef2$inboundSchema: z.ZodType< TargetDeploymentCertificateTLSSecretRef2, unknown > = z.object({ namespace: z.nullable(z.string()).optional(), secretName: z.string(), mode: z.literal("tlsSecretRef"), }); export function targetDeploymentCertificateTLSSecretRef2FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentCertificateTLSSecretRef2, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentCertificateTLSSecretRef2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentCertificateTLSSecretRef2' from JSON`, ); } /** @internal */ export const TargetDeploymentCertificateUnion2$inboundSchema: z.ZodType< TargetDeploymentCertificateUnion2, unknown > = z.union([ z.lazy(() => TargetDeploymentCertificateTLSSecretRef2$inboundSchema), z.lazy(() => TargetDeploymentCertificateManagedAcmImport2$inboundSchema), z.lazy(() => TargetDeploymentCertificateAwsAcmArn2$inboundSchema), z.lazy(() => TargetDeploymentCertificateManagedTLSSecret2$inboundSchema), z.lazy(() => TargetDeploymentCertificateNone2$inboundSchema), ]); export function targetDeploymentCertificateUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentCertificateUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentCertificateUnion2' from JSON`, ); } /** @internal */ export const TargetDeploymentModeCustom$inboundSchema: z.ZodEnum< typeof TargetDeploymentModeCustom > = z.enum(TargetDeploymentModeCustom); /** @internal */ export const TargetDeploymentProviderAzureApplicationGatewayForContainersEnum4$inboundSchema: z.ZodEnum< typeof TargetDeploymentProviderAzureApplicationGatewayForContainersEnum4 > = z.enum(TargetDeploymentProviderAzureApplicationGatewayForContainersEnum4); /** @internal */ export const TargetDeploymentProviderAzureApplicationGatewayForContainers4$inboundSchema: z.ZodType< TargetDeploymentProviderAzureApplicationGatewayForContainers4, unknown > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: TargetDeploymentProviderAzureApplicationGatewayForContainersEnum4$inboundSchema, }); export function targetDeploymentProviderAzureApplicationGatewayForContainers4FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentProviderAzureApplicationGatewayForContainers4, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentProviderAzureApplicationGatewayForContainers4$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProviderAzureApplicationGatewayForContainers4' from JSON`, ); } /** @internal */ export const TargetDeploymentProviderGkeGatewayEnum4$inboundSchema: z.ZodEnum< typeof TargetDeploymentProviderGkeGatewayEnum4 > = z.enum(TargetDeploymentProviderGkeGatewayEnum4); /** @internal */ export const TargetDeploymentProviderGkeGateway4$inboundSchema: z.ZodType< TargetDeploymentProviderGkeGateway4, unknown > = z.object({ provider: TargetDeploymentProviderGkeGatewayEnum4$inboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function targetDeploymentProviderGkeGateway4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProviderGkeGateway4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProviderGkeGateway4' from JSON`, ); } /** @internal */ export const TargetDeploymentProviderAwsAlbEnum4$inboundSchema: z.ZodEnum< typeof TargetDeploymentProviderAwsAlbEnum4 > = z.enum(TargetDeploymentProviderAwsAlbEnum4); /** @internal */ export const TargetDeploymentProviderAwsAlb4$inboundSchema: z.ZodType< TargetDeploymentProviderAwsAlb4, unknown > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: TargetDeploymentProviderAwsAlbEnum4$inboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function targetDeploymentProviderAwsAlb4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProviderAwsAlb4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProviderAwsAlb4' from JSON`, ); } /** @internal */ export const TargetDeploymentProviderUnion4$inboundSchema: z.ZodType< TargetDeploymentProviderUnion4, unknown > = z.union([ z.lazy(() => TargetDeploymentProviderAwsAlb4$inboundSchema), z.lazy(() => TargetDeploymentProviderAzureApplicationGatewayForContainers4$inboundSchema ), z.lazy(() => TargetDeploymentProviderGkeGateway4$inboundSchema), z.any(), ]); export function targetDeploymentProviderUnion4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProviderUnion4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProviderUnion4' from JSON`, ); } /** @internal */ export const TargetDeploymentRouteGateway2$inboundSchema: z.ZodType< TargetDeploymentRouteGateway2, unknown > = z.object({ annotations: z.record(z.string(), z.string()).optional(), controller: z.nullable(z.string()).optional(), gatewayClassName: z.string(), labels: z.record(z.string(), z.string()).optional(), listenerPort: z.int(), provider: z.nullable( z.union([ z.lazy(() => TargetDeploymentProviderAwsAlb4$inboundSchema), z.lazy(() => TargetDeploymentProviderAzureApplicationGatewayForContainers4$inboundSchema ), z.lazy(() => TargetDeploymentProviderGkeGateway4$inboundSchema), z.any(), ]), ).optional(), routeApi: z.literal("gateway"), }); export function targetDeploymentRouteGateway2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRouteGateway2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRouteGateway2' from JSON`, ); } /** @internal */ export const TargetDeploymentProviderAzureApplicationGatewayForContainersEnum3$inboundSchema: z.ZodEnum< typeof TargetDeploymentProviderAzureApplicationGatewayForContainersEnum3 > = z.enum(TargetDeploymentProviderAzureApplicationGatewayForContainersEnum3); /** @internal */ export const TargetDeploymentProviderAzureApplicationGatewayForContainers3$inboundSchema: z.ZodType< TargetDeploymentProviderAzureApplicationGatewayForContainers3, unknown > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: TargetDeploymentProviderAzureApplicationGatewayForContainersEnum3$inboundSchema, }); export function targetDeploymentProviderAzureApplicationGatewayForContainers3FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentProviderAzureApplicationGatewayForContainers3, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentProviderAzureApplicationGatewayForContainers3$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProviderAzureApplicationGatewayForContainers3' from JSON`, ); } /** @internal */ export const TargetDeploymentProviderGkeGatewayEnum3$inboundSchema: z.ZodEnum< typeof TargetDeploymentProviderGkeGatewayEnum3 > = z.enum(TargetDeploymentProviderGkeGatewayEnum3); /** @internal */ export const TargetDeploymentProviderGkeGateway3$inboundSchema: z.ZodType< TargetDeploymentProviderGkeGateway3, unknown > = z.object({ provider: TargetDeploymentProviderGkeGatewayEnum3$inboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function targetDeploymentProviderGkeGateway3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProviderGkeGateway3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProviderGkeGateway3' from JSON`, ); } /** @internal */ export const TargetDeploymentProviderAwsAlbEnum3$inboundSchema: z.ZodEnum< typeof TargetDeploymentProviderAwsAlbEnum3 > = z.enum(TargetDeploymentProviderAwsAlbEnum3); /** @internal */ export const TargetDeploymentProviderAwsAlb3$inboundSchema: z.ZodType< TargetDeploymentProviderAwsAlb3, unknown > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: TargetDeploymentProviderAwsAlbEnum3$inboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function targetDeploymentProviderAwsAlb3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProviderAwsAlb3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProviderAwsAlb3' from JSON`, ); } /** @internal */ export const TargetDeploymentProviderUnion3$inboundSchema: z.ZodType< TargetDeploymentProviderUnion3, unknown > = z.union([ z.lazy(() => TargetDeploymentProviderAwsAlb3$inboundSchema), z.lazy(() => TargetDeploymentProviderAzureApplicationGatewayForContainers3$inboundSchema ), z.lazy(() => TargetDeploymentProviderGkeGateway3$inboundSchema), z.any(), ]); export function targetDeploymentProviderUnion3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProviderUnion3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProviderUnion3' from JSON`, ); } /** @internal */ export const TargetDeploymentRouteIngress2$inboundSchema: z.ZodType< TargetDeploymentRouteIngress2, unknown > = z.object({ annotations: z.record(z.string(), z.string()).optional(), controller: z.nullable(z.string()).optional(), ingressClassName: z.string(), labels: z.record(z.string(), z.string()).optional(), provider: z.nullable( z.union([ z.lazy(() => TargetDeploymentProviderAwsAlb3$inboundSchema), z.lazy(() => TargetDeploymentProviderAzureApplicationGatewayForContainers3$inboundSchema ), z.lazy(() => TargetDeploymentProviderGkeGateway3$inboundSchema), z.any(), ]), ).optional(), routeApi: z.literal("ingress"), }); export function targetDeploymentRouteIngress2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRouteIngress2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRouteIngress2' from JSON`, ); } /** @internal */ export const TargetDeploymentRouteUnion2$inboundSchema: z.ZodType< TargetDeploymentRouteUnion2, unknown > = z.union([ z.lazy(() => TargetDeploymentRouteIngress2$inboundSchema), z.lazy(() => TargetDeploymentRouteGateway2$inboundSchema), ]); export function targetDeploymentRouteUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRouteUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRouteUnion2' from JSON`, ); } /** @internal */ export const TargetDeploymentExposureCustom$inboundSchema: z.ZodType< TargetDeploymentExposureCustom, unknown > = z.object({ certificate: z.union([ z.lazy(() => TargetDeploymentCertificateTLSSecretRef2$inboundSchema), z.lazy(() => TargetDeploymentCertificateManagedAcmImport2$inboundSchema), z.lazy(() => TargetDeploymentCertificateAwsAcmArn2$inboundSchema), z.lazy(() => TargetDeploymentCertificateManagedTLSSecret2$inboundSchema), z.lazy(() => TargetDeploymentCertificateNone2$inboundSchema), ]), domain: z.string(), mode: TargetDeploymentModeCustom$inboundSchema, route: z.union([ z.lazy(() => TargetDeploymentRouteIngress2$inboundSchema), z.lazy(() => TargetDeploymentRouteGateway2$inboundSchema), ]), }); export function targetDeploymentExposureCustomFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExposureCustom$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExposureCustom' from JSON`, ); } /** @internal */ export const TargetDeploymentCertificateNone1$inboundSchema: z.ZodType< TargetDeploymentCertificateNone1, unknown > = z.object({ mode: z.literal("none"), }); export function targetDeploymentCertificateNone1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentCertificateNone1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentCertificateNone1' from JSON`, ); } /** @internal */ export const TargetDeploymentCertificateManagedTLSSecret1$inboundSchema: z.ZodType = z.object({ mode: z.literal("managedTlsSecret"), secretNameTemplate: z.string(), }); export function targetDeploymentCertificateManagedTLSSecret1FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentCertificateManagedTLSSecret1, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentCertificateManagedTLSSecret1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentCertificateManagedTLSSecret1' from JSON`, ); } /** @internal */ export const TargetDeploymentCertificateAwsAcmArn1$inboundSchema: z.ZodType< TargetDeploymentCertificateAwsAcmArn1, unknown > = z.object({ certificateArn: z.string(), mode: z.literal("awsAcmArn"), }); export function targetDeploymentCertificateAwsAcmArn1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentCertificateAwsAcmArn1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentCertificateAwsAcmArn1' from JSON`, ); } /** @internal */ export const TargetDeploymentCertificateManagedAcmImport1$inboundSchema: z.ZodType = z.object({ mode: z.literal("managedAcmImport"), region: z.nullable(z.string()).optional(), tags: z.record(z.string(), z.string()).optional(), }); export function targetDeploymentCertificateManagedAcmImport1FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentCertificateManagedAcmImport1, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentCertificateManagedAcmImport1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentCertificateManagedAcmImport1' from JSON`, ); } /** @internal */ export const TargetDeploymentCertificateTLSSecretRef1$inboundSchema: z.ZodType< TargetDeploymentCertificateTLSSecretRef1, unknown > = z.object({ namespace: z.nullable(z.string()).optional(), secretName: z.string(), mode: z.literal("tlsSecretRef"), }); export function targetDeploymentCertificateTLSSecretRef1FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentCertificateTLSSecretRef1, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentCertificateTLSSecretRef1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentCertificateTLSSecretRef1' from JSON`, ); } /** @internal */ export const TargetDeploymentCertificateUnion1$inboundSchema: z.ZodType< TargetDeploymentCertificateUnion1, unknown > = z.union([ z.lazy(() => TargetDeploymentCertificateTLSSecretRef1$inboundSchema), z.lazy(() => TargetDeploymentCertificateManagedAcmImport1$inboundSchema), z.lazy(() => TargetDeploymentCertificateAwsAcmArn1$inboundSchema), z.lazy(() => TargetDeploymentCertificateManagedTLSSecret1$inboundSchema), z.lazy(() => TargetDeploymentCertificateNone1$inboundSchema), ]); export function targetDeploymentCertificateUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentCertificateUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentCertificateUnion1' from JSON`, ); } /** @internal */ export const TargetDeploymentModeGenerated$inboundSchema: z.ZodEnum< typeof TargetDeploymentModeGenerated > = z.enum(TargetDeploymentModeGenerated); /** @internal */ export const TargetDeploymentProviderAzureApplicationGatewayForContainersEnum2$inboundSchema: z.ZodEnum< typeof TargetDeploymentProviderAzureApplicationGatewayForContainersEnum2 > = z.enum(TargetDeploymentProviderAzureApplicationGatewayForContainersEnum2); /** @internal */ export const TargetDeploymentProviderAzureApplicationGatewayForContainers2$inboundSchema: z.ZodType< TargetDeploymentProviderAzureApplicationGatewayForContainers2, unknown > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: TargetDeploymentProviderAzureApplicationGatewayForContainersEnum2$inboundSchema, }); export function targetDeploymentProviderAzureApplicationGatewayForContainers2FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentProviderAzureApplicationGatewayForContainers2, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentProviderAzureApplicationGatewayForContainers2$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProviderAzureApplicationGatewayForContainers2' from JSON`, ); } /** @internal */ export const TargetDeploymentProviderGkeGatewayEnum2$inboundSchema: z.ZodEnum< typeof TargetDeploymentProviderGkeGatewayEnum2 > = z.enum(TargetDeploymentProviderGkeGatewayEnum2); /** @internal */ export const TargetDeploymentProviderGkeGateway2$inboundSchema: z.ZodType< TargetDeploymentProviderGkeGateway2, unknown > = z.object({ provider: TargetDeploymentProviderGkeGatewayEnum2$inboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function targetDeploymentProviderGkeGateway2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProviderGkeGateway2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProviderGkeGateway2' from JSON`, ); } /** @internal */ export const TargetDeploymentProviderAwsAlbEnum2$inboundSchema: z.ZodEnum< typeof TargetDeploymentProviderAwsAlbEnum2 > = z.enum(TargetDeploymentProviderAwsAlbEnum2); /** @internal */ export const TargetDeploymentProviderAwsAlb2$inboundSchema: z.ZodType< TargetDeploymentProviderAwsAlb2, unknown > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: TargetDeploymentProviderAwsAlbEnum2$inboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function targetDeploymentProviderAwsAlb2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProviderAwsAlb2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProviderAwsAlb2' from JSON`, ); } /** @internal */ export const TargetDeploymentProviderUnion2$inboundSchema: z.ZodType< TargetDeploymentProviderUnion2, unknown > = z.union([ z.lazy(() => TargetDeploymentProviderAwsAlb2$inboundSchema), z.lazy(() => TargetDeploymentProviderAzureApplicationGatewayForContainers2$inboundSchema ), z.lazy(() => TargetDeploymentProviderGkeGateway2$inboundSchema), z.any(), ]); export function targetDeploymentProviderUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProviderUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProviderUnion2' from JSON`, ); } /** @internal */ export const TargetDeploymentRouteGateway1$inboundSchema: z.ZodType< TargetDeploymentRouteGateway1, unknown > = z.object({ annotations: z.record(z.string(), z.string()).optional(), controller: z.nullable(z.string()).optional(), gatewayClassName: z.string(), labels: z.record(z.string(), z.string()).optional(), listenerPort: z.int(), provider: z.nullable( z.union([ z.lazy(() => TargetDeploymentProviderAwsAlb2$inboundSchema), z.lazy(() => TargetDeploymentProviderAzureApplicationGatewayForContainers2$inboundSchema ), z.lazy(() => TargetDeploymentProviderGkeGateway2$inboundSchema), z.any(), ]), ).optional(), routeApi: z.literal("gateway"), }); export function targetDeploymentRouteGateway1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRouteGateway1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRouteGateway1' from JSON`, ); } /** @internal */ export const TargetDeploymentProviderAzureApplicationGatewayForContainersEnum1$inboundSchema: z.ZodEnum< typeof TargetDeploymentProviderAzureApplicationGatewayForContainersEnum1 > = z.enum(TargetDeploymentProviderAzureApplicationGatewayForContainersEnum1); /** @internal */ export const TargetDeploymentProviderAzureApplicationGatewayForContainers1$inboundSchema: z.ZodType< TargetDeploymentProviderAzureApplicationGatewayForContainers1, unknown > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: TargetDeploymentProviderAzureApplicationGatewayForContainersEnum1$inboundSchema, }); export function targetDeploymentProviderAzureApplicationGatewayForContainers1FromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentProviderAzureApplicationGatewayForContainers1, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentProviderAzureApplicationGatewayForContainers1$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProviderAzureApplicationGatewayForContainers1' from JSON`, ); } /** @internal */ export const TargetDeploymentProviderGkeGatewayEnum1$inboundSchema: z.ZodEnum< typeof TargetDeploymentProviderGkeGatewayEnum1 > = z.enum(TargetDeploymentProviderGkeGatewayEnum1); /** @internal */ export const TargetDeploymentProviderGkeGateway1$inboundSchema: z.ZodType< TargetDeploymentProviderGkeGateway1, unknown > = z.object({ provider: TargetDeploymentProviderGkeGatewayEnum1$inboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function targetDeploymentProviderGkeGateway1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProviderGkeGateway1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProviderGkeGateway1' from JSON`, ); } /** @internal */ export const TargetDeploymentProviderAwsAlbEnum1$inboundSchema: z.ZodEnum< typeof TargetDeploymentProviderAwsAlbEnum1 > = z.enum(TargetDeploymentProviderAwsAlbEnum1); /** @internal */ export const TargetDeploymentProviderAwsAlb1$inboundSchema: z.ZodType< TargetDeploymentProviderAwsAlb1, unknown > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: TargetDeploymentProviderAwsAlbEnum1$inboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function targetDeploymentProviderAwsAlb1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProviderAwsAlb1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProviderAwsAlb1' from JSON`, ); } /** @internal */ export const TargetDeploymentProviderUnion1$inboundSchema: z.ZodType< TargetDeploymentProviderUnion1, unknown > = z.union([ z.lazy(() => TargetDeploymentProviderAwsAlb1$inboundSchema), z.lazy(() => TargetDeploymentProviderAzureApplicationGatewayForContainers1$inboundSchema ), z.lazy(() => TargetDeploymentProviderGkeGateway1$inboundSchema), z.any(), ]); export function targetDeploymentProviderUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProviderUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProviderUnion1' from JSON`, ); } /** @internal */ export const TargetDeploymentRouteIngress1$inboundSchema: z.ZodType< TargetDeploymentRouteIngress1, unknown > = z.object({ annotations: z.record(z.string(), z.string()).optional(), controller: z.nullable(z.string()).optional(), ingressClassName: z.string(), labels: z.record(z.string(), z.string()).optional(), provider: z.nullable( z.union([ z.lazy(() => TargetDeploymentProviderAwsAlb1$inboundSchema), z.lazy(() => TargetDeploymentProviderAzureApplicationGatewayForContainers1$inboundSchema ), z.lazy(() => TargetDeploymentProviderGkeGateway1$inboundSchema), z.any(), ]), ).optional(), routeApi: z.literal("ingress"), }); export function targetDeploymentRouteIngress1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRouteIngress1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRouteIngress1' from JSON`, ); } /** @internal */ export const TargetDeploymentRouteUnion1$inboundSchema: z.ZodType< TargetDeploymentRouteUnion1, unknown > = z.union([ z.lazy(() => TargetDeploymentRouteIngress1$inboundSchema), z.lazy(() => TargetDeploymentRouteGateway1$inboundSchema), ]); export function targetDeploymentRouteUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentRouteUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentRouteUnion1' from JSON`, ); } /** @internal */ export const TargetDeploymentExposureGenerated$inboundSchema: z.ZodType< TargetDeploymentExposureGenerated, unknown > = z.object({ certificate: z.union([ z.lazy(() => TargetDeploymentCertificateTLSSecretRef1$inboundSchema), z.lazy(() => TargetDeploymentCertificateManagedAcmImport1$inboundSchema), z.lazy(() => TargetDeploymentCertificateAwsAcmArn1$inboundSchema), z.lazy(() => TargetDeploymentCertificateManagedTLSSecret1$inboundSchema), z.lazy(() => TargetDeploymentCertificateNone1$inboundSchema), ]), mode: TargetDeploymentModeGenerated$inboundSchema, route: z.union([ z.lazy(() => TargetDeploymentRouteIngress1$inboundSchema), z.lazy(() => TargetDeploymentRouteGateway1$inboundSchema), ]), }); export function targetDeploymentExposureGeneratedFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExposureGenerated$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExposureGenerated' from JSON`, ); } /** @internal */ export const TargetDeploymentModeDisabled$inboundSchema: z.ZodEnum< typeof TargetDeploymentModeDisabled > = z.enum(TargetDeploymentModeDisabled); /** @internal */ export const TargetDeploymentExposureDisabled$inboundSchema: z.ZodType< TargetDeploymentExposureDisabled, unknown > = z.object({ mode: TargetDeploymentModeDisabled$inboundSchema, }); export function targetDeploymentExposureDisabledFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExposureDisabled$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExposureDisabled' from JSON`, ); } /** @internal */ export const TargetDeploymentExposureUnion$inboundSchema: z.ZodType< TargetDeploymentExposureUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentExposureCustom$inboundSchema), z.lazy(() => TargetDeploymentExposureGenerated$inboundSchema), z.lazy(() => TargetDeploymentExposureDisabled$inboundSchema), z.any(), ]); export function targetDeploymentExposureUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExposureUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExposureUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentKubernetes$inboundSchema: z.ZodType< TargetDeploymentKubernetes, unknown > = z.object({ cluster: z.nullable( z.union([z.lazy(() => TargetDeploymentCluster$inboundSchema), z.any()]), ).optional(), exposure: z.nullable( z.union([ z.lazy(() => TargetDeploymentExposureCustom$inboundSchema), z.lazy(() => TargetDeploymentExposureGenerated$inboundSchema), z.lazy(() => TargetDeploymentExposureDisabled$inboundSchema), z.any(), ]), ).optional(), }); export function targetDeploymentKubernetesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentKubernetes$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentKubernetes' from JSON`, ); } /** @internal */ export const TargetDeploymentKubernetesUnion$inboundSchema: z.ZodType< TargetDeploymentKubernetesUnion, unknown > = z.union([z.lazy(() => TargetDeploymentKubernetes$inboundSchema), z.any()]); export function targetDeploymentKubernetesUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentKubernetesUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentKubernetesUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeByoVnetAzure$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeByoVnetAzure > = z.enum(TargetDeploymentTypeByoVnetAzure); /** @internal */ export const TargetDeploymentNetworkByoVnetAzure$inboundSchema: z.ZodType< TargetDeploymentNetworkByoVnetAzure, unknown > = z.object({ application_gateway_subnet_name: z.nullable(z.string()).optional(), private_endpoint_subnet_name: z.nullable(z.string()).optional(), private_subnet_name: z.string(), public_subnet_name: z.string(), type: TargetDeploymentTypeByoVnetAzure$inboundSchema, vnet_resource_id: z.string(), }).transform((v) => { return remap$(v, { "application_gateway_subnet_name": "applicationGatewaySubnetName", "private_endpoint_subnet_name": "privateEndpointSubnetName", "private_subnet_name": "privateSubnetName", "public_subnet_name": "publicSubnetName", "vnet_resource_id": "vnetResourceId", }); }); export function targetDeploymentNetworkByoVnetAzureFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentNetworkByoVnetAzure$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentNetworkByoVnetAzure' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeByoVpcGcp$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeByoVpcGcp > = z.enum(TargetDeploymentTypeByoVpcGcp); /** @internal */ export const TargetDeploymentNetworkByoVpcGcp$inboundSchema: z.ZodType< TargetDeploymentNetworkByoVpcGcp, unknown > = z.object({ network_name: z.string(), region: z.string(), subnet_name: z.string(), type: TargetDeploymentTypeByoVpcGcp$inboundSchema, }).transform((v) => { return remap$(v, { "network_name": "networkName", "subnet_name": "subnetName", }); }); export function targetDeploymentNetworkByoVpcGcpFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentNetworkByoVpcGcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentNetworkByoVpcGcp' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeByoVpcAws$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeByoVpcAws > = z.enum(TargetDeploymentTypeByoVpcAws); /** @internal */ export const TargetDeploymentNetworkByoVpcAws$inboundSchema: z.ZodType< TargetDeploymentNetworkByoVpcAws, unknown > = z.object({ private_subnet_ids: z.array(z.string()), public_subnet_ids: z.array(z.string()), security_group_ids: z.array(z.string()).optional(), type: TargetDeploymentTypeByoVpcAws$inboundSchema, vpc_id: z.string(), }).transform((v) => { return remap$(v, { "private_subnet_ids": "privateSubnetIds", "public_subnet_ids": "publicSubnetIds", "security_group_ids": "securityGroupIds", "vpc_id": "vpcId", }); }); export function targetDeploymentNetworkByoVpcAwsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentNetworkByoVpcAws$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentNetworkByoVpcAws' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeCreate$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeCreate > = z.enum(TargetDeploymentTypeCreate); /** @internal */ export const TargetDeploymentNetworkCreate$inboundSchema: z.ZodType< TargetDeploymentNetworkCreate, unknown > = z.object({ availability_zones: z.int().optional(), cidr: z.nullable(z.string()).optional(), type: TargetDeploymentTypeCreate$inboundSchema, }).transform((v) => { return remap$(v, { "availability_zones": "availabilityZones", }); }); export function targetDeploymentNetworkCreateFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentNetworkCreate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentNetworkCreate' from JSON`, ); } /** @internal */ export const TargetDeploymentTypeUseDefault$inboundSchema: z.ZodEnum< typeof TargetDeploymentTypeUseDefault > = z.enum(TargetDeploymentTypeUseDefault); /** @internal */ export const TargetDeploymentNetworkUseDefault$inboundSchema: z.ZodType< TargetDeploymentNetworkUseDefault, unknown > = z.object({ type: TargetDeploymentTypeUseDefault$inboundSchema, }); export function targetDeploymentNetworkUseDefaultFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentNetworkUseDefault$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentNetworkUseDefault' from JSON`, ); } /** @internal */ export const TargetDeploymentNetworkUnion$inboundSchema: z.ZodType< TargetDeploymentNetworkUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentNetworkByoVpcAws$inboundSchema), z.lazy(() => TargetDeploymentNetworkByoVpcGcp$inboundSchema), z.lazy(() => TargetDeploymentNetworkByoVnetAzure$inboundSchema), z.lazy(() => TargetDeploymentNetworkUseDefault$inboundSchema), z.lazy(() => TargetDeploymentNetworkCreate$inboundSchema), z.any(), ]); export function targetDeploymentNetworkUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentNetworkUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentNetworkUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentTelemetry$inboundSchema: z.ZodEnum< typeof TargetDeploymentTelemetry > = z.enum(TargetDeploymentTelemetry); /** @internal */ export const TargetDeploymentUpdates$inboundSchema: z.ZodEnum< typeof TargetDeploymentUpdates > = z.enum(TargetDeploymentUpdates); /** @internal */ export const TargetDeploymentStackSettings$inboundSchema: z.ZodType< TargetDeploymentStackSettings, unknown > = z.object({ compute: z.nullable( z.union([z.lazy(() => TargetDeploymentCompute$inboundSchema), z.any()]), ).optional(), deploymentModel: TargetDeploymentDeploymentModel$inboundSchema.optional(), domains: z.nullable( z.union([z.lazy(() => TargetDeploymentDomains$inboundSchema), z.any()]), ).optional(), externalBindings: z.nullable( z.lazy(() => TargetDeploymentStackSettingsExternalBindings$inboundSchema), ).optional(), heartbeats: TargetDeploymentHeartbeats$inboundSchema.optional(), kubernetes: z.nullable( z.union([z.lazy(() => TargetDeploymentKubernetes$inboundSchema), z.any()]), ).optional(), network: z.nullable( z.union([ z.lazy(() => TargetDeploymentNetworkByoVpcAws$inboundSchema), z.lazy(() => TargetDeploymentNetworkByoVpcGcp$inboundSchema), z.lazy(() => TargetDeploymentNetworkByoVnetAzure$inboundSchema), z.lazy(() => TargetDeploymentNetworkUseDefault$inboundSchema), z.lazy(() => TargetDeploymentNetworkCreate$inboundSchema), z.any(), ]), ).optional(), publicEndpoints: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), telemetry: TargetDeploymentTelemetry$inboundSchema.optional(), updates: TargetDeploymentUpdates$inboundSchema.optional(), }); export function targetDeploymentStackSettingsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentStackSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentStackSettings' from JSON`, ); } /** @internal */ export const TargetDeploymentConfig$inboundSchema: z.ZodType< TargetDeploymentConfig, unknown > = z.object({ allowFrozenChanges: z.boolean().optional(), basePlatform: z.nullable( z.union([TargetDeploymentBasePlatformEnum$inboundSchema, z.any()]), ).optional(), computeBackend: z.nullable( z.union([ z.lazy(() => TargetDeploymentComputeBackendHorizon$inboundSchema), z.any(), ]), ).optional(), deploymentName: z.nullable(z.string()).optional(), deploymentToken: z.nullable(z.string()).optional(), domainMetadata: z.nullable( z.union([ z.lazy(() => TargetDeploymentDomainMetadata$inboundSchema), z.any(), ]), ).optional(), environmentVariables: z.lazy(() => TargetDeploymentEnvironmentVariables$inboundSchema ), externalBindings: z.record( z.string(), z.union([ z.lazy(() => TargetDeploymentExternalBindingsAi$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsContainerAppsEnvironment$inboundSchema ), z.union([ z.lazy(() => TargetDeploymentExternalBindingsS3$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsBlob$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsGcs$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsLocalStorage$inboundSchema ), ]), z.union([ z.lazy(() => TargetDeploymentExternalBindingsSqs$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsPubsub$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsServicebus$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsLocalQueue$inboundSchema), ]), z.union([ z.lazy(() => TargetDeploymentExternalBindingsDynamodb$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsFirestore$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsTablestorage$inboundSchema ), z.lazy(() => TargetDeploymentExternalBindingsRedis$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsLocalKv$inboundSchema), ]), z.union([ z.lazy(() => TargetDeploymentExternalBindingsEcr$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsAcr$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsGar$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsLocal$inboundSchema), ]), z.union([ z.lazy(() => TargetDeploymentExternalBindingsParameterStore$inboundSchema ), z.lazy(() => TargetDeploymentExternalBindingsSecretManager$inboundSchema ), z.lazy(() => TargetDeploymentExternalBindingsKeyVault$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsKubernetesSecret$inboundSchema ), z.lazy(() => TargetDeploymentExternalBindingsLocalVault$inboundSchema), ]), z.union([ z.lazy(() => TargetDeploymentExternalBindingsAurora$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsCloudSQL$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsFlexibleServer$inboundSchema ), z.lazy(() => TargetDeploymentExternalBindingsExternal$inboundSchema), z.lazy(() => TargetDeploymentExternalBindingsLocalPostgres$inboundSchema ), ]), ]), ).optional(), inputValues: z.record(z.string(), z.nullable(z.any())).optional(), labelDomain: z.nullable(z.string()).optional(), managementConfig: z.nullable( z.union([ z.lazy(() => TargetDeploymentManagementConfigAzure$inboundSchema), z.lazy(() => TargetDeploymentManagementConfigAws$inboundSchema), z.lazy(() => TargetDeploymentManagementConfigGcp$inboundSchema), z.lazy(() => TargetDeploymentManagementConfigKubernetes$inboundSchema), z.any(), ]), ).optional(), managerUrl: z.nullable(z.string()).optional(), monitoring: z.nullable( z.union([z.lazy(() => TargetDeploymentMonitoring$inboundSchema), z.any()]), ).optional(), nativeImageHost: z.nullable(z.string()).optional(), observeAllNamespaces: z.boolean().optional(), observeLabelSelector: z.nullable(z.string()).optional(), publicEndpoints: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), stackSettings: z.lazy(() => TargetDeploymentStackSettings$inboundSchema) .optional(), }); export function targetDeploymentConfigFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentConfig' from JSON`, ); } /** @internal */ export const ReleaseInfoTypeStringList$inboundSchema: z.ZodEnum< typeof ReleaseInfoTypeStringList > = z.enum(ReleaseInfoTypeStringList); /** @internal */ export const TargetDeploymentDefaultStringList$inboundSchema: z.ZodType< TargetDeploymentDefaultStringList, unknown > = z.object({ type: ReleaseInfoTypeStringList$inboundSchema, value: z.array(z.string()), }); export function targetDeploymentDefaultStringListFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDefaultStringList$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDefaultStringList' from JSON`, ); } /** @internal */ export const ReleaseInfoTypeBoolean$inboundSchema: z.ZodEnum< typeof ReleaseInfoTypeBoolean > = z.enum(ReleaseInfoTypeBoolean); /** @internal */ export const TargetDeploymentDefaultBoolean$inboundSchema: z.ZodType< TargetDeploymentDefaultBoolean, unknown > = z.object({ type: ReleaseInfoTypeBoolean$inboundSchema, value: z.boolean(), }); export function targetDeploymentDefaultBooleanFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDefaultBoolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDefaultBoolean' from JSON`, ); } /** @internal */ export const ReleaseInfoTypeNumber$inboundSchema: z.ZodEnum< typeof ReleaseInfoTypeNumber > = z.enum(ReleaseInfoTypeNumber); /** @internal */ export const TargetDeploymentDefaultNumber$inboundSchema: z.ZodType< TargetDeploymentDefaultNumber, unknown > = z.object({ type: ReleaseInfoTypeNumber$inboundSchema, value: z.string(), }); export function targetDeploymentDefaultNumberFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDefaultNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDefaultNumber' from JSON`, ); } /** @internal */ export const ReleaseInfoTypeString$inboundSchema: z.ZodEnum< typeof ReleaseInfoTypeString > = z.enum(ReleaseInfoTypeString); /** @internal */ export const TargetDeploymentDefaultString$inboundSchema: z.ZodType< TargetDeploymentDefaultString, unknown > = z.object({ type: ReleaseInfoTypeString$inboundSchema, value: z.string(), }); export function targetDeploymentDefaultStringFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDefaultString$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDefaultString' from JSON`, ); } /** @internal */ export const TargetDeploymentDefaultUnion$inboundSchema: z.ZodType< TargetDeploymentDefaultUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentDefaultString$inboundSchema), z.lazy(() => TargetDeploymentDefaultNumber$inboundSchema), z.lazy(() => TargetDeploymentDefaultBoolean$inboundSchema), z.lazy(() => TargetDeploymentDefaultStringList$inboundSchema), z.any(), ]); export function targetDeploymentDefaultUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDefaultUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDefaultUnion' from JSON`, ); } /** @internal */ export const TypeReleaseInfoEnvEnum$inboundSchema: z.ZodEnum< typeof TypeReleaseInfoEnvEnum > = z.enum(TypeReleaseInfoEnvEnum); /** @internal */ export const ReleaseInfoTypeUnion$inboundSchema: z.ZodType< ReleaseInfoTypeUnion, unknown > = z.union([TypeReleaseInfoEnvEnum$inboundSchema, z.any()]); export function releaseInfoTypeUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ReleaseInfoTypeUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReleaseInfoTypeUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentEnv$inboundSchema: z.ZodType< TargetDeploymentEnv, unknown > = z.object({ name: z.string(), targetResources: z.nullable(z.array(z.string())).optional(), type: z.nullable(z.union([TypeReleaseInfoEnvEnum$inboundSchema, z.any()])) .optional(), }); export function targetDeploymentEnvFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentEnv$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentEnv' from JSON`, ); } /** @internal */ export const TargetDeploymentKind$inboundSchema: z.ZodEnum< typeof TargetDeploymentKind > = z.enum(TargetDeploymentKind); /** @internal */ export const ReleaseInfoPlatform$inboundSchema: z.ZodEnum< typeof ReleaseInfoPlatform > = z.enum(ReleaseInfoPlatform); /** @internal */ export const TargetDeploymentProvidedBy$inboundSchema: z.ZodEnum< typeof TargetDeploymentProvidedBy > = z.enum(TargetDeploymentProvidedBy); /** @internal */ export const TargetDeploymentValidation$inboundSchema: z.ZodType< TargetDeploymentValidation, unknown > = 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 targetDeploymentValidationFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentValidation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentValidation' from JSON`, ); } /** @internal */ export const TargetDeploymentValidationUnion$inboundSchema: z.ZodType< TargetDeploymentValidationUnion, unknown > = z.union([z.lazy(() => TargetDeploymentValidation$inboundSchema), z.any()]); export function targetDeploymentValidationUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentValidationUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentValidationUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentInput$inboundSchema: z.ZodType< TargetDeploymentInput, unknown > = z.object({ default: z.nullable( z.union([ z.lazy(() => TargetDeploymentDefaultString$inboundSchema), z.lazy(() => TargetDeploymentDefaultNumber$inboundSchema), z.lazy(() => TargetDeploymentDefaultBoolean$inboundSchema), z.lazy(() => TargetDeploymentDefaultStringList$inboundSchema), z.any(), ]), ).optional(), description: z.string(), env: z.array(z.lazy(() => TargetDeploymentEnv$inboundSchema)).optional(), id: z.string(), kind: TargetDeploymentKind$inboundSchema, label: z.string(), placeholder: z.nullable(z.string()).optional(), platforms: z.nullable(z.array(ReleaseInfoPlatform$inboundSchema)).optional(), providedBy: z.array(TargetDeploymentProvidedBy$inboundSchema), required: z.boolean(), validation: z.nullable( z.union([z.lazy(() => TargetDeploymentValidation$inboundSchema), z.any()]), ).optional(), }); export function targetDeploymentInputFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentInput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentInput' from JSON`, ); } /** @internal */ export const TargetDeploymentManagementEnum$inboundSchema: z.ZodEnum< typeof TargetDeploymentManagementEnum > = z.enum(TargetDeploymentManagementEnum); /** @internal */ export const TargetDeploymentOverrideAwResource$inboundSchema: z.ZodType< TargetDeploymentOverrideAwResource, unknown > = z.object({ condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string()))) .optional(), resources: z.array(z.string()), }); export function targetDeploymentOverrideAwResourceFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverrideAwResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverrideAwResource' from JSON`, ); } /** @internal */ export const TargetDeploymentOverrideAwStack$inboundSchema: z.ZodType< TargetDeploymentOverrideAwStack, unknown > = z.object({ condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string()))) .optional(), resources: z.array(z.string()), }); export function targetDeploymentOverrideAwStackFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverrideAwStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverrideAwStack' from JSON`, ); } /** @internal */ export const TargetDeploymentOverrideAwBinding$inboundSchema: z.ZodType< TargetDeploymentOverrideAwBinding, unknown > = z.object({ resource: z.lazy(() => TargetDeploymentOverrideAwResource$inboundSchema) .optional(), stack: z.lazy(() => TargetDeploymentOverrideAwStack$inboundSchema).optional(), }); export function targetDeploymentOverrideAwBindingFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverrideAwBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverrideAwBinding' from JSON`, ); } /** @internal */ export const TargetDeploymentOverrideEffect$inboundSchema: z.ZodEnum< typeof TargetDeploymentOverrideEffect > = z.enum(TargetDeploymentOverrideEffect); /** @internal */ export const TargetDeploymentOverrideAwGrant$inboundSchema: z.ZodType< TargetDeploymentOverrideAwGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function targetDeploymentOverrideAwGrantFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverrideAwGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverrideAwGrant' from JSON`, ); } /** @internal */ export const TargetDeploymentOverrideAw$inboundSchema: z.ZodType< TargetDeploymentOverrideAw, unknown > = z.object({ binding: z.lazy(() => TargetDeploymentOverrideAwBinding$inboundSchema), description: z.nullable(z.string()).optional(), effect: TargetDeploymentOverrideEffect$inboundSchema.optional(), grant: z.lazy(() => TargetDeploymentOverrideAwGrant$inboundSchema), label: z.nullable(z.string()).optional(), }); export function targetDeploymentOverrideAwFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverrideAw$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverrideAw' from JSON`, ); } /** @internal */ export const TargetDeploymentOverrideAzureResource$inboundSchema: z.ZodType< TargetDeploymentOverrideAzureResource, unknown > = z.object({ scope: z.string(), }); export function targetDeploymentOverrideAzureResourceFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverrideAzureResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverrideAzureResource' from JSON`, ); } /** @internal */ export const TargetDeploymentOverrideAzureStack$inboundSchema: z.ZodType< TargetDeploymentOverrideAzureStack, unknown > = z.object({ scope: z.string(), }); export function targetDeploymentOverrideAzureStackFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverrideAzureStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverrideAzureStack' from JSON`, ); } /** @internal */ export const TargetDeploymentOverrideAzureBinding$inboundSchema: z.ZodType< TargetDeploymentOverrideAzureBinding, unknown > = z.object({ resource: z.lazy(() => TargetDeploymentOverrideAzureResource$inboundSchema) .optional(), stack: z.lazy(() => TargetDeploymentOverrideAzureStack$inboundSchema) .optional(), }); export function targetDeploymentOverrideAzureBindingFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverrideAzureBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverrideAzureBinding' from JSON`, ); } /** @internal */ export const TargetDeploymentOverrideAzureGrant$inboundSchema: z.ZodType< TargetDeploymentOverrideAzureGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function targetDeploymentOverrideAzureGrantFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverrideAzureGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverrideAzureGrant' from JSON`, ); } /** @internal */ export const OverrideReleaseInfoAzure$inboundSchema: z.ZodType< OverrideReleaseInfoAzure, unknown > = z.object({ binding: z.lazy(() => TargetDeploymentOverrideAzureBinding$inboundSchema), description: z.nullable(z.string()).optional(), grant: z.lazy(() => TargetDeploymentOverrideAzureGrant$inboundSchema), label: z.nullable(z.string()).optional(), }); export function overrideReleaseInfoAzureFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => OverrideReleaseInfoAzure$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OverrideReleaseInfoAzure' from JSON`, ); } /** @internal */ export const TargetDeploymentOverrideConditionResource$inboundSchema: z.ZodType< TargetDeploymentOverrideConditionResource, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function targetDeploymentOverrideConditionResourceFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentOverrideConditionResource, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentOverrideConditionResource$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentOverrideConditionResource' from JSON`, ); } /** @internal */ export const TargetDeploymentOverrideResourceConditionUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => TargetDeploymentOverrideConditionResource$inboundSchema), z.any(), ]); export function targetDeploymentOverrideResourceConditionUnionFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentOverrideResourceConditionUnion, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentOverrideResourceConditionUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentOverrideResourceConditionUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentOverrideGcpResource$inboundSchema: z.ZodType< TargetDeploymentOverrideGcpResource, unknown > = z.object({ condition: z.nullable( z.union([ z.lazy(() => TargetDeploymentOverrideConditionResource$inboundSchema), z.any(), ]), ).optional(), scope: z.string(), }); export function targetDeploymentOverrideGcpResourceFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverrideGcpResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverrideGcpResource' from JSON`, ); } /** @internal */ export const TargetDeploymentOverrideCondition$inboundSchema: z.ZodType< TargetDeploymentOverrideCondition, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function targetDeploymentOverrideConditionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverrideCondition$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverrideCondition' from JSON`, ); } /** @internal */ export const TargetDeploymentOverrideConditionUnion$inboundSchema: z.ZodType< TargetDeploymentOverrideConditionUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentOverrideCondition$inboundSchema), z.any(), ]); export function targetDeploymentOverrideConditionUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverrideConditionUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverrideConditionUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentOverrideGcpStack$inboundSchema: z.ZodType< TargetDeploymentOverrideGcpStack, unknown > = z.object({ condition: z.nullable( z.union([ z.lazy(() => TargetDeploymentOverrideCondition$inboundSchema), z.any(), ]), ).optional(), scope: z.string(), }); export function targetDeploymentOverrideGcpStackFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverrideGcpStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverrideGcpStack' from JSON`, ); } /** @internal */ export const TargetDeploymentOverrideGcpBinding$inboundSchema: z.ZodType< TargetDeploymentOverrideGcpBinding, unknown > = z.object({ resource: z.lazy(() => TargetDeploymentOverrideGcpResource$inboundSchema) .optional(), stack: z.lazy(() => TargetDeploymentOverrideGcpStack$inboundSchema) .optional(), }); export function targetDeploymentOverrideGcpBindingFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverrideGcpBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverrideGcpBinding' from JSON`, ); } /** @internal */ export const TargetDeploymentOverrideGcpGrant$inboundSchema: z.ZodType< TargetDeploymentOverrideGcpGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function targetDeploymentOverrideGcpGrantFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverrideGcpGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverrideGcpGrant' from JSON`, ); } /** @internal */ export const OverrideReleaseInfoGcp$inboundSchema: z.ZodType< OverrideReleaseInfoGcp, unknown > = z.object({ binding: z.lazy(() => TargetDeploymentOverrideGcpBinding$inboundSchema), description: z.nullable(z.string()).optional(), grant: z.lazy(() => TargetDeploymentOverrideGcpGrant$inboundSchema), label: z.nullable(z.string()).optional(), }); export function overrideReleaseInfoGcpFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => OverrideReleaseInfoGcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OverrideReleaseInfoGcp' from JSON`, ); } /** @internal */ export const TargetDeploymentOverridePlatforms$inboundSchema: z.ZodType< TargetDeploymentOverridePlatforms, unknown > = z.object({ aws: z.nullable( z.array(z.lazy(() => TargetDeploymentOverrideAw$inboundSchema)), ).optional(), azure: z.nullable( z.array(z.lazy(() => OverrideReleaseInfoAzure$inboundSchema)), ).optional(), gcp: z.nullable(z.array(z.lazy(() => OverrideReleaseInfoGcp$inboundSchema))) .optional(), }); export function targetDeploymentOverridePlatformsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverridePlatforms$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverridePlatforms' from JSON`, ); } /** @internal */ export const TargetDeploymentOverride$inboundSchema: z.ZodType< TargetDeploymentOverride, unknown > = z.object({ description: z.string(), id: z.string(), platforms: z.lazy(() => TargetDeploymentOverridePlatforms$inboundSchema), }); export function targetDeploymentOverrideFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverride$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverride' from JSON`, ); } /** @internal */ export const TargetDeploymentOverrideUnion$inboundSchema: z.ZodType< TargetDeploymentOverrideUnion, unknown > = z.union([z.lazy(() => TargetDeploymentOverride$inboundSchema), z.string()]); export function targetDeploymentOverrideUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentOverrideUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentOverrideUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentManagement2$inboundSchema: z.ZodType< TargetDeploymentManagement2, unknown > = z.object({ override: z.record( z.string(), z.array(z.union([ z.lazy(() => TargetDeploymentOverride$inboundSchema), z.string(), ])), ), }); export function targetDeploymentManagement2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentManagement2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentManagement2' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendAwResource$inboundSchema: z.ZodType< TargetDeploymentExtendAwResource, unknown > = z.object({ condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string()))) .optional(), resources: z.array(z.string()), }); export function targetDeploymentExtendAwResourceFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtendAwResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtendAwResource' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendAwStack$inboundSchema: z.ZodType< TargetDeploymentExtendAwStack, unknown > = z.object({ condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string()))) .optional(), resources: z.array(z.string()), }); export function targetDeploymentExtendAwStackFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtendAwStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtendAwStack' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendAwBinding$inboundSchema: z.ZodType< TargetDeploymentExtendAwBinding, unknown > = z.object({ resource: z.lazy(() => TargetDeploymentExtendAwResource$inboundSchema) .optional(), stack: z.lazy(() => TargetDeploymentExtendAwStack$inboundSchema).optional(), }); export function targetDeploymentExtendAwBindingFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtendAwBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtendAwBinding' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendEffect$inboundSchema: z.ZodEnum< typeof TargetDeploymentExtendEffect > = z.enum(TargetDeploymentExtendEffect); /** @internal */ export const TargetDeploymentExtendAwGrant$inboundSchema: z.ZodType< TargetDeploymentExtendAwGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function targetDeploymentExtendAwGrantFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtendAwGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtendAwGrant' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendAw$inboundSchema: z.ZodType< TargetDeploymentExtendAw, unknown > = z.object({ binding: z.lazy(() => TargetDeploymentExtendAwBinding$inboundSchema), description: z.nullable(z.string()).optional(), effect: TargetDeploymentExtendEffect$inboundSchema.optional(), grant: z.lazy(() => TargetDeploymentExtendAwGrant$inboundSchema), label: z.nullable(z.string()).optional(), }); export function targetDeploymentExtendAwFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtendAw$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtendAw' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendAzureResource$inboundSchema: z.ZodType< TargetDeploymentExtendAzureResource, unknown > = z.object({ scope: z.string(), }); export function targetDeploymentExtendAzureResourceFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtendAzureResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtendAzureResource' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendAzureStack$inboundSchema: z.ZodType< TargetDeploymentExtendAzureStack, unknown > = z.object({ scope: z.string(), }); export function targetDeploymentExtendAzureStackFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtendAzureStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtendAzureStack' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendAzureBinding$inboundSchema: z.ZodType< TargetDeploymentExtendAzureBinding, unknown > = z.object({ resource: z.lazy(() => TargetDeploymentExtendAzureResource$inboundSchema) .optional(), stack: z.lazy(() => TargetDeploymentExtendAzureStack$inboundSchema) .optional(), }); export function targetDeploymentExtendAzureBindingFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtendAzureBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtendAzureBinding' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendAzureGrant$inboundSchema: z.ZodType< TargetDeploymentExtendAzureGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function targetDeploymentExtendAzureGrantFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtendAzureGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtendAzureGrant' from JSON`, ); } /** @internal */ export const ExtendReleaseInfoAzure$inboundSchema: z.ZodType< ExtendReleaseInfoAzure, unknown > = z.object({ binding: z.lazy(() => TargetDeploymentExtendAzureBinding$inboundSchema), description: z.nullable(z.string()).optional(), grant: z.lazy(() => TargetDeploymentExtendAzureGrant$inboundSchema), label: z.nullable(z.string()).optional(), }); export function extendReleaseInfoAzureFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ExtendReleaseInfoAzure$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExtendReleaseInfoAzure' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendConditionResource$inboundSchema: z.ZodType< TargetDeploymentExtendConditionResource, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function targetDeploymentExtendConditionResourceFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExtendConditionResource, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExtendConditionResource$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExtendConditionResource' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendResourceConditionUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => TargetDeploymentExtendConditionResource$inboundSchema), z.any(), ]); export function targetDeploymentExtendResourceConditionUnionFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentExtendResourceConditionUnion, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentExtendResourceConditionUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentExtendResourceConditionUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendGcpResource$inboundSchema: z.ZodType< TargetDeploymentExtendGcpResource, unknown > = z.object({ condition: z.nullable( z.union([ z.lazy(() => TargetDeploymentExtendConditionResource$inboundSchema), z.any(), ]), ).optional(), scope: z.string(), }); export function targetDeploymentExtendGcpResourceFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtendGcpResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtendGcpResource' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendCondition$inboundSchema: z.ZodType< TargetDeploymentExtendCondition, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function targetDeploymentExtendConditionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtendCondition$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtendCondition' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendConditionUnion$inboundSchema: z.ZodType< TargetDeploymentExtendConditionUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentExtendCondition$inboundSchema), z.any(), ]); export function targetDeploymentExtendConditionUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtendConditionUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtendConditionUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendGcpStack$inboundSchema: z.ZodType< TargetDeploymentExtendGcpStack, unknown > = z.object({ condition: z.nullable( z.union([ z.lazy(() => TargetDeploymentExtendCondition$inboundSchema), z.any(), ]), ).optional(), scope: z.string(), }); export function targetDeploymentExtendGcpStackFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtendGcpStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtendGcpStack' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendGcpBinding$inboundSchema: z.ZodType< TargetDeploymentExtendGcpBinding, unknown > = z.object({ resource: z.lazy(() => TargetDeploymentExtendGcpResource$inboundSchema) .optional(), stack: z.lazy(() => TargetDeploymentExtendGcpStack$inboundSchema).optional(), }); export function targetDeploymentExtendGcpBindingFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtendGcpBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtendGcpBinding' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendGcpGrant$inboundSchema: z.ZodType< TargetDeploymentExtendGcpGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function targetDeploymentExtendGcpGrantFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtendGcpGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtendGcpGrant' from JSON`, ); } /** @internal */ export const ExtendReleaseInfoGcp$inboundSchema: z.ZodType< ExtendReleaseInfoGcp, unknown > = z.object({ binding: z.lazy(() => TargetDeploymentExtendGcpBinding$inboundSchema), description: z.nullable(z.string()).optional(), grant: z.lazy(() => TargetDeploymentExtendGcpGrant$inboundSchema), label: z.nullable(z.string()).optional(), }); export function extendReleaseInfoGcpFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ExtendReleaseInfoGcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExtendReleaseInfoGcp' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendPlatforms$inboundSchema: z.ZodType< TargetDeploymentExtendPlatforms, unknown > = z.object({ aws: z.nullable(z.array(z.lazy(() => TargetDeploymentExtendAw$inboundSchema))) .optional(), azure: z.nullable(z.array(z.lazy(() => ExtendReleaseInfoAzure$inboundSchema))) .optional(), gcp: z.nullable(z.array(z.lazy(() => ExtendReleaseInfoGcp$inboundSchema))) .optional(), }); export function targetDeploymentExtendPlatformsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtendPlatforms$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtendPlatforms' from JSON`, ); } /** @internal */ export const TargetDeploymentExtend$inboundSchema: z.ZodType< TargetDeploymentExtend, unknown > = z.object({ description: z.string(), id: z.string(), platforms: z.lazy(() => TargetDeploymentExtendPlatforms$inboundSchema), }); export function targetDeploymentExtendFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtend$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtend' from JSON`, ); } /** @internal */ export const TargetDeploymentExtendUnion$inboundSchema: z.ZodType< TargetDeploymentExtendUnion, unknown > = z.union([z.lazy(() => TargetDeploymentExtend$inboundSchema), z.string()]); export function targetDeploymentExtendUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentExtendUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentExtendUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentManagement1$inboundSchema: z.ZodType< TargetDeploymentManagement1, unknown > = z.object({ extend: z.record( z.string(), z.array( z.union([z.lazy(() => TargetDeploymentExtend$inboundSchema), z.string()]), ), ), }); export function targetDeploymentManagement1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentManagement1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentManagement1' from JSON`, ); } /** @internal */ export const TargetDeploymentManagementUnion$inboundSchema: z.ZodType< TargetDeploymentManagementUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentManagement1$inboundSchema), z.lazy(() => TargetDeploymentManagement2$inboundSchema), TargetDeploymentManagementEnum$inboundSchema, ]); export function targetDeploymentManagementUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentManagementUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentManagementUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileAwResource$inboundSchema: z.ZodType< TargetDeploymentProfileAwResource, unknown > = z.object({ condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string()))) .optional(), resources: z.array(z.string()), }); export function targetDeploymentProfileAwResourceFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfileAwResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfileAwResource' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileAwStack$inboundSchema: z.ZodType< TargetDeploymentProfileAwStack, unknown > = z.object({ condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string()))) .optional(), resources: z.array(z.string()), }); export function targetDeploymentProfileAwStackFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfileAwStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfileAwStack' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileAwBinding$inboundSchema: z.ZodType< TargetDeploymentProfileAwBinding, unknown > = z.object({ resource: z.lazy(() => TargetDeploymentProfileAwResource$inboundSchema) .optional(), stack: z.lazy(() => TargetDeploymentProfileAwStack$inboundSchema).optional(), }); export function targetDeploymentProfileAwBindingFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfileAwBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfileAwBinding' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileEffect$inboundSchema: z.ZodEnum< typeof TargetDeploymentProfileEffect > = z.enum(TargetDeploymentProfileEffect); /** @internal */ export const TargetDeploymentProfileAwGrant$inboundSchema: z.ZodType< TargetDeploymentProfileAwGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function targetDeploymentProfileAwGrantFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfileAwGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfileAwGrant' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileAw$inboundSchema: z.ZodType< TargetDeploymentProfileAw, unknown > = z.object({ binding: z.lazy(() => TargetDeploymentProfileAwBinding$inboundSchema), description: z.nullable(z.string()).optional(), effect: TargetDeploymentProfileEffect$inboundSchema.optional(), grant: z.lazy(() => TargetDeploymentProfileAwGrant$inboundSchema), label: z.nullable(z.string()).optional(), }); export function targetDeploymentProfileAwFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfileAw$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfileAw' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileAzureResource$inboundSchema: z.ZodType< TargetDeploymentProfileAzureResource, unknown > = z.object({ scope: z.string(), }); export function targetDeploymentProfileAzureResourceFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfileAzureResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfileAzureResource' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileAzureStack$inboundSchema: z.ZodType< TargetDeploymentProfileAzureStack, unknown > = z.object({ scope: z.string(), }); export function targetDeploymentProfileAzureStackFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfileAzureStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfileAzureStack' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileAzureBinding$inboundSchema: z.ZodType< TargetDeploymentProfileAzureBinding, unknown > = z.object({ resource: z.lazy(() => TargetDeploymentProfileAzureResource$inboundSchema) .optional(), stack: z.lazy(() => TargetDeploymentProfileAzureStack$inboundSchema) .optional(), }); export function targetDeploymentProfileAzureBindingFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfileAzureBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfileAzureBinding' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileAzureGrant$inboundSchema: z.ZodType< TargetDeploymentProfileAzureGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function targetDeploymentProfileAzureGrantFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfileAzureGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfileAzureGrant' from JSON`, ); } /** @internal */ export const ProfileReleaseInfoAzure$inboundSchema: z.ZodType< ProfileReleaseInfoAzure, unknown > = z.object({ binding: z.lazy(() => TargetDeploymentProfileAzureBinding$inboundSchema), description: z.nullable(z.string()).optional(), grant: z.lazy(() => TargetDeploymentProfileAzureGrant$inboundSchema), label: z.nullable(z.string()).optional(), }); export function profileReleaseInfoAzureFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ProfileReleaseInfoAzure$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProfileReleaseInfoAzure' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileConditionResource$inboundSchema: z.ZodType< TargetDeploymentProfileConditionResource, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function targetDeploymentProfileConditionResourceFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentProfileConditionResource, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentProfileConditionResource$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentProfileConditionResource' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileResourceConditionUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => TargetDeploymentProfileConditionResource$inboundSchema), z.any(), ]); export function targetDeploymentProfileResourceConditionUnionFromJSON( jsonString: string, ): SafeParseResult< TargetDeploymentProfileResourceConditionUnion, SDKValidationError > { return safeParse( jsonString, (x) => TargetDeploymentProfileResourceConditionUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'TargetDeploymentProfileResourceConditionUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileGcpResource$inboundSchema: z.ZodType< TargetDeploymentProfileGcpResource, unknown > = z.object({ condition: z.nullable( z.union([ z.lazy(() => TargetDeploymentProfileConditionResource$inboundSchema), z.any(), ]), ).optional(), scope: z.string(), }); export function targetDeploymentProfileGcpResourceFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfileGcpResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfileGcpResource' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileCondition$inboundSchema: z.ZodType< TargetDeploymentProfileCondition, unknown > = z.object({ expression: z.string(), title: z.string(), }); export function targetDeploymentProfileConditionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfileCondition$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfileCondition' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileConditionUnion$inboundSchema: z.ZodType< TargetDeploymentProfileConditionUnion, unknown > = z.union([ z.lazy(() => TargetDeploymentProfileCondition$inboundSchema), z.any(), ]); export function targetDeploymentProfileConditionUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfileConditionUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfileConditionUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileGcpStack$inboundSchema: z.ZodType< TargetDeploymentProfileGcpStack, unknown > = z.object({ condition: z.nullable( z.union([ z.lazy(() => TargetDeploymentProfileCondition$inboundSchema), z.any(), ]), ).optional(), scope: z.string(), }); export function targetDeploymentProfileGcpStackFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfileGcpStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfileGcpStack' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileGcpBinding$inboundSchema: z.ZodType< TargetDeploymentProfileGcpBinding, unknown > = z.object({ resource: z.lazy(() => TargetDeploymentProfileGcpResource$inboundSchema) .optional(), stack: z.lazy(() => TargetDeploymentProfileGcpStack$inboundSchema).optional(), }); export function targetDeploymentProfileGcpBindingFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfileGcpBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfileGcpBinding' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileGcpGrant$inboundSchema: z.ZodType< TargetDeploymentProfileGcpGrant, unknown > = z.object({ actions: z.nullable(z.array(z.string())).optional(), dataActions: z.nullable(z.array(z.string())).optional(), permissions: z.nullable(z.array(z.string())).optional(), predefinedRoles: z.nullable(z.array(z.string())).optional(), residualPermissions: z.nullable(z.array(z.string())).optional(), }); export function targetDeploymentProfileGcpGrantFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfileGcpGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfileGcpGrant' from JSON`, ); } /** @internal */ export const ProfileReleaseInfoGcp$inboundSchema: z.ZodType< ProfileReleaseInfoGcp, unknown > = z.object({ binding: z.lazy(() => TargetDeploymentProfileGcpBinding$inboundSchema), description: z.nullable(z.string()).optional(), grant: z.lazy(() => TargetDeploymentProfileGcpGrant$inboundSchema), label: z.nullable(z.string()).optional(), }); export function profileReleaseInfoGcpFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ProfileReleaseInfoGcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProfileReleaseInfoGcp' from JSON`, ); } /** @internal */ export const TargetDeploymentProfilePlatforms$inboundSchema: z.ZodType< TargetDeploymentProfilePlatforms, unknown > = z.object({ aws: z.nullable( z.array(z.lazy(() => TargetDeploymentProfileAw$inboundSchema)), ).optional(), azure: z.nullable( z.array(z.lazy(() => ProfileReleaseInfoAzure$inboundSchema)), ).optional(), gcp: z.nullable(z.array(z.lazy(() => ProfileReleaseInfoGcp$inboundSchema))) .optional(), }); export function targetDeploymentProfilePlatformsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfilePlatforms$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfilePlatforms' from JSON`, ); } /** @internal */ export const TargetDeploymentProfile$inboundSchema: z.ZodType< TargetDeploymentProfile, unknown > = z.object({ description: z.string(), id: z.string(), platforms: z.lazy(() => TargetDeploymentProfilePlatforms$inboundSchema), }); export function targetDeploymentProfileFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfile' from JSON`, ); } /** @internal */ export const TargetDeploymentProfileUnion$inboundSchema: z.ZodType< TargetDeploymentProfileUnion, unknown > = z.union([z.lazy(() => TargetDeploymentProfile$inboundSchema), z.string()]); export function targetDeploymentProfileUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentProfileUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentProfileUnion' from JSON`, ); } /** @internal */ export const TargetDeploymentPermissions$inboundSchema: z.ZodType< TargetDeploymentPermissions, unknown > = z.object({ management: z.union([ z.lazy(() => TargetDeploymentManagement1$inboundSchema), z.lazy(() => TargetDeploymentManagement2$inboundSchema), TargetDeploymentManagementEnum$inboundSchema, ]).optional(), profiles: z.record( z.string(), z.record( z.string(), z.array( z.union([ z.lazy(() => TargetDeploymentProfile$inboundSchema), z.string(), ]), ), ), ), }); export function targetDeploymentPermissionsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentPermissions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentPermissions' from JSON`, ); } /** @internal */ export const ReleaseInfoConfig$inboundSchema: z.ZodType< ReleaseInfoConfig, unknown > = collectExtraKeys$( z.object({ id: z.string(), type: z.string(), }).catchall(z.any()), "additionalProperties", true, ); export function releaseInfoConfigFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ReleaseInfoConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReleaseInfoConfig' from JSON`, ); } /** @internal */ export const TargetDeploymentDependency$inboundSchema: z.ZodType< TargetDeploymentDependency, unknown > = z.object({ id: z.string(), type: z.string(), }); export function targetDeploymentDependencyFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentDependency$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentDependency' from JSON`, ); } /** @internal */ export const TargetDeploymentLifecycle$inboundSchema: z.ZodEnum< typeof TargetDeploymentLifecycle > = z.enum(TargetDeploymentLifecycle); /** @internal */ export const ReleaseInfoResources$inboundSchema: z.ZodType< ReleaseInfoResources, unknown > = z.object({ config: z.lazy(() => ReleaseInfoConfig$inboundSchema), dependencies: z.array(z.lazy(() => TargetDeploymentDependency$inboundSchema)), enabledWhen: z.nullable(z.string()).optional(), lifecycle: TargetDeploymentLifecycle$inboundSchema, remoteAccess: z.boolean().optional(), }); export function releaseInfoResourcesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ReleaseInfoResources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReleaseInfoResources' from JSON`, ); } /** @internal */ export const TargetDeploymentSupportedPlatform$inboundSchema: z.ZodEnum< typeof TargetDeploymentSupportedPlatform > = z.enum(TargetDeploymentSupportedPlatform); /** @internal */ export const TargetDeploymentStack$inboundSchema: z.ZodType< TargetDeploymentStack, unknown > = z.object({ id: z.string(), inputs: z.array(z.lazy(() => TargetDeploymentInput$inboundSchema)).optional(), permissions: z.lazy(() => TargetDeploymentPermissions$inboundSchema) .optional(), resources: z.record( z.string(), z.lazy(() => ReleaseInfoResources$inboundSchema), ), supportedPlatforms: z.nullable( z.array(TargetDeploymentSupportedPlatform$inboundSchema), ).optional(), }); export function targetDeploymentStackFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeploymentStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeploymentStack' from JSON`, ); } /** @internal */ export const ReleaseInfo$inboundSchema: z.ZodType = z .object({ description: z.nullable(z.string()).optional(), releaseId: z.nullable(z.string()).optional(), stack: z.lazy(() => TargetDeploymentStack$inboundSchema), version: z.nullable(z.string()).optional(), }); export function releaseInfoFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ReleaseInfo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReleaseInfo' from JSON`, ); } /** @internal */ export const TargetDeployment$inboundSchema: z.ZodType< TargetDeployment, unknown > = z.object({ config: z.lazy(() => TargetDeploymentConfig$inboundSchema), releaseInfo: z.lazy(() => ReleaseInfo$inboundSchema), }); export function targetDeploymentFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetDeployment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetDeployment' from JSON`, ); }