UNPKG

ai-ip-plugin

Version:

AI-IP Plugin for MCP Workflow Management with SSE streaming and event handling

42 lines 1.21 kB
/** * API Service Layer */ import { MCPStartProps, MCPInterruptParams, MCPContinueProps, MCPResumeParams, FetchResponse, APIConfig, APIResponse, StateDataResponse } from "../types"; export declare class APIService { private config; constructor(config?: Partial<APIConfig>); /** * Update API configuration */ updateConfig(config: Partial<APIConfig>): void; /** * Get request headers */ private getHeaders; /** * Start MCP workflow */ startWorkflow(params: MCPStartProps): Promise<FetchResponse>; /** * Stop MCP workflow */ stopWorkflow(params: MCPInterruptParams): Promise<Response>; /** * Continue MCP workflow */ continueWorkflow(params: MCPContinueProps): Promise<FetchResponse>; /** * Resume MCP workflow */ resumeWorkflow(params: MCPResumeParams): Promise<FetchResponse>; /** * Get workflow history */ getWorkflowHistory(taskId: string): Promise<Response>; /** * Get workflow state data */ getWorkflowStateData(taskId: string): Promise<APIResponse<StateDataResponse>>; } export declare const apiService: APIService; //# sourceMappingURL=api.d.ts.map