import { z } from 'zod'; import { PieceType } from '../pieces/piece'; export declare const PROJECT_REPLACE_SCHEMA_VERSION = 1; export declare const RequiredPiece: z.ZodObject<{ name: z.ZodString; version: z.ZodString; pieceType: z.ZodEnum; }, z.core.$strip>; export type RequiredPiece = z.infer; export declare const ProjectReplaceRequest: z.ZodObject<{ schemaVersion: z.ZodLiteral<1>; sourceActivepiecesVersion: z.ZodString; flows: z.ZodArray>; folderId: z.ZodOptional>; status: z.ZodEnum; publishedVersionId: z.ZodOptional>; metadata: z.ZodOptional>>; operationStatus: z.ZodEnum; timeSavedPerRun: z.ZodOptional>; templateId: z.ZodOptional>; createdBy: z.ZodOptional; id: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"AGENT">; id: z.ZodString; }, z.core.$strip>], "type">>>; id: z.ZodString; created: z.ZodPipe, z.ZodString>; updated: z.ZodPipe, z.ZodString>; version: z.ZodObject<{ flowId: z.ZodString; displayName: z.ZodString; trigger: z.ZodUnion; settings: z.ZodObject<{ sampleData: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; lastTestDate: z.ZodOptional; }, z.core.$strip>>; propertySettings: z.ZodRecord; schema: z.ZodOptional; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; pieceName: z.ZodString; pieceVersion: z.ZodString; triggerName: z.ZodOptional; input: z.ZodRecord; }, z.core.$strip>; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; nextAction: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; settings: z.ZodAny; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; nextAction: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>]>; updatedBy: z.ZodOptional>; valid: z.ZodBoolean; schemaVersion: z.ZodOptional>; agentIds: z.ZodArray; state: z.ZodEnum; connectionIds: z.ZodArray; backupFiles: z.ZodOptional>>; notes: z.ZodArray>; color: z.ZodEnum; position: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; size: z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>>; id: z.ZodString; created: z.ZodPipe, z.ZodString>; updated: z.ZodPipe, z.ZodString>; }, z.core.$strip>; triggerSource: z.ZodOptional; cronExpression: z.ZodString; timezone: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>>; }, z.core.$strip>>; tables: z.ZodArray>; }, z.core.$strip>>>; externalId: z.ZodString; }, z.core.$strip>>; status: z.ZodOptional>>; trigger: z.ZodOptional>>; }, z.core.$strip>>; folders: z.ZodArray>; connections: z.ZodArray>; requiredPieces: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>; export type ProjectReplaceRequest = z.infer; export declare enum ProjectReplaceErrorKind { AP_VERSION_MISMATCH = "AP_VERSION_MISMATCH", PIECE_VERSION_MISMATCH = "PIECE_VERSION_MISMATCH", CONNECTION_PIECE_MISMATCH = "CONNECTION_PIECE_MISMATCH" } export declare const ProjectReplacePreflightError: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral; sourceVersion: z.ZodString; destVersion: z.ZodString; message: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral; pieceName: z.ZodString; sourceVersion: z.ZodString; destVersion: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral; externalId: z.ZodString; expectedPieceName: z.ZodString; foundPieceName: z.ZodString; }, z.core.$strip>], "kind">; export type ProjectReplacePreflightError = z.infer; export declare const PieceInstallFailure: z.ZodObject<{ pieceName: z.ZodString; version: z.ZodString; pieceType: z.ZodEnum; message: z.ZodString; }, z.core.$strip>; export type PieceInstallFailure = z.infer; export declare const ProjectReplacePreflightFailure: z.ZodObject<{ errors: z.ZodArray; sourceVersion: z.ZodString; destVersion: z.ZodString; message: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral; pieceName: z.ZodString; sourceVersion: z.ZodString; destVersion: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral; externalId: z.ZodString; expectedPieceName: z.ZodString; foundPieceName: z.ZodString; }, z.core.$strip>], "kind">>; }, z.core.$strip>; export type ProjectReplacePreflightFailure = z.infer; export declare enum ProjectReplaceItemKind { FLOW = "flow", TABLE = "table", FOLDER = "folder", CONNECTION = "connection" } export declare enum ProjectReplaceItemOp { CREATE = "CREATE", UPDATE = "UPDATE", DELETE = "DELETE" } export declare const ProjectReplaceItemFailure: z.ZodObject<{ kind: z.ZodEnum; externalId: z.ZodString; op: z.ZodEnum; error: z.ZodString; }, z.core.$strip>; export type ProjectReplaceItemFailure = z.infer; export declare const ProjectReplaceApplied: z.ZodObject<{ flowsCreated: z.ZodNumber; flowsUpdated: z.ZodNumber; flowsDeleted: z.ZodNumber; flowsUnchanged: z.ZodNumber; tablesCreated: z.ZodNumber; tablesUpdated: z.ZodNumber; tablesDeleted: z.ZodNumber; tablesUnchanged: z.ZodNumber; foldersCreated: z.ZodNumber; foldersUpdated: z.ZodNumber; foldersDeleted: z.ZodNumber; foldersUnchanged: z.ZodNumber; connectionsCreated: z.ZodNumber; connectionsUpdated: z.ZodNumber; connectionsUnchanged: z.ZodNumber; }, z.core.$strip>; export type ProjectReplaceApplied = z.infer; export declare const ConnectionAwaitingAuthorization: z.ZodObject<{ externalId: z.ZodString; pieceName: z.ZodString; displayName: z.ZodString; }, z.core.$strip>; export type ConnectionAwaitingAuthorization = z.infer; export declare const InstalledPiece: z.ZodObject<{ name: z.ZodString; version: z.ZodString; pieceType: z.ZodEnum; }, z.core.$strip>; export type InstalledPiece = z.infer; export declare const ProjectReplaceResponse: z.ZodObject<{ applied: z.ZodObject<{ flowsCreated: z.ZodNumber; flowsUpdated: z.ZodNumber; flowsDeleted: z.ZodNumber; flowsUnchanged: z.ZodNumber; tablesCreated: z.ZodNumber; tablesUpdated: z.ZodNumber; tablesDeleted: z.ZodNumber; tablesUnchanged: z.ZodNumber; foldersCreated: z.ZodNumber; foldersUpdated: z.ZodNumber; foldersDeleted: z.ZodNumber; foldersUnchanged: z.ZodNumber; connectionsCreated: z.ZodNumber; connectionsUpdated: z.ZodNumber; connectionsUnchanged: z.ZodNumber; }, z.core.$strip>; failed: z.ZodArray; externalId: z.ZodString; op: z.ZodEnum; error: z.ZodString; }, z.core.$strip>>; connectionsAwaitingAuthorization: z.ZodArray>; piecesInstalled: z.ZodArray; }, z.core.$strip>>; durationMs: z.ZodNumber; }, z.core.$strip>; export type ProjectReplaceResponse = z.infer; //# sourceMappingURL=project-replace.d.ts.map