@luckylillia-dev/plugin-onebot11 1.0.3 → 1.1.0
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/lib/api.js +110 -0
- package/lib/api.js.map +7 -0
- package/lib/chunk-DYMW7N7M.js +24193 -0
- package/lib/chunk-DYMW7N7M.js.map +7 -0
- package/lib/index.js +411 -16844
- package/lib/index.js.map +4 -4
- package/lib/types/action/go-cqhttp/QuickOperation.d.ts +19 -0
- package/lib/types/action/index.d.ts +2 -0
- package/lib/types/action/llbot/system/GetEvent.d.ts +21 -0
- package/lib/types/adapter.d.ts +29 -0
- package/lib/types/api.d.ts +2 -0
- package/lib/types/config.d.ts +30 -64
- package/lib/types/connect/http.d.ts +43 -0
- package/lib/types/connect/ws.d.ts +47 -0
- package/lib/types/eventfilter.d.ts +2 -0
- package/lib/types/helper/eventForHttp.d.ts +6 -0
- package/lib/types/helper/quickOperation.d.ts +27 -0
- package/lib/types/index.d.ts +7 -7
- package/lib/types/protocol/action/BaseAction.d.ts +20 -0
- package/lib/types/protocol/action/OB11Response.d.ts +6 -0
- package/lib/types/protocol/action/file/GetFile.d.ts +39 -0
- package/lib/types/protocol/action/file/GetImage.d.ts +5 -0
- package/lib/types/protocol/action/file/GetRecord.d.ts +26 -0
- package/lib/types/protocol/action/go-cqhttp/CreateGroupFileFolder.d.ts +24 -0
- package/lib/types/protocol/action/go-cqhttp/DeleteEssenceMsg.d.ts +15 -0
- package/lib/types/protocol/action/go-cqhttp/DeleteFriend.d.ts +15 -0
- package/lib/types/protocol/action/go-cqhttp/DeleteGroupFile.d.ts +21 -0
- package/lib/types/protocol/action/go-cqhttp/DeleteGroupFolder.d.ts +18 -0
- package/lib/types/protocol/action/go-cqhttp/DownloadFile.d.ts +27 -0
- package/lib/types/protocol/action/go-cqhttp/GetForwardMsg.d.ts +25 -0
- package/lib/types/protocol/action/go-cqhttp/GetGroupAtAllRemain.d.ts +24 -0
- package/lib/types/protocol/action/go-cqhttp/GetGroupEssence.d.ts +24 -0
- package/lib/types/protocol/action/go-cqhttp/GetGroupFileSystemInfo.d.ts +26 -0
- package/lib/types/protocol/action/go-cqhttp/GetGroupFileUrl.d.ts +23 -0
- package/lib/types/protocol/action/go-cqhttp/GetGroupFilesByFolder.d.ts +38 -0
- package/lib/types/protocol/action/go-cqhttp/GetGroupMsgHistory.d.ts +30 -0
- package/lib/types/protocol/action/go-cqhttp/GetGroupNotice.d.ts +35 -0
- package/lib/types/protocol/action/go-cqhttp/GetGroupRootFiles.d.ts +46 -0
- package/lib/types/protocol/action/go-cqhttp/GetGroupSystemMsg.d.ts +28 -0
- package/lib/types/protocol/action/go-cqhttp/GetStrangerInfo.d.ts +52 -0
- package/lib/types/protocol/action/go-cqhttp/MarkMsgAsRead.d.ts +15 -0
- package/lib/types/protocol/action/go-cqhttp/OCRImage.d.ts +37 -0
- package/lib/types/protocol/action/go-cqhttp/SendForwardMsg.d.ts +76 -0
- package/lib/types/protocol/action/go-cqhttp/SendGroupNotice.d.ts +36 -0
- package/lib/types/protocol/action/go-cqhttp/SendGroupSign.d.ts +15 -0
- package/lib/types/protocol/action/go-cqhttp/SetEssenceMsg.d.ts +15 -0
- package/lib/types/protocol/action/go-cqhttp/SetGroupPortrait.d.ts +19 -0
- package/lib/types/protocol/action/go-cqhttp/SetGroupSpecialTitle.d.ts +21 -0
- package/lib/types/protocol/action/go-cqhttp/SetQQProfile.d.ts +18 -0
- package/lib/types/protocol/action/go-cqhttp/UploadGroupFile.d.ts +32 -0
- package/lib/types/protocol/action/go-cqhttp/UploadPrivateFile.d.ts +26 -0
- package/lib/types/protocol/action/group/GetGroupHonorInfo.d.ts +38 -0
- package/lib/types/protocol/action/group/GetGroupInfo.d.ts +32 -0
- package/lib/types/protocol/action/group/GetGroupList.d.ts +29 -0
- package/lib/types/protocol/action/group/GetGroupMemberInfo.d.ts +22 -0
- package/lib/types/protocol/action/group/GetGroupMemberList.d.ts +19 -0
- package/lib/types/protocol/action/group/GetGuildList.d.ts +6 -0
- package/lib/types/protocol/action/group/SendGroupMsg.d.ts +10 -0
- package/lib/types/protocol/action/group/SetGroupAddRequest.d.ts +21 -0
- package/lib/types/protocol/action/group/SetGroupAdmin.d.ts +21 -0
- package/lib/types/protocol/action/group/SetGroupBan.d.ts +21 -0
- package/lib/types/protocol/action/group/SetGroupCard.d.ts +21 -0
- package/lib/types/protocol/action/group/SetGroupKick.d.ts +21 -0
- package/lib/types/protocol/action/group/SetGroupLeave.d.ts +16 -0
- package/lib/types/protocol/action/group/SetGroupName.d.ts +18 -0
- package/lib/types/protocol/action/group/SetGroupWholeBan.d.ts +18 -0
- package/lib/types/protocol/action/index.d.ts +3 -0
- package/lib/types/protocol/action/llbot/file/DownloadFlashFile.d.ts +6 -0
- package/lib/types/protocol/action/llbot/file/GetFlashFileDownloadUrls.d.ts +26 -0
- package/lib/types/protocol/action/llbot/file/GetFlashFileInfo.d.ts +41 -0
- package/lib/types/protocol/action/llbot/file/GetPrivateFileUrl.d.ts +19 -0
- package/lib/types/protocol/action/llbot/file/GetRkey.d.ts +18 -0
- package/lib/types/protocol/action/llbot/file/MoveGroupFile.d.ts +24 -0
- package/lib/types/protocol/action/llbot/file/ReShareFlashFile.d.ts +17 -0
- package/lib/types/protocol/action/llbot/file/RenameGroupFile.d.ts +24 -0
- package/lib/types/protocol/action/llbot/file/RenameGroupFileFolder.d.ts +21 -0
- package/lib/types/protocol/action/llbot/file/SetGroupFileForever.d.ts +18 -0
- package/lib/types/protocol/action/llbot/file/UploadFlashFile.d.ts +41 -0
- package/lib/types/protocol/action/llbot/group/BatchDeleteGroupMember.d.ts +18 -0
- package/lib/types/protocol/action/llbot/group/DeleteGroupNotice.d.ts +18 -0
- package/lib/types/protocol/action/llbot/group/GetGroupAddRequest.d.ts +12 -0
- package/lib/types/protocol/action/llbot/group/GetGroupNoticeAcklist.d.ts +30 -0
- package/lib/types/protocol/action/llbot/group/GetGroupShutList.d.ts +38 -0
- package/lib/types/protocol/action/llbot/group/GetGroupSignedList.d.ts +26 -0
- package/lib/types/protocol/action/llbot/group/GroupAlbum/CreateGroupAlbum.d.ts +21 -0
- package/lib/types/protocol/action/llbot/group/GroupAlbum/DeleteGroupAlbum.d.ts +18 -0
- package/lib/types/protocol/action/llbot/group/GroupAlbum/GetGroupAlbumList.d.ts +132 -0
- package/lib/types/protocol/action/llbot/group/GroupAlbum/GetGroupAlbumMediaList.d.ts +306 -0
- package/lib/types/protocol/action/llbot/group/GroupAlbum/UploadGroupAlbum.d.ts +21 -0
- package/lib/types/protocol/action/llbot/group/GroupPoke.d.ts +18 -0
- package/lib/types/protocol/action/llbot/group/SetGroupMsgMask.d.ts +18 -0
- package/lib/types/protocol/action/llbot/group/SetGroupRemark.d.ts +18 -0
- package/lib/types/protocol/action/llbot/msg/FetchCustomFace.d.ts +6 -0
- package/lib/types/protocol/action/llbot/msg/FetchEmojiLike.d.ts +37 -0
- package/lib/types/protocol/action/llbot/msg/ForwardSingleMsg.d.ts +31 -0
- package/lib/types/protocol/action/llbot/msg/GetAiCharacters.d.ts +26 -0
- package/lib/types/protocol/action/llbot/msg/GetFriendMsgHistory.d.ts +30 -0
- package/lib/types/protocol/action/llbot/msg/GetRecommendFace.d.ts +20 -0
- package/lib/types/protocol/action/llbot/msg/SendGroupAiRecord.d.ts +27 -0
- package/lib/types/protocol/action/llbot/msg/SendPoke.d.ts +21 -0
- package/lib/types/protocol/action/llbot/msg/SetMsgEmojiLike.d.ts +26 -0
- package/lib/types/protocol/action/llbot/msg/VoiceMsg2Text.d.ts +17 -0
- package/lib/types/protocol/action/llbot/system/Config.d.ts +32 -0
- package/lib/types/protocol/action/llbot/system/Debug.d.ts +21 -0
- package/lib/types/protocol/action/llbot/system/GetRobotUinRange.d.ts +10 -0
- package/lib/types/protocol/action/llbot/system/ScanQRCode.d.ts +18 -0
- package/lib/types/protocol/action/llbot/system/SendPB.d.ts +27 -0
- package/lib/types/protocol/action/llbot/user/FriendPoke.d.ts +18 -0
- package/lib/types/protocol/action/llbot/user/GetDoubtFriendsAddRequest.d.ts +36 -0
- package/lib/types/protocol/action/llbot/user/GetFriendWithCategory.d.ts +23 -0
- package/lib/types/protocol/action/llbot/user/GetProfileLike.d.ts +41 -0
- package/lib/types/protocol/action/llbot/user/GetProfileLikeCount.d.ts +18 -0
- package/lib/types/protocol/action/llbot/user/GetProfileLikeMe.d.ts +23 -0
- package/lib/types/protocol/action/llbot/user/GetQQAvatar.d.ts +23 -0
- package/lib/types/protocol/action/llbot/user/SetDoubtFriendsAddRequest.d.ts +15 -0
- package/lib/types/protocol/action/llbot/user/SetFriendCategory.d.ts +18 -0
- package/lib/types/protocol/action/llbot/user/SetFriendRemark.d.ts +18 -0
- package/lib/types/protocol/action/llbot/user/SetInputStatus.d.ts +18 -0
- package/lib/types/protocol/action/llbot/user/SetOnlineStatus.d.ts +21 -0
- package/lib/types/protocol/action/llbot/user/SetQQAvatar.d.ts +15 -0
- package/lib/types/protocol/action/msg/DeleteMsg.d.ts +15 -0
- package/lib/types/protocol/action/msg/GetMsg.d.ts +18 -0
- package/lib/types/protocol/action/msg/SendMsg.d.ts +26 -0
- package/lib/types/protocol/action/msg/SendPrivateMsg.d.ts +10 -0
- package/lib/types/protocol/action/system/CanSendImage.d.ts +5 -0
- package/lib/types/protocol/action/system/CanSendRecord.d.ts +12 -0
- package/lib/types/protocol/action/system/CleanCache.d.ts +6 -0
- package/lib/types/protocol/action/system/GetCredentials.d.ts +22 -0
- package/lib/types/protocol/action/system/GetCsrfToken.d.ts +12 -0
- package/lib/types/protocol/action/system/GetLoginInfo.d.ts +11 -0
- package/lib/types/protocol/action/system/GetStatus.d.ts +7 -0
- package/lib/types/protocol/action/system/GetVersionInfo.d.ts +7 -0
- package/lib/types/protocol/action/system/SetRestart.d.ts +6 -0
- package/lib/types/protocol/action/types.d.ts +133 -0
- package/lib/types/protocol/action/user/GetCookie.d.ts +22 -0
- package/lib/types/protocol/action/user/GetFriendList.d.ts +7 -0
- package/lib/types/protocol/action/user/SendLike.d.ts +18 -0
- package/lib/types/protocol/action/user/SetFriendAddRequest.d.ts +21 -0
- package/lib/types/protocol/cqcode.d.ts +3 -0
- package/lib/types/protocol/entities.d.ts +14 -0
- package/lib/types/protocol/event/OB11BaseEvent.d.ts +15 -0
- package/lib/types/protocol/event/index.d.ts +47 -0
- package/lib/types/protocol/event/message/OB11MessageEvent.d.ts +2 -0
- package/lib/types/protocol/event/meta/OB11BaseMetaEvent.d.ts +5 -0
- package/lib/types/protocol/event/meta/OB11HeartbeatEvent.d.ts +12 -0
- package/lib/types/protocol/event/meta/OB11LifeCycleEvent.d.ts +11 -0
- package/lib/types/protocol/event/notice/OB11BaseNoticeEvent.d.ts +4 -0
- package/lib/types/protocol/event/notice/OB11FlashFileEvent.d.ts +36 -0
- package/lib/types/protocol/event/notice/OB11FriendAddNoticeEvent.d.ts +6 -0
- package/lib/types/protocol/event/notice/OB11FriendRecallNoticeEvent.d.ts +7 -0
- package/lib/types/protocol/event/notice/OB11GroupAdminNoticeEvent.d.ts +8 -0
- package/lib/types/protocol/event/notice/OB11GroupBanEvent.d.ts +10 -0
- package/lib/types/protocol/event/notice/OB11GroupCardEvent.d.ts +9 -0
- package/lib/types/protocol/event/notice/OB11GroupDecreaseEvent.d.ts +10 -0
- package/lib/types/protocol/event/notice/OB11GroupDismissEvent.d.ts +7 -0
- package/lib/types/protocol/event/notice/OB11GroupEssenceEvent.d.ts +11 -0
- package/lib/types/protocol/event/notice/OB11GroupIncreaseEvent.d.ts +11 -0
- package/lib/types/protocol/event/notice/OB11GroupNoticeEvent.d.ts +6 -0
- package/lib/types/protocol/event/notice/OB11GroupRecallNoticeEvent.d.ts +9 -0
- package/lib/types/protocol/event/notice/OB11GroupTitleEvent.d.ts +9 -0
- package/lib/types/protocol/event/notice/OB11GroupUploadNoticeEvent.d.ts +14 -0
- package/lib/types/protocol/event/notice/OB11MsgEmojiLikeEvent.d.ts +15 -0
- package/lib/types/protocol/event/notice/OB11PokeEvent.d.ts +25 -0
- package/lib/types/protocol/event/notice/OB11ProfileLikeEvent.d.ts +9 -0
- package/lib/types/protocol/event/request/OB11FriendRequest.d.ts +11 -0
- package/lib/types/protocol/event/request/OB11GroupRequest.d.ts +25 -0
- package/lib/types/protocol/host.d.ts +8 -0
- package/lib/types/protocol/index.d.ts +14 -0
- package/lib/types/protocol/support/utils.d.ts +28 -0
- package/lib/types/protocol/transform/message/incoming.d.ts +7 -0
- package/lib/types/protocol/transform/message/index.d.ts +1 -0
- package/lib/types/protocol/transform/message/outgoing.d.ts +8 -0
- package/lib/types/protocol/types.d.ts +389 -0
- package/lib/types/protocol/utils.d.ts +21 -0
- package/lib/types/settings.d.ts +5 -0
- package/lib/types/support.d.ts +3 -0
- package/package.json +92 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luckylillia-dev/plugin-onebot11",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "OneBot 11 HTTP and WebSocket adapter for LuckyLillia NTQQ",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
"types": "./lib/types/index.d.ts",
|
|
11
11
|
"default": "./lib/index.js"
|
|
12
12
|
},
|
|
13
|
+
"./api": {
|
|
14
|
+
"types": "./lib/types/api.d.ts",
|
|
15
|
+
"default": "./lib/api.js"
|
|
16
|
+
},
|
|
13
17
|
"./package.json": "./package.json"
|
|
14
18
|
},
|
|
15
19
|
"files": [
|
|
@@ -40,11 +44,12 @@
|
|
|
40
44
|
"@hono/node-server": "^2.1.1",
|
|
41
45
|
"hono": "^4.13.5",
|
|
42
46
|
"sift": "^17.1.3",
|
|
43
|
-
"ws": "^8.21.3"
|
|
47
|
+
"ws": "^8.21.3",
|
|
48
|
+
"ts-case-convert": "^2.3.2"
|
|
44
49
|
},
|
|
45
50
|
"peerDependencies": {
|
|
46
51
|
"@luckylillia-dev/plugin-sdk": "^1.0.1",
|
|
47
|
-
"@luckylillia-dev/plugin-nt-protocol": "^1.
|
|
52
|
+
"@luckylillia-dev/plugin-nt-protocol": "^1.1.2",
|
|
48
53
|
"cordis": "4.0.0-rc.11",
|
|
49
54
|
"cosmokit": "^1.8.1",
|
|
50
55
|
"schemastery": "^3.18.0",
|
|
@@ -91,14 +96,13 @@
|
|
|
91
96
|
"icon": "radio",
|
|
92
97
|
"description": "通过 NTQQ 提供 OneBot 11 HTTP、正向和反向 WebSocket、HTTP POST 上报。",
|
|
93
98
|
"dependencies": {
|
|
94
|
-
"@luckylillia-dev/plugin-nt-protocol": "^1.
|
|
99
|
+
"@luckylillia-dev/plugin-nt-protocol": "^1.1.2"
|
|
95
100
|
},
|
|
96
101
|
"service": {
|
|
97
102
|
"implements": [
|
|
98
103
|
"onebot"
|
|
99
104
|
],
|
|
100
105
|
"required": [
|
|
101
|
-
"ntOnebot",
|
|
102
106
|
"qqProtocol",
|
|
103
107
|
"app",
|
|
104
108
|
"store",
|
|
@@ -111,13 +115,94 @@
|
|
|
111
115
|
"ntWebApi"
|
|
112
116
|
],
|
|
113
117
|
"labels": {
|
|
114
|
-
"ntOnebot": "NTQQ 账号接口",
|
|
115
118
|
"qqProtocol": "NTQQ 协议",
|
|
116
119
|
"app": "NTQQ 账号登录",
|
|
117
120
|
"store": "NTQQ 消息缓存",
|
|
118
121
|
"onebot": "OneBot 11"
|
|
119
122
|
}
|
|
120
123
|
},
|
|
121
|
-
"webui": "./lib/client/index.js"
|
|
124
|
+
"webui": "./lib/client/index.js",
|
|
125
|
+
"launch": [
|
|
126
|
+
{
|
|
127
|
+
"field": "connect[type=ws].host",
|
|
128
|
+
"arg": "--onebot-ws-host",
|
|
129
|
+
"env": "ONEBOT_WS_HOST",
|
|
130
|
+
"set": {
|
|
131
|
+
"connect[type=ws].enable": true
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"field": "connect[type=ws].port",
|
|
136
|
+
"arg": "--onebot-ws-port",
|
|
137
|
+
"env": "ONEBOT_WS_PORT",
|
|
138
|
+
"set": {
|
|
139
|
+
"connect[type=ws].enable": true
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"field": "connect[type=ws].token",
|
|
144
|
+
"arg": "--onebot-ws-token",
|
|
145
|
+
"env": "ONEBOT_WS_TOKEN",
|
|
146
|
+
"set": {
|
|
147
|
+
"connect[type=ws].enable": true
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"field": "connect[type=http].host",
|
|
152
|
+
"arg": "--onebot-http-host",
|
|
153
|
+
"env": "ONEBOT_HTTP_HOST",
|
|
154
|
+
"set": {
|
|
155
|
+
"connect[type=http].enable": true
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"field": "connect[type=http].port",
|
|
160
|
+
"arg": "--onebot-http-port",
|
|
161
|
+
"env": "ONEBOT_HTTP_PORT",
|
|
162
|
+
"set": {
|
|
163
|
+
"connect[type=http].enable": true
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"field": "connect[type=http].token",
|
|
168
|
+
"arg": "--onebot-http-token",
|
|
169
|
+
"env": "ONEBOT_HTTP_TOKEN",
|
|
170
|
+
"set": {
|
|
171
|
+
"connect[type=http].enable": true
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"field": "connect[type=ws-reverse].url",
|
|
176
|
+
"arg": "--onebot-ws-reverse-url",
|
|
177
|
+
"env": "ONEBOT_WS_REVERSE_URL",
|
|
178
|
+
"set": {
|
|
179
|
+
"connect[type=ws-reverse].enable": true
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"field": "connect[type=ws-reverse].token",
|
|
184
|
+
"arg": "--onebot-ws-reverse-token",
|
|
185
|
+
"env": "ONEBOT_WS_REVERSE_TOKEN",
|
|
186
|
+
"set": {
|
|
187
|
+
"connect[type=ws-reverse].enable": true
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"field": "connect[type=http-post].url",
|
|
192
|
+
"arg": "--onebot-http-post-url",
|
|
193
|
+
"env": "ONEBOT_HTTP_POST_URL",
|
|
194
|
+
"set": {
|
|
195
|
+
"connect[type=http-post].enable": true
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"field": "connect[type=http-post].token",
|
|
200
|
+
"arg": "--onebot-http-post-token",
|
|
201
|
+
"env": "ONEBOT_HTTP_POST_TOKEN",
|
|
202
|
+
"set": {
|
|
203
|
+
"connect[type=http-post].enable": true
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
]
|
|
122
207
|
}
|
|
123
208
|
}
|