import { type ProviderClient } from './provider-client.js'; import { type CreatedResult } from './receipt.js'; import type { LinearAgentActivity } from '@relayfile/adapter-linear/types'; import { type RelayClientOptions } from './transport.js'; export interface LinearCreateIssueArgs { teamId: string; title: string; description?: string; assigneeId?: string; labelIds?: string[]; projectId?: string; stateId?: string; } export interface LinearUpdateIssueArgs { title?: string; description?: string; assigneeId?: string; stateId?: string; projectId?: string; labelIds?: string[]; addedLabelIds?: string[]; removedLabelIds?: string[]; } export interface LinearCreateLabelArgs { name: string; description?: string; color?: string; teamId?: string; parentId?: string; } export type LinearUpdateLabelArgs = Partial>; export interface LinearClient extends ProviderClient<'linear'> { /** Post an activity to a Linear Agent Session. */ agentActivity(sessionId: string, activity: LinearAgentActivity): Promise; /** Send a response activity to a Linear Agent Session. */ respond(sessionId: string, body: string): Promise; /** Send a quick thought activity so Linear knows the agent is working. */ acknowledge(sessionId: string): Promise; /** Comment on an issue. */ comment(issueId: string, body: string): Promise; /** Create an issue. */ createIssue(args: LinearCreateIssueArgs): Promise; /** Patch an existing issue. */ updateIssue(issueId: string, args: LinearUpdateIssueArgs): Promise; /** Create a label. */ createLabel(args: LinearCreateLabelArgs): Promise; /** Patch an existing label. */ updateLabel(labelId: string, args: LinearUpdateLabelArgs): Promise; /** Read one issue by id. */ getIssue>(issueId: string): Promise; /** List issues. */ listIssues>(): Promise; } /** * Ergonomic Linear client over the writeback-path catalog. Recovers the * `ctx.linear.comment(...)` shape removed from the runtime, plus the uniform * resource-keyed access (`.issues`, `.comments`) every provider client has. */ export declare function linearClient(opts?: RelayClientOptions): LinearClient; //# sourceMappingURL=linear.d.ts.map