@luckylillia-dev/plugin-onebot11 1.0.4 → 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 -16848
- 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 +89 -16
package/lib/api.js
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
ActionName,
|
|
4
|
+
BaseAction,
|
|
5
|
+
CreatePeerMode,
|
|
6
|
+
EventType,
|
|
7
|
+
GroupBanEvent,
|
|
8
|
+
GroupEssenceEvent,
|
|
9
|
+
LifeCycleSubType,
|
|
10
|
+
OB11BaseEvent,
|
|
11
|
+
OB11BaseMetaEvent,
|
|
12
|
+
OB11BaseNoticeEvent,
|
|
13
|
+
OB11Entities,
|
|
14
|
+
OB11FlashFileDownloadedEvent,
|
|
15
|
+
OB11FlashFileDownloadingEvent,
|
|
16
|
+
OB11FlashFileUploadedEvent,
|
|
17
|
+
OB11FlashFileUploadingEvent,
|
|
18
|
+
OB11FriendAddNoticeEvent,
|
|
19
|
+
OB11FriendPokeEvent,
|
|
20
|
+
OB11FriendPokeRecallEvent,
|
|
21
|
+
OB11FriendRecallNoticeEvent,
|
|
22
|
+
OB11FriendRequestEvent,
|
|
23
|
+
OB11GroupAdminNoticeEvent,
|
|
24
|
+
OB11GroupCardEvent,
|
|
25
|
+
OB11GroupDecreaseEvent,
|
|
26
|
+
OB11GroupDismissEvent,
|
|
27
|
+
OB11GroupIncreaseEvent,
|
|
28
|
+
OB11GroupMemberRole,
|
|
29
|
+
OB11GroupMsgEmojiLikeEvent,
|
|
30
|
+
OB11GroupNoticeEvent,
|
|
31
|
+
OB11GroupPokeEvent,
|
|
32
|
+
OB11GroupPokeRecallEvent,
|
|
33
|
+
OB11GroupRecallNoticeEvent,
|
|
34
|
+
OB11GroupRequestAddEvent,
|
|
35
|
+
OB11GroupRequestInviteBotEvent,
|
|
36
|
+
OB11GroupTitleEvent,
|
|
37
|
+
OB11GroupUploadNoticeEvent,
|
|
38
|
+
OB11HeartbeatEvent,
|
|
39
|
+
OB11LifeCycleEvent,
|
|
40
|
+
OB11MessageDataType,
|
|
41
|
+
OB11MessageType,
|
|
42
|
+
OB11ProfileLikeEvent,
|
|
43
|
+
OB11Response,
|
|
44
|
+
OB11UserSex,
|
|
45
|
+
createPeer,
|
|
46
|
+
decodeCQCode,
|
|
47
|
+
decodeGroupRequestFlag,
|
|
48
|
+
encodeCQCode,
|
|
49
|
+
encodeGroupRequestFlag,
|
|
50
|
+
initActionMap,
|
|
51
|
+
message2List,
|
|
52
|
+
transformIncomingSegments,
|
|
53
|
+
transformOutgoingSegments,
|
|
54
|
+
z
|
|
55
|
+
} from "./chunk-DYMW7N7M.js";
|
|
56
|
+
export {
|
|
57
|
+
ActionName,
|
|
58
|
+
BaseAction,
|
|
59
|
+
CreatePeerMode,
|
|
60
|
+
EventType,
|
|
61
|
+
GroupBanEvent,
|
|
62
|
+
GroupEssenceEvent,
|
|
63
|
+
LifeCycleSubType,
|
|
64
|
+
OB11BaseEvent,
|
|
65
|
+
OB11BaseMetaEvent,
|
|
66
|
+
OB11BaseNoticeEvent,
|
|
67
|
+
OB11Entities,
|
|
68
|
+
OB11FlashFileDownloadedEvent,
|
|
69
|
+
OB11FlashFileDownloadingEvent,
|
|
70
|
+
OB11FlashFileUploadedEvent,
|
|
71
|
+
OB11FlashFileUploadingEvent,
|
|
72
|
+
OB11FriendAddNoticeEvent,
|
|
73
|
+
OB11FriendPokeEvent,
|
|
74
|
+
OB11FriendPokeRecallEvent,
|
|
75
|
+
OB11FriendRecallNoticeEvent,
|
|
76
|
+
OB11FriendRequestEvent,
|
|
77
|
+
OB11GroupAdminNoticeEvent,
|
|
78
|
+
OB11GroupCardEvent,
|
|
79
|
+
OB11GroupDecreaseEvent,
|
|
80
|
+
OB11GroupDismissEvent,
|
|
81
|
+
OB11GroupIncreaseEvent,
|
|
82
|
+
OB11GroupMemberRole,
|
|
83
|
+
OB11GroupMsgEmojiLikeEvent,
|
|
84
|
+
OB11GroupNoticeEvent,
|
|
85
|
+
OB11GroupPokeEvent,
|
|
86
|
+
OB11GroupPokeRecallEvent,
|
|
87
|
+
OB11GroupRecallNoticeEvent,
|
|
88
|
+
OB11GroupRequestAddEvent,
|
|
89
|
+
OB11GroupRequestInviteBotEvent,
|
|
90
|
+
OB11GroupTitleEvent,
|
|
91
|
+
OB11GroupUploadNoticeEvent,
|
|
92
|
+
OB11HeartbeatEvent,
|
|
93
|
+
OB11LifeCycleEvent,
|
|
94
|
+
OB11MessageDataType,
|
|
95
|
+
OB11MessageType,
|
|
96
|
+
OB11ProfileLikeEvent,
|
|
97
|
+
OB11Response,
|
|
98
|
+
OB11UserSex,
|
|
99
|
+
z as Schema,
|
|
100
|
+
createPeer,
|
|
101
|
+
decodeCQCode,
|
|
102
|
+
decodeGroupRequestFlag,
|
|
103
|
+
encodeCQCode,
|
|
104
|
+
encodeGroupRequestFlag,
|
|
105
|
+
initActionMap,
|
|
106
|
+
message2List,
|
|
107
|
+
transformIncomingSegments,
|
|
108
|
+
transformOutgoingSegments
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=api.js.map
|