UNPKG

md-linear-sync

Version:

Sync Linear tickets to local markdown files with status-based folder organization

54 lines 1.89 kB
declare const LinearClient: any; import { LinearTeam, LinearProject, LinearWorkflowState } from '../types'; export declare class LinearDiscoveryClient { private client; constructor(apiKey: string); getTeams(): Promise<LinearTeam[]>; getProjects(teamId: string): Promise<LinearProject[]>; getWorkflowStates(teamId: string): Promise<LinearWorkflowState[]>; getTeamLabels(teamId: string): Promise<any[]>; validateApiKey(): Promise<{ valid: boolean; user?: { name: string; email: string; }; }>; } export declare class LinearSyncClient { private client; constructor(apiKey: string); getIssue(issueId: string): Promise<any>; getIssues(teamId: string, projectId?: string, limit?: number): Promise<{ issues: any[]; apiUsage?: any; }>; private parseNumber; createIssue(teamId: string, title: string, description?: string, stateId?: string, projectId?: string, labelIds?: string[], parentId?: string, priority?: number): Promise<any>; findIssueByIdentifier(identifier: string): Promise<any | null>; updateIssue(issueId: string, updates: { title?: string; description?: string; stateId?: string; }): Promise<any>; getComments(issueId: string): Promise<any[]>; createComment(issueId: string, body: string): Promise<any>; getWebhooks(): Promise<any[]>; createWebhook(input: { url: string; teamId: string; secret?: string; }): Promise<string>; updateWebhook(id: string, input: { url?: string; enabled?: boolean; }): Promise<void>; deleteWebhook(id: string): Promise<void>; upsertWebhook(input: { url: string; teamId: string; }): Promise<string>; private generateWebhookSecret; } export { LinearClient }; //# sourceMappingURL=index.d.ts.map