buster/web/src/api/buster_socket/chats/chatRequests.ts

22 lines
754 B
TypeScript
Raw Normal View History

2025-03-20 13:08:45 +08:00
import type { CreateNewChatParams, StopChatParams } from '../../request_interfaces/chats';
2025-01-31 07:29:06 +08:00
import type { BusterSocketRequestBase } from '../base_interfaces';
2025-01-28 04:21:42 +08:00
2025-02-05 02:01:00 +08:00
/**
* Request type for creating a new chat session or continuing an existing one.
* @interface ChatCreateNewChat
* @extends BusterSocketRequestBase
*/
2025-02-18 11:35:47 +08:00
export type ChatCreateNewChat = BusterSocketRequestBase<'/chats/post', CreateNewChatParams>;
2025-01-28 04:21:42 +08:00
2025-02-05 02:01:00 +08:00
/**
* Request type for stopping an active chat or message generation.
* @interface ChatStopChat
* @extends BusterSocketRequestBase
*/
2025-02-18 11:35:47 +08:00
export type ChatStopChat = BusterSocketRequestBase<'/chats/stop', StopChatParams>;
2025-01-28 04:21:42 +08:00
2025-02-05 02:01:00 +08:00
/**
* Union type of all possible chat-related request types.
*/
2025-03-20 13:08:45 +08:00
export type ChatEmits = ChatCreateNewChat | ChatStopChat;