n8n
Version:
n8n Workflow Automation Tool
21 lines (20 loc) • 940 B
TypeScript
import type { EntityManager } from '@n8n/typeorm';
import { DataSource, Repository } from '@n8n/typeorm';
import { AgentPublishedVersion } from '../entities/agent-published-version.entity';
import type { Agent } from '../entities/agent.entity';
import type { AgentJsonConfig } from '../json-config/agent-json-config';
export declare class AgentPublishedVersionRepository extends Repository<AgentPublishedVersion> {
constructor(dataSource: DataSource);
savePublishedVersion(data: {
agentId: string;
schema: AgentJsonConfig | null;
tools: Agent['tools'] | null;
skills: Agent['skills'] | null;
publishedFromVersionId: string;
model: string | null;
provider: string | null;
credentialId: string | null;
publishedById: string;
}, trx?: EntityManager): Promise<AgentPublishedVersion>;
deleteByAgentId(agentId: string, trx?: EntityManager): Promise<void>;
}