import { z } from 'zod'; export type FactoryRouteContract = { method: 'GET' | 'POST' | 'PATCH' | 'DELETE'; path: string; description: string; pathSchema?: z.ZodType; querySchema?: z.ZodType; bodySchema?: z.ZodType; responseSchema: z.ZodType; }; export declare const UUID_PATTERN = "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"; export declare const createProjectBodySchema: z.ZodObject<{ name: z.ZodString; description: z.ZodDefault>, z.ZodNull]>>>; modelScope: z.ZodOptional>; }, z.core.$strip>; export declare const updateProjectBodySchema: z.ZodObject<{ name: z.ZodOptional; description: z.ZodOptional>, z.ZodNull]>>; defaultModelId: z.ZodOptional>, z.ZodNull]>>; modelScope: z.ZodOptional>; autoRunEnabled: z.ZodOptional; autoApprovePlans: z.ZodOptional; }, z.core.$strip>; /** The configured FactorySandbox as factory describes it: provider id, JSON Schema of its settings, capabilities. */ export declare const environmentSandboxSchema: z.ZodObject<{ provider: z.ZodString; settingsSchema: z.ZodRecord; capabilities: z.ZodObject<{ template: z.ZodBoolean; builds: z.ZodObject<{ available: z.ZodBoolean; history: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>; /** When the environment builds on its own; present only when the sandbox can build. */ export declare const environmentBuildTriggersSchema: z.ZodObject<{ schedule: z.ZodObject<{ enabled: z.ZodBoolean; cron: z.ZodNullable; timezone: z.ZodNullable; scheduleAvailable: z.ZodBoolean; }, z.core.$strip>; push: z.ZodObject<{ enabled: z.ZodBoolean; debounceMinutes: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; /** The last build factory asked the provider for, from the project row only; status is read live. */ export declare const environmentLastBuildSchema: z.ZodObject<{ buildId: z.ZodString; attemptedAt: z.ZodNullable; }, z.core.$strip>; export declare const projectEnvironmentResponseSchema: z.ZodObject<{ environment: z.ZodObject<{ sandbox: z.ZodObject<{ provider: z.ZodString; settingsSchema: z.ZodRecord; capabilities: z.ZodObject<{ template: z.ZodBoolean; builds: z.ZodObject<{ available: z.ZodBoolean; history: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>; settings: z.ZodRecord; sandboxWorkingDirectory: z.ZodNullable; workspaceSetupCommand: z.ZodNullable; activeTemplateId: z.ZodNullable; activeTemplateHeads: z.ZodNullable>; repositories: z.ZodArray; defaultBranch: z.ZodNullable; position: z.ZodNumber; inEnvironment: z.ZodBoolean; setupCommand: z.ZodNullable; teardownCommand: z.ZodNullable; lastBuildStatus: z.ZodEnum<{ unbuilt: "unbuilt"; configured: "configured"; failed: "failed"; }>; lastBuildError: z.ZodNullable; lastBuiltAt: z.ZodNullable; }, z.core.$strip>>; buildTriggers: z.ZodOptional; timezone: z.ZodNullable; scheduleAvailable: z.ZodBoolean; }, z.core.$strip>; push: z.ZodObject<{ enabled: z.ZodBoolean; debounceMinutes: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>>; build: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; }, z.core.$strip>; export declare const environmentBuildStartResponseSchema: z.ZodObject<{ outcome: z.ZodEnum<{ started: "started"; failed: "failed"; skipped: "skipped"; unavailable: "unavailable"; }>; buildId: z.ZodOptional; templateId: z.ZodOptional; reason: z.ZodOptional; }, z.core.$strip>; export declare const environmentBuildSchema: z.ZodObject<{ buildId: z.ZodString; status: z.ZodEnum<{ unknown: "unknown"; failed: "failed"; pending: "pending"; ready: "ready"; building: "building"; }>; templateId: z.ZodOptional; startedAt: z.ZodOptional; finishedAt: z.ZodOptional; error: z.ZodOptional; logs: z.ZodOptional>; }, z.core.$strip>; export declare const environmentBuildsResponseSchema: z.ZodObject<{ builds: z.ZodArray; templateId: z.ZodOptional; startedAt: z.ZodOptional; finishedAt: z.ZodOptional; error: z.ZodOptional; logs: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; export declare const environmentBuildResponseSchema: z.ZodObject<{ build: z.ZodObject<{ buildId: z.ZodString; status: z.ZodEnum<{ unknown: "unknown"; failed: "failed"; pending: "pending"; ready: "ready"; building: "building"; }>; templateId: z.ZodOptional; startedAt: z.ZodOptional; finishedAt: z.ZodOptional; error: z.ZodOptional; logs: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; export declare const updateProjectEnvironmentBodySchema: z.ZodObject<{ sandboxWorkingDirectory: z.ZodOptional>, z.ZodNull]>>; settings: z.ZodOptional>>; workspaceSetupCommand: z.ZodOptional>, z.ZodNull]>>; buildTriggers: z.ZodOptional; timezone: z.ZodOptional; }, z.core.$strip>>; push: z.ZodOptional; debounceMinutes: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; repositories: z.ZodOptional; inEnvironment: z.ZodOptional; setupCommand: z.ZodOptional>, z.ZodNull]>>; teardownCommand: z.ZodOptional>, z.ZodNull]>>; }, z.core.$strip>>>; }, z.core.$strip>; export declare const createWorkItemBodySchema: z.ZodObject<{ title: z.ZodPipe>, z.ZodString>; board: z.ZodOptional; externalSource: z.ZodOptional; }, z.core.$strip>>>; parentWorkItemId: z.ZodOptional>; stages: z.ZodOptional>; sessions: z.ZodOptional>>; metadata: z.ZodOptional, z.ZodNull]>, z.ZodTransform<{ [x: string]: unknown; } | null, Record | null>>>; }, z.core.$strip>; export declare const updateWorkItemBodySchema: z.ZodObject<{ title: z.ZodOptional>, z.ZodString>>; board: z.ZodOptional; parentWorkItemId: z.ZodOptional>; stages: z.ZodOptional>; sessions: z.ZodOptional>>; metadata: z.ZodOptional, z.ZodNull]>, z.ZodTransform<{ [x: string]: unknown; } | null, Record | null>>>; plansPreapproved: z.ZodOptional>; }, z.core.$strip>; export declare const transitionBodySchema: z.ZodPipe; }, z.core.$strip>, z.ZodTransform<{ reenter?: boolean | undefined; board: string; stage: string; expectedRevision: number; ingress: { type: "human"; identity: string; }; cause: string; }, { board: string; stage: string; expectedRevision: number; requestId: string; cause: string; reenter?: unknown; }>>; export declare const startWorkItemBodySchema: z.ZodObject<{ sessionId: z.ZodString; threadTitle: z.ZodString; kickoffKey: z.ZodString; workItem: z.ZodObject<{ id: z.ZodString; role: z.ZodString; input: z.ZodObject<{ title: z.ZodPipe>, z.ZodString>; board: z.ZodOptional; externalSource: z.ZodOptional; }, z.core.$strip>>>; parentWorkItemId: z.ZodOptional>; stages: z.ZodOptional>; sessions: z.ZodOptional>>; metadata: z.ZodOptional, z.ZodNull]>, z.ZodTransform<{ [x: string]: unknown; } | null, Record | null>>>; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>; export declare const automationRunStartBodySchema: z.ZodObject<{ requestId: z.ZodString; expectedRevision: z.ZodNumber; role: z.ZodEnum<{ [x: string]: string; }>; skillName: z.ZodString; arguments: z.ZodOptional; }, z.core.$strict>; export declare const metricsQuerySchema: z.ZodObject<{ from: z.ZodOptional; to: z.ZodOptional; }, z.core.$strip>; export declare const decisionQuerySchema: z.ZodObject<{ statuses: z.ZodPipe, z.ZodTransform<("dismissed" | "retry" | "failed" | "pending" | "proposed" | "superseded" | "leased" | "succeeded")[] | undefined, string | undefined>>; before: z.ZodPipe, z.ZodTransform<{ createdAt: Date; id: string; } | undefined, string | undefined>>; limit: z.ZodPipe, z.ZodTransform>; }, z.core.$strip>; type AttentionStreamPosition = { occurredAt: Date; id: string; }; export declare const attentionQuerySchema: z.ZodObject<{ view: z.ZodDefault>>; kind: z.ZodOptional>>; before: z.ZodPipe, z.ZodTransform | undefined, string | undefined>>; limit: z.ZodPipe, z.ZodTransform>; search: z.ZodPipe, z.ZodTransform>; }, z.core.$strip>; export declare const FACTORY_ROUTE_CONTRACTS: { readonly projectList: { readonly method: "GET"; readonly path: "/web/factory/projects"; readonly description: "List Factory projects for the current organization"; readonly responseSchema: z.ZodObject<{ projects: z.ZodArray>; }, z.core.$strip>; }; readonly projectCreate: { readonly method: "POST"; readonly path: "/web/factory/projects"; readonly description: "Create a Factory project"; readonly bodySchema: z.ZodObject<{ name: z.ZodString; description: z.ZodDefault>, z.ZodNull]>>>; modelScope: z.ZodOptional>; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ project: z.ZodRecord; }, z.core.$strip>; }; readonly projectGet: { readonly method: "GET"; readonly path: "/web/factory/projects/:id"; readonly description: "Get a Factory project"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ project: z.ZodRecord; }, z.core.$strip>; }; readonly projectUpdate: { readonly method: "PATCH"; readonly path: "/web/factory/projects/:id"; readonly description: "Update a Factory project"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly bodySchema: z.ZodObject<{ name: z.ZodOptional; description: z.ZodOptional>, z.ZodNull]>>; defaultModelId: z.ZodOptional>, z.ZodNull]>>; modelScope: z.ZodOptional>; autoRunEnabled: z.ZodOptional; autoApprovePlans: z.ZodOptional; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ project: z.ZodRecord; }, z.core.$strip>; }; readonly projectEnvironmentGet: { readonly method: "GET"; readonly path: "/web/factory/projects/:id/environment"; readonly description: "Get the sandbox environment of a Factory project: provider settings and its repositories in order"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ environment: z.ZodObject<{ sandbox: z.ZodObject<{ provider: z.ZodString; settingsSchema: z.ZodRecord; capabilities: z.ZodObject<{ template: z.ZodBoolean; builds: z.ZodObject<{ available: z.ZodBoolean; history: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>; settings: z.ZodRecord; sandboxWorkingDirectory: z.ZodNullable; workspaceSetupCommand: z.ZodNullable; activeTemplateId: z.ZodNullable; activeTemplateHeads: z.ZodNullable>; repositories: z.ZodArray; defaultBranch: z.ZodNullable; position: z.ZodNumber; inEnvironment: z.ZodBoolean; setupCommand: z.ZodNullable; teardownCommand: z.ZodNullable; lastBuildStatus: z.ZodEnum<{ unbuilt: "unbuilt"; configured: "configured"; failed: "failed"; }>; lastBuildError: z.ZodNullable; lastBuiltAt: z.ZodNullable; }, z.core.$strip>>; buildTriggers: z.ZodOptional; timezone: z.ZodNullable; scheduleAvailable: z.ZodBoolean; }, z.core.$strip>; push: z.ZodObject<{ enabled: z.ZodBoolean; debounceMinutes: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>>; build: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; }, z.core.$strip>; }; readonly projectEnvironmentUpdate: { readonly method: "PATCH"; readonly path: "/web/factory/projects/:id/environment"; readonly description: "Update the sandbox environment of a Factory project: provider settings, repository order and setup"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly bodySchema: z.ZodObject<{ sandboxWorkingDirectory: z.ZodOptional>, z.ZodNull]>>; settings: z.ZodOptional>>; workspaceSetupCommand: z.ZodOptional>, z.ZodNull]>>; buildTriggers: z.ZodOptional; timezone: z.ZodOptional; }, z.core.$strip>>; push: z.ZodOptional; debounceMinutes: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; repositories: z.ZodOptional; inEnvironment: z.ZodOptional; setupCommand: z.ZodOptional>, z.ZodNull]>>; teardownCommand: z.ZodOptional>, z.ZodNull]>>; }, z.core.$strip>>>; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ environment: z.ZodObject<{ sandbox: z.ZodObject<{ provider: z.ZodString; settingsSchema: z.ZodRecord; capabilities: z.ZodObject<{ template: z.ZodBoolean; builds: z.ZodObject<{ available: z.ZodBoolean; history: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>; settings: z.ZodRecord; sandboxWorkingDirectory: z.ZodNullable; workspaceSetupCommand: z.ZodNullable; activeTemplateId: z.ZodNullable; activeTemplateHeads: z.ZodNullable>; repositories: z.ZodArray; defaultBranch: z.ZodNullable; position: z.ZodNumber; inEnvironment: z.ZodBoolean; setupCommand: z.ZodNullable; teardownCommand: z.ZodNullable; lastBuildStatus: z.ZodEnum<{ unbuilt: "unbuilt"; configured: "configured"; failed: "failed"; }>; lastBuildError: z.ZodNullable; lastBuiltAt: z.ZodNullable; }, z.core.$strip>>; buildTriggers: z.ZodOptional; timezone: z.ZodNullable; scheduleAvailable: z.ZodBoolean; }, z.core.$strip>; push: z.ZodObject<{ enabled: z.ZodBoolean; debounceMinutes: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>>; build: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; }, z.core.$strip>; }; readonly projectEnvironmentBuild: { readonly method: "POST"; readonly path: "/web/factory/projects/:id/environment/build"; readonly description: "Build the sandbox environment template of a Factory project now"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ outcome: z.ZodEnum<{ started: "started"; failed: "failed"; skipped: "skipped"; unavailable: "unavailable"; }>; buildId: z.ZodOptional; templateId: z.ZodOptional; reason: z.ZodOptional; }, z.core.$strip>; }; readonly projectEnvironmentBuilds: { readonly method: "GET"; readonly path: "/web/factory/projects/:id/environment/builds"; readonly description: "List the environment template builds of a Factory project, newest first, when the provider keeps history"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ builds: z.ZodArray; templateId: z.ZodOptional; startedAt: z.ZodOptional; finishedAt: z.ZodOptional; error: z.ZodOptional; logs: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; }; readonly projectEnvironmentBuildGet: { readonly method: "GET"; readonly path: "/web/factory/projects/:id/environment/builds/:buildId"; readonly description: "Get the live status of one environment template build of a Factory project"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; buildId: z.ZodString; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ build: z.ZodObject<{ buildId: z.ZodString; status: z.ZodEnum<{ unknown: "unknown"; failed: "failed"; pending: "pending"; ready: "ready"; building: "building"; }>; templateId: z.ZodOptional; startedAt: z.ZodOptional; finishedAt: z.ZodOptional; error: z.ZodOptional; logs: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; }; readonly projectApplyDefaultModel: { readonly method: "POST"; readonly path: "/web/factory/projects/:id/apply-default-model"; readonly description: "Apply the Factory default model to running work and review threads"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ modelId: z.ZodString; applied: z.ZodArray; skipped: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>; }; readonly projectDelete: { readonly method: "DELETE"; readonly path: "/web/factory/projects/:id"; readonly description: "Delete a Factory project"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly responseSchema: z.ZodNull; }; readonly metricsGet: { readonly method: "GET"; readonly path: "/web/factory/projects/:id/metrics"; readonly description: "Get Factory project metrics"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly querySchema: z.ZodObject<{ from: z.ZodOptional; to: z.ZodOptional; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ metrics: z.ZodRecord; }, z.core.$strip>; }; readonly healthThresholdsGet: { readonly method: "GET"; readonly path: "/web/factory/projects/:id/health/thresholds"; readonly description: "Get queue-health thresholds"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ thresholds: z.ZodArray; }, z.core.$strip>; }; readonly boardCatalog: { readonly method: "GET"; readonly path: "/web/factory/projects/:id/boards"; readonly description: "List installed Factory boards"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ boards: z.ZodArray; role: z.ZodOptional; transitions: z.ZodArray; to: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; }; readonly workItemList: { readonly method: "GET"; readonly path: "/web/factory/projects/:id/work-items"; readonly description: "List Factory work items and running sessions"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ workItems: z.ZodArray>; runningSessionIds: z.ZodArray; parkedSessionIds: z.ZodArray; }, z.core.$strip>; }; readonly workItemCreate: { readonly method: "POST"; readonly path: "/web/factory/projects/:id/work-items"; readonly description: "Create a work item in Intake"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly bodySchema: z.ZodObject<{ title: z.ZodPipe>, z.ZodString>; board: z.ZodOptional; externalSource: z.ZodOptional; }, z.core.$strip>>>; parentWorkItemId: z.ZodOptional>; stages: z.ZodOptional>; sessions: z.ZodOptional>>; metadata: z.ZodOptional, z.ZodNull]>, z.ZodTransform<{ [x: string]: unknown; } | null, Record | null>>>; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ workItem: z.ZodRecord; }, z.core.$strip>; }; readonly workItemUpdate: { readonly method: "PATCH"; readonly path: "/web/factory/work-items/:id"; readonly description: "Update non-stage work-item fields"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly bodySchema: z.ZodObject<{ title: z.ZodOptional>, z.ZodString>>; board: z.ZodOptional; parentWorkItemId: z.ZodOptional>; stages: z.ZodOptional>; sessions: z.ZodOptional>>; metadata: z.ZodOptional, z.ZodNull]>, z.ZodTransform<{ [x: string]: unknown; } | null, Record | null>>>; plansPreapproved: z.ZodOptional>; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ workItem: z.ZodRecord; }, z.core.$strip>; }; readonly workItemDelete: { readonly method: "DELETE"; readonly path: "/web/factory/work-items/:id"; readonly description: "Delete a Factory work item"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>; }; readonly workItemTransition: { readonly method: "POST"; readonly path: "/web/factory/projects/:id/work-items/:workItemId/transition"; readonly description: "Transition a work item with its expected revision"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; workItemId: z.ZodString; }, z.core.$strip>; readonly bodySchema: z.ZodPipe; }, z.core.$strip>, z.ZodTransform<{ reenter?: boolean | undefined; board: string; stage: string; expectedRevision: number; ingress: { type: "human"; identity: string; }; cause: string; }, { board: string; stage: string; expectedRevision: number; requestId: string; cause: string; reenter?: unknown; }>>; readonly responseSchema: z.ZodRecord; }; readonly workItemStart: { readonly method: "POST"; readonly path: "/web/factory/projects/:id/runs/start"; readonly description: "Explicitly start a Factory work-item run"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly bodySchema: z.ZodObject<{ sessionId: z.ZodString; threadTitle: z.ZodString; kickoffKey: z.ZodString; workItem: z.ZodObject<{ id: z.ZodString; role: z.ZodString; input: z.ZodObject<{ title: z.ZodPipe>, z.ZodString>; board: z.ZodOptional; externalSource: z.ZodOptional; }, z.core.$strip>>>; parentWorkItemId: z.ZodOptional>; stages: z.ZodOptional>; sessions: z.ZodOptional>>; metadata: z.ZodOptional, z.ZodNull]>, z.ZodTransform<{ [x: string]: unknown; } | null, Record | null>>>; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>; readonly responseSchema: z.ZodRecord; }; readonly workItemAutomationRun: { readonly method: "POST"; readonly path: "/web/factory/projects/:id/work-items/:workItemId/automation-runs"; readonly description: "Enqueue an idempotent deferred skill dispatch for a trusted external orchestrator"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; workItemId: z.ZodString; }, z.core.$strip>; readonly bodySchema: z.ZodObject<{ requestId: z.ZodString; expectedRevision: z.ZodNumber; role: z.ZodEnum<{ [x: string]: string; }>; skillName: z.ZodString; arguments: z.ZodOptional; }, z.core.$strict>; readonly responseSchema: z.ZodRecord; }; readonly decisionList: { readonly method: "GET"; readonly path: "/web/factory/projects/:id/decisions"; readonly description: "List Factory decisions"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly querySchema: z.ZodObject<{ statuses: z.ZodPipe, z.ZodTransform<("dismissed" | "retry" | "failed" | "pending" | "proposed" | "superseded" | "leased" | "succeeded")[] | undefined, string | undefined>>; before: z.ZodPipe, z.ZodTransform<{ createdAt: Date; id: string; } | undefined, string | undefined>>; limit: z.ZodPipe, z.ZodTransform>; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ decisions: z.ZodArray>; nextCursor: z.ZodOptional; }, z.core.$strip>; }; readonly decisionApprove: { readonly method: "POST"; readonly path: "/web/factory/projects/:id/decisions/:decisionId/approve"; readonly description: "Approve a proposed Factory decision"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; decisionId: z.ZodString; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ decision: z.ZodRecord; }, z.core.$strip>; }; readonly decisionDismiss: { readonly method: "POST"; readonly path: "/web/factory/projects/:id/decisions/:decisionId/dismiss"; readonly description: "Dismiss a proposed Factory decision"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; decisionId: z.ZodString; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ decision: z.ZodRecord; }, z.core.$strip>; }; readonly decisionRetry: { readonly method: "POST"; readonly path: "/web/factory/projects/:id/decisions/:decisionId/retry"; readonly description: "Retry a failed retryable Factory decision"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; decisionId: z.ZodString; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ decision: z.ZodRecord; }, z.core.$strip>; }; readonly attentionList: { readonly method: "GET"; readonly path: "/web/factory/projects/:id/attention"; readonly description: "List the Factory attention inbox"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly querySchema: z.ZodObject<{ view: z.ZodDefault>>; kind: z.ZodOptional>>; before: z.ZodPipe, z.ZodTransform | undefined, string | undefined>>; limit: z.ZodPipe, z.ZodTransform>; search: z.ZodPipe, z.ZodTransform>; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ items: z.ZodArray>; kinds: z.ZodRecord, z.ZodObject<{ open: z.ZodNumber; unread: z.ZodNumber; latest: z.ZodNullable>; }, z.core.$strip>>; hasMore: z.ZodBoolean; nextCursor: z.ZodOptional; }, z.core.$strip>; }; readonly attentionReadAll: { readonly method: "POST"; readonly path: "/web/factory/projects/:id/attention/read-all"; readonly description: "Mark all Factory attention as read"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly querySchema: z.ZodObject<{ before: z.ZodPipe, z.ZodTransform | undefined, string | undefined>>; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ ok: z.ZodLiteral; hasMore: z.ZodBoolean; nextCursor: z.ZodOptional; }, z.core.$strip>; }; readonly attentionRead: { readonly method: "POST"; readonly path: "/web/factory/projects/:id/attention/:kind/:sourceId/:occurrence/read"; readonly description: "Mark a Factory attention receipt as read"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ activity: "activity"; "automation-failed": "automation-failed"; "automation-proposed": "automation-proposed"; mention: "mention"; "supervisor-finding": "supervisor-finding"; "agent-waiting": "agent-waiting"; }>; sourceId: z.ZodString; occurrence: z.ZodPipe>; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ receipt: z.ZodRecord; }, z.core.$strip>; }; readonly attentionArchive: { readonly method: "POST"; readonly path: "/web/factory/projects/:id/attention/:kind/:sourceId/:occurrence/archive"; readonly description: "Archive a Factory attention receipt"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ activity: "activity"; "automation-failed": "automation-failed"; "automation-proposed": "automation-proposed"; mention: "mention"; "supervisor-finding": "supervisor-finding"; "agent-waiting": "agent-waiting"; }>; sourceId: z.ZodString; occurrence: z.ZodPipe>; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ receipt: z.ZodRecord; }, z.core.$strip>; }; readonly attentionRestore: { readonly method: "POST"; readonly path: "/web/factory/projects/:id/attention/:kind/:sourceId/:occurrence/restore"; readonly description: "Restore an archived Factory attention receipt"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ activity: "activity"; "automation-failed": "automation-failed"; "automation-proposed": "automation-proposed"; mention: "mention"; "supervisor-finding": "supervisor-finding"; "agent-waiting": "agent-waiting"; }>; sourceId: z.ZodString; occurrence: z.ZodPipe>; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ receipt: z.ZodRecord; }, z.core.$strip>; }; readonly supervisorSession: { readonly method: "POST"; readonly path: "/web/factory/projects/:id/supervisor/session"; readonly description: "Get the deterministic Factory supervisor session address"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ sessionId: z.ZodString; threadId: z.ZodString; factoryProjectId: z.ZodString; }, z.core.$strip>; }; readonly supervisorHealth: { readonly method: "GET"; readonly path: "/web/factory/projects/:id/supervisor/health"; readonly description: "Run the deterministic Factory supervisor health check"; readonly pathSchema: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; readonly responseSchema: z.ZodObject<{ checkedAt: z.ZodString; findings: z.ZodArray>; counts: z.ZodRecord; }, z.core.$strip>; }; }; export type FactoryRouteContractKey = keyof typeof FACTORY_ROUTE_CONTRACTS; export {}; //# sourceMappingURL=contracts.d.ts.map