import { z } from 'zod'; export { CredentialEntrySchema, type CredentialEntry, RoleConfigSchema, type RoleConfig, RoleCredentialRefSchema, type RoleCredentialRef, } from '@generacy-ai/credhelper'; export declare const ClusterStatusSchema: z.ZodEnum<["bootstrapping", "ready", "degraded", "error"]>; export type ClusterStatus = z.infer; export declare const DeploymentModeSchema: z.ZodEnum<["local", "cloud"]>; export type DeploymentMode = z.infer; export declare const ClusterVariantSchema: z.ZodEnum<["cluster-base", "cluster-microservices"]>; export type ClusterVariant = z.infer; export declare const ClusterStateSchema: z.ZodObject<{ status: z.ZodEnum<["bootstrapping", "ready", "degraded", "error"]>; deploymentMode: z.ZodEnum<["local", "cloud"]>; variant: z.ZodEnum<["cluster-base", "cluster-microservices"]>; lastSeen: z.ZodString; statusReason: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "bootstrapping" | "ready" | "degraded" | "error"; deploymentMode: "local" | "cloud"; variant: "cluster-base" | "cluster-microservices"; lastSeen: string; statusReason?: string | undefined; }, { status: "bootstrapping" | "ready" | "degraded" | "error"; deploymentMode: "local" | "cloud"; variant: "cluster-base" | "cluster-microservices"; lastSeen: string; statusReason?: string | undefined; }>; export type ClusterState = z.infer; export declare const StatusUpdateSchema: z.ZodObject<{ status: z.ZodEnum<["bootstrapping", "ready", "degraded", "error"]>; statusReason: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "bootstrapping" | "ready" | "degraded" | "error"; statusReason?: string | undefined; }, { status: "bootstrapping" | "ready" | "degraded" | "error"; statusReason?: string | undefined; }>; export type StatusUpdate = z.infer; export declare const LifecycleActionSchema: z.ZodEnum<["bootstrap-complete", "clone-peer-repos", "code-server-start", "code-server-stop", "prepare-workspace", "stop", "vscode-tunnel-start", "vscode-tunnel-stop", "vscode-tunnel-unregister", "worker-scale"]>; export type LifecycleAction = z.infer; export declare const ClonePeerReposBodySchema: z.ZodObject<{ repos: z.ZodArray; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { repos: string[]; token?: string | undefined; }, { repos: string[]; token?: string | undefined; }>; export type ClonePeerReposBody = z.infer; export declare const WorkerScaleBodySchema: z.ZodObject<{ count: z.ZodNumber; }, "strip", z.ZodTypeAny, { count: number; }, { count: number; }>; export type WorkerScaleBody = z.infer; export declare const WorkerScaleSuccessResponseSchema: z.ZodObject<{ accepted: z.ZodLiteral; action: z.ZodLiteral<"worker-scale">; previousCount: z.ZodNumber; requestedCount: z.ZodNumber; actualCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { accepted: true; action: "worker-scale"; previousCount: number; requestedCount: number; actualCount: number; }, { accepted: true; action: "worker-scale"; previousCount: number; requestedCount: number; actualCount: number; }>; export type WorkerScaleSuccessResponse = z.infer; export declare const WorkerScalePartialResponseSchema: z.ZodObject<{ accepted: z.ZodLiteral; action: z.ZodLiteral<"worker-scale">; partial: z.ZodLiteral; previousCount: z.ZodNumber; requestedCount: z.ZodNumber; actualCount: z.ZodNumber; error: z.ZodObject<{ code: z.ZodLiteral<"PARTIAL_SCALE">; message: z.ZodString; }, "strip", z.ZodTypeAny, { code: "PARTIAL_SCALE"; message: string; }, { code: "PARTIAL_SCALE"; message: string; }>; }, "strip", z.ZodTypeAny, { error: { code: "PARTIAL_SCALE"; message: string; }; accepted: true; action: "worker-scale"; previousCount: number; requestedCount: number; actualCount: number; partial: true; }, { error: { code: "PARTIAL_SCALE"; message: string; }; accepted: true; action: "worker-scale"; previousCount: number; requestedCount: number; actualCount: number; partial: true; }>; export type WorkerScalePartialResponse = z.infer; export declare const LifecycleResponseSchema: z.ZodObject<{ accepted: z.ZodLiteral; action: z.ZodEnum<["bootstrap-complete", "clone-peer-repos", "code-server-start", "code-server-stop", "prepare-workspace", "stop", "vscode-tunnel-start", "vscode-tunnel-stop", "vscode-tunnel-unregister", "worker-scale"]>; }, "strip", z.ZodTypeAny, { accepted: true; action: "bootstrap-complete" | "clone-peer-repos" | "code-server-start" | "code-server-stop" | "prepare-workspace" | "stop" | "vscode-tunnel-start" | "vscode-tunnel-stop" | "vscode-tunnel-unregister" | "worker-scale"; }, { accepted: true; action: "bootstrap-complete" | "clone-peer-repos" | "code-server-start" | "code-server-stop" | "prepare-workspace" | "stop" | "vscode-tunnel-start" | "vscode-tunnel-stop" | "vscode-tunnel-unregister" | "worker-scale"; }>; export type LifecycleResponse = z.infer; export declare const CodeServerStartResponseSchema: z.ZodObject<{ status: z.ZodEnum<["starting", "running"]>; socket_path: z.ZodString; }, "strip", z.ZodTypeAny, { status: "starting" | "running"; socket_path: string; }, { status: "starting" | "running"; socket_path: string; }>; export type CodeServerStartResponse = z.infer; export declare const CredentialStubResponseSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodString; backend: z.ZodString; backendKey: z.ZodString; status: z.ZodEnum<["active", "pending", "error"]>; createdAt: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; status: "error" | "active" | "pending"; id: string; backend: string; backendKey: string; createdAt: string; }, { type: string; status: "error" | "active" | "pending"; id: string; backend: string; backendKey: string; createdAt: string; }>; export type CredentialStubResponse = z.infer; export declare const AuditActionSchema: z.ZodEnum<["session.begin", "session.end", "credential.mint", "credential.resolve", "credential.refresh", "exposure.render", "proxy.docker", "proxy.localhost"]>; export declare const AuditEntrySchema: z.ZodObject<{ timestamp: z.ZodString; action: z.ZodEnum<["session.begin", "session.end", "credential.mint", "credential.resolve", "credential.refresh", "exposure.render", "proxy.docker", "proxy.localhost"]>; actor: z.ZodObject<{ workerId: z.ZodString; sessionId: z.ZodOptional; }, "strip", z.ZodTypeAny, { workerId: string; sessionId?: string | undefined; }, { workerId: string; sessionId?: string | undefined; }>; clusterId: z.ZodString; credentialId: z.ZodOptional; role: z.ZodOptional; pluginId: z.ZodOptional; success: z.ZodBoolean; errorCode: z.ZodOptional; exposureKind: z.ZodOptional; proxy: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; method: string; decision: "allow" | "deny"; }, { path: string; method: string; decision: "allow" | "deny"; }>>; }, "strip", z.ZodTypeAny, { action: "session.begin" | "session.end" | "credential.mint" | "credential.resolve" | "credential.refresh" | "exposure.render" | "proxy.docker" | "proxy.localhost"; timestamp: string; actor: { workerId: string; sessionId?: string | undefined; }; clusterId: string; success: boolean; credentialId?: string | undefined; role?: string | undefined; pluginId?: string | undefined; errorCode?: string | undefined; exposureKind?: string | undefined; proxy?: { path: string; method: string; decision: "allow" | "deny"; } | undefined; }, { action: "session.begin" | "session.end" | "credential.mint" | "credential.resolve" | "credential.refresh" | "exposure.render" | "proxy.docker" | "proxy.localhost"; timestamp: string; actor: { workerId: string; sessionId?: string | undefined; }; clusterId: string; success: boolean; credentialId?: string | undefined; role?: string | undefined; pluginId?: string | undefined; errorCode?: string | undefined; exposureKind?: string | undefined; proxy?: { path: string; method: string; decision: "allow" | "deny"; } | undefined; }>; export declare const AuditBatchSchema: z.ZodObject<{ entries: z.ZodArray; actor: z.ZodObject<{ workerId: z.ZodString; sessionId: z.ZodOptional; }, "strip", z.ZodTypeAny, { workerId: string; sessionId?: string | undefined; }, { workerId: string; sessionId?: string | undefined; }>; clusterId: z.ZodString; credentialId: z.ZodOptional; role: z.ZodOptional; pluginId: z.ZodOptional; success: z.ZodBoolean; errorCode: z.ZodOptional; exposureKind: z.ZodOptional; proxy: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; method: string; decision: "allow" | "deny"; }, { path: string; method: string; decision: "allow" | "deny"; }>>; }, "strip", z.ZodTypeAny, { action: "session.begin" | "session.end" | "credential.mint" | "credential.resolve" | "credential.refresh" | "exposure.render" | "proxy.docker" | "proxy.localhost"; timestamp: string; actor: { workerId: string; sessionId?: string | undefined; }; clusterId: string; success: boolean; credentialId?: string | undefined; role?: string | undefined; pluginId?: string | undefined; errorCode?: string | undefined; exposureKind?: string | undefined; proxy?: { path: string; method: string; decision: "allow" | "deny"; } | undefined; }, { action: "session.begin" | "session.end" | "credential.mint" | "credential.resolve" | "credential.refresh" | "exposure.render" | "proxy.docker" | "proxy.localhost"; timestamp: string; actor: { workerId: string; sessionId?: string | undefined; }; clusterId: string; success: boolean; credentialId?: string | undefined; role?: string | undefined; pluginId?: string | undefined; errorCode?: string | undefined; exposureKind?: string | undefined; proxy?: { path: string; method: string; decision: "allow" | "deny"; } | undefined; }>, "many">; droppedSinceLastBatch: z.ZodNumber; }, "strip", z.ZodTypeAny, { entries: { action: "session.begin" | "session.end" | "credential.mint" | "credential.resolve" | "credential.refresh" | "exposure.render" | "proxy.docker" | "proxy.localhost"; timestamp: string; actor: { workerId: string; sessionId?: string | undefined; }; clusterId: string; success: boolean; credentialId?: string | undefined; role?: string | undefined; pluginId?: string | undefined; errorCode?: string | undefined; exposureKind?: string | undefined; proxy?: { path: string; method: string; decision: "allow" | "deny"; } | undefined; }[]; droppedSinceLastBatch: number; }, { entries: { action: "session.begin" | "session.end" | "credential.mint" | "credential.resolve" | "credential.refresh" | "exposure.render" | "proxy.docker" | "proxy.localhost"; timestamp: string; actor: { workerId: string; sessionId?: string | undefined; }; clusterId: string; success: boolean; credentialId?: string | undefined; role?: string | undefined; pluginId?: string | undefined; errorCode?: string | undefined; exposureKind?: string | undefined; proxy?: { path: string; method: string; decision: "allow" | "deny"; } | undefined; }[]; droppedSinceLastBatch: number; }>; export type AuditEntry = z.infer; export type AuditBatch = z.infer; export declare const ErrorResponseSchema: z.ZodObject<{ error: z.ZodString; code: z.ZodString; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { error: string; code: string; details?: unknown; }, { error: string; code: string; details?: unknown; }>; export type ErrorResponse = z.infer; export declare const GitTokenRequestSchema: z.ZodObject<{ credentialId: z.ZodOptional; }, "strip", z.ZodTypeAny, { credentialId?: string | undefined; }, { credentialId?: string | undefined; }>; export type GitTokenRequest = z.infer; export declare const GitTokenResponseSchema: z.ZodObject<{ token: z.ZodString; expiresAt: z.ZodString; }, "strip", z.ZodTypeAny, { token: string; expiresAt: string; }, { token: string; expiresAt: string; }>; export type GitTokenResponseShape = z.infer; export declare const CloudPullResponseSchema: z.ZodObject<{ token: z.ZodString; expiresAt: z.ZodString; }, "strip", z.ZodTypeAny, { token: string; expiresAt: string; }, { token: string; expiresAt: string; }>; export type CloudPullResponseShape = z.infer; export declare const AppConfigEnvEntrySchema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional; secret: z.ZodDefault; default: z.ZodOptional; required: z.ZodDefault; }, "strip", z.ZodTypeAny, { name: string; secret: boolean; required: boolean; default?: string | undefined; description?: string | undefined; }, { name: string; default?: string | undefined; description?: string | undefined; secret?: boolean | undefined; required?: boolean | undefined; }>; export declare const AppConfigFileEntrySchema: z.ZodObject<{ id: z.ZodString; description: z.ZodOptional; mountPath: z.ZodString; required: z.ZodDefault; }, "strip", z.ZodTypeAny, { id: string; required: boolean; mountPath: string; description?: string | undefined; }, { id: string; mountPath: string; description?: string | undefined; required?: boolean | undefined; }>; export declare const AppConfigSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"1">; env: z.ZodDefault; secret: z.ZodDefault; default: z.ZodOptional; required: z.ZodDefault; }, "strip", z.ZodTypeAny, { name: string; secret: boolean; required: boolean; default?: string | undefined; description?: string | undefined; }, { name: string; default?: string | undefined; description?: string | undefined; secret?: boolean | undefined; required?: boolean | undefined; }>, "many">>; files: z.ZodDefault; mountPath: z.ZodString; required: z.ZodDefault; }, "strip", z.ZodTypeAny, { id: string; required: boolean; mountPath: string; description?: string | undefined; }, { id: string; mountPath: string; description?: string | undefined; required?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { schemaVersion: "1"; env: { name: string; secret: boolean; required: boolean; default?: string | undefined; description?: string | undefined; }[]; files: { id: string; required: boolean; mountPath: string; description?: string | undefined; }[]; }, { schemaVersion: "1"; env?: { name: string; default?: string | undefined; description?: string | undefined; secret?: boolean | undefined; required?: boolean | undefined; }[] | undefined; files?: { id: string; mountPath: string; description?: string | undefined; required?: boolean | undefined; }[] | undefined; }>; export type AppConfig = z.infer; export declare const PutAppConfigEnvBodySchema: z.ZodObject<{ name: z.ZodString; value: z.ZodString; secret: z.ZodDefault; }, "strip", z.ZodTypeAny, { value: string; name: string; secret: boolean; }, { value: string; name: string; secret?: boolean | undefined; }>; export type PutAppConfigEnvBody = z.infer; export declare const PostAppConfigFileBodySchema: z.ZodObject<{ data: z.ZodString; }, "strip", z.ZodTypeAny, { data: string; }, { data: string; }>; export type PostAppConfigFileBody = z.infer; //# sourceMappingURL=schemas.d.ts.map