feat: add IdentityDB core memory graph APIs

This commit is contained in:
2026-05-11 10:50:11 +09:00
parent f4b6548054
commit 9dc529af04
6 changed files with 535 additions and 1 deletions

View File

@@ -20,3 +20,49 @@ export interface AddFactInput {
metadata?: JsonValue | null;
topics: TopicLinkInput[];
}
export interface Topic {
id: string;
name: string;
normalizedName: string;
category: TopicCategory;
granularity: TopicGranularity;
description: string | null;
metadata: JsonValue | null;
createdAt: string;
updatedAt: string;
}
export interface FactTopic extends Topic {
role: string | null;
position: number;
}
export interface Fact {
id: string;
statement: string;
summary: string | null;
source: string | null;
confidence: number | null;
metadata: JsonValue | null;
createdAt: string;
updatedAt: string;
topics: FactTopic[];
}
export interface TopicWithFacts extends Topic {
facts: Fact[];
}
export interface ConnectedTopic extends Topic {
sharedFactCount: number;
}
export interface TopicLookupOptions {
includeFacts?: boolean;
}
export interface ListTopicsOptions {
includeFacts?: boolean;
limit?: number;
}