UNPKG

n8n

Version:

n8n Workflow Automation Tool

16 lines (15 loc) 821 B
import { DataSource, Repository } from '@n8n/typeorm'; import { AgentChatSubscription } from '../entities/agent-chat-subscription.entity'; export interface AgentChatSubscriptionScope { agentId: string; integrationType: string; credentialId: string; } export declare class AgentChatSubscriptionRepository extends Repository<AgentChatSubscription> { constructor(dataSource: DataSource); subscribe(scope: AgentChatSubscriptionScope, threadId: string): Promise<void>; unsubscribe(scope: AgentChatSubscriptionScope, threadId: string): Promise<void>; deleteForConnection(scope: AgentChatSubscriptionScope): Promise<void>; isSubscribed(scope: AgentChatSubscriptionScope, threadId: string): Promise<boolean>; listThreadIdsForConnection(scope: AgentChatSubscriptionScope): Promise<string[]>; }