// schemas/github.ts — Zod schemas for GitHub integration tools (SPEC-086).
import { z } from 'zod';
export const CreatePRFromSpecSchema = z.object({
    specId: z.string().max(500).describe('ID of the spec (e.g., SPEC-086)'),
    baseBranch: z
        .string()
        .max(500)
        .default('develop')
        .describe('Base branch for the PR (default: develop)'),
    draft: z.boolean().default(false).describe('Create as draft PR (default: false)'),
});
export const PRStatusSchema = z.object({
    prNumber: z.number().optional().describe('Specific PR number to query'),
    specId: z.string().max(500).optional().describe('Spec ID to find related PRs (e.g., SPEC-086)'),
    view: z.enum(['prs', 'milestones']).default('prs').describe('View mode: prs | milestones'),
});
export const ReviewPRSchema = z.object({
    prNumber: z.number().describe('PR number to review'),
    reviewType: z
        .enum(['summary', 'detailed', 'security', 'performance'])
        .default('summary')
        .describe('Review type: summary | detailed | security | performance'),
});
export const CreateReleaseSchema = z.object({
    version: z.string().max(500).describe('Semver version (e.g., 1.2.0)'),
    generateNotes: z
        .boolean()
        .default(true)
        .describe('Generate release notes from merged PRs (default: true)'),
    draft: z.boolean().default(true).describe('Create as draft release (default: true)'),
    prerelease: z.boolean().default(false).describe('Mark as prerelease (default: false)'),
});
export const GenerateChangelogSchema = z.object({
    since: z.string().max(500).describe('Start point: tag, SHA, or ISO date'),
    until: z.string().max(500).default('HEAD').describe('End point (default: HEAD)'),
    format: z
        .enum(['markdown', 'json'])
        .default('markdown')
        .describe('Output format: markdown | json'),
});
export const CreateIssueFromSpecSchema = z.object({
    specId: z.string().max(500).describe('ID of the spec (e.g., SPEC-086)'),
    criteriaIds: z
        .array(z.string().max(500))
        .max(1000)
        .optional()
        .describe('Specific criteria IDs (e.g., ["AC-01", "AC-03"]). Empty = consolidated issue'),
    labels: z
        .array(z.string().max(500))
        .max(100)
        .optional()
        .describe('Additional labels for the issue'),
});
export const TriageIssuesSchema = z.object({
    state: z
        .enum(['open', 'closed', 'all'])
        .default('open')
        .describe('Issue state to triage: open | closed | all'),
    limit: z.number().default(20).describe('Maximum issues to process'),
});
//# sourceMappingURL=github.js.map