You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/server/packages/sdk/src/structs/events.ts

26 lines
605 B
TypeScript

import type { MessageMetaStruct } from './chat';
/**
* 默认服务的事件映射
*/
export interface BuiltinEventMap {
'gateway.auth.addWhitelists': { urls: string[] };
'chat.message.updateMessage':
| {
type: 'add';
groupId?: string;
converseId: string;
messageId: string;
content: string;
meta: MessageMetaStruct;
}
| {
type: 'recall' | 'delete';
groupId?: string;
converseId: string;
messageId: string;
meta: MessageMetaStruct;
};
'config.updated': { config: Record<string, any> };
}