test: define schema contract for topic fact graph
This commit is contained in:
22
src/types/api.ts
Normal file
22
src/types/api.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { JsonValue, TopicCategory, TopicGranularity } from './domain';
|
||||
|
||||
export interface UpsertTopicInput {
|
||||
name: string;
|
||||
category?: TopicCategory;
|
||||
granularity?: TopicGranularity;
|
||||
description?: string | null;
|
||||
metadata?: JsonValue | null;
|
||||
}
|
||||
|
||||
export interface TopicLinkInput extends UpsertTopicInput {
|
||||
role?: string | null;
|
||||
}
|
||||
|
||||
export interface AddFactInput {
|
||||
statement: string;
|
||||
summary?: string | null;
|
||||
source?: string | null;
|
||||
confidence?: number | null;
|
||||
metadata?: JsonValue | null;
|
||||
topics: TopicLinkInput[];
|
||||
}
|
||||
Reference in New Issue
Block a user