n8n
Version:
n8n Workflow Automation Tool
27 lines (26 loc) • 860 B
TypeScript
import type { StoredMessage } from '@langchain/core/messages';
import { WithTimestamps } from '@n8n/db';
import type { Relation } from '@n8n/typeorm';
export interface IWorkflowBuilderSession {
id: string;
workflowId: string;
userId: string;
messages: StoredMessage[];
previousSummary: string | null;
activeVersionCardId: string | null;
resumeAfterRestoreMessageId: string | null;
createdAt: Date;
updatedAt: Date;
}
export declare class WorkflowBuilderSession extends WithTimestamps implements IWorkflowBuilderSession {
id: string;
generateId(): void;
workflowId: string;
workflow?: Relation<object>;
userId: string;
user?: Relation<object>;
messages: StoredMessage[];
previousSummary: string | null;
activeVersionCardId: string | null;
resumeAfterRestoreMessageId: string | null;
}