Files
CT/src/Model/fileModel.ts
T

30 lines
478 B
TypeScript
Raw Normal View History

2024-07-21 21:41:19 +02:00
// this file is responsible for managing files within chats.
2024-07-21 21:45:18 +02:00
import ChatModel from "./chatModel";
export default class FileModel {
chatModel: ChatModel;
// init
constructor(chatModel: ChatModel) {
this.chatModel = chatModel;
}
}
2024-07-21 21:41:19 +02:00
// types
2024-07-21 20:54:18 +02:00
export interface File {
dataVersion: "v2";
id: string;
title: string;
contentVersions: { [id: string]: FileContent };
}
export interface FileContent {
dataVersion: "v2";
id: string;
creationDate: string;
}