@luckylillia-dev/plugin-onebot11 1.0.4 → 1.1.1

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.
Files changed (177) hide show
  1. package/lib/api.js +110 -0
  2. package/lib/api.js.map +7 -0
  3. package/lib/chunk-LPSGUUXW.js +5157 -0
  4. package/lib/chunk-LPSGUUXW.js.map +7 -0
  5. package/lib/index.js +413 -16848
  6. package/lib/index.js.map +4 -4
  7. package/lib/types/action/go-cqhttp/QuickOperation.d.ts +19 -0
  8. package/lib/types/action/index.d.ts +2 -0
  9. package/lib/types/action/llbot/system/GetEvent.d.ts +21 -0
  10. package/lib/types/adapter.d.ts +29 -0
  11. package/lib/types/api.d.ts +2 -0
  12. package/lib/types/config.d.ts +30 -64
  13. package/lib/types/connect/http.d.ts +43 -0
  14. package/lib/types/connect/ws.d.ts +47 -0
  15. package/lib/types/eventfilter.d.ts +2 -0
  16. package/lib/types/helper/eventForHttp.d.ts +6 -0
  17. package/lib/types/helper/quickOperation.d.ts +27 -0
  18. package/lib/types/index.d.ts +7 -7
  19. package/lib/types/protocol/action/BaseAction.d.ts +20 -0
  20. package/lib/types/protocol/action/OB11Response.d.ts +6 -0
  21. package/lib/types/protocol/action/file/GetFile.d.ts +39 -0
  22. package/lib/types/protocol/action/file/GetImage.d.ts +5 -0
  23. package/lib/types/protocol/action/file/GetRecord.d.ts +26 -0
  24. package/lib/types/protocol/action/go-cqhttp/CreateGroupFileFolder.d.ts +24 -0
  25. package/lib/types/protocol/action/go-cqhttp/DeleteEssenceMsg.d.ts +15 -0
  26. package/lib/types/protocol/action/go-cqhttp/DeleteFriend.d.ts +15 -0
  27. package/lib/types/protocol/action/go-cqhttp/DeleteGroupFile.d.ts +21 -0
  28. package/lib/types/protocol/action/go-cqhttp/DeleteGroupFolder.d.ts +18 -0
  29. package/lib/types/protocol/action/go-cqhttp/DownloadFile.d.ts +27 -0
  30. package/lib/types/protocol/action/go-cqhttp/GetForwardMsg.d.ts +25 -0
  31. package/lib/types/protocol/action/go-cqhttp/GetGroupAtAllRemain.d.ts +24 -0
  32. package/lib/types/protocol/action/go-cqhttp/GetGroupEssence.d.ts +24 -0
  33. package/lib/types/protocol/action/go-cqhttp/GetGroupFileSystemInfo.d.ts +26 -0
  34. package/lib/types/protocol/action/go-cqhttp/GetGroupFileUrl.d.ts +23 -0
  35. package/lib/types/protocol/action/go-cqhttp/GetGroupFilesByFolder.d.ts +38 -0
  36. package/lib/types/protocol/action/go-cqhttp/GetGroupMsgHistory.d.ts +30 -0
  37. package/lib/types/protocol/action/go-cqhttp/GetGroupNotice.d.ts +35 -0
  38. package/lib/types/protocol/action/go-cqhttp/GetGroupRootFiles.d.ts +46 -0
  39. package/lib/types/protocol/action/go-cqhttp/GetGroupSystemMsg.d.ts +28 -0
  40. package/lib/types/protocol/action/go-cqhttp/GetStrangerInfo.d.ts +52 -0
  41. package/lib/types/protocol/action/go-cqhttp/MarkMsgAsRead.d.ts +15 -0
  42. package/lib/types/protocol/action/go-cqhttp/OCRImage.d.ts +37 -0
  43. package/lib/types/protocol/action/go-cqhttp/SendForwardMsg.d.ts +76 -0
  44. package/lib/types/protocol/action/go-cqhttp/SendGroupNotice.d.ts +36 -0
  45. package/lib/types/protocol/action/go-cqhttp/SendGroupSign.d.ts +15 -0
  46. package/lib/types/protocol/action/go-cqhttp/SetEssenceMsg.d.ts +15 -0
  47. package/lib/types/protocol/action/go-cqhttp/SetGroupPortrait.d.ts +19 -0
  48. package/lib/types/protocol/action/go-cqhttp/SetGroupSpecialTitle.d.ts +21 -0
  49. package/lib/types/protocol/action/go-cqhttp/SetQQProfile.d.ts +18 -0
  50. package/lib/types/protocol/action/go-cqhttp/UploadGroupFile.d.ts +32 -0
  51. package/lib/types/protocol/action/go-cqhttp/UploadPrivateFile.d.ts +26 -0
  52. package/lib/types/protocol/action/group/GetGroupHonorInfo.d.ts +38 -0
  53. package/lib/types/protocol/action/group/GetGroupInfo.d.ts +32 -0
  54. package/lib/types/protocol/action/group/GetGroupList.d.ts +29 -0
  55. package/lib/types/protocol/action/group/GetGroupMemberInfo.d.ts +22 -0
  56. package/lib/types/protocol/action/group/GetGroupMemberList.d.ts +19 -0
  57. package/lib/types/protocol/action/group/GetGuildList.d.ts +6 -0
  58. package/lib/types/protocol/action/group/SendGroupMsg.d.ts +10 -0
  59. package/lib/types/protocol/action/group/SetGroupAddRequest.d.ts +21 -0
  60. package/lib/types/protocol/action/group/SetGroupAdmin.d.ts +21 -0
  61. package/lib/types/protocol/action/group/SetGroupBan.d.ts +21 -0
  62. package/lib/types/protocol/action/group/SetGroupCard.d.ts +21 -0
  63. package/lib/types/protocol/action/group/SetGroupKick.d.ts +21 -0
  64. package/lib/types/protocol/action/group/SetGroupLeave.d.ts +16 -0
  65. package/lib/types/protocol/action/group/SetGroupName.d.ts +18 -0
  66. package/lib/types/protocol/action/group/SetGroupWholeBan.d.ts +18 -0
  67. package/lib/types/protocol/action/index.d.ts +3 -0
  68. package/lib/types/protocol/action/llbot/file/DownloadFlashFile.d.ts +6 -0
  69. package/lib/types/protocol/action/llbot/file/GetFlashFileDownloadUrls.d.ts +26 -0
  70. package/lib/types/protocol/action/llbot/file/GetFlashFileInfo.d.ts +41 -0
  71. package/lib/types/protocol/action/llbot/file/GetPrivateFileUrl.d.ts +19 -0
  72. package/lib/types/protocol/action/llbot/file/GetRkey.d.ts +18 -0
  73. package/lib/types/protocol/action/llbot/file/MoveGroupFile.d.ts +24 -0
  74. package/lib/types/protocol/action/llbot/file/ReShareFlashFile.d.ts +17 -0
  75. package/lib/types/protocol/action/llbot/file/RenameGroupFile.d.ts +24 -0
  76. package/lib/types/protocol/action/llbot/file/RenameGroupFileFolder.d.ts +21 -0
  77. package/lib/types/protocol/action/llbot/file/SetGroupFileForever.d.ts +18 -0
  78. package/lib/types/protocol/action/llbot/file/UploadFlashFile.d.ts +41 -0
  79. package/lib/types/protocol/action/llbot/group/BatchDeleteGroupMember.d.ts +18 -0
  80. package/lib/types/protocol/action/llbot/group/DeleteGroupNotice.d.ts +18 -0
  81. package/lib/types/protocol/action/llbot/group/GetGroupAddRequest.d.ts +12 -0
  82. package/lib/types/protocol/action/llbot/group/GetGroupNoticeAcklist.d.ts +30 -0
  83. package/lib/types/protocol/action/llbot/group/GetGroupShutList.d.ts +38 -0
  84. package/lib/types/protocol/action/llbot/group/GetGroupSignedList.d.ts +26 -0
  85. package/lib/types/protocol/action/llbot/group/GroupAlbum/CreateGroupAlbum.d.ts +21 -0
  86. package/lib/types/protocol/action/llbot/group/GroupAlbum/DeleteGroupAlbum.d.ts +18 -0
  87. package/lib/types/protocol/action/llbot/group/GroupAlbum/GetGroupAlbumList.d.ts +132 -0
  88. package/lib/types/protocol/action/llbot/group/GroupAlbum/GetGroupAlbumMediaList.d.ts +306 -0
  89. package/lib/types/protocol/action/llbot/group/GroupAlbum/UploadGroupAlbum.d.ts +21 -0
  90. package/lib/types/protocol/action/llbot/group/GroupPoke.d.ts +18 -0
  91. package/lib/types/protocol/action/llbot/group/SetGroupMsgMask.d.ts +18 -0
  92. package/lib/types/protocol/action/llbot/group/SetGroupRemark.d.ts +18 -0
  93. package/lib/types/protocol/action/llbot/msg/FetchCustomFace.d.ts +6 -0
  94. package/lib/types/protocol/action/llbot/msg/FetchEmojiLike.d.ts +37 -0
  95. package/lib/types/protocol/action/llbot/msg/ForwardSingleMsg.d.ts +31 -0
  96. package/lib/types/protocol/action/llbot/msg/GetAiCharacters.d.ts +26 -0
  97. package/lib/types/protocol/action/llbot/msg/GetFriendMsgHistory.d.ts +30 -0
  98. package/lib/types/protocol/action/llbot/msg/GetRecommendFace.d.ts +20 -0
  99. package/lib/types/protocol/action/llbot/msg/SendGroupAiRecord.d.ts +27 -0
  100. package/lib/types/protocol/action/llbot/msg/SendPoke.d.ts +21 -0
  101. package/lib/types/protocol/action/llbot/msg/SetMsgEmojiLike.d.ts +26 -0
  102. package/lib/types/protocol/action/llbot/msg/VoiceMsg2Text.d.ts +17 -0
  103. package/lib/types/protocol/action/llbot/system/Config.d.ts +32 -0
  104. package/lib/types/protocol/action/llbot/system/Debug.d.ts +21 -0
  105. package/lib/types/protocol/action/llbot/system/GetRobotUinRange.d.ts +10 -0
  106. package/lib/types/protocol/action/llbot/system/ScanQRCode.d.ts +18 -0
  107. package/lib/types/protocol/action/llbot/system/SendPB.d.ts +27 -0
  108. package/lib/types/protocol/action/llbot/user/FriendPoke.d.ts +18 -0
  109. package/lib/types/protocol/action/llbot/user/GetDoubtFriendsAddRequest.d.ts +36 -0
  110. package/lib/types/protocol/action/llbot/user/GetFriendWithCategory.d.ts +23 -0
  111. package/lib/types/protocol/action/llbot/user/GetProfileLike.d.ts +41 -0
  112. package/lib/types/protocol/action/llbot/user/GetProfileLikeCount.d.ts +18 -0
  113. package/lib/types/protocol/action/llbot/user/GetProfileLikeMe.d.ts +23 -0
  114. package/lib/types/protocol/action/llbot/user/GetQQAvatar.d.ts +23 -0
  115. package/lib/types/protocol/action/llbot/user/SetDoubtFriendsAddRequest.d.ts +15 -0
  116. package/lib/types/protocol/action/llbot/user/SetFriendCategory.d.ts +18 -0
  117. package/lib/types/protocol/action/llbot/user/SetFriendRemark.d.ts +18 -0
  118. package/lib/types/protocol/action/llbot/user/SetInputStatus.d.ts +18 -0
  119. package/lib/types/protocol/action/llbot/user/SetOnlineStatus.d.ts +21 -0
  120. package/lib/types/protocol/action/llbot/user/SetQQAvatar.d.ts +15 -0
  121. package/lib/types/protocol/action/msg/DeleteMsg.d.ts +15 -0
  122. package/lib/types/protocol/action/msg/GetMsg.d.ts +18 -0
  123. package/lib/types/protocol/action/msg/SendMsg.d.ts +26 -0
  124. package/lib/types/protocol/action/msg/SendPrivateMsg.d.ts +10 -0
  125. package/lib/types/protocol/action/system/CanSendImage.d.ts +5 -0
  126. package/lib/types/protocol/action/system/CanSendRecord.d.ts +12 -0
  127. package/lib/types/protocol/action/system/CleanCache.d.ts +6 -0
  128. package/lib/types/protocol/action/system/GetCredentials.d.ts +22 -0
  129. package/lib/types/protocol/action/system/GetCsrfToken.d.ts +12 -0
  130. package/lib/types/protocol/action/system/GetLoginInfo.d.ts +11 -0
  131. package/lib/types/protocol/action/system/GetStatus.d.ts +7 -0
  132. package/lib/types/protocol/action/system/GetVersionInfo.d.ts +7 -0
  133. package/lib/types/protocol/action/system/SetRestart.d.ts +6 -0
  134. package/lib/types/protocol/action/types.d.ts +133 -0
  135. package/lib/types/protocol/action/user/GetCookie.d.ts +22 -0
  136. package/lib/types/protocol/action/user/GetFriendList.d.ts +7 -0
  137. package/lib/types/protocol/action/user/SendLike.d.ts +18 -0
  138. package/lib/types/protocol/action/user/SetFriendAddRequest.d.ts +21 -0
  139. package/lib/types/protocol/cqcode.d.ts +3 -0
  140. package/lib/types/protocol/entities.d.ts +14 -0
  141. package/lib/types/protocol/event/OB11BaseEvent.d.ts +15 -0
  142. package/lib/types/protocol/event/index.d.ts +47 -0
  143. package/lib/types/protocol/event/message/OB11MessageEvent.d.ts +2 -0
  144. package/lib/types/protocol/event/meta/OB11BaseMetaEvent.d.ts +5 -0
  145. package/lib/types/protocol/event/meta/OB11HeartbeatEvent.d.ts +12 -0
  146. package/lib/types/protocol/event/meta/OB11LifeCycleEvent.d.ts +11 -0
  147. package/lib/types/protocol/event/notice/OB11BaseNoticeEvent.d.ts +4 -0
  148. package/lib/types/protocol/event/notice/OB11FlashFileEvent.d.ts +36 -0
  149. package/lib/types/protocol/event/notice/OB11FriendAddNoticeEvent.d.ts +6 -0
  150. package/lib/types/protocol/event/notice/OB11FriendRecallNoticeEvent.d.ts +7 -0
  151. package/lib/types/protocol/event/notice/OB11GroupAdminNoticeEvent.d.ts +8 -0
  152. package/lib/types/protocol/event/notice/OB11GroupBanEvent.d.ts +10 -0
  153. package/lib/types/protocol/event/notice/OB11GroupCardEvent.d.ts +9 -0
  154. package/lib/types/protocol/event/notice/OB11GroupDecreaseEvent.d.ts +10 -0
  155. package/lib/types/protocol/event/notice/OB11GroupDismissEvent.d.ts +7 -0
  156. package/lib/types/protocol/event/notice/OB11GroupEssenceEvent.d.ts +11 -0
  157. package/lib/types/protocol/event/notice/OB11GroupIncreaseEvent.d.ts +11 -0
  158. package/lib/types/protocol/event/notice/OB11GroupNoticeEvent.d.ts +6 -0
  159. package/lib/types/protocol/event/notice/OB11GroupRecallNoticeEvent.d.ts +9 -0
  160. package/lib/types/protocol/event/notice/OB11GroupTitleEvent.d.ts +9 -0
  161. package/lib/types/protocol/event/notice/OB11GroupUploadNoticeEvent.d.ts +14 -0
  162. package/lib/types/protocol/event/notice/OB11MsgEmojiLikeEvent.d.ts +15 -0
  163. package/lib/types/protocol/event/notice/OB11PokeEvent.d.ts +25 -0
  164. package/lib/types/protocol/event/notice/OB11ProfileLikeEvent.d.ts +9 -0
  165. package/lib/types/protocol/event/request/OB11FriendRequest.d.ts +11 -0
  166. package/lib/types/protocol/event/request/OB11GroupRequest.d.ts +25 -0
  167. package/lib/types/protocol/host.d.ts +8 -0
  168. package/lib/types/protocol/index.d.ts +14 -0
  169. package/lib/types/protocol/support/utils.d.ts +28 -0
  170. package/lib/types/protocol/transform/message/incoming.d.ts +7 -0
  171. package/lib/types/protocol/transform/message/index.d.ts +1 -0
  172. package/lib/types/protocol/transform/message/outgoing.d.ts +8 -0
  173. package/lib/types/protocol/types.d.ts +389 -0
  174. package/lib/types/protocol/utils.d.ts +21 -0
  175. package/lib/types/settings.d.ts +5 -0
  176. package/lib/types/support.d.ts +3 -0
  177. package/package.json +89 -16
@@ -0,0 +1,38 @@
1
+ import { BaseAction, Schema } from '../../BaseAction';
2
+ import { ActionName } from '../../types';
3
+ interface Payload {
4
+ group_id: number | string;
5
+ }
6
+ export interface GroupMember {
7
+ uid: string;
8
+ uin: string;
9
+ nick: string;
10
+ cardName: string;
11
+ role: number;
12
+ shutUpTime: number;
13
+ memberRealLevel: number;
14
+ memberSpecialTitle: string;
15
+ joinTime: number;
16
+ lastSpeakTime: number;
17
+ }
18
+ export declare class GetGroupShutList extends BaseAction<Payload, GroupMember[]> {
19
+ actionName: ActionName;
20
+ payloadSchema: Schema<Schemastery.ObjectS<{
21
+ group_id: Schema<string | number, string | number>;
22
+ }>, Schemastery.ObjectT<{
23
+ group_id: Schema<string | number, string | number>;
24
+ }>>;
25
+ _handle(payload: Payload): Promise<{
26
+ uid: string;
27
+ uin: string;
28
+ nick: string;
29
+ cardName: string;
30
+ role: import("@luckylillia-dev/plugin-nt-protocol/types").GroupMemberRole;
31
+ shutUpTime: number;
32
+ memberRealLevel: number;
33
+ memberSpecialTitle: string;
34
+ joinTime: number;
35
+ lastSpeakTime: number;
36
+ }[]>;
37
+ }
38
+ export {};
@@ -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 Info {
7
+ user_id: number;
8
+ nick: string;
9
+ time: number;
10
+ rank: number;
11
+ }
12
+ export declare class GetGroupSignedList extends BaseAction<Payload, Info[]> {
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
+ user_id: number;
21
+ nick: string;
22
+ time: number;
23
+ rank: number;
24
+ }[]>;
25
+ }
26
+ 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
+ name: string;
6
+ desc: string;
7
+ }
8
+ export declare class CreateGroupAlbum extends BaseAction<Payload, unknown> {
9
+ actionName: ActionName;
10
+ payloadSchema: Schema<Schemastery.ObjectS<{
11
+ group_id: Schema<string | number, string | number>;
12
+ name: Schema<string, string>;
13
+ desc: Schema<string, string>;
14
+ }>, Schemastery.ObjectT<{
15
+ group_id: Schema<string | number, string | number>;
16
+ name: Schema<string, string>;
17
+ desc: Schema<string, string>;
18
+ }>>;
19
+ protected _handle(payload: Payload): Promise<unknown>;
20
+ }
21
+ export {};
@@ -0,0 +1,18 @@
1
+ import { BaseAction, Schema } from '../../../BaseAction';
2
+ import { ActionName } from '../../../types';
3
+ interface Payload {
4
+ group_id: number | string;
5
+ album_id: string;
6
+ }
7
+ export declare class DeleteGroupAlbum extends BaseAction<Payload, null> {
8
+ actionName: ActionName;
9
+ payloadSchema: Schema<Schemastery.ObjectS<{
10
+ group_id: Schema<string | number, string | number>;
11
+ album_id: Schema<string, string>;
12
+ }>, Schemastery.ObjectT<{
13
+ group_id: Schema<string | number, string | number>;
14
+ album_id: Schema<string, string>;
15
+ }>>;
16
+ protected _handle(payload: Payload): Promise<null>;
17
+ }
18
+ export {};
@@ -0,0 +1,132 @@
1
+ import { DeepPartial } from '../../../../support/utils';
2
+ import { BaseAction, Schema } from '../../../BaseAction';
3
+ import { ActionName } from '../../../types';
4
+ interface Payload {
5
+ group_id: number | string;
6
+ }
7
+ type AlbumInfo = DeepPartial<{
8
+ album_id: string;
9
+ owner: string;
10
+ name: string;
11
+ desc: string;
12
+ create_time: string;
13
+ modify_time: string;
14
+ last_upload_time: string;
15
+ upload_number: string;
16
+ cover: {
17
+ type: number;
18
+ image: {
19
+ name: string;
20
+ sloc: string;
21
+ lloc: string;
22
+ photo_url: {
23
+ spec: number;
24
+ url: {
25
+ url: string;
26
+ width: number;
27
+ height: number;
28
+ };
29
+ }[];
30
+ default_url: {
31
+ url: string;
32
+ width: number;
33
+ height: number;
34
+ };
35
+ is_gif: boolean;
36
+ has_raw: boolean;
37
+ };
38
+ video: unknown;
39
+ desc: string;
40
+ lbs: unknown;
41
+ uploader: string;
42
+ batch_id: string;
43
+ upload_time: string;
44
+ upload_order: number;
45
+ like: unknown;
46
+ comment: unknown;
47
+ upload_user: unknown;
48
+ ext: unknown[];
49
+ shoot_time: string;
50
+ link_id: string;
51
+ op_mask: unknown[];
52
+ lbs_source: number;
53
+ };
54
+ creator: {
55
+ uid: string;
56
+ nick: string;
57
+ yellow_info: unknown;
58
+ star_info: unknown;
59
+ is_sweet: boolean;
60
+ is_special: boolean;
61
+ is_super_like: boolean;
62
+ custom_id: string;
63
+ poly_id: string;
64
+ portrait: string;
65
+ can_follow: number;
66
+ isfollowed: number;
67
+ uin: string;
68
+ ditto_uin: string;
69
+ };
70
+ top_flag: string;
71
+ busi_type: number;
72
+ status: number;
73
+ permission: null | string;
74
+ allow_share: boolean;
75
+ is_subscribe: boolean;
76
+ bitmap: string;
77
+ is_share_album: boolean;
78
+ share_album: null | string;
79
+ qz_album_type: number;
80
+ family_album: null | string;
81
+ lover_album: null | string;
82
+ cover_type: number;
83
+ travel_album: null | string;
84
+ visitor_info: null | string;
85
+ default_desc: string;
86
+ op_info: null | string;
87
+ active_album: null | string;
88
+ memory_info: null | string;
89
+ sort_type: number;
90
+ }>;
91
+ export declare class GetGroupAlbumList extends BaseAction<Payload, AlbumInfo[]> {
92
+ actionName: ActionName;
93
+ payloadSchema: Schema<Schemastery.ObjectS<{
94
+ group_id: Schema<string | number, string | number>;
95
+ }>, Schemastery.ObjectT<{
96
+ group_id: Schema<string | number, string | number>;
97
+ }>>;
98
+ protected _handle(payload: Payload): Promise<{
99
+ create_time: string;
100
+ modify_time: string;
101
+ last_upload_time: string;
102
+ upload_number: string;
103
+ album_id: string;
104
+ owner: string;
105
+ name: string;
106
+ desc: string;
107
+ cover: {
108
+ readonly type: number;
109
+ readonly image: {
110
+ readonly lloc: string;
111
+ readonly photo_url: {
112
+ readonly spec: number;
113
+ readonly url: {
114
+ readonly url: string;
115
+ readonly width: number;
116
+ readonly height: number;
117
+ };
118
+ }[];
119
+ readonly default_url: {
120
+ readonly url: string;
121
+ readonly width: number;
122
+ readonly height: number;
123
+ } | undefined;
124
+ } | undefined;
125
+ } | undefined;
126
+ creator: {
127
+ readonly nick: string;
128
+ readonly uin: string;
129
+ } | undefined;
130
+ }[]>;
131
+ }
132
+ export {};
@@ -0,0 +1,306 @@
1
+ import { DeepPartial } from '../../../../support/utils';
2
+ import { BaseAction, Schema } from '../../../BaseAction';
3
+ import { ActionName } from '../../../types';
4
+ interface Payload {
5
+ group_id: number | string;
6
+ album_id: string;
7
+ attach_info?: string;
8
+ }
9
+ interface Response {
10
+ album: DeepPartial<{
11
+ album_id: string;
12
+ owner: string;
13
+ name: string;
14
+ desc: string;
15
+ create_time: string;
16
+ modify_time: string;
17
+ last_upload_time: string;
18
+ upload_number: string;
19
+ cover: {
20
+ type: number;
21
+ image: {
22
+ name: string;
23
+ sloc: string;
24
+ lloc: string;
25
+ photo_url: {
26
+ spec: number;
27
+ url: {
28
+ url: string;
29
+ width: number;
30
+ height: number;
31
+ };
32
+ }[];
33
+ default_url: {
34
+ url: string;
35
+ width: number;
36
+ height: number;
37
+ };
38
+ is_gif: boolean;
39
+ has_raw: boolean;
40
+ };
41
+ video: unknown;
42
+ desc: string;
43
+ lbs: unknown;
44
+ uploader: string;
45
+ batch_id: string;
46
+ upload_time: string;
47
+ upload_order: number;
48
+ like: unknown;
49
+ comment: unknown;
50
+ upload_user: unknown;
51
+ ext: unknown[];
52
+ shoot_time: string;
53
+ link_id: string;
54
+ op_mask: unknown[];
55
+ lbs_source: number;
56
+ };
57
+ creator: {
58
+ uid: string;
59
+ nick: string;
60
+ yellow_info: unknown;
61
+ star_info: unknown;
62
+ is_sweet: boolean;
63
+ is_special: boolean;
64
+ is_super_like: boolean;
65
+ custom_id: string;
66
+ poly_id: string;
67
+ portrait: string;
68
+ can_follow: number;
69
+ isfollowed: number;
70
+ uin: string;
71
+ ditto_uin: string;
72
+ };
73
+ top_flag: string;
74
+ busi_type: number;
75
+ status: number;
76
+ permission: null | string;
77
+ allow_share: boolean;
78
+ is_subscribe: boolean;
79
+ bitmap: string;
80
+ is_share_album: boolean;
81
+ share_album: null | string;
82
+ qz_album_type: number;
83
+ family_album: null | string;
84
+ lover_album: null | string;
85
+ cover_type: number;
86
+ travel_album: null | string;
87
+ visitor_info: null | string;
88
+ default_desc: string;
89
+ op_info: null | string;
90
+ active_album: null | string;
91
+ memory_info: null | string;
92
+ sort_type: number;
93
+ }>;
94
+ media_list: DeepPartial<{
95
+ type: number;
96
+ image: {
97
+ name: string;
98
+ sloc: string;
99
+ lloc: string;
100
+ photo_url: {
101
+ spec: number;
102
+ url: {
103
+ url: string;
104
+ width: number;
105
+ height: number;
106
+ };
107
+ }[];
108
+ default_url: {
109
+ url: string;
110
+ width: number;
111
+ height: number;
112
+ };
113
+ is_gif: boolean;
114
+ has_raw: boolean;
115
+ } | null;
116
+ video: {
117
+ id: string;
118
+ url: string;
119
+ cover: {
120
+ name: string;
121
+ sloc: string;
122
+ lloc: string;
123
+ photo_url: {
124
+ spec: number;
125
+ url: {
126
+ url: string;
127
+ width: number;
128
+ height: number;
129
+ };
130
+ }[];
131
+ default_url: {
132
+ url: string;
133
+ width: number;
134
+ height: number;
135
+ };
136
+ is_gif: boolean;
137
+ has_raw: boolean;
138
+ };
139
+ width: number;
140
+ height: number;
141
+ video_time: string;
142
+ video_url: {
143
+ spec: number;
144
+ url: {
145
+ url: string;
146
+ width: number;
147
+ height: number;
148
+ };
149
+ }[];
150
+ } | null;
151
+ desc: string;
152
+ lbs: {
153
+ gps: {
154
+ lat: string;
155
+ lon: string;
156
+ e_type: string;
157
+ alt: string;
158
+ };
159
+ location: string;
160
+ lbsId: string;
161
+ address: string;
162
+ };
163
+ uploader: string;
164
+ batch_id: string;
165
+ upload_time: string;
166
+ upload_order: number;
167
+ like: {
168
+ key: string;
169
+ num: number;
170
+ liked: boolean;
171
+ };
172
+ comment: {
173
+ num: number;
174
+ };
175
+ upload_user: {
176
+ uid: string;
177
+ nick: string;
178
+ yellow_info: unknown;
179
+ star_info: unknown;
180
+ is_sweet: boolean;
181
+ is_special: boolean;
182
+ is_super_like: boolean;
183
+ custom_id: string;
184
+ poly_id: string;
185
+ portrait: string;
186
+ can_follow: number;
187
+ isfollowed: number;
188
+ uin: string;
189
+ ditto_uin: string;
190
+ };
191
+ ext: unknown[];
192
+ shoot_time: string;
193
+ link_id: string;
194
+ op_mask: unknown[];
195
+ lbs_source: number;
196
+ }[]>;
197
+ next_attach_info: string;
198
+ next_has_more: boolean;
199
+ }
200
+ export declare class GetGroupAlbumMediaList extends BaseAction<Payload, Response> {
201
+ actionName: ActionName;
202
+ payloadSchema: Schema<Schemastery.ObjectS<{
203
+ group_id: Schema<string | number, string | number>;
204
+ album_id: Schema<string, string>;
205
+ attach_info: Schema<string, string>;
206
+ }>, Schemastery.ObjectT<{
207
+ group_id: Schema<string | number, string | number>;
208
+ album_id: Schema<string, string>;
209
+ attach_info: Schema<string, string>;
210
+ }>>;
211
+ protected _handle(payload: Payload): Promise<{
212
+ album: {
213
+ create_time: string;
214
+ modify_time: string;
215
+ last_upload_time: string;
216
+ upload_number: string;
217
+ album_id: string;
218
+ owner: string;
219
+ name: string;
220
+ desc: string;
221
+ cover: {
222
+ readonly type: number;
223
+ readonly image: {
224
+ readonly lloc: string;
225
+ readonly photo_url: {
226
+ readonly spec: number;
227
+ readonly url: {
228
+ readonly url: string;
229
+ readonly width: number;
230
+ readonly height: number;
231
+ };
232
+ }[];
233
+ readonly default_url: {
234
+ readonly url: string;
235
+ readonly width: number;
236
+ readonly height: number;
237
+ } | undefined;
238
+ } | undefined;
239
+ } | undefined;
240
+ creator: {
241
+ readonly nick: string;
242
+ readonly uin: string;
243
+ } | undefined;
244
+ };
245
+ media_list: {
246
+ video: {
247
+ video_time: string;
248
+ id: string;
249
+ url: string;
250
+ cover: {
251
+ lloc: string;
252
+ photo_url: {
253
+ readonly spec: number;
254
+ readonly url: {
255
+ readonly url: string;
256
+ readonly width: number;
257
+ readonly height: number;
258
+ };
259
+ }[];
260
+ default_url: {
261
+ readonly url: string;
262
+ readonly width: number;
263
+ readonly height: number;
264
+ } | undefined;
265
+ };
266
+ width: number;
267
+ height: number;
268
+ video_url: {
269
+ spec: number;
270
+ url: {
271
+ url: string;
272
+ width: number;
273
+ height: number;
274
+ };
275
+ }[];
276
+ } | undefined;
277
+ batch_id: string;
278
+ upload_time: string;
279
+ type: number;
280
+ image: {
281
+ readonly lloc: string;
282
+ readonly photo_url: {
283
+ readonly spec: number;
284
+ readonly url: {
285
+ readonly url: string;
286
+ readonly width: number;
287
+ readonly height: number;
288
+ };
289
+ }[];
290
+ readonly default_url: {
291
+ readonly url: string;
292
+ readonly width: number;
293
+ readonly height: number;
294
+ } | undefined;
295
+ } | undefined;
296
+ desc: string;
297
+ uploader: string;
298
+ like: {
299
+ key: string;
300
+ } | undefined;
301
+ }[];
302
+ next_attach_info: string;
303
+ next_has_more: boolean;
304
+ }>;
305
+ }
306
+ 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
+ album_id: string;
6
+ files: string[];
7
+ }
8
+ export declare class UploadGroupAlbum extends BaseAction<Payload, unknown> {
9
+ actionName: ActionName;
10
+ payloadSchema: Schema<Schemastery.ObjectS<{
11
+ group_id: Schema<string | number, string | number>;
12
+ album_id: Schema<string, string>;
13
+ files: Schema<string[], string[]>;
14
+ }>, Schemastery.ObjectT<{
15
+ group_id: Schema<string | number, string | number>;
16
+ album_id: Schema<string, string>;
17
+ files: Schema<string[], string[]>;
18
+ }>>;
19
+ protected _handle(payload: Payload): Promise<unknown>;
20
+ }
21
+ export {};
@@ -0,0 +1,18 @@
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
+ }
7
+ export declare class GroupPoke extends BaseAction<Payload, null> {
8
+ actionName: ActionName;
9
+ payloadSchema: Schema<Schemastery.ObjectS<{
10
+ group_id: Schema<string | number, string | number>;
11
+ user_id: Schema<string | number, string | number>;
12
+ }>, Schemastery.ObjectT<{
13
+ group_id: Schema<string | number, string | number>;
14
+ user_id: Schema<string | number, string | number>;
15
+ }>>;
16
+ _handle(payload: Payload): Promise<null>;
17
+ }
18
+ export {};
@@ -0,0 +1,18 @@
1
+ import { BaseAction, Schema } from '../../BaseAction';
2
+ import { ActionName } from '../../types';
3
+ interface Payload {
4
+ group_id: number | string;
5
+ mask: number | string;
6
+ }
7
+ export declare class SetGroupMsgMask extends BaseAction<Payload, null> {
8
+ actionName: ActionName;
9
+ payloadSchema: Schema<Schemastery.ObjectS<{
10
+ group_id: Schema<string | number, string | number>;
11
+ mask: Schema<string | number, string | number>;
12
+ }>, Schemastery.ObjectT<{
13
+ group_id: Schema<string | number, string | number>;
14
+ mask: Schema<string | number, string | number>;
15
+ }>>;
16
+ protected _handle(payload: Payload): Promise<null>;
17
+ }
18
+ export {};
@@ -0,0 +1,18 @@
1
+ import { BaseAction, Schema } from '../../BaseAction';
2
+ import { ActionName } from '../../types';
3
+ interface Payload {
4
+ group_id: number | string;
5
+ remark?: string;
6
+ }
7
+ export declare class SetGroupRemark extends BaseAction<Payload, null> {
8
+ actionName: ActionName;
9
+ payloadSchema: Schema<Schemastery.ObjectS<{
10
+ group_id: Schema<string | number, string | number>;
11
+ remark: Schema<string, string>;
12
+ }>, Schemastery.ObjectT<{
13
+ group_id: Schema<string | number, string | number>;
14
+ remark: Schema<string, string>;
15
+ }>>;
16
+ protected _handle(payload: Payload): Promise<null>;
17
+ }
18
+ export {};
@@ -0,0 +1,6 @@
1
+ import { BaseAction } from '../../BaseAction';
2
+ import { ActionName } from '../../types';
3
+ export declare class FetchCustomFace extends BaseAction<{}, string[]> {
4
+ actionName: ActionName;
5
+ _handle(payload: {}): Promise<string[]>;
6
+ }
@@ -0,0 +1,37 @@
1
+ import { BaseAction, Schema } from '../../BaseAction';
2
+ import { ActionName } from '../../types';
3
+ import { Dict } from 'cosmokit';
4
+ interface Payload {
5
+ message_id: string | number;
6
+ emoji_id?: string | number;
7
+ emojiId?: string | number;
8
+ count: string | number;
9
+ cookie?: string;
10
+ }
11
+ export declare class FetchEmojiLike extends BaseAction<Payload, Dict> {
12
+ actionName: ActionName;
13
+ payloadSchema: Schema<Schemastery.ObjectS<{
14
+ message_id: Schema<string | number, string | number>;
15
+ emoji_id: Schema<string | number, string | number>;
16
+ emojiId: Schema<string | number, string | number>;
17
+ count: Schema<string | number, string | number>;
18
+ cookie: Schema<string, string>;
19
+ }>, Schemastery.ObjectT<{
20
+ message_id: Schema<string | number, string | number>;
21
+ emoji_id: Schema<string | number, string | number>;
22
+ emojiId: Schema<string | number, string | number>;
23
+ count: Schema<string | number, string | number>;
24
+ cookie: Schema<string, string>;
25
+ }>>;
26
+ _handle(payload: Payload): Promise<{
27
+ emojiLikesList: {
28
+ tinyId: string;
29
+ nickName: string;
30
+ headUrl: string;
31
+ }[];
32
+ cookie: string;
33
+ isLastPage: boolean;
34
+ isFirstPage: boolean;
35
+ }>;
36
+ }
37
+ export {};