"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSystemHealthSchema = exports.getWorkflowTypesSchema = exports.getEscalationStatsSchema = exports.getProcessSummarySchema = exports.findEscalationsSchema = exports.findTasksSchema = void 0;
const zod_1 = require("zod");
const defaults_1 = require("../../../modules/defaults");
// Schemas extracted to break TS2589 deep-instantiation in registerTool generics
exports.findTasksSchema = zod_1.z.object({
    status: zod_1.z.enum(['pending', 'in_progress', 'needs_intervention', 'completed', 'failed'])
        .optional().describe('Filter by task status'),
    workflow_type: zod_1.z.string().optional().describe('Filter by workflow type (e.g. "reviewContent")'),
    workflow_id: zod_1.z.string().optional().describe('Filter by workflow execution ID'),
    origin_id: zod_1.z.string().optional().describe('Filter by origin/process ID to see all tasks in a process'),
    limit: zod_1.z.number().int().min(1).max(defaults_1.QUERY_LIMIT_MAX).optional().default(defaults_1.QUERY_LIMIT_DEFAULT)
        .describe('Maximum number of results'),
});
exports.findEscalationsSchema = zod_1.z.object({
    status: zod_1.z.enum(['pending', 'resolved']).optional()
        .describe('Filter by escalation status'),
    role: zod_1.z.string().optional().describe('Filter by assigned role (e.g. "reviewer", "engineer")'),
    type: zod_1.z.string().optional().describe('Filter by escalation type'),
    priority: zod_1.z.number().int().min(1).max(4).optional()
        .describe('Filter by priority (1=critical, 4=low)'),
    limit: zod_1.z.number().int().min(1).max(defaults_1.QUERY_LIMIT_MAX).optional().default(defaults_1.QUERY_LIMIT_DEFAULT)
        .describe('Maximum number of results'),
});
exports.getProcessSummarySchema = zod_1.z.object({
    workflow_type: zod_1.z.string().optional()
        .describe('Filter processes to those containing this workflow type'),
    limit: zod_1.z.number().int().min(1).max(defaults_1.QUERY_LIMIT_MAX).optional().default(defaults_1.QUERY_LIMIT_DEFAULT)
        .describe('Maximum number of processes'),
});
exports.getEscalationStatsSchema = zod_1.z.object({});
exports.getWorkflowTypesSchema = zod_1.z.object({});
exports.getSystemHealthSchema = zod_1.z.object({});
