UNPKG

deepsource-mcp-server

Version:
1,445 lines 67.1 kB
/** * @fileoverview Centralized tool definitions and schemas for MCP tools * @packageDocumentation */ import { z } from 'zod'; import { MetricShortcode, ReportType } from '../deepsource.js'; /** * Projects tool schemas */ export declare const projectsToolSchema: { name: string; description: string; inputSchema: {}; outputSchema: { projects: z.ZodArray<z.ZodObject<{ key: z.ZodString; name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; key: string; }, { name: string; key: string; }>, "many">; }; }; /** * Quality metrics tool schemas */ export declare const qualityMetricsToolSchema: { name: string; description: string; inputSchema: { projectKey: z.ZodString; shortcodeIn: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MetricShortcode>, "many">>; }; outputSchema: { metrics: z.ZodArray<z.ZodObject<{ name: z.ZodString; shortcode: z.ZodString; description: z.ZodString; positiveDirection: z.ZodString; unit: z.ZodString; minValueAllowed: z.ZodNullable<z.ZodNumber>; maxValueAllowed: z.ZodNullable<z.ZodNumber>; isReported: z.ZodBoolean; isThresholdEnforced: z.ZodBoolean; items: z.ZodArray<z.ZodObject<{ id: z.ZodString; key: z.ZodString; threshold: z.ZodNullable<z.ZodNumber>; latestValue: z.ZodNullable<z.ZodNumber>; latestValueDisplay: z.ZodNullable<z.ZodString>; thresholdStatus: z.ZodString; thresholdInfo: z.ZodNullable<z.ZodObject<{ difference: z.ZodNumber; percentDifference: z.ZodString; isPassing: z.ZodBoolean; }, "strip", z.ZodTypeAny, { difference: number; percentDifference: string; isPassing: boolean; }, { difference: number; percentDifference: string; isPassing: boolean; }>>; }, "strip", z.ZodTypeAny, { threshold: number | null; key: string; id: string; thresholdStatus: string; latestValue: number | null; latestValueDisplay: string | null; thresholdInfo: { difference: number; percentDifference: string; isPassing: boolean; } | null; }, { threshold: number | null; key: string; id: string; thresholdStatus: string; latestValue: number | null; latestValueDisplay: string | null; thresholdInfo: { difference: number; percentDifference: string; isPassing: boolean; } | null; }>, "many">; }, "strip", z.ZodTypeAny, { unit: string; name: string; description: string; items: { threshold: number | null; key: string; id: string; thresholdStatus: string; latestValue: number | null; latestValueDisplay: string | null; thresholdInfo: { difference: number; percentDifference: string; isPassing: boolean; } | null; }[]; isReported: boolean; isThresholdEnforced: boolean; shortcode: string; positiveDirection: string; minValueAllowed: number | null; maxValueAllowed: number | null; }, { unit: string; name: string; description: string; items: { threshold: number | null; key: string; id: string; thresholdStatus: string; latestValue: number | null; latestValueDisplay: string | null; thresholdInfo: { difference: number; percentDifference: string; isPassing: boolean; } | null; }[]; isReported: boolean; isThresholdEnforced: boolean; shortcode: string; positiveDirection: string; minValueAllowed: number | null; maxValueAllowed: number | null; }>, "many">; }; }; /** * Update metric threshold tool schemas */ export declare const updateMetricThresholdToolSchema: { name: string; description: string; inputSchema: { projectKey: z.ZodString; repositoryId: z.ZodString; metricShortcode: z.ZodNativeEnum<typeof MetricShortcode>; metricKey: z.ZodString; thresholdValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; }; outputSchema: { ok: z.ZodBoolean; projectKey: z.ZodString; metricShortcode: z.ZodString; metricKey: z.ZodString; thresholdValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; message: z.ZodString; next_steps: z.ZodArray<z.ZodString, "many">; }; }; /** * Update metric setting tool schemas */ export declare const updateMetricSettingToolSchema: { name: string; description: string; inputSchema: { projectKey: z.ZodString; repositoryId: z.ZodString; metricShortcode: z.ZodNativeEnum<typeof MetricShortcode>; isReported: z.ZodBoolean; isThresholdEnforced: z.ZodBoolean; }; outputSchema: { ok: z.ZodBoolean; projectKey: z.ZodString; metricShortcode: z.ZodString; settings: z.ZodObject<{ isReported: z.ZodBoolean; isThresholdEnforced: z.ZodBoolean; }, "strip", z.ZodTypeAny, { isReported: boolean; isThresholdEnforced: boolean; }, { isReported: boolean; isThresholdEnforced: boolean; }>; message: z.ZodString; next_steps: z.ZodArray<z.ZodString, "many">; }; }; /** * Compliance report tool schemas */ export declare const complianceReportToolSchema: { name: string; description: string; inputSchema: { projectKey: z.ZodString; reportType: z.ZodNativeEnum<typeof ReportType>; }; outputSchema: { key: z.ZodString; title: z.ZodString; currentValue: z.ZodNullable<z.ZodNumber>; status: z.ZodString; securityIssueStats: z.ZodArray<z.ZodObject<{ key: z.ZodString; title: z.ZodString; occurrence: z.ZodObject<{ critical: z.ZodNumber; major: z.ZodNumber; minor: z.ZodNumber; total: z.ZodNumber; }, "strip", z.ZodTypeAny, { total: number; critical: number; major: number; minor: number; }, { total: number; critical: number; major: number; minor: number; }>; }, "strip", z.ZodTypeAny, { key: string; title: string; occurrence: { total: number; critical: number; major: number; minor: number; }; }, { key: string; title: string; occurrence: { total: number; critical: number; major: number; minor: number; }; }>, "many">; trends: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; analysis: z.ZodObject<{ summary: z.ZodString; status_explanation: z.ZodString; critical_issues: z.ZodNumber; major_issues: z.ZodNumber; minor_issues: z.ZodNumber; total_issues: z.ZodNumber; }, "strip", z.ZodTypeAny, { summary: string; status_explanation: string; critical_issues: number; major_issues: number; minor_issues: number; total_issues: number; }, { summary: string; status_explanation: string; critical_issues: number; major_issues: number; minor_issues: number; total_issues: number; }>; recommendations: z.ZodObject<{ actions: z.ZodArray<z.ZodString, "many">; resources: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { resources: string[]; actions: string[]; }, { resources: string[]; actions: string[]; }>; }; }; /** * Project issues tool schemas */ export declare const projectIssuesToolSchema: { name: string; description: string; inputSchema: { projectKey: z.ZodString; path: z.ZodOptional<z.ZodString>; analyzerIn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; first: z.ZodOptional<z.ZodNumber>; after: z.ZodOptional<z.ZodString>; last: z.ZodOptional<z.ZodNumber>; before: z.ZodOptional<z.ZodString>; page_size: z.ZodOptional<z.ZodNumber>; max_pages: z.ZodOptional<z.ZodNumber>; }; outputSchema: { issues: z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; shortcode: z.ZodString; category: z.ZodString; severity: z.ZodString; status: z.ZodString; issue_text: z.ZodString; file_path: z.ZodString; line_number: z.ZodNumber; tags: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { id: string; title: string; status: string; category: string; tags: string[]; shortcode: string; severity: string; issue_text: string; file_path: string; line_number: number; }, { id: string; title: string; status: string; category: string; tags: string[]; shortcode: string; severity: string; issue_text: string; file_path: string; line_number: number; }>, "many">; pageInfo: z.ZodObject<{ hasNextPage: z.ZodBoolean; hasPreviousPage: z.ZodBoolean; startCursor: z.ZodNullable<z.ZodString>; endCursor: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { hasNextPage: boolean; hasPreviousPage: boolean; startCursor: string | null; endCursor: string | null; }, { hasNextPage: boolean; hasPreviousPage: boolean; startCursor: string | null; endCursor: string | null; }>; pagination: z.ZodOptional<z.ZodObject<{ has_more_pages: z.ZodBoolean; next_cursor: z.ZodOptional<z.ZodString>; previous_cursor: z.ZodOptional<z.ZodString>; total_count: z.ZodOptional<z.ZodNumber>; page_size: z.ZodNumber; pages_fetched: z.ZodOptional<z.ZodNumber>; limit_reached: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { page_size: number; has_more_pages: boolean; next_cursor?: string | undefined; previous_cursor?: string | undefined; total_count?: number | undefined; pages_fetched?: number | undefined; limit_reached?: boolean | undefined; }, { page_size: number; has_more_pages: boolean; next_cursor?: string | undefined; previous_cursor?: string | undefined; total_count?: number | undefined; pages_fetched?: number | undefined; limit_reached?: boolean | undefined; }>>; totalCount: z.ZodNumber; }; }; /** * Runs tool schemas */ export declare const runsToolSchema: { name: string; description: string; inputSchema: { projectKey: z.ZodString; analyzerIn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; first: z.ZodOptional<z.ZodNumber>; after: z.ZodOptional<z.ZodString>; last: z.ZodOptional<z.ZodNumber>; before: z.ZodOptional<z.ZodString>; page_size: z.ZodOptional<z.ZodNumber>; max_pages: z.ZodOptional<z.ZodNumber>; }; outputSchema: { runs: z.ZodArray<z.ZodObject<{ id: z.ZodString; runUid: z.ZodString; commitOid: z.ZodString; branchName: z.ZodString; baseOid: z.ZodString; status: z.ZodString; createdAt: z.ZodString; updatedAt: z.ZodString; finishedAt: z.ZodOptional<z.ZodString>; summary: z.ZodObject<{ occurrencesIntroduced: z.ZodNumber; occurrencesResolved: z.ZodNumber; occurrencesSuppressed: z.ZodNumber; occurrenceDistributionByAnalyzer: z.ZodOptional<z.ZodArray<z.ZodObject<{ analyzerShortcode: z.ZodString; introduced: z.ZodNumber; }, "strip", z.ZodTypeAny, { analyzerShortcode: string; introduced: number; }, { analyzerShortcode: string; introduced: number; }>, "many">>; occurrenceDistributionByCategory: z.ZodOptional<z.ZodArray<z.ZodObject<{ category: z.ZodString; introduced: z.ZodNumber; }, "strip", z.ZodTypeAny, { category: string; introduced: number; }, { category: string; introduced: number; }>, "many">>; }, "strip", z.ZodTypeAny, { occurrencesIntroduced: number; occurrencesResolved: number; occurrencesSuppressed: number; occurrenceDistributionByAnalyzer?: { analyzerShortcode: string; introduced: number; }[] | undefined; occurrenceDistributionByCategory?: { category: string; introduced: number; }[] | undefined; }, { occurrencesIntroduced: number; occurrencesResolved: number; occurrencesSuppressed: number; occurrenceDistributionByAnalyzer?: { analyzerShortcode: string; introduced: number; }[] | undefined; occurrenceDistributionByCategory?: { category: string; introduced: number; }[] | undefined; }>; repository: z.ZodObject<{ name: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; }, { name: string; id: string; }>; }, "strip", z.ZodTypeAny, { id: string; summary: { occurrencesIntroduced: number; occurrencesResolved: number; occurrencesSuppressed: number; occurrenceDistributionByAnalyzer?: { analyzerShortcode: string; introduced: number; }[] | undefined; occurrenceDistributionByCategory?: { category: string; introduced: number; }[] | undefined; }; status: string; repository: { name: string; id: string; }; commitOid: string; runUid: string; branchName: string; baseOid: string; createdAt: string; updatedAt: string; finishedAt?: string | undefined; }, { id: string; summary: { occurrencesIntroduced: number; occurrencesResolved: number; occurrencesSuppressed: number; occurrenceDistributionByAnalyzer?: { analyzerShortcode: string; introduced: number; }[] | undefined; occurrenceDistributionByCategory?: { category: string; introduced: number; }[] | undefined; }; status: string; repository: { name: string; id: string; }; commitOid: string; runUid: string; branchName: string; baseOid: string; createdAt: string; updatedAt: string; finishedAt?: string | undefined; }>, "many">; pageInfo: z.ZodObject<{ hasNextPage: z.ZodBoolean; hasPreviousPage: z.ZodBoolean; startCursor: z.ZodNullable<z.ZodString>; endCursor: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { hasNextPage: boolean; hasPreviousPage: boolean; startCursor: string | null; endCursor: string | null; }, { hasNextPage: boolean; hasPreviousPage: boolean; startCursor: string | null; endCursor: string | null; }>; totalCount: z.ZodNumber; }; }; /** * Run tool schemas */ export declare const runToolSchema: { name: string; description: string; inputSchema: { projectKey: z.ZodString; runIdentifier: z.ZodString; isCommitOid: z.ZodOptional<z.ZodBoolean>; }; outputSchema: { run: z.ZodObject<{ id: z.ZodString; runUid: z.ZodString; commitOid: z.ZodString; branchName: z.ZodString; baseOid: z.ZodString; status: z.ZodString; createdAt: z.ZodString; updatedAt: z.ZodString; finishedAt: z.ZodOptional<z.ZodString>; summary: z.ZodObject<{ occurrencesIntroduced: z.ZodNumber; occurrencesResolved: z.ZodNumber; occurrencesSuppressed: z.ZodNumber; occurrenceDistributionByAnalyzer: z.ZodOptional<z.ZodArray<z.ZodObject<{ analyzerShortcode: z.ZodString; introduced: z.ZodNumber; }, "strip", z.ZodTypeAny, { analyzerShortcode: string; introduced: number; }, { analyzerShortcode: string; introduced: number; }>, "many">>; occurrenceDistributionByCategory: z.ZodOptional<z.ZodArray<z.ZodObject<{ category: z.ZodString; introduced: z.ZodNumber; }, "strip", z.ZodTypeAny, { category: string; introduced: number; }, { category: string; introduced: number; }>, "many">>; }, "strip", z.ZodTypeAny, { occurrencesIntroduced: number; occurrencesResolved: number; occurrencesSuppressed: number; occurrenceDistributionByAnalyzer?: { analyzerShortcode: string; introduced: number; }[] | undefined; occurrenceDistributionByCategory?: { category: string; introduced: number; }[] | undefined; }, { occurrencesIntroduced: number; occurrencesResolved: number; occurrencesSuppressed: number; occurrenceDistributionByAnalyzer?: { analyzerShortcode: string; introduced: number; }[] | undefined; occurrenceDistributionByCategory?: { category: string; introduced: number; }[] | undefined; }>; repository: z.ZodObject<{ name: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; }, { name: string; id: string; }>; }, "strip", z.ZodTypeAny, { id: string; summary: { occurrencesIntroduced: number; occurrencesResolved: number; occurrencesSuppressed: number; occurrenceDistributionByAnalyzer?: { analyzerShortcode: string; introduced: number; }[] | undefined; occurrenceDistributionByCategory?: { category: string; introduced: number; }[] | undefined; }; status: string; repository: { name: string; id: string; }; commitOid: string; runUid: string; branchName: string; baseOid: string; createdAt: string; updatedAt: string; finishedAt?: string | undefined; }, { id: string; summary: { occurrencesIntroduced: number; occurrencesResolved: number; occurrencesSuppressed: number; occurrenceDistributionByAnalyzer?: { analyzerShortcode: string; introduced: number; }[] | undefined; occurrenceDistributionByCategory?: { category: string; introduced: number; }[] | undefined; }; status: string; repository: { name: string; id: string; }; commitOid: string; runUid: string; branchName: string; baseOid: string; createdAt: string; updatedAt: string; finishedAt?: string | undefined; }>; analysis: z.ZodObject<{ status_info: z.ZodString; issue_summary: z.ZodString; analyzers_used: z.ZodArray<z.ZodString, "many">; issue_categories: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { status_info: string; issue_summary: string; analyzers_used: string[]; issue_categories: string[]; }, { status_info: string; issue_summary: string; analyzers_used: string[]; issue_categories: string[]; }>; }; }; /** * Recent run issues tool schemas */ export declare const recentRunIssuesToolSchema: { name: string; description: string; inputSchema: { projectKey: z.ZodString; branchName: z.ZodString; first: z.ZodOptional<z.ZodNumber>; after: z.ZodOptional<z.ZodString>; last: z.ZodOptional<z.ZodNumber>; before: z.ZodOptional<z.ZodString>; page_size: z.ZodOptional<z.ZodNumber>; max_pages: z.ZodOptional<z.ZodNumber>; }; outputSchema: { run: z.ZodObject<{ id: z.ZodString; runUid: z.ZodString; commitOid: z.ZodString; branchName: z.ZodString; baseOid: z.ZodString; status: z.ZodString; createdAt: z.ZodString; updatedAt: z.ZodString; finishedAt: z.ZodOptional<z.ZodString>; summary: z.ZodObject<{ occurrencesIntroduced: z.ZodNumber; occurrencesResolved: z.ZodNumber; occurrencesSuppressed: z.ZodNumber; occurrenceDistributionByAnalyzer: z.ZodOptional<z.ZodArray<z.ZodObject<{ analyzerShortcode: z.ZodString; introduced: z.ZodNumber; }, "strip", z.ZodTypeAny, { analyzerShortcode: string; introduced: number; }, { analyzerShortcode: string; introduced: number; }>, "many">>; occurrenceDistributionByCategory: z.ZodOptional<z.ZodArray<z.ZodObject<{ category: z.ZodString; introduced: z.ZodNumber; }, "strip", z.ZodTypeAny, { category: string; introduced: number; }, { category: string; introduced: number; }>, "many">>; }, "strip", z.ZodTypeAny, { occurrencesIntroduced: number; occurrencesResolved: number; occurrencesSuppressed: number; occurrenceDistributionByAnalyzer?: { analyzerShortcode: string; introduced: number; }[] | undefined; occurrenceDistributionByCategory?: { category: string; introduced: number; }[] | undefined; }, { occurrencesIntroduced: number; occurrencesResolved: number; occurrencesSuppressed: number; occurrenceDistributionByAnalyzer?: { analyzerShortcode: string; introduced: number; }[] | undefined; occurrenceDistributionByCategory?: { category: string; introduced: number; }[] | undefined; }>; repository: z.ZodObject<{ name: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; }, { name: string; id: string; }>; }, "strip", z.ZodTypeAny, { id: string; summary: { occurrencesIntroduced: number; occurrencesResolved: number; occurrencesSuppressed: number; occurrenceDistributionByAnalyzer?: { analyzerShortcode: string; introduced: number; }[] | undefined; occurrenceDistributionByCategory?: { category: string; introduced: number; }[] | undefined; }; status: string; repository: { name: string; id: string; }; commitOid: string; runUid: string; branchName: string; baseOid: string; createdAt: string; updatedAt: string; finishedAt?: string | undefined; }, { id: string; summary: { occurrencesIntroduced: number; occurrencesResolved: number; occurrencesSuppressed: number; occurrenceDistributionByAnalyzer?: { analyzerShortcode: string; introduced: number; }[] | undefined; occurrenceDistributionByCategory?: { category: string; introduced: number; }[] | undefined; }; status: string; repository: { name: string; id: string; }; commitOid: string; runUid: string; branchName: string; baseOid: string; createdAt: string; updatedAt: string; finishedAt?: string | undefined; }>; issues: z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; shortcode: z.ZodString; category: z.ZodString; severity: z.ZodString; status: z.ZodString; issue_text: z.ZodString; file_path: z.ZodString; line_number: z.ZodNumber; tags: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { id: string; title: string; status: string; category: string; tags: string[]; shortcode: string; severity: string; issue_text: string; file_path: string; line_number: number; }, { id: string; title: string; status: string; category: string; tags: string[]; shortcode: string; severity: string; issue_text: string; file_path: string; line_number: number; }>, "many">; pageInfo: z.ZodObject<{ hasNextPage: z.ZodBoolean; hasPreviousPage: z.ZodBoolean; startCursor: z.ZodNullable<z.ZodString>; endCursor: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { hasNextPage: boolean; hasPreviousPage: boolean; startCursor: string | null; endCursor: string | null; }, { hasNextPage: boolean; hasPreviousPage: boolean; startCursor: string | null; endCursor: string | null; }>; totalCount: z.ZodNumber; }; }; /** * Dependency vulnerabilities tool schemas */ export declare const dependencyVulnerabilitiesToolSchema: { name: string; description: string; inputSchema: { projectKey: z.ZodString; first: z.ZodOptional<z.ZodNumber>; after: z.ZodOptional<z.ZodString>; last: z.ZodOptional<z.ZodNumber>; before: z.ZodOptional<z.ZodString>; page_size: z.ZodOptional<z.ZodNumber>; max_pages: z.ZodOptional<z.ZodNumber>; }; outputSchema: { vulnerabilities: z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; severity: z.ZodString; cvssScore: z.ZodNullable<z.ZodNumber>; packageName: z.ZodString; packageVersion: z.ZodString; fixedIn: z.ZodNullable<z.ZodString>; description: z.ZodString; identifiers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; references: z.ZodArray<z.ZodString, "many">; risk_assessment: z.ZodObject<{ severity_level: z.ZodString; cvss_description: z.ZodString; fixed_version_available: z.ZodBoolean; remediation_advice: z.ZodString; }, "strip", z.ZodTypeAny, { severity_level: string; cvss_description: string; fixed_version_available: boolean; remediation_advice: string; }, { severity_level: string; cvss_description: string; fixed_version_available: boolean; remediation_advice: string; }>; }, "strip", z.ZodTypeAny, { id: string; title: string; description: string; severity: string; packageVersion: string; cvssScore: number | null; packageName: string; fixedIn: string | null; identifiers: Record<string, string[]>; references: string[]; risk_assessment: { severity_level: string; cvss_description: string; fixed_version_available: boolean; remediation_advice: string; }; }, { id: string; title: string; description: string; severity: string; packageVersion: string; cvssScore: number | null; packageName: string; fixedIn: string | null; identifiers: Record<string, string[]>; references: string[]; risk_assessment: { severity_level: string; cvss_description: string; fixed_version_available: boolean; remediation_advice: string; }; }>, "many">; pageInfo: z.ZodObject<{ hasNextPage: z.ZodBoolean; hasPreviousPage: z.ZodBoolean; startCursor: z.ZodNullable<z.ZodString>; endCursor: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { hasNextPage: boolean; hasPreviousPage: boolean; startCursor: string | null; endCursor: string | null; }, { hasNextPage: boolean; hasPreviousPage: boolean; startCursor: string | null; endCursor: string | null; }>; totalCount: z.ZodNumber; }; }; /** * All tool schemas exported as an array for easy registration */ export declare const toolSchemas: ({ name: string; description: string; inputSchema: {}; outputSchema: { projects: z.ZodArray<z.ZodObject<{ key: z.ZodString; name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; key: string; }, { name: string; key: string; }>, "many">; }; } | { name: string; description: string; inputSchema: { projectKey: z.ZodString; shortcodeIn: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MetricShortcode>, "many">>; }; outputSchema: { metrics: z.ZodArray<z.ZodObject<{ name: z.ZodString; shortcode: z.ZodString; description: z.ZodString; positiveDirection: z.ZodString; unit: z.ZodString; minValueAllowed: z.ZodNullable<z.ZodNumber>; maxValueAllowed: z.ZodNullable<z.ZodNumber>; isReported: z.ZodBoolean; isThresholdEnforced: z.ZodBoolean; items: z.ZodArray<z.ZodObject<{ id: z.ZodString; key: z.ZodString; threshold: z.ZodNullable<z.ZodNumber>; latestValue: z.ZodNullable<z.ZodNumber>; latestValueDisplay: z.ZodNullable<z.ZodString>; thresholdStatus: z.ZodString; thresholdInfo: z.ZodNullable<z.ZodObject<{ difference: z.ZodNumber; percentDifference: z.ZodString; isPassing: z.ZodBoolean; }, "strip", z.ZodTypeAny, { difference: number; percentDifference: string; isPassing: boolean; }, { difference: number; percentDifference: string; isPassing: boolean; }>>; }, "strip", z.ZodTypeAny, { threshold: number | null; key: string; id: string; thresholdStatus: string; latestValue: number | null; latestValueDisplay: string | null; thresholdInfo: { difference: number; percentDifference: string; isPassing: boolean; } | null; }, { threshold: number | null; key: string; id: string; thresholdStatus: string; latestValue: number | null; latestValueDisplay: string | null; thresholdInfo: { difference: number; percentDifference: string; isPassing: boolean; } | null; }>, "many">; }, "strip", z.ZodTypeAny, { unit: string; name: string; description: string; items: { threshold: number | null; key: string; id: string; thresholdStatus: string; latestValue: number | null; latestValueDisplay: string | null; thresholdInfo: { difference: number; percentDifference: string; isPassing: boolean; } | null; }[]; isReported: boolean; isThresholdEnforced: boolean; shortcode: string; positiveDirection: string; minValueAllowed: number | null; maxValueAllowed: number | null; }, { unit: string; name: string; description: string; items: { threshold: number | null; key: string; id: string; thresholdStatus: string; latestValue: number | null; latestValueDisplay: string | null; thresholdInfo: { difference: number; percentDifference: string; isPassing: boolean; } | null; }[]; isReported: boolean; isThresholdEnforced: boolean; shortcode: string; positiveDirection: string; minValueAllowed: number | null; maxValueAllowed: number | null; }>, "many">; }; } | { name: string; description: string; inputSchema: { projectKey: z.ZodString; repositoryId: z.ZodString; metricShortcode: z.ZodNativeEnum<typeof MetricShortcode>; metricKey: z.ZodString; thresholdValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; }; outputSchema: { ok: z.ZodBoolean; projectKey: z.ZodString; metricShortcode: z.ZodString; metricKey: z.ZodString; thresholdValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; message: z.ZodString; next_steps: z.ZodArray<z.ZodString, "many">; }; } | { name: string; description: string; inputSchema: { projectKey: z.ZodString; repositoryId: z.ZodString; metricShortcode: z.ZodNativeEnum<typeof MetricShortcode>; isReported: z.ZodBoolean; isThresholdEnforced: z.ZodBoolean; }; outputSchema: { ok: z.ZodBoolean; projectKey: z.ZodString; metricShortcode: z.ZodString; settings: z.ZodObject<{ isReported: z.ZodBoolean; isThresholdEnforced: z.ZodBoolean; }, "strip", z.ZodTypeAny, { isReported: boolean; isThresholdEnforced: boolean; }, { isReported: boolean; isThresholdEnforced: boolean; }>; message: z.ZodString; next_steps: z.ZodArray<z.ZodString, "many">; }; } | { name: string; description: string; inputSchema: { projectKey: z.ZodString; reportType: z.ZodNativeEnum<typeof ReportType>; }; outputSchema: { key: z.ZodString; title: z.ZodString; currentValue: z.ZodNullable<z.ZodNumber>; status: z.ZodString; securityIssueStats: z.ZodArray<z.ZodObject<{ key: z.ZodString; title: z.ZodString; occurrence: z.ZodObject<{ critical: z.ZodNumber; major: z.ZodNumber; minor: z.ZodNumber; total: z.ZodNumber; }, "strip", z.ZodTypeAny, { total: number; critical: number; major: number; minor: number; }, { total: number; critical: number; major: number; minor: number; }>; }, "strip", z.ZodTypeAny, { key: string; title: string; occurrence: { total: number; critical: number; major: number; minor: number; }; }, { key: string; title: string; occurrence: { total: number; critical: number; major: number; minor: number; }; }>, "many">; trends: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; analysis: z.ZodObject<{ summary: z.ZodString; status_explanation: z.ZodString; critical_issues: z.ZodNumber; major_issues: z.ZodNumber; minor_issues: z.ZodNumber; total_issues: z.ZodNumber; }, "strip", z.ZodTypeAny, { summary: string; status_explanation: string; critical_issues: number; major_issues: number; minor_issues: number; total_issues: number; }, { summary: string; status_explanation: string; critical_issues: number; major_issues: number; minor_issues: number; total_issues: number; }>; recommendations: z.ZodObject<{ actions: z.ZodArray<z.ZodString, "many">; resources: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { resources: string[]; actions: string[]; }, { resources: string[]; actions: string[]; }>; }; } | { name: string; description: string; inputSchema: { projectKey: z.ZodString; path: z.ZodOptional<z.ZodString>; analyzerIn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; first: z.ZodOptional<z.ZodNumber>; after: z.ZodOptional<z.ZodString>; last: z.ZodOptional<z.ZodNumber>; before: z.ZodOptional<z.ZodString>; page_size: z.ZodOptional<z.ZodNumber>; max_pages: z.ZodOptional<z.ZodNumber>; }; outputSchema: { issues: z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; shortcode: z.ZodString; category: z.ZodString; severity: z.ZodString; status: z.ZodString; issue_text: z.ZodString; file_path: z.ZodString; line_number: z.ZodNumber; tags: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { id: string; title: string; status: string; category: string; tags: string[]; shortcode: string; severity: string; issue_text: string; file_path: string; line_number: number; }, { id: string; title: string; status: string; category: string; tags: string[]; shortcode: string; severity: string; issue_text: string; file_path: string; line_number: number; }>, "many">; pageInfo: z.ZodObject<{ hasNextPage: z.ZodBoolean; hasPreviousPage: z.ZodBoolean; startCursor: z.ZodNullable<z.ZodString>; endCursor: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { hasNextPage: boolean; hasPreviousPage: boolean; startCursor: string | null; endCursor: string | null; }, { hasNextPage: boolean; hasPreviousPage: boolean; startCursor: string | null; endCursor: string | null; }>; pagination: z.ZodOptional<z.ZodObject<{ has_more_pages: z.ZodBoolean; next_cursor: z.ZodOptional<z.ZodString>; previous_cursor: z.ZodOptional<z.ZodString>; total_count: z.ZodOptional<z.ZodNumber>; page_size: z.ZodNumber; pages_fetched: z.ZodOptional<z.ZodNumber>; limit_reached: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { page_size: number; has_more_pages: boolean; next_cursor?: string | undefined; previous_cursor?: string | undefined; total_count?: number | undefined; pages_fetched?: number | undefined; limit_reached?: boolean | undefined; }, { page_size: number; has_more_pages: boolean; next_cursor?: string | undefined; previous_cursor?: string | undefined; total_count?: number | undefined; pages_fetched?: number | undefined; limit_reached?: boolean | undefined; }>>; totalCount: z.ZodNumber; }; } | { name: string; description: string; inputSchema: { projectKey: z.ZodString; analyzerIn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; first: z.ZodOptional<z.ZodNumber>; after: z.ZodOptional<z.ZodString>; last: z.ZodOptional<z.ZodNumber>; before: z.ZodOptional<z.ZodString>; page_size: z.ZodOptional<z.ZodNumber>; max_pages: z.ZodOptional<z.ZodNumber>; }; outputSchema: { runs: z.ZodArray<z.ZodObject<{ id: z.ZodString; runUid: z.ZodString; commitOid: z.ZodString; branchName: z.ZodString; baseOid: z.ZodString; status: z.ZodString; createdAt: z.ZodString; updatedAt: z.ZodString; finishedAt: z.ZodOptional<z.ZodString>; summary: z.ZodObject<{ occurrencesIntroduced: z.ZodNumber; occurrencesResolved: z.ZodNumber; occurrencesSuppressed: z.ZodNumber; occurrenceDistributionByAnalyzer: z.ZodOptional<z.ZodArray<z.ZodObject<{ analyzerShortcode: z.ZodString; introduced: z.ZodNumber; }, "strip", z.ZodTypeAny, { analyzerShortcode: string; introduced: number; }, { analyzerShortcode: string; introduced: number; }>, "many">>; occurrenceDistributionByCategory: z.ZodOptional<z.ZodArray<z.ZodObject<{ category: z.ZodString; introduced: z.ZodNumber; }, "strip", z.ZodTypeAny, { category: string; introduced: number; }, { category: string; introduced: number; }>, "many">>; }, "strip", z.ZodTypeAny, { occurrencesIntroduced: number; occurrencesResolved: number; occurrencesSuppressed: number; occurrenceDistributionByAnalyzer?: { analyzerShortcode: string; introduced: number; }[] | undefined; occurrenceDistributionByCategory?: { category: string; introduced: number; }[] | undefined; }, { occurrencesIntroduced: number; occurrencesResolved: number; occurrencesSuppressed: number; occurrenceDistributionByAnalyzer?: { analyzerShortcode: string; introduced: number; }[] | undefined; occurrenceDistributionByCategory?: { category: string; introduced: number; }[] | undefined; }>; repository: z.ZodObject<{ name: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; }, { name: string; id: string; }>; }, "strip", z.ZodTypeAny, { id: string; summary: { occurrencesIntroduced: number; occurrencesResolved: number; occurrencesSuppressed: number; occurrenceDistributionByAnalyzer?: { analyzerShortcode: string; introduced: number; }[] | undefined; occurrenceDistributionByCategory?: { category: string; introduced: number; }[] | undefined; }; status: string; repository: { name: string; id: string; }; commitOid: string; runUid: string; branchName: string; baseOid: string