import * as z from "zod/v4"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export type ConfigureProjectSourceGlobals = { /** * Workspace name. Platform API keys already select a workspace; other authentication methods can configure it once on the SDK client. */ workspace?: string | undefined; }; /** * Template root directory inside alienplatform/alien */ export declare const ConfigureProjectSourceTemplatePathRequest: { readonly ExamplesCustomerModelsTs: "examples/customer-models-ts"; readonly ExamplesRemoteWorkerTs: "examples/remote-worker-ts"; readonly ExamplesGithubAgentPackagesRemoteAgent: "examples/github-agent/packages/remote-agent"; readonly ExamplesEndpointAgent: "examples/endpoint-agent"; readonly ExamplesByocDatabase: "examples/byoc-database"; }; /** * Template root directory inside alienplatform/alien */ export type ConfigureProjectSourceTemplatePathRequest = ClosedEnum; export type TemplateRequest = { mode: "template"; targetNamespace: string; /** * Template root directory inside alienplatform/alien */ templatePath: ConfigureProjectSourceTemplatePathRequest; /** * The name of a directory or relative path to the source code of your project. When null is used it will default to the project root */ rootDirectory?: string | null | undefined; }; /** * The Git Provider of the repository */ export declare const ConfigureProjectSourceTypeRequest: { readonly Github: "github"; }; /** * The Git Provider of the repository */ export type ConfigureProjectSourceTypeRequest = ClosedEnum; export type ConfigureProjectSourceGitRepositoryRequest = { /** * The Git Provider of the repository */ type: ConfigureProjectSourceTypeRequest; /** * The name of the git repository */ repo: string; }; export type ConfigureProjectSourceRepository = { mode: "repository"; gitRepository: ConfigureProjectSourceGitRepositoryRequest; /** * The name of a directory or relative path to the source code of your project. When null is used it will default to the project root */ rootDirectory?: string | null | undefined; }; export type ConfigureProjectSourceRequestBody = ConfigureProjectSourceRepository | TemplateRequest; export type ConfigureProjectSourceRequest = { /** * Project ID or name. */ idOrName: string; requestBody?: ConfigureProjectSourceRepository | TemplateRequest | undefined; }; /** * The Git Provider of the repository */ export declare const ConfigureProjectSourceTypeResponse: { readonly Github: "github"; }; /** * The Git Provider of the repository */ export type ConfigureProjectSourceTypeResponse = ClosedEnum; /** * Verified source repository connected to the project. Alien uses this for GitHub Actions setup and source-aware features; releases are still created explicitly by CI or `alien release`. */ export type ConfigureProjectSourceGitRepositoryResponse = { /** * The Git Provider of the repository */ type: ConfigureProjectSourceTypeResponse; /** * The name of the git repository */ repo: string; }; /** * Customer-facing deployment portal appearance settings. */ export type ConfigureProjectSourceDeploymentPortalAppearance = { /** * Optional project-specific avatar override for the deployment portal. */ avatarUrl?: string | null | undefined; /** * Curated visual style for the deployment portal. */ preset: models.DeploymentPortalAppearancePreset; /** * Accent color used for highlights and primary actions. */ accentColor: models.DeploymentPortalAccentColor; /** * Optional portal title. Defaults to the project name. */ title?: string | null | undefined; /** * Optional customer-facing subtitle. */ subtitle?: string | null | undefined; /** * Optional support or contact URL. */ supportUrl?: string | null | undefined; /** * Optional documentation URL. */ docsUrl?: string | null | undefined; /** * Layout density for portal content. */ density: models.DeploymentPortalDensity; }; /** * Target OS and architecture for compiled binaries. * * @remarks * * Used as keys in package output maps (CLI binaries, Terraform providers, etc.) * and for cross-compilation target selection during builds. */ export declare const ConfigureProjectSourceBinaryTarget: { readonly WindowsX64: "windows-x64"; readonly LinuxX64: "linux-x64"; readonly LinuxArm64: "linux-arm64"; readonly DarwinArm64: "darwin-arm64"; }; /** * Target OS and architecture for compiled binaries. * * @remarks * * Used as keys in package output maps (CLI binaries, Terraform providers, etc.) * and for cross-compilation target selection during builds. */ export type ConfigureProjectSourceBinaryTarget = ClosedEnum; /** * CLI package configuration. If null, CLI packages will not be generated. */ export type ConfigureProjectSourceCli = { /** * Binary targets required by this package's setup consumer. * * @remarks * * Older package rows omit this field and retain the historical all-target * behavior. Callers creating new packages should state their target set. */ binaryTargets?: Array | undefined; /** * Human-friendly display name for help banners and about text */ displayName: string; /** * Binary name displayed in help and usage (e.g., "acmectl") */ name: string; /** * Whether CLI package generation is enabled */ enabled: boolean; }; /** * CloudFormation package configuration. If null, CloudFormation packages will not be generated. */ export type ConfigureProjectSourceCloudformation = { /** * Whether CloudFormation package generation is enabled */ enabled: boolean; /** * Human-friendly application name shown in generated install artifacts */ displayName?: string | null | undefined; }; /** * Operator image package configuration. Required when Helm is enabled. If null, Operator image packages will not be generated. */ export type ConfigureProjectSourceOperatorImage = { /** * Short brand slug used for generated resource names. */ brand?: string | null | undefined; /** * Human-friendly display name for logs and startup messages */ displayName: string; /** * Branded environment variable prefix (e.g., "ACME"). */ envPrefix?: string | null | undefined; /** * Branded Kubernetes/cloud label domain (e.g., "acme.dev"). */ labelDomain?: string | null | undefined; /** * Image name (e.g., "acme-operator") */ name: string; /** * Whether Operator image package generation is enabled */ enabled: boolean; }; /** * Helm chart package configuration. If null, Helm packages will not be generated. */ export type ConfigureProjectSourceHelm = { /** * Chart name (e.g., "acme-operator") */ chartName: string; /** * Human-friendly description of the chart */ description: string; /** * Whether Helm chart package generation is enabled */ enabled: boolean; }; /** * Terraform package configuration. If null, Terraform packages will not be generated. */ export type ConfigureProjectSourceTerraform = { /** * Whether Terraform package generation is enabled */ enabled: boolean; /** * Human-friendly application name shown in generated install artifacts */ displayName?: string | null | undefined; }; /** * Configuration for embedded packages (CLI, CloudFormation, Helm, Terraform) */ export type ConfigureProjectSourcePackagesConfig = { /** * CLI package configuration. If null, CLI packages will not be generated. */ cli?: ConfigureProjectSourceCli | null | undefined; /** * CloudFormation package configuration. If null, CloudFormation packages will not be generated. */ cloudformation?: ConfigureProjectSourceCloudformation | null | undefined; /** * Operator image package configuration. Required when Helm is enabled. If null, Operator image packages will not be generated. */ operatorImage?: ConfigureProjectSourceOperatorImage | null | undefined; /** * Helm chart package configuration. If null, Helm packages will not be generated. */ helm?: ConfigureProjectSourceHelm | null | undefined; /** * Terraform package configuration. If null, Terraform packages will not be generated. */ terraform?: ConfigureProjectSourceTerraform | null | undefined; }; /** * Project default private managers for new push deployments. */ export type ConfigureProjectSourceDefaultManagers = { /** * Unique identifier for a default private manager. */ aws?: string | null | undefined; /** * Unique identifier for a default private manager. */ gcp?: string | null | undefined; /** * Unique identifier for a default private manager. */ azure?: string | null | undefined; /** * Unique identifier for a default private manager. */ kubernetes?: string | null | undefined; /** * Unique identifier for a default private manager. */ machines?: string | null | undefined; /** * Unique identifier for a default private manager. */ local?: string | null | undefined; }; export declare const ConfigureProjectSourceMethod: { readonly Framework: "framework"; readonly RemoteOperator: "remote-operator"; }; export type ConfigureProjectSourceMethod = ClosedEnum; export type ConfigureProjectSourceDeployments = { enabled: boolean; methods?: Array | undefined; }; export type ConfigureProjectSourceKeys = { enabled: boolean; applicationEncryption: boolean; }; export declare const ConfigureProjectSourceAllowedProvider: { readonly AwsBedrock: "aws-bedrock"; readonly GcpVertex: "gcp-vertex"; readonly AzureFoundry: "azure-foundry"; readonly Anthropic: "anthropic"; readonly Databricks: "databricks"; readonly Openai: "openai"; }; export type ConfigureProjectSourceAllowedProvider = ClosedEnum; export declare const ConfigureProjectSourceClientApi: { readonly OpenaiChat: "openai-chat"; readonly OpenaiResponses: "openai-responses"; readonly AnthropicMessages: "anthropic-messages"; }; export type ConfigureProjectSourceClientApi = ClosedEnum; export type ConfigureProjectSourceRequirement = { publicModelId: string; clientApis: Array; required: boolean; }; export type ConfigureProjectSourceModels = { enabled: boolean; allowedProviders: Array; requirements: Array; }; export declare const ConfigureProjectSourceAccess: { readonly ReadWrite: "read-write"; }; export type ConfigureProjectSourceAccess = ClosedEnum; export type ConfigureProjectSourceBuckets = { enabled: boolean; access: ConfigureProjectSourceAccess; }; export declare const ConfigureProjectSourceCredentialPolicy: { readonly PullOnly: "pull-only"; readonly PushAndPull: "push-and-pull"; }; export type ConfigureProjectSourceCredentialPolicy = ClosedEnum; export type ConfigureProjectSourceRegistry = { enabled: boolean; repositories: Array; credentialPolicy: ConfigureProjectSourceCredentialPolicy; }; export type ConfigureProjectSourceAzure = { catalogImage: string; idleSuspendSeconds: number; }; export type ConfigureProjectSourceRemoteSandbox = { enabled: boolean; baseImage?: string | undefined; azure?: ConfigureProjectSourceAzure | undefined; maxLifetimeSeconds?: number | undefined; }; export type ConfigureProjectSourceCapabilities = { deployments?: ConfigureProjectSourceDeployments | undefined; keys?: ConfigureProjectSourceKeys | undefined; models?: ConfigureProjectSourceModels | undefined; buckets?: ConfigureProjectSourceBuckets | undefined; registry?: ConfigureProjectSourceRegistry | undefined; remoteSandbox?: ConfigureProjectSourceRemoteSandbox | undefined; }; /** * Capabilities this Project may offer through setup links. */ export type ConfigureProjectSourceProjectCapabilities = { schemaVersion: number; capabilities: ConfigureProjectSourceCapabilities; }; export type ConfigureProjectSourceGithubSetup = { /** * URL to the pull request with the Alien build workflow */ pullRequestUrl: string; /** * URL to the GitHub Actions workflow */ workflowUrl: string; }; export declare const ConfigureProjectSourceSourceRepository: { readonly AlienplatformAlien: "alienplatform/alien"; }; export type ConfigureProjectSourceSourceRepository = ClosedEnum; /** * Template root directory inside alienplatform/alien */ export declare const ConfigureProjectSourceTemplatePathResponse: { readonly ExamplesCustomerModelsTs: "examples/customer-models-ts"; readonly ExamplesRemoteWorkerTs: "examples/remote-worker-ts"; readonly ExamplesGithubAgentPackagesRemoteAgent: "examples/github-agent/packages/remote-agent"; readonly ExamplesEndpointAgent: "examples/endpoint-agent"; readonly ExamplesByocDatabase: "examples/byoc-database"; }; /** * Template root directory inside alienplatform/alien */ export type ConfigureProjectSourceTemplatePathResponse = ClosedEnum; export type ConfigureProjectSourceTemplateResponse = { sourceRepository: ConfigureProjectSourceSourceRepository; /** * Fork repository in / format */ forkRepository: string; /** * Template root directory inside alienplatform/alien */ templatePath: ConfigureProjectSourceTemplatePathResponse; resolvedRootDirectory: string; }; /** * Project source connected. */ export type ConfigureProjectSourceResponse = { /** * Unique identifier for the project. */ id: string; /** * Project name. */ name: string; /** * Verified source repository connected to the project. Alien uses this for GitHub Actions setup and source-aware features; releases are still created explicitly by CI or `alien release`. */ gitRepository?: ConfigureProjectSourceGitRepositoryResponse | null | undefined; /** * The name of a directory or relative path to the source code of your project. When null is used it will default to the project root */ rootDirectory?: string | null | undefined; /** * Customer-facing deployment portal appearance settings. */ deploymentPortalAppearance?: ConfigureProjectSourceDeploymentPortalAppearance | null | undefined; /** * Configuration for embedded packages (CLI, CloudFormation, Helm, Terraform) */ packagesConfig?: ConfigureProjectSourcePackagesConfig | null | undefined; /** * Selected domain for this project (null = default system domain) */ domainId?: string | null | undefined; /** * Project default private managers for new push deployments. */ defaultManagers?: ConfigureProjectSourceDefaultManagers | null | undefined; /** * Capabilities this Project may offer through setup links. */ projectCapabilities?: ConfigureProjectSourceProjectCapabilities | null | undefined; createdAt: Date; /** * Unique identifier for the workspace. */ workspaceId: string; githubSetup?: ConfigureProjectSourceGithubSetup | undefined; gitRepositoryWarning?: models.APIError | undefined; template?: ConfigureProjectSourceTemplateResponse | undefined; }; /** @internal */ export declare const ConfigureProjectSourceTemplatePathRequest$outboundSchema: z.ZodEnum; /** @internal */ export type TemplateRequest$Outbound = { mode: "template"; targetNamespace: string; templatePath: string; rootDirectory?: string | null | undefined; }; /** @internal */ export declare const TemplateRequest$outboundSchema: z.ZodType; export declare function templateRequestToJSON(templateRequest: TemplateRequest): string; /** @internal */ export declare const ConfigureProjectSourceTypeRequest$outboundSchema: z.ZodEnum; /** @internal */ export type ConfigureProjectSourceGitRepositoryRequest$Outbound = { type: string; repo: string; }; /** @internal */ export declare const ConfigureProjectSourceGitRepositoryRequest$outboundSchema: z.ZodType; export declare function configureProjectSourceGitRepositoryRequestToJSON(configureProjectSourceGitRepositoryRequest: ConfigureProjectSourceGitRepositoryRequest): string; /** @internal */ export type ConfigureProjectSourceRepository$Outbound = { mode: "repository"; gitRepository: ConfigureProjectSourceGitRepositoryRequest$Outbound; rootDirectory?: string | null | undefined; }; /** @internal */ export declare const ConfigureProjectSourceRepository$outboundSchema: z.ZodType; export declare function configureProjectSourceRepositoryToJSON(configureProjectSourceRepository: ConfigureProjectSourceRepository): string; /** @internal */ export type ConfigureProjectSourceRequestBody$Outbound = ConfigureProjectSourceRepository$Outbound | TemplateRequest$Outbound; /** @internal */ export declare const ConfigureProjectSourceRequestBody$outboundSchema: z.ZodType; export declare function configureProjectSourceRequestBodyToJSON(configureProjectSourceRequestBody: ConfigureProjectSourceRequestBody): string; /** @internal */ export type ConfigureProjectSourceRequest$Outbound = { idOrName: string; RequestBody?: ConfigureProjectSourceRepository$Outbound | TemplateRequest$Outbound | undefined; }; /** @internal */ export declare const ConfigureProjectSourceRequest$outboundSchema: z.ZodType; export declare function configureProjectSourceRequestToJSON(configureProjectSourceRequest: ConfigureProjectSourceRequest): string; /** @internal */ export declare const ConfigureProjectSourceTypeResponse$inboundSchema: z.ZodEnum; /** @internal */ export declare const ConfigureProjectSourceGitRepositoryResponse$inboundSchema: z.ZodType; export declare function configureProjectSourceGitRepositoryResponseFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceDeploymentPortalAppearance$inboundSchema: z.ZodType; export declare function configureProjectSourceDeploymentPortalAppearanceFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceBinaryTarget$inboundSchema: z.ZodEnum; /** @internal */ export declare const ConfigureProjectSourceCli$inboundSchema: z.ZodType; export declare function configureProjectSourceCliFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceCloudformation$inboundSchema: z.ZodType; export declare function configureProjectSourceCloudformationFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceOperatorImage$inboundSchema: z.ZodType; export declare function configureProjectSourceOperatorImageFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceHelm$inboundSchema: z.ZodType; export declare function configureProjectSourceHelmFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceTerraform$inboundSchema: z.ZodType; export declare function configureProjectSourceTerraformFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourcePackagesConfig$inboundSchema: z.ZodType; export declare function configureProjectSourcePackagesConfigFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceDefaultManagers$inboundSchema: z.ZodType; export declare function configureProjectSourceDefaultManagersFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceMethod$inboundSchema: z.ZodEnum; /** @internal */ export declare const ConfigureProjectSourceDeployments$inboundSchema: z.ZodType; export declare function configureProjectSourceDeploymentsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceKeys$inboundSchema: z.ZodType; export declare function configureProjectSourceKeysFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceAllowedProvider$inboundSchema: z.ZodEnum; /** @internal */ export declare const ConfigureProjectSourceClientApi$inboundSchema: z.ZodEnum; /** @internal */ export declare const ConfigureProjectSourceRequirement$inboundSchema: z.ZodType; export declare function configureProjectSourceRequirementFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceModels$inboundSchema: z.ZodType; export declare function configureProjectSourceModelsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceAccess$inboundSchema: z.ZodEnum; /** @internal */ export declare const ConfigureProjectSourceBuckets$inboundSchema: z.ZodType; export declare function configureProjectSourceBucketsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceCredentialPolicy$inboundSchema: z.ZodEnum; /** @internal */ export declare const ConfigureProjectSourceRegistry$inboundSchema: z.ZodType; export declare function configureProjectSourceRegistryFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceAzure$inboundSchema: z.ZodType; export declare function configureProjectSourceAzureFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceRemoteSandbox$inboundSchema: z.ZodType; export declare function configureProjectSourceRemoteSandboxFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceCapabilities$inboundSchema: z.ZodType; export declare function configureProjectSourceCapabilitiesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceProjectCapabilities$inboundSchema: z.ZodType; export declare function configureProjectSourceProjectCapabilitiesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceGithubSetup$inboundSchema: z.ZodType; export declare function configureProjectSourceGithubSetupFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceSourceRepository$inboundSchema: z.ZodEnum; /** @internal */ export declare const ConfigureProjectSourceTemplatePathResponse$inboundSchema: z.ZodEnum; /** @internal */ export declare const ConfigureProjectSourceTemplateResponse$inboundSchema: z.ZodType; export declare function configureProjectSourceTemplateResponseFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConfigureProjectSourceResponse$inboundSchema: z.ZodType; export declare function configureProjectSourceResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=configureprojectsource.d.ts.map