@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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
2
|
+
import { ActionName } from '../types';
|
|
3
|
+
interface Payload {
|
|
4
|
+
group_id: number | string;
|
|
5
|
+
}
|
|
6
|
+
interface Response {
|
|
7
|
+
file_count: number;
|
|
8
|
+
limit_count: number;
|
|
9
|
+
used_space: number;
|
|
10
|
+
total_space: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class GetGroupFileSystemInfo extends BaseAction<Payload, Response> {
|
|
13
|
+
actionName: ActionName;
|
|
14
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
15
|
+
group_id: Schema<string | number, string | number>;
|
|
16
|
+
}>, Schemastery.ObjectT<{
|
|
17
|
+
group_id: Schema<string | number, string | number>;
|
|
18
|
+
}>>;
|
|
19
|
+
_handle(payload: Payload): Promise<{
|
|
20
|
+
file_count: number;
|
|
21
|
+
limit_count: number;
|
|
22
|
+
used_space: number;
|
|
23
|
+
total_space: number;
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
2
|
+
import { ActionName } from '../types';
|
|
3
|
+
export interface Payload {
|
|
4
|
+
group_id: number | string;
|
|
5
|
+
file_id: string;
|
|
6
|
+
busid?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface Response {
|
|
9
|
+
url: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class GetGroupFileUrl extends BaseAction<Payload, Response> {
|
|
12
|
+
actionName: ActionName;
|
|
13
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
14
|
+
group_id: Schema<string | number, string | number>;
|
|
15
|
+
file_id: Schema<string, string>;
|
|
16
|
+
}>, Schemastery.ObjectT<{
|
|
17
|
+
group_id: Schema<string | number, string | number>;
|
|
18
|
+
file_id: Schema<string, string>;
|
|
19
|
+
}>>;
|
|
20
|
+
protected _handle(payload: Payload): Promise<{
|
|
21
|
+
url: string;
|
|
22
|
+
}>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
2
|
+
import { ActionName } from '../types';
|
|
3
|
+
import { OB11GroupFile, OB11GroupFileFolder } from '../../types';
|
|
4
|
+
interface Payload {
|
|
5
|
+
group_id: number | string;
|
|
6
|
+
folder_id: string;
|
|
7
|
+
}
|
|
8
|
+
interface Response {
|
|
9
|
+
files: OB11GroupFile[];
|
|
10
|
+
folders: OB11GroupFileFolder[];
|
|
11
|
+
}
|
|
12
|
+
export declare class GetGroupFilesByFolder extends BaseAction<Payload, Response> {
|
|
13
|
+
actionName: ActionName;
|
|
14
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
15
|
+
group_id: Schema<string | number, string | number>;
|
|
16
|
+
folder_id: Schema<string, string>;
|
|
17
|
+
}>, Schemastery.ObjectT<{
|
|
18
|
+
group_id: Schema<string | number, string | number>;
|
|
19
|
+
folder_id: Schema<string, string>;
|
|
20
|
+
}>>;
|
|
21
|
+
_handle(payload: Payload): Promise<{
|
|
22
|
+
files: {
|
|
23
|
+
group_id: number;
|
|
24
|
+
file_id: string;
|
|
25
|
+
file_name: string;
|
|
26
|
+
busid: number;
|
|
27
|
+
file_size: number;
|
|
28
|
+
upload_time: number;
|
|
29
|
+
dead_time: number;
|
|
30
|
+
modify_time: number;
|
|
31
|
+
download_times: number;
|
|
32
|
+
uploader: number;
|
|
33
|
+
uploader_name: string;
|
|
34
|
+
}[];
|
|
35
|
+
folders: never[];
|
|
36
|
+
}>;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
2
|
+
import { OB11Message } from '../../types';
|
|
3
|
+
import { ActionName } from '../types';
|
|
4
|
+
import { ParseMessageConfig } from '../../types';
|
|
5
|
+
interface Payload {
|
|
6
|
+
group_id: number | string;
|
|
7
|
+
message_seq?: number | string;
|
|
8
|
+
count: number | string;
|
|
9
|
+
reverseOrder: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface Response {
|
|
12
|
+
messages: OB11Message[];
|
|
13
|
+
}
|
|
14
|
+
export declare class GetGroupMsgHistory extends BaseAction<Payload, Response> {
|
|
15
|
+
actionName: ActionName;
|
|
16
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
17
|
+
group_id: Schema<string | number, string | number>;
|
|
18
|
+
message_seq: Schema<string | number, string | number>;
|
|
19
|
+
count: Schema<string | number, string | number>;
|
|
20
|
+
reverseOrder: Schema<string | boolean, boolean>;
|
|
21
|
+
}>, Schemastery.ObjectT<{
|
|
22
|
+
group_id: Schema<string | number, string | number>;
|
|
23
|
+
message_seq: Schema<string | number, string | number>;
|
|
24
|
+
count: Schema<string | number, string | number>;
|
|
25
|
+
reverseOrder: Schema<string | boolean, boolean>;
|
|
26
|
+
}>>;
|
|
27
|
+
private fetchRangeRaw;
|
|
28
|
+
protected _handle(payload: Payload, config: ParseMessageConfig): Promise<Response>;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
2
|
+
import { ActionName } from '../types';
|
|
3
|
+
interface Payload {
|
|
4
|
+
group_id: number | string;
|
|
5
|
+
}
|
|
6
|
+
interface Notice {
|
|
7
|
+
notice_id: string;
|
|
8
|
+
sender_id: number;
|
|
9
|
+
publish_time: number;
|
|
10
|
+
message: {
|
|
11
|
+
text: string;
|
|
12
|
+
images: {
|
|
13
|
+
height: string;
|
|
14
|
+
width: string;
|
|
15
|
+
id: string;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
settings: {
|
|
19
|
+
is_show_edit_card: boolean;
|
|
20
|
+
tip_window: boolean;
|
|
21
|
+
confirm_required: boolean;
|
|
22
|
+
pinned: boolean;
|
|
23
|
+
send_new_member: boolean;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export declare class GetGroupNotice extends BaseAction<Payload, Notice[]> {
|
|
27
|
+
actionName: ActionName;
|
|
28
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
29
|
+
group_id: Schema<string | number, string | number>;
|
|
30
|
+
}>, Schemastery.ObjectT<{
|
|
31
|
+
group_id: Schema<string | number, string | number>;
|
|
32
|
+
}>>;
|
|
33
|
+
protected _handle(payload: Payload): Promise<Notice[]>;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
2
|
+
import { ActionName } from '../types';
|
|
3
|
+
import { OB11GroupFile, OB11GroupFileFolder } from '../../types';
|
|
4
|
+
interface Payload {
|
|
5
|
+
group_id: number | string;
|
|
6
|
+
}
|
|
7
|
+
interface Response {
|
|
8
|
+
files: OB11GroupFile[];
|
|
9
|
+
folders: OB11GroupFileFolder[];
|
|
10
|
+
}
|
|
11
|
+
export declare class GetGroupRootFiles extends BaseAction<Payload, Response> {
|
|
12
|
+
actionName: ActionName;
|
|
13
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
14
|
+
group_id: Schema<string | number, string | number>;
|
|
15
|
+
}>, Schemastery.ObjectT<{
|
|
16
|
+
group_id: Schema<string | number, string | number>;
|
|
17
|
+
}>>;
|
|
18
|
+
_handle(payload: Payload): Promise<{
|
|
19
|
+
files: {
|
|
20
|
+
group_id: number;
|
|
21
|
+
file_id: string;
|
|
22
|
+
file_name: string;
|
|
23
|
+
busid: number;
|
|
24
|
+
file_size: number;
|
|
25
|
+
upload_time: number;
|
|
26
|
+
dead_time: number;
|
|
27
|
+
modify_time: number;
|
|
28
|
+
download_times: number;
|
|
29
|
+
uploader: number;
|
|
30
|
+
uploader_name: string;
|
|
31
|
+
}[];
|
|
32
|
+
folders: {
|
|
33
|
+
group_id: number;
|
|
34
|
+
folder_id: string;
|
|
35
|
+
folder_name: string;
|
|
36
|
+
create_time: number;
|
|
37
|
+
creator: number;
|
|
38
|
+
creator_name: string;
|
|
39
|
+
total_file_count: number;
|
|
40
|
+
modify_time: number;
|
|
41
|
+
modifier: number;
|
|
42
|
+
modifier_name: string;
|
|
43
|
+
}[];
|
|
44
|
+
}>;
|
|
45
|
+
}
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseAction } from '../BaseAction';
|
|
2
|
+
import { ActionName } from '../types';
|
|
3
|
+
interface Response {
|
|
4
|
+
invited_requests: {
|
|
5
|
+
request_id: number;
|
|
6
|
+
invitor_uin: number;
|
|
7
|
+
invitor_nick: string;
|
|
8
|
+
group_id: number;
|
|
9
|
+
group_name: string;
|
|
10
|
+
checked: boolean;
|
|
11
|
+
actor: number;
|
|
12
|
+
}[];
|
|
13
|
+
join_requests: {
|
|
14
|
+
request_id: number;
|
|
15
|
+
requester_uin: number;
|
|
16
|
+
requester_nick: string;
|
|
17
|
+
message: string;
|
|
18
|
+
group_id: number;
|
|
19
|
+
group_name: string;
|
|
20
|
+
checked: boolean;
|
|
21
|
+
actor: number;
|
|
22
|
+
}[];
|
|
23
|
+
}
|
|
24
|
+
export declare class GetGroupSystemMsg extends BaseAction<{}, Response> {
|
|
25
|
+
actionName: ActionName;
|
|
26
|
+
_handle(): Promise<Response>;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
2
|
+
import { OB11User } from '../../types';
|
|
3
|
+
import { ActionName } from '../types';
|
|
4
|
+
interface Payload {
|
|
5
|
+
user_id: number | string;
|
|
6
|
+
}
|
|
7
|
+
interface Response extends OB11User {
|
|
8
|
+
qid: string;
|
|
9
|
+
level: number;
|
|
10
|
+
login_days: number;
|
|
11
|
+
reg_time: number;
|
|
12
|
+
long_nick: string;
|
|
13
|
+
city: string;
|
|
14
|
+
country: string;
|
|
15
|
+
labels: string[];
|
|
16
|
+
is_vip: boolean;
|
|
17
|
+
is_svip: boolean;
|
|
18
|
+
is_years_vip: boolean;
|
|
19
|
+
vip_level: number;
|
|
20
|
+
remark: string;
|
|
21
|
+
}
|
|
22
|
+
export declare class GetStrangerInfo extends BaseAction<Payload, Response> {
|
|
23
|
+
actionName: ActionName;
|
|
24
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
25
|
+
user_id: Schema<string | number, string | number>;
|
|
26
|
+
}>, Schemastery.ObjectT<{
|
|
27
|
+
user_id: Schema<string | number, string | number>;
|
|
28
|
+
}>>;
|
|
29
|
+
protected _handle(payload: Payload): Promise<{
|
|
30
|
+
user_id: number;
|
|
31
|
+
nickname: string;
|
|
32
|
+
sex: import("../..").OB11UserSex;
|
|
33
|
+
age: number;
|
|
34
|
+
qid: string;
|
|
35
|
+
level: number;
|
|
36
|
+
login_days: number;
|
|
37
|
+
reg_time: number;
|
|
38
|
+
long_nick: string;
|
|
39
|
+
city: string;
|
|
40
|
+
country: string;
|
|
41
|
+
birthday_year: number;
|
|
42
|
+
birthday_month: number;
|
|
43
|
+
birthday_day: number;
|
|
44
|
+
labels: string[];
|
|
45
|
+
is_vip: boolean;
|
|
46
|
+
is_svip: boolean;
|
|
47
|
+
is_years_vip: boolean;
|
|
48
|
+
vip_level: number;
|
|
49
|
+
remark: string;
|
|
50
|
+
}>;
|
|
51
|
+
}
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
2
|
+
import { ActionName } from '../types';
|
|
3
|
+
interface Payload {
|
|
4
|
+
message_id: number | string;
|
|
5
|
+
}
|
|
6
|
+
export declare class MarkMsgAsRead extends BaseAction<Payload, null> {
|
|
7
|
+
actionName: ActionName;
|
|
8
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
9
|
+
message_id: Schema<string | number, string | number>;
|
|
10
|
+
}>, Schemastery.ObjectT<{
|
|
11
|
+
message_id: Schema<string | number, string | number>;
|
|
12
|
+
}>>;
|
|
13
|
+
protected _handle(payload: Payload): Promise<null>;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
2
|
+
import { ActionName } from '../types';
|
|
3
|
+
interface Payload {
|
|
4
|
+
image: string;
|
|
5
|
+
}
|
|
6
|
+
interface TextDetection {
|
|
7
|
+
text: string;
|
|
8
|
+
confidence: number;
|
|
9
|
+
coordinates: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
}[];
|
|
13
|
+
}
|
|
14
|
+
interface Response {
|
|
15
|
+
texts: TextDetection[];
|
|
16
|
+
language: string;
|
|
17
|
+
}
|
|
18
|
+
export declare class OCRImage extends BaseAction<Payload, Response> {
|
|
19
|
+
actionName: ActionName;
|
|
20
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
21
|
+
image: Schema<string, string>;
|
|
22
|
+
}>, Schemastery.ObjectT<{
|
|
23
|
+
image: Schema<string, string>;
|
|
24
|
+
}>>;
|
|
25
|
+
protected _handle(payload: Payload): Promise<{
|
|
26
|
+
texts: {
|
|
27
|
+
text: string;
|
|
28
|
+
confidence: number;
|
|
29
|
+
coordinates: {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
}[];
|
|
33
|
+
}[];
|
|
34
|
+
language: string;
|
|
35
|
+
}>;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { OB11MessageNode } from '../../types';
|
|
2
|
+
import { ActionName } from '../types';
|
|
3
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
4
|
+
interface Payload {
|
|
5
|
+
user_id?: string | number;
|
|
6
|
+
group_id?: string | number;
|
|
7
|
+
messages?: OB11MessageNode[];
|
|
8
|
+
message?: OB11MessageNode[];
|
|
9
|
+
message_type?: 'group' | 'private';
|
|
10
|
+
source?: string;
|
|
11
|
+
news?: {
|
|
12
|
+
text: string;
|
|
13
|
+
}[];
|
|
14
|
+
summary?: string;
|
|
15
|
+
prompt?: string;
|
|
16
|
+
}
|
|
17
|
+
interface Response {
|
|
18
|
+
message_id: number;
|
|
19
|
+
forward_id: string;
|
|
20
|
+
}
|
|
21
|
+
export declare class SendForwardMsg extends BaseAction<Payload, Response> {
|
|
22
|
+
actionName: ActionName;
|
|
23
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
24
|
+
user_id: Schema<string | number, string | number>;
|
|
25
|
+
group_id: Schema<string | number, string | number>;
|
|
26
|
+
messages: Schema<any[], any[]>;
|
|
27
|
+
message: Schema<any[], any[]>;
|
|
28
|
+
message_type: Schema<"private" | "group", "private" | "group">;
|
|
29
|
+
source: Schema<string, string>;
|
|
30
|
+
news: Schema<({
|
|
31
|
+
text?: string | null | undefined;
|
|
32
|
+
} & import("cosmokit").Dict)[], Schemastery.ObjectT<{
|
|
33
|
+
text: Schema<string, string>;
|
|
34
|
+
}>[]>;
|
|
35
|
+
summary: Schema<string, string>;
|
|
36
|
+
prompt: Schema<string, string>;
|
|
37
|
+
}>, Schemastery.ObjectT<{
|
|
38
|
+
user_id: Schema<string | number, string | number>;
|
|
39
|
+
group_id: Schema<string | number, string | number>;
|
|
40
|
+
messages: Schema<any[], any[]>;
|
|
41
|
+
message: Schema<any[], any[]>;
|
|
42
|
+
message_type: Schema<"private" | "group", "private" | "group">;
|
|
43
|
+
source: Schema<string, string>;
|
|
44
|
+
news: Schema<({
|
|
45
|
+
text?: string | null | undefined;
|
|
46
|
+
} & import("cosmokit").Dict)[], Schemastery.ObjectT<{
|
|
47
|
+
text: Schema<string, string>;
|
|
48
|
+
}>[]>;
|
|
49
|
+
summary: Schema<string, string>;
|
|
50
|
+
prompt: Schema<string, string>;
|
|
51
|
+
}>>;
|
|
52
|
+
protected _handle(payload: Payload): Promise<{
|
|
53
|
+
message_id: number;
|
|
54
|
+
forward_id: any;
|
|
55
|
+
}>;
|
|
56
|
+
private getMessageNode;
|
|
57
|
+
private parseNodeContent;
|
|
58
|
+
private sortNodesWithSeq;
|
|
59
|
+
private assignSequentialSeqs;
|
|
60
|
+
private assignMissingTimes;
|
|
61
|
+
}
|
|
62
|
+
export declare class SendPrivateForwardMsg extends SendForwardMsg {
|
|
63
|
+
actionName: ActionName;
|
|
64
|
+
protected _handle(payload: Payload): Promise<{
|
|
65
|
+
message_id: number;
|
|
66
|
+
forward_id: any;
|
|
67
|
+
}>;
|
|
68
|
+
}
|
|
69
|
+
export declare class SendGroupForwardMsg extends SendForwardMsg {
|
|
70
|
+
actionName: ActionName;
|
|
71
|
+
protected _handle(payload: Payload): Promise<{
|
|
72
|
+
message_id: number;
|
|
73
|
+
forward_id: any;
|
|
74
|
+
}>;
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
2
|
+
import { ActionName } from '../types';
|
|
3
|
+
interface Payload {
|
|
4
|
+
group_id: number | string;
|
|
5
|
+
content: string;
|
|
6
|
+
image?: string;
|
|
7
|
+
pinned: boolean;
|
|
8
|
+
confirm_required: boolean;
|
|
9
|
+
is_show_edit_card: boolean;
|
|
10
|
+
tip_window: boolean;
|
|
11
|
+
send_new_member: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare class SendGroupNotice extends BaseAction<Payload, null> {
|
|
14
|
+
actionName: ActionName;
|
|
15
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
16
|
+
group_id: Schema<string | number, string | number>;
|
|
17
|
+
content: Schema<string, string>;
|
|
18
|
+
image: Schema<string, string>;
|
|
19
|
+
pinned: Schema<string | boolean, boolean>;
|
|
20
|
+
confirm_required: Schema<string | boolean, boolean>;
|
|
21
|
+
is_show_edit_card: Schema<string | boolean, boolean>;
|
|
22
|
+
tip_window: Schema<string | boolean, boolean>;
|
|
23
|
+
send_new_member: Schema<string | boolean, boolean>;
|
|
24
|
+
}>, Schemastery.ObjectT<{
|
|
25
|
+
group_id: Schema<string | number, string | number>;
|
|
26
|
+
content: Schema<string, string>;
|
|
27
|
+
image: Schema<string, string>;
|
|
28
|
+
pinned: Schema<string | boolean, boolean>;
|
|
29
|
+
confirm_required: Schema<string | boolean, boolean>;
|
|
30
|
+
is_show_edit_card: Schema<string | boolean, boolean>;
|
|
31
|
+
tip_window: Schema<string | boolean, boolean>;
|
|
32
|
+
send_new_member: Schema<string | boolean, boolean>;
|
|
33
|
+
}>>;
|
|
34
|
+
_handle(payload: Payload): Promise<null>;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
2
|
+
import { ActionName } from '../types';
|
|
3
|
+
interface Payload {
|
|
4
|
+
group_id: number | string;
|
|
5
|
+
}
|
|
6
|
+
export declare class SendGroupSign extends BaseAction<Payload, null> {
|
|
7
|
+
actionName: ActionName;
|
|
8
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
9
|
+
group_id: Schema<string | number, string | number>;
|
|
10
|
+
}>, Schemastery.ObjectT<{
|
|
11
|
+
group_id: Schema<string | number, string | number>;
|
|
12
|
+
}>>;
|
|
13
|
+
_handle(payload: Payload): Promise<null>;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
2
|
+
import { ActionName } from '../types';
|
|
3
|
+
interface Payload {
|
|
4
|
+
message_id: number | string;
|
|
5
|
+
}
|
|
6
|
+
export declare class SetEssenceMsg extends BaseAction<Payload, null> {
|
|
7
|
+
actionName: ActionName;
|
|
8
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
9
|
+
message_id: Schema<string | number, string | number>;
|
|
10
|
+
}>, Schemastery.ObjectT<{
|
|
11
|
+
message_id: Schema<string | number, string | number>;
|
|
12
|
+
}>>;
|
|
13
|
+
protected _handle(payload: Payload): Promise<null>;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
2
|
+
import { ActionName } from '../types';
|
|
3
|
+
interface Payload {
|
|
4
|
+
group_id: number | string;
|
|
5
|
+
file: string;
|
|
6
|
+
cache?: 0 | 1;
|
|
7
|
+
}
|
|
8
|
+
export declare class SetGroupPortrait extends BaseAction<Payload, null> {
|
|
9
|
+
actionName: ActionName;
|
|
10
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
11
|
+
group_id: Schema<string | number, string | number>;
|
|
12
|
+
file: Schema<string, string>;
|
|
13
|
+
}>, Schemastery.ObjectT<{
|
|
14
|
+
group_id: Schema<string | number, string | number>;
|
|
15
|
+
file: Schema<string, string>;
|
|
16
|
+
}>>;
|
|
17
|
+
protected _handle(payload: Payload): Promise<null>;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
2
|
+
import { ActionName } from '../types';
|
|
3
|
+
interface Payload {
|
|
4
|
+
group_id: number | string;
|
|
5
|
+
user_id: number | string;
|
|
6
|
+
special_title: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class SetGroupSpecialTitle extends BaseAction<Payload, null> {
|
|
9
|
+
actionName: ActionName;
|
|
10
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
11
|
+
group_id: Schema<string | number, string | number>;
|
|
12
|
+
user_id: Schema<string | number, string | number>;
|
|
13
|
+
special_title: Schema<string, string>;
|
|
14
|
+
}>, Schemastery.ObjectT<{
|
|
15
|
+
group_id: Schema<string | number, string | number>;
|
|
16
|
+
user_id: Schema<string | number, string | number>;
|
|
17
|
+
special_title: Schema<string, string>;
|
|
18
|
+
}>>;
|
|
19
|
+
_handle(payload: Payload): Promise<null>;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
2
|
+
import { ActionName } from '../types';
|
|
3
|
+
interface Payload {
|
|
4
|
+
nickname?: string;
|
|
5
|
+
personal_note?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class SetQQProfile extends BaseAction<Payload, null> {
|
|
8
|
+
actionName: ActionName;
|
|
9
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
10
|
+
nickname: Schema<string, string>;
|
|
11
|
+
personal_note: Schema<string, string>;
|
|
12
|
+
}>, Schemastery.ObjectT<{
|
|
13
|
+
nickname: Schema<string, string>;
|
|
14
|
+
personal_note: Schema<string, string>;
|
|
15
|
+
}>>;
|
|
16
|
+
_handle(payload: Payload): Promise<null>;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
2
|
+
import { ActionName } from '../types';
|
|
3
|
+
interface Payload {
|
|
4
|
+
group_id: number | string;
|
|
5
|
+
file: string;
|
|
6
|
+
name: string;
|
|
7
|
+
folder?: string;
|
|
8
|
+
folder_id?: string;
|
|
9
|
+
}
|
|
10
|
+
interface Response {
|
|
11
|
+
file_id: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class UploadGroupFile extends BaseAction<Payload, Response> {
|
|
14
|
+
actionName: ActionName;
|
|
15
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
16
|
+
group_id: Schema<string | number, string | number>;
|
|
17
|
+
file: Schema<string, string>;
|
|
18
|
+
name: Schema<string, string>;
|
|
19
|
+
folder: Schema<string, string>;
|
|
20
|
+
folder_id: Schema<string, string>;
|
|
21
|
+
}>, Schemastery.ObjectT<{
|
|
22
|
+
group_id: Schema<string | number, string | number>;
|
|
23
|
+
file: Schema<string, string>;
|
|
24
|
+
name: Schema<string, string>;
|
|
25
|
+
folder: Schema<string, string>;
|
|
26
|
+
folder_id: Schema<string, string>;
|
|
27
|
+
}>>;
|
|
28
|
+
protected _handle(payload: Payload): Promise<{
|
|
29
|
+
file_id: string;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
2
|
+
import { ActionName } from '../types';
|
|
3
|
+
interface Payload {
|
|
4
|
+
user_id: number | string;
|
|
5
|
+
file: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
interface Response {
|
|
9
|
+
file_id: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class UploadPrivateFile extends BaseAction<Payload, Response> {
|
|
12
|
+
actionName: ActionName;
|
|
13
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
14
|
+
user_id: Schema<string | number, string | number>;
|
|
15
|
+
file: Schema<string, string>;
|
|
16
|
+
name: Schema<string, string>;
|
|
17
|
+
}>, Schemastery.ObjectT<{
|
|
18
|
+
user_id: Schema<string | number, string | number>;
|
|
19
|
+
file: Schema<string, string>;
|
|
20
|
+
name: Schema<string, string>;
|
|
21
|
+
}>>;
|
|
22
|
+
protected _handle(payload: Payload): Promise<{
|
|
23
|
+
file_id: string;
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ActionName } from '../types';
|
|
2
|
+
import { BaseAction, Schema } from '../BaseAction';
|
|
3
|
+
interface Payload {
|
|
4
|
+
group_id: number | string;
|
|
5
|
+
type: 'talkative' | 'performer' | 'legend' | 'strong_newbie' | 'emotion' | 'all';
|
|
6
|
+
}
|
|
7
|
+
interface HonorMemberInfo {
|
|
8
|
+
user_id: number;
|
|
9
|
+
nickname: string;
|
|
10
|
+
avatar: string;
|
|
11
|
+
description: string;
|
|
12
|
+
}
|
|
13
|
+
interface Response {
|
|
14
|
+
group_id: number;
|
|
15
|
+
current_talkative?: {
|
|
16
|
+
user_id: number;
|
|
17
|
+
nickname: string;
|
|
18
|
+
avatar: string;
|
|
19
|
+
day_count: number;
|
|
20
|
+
};
|
|
21
|
+
talkative_list?: HonorMemberInfo[];
|
|
22
|
+
performer_list?: HonorMemberInfo[];
|
|
23
|
+
legend_list?: HonorMemberInfo[];
|
|
24
|
+
strong_newbie_list?: HonorMemberInfo[];
|
|
25
|
+
emotion_list?: HonorMemberInfo[];
|
|
26
|
+
}
|
|
27
|
+
export declare class GetGroupHonorInfo extends BaseAction<Payload, Response> {
|
|
28
|
+
actionName: ActionName;
|
|
29
|
+
payloadSchema: Schema<Schemastery.ObjectS<{
|
|
30
|
+
group_id: Schema<string | number, string | number>;
|
|
31
|
+
type: Schema<"all" | "talkative" | "performer" | "legend" | "strong_newbie" | "emotion", "all" | "talkative" | "performer" | "legend" | "strong_newbie" | "emotion">;
|
|
32
|
+
}>, Schemastery.ObjectT<{
|
|
33
|
+
group_id: Schema<string | number, string | number>;
|
|
34
|
+
type: Schema<"all" | "talkative" | "performer" | "legend" | "strong_newbie" | "emotion", "all" | "talkative" | "performer" | "legend" | "strong_newbie" | "emotion">;
|
|
35
|
+
}>>;
|
|
36
|
+
protected _handle(payload: Payload): Promise<Response>;
|
|
37
|
+
}
|
|
38
|
+
export {};
|