feat: add IdentityDB core memory graph APIs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user