UNPKG

github-as-app

Version:
226 lines 5.87 kB
import { Octokit } from '@octokit/rest'; import { CallToolResult } from '@modelcontextprotocol/sdk/types.js'; export declare const issueTools: ({ name: string; description: string; inputSchema: { type: string; properties: { repository: { type: string; description: string; }; state: { type: string; enum: string[]; default: string; description: string; }; labels: { type: string; description: string; items?: undefined; }; assignee: { type: string; description: string; }; issue_number?: undefined; title?: undefined; body?: undefined; assignees?: undefined; comment_id?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { repository: { type: string; description: string; }; issue_number: { type: string; description: string; }; state?: undefined; labels?: undefined; assignee?: undefined; title?: undefined; body?: undefined; assignees?: undefined; comment_id?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { repository: { type: string; description: string; }; title: { type: string; description: string; }; body: { type: string; description: string; }; labels: { type: string; items: { type: string; }; description: string; }; assignees: { type: string; items: { type: string; }; description: string; }; state?: undefined; assignee?: undefined; issue_number?: undefined; comment_id?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { repository: { type: string; description: string; }; issue_number: { type: string; description: string; }; title: { type: string; description: string; }; body: { type: string; description: string; }; state: { type: string; enum: string[]; description: string; default?: undefined; }; labels: { type: string; items: { type: string; }; description: string; }; assignee?: undefined; assignees?: undefined; comment_id?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { repository: { type: string; description: string; }; issue_number: { type: string; description: string; }; body: { type: string; description: string; }; state?: undefined; labels?: undefined; assignee?: undefined; title?: undefined; assignees?: undefined; comment_id?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { repository: { type: string; description: string; }; issue_number: { type: string; description: string; }; assignees: { type: string; items: { type: string; }; description: string; }; state?: undefined; labels?: undefined; assignee?: undefined; title?: undefined; body?: undefined; comment_id?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { repository: { type: string; description: string; }; comment_id: { type: string; description: string; }; body: { type: string; description: string; }; state?: undefined; labels?: undefined; assignee?: undefined; issue_number?: undefined; title?: undefined; assignees?: undefined; }; required: string[]; }; })[]; export declare function handleIssueTool(client: Octokit, toolName: string, args: any): Promise<CallToolResult>; //# sourceMappingURL=issues.d.ts.map