API 参考
本页由 clients/protocol.yaml 生成,列出全部 WebSocket 命令。各命令的请求/响应负载详见客户端接入指南。
连接生命周期
| 命令 | wire | 类型 |
|---|
| Login | login | 请求 |
| Heartbeat | heartbeat | 请求 |
| Ping | ping | 请求 |
device-push
| 命令 | wire | 类型 |
|---|
| PushDeviceRegister | push_device_register | 请求 |
| PushDeviceUnregister | push_device_unregister | 请求 |
聊天室
| 命令 | wire | 类型 |
|---|
| ChatRoomSend | chat_room_send | 请求 |
| ChatRoomHistory | chat_room_history | 请求 |
| ChatRoomSearch | chat_room_search | 请求 |
| ChatRoomConversations | chat_room_conversations | 请求 |
| ChatRoomMarkRead | chat_room_mark_read | 请求 |
| ChatRoomMuteSet | chat_room_mute_set | 请求 |
| ChatRoomPinSet | chat_room_pin_set | 请求 |
| ChatRoomTyping | chat_room_typing | 请求 |
| ChatRoomEdit | chat_room_edit | 请求 |
| ChatRoomRecall | chat_room_recall | 请求 |
| ChatRoomDelete | chat_room_delete | 请求 |
| ChatRoomReact | chat_room_react | 请求 |
群聊
| 命令 | wire | 类型 |
|---|
| ChatGroupSend | chat_group_send | 请求 |
| ChatGroupJoin | chat_group_join | 请求 |
| ChatGroupHistory | chat_group_history | 请求 |
| ChatGroupSearch | chat_group_search | 请求 |
| ChatGroupConversations | chat_group_conversations | 请求 |
| ChatGroupMarkRead | chat_group_mark_read | 请求 |
| ChatGroupMuteSet | chat_group_mute_set | 请求 |
| ChatGroupPinSet | chat_group_pin_set | 请求 |
| ChatGroupTyping | chat_group_typing | 请求 |
| ChatGroupEdit | chat_group_edit | 请求 |
| ChatGroupRecall | chat_group_recall | 请求 |
| ChatGroupDelete | chat_group_delete | 请求 |
| ChatGroupReact | chat_group_react | 请求 |
私信
| 命令 | wire | 类型 |
|---|
| ChatDMSend | chat_dm_send | 请求 |
| ChatDMHistory | chat_dm_history | 请求 |
| ChatDMSearch | chat_dm_search | 请求 |
| ChatDMConversations | chat_dm_conversations | 请求 |
| ChatDMMarkRead | chat_dm_mark_read | 请求 |
| ChatDMPinSet | chat_dm_pin_set | 请求 |
| ChatDMTyping | chat_dm_typing | 请求 |
| ChatDMEdit | chat_dm_edit | 请求 |
| ChatDMRecall | chat_dm_recall | 请求 |
| ChatDMDelete | chat_dm_delete | 请求 |
| ChatDMReact | chat_dm_react | 请求 |
| ChatDMHandover | chat_dm_handover | 请求 |
| ChatDMRelease | chat_dm_release | 请求 |
推送事件
| 命令 | wire | 类型 |
|---|
| ChatMessage | chat_message | 推送 |
| ChatStreamDelta | chat.stream.delta | 推送 |
| ChatStreamDone | chat.stream.done | 推送 |
| ChatStreamError | chat.stream.error | 推送 |
| ChatDMRoutingChanged | chat_dm_routing_changed | 推送 |
| ChatRoomConversationUpdate | chat_room_conversation_update | 推送 |
| ChatGroupConversationUpdate | chat_group_conversation_update | 推送 |
| ChatDMConversationUpdate | chat_dm_conversation_update | 推送 |
| ChatGroupRequestUpdate | chat_group_request_update | 推送 |
| ChatPresenceUpdate | chat_presence_update | 推送 |
| ChatDMReadReceipt | chat_dm_read_receipt | 推送 |
| ChatGroupReadReceipt | chat_group_read_receipt | 推送 |
| ChatDMDeliveryReceipt | chat_dm_delivery_receipt | 推送 |
| ChatTyping | chat_typing | 推送 |
聊天室操作
| 命令 | wire | 类型 |
|---|
| RoomJoin | room_join | 请求 |
| RoomExit | room_exit | 请求 |
群操作
| 命令 | wire | 类型 |
|---|
| GroupJoin | group_join | 请求 |
| GroupExit | group_exit | 请求 |
音视频信令
| 命令 | wire | 类型 |
|---|
| RTCCallInvite | rtc_call_invite | 请求 |
| RTCCallAccept | rtc_call_accept | 请求 |
| RTCCallReject | rtc_call_reject | 请求 |
| RTCCallHangup | rtc_call_hangup | 请求 |
| RTCCallState | rtc_call_state | 请求 |
| RTCOffer | rtc_offer | 请求 |
| RTCAnswer | rtc_answer | 请求 |
| RTCICECandidate | rtc_ice_candidate | 请求 |
| RTCMultiJoin | rtc_multi_join | 请求 |
| RTCMultiSignal | rtc_multi_signal | 请求 |
| RTCMultiLeave | rtc_multi_leave | 请求 |
好友
| 命令 | wire | 类型 |
|---|
| ChatFriendList | chat_friend_list | 请求 |
| ChatFriendAdd | chat_friend_add | 请求 |
| ChatFriendRemove | chat_friend_remove | 请求 |
| ChatFriendRemarkSet | chat_friend_remark_set | 请求 |
| ChatFriendRequestList | chat_friend_request_list | 请求 |
| ChatFriendAccept | chat_friend_accept | 请求 |
| ChatFriendReject | chat_friend_reject | 请求 |
黑名单
| 命令 | wire | 类型 |
|---|
| ChatBlockAdd | chat_block_add | 请求 |
| ChatBlockRemove | chat_block_remove | 请求 |
| ChatBlockList | chat_block_list | 请求 |
私信白名单
| 命令 | wire | 类型 |
|---|
| ChatDMWhitelistAdd | chat_dm_whitelist_add | 请求 |
| ChatDMWhitelistRemove | chat_dm_whitelist_remove | 请求 |
| ChatDMWhitelistList | chat_dm_whitelist_list | 请求 |
enterprise-directory
| 命令 | wire | 类型 |
|---|
| EnterpriseDepartmentCreate | enterprise_department_create | 请求 |
| EnterpriseDepartmentUpdate | enterprise_department_update | 请求 |
| EnterpriseDepartmentDelete | enterprise_department_delete | 请求 |
| EnterpriseDepartmentList | enterprise_department_list | 请求 |
| EnterpriseMemberUpsert | enterprise_member_upsert | 请求 |
| EnterpriseMemberRemove | enterprise_member_remove | 请求 |
| EnterpriseMemberList | enterprise_member_list | 请求 |
| EnterpriseMemberSearch | enterprise_member_search | 请求 |
聊天室查询
| 命令 | wire | 类型 |
|---|
| ChatRoomMembers | chat_room_members | 请求 |
聊天室成员
| 命令 | wire | 类型 |
|---|
| ChatRoomMemberKick | chat_room_member_kick | 请求 |
| ChatRoomMemberMuteSet | chat_room_member_mute_set | 请求 |
群管理
| 命令 | wire | 类型 |
|---|
| ChatGroupCreate | chat_group_create | 请求 |
| ChatGroupUpdate | chat_group_update | 请求 |
| ChatGroupInvite | chat_group_invite | 请求 |
| ChatGroupInviteApprovalSet | chat_group_invite_approval_set | 请求 |
| ChatGroupMembers | chat_group_members | 请求 |
| ChatGroupMemberKick | chat_group_member_kick | 请求 |
| ChatGroupMemberMuteSet | chat_group_member_mute_set | 请求 |
| ChatGroupList | chat_group_list | 请求 |
| ChatGroupLeave | chat_group_leave | 请求 |
社区
| 命令 | wire | 类型 |
|---|
| CommunityCreate | community_create | 请求 |
| CommunityUpdate | community_update | 请求 |
| CommunityDisband | community_disband | 请求 |
| CommunityJoin | community_join | 请求 |
| CommunityLeave | community_leave | 请求 |
| CommunityMembers | community_members | 请求 |
| CommunityMemberKick | community_member_kick | 请求 |
| CommunityMemberMuteSet | community_member_mute_set | 请求 |
| CommunityRoleSet | community_role_set | 请求 |
| CommunityOwnerTransfer | community_owner_transfer | 请求 |
| CommunityDiscover | community_discover | 请求 |
| CommunityChannelCreate | community_channel_create | 请求 |
| CommunityChannelUpdate | community_channel_update | 请求 |
| CommunityChannelDelete | community_channel_delete | 请求 |
| CommunityChannelList | community_channel_list | 请求 |
| CommunityCategoryCreate | community_category_create | 请求 |
| CommunityCategoryUpdate | community_category_update | 请求 |
| CommunityCategoryDelete | community_category_delete | 请求 |
| CommunitySend | community_send | 请求 |
| CommunityHistory | community_history | 请求 |
| CommunityTyping | community_typing | 请求 |
| CommunityMarkRead | community_mark_read | 请求 |
| CommunityConversations | community_conversations | 请求 |
| CommunityMessage | community.message | 推送 |
| CommunityMemberChanged | community.member_changed | 推送 |
| CommunityChannelChanged | community.channel_changed | 推送 |
| CommunityTypingPush | community.typing | 推送 |