/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 09880db46ea5 */ import * as z from "zod/v4"; import { remap as remap$ } from "../lib/primitives.js"; import { 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 DeploymentConfigBasePlatformEnum = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type DeploymentConfigBasePlatformEnum = ClosedEnum< typeof DeploymentConfigBasePlatformEnum >; export type DeploymentConfigBasePlatformUnion = | DeploymentConfigBasePlatformEnum | 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 DeploymentConfigClusters = { /** * 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 DeploymentConfigHorizonMachineImageAws = { /** * AMI IDs by architecture, then AWS region. */ amis: { [k: string]: { [k: string]: string } }; }; export type DeploymentConfigHorizonMachineImageAwsUnion = | DeploymentConfigHorizonMachineImageAws | any; /** * Azure Horizon machine image entry. */ export type DeploymentConfigAzureImages = { /** * Azure Compute Gallery image version ID. */ imageVersionId: string; }; /** * Azure Horizon machine image catalog. */ export type DeploymentConfigHorizonMachineImageAzure = { /** * Images by architecture. */ images: { [k: string]: DeploymentConfigAzureImages }; }; export type DeploymentConfigHorizonMachineImageAzureUnion = | DeploymentConfigHorizonMachineImageAzure | any; /** * Base image metadata for the Horizon machine image. */ export type DeploymentConfigBaseImage = { /** * Base OS image name. */ name: string; /** * Base OS image version or channel. */ version: string; }; /** * GCP Horizon machine image entry. */ export type DeploymentConfigGcpImages = { /** * Source image self link or image-family URL. */ sourceImage: string; }; /** * GCP Horizon machine image catalog. */ export type DeploymentConfigHorizonMachineImageGcp = { /** * Images by architecture. */ images: { [k: string]: DeploymentConfigGcpImages }; }; export type DeploymentConfigHorizonMachineImageGcpUnion = | DeploymentConfigHorizonMachineImageGcp | any; /** * Download artifact for one horizond release platform. */ export type DeploymentConfigHorizondArtifacts = { /** * 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 DeploymentConfigHorizonMachineImage = { aws?: DeploymentConfigHorizonMachineImageAws | any | null | undefined; azure?: DeploymentConfigHorizonMachineImageAzure | any | null | undefined; /** * Base image metadata for the Horizon machine image. */ baseImage: DeploymentConfigBaseImage; /** * Logical image channel, such as prod, staging, or canary. */ channel: string; /** * Image manifest creation timestamp. */ createdAt: string; gcp?: DeploymentConfigHorizonMachineImageGcp | any | null | undefined; /** * Git commit SHA used to build the image. */ gitSha: string; /** * Per-architecture horizond artifacts by release-platform key. */ horizondArtifacts: { [k: string]: DeploymentConfigHorizondArtifacts }; /** * horizond daemon version baked into the image. */ horizondVersion: string; /** * Published immutable machine image version. */ machineImageVersion: string; }; export type DeploymentConfigHorizonMachineImageUnion = | DeploymentConfigHorizonMachineImage | any; export const DeploymentConfigComputeBackendType = { Horizon: "horizon", } as const; export type DeploymentConfigComputeBackendType = ClosedEnum< typeof DeploymentConfigComputeBackendType >; /** * 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 DeploymentConfigComputeBackendHorizon = { /** * 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]: DeploymentConfigClusters }; horizonMachineImage?: | DeploymentConfigHorizonMachineImage | any | null | undefined; /** * Horizon control-plane API base URL. */ url: string; type: DeploymentConfigComputeBackendType; }; export type DeploymentConfigComputeBackendUnion = | DeploymentConfigComputeBackendHorizon | any; /** * Certificate status in the certificate lifecycle */ export const DeploymentConfigAliasCertificateStatus = { Pending: "pending", Issued: "issued", Renewing: "renewing", RenewalFailed: "renewal-failed", Failed: "failed", Deleting: "deleting", } as const; /** * Certificate status in the certificate lifecycle */ export type DeploymentConfigAliasCertificateStatus = ClosedEnum< typeof DeploymentConfigAliasCertificateStatus >; /** * DNS record status in the DNS lifecycle */ export const DeploymentConfigAliasDnsStatus = { Pending: "pending", Active: "active", Updating: "updating", Deleting: "deleting", Failed: "failed", } as const; /** * DNS record status in the DNS lifecycle */ export type DeploymentConfigAliasDnsStatus = ClosedEnum< typeof DeploymentConfigAliasDnsStatus >; /** * 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 DeploymentConfigAlias = { /** * 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: DeploymentConfigAliasCertificateStatus; /** * 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: DeploymentConfigAliasDnsStatus; /** * 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 DeploymentConfigCertificateStatus = { Pending: "pending", Issued: "issued", Renewing: "renewing", RenewalFailed: "renewal-failed", Failed: "failed", Deleting: "deleting", } as const; /** * Certificate status in the certificate lifecycle */ export type DeploymentConfigCertificateStatus = ClosedEnum< typeof DeploymentConfigCertificateStatus >; /** * DNS record status in the DNS lifecycle */ export const DeploymentConfigDnsStatus = { Pending: "pending", Active: "active", Updating: "updating", Deleting: "deleting", Failed: "failed", } as const; /** * DNS record status in the DNS lifecycle */ export type DeploymentConfigDnsStatus = ClosedEnum< typeof DeploymentConfigDnsStatus >; /** * Certificate status in the certificate lifecycle */ export const DeploymentConfigEndpointsCertificateStatus = { Pending: "pending", Issued: "issued", Renewing: "renewing", RenewalFailed: "renewal-failed", Failed: "failed", Deleting: "deleting", } as const; /** * Certificate status in the certificate lifecycle */ export type DeploymentConfigEndpointsCertificateStatus = ClosedEnum< typeof DeploymentConfigEndpointsCertificateStatus >; /** * DNS record status in the DNS lifecycle */ export const DeploymentConfigEndpointsDnsStatus = { Pending: "pending", Active: "active", Updating: "updating", Deleting: "deleting", Failed: "failed", } as const; /** * DNS record status in the DNS lifecycle */ export type DeploymentConfigEndpointsDnsStatus = ClosedEnum< typeof DeploymentConfigEndpointsDnsStatus >; /** * 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 DeploymentConfigEndpoints = { /** * 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: DeploymentConfigEndpointsCertificateStatus; /** * 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: DeploymentConfigEndpointsDnsStatus; /** * 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 DeploymentConfigResources = { /** * 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: DeploymentConfigCertificateStatus; /** * Last DNS error message. */ dnsError?: string | null | undefined; /** * DNS record status in the DNS lifecycle */ dnsStatus: DeploymentConfigDnsStatus; /** * Endpoint-scoped metadata keyed by endpoint name. */ endpoints?: { [k: string]: DeploymentConfigEndpoints } | 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 DeploymentConfigDomainMetadata = { /** * 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]: DeploymentConfigResources }; }; export type DeploymentConfigDomainMetadataUnion = | DeploymentConfigDomainMetadata | any; /** * Type of environment variable */ export const DeploymentConfigEnvironmentVariablesType = { Plain: "plain", Secret: "secret", } as const; /** * Type of environment variable */ export type DeploymentConfigEnvironmentVariablesType = ClosedEnum< typeof DeploymentConfigEnvironmentVariablesType >; /** * Environment variable for deployment */ export type DeploymentConfigVariable = { /** * Variable name */ name: string; /** * Target resource patterns (null = all resources, Some = wildcard patterns) */ targetResources?: Array | null | undefined; /** * Type of environment variable */ type: DeploymentConfigEnvironmentVariablesType; /** * Variable value (decrypted - deployment has access to decryption keys) */ value: string; }; /** * Snapshot of environment variables at a point in time */ export type DeploymentConfigEnvironmentVariables = { /** * 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 DeploymentConfigApiKeySecretRef = { key: string; name: string; }; export type DeploymentConfigApiKey = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigApiKeySecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigApiKeyUnion = DeploymentConfigApiKey | any | string; export const DeploymentConfigTypeAi = { Ai: "ai", } as const; export type DeploymentConfigTypeAi = 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 DeploymentConfigExternalBindingsAi = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ apiKey?: DeploymentConfigApiKey | any | string | null | undefined; /** * The external AI provider name (e.g., "openai", "anthropic") */ provider: string; type: DeploymentConfigTypeAi; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigDatabaseSecretRef6 = { key: string; name: string; }; export type DeploymentConfigDatabase6 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigDatabaseSecretRef6; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigDatabaseUnion5 = | DeploymentConfigDatabase6 | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigHostSecretRef4 = { key: string; name: string; }; export type DeploymentConfigHost4 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigHostSecretRef4; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigHostUnion4 = DeploymentConfigHost4 | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigPortSecretRef5 = { key: string; name: string; }; export type DeploymentConfigPort5 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigPortSecretRef5; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigPortUnion5 = DeploymentConfigPort5 | number | any; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigUsernameSecretRef5 = { key: string; name: string; }; export type DeploymentConfigUsername5 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigUsernameSecretRef5; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigUsernameUnion5 = | DeploymentConfigUsername5 | any | string; export const DeploymentConfigTypePostgres5 = { Postgres: "postgres", } as const; export type DeploymentConfigTypePostgres5 = ClosedEnum< typeof DeploymentConfigTypePostgres5 >; /** * Local embedded Postgres binding. */ export type DeploymentConfigExternalBindingsLocalPostgres = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ database?: DeploymentConfigDatabase6 | 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?: DeploymentConfigHost4 | 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?: DeploymentConfigPort5 | 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?: DeploymentConfigUsername5 | any | string | null | undefined; service: "local-postgres"; type: DeploymentConfigTypePostgres5; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigDatabaseSecretRef5 = { key: string; name: string; }; export type DeploymentConfigDatabase5 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigDatabaseSecretRef5; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigDatabaseUnion4 = | DeploymentConfigDatabase5 | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigHostSecretRef3 = { key: string; name: string; }; export type DeploymentConfigHost3 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigHostSecretRef3; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigHostUnion3 = DeploymentConfigHost3 | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigPortSecretRef4 = { key: string; name: string; }; export type DeploymentConfigPort4 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigPortSecretRef4; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigPortUnion4 = DeploymentConfigPort4 | 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 DeploymentConfigSslMode = { 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 DeploymentConfigSslMode = ClosedEnum< typeof DeploymentConfigSslMode >; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigUsernameSecretRef4 = { key: string; name: string; }; export type DeploymentConfigUsername4 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigUsernameSecretRef4; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigUsernameUnion4 = | DeploymentConfigUsername4 | any | string; export const DeploymentConfigTypePostgres4 = { Postgres: "postgres", } as const; export type DeploymentConfigTypePostgres4 = ClosedEnum< typeof DeploymentConfigTypePostgres4 >; /** * Operator-provided / BYO database binding. */ export type DeploymentConfigExternalBindingsExternal = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ database?: DeploymentConfigDatabase5 | 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?: DeploymentConfigHost3 | 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?: DeploymentConfigPort4 | 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?: DeploymentConfigSslMode | undefined; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ username?: DeploymentConfigUsername4 | any | string | null | undefined; service: "external"; type: DeploymentConfigTypePostgres4; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigDatabaseSecretRef4 = { key: string; name: string; }; export type DeploymentConfigDatabase4 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigDatabaseSecretRef4; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigDatabaseUnion3 = | DeploymentConfigDatabase4 | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigHostSecretRef2 = { key: string; name: string; }; export type DeploymentConfigHost2 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigHostSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigHostUnion2 = DeploymentConfigHost2 | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigPasswordSecretUriSecretRef = { key: string; name: string; }; export type DeploymentConfigPasswordSecretUri = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigPasswordSecretUriSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigPasswordSecretUriUnion = | DeploymentConfigPasswordSecretUri | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigPortSecretRef3 = { key: string; name: string; }; export type DeploymentConfigPort3 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigPortSecretRef3; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigPortUnion3 = DeploymentConfigPort3 | number | any; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigUsernameSecretRef3 = { key: string; name: string; }; export type DeploymentConfigUsername3 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigUsernameSecretRef3; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigUsernameUnion3 = | DeploymentConfigUsername3 | any | string; export const DeploymentConfigTypePostgres3 = { Postgres: "postgres", } as const; export type DeploymentConfigTypePostgres3 = ClosedEnum< typeof DeploymentConfigTypePostgres3 >; /** * Azure Flexible Server binding. */ export type DeploymentConfigExternalBindingsFlexibleServer = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ database?: DeploymentConfigDatabase4 | 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?: DeploymentConfigHost2 | 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?: | DeploymentConfigPasswordSecretUri | 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?: DeploymentConfigPort3 | 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?: DeploymentConfigUsername3 | any | string | null | undefined; service: "flexible-server"; type: DeploymentConfigTypePostgres3; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigDatabaseSecretRef3 = { key: string; name: string; }; export type DeploymentConfigDatabase3 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigDatabaseSecretRef3; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigDatabaseUnion2 = | DeploymentConfigDatabase3 | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigHostSecretRef1 = { key: string; name: string; }; export type DeploymentConfigHost1 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigHostSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigHostUnion1 = DeploymentConfigHost1 | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigPasswordSecretNameSecretRef = { key: string; name: string; }; export type DeploymentConfigPasswordSecretName = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigPasswordSecretNameSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigPasswordSecretNameUnion = | DeploymentConfigPasswordSecretName | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigPortSecretRef2 = { key: string; name: string; }; export type DeploymentConfigPort2 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigPortSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigPortUnion2 = DeploymentConfigPort2 | number | any; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigServerCaCertificatesSecretRef = { key: string; name: string; }; export type DeploymentConfigServerCaCertificates = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigServerCaCertificatesSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigServerCaCertificatesUnion = | DeploymentConfigServerCaCertificates | Array | any; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigUsernameSecretRef2 = { key: string; name: string; }; export type DeploymentConfigUsername2 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigUsernameSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigUsernameUnion2 = | DeploymentConfigUsername2 | any | string; export const DeploymentConfigTypePostgres2 = { Postgres: "postgres", } as const; export type DeploymentConfigTypePostgres2 = ClosedEnum< typeof DeploymentConfigTypePostgres2 >; /** * GCP Cloud SQL binding. */ export type DeploymentConfigExternalBindingsCloudSQL = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ database?: DeploymentConfigDatabase3 | 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?: DeploymentConfigHost1 | 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?: | DeploymentConfigPasswordSecretName | 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?: DeploymentConfigPort2 | 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?: | DeploymentConfigServerCaCertificates | 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?: DeploymentConfigUsername2 | any | string | null | undefined; service: "cloud-sql"; type: DeploymentConfigTypePostgres2; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigClusterEndpointSecretRef = { key: string; name: string; }; export type DeploymentConfigClusterEndpoint = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigClusterEndpointSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigClusterEndpointUnion = | DeploymentConfigClusterEndpoint | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigDatabaseSecretRef2 = { key: string; name: string; }; export type DeploymentConfigDatabase2 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigDatabaseSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigDatabaseUnion1 = | DeploymentConfigDatabase2 | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigPasswordSecretArnSecretRef = { key: string; name: string; }; export type DeploymentConfigPasswordSecretArn = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigPasswordSecretArnSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigPasswordSecretArnUnion = | DeploymentConfigPasswordSecretArn | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigPortSecretRef1 = { key: string; name: string; }; export type DeploymentConfigPort1 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigPortSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigPortUnion1 = DeploymentConfigPort1 | number | any; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigUsernameSecretRef1 = { key: string; name: string; }; export type DeploymentConfigUsername1 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigUsernameSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigUsernameUnion1 = | DeploymentConfigUsername1 | any | string; export const DeploymentConfigTypePostgres1 = { Postgres: "postgres", } as const; export type DeploymentConfigTypePostgres1 = ClosedEnum< typeof DeploymentConfigTypePostgres1 >; /** * AWS Aurora Serverless v2 binding. */ export type DeploymentConfigExternalBindingsAurora = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ clusterEndpoint?: | DeploymentConfigClusterEndpoint | 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?: DeploymentConfigDatabase2 | 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?: | DeploymentConfigPasswordSecretArn | 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?: DeploymentConfigPort1 | 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?: DeploymentConfigUsername1 | any | string | null | undefined; service: "aurora"; type: DeploymentConfigTypePostgres1; }; /** * Connection details for a Postgres database, one variant per backend. */ export type DeploymentConfigExternalBindingsUnion6 = | DeploymentConfigExternalBindingsAurora | DeploymentConfigExternalBindingsCloudSQL | DeploymentConfigExternalBindingsFlexibleServer | DeploymentConfigExternalBindingsExternal | DeploymentConfigExternalBindingsLocalPostgres; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigDefaultDomainSecretRef = { key: string; name: string; }; export type DeploymentConfigDefaultDomain = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigDefaultDomainSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigDefaultDomainUnion = | DeploymentConfigDefaultDomain | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigEnvironmentNameSecretRef = { key: string; name: string; }; export type DeploymentConfigEnvironmentName = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigEnvironmentNameSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigEnvironmentNameUnion = | DeploymentConfigEnvironmentName | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigResourceGroupNameSecretRef3 = { key: string; name: string; }; export type DeploymentConfigResourceGroupName3 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigResourceGroupNameSecretRef3; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigResourceGroupNameUnion3 = | DeploymentConfigResourceGroupName3 | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigResourceIdSecretRef = { key: string; name: string; }; export type DeploymentConfigResourceId = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigResourceIdSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigResourceIdUnion = | DeploymentConfigResourceId | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigStaticIpSecretRef = { key: string; name: string; }; export type DeploymentConfigStaticIp = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigStaticIpSecretRef; }; export const DeploymentConfigTypeContainerAppsEnvironment = { ContainerAppsEnvironment: "container_apps_environment", } as const; export type DeploymentConfigTypeContainerAppsEnvironment = ClosedEnum< typeof DeploymentConfigTypeContainerAppsEnvironment >; /** * 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 DeploymentConfigExternalBindingsContainerAppsEnvironment = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ defaultDomain?: | DeploymentConfigDefaultDomain | 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?: | DeploymentConfigEnvironmentName | 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?: | DeploymentConfigResourceGroupName3 | 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?: DeploymentConfigResourceId | any | string | null | undefined; staticIp?: any | null | undefined; type: DeploymentConfigTypeContainerAppsEnvironment; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigDataDirSecretRef3 = { key: string; name: string; }; export type DeploymentConfigDataDir3 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigDataDirSecretRef3; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigDataDirUnion2 = | DeploymentConfigDataDir3 | any | string; export const DeploymentConfigTypeVault5 = { Vault: "vault", } as const; export type DeploymentConfigTypeVault5 = ClosedEnum< typeof DeploymentConfigTypeVault5 >; /** * Local development vault binding (for testing/development) */ export type DeploymentConfigExternalBindingsLocalVault = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ dataDir?: DeploymentConfigDataDir3 | any | string | null | undefined; /** * The vault name for local storage */ vaultName: string; service: "local-vault"; type: DeploymentConfigTypeVault5; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigNamespaceSecretRef2 = { key: string; name: string; }; export type DeploymentConfigNamespace2 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigNamespaceSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigNamespaceUnion2 = | DeploymentConfigNamespace2 | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigVaultPrefixSecretRef3 = { key: string; name: string; }; export type DeploymentConfigVaultPrefix3 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigVaultPrefixSecretRef3; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigVaultPrefixUnion3 = | DeploymentConfigVaultPrefix3 | any | string; export const DeploymentConfigTypeVault4 = { Vault: "vault", } as const; export type DeploymentConfigTypeVault4 = ClosedEnum< typeof DeploymentConfigTypeVault4 >; /** * Kubernetes Secrets vault binding configuration */ export type DeploymentConfigExternalBindingsKubernetesSecret = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ namespace?: DeploymentConfigNamespace2 | 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?: DeploymentConfigVaultPrefix3 | any | string | null | undefined; service: "kubernetes-secret"; type: DeploymentConfigTypeVault4; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigVaultNameSecretRef = { key: string; name: string; }; export type DeploymentConfigVaultName = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigVaultNameSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigVaultNameUnion = | DeploymentConfigVaultName | any | string; export const DeploymentConfigTypeVault3 = { Vault: "vault", } as const; export type DeploymentConfigTypeVault3 = ClosedEnum< typeof DeploymentConfigTypeVault3 >; /** * Azure Key Vault binding configuration */ export type DeploymentConfigExternalBindingsKeyVault = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ vaultName?: DeploymentConfigVaultName | any | string | null | undefined; service: "key-vault"; type: DeploymentConfigTypeVault3; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigVaultPrefixSecretRef2 = { key: string; name: string; }; export type DeploymentConfigVaultPrefix2 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigVaultPrefixSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigVaultPrefixUnion2 = | DeploymentConfigVaultPrefix2 | any | string; export const DeploymentConfigTypeVault2 = { Vault: "vault", } as const; export type DeploymentConfigTypeVault2 = ClosedEnum< typeof DeploymentConfigTypeVault2 >; /** * GCP Secret Manager vault binding configuration */ export type DeploymentConfigExternalBindingsSecretManager = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ vaultPrefix?: DeploymentConfigVaultPrefix2 | any | string | null | undefined; service: "secret-manager"; type: DeploymentConfigTypeVault2; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigVaultPrefixSecretRef1 = { key: string; name: string; }; export type DeploymentConfigVaultPrefix1 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigVaultPrefixSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigVaultPrefixUnion1 = | DeploymentConfigVaultPrefix1 | any | string; export const DeploymentConfigTypeVault1 = { Vault: "vault", } as const; export type DeploymentConfigTypeVault1 = ClosedEnum< typeof DeploymentConfigTypeVault1 >; /** * AWS SSM Parameter Store vault binding configuration */ export type DeploymentConfigExternalBindingsParameterStore = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ vaultPrefix?: DeploymentConfigVaultPrefix1 | any | string | null | undefined; service: "parameter-store"; type: DeploymentConfigTypeVault1; }; /** * Represents a vault binding for secure secret management */ export type DeploymentConfigExternalBindingsUnion5 = | DeploymentConfigExternalBindingsParameterStore | DeploymentConfigExternalBindingsSecretManager | DeploymentConfigExternalBindingsKeyVault | DeploymentConfigExternalBindingsKubernetesSecret | DeploymentConfigExternalBindingsLocalVault; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigDataDirSecretRef2 = { key: string; name: string; }; export type DeploymentConfigDataDir2 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigDataDirSecretRef2; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigRegistryUrlSecretRef = { key: string; name: string; }; export type DeploymentConfigRegistryUrl = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigRegistryUrlSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigRegistryUrlUnion = | DeploymentConfigRegistryUrl | any | string; export const DeploymentConfigTypeArtifactRegistry4 = { ArtifactRegistry: "artifact_registry", } as const; export type DeploymentConfigTypeArtifactRegistry4 = ClosedEnum< typeof DeploymentConfigTypeArtifactRegistry4 >; /** * 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 DeploymentConfigExternalBindingsLocal = { /** * 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?: DeploymentConfigRegistryUrl | any | string | null | undefined; service: "local"; type: DeploymentConfigTypeArtifactRegistry4; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigPullServiceAccountEmailSecretRef = { key: string; name: string; }; export type DeploymentConfigPullServiceAccountEmail = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigPullServiceAccountEmailSecretRef; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigPushServiceAccountEmailSecretRef = { key: string; name: string; }; export type DeploymentConfigPushServiceAccountEmail = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigPushServiceAccountEmailSecretRef; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigRepositoryNameSecretRef = { key: string; name: string; }; export type DeploymentConfigRepositoryName = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigRepositoryNameSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigRepositoryNameUnion = | DeploymentConfigRepositoryName | any | string; export const DeploymentConfigTypeArtifactRegistry3 = { ArtifactRegistry: "artifact_registry", } as const; export type DeploymentConfigTypeArtifactRegistry3 = ClosedEnum< typeof DeploymentConfigTypeArtifactRegistry3 >; /** * Google Artifact Registry binding configuration */ export type DeploymentConfigExternalBindingsGar = { 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?: | DeploymentConfigRepositoryName | any | string | null | undefined; service: "gar"; type: DeploymentConfigTypeArtifactRegistry3; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigRegistryNameSecretRef = { key: string; name: string; }; export type DeploymentConfigRegistryName = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigRegistryNameSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigRegistryNameUnion = | DeploymentConfigRegistryName | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigRepositoryPrefixSecretRef2 = { key: string; name: string; }; export type DeploymentConfigRepositoryPrefix2 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigRepositoryPrefixSecretRef2; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigResourceGroupNameSecretRef2 = { key: string; name: string; }; export type DeploymentConfigResourceGroupName2 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigResourceGroupNameSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigResourceGroupNameUnion2 = | DeploymentConfigResourceGroupName2 | any | string; export const DeploymentConfigTypeArtifactRegistry2 = { ArtifactRegistry: "artifact_registry", } as const; export type DeploymentConfigTypeArtifactRegistry2 = ClosedEnum< typeof DeploymentConfigTypeArtifactRegistry2 >; /** * Azure Container Registry binding configuration */ export type DeploymentConfigExternalBindingsAcr = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ registryName?: DeploymentConfigRegistryName | 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?: | DeploymentConfigResourceGroupName2 | any | string | null | undefined; service: "acr"; type: DeploymentConfigTypeArtifactRegistry2; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigPullRoleArnSecretRef = { key: string; name: string; }; export type DeploymentConfigPullRoleArn = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigPullRoleArnSecretRef; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigPushRoleArnSecretRef = { key: string; name: string; }; export type DeploymentConfigPushRoleArn = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigPushRoleArnSecretRef; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigRepositoryPrefixSecretRef1 = { key: string; name: string; }; export type DeploymentConfigRepositoryPrefix1 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigRepositoryPrefixSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigRepositoryPrefixUnion = | DeploymentConfigRepositoryPrefix1 | any | string; export const DeploymentConfigTypeArtifactRegistry1 = { ArtifactRegistry: "artifact_registry", } as const; export type DeploymentConfigTypeArtifactRegistry1 = ClosedEnum< typeof DeploymentConfigTypeArtifactRegistry1 >; /** * AWS ECR (Elastic Container Registry) binding configuration */ export type DeploymentConfigExternalBindingsEcr = { 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?: | DeploymentConfigRepositoryPrefix1 | any | string | null | undefined; service: "ecr"; type: DeploymentConfigTypeArtifactRegistry1; }; /** * Service-type based artifact registry binding that supports multiple registry providers */ export type DeploymentConfigExternalBindingsUnion4 = | DeploymentConfigExternalBindingsEcr | DeploymentConfigExternalBindingsAcr | DeploymentConfigExternalBindingsGar | DeploymentConfigExternalBindingsLocal; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigDataDirSecretRef1 = { key: string; name: string; }; export type DeploymentConfigDataDir1 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigDataDirSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigDataDirUnion1 = | DeploymentConfigDataDir1 | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigKeyPrefixSecretRef2 = { key: string; name: string; }; export type DeploymentConfigKeyPrefix2 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigKeyPrefixSecretRef2; }; export const DeploymentConfigTypeKv5 = { Kv: "kv", } as const; export type DeploymentConfigTypeKv5 = ClosedEnum< typeof DeploymentConfigTypeKv5 >; /** * Local development KV binding configuration */ export type DeploymentConfigExternalBindingsLocalKv = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ dataDir?: DeploymentConfigDataDir1 | any | string | null | undefined; keyPrefix?: any | null | undefined; service: "local-kv"; type: DeploymentConfigTypeKv5; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigConnectionUrlSecretRef = { key: string; name: string; }; export type DeploymentConfigConnectionUrl = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigConnectionUrlSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigConnectionUrlUnion = | DeploymentConfigConnectionUrl | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigDatabaseSecretRef1 = { key: string; name: string; }; export type DeploymentConfigDatabase1 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigDatabaseSecretRef1; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigKeyPrefixSecretRef1 = { key: string; name: string; }; export type DeploymentConfigKeyPrefix1 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigKeyPrefixSecretRef1; }; export const DeploymentConfigTypeKv4 = { Kv: "kv", } as const; export type DeploymentConfigTypeKv4 = ClosedEnum< typeof DeploymentConfigTypeKv4 >; /** * Redis KV binding configuration */ export type DeploymentConfigExternalBindingsRedis = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ connectionUrl?: | DeploymentConfigConnectionUrl | any | string | null | undefined; database?: any | null | undefined; keyPrefix?: any | null | undefined; service: "redis"; type: DeploymentConfigTypeKv4; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigAccountNameSecretRef2 = { key: string; name: string; }; export type DeploymentConfigAccountName2 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigAccountNameSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigAccountNameUnion2 = | DeploymentConfigAccountName2 | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigResourceGroupNameSecretRef1 = { key: string; name: string; }; export type DeploymentConfigResourceGroupName1 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigResourceGroupNameSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigResourceGroupNameUnion1 = | DeploymentConfigResourceGroupName1 | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigTableNameSecretRef2 = { key: string; name: string; }; export type DeploymentConfigTableName2 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigTableNameSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigTableNameUnion2 = | DeploymentConfigTableName2 | any | string; export const DeploymentConfigTypeKv3 = { Kv: "kv", } as const; export type DeploymentConfigTypeKv3 = ClosedEnum< typeof DeploymentConfigTypeKv3 >; /** * Azure Table Storage KV binding configuration */ export type DeploymentConfigExternalBindingsTablestorage = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ accountName?: DeploymentConfigAccountName2 | 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?: | DeploymentConfigResourceGroupName1 | 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?: DeploymentConfigTableName2 | any | string | null | undefined; service: "tablestorage"; type: DeploymentConfigTypeKv3; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigCollectionNameSecretRef = { key: string; name: string; }; export type DeploymentConfigCollectionName = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigCollectionNameSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigCollectionNameUnion = | DeploymentConfigCollectionName | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigDatabaseIdSecretRef = { key: string; name: string; }; export type DeploymentConfigDatabaseId = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigDatabaseIdSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigDatabaseIdUnion = | DeploymentConfigDatabaseId | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigProjectIdSecretRef = { key: string; name: string; }; export type DeploymentConfigProjectId = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigProjectIdSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigProjectIdUnion = | DeploymentConfigProjectId | any | string; export const DeploymentConfigTypeKv2 = { Kv: "kv", } as const; export type DeploymentConfigTypeKv2 = ClosedEnum< typeof DeploymentConfigTypeKv2 >; /** * GCP Firestore KV binding configuration */ export type DeploymentConfigExternalBindingsFirestore = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ collectionName?: | DeploymentConfigCollectionName | 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?: DeploymentConfigDatabaseId | 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?: DeploymentConfigProjectId | any | string | null | undefined; service: "firestore"; type: DeploymentConfigTypeKv2; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigEndpointUrlSecretRef = { key: string; name: string; }; export type DeploymentConfigEndpointUrl = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigEndpointUrlSecretRef; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigRegionSecretRef = { key: string; name: string; }; export type DeploymentConfigRegion = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigRegionSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigRegionUnion = DeploymentConfigRegion | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigTableNameSecretRef1 = { key: string; name: string; }; export type DeploymentConfigTableName1 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigTableNameSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigTableNameUnion1 = | DeploymentConfigTableName1 | any | string; export const DeploymentConfigTypeKv1 = { Kv: "kv", } as const; export type DeploymentConfigTypeKv1 = ClosedEnum< typeof DeploymentConfigTypeKv1 >; /** * AWS DynamoDB KV binding configuration */ export type DeploymentConfigExternalBindingsDynamodb = { 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?: DeploymentConfigRegion | 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?: DeploymentConfigTableName1 | any | string | null | undefined; service: "dynamodb"; type: DeploymentConfigTypeKv1; }; /** * Represents a KV binding for key-value storage across platforms */ export type DeploymentConfigExternalBindingsUnion3 = | DeploymentConfigExternalBindingsDynamodb | DeploymentConfigExternalBindingsFirestore | DeploymentConfigExternalBindingsTablestorage | DeploymentConfigExternalBindingsRedis | DeploymentConfigExternalBindingsLocalKv; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigQueuePathSecretRef = { key: string; name: string; }; export type DeploymentConfigQueuePath = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigQueuePathSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigQueuePathUnion = | DeploymentConfigQueuePath | any | string; export const DeploymentConfigTypeQueue4 = { Queue: "queue", } as const; export type DeploymentConfigTypeQueue4 = ClosedEnum< typeof DeploymentConfigTypeQueue4 >; /** * Local queue parameters */ export type DeploymentConfigExternalBindingsLocalQueue = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ queuePath?: DeploymentConfigQueuePath | any | string | null | undefined; service: "local-queue"; type: DeploymentConfigTypeQueue4; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigNamespaceSecretRef1 = { key: string; name: string; }; export type DeploymentConfigNamespace1 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigNamespaceSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigNamespaceUnion1 = | DeploymentConfigNamespace1 | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigQueueNameSecretRef = { key: string; name: string; }; export type DeploymentConfigQueueName = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigQueueNameSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigQueueNameUnion = | DeploymentConfigQueueName | any | string; export const DeploymentConfigTypeQueue3 = { Queue: "queue", } as const; export type DeploymentConfigTypeQueue3 = ClosedEnum< typeof DeploymentConfigTypeQueue3 >; /** * Azure Service Bus parameters */ export type DeploymentConfigExternalBindingsServicebus = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ namespace?: DeploymentConfigNamespace1 | 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?: DeploymentConfigQueueName | any | string | null | undefined; service: "servicebus"; type: DeploymentConfigTypeQueue3; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigSubscriptionSecretRef = { key: string; name: string; }; export type DeploymentConfigSubscription = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigSubscriptionSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigSubscriptionUnion = | DeploymentConfigSubscription | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigTopicSecretRef = { key: string; name: string; }; export type DeploymentConfigTopic = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigTopicSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigTopicUnion = DeploymentConfigTopic | any | string; export const DeploymentConfigTypeQueue2 = { Queue: "queue", } as const; export type DeploymentConfigTypeQueue2 = ClosedEnum< typeof DeploymentConfigTypeQueue2 >; /** * GCP Pub/Sub parameters */ export type DeploymentConfigExternalBindingsPubsub = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ subscription?: DeploymentConfigSubscription | 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?: DeploymentConfigTopic | any | string | null | undefined; service: "pubsub"; type: DeploymentConfigTypeQueue2; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigQueueUrlSecretRef = { key: string; name: string; }; export type DeploymentConfigQueueUrl = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigQueueUrlSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigQueueUrlUnion = | DeploymentConfigQueueUrl | any | string; export const DeploymentConfigTypeQueue1 = { Queue: "queue", } as const; export type DeploymentConfigTypeQueue1 = ClosedEnum< typeof DeploymentConfigTypeQueue1 >; /** * AWS SQS queue parameters */ export type DeploymentConfigExternalBindingsSqs = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ queueUrl?: DeploymentConfigQueueUrl | any | string | null | undefined; service: "sqs"; type: DeploymentConfigTypeQueue1; }; /** * Binding parameters for Queue at runtime or in templates. */ export type DeploymentConfigExternalBindingsUnion2 = | DeploymentConfigExternalBindingsSqs | DeploymentConfigExternalBindingsPubsub | DeploymentConfigExternalBindingsServicebus | DeploymentConfigExternalBindingsLocalQueue; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigStoragePathSecretRef = { key: string; name: string; }; export type DeploymentConfigStoragePath = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigStoragePathSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigStoragePathUnion = | DeploymentConfigStoragePath | any | string; export const DeploymentConfigTypeStorage4 = { Storage: "storage", } as const; export type DeploymentConfigTypeStorage4 = ClosedEnum< typeof DeploymentConfigTypeStorage4 >; /** * Local filesystem storage binding configuration */ export type DeploymentConfigExternalBindingsLocalStorage = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ storagePath?: DeploymentConfigStoragePath | any | string | null | undefined; service: "local-storage"; type: DeploymentConfigTypeStorage4; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigBucketNameSecretRef2 = { key: string; name: string; }; export type DeploymentConfigBucketName2 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigBucketNameSecretRef2; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigBucketNameUnion2 = | DeploymentConfigBucketName2 | any | string; export const DeploymentConfigTypeStorage3 = { Storage: "storage", } as const; export type DeploymentConfigTypeStorage3 = ClosedEnum< typeof DeploymentConfigTypeStorage3 >; /** * Google Cloud Storage binding configuration */ export type DeploymentConfigExternalBindingsGcs = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ bucketName?: DeploymentConfigBucketName2 | any | string | null | undefined; service: "gcs"; type: DeploymentConfigTypeStorage3; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigAccountNameSecretRef1 = { key: string; name: string; }; export type DeploymentConfigAccountName1 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigAccountNameSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigAccountNameUnion1 = | DeploymentConfigAccountName1 | any | string; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigContainerNameSecretRef = { key: string; name: string; }; export type DeploymentConfigContainerName = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigContainerNameSecretRef; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigContainerNameUnion = | DeploymentConfigContainerName | any | string; export const DeploymentConfigTypeStorage2 = { Storage: "storage", } as const; export type DeploymentConfigTypeStorage2 = ClosedEnum< typeof DeploymentConfigTypeStorage2 >; /** * Azure Blob Storage binding configuration */ export type DeploymentConfigExternalBindingsBlob = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ accountName?: DeploymentConfigAccountName1 | 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?: | DeploymentConfigContainerName | any | string | null | undefined; service: "blob"; type: DeploymentConfigTypeStorage2; }; /** * Reference to a Kubernetes Secret */ export type DeploymentConfigBucketNameSecretRef1 = { key: string; name: string; }; export type DeploymentConfigBucketName1 = { /** * Reference to a Kubernetes Secret */ secretRef: DeploymentConfigBucketNameSecretRef1; }; /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ export type DeploymentConfigBucketNameUnion1 = | DeploymentConfigBucketName1 | any | string; export const DeploymentConfigTypeStorage1 = { Storage: "storage", } as const; export type DeploymentConfigTypeStorage1 = ClosedEnum< typeof DeploymentConfigTypeStorage1 >; /** * AWS S3 storage binding configuration */ export type DeploymentConfigExternalBindingsS3 = { /** * Represents a value that can be either a concrete value, a template expression, * * @remarks * or a reference to a Kubernetes Secret */ bucketName?: DeploymentConfigBucketName1 | any | string | null | undefined; service: "s3"; type: DeploymentConfigTypeStorage1; }; /** * Service-type based storage binding that supports multiple storage providers */ export type DeploymentConfigExternalBindingsUnion1 = | DeploymentConfigExternalBindingsS3 | DeploymentConfigExternalBindingsBlob | DeploymentConfigExternalBindingsGcs | DeploymentConfigExternalBindingsLocalStorage; /** * 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 DeploymentConfigExternalBindingsUnion7 = | DeploymentConfigExternalBindingsAi | DeploymentConfigExternalBindingsContainerAppsEnvironment | DeploymentConfigExternalBindingsS3 | DeploymentConfigExternalBindingsBlob | DeploymentConfigExternalBindingsGcs | DeploymentConfigExternalBindingsLocalStorage | DeploymentConfigExternalBindingsSqs | DeploymentConfigExternalBindingsPubsub | DeploymentConfigExternalBindingsServicebus | DeploymentConfigExternalBindingsLocalQueue | DeploymentConfigExternalBindingsDynamodb | DeploymentConfigExternalBindingsFirestore | DeploymentConfigExternalBindingsTablestorage | DeploymentConfigExternalBindingsRedis | DeploymentConfigExternalBindingsLocalKv | DeploymentConfigExternalBindingsEcr | DeploymentConfigExternalBindingsAcr | DeploymentConfigExternalBindingsGar | DeploymentConfigExternalBindingsLocal | DeploymentConfigExternalBindingsParameterStore | DeploymentConfigExternalBindingsSecretManager | DeploymentConfigExternalBindingsKeyVault | DeploymentConfigExternalBindingsKubernetesSecret | DeploymentConfigExternalBindingsLocalVault | DeploymentConfigExternalBindingsAurora | DeploymentConfigExternalBindingsCloudSQL | DeploymentConfigExternalBindingsFlexibleServer | DeploymentConfigExternalBindingsExternal | DeploymentConfigExternalBindingsLocalPostgres; export const DeploymentConfigPlatformKubernetes = { Kubernetes: "kubernetes", } as const; export type DeploymentConfigPlatformKubernetes = ClosedEnum< typeof DeploymentConfigPlatformKubernetes >; export type DeploymentConfigManagementConfigKubernetes = { platform: DeploymentConfigPlatformKubernetes; }; export const DeploymentConfigPlatformAzure = { Azure: "azure", } as const; export type DeploymentConfigPlatformAzure = ClosedEnum< typeof DeploymentConfigPlatformAzure >; /** * Azure management configuration extracted from stack settings */ export type DeploymentConfigManagementConfigAzure = { /** * 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: DeploymentConfigPlatformAzure; }; export const DeploymentConfigPlatformGcp = { Gcp: "gcp", } as const; export type DeploymentConfigPlatformGcp = ClosedEnum< typeof DeploymentConfigPlatformGcp >; /** * GCP management configuration extracted from stack settings */ export type DeploymentConfigManagementConfigGcp = { /** * Service account email for management roles */ serviceAccountEmail: string; platform: DeploymentConfigPlatformGcp; }; export const DeploymentConfigPlatformAws = { Aws: "aws", } as const; export type DeploymentConfigPlatformAws = ClosedEnum< typeof DeploymentConfigPlatformAws >; /** * AWS management configuration extracted from stack settings */ export type DeploymentConfigManagementConfigAws = { /** * The managing AWS IAM role ARN that can assume cross-account roles */ managingRoleArn: string; platform: DeploymentConfigPlatformAws; }; export type DeploymentConfigManagementConfigUnion = | DeploymentConfigManagementConfigAzure | DeploymentConfigManagementConfigAws | DeploymentConfigManagementConfigGcp | DeploymentConfigManagementConfigKubernetes | 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 DeploymentConfigMonitoring = { /** * 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 DeploymentConfigMonitoringUnion = DeploymentConfigMonitoring | any; /** * Failure-domain policy selected for a compute pool. */ export type DeploymentConfigFailureDomains2 = { /** * 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 DeploymentConfigFailureDomainsUnion2 = | DeploymentConfigFailureDomains2 | any; export type DeploymentConfigPoolsAutoscale = { failureDomains?: DeploymentConfigFailureDomains2 | 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 DeploymentConfigFailureDomains1 = { /** * 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 DeploymentConfigFailureDomainsUnion1 = | DeploymentConfigFailureDomains1 | any; export type DeploymentConfigPoolsFixed = { failureDomains?: DeploymentConfigFailureDomains1 | 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 DeploymentConfigPoolsUnion = | DeploymentConfigPoolsFixed | DeploymentConfigPoolsAutoscale; /** * 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 DeploymentConfigCompute = { /** * Selected compute choices keyed by pool ID. */ pools?: { [k: string]: DeploymentConfigPoolsFixed | DeploymentConfigPoolsAutoscale; } | undefined; }; export type DeploymentConfigComputeUnion = DeploymentConfigCompute | any; /** * Deployment model: how updates are delivered to the remote environment. */ export const DeploymentConfigDeploymentModel = { Push: "push", Pull: "pull", } as const; /** * Deployment model: how updates are delivered to the remote environment. */ export type DeploymentConfigDeploymentModel = ClosedEnum< typeof DeploymentConfigDeploymentModel >; export type DeploymentConfigAwsStackSettings = { certificateArn: string; }; export type DeploymentConfigStackSettingsAwsUnion = | DeploymentConfigAwsStackSettings | any; export type DeploymentConfigAzureStackSettings = { keyVaultCertificateId: string; keyVaultResourceId?: string | null | undefined; }; export type DeploymentConfigStackSettingsAzureUnion = | DeploymentConfigAzureStackSettings | any; export type DeploymentConfigGcpStackSettings = { certificateName: string; }; export type DeploymentConfigStackSettingsGcpUnion = | DeploymentConfigGcpStackSettings | any; /** * Namespace-scoped Kubernetes TLS Secret reference. */ export type DeploymentConfigTlsSecretRef = { /** * Secret namespace. Defaults to the release namespace when omitted. */ namespace?: string | null | undefined; /** * Secret name. */ secretName: string; }; export type DeploymentConfigDomainsKubernetes = { /** * Namespace-scoped Kubernetes TLS Secret reference. */ tlsSecretRef: DeploymentConfigTlsSecretRef; }; export type DeploymentConfigDomainsKubernetesUnion = | DeploymentConfigDomainsKubernetes | any; /** * Platform-specific certificate references for custom domains. */ export type DeploymentConfigDomainsCertificate = { aws?: DeploymentConfigAwsStackSettings | any | null | undefined; azure?: DeploymentConfigAzureStackSettings | any | null | undefined; gcp?: DeploymentConfigGcpStackSettings | any | null | undefined; kubernetes?: DeploymentConfigDomainsKubernetes | any | null | undefined; }; /** * Custom domain configuration for a single resource. */ export type DeploymentConfigCustomDomains = { /** * Platform-specific certificate references for custom domains. */ certificate: DeploymentConfigDomainsCertificate; /** * Fully qualified domain name to use. */ domain: string; }; export const DeploymentConfigModeLoadBalancer = { LoadBalancer: "loadBalancer", } as const; export type DeploymentConfigModeLoadBalancer = ClosedEnum< typeof DeploymentConfigModeLoadBalancer >; export type DeploymentConfigPublicEndpointTargetLoadBalancer = { /** * DNS name or URL for the external load balancer. */ cnameTarget: string; mode: DeploymentConfigModeLoadBalancer; }; export const DeploymentConfigModeMachineAddresses = { MachineAddresses: "machineAddresses", } as const; export type DeploymentConfigModeMachineAddresses = ClosedEnum< typeof DeploymentConfigModeMachineAddresses >; export type DeploymentConfigPublicEndpointTargetMachineAddresses = { mode: DeploymentConfigModeMachineAddresses; }; export type DeploymentConfigPublicEndpointTargetUnion = | DeploymentConfigPublicEndpointTargetLoadBalancer | DeploymentConfigPublicEndpointTargetMachineAddresses | 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 DeploymentConfigDomains = { /** * Custom domain configuration per resource ID. */ customDomains?: | { [k: string]: DeploymentConfigCustomDomains } | null | undefined; publicEndpointTarget?: | DeploymentConfigPublicEndpointTargetLoadBalancer | DeploymentConfigPublicEndpointTargetMachineAddresses | any | null | undefined; }; export type DeploymentConfigDomainsUnion = DeploymentConfigDomains | 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 DeploymentConfigStackSettingsExternalBindings = {}; /** * How heartbeat health checks are handled. */ export const DeploymentConfigHeartbeats = { Off: "off", On: "on", } as const; /** * How heartbeat health checks are handled. */ export type DeploymentConfigHeartbeats = ClosedEnum< typeof DeploymentConfigHeartbeats >; /** * Optional provider-specific identity for a cloud-backed Kubernetes cluster. */ export type DeploymentConfigCloud = { 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 DeploymentConfigCloudUnion = DeploymentConfigCloud | any; /** * Ownership model for the Kubernetes cluster. */ export const DeploymentConfigOwnership = { Managed: "managed", Existing: "existing", External: "external", } as const; /** * Ownership model for the Kubernetes cluster. */ export type DeploymentConfigOwnership = ClosedEnum< typeof DeploymentConfigOwnership >; /** * Kubernetes cluster setup settings. */ export type DeploymentConfigCluster = { cloud?: DeploymentConfigCloud | any | null | undefined; /** * Namespace where the Alien chart and application resources run. */ namespace?: string | null | undefined; /** * Ownership model for the Kubernetes cluster. */ ownership: DeploymentConfigOwnership; }; export type DeploymentConfigClusterUnion = DeploymentConfigCluster | any; export type DeploymentConfigCertificateNone2 = { mode: "none"; }; export type DeploymentConfigCertificateManagedTLSSecret2 = { mode: "managedTlsSecret"; /** * Secret name template. Runtime may substitute resource/deployment tokens. */ secretNameTemplate: string; }; export type DeploymentConfigCertificateAwsAcmArn2 = { /** * Existing ACM certificate ARN. */ certificateArn: string; mode: "awsAcmArn"; }; export type DeploymentConfigCertificateManagedAcmImport2 = { 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 DeploymentConfigCertificateTLSSecretRef2 = { /** * 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 DeploymentConfigCertificateUnion2 = | DeploymentConfigCertificateTLSSecretRef2 | DeploymentConfigCertificateManagedAcmImport2 | DeploymentConfigCertificateAwsAcmArn2 | DeploymentConfigCertificateManagedTLSSecret2 | DeploymentConfigCertificateNone2; export const DeploymentConfigModeCustom = { Custom: "custom", } as const; export type DeploymentConfigModeCustom = ClosedEnum< typeof DeploymentConfigModeCustom >; export const DeploymentConfigProviderAzureApplicationGatewayForContainersEnum4 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type DeploymentConfigProviderAzureApplicationGatewayForContainersEnum4 = ClosedEnum< typeof DeploymentConfigProviderAzureApplicationGatewayForContainersEnum4 >; export type DeploymentConfigProviderAzureApplicationGatewayForContainers4 = { /** * 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: DeploymentConfigProviderAzureApplicationGatewayForContainersEnum4; }; export const DeploymentConfigProviderGkeGatewayEnum4 = { GkeGateway: "gkeGateway", } as const; export type DeploymentConfigProviderGkeGatewayEnum4 = ClosedEnum< typeof DeploymentConfigProviderGkeGatewayEnum4 >; export type DeploymentConfigProviderGkeGateway4 = { provider: DeploymentConfigProviderGkeGatewayEnum4; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const DeploymentConfigProviderAwsAlbEnum4 = { AwsAlb: "awsAlb", } as const; export type DeploymentConfigProviderAwsAlbEnum4 = ClosedEnum< typeof DeploymentConfigProviderAwsAlbEnum4 >; export type DeploymentConfigProviderAwsAlb4 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: DeploymentConfigProviderAwsAlbEnum4; /** * 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 DeploymentConfigProviderUnion4 = | DeploymentConfigProviderAwsAlb4 | DeploymentConfigProviderAzureApplicationGatewayForContainers4 | DeploymentConfigProviderGkeGateway4 | any; /** * Shared Gateway API route profile values. */ export type DeploymentConfigRouteGateway2 = { /** * 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?: | DeploymentConfigProviderAwsAlb4 | DeploymentConfigProviderAzureApplicationGatewayForContainers4 | DeploymentConfigProviderGkeGateway4 | any | null | undefined; routeApi: "gateway"; }; export const DeploymentConfigProviderAzureApplicationGatewayForContainersEnum3 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type DeploymentConfigProviderAzureApplicationGatewayForContainersEnum3 = ClosedEnum< typeof DeploymentConfigProviderAzureApplicationGatewayForContainersEnum3 >; export type DeploymentConfigProviderAzureApplicationGatewayForContainers3 = { /** * 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: DeploymentConfigProviderAzureApplicationGatewayForContainersEnum3; }; export const DeploymentConfigProviderGkeGatewayEnum3 = { GkeGateway: "gkeGateway", } as const; export type DeploymentConfigProviderGkeGatewayEnum3 = ClosedEnum< typeof DeploymentConfigProviderGkeGatewayEnum3 >; export type DeploymentConfigProviderGkeGateway3 = { provider: DeploymentConfigProviderGkeGatewayEnum3; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const DeploymentConfigProviderAwsAlbEnum3 = { AwsAlb: "awsAlb", } as const; export type DeploymentConfigProviderAwsAlbEnum3 = ClosedEnum< typeof DeploymentConfigProviderAwsAlbEnum3 >; export type DeploymentConfigProviderAwsAlb3 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: DeploymentConfigProviderAwsAlbEnum3; /** * 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 DeploymentConfigProviderUnion3 = | DeploymentConfigProviderAwsAlb3 | DeploymentConfigProviderAzureApplicationGatewayForContainers3 | DeploymentConfigProviderGkeGateway3 | any; /** * Shared Ingress route profile values. */ export type DeploymentConfigRouteIngress2 = { /** * 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?: | DeploymentConfigProviderAwsAlb3 | DeploymentConfigProviderAzureApplicationGatewayForContainers3 | DeploymentConfigProviderGkeGateway3 | any | null | undefined; routeApi: "ingress"; }; /** * Kubernetes route API selected for public endpoints. */ export type DeploymentConfigRouteUnion2 = | DeploymentConfigRouteIngress2 | DeploymentConfigRouteGateway2; export type DeploymentConfigExposureCustom = { /** * Certificate publication or reference mode for Kubernetes public endpoints. */ certificate: | DeploymentConfigCertificateTLSSecretRef2 | DeploymentConfigCertificateManagedAcmImport2 | DeploymentConfigCertificateAwsAcmArn2 | DeploymentConfigCertificateManagedTLSSecret2 | DeploymentConfigCertificateNone2; /** * Hostname routed by the Kubernetes public endpoint. */ domain: string; mode: DeploymentConfigModeCustom; /** * Kubernetes route API selected for public endpoints. */ route: DeploymentConfigRouteIngress2 | DeploymentConfigRouteGateway2; }; export type DeploymentConfigCertificateNone1 = { mode: "none"; }; export type DeploymentConfigCertificateManagedTLSSecret1 = { mode: "managedTlsSecret"; /** * Secret name template. Runtime may substitute resource/deployment tokens. */ secretNameTemplate: string; }; export type DeploymentConfigCertificateAwsAcmArn1 = { /** * Existing ACM certificate ARN. */ certificateArn: string; mode: "awsAcmArn"; }; export type DeploymentConfigCertificateManagedAcmImport1 = { 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 DeploymentConfigCertificateTLSSecretRef1 = { /** * 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 DeploymentConfigCertificateUnion1 = | DeploymentConfigCertificateTLSSecretRef1 | DeploymentConfigCertificateManagedAcmImport1 | DeploymentConfigCertificateAwsAcmArn1 | DeploymentConfigCertificateManagedTLSSecret1 | DeploymentConfigCertificateNone1; export const DeploymentConfigModeGenerated = { Generated: "generated", } as const; export type DeploymentConfigModeGenerated = ClosedEnum< typeof DeploymentConfigModeGenerated >; export const DeploymentConfigProviderAzureApplicationGatewayForContainersEnum2 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type DeploymentConfigProviderAzureApplicationGatewayForContainersEnum2 = ClosedEnum< typeof DeploymentConfigProviderAzureApplicationGatewayForContainersEnum2 >; export type DeploymentConfigProviderAzureApplicationGatewayForContainers2 = { /** * 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: DeploymentConfigProviderAzureApplicationGatewayForContainersEnum2; }; export const DeploymentConfigProviderGkeGatewayEnum2 = { GkeGateway: "gkeGateway", } as const; export type DeploymentConfigProviderGkeGatewayEnum2 = ClosedEnum< typeof DeploymentConfigProviderGkeGatewayEnum2 >; export type DeploymentConfigProviderGkeGateway2 = { provider: DeploymentConfigProviderGkeGatewayEnum2; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const DeploymentConfigProviderAwsAlbEnum2 = { AwsAlb: "awsAlb", } as const; export type DeploymentConfigProviderAwsAlbEnum2 = ClosedEnum< typeof DeploymentConfigProviderAwsAlbEnum2 >; export type DeploymentConfigProviderAwsAlb2 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: DeploymentConfigProviderAwsAlbEnum2; /** * 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 DeploymentConfigProviderUnion2 = | DeploymentConfigProviderAwsAlb2 | DeploymentConfigProviderAzureApplicationGatewayForContainers2 | DeploymentConfigProviderGkeGateway2 | any; /** * Shared Gateway API route profile values. */ export type DeploymentConfigRouteGateway1 = { /** * 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?: | DeploymentConfigProviderAwsAlb2 | DeploymentConfigProviderAzureApplicationGatewayForContainers2 | DeploymentConfigProviderGkeGateway2 | any | null | undefined; routeApi: "gateway"; }; export const DeploymentConfigProviderAzureApplicationGatewayForContainersEnum1 = { AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers", } as const; export type DeploymentConfigProviderAzureApplicationGatewayForContainersEnum1 = ClosedEnum< typeof DeploymentConfigProviderAzureApplicationGatewayForContainersEnum1 >; export type DeploymentConfigProviderAzureApplicationGatewayForContainers1 = { /** * 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: DeploymentConfigProviderAzureApplicationGatewayForContainersEnum1; }; export const DeploymentConfigProviderGkeGatewayEnum1 = { GkeGateway: "gkeGateway", } as const; export type DeploymentConfigProviderGkeGatewayEnum1 = ClosedEnum< typeof DeploymentConfigProviderGkeGatewayEnum1 >; export type DeploymentConfigProviderGkeGateway1 = { provider: DeploymentConfigProviderGkeGatewayEnum1; /** * Optional static address name for the Gateway frontend. */ staticAddressName?: string | null | undefined; }; export const DeploymentConfigProviderAwsAlbEnum1 = { AwsAlb: "awsAlb", } as const; export type DeploymentConfigProviderAwsAlbEnum1 = ClosedEnum< typeof DeploymentConfigProviderAwsAlbEnum1 >; export type DeploymentConfigProviderAwsAlb1 = { /** * Optional ALB IP address type, such as `dualstack`. */ ipAddressType?: string | null | undefined; provider: DeploymentConfigProviderAwsAlbEnum1; /** * 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 DeploymentConfigProviderUnion1 = | DeploymentConfigProviderAwsAlb1 | DeploymentConfigProviderAzureApplicationGatewayForContainers1 | DeploymentConfigProviderGkeGateway1 | any; /** * Shared Ingress route profile values. */ export type DeploymentConfigRouteIngress1 = { /** * 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?: | DeploymentConfigProviderAwsAlb1 | DeploymentConfigProviderAzureApplicationGatewayForContainers1 | DeploymentConfigProviderGkeGateway1 | any | null | undefined; routeApi: "ingress"; }; /** * Kubernetes route API selected for public endpoints. */ export type DeploymentConfigRouteUnion1 = | DeploymentConfigRouteIngress1 | DeploymentConfigRouteGateway1; export type DeploymentConfigExposureGenerated = { /** * Certificate publication or reference mode for Kubernetes public endpoints. */ certificate: | DeploymentConfigCertificateTLSSecretRef1 | DeploymentConfigCertificateManagedAcmImport1 | DeploymentConfigCertificateAwsAcmArn1 | DeploymentConfigCertificateManagedTLSSecret1 | DeploymentConfigCertificateNone1; mode: DeploymentConfigModeGenerated; /** * Kubernetes route API selected for public endpoints. */ route: DeploymentConfigRouteIngress1 | DeploymentConfigRouteGateway1; }; export const DeploymentConfigModeDisabled = { Disabled: "disabled", } as const; export type DeploymentConfigModeDisabled = ClosedEnum< typeof DeploymentConfigModeDisabled >; export type DeploymentConfigExposureDisabled = { mode: DeploymentConfigModeDisabled; }; export type DeploymentConfigExposureUnion = | DeploymentConfigExposureCustom | DeploymentConfigExposureGenerated | DeploymentConfigExposureDisabled | 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 DeploymentConfigKubernetes = { cluster?: DeploymentConfigCluster | any | null | undefined; exposure?: | DeploymentConfigExposureCustom | DeploymentConfigExposureGenerated | DeploymentConfigExposureDisabled | any | null | undefined; }; export type DeploymentConfigKubernetesUnion = DeploymentConfigKubernetes | any; export const DeploymentConfigTypeByoVnetAzure = { ByoVnetAzure: "byo-vnet-azure", } as const; export type DeploymentConfigTypeByoVnetAzure = ClosedEnum< typeof DeploymentConfigTypeByoVnetAzure >; export type DeploymentConfigNetworkByoVnetAzure = { /** * 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: DeploymentConfigTypeByoVnetAzure; /** * The full resource ID of the existing VNet */ vnetResourceId: string; }; export const DeploymentConfigTypeByoVpcGcp = { ByoVpcGcp: "byo-vpc-gcp", } as const; export type DeploymentConfigTypeByoVpcGcp = ClosedEnum< typeof DeploymentConfigTypeByoVpcGcp >; export type DeploymentConfigNetworkByoVpcGcp = { /** * 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: DeploymentConfigTypeByoVpcGcp; }; export const DeploymentConfigTypeByoVpcAws = { ByoVpcAws: "byo-vpc-aws", } as const; export type DeploymentConfigTypeByoVpcAws = ClosedEnum< typeof DeploymentConfigTypeByoVpcAws >; export type DeploymentConfigNetworkByoVpcAws = { /** * 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: DeploymentConfigTypeByoVpcAws; /** * The ID of the existing VPC */ vpcId: string; }; export const DeploymentConfigTypeCreate = { Create: "create", } as const; export type DeploymentConfigTypeCreate = ClosedEnum< typeof DeploymentConfigTypeCreate >; export type DeploymentConfigNetworkCreate = { /** * 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: DeploymentConfigTypeCreate; }; export const DeploymentConfigTypeUseDefault = { UseDefault: "use-default", } as const; export type DeploymentConfigTypeUseDefault = ClosedEnum< typeof DeploymentConfigTypeUseDefault >; export type DeploymentConfigNetworkUseDefault = { type: DeploymentConfigTypeUseDefault; }; export type DeploymentConfigNetworkUnion = | DeploymentConfigNetworkByoVpcAws | DeploymentConfigNetworkByoVpcGcp | DeploymentConfigNetworkByoVnetAzure | DeploymentConfigNetworkUseDefault | DeploymentConfigNetworkCreate | any; /** * How telemetry (logs, metrics, traces) is handled. */ export const DeploymentConfigTelemetry = { Off: "off", Auto: "auto", ApprovalRequired: "approval-required", } as const; /** * How telemetry (logs, metrics, traces) is handled. */ export type DeploymentConfigTelemetry = ClosedEnum< typeof DeploymentConfigTelemetry >; /** * How updates are delivered to the deployment. */ export const DeploymentConfigUpdates = { Auto: "auto", ApprovalRequired: "approval-required", } as const; /** * How updates are delivered to the deployment. */ export type DeploymentConfigUpdates = ClosedEnum< typeof DeploymentConfigUpdates >; /** * 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 DeploymentConfigStackSettings = { compute?: DeploymentConfigCompute | any | null | undefined; /** * Deployment model: how updates are delivered to the remote environment. */ deploymentModel?: DeploymentConfigDeploymentModel | undefined; domains?: DeploymentConfigDomains | 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?: | DeploymentConfigStackSettingsExternalBindings | null | undefined; /** * How heartbeat health checks are handled. */ heartbeats?: DeploymentConfigHeartbeats | undefined; kubernetes?: DeploymentConfigKubernetes | any | null | undefined; network?: | DeploymentConfigNetworkByoVpcAws | DeploymentConfigNetworkByoVpcGcp | DeploymentConfigNetworkByoVnetAzure | DeploymentConfigNetworkUseDefault | DeploymentConfigNetworkCreate | 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?: DeploymentConfigTelemetry | undefined; /** * How updates are delivered to the deployment. */ updates?: DeploymentConfigUpdates | undefined; }; /** * Deployment configuration */ export type DeploymentConfig = { /** * 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?: DeploymentConfigBasePlatformEnum | any | null | undefined; computeBackend?: | DeploymentConfigComputeBackendHorizon | 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?: DeploymentConfigDomainMetadata | any | null | undefined; /** * Snapshot of environment variables at a point in time */ environmentVariables: DeploymentConfigEnvironmentVariables; /** * Map from resource ID to external binding. * * @remarks * * Validated at runtime: binding type must match resource type. */ externalBindings?: { [k: string]: | DeploymentConfigExternalBindingsAi | DeploymentConfigExternalBindingsContainerAppsEnvironment | DeploymentConfigExternalBindingsS3 | DeploymentConfigExternalBindingsBlob | DeploymentConfigExternalBindingsGcs | DeploymentConfigExternalBindingsLocalStorage | DeploymentConfigExternalBindingsSqs | DeploymentConfigExternalBindingsPubsub | DeploymentConfigExternalBindingsServicebus | DeploymentConfigExternalBindingsLocalQueue | DeploymentConfigExternalBindingsDynamodb | DeploymentConfigExternalBindingsFirestore | DeploymentConfigExternalBindingsTablestorage | DeploymentConfigExternalBindingsRedis | DeploymentConfigExternalBindingsLocalKv | DeploymentConfigExternalBindingsEcr | DeploymentConfigExternalBindingsAcr | DeploymentConfigExternalBindingsGar | DeploymentConfigExternalBindingsLocal | DeploymentConfigExternalBindingsParameterStore | DeploymentConfigExternalBindingsSecretManager | DeploymentConfigExternalBindingsKeyVault | DeploymentConfigExternalBindingsKubernetesSecret | DeploymentConfigExternalBindingsLocalVault | DeploymentConfigExternalBindingsAurora | DeploymentConfigExternalBindingsCloudSQL | DeploymentConfigExternalBindingsFlexibleServer | DeploymentConfigExternalBindingsExternal | DeploymentConfigExternalBindingsLocalPostgres; } | 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?: | DeploymentConfigManagementConfigAzure | DeploymentConfigManagementConfigAws | DeploymentConfigManagementConfigGcp | DeploymentConfigManagementConfigKubernetes | 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?: DeploymentConfigMonitoring | 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?: DeploymentConfigStackSettings | undefined; }; /** @internal */ export const DeploymentConfigBasePlatformEnum$inboundSchema: z.ZodEnum< typeof DeploymentConfigBasePlatformEnum > = z.enum(DeploymentConfigBasePlatformEnum); /** @internal */ export const DeploymentConfigBasePlatformUnion$inboundSchema: z.ZodType< DeploymentConfigBasePlatformUnion, unknown > = z.union([DeploymentConfigBasePlatformEnum$inboundSchema, z.any()]); export function deploymentConfigBasePlatformUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigBasePlatformUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigBasePlatformUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigClusters$inboundSchema: z.ZodType< DeploymentConfigClusters, unknown > = z.object({ clusterId: z.string(), managementToken: z.string(), }); export function deploymentConfigClustersFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigClusters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigClusters' from JSON`, ); } /** @internal */ export const DeploymentConfigHorizonMachineImageAws$inboundSchema: z.ZodType< DeploymentConfigHorizonMachineImageAws, unknown > = z.object({ amis: z.record(z.string(), z.record(z.string(), z.string())), }); export function deploymentConfigHorizonMachineImageAwsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigHorizonMachineImageAws$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigHorizonMachineImageAws' from JSON`, ); } /** @internal */ export const DeploymentConfigHorizonMachineImageAwsUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentConfigHorizonMachineImageAws$inboundSchema), z.any(), ]); export function deploymentConfigHorizonMachineImageAwsUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigHorizonMachineImageAwsUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigHorizonMachineImageAwsUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigHorizonMachineImageAwsUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigAzureImages$inboundSchema: z.ZodType< DeploymentConfigAzureImages, unknown > = z.object({ imageVersionId: z.string(), }); export function deploymentConfigAzureImagesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigAzureImages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigAzureImages' from JSON`, ); } /** @internal */ export const DeploymentConfigHorizonMachineImageAzure$inboundSchema: z.ZodType< DeploymentConfigHorizonMachineImageAzure, unknown > = z.object({ images: z.record( z.string(), z.lazy(() => DeploymentConfigAzureImages$inboundSchema), ), }); export function deploymentConfigHorizonMachineImageAzureFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigHorizonMachineImageAzure, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigHorizonMachineImageAzure$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigHorizonMachineImageAzure' from JSON`, ); } /** @internal */ export const DeploymentConfigHorizonMachineImageAzureUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentConfigHorizonMachineImageAzure$inboundSchema), z.any(), ]); export function deploymentConfigHorizonMachineImageAzureUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigHorizonMachineImageAzureUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigHorizonMachineImageAzureUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigHorizonMachineImageAzureUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigBaseImage$inboundSchema: z.ZodType< DeploymentConfigBaseImage, unknown > = z.object({ name: z.string(), version: z.string(), }); export function deploymentConfigBaseImageFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigBaseImage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigBaseImage' from JSON`, ); } /** @internal */ export const DeploymentConfigGcpImages$inboundSchema: z.ZodType< DeploymentConfigGcpImages, unknown > = z.object({ sourceImage: z.string(), }); export function deploymentConfigGcpImagesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigGcpImages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigGcpImages' from JSON`, ); } /** @internal */ export const DeploymentConfigHorizonMachineImageGcp$inboundSchema: z.ZodType< DeploymentConfigHorizonMachineImageGcp, unknown > = z.object({ images: z.record( z.string(), z.lazy(() => DeploymentConfigGcpImages$inboundSchema), ), }); export function deploymentConfigHorizonMachineImageGcpFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigHorizonMachineImageGcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigHorizonMachineImageGcp' from JSON`, ); } /** @internal */ export const DeploymentConfigHorizonMachineImageGcpUnion$inboundSchema: z.ZodType = z.union([ z.lazy(() => DeploymentConfigHorizonMachineImageGcp$inboundSchema), z.any(), ]); export function deploymentConfigHorizonMachineImageGcpUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigHorizonMachineImageGcpUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigHorizonMachineImageGcpUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigHorizonMachineImageGcpUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigHorizondArtifacts$inboundSchema: z.ZodType< DeploymentConfigHorizondArtifacts, unknown > = z.object({ sha256: z.string(), url: z.string(), }); export function deploymentConfigHorizondArtifactsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigHorizondArtifacts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigHorizondArtifacts' from JSON`, ); } /** @internal */ export const DeploymentConfigHorizonMachineImage$inboundSchema: z.ZodType< DeploymentConfigHorizonMachineImage, unknown > = z.object({ aws: z.nullable( z.union([ z.lazy(() => DeploymentConfigHorizonMachineImageAws$inboundSchema), z.any(), ]), ).optional(), azure: z.nullable( z.union([ z.lazy(() => DeploymentConfigHorizonMachineImageAzure$inboundSchema), z.any(), ]), ).optional(), baseImage: z.lazy(() => DeploymentConfigBaseImage$inboundSchema), channel: z.string(), createdAt: z.string(), gcp: z.nullable( z.union([ z.lazy(() => DeploymentConfigHorizonMachineImageGcp$inboundSchema), z.any(), ]), ).optional(), gitSha: z.string(), horizondArtifacts: z.record( z.string(), z.lazy(() => DeploymentConfigHorizondArtifacts$inboundSchema), ), horizondVersion: z.string(), machineImageVersion: z.string(), }); export function deploymentConfigHorizonMachineImageFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigHorizonMachineImage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigHorizonMachineImage' from JSON`, ); } /** @internal */ export const DeploymentConfigHorizonMachineImageUnion$inboundSchema: z.ZodType< DeploymentConfigHorizonMachineImageUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigHorizonMachineImage$inboundSchema), z.any(), ]); export function deploymentConfigHorizonMachineImageUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigHorizonMachineImageUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigHorizonMachineImageUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigHorizonMachineImageUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigComputeBackendType$inboundSchema: z.ZodEnum< typeof DeploymentConfigComputeBackendType > = z.enum(DeploymentConfigComputeBackendType); /** @internal */ export const DeploymentConfigComputeBackendHorizon$inboundSchema: z.ZodType< DeploymentConfigComputeBackendHorizon, unknown > = z.object({ clusters: z.record( z.string(), z.lazy(() => DeploymentConfigClusters$inboundSchema), ), horizonMachineImage: z.nullable( z.union([ z.lazy(() => DeploymentConfigHorizonMachineImage$inboundSchema), z.any(), ]), ).optional(), url: z.string(), type: DeploymentConfigComputeBackendType$inboundSchema, }); export function deploymentConfigComputeBackendHorizonFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigComputeBackendHorizon$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigComputeBackendHorizon' from JSON`, ); } /** @internal */ export const DeploymentConfigComputeBackendUnion$inboundSchema: z.ZodType< DeploymentConfigComputeBackendUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigComputeBackendHorizon$inboundSchema), z.any(), ]); export function deploymentConfigComputeBackendUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigComputeBackendUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigComputeBackendUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigAliasCertificateStatus$inboundSchema: z.ZodEnum< typeof DeploymentConfigAliasCertificateStatus > = z.enum(DeploymentConfigAliasCertificateStatus); /** @internal */ export const DeploymentConfigAliasDnsStatus$inboundSchema: z.ZodEnum< typeof DeploymentConfigAliasDnsStatus > = z.enum(DeploymentConfigAliasDnsStatus); /** @internal */ export const DeploymentConfigAlias$inboundSchema: z.ZodType< DeploymentConfigAlias, unknown > = z.object({ certificateChain: z.nullable(z.string()).optional(), certificateId: z.string(), certificateStatus: DeploymentConfigAliasCertificateStatus$inboundSchema, dnsError: z.nullable(z.string()).optional(), dnsStatus: DeploymentConfigAliasDnsStatus$inboundSchema, fqdn: z.string(), issuedAt: z.nullable(z.string()).optional(), privateKey: z.nullable(z.string()).optional(), }); export function deploymentConfigAliasFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigAlias$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigAlias' from JSON`, ); } /** @internal */ export const DeploymentConfigCertificateStatus$inboundSchema: z.ZodEnum< typeof DeploymentConfigCertificateStatus > = z.enum(DeploymentConfigCertificateStatus); /** @internal */ export const DeploymentConfigDnsStatus$inboundSchema: z.ZodEnum< typeof DeploymentConfigDnsStatus > = z.enum(DeploymentConfigDnsStatus); /** @internal */ export const DeploymentConfigEndpointsCertificateStatus$inboundSchema: z.ZodEnum = z.enum( DeploymentConfigEndpointsCertificateStatus, ); /** @internal */ export const DeploymentConfigEndpointsDnsStatus$inboundSchema: z.ZodEnum< typeof DeploymentConfigEndpointsDnsStatus > = z.enum(DeploymentConfigEndpointsDnsStatus); /** @internal */ export const DeploymentConfigEndpoints$inboundSchema: z.ZodType< DeploymentConfigEndpoints, unknown > = z.object({ certificateChain: z.nullable(z.string()).optional(), certificateId: z.string(), certificateStatus: DeploymentConfigEndpointsCertificateStatus$inboundSchema, dnsError: z.nullable(z.string()).optional(), dnsStatus: DeploymentConfigEndpointsDnsStatus$inboundSchema, fqdn: z.string(), issuedAt: z.nullable(z.string()).optional(), privateKey: z.nullable(z.string()).optional(), }); export function deploymentConfigEndpointsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigEndpoints$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigEndpoints' from JSON`, ); } /** @internal */ export const DeploymentConfigResources$inboundSchema: z.ZodType< DeploymentConfigResources, unknown > = z.object({ aliases: z.array(z.lazy(() => DeploymentConfigAlias$inboundSchema)) .optional(), certificateChain: z.nullable(z.string()).optional(), certificateId: z.string(), certificateStatus: DeploymentConfigCertificateStatus$inboundSchema, dnsError: z.nullable(z.string()).optional(), dnsStatus: DeploymentConfigDnsStatus$inboundSchema, endpoints: z.record( z.string(), z.lazy(() => DeploymentConfigEndpoints$inboundSchema), ).optional(), fqdn: z.string(), issuedAt: z.nullable(z.string()).optional(), privateKey: z.nullable(z.string()).optional(), }); export function deploymentConfigResourcesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigResources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigResources' from JSON`, ); } /** @internal */ export const DeploymentConfigDomainMetadata$inboundSchema: z.ZodType< DeploymentConfigDomainMetadata, unknown > = z.object({ baseDomain: z.string(), hostedZoneId: z.string(), publicSubdomain: z.string(), resources: z.record( z.string(), z.lazy(() => DeploymentConfigResources$inboundSchema), ), }); export function deploymentConfigDomainMetadataFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDomainMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDomainMetadata' from JSON`, ); } /** @internal */ export const DeploymentConfigDomainMetadataUnion$inboundSchema: z.ZodType< DeploymentConfigDomainMetadataUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigDomainMetadata$inboundSchema), z.any(), ]); export function deploymentConfigDomainMetadataUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDomainMetadataUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDomainMetadataUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigEnvironmentVariablesType$inboundSchema: z.ZodEnum< typeof DeploymentConfigEnvironmentVariablesType > = z.enum(DeploymentConfigEnvironmentVariablesType); /** @internal */ export const DeploymentConfigVariable$inboundSchema: z.ZodType< DeploymentConfigVariable, unknown > = z.object({ name: z.string(), targetResources: z.nullable(z.array(z.string())).optional(), type: DeploymentConfigEnvironmentVariablesType$inboundSchema, value: z.string(), }); export function deploymentConfigVariableFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigVariable$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigVariable' from JSON`, ); } /** @internal */ export const DeploymentConfigEnvironmentVariables$inboundSchema: z.ZodType< DeploymentConfigEnvironmentVariables, unknown > = z.object({ createdAt: z.string(), hash: z.string(), variables: z.array(z.lazy(() => DeploymentConfigVariable$inboundSchema)), }); export function deploymentConfigEnvironmentVariablesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigEnvironmentVariables$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigEnvironmentVariables' from JSON`, ); } /** @internal */ export const DeploymentConfigApiKeySecretRef$inboundSchema: z.ZodType< DeploymentConfigApiKeySecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigApiKeySecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigApiKeySecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigApiKeySecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigApiKey$inboundSchema: z.ZodType< DeploymentConfigApiKey, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigApiKeySecretRef$inboundSchema), }); export function deploymentConfigApiKeyFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigApiKey$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigApiKey' from JSON`, ); } /** @internal */ export const DeploymentConfigApiKeyUnion$inboundSchema: z.ZodType< DeploymentConfigApiKeyUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigApiKey$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigApiKeyUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigApiKeyUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigApiKeyUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeAi$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeAi > = z.enum(DeploymentConfigTypeAi); /** @internal */ export const DeploymentConfigExternalBindingsAi$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsAi, unknown > = z.object({ apiKey: z.nullable( z.union([ z.lazy(() => DeploymentConfigApiKey$inboundSchema), z.any(), z.string(), ]), ).optional(), provider: z.string(), type: DeploymentConfigTypeAi$inboundSchema, }); export function deploymentConfigExternalBindingsAiFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsAi$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsAi' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabaseSecretRef6$inboundSchema: z.ZodType< DeploymentConfigDatabaseSecretRef6, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigDatabaseSecretRef6FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabaseSecretRef6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabaseSecretRef6' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabase6$inboundSchema: z.ZodType< DeploymentConfigDatabase6, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigDatabaseSecretRef6$inboundSchema), }); export function deploymentConfigDatabase6FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabase6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabase6' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabaseUnion5$inboundSchema: z.ZodType< DeploymentConfigDatabaseUnion5, unknown > = z.union([ z.lazy(() => DeploymentConfigDatabase6$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigDatabaseUnion5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabaseUnion5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabaseUnion5' from JSON`, ); } /** @internal */ export const DeploymentConfigHostSecretRef4$inboundSchema: z.ZodType< DeploymentConfigHostSecretRef4, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigHostSecretRef4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigHostSecretRef4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigHostSecretRef4' from JSON`, ); } /** @internal */ export const DeploymentConfigHost4$inboundSchema: z.ZodType< DeploymentConfigHost4, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigHostSecretRef4$inboundSchema), }); export function deploymentConfigHost4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigHost4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigHost4' from JSON`, ); } /** @internal */ export const DeploymentConfigHostUnion4$inboundSchema: z.ZodType< DeploymentConfigHostUnion4, unknown > = z.union([ z.lazy(() => DeploymentConfigHost4$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigHostUnion4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigHostUnion4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigHostUnion4' from JSON`, ); } /** @internal */ export const DeploymentConfigPortSecretRef5$inboundSchema: z.ZodType< DeploymentConfigPortSecretRef5, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigPortSecretRef5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPortSecretRef5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPortSecretRef5' from JSON`, ); } /** @internal */ export const DeploymentConfigPort5$inboundSchema: z.ZodType< DeploymentConfigPort5, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigPortSecretRef5$inboundSchema), }); export function deploymentConfigPort5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPort5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPort5' from JSON`, ); } /** @internal */ export const DeploymentConfigPortUnion5$inboundSchema: z.ZodType< DeploymentConfigPortUnion5, unknown > = z.union([ z.lazy(() => DeploymentConfigPort5$inboundSchema), z.int(), z.any(), ]); export function deploymentConfigPortUnion5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPortUnion5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPortUnion5' from JSON`, ); } /** @internal */ export const DeploymentConfigUsernameSecretRef5$inboundSchema: z.ZodType< DeploymentConfigUsernameSecretRef5, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigUsernameSecretRef5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigUsernameSecretRef5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigUsernameSecretRef5' from JSON`, ); } /** @internal */ export const DeploymentConfigUsername5$inboundSchema: z.ZodType< DeploymentConfigUsername5, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigUsernameSecretRef5$inboundSchema), }); export function deploymentConfigUsername5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigUsername5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigUsername5' from JSON`, ); } /** @internal */ export const DeploymentConfigUsernameUnion5$inboundSchema: z.ZodType< DeploymentConfigUsernameUnion5, unknown > = z.union([ z.lazy(() => DeploymentConfigUsername5$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigUsernameUnion5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigUsernameUnion5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigUsernameUnion5' from JSON`, ); } /** @internal */ export const DeploymentConfigTypePostgres5$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypePostgres5 > = z.enum(DeploymentConfigTypePostgres5); /** @internal */ export const DeploymentConfigExternalBindingsLocalPostgres$inboundSchema: z.ZodType = z.object({ database: z.nullable( z.union([ z.lazy(() => DeploymentConfigDatabase6$inboundSchema), z.any(), z.string(), ]), ).optional(), host: z.nullable( z.union([ z.lazy(() => DeploymentConfigHost4$inboundSchema), z.any(), z.string(), ]), ).optional(), password: z.string(), port: z.nullable( z.union([ z.lazy(() => DeploymentConfigPort5$inboundSchema), z.int(), z.any(), ]), ).optional(), username: z.nullable( z.union([ z.lazy(() => DeploymentConfigUsername5$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("local-postgres"), type: DeploymentConfigTypePostgres5$inboundSchema, }); export function deploymentConfigExternalBindingsLocalPostgresFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigExternalBindingsLocalPostgres, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsLocalPostgres$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigExternalBindingsLocalPostgres' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabaseSecretRef5$inboundSchema: z.ZodType< DeploymentConfigDatabaseSecretRef5, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigDatabaseSecretRef5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabaseSecretRef5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabaseSecretRef5' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabase5$inboundSchema: z.ZodType< DeploymentConfigDatabase5, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigDatabaseSecretRef5$inboundSchema), }); export function deploymentConfigDatabase5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabase5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabase5' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabaseUnion4$inboundSchema: z.ZodType< DeploymentConfigDatabaseUnion4, unknown > = z.union([ z.lazy(() => DeploymentConfigDatabase5$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigDatabaseUnion4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabaseUnion4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabaseUnion4' from JSON`, ); } /** @internal */ export const DeploymentConfigHostSecretRef3$inboundSchema: z.ZodType< DeploymentConfigHostSecretRef3, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigHostSecretRef3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigHostSecretRef3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigHostSecretRef3' from JSON`, ); } /** @internal */ export const DeploymentConfigHost3$inboundSchema: z.ZodType< DeploymentConfigHost3, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigHostSecretRef3$inboundSchema), }); export function deploymentConfigHost3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigHost3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigHost3' from JSON`, ); } /** @internal */ export const DeploymentConfigHostUnion3$inboundSchema: z.ZodType< DeploymentConfigHostUnion3, unknown > = z.union([ z.lazy(() => DeploymentConfigHost3$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigHostUnion3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigHostUnion3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigHostUnion3' from JSON`, ); } /** @internal */ export const DeploymentConfigPortSecretRef4$inboundSchema: z.ZodType< DeploymentConfigPortSecretRef4, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigPortSecretRef4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPortSecretRef4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPortSecretRef4' from JSON`, ); } /** @internal */ export const DeploymentConfigPort4$inboundSchema: z.ZodType< DeploymentConfigPort4, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigPortSecretRef4$inboundSchema), }); export function deploymentConfigPort4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPort4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPort4' from JSON`, ); } /** @internal */ export const DeploymentConfigPortUnion4$inboundSchema: z.ZodType< DeploymentConfigPortUnion4, unknown > = z.union([ z.lazy(() => DeploymentConfigPort4$inboundSchema), z.int(), z.any(), ]); export function deploymentConfigPortUnion4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPortUnion4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPortUnion4' from JSON`, ); } /** @internal */ export const DeploymentConfigSslMode$inboundSchema: z.ZodEnum< typeof DeploymentConfigSslMode > = z.enum(DeploymentConfigSslMode); /** @internal */ export const DeploymentConfigUsernameSecretRef4$inboundSchema: z.ZodType< DeploymentConfigUsernameSecretRef4, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigUsernameSecretRef4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigUsernameSecretRef4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigUsernameSecretRef4' from JSON`, ); } /** @internal */ export const DeploymentConfigUsername4$inboundSchema: z.ZodType< DeploymentConfigUsername4, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigUsernameSecretRef4$inboundSchema), }); export function deploymentConfigUsername4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigUsername4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigUsername4' from JSON`, ); } /** @internal */ export const DeploymentConfigUsernameUnion4$inboundSchema: z.ZodType< DeploymentConfigUsernameUnion4, unknown > = z.union([ z.lazy(() => DeploymentConfigUsername4$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigUsernameUnion4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigUsernameUnion4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigUsernameUnion4' from JSON`, ); } /** @internal */ export const DeploymentConfigTypePostgres4$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypePostgres4 > = z.enum(DeploymentConfigTypePostgres4); /** @internal */ export const DeploymentConfigExternalBindingsExternal$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsExternal, unknown > = z.object({ database: z.nullable( z.union([ z.lazy(() => DeploymentConfigDatabase5$inboundSchema), z.any(), z.string(), ]), ).optional(), host: z.nullable( z.union([ z.lazy(() => DeploymentConfigHost3$inboundSchema), z.any(), z.string(), ]), ).optional(), password: z.string(), port: z.nullable( z.union([ z.lazy(() => DeploymentConfigPort4$inboundSchema), z.int(), z.any(), ]), ).optional(), sslMode: DeploymentConfigSslMode$inboundSchema.optional(), username: z.nullable( z.union([ z.lazy(() => DeploymentConfigUsername4$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("external"), type: DeploymentConfigTypePostgres4$inboundSchema, }); export function deploymentConfigExternalBindingsExternalFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigExternalBindingsExternal, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsExternal$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigExternalBindingsExternal' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabaseSecretRef4$inboundSchema: z.ZodType< DeploymentConfigDatabaseSecretRef4, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigDatabaseSecretRef4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabaseSecretRef4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabaseSecretRef4' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabase4$inboundSchema: z.ZodType< DeploymentConfigDatabase4, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigDatabaseSecretRef4$inboundSchema), }); export function deploymentConfigDatabase4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabase4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabase4' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabaseUnion3$inboundSchema: z.ZodType< DeploymentConfigDatabaseUnion3, unknown > = z.union([ z.lazy(() => DeploymentConfigDatabase4$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigDatabaseUnion3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabaseUnion3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabaseUnion3' from JSON`, ); } /** @internal */ export const DeploymentConfigHostSecretRef2$inboundSchema: z.ZodType< DeploymentConfigHostSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigHostSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigHostSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigHostSecretRef2' from JSON`, ); } /** @internal */ export const DeploymentConfigHost2$inboundSchema: z.ZodType< DeploymentConfigHost2, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigHostSecretRef2$inboundSchema), }); export function deploymentConfigHost2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigHost2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigHost2' from JSON`, ); } /** @internal */ export const DeploymentConfigHostUnion2$inboundSchema: z.ZodType< DeploymentConfigHostUnion2, unknown > = z.union([ z.lazy(() => DeploymentConfigHost2$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigHostUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigHostUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigHostUnion2' from JSON`, ); } /** @internal */ export const DeploymentConfigPasswordSecretUriSecretRef$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigPasswordSecretUriSecretRefFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigPasswordSecretUriSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigPasswordSecretUriSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigPasswordSecretUriSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigPasswordSecretUri$inboundSchema: z.ZodType< DeploymentConfigPasswordSecretUri, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigPasswordSecretUriSecretRef$inboundSchema ), }); export function deploymentConfigPasswordSecretUriFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPasswordSecretUri$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPasswordSecretUri' from JSON`, ); } /** @internal */ export const DeploymentConfigPasswordSecretUriUnion$inboundSchema: z.ZodType< DeploymentConfigPasswordSecretUriUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigPasswordSecretUri$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigPasswordSecretUriUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPasswordSecretUriUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPasswordSecretUriUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigPortSecretRef3$inboundSchema: z.ZodType< DeploymentConfigPortSecretRef3, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigPortSecretRef3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPortSecretRef3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPortSecretRef3' from JSON`, ); } /** @internal */ export const DeploymentConfigPort3$inboundSchema: z.ZodType< DeploymentConfigPort3, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigPortSecretRef3$inboundSchema), }); export function deploymentConfigPort3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPort3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPort3' from JSON`, ); } /** @internal */ export const DeploymentConfigPortUnion3$inboundSchema: z.ZodType< DeploymentConfigPortUnion3, unknown > = z.union([ z.lazy(() => DeploymentConfigPort3$inboundSchema), z.int(), z.any(), ]); export function deploymentConfigPortUnion3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPortUnion3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPortUnion3' from JSON`, ); } /** @internal */ export const DeploymentConfigUsernameSecretRef3$inboundSchema: z.ZodType< DeploymentConfigUsernameSecretRef3, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigUsernameSecretRef3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigUsernameSecretRef3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigUsernameSecretRef3' from JSON`, ); } /** @internal */ export const DeploymentConfigUsername3$inboundSchema: z.ZodType< DeploymentConfigUsername3, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigUsernameSecretRef3$inboundSchema), }); export function deploymentConfigUsername3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigUsername3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigUsername3' from JSON`, ); } /** @internal */ export const DeploymentConfigUsernameUnion3$inboundSchema: z.ZodType< DeploymentConfigUsernameUnion3, unknown > = z.union([ z.lazy(() => DeploymentConfigUsername3$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigUsernameUnion3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigUsernameUnion3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigUsernameUnion3' from JSON`, ); } /** @internal */ export const DeploymentConfigTypePostgres3$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypePostgres3 > = z.enum(DeploymentConfigTypePostgres3); /** @internal */ export const DeploymentConfigExternalBindingsFlexibleServer$inboundSchema: z.ZodType = z.object( { database: z.nullable(z.union([ z.lazy(() => DeploymentConfigDatabase4$inboundSchema), z.any(), z.string(), ])).optional(), host: z.nullable(z.union([ z.lazy(() => DeploymentConfigHost2$inboundSchema), z.any(), z.string(), ])).optional(), passwordSecretUri: z.nullable(z.union([ z.lazy(() => DeploymentConfigPasswordSecretUri$inboundSchema), z.any(), z.string(), ])).optional(), port: z.nullable(z.union([ z.lazy(() => DeploymentConfigPort3$inboundSchema), z.int(), z.any(), ])).optional(), username: z.nullable(z.union([ z.lazy(() => DeploymentConfigUsername3$inboundSchema), z.any(), z.string(), ])).optional(), service: z.literal("flexible-server"), type: DeploymentConfigTypePostgres3$inboundSchema, }, ); export function deploymentConfigExternalBindingsFlexibleServerFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigExternalBindingsFlexibleServer, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsFlexibleServer$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigExternalBindingsFlexibleServer' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabaseSecretRef3$inboundSchema: z.ZodType< DeploymentConfigDatabaseSecretRef3, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigDatabaseSecretRef3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabaseSecretRef3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabaseSecretRef3' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabase3$inboundSchema: z.ZodType< DeploymentConfigDatabase3, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigDatabaseSecretRef3$inboundSchema), }); export function deploymentConfigDatabase3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabase3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabase3' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabaseUnion2$inboundSchema: z.ZodType< DeploymentConfigDatabaseUnion2, unknown > = z.union([ z.lazy(() => DeploymentConfigDatabase3$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigDatabaseUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabaseUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabaseUnion2' from JSON`, ); } /** @internal */ export const DeploymentConfigHostSecretRef1$inboundSchema: z.ZodType< DeploymentConfigHostSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigHostSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigHostSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigHostSecretRef1' from JSON`, ); } /** @internal */ export const DeploymentConfigHost1$inboundSchema: z.ZodType< DeploymentConfigHost1, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigHostSecretRef1$inboundSchema), }); export function deploymentConfigHost1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigHost1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigHost1' from JSON`, ); } /** @internal */ export const DeploymentConfigHostUnion1$inboundSchema: z.ZodType< DeploymentConfigHostUnion1, unknown > = z.union([ z.lazy(() => DeploymentConfigHost1$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigHostUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigHostUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigHostUnion1' from JSON`, ); } /** @internal */ export const DeploymentConfigPasswordSecretNameSecretRef$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigPasswordSecretNameSecretRefFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigPasswordSecretNameSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigPasswordSecretNameSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigPasswordSecretNameSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigPasswordSecretName$inboundSchema: z.ZodType< DeploymentConfigPasswordSecretName, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigPasswordSecretNameSecretRef$inboundSchema ), }); export function deploymentConfigPasswordSecretNameFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPasswordSecretName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPasswordSecretName' from JSON`, ); } /** @internal */ export const DeploymentConfigPasswordSecretNameUnion$inboundSchema: z.ZodType< DeploymentConfigPasswordSecretNameUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigPasswordSecretName$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigPasswordSecretNameUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigPasswordSecretNameUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigPasswordSecretNameUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigPasswordSecretNameUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigPortSecretRef2$inboundSchema: z.ZodType< DeploymentConfigPortSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigPortSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPortSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPortSecretRef2' from JSON`, ); } /** @internal */ export const DeploymentConfigPort2$inboundSchema: z.ZodType< DeploymentConfigPort2, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigPortSecretRef2$inboundSchema), }); export function deploymentConfigPort2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPort2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPort2' from JSON`, ); } /** @internal */ export const DeploymentConfigPortUnion2$inboundSchema: z.ZodType< DeploymentConfigPortUnion2, unknown > = z.union([ z.lazy(() => DeploymentConfigPort2$inboundSchema), z.int(), z.any(), ]); export function deploymentConfigPortUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPortUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPortUnion2' from JSON`, ); } /** @internal */ export const DeploymentConfigServerCaCertificatesSecretRef$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigServerCaCertificatesSecretRefFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigServerCaCertificatesSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigServerCaCertificatesSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigServerCaCertificatesSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigServerCaCertificates$inboundSchema: z.ZodType< DeploymentConfigServerCaCertificates, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigServerCaCertificatesSecretRef$inboundSchema ), }); export function deploymentConfigServerCaCertificatesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigServerCaCertificates$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigServerCaCertificates' from JSON`, ); } /** @internal */ export const DeploymentConfigServerCaCertificatesUnion$inboundSchema: z.ZodType< DeploymentConfigServerCaCertificatesUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigServerCaCertificates$inboundSchema), z.array(z.string()), z.any(), ]); export function deploymentConfigServerCaCertificatesUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigServerCaCertificatesUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigServerCaCertificatesUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigServerCaCertificatesUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigUsernameSecretRef2$inboundSchema: z.ZodType< DeploymentConfigUsernameSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigUsernameSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigUsernameSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigUsernameSecretRef2' from JSON`, ); } /** @internal */ export const DeploymentConfigUsername2$inboundSchema: z.ZodType< DeploymentConfigUsername2, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigUsernameSecretRef2$inboundSchema), }); export function deploymentConfigUsername2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigUsername2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigUsername2' from JSON`, ); } /** @internal */ export const DeploymentConfigUsernameUnion2$inboundSchema: z.ZodType< DeploymentConfigUsernameUnion2, unknown > = z.union([ z.lazy(() => DeploymentConfigUsername2$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigUsernameUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigUsernameUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigUsernameUnion2' from JSON`, ); } /** @internal */ export const DeploymentConfigTypePostgres2$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypePostgres2 > = z.enum(DeploymentConfigTypePostgres2); /** @internal */ export const DeploymentConfigExternalBindingsCloudSQL$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsCloudSQL, unknown > = z.object({ database: z.nullable( z.union([ z.lazy(() => DeploymentConfigDatabase3$inboundSchema), z.any(), z.string(), ]), ).optional(), host: z.nullable( z.union([ z.lazy(() => DeploymentConfigHost1$inboundSchema), z.any(), z.string(), ]), ).optional(), passwordSecretName: z.nullable( z.union([ z.lazy(() => DeploymentConfigPasswordSecretName$inboundSchema), z.any(), z.string(), ]), ).optional(), port: z.nullable( z.union([ z.lazy(() => DeploymentConfigPort2$inboundSchema), z.int(), z.any(), ]), ).optional(), serverCaCertificates: z.nullable( z.union([ z.lazy(() => DeploymentConfigServerCaCertificates$inboundSchema), z.array(z.string()), z.any(), ]), ).optional(), username: z.nullable( z.union([ z.lazy(() => DeploymentConfigUsername2$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("cloud-sql"), type: DeploymentConfigTypePostgres2$inboundSchema, }); export function deploymentConfigExternalBindingsCloudSQLFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigExternalBindingsCloudSQL, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsCloudSQL$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigExternalBindingsCloudSQL' from JSON`, ); } /** @internal */ export const DeploymentConfigClusterEndpointSecretRef$inboundSchema: z.ZodType< DeploymentConfigClusterEndpointSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigClusterEndpointSecretRefFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigClusterEndpointSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigClusterEndpointSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigClusterEndpointSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigClusterEndpoint$inboundSchema: z.ZodType< DeploymentConfigClusterEndpoint, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigClusterEndpointSecretRef$inboundSchema ), }); export function deploymentConfigClusterEndpointFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigClusterEndpoint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigClusterEndpoint' from JSON`, ); } /** @internal */ export const DeploymentConfigClusterEndpointUnion$inboundSchema: z.ZodType< DeploymentConfigClusterEndpointUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigClusterEndpoint$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigClusterEndpointUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigClusterEndpointUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigClusterEndpointUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabaseSecretRef2$inboundSchema: z.ZodType< DeploymentConfigDatabaseSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigDatabaseSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabaseSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabaseSecretRef2' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabase2$inboundSchema: z.ZodType< DeploymentConfigDatabase2, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigDatabaseSecretRef2$inboundSchema), }); export function deploymentConfigDatabase2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabase2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabase2' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabaseUnion1$inboundSchema: z.ZodType< DeploymentConfigDatabaseUnion1, unknown > = z.union([ z.lazy(() => DeploymentConfigDatabase2$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigDatabaseUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabaseUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabaseUnion1' from JSON`, ); } /** @internal */ export const DeploymentConfigPasswordSecretArnSecretRef$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigPasswordSecretArnSecretRefFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigPasswordSecretArnSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigPasswordSecretArnSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigPasswordSecretArnSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigPasswordSecretArn$inboundSchema: z.ZodType< DeploymentConfigPasswordSecretArn, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigPasswordSecretArnSecretRef$inboundSchema ), }); export function deploymentConfigPasswordSecretArnFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPasswordSecretArn$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPasswordSecretArn' from JSON`, ); } /** @internal */ export const DeploymentConfigPasswordSecretArnUnion$inboundSchema: z.ZodType< DeploymentConfigPasswordSecretArnUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigPasswordSecretArn$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigPasswordSecretArnUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPasswordSecretArnUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPasswordSecretArnUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigPortSecretRef1$inboundSchema: z.ZodType< DeploymentConfigPortSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigPortSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPortSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPortSecretRef1' from JSON`, ); } /** @internal */ export const DeploymentConfigPort1$inboundSchema: z.ZodType< DeploymentConfigPort1, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigPortSecretRef1$inboundSchema), }); export function deploymentConfigPort1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPort1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPort1' from JSON`, ); } /** @internal */ export const DeploymentConfigPortUnion1$inboundSchema: z.ZodType< DeploymentConfigPortUnion1, unknown > = z.union([ z.lazy(() => DeploymentConfigPort1$inboundSchema), z.int(), z.any(), ]); export function deploymentConfigPortUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPortUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPortUnion1' from JSON`, ); } /** @internal */ export const DeploymentConfigUsernameSecretRef1$inboundSchema: z.ZodType< DeploymentConfigUsernameSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigUsernameSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigUsernameSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigUsernameSecretRef1' from JSON`, ); } /** @internal */ export const DeploymentConfigUsername1$inboundSchema: z.ZodType< DeploymentConfigUsername1, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigUsernameSecretRef1$inboundSchema), }); export function deploymentConfigUsername1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigUsername1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigUsername1' from JSON`, ); } /** @internal */ export const DeploymentConfigUsernameUnion1$inboundSchema: z.ZodType< DeploymentConfigUsernameUnion1, unknown > = z.union([ z.lazy(() => DeploymentConfigUsername1$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigUsernameUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigUsernameUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigUsernameUnion1' from JSON`, ); } /** @internal */ export const DeploymentConfigTypePostgres1$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypePostgres1 > = z.enum(DeploymentConfigTypePostgres1); /** @internal */ export const DeploymentConfigExternalBindingsAurora$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsAurora, unknown > = z.object({ clusterEndpoint: z.nullable( z.union([ z.lazy(() => DeploymentConfigClusterEndpoint$inboundSchema), z.any(), z.string(), ]), ).optional(), database: z.nullable( z.union([ z.lazy(() => DeploymentConfigDatabase2$inboundSchema), z.any(), z.string(), ]), ).optional(), passwordSecretArn: z.nullable( z.union([ z.lazy(() => DeploymentConfigPasswordSecretArn$inboundSchema), z.any(), z.string(), ]), ).optional(), port: z.nullable( z.union([ z.lazy(() => DeploymentConfigPort1$inboundSchema), z.int(), z.any(), ]), ).optional(), username: z.nullable( z.union([ z.lazy(() => DeploymentConfigUsername1$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("aurora"), type: DeploymentConfigTypePostgres1$inboundSchema, }); export function deploymentConfigExternalBindingsAuroraFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsAurora$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsAurora' from JSON`, ); } /** @internal */ export const DeploymentConfigExternalBindingsUnion6$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsUnion6, unknown > = z.union([ z.lazy(() => DeploymentConfigExternalBindingsAurora$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsCloudSQL$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsFlexibleServer$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsExternal$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsLocalPostgres$inboundSchema), ]); export function deploymentConfigExternalBindingsUnion6FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsUnion6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsUnion6' from JSON`, ); } /** @internal */ export const DeploymentConfigDefaultDomainSecretRef$inboundSchema: z.ZodType< DeploymentConfigDefaultDomainSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigDefaultDomainSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDefaultDomainSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDefaultDomainSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigDefaultDomain$inboundSchema: z.ZodType< DeploymentConfigDefaultDomain, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigDefaultDomainSecretRef$inboundSchema), }); export function deploymentConfigDefaultDomainFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDefaultDomain$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDefaultDomain' from JSON`, ); } /** @internal */ export const DeploymentConfigDefaultDomainUnion$inboundSchema: z.ZodType< DeploymentConfigDefaultDomainUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigDefaultDomain$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigDefaultDomainUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDefaultDomainUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDefaultDomainUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigEnvironmentNameSecretRef$inboundSchema: z.ZodType< DeploymentConfigEnvironmentNameSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigEnvironmentNameSecretRefFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigEnvironmentNameSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigEnvironmentNameSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigEnvironmentNameSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigEnvironmentName$inboundSchema: z.ZodType< DeploymentConfigEnvironmentName, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigEnvironmentNameSecretRef$inboundSchema ), }); export function deploymentConfigEnvironmentNameFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigEnvironmentName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigEnvironmentName' from JSON`, ); } /** @internal */ export const DeploymentConfigEnvironmentNameUnion$inboundSchema: z.ZodType< DeploymentConfigEnvironmentNameUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigEnvironmentName$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigEnvironmentNameUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigEnvironmentNameUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigEnvironmentNameUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigResourceGroupNameSecretRef3$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigResourceGroupNameSecretRef3FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigResourceGroupNameSecretRef3, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigResourceGroupNameSecretRef3$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigResourceGroupNameSecretRef3' from JSON`, ); } /** @internal */ export const DeploymentConfigResourceGroupName3$inboundSchema: z.ZodType< DeploymentConfigResourceGroupName3, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigResourceGroupNameSecretRef3$inboundSchema ), }); export function deploymentConfigResourceGroupName3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigResourceGroupName3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigResourceGroupName3' from JSON`, ); } /** @internal */ export const DeploymentConfigResourceGroupNameUnion3$inboundSchema: z.ZodType< DeploymentConfigResourceGroupNameUnion3, unknown > = z.union([ z.lazy(() => DeploymentConfigResourceGroupName3$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigResourceGroupNameUnion3FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigResourceGroupNameUnion3, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigResourceGroupNameUnion3$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigResourceGroupNameUnion3' from JSON`, ); } /** @internal */ export const DeploymentConfigResourceIdSecretRef$inboundSchema: z.ZodType< DeploymentConfigResourceIdSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigResourceIdSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigResourceIdSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigResourceIdSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigResourceId$inboundSchema: z.ZodType< DeploymentConfigResourceId, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigResourceIdSecretRef$inboundSchema), }); export function deploymentConfigResourceIdFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigResourceId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigResourceId' from JSON`, ); } /** @internal */ export const DeploymentConfigResourceIdUnion$inboundSchema: z.ZodType< DeploymentConfigResourceIdUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigResourceId$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigResourceIdUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigResourceIdUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigResourceIdUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigStaticIpSecretRef$inboundSchema: z.ZodType< DeploymentConfigStaticIpSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigStaticIpSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigStaticIpSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigStaticIpSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigStaticIp$inboundSchema: z.ZodType< DeploymentConfigStaticIp, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigStaticIpSecretRef$inboundSchema), }); export function deploymentConfigStaticIpFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigStaticIp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigStaticIp' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeContainerAppsEnvironment$inboundSchema: z.ZodEnum = z.enum( DeploymentConfigTypeContainerAppsEnvironment, ); /** @internal */ export const DeploymentConfigExternalBindingsContainerAppsEnvironment$inboundSchema: z.ZodType = z.object({ defaultDomain: z.nullable( z.union([ z.lazy(() => DeploymentConfigDefaultDomain$inboundSchema), z.any(), z.string(), ]), ).optional(), environmentName: z.nullable( z.union([ z.lazy(() => DeploymentConfigEnvironmentName$inboundSchema), z.any(), z.string(), ]), ).optional(), resourceGroupName: z.nullable( z.union([ z.lazy(() => DeploymentConfigResourceGroupName3$inboundSchema), z.any(), z.string(), ]), ).optional(), resourceId: z.nullable( z.union([ z.lazy(() => DeploymentConfigResourceId$inboundSchema), z.any(), z.string(), ]), ).optional(), staticIp: z.nullable(z.any()).optional(), type: DeploymentConfigTypeContainerAppsEnvironment$inboundSchema, }); export function deploymentConfigExternalBindingsContainerAppsEnvironmentFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigExternalBindingsContainerAppsEnvironment, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsContainerAppsEnvironment$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsContainerAppsEnvironment' from JSON`, ); } /** @internal */ export const DeploymentConfigDataDirSecretRef3$inboundSchema: z.ZodType< DeploymentConfigDataDirSecretRef3, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigDataDirSecretRef3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDataDirSecretRef3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDataDirSecretRef3' from JSON`, ); } /** @internal */ export const DeploymentConfigDataDir3$inboundSchema: z.ZodType< DeploymentConfigDataDir3, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigDataDirSecretRef3$inboundSchema), }); export function deploymentConfigDataDir3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDataDir3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDataDir3' from JSON`, ); } /** @internal */ export const DeploymentConfigDataDirUnion2$inboundSchema: z.ZodType< DeploymentConfigDataDirUnion2, unknown > = z.union([ z.lazy(() => DeploymentConfigDataDir3$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigDataDirUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDataDirUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDataDirUnion2' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeVault5$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeVault5 > = z.enum(DeploymentConfigTypeVault5); /** @internal */ export const DeploymentConfigExternalBindingsLocalVault$inboundSchema: z.ZodType = z.object({ dataDir: z.nullable( z.union([ z.lazy(() => DeploymentConfigDataDir3$inboundSchema), z.any(), z.string(), ]), ).optional(), vaultName: z.string(), service: z.literal("local-vault"), type: DeploymentConfigTypeVault5$inboundSchema, }); export function deploymentConfigExternalBindingsLocalVaultFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigExternalBindingsLocalVault, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsLocalVault$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigExternalBindingsLocalVault' from JSON`, ); } /** @internal */ export const DeploymentConfigNamespaceSecretRef2$inboundSchema: z.ZodType< DeploymentConfigNamespaceSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigNamespaceSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigNamespaceSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigNamespaceSecretRef2' from JSON`, ); } /** @internal */ export const DeploymentConfigNamespace2$inboundSchema: z.ZodType< DeploymentConfigNamespace2, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigNamespaceSecretRef2$inboundSchema), }); export function deploymentConfigNamespace2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigNamespace2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigNamespace2' from JSON`, ); } /** @internal */ export const DeploymentConfigNamespaceUnion2$inboundSchema: z.ZodType< DeploymentConfigNamespaceUnion2, unknown > = z.union([ z.lazy(() => DeploymentConfigNamespace2$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigNamespaceUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigNamespaceUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigNamespaceUnion2' from JSON`, ); } /** @internal */ export const DeploymentConfigVaultPrefixSecretRef3$inboundSchema: z.ZodType< DeploymentConfigVaultPrefixSecretRef3, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigVaultPrefixSecretRef3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigVaultPrefixSecretRef3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigVaultPrefixSecretRef3' from JSON`, ); } /** @internal */ export const DeploymentConfigVaultPrefix3$inboundSchema: z.ZodType< DeploymentConfigVaultPrefix3, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigVaultPrefixSecretRef3$inboundSchema), }); export function deploymentConfigVaultPrefix3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigVaultPrefix3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigVaultPrefix3' from JSON`, ); } /** @internal */ export const DeploymentConfigVaultPrefixUnion3$inboundSchema: z.ZodType< DeploymentConfigVaultPrefixUnion3, unknown > = z.union([ z.lazy(() => DeploymentConfigVaultPrefix3$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigVaultPrefixUnion3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigVaultPrefixUnion3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigVaultPrefixUnion3' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeVault4$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeVault4 > = z.enum(DeploymentConfigTypeVault4); /** @internal */ export const DeploymentConfigExternalBindingsKubernetesSecret$inboundSchema: z.ZodType = z .object({ namespace: z.nullable( z.union([ z.lazy(() => DeploymentConfigNamespace2$inboundSchema), z.any(), z.string(), ]), ).optional(), vaultPrefix: z.nullable( z.union([ z.lazy(() => DeploymentConfigVaultPrefix3$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("kubernetes-secret"), type: DeploymentConfigTypeVault4$inboundSchema, }); export function deploymentConfigExternalBindingsKubernetesSecretFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigExternalBindingsKubernetesSecret, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsKubernetesSecret$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigExternalBindingsKubernetesSecret' from JSON`, ); } /** @internal */ export const DeploymentConfigVaultNameSecretRef$inboundSchema: z.ZodType< DeploymentConfigVaultNameSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigVaultNameSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigVaultNameSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigVaultNameSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigVaultName$inboundSchema: z.ZodType< DeploymentConfigVaultName, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigVaultNameSecretRef$inboundSchema), }); export function deploymentConfigVaultNameFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigVaultName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigVaultName' from JSON`, ); } /** @internal */ export const DeploymentConfigVaultNameUnion$inboundSchema: z.ZodType< DeploymentConfigVaultNameUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigVaultName$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigVaultNameUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigVaultNameUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigVaultNameUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeVault3$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeVault3 > = z.enum(DeploymentConfigTypeVault3); /** @internal */ export const DeploymentConfigExternalBindingsKeyVault$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsKeyVault, unknown > = z.object({ vaultName: z.nullable( z.union([ z.lazy(() => DeploymentConfigVaultName$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("key-vault"), type: DeploymentConfigTypeVault3$inboundSchema, }); export function deploymentConfigExternalBindingsKeyVaultFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigExternalBindingsKeyVault, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsKeyVault$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigExternalBindingsKeyVault' from JSON`, ); } /** @internal */ export const DeploymentConfigVaultPrefixSecretRef2$inboundSchema: z.ZodType< DeploymentConfigVaultPrefixSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigVaultPrefixSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigVaultPrefixSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigVaultPrefixSecretRef2' from JSON`, ); } /** @internal */ export const DeploymentConfigVaultPrefix2$inboundSchema: z.ZodType< DeploymentConfigVaultPrefix2, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigVaultPrefixSecretRef2$inboundSchema), }); export function deploymentConfigVaultPrefix2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigVaultPrefix2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigVaultPrefix2' from JSON`, ); } /** @internal */ export const DeploymentConfigVaultPrefixUnion2$inboundSchema: z.ZodType< DeploymentConfigVaultPrefixUnion2, unknown > = z.union([ z.lazy(() => DeploymentConfigVaultPrefix2$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigVaultPrefixUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigVaultPrefixUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigVaultPrefixUnion2' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeVault2$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeVault2 > = z.enum(DeploymentConfigTypeVault2); /** @internal */ export const DeploymentConfigExternalBindingsSecretManager$inboundSchema: z.ZodType = z.object({ vaultPrefix: z.nullable( z.union([ z.lazy(() => DeploymentConfigVaultPrefix2$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("secret-manager"), type: DeploymentConfigTypeVault2$inboundSchema, }); export function deploymentConfigExternalBindingsSecretManagerFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigExternalBindingsSecretManager, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsSecretManager$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigExternalBindingsSecretManager' from JSON`, ); } /** @internal */ export const DeploymentConfigVaultPrefixSecretRef1$inboundSchema: z.ZodType< DeploymentConfigVaultPrefixSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigVaultPrefixSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigVaultPrefixSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigVaultPrefixSecretRef1' from JSON`, ); } /** @internal */ export const DeploymentConfigVaultPrefix1$inboundSchema: z.ZodType< DeploymentConfigVaultPrefix1, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigVaultPrefixSecretRef1$inboundSchema), }); export function deploymentConfigVaultPrefix1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigVaultPrefix1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigVaultPrefix1' from JSON`, ); } /** @internal */ export const DeploymentConfigVaultPrefixUnion1$inboundSchema: z.ZodType< DeploymentConfigVaultPrefixUnion1, unknown > = z.union([ z.lazy(() => DeploymentConfigVaultPrefix1$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigVaultPrefixUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigVaultPrefixUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigVaultPrefixUnion1' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeVault1$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeVault1 > = z.enum(DeploymentConfigTypeVault1); /** @internal */ export const DeploymentConfigExternalBindingsParameterStore$inboundSchema: z.ZodType = z.object( { vaultPrefix: z.nullable(z.union([ z.lazy(() => DeploymentConfigVaultPrefix1$inboundSchema), z.any(), z.string(), ])).optional(), service: z.literal("parameter-store"), type: DeploymentConfigTypeVault1$inboundSchema, }, ); export function deploymentConfigExternalBindingsParameterStoreFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigExternalBindingsParameterStore, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsParameterStore$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigExternalBindingsParameterStore' from JSON`, ); } /** @internal */ export const DeploymentConfigExternalBindingsUnion5$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsUnion5, unknown > = z.union([ z.lazy(() => DeploymentConfigExternalBindingsParameterStore$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsSecretManager$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsKeyVault$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsKubernetesSecret$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsLocalVault$inboundSchema), ]); export function deploymentConfigExternalBindingsUnion5FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsUnion5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsUnion5' from JSON`, ); } /** @internal */ export const DeploymentConfigDataDirSecretRef2$inboundSchema: z.ZodType< DeploymentConfigDataDirSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigDataDirSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDataDirSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDataDirSecretRef2' from JSON`, ); } /** @internal */ export const DeploymentConfigDataDir2$inboundSchema: z.ZodType< DeploymentConfigDataDir2, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigDataDirSecretRef2$inboundSchema), }); export function deploymentConfigDataDir2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDataDir2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDataDir2' from JSON`, ); } /** @internal */ export const DeploymentConfigRegistryUrlSecretRef$inboundSchema: z.ZodType< DeploymentConfigRegistryUrlSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigRegistryUrlSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRegistryUrlSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRegistryUrlSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigRegistryUrl$inboundSchema: z.ZodType< DeploymentConfigRegistryUrl, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigRegistryUrlSecretRef$inboundSchema), }); export function deploymentConfigRegistryUrlFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRegistryUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRegistryUrl' from JSON`, ); } /** @internal */ export const DeploymentConfigRegistryUrlUnion$inboundSchema: z.ZodType< DeploymentConfigRegistryUrlUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigRegistryUrl$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigRegistryUrlUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRegistryUrlUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRegistryUrlUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeArtifactRegistry4$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeArtifactRegistry4 > = z.enum(DeploymentConfigTypeArtifactRegistry4); /** @internal */ export const DeploymentConfigExternalBindingsLocal$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsLocal, unknown > = z.object({ dataDir: z.nullable(z.any()).optional(), registryUrl: z.nullable( z.union([ z.lazy(() => DeploymentConfigRegistryUrl$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("local"), type: DeploymentConfigTypeArtifactRegistry4$inboundSchema, }); export function deploymentConfigExternalBindingsLocalFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsLocal$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsLocal' from JSON`, ); } /** @internal */ export const DeploymentConfigPullServiceAccountEmailSecretRef$inboundSchema: z.ZodType = z .object({ key: z.string(), name: z.string(), }); export function deploymentConfigPullServiceAccountEmailSecretRefFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigPullServiceAccountEmailSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigPullServiceAccountEmailSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigPullServiceAccountEmailSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigPullServiceAccountEmail$inboundSchema: z.ZodType< DeploymentConfigPullServiceAccountEmail, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigPullServiceAccountEmailSecretRef$inboundSchema ), }); export function deploymentConfigPullServiceAccountEmailFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigPullServiceAccountEmail, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigPullServiceAccountEmail$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigPullServiceAccountEmail' from JSON`, ); } /** @internal */ export const DeploymentConfigPushServiceAccountEmailSecretRef$inboundSchema: z.ZodType = z .object({ key: z.string(), name: z.string(), }); export function deploymentConfigPushServiceAccountEmailSecretRefFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigPushServiceAccountEmailSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigPushServiceAccountEmailSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigPushServiceAccountEmailSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigPushServiceAccountEmail$inboundSchema: z.ZodType< DeploymentConfigPushServiceAccountEmail, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigPushServiceAccountEmailSecretRef$inboundSchema ), }); export function deploymentConfigPushServiceAccountEmailFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigPushServiceAccountEmail, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigPushServiceAccountEmail$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigPushServiceAccountEmail' from JSON`, ); } /** @internal */ export const DeploymentConfigRepositoryNameSecretRef$inboundSchema: z.ZodType< DeploymentConfigRepositoryNameSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigRepositoryNameSecretRefFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigRepositoryNameSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigRepositoryNameSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigRepositoryNameSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigRepositoryName$inboundSchema: z.ZodType< DeploymentConfigRepositoryName, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigRepositoryNameSecretRef$inboundSchema ), }); export function deploymentConfigRepositoryNameFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRepositoryName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRepositoryName' from JSON`, ); } /** @internal */ export const DeploymentConfigRepositoryNameUnion$inboundSchema: z.ZodType< DeploymentConfigRepositoryNameUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigRepositoryName$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigRepositoryNameUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRepositoryNameUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRepositoryNameUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeArtifactRegistry3$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeArtifactRegistry3 > = z.enum(DeploymentConfigTypeArtifactRegistry3); /** @internal */ export const DeploymentConfigExternalBindingsGar$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsGar, unknown > = z.object({ pullServiceAccountEmail: z.nullable(z.any()).optional(), pushServiceAccountEmail: z.nullable(z.any()).optional(), repositoryName: z.nullable( z.union([ z.lazy(() => DeploymentConfigRepositoryName$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("gar"), type: DeploymentConfigTypeArtifactRegistry3$inboundSchema, }); export function deploymentConfigExternalBindingsGarFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsGar$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsGar' from JSON`, ); } /** @internal */ export const DeploymentConfigRegistryNameSecretRef$inboundSchema: z.ZodType< DeploymentConfigRegistryNameSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigRegistryNameSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRegistryNameSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRegistryNameSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigRegistryName$inboundSchema: z.ZodType< DeploymentConfigRegistryName, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigRegistryNameSecretRef$inboundSchema), }); export function deploymentConfigRegistryNameFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRegistryName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRegistryName' from JSON`, ); } /** @internal */ export const DeploymentConfigRegistryNameUnion$inboundSchema: z.ZodType< DeploymentConfigRegistryNameUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigRegistryName$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigRegistryNameUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRegistryNameUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRegistryNameUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigRepositoryPrefixSecretRef2$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigRepositoryPrefixSecretRef2FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigRepositoryPrefixSecretRef2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigRepositoryPrefixSecretRef2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigRepositoryPrefixSecretRef2' from JSON`, ); } /** @internal */ export const DeploymentConfigRepositoryPrefix2$inboundSchema: z.ZodType< DeploymentConfigRepositoryPrefix2, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigRepositoryPrefixSecretRef2$inboundSchema ), }); export function deploymentConfigRepositoryPrefix2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRepositoryPrefix2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRepositoryPrefix2' from JSON`, ); } /** @internal */ export const DeploymentConfigResourceGroupNameSecretRef2$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigResourceGroupNameSecretRef2FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigResourceGroupNameSecretRef2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigResourceGroupNameSecretRef2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigResourceGroupNameSecretRef2' from JSON`, ); } /** @internal */ export const DeploymentConfigResourceGroupName2$inboundSchema: z.ZodType< DeploymentConfigResourceGroupName2, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigResourceGroupNameSecretRef2$inboundSchema ), }); export function deploymentConfigResourceGroupName2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigResourceGroupName2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigResourceGroupName2' from JSON`, ); } /** @internal */ export const DeploymentConfigResourceGroupNameUnion2$inboundSchema: z.ZodType< DeploymentConfigResourceGroupNameUnion2, unknown > = z.union([ z.lazy(() => DeploymentConfigResourceGroupName2$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigResourceGroupNameUnion2FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigResourceGroupNameUnion2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigResourceGroupNameUnion2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigResourceGroupNameUnion2' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeArtifactRegistry2$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeArtifactRegistry2 > = z.enum(DeploymentConfigTypeArtifactRegistry2); /** @internal */ export const DeploymentConfigExternalBindingsAcr$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsAcr, unknown > = z.object({ registryName: z.nullable( z.union([ z.lazy(() => DeploymentConfigRegistryName$inboundSchema), z.any(), z.string(), ]), ).optional(), repositoryPrefix: z.nullable(z.any()).optional(), resourceGroupName: z.nullable( z.union([ z.lazy(() => DeploymentConfigResourceGroupName2$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("acr"), type: DeploymentConfigTypeArtifactRegistry2$inboundSchema, }); export function deploymentConfigExternalBindingsAcrFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsAcr$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsAcr' from JSON`, ); } /** @internal */ export const DeploymentConfigPullRoleArnSecretRef$inboundSchema: z.ZodType< DeploymentConfigPullRoleArnSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigPullRoleArnSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPullRoleArnSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPullRoleArnSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigPullRoleArn$inboundSchema: z.ZodType< DeploymentConfigPullRoleArn, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigPullRoleArnSecretRef$inboundSchema), }); export function deploymentConfigPullRoleArnFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPullRoleArn$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPullRoleArn' from JSON`, ); } /** @internal */ export const DeploymentConfigPushRoleArnSecretRef$inboundSchema: z.ZodType< DeploymentConfigPushRoleArnSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigPushRoleArnSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPushRoleArnSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPushRoleArnSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigPushRoleArn$inboundSchema: z.ZodType< DeploymentConfigPushRoleArn, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigPushRoleArnSecretRef$inboundSchema), }); export function deploymentConfigPushRoleArnFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPushRoleArn$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPushRoleArn' from JSON`, ); } /** @internal */ export const DeploymentConfigRepositoryPrefixSecretRef1$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigRepositoryPrefixSecretRef1FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigRepositoryPrefixSecretRef1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigRepositoryPrefixSecretRef1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigRepositoryPrefixSecretRef1' from JSON`, ); } /** @internal */ export const DeploymentConfigRepositoryPrefix1$inboundSchema: z.ZodType< DeploymentConfigRepositoryPrefix1, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigRepositoryPrefixSecretRef1$inboundSchema ), }); export function deploymentConfigRepositoryPrefix1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRepositoryPrefix1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRepositoryPrefix1' from JSON`, ); } /** @internal */ export const DeploymentConfigRepositoryPrefixUnion$inboundSchema: z.ZodType< DeploymentConfigRepositoryPrefixUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigRepositoryPrefix1$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigRepositoryPrefixUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRepositoryPrefixUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRepositoryPrefixUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeArtifactRegistry1$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeArtifactRegistry1 > = z.enum(DeploymentConfigTypeArtifactRegistry1); /** @internal */ export const DeploymentConfigExternalBindingsEcr$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsEcr, unknown > = z.object({ pullRoleArn: z.nullable(z.any()).optional(), pushRoleArn: z.nullable(z.any()).optional(), repositoryPrefix: z.nullable( z.union([ z.lazy(() => DeploymentConfigRepositoryPrefix1$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("ecr"), type: DeploymentConfigTypeArtifactRegistry1$inboundSchema, }); export function deploymentConfigExternalBindingsEcrFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsEcr$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsEcr' from JSON`, ); } /** @internal */ export const DeploymentConfigExternalBindingsUnion4$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsUnion4, unknown > = z.union([ z.lazy(() => DeploymentConfigExternalBindingsEcr$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsAcr$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsGar$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsLocal$inboundSchema), ]); export function deploymentConfigExternalBindingsUnion4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsUnion4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsUnion4' from JSON`, ); } /** @internal */ export const DeploymentConfigDataDirSecretRef1$inboundSchema: z.ZodType< DeploymentConfigDataDirSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigDataDirSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDataDirSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDataDirSecretRef1' from JSON`, ); } /** @internal */ export const DeploymentConfigDataDir1$inboundSchema: z.ZodType< DeploymentConfigDataDir1, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigDataDirSecretRef1$inboundSchema), }); export function deploymentConfigDataDir1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDataDir1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDataDir1' from JSON`, ); } /** @internal */ export const DeploymentConfigDataDirUnion1$inboundSchema: z.ZodType< DeploymentConfigDataDirUnion1, unknown > = z.union([ z.lazy(() => DeploymentConfigDataDir1$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigDataDirUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDataDirUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDataDirUnion1' from JSON`, ); } /** @internal */ export const DeploymentConfigKeyPrefixSecretRef2$inboundSchema: z.ZodType< DeploymentConfigKeyPrefixSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigKeyPrefixSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigKeyPrefixSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigKeyPrefixSecretRef2' from JSON`, ); } /** @internal */ export const DeploymentConfigKeyPrefix2$inboundSchema: z.ZodType< DeploymentConfigKeyPrefix2, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigKeyPrefixSecretRef2$inboundSchema), }); export function deploymentConfigKeyPrefix2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigKeyPrefix2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigKeyPrefix2' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeKv5$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeKv5 > = z.enum(DeploymentConfigTypeKv5); /** @internal */ export const DeploymentConfigExternalBindingsLocalKv$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsLocalKv, unknown > = z.object({ dataDir: z.nullable( z.union([ z.lazy(() => DeploymentConfigDataDir1$inboundSchema), z.any(), z.string(), ]), ).optional(), keyPrefix: z.nullable(z.any()).optional(), service: z.literal("local-kv"), type: DeploymentConfigTypeKv5$inboundSchema, }); export function deploymentConfigExternalBindingsLocalKvFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigExternalBindingsLocalKv, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsLocalKv$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigExternalBindingsLocalKv' from JSON`, ); } /** @internal */ export const DeploymentConfigConnectionUrlSecretRef$inboundSchema: z.ZodType< DeploymentConfigConnectionUrlSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigConnectionUrlSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigConnectionUrlSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigConnectionUrlSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigConnectionUrl$inboundSchema: z.ZodType< DeploymentConfigConnectionUrl, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigConnectionUrlSecretRef$inboundSchema), }); export function deploymentConfigConnectionUrlFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigConnectionUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigConnectionUrl' from JSON`, ); } /** @internal */ export const DeploymentConfigConnectionUrlUnion$inboundSchema: z.ZodType< DeploymentConfigConnectionUrlUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigConnectionUrl$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigConnectionUrlUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigConnectionUrlUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigConnectionUrlUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabaseSecretRef1$inboundSchema: z.ZodType< DeploymentConfigDatabaseSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigDatabaseSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabaseSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabaseSecretRef1' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabase1$inboundSchema: z.ZodType< DeploymentConfigDatabase1, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigDatabaseSecretRef1$inboundSchema), }); export function deploymentConfigDatabase1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabase1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabase1' from JSON`, ); } /** @internal */ export const DeploymentConfigKeyPrefixSecretRef1$inboundSchema: z.ZodType< DeploymentConfigKeyPrefixSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigKeyPrefixSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigKeyPrefixSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigKeyPrefixSecretRef1' from JSON`, ); } /** @internal */ export const DeploymentConfigKeyPrefix1$inboundSchema: z.ZodType< DeploymentConfigKeyPrefix1, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigKeyPrefixSecretRef1$inboundSchema), }); export function deploymentConfigKeyPrefix1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigKeyPrefix1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigKeyPrefix1' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeKv4$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeKv4 > = z.enum(DeploymentConfigTypeKv4); /** @internal */ export const DeploymentConfigExternalBindingsRedis$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsRedis, unknown > = z.object({ connectionUrl: z.nullable( z.union([ z.lazy(() => DeploymentConfigConnectionUrl$inboundSchema), z.any(), z.string(), ]), ).optional(), database: z.nullable(z.any()).optional(), keyPrefix: z.nullable(z.any()).optional(), service: z.literal("redis"), type: DeploymentConfigTypeKv4$inboundSchema, }); export function deploymentConfigExternalBindingsRedisFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsRedis$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsRedis' from JSON`, ); } /** @internal */ export const DeploymentConfigAccountNameSecretRef2$inboundSchema: z.ZodType< DeploymentConfigAccountNameSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigAccountNameSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigAccountNameSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigAccountNameSecretRef2' from JSON`, ); } /** @internal */ export const DeploymentConfigAccountName2$inboundSchema: z.ZodType< DeploymentConfigAccountName2, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigAccountNameSecretRef2$inboundSchema), }); export function deploymentConfigAccountName2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigAccountName2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigAccountName2' from JSON`, ); } /** @internal */ export const DeploymentConfigAccountNameUnion2$inboundSchema: z.ZodType< DeploymentConfigAccountNameUnion2, unknown > = z.union([ z.lazy(() => DeploymentConfigAccountName2$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigAccountNameUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigAccountNameUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigAccountNameUnion2' from JSON`, ); } /** @internal */ export const DeploymentConfigResourceGroupNameSecretRef1$inboundSchema: z.ZodType = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigResourceGroupNameSecretRef1FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigResourceGroupNameSecretRef1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigResourceGroupNameSecretRef1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigResourceGroupNameSecretRef1' from JSON`, ); } /** @internal */ export const DeploymentConfigResourceGroupName1$inboundSchema: z.ZodType< DeploymentConfigResourceGroupName1, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigResourceGroupNameSecretRef1$inboundSchema ), }); export function deploymentConfigResourceGroupName1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigResourceGroupName1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigResourceGroupName1' from JSON`, ); } /** @internal */ export const DeploymentConfigResourceGroupNameUnion1$inboundSchema: z.ZodType< DeploymentConfigResourceGroupNameUnion1, unknown > = z.union([ z.lazy(() => DeploymentConfigResourceGroupName1$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigResourceGroupNameUnion1FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigResourceGroupNameUnion1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigResourceGroupNameUnion1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigResourceGroupNameUnion1' from JSON`, ); } /** @internal */ export const DeploymentConfigTableNameSecretRef2$inboundSchema: z.ZodType< DeploymentConfigTableNameSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigTableNameSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigTableNameSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigTableNameSecretRef2' from JSON`, ); } /** @internal */ export const DeploymentConfigTableName2$inboundSchema: z.ZodType< DeploymentConfigTableName2, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigTableNameSecretRef2$inboundSchema), }); export function deploymentConfigTableName2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigTableName2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigTableName2' from JSON`, ); } /** @internal */ export const DeploymentConfigTableNameUnion2$inboundSchema: z.ZodType< DeploymentConfigTableNameUnion2, unknown > = z.union([ z.lazy(() => DeploymentConfigTableName2$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigTableNameUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigTableNameUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigTableNameUnion2' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeKv3$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeKv3 > = z.enum(DeploymentConfigTypeKv3); /** @internal */ export const DeploymentConfigExternalBindingsTablestorage$inboundSchema: z.ZodType = z.object({ accountName: z.nullable( z.union([ z.lazy(() => DeploymentConfigAccountName2$inboundSchema), z.any(), z.string(), ]), ).optional(), resourceGroupName: z.nullable( z.union([ z.lazy(() => DeploymentConfigResourceGroupName1$inboundSchema), z.any(), z.string(), ]), ).optional(), tableName: z.nullable( z.union([ z.lazy(() => DeploymentConfigTableName2$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("tablestorage"), type: DeploymentConfigTypeKv3$inboundSchema, }); export function deploymentConfigExternalBindingsTablestorageFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigExternalBindingsTablestorage, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsTablestorage$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigExternalBindingsTablestorage' from JSON`, ); } /** @internal */ export const DeploymentConfigCollectionNameSecretRef$inboundSchema: z.ZodType< DeploymentConfigCollectionNameSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigCollectionNameSecretRefFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigCollectionNameSecretRef, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigCollectionNameSecretRef$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigCollectionNameSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigCollectionName$inboundSchema: z.ZodType< DeploymentConfigCollectionName, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigCollectionNameSecretRef$inboundSchema ), }); export function deploymentConfigCollectionNameFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigCollectionName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigCollectionName' from JSON`, ); } /** @internal */ export const DeploymentConfigCollectionNameUnion$inboundSchema: z.ZodType< DeploymentConfigCollectionNameUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigCollectionName$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigCollectionNameUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigCollectionNameUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigCollectionNameUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabaseIdSecretRef$inboundSchema: z.ZodType< DeploymentConfigDatabaseIdSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigDatabaseIdSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabaseIdSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabaseIdSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabaseId$inboundSchema: z.ZodType< DeploymentConfigDatabaseId, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigDatabaseIdSecretRef$inboundSchema), }); export function deploymentConfigDatabaseIdFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabaseId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabaseId' from JSON`, ); } /** @internal */ export const DeploymentConfigDatabaseIdUnion$inboundSchema: z.ZodType< DeploymentConfigDatabaseIdUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigDatabaseId$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigDatabaseIdUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDatabaseIdUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDatabaseIdUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigProjectIdSecretRef$inboundSchema: z.ZodType< DeploymentConfigProjectIdSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigProjectIdSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigProjectIdSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProjectIdSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigProjectId$inboundSchema: z.ZodType< DeploymentConfigProjectId, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigProjectIdSecretRef$inboundSchema), }); export function deploymentConfigProjectIdFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigProjectId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProjectId' from JSON`, ); } /** @internal */ export const DeploymentConfigProjectIdUnion$inboundSchema: z.ZodType< DeploymentConfigProjectIdUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigProjectId$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigProjectIdUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigProjectIdUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProjectIdUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeKv2$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeKv2 > = z.enum(DeploymentConfigTypeKv2); /** @internal */ export const DeploymentConfigExternalBindingsFirestore$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsFirestore, unknown > = z.object({ collectionName: z.nullable( z.union([ z.lazy(() => DeploymentConfigCollectionName$inboundSchema), z.any(), z.string(), ]), ).optional(), databaseId: z.nullable( z.union([ z.lazy(() => DeploymentConfigDatabaseId$inboundSchema), z.any(), z.string(), ]), ).optional(), projectId: z.nullable( z.union([ z.lazy(() => DeploymentConfigProjectId$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("firestore"), type: DeploymentConfigTypeKv2$inboundSchema, }); export function deploymentConfigExternalBindingsFirestoreFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigExternalBindingsFirestore, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsFirestore$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigExternalBindingsFirestore' from JSON`, ); } /** @internal */ export const DeploymentConfigEndpointUrlSecretRef$inboundSchema: z.ZodType< DeploymentConfigEndpointUrlSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigEndpointUrlSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigEndpointUrlSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigEndpointUrlSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigEndpointUrl$inboundSchema: z.ZodType< DeploymentConfigEndpointUrl, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigEndpointUrlSecretRef$inboundSchema), }); export function deploymentConfigEndpointUrlFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigEndpointUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigEndpointUrl' from JSON`, ); } /** @internal */ export const DeploymentConfigRegionSecretRef$inboundSchema: z.ZodType< DeploymentConfigRegionSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigRegionSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRegionSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRegionSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigRegion$inboundSchema: z.ZodType< DeploymentConfigRegion, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigRegionSecretRef$inboundSchema), }); export function deploymentConfigRegionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRegion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRegion' from JSON`, ); } /** @internal */ export const DeploymentConfigRegionUnion$inboundSchema: z.ZodType< DeploymentConfigRegionUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigRegion$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigRegionUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRegionUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRegionUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigTableNameSecretRef1$inboundSchema: z.ZodType< DeploymentConfigTableNameSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigTableNameSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigTableNameSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigTableNameSecretRef1' from JSON`, ); } /** @internal */ export const DeploymentConfigTableName1$inboundSchema: z.ZodType< DeploymentConfigTableName1, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigTableNameSecretRef1$inboundSchema), }); export function deploymentConfigTableName1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigTableName1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigTableName1' from JSON`, ); } /** @internal */ export const DeploymentConfigTableNameUnion1$inboundSchema: z.ZodType< DeploymentConfigTableNameUnion1, unknown > = z.union([ z.lazy(() => DeploymentConfigTableName1$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigTableNameUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigTableNameUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigTableNameUnion1' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeKv1$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeKv1 > = z.enum(DeploymentConfigTypeKv1); /** @internal */ export const DeploymentConfigExternalBindingsDynamodb$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsDynamodb, unknown > = z.object({ endpointUrl: z.nullable(z.any()).optional(), region: z.nullable( z.union([ z.lazy(() => DeploymentConfigRegion$inboundSchema), z.any(), z.string(), ]), ).optional(), tableName: z.nullable( z.union([ z.lazy(() => DeploymentConfigTableName1$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("dynamodb"), type: DeploymentConfigTypeKv1$inboundSchema, }); export function deploymentConfigExternalBindingsDynamodbFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigExternalBindingsDynamodb, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsDynamodb$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigExternalBindingsDynamodb' from JSON`, ); } /** @internal */ export const DeploymentConfigExternalBindingsUnion3$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsUnion3, unknown > = z.union([ z.lazy(() => DeploymentConfigExternalBindingsDynamodb$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsFirestore$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsTablestorage$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsRedis$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsLocalKv$inboundSchema), ]); export function deploymentConfigExternalBindingsUnion3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsUnion3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsUnion3' from JSON`, ); } /** @internal */ export const DeploymentConfigQueuePathSecretRef$inboundSchema: z.ZodType< DeploymentConfigQueuePathSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigQueuePathSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigQueuePathSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigQueuePathSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigQueuePath$inboundSchema: z.ZodType< DeploymentConfigQueuePath, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigQueuePathSecretRef$inboundSchema), }); export function deploymentConfigQueuePathFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigQueuePath$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigQueuePath' from JSON`, ); } /** @internal */ export const DeploymentConfigQueuePathUnion$inboundSchema: z.ZodType< DeploymentConfigQueuePathUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigQueuePath$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigQueuePathUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigQueuePathUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigQueuePathUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeQueue4$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeQueue4 > = z.enum(DeploymentConfigTypeQueue4); /** @internal */ export const DeploymentConfigExternalBindingsLocalQueue$inboundSchema: z.ZodType = z.object({ queuePath: z.nullable( z.union([ z.lazy(() => DeploymentConfigQueuePath$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("local-queue"), type: DeploymentConfigTypeQueue4$inboundSchema, }); export function deploymentConfigExternalBindingsLocalQueueFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigExternalBindingsLocalQueue, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsLocalQueue$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigExternalBindingsLocalQueue' from JSON`, ); } /** @internal */ export const DeploymentConfigNamespaceSecretRef1$inboundSchema: z.ZodType< DeploymentConfigNamespaceSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigNamespaceSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigNamespaceSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigNamespaceSecretRef1' from JSON`, ); } /** @internal */ export const DeploymentConfigNamespace1$inboundSchema: z.ZodType< DeploymentConfigNamespace1, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigNamespaceSecretRef1$inboundSchema), }); export function deploymentConfigNamespace1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigNamespace1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigNamespace1' from JSON`, ); } /** @internal */ export const DeploymentConfigNamespaceUnion1$inboundSchema: z.ZodType< DeploymentConfigNamespaceUnion1, unknown > = z.union([ z.lazy(() => DeploymentConfigNamespace1$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigNamespaceUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigNamespaceUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigNamespaceUnion1' from JSON`, ); } /** @internal */ export const DeploymentConfigQueueNameSecretRef$inboundSchema: z.ZodType< DeploymentConfigQueueNameSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigQueueNameSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigQueueNameSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigQueueNameSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigQueueName$inboundSchema: z.ZodType< DeploymentConfigQueueName, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigQueueNameSecretRef$inboundSchema), }); export function deploymentConfigQueueNameFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigQueueName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigQueueName' from JSON`, ); } /** @internal */ export const DeploymentConfigQueueNameUnion$inboundSchema: z.ZodType< DeploymentConfigQueueNameUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigQueueName$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigQueueNameUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigQueueNameUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigQueueNameUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeQueue3$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeQueue3 > = z.enum(DeploymentConfigTypeQueue3); /** @internal */ export const DeploymentConfigExternalBindingsServicebus$inboundSchema: z.ZodType = z.object({ namespace: z.nullable( z.union([ z.lazy(() => DeploymentConfigNamespace1$inboundSchema), z.any(), z.string(), ]), ).optional(), queueName: z.nullable( z.union([ z.lazy(() => DeploymentConfigQueueName$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("servicebus"), type: DeploymentConfigTypeQueue3$inboundSchema, }); export function deploymentConfigExternalBindingsServicebusFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigExternalBindingsServicebus, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsServicebus$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigExternalBindingsServicebus' from JSON`, ); } /** @internal */ export const DeploymentConfigSubscriptionSecretRef$inboundSchema: z.ZodType< DeploymentConfigSubscriptionSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigSubscriptionSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigSubscriptionSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigSubscriptionSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigSubscription$inboundSchema: z.ZodType< DeploymentConfigSubscription, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigSubscriptionSecretRef$inboundSchema), }); export function deploymentConfigSubscriptionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigSubscription$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigSubscription' from JSON`, ); } /** @internal */ export const DeploymentConfigSubscriptionUnion$inboundSchema: z.ZodType< DeploymentConfigSubscriptionUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigSubscription$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigSubscriptionUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigSubscriptionUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigSubscriptionUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigTopicSecretRef$inboundSchema: z.ZodType< DeploymentConfigTopicSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigTopicSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigTopicSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigTopicSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigTopic$inboundSchema: z.ZodType< DeploymentConfigTopic, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigTopicSecretRef$inboundSchema), }); export function deploymentConfigTopicFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigTopic$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigTopic' from JSON`, ); } /** @internal */ export const DeploymentConfigTopicUnion$inboundSchema: z.ZodType< DeploymentConfigTopicUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigTopic$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigTopicUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigTopicUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigTopicUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeQueue2$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeQueue2 > = z.enum(DeploymentConfigTypeQueue2); /** @internal */ export const DeploymentConfigExternalBindingsPubsub$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsPubsub, unknown > = z.object({ subscription: z.nullable( z.union([ z.lazy(() => DeploymentConfigSubscription$inboundSchema), z.any(), z.string(), ]), ).optional(), topic: z.nullable( z.union([ z.lazy(() => DeploymentConfigTopic$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("pubsub"), type: DeploymentConfigTypeQueue2$inboundSchema, }); export function deploymentConfigExternalBindingsPubsubFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsPubsub$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsPubsub' from JSON`, ); } /** @internal */ export const DeploymentConfigQueueUrlSecretRef$inboundSchema: z.ZodType< DeploymentConfigQueueUrlSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigQueueUrlSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigQueueUrlSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigQueueUrlSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigQueueUrl$inboundSchema: z.ZodType< DeploymentConfigQueueUrl, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigQueueUrlSecretRef$inboundSchema), }); export function deploymentConfigQueueUrlFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigQueueUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigQueueUrl' from JSON`, ); } /** @internal */ export const DeploymentConfigQueueUrlUnion$inboundSchema: z.ZodType< DeploymentConfigQueueUrlUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigQueueUrl$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigQueueUrlUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigQueueUrlUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigQueueUrlUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeQueue1$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeQueue1 > = z.enum(DeploymentConfigTypeQueue1); /** @internal */ export const DeploymentConfigExternalBindingsSqs$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsSqs, unknown > = z.object({ queueUrl: z.nullable( z.union([ z.lazy(() => DeploymentConfigQueueUrl$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("sqs"), type: DeploymentConfigTypeQueue1$inboundSchema, }); export function deploymentConfigExternalBindingsSqsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsSqs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsSqs' from JSON`, ); } /** @internal */ export const DeploymentConfigExternalBindingsUnion2$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsUnion2, unknown > = z.union([ z.lazy(() => DeploymentConfigExternalBindingsSqs$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsPubsub$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsServicebus$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsLocalQueue$inboundSchema), ]); export function deploymentConfigExternalBindingsUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsUnion2' from JSON`, ); } /** @internal */ export const DeploymentConfigStoragePathSecretRef$inboundSchema: z.ZodType< DeploymentConfigStoragePathSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigStoragePathSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigStoragePathSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigStoragePathSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigStoragePath$inboundSchema: z.ZodType< DeploymentConfigStoragePath, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigStoragePathSecretRef$inboundSchema), }); export function deploymentConfigStoragePathFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigStoragePath$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigStoragePath' from JSON`, ); } /** @internal */ export const DeploymentConfigStoragePathUnion$inboundSchema: z.ZodType< DeploymentConfigStoragePathUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigStoragePath$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigStoragePathUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigStoragePathUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigStoragePathUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeStorage4$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeStorage4 > = z.enum(DeploymentConfigTypeStorage4); /** @internal */ export const DeploymentConfigExternalBindingsLocalStorage$inboundSchema: z.ZodType = z.object({ storagePath: z.nullable( z.union([ z.lazy(() => DeploymentConfigStoragePath$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("local-storage"), type: DeploymentConfigTypeStorage4$inboundSchema, }); export function deploymentConfigExternalBindingsLocalStorageFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigExternalBindingsLocalStorage, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsLocalStorage$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigExternalBindingsLocalStorage' from JSON`, ); } /** @internal */ export const DeploymentConfigBucketNameSecretRef2$inboundSchema: z.ZodType< DeploymentConfigBucketNameSecretRef2, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigBucketNameSecretRef2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigBucketNameSecretRef2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigBucketNameSecretRef2' from JSON`, ); } /** @internal */ export const DeploymentConfigBucketName2$inboundSchema: z.ZodType< DeploymentConfigBucketName2, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigBucketNameSecretRef2$inboundSchema), }); export function deploymentConfigBucketName2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigBucketName2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigBucketName2' from JSON`, ); } /** @internal */ export const DeploymentConfigBucketNameUnion2$inboundSchema: z.ZodType< DeploymentConfigBucketNameUnion2, unknown > = z.union([ z.lazy(() => DeploymentConfigBucketName2$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigBucketNameUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigBucketNameUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigBucketNameUnion2' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeStorage3$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeStorage3 > = z.enum(DeploymentConfigTypeStorage3); /** @internal */ export const DeploymentConfigExternalBindingsGcs$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsGcs, unknown > = z.object({ bucketName: z.nullable( z.union([ z.lazy(() => DeploymentConfigBucketName2$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("gcs"), type: DeploymentConfigTypeStorage3$inboundSchema, }); export function deploymentConfigExternalBindingsGcsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsGcs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsGcs' from JSON`, ); } /** @internal */ export const DeploymentConfigAccountNameSecretRef1$inboundSchema: z.ZodType< DeploymentConfigAccountNameSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigAccountNameSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigAccountNameSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigAccountNameSecretRef1' from JSON`, ); } /** @internal */ export const DeploymentConfigAccountName1$inboundSchema: z.ZodType< DeploymentConfigAccountName1, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigAccountNameSecretRef1$inboundSchema), }); export function deploymentConfigAccountName1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigAccountName1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigAccountName1' from JSON`, ); } /** @internal */ export const DeploymentConfigAccountNameUnion1$inboundSchema: z.ZodType< DeploymentConfigAccountNameUnion1, unknown > = z.union([ z.lazy(() => DeploymentConfigAccountName1$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigAccountNameUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigAccountNameUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigAccountNameUnion1' from JSON`, ); } /** @internal */ export const DeploymentConfigContainerNameSecretRef$inboundSchema: z.ZodType< DeploymentConfigContainerNameSecretRef, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigContainerNameSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigContainerNameSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigContainerNameSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigContainerName$inboundSchema: z.ZodType< DeploymentConfigContainerName, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigContainerNameSecretRef$inboundSchema), }); export function deploymentConfigContainerNameFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigContainerName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigContainerName' from JSON`, ); } /** @internal */ export const DeploymentConfigContainerNameUnion$inboundSchema: z.ZodType< DeploymentConfigContainerNameUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigContainerName$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigContainerNameUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigContainerNameUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigContainerNameUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeStorage2$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeStorage2 > = z.enum(DeploymentConfigTypeStorage2); /** @internal */ export const DeploymentConfigExternalBindingsBlob$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsBlob, unknown > = z.object({ accountName: z.nullable( z.union([ z.lazy(() => DeploymentConfigAccountName1$inboundSchema), z.any(), z.string(), ]), ).optional(), containerName: z.nullable( z.union([ z.lazy(() => DeploymentConfigContainerName$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("blob"), type: DeploymentConfigTypeStorage2$inboundSchema, }); export function deploymentConfigExternalBindingsBlobFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsBlob$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsBlob' from JSON`, ); } /** @internal */ export const DeploymentConfigBucketNameSecretRef1$inboundSchema: z.ZodType< DeploymentConfigBucketNameSecretRef1, unknown > = z.object({ key: z.string(), name: z.string(), }); export function deploymentConfigBucketNameSecretRef1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigBucketNameSecretRef1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigBucketNameSecretRef1' from JSON`, ); } /** @internal */ export const DeploymentConfigBucketName1$inboundSchema: z.ZodType< DeploymentConfigBucketName1, unknown > = z.object({ secretRef: z.lazy(() => DeploymentConfigBucketNameSecretRef1$inboundSchema), }); export function deploymentConfigBucketName1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigBucketName1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigBucketName1' from JSON`, ); } /** @internal */ export const DeploymentConfigBucketNameUnion1$inboundSchema: z.ZodType< DeploymentConfigBucketNameUnion1, unknown > = z.union([ z.lazy(() => DeploymentConfigBucketName1$inboundSchema), z.any(), z.string(), ]); export function deploymentConfigBucketNameUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigBucketNameUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigBucketNameUnion1' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeStorage1$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeStorage1 > = z.enum(DeploymentConfigTypeStorage1); /** @internal */ export const DeploymentConfigExternalBindingsS3$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsS3, unknown > = z.object({ bucketName: z.nullable( z.union([ z.lazy(() => DeploymentConfigBucketName1$inboundSchema), z.any(), z.string(), ]), ).optional(), service: z.literal("s3"), type: DeploymentConfigTypeStorage1$inboundSchema, }); export function deploymentConfigExternalBindingsS3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsS3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsS3' from JSON`, ); } /** @internal */ export const DeploymentConfigExternalBindingsUnion1$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsUnion1, unknown > = z.union([ z.lazy(() => DeploymentConfigExternalBindingsS3$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsBlob$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsGcs$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsLocalStorage$inboundSchema), ]); export function deploymentConfigExternalBindingsUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsUnion1' from JSON`, ); } /** @internal */ export const DeploymentConfigExternalBindingsUnion7$inboundSchema: z.ZodType< DeploymentConfigExternalBindingsUnion7, unknown > = z.union([ z.lazy(() => DeploymentConfigExternalBindingsAi$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsContainerAppsEnvironment$inboundSchema ), z.union([ z.lazy(() => DeploymentConfigExternalBindingsS3$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsBlob$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsGcs$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsLocalStorage$inboundSchema), ]), z.union([ z.lazy(() => DeploymentConfigExternalBindingsSqs$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsPubsub$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsServicebus$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsLocalQueue$inboundSchema), ]), z.union([ z.lazy(() => DeploymentConfigExternalBindingsDynamodb$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsFirestore$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsTablestorage$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsRedis$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsLocalKv$inboundSchema), ]), z.union([ z.lazy(() => DeploymentConfigExternalBindingsEcr$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsAcr$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsGar$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsLocal$inboundSchema), ]), z.union([ z.lazy(() => DeploymentConfigExternalBindingsParameterStore$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsSecretManager$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsKeyVault$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsKubernetesSecret$inboundSchema ), z.lazy(() => DeploymentConfigExternalBindingsLocalVault$inboundSchema), ]), z.union([ z.lazy(() => DeploymentConfigExternalBindingsAurora$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsCloudSQL$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsFlexibleServer$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsExternal$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsLocalPostgres$inboundSchema), ]), ]); export function deploymentConfigExternalBindingsUnion7FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExternalBindingsUnion7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExternalBindingsUnion7' from JSON`, ); } /** @internal */ export const DeploymentConfigPlatformKubernetes$inboundSchema: z.ZodEnum< typeof DeploymentConfigPlatformKubernetes > = z.enum(DeploymentConfigPlatformKubernetes); /** @internal */ export const DeploymentConfigManagementConfigKubernetes$inboundSchema: z.ZodType = z.object({ platform: DeploymentConfigPlatformKubernetes$inboundSchema, }); export function deploymentConfigManagementConfigKubernetesFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigManagementConfigKubernetes, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigManagementConfigKubernetes$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigManagementConfigKubernetes' from JSON`, ); } /** @internal */ export const DeploymentConfigPlatformAzure$inboundSchema: z.ZodEnum< typeof DeploymentConfigPlatformAzure > = z.enum(DeploymentConfigPlatformAzure); /** @internal */ export const DeploymentConfigManagementConfigAzure$inboundSchema: z.ZodType< DeploymentConfigManagementConfigAzure, unknown > = z.object({ managingTenantId: z.string(), oidcIssuer: z.string(), oidcSubject: z.string(), platform: DeploymentConfigPlatformAzure$inboundSchema, }); export function deploymentConfigManagementConfigAzureFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigManagementConfigAzure$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigManagementConfigAzure' from JSON`, ); } /** @internal */ export const DeploymentConfigPlatformGcp$inboundSchema: z.ZodEnum< typeof DeploymentConfigPlatformGcp > = z.enum(DeploymentConfigPlatformGcp); /** @internal */ export const DeploymentConfigManagementConfigGcp$inboundSchema: z.ZodType< DeploymentConfigManagementConfigGcp, unknown > = z.object({ serviceAccountEmail: z.string(), platform: DeploymentConfigPlatformGcp$inboundSchema, }); export function deploymentConfigManagementConfigGcpFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigManagementConfigGcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigManagementConfigGcp' from JSON`, ); } /** @internal */ export const DeploymentConfigPlatformAws$inboundSchema: z.ZodEnum< typeof DeploymentConfigPlatformAws > = z.enum(DeploymentConfigPlatformAws); /** @internal */ export const DeploymentConfigManagementConfigAws$inboundSchema: z.ZodType< DeploymentConfigManagementConfigAws, unknown > = z.object({ managingRoleArn: z.string(), platform: DeploymentConfigPlatformAws$inboundSchema, }); export function deploymentConfigManagementConfigAwsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigManagementConfigAws$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigManagementConfigAws' from JSON`, ); } /** @internal */ export const DeploymentConfigManagementConfigUnion$inboundSchema: z.ZodType< DeploymentConfigManagementConfigUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigManagementConfigAzure$inboundSchema), z.lazy(() => DeploymentConfigManagementConfigAws$inboundSchema), z.lazy(() => DeploymentConfigManagementConfigGcp$inboundSchema), z.lazy(() => DeploymentConfigManagementConfigKubernetes$inboundSchema), z.any(), ]); export function deploymentConfigManagementConfigUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigManagementConfigUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigManagementConfigUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigMonitoring$inboundSchema: z.ZodType< DeploymentConfigMonitoring, 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 deploymentConfigMonitoringFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigMonitoring$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigMonitoring' from JSON`, ); } /** @internal */ export const DeploymentConfigMonitoringUnion$inboundSchema: z.ZodType< DeploymentConfigMonitoringUnion, unknown > = z.union([z.lazy(() => DeploymentConfigMonitoring$inboundSchema), z.any()]); export function deploymentConfigMonitoringUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigMonitoringUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigMonitoringUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigFailureDomains2$inboundSchema: z.ZodType< DeploymentConfigFailureDomains2, unknown > = z.object({ selectedFailureDomains: z.array(z.string()).optional(), spread: z.int(), }); export function deploymentConfigFailureDomains2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigFailureDomains2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigFailureDomains2' from JSON`, ); } /** @internal */ export const DeploymentConfigFailureDomainsUnion2$inboundSchema: z.ZodType< DeploymentConfigFailureDomainsUnion2, unknown > = z.union([ z.lazy(() => DeploymentConfigFailureDomains2$inboundSchema), z.any(), ]); export function deploymentConfigFailureDomainsUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigFailureDomainsUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigFailureDomainsUnion2' from JSON`, ); } /** @internal */ export const DeploymentConfigPoolsAutoscale$inboundSchema: z.ZodType< DeploymentConfigPoolsAutoscale, unknown > = z.object({ failure_domains: z.nullable( z.union([ z.lazy(() => DeploymentConfigFailureDomains2$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 deploymentConfigPoolsAutoscaleFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPoolsAutoscale$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPoolsAutoscale' from JSON`, ); } /** @internal */ export const DeploymentConfigFailureDomains1$inboundSchema: z.ZodType< DeploymentConfigFailureDomains1, unknown > = z.object({ selectedFailureDomains: z.array(z.string()).optional(), spread: z.int(), }); export function deploymentConfigFailureDomains1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigFailureDomains1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigFailureDomains1' from JSON`, ); } /** @internal */ export const DeploymentConfigFailureDomainsUnion1$inboundSchema: z.ZodType< DeploymentConfigFailureDomainsUnion1, unknown > = z.union([ z.lazy(() => DeploymentConfigFailureDomains1$inboundSchema), z.any(), ]); export function deploymentConfigFailureDomainsUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigFailureDomainsUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigFailureDomainsUnion1' from JSON`, ); } /** @internal */ export const DeploymentConfigPoolsFixed$inboundSchema: z.ZodType< DeploymentConfigPoolsFixed, unknown > = z.object({ failure_domains: z.nullable( z.union([ z.lazy(() => DeploymentConfigFailureDomains1$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 deploymentConfigPoolsFixedFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPoolsFixed$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPoolsFixed' from JSON`, ); } /** @internal */ export const DeploymentConfigPoolsUnion$inboundSchema: z.ZodType< DeploymentConfigPoolsUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigPoolsFixed$inboundSchema), z.lazy(() => DeploymentConfigPoolsAutoscale$inboundSchema), ]); export function deploymentConfigPoolsUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigPoolsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigPoolsUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigCompute$inboundSchema: z.ZodType< DeploymentConfigCompute, unknown > = z.object({ pools: z.record( z.string(), z.union([ z.lazy(() => DeploymentConfigPoolsFixed$inboundSchema), z.lazy(() => DeploymentConfigPoolsAutoscale$inboundSchema), ]), ).optional(), }); export function deploymentConfigComputeFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigCompute$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigCompute' from JSON`, ); } /** @internal */ export const DeploymentConfigComputeUnion$inboundSchema: z.ZodType< DeploymentConfigComputeUnion, unknown > = z.union([z.lazy(() => DeploymentConfigCompute$inboundSchema), z.any()]); export function deploymentConfigComputeUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigComputeUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigComputeUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigDeploymentModel$inboundSchema: z.ZodEnum< typeof DeploymentConfigDeploymentModel > = z.enum(DeploymentConfigDeploymentModel); /** @internal */ export const DeploymentConfigAwsStackSettings$inboundSchema: z.ZodType< DeploymentConfigAwsStackSettings, unknown > = z.object({ certificateArn: z.string(), }); export function deploymentConfigAwsStackSettingsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigAwsStackSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigAwsStackSettings' from JSON`, ); } /** @internal */ export const DeploymentConfigStackSettingsAwsUnion$inboundSchema: z.ZodType< DeploymentConfigStackSettingsAwsUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigAwsStackSettings$inboundSchema), z.any(), ]); export function deploymentConfigStackSettingsAwsUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigStackSettingsAwsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigStackSettingsAwsUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigAzureStackSettings$inboundSchema: z.ZodType< DeploymentConfigAzureStackSettings, unknown > = z.object({ keyVaultCertificateId: z.string(), keyVaultResourceId: z.nullable(z.string()).optional(), }); export function deploymentConfigAzureStackSettingsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigAzureStackSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigAzureStackSettings' from JSON`, ); } /** @internal */ export const DeploymentConfigStackSettingsAzureUnion$inboundSchema: z.ZodType< DeploymentConfigStackSettingsAzureUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigAzureStackSettings$inboundSchema), z.any(), ]); export function deploymentConfigStackSettingsAzureUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigStackSettingsAzureUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigStackSettingsAzureUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigStackSettingsAzureUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigGcpStackSettings$inboundSchema: z.ZodType< DeploymentConfigGcpStackSettings, unknown > = z.object({ certificateName: z.string(), }); export function deploymentConfigGcpStackSettingsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigGcpStackSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigGcpStackSettings' from JSON`, ); } /** @internal */ export const DeploymentConfigStackSettingsGcpUnion$inboundSchema: z.ZodType< DeploymentConfigStackSettingsGcpUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigGcpStackSettings$inboundSchema), z.any(), ]); export function deploymentConfigStackSettingsGcpUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigStackSettingsGcpUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigStackSettingsGcpUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigTlsSecretRef$inboundSchema: z.ZodType< DeploymentConfigTlsSecretRef, unknown > = z.object({ namespace: z.nullable(z.string()).optional(), secretName: z.string(), }); export function deploymentConfigTlsSecretRefFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigTlsSecretRef$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigTlsSecretRef' from JSON`, ); } /** @internal */ export const DeploymentConfigDomainsKubernetes$inboundSchema: z.ZodType< DeploymentConfigDomainsKubernetes, unknown > = z.object({ tlsSecretRef: z.lazy(() => DeploymentConfigTlsSecretRef$inboundSchema), }); export function deploymentConfigDomainsKubernetesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDomainsKubernetes$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDomainsKubernetes' from JSON`, ); } /** @internal */ export const DeploymentConfigDomainsKubernetesUnion$inboundSchema: z.ZodType< DeploymentConfigDomainsKubernetesUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigDomainsKubernetes$inboundSchema), z.any(), ]); export function deploymentConfigDomainsKubernetesUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDomainsKubernetesUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDomainsKubernetesUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigDomainsCertificate$inboundSchema: z.ZodType< DeploymentConfigDomainsCertificate, unknown > = z.object({ aws: z.nullable( z.union([ z.lazy(() => DeploymentConfigAwsStackSettings$inboundSchema), z.any(), ]), ).optional(), azure: z.nullable( z.union([ z.lazy(() => DeploymentConfigAzureStackSettings$inboundSchema), z.any(), ]), ).optional(), gcp: z.nullable( z.union([ z.lazy(() => DeploymentConfigGcpStackSettings$inboundSchema), z.any(), ]), ).optional(), kubernetes: z.nullable( z.union([ z.lazy(() => DeploymentConfigDomainsKubernetes$inboundSchema), z.any(), ]), ).optional(), }); export function deploymentConfigDomainsCertificateFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDomainsCertificate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDomainsCertificate' from JSON`, ); } /** @internal */ export const DeploymentConfigCustomDomains$inboundSchema: z.ZodType< DeploymentConfigCustomDomains, unknown > = z.object({ certificate: z.lazy(() => DeploymentConfigDomainsCertificate$inboundSchema), domain: z.string(), }); export function deploymentConfigCustomDomainsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigCustomDomains$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigCustomDomains' from JSON`, ); } /** @internal */ export const DeploymentConfigModeLoadBalancer$inboundSchema: z.ZodEnum< typeof DeploymentConfigModeLoadBalancer > = z.enum(DeploymentConfigModeLoadBalancer); /** @internal */ export const DeploymentConfigPublicEndpointTargetLoadBalancer$inboundSchema: z.ZodType = z .object({ cnameTarget: z.string(), mode: DeploymentConfigModeLoadBalancer$inboundSchema, }); export function deploymentConfigPublicEndpointTargetLoadBalancerFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigPublicEndpointTargetLoadBalancer, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigPublicEndpointTargetLoadBalancer$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigPublicEndpointTargetLoadBalancer' from JSON`, ); } /** @internal */ export const DeploymentConfigModeMachineAddresses$inboundSchema: z.ZodEnum< typeof DeploymentConfigModeMachineAddresses > = z.enum(DeploymentConfigModeMachineAddresses); /** @internal */ export const DeploymentConfigPublicEndpointTargetMachineAddresses$inboundSchema: z.ZodType = z .object({ mode: DeploymentConfigModeMachineAddresses$inboundSchema, }); export function deploymentConfigPublicEndpointTargetMachineAddressesFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigPublicEndpointTargetMachineAddresses, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigPublicEndpointTargetMachineAddresses$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigPublicEndpointTargetMachineAddresses' from JSON`, ); } /** @internal */ export const DeploymentConfigPublicEndpointTargetUnion$inboundSchema: z.ZodType< DeploymentConfigPublicEndpointTargetUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigPublicEndpointTargetLoadBalancer$inboundSchema), z.lazy(() => DeploymentConfigPublicEndpointTargetMachineAddresses$inboundSchema ), z.any(), ]); export function deploymentConfigPublicEndpointTargetUnionFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigPublicEndpointTargetUnion, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigPublicEndpointTargetUnion$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigPublicEndpointTargetUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigDomains$inboundSchema: z.ZodType< DeploymentConfigDomains, unknown > = z.object({ customDomains: z.nullable( z.record( z.string(), z.lazy(() => DeploymentConfigCustomDomains$inboundSchema), ), ).optional(), publicEndpointTarget: z.nullable( z.union([ z.lazy(() => DeploymentConfigPublicEndpointTargetLoadBalancer$inboundSchema ), z.lazy(() => DeploymentConfigPublicEndpointTargetMachineAddresses$inboundSchema ), z.any(), ]), ).optional(), }); export function deploymentConfigDomainsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDomains$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDomains' from JSON`, ); } /** @internal */ export const DeploymentConfigDomainsUnion$inboundSchema: z.ZodType< DeploymentConfigDomainsUnion, unknown > = z.union([z.lazy(() => DeploymentConfigDomains$inboundSchema), z.any()]); export function deploymentConfigDomainsUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigDomainsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigDomainsUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigStackSettingsExternalBindings$inboundSchema: z.ZodType = z.object( {}, ); export function deploymentConfigStackSettingsExternalBindingsFromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigStackSettingsExternalBindings, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigStackSettingsExternalBindings$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigStackSettingsExternalBindings' from JSON`, ); } /** @internal */ export const DeploymentConfigHeartbeats$inboundSchema: z.ZodEnum< typeof DeploymentConfigHeartbeats > = z.enum(DeploymentConfigHeartbeats); /** @internal */ export const DeploymentConfigCloud$inboundSchema: z.ZodType< DeploymentConfigCloud, 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 deploymentConfigCloudFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigCloud$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigCloud' from JSON`, ); } /** @internal */ export const DeploymentConfigCloudUnion$inboundSchema: z.ZodType< DeploymentConfigCloudUnion, unknown > = z.union([z.lazy(() => DeploymentConfigCloud$inboundSchema), z.any()]); export function deploymentConfigCloudUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigCloudUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigCloudUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigOwnership$inboundSchema: z.ZodEnum< typeof DeploymentConfigOwnership > = z.enum(DeploymentConfigOwnership); /** @internal */ export const DeploymentConfigCluster$inboundSchema: z.ZodType< DeploymentConfigCluster, unknown > = z.object({ cloud: z.nullable( z.union([z.lazy(() => DeploymentConfigCloud$inboundSchema), z.any()]), ).optional(), namespace: z.nullable(z.string()).optional(), ownership: DeploymentConfigOwnership$inboundSchema, }); export function deploymentConfigClusterFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigCluster$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigCluster' from JSON`, ); } /** @internal */ export const DeploymentConfigClusterUnion$inboundSchema: z.ZodType< DeploymentConfigClusterUnion, unknown > = z.union([z.lazy(() => DeploymentConfigCluster$inboundSchema), z.any()]); export function deploymentConfigClusterUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigClusterUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigClusterUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigCertificateNone2$inboundSchema: z.ZodType< DeploymentConfigCertificateNone2, unknown > = z.object({ mode: z.literal("none"), }); export function deploymentConfigCertificateNone2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigCertificateNone2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigCertificateNone2' from JSON`, ); } /** @internal */ export const DeploymentConfigCertificateManagedTLSSecret2$inboundSchema: z.ZodType = z.object({ mode: z.literal("managedTlsSecret"), secretNameTemplate: z.string(), }); export function deploymentConfigCertificateManagedTLSSecret2FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigCertificateManagedTLSSecret2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigCertificateManagedTLSSecret2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigCertificateManagedTLSSecret2' from JSON`, ); } /** @internal */ export const DeploymentConfigCertificateAwsAcmArn2$inboundSchema: z.ZodType< DeploymentConfigCertificateAwsAcmArn2, unknown > = z.object({ certificateArn: z.string(), mode: z.literal("awsAcmArn"), }); export function deploymentConfigCertificateAwsAcmArn2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigCertificateAwsAcmArn2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigCertificateAwsAcmArn2' from JSON`, ); } /** @internal */ export const DeploymentConfigCertificateManagedAcmImport2$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 deploymentConfigCertificateManagedAcmImport2FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigCertificateManagedAcmImport2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigCertificateManagedAcmImport2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigCertificateManagedAcmImport2' from JSON`, ); } /** @internal */ export const DeploymentConfigCertificateTLSSecretRef2$inboundSchema: z.ZodType< DeploymentConfigCertificateTLSSecretRef2, unknown > = z.object({ namespace: z.nullable(z.string()).optional(), secretName: z.string(), mode: z.literal("tlsSecretRef"), }); export function deploymentConfigCertificateTLSSecretRef2FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigCertificateTLSSecretRef2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigCertificateTLSSecretRef2$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigCertificateTLSSecretRef2' from JSON`, ); } /** @internal */ export const DeploymentConfigCertificateUnion2$inboundSchema: z.ZodType< DeploymentConfigCertificateUnion2, unknown > = z.union([ z.lazy(() => DeploymentConfigCertificateTLSSecretRef2$inboundSchema), z.lazy(() => DeploymentConfigCertificateManagedAcmImport2$inboundSchema), z.lazy(() => DeploymentConfigCertificateAwsAcmArn2$inboundSchema), z.lazy(() => DeploymentConfigCertificateManagedTLSSecret2$inboundSchema), z.lazy(() => DeploymentConfigCertificateNone2$inboundSchema), ]); export function deploymentConfigCertificateUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigCertificateUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigCertificateUnion2' from JSON`, ); } /** @internal */ export const DeploymentConfigModeCustom$inboundSchema: z.ZodEnum< typeof DeploymentConfigModeCustom > = z.enum(DeploymentConfigModeCustom); /** @internal */ export const DeploymentConfigProviderAzureApplicationGatewayForContainersEnum4$inboundSchema: z.ZodEnum< typeof DeploymentConfigProviderAzureApplicationGatewayForContainersEnum4 > = z.enum(DeploymentConfigProviderAzureApplicationGatewayForContainersEnum4); /** @internal */ export const DeploymentConfigProviderAzureApplicationGatewayForContainers4$inboundSchema: z.ZodType< DeploymentConfigProviderAzureApplicationGatewayForContainers4, unknown > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: DeploymentConfigProviderAzureApplicationGatewayForContainersEnum4$inboundSchema, }); export function deploymentConfigProviderAzureApplicationGatewayForContainers4FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigProviderAzureApplicationGatewayForContainers4, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigProviderAzureApplicationGatewayForContainers4$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProviderAzureApplicationGatewayForContainers4' from JSON`, ); } /** @internal */ export const DeploymentConfigProviderGkeGatewayEnum4$inboundSchema: z.ZodEnum< typeof DeploymentConfigProviderGkeGatewayEnum4 > = z.enum(DeploymentConfigProviderGkeGatewayEnum4); /** @internal */ export const DeploymentConfigProviderGkeGateway4$inboundSchema: z.ZodType< DeploymentConfigProviderGkeGateway4, unknown > = z.object({ provider: DeploymentConfigProviderGkeGatewayEnum4$inboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function deploymentConfigProviderGkeGateway4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigProviderGkeGateway4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProviderGkeGateway4' from JSON`, ); } /** @internal */ export const DeploymentConfigProviderAwsAlbEnum4$inboundSchema: z.ZodEnum< typeof DeploymentConfigProviderAwsAlbEnum4 > = z.enum(DeploymentConfigProviderAwsAlbEnum4); /** @internal */ export const DeploymentConfigProviderAwsAlb4$inboundSchema: z.ZodType< DeploymentConfigProviderAwsAlb4, unknown > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: DeploymentConfigProviderAwsAlbEnum4$inboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function deploymentConfigProviderAwsAlb4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigProviderAwsAlb4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProviderAwsAlb4' from JSON`, ); } /** @internal */ export const DeploymentConfigProviderUnion4$inboundSchema: z.ZodType< DeploymentConfigProviderUnion4, unknown > = z.union([ z.lazy(() => DeploymentConfigProviderAwsAlb4$inboundSchema), z.lazy(() => DeploymentConfigProviderAzureApplicationGatewayForContainers4$inboundSchema ), z.lazy(() => DeploymentConfigProviderGkeGateway4$inboundSchema), z.any(), ]); export function deploymentConfigProviderUnion4FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigProviderUnion4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProviderUnion4' from JSON`, ); } /** @internal */ export const DeploymentConfigRouteGateway2$inboundSchema: z.ZodType< DeploymentConfigRouteGateway2, 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(() => DeploymentConfigProviderAwsAlb4$inboundSchema), z.lazy(() => DeploymentConfigProviderAzureApplicationGatewayForContainers4$inboundSchema ), z.lazy(() => DeploymentConfigProviderGkeGateway4$inboundSchema), z.any(), ]), ).optional(), routeApi: z.literal("gateway"), }); export function deploymentConfigRouteGateway2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRouteGateway2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRouteGateway2' from JSON`, ); } /** @internal */ export const DeploymentConfigProviderAzureApplicationGatewayForContainersEnum3$inboundSchema: z.ZodEnum< typeof DeploymentConfigProviderAzureApplicationGatewayForContainersEnum3 > = z.enum(DeploymentConfigProviderAzureApplicationGatewayForContainersEnum3); /** @internal */ export const DeploymentConfigProviderAzureApplicationGatewayForContainers3$inboundSchema: z.ZodType< DeploymentConfigProviderAzureApplicationGatewayForContainers3, unknown > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: DeploymentConfigProviderAzureApplicationGatewayForContainersEnum3$inboundSchema, }); export function deploymentConfigProviderAzureApplicationGatewayForContainers3FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigProviderAzureApplicationGatewayForContainers3, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigProviderAzureApplicationGatewayForContainers3$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProviderAzureApplicationGatewayForContainers3' from JSON`, ); } /** @internal */ export const DeploymentConfigProviderGkeGatewayEnum3$inboundSchema: z.ZodEnum< typeof DeploymentConfigProviderGkeGatewayEnum3 > = z.enum(DeploymentConfigProviderGkeGatewayEnum3); /** @internal */ export const DeploymentConfigProviderGkeGateway3$inboundSchema: z.ZodType< DeploymentConfigProviderGkeGateway3, unknown > = z.object({ provider: DeploymentConfigProviderGkeGatewayEnum3$inboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function deploymentConfigProviderGkeGateway3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigProviderGkeGateway3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProviderGkeGateway3' from JSON`, ); } /** @internal */ export const DeploymentConfigProviderAwsAlbEnum3$inboundSchema: z.ZodEnum< typeof DeploymentConfigProviderAwsAlbEnum3 > = z.enum(DeploymentConfigProviderAwsAlbEnum3); /** @internal */ export const DeploymentConfigProviderAwsAlb3$inboundSchema: z.ZodType< DeploymentConfigProviderAwsAlb3, unknown > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: DeploymentConfigProviderAwsAlbEnum3$inboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function deploymentConfigProviderAwsAlb3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigProviderAwsAlb3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProviderAwsAlb3' from JSON`, ); } /** @internal */ export const DeploymentConfigProviderUnion3$inboundSchema: z.ZodType< DeploymentConfigProviderUnion3, unknown > = z.union([ z.lazy(() => DeploymentConfigProviderAwsAlb3$inboundSchema), z.lazy(() => DeploymentConfigProviderAzureApplicationGatewayForContainers3$inboundSchema ), z.lazy(() => DeploymentConfigProviderGkeGateway3$inboundSchema), z.any(), ]); export function deploymentConfigProviderUnion3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigProviderUnion3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProviderUnion3' from JSON`, ); } /** @internal */ export const DeploymentConfigRouteIngress2$inboundSchema: z.ZodType< DeploymentConfigRouteIngress2, 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(() => DeploymentConfigProviderAwsAlb3$inboundSchema), z.lazy(() => DeploymentConfigProviderAzureApplicationGatewayForContainers3$inboundSchema ), z.lazy(() => DeploymentConfigProviderGkeGateway3$inboundSchema), z.any(), ]), ).optional(), routeApi: z.literal("ingress"), }); export function deploymentConfigRouteIngress2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRouteIngress2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRouteIngress2' from JSON`, ); } /** @internal */ export const DeploymentConfigRouteUnion2$inboundSchema: z.ZodType< DeploymentConfigRouteUnion2, unknown > = z.union([ z.lazy(() => DeploymentConfigRouteIngress2$inboundSchema), z.lazy(() => DeploymentConfigRouteGateway2$inboundSchema), ]); export function deploymentConfigRouteUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRouteUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRouteUnion2' from JSON`, ); } /** @internal */ export const DeploymentConfigExposureCustom$inboundSchema: z.ZodType< DeploymentConfigExposureCustom, unknown > = z.object({ certificate: z.union([ z.lazy(() => DeploymentConfigCertificateTLSSecretRef2$inboundSchema), z.lazy(() => DeploymentConfigCertificateManagedAcmImport2$inboundSchema), z.lazy(() => DeploymentConfigCertificateAwsAcmArn2$inboundSchema), z.lazy(() => DeploymentConfigCertificateManagedTLSSecret2$inboundSchema), z.lazy(() => DeploymentConfigCertificateNone2$inboundSchema), ]), domain: z.string(), mode: DeploymentConfigModeCustom$inboundSchema, route: z.union([ z.lazy(() => DeploymentConfigRouteIngress2$inboundSchema), z.lazy(() => DeploymentConfigRouteGateway2$inboundSchema), ]), }); export function deploymentConfigExposureCustomFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExposureCustom$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExposureCustom' from JSON`, ); } /** @internal */ export const DeploymentConfigCertificateNone1$inboundSchema: z.ZodType< DeploymentConfigCertificateNone1, unknown > = z.object({ mode: z.literal("none"), }); export function deploymentConfigCertificateNone1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigCertificateNone1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigCertificateNone1' from JSON`, ); } /** @internal */ export const DeploymentConfigCertificateManagedTLSSecret1$inboundSchema: z.ZodType = z.object({ mode: z.literal("managedTlsSecret"), secretNameTemplate: z.string(), }); export function deploymentConfigCertificateManagedTLSSecret1FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigCertificateManagedTLSSecret1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigCertificateManagedTLSSecret1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigCertificateManagedTLSSecret1' from JSON`, ); } /** @internal */ export const DeploymentConfigCertificateAwsAcmArn1$inboundSchema: z.ZodType< DeploymentConfigCertificateAwsAcmArn1, unknown > = z.object({ certificateArn: z.string(), mode: z.literal("awsAcmArn"), }); export function deploymentConfigCertificateAwsAcmArn1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigCertificateAwsAcmArn1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigCertificateAwsAcmArn1' from JSON`, ); } /** @internal */ export const DeploymentConfigCertificateManagedAcmImport1$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 deploymentConfigCertificateManagedAcmImport1FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigCertificateManagedAcmImport1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigCertificateManagedAcmImport1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigCertificateManagedAcmImport1' from JSON`, ); } /** @internal */ export const DeploymentConfigCertificateTLSSecretRef1$inboundSchema: z.ZodType< DeploymentConfigCertificateTLSSecretRef1, unknown > = z.object({ namespace: z.nullable(z.string()).optional(), secretName: z.string(), mode: z.literal("tlsSecretRef"), }); export function deploymentConfigCertificateTLSSecretRef1FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigCertificateTLSSecretRef1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigCertificateTLSSecretRef1$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'DeploymentConfigCertificateTLSSecretRef1' from JSON`, ); } /** @internal */ export const DeploymentConfigCertificateUnion1$inboundSchema: z.ZodType< DeploymentConfigCertificateUnion1, unknown > = z.union([ z.lazy(() => DeploymentConfigCertificateTLSSecretRef1$inboundSchema), z.lazy(() => DeploymentConfigCertificateManagedAcmImport1$inboundSchema), z.lazy(() => DeploymentConfigCertificateAwsAcmArn1$inboundSchema), z.lazy(() => DeploymentConfigCertificateManagedTLSSecret1$inboundSchema), z.lazy(() => DeploymentConfigCertificateNone1$inboundSchema), ]); export function deploymentConfigCertificateUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigCertificateUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigCertificateUnion1' from JSON`, ); } /** @internal */ export const DeploymentConfigModeGenerated$inboundSchema: z.ZodEnum< typeof DeploymentConfigModeGenerated > = z.enum(DeploymentConfigModeGenerated); /** @internal */ export const DeploymentConfigProviderAzureApplicationGatewayForContainersEnum2$inboundSchema: z.ZodEnum< typeof DeploymentConfigProviderAzureApplicationGatewayForContainersEnum2 > = z.enum(DeploymentConfigProviderAzureApplicationGatewayForContainersEnum2); /** @internal */ export const DeploymentConfigProviderAzureApplicationGatewayForContainers2$inboundSchema: z.ZodType< DeploymentConfigProviderAzureApplicationGatewayForContainers2, unknown > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: DeploymentConfigProviderAzureApplicationGatewayForContainersEnum2$inboundSchema, }); export function deploymentConfigProviderAzureApplicationGatewayForContainers2FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigProviderAzureApplicationGatewayForContainers2, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigProviderAzureApplicationGatewayForContainers2$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProviderAzureApplicationGatewayForContainers2' from JSON`, ); } /** @internal */ export const DeploymentConfigProviderGkeGatewayEnum2$inboundSchema: z.ZodEnum< typeof DeploymentConfigProviderGkeGatewayEnum2 > = z.enum(DeploymentConfigProviderGkeGatewayEnum2); /** @internal */ export const DeploymentConfigProviderGkeGateway2$inboundSchema: z.ZodType< DeploymentConfigProviderGkeGateway2, unknown > = z.object({ provider: DeploymentConfigProviderGkeGatewayEnum2$inboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function deploymentConfigProviderGkeGateway2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigProviderGkeGateway2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProviderGkeGateway2' from JSON`, ); } /** @internal */ export const DeploymentConfigProviderAwsAlbEnum2$inboundSchema: z.ZodEnum< typeof DeploymentConfigProviderAwsAlbEnum2 > = z.enum(DeploymentConfigProviderAwsAlbEnum2); /** @internal */ export const DeploymentConfigProviderAwsAlb2$inboundSchema: z.ZodType< DeploymentConfigProviderAwsAlb2, unknown > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: DeploymentConfigProviderAwsAlbEnum2$inboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function deploymentConfigProviderAwsAlb2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigProviderAwsAlb2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProviderAwsAlb2' from JSON`, ); } /** @internal */ export const DeploymentConfigProviderUnion2$inboundSchema: z.ZodType< DeploymentConfigProviderUnion2, unknown > = z.union([ z.lazy(() => DeploymentConfigProviderAwsAlb2$inboundSchema), z.lazy(() => DeploymentConfigProviderAzureApplicationGatewayForContainers2$inboundSchema ), z.lazy(() => DeploymentConfigProviderGkeGateway2$inboundSchema), z.any(), ]); export function deploymentConfigProviderUnion2FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigProviderUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProviderUnion2' from JSON`, ); } /** @internal */ export const DeploymentConfigRouteGateway1$inboundSchema: z.ZodType< DeploymentConfigRouteGateway1, 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(() => DeploymentConfigProviderAwsAlb2$inboundSchema), z.lazy(() => DeploymentConfigProviderAzureApplicationGatewayForContainers2$inboundSchema ), z.lazy(() => DeploymentConfigProviderGkeGateway2$inboundSchema), z.any(), ]), ).optional(), routeApi: z.literal("gateway"), }); export function deploymentConfigRouteGateway1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRouteGateway1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRouteGateway1' from JSON`, ); } /** @internal */ export const DeploymentConfigProviderAzureApplicationGatewayForContainersEnum1$inboundSchema: z.ZodEnum< typeof DeploymentConfigProviderAzureApplicationGatewayForContainersEnum1 > = z.enum(DeploymentConfigProviderAzureApplicationGatewayForContainersEnum1); /** @internal */ export const DeploymentConfigProviderAzureApplicationGatewayForContainers1$inboundSchema: z.ZodType< DeploymentConfigProviderAzureApplicationGatewayForContainers1, unknown > = z.object({ albName: z.nullable(z.string()).optional(), albNamespace: z.nullable(z.string()).optional(), frontend: z.string(), provider: DeploymentConfigProviderAzureApplicationGatewayForContainersEnum1$inboundSchema, }); export function deploymentConfigProviderAzureApplicationGatewayForContainers1FromJSON( jsonString: string, ): SafeParseResult< DeploymentConfigProviderAzureApplicationGatewayForContainers1, SDKValidationError > { return safeParse( jsonString, (x) => DeploymentConfigProviderAzureApplicationGatewayForContainers1$inboundSchema .parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProviderAzureApplicationGatewayForContainers1' from JSON`, ); } /** @internal */ export const DeploymentConfigProviderGkeGatewayEnum1$inboundSchema: z.ZodEnum< typeof DeploymentConfigProviderGkeGatewayEnum1 > = z.enum(DeploymentConfigProviderGkeGatewayEnum1); /** @internal */ export const DeploymentConfigProviderGkeGateway1$inboundSchema: z.ZodType< DeploymentConfigProviderGkeGateway1, unknown > = z.object({ provider: DeploymentConfigProviderGkeGatewayEnum1$inboundSchema, staticAddressName: z.nullable(z.string()).optional(), }); export function deploymentConfigProviderGkeGateway1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigProviderGkeGateway1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProviderGkeGateway1' from JSON`, ); } /** @internal */ export const DeploymentConfigProviderAwsAlbEnum1$inboundSchema: z.ZodEnum< typeof DeploymentConfigProviderAwsAlbEnum1 > = z.enum(DeploymentConfigProviderAwsAlbEnum1); /** @internal */ export const DeploymentConfigProviderAwsAlb1$inboundSchema: z.ZodType< DeploymentConfigProviderAwsAlb1, unknown > = z.object({ ipAddressType: z.nullable(z.string()).optional(), provider: DeploymentConfigProviderAwsAlbEnum1$inboundSchema, scheme: z.string(), subnetIds: z.array(z.string()).optional(), targetType: z.string(), }); export function deploymentConfigProviderAwsAlb1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigProviderAwsAlb1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProviderAwsAlb1' from JSON`, ); } /** @internal */ export const DeploymentConfigProviderUnion1$inboundSchema: z.ZodType< DeploymentConfigProviderUnion1, unknown > = z.union([ z.lazy(() => DeploymentConfigProviderAwsAlb1$inboundSchema), z.lazy(() => DeploymentConfigProviderAzureApplicationGatewayForContainers1$inboundSchema ), z.lazy(() => DeploymentConfigProviderGkeGateway1$inboundSchema), z.any(), ]); export function deploymentConfigProviderUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigProviderUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigProviderUnion1' from JSON`, ); } /** @internal */ export const DeploymentConfigRouteIngress1$inboundSchema: z.ZodType< DeploymentConfigRouteIngress1, 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(() => DeploymentConfigProviderAwsAlb1$inboundSchema), z.lazy(() => DeploymentConfigProviderAzureApplicationGatewayForContainers1$inboundSchema ), z.lazy(() => DeploymentConfigProviderGkeGateway1$inboundSchema), z.any(), ]), ).optional(), routeApi: z.literal("ingress"), }); export function deploymentConfigRouteIngress1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRouteIngress1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRouteIngress1' from JSON`, ); } /** @internal */ export const DeploymentConfigRouteUnion1$inboundSchema: z.ZodType< DeploymentConfigRouteUnion1, unknown > = z.union([ z.lazy(() => DeploymentConfigRouteIngress1$inboundSchema), z.lazy(() => DeploymentConfigRouteGateway1$inboundSchema), ]); export function deploymentConfigRouteUnion1FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigRouteUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigRouteUnion1' from JSON`, ); } /** @internal */ export const DeploymentConfigExposureGenerated$inboundSchema: z.ZodType< DeploymentConfigExposureGenerated, unknown > = z.object({ certificate: z.union([ z.lazy(() => DeploymentConfigCertificateTLSSecretRef1$inboundSchema), z.lazy(() => DeploymentConfigCertificateManagedAcmImport1$inboundSchema), z.lazy(() => DeploymentConfigCertificateAwsAcmArn1$inboundSchema), z.lazy(() => DeploymentConfigCertificateManagedTLSSecret1$inboundSchema), z.lazy(() => DeploymentConfigCertificateNone1$inboundSchema), ]), mode: DeploymentConfigModeGenerated$inboundSchema, route: z.union([ z.lazy(() => DeploymentConfigRouteIngress1$inboundSchema), z.lazy(() => DeploymentConfigRouteGateway1$inboundSchema), ]), }); export function deploymentConfigExposureGeneratedFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExposureGenerated$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExposureGenerated' from JSON`, ); } /** @internal */ export const DeploymentConfigModeDisabled$inboundSchema: z.ZodEnum< typeof DeploymentConfigModeDisabled > = z.enum(DeploymentConfigModeDisabled); /** @internal */ export const DeploymentConfigExposureDisabled$inboundSchema: z.ZodType< DeploymentConfigExposureDisabled, unknown > = z.object({ mode: DeploymentConfigModeDisabled$inboundSchema, }); export function deploymentConfigExposureDisabledFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExposureDisabled$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExposureDisabled' from JSON`, ); } /** @internal */ export const DeploymentConfigExposureUnion$inboundSchema: z.ZodType< DeploymentConfigExposureUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigExposureCustom$inboundSchema), z.lazy(() => DeploymentConfigExposureGenerated$inboundSchema), z.lazy(() => DeploymentConfigExposureDisabled$inboundSchema), z.any(), ]); export function deploymentConfigExposureUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigExposureUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigExposureUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigKubernetes$inboundSchema: z.ZodType< DeploymentConfigKubernetes, unknown > = z.object({ cluster: z.nullable( z.union([z.lazy(() => DeploymentConfigCluster$inboundSchema), z.any()]), ).optional(), exposure: z.nullable( z.union([ z.lazy(() => DeploymentConfigExposureCustom$inboundSchema), z.lazy(() => DeploymentConfigExposureGenerated$inboundSchema), z.lazy(() => DeploymentConfigExposureDisabled$inboundSchema), z.any(), ]), ).optional(), }); export function deploymentConfigKubernetesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigKubernetes$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigKubernetes' from JSON`, ); } /** @internal */ export const DeploymentConfigKubernetesUnion$inboundSchema: z.ZodType< DeploymentConfigKubernetesUnion, unknown > = z.union([z.lazy(() => DeploymentConfigKubernetes$inboundSchema), z.any()]); export function deploymentConfigKubernetesUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigKubernetesUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigKubernetesUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeByoVnetAzure$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeByoVnetAzure > = z.enum(DeploymentConfigTypeByoVnetAzure); /** @internal */ export const DeploymentConfigNetworkByoVnetAzure$inboundSchema: z.ZodType< DeploymentConfigNetworkByoVnetAzure, 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: DeploymentConfigTypeByoVnetAzure$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 deploymentConfigNetworkByoVnetAzureFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigNetworkByoVnetAzure$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigNetworkByoVnetAzure' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeByoVpcGcp$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeByoVpcGcp > = z.enum(DeploymentConfigTypeByoVpcGcp); /** @internal */ export const DeploymentConfigNetworkByoVpcGcp$inboundSchema: z.ZodType< DeploymentConfigNetworkByoVpcGcp, unknown > = z.object({ network_name: z.string(), region: z.string(), subnet_name: z.string(), type: DeploymentConfigTypeByoVpcGcp$inboundSchema, }).transform((v) => { return remap$(v, { "network_name": "networkName", "subnet_name": "subnetName", }); }); export function deploymentConfigNetworkByoVpcGcpFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigNetworkByoVpcGcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigNetworkByoVpcGcp' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeByoVpcAws$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeByoVpcAws > = z.enum(DeploymentConfigTypeByoVpcAws); /** @internal */ export const DeploymentConfigNetworkByoVpcAws$inboundSchema: z.ZodType< DeploymentConfigNetworkByoVpcAws, 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: DeploymentConfigTypeByoVpcAws$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 deploymentConfigNetworkByoVpcAwsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigNetworkByoVpcAws$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigNetworkByoVpcAws' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeCreate$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeCreate > = z.enum(DeploymentConfigTypeCreate); /** @internal */ export const DeploymentConfigNetworkCreate$inboundSchema: z.ZodType< DeploymentConfigNetworkCreate, unknown > = z.object({ availability_zones: z.int().optional(), cidr: z.nullable(z.string()).optional(), type: DeploymentConfigTypeCreate$inboundSchema, }).transform((v) => { return remap$(v, { "availability_zones": "availabilityZones", }); }); export function deploymentConfigNetworkCreateFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigNetworkCreate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigNetworkCreate' from JSON`, ); } /** @internal */ export const DeploymentConfigTypeUseDefault$inboundSchema: z.ZodEnum< typeof DeploymentConfigTypeUseDefault > = z.enum(DeploymentConfigTypeUseDefault); /** @internal */ export const DeploymentConfigNetworkUseDefault$inboundSchema: z.ZodType< DeploymentConfigNetworkUseDefault, unknown > = z.object({ type: DeploymentConfigTypeUseDefault$inboundSchema, }); export function deploymentConfigNetworkUseDefaultFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigNetworkUseDefault$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigNetworkUseDefault' from JSON`, ); } /** @internal */ export const DeploymentConfigNetworkUnion$inboundSchema: z.ZodType< DeploymentConfigNetworkUnion, unknown > = z.union([ z.lazy(() => DeploymentConfigNetworkByoVpcAws$inboundSchema), z.lazy(() => DeploymentConfigNetworkByoVpcGcp$inboundSchema), z.lazy(() => DeploymentConfigNetworkByoVnetAzure$inboundSchema), z.lazy(() => DeploymentConfigNetworkUseDefault$inboundSchema), z.lazy(() => DeploymentConfigNetworkCreate$inboundSchema), z.any(), ]); export function deploymentConfigNetworkUnionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigNetworkUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigNetworkUnion' from JSON`, ); } /** @internal */ export const DeploymentConfigTelemetry$inboundSchema: z.ZodEnum< typeof DeploymentConfigTelemetry > = z.enum(DeploymentConfigTelemetry); /** @internal */ export const DeploymentConfigUpdates$inboundSchema: z.ZodEnum< typeof DeploymentConfigUpdates > = z.enum(DeploymentConfigUpdates); /** @internal */ export const DeploymentConfigStackSettings$inboundSchema: z.ZodType< DeploymentConfigStackSettings, unknown > = z.object({ compute: z.nullable( z.union([z.lazy(() => DeploymentConfigCompute$inboundSchema), z.any()]), ).optional(), deploymentModel: DeploymentConfigDeploymentModel$inboundSchema.optional(), domains: z.nullable( z.union([z.lazy(() => DeploymentConfigDomains$inboundSchema), z.any()]), ).optional(), externalBindings: z.nullable( z.lazy(() => DeploymentConfigStackSettingsExternalBindings$inboundSchema), ).optional(), heartbeats: DeploymentConfigHeartbeats$inboundSchema.optional(), kubernetes: z.nullable( z.union([z.lazy(() => DeploymentConfigKubernetes$inboundSchema), z.any()]), ).optional(), network: z.nullable( z.union([ z.lazy(() => DeploymentConfigNetworkByoVpcAws$inboundSchema), z.lazy(() => DeploymentConfigNetworkByoVpcGcp$inboundSchema), z.lazy(() => DeploymentConfigNetworkByoVnetAzure$inboundSchema), z.lazy(() => DeploymentConfigNetworkUseDefault$inboundSchema), z.lazy(() => DeploymentConfigNetworkCreate$inboundSchema), z.any(), ]), ).optional(), publicEndpoints: z.nullable( z.record(z.string(), z.record(z.string(), z.string())), ).optional(), telemetry: DeploymentConfigTelemetry$inboundSchema.optional(), updates: DeploymentConfigUpdates$inboundSchema.optional(), }); export function deploymentConfigStackSettingsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfigStackSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfigStackSettings' from JSON`, ); } /** @internal */ export const DeploymentConfig$inboundSchema: z.ZodType< DeploymentConfig, unknown > = z.object({ allowFrozenChanges: z.boolean().optional(), basePlatform: z.nullable( z.union([DeploymentConfigBasePlatformEnum$inboundSchema, z.any()]), ).optional(), computeBackend: z.nullable( z.union([ z.lazy(() => DeploymentConfigComputeBackendHorizon$inboundSchema), z.any(), ]), ).optional(), deploymentName: z.nullable(z.string()).optional(), deploymentToken: z.nullable(z.string()).optional(), domainMetadata: z.nullable( z.union([ z.lazy(() => DeploymentConfigDomainMetadata$inboundSchema), z.any(), ]), ).optional(), environmentVariables: z.lazy(() => DeploymentConfigEnvironmentVariables$inboundSchema ), externalBindings: z.record( z.string(), z.union([ z.lazy(() => DeploymentConfigExternalBindingsAi$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsContainerAppsEnvironment$inboundSchema ), z.union([ z.lazy(() => DeploymentConfigExternalBindingsS3$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsBlob$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsGcs$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsLocalStorage$inboundSchema ), ]), z.union([ z.lazy(() => DeploymentConfigExternalBindingsSqs$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsPubsub$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsServicebus$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsLocalQueue$inboundSchema), ]), z.union([ z.lazy(() => DeploymentConfigExternalBindingsDynamodb$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsFirestore$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsTablestorage$inboundSchema ), z.lazy(() => DeploymentConfigExternalBindingsRedis$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsLocalKv$inboundSchema), ]), z.union([ z.lazy(() => DeploymentConfigExternalBindingsEcr$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsAcr$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsGar$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsLocal$inboundSchema), ]), z.union([ z.lazy(() => DeploymentConfigExternalBindingsParameterStore$inboundSchema ), z.lazy(() => DeploymentConfigExternalBindingsSecretManager$inboundSchema ), z.lazy(() => DeploymentConfigExternalBindingsKeyVault$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsKubernetesSecret$inboundSchema ), z.lazy(() => DeploymentConfigExternalBindingsLocalVault$inboundSchema), ]), z.union([ z.lazy(() => DeploymentConfigExternalBindingsAurora$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsCloudSQL$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsFlexibleServer$inboundSchema ), z.lazy(() => DeploymentConfigExternalBindingsExternal$inboundSchema), z.lazy(() => DeploymentConfigExternalBindingsLocalPostgres$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(() => DeploymentConfigManagementConfigAzure$inboundSchema), z.lazy(() => DeploymentConfigManagementConfigAws$inboundSchema), z.lazy(() => DeploymentConfigManagementConfigGcp$inboundSchema), z.lazy(() => DeploymentConfigManagementConfigKubernetes$inboundSchema), z.any(), ]), ).optional(), managerUrl: z.nullable(z.string()).optional(), monitoring: z.nullable( z.union([z.lazy(() => DeploymentConfigMonitoring$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(() => DeploymentConfigStackSettings$inboundSchema) .optional(), }); export function deploymentConfigFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentConfig' from JSON`, ); }