feat: initialize voice message

This commit is contained in:
Tristan Yang
2023-04-04 18:43:11 +08:00
parent 0b8a265bf6
commit d721c2e9ff
4 changed files with 38 additions and 3 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import { ChatEvent } from "./sse";
export type ContentType = "text/plain" | "text/markdown" | "vocechat/file" | "vocechat/archive";
export type ContentTypeKey = "text" | "markdown" | "file" | "archive";
export type ContentType = "text/plain" | "text/markdown" | "vocechat/file" | "vocechat/audio" | "vocechat/archive";
export type ContentTypeKey = "text" | "markdown" | "file" | "audio" | "archive";
export interface MuteDTO {
add_users?: {
@@ -24,4 +24,4 @@ export interface UploadFileResponse {
height: number;
};
}
export interface ChatMessage extends Omit<ChatEvent, "type"> {}
export interface ChatMessage extends Omit<ChatEvent, "type"> { }