llonebot-dist 7.11.3 → 7.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/llbot.js
CHANGED
|
@@ -11564,7 +11564,7 @@ var webuiTokenUtil = new WebUITokenUtil(path.join(DATA_DIR, "webui_token.txt"));
|
|
|
11564
11564
|
var logFileName = `llbot-${(/* @__PURE__ */ new Date()).toLocaleString("zh-CN")}.log`.replace(/\//g, "-").replace(/:/g, "-");
|
|
11565
11565
|
//#endregion
|
|
11566
11566
|
//#region src/version.ts
|
|
11567
|
-
var version$2 = "7.11.
|
|
11567
|
+
var version$2 = "7.11.4";
|
|
11568
11568
|
//#endregion
|
|
11569
11569
|
//#region node_modules/isexe/windows.js
|
|
11570
11570
|
var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -43933,628 +43933,656 @@ function transformProtocolOsType(type) {
|
|
|
43933
43933
|
}
|
|
43934
43934
|
//#endregion
|
|
43935
43935
|
//#region node_modules/@saltify/milky-types/dist/index.mjs
|
|
43936
|
-
var
|
|
43937
|
-
|
|
43938
|
-
|
|
43939
|
-
|
|
43940
|
-
var
|
|
43941
|
-
var
|
|
43942
|
-
|
|
43943
|
-
|
|
43944
|
-
|
|
43945
|
-
|
|
43946
|
-
|
|
43947
|
-
|
|
43936
|
+
var zUin = number$1().int().min(10001).max(4294967295);
|
|
43937
|
+
function zDropBadElementArray(element) {
|
|
43938
|
+
return array(element.catch(null)).transform((val) => val.filter((item) => item !== null));
|
|
43939
|
+
}
|
|
43940
|
+
var BotOfflineEventData = object({ reason: string$1().describe("下线原因") }).describe("机器人离线事件");
|
|
43941
|
+
var MessageRecallEventData = object({
|
|
43942
|
+
message_scene: _enum([
|
|
43943
|
+
"friend",
|
|
43944
|
+
"group",
|
|
43945
|
+
"temp"
|
|
43946
|
+
]).describe("消息场景"),
|
|
43947
|
+
peer_id: zUin.describe("好友 QQ 号或群号"),
|
|
43948
|
+
message_seq: number$1().int().nonnegative().describe("消息序列号"),
|
|
43949
|
+
sender_id: zUin.describe("被撤回的消息的发送者 QQ 号"),
|
|
43950
|
+
operator_id: zUin.describe("操作者 QQ 号"),
|
|
43951
|
+
display_suffix: string$1().describe("撤回提示的后缀文本")
|
|
43952
|
+
}).describe("消息撤回事件");
|
|
43953
|
+
var PeerPinChangeEventData = object({
|
|
43954
|
+
message_scene: _enum([
|
|
43955
|
+
"friend",
|
|
43956
|
+
"group",
|
|
43957
|
+
"temp"
|
|
43958
|
+
]).describe("发生改变的会话的消息场景"),
|
|
43959
|
+
peer_id: zUin.describe("发生改变的好友 QQ 号或群号"),
|
|
43960
|
+
is_pinned: boolean$1().describe("是否被置顶, `false` 表示取消置顶")
|
|
43961
|
+
}).describe("会话置顶变更事件");
|
|
43962
|
+
var FriendRequestEventData = object({
|
|
43963
|
+
initiator_id: zUin.describe("申请好友的用户 QQ 号"),
|
|
43964
|
+
initiator_uid: string$1().describe("用户 UID"),
|
|
43965
|
+
comment: string$1().describe("申请附加信息"),
|
|
43966
|
+
via: string$1().describe("申请来源")
|
|
43967
|
+
}).describe("好友请求事件");
|
|
43968
|
+
var GroupJoinRequestEventData = object({
|
|
43969
|
+
group_id: zUin.describe("群号"),
|
|
43970
|
+
notification_seq: number$1().int().nonnegative().describe("请求对应的通知序列号"),
|
|
43971
|
+
is_filtered: boolean$1().describe("请求是否被过滤(发起自风险账户)"),
|
|
43972
|
+
initiator_id: zUin.describe("申请入群的用户 QQ 号"),
|
|
43973
|
+
comment: string$1().describe("申请附加信息")
|
|
43974
|
+
}).describe("入群请求事件");
|
|
43975
|
+
var GroupInvitedJoinRequestEventData = object({
|
|
43976
|
+
group_id: zUin.describe("群号"),
|
|
43977
|
+
notification_seq: number$1().int().nonnegative().describe("请求对应的通知序列号"),
|
|
43978
|
+
initiator_id: zUin.describe("邀请者 QQ 号"),
|
|
43979
|
+
target_user_id: zUin.describe("被邀请者 QQ 号")
|
|
43980
|
+
}).describe("群成员邀请他人入群请求事件");
|
|
43981
|
+
var GroupInvitationEventData = object({
|
|
43982
|
+
group_id: zUin.describe("群号"),
|
|
43983
|
+
invitation_seq: number$1().int().nonnegative().describe("邀请序列号"),
|
|
43984
|
+
initiator_id: zUin.describe("邀请者 QQ 号"),
|
|
43985
|
+
source_group_id: number$1().int().nonnegative().nullish().describe("来源群号,如果是通过 QQ 群邀请")
|
|
43986
|
+
}).describe("他人邀请自身入群事件");
|
|
43987
|
+
var FriendNudgeEventData = object({
|
|
43988
|
+
user_id: zUin.describe("好友 QQ 号"),
|
|
43989
|
+
is_self_send: boolean$1().describe("是否是自己发送的戳一戳"),
|
|
43990
|
+
is_self_receive: boolean$1().describe("是否是自己接收的戳一戳"),
|
|
43991
|
+
display_action: string$1().describe("戳一戳提示的动作文本"),
|
|
43992
|
+
display_suffix: string$1().describe("戳一戳提示的后缀文本"),
|
|
43993
|
+
display_action_img_url: string$1().describe("戳一戳提示的动作图片 URL,用于取代动作提示文本")
|
|
43994
|
+
}).describe("好友戳一戳事件");
|
|
43995
|
+
var FriendFileUploadEventData = object({
|
|
43996
|
+
user_id: zUin.describe("好友 QQ 号"),
|
|
43997
|
+
file_id: string$1().describe("文件 ID"),
|
|
43998
|
+
file_name: string$1().describe("文件名称"),
|
|
43999
|
+
file_size: number$1().int().nonnegative().describe("文件大小(字节)"),
|
|
44000
|
+
file_hash: string$1().describe("文件的 TriSHA1 哈希值"),
|
|
44001
|
+
is_self: boolean$1().describe("是否是自己发送的文件")
|
|
44002
|
+
}).describe("好友文件上传事件");
|
|
44003
|
+
var GroupAdminChangeEventData = object({
|
|
44004
|
+
group_id: zUin.describe("群号"),
|
|
44005
|
+
user_id: zUin.describe("发生变更的用户 QQ 号"),
|
|
44006
|
+
operator_id: zUin.describe("操作者 QQ 号"),
|
|
44007
|
+
is_set: boolean$1().describe("是否被设置为管理员,`false` 表示被取消管理员")
|
|
44008
|
+
}).describe("群管理员变更事件");
|
|
44009
|
+
var GroupEssenceMessageChangeEventData = object({
|
|
44010
|
+
group_id: zUin.describe("群号"),
|
|
44011
|
+
message_seq: number$1().int().nonnegative().describe("发生变更的消息序列号"),
|
|
44012
|
+
operator_id: zUin.describe("操作者 QQ 号"),
|
|
44013
|
+
is_set: boolean$1().describe("是否被设置为精华,`false` 表示被取消精华")
|
|
44014
|
+
}).describe("群精华消息变更事件");
|
|
44015
|
+
var GroupMemberIncreaseEventData = object({
|
|
44016
|
+
group_id: zUin.describe("群号"),
|
|
44017
|
+
user_id: zUin.describe("发生变更的用户 QQ 号"),
|
|
44018
|
+
operator_id: number$1().int().nonnegative().nullish().describe("管理员 QQ 号,如果是管理员同意入群"),
|
|
44019
|
+
invitor_id: number$1().int().nonnegative().nullish().describe("邀请者 QQ 号,如果是邀请入群")
|
|
44020
|
+
}).describe("群成员增加事件");
|
|
44021
|
+
var GroupMemberDecreaseEventData = object({
|
|
44022
|
+
group_id: zUin.describe("群号"),
|
|
44023
|
+
user_id: zUin.describe("发生变更的用户 QQ 号"),
|
|
44024
|
+
operator_id: number$1().int().nonnegative().nullish().describe("管理员 QQ 号,如果是管理员踢出")
|
|
44025
|
+
}).describe("群成员减少事件");
|
|
44026
|
+
var GroupNameChangeEventData = object({
|
|
44027
|
+
group_id: zUin.describe("群号"),
|
|
44028
|
+
new_group_name: string$1().describe("新的群名称"),
|
|
44029
|
+
operator_id: zUin.describe("操作者 QQ 号")
|
|
44030
|
+
}).describe("群名称变更事件");
|
|
44031
|
+
var GroupMessageReactionEventData = object({
|
|
44032
|
+
group_id: zUin.describe("群号"),
|
|
44033
|
+
user_id: zUin.describe("发送回应者 QQ 号"),
|
|
44034
|
+
message_seq: number$1().int().nonnegative().describe("消息序列号"),
|
|
44035
|
+
face_id: string$1().describe("表情 ID"),
|
|
44036
|
+
reaction_type: _enum(["face", "emoji"]).describe("收到的回应类型"),
|
|
44037
|
+
is_add: boolean$1().describe("是否为添加,`false` 表示取消回应")
|
|
44038
|
+
}).describe("群消息表情回应事件");
|
|
44039
|
+
var GroupMuteEventData = object({
|
|
44040
|
+
group_id: zUin.describe("群号"),
|
|
44041
|
+
user_id: zUin.describe("发生变更的用户 QQ 号"),
|
|
44042
|
+
operator_id: zUin.describe("操作者 QQ 号"),
|
|
44043
|
+
duration: number$1().int().nonnegative().describe("禁言时长(秒),为 0 表示取消禁言")
|
|
44044
|
+
}).describe("群禁言事件");
|
|
44045
|
+
var GroupWholeMuteEventData = object({
|
|
44046
|
+
group_id: zUin.describe("群号"),
|
|
44047
|
+
operator_id: zUin.describe("操作者 QQ 号"),
|
|
44048
|
+
is_mute: boolean$1().describe("是否全员禁言,`false` 表示取消全员禁言")
|
|
44049
|
+
}).describe("群全体禁言事件");
|
|
44050
|
+
var GroupNudgeEventData = object({
|
|
44051
|
+
group_id: zUin.describe("群号"),
|
|
44052
|
+
sender_id: zUin.describe("发送者 QQ 号"),
|
|
44053
|
+
receiver_id: zUin.describe("接收者 QQ 号"),
|
|
44054
|
+
display_action: string$1().describe("戳一戳提示的动作文本"),
|
|
44055
|
+
display_suffix: string$1().describe("戳一戳提示的后缀文本"),
|
|
44056
|
+
display_action_img_url: string$1().describe("戳一戳提示的动作图片 URL,用于取代动作提示文本")
|
|
44057
|
+
}).describe("群戳一戳事件");
|
|
44058
|
+
var GroupFileUploadEventData = object({
|
|
44059
|
+
group_id: zUin.describe("群号"),
|
|
44060
|
+
user_id: zUin.describe("发送者 QQ 号"),
|
|
44061
|
+
file_id: string$1().describe("文件 ID"),
|
|
44062
|
+
file_name: string$1().describe("文件名称"),
|
|
44063
|
+
file_size: number$1().int().nonnegative().describe("文件大小(字节)")
|
|
44064
|
+
}).describe("群文件上传事件");
|
|
44065
|
+
discriminatedUnion("event_type", [
|
|
44066
|
+
object({
|
|
44067
|
+
event_type: literal("bot_offline"),
|
|
44068
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44069
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44070
|
+
data: BotOfflineEventData.describe("机器人离线事件")
|
|
44071
|
+
}).describe("机器人离线事件"),
|
|
44072
|
+
object({
|
|
44073
|
+
event_type: literal("message_receive"),
|
|
44074
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44075
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44076
|
+
data: lazy(() => IncomingMessage).describe("消息接收事件")
|
|
44077
|
+
}).describe("消息接收事件"),
|
|
44078
|
+
object({
|
|
44079
|
+
event_type: literal("message_recall"),
|
|
44080
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44081
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44082
|
+
data: MessageRecallEventData.describe("消息撤回事件")
|
|
44083
|
+
}).describe("消息撤回事件"),
|
|
44084
|
+
object({
|
|
44085
|
+
event_type: literal("peer_pin_change"),
|
|
44086
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44087
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44088
|
+
data: PeerPinChangeEventData.describe("会话置顶变更事件")
|
|
44089
|
+
}).describe("会话置顶变更事件"),
|
|
44090
|
+
object({
|
|
44091
|
+
event_type: literal("friend_request"),
|
|
44092
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44093
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44094
|
+
data: FriendRequestEventData.describe("好友请求事件")
|
|
44095
|
+
}).describe("好友请求事件"),
|
|
44096
|
+
object({
|
|
44097
|
+
event_type: literal("group_join_request"),
|
|
44098
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44099
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44100
|
+
data: GroupJoinRequestEventData.describe("入群请求事件")
|
|
44101
|
+
}).describe("入群请求事件"),
|
|
44102
|
+
object({
|
|
44103
|
+
event_type: literal("group_invited_join_request"),
|
|
44104
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44105
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44106
|
+
data: GroupInvitedJoinRequestEventData.describe("群成员邀请他人入群请求事件")
|
|
44107
|
+
}).describe("群成员邀请他人入群请求事件"),
|
|
44108
|
+
object({
|
|
44109
|
+
event_type: literal("group_invitation"),
|
|
44110
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44111
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44112
|
+
data: GroupInvitationEventData.describe("他人邀请自身入群事件")
|
|
44113
|
+
}).describe("他人邀请自身入群事件"),
|
|
44114
|
+
object({
|
|
44115
|
+
event_type: literal("friend_nudge"),
|
|
44116
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44117
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44118
|
+
data: FriendNudgeEventData.describe("好友戳一戳事件")
|
|
44119
|
+
}).describe("好友戳一戳事件"),
|
|
44120
|
+
object({
|
|
44121
|
+
event_type: literal("friend_file_upload"),
|
|
44122
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44123
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44124
|
+
data: FriendFileUploadEventData.describe("好友文件上传事件")
|
|
44125
|
+
}).describe("好友文件上传事件"),
|
|
44126
|
+
object({
|
|
44127
|
+
event_type: literal("group_admin_change"),
|
|
44128
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44129
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44130
|
+
data: GroupAdminChangeEventData.describe("群管理员变更事件")
|
|
44131
|
+
}).describe("群管理员变更事件"),
|
|
44132
|
+
object({
|
|
44133
|
+
event_type: literal("group_essence_message_change"),
|
|
44134
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44135
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44136
|
+
data: GroupEssenceMessageChangeEventData.describe("群精华消息变更事件")
|
|
44137
|
+
}).describe("群精华消息变更事件"),
|
|
44138
|
+
object({
|
|
44139
|
+
event_type: literal("group_member_increase"),
|
|
44140
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44141
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44142
|
+
data: GroupMemberIncreaseEventData.describe("群成员增加事件")
|
|
44143
|
+
}).describe("群成员增加事件"),
|
|
44144
|
+
object({
|
|
44145
|
+
event_type: literal("group_member_decrease"),
|
|
44146
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44147
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44148
|
+
data: GroupMemberDecreaseEventData.describe("群成员减少事件")
|
|
44149
|
+
}).describe("群成员减少事件"),
|
|
44150
|
+
object({
|
|
44151
|
+
event_type: literal("group_name_change"),
|
|
44152
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44153
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44154
|
+
data: GroupNameChangeEventData.describe("群名称变更事件")
|
|
44155
|
+
}).describe("群名称变更事件"),
|
|
44156
|
+
object({
|
|
44157
|
+
event_type: literal("group_message_reaction"),
|
|
44158
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44159
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44160
|
+
data: GroupMessageReactionEventData.describe("群消息表情回应事件")
|
|
44161
|
+
}).describe("群消息表情回应事件"),
|
|
44162
|
+
object({
|
|
44163
|
+
event_type: literal("group_mute"),
|
|
44164
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44165
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44166
|
+
data: GroupMuteEventData.describe("群禁言事件")
|
|
44167
|
+
}).describe("群禁言事件"),
|
|
44168
|
+
object({
|
|
44169
|
+
event_type: literal("group_whole_mute"),
|
|
44170
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44171
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44172
|
+
data: GroupWholeMuteEventData.describe("群全体禁言事件")
|
|
44173
|
+
}).describe("群全体禁言事件"),
|
|
44174
|
+
object({
|
|
44175
|
+
event_type: literal("group_nudge"),
|
|
44176
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44177
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44178
|
+
data: GroupNudgeEventData.describe("群戳一戳事件")
|
|
44179
|
+
}).describe("群戳一戳事件"),
|
|
44180
|
+
object({
|
|
44181
|
+
event_type: literal("group_file_upload"),
|
|
44182
|
+
time: number$1().int().nonnegative().describe("事件 Unix 时间戳(秒)"),
|
|
44183
|
+
self_id: zUin.describe("机器人 QQ 号"),
|
|
44184
|
+
data: GroupFileUploadEventData.describe("群文件上传事件")
|
|
44185
|
+
}).describe("群文件上传事件")
|
|
44186
|
+
]).describe("事件");
|
|
44187
|
+
var FriendEntity = object({
|
|
44188
|
+
user_id: zUin.describe("用户 QQ 号"),
|
|
44189
|
+
nickname: string$1().describe("用户昵称"),
|
|
43948
44190
|
sex: _enum([
|
|
43949
44191
|
"male",
|
|
43950
44192
|
"female",
|
|
43951
44193
|
"unknown"
|
|
43952
|
-
]).describe("用户性别")
|
|
43953
|
-
|
|
43954
|
-
|
|
43955
|
-
category_id: ZInt32.describe("好友分组 ID"),
|
|
43956
|
-
category_name: ZString.describe("好友分组名称")
|
|
43957
|
-
}).describe("好友分组实体");
|
|
43958
|
-
var FriendEntity = UserEntityBase.extend({
|
|
43959
|
-
qid: ZString.describe("用户 QID"),
|
|
43960
|
-
remark: ZString.describe("好友备注"),
|
|
44194
|
+
]).describe("用户性别"),
|
|
44195
|
+
qid: string$1().describe("用户 QID"),
|
|
44196
|
+
remark: string$1().describe("好友备注"),
|
|
43961
44197
|
category: lazy(() => FriendCategoryEntity).describe("好友分组")
|
|
43962
44198
|
}).describe("好友实体");
|
|
44199
|
+
var FriendCategoryEntity = object({
|
|
44200
|
+
category_id: number$1().int().nonnegative().describe("好友分组 ID"),
|
|
44201
|
+
category_name: string$1().describe("好友分组名称")
|
|
44202
|
+
}).describe("好友分组实体");
|
|
43963
44203
|
var GroupEntity = object({
|
|
43964
|
-
group_id:
|
|
43965
|
-
group_name:
|
|
43966
|
-
member_count:
|
|
43967
|
-
max_member_count:
|
|
43968
|
-
remark:
|
|
43969
|
-
created_time:
|
|
43970
|
-
description:
|
|
43971
|
-
question:
|
|
43972
|
-
announcement:
|
|
44204
|
+
group_id: zUin.describe("群号"),
|
|
44205
|
+
group_name: string$1().describe("群名称"),
|
|
44206
|
+
member_count: number$1().int().nonnegative().describe("群成员数量"),
|
|
44207
|
+
max_member_count: number$1().int().nonnegative().describe("群容量"),
|
|
44208
|
+
remark: string$1().describe("群备注"),
|
|
44209
|
+
created_time: number$1().int().nonnegative().describe("群创建时间,Unix 时间戳(秒)"),
|
|
44210
|
+
description: string$1().describe("群简介"),
|
|
44211
|
+
question: string$1().describe("加群验证问题"),
|
|
44212
|
+
announcement: string$1().describe("群公告预览")
|
|
43973
44213
|
}).describe("群实体");
|
|
43974
|
-
var GroupMemberEntity =
|
|
43975
|
-
|
|
43976
|
-
|
|
43977
|
-
|
|
43978
|
-
|
|
44214
|
+
var GroupMemberEntity = object({
|
|
44215
|
+
user_id: zUin.describe("用户 QQ 号"),
|
|
44216
|
+
nickname: string$1().describe("用户昵称"),
|
|
44217
|
+
sex: _enum([
|
|
44218
|
+
"male",
|
|
44219
|
+
"female",
|
|
44220
|
+
"unknown"
|
|
44221
|
+
]).describe("用户性别"),
|
|
44222
|
+
group_id: zUin.describe("群号"),
|
|
44223
|
+
card: string$1().describe("成员备注"),
|
|
44224
|
+
title: string$1().describe("专属头衔"),
|
|
44225
|
+
level: number$1().int().nonnegative().describe("群等级,注意和 QQ 等级区分"),
|
|
43979
44226
|
role: _enum([
|
|
43980
44227
|
"owner",
|
|
43981
44228
|
"admin",
|
|
43982
44229
|
"member"
|
|
43983
44230
|
]).describe("权限等级"),
|
|
43984
|
-
join_time:
|
|
43985
|
-
last_sent_time:
|
|
43986
|
-
shut_up_end_time:
|
|
44231
|
+
join_time: number$1().int().nonnegative().describe("入群时间,Unix 时间戳(秒)"),
|
|
44232
|
+
last_sent_time: number$1().int().nonnegative().describe("最后发言时间,Unix 时间戳(秒)"),
|
|
44233
|
+
shut_up_end_time: number$1().int().nonnegative().nullish().describe("禁言结束时间,Unix 时间戳(秒)")
|
|
43987
44234
|
}).describe("群成员实体");
|
|
43988
44235
|
var GroupAnnouncementEntity = object({
|
|
43989
|
-
group_id:
|
|
43990
|
-
announcement_id:
|
|
43991
|
-
user_id:
|
|
43992
|
-
time:
|
|
43993
|
-
content:
|
|
43994
|
-
image_url:
|
|
44236
|
+
group_id: zUin.describe("群号"),
|
|
44237
|
+
announcement_id: string$1().describe("公告 ID"),
|
|
44238
|
+
user_id: zUin.describe("发送者 QQ 号"),
|
|
44239
|
+
time: number$1().int().nonnegative().describe("Unix 时间戳(秒)"),
|
|
44240
|
+
content: string$1().describe("公告内容"),
|
|
44241
|
+
image_url: string$1().nullish().describe("公告图片 URL")
|
|
43995
44242
|
}).describe("群公告实体");
|
|
43996
44243
|
var GroupFileEntity = object({
|
|
43997
|
-
group_id:
|
|
43998
|
-
file_id:
|
|
43999
|
-
file_name:
|
|
44000
|
-
parent_folder_id:
|
|
44001
|
-
file_size:
|
|
44002
|
-
uploaded_time:
|
|
44003
|
-
expire_time:
|
|
44004
|
-
uploader_id:
|
|
44005
|
-
downloaded_times:
|
|
44244
|
+
group_id: zUin.describe("群号"),
|
|
44245
|
+
file_id: string$1().describe("文件 ID"),
|
|
44246
|
+
file_name: string$1().describe("文件名称"),
|
|
44247
|
+
parent_folder_id: string$1().describe("父文件夹 ID"),
|
|
44248
|
+
file_size: number$1().int().nonnegative().describe("文件大小(字节)"),
|
|
44249
|
+
uploaded_time: number$1().int().nonnegative().describe("上传时的 Unix 时间戳(秒)"),
|
|
44250
|
+
expire_time: number$1().int().nonnegative().nullish().describe("过期时的 Unix 时间戳(秒)"),
|
|
44251
|
+
uploader_id: zUin.describe("上传者 QQ 号"),
|
|
44252
|
+
downloaded_times: number$1().int().nonnegative().describe("下载次数")
|
|
44006
44253
|
}).describe("群文件实体");
|
|
44007
44254
|
var GroupFolderEntity = object({
|
|
44008
|
-
group_id:
|
|
44009
|
-
folder_id:
|
|
44010
|
-
parent_folder_id:
|
|
44011
|
-
folder_name:
|
|
44012
|
-
created_time:
|
|
44013
|
-
last_modified_time:
|
|
44014
|
-
creator_id:
|
|
44015
|
-
file_count:
|
|
44255
|
+
group_id: zUin.describe("群号"),
|
|
44256
|
+
folder_id: string$1().describe("文件夹 ID"),
|
|
44257
|
+
parent_folder_id: string$1().describe("父文件夹 ID"),
|
|
44258
|
+
folder_name: string$1().describe("文件夹名称"),
|
|
44259
|
+
created_time: number$1().int().nonnegative().describe("创建时的 Unix 时间戳(秒)"),
|
|
44260
|
+
last_modified_time: number$1().int().nonnegative().describe("最后修改时的 Unix 时间戳(秒)"),
|
|
44261
|
+
creator_id: zUin.describe("创建者 QQ 号"),
|
|
44262
|
+
file_count: number$1().int().nonnegative().describe("文件数量")
|
|
44016
44263
|
}).describe("群文件夹实体");
|
|
44017
44264
|
var FriendRequest = object({
|
|
44018
|
-
time:
|
|
44019
|
-
initiator_id:
|
|
44020
|
-
initiator_uid:
|
|
44021
|
-
target_user_id:
|
|
44022
|
-
target_user_uid:
|
|
44265
|
+
time: number$1().int().nonnegative().describe("请求发起时的 Unix 时间戳(秒)"),
|
|
44266
|
+
initiator_id: zUin.describe("请求发起者 QQ 号"),
|
|
44267
|
+
initiator_uid: string$1().describe("请求发起者 UID"),
|
|
44268
|
+
target_user_id: zUin.describe("目标用户 QQ 号"),
|
|
44269
|
+
target_user_uid: string$1().describe("目标用户 UID"),
|
|
44023
44270
|
state: _enum([
|
|
44024
44271
|
"pending",
|
|
44025
44272
|
"accepted",
|
|
44026
44273
|
"rejected",
|
|
44027
44274
|
"ignored"
|
|
44028
44275
|
]).describe("请求状态"),
|
|
44029
|
-
comment:
|
|
44030
|
-
via:
|
|
44031
|
-
is_filtered:
|
|
44276
|
+
comment: string$1().describe("申请附加信息"),
|
|
44277
|
+
via: string$1().describe("申请来源"),
|
|
44278
|
+
is_filtered: boolean$1().describe("请求是否被过滤(发起自风险账户)")
|
|
44032
44279
|
}).describe("好友请求实体");
|
|
44033
44280
|
var GroupNotification = discriminatedUnion("type", [
|
|
44034
44281
|
object({
|
|
44035
44282
|
type: literal("join_request"),
|
|
44036
|
-
group_id:
|
|
44037
|
-
notification_seq:
|
|
44038
|
-
is_filtered:
|
|
44039
|
-
initiator_id:
|
|
44283
|
+
group_id: zUin.describe("群号"),
|
|
44284
|
+
notification_seq: number$1().int().nonnegative().describe("通知序列号"),
|
|
44285
|
+
is_filtered: boolean$1().describe("请求是否被过滤(发起自风险账户)"),
|
|
44286
|
+
initiator_id: zUin.describe("发起者 QQ 号"),
|
|
44040
44287
|
state: _enum([
|
|
44041
44288
|
"pending",
|
|
44042
44289
|
"accepted",
|
|
44043
44290
|
"rejected",
|
|
44044
44291
|
"ignored"
|
|
44045
44292
|
]).describe("请求状态"),
|
|
44046
|
-
operator_id:
|
|
44047
|
-
comment:
|
|
44293
|
+
operator_id: number$1().int().nonnegative().nullish().describe("处理请求的管理员 QQ 号"),
|
|
44294
|
+
comment: string$1().describe("入群请求附加信息")
|
|
44048
44295
|
}).describe("用户入群请求"),
|
|
44049
44296
|
object({
|
|
44050
44297
|
type: literal("admin_change"),
|
|
44051
|
-
group_id:
|
|
44052
|
-
notification_seq:
|
|
44053
|
-
target_user_id:
|
|
44054
|
-
is_set:
|
|
44055
|
-
operator_id:
|
|
44298
|
+
group_id: zUin.describe("群号"),
|
|
44299
|
+
notification_seq: number$1().int().nonnegative().describe("通知序列号"),
|
|
44300
|
+
target_user_id: zUin.describe("被设置/取消用户 QQ 号"),
|
|
44301
|
+
is_set: boolean$1().describe("是否被设置为管理员,`false` 表示被取消管理员"),
|
|
44302
|
+
operator_id: zUin.describe("操作者(群主)QQ 号")
|
|
44056
44303
|
}).describe("群管理员变更通知"),
|
|
44057
44304
|
object({
|
|
44058
44305
|
type: literal("kick"),
|
|
44059
|
-
group_id:
|
|
44060
|
-
notification_seq:
|
|
44061
|
-
target_user_id:
|
|
44062
|
-
operator_id:
|
|
44306
|
+
group_id: zUin.describe("群号"),
|
|
44307
|
+
notification_seq: number$1().int().nonnegative().describe("通知序列号"),
|
|
44308
|
+
target_user_id: zUin.describe("被移除用户 QQ 号"),
|
|
44309
|
+
operator_id: zUin.describe("移除用户的管理员 QQ 号")
|
|
44063
44310
|
}).describe("群成员被移除通知"),
|
|
44064
44311
|
object({
|
|
44065
44312
|
type: literal("quit"),
|
|
44066
|
-
group_id:
|
|
44067
|
-
notification_seq:
|
|
44068
|
-
target_user_id:
|
|
44313
|
+
group_id: zUin.describe("群号"),
|
|
44314
|
+
notification_seq: number$1().int().nonnegative().describe("通知序列号"),
|
|
44315
|
+
target_user_id: zUin.describe("退群用户 QQ 号")
|
|
44069
44316
|
}).describe("群成员退群通知"),
|
|
44070
44317
|
object({
|
|
44071
44318
|
type: literal("invited_join_request"),
|
|
44072
|
-
group_id:
|
|
44073
|
-
notification_seq:
|
|
44074
|
-
initiator_id:
|
|
44075
|
-
target_user_id:
|
|
44319
|
+
group_id: zUin.describe("群号"),
|
|
44320
|
+
notification_seq: number$1().int().nonnegative().describe("通知序列号"),
|
|
44321
|
+
initiator_id: zUin.describe("邀请者 QQ 号"),
|
|
44322
|
+
target_user_id: zUin.describe("被邀请用户 QQ 号"),
|
|
44076
44323
|
state: _enum([
|
|
44077
44324
|
"pending",
|
|
44078
44325
|
"accepted",
|
|
44079
44326
|
"rejected",
|
|
44080
44327
|
"ignored"
|
|
44081
44328
|
]).describe("请求状态"),
|
|
44082
|
-
operator_id:
|
|
44329
|
+
operator_id: number$1().int().nonnegative().nullish().describe("处理请求的管理员 QQ 号")
|
|
44083
44330
|
}).describe("群成员邀请他人入群请求")
|
|
44084
44331
|
]).describe("群通知实体");
|
|
44085
|
-
var
|
|
44086
|
-
|
|
44087
|
-
|
|
44088
|
-
|
|
44089
|
-
|
|
44332
|
+
var IncomingMessage = discriminatedUnion("message_scene", [
|
|
44333
|
+
object({
|
|
44334
|
+
message_scene: literal("friend"),
|
|
44335
|
+
peer_id: zUin.describe("好友 QQ 号或群号"),
|
|
44336
|
+
message_seq: number$1().int().nonnegative().describe("消息序列号"),
|
|
44337
|
+
sender_id: zUin.describe("发送者 QQ 号"),
|
|
44338
|
+
time: number$1().int().nonnegative().describe("消息 Unix 时间戳(秒)"),
|
|
44339
|
+
segments: array(lazy(() => IncomingSegment)).describe("消息段列表"),
|
|
44340
|
+
friend: lazy(() => FriendEntity).describe("好友信息")
|
|
44341
|
+
}).describe("好友消息"),
|
|
44342
|
+
object({
|
|
44343
|
+
message_scene: literal("group"),
|
|
44344
|
+
peer_id: zUin.describe("好友 QQ 号或群号"),
|
|
44345
|
+
message_seq: number$1().int().nonnegative().describe("消息序列号"),
|
|
44346
|
+
sender_id: zUin.describe("发送者 QQ 号"),
|
|
44347
|
+
time: number$1().int().nonnegative().describe("消息 Unix 时间戳(秒)"),
|
|
44348
|
+
segments: array(lazy(() => IncomingSegment)).describe("消息段列表"),
|
|
44349
|
+
group: lazy(() => GroupEntity).describe("群信息"),
|
|
44350
|
+
group_member: lazy(() => GroupMemberEntity).describe("群成员信息")
|
|
44351
|
+
}).describe("群消息"),
|
|
44352
|
+
object({
|
|
44353
|
+
message_scene: literal("temp"),
|
|
44354
|
+
peer_id: zUin.describe("好友 QQ 号或群号"),
|
|
44355
|
+
message_seq: number$1().int().nonnegative().describe("消息序列号"),
|
|
44356
|
+
sender_id: zUin.describe("发送者 QQ 号"),
|
|
44357
|
+
time: number$1().int().nonnegative().describe("消息 Unix 时间戳(秒)"),
|
|
44358
|
+
segments: array(lazy(() => IncomingSegment)).describe("消息段列表"),
|
|
44359
|
+
group: lazy(() => GroupEntity).nullish().describe("临时会话发送者的所在的群信息")
|
|
44360
|
+
}).describe("临时会话消息")
|
|
44361
|
+
]).describe("接收消息");
|
|
44362
|
+
var IncomingForwardedMessage = object({
|
|
44363
|
+
message_seq: number$1().int().nonnegative().describe("消息序列号"),
|
|
44364
|
+
sender_name: string$1().describe("发送者名称"),
|
|
44365
|
+
avatar_url: string$1().describe("发送者头像 URL"),
|
|
44366
|
+
time: number$1().int().nonnegative().describe("消息 Unix 时间戳(秒)"),
|
|
44367
|
+
segments: array(lazy(() => IncomingSegment)).describe("消息段列表")
|
|
44368
|
+
}).describe("接收转发消息");
|
|
44369
|
+
var GroupEssenceMessage = object({
|
|
44370
|
+
group_id: zUin.describe("群号"),
|
|
44371
|
+
message_seq: number$1().int().nonnegative().describe("消息序列号"),
|
|
44372
|
+
message_time: number$1().int().nonnegative().describe("消息发送时的 Unix 时间戳(秒)"),
|
|
44373
|
+
sender_id: zUin.describe("发送者 QQ 号"),
|
|
44374
|
+
sender_name: string$1().describe("发送者名称"),
|
|
44375
|
+
operator_id: zUin.describe("设置精华的操作者 QQ 号"),
|
|
44376
|
+
operator_name: string$1().describe("设置精华的操作者名称"),
|
|
44377
|
+
operation_time: number$1().int().nonnegative().describe("消息被设置精华时的 Unix 时间戳(秒)"),
|
|
44378
|
+
segments: array(lazy(() => IncomingSegment)).describe("消息段列表")
|
|
44379
|
+
}).describe("群精华消息");
|
|
44380
|
+
var IncomingTextSegmentData = object({ text: string$1().describe("文本内容") }).describe("文本消息段");
|
|
44381
|
+
var IncomingMentionSegmentData = object({
|
|
44382
|
+
user_id: zUin.describe("提及的 QQ 号"),
|
|
44383
|
+
name: string$1().describe("去掉 `@` 前缀的提及的名称")
|
|
44384
|
+
}).describe("提及消息段");
|
|
44385
|
+
var IncomingMentionAllSegmentData = object({}).describe("提及全体消息段");
|
|
44386
|
+
var IncomingFaceSegmentData = object({
|
|
44387
|
+
face_id: string$1().describe("表情 ID"),
|
|
44388
|
+
is_large: boolean$1().describe("是否为超级表情")
|
|
44389
|
+
}).describe("表情消息段");
|
|
44390
|
+
var IncomingReplySegmentData = object({
|
|
44391
|
+
message_seq: number$1().int().nonnegative().describe("被引用的消息序列号"),
|
|
44392
|
+
sender_id: zUin.describe("被引用的消息发送者 QQ 号"),
|
|
44393
|
+
sender_name: string$1().nullish().describe("被引用的消息发送者名称,仅在合并转发中能够获取"),
|
|
44394
|
+
time: number$1().int().nonnegative().describe("被引用的消息的 Unix 时间戳(秒)"),
|
|
44395
|
+
get segments() {
|
|
44396
|
+
return array(lazy(() => IncomingSegment)).describe("回复消息内容");
|
|
44397
|
+
}
|
|
44398
|
+
}).describe("回复消息段");
|
|
44399
|
+
var IncomingImageSegmentData = object({
|
|
44400
|
+
resource_id: string$1().describe("资源 ID"),
|
|
44401
|
+
temp_url: string$1().describe("临时 URL"),
|
|
44402
|
+
width: number$1().int().nonnegative().describe("图片宽度"),
|
|
44403
|
+
height: number$1().int().nonnegative().describe("图片高度"),
|
|
44404
|
+
summary: string$1().describe("图片预览文本"),
|
|
44405
|
+
sub_type: _enum(["normal", "sticker"]).describe("图片类型")
|
|
44406
|
+
}).describe("图片消息段");
|
|
44407
|
+
var IncomingRecordSegmentData = object({
|
|
44408
|
+
resource_id: string$1().describe("资源 ID"),
|
|
44409
|
+
temp_url: string$1().describe("临时 URL"),
|
|
44410
|
+
duration: number$1().int().nonnegative().describe("语音时长(秒)")
|
|
44411
|
+
}).describe("语音消息段");
|
|
44412
|
+
var IncomingVideoSegmentData = object({
|
|
44413
|
+
resource_id: string$1().describe("资源 ID"),
|
|
44414
|
+
temp_url: string$1().describe("临时 URL"),
|
|
44415
|
+
width: number$1().int().nonnegative().describe("视频宽度"),
|
|
44416
|
+
height: number$1().int().nonnegative().describe("视频高度"),
|
|
44417
|
+
duration: number$1().int().nonnegative().describe("视频时长(秒)")
|
|
44418
|
+
}).describe("视频消息段");
|
|
44419
|
+
var IncomingFileSegmentData = object({
|
|
44420
|
+
file_id: string$1().describe("文件 ID"),
|
|
44421
|
+
file_name: string$1().describe("文件名称"),
|
|
44422
|
+
file_size: number$1().int().nonnegative().describe("文件大小(字节)"),
|
|
44423
|
+
file_hash: string$1().nullish().describe("文件的 TriSHA1 哈希值,仅在私聊文件中存在")
|
|
44424
|
+
}).describe("文件消息段");
|
|
44425
|
+
var IncomingForwardSegmentData = object({
|
|
44426
|
+
forward_id: string$1().describe("合并转发 ID"),
|
|
44427
|
+
title: string$1().describe("合并转发标题"),
|
|
44428
|
+
preview: array(string$1()).describe("合并转发预览文本"),
|
|
44429
|
+
summary: string$1().describe("合并转发摘要")
|
|
44430
|
+
}).describe("合并转发消息段");
|
|
44431
|
+
var IncomingMarketFaceSegmentData = object({
|
|
44432
|
+
emoji_package_id: number$1().int().nonnegative().describe("市场表情包 ID"),
|
|
44433
|
+
emoji_id: string$1().describe("市场表情 ID"),
|
|
44434
|
+
key: string$1().describe("市场表情 Key"),
|
|
44435
|
+
summary: string$1().describe("市场表情预览文本"),
|
|
44436
|
+
url: string$1().describe("市场表情 URL")
|
|
44437
|
+
}).describe("市场表情消息段");
|
|
44438
|
+
var IncomingLightAppSegmentData = object({
|
|
44439
|
+
app_name: string$1().describe("小程序名称"),
|
|
44440
|
+
json_payload: string$1().describe("小程序 JSON 数据")
|
|
44441
|
+
}).describe("小程序消息段");
|
|
44442
|
+
var IncomingXmlSegmentData = object({
|
|
44443
|
+
service_id: number$1().int().nonnegative().describe("服务 ID"),
|
|
44444
|
+
xml_payload: string$1().describe("XML 数据")
|
|
44445
|
+
}).describe("XML 消息段");
|
|
44090
44446
|
var IncomingSegment = discriminatedUnion("type", [
|
|
44091
44447
|
object({
|
|
44092
44448
|
type: literal("text"),
|
|
44093
|
-
data:
|
|
44449
|
+
data: IncomingTextSegmentData.describe("文本消息段")
|
|
44094
44450
|
}).describe("文本消息段"),
|
|
44095
44451
|
object({
|
|
44096
44452
|
type: literal("mention"),
|
|
44097
|
-
data:
|
|
44098
|
-
user_id: ZUin.describe("提及的 QQ 号"),
|
|
44099
|
-
name: ZString.describe("去掉 `@` 前缀的提及的名称")
|
|
44100
|
-
})
|
|
44453
|
+
data: IncomingMentionSegmentData.describe("提及消息段")
|
|
44101
44454
|
}).describe("提及消息段"),
|
|
44102
44455
|
object({
|
|
44103
44456
|
type: literal("mention_all"),
|
|
44104
|
-
data:
|
|
44457
|
+
data: IncomingMentionAllSegmentData.describe("提及全体消息段")
|
|
44105
44458
|
}).describe("提及全体消息段"),
|
|
44106
44459
|
object({
|
|
44107
44460
|
type: literal("face"),
|
|
44108
|
-
data:
|
|
44109
|
-
face_id: ZString.describe("表情 ID"),
|
|
44110
|
-
is_large: ZBoolean.describe("是否为超级表情")
|
|
44111
|
-
})
|
|
44461
|
+
data: IncomingFaceSegmentData.describe("表情消息段")
|
|
44112
44462
|
}).describe("表情消息段"),
|
|
44113
44463
|
object({
|
|
44114
44464
|
type: literal("reply"),
|
|
44115
|
-
data:
|
|
44116
|
-
message_seq: ZInt64.describe("被引用的消息序列号"),
|
|
44117
|
-
sender_id: ZUin.describe("被引用的消息发送者 QQ 号"),
|
|
44118
|
-
sender_name: ZString.nullish().describe("被引用的消息发送者名称,仅在合并转发中能够获取"),
|
|
44119
|
-
time: ZInt64.describe("被引用的消息的 Unix 时间戳(秒)"),
|
|
44120
|
-
get segments() {
|
|
44121
|
-
return array(lazy(() => IncomingSegment)).describe("被引用的消息内容");
|
|
44122
|
-
}
|
|
44123
|
-
})
|
|
44465
|
+
data: IncomingReplySegmentData.describe("回复消息段")
|
|
44124
44466
|
}).describe("回复消息段"),
|
|
44125
44467
|
object({
|
|
44126
44468
|
type: literal("image"),
|
|
44127
|
-
data:
|
|
44128
|
-
width: ZInt32.describe("图片宽度"),
|
|
44129
|
-
height: ZInt32.describe("图片高度"),
|
|
44130
|
-
summary: ZString.describe("图片预览文本"),
|
|
44131
|
-
sub_type: _enum(["normal", "sticker"]).describe("图片类型")
|
|
44132
|
-
})
|
|
44469
|
+
data: IncomingImageSegmentData.describe("图片消息段")
|
|
44133
44470
|
}).describe("图片消息段"),
|
|
44134
44471
|
object({
|
|
44135
44472
|
type: literal("record"),
|
|
44136
|
-
data:
|
|
44473
|
+
data: IncomingRecordSegmentData.describe("语音消息段")
|
|
44137
44474
|
}).describe("语音消息段"),
|
|
44138
44475
|
object({
|
|
44139
44476
|
type: literal("video"),
|
|
44140
|
-
data:
|
|
44141
|
-
width: ZInt32.describe("视频宽度"),
|
|
44142
|
-
height: ZInt32.describe("视频高度"),
|
|
44143
|
-
duration: ZInt32.describe("视频时长(秒)")
|
|
44144
|
-
})
|
|
44477
|
+
data: IncomingVideoSegmentData.describe("视频消息段")
|
|
44145
44478
|
}).describe("视频消息段"),
|
|
44146
44479
|
object({
|
|
44147
44480
|
type: literal("file"),
|
|
44148
|
-
data:
|
|
44149
|
-
file_id: ZString.describe("文件 ID"),
|
|
44150
|
-
file_name: ZString.describe("文件名称"),
|
|
44151
|
-
file_size: ZInt64.describe("文件大小(字节)"),
|
|
44152
|
-
file_hash: ZString.nullish().describe("文件的 TriSHA1 哈希值,仅在私聊文件中存在")
|
|
44153
|
-
})
|
|
44481
|
+
data: IncomingFileSegmentData.describe("文件消息段")
|
|
44154
44482
|
}).describe("文件消息段"),
|
|
44155
44483
|
object({
|
|
44156
44484
|
type: literal("forward"),
|
|
44157
|
-
data:
|
|
44158
|
-
forward_id: ZString.describe("合并转发 ID"),
|
|
44159
|
-
title: ZString.describe("合并转发标题"),
|
|
44160
|
-
preview: array(ZString).describe("合并转发预览文本"),
|
|
44161
|
-
summary: ZString.describe("合并转发摘要")
|
|
44162
|
-
})
|
|
44485
|
+
data: IncomingForwardSegmentData.describe("合并转发消息段")
|
|
44163
44486
|
}).describe("合并转发消息段"),
|
|
44164
44487
|
object({
|
|
44165
44488
|
type: literal("market_face"),
|
|
44166
|
-
data:
|
|
44167
|
-
emoji_package_id: ZInt32.describe("市场表情包 ID"),
|
|
44168
|
-
emoji_id: ZString.describe("市场表情 ID"),
|
|
44169
|
-
key: ZString.describe("市场表情 Key"),
|
|
44170
|
-
summary: ZString.describe("市场表情预览文本"),
|
|
44171
|
-
url: ZString.describe("市场表情 URL")
|
|
44172
|
-
})
|
|
44489
|
+
data: IncomingMarketFaceSegmentData.describe("市场表情消息段")
|
|
44173
44490
|
}).describe("市场表情消息段"),
|
|
44174
44491
|
object({
|
|
44175
44492
|
type: literal("light_app"),
|
|
44176
|
-
data:
|
|
44177
|
-
app_name: ZString.describe("小程序名称"),
|
|
44178
|
-
json_payload: ZString.describe("小程序 JSON 数据")
|
|
44179
|
-
})
|
|
44493
|
+
data: IncomingLightAppSegmentData.describe("小程序消息段")
|
|
44180
44494
|
}).describe("小程序消息段"),
|
|
44181
44495
|
object({
|
|
44182
44496
|
type: literal("xml"),
|
|
44183
|
-
data:
|
|
44184
|
-
service_id: ZInt32.describe("服务 ID"),
|
|
44185
|
-
xml_payload: ZString.describe("XML 数据")
|
|
44186
|
-
})
|
|
44497
|
+
data: IncomingXmlSegmentData.describe("XML 消息段")
|
|
44187
44498
|
}).describe("XML 消息段")
|
|
44188
44499
|
]).catch({
|
|
44189
44500
|
type: "text",
|
|
44190
44501
|
data: { text: "[unknown]" }
|
|
44191
44502
|
}).describe("接收消息段");
|
|
44192
|
-
var
|
|
44193
|
-
|
|
44194
|
-
sender_name:
|
|
44195
|
-
|
|
44196
|
-
|
|
44197
|
-
|
|
44198
|
-
}).describe("
|
|
44503
|
+
var OutgoingForwardedMessage = object({
|
|
44504
|
+
user_id: zUin.describe("发送者 QQ 号"),
|
|
44505
|
+
sender_name: string$1().describe("发送者名称"),
|
|
44506
|
+
segments: array(lazy(() => OutgoingSegment)).describe("消息段列表")
|
|
44507
|
+
}).describe("发送转发消息");
|
|
44508
|
+
var OutgoingTextSegmentData = object({ text: string$1().describe("文本内容") }).describe("文本消息段");
|
|
44509
|
+
var OutgoingMentionSegmentData = object({ user_id: zUin.describe("提及的 QQ 号") }).describe("提及消息段");
|
|
44510
|
+
var OutgoingMentionAllSegmentData = object({}).describe("提及全体消息段");
|
|
44511
|
+
var OutgoingFaceSegmentData = object({
|
|
44512
|
+
face_id: string$1().describe("表情 ID"),
|
|
44513
|
+
is_large: boolean$1().nullish().default(false).transform((val) => val ?? false).describe("是否为超级表情")
|
|
44514
|
+
}).describe("表情消息段");
|
|
44515
|
+
var OutgoingReplySegmentData = object({ message_seq: number$1().int().nonnegative().describe("被引用的消息序列号") }).describe("回复消息段");
|
|
44516
|
+
var OutgoingImageSegmentData = object({
|
|
44517
|
+
uri: string$1().describe("文件 URI,支持 `file://` `http(s)://` `base64://` 三种格式"),
|
|
44518
|
+
sub_type: _enum(["normal", "sticker"]).nullish().default("normal").transform((val) => val ?? "normal").describe("图片类型"),
|
|
44519
|
+
summary: string$1().nullish().describe("图片预览文本")
|
|
44520
|
+
}).describe("图片消息段");
|
|
44521
|
+
var OutgoingRecordSegmentData = object({ uri: string$1().describe("文件 URI,支持 `file://` `http(s)://` `base64://` 三种格式") }).describe("语音消息段");
|
|
44522
|
+
var OutgoingVideoSegmentData = object({
|
|
44523
|
+
uri: string$1().describe("文件 URI,支持 `file://` `http(s)://` `base64://` 三种格式"),
|
|
44524
|
+
thumb_uri: string$1().nullish().describe("封面图片 URI")
|
|
44525
|
+
}).describe("视频消息段");
|
|
44526
|
+
var OutgoingForwardSegmentData = object({
|
|
44527
|
+
get messages() {
|
|
44528
|
+
return array(lazy(() => OutgoingForwardedMessage)).describe("合并转发消息内容");
|
|
44529
|
+
},
|
|
44530
|
+
title: string$1().nullish().describe("合并转发标题"),
|
|
44531
|
+
preview: array(string$1()).nullish().describe("合并转发预览文本,若提供,至少 1 条,至多 4 条"),
|
|
44532
|
+
summary: string$1().nullish().describe("合并转发摘要"),
|
|
44533
|
+
prompt: string$1().nullish().describe("合并转发的预览外显文本,仅对移动端 QQ 有效")
|
|
44534
|
+
}).describe("合并转发消息段");
|
|
44535
|
+
var OutgoingLightAppSegmentData = object({ json_payload: string$1().describe("小程序 JSON 数据") }).describe("小程序消息段");
|
|
44199
44536
|
var OutgoingSegment = discriminatedUnion("type", [
|
|
44200
44537
|
object({
|
|
44201
44538
|
type: literal("text"),
|
|
44202
|
-
data:
|
|
44539
|
+
data: OutgoingTextSegmentData.describe("文本消息段")
|
|
44203
44540
|
}).describe("文本消息段"),
|
|
44204
44541
|
object({
|
|
44205
44542
|
type: literal("mention"),
|
|
44206
|
-
data:
|
|
44543
|
+
data: OutgoingMentionSegmentData.describe("提及消息段")
|
|
44207
44544
|
}).describe("提及消息段"),
|
|
44208
44545
|
object({
|
|
44209
44546
|
type: literal("mention_all"),
|
|
44210
|
-
data:
|
|
44547
|
+
data: OutgoingMentionAllSegmentData.describe("提及全体消息段")
|
|
44211
44548
|
}).describe("提及全体消息段"),
|
|
44212
44549
|
object({
|
|
44213
44550
|
type: literal("face"),
|
|
44214
|
-
data:
|
|
44215
|
-
face_id: ZString.describe("表情 ID"),
|
|
44216
|
-
is_large: ZBoolean.default(false).describe("是否为超级表情")
|
|
44217
|
-
})
|
|
44551
|
+
data: OutgoingFaceSegmentData.describe("表情消息段")
|
|
44218
44552
|
}).describe("表情消息段"),
|
|
44219
44553
|
object({
|
|
44220
44554
|
type: literal("reply"),
|
|
44221
|
-
data:
|
|
44555
|
+
data: OutgoingReplySegmentData.describe("回复消息段")
|
|
44222
44556
|
}).describe("回复消息段"),
|
|
44223
44557
|
object({
|
|
44224
44558
|
type: literal("image"),
|
|
44225
|
-
data:
|
|
44226
|
-
sub_type: _enum(["normal", "sticker"]).default("normal").describe("图片类型"),
|
|
44227
|
-
summary: ZString.nullish().describe("图片预览文本")
|
|
44228
|
-
})
|
|
44559
|
+
data: OutgoingImageSegmentData.describe("图片消息段")
|
|
44229
44560
|
}).describe("图片消息段"),
|
|
44230
44561
|
object({
|
|
44231
44562
|
type: literal("record"),
|
|
44232
|
-
data:
|
|
44563
|
+
data: OutgoingRecordSegmentData.describe("语音消息段")
|
|
44233
44564
|
}).describe("语音消息段"),
|
|
44234
44565
|
object({
|
|
44235
44566
|
type: literal("video"),
|
|
44236
|
-
data:
|
|
44567
|
+
data: OutgoingVideoSegmentData.describe("视频消息段")
|
|
44237
44568
|
}).describe("视频消息段"),
|
|
44238
44569
|
object({
|
|
44239
44570
|
type: literal("forward"),
|
|
44240
|
-
data:
|
|
44241
|
-
get messages() {
|
|
44242
|
-
return array(lazy(() => OutgoingForwardedMessage)).describe("合并转发消息内容");
|
|
44243
|
-
},
|
|
44244
|
-
title: ZString.nullish().describe("合并转发标题"),
|
|
44245
|
-
preview: array(ZString).min(1).max(4).nullish().describe("合并转发预览文本,若提供,至少 1 条,至多 4 条"),
|
|
44246
|
-
summary: ZString.nullish().describe("合并转发摘要"),
|
|
44247
|
-
prompt: ZString.nullish().describe("合并转发的预览外显文本,仅对移动端 QQ 有效")
|
|
44248
|
-
})
|
|
44571
|
+
data: OutgoingForwardSegmentData.describe("合并转发消息段")
|
|
44249
44572
|
}).describe("合并转发消息段"),
|
|
44250
44573
|
object({
|
|
44251
44574
|
type: literal("light_app"),
|
|
44252
|
-
data:
|
|
44575
|
+
data: OutgoingLightAppSegmentData.describe("小程序消息段")
|
|
44253
44576
|
}).describe("小程序消息段")
|
|
44254
44577
|
]).describe("发送消息段");
|
|
44255
|
-
var OutgoingForwardedMessage = object({
|
|
44256
|
-
user_id: ZUin.describe("发送者 QQ 号"),
|
|
44257
|
-
sender_name: ZString.describe("发送者名称"),
|
|
44258
|
-
segments: array(lazy(() => OutgoingSegment)).describe("消息段列表")
|
|
44259
|
-
}).describe("发送转发消息");
|
|
44260
|
-
var IncomingMessage = discriminatedUnion("message_scene", [
|
|
44261
|
-
object({
|
|
44262
|
-
message_scene: literal("friend"),
|
|
44263
|
-
peer_id: ZUin.describe("好友 QQ 号或群号"),
|
|
44264
|
-
message_seq: ZInt64.describe("消息序列号"),
|
|
44265
|
-
sender_id: ZUin.describe("发送者 QQ 号"),
|
|
44266
|
-
time: ZInt64.describe("消息 Unix 时间戳(秒)"),
|
|
44267
|
-
segments: array(lazy(() => IncomingSegment)).describe("消息段列表"),
|
|
44268
|
-
friend: lazy(() => FriendEntity).describe("好友信息")
|
|
44269
|
-
}).describe("好友消息"),
|
|
44270
|
-
object({
|
|
44271
|
-
message_scene: literal("group"),
|
|
44272
|
-
peer_id: ZUin.describe("好友 QQ 号或群号"),
|
|
44273
|
-
message_seq: ZInt64.describe("消息序列号"),
|
|
44274
|
-
sender_id: ZUin.describe("发送者 QQ 号"),
|
|
44275
|
-
time: ZInt64.describe("消息 Unix 时间戳(秒)"),
|
|
44276
|
-
segments: array(lazy(() => IncomingSegment)).describe("消息段列表"),
|
|
44277
|
-
group: lazy(() => GroupEntity).describe("群信息"),
|
|
44278
|
-
group_member: lazy(() => GroupMemberEntity).describe("群成员信息")
|
|
44279
|
-
}).describe("群消息"),
|
|
44280
|
-
object({
|
|
44281
|
-
message_scene: literal("temp"),
|
|
44282
|
-
peer_id: ZUin.describe("好友 QQ 号或群号"),
|
|
44283
|
-
message_seq: ZInt64.describe("消息序列号"),
|
|
44284
|
-
sender_id: ZUin.describe("发送者 QQ 号"),
|
|
44285
|
-
time: ZInt64.describe("消息 Unix 时间戳(秒)"),
|
|
44286
|
-
segments: array(lazy(() => IncomingSegment)).describe("消息段列表"),
|
|
44287
|
-
group: lazy(() => GroupEntity).nullish().describe("临时会话发送者的所在的群信息")
|
|
44288
|
-
}).describe("临时会话消息")
|
|
44289
|
-
]).describe("接收消息");
|
|
44290
|
-
var GroupEssenceMessage = object({
|
|
44291
|
-
group_id: ZUin.describe("群号"),
|
|
44292
|
-
message_seq: ZInt64.describe("消息序列号"),
|
|
44293
|
-
message_time: ZInt64.describe("消息发送时的 Unix 时间戳(秒)"),
|
|
44294
|
-
sender_id: ZUin.describe("发送者 QQ 号"),
|
|
44295
|
-
sender_name: ZString.describe("发送者名称"),
|
|
44296
|
-
operator_id: ZUin.describe("设置精华的操作者 QQ 号"),
|
|
44297
|
-
operator_name: ZString.describe("设置精华的操作者名称"),
|
|
44298
|
-
operation_time: ZInt64.describe("消息被设置精华时的 Unix 时间戳(秒)"),
|
|
44299
|
-
segments: array(lazy(() => IncomingSegment)).describe("消息段列表")
|
|
44300
|
-
}).describe("群精华消息");
|
|
44301
|
-
var BotOfflineEvent = object({ reason: ZString.describe("下线原因") });
|
|
44302
|
-
var MessageRecallEvent = object({
|
|
44303
|
-
message_scene: _enum([
|
|
44304
|
-
"friend",
|
|
44305
|
-
"group",
|
|
44306
|
-
"temp"
|
|
44307
|
-
]).describe("消息场景"),
|
|
44308
|
-
peer_id: ZUin.describe("好友 QQ 号或群号"),
|
|
44309
|
-
message_seq: ZInt64.describe("消息序列号"),
|
|
44310
|
-
sender_id: ZUin.describe("被撤回的消息的发送者 QQ 号"),
|
|
44311
|
-
operator_id: ZUin.describe("操作者 QQ 号"),
|
|
44312
|
-
display_suffix: ZString.describe("撤回提示的后缀文本")
|
|
44313
|
-
});
|
|
44314
|
-
var PeerPinChangeEvent = object({
|
|
44315
|
-
message_scene: _enum([
|
|
44316
|
-
"friend",
|
|
44317
|
-
"group",
|
|
44318
|
-
"temp"
|
|
44319
|
-
]).describe("发生改变的会话的消息场景"),
|
|
44320
|
-
peer_id: ZUin.describe("发生改变的好友 QQ 号或群号"),
|
|
44321
|
-
is_pinned: ZBoolean.describe("是否被置顶, `false` 表示取消置顶")
|
|
44322
|
-
});
|
|
44323
|
-
var FriendRequestEvent = object({
|
|
44324
|
-
initiator_id: ZUin.describe("申请好友的用户 QQ 号"),
|
|
44325
|
-
initiator_uid: ZString.describe("用户 UID"),
|
|
44326
|
-
comment: ZString.describe("申请附加信息"),
|
|
44327
|
-
via: ZString.describe("申请来源")
|
|
44328
|
-
});
|
|
44329
|
-
var GroupJoinRequestEvent = object({
|
|
44330
|
-
group_id: ZUin.describe("群号"),
|
|
44331
|
-
notification_seq: ZInt64.describe("请求对应的通知序列号"),
|
|
44332
|
-
is_filtered: ZBoolean.describe("请求是否被过滤(发起自风险账户)"),
|
|
44333
|
-
initiator_id: ZUin.describe("申请入群的用户 QQ 号"),
|
|
44334
|
-
comment: ZString.describe("申请附加信息")
|
|
44335
|
-
});
|
|
44336
|
-
var GroupInvitedJoinRequestEvent = object({
|
|
44337
|
-
group_id: ZUin.describe("群号"),
|
|
44338
|
-
notification_seq: ZInt64.describe("请求对应的通知序列号"),
|
|
44339
|
-
initiator_id: ZUin.describe("邀请者 QQ 号"),
|
|
44340
|
-
target_user_id: ZUin.describe("被邀请者 QQ 号")
|
|
44341
|
-
});
|
|
44342
|
-
var GroupInvitationEvent = object({
|
|
44343
|
-
group_id: ZUin.describe("群号"),
|
|
44344
|
-
invitation_seq: ZInt64.describe("邀请序列号"),
|
|
44345
|
-
initiator_id: ZUin.describe("邀请者 QQ 号"),
|
|
44346
|
-
source_group_id: ZUin.nullish().describe("来源群号,如果是通过 QQ 群邀请")
|
|
44347
|
-
});
|
|
44348
|
-
var FriendNudgeEvent = object({
|
|
44349
|
-
user_id: ZUin.describe("好友 QQ 号"),
|
|
44350
|
-
is_self_send: ZBoolean.describe("是否是自己发送的戳一戳"),
|
|
44351
|
-
is_self_receive: ZBoolean.describe("是否是自己接收的戳一戳"),
|
|
44352
|
-
display_action: ZString.describe("戳一戳提示的动作文本"),
|
|
44353
|
-
display_suffix: ZString.describe("戳一戳提示的后缀文本"),
|
|
44354
|
-
display_action_img_url: ZString.describe("戳一戳提示的动作图片 URL,用于取代动作提示文本")
|
|
44355
|
-
});
|
|
44356
|
-
var FriendFileUploadEvent = object({
|
|
44357
|
-
user_id: ZUin.describe("好友 QQ 号"),
|
|
44358
|
-
file_id: ZString.describe("文件 ID"),
|
|
44359
|
-
file_name: ZString.describe("文件名称"),
|
|
44360
|
-
file_size: ZInt64.describe("文件大小(字节)"),
|
|
44361
|
-
file_hash: ZString.describe("文件的 TriSHA1 哈希值"),
|
|
44362
|
-
is_self: ZBoolean.describe("是否是自己发送的文件")
|
|
44363
|
-
});
|
|
44364
|
-
var GroupAdminChangeEvent = object({
|
|
44365
|
-
group_id: ZUin.describe("群号"),
|
|
44366
|
-
user_id: ZUin.describe("发生变更的用户 QQ 号"),
|
|
44367
|
-
operator_id: ZUin.describe("操作者 QQ 号"),
|
|
44368
|
-
is_set: ZBoolean.describe("是否被设置为管理员,`false` 表示被取消管理员")
|
|
44369
|
-
});
|
|
44370
|
-
var GroupEssenceMessageChangeEvent = object({
|
|
44371
|
-
group_id: ZUin.describe("群号"),
|
|
44372
|
-
message_seq: ZInt64.describe("发生变更的消息序列号"),
|
|
44373
|
-
operator_id: ZUin.describe("操作者 QQ 号"),
|
|
44374
|
-
is_set: ZBoolean.describe("是否被设置为精华,`false` 表示被取消精华")
|
|
44375
|
-
});
|
|
44376
|
-
var GroupMemberIncreaseEvent = object({
|
|
44377
|
-
group_id: ZUin.describe("群号"),
|
|
44378
|
-
user_id: ZUin.describe("发生变更的用户 QQ 号"),
|
|
44379
|
-
operator_id: ZUin.nullish().describe("管理员 QQ 号,如果是管理员同意入群"),
|
|
44380
|
-
invitor_id: ZUin.nullish().describe("邀请者 QQ 号,如果是邀请入群")
|
|
44381
|
-
});
|
|
44382
|
-
var GroupMemberDecreaseEvent = object({
|
|
44383
|
-
group_id: ZUin.describe("群号"),
|
|
44384
|
-
user_id: ZUin.describe("发生变更的用户 QQ 号"),
|
|
44385
|
-
operator_id: ZUin.nullish().describe("管理员 QQ 号,如果是管理员踢出")
|
|
44386
|
-
});
|
|
44387
|
-
var GroupNameChangeEvent = object({
|
|
44388
|
-
group_id: ZUin.describe("群号"),
|
|
44389
|
-
new_group_name: ZString.describe("新的群名称"),
|
|
44390
|
-
operator_id: ZUin.describe("操作者 QQ 号")
|
|
44391
|
-
});
|
|
44392
|
-
var GroupMessageReactionEvent = object({
|
|
44393
|
-
group_id: ZUin.describe("群号"),
|
|
44394
|
-
user_id: ZUin.describe("发送回应者 QQ 号"),
|
|
44395
|
-
message_seq: ZInt64.describe("消息序列号"),
|
|
44396
|
-
face_id: ZString.describe("表情 ID"),
|
|
44397
|
-
reaction_type: _enum(["face", "emoji"]).describe("收到的回应类型"),
|
|
44398
|
-
is_add: ZBoolean.describe("是否为添加,`false` 表示取消回应")
|
|
44399
|
-
});
|
|
44400
|
-
var GroupMuteEvent = object({
|
|
44401
|
-
group_id: ZUin.describe("群号"),
|
|
44402
|
-
user_id: ZUin.describe("发生变更的用户 QQ 号"),
|
|
44403
|
-
operator_id: ZUin.describe("操作者 QQ 号"),
|
|
44404
|
-
duration: ZInt32.describe("禁言时长(秒),为 0 表示取消禁言")
|
|
44405
|
-
});
|
|
44406
|
-
var GroupWholeMuteEvent = object({
|
|
44407
|
-
group_id: ZUin.describe("群号"),
|
|
44408
|
-
operator_id: ZUin.describe("操作者 QQ 号"),
|
|
44409
|
-
is_mute: ZBoolean.describe("是否全员禁言,`false` 表示取消全员禁言")
|
|
44410
|
-
});
|
|
44411
|
-
var GroupNudgeEvent = object({
|
|
44412
|
-
group_id: ZUin.describe("群号"),
|
|
44413
|
-
sender_id: ZUin.describe("发送者 QQ 号"),
|
|
44414
|
-
receiver_id: ZUin.describe("接收者 QQ 号"),
|
|
44415
|
-
display_action: ZString.describe("戳一戳提示的动作文本"),
|
|
44416
|
-
display_suffix: ZString.describe("戳一戳提示的后缀文本"),
|
|
44417
|
-
display_action_img_url: ZString.describe("戳一戳提示的动作图片 URL,用于取代动作提示文本")
|
|
44418
|
-
});
|
|
44419
|
-
var GroupFileUploadEvent = object({
|
|
44420
|
-
group_id: ZUin.describe("群号"),
|
|
44421
|
-
user_id: ZUin.describe("发送者 QQ 号"),
|
|
44422
|
-
file_id: ZString.describe("文件 ID"),
|
|
44423
|
-
file_name: ZString.describe("文件名称"),
|
|
44424
|
-
file_size: ZInt64.describe("文件大小(字节)")
|
|
44425
|
-
});
|
|
44426
|
-
discriminatedUnion("event_type", [
|
|
44427
|
-
object({
|
|
44428
|
-
event_type: literal("bot_offline"),
|
|
44429
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44430
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44431
|
-
data: BotOfflineEvent
|
|
44432
|
-
}).describe("机器人离线事件"),
|
|
44433
|
-
object({
|
|
44434
|
-
event_type: literal("message_receive"),
|
|
44435
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44436
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44437
|
-
data: IncomingMessage
|
|
44438
|
-
}).describe("消息接收事件"),
|
|
44439
|
-
object({
|
|
44440
|
-
event_type: literal("message_recall"),
|
|
44441
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44442
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44443
|
-
data: MessageRecallEvent
|
|
44444
|
-
}).describe("消息撤回事件"),
|
|
44445
|
-
object({
|
|
44446
|
-
event_type: literal("peer_pin_change"),
|
|
44447
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44448
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44449
|
-
data: PeerPinChangeEvent
|
|
44450
|
-
}).describe("会话置顶变更事件"),
|
|
44451
|
-
object({
|
|
44452
|
-
event_type: literal("friend_request"),
|
|
44453
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44454
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44455
|
-
data: FriendRequestEvent
|
|
44456
|
-
}).describe("好友请求事件"),
|
|
44457
|
-
object({
|
|
44458
|
-
event_type: literal("group_join_request"),
|
|
44459
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44460
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44461
|
-
data: GroupJoinRequestEvent
|
|
44462
|
-
}).describe("入群请求事件"),
|
|
44463
|
-
object({
|
|
44464
|
-
event_type: literal("group_invited_join_request"),
|
|
44465
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44466
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44467
|
-
data: GroupInvitedJoinRequestEvent
|
|
44468
|
-
}).describe("群成员邀请他人入群请求事件"),
|
|
44469
|
-
object({
|
|
44470
|
-
event_type: literal("group_invitation"),
|
|
44471
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44472
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44473
|
-
data: GroupInvitationEvent
|
|
44474
|
-
}).describe("他人邀请自身入群事件"),
|
|
44475
|
-
object({
|
|
44476
|
-
event_type: literal("friend_nudge"),
|
|
44477
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44478
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44479
|
-
data: FriendNudgeEvent
|
|
44480
|
-
}).describe("好友戳一戳事件"),
|
|
44481
|
-
object({
|
|
44482
|
-
event_type: literal("friend_file_upload"),
|
|
44483
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44484
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44485
|
-
data: FriendFileUploadEvent
|
|
44486
|
-
}).describe("好友文件上传事件"),
|
|
44487
|
-
object({
|
|
44488
|
-
event_type: literal("group_admin_change"),
|
|
44489
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44490
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44491
|
-
data: GroupAdminChangeEvent
|
|
44492
|
-
}).describe("群管理员变更事件"),
|
|
44493
|
-
object({
|
|
44494
|
-
event_type: literal("group_essence_message_change"),
|
|
44495
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44496
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44497
|
-
data: GroupEssenceMessageChangeEvent
|
|
44498
|
-
}).describe("群精华消息变更事件"),
|
|
44499
|
-
object({
|
|
44500
|
-
event_type: literal("group_member_increase"),
|
|
44501
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44502
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44503
|
-
data: GroupMemberIncreaseEvent
|
|
44504
|
-
}).describe("群成员增加事件"),
|
|
44505
|
-
object({
|
|
44506
|
-
event_type: literal("group_member_decrease"),
|
|
44507
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44508
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44509
|
-
data: GroupMemberDecreaseEvent
|
|
44510
|
-
}).describe("群成员减少事件"),
|
|
44511
|
-
object({
|
|
44512
|
-
event_type: literal("group_name_change"),
|
|
44513
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44514
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44515
|
-
data: GroupNameChangeEvent
|
|
44516
|
-
}).describe("群名称变更事件"),
|
|
44517
|
-
object({
|
|
44518
|
-
event_type: literal("group_message_reaction"),
|
|
44519
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44520
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44521
|
-
data: GroupMessageReactionEvent
|
|
44522
|
-
}).describe("群消息表情回应事件"),
|
|
44523
|
-
object({
|
|
44524
|
-
event_type: literal("group_mute"),
|
|
44525
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44526
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44527
|
-
data: GroupMuteEvent
|
|
44528
|
-
}).describe("群禁言事件"),
|
|
44529
|
-
object({
|
|
44530
|
-
event_type: literal("group_whole_mute"),
|
|
44531
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44532
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44533
|
-
data: GroupWholeMuteEvent
|
|
44534
|
-
}).describe("群全体禁言事件"),
|
|
44535
|
-
object({
|
|
44536
|
-
event_type: literal("group_nudge"),
|
|
44537
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44538
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44539
|
-
data: GroupNudgeEvent
|
|
44540
|
-
}).describe("群戳一戳事件"),
|
|
44541
|
-
object({
|
|
44542
|
-
event_type: literal("group_file_upload"),
|
|
44543
|
-
time: ZInt64.describe("事件 Unix 时间戳(秒)"),
|
|
44544
|
-
self_id: ZUin.describe("机器人 QQ 号"),
|
|
44545
|
-
data: GroupFileUploadEvent
|
|
44546
|
-
}).describe("群文件上传事件")
|
|
44547
|
-
]).describe("事件");
|
|
44548
|
-
var milkyVersion = "1.2.0".split(".").slice(0, 2).join(".");
|
|
44549
|
-
var CachedApiBase = object({ no_cache: ZBooleanWithDefault(false).describe("是否强制不使用缓存") });
|
|
44550
44578
|
var GetLoginInfoOutput = object({
|
|
44551
|
-
uin:
|
|
44552
|
-
nickname:
|
|
44553
|
-
});
|
|
44579
|
+
uin: zUin.describe("登录 QQ 号"),
|
|
44580
|
+
nickname: string$1().describe("登录昵称")
|
|
44581
|
+
}).describe("get_login_info 响应数据");
|
|
44554
44582
|
var GetImplInfoOutput = object({
|
|
44555
|
-
impl_name:
|
|
44556
|
-
impl_version:
|
|
44557
|
-
qq_protocol_version:
|
|
44583
|
+
impl_name: string$1().describe("协议端名称"),
|
|
44584
|
+
impl_version: string$1().describe("协议端版本"),
|
|
44585
|
+
qq_protocol_version: string$1().describe("协议端使用的 QQ 协议版本"),
|
|
44558
44586
|
qq_protocol_type: _enum([
|
|
44559
44587
|
"windows",
|
|
44560
44588
|
"linux",
|
|
@@ -44566,306 +44594,320 @@ var GetImplInfoOutput = object({
|
|
|
44566
44594
|
"harmony",
|
|
44567
44595
|
"watch"
|
|
44568
44596
|
]).describe("协议端使用的 QQ 协议平台"),
|
|
44569
|
-
milky_version:
|
|
44570
|
-
});
|
|
44571
|
-
var GetUserProfileInput = object({ user_id:
|
|
44597
|
+
milky_version: string$1().describe("协议端实现的 Milky 协议版本,目前为 \"1.2\"")
|
|
44598
|
+
}).describe("get_impl_info 响应数据");
|
|
44599
|
+
var GetUserProfileInput = object({ user_id: zUin.describe("用户 QQ 号") }).describe("get_user_profile 请求参数");
|
|
44572
44600
|
var GetUserProfileOutput = object({
|
|
44573
|
-
nickname:
|
|
44574
|
-
qid:
|
|
44575
|
-
age:
|
|
44601
|
+
nickname: string$1().describe("昵称"),
|
|
44602
|
+
qid: string$1().describe("QID"),
|
|
44603
|
+
age: number$1().int().nonnegative().describe("年龄"),
|
|
44576
44604
|
sex: _enum([
|
|
44577
44605
|
"male",
|
|
44578
44606
|
"female",
|
|
44579
44607
|
"unknown"
|
|
44580
44608
|
]).describe("性别"),
|
|
44581
|
-
remark:
|
|
44582
|
-
bio:
|
|
44583
|
-
level:
|
|
44584
|
-
country:
|
|
44585
|
-
city:
|
|
44586
|
-
school:
|
|
44587
|
-
});
|
|
44588
|
-
var GetFriendListInput =
|
|
44589
|
-
var GetFriendListOutput = object({ friends: array(lazy(() => FriendEntity)).describe("好友列表") });
|
|
44590
|
-
var GetFriendInfoInput = object({
|
|
44591
|
-
|
|
44592
|
-
|
|
44593
|
-
|
|
44594
|
-
var
|
|
44595
|
-
var
|
|
44596
|
-
var
|
|
44597
|
-
var
|
|
44609
|
+
remark: string$1().describe("备注"),
|
|
44610
|
+
bio: string$1().describe("个性签名"),
|
|
44611
|
+
level: number$1().int().nonnegative().describe("QQ 等级"),
|
|
44612
|
+
country: string$1().describe("国家或地区"),
|
|
44613
|
+
city: string$1().describe("城市"),
|
|
44614
|
+
school: string$1().describe("学校")
|
|
44615
|
+
}).describe("get_user_profile 响应数据");
|
|
44616
|
+
var GetFriendListInput = object({ no_cache: boolean$1().nullish().default(false).transform((val) => val ?? false).describe("是否强制不使用缓存") }).describe("get_friend_list 请求参数");
|
|
44617
|
+
var GetFriendListOutput = object({ friends: array(lazy(() => FriendEntity)).describe("好友列表") }).describe("get_friend_list 响应数据");
|
|
44618
|
+
var GetFriendInfoInput = object({
|
|
44619
|
+
user_id: zUin.describe("好友 QQ 号"),
|
|
44620
|
+
no_cache: boolean$1().nullish().default(false).transform((val) => val ?? false).describe("是否强制不使用缓存")
|
|
44621
|
+
}).describe("get_friend_info 请求参数");
|
|
44622
|
+
var GetFriendInfoOutput = object({ friend: lazy(() => FriendEntity).describe("好友信息") }).describe("get_friend_info 响应数据");
|
|
44623
|
+
var GetGroupListInput = object({ no_cache: boolean$1().nullish().default(false).transform((val) => val ?? false).describe("是否强制不使用缓存") }).describe("get_group_list 请求参数");
|
|
44624
|
+
var GetGroupListOutput = object({ groups: array(lazy(() => GroupEntity)).describe("群列表") }).describe("get_group_list 响应数据");
|
|
44625
|
+
var GetGroupInfoInput = object({
|
|
44626
|
+
group_id: zUin.describe("群号"),
|
|
44627
|
+
no_cache: boolean$1().nullish().default(false).transform((val) => val ?? false).describe("是否强制不使用缓存")
|
|
44628
|
+
}).describe("get_group_info 请求参数");
|
|
44629
|
+
var GetGroupInfoOutput = object({ group: lazy(() => GroupEntity).describe("群信息") }).describe("get_group_info 响应数据");
|
|
44630
|
+
var GetGroupMemberListInput = object({
|
|
44631
|
+
group_id: zUin.describe("群号"),
|
|
44632
|
+
no_cache: boolean$1().nullish().default(false).transform((val) => val ?? false).describe("是否强制不使用缓存")
|
|
44633
|
+
}).describe("get_group_member_list 请求参数");
|
|
44634
|
+
var GetGroupMemberListOutput = object({ members: array(lazy(() => GroupMemberEntity)).describe("群成员列表") }).describe("get_group_member_list 响应数据");
|
|
44598
44635
|
var GetGroupMemberInfoInput = object({
|
|
44599
|
-
group_id:
|
|
44600
|
-
user_id:
|
|
44601
|
-
|
|
44602
|
-
|
|
44636
|
+
group_id: zUin.describe("群号"),
|
|
44637
|
+
user_id: zUin.describe("群成员 QQ 号"),
|
|
44638
|
+
no_cache: boolean$1().nullish().default(false).transform((val) => val ?? false).describe("是否强制不使用缓存")
|
|
44639
|
+
}).describe("get_group_member_info 请求参数");
|
|
44640
|
+
var GetGroupMemberInfoOutput = object({ member: lazy(() => GroupMemberEntity).describe("群成员信息") }).describe("get_group_member_info 响应数据");
|
|
44603
44641
|
var GetPeerPinsOutput = object({
|
|
44604
44642
|
friends: array(lazy(() => FriendEntity)).describe("置顶的好友列表"),
|
|
44605
44643
|
groups: array(lazy(() => GroupEntity)).describe("置顶的群列表")
|
|
44606
|
-
});
|
|
44644
|
+
}).describe("get_peer_pins 响应数据");
|
|
44607
44645
|
var SetPeerPinInput = object({
|
|
44608
44646
|
message_scene: _enum([
|
|
44609
44647
|
"friend",
|
|
44610
44648
|
"group",
|
|
44611
44649
|
"temp"
|
|
44612
44650
|
]).describe("要设置的会话的消息场景"),
|
|
44613
|
-
peer_id:
|
|
44614
|
-
is_pinned:
|
|
44615
|
-
});
|
|
44616
|
-
var SetAvatarInput = object({ uri:
|
|
44617
|
-
var SetNicknameInput = object({ new_nickname:
|
|
44618
|
-
var SetBioInput = object({ new_bio:
|
|
44619
|
-
var GetCustomFaceUrlListOutput = object({ urls: array(
|
|
44620
|
-
var GetCookiesInput = object({ domain:
|
|
44621
|
-
var GetCookiesOutput = object({ cookies:
|
|
44622
|
-
var GetCSRFTokenOutput = object({ csrf_token:
|
|
44623
|
-
var
|
|
44624
|
-
|
|
44625
|
-
|
|
44626
|
-
|
|
44627
|
-
|
|
44628
|
-
|
|
44629
|
-
|
|
44630
|
-
|
|
44631
|
-
var
|
|
44651
|
+
peer_id: zUin.describe("要设置的好友 QQ 号或群号"),
|
|
44652
|
+
is_pinned: boolean$1().nullish().default(true).transform((val) => val ?? true).describe("是否置顶, `false` 表示取消置顶")
|
|
44653
|
+
}).describe("set_peer_pin 请求参数");
|
|
44654
|
+
var SetAvatarInput = object({ uri: string$1().describe("头像文件 URI,支持 `file://` `http(s)://` `base64://` 三种格式") }).describe("set_avatar 请求参数");
|
|
44655
|
+
var SetNicknameInput = object({ new_nickname: string$1().describe("新昵称") }).describe("set_nickname 请求参数");
|
|
44656
|
+
var SetBioInput = object({ new_bio: string$1().describe("新个性签名") }).describe("set_bio 请求参数");
|
|
44657
|
+
var GetCustomFaceUrlListOutput = object({ urls: array(string$1()).describe("自定义表情 URL 列表") }).describe("get_custom_face_url_list 响应数据");
|
|
44658
|
+
var GetCookiesInput = object({ domain: string$1().describe("需要获取 Cookies 的域名") }).describe("get_cookies 请求参数");
|
|
44659
|
+
var GetCookiesOutput = object({ cookies: string$1().describe("域名对应的 Cookies 字符串") }).describe("get_cookies 响应数据");
|
|
44660
|
+
var GetCSRFTokenOutput = object({ csrf_token: string$1().describe("CSRF Token") }).describe("get_csrf_token 响应数据");
|
|
44661
|
+
var SendPrivateMessageInput = object({
|
|
44662
|
+
user_id: zUin.describe("好友 QQ 号"),
|
|
44663
|
+
message: array(lazy(() => OutgoingSegment)).describe("消息内容")
|
|
44664
|
+
}).describe("send_private_message 请求参数");
|
|
44665
|
+
var SendPrivateMessageOutput = object({
|
|
44666
|
+
message_seq: number$1().int().nonnegative().describe("消息序列号"),
|
|
44667
|
+
time: number$1().int().nonnegative().describe("消息发送时间")
|
|
44668
|
+
}).describe("send_private_message 响应数据");
|
|
44669
|
+
var SendGroupMessageInput = object({
|
|
44670
|
+
group_id: zUin.describe("群号"),
|
|
44671
|
+
message: array(lazy(() => OutgoingSegment)).describe("消息内容")
|
|
44672
|
+
}).describe("send_group_message 请求参数");
|
|
44673
|
+
var SendGroupMessageOutput = object({
|
|
44674
|
+
message_seq: number$1().int().nonnegative().describe("消息序列号"),
|
|
44675
|
+
time: number$1().int().nonnegative().describe("消息发送时间")
|
|
44676
|
+
}).describe("send_group_message 响应数据");
|
|
44632
44677
|
var RecallPrivateMessageInput = object({
|
|
44633
|
-
user_id:
|
|
44634
|
-
message_seq:
|
|
44635
|
-
});
|
|
44678
|
+
user_id: zUin.describe("好友 QQ 号"),
|
|
44679
|
+
message_seq: number$1().int().nonnegative().describe("消息序列号")
|
|
44680
|
+
}).describe("recall_private_message 请求参数");
|
|
44636
44681
|
var RecallGroupMessageInput = object({
|
|
44637
|
-
group_id:
|
|
44638
|
-
message_seq:
|
|
44639
|
-
});
|
|
44682
|
+
group_id: zUin.describe("群号"),
|
|
44683
|
+
message_seq: number$1().int().nonnegative().describe("消息序列号")
|
|
44684
|
+
}).describe("recall_group_message 请求参数");
|
|
44640
44685
|
var GetMessageInput = object({
|
|
44641
44686
|
message_scene: _enum([
|
|
44642
44687
|
"friend",
|
|
44643
44688
|
"group",
|
|
44644
44689
|
"temp"
|
|
44645
44690
|
]).describe("消息场景"),
|
|
44646
|
-
peer_id:
|
|
44647
|
-
message_seq:
|
|
44648
|
-
});
|
|
44649
|
-
var GetMessageOutput = object({ message: lazy(() => IncomingMessage).describe("消息内容") });
|
|
44691
|
+
peer_id: zUin.describe("好友 QQ 号或群号"),
|
|
44692
|
+
message_seq: number$1().int().nonnegative().describe("消息序列号")
|
|
44693
|
+
}).describe("get_message 请求参数");
|
|
44694
|
+
var GetMessageOutput = object({ message: lazy(() => IncomingMessage).describe("消息内容") }).describe("get_message 响应数据");
|
|
44650
44695
|
var GetHistoryMessagesInput = object({
|
|
44651
44696
|
message_scene: _enum([
|
|
44652
44697
|
"friend",
|
|
44653
44698
|
"group",
|
|
44654
44699
|
"temp"
|
|
44655
44700
|
]).describe("消息场景"),
|
|
44656
|
-
peer_id:
|
|
44657
|
-
start_message_seq:
|
|
44658
|
-
limit: number$1().int().
|
|
44659
|
-
});
|
|
44701
|
+
peer_id: zUin.describe("好友 QQ 号或群号"),
|
|
44702
|
+
start_message_seq: number$1().int().nonnegative().nullish().describe("起始消息序列号,由此开始从新到旧查询,不提供则从最新消息开始"),
|
|
44703
|
+
limit: number$1().int().nonnegative().nullish().default(20).transform((val) => val ?? 20).describe("期望获取到的消息数量,最多 30 条")
|
|
44704
|
+
}).describe("get_history_messages 请求参数");
|
|
44660
44705
|
var GetHistoryMessagesOutput = object({
|
|
44661
44706
|
messages: array(lazy(() => IncomingMessage)).describe("获取到的消息(message_seq 升序排列),部分消息可能不存在,如撤回的消息"),
|
|
44662
|
-
next_message_seq:
|
|
44663
|
-
});
|
|
44664
|
-
var GetResourceTempUrlInput = object({ resource_id:
|
|
44665
|
-
var GetResourceTempUrlOutput = object({ url:
|
|
44666
|
-
var GetForwardedMessagesInput = object({ forward_id:
|
|
44667
|
-
var GetForwardedMessagesOutput = object({ messages: array(lazy(() => IncomingForwardedMessage)).describe("转发消息内容") });
|
|
44707
|
+
next_message_seq: number$1().int().nonnegative().nullish().describe("下一页起始消息序列号")
|
|
44708
|
+
}).describe("get_history_messages 响应数据");
|
|
44709
|
+
var GetResourceTempUrlInput = object({ resource_id: string$1().describe("资源 ID") }).describe("get_resource_temp_url 请求参数");
|
|
44710
|
+
var GetResourceTempUrlOutput = object({ url: string$1().describe("临时资源链接") }).describe("get_resource_temp_url 响应数据");
|
|
44711
|
+
var GetForwardedMessagesInput = object({ forward_id: string$1().describe("转发消息 ID") }).describe("get_forwarded_messages 请求参数");
|
|
44712
|
+
var GetForwardedMessagesOutput = object({ messages: array(lazy(() => IncomingForwardedMessage)).describe("转发消息内容") }).describe("get_forwarded_messages 响应数据");
|
|
44668
44713
|
var MarkMessageAsReadInput = object({
|
|
44669
44714
|
message_scene: _enum([
|
|
44670
44715
|
"friend",
|
|
44671
44716
|
"group",
|
|
44672
44717
|
"temp"
|
|
44673
44718
|
]).describe("消息场景"),
|
|
44674
|
-
peer_id:
|
|
44675
|
-
message_seq:
|
|
44676
|
-
});
|
|
44719
|
+
peer_id: zUin.describe("好友 QQ 号或群号"),
|
|
44720
|
+
message_seq: number$1().int().nonnegative().describe("标为已读的消息序列号,该消息及更早的消息将被标记为已读")
|
|
44721
|
+
}).describe("mark_message_as_read 请求参数");
|
|
44677
44722
|
var SendFriendNudgeInput = object({
|
|
44678
|
-
user_id:
|
|
44679
|
-
is_self:
|
|
44680
|
-
});
|
|
44723
|
+
user_id: zUin.describe("好友 QQ 号"),
|
|
44724
|
+
is_self: boolean$1().nullish().default(false).transform((val) => val ?? false).describe("是否戳自己")
|
|
44725
|
+
}).describe("send_friend_nudge 请求参数");
|
|
44681
44726
|
var SendProfileLikeInput = object({
|
|
44682
|
-
user_id:
|
|
44683
|
-
count:
|
|
44684
|
-
});
|
|
44685
|
-
var DeleteFriendInput = object({ user_id:
|
|
44727
|
+
user_id: zUin.describe("好友 QQ 号"),
|
|
44728
|
+
count: number$1().int().nonnegative().nullish().default(1).transform((val) => val ?? 1).describe("点赞数量")
|
|
44729
|
+
}).describe("send_profile_like 请求参数");
|
|
44730
|
+
var DeleteFriendInput = object({ user_id: zUin.describe("好友 QQ 号") }).describe("delete_friend 请求参数");
|
|
44686
44731
|
var GetFriendRequestsInput = object({
|
|
44687
|
-
limit:
|
|
44688
|
-
is_filtered:
|
|
44689
|
-
});
|
|
44690
|
-
var GetFriendRequestsOutput = object({ requests: array(lazy(() => FriendRequest)).describe("好友请求列表") });
|
|
44732
|
+
limit: number$1().int().nonnegative().nullish().default(20).transform((val) => val ?? 20).describe("获取的最大请求数量"),
|
|
44733
|
+
is_filtered: boolean$1().nullish().default(false).transform((val) => val ?? false).describe("`true` 表示只获取被过滤(由风险账号发起)的通知,`false` 表示只获取未被过滤的通知")
|
|
44734
|
+
}).describe("get_friend_requests 请求参数");
|
|
44735
|
+
var GetFriendRequestsOutput = object({ requests: array(lazy(() => FriendRequest)).describe("好友请求列表") }).describe("get_friend_requests 响应数据");
|
|
44691
44736
|
var AcceptFriendRequestInput = object({
|
|
44692
|
-
initiator_uid:
|
|
44693
|
-
is_filtered:
|
|
44694
|
-
});
|
|
44737
|
+
initiator_uid: string$1().describe("请求发起者 UID"),
|
|
44738
|
+
is_filtered: boolean$1().nullish().default(false).transform((val) => val ?? false).describe("是否是被过滤的请求")
|
|
44739
|
+
}).describe("accept_friend_request 请求参数");
|
|
44695
44740
|
var RejectFriendRequestInput = object({
|
|
44696
|
-
initiator_uid:
|
|
44697
|
-
is_filtered:
|
|
44698
|
-
reason:
|
|
44699
|
-
});
|
|
44700
|
-
function ZRobustArray(element) {
|
|
44701
|
-
return zod_default.array(element.catch(null)).transform((val) => val.filter((item) => item !== null));
|
|
44702
|
-
}
|
|
44741
|
+
initiator_uid: string$1().describe("请求发起者 UID"),
|
|
44742
|
+
is_filtered: boolean$1().nullish().default(false).transform((val) => val ?? false).describe("是否是被过滤的请求"),
|
|
44743
|
+
reason: string$1().nullish().describe("拒绝理由")
|
|
44744
|
+
}).describe("reject_friend_request 请求参数");
|
|
44703
44745
|
var SetGroupNameInput = object({
|
|
44704
|
-
group_id:
|
|
44705
|
-
new_group_name:
|
|
44706
|
-
});
|
|
44746
|
+
group_id: zUin.describe("群号"),
|
|
44747
|
+
new_group_name: string$1().describe("新群名称")
|
|
44748
|
+
}).describe("set_group_name 请求参数");
|
|
44707
44749
|
var SetGroupAvatarInput = object({
|
|
44708
|
-
group_id:
|
|
44709
|
-
image_uri:
|
|
44710
|
-
});
|
|
44750
|
+
group_id: zUin.describe("群号"),
|
|
44751
|
+
image_uri: string$1().describe("头像文件 URI,支持 `file://` `http(s)://` `base64://` 三种格式")
|
|
44752
|
+
}).describe("set_group_avatar 请求参数");
|
|
44711
44753
|
var SetGroupMemberCardInput = object({
|
|
44712
|
-
group_id:
|
|
44713
|
-
user_id:
|
|
44714
|
-
card:
|
|
44715
|
-
});
|
|
44754
|
+
group_id: zUin.describe("群号"),
|
|
44755
|
+
user_id: zUin.describe("被设置的群成员 QQ 号"),
|
|
44756
|
+
card: string$1().describe("新群名片")
|
|
44757
|
+
}).describe("set_group_member_card 请求参数");
|
|
44716
44758
|
var SetGroupMemberSpecialTitleInput = object({
|
|
44717
|
-
group_id:
|
|
44718
|
-
user_id:
|
|
44719
|
-
special_title:
|
|
44720
|
-
});
|
|
44759
|
+
group_id: zUin.describe("群号"),
|
|
44760
|
+
user_id: zUin.describe("被设置的群成员 QQ 号"),
|
|
44761
|
+
special_title: string$1().describe("新专属头衔")
|
|
44762
|
+
}).describe("set_group_member_special_title 请求参数");
|
|
44721
44763
|
var SetGroupMemberAdminInput = object({
|
|
44722
|
-
group_id:
|
|
44723
|
-
user_id:
|
|
44724
|
-
is_set:
|
|
44725
|
-
});
|
|
44764
|
+
group_id: zUin.describe("群号"),
|
|
44765
|
+
user_id: zUin.describe("被设置的 QQ 号"),
|
|
44766
|
+
is_set: boolean$1().nullish().default(true).transform((val) => val ?? true).describe("是否设置为管理员,`false` 表示取消管理员")
|
|
44767
|
+
}).describe("set_group_member_admin 请求参数");
|
|
44726
44768
|
var SetGroupMemberMuteInput = object({
|
|
44727
|
-
group_id:
|
|
44728
|
-
user_id:
|
|
44729
|
-
duration:
|
|
44730
|
-
});
|
|
44769
|
+
group_id: zUin.describe("群号"),
|
|
44770
|
+
user_id: zUin.describe("被设置的 QQ 号"),
|
|
44771
|
+
duration: number$1().int().nonnegative().nullish().default(0).transform((val) => val ?? 0).describe("禁言持续时间(秒),设为 `0` 为取消禁言")
|
|
44772
|
+
}).describe("set_group_member_mute 请求参数");
|
|
44731
44773
|
var SetGroupWholeMuteInput = object({
|
|
44732
|
-
group_id:
|
|
44733
|
-
is_mute:
|
|
44734
|
-
});
|
|
44774
|
+
group_id: zUin.describe("群号"),
|
|
44775
|
+
is_mute: boolean$1().nullish().default(true).transform((val) => val ?? true).describe("是否开启全员禁言,`false` 表示取消全员禁言")
|
|
44776
|
+
}).describe("set_group_whole_mute 请求参数");
|
|
44735
44777
|
var KickGroupMemberInput = object({
|
|
44736
|
-
group_id:
|
|
44737
|
-
user_id:
|
|
44738
|
-
reject_add_request:
|
|
44739
|
-
});
|
|
44740
|
-
var GetGroupAnnouncementsInput = object({ group_id:
|
|
44741
|
-
var GetGroupAnnouncementsOutput = object({ announcements: array(lazy(() => GroupAnnouncementEntity)).describe("群公告列表") });
|
|
44778
|
+
group_id: zUin.describe("群号"),
|
|
44779
|
+
user_id: zUin.describe("被踢的 QQ 号"),
|
|
44780
|
+
reject_add_request: boolean$1().nullish().default(false).transform((val) => val ?? false).describe("是否拒绝加群申请,`false` 表示不拒绝")
|
|
44781
|
+
}).describe("kick_group_member 请求参数");
|
|
44782
|
+
var GetGroupAnnouncementsInput = object({ group_id: zUin.describe("群号") }).describe("get_group_announcements 请求参数");
|
|
44783
|
+
var GetGroupAnnouncementsOutput = object({ announcements: array(lazy(() => GroupAnnouncementEntity)).describe("群公告列表") }).describe("get_group_announcements 响应数据");
|
|
44742
44784
|
var SendGroupAnnouncementInput = object({
|
|
44743
|
-
group_id:
|
|
44744
|
-
content:
|
|
44745
|
-
image_uri:
|
|
44746
|
-
});
|
|
44785
|
+
group_id: zUin.describe("群号"),
|
|
44786
|
+
content: string$1().describe("公告内容"),
|
|
44787
|
+
image_uri: string$1().nullish().describe("公告附带图像文件 URI,支持 `file://` `http(s)://` `base64://` 三种格式")
|
|
44788
|
+
}).describe("send_group_announcement 请求参数");
|
|
44747
44789
|
var DeleteGroupAnnouncementInput = object({
|
|
44748
|
-
group_id:
|
|
44749
|
-
announcement_id:
|
|
44750
|
-
});
|
|
44790
|
+
group_id: zUin.describe("群号"),
|
|
44791
|
+
announcement_id: string$1().describe("公告 ID")
|
|
44792
|
+
}).describe("delete_group_announcement 请求参数");
|
|
44751
44793
|
var GetGroupEssenceMessagesInput = object({
|
|
44752
|
-
group_id:
|
|
44753
|
-
page_index:
|
|
44754
|
-
page_size:
|
|
44755
|
-
});
|
|
44794
|
+
group_id: zUin.describe("群号"),
|
|
44795
|
+
page_index: number$1().int().nonnegative().describe("页码索引,从 0 开始"),
|
|
44796
|
+
page_size: number$1().int().nonnegative().describe("每页包含的精华消息数量")
|
|
44797
|
+
}).describe("get_group_essence_messages 请求参数");
|
|
44756
44798
|
var GetGroupEssenceMessagesOutput = object({
|
|
44757
44799
|
messages: array(lazy(() => GroupEssenceMessage)).describe("精华消息列表"),
|
|
44758
|
-
is_end:
|
|
44759
|
-
});
|
|
44800
|
+
is_end: boolean$1().describe("是否已到最后一页")
|
|
44801
|
+
}).describe("get_group_essence_messages 响应数据");
|
|
44760
44802
|
var SetGroupEssenceMessageInput = object({
|
|
44761
|
-
group_id:
|
|
44762
|
-
message_seq:
|
|
44763
|
-
is_set:
|
|
44764
|
-
});
|
|
44765
|
-
var QuitGroupInput = object({ group_id:
|
|
44803
|
+
group_id: zUin.describe("群号"),
|
|
44804
|
+
message_seq: number$1().int().nonnegative().describe("消息序列号"),
|
|
44805
|
+
is_set: boolean$1().nullish().default(true).transform((val) => val ?? true).describe("是否设置为精华消息,`false` 表示取消精华")
|
|
44806
|
+
}).describe("set_group_essence_message 请求参数");
|
|
44807
|
+
var QuitGroupInput = object({ group_id: zUin.describe("群号") }).describe("quit_group 请求参数");
|
|
44766
44808
|
var SendGroupMessageReactionInput = object({
|
|
44767
|
-
group_id:
|
|
44768
|
-
message_seq:
|
|
44769
|
-
reaction:
|
|
44770
|
-
reaction_type: _enum(["face", "emoji"]).default("face").describe("发送的回应类型"),
|
|
44771
|
-
is_add:
|
|
44772
|
-
});
|
|
44809
|
+
group_id: zUin.describe("群号"),
|
|
44810
|
+
message_seq: number$1().int().nonnegative().describe("要回应的消息序列号"),
|
|
44811
|
+
reaction: string$1().describe("发送的回应的表情 ID"),
|
|
44812
|
+
reaction_type: _enum(["face", "emoji"]).nullish().default("face").transform((val) => val ?? "face").describe("发送的回应类型"),
|
|
44813
|
+
is_add: boolean$1().nullish().default(true).transform((val) => val ?? true).describe("是否添加表情,`false` 表示取消")
|
|
44814
|
+
}).describe("send_group_message_reaction 请求参数");
|
|
44773
44815
|
var SendGroupNudgeInput = object({
|
|
44774
|
-
group_id:
|
|
44775
|
-
user_id:
|
|
44776
|
-
});
|
|
44816
|
+
group_id: zUin.describe("群号"),
|
|
44817
|
+
user_id: zUin.describe("被戳的群成员 QQ 号")
|
|
44818
|
+
}).describe("send_group_nudge 请求参数");
|
|
44777
44819
|
var GetGroupNotificationsInput = object({
|
|
44778
|
-
start_notification_seq:
|
|
44779
|
-
is_filtered:
|
|
44780
|
-
limit:
|
|
44781
|
-
});
|
|
44820
|
+
start_notification_seq: number$1().int().nonnegative().nullish().describe("起始通知序列号"),
|
|
44821
|
+
is_filtered: boolean$1().nullish().default(false).transform((val) => val ?? false).describe("`true` 表示只获取被过滤(由风险账号发起)的通知,`false` 表示只获取未被过滤的通知"),
|
|
44822
|
+
limit: number$1().int().nonnegative().nullish().default(20).transform((val) => val ?? 20).describe("获取的最大通知数量")
|
|
44823
|
+
}).describe("get_group_notifications 请求参数");
|
|
44782
44824
|
var GetGroupNotificationsOutput = object({
|
|
44783
|
-
notifications:
|
|
44784
|
-
next_notification_seq:
|
|
44785
|
-
});
|
|
44825
|
+
notifications: zDropBadElementArray(GroupNotification).describe("获取到的群通知(notification_seq 降序排列),序列号不一定连续"),
|
|
44826
|
+
next_notification_seq: number$1().int().nonnegative().nullish().describe("下一页起始通知序列号")
|
|
44827
|
+
}).describe("get_group_notifications 响应数据");
|
|
44786
44828
|
var AcceptGroupRequestInput = object({
|
|
44787
|
-
notification_seq:
|
|
44829
|
+
notification_seq: number$1().int().nonnegative().describe("请求对应的通知序列号"),
|
|
44788
44830
|
notification_type: _enum(["join_request", "invited_join_request"]).describe("请求对应的通知类型"),
|
|
44789
|
-
group_id:
|
|
44790
|
-
is_filtered:
|
|
44791
|
-
});
|
|
44831
|
+
group_id: zUin.describe("请求所在的群号"),
|
|
44832
|
+
is_filtered: boolean$1().nullish().default(false).transform((val) => val ?? false).describe("是否是被过滤的请求")
|
|
44833
|
+
}).describe("accept_group_request 请求参数");
|
|
44792
44834
|
var RejectGroupRequestInput = object({
|
|
44793
|
-
notification_seq:
|
|
44835
|
+
notification_seq: number$1().int().nonnegative().describe("请求对应的通知序列号"),
|
|
44794
44836
|
notification_type: _enum(["join_request", "invited_join_request"]).describe("请求对应的通知类型"),
|
|
44795
|
-
group_id:
|
|
44796
|
-
is_filtered:
|
|
44797
|
-
reason:
|
|
44798
|
-
});
|
|
44837
|
+
group_id: zUin.describe("请求所在的群号"),
|
|
44838
|
+
is_filtered: boolean$1().nullish().default(false).transform((val) => val ?? false).describe("是否是被过滤的请求"),
|
|
44839
|
+
reason: string$1().nullish().describe("拒绝理由")
|
|
44840
|
+
}).describe("reject_group_request 请求参数");
|
|
44799
44841
|
var AcceptGroupInvitationInput = object({
|
|
44800
|
-
group_id:
|
|
44801
|
-
invitation_seq:
|
|
44802
|
-
});
|
|
44842
|
+
group_id: zUin.describe("群号"),
|
|
44843
|
+
invitation_seq: number$1().int().nonnegative().describe("邀请序列号")
|
|
44844
|
+
}).describe("accept_group_invitation 请求参数");
|
|
44803
44845
|
var RejectGroupInvitationInput = object({
|
|
44804
|
-
group_id:
|
|
44805
|
-
invitation_seq:
|
|
44806
|
-
});
|
|
44846
|
+
group_id: zUin.describe("群号"),
|
|
44847
|
+
invitation_seq: number$1().int().nonnegative().describe("邀请序列号")
|
|
44848
|
+
}).describe("reject_group_invitation 请求参数");
|
|
44807
44849
|
var UploadPrivateFileInput = object({
|
|
44808
|
-
user_id:
|
|
44809
|
-
file_uri:
|
|
44810
|
-
file_name:
|
|
44811
|
-
});
|
|
44812
|
-
var UploadPrivateFileOutput = object({ file_id:
|
|
44850
|
+
user_id: zUin.describe("好友 QQ 号"),
|
|
44851
|
+
file_uri: string$1().describe("文件 URI,支持 `file://` `http(s)://` `base64://` 三种格式"),
|
|
44852
|
+
file_name: string$1().describe("文件名称")
|
|
44853
|
+
}).describe("upload_private_file 请求参数");
|
|
44854
|
+
var UploadPrivateFileOutput = object({ file_id: string$1().describe("文件 ID") }).describe("upload_private_file 响应数据");
|
|
44813
44855
|
var UploadGroupFileInput = object({
|
|
44814
|
-
group_id:
|
|
44815
|
-
parent_folder_id:
|
|
44816
|
-
file_uri:
|
|
44817
|
-
file_name:
|
|
44818
|
-
});
|
|
44819
|
-
var UploadGroupFileOutput = object({ file_id:
|
|
44856
|
+
group_id: zUin.describe("群号"),
|
|
44857
|
+
parent_folder_id: string$1().nullish().default("/").transform((val) => val ?? "/").describe("目标文件夹 ID"),
|
|
44858
|
+
file_uri: string$1().describe("文件 URI,支持 `file://` `http(s)://` `base64://` 三种格式"),
|
|
44859
|
+
file_name: string$1().describe("文件名称")
|
|
44860
|
+
}).describe("upload_group_file 请求参数");
|
|
44861
|
+
var UploadGroupFileOutput = object({ file_id: string$1().describe("文件 ID") }).describe("upload_group_file 响应数据");
|
|
44820
44862
|
var GetPrivateFileDownloadUrlInput = object({
|
|
44821
|
-
user_id:
|
|
44822
|
-
file_id:
|
|
44823
|
-
file_hash:
|
|
44824
|
-
});
|
|
44825
|
-
var GetPrivateFileDownloadUrlOutput = object({ download_url:
|
|
44863
|
+
user_id: zUin.describe("好友 QQ 号"),
|
|
44864
|
+
file_id: string$1().describe("文件 ID"),
|
|
44865
|
+
file_hash: string$1().describe("文件的 TriSHA1 哈希值")
|
|
44866
|
+
}).describe("get_private_file_download_url 请求参数");
|
|
44867
|
+
var GetPrivateFileDownloadUrlOutput = object({ download_url: string$1().describe("文件下载链接") }).describe("get_private_file_download_url 响应数据");
|
|
44826
44868
|
var GetGroupFileDownloadUrlInput = object({
|
|
44827
|
-
group_id:
|
|
44828
|
-
file_id:
|
|
44829
|
-
});
|
|
44830
|
-
var GetGroupFileDownloadUrlOutput = object({ download_url:
|
|
44869
|
+
group_id: zUin.describe("群号"),
|
|
44870
|
+
file_id: string$1().describe("文件 ID")
|
|
44871
|
+
}).describe("get_group_file_download_url 请求参数");
|
|
44872
|
+
var GetGroupFileDownloadUrlOutput = object({ download_url: string$1().describe("文件下载链接") }).describe("get_group_file_download_url 响应数据");
|
|
44831
44873
|
var GetGroupFilesInput = object({
|
|
44832
|
-
group_id:
|
|
44833
|
-
parent_folder_id:
|
|
44834
|
-
});
|
|
44874
|
+
group_id: zUin.describe("群号"),
|
|
44875
|
+
parent_folder_id: string$1().nullish().default("/").transform((val) => val ?? "/").describe("父文件夹 ID")
|
|
44876
|
+
}).describe("get_group_files 请求参数");
|
|
44835
44877
|
var GetGroupFilesOutput = object({
|
|
44836
44878
|
files: array(lazy(() => GroupFileEntity)).describe("文件列表"),
|
|
44837
44879
|
folders: array(lazy(() => GroupFolderEntity)).describe("文件夹列表")
|
|
44838
|
-
});
|
|
44880
|
+
}).describe("get_group_files 响应数据");
|
|
44839
44881
|
var MoveGroupFileInput = object({
|
|
44840
|
-
group_id:
|
|
44841
|
-
file_id:
|
|
44842
|
-
parent_folder_id:
|
|
44843
|
-
target_folder_id:
|
|
44844
|
-
});
|
|
44882
|
+
group_id: zUin.describe("群号"),
|
|
44883
|
+
file_id: string$1().describe("文件 ID"),
|
|
44884
|
+
parent_folder_id: string$1().nullish().default("/").transform((val) => val ?? "/").describe("文件所在的文件夹 ID"),
|
|
44885
|
+
target_folder_id: string$1().nullish().default("/").transform((val) => val ?? "/").describe("目标文件夹 ID")
|
|
44886
|
+
}).describe("move_group_file 请求参数");
|
|
44845
44887
|
var RenameGroupFileInput = object({
|
|
44846
|
-
group_id:
|
|
44847
|
-
file_id:
|
|
44848
|
-
parent_folder_id:
|
|
44849
|
-
new_file_name:
|
|
44850
|
-
});
|
|
44888
|
+
group_id: zUin.describe("群号"),
|
|
44889
|
+
file_id: string$1().describe("文件 ID"),
|
|
44890
|
+
parent_folder_id: string$1().nullish().default("/").transform((val) => val ?? "/").describe("文件所在的文件夹 ID"),
|
|
44891
|
+
new_file_name: string$1().describe("新文件名称")
|
|
44892
|
+
}).describe("rename_group_file 请求参数");
|
|
44851
44893
|
var DeleteGroupFileInput = object({
|
|
44852
|
-
group_id:
|
|
44853
|
-
file_id:
|
|
44854
|
-
});
|
|
44894
|
+
group_id: zUin.describe("群号"),
|
|
44895
|
+
file_id: string$1().describe("文件 ID")
|
|
44896
|
+
}).describe("delete_group_file 请求参数");
|
|
44855
44897
|
var CreateGroupFolderInput = object({
|
|
44856
|
-
group_id:
|
|
44857
|
-
folder_name:
|
|
44858
|
-
});
|
|
44859
|
-
var CreateGroupFolderOutput = object({ folder_id:
|
|
44898
|
+
group_id: zUin.describe("群号"),
|
|
44899
|
+
folder_name: string$1().describe("文件夹名称")
|
|
44900
|
+
}).describe("create_group_folder 请求参数");
|
|
44901
|
+
var CreateGroupFolderOutput = object({ folder_id: string$1().describe("文件夹 ID") }).describe("create_group_folder 响应数据");
|
|
44860
44902
|
var RenameGroupFolderInput = object({
|
|
44861
|
-
group_id:
|
|
44862
|
-
folder_id:
|
|
44863
|
-
new_folder_name:
|
|
44864
|
-
});
|
|
44903
|
+
group_id: zUin.describe("群号"),
|
|
44904
|
+
folder_id: string$1().describe("文件夹 ID"),
|
|
44905
|
+
new_folder_name: string$1().describe("新文件夹名")
|
|
44906
|
+
}).describe("rename_group_folder 请求参数");
|
|
44865
44907
|
var DeleteGroupFolderInput = object({
|
|
44866
|
-
group_id:
|
|
44867
|
-
folder_id:
|
|
44868
|
-
});
|
|
44908
|
+
group_id: zUin.describe("群号"),
|
|
44909
|
+
folder_id: string$1().describe("文件夹 ID")
|
|
44910
|
+
}).describe("delete_group_folder 请求参数");
|
|
44869
44911
|
//#endregion
|
|
44870
44912
|
//#region src/milky/common/download.ts
|
|
44871
44913
|
async function getResponse(url, headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36" }, useReferer = false) {
|
|
@@ -54339,7 +54381,7 @@ async function authMiddleware(c, next) {
|
|
|
54339
54381
|
const clientIp = c.env.incoming.socket.remoteAddress;
|
|
54340
54382
|
const token = webuiTokenUtil.getToken();
|
|
54341
54383
|
if (!token) {
|
|
54342
|
-
if (c.req.path === "/set-token") return await next();
|
|
54384
|
+
if (c.req.path === "/api/set-token") return await next();
|
|
54343
54385
|
logAccess(clientIp, c.req.method, c.req.path, 401, "未设置密码");
|
|
54344
54386
|
return c.json({
|
|
54345
54387
|
success: false,
|