Skip to content

Commit

Permalink
chore: add missing types
Browse files Browse the repository at this point in the history
  • Loading branch information
nzambello committed Jan 9, 2025
1 parent 6dc4f0f commit 4dbabef
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ export declare type Medium = {
content?: string;
mimeType: string;
title?: string;
properties?: { [key: string]: string };
properties?: { [key: string]: any };
creationTimestamp?: string;
creationName?: string;
lastChangeTimestamp?: string;
Expand All @@ -911,6 +911,7 @@ export declare type DialogState = {
confidence?: number;
confidenceLevel?: 'NONE' | 'LOW' | 'MEDIUM' | 'HIGH';
emission?: string;
translatedEmission?: string;
continuationEmitted?: boolean;
emitter?: string;
completion?: boolean;
Expand All @@ -937,20 +938,30 @@ export declare type DialogState = {
media?: Medium[];
knownTags?: { [key: string]: string };
contextVars?: { [key: string]: string };
memoryTags?: string[];
};

export declare type Message = {
memoryID?: string;
text: string;
translatedText?: string;
questionAnswered?: string;
acceptsFeedback?: boolean;
generatedByAI?: boolean;
fromUser?: boolean;
media?: Medium[];
emitter?: string;
initial?: boolean;
emitter?: string;
timestamp?: string;
contextVars?: { [key: string]: string };
date?: string;
dateUncertaintyDays?: number;
placeName?: string;
placeLatitude?: number;
placeLongitude?: number;
placeUncertaintyKm?: number;
tag?: string;
memoryTags?: string[];
};

export declare type ChatMedium = {
Expand All @@ -973,7 +984,7 @@ export declare type ChatMedium = {
/**
* Key-value pairs for additional structured content storage.
*/
properties?: { [key: string]: string };
properties?: { [key: string]: any };
};

export declare type ChatLogLine = {
Expand Down

0 comments on commit 4dbabef

Please sign in to comment.