import { z } from 'zod'; import { type APIClient } from '@agentuity/api'; export declare const Resources: z.ZodObject<{ memory: z.ZodDefault; cpu: z.ZodDefault; disk: z.ZodDefault; }, z.core.$strip>; export declare const Mode: z.ZodObject<{ type: z.ZodDefault>; idle: z.ZodOptional; }, z.core.$strip>; export declare const ProjectBuildConfig: z.ZodObject<{ timeout: z.ZodOptional; resources: z.ZodOptional; cpu: z.ZodOptional; disk: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export declare const DeploymentConfig: z.ZodObject<{ resources: z.ZodOptional; cpu: z.ZodDefault; disk: z.ZodDefault; }, z.core.$strip>>; mode: z.ZodOptional>; idle: z.ZodOptional; }, z.core.$strip>>; dependencies: z.ZodOptional>; domains: z.ZodOptional>; }, z.core.$strip>; export declare const BuildEvalSchema: z.ZodObject<{ filename: z.ZodString; version: z.ZodString; id: z.ZodString; identifier: z.ZodString; name: z.ZodString; description: z.ZodOptional; agentIdentifier: z.ZodString; projectId: z.ZodString; }, z.core.$strip>; export declare const BuildAgentSchema: z.ZodObject<{ filename: z.ZodString; version: z.ZodString; id: z.ZodString; agentId: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodOptional; evals: z.ZodOptional; agentIdentifier: z.ZodString; projectId: z.ZodString; }, z.core.$strip>>>; schema: z.ZodOptional; output: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; /** * Launch process definition — describes how to start the application. * Produced by the buildpack pipeline for any framework. */ export declare const LaunchProcessSchema: z.ZodObject<{ type: z.ZodString; command: z.ZodString; default: z.ZodBoolean; workingDirectory: z.ZodOptional; }, z.core.$strip>; export declare const LaunchMetadataSchema: z.ZodObject<{ processes: z.ZodArray; }, z.core.$strip>>; framework: z.ZodObject<{ name: z.ZodString; version: z.ZodOptional; }, z.core.$strip>; runtime: z.ZodObject<{ name: z.ZodString; port: z.ZodOptional; }, z.core.$strip>; build: z.ZodObject<{ date: z.ZodString; duration: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; export type LaunchMetadata = z.infer; export declare const BuildMetadataSchema: z.ZodObject<{ routes: z.ZodDefault; version: z.ZodString; type: z.ZodEnum<{ api: "api"; cron: "cron"; email: "email"; sms: "sms"; sse: "sse"; stream: "stream"; websocket: "websocket"; }>; agentIds: z.ZodOptional>; config: z.ZodOptional>; schema: z.ZodOptional; output: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>>; agents: z.ZodDefault; evals: z.ZodOptional; agentIdentifier: z.ZodString; projectId: z.ZodString; }, z.core.$strip>>>; schema: z.ZodOptional; output: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>>; assets: z.ZodArray; size: z.ZodNumber; }, z.core.$strip>>; project: z.ZodObject<{ id: z.ZodString; name: z.ZodString; version: z.ZodOptional; description: z.ZodOptional; keywords: z.ZodOptional>; orgId: z.ZodString; }, z.core.$strip>; deployment: z.ZodIntersection; cpu: z.ZodDefault; disk: z.ZodDefault; }, z.core.$strip>>; mode: z.ZodOptional>; idle: z.ZodOptional; }, z.core.$strip>>; dependencies: z.ZodOptional>; domains: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; date: z.ZodString; git: z.ZodOptional; commit: z.ZodOptional; message: z.ZodOptional; branch: z.ZodOptional; tags: z.ZodOptional>; pr: z.ZodOptional; provider: z.ZodOptional; trigger: z.ZodOptional>; url: z.ZodOptional; buildUrl: z.ZodOptional; event: z.ZodOptional>>; pull_request: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; build: z.ZodObject<{ bun: z.ZodString; agentuity: z.ZodString; arch: z.ZodString; platform: z.ZodString; }, z.core.$strip>; source: z.ZodOptional>; channel: z.ZodOptional>; rollout_org_ids: z.ZodOptional>; }, z.core.$strip>>; launch: z.ZodOptional; }, z.core.$strip>>; framework: z.ZodObject<{ name: z.ZodString; version: z.ZodOptional; }, z.core.$strip>; runtime: z.ZodObject<{ name: z.ZodString; port: z.ZodOptional; }, z.core.$strip>; build: z.ZodObject<{ date: z.ZodString; duration: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>; export type BuildMetadata = z.infer; export declare const CreateProjectDeploymentSchema: z.ZodObject<{ id: z.ZodString; orgId: z.ZodString; publicKey: z.ZodString; buildLogsStreamURL: z.ZodOptional; }, z.core.$strip>; export declare const CreateProjectDeploymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ success: z.ZodLiteral; message: z.ZodString; code: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ success: z.ZodLiteral; data: z.ZodObject<{ id: z.ZodString; orgId: z.ZodString; publicKey: z.ZodString; buildLogsStreamURL: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>], "success">; export type Deployment = z.infer; /** * Create a new project deployment * * @param client * @param projectId * @returns */ export declare function projectDeploymentCreate(client: APIClient, projectId: string, deploymentConfig?: z.infer): Promise; export declare const DeploymentInstructionsSchema: z.ZodObject<{ deployment: z.ZodString; assets: z.ZodRecord; }, z.core.$strip>; export declare const DeploymentInstructionsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ success: z.ZodLiteral; message: z.ZodString; code: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ success: z.ZodLiteral; data: z.ZodObject<{ deployment: z.ZodString; assets: z.ZodRecord; }, z.core.$strip>; }, z.core.$strip>], "success">; export type DeploymentInstructions = z.infer; /** * Update the deployment with the build metadata * * @param client * @param deploymentId * @returns */ export declare function projectDeploymentUpdate(client: APIClient, deploymentId: string, deployment: BuildMetadata, signal?: AbortSignal): Promise; export declare const DeploymentCompleteSchema: z.ZodObject<{ streamId: z.ZodOptional; rolloutId: z.ZodOptional; publicUrls: z.ZodObject<{ latest: z.ZodString; deployment: z.ZodString; custom: z.ZodArray; vanityDeployment: z.ZodOptional>; vanityProject: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; export declare const DeploymentCompleteResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ success: z.ZodLiteral; message: z.ZodString; code: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ success: z.ZodLiteral; data: z.ZodObject<{ streamId: z.ZodOptional; rolloutId: z.ZodOptional; publicUrls: z.ZodObject<{ latest: z.ZodString; deployment: z.ZodString; custom: z.ZodArray; vanityDeployment: z.ZodOptional>; vanityProject: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>], "success">; export type DeploymentComplete = z.infer; export declare const DeploymentStateValue: z.ZodEnum<{ building: "building"; completed: "completed"; deploying: "deploying"; failed: "failed"; pending: "pending"; }>; export type DeploymentState = z.infer; export declare const DeploymentStatusSchema: z.ZodObject<{ state: z.ZodEnum<{ building: "building"; completed: "completed"; deploying: "deploying"; failed: "failed"; pending: "pending"; }>; }, z.core.$strip>; export declare const DeploymentStatusResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ success: z.ZodLiteral; message: z.ZodString; code: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ success: z.ZodLiteral; data: z.ZodObject<{ state: z.ZodEnum<{ building: "building"; completed: "completed"; deploying: "deploying"; failed: "failed"; pending: "pending"; }>; }, z.core.$strip>; }, z.core.$strip>], "success">; export type DeploymentStatusResult = z.infer; /** * Complete the deployment once build is uploaded * * @param client * @param deploymentId * @returns */ export declare function projectDeploymentComplete(client: APIClient, deploymentId: string, signal?: AbortSignal): Promise; /** * Get the current provisioning status of a deployment * * @param client * @param deploymentId * @returns */ export declare function projectDeploymentStatus(client: APIClient, deploymentId: string, signal?: AbortSignal): Promise; export declare const ClientDiagnosticsErrorSchema: z.ZodObject<{ type: z.ZodEnum<{ file: "file"; general: "general"; }>; scope: z.ZodEnum<{ ast: "ast"; build: "build"; bundler: "bundler"; deploy: "deploy"; typescript: "typescript"; validation: "validation"; }>; path: z.ZodOptional; line: z.ZodOptional; column: z.ZodOptional; message: z.ZodString; code: z.ZodOptional; }, z.core.$strip>; export declare const ClientDiagnosticsTimingSchema: z.ZodObject<{ name: z.ZodString; startedAt: z.ZodString; completedAt: z.ZodString; durationMs: z.ZodNumber; }, z.core.$strip>; export declare const ClientDiagnosticsSchema: z.ZodObject<{ success: z.ZodBoolean; errors: z.ZodArray; scope: z.ZodEnum<{ ast: "ast"; build: "build"; bundler: "bundler"; deploy: "deploy"; typescript: "typescript"; validation: "validation"; }>; path: z.ZodOptional; line: z.ZodOptional; column: z.ZodOptional; message: z.ZodString; code: z.ZodOptional; }, z.core.$strip>>; warnings: z.ZodArray; scope: z.ZodEnum<{ ast: "ast"; build: "build"; bundler: "bundler"; deploy: "deploy"; typescript: "typescript"; validation: "validation"; }>; path: z.ZodOptional; line: z.ZodOptional; column: z.ZodOptional; message: z.ZodString; code: z.ZodOptional; }, z.core.$strip>>; diagnostics: z.ZodArray>; error: z.ZodOptional; }, z.core.$strip>; export declare const DeploymentFailPayloadSchema: z.ZodObject<{ error: z.ZodOptional; diagnostics: z.ZodOptional; scope: z.ZodEnum<{ ast: "ast"; build: "build"; bundler: "bundler"; deploy: "deploy"; typescript: "typescript"; validation: "validation"; }>; path: z.ZodOptional; line: z.ZodOptional; column: z.ZodOptional; message: z.ZodString; code: z.ZodOptional; }, z.core.$strip>>; warnings: z.ZodArray; scope: z.ZodEnum<{ ast: "ast"; build: "build"; bundler: "bundler"; deploy: "deploy"; typescript: "typescript"; validation: "validation"; }>; path: z.ZodOptional; line: z.ZodOptional; column: z.ZodOptional; message: z.ZodString; code: z.ZodOptional; }, z.core.$strip>>; diagnostics: z.ZodArray>; error: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export type ClientDiagnosticsError = z.infer; export type ClientDiagnosticsTiming = z.infer; export type ClientDiagnostics = z.infer; export type DeploymentFailPayload = z.infer; export declare const DeploymentFailResponseSchema: z.ZodObject<{ state: z.ZodLiteral<"failed">; }, z.core.$strip>; export declare const DeploymentFailAPIResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ success: z.ZodLiteral; message: z.ZodString; code: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ success: z.ZodLiteral; data: z.ZodObject<{ state: z.ZodLiteral<"failed">; }, z.core.$strip>; }, z.core.$strip>], "success">; /** * Report a deployment failure from the client * * @param client * @param deploymentId * @param payload - Error message and/or structured diagnostics * @returns */ export declare function projectDeploymentFail(client: APIClient, deploymentId: string, payload: DeploymentFailPayload): Promise; //# sourceMappingURL=deploy.d.ts.map