wx2tg-puppet 2.0.5 → 2.0.7
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/dist/action/common.d.ts +3 -3
- package/dist/action/common.js +15 -7
- package/dist/api/FavorApi.d.ts +26 -6
- package/dist/api/FinderApi.d.ts +18 -16
- package/dist/api/FriendApi.d.ts +74 -12
- package/dist/api/FriendCircleApi.d.ts +12 -10
- package/dist/api/GroupApi.d.ts +62 -19
- package/dist/api/LabelApi.d.ts +8 -6
- package/dist/api/LoginApi.d.ts +85 -43
- package/dist/api/MsgApi.d.ts +98 -18
- package/dist/api/OfficialAccountsApi.d.ts +9 -7
- package/dist/api/QWContactApi.d.ts +5 -3
- package/dist/api/SayHelloApi.d.ts +4 -2
- package/dist/api/ToolsApi.d.ts +22 -18
- package/dist/api/ToolsApi.js +8 -0
- package/dist/api/UserApi.d.ts +84 -18
- package/dist/api/WxappApi.d.ts +16 -14
- package/dist/core/Contact.d.ts +2 -2
- package/dist/core/Friendship.js +6 -0
- package/dist/core/Message.d.ts +4 -3
- package/dist/core/Message.js +3 -1
- package/dist/core/Room.d.ts +2 -2
- package/dist/core/Room.js +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -9
- package/dist/types/ApiResponse.d.ts +14 -0
- package/dist/types/ApiResponse.js +2 -0
- package/dist/types/MessageType.d.ts +29 -0
- package/dist/types/MessageType.js +32 -0
- package/dist/utils/axiosInstance.d.ts +1 -1
- package/package.json +1 -2
package/dist/action/common.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ResponseMsg } from "../core/Message";
|
|
2
|
-
export declare const say: (content: any, toWxid: string, ats: any) => Promise<
|
|
3
|
-
export declare const quote: (obj: any, toWxid: string) => Promise<ResponseMsg>;
|
|
4
|
-
export declare const revoke: (content: any) => Promise<
|
|
2
|
+
export declare const say: (content: any, toWxid: string, ats: any) => Promise<import("axios").AxiosResponse<import("../types/ApiResponse").ApiResponse, any> | ResponseMsg | null | undefined>;
|
|
3
|
+
export declare const quote: (obj: any, toWxid: string) => Promise<ResponseMsg | null>;
|
|
4
|
+
export declare const revoke: (content: any) => Promise<import("axios").AxiosResponse<import("../types/ApiResponse").ApiResponse, any>>;
|
package/dist/action/common.js
CHANGED
|
@@ -88,7 +88,7 @@ const say = (content, toWxid, ats) => __awaiter(void 0, void 0, void 0, function
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
const res = yield MsgApi_1.msgApi.SendTxt({
|
|
91
|
-
"At": ats ? atString :
|
|
91
|
+
"At": ats ? atString : "",
|
|
92
92
|
"Content": content,
|
|
93
93
|
"ToWxid": toWxid,
|
|
94
94
|
"Type": 1,
|
|
@@ -113,29 +113,35 @@ const say = (content, toWxid, ats) => __awaiter(void 0, void 0, void 0, function
|
|
|
113
113
|
default:
|
|
114
114
|
fileType = 'other';
|
|
115
115
|
}
|
|
116
|
-
const base64 = yield content.toBase64();
|
|
117
116
|
switch (fileType) {
|
|
118
117
|
case 'image':
|
|
119
118
|
// console.log('上传图片', base64)
|
|
119
|
+
const base64 = yield content.toBase64();
|
|
120
120
|
return MsgApi_1.msgApi.UploadImg({
|
|
121
121
|
"Base64": base64,
|
|
122
122
|
"ToWxid": toWxid,
|
|
123
123
|
"Wxid": (config === null || config === void 0 ? void 0 : config.wxid) || ''
|
|
124
124
|
});
|
|
125
125
|
case 'other':
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
126
|
+
// 直接从 FileBox 获取文件内容
|
|
127
|
+
const fileBuffer = yield content.toBuffer();
|
|
128
|
+
const fileBlob = new Blob([fileBuffer]);
|
|
129
|
+
// 创建 FormData
|
|
130
|
+
const formData = new FormData();
|
|
131
|
+
formData.append('wxid', (config === null || config === void 0 ? void 0 : config.wxid) || '');
|
|
132
|
+
formData.append('file', fileBlob, fileName);
|
|
133
|
+
const res = yield ToolsApi_1.toolsApi.UploadFileBinary(formData);
|
|
130
134
|
const size = res.data.Data.totalLen;
|
|
131
135
|
const mediaId = res.data.Data.mediaId;
|
|
136
|
+
if (!config)
|
|
137
|
+
return null;
|
|
132
138
|
const res1 = yield MsgApi_1.msgApi.SendApp({
|
|
133
139
|
"ToWxid": toWxid,
|
|
134
140
|
"Type": 6,
|
|
135
141
|
"Wxid": config === null || config === void 0 ? void 0 : config.wxid,
|
|
136
142
|
"Xml": `<appmsg appid='wxeb7ec651dd0aefa9' sdkver=''><title>${fileName}</title><des></des><action></action><type>6</type><content></content><url></url><lowurl></lowurl><appattach><totallen>${size}</totallen><attachid>${mediaId}</attachid><fileext>${ext}</fileext></appattach><extinfo></extinfo></appmsg>`
|
|
137
143
|
});
|
|
138
|
-
return new Message_1.ResponseMsg(res1.data.Data
|
|
144
|
+
return new Message_1.ResponseMsg(res1.data.Data);
|
|
139
145
|
}
|
|
140
146
|
}
|
|
141
147
|
// else if(content instanceof URLLINK){
|
|
@@ -215,6 +221,8 @@ exports.say = say;
|
|
|
215
221
|
// 引用
|
|
216
222
|
const quote = (obj, toWxid) => __awaiter(void 0, void 0, void 0, function* () {
|
|
217
223
|
const config = yield config_service_1.configService.get();
|
|
224
|
+
if (!config)
|
|
225
|
+
return null;
|
|
218
226
|
const msg = `<appmsg appid="" sdkver="0"><title>${obj.title}</title><des /><action /><type>57</type><showtype>0</showtype><soundtype>0</soundtype><mediatagname /><messageext /><messageaction /><content /><contentattr>0</contentattr><url /><lowurl /><dataurl /><lowdataurl /><songalbumurl /><songlyric /><appattach><totallen>0</totallen><attachid /><emoticonmd5 /><fileext /><aeskey /></appattach><extinfo /><sourceusername /><sourcedisplayname /><thumburl /><md5 /><statextstr /><refermsg><content>${obj.content}</content><type>1</type><svrid>${obj.msgid}</svrid><chatusr>${obj.wxid}</chatusr><fromusr>${toWxid}</fromusr></refermsg></appmsg>`;
|
|
219
227
|
const res = yield MsgApi_1.msgApi.SendApp({
|
|
220
228
|
"ToWxid": toWxid,
|
package/dist/api/FavorApi.d.ts
CHANGED
|
@@ -1,13 +1,33 @@
|
|
|
1
|
+
import { ApiResponse } from '../types/ApiResponse';
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
3
|
+
export interface FavorDelParam {
|
|
4
|
+
FavId: number;
|
|
5
|
+
Wxid: string;
|
|
6
|
+
}
|
|
7
|
+
export interface FavorGetFavItemParam {
|
|
8
|
+
FavId: number;
|
|
9
|
+
Wxid: string;
|
|
10
|
+
}
|
|
11
|
+
export interface FavorSyncParam {
|
|
12
|
+
Keybuf: string;
|
|
13
|
+
Wxid: string;
|
|
14
|
+
}
|
|
15
|
+
export interface FavorAddParam {
|
|
16
|
+
Wxid: string;
|
|
17
|
+
}
|
|
18
|
+
export interface FavorGetListParam {
|
|
19
|
+
Wxid: string;
|
|
20
|
+
}
|
|
1
21
|
export declare class FavorApi {
|
|
2
22
|
/** 添加收藏 */
|
|
3
|
-
Add(body:
|
|
23
|
+
Add(body: FavorAddParam): Promise<AxiosResponse<ApiResponse>>;
|
|
4
24
|
/** 删除收藏 */
|
|
5
|
-
Del(body:
|
|
25
|
+
Del(body: FavorDelParam): Promise<AxiosResponse<ApiResponse>>;
|
|
6
26
|
/** 获取收藏信息 */
|
|
7
|
-
GetFavInfo(wxid: string):
|
|
27
|
+
GetFavInfo(wxid: string): Promise<AxiosResponse<ApiResponse>>;
|
|
8
28
|
/** 读取收藏内容 */
|
|
9
|
-
GetFavItem(body:
|
|
29
|
+
GetFavItem(body: FavorGetFavItemParam): Promise<AxiosResponse<ApiResponse>>;
|
|
10
30
|
/** 同步收藏 */
|
|
11
|
-
Sync(body:
|
|
12
|
-
GetList(body:
|
|
31
|
+
Sync(body: FavorSyncParam): Promise<AxiosResponse<ApiResponse>>;
|
|
32
|
+
GetList(body: FavorGetListParam): Promise<AxiosResponse<ApiResponse>>;
|
|
13
33
|
}
|
package/dist/api/FinderApi.d.ts
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
|
+
import { ApiResponse } from '../types/ApiResponse';
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
1
3
|
declare class FinderApi {
|
|
2
4
|
/** 评论 */
|
|
3
|
-
Comment(body: any):
|
|
5
|
+
Comment(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
4
6
|
/** 关注 */
|
|
5
|
-
Follow(body: any):
|
|
7
|
+
Follow(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
6
8
|
/** 查看指定内容 */
|
|
7
|
-
GetCommentDetail(body: any):
|
|
9
|
+
GetCommentDetail(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
8
10
|
/** 点赞 */
|
|
9
|
-
Like(body: any):
|
|
11
|
+
Like(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
10
12
|
/** 用户搜索 */
|
|
11
|
-
Search(body: any):
|
|
13
|
+
Search(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
12
14
|
/** 查看指定人首页 */
|
|
13
|
-
TargetUserPage(body: any):
|
|
15
|
+
TargetUserPage(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
14
16
|
/** 推荐 */
|
|
15
|
-
GetRecommend(body: any):
|
|
17
|
+
GetRecommend(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
16
18
|
/** 搜索列表 */
|
|
17
|
-
FinderSearchList(body: any):
|
|
19
|
+
FinderSearchList(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
18
20
|
/** 主题列表 */
|
|
19
|
-
Findergettopiclist(body: any):
|
|
21
|
+
Findergettopiclist(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
20
22
|
/** 直播详情 */
|
|
21
|
-
FinderLiveDetail(body: any):
|
|
23
|
+
FinderLiveDetail(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
22
24
|
/** 发送私信文字 */
|
|
23
|
-
FinderSendText(body: any):
|
|
25
|
+
FinderSendText(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
24
26
|
/** 用户中心 */
|
|
25
|
-
UserPrepare(wxid: string):
|
|
26
|
-
GetFeedDetail(body: any):
|
|
27
|
-
GetFeeds(body: any):
|
|
28
|
-
GetProfile(body: any):
|
|
29
|
-
Unlike(body: any):
|
|
27
|
+
UserPrepare(wxid: string): Promise<AxiosResponse<ApiResponse>>;
|
|
28
|
+
GetFeedDetail(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
29
|
+
GetFeeds(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
30
|
+
GetProfile(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
31
|
+
Unlike(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
30
32
|
}
|
|
31
33
|
export declare const finderApi: FinderApi;
|
|
32
34
|
export {};
|
package/dist/api/FriendApi.d.ts
CHANGED
|
@@ -1,28 +1,90 @@
|
|
|
1
|
+
import { ApiResponse } from '../types/ApiResponse';
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
3
|
+
export interface FriendBlacklistParam {
|
|
4
|
+
ToWxid: string;
|
|
5
|
+
Val: number;
|
|
6
|
+
Wxid: string;
|
|
7
|
+
}
|
|
8
|
+
export interface FriendDefaultParam {
|
|
9
|
+
ToWxid: string;
|
|
10
|
+
Wxid: string;
|
|
11
|
+
}
|
|
12
|
+
export interface FriendGetContractDetailParam {
|
|
13
|
+
ChatRoom: string;
|
|
14
|
+
Towxids: string;
|
|
15
|
+
Wxid: string;
|
|
16
|
+
}
|
|
17
|
+
export interface FriendGetContractListParam {
|
|
18
|
+
CurrentChatRoomContactSeq: number;
|
|
19
|
+
CurrentWxcontactSeq: number;
|
|
20
|
+
Wxid: string;
|
|
21
|
+
}
|
|
22
|
+
export interface FriendRelationParam {
|
|
23
|
+
UserName: string;
|
|
24
|
+
Wxid: string;
|
|
25
|
+
}
|
|
26
|
+
export interface FriendLbsFindParam {
|
|
27
|
+
Latitude: number;
|
|
28
|
+
Longitude: number;
|
|
29
|
+
OpCode: number;
|
|
30
|
+
Wxid: string;
|
|
31
|
+
}
|
|
32
|
+
export interface FriendPassVerifyParam {
|
|
33
|
+
Scene: number;
|
|
34
|
+
V1: string;
|
|
35
|
+
V2: string;
|
|
36
|
+
Wxid: string;
|
|
37
|
+
}
|
|
38
|
+
export interface FriendSearchParam {
|
|
39
|
+
FromScene: number;
|
|
40
|
+
SearchScene: number;
|
|
41
|
+
ToUserName: string;
|
|
42
|
+
Wxid: string;
|
|
43
|
+
}
|
|
44
|
+
export interface FriendSendRequestParam {
|
|
45
|
+
Opcode: number;
|
|
46
|
+
Scene: number;
|
|
47
|
+
V1: string;
|
|
48
|
+
V2: string;
|
|
49
|
+
VerifyContent: string;
|
|
50
|
+
Wxid: string;
|
|
51
|
+
}
|
|
52
|
+
export interface FriendSetRemarksParam {
|
|
53
|
+
Remarks: string;
|
|
54
|
+
ToWxid: string;
|
|
55
|
+
Wxid: string;
|
|
56
|
+
}
|
|
57
|
+
export interface FriendUploadParam {
|
|
58
|
+
CurrentPhoneNo: string;
|
|
59
|
+
Opcode: number;
|
|
60
|
+
PhoneNo: string;
|
|
61
|
+
Wxid: string;
|
|
62
|
+
}
|
|
1
63
|
declare class FriendApi {
|
|
2
64
|
/** 添加/移除黑名单 */
|
|
3
|
-
Blacklist(body:
|
|
65
|
+
Blacklist(body: FriendBlacklistParam): Promise<AxiosResponse<ApiResponse>>;
|
|
4
66
|
/** 删除好友 */
|
|
5
|
-
Delete(body:
|
|
67
|
+
Delete(body: FriendDefaultParam): Promise<AxiosResponse<ApiResponse>>;
|
|
6
68
|
/** 获取通讯录好友详情 */
|
|
7
|
-
GetContractDetail(body:
|
|
69
|
+
GetContractDetail(body: FriendGetContractDetailParam): Promise<AxiosResponse<ApiResponse>>;
|
|
8
70
|
/** 获取通讯录好友 */
|
|
9
|
-
GetContractList(body:
|
|
71
|
+
GetContractList(body: FriendGetContractListParam): Promise<AxiosResponse<ApiResponse>>;
|
|
10
72
|
/** 查询好友状态 */
|
|
11
|
-
GetFriendstate(body:
|
|
73
|
+
GetFriendstate(body: FriendRelationParam): Promise<AxiosResponse<ApiResponse>>;
|
|
12
74
|
/** 获取手机通讯录 */
|
|
13
|
-
GetMFriend(wxid: string):
|
|
75
|
+
GetMFriend(wxid: string): Promise<AxiosResponse<ApiResponse>>;
|
|
14
76
|
/** 附近人 */
|
|
15
|
-
LbsFind(body:
|
|
77
|
+
LbsFind(body: FriendLbsFindParam): Promise<AxiosResponse<ApiResponse>>;
|
|
16
78
|
/** 通过好友请求 */
|
|
17
|
-
PassVerify(body:
|
|
79
|
+
PassVerify(body: FriendPassVerifyParam): Promise<AxiosResponse<ApiResponse>>;
|
|
18
80
|
/** 搜索联系人 */
|
|
19
|
-
Search(body:
|
|
81
|
+
Search(body: FriendSearchParam): Promise<AxiosResponse<ApiResponse>>;
|
|
20
82
|
/** 添加联系人(发送好友请求) */
|
|
21
|
-
SendRequest(body:
|
|
83
|
+
SendRequest(body: FriendSendRequestParam): Promise<AxiosResponse<ApiResponse>>;
|
|
22
84
|
/** 设置好友备注 */
|
|
23
|
-
SetRemarks(body:
|
|
85
|
+
SetRemarks(body: FriendSetRemarksParam): Promise<AxiosResponse<ApiResponse>>;
|
|
24
86
|
/** 上传通讯录 */
|
|
25
|
-
Upload(body:
|
|
87
|
+
Upload(body: FriendUploadParam): Promise<AxiosResponse<ApiResponse>>;
|
|
26
88
|
}
|
|
27
89
|
export declare const friendApi: FriendApi;
|
|
28
90
|
export {};
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
+
import { ApiResponse } from '../types/ApiResponse';
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
1
3
|
declare class FriendCircleApi {
|
|
2
4
|
/** 朋友圈点赞/评论 */
|
|
3
|
-
Comment(body: any):
|
|
5
|
+
Comment(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
4
6
|
/** 获取特定人朋友圈 */
|
|
5
|
-
GetDetail(body: any):
|
|
7
|
+
GetDetail(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
6
8
|
/** 获取特定ID详情内容 */
|
|
7
|
-
GetIdDetail(body: any):
|
|
9
|
+
GetIdDetail(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
8
10
|
/** 朋友圈首页列表 */
|
|
9
|
-
GetList(body: any):
|
|
11
|
+
GetList(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
10
12
|
/** 发布朋友圈 */
|
|
11
|
-
Messages(body: any):
|
|
13
|
+
Messages(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
12
14
|
/** 朋友圈同步 */
|
|
13
|
-
MmSnsSync(body: any):
|
|
15
|
+
MmSnsSync(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
14
16
|
/** 朋友圈操作 */
|
|
15
|
-
Operation(body: any):
|
|
17
|
+
Operation(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
16
18
|
/** 朋友圈权限设置 */
|
|
17
|
-
PrivacySettings(body: any):
|
|
19
|
+
PrivacySettings(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
18
20
|
/** 朋友圈上传 */
|
|
19
|
-
Upload(body: any):
|
|
21
|
+
Upload(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
20
22
|
/** 朋友圈上传(分包模式) */
|
|
21
|
-
UploadSep(body: any):
|
|
23
|
+
UploadSep(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
22
24
|
}
|
|
23
25
|
export declare const friendCircleApi: FriendCircleApi;
|
|
24
26
|
export {};
|
package/dist/api/GroupApi.d.ts
CHANGED
|
@@ -1,42 +1,85 @@
|
|
|
1
|
+
import { ApiResponse } from '../types/ApiResponse';
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
3
|
+
export interface GroupAddChatRoomParam {
|
|
4
|
+
ChatRoomName: string;
|
|
5
|
+
ToWxids: string;
|
|
6
|
+
Wxid: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GroupConsentToJoinParam {
|
|
9
|
+
Url: string;
|
|
10
|
+
Wxid: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GroupCreateChatRoomParam {
|
|
13
|
+
ToWxids: string;
|
|
14
|
+
Wxid: string;
|
|
15
|
+
}
|
|
16
|
+
export interface GroupGetChatRoomParam {
|
|
17
|
+
QID: string;
|
|
18
|
+
Wxid: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GroupMoveContractListParam {
|
|
21
|
+
QID: string;
|
|
22
|
+
Val: number;
|
|
23
|
+
Wxid: string;
|
|
24
|
+
}
|
|
25
|
+
export interface GroupOperateChatRoomAdminParam {
|
|
26
|
+
QID: string;
|
|
27
|
+
ToWxids: string;
|
|
28
|
+
Val: number;
|
|
29
|
+
Wxid: string;
|
|
30
|
+
}
|
|
31
|
+
export interface GroupOperateChatRoomInfoParam {
|
|
32
|
+
Content: string;
|
|
33
|
+
QID: string;
|
|
34
|
+
Wxid: string;
|
|
35
|
+
}
|
|
36
|
+
export interface GroupQuitGroupParam {
|
|
37
|
+
QID: string;
|
|
38
|
+
Wxid: string;
|
|
39
|
+
}
|
|
40
|
+
export interface GroupScanIntoGroupParam {
|
|
41
|
+
Url: string;
|
|
42
|
+
Wxid: string;
|
|
43
|
+
}
|
|
1
44
|
declare class GroupApi {
|
|
2
45
|
/** 增加群成员(40人以内) */
|
|
3
|
-
AddChatRoomMember(body:
|
|
46
|
+
AddChatRoomMember(body: GroupAddChatRoomParam): Promise<AxiosResponse<ApiResponse>>;
|
|
4
47
|
/** 同意进入群聊 */
|
|
5
|
-
ConsentToJoin(body:
|
|
48
|
+
ConsentToJoin(body: GroupConsentToJoinParam): Promise<AxiosResponse<ApiResponse>>;
|
|
6
49
|
/** 创建群聊 */
|
|
7
|
-
CreateChatRoom(body:
|
|
50
|
+
CreateChatRoom(body: GroupCreateChatRoomParam): Promise<AxiosResponse<ApiResponse>>;
|
|
8
51
|
/** 删除群成员 */
|
|
9
|
-
DelChatRoomMember(body:
|
|
52
|
+
DelChatRoomMember(body: GroupAddChatRoomParam): Promise<AxiosResponse<ApiResponse>>;
|
|
10
53
|
/** 获取群详情(不带公告内容) */
|
|
11
|
-
GetChatRoomInfo(body:
|
|
54
|
+
GetChatRoomInfo(body: GroupGetChatRoomParam): Promise<AxiosResponse<ApiResponse>>;
|
|
12
55
|
/** 获取群信息(带公告内容) */
|
|
13
|
-
GetChatRoomInfoDetail(body:
|
|
56
|
+
GetChatRoomInfoDetail(body: GroupGetChatRoomParam): Promise<AxiosResponse<ApiResponse>>;
|
|
14
57
|
/** 获取群成员详情 */
|
|
15
|
-
GetChatRoomMemberDetail(body:
|
|
58
|
+
GetChatRoomMemberDetail(body: GroupGetChatRoomParam): Promise<AxiosResponse<ApiResponse>>;
|
|
16
59
|
/** 获取群二维码 */
|
|
17
|
-
GetQRCode(body:
|
|
60
|
+
GetQRCode(body: GroupGetChatRoomParam): Promise<AxiosResponse<ApiResponse>>;
|
|
18
61
|
/** 获取群成员信息 */
|
|
19
|
-
GetSomeMemberInfo(body:
|
|
62
|
+
GetSomeMemberInfo(body: GroupAddChatRoomParam): Promise<AxiosResponse<ApiResponse>>;
|
|
20
63
|
/** 邀请群成员(40人以上) */
|
|
21
|
-
InviteChatRoomMember(body:
|
|
64
|
+
InviteChatRoomMember(body: GroupAddChatRoomParam): Promise<AxiosResponse<ApiResponse>>;
|
|
22
65
|
/** 保存到通讯录 */
|
|
23
|
-
MoveContractList(body:
|
|
66
|
+
MoveContractList(body: GroupMoveContractListParam): Promise<AxiosResponse<ApiResponse>>;
|
|
24
67
|
/** 群管理操作(添加、删除、转让) */
|
|
25
|
-
OperateChatRoomAdmin(body:
|
|
68
|
+
OperateChatRoomAdmin(body: GroupOperateChatRoomAdminParam): Promise<AxiosResponse<ApiResponse>>;
|
|
26
69
|
/** 拍一拍群人员 */
|
|
27
|
-
Pat(body:
|
|
70
|
+
Pat(body: GroupQuitGroupParam): Promise<AxiosResponse<ApiResponse>>;
|
|
28
71
|
/** 退出群聊 */
|
|
29
|
-
Quit(body:
|
|
72
|
+
Quit(body: GroupQuitGroupParam): Promise<AxiosResponse<ApiResponse>>;
|
|
30
73
|
/** 扫码进群 */
|
|
31
|
-
ScanIntoGroup(body:
|
|
74
|
+
ScanIntoGroup(body: GroupScanIntoGroupParam): Promise<AxiosResponse<ApiResponse>>;
|
|
32
75
|
/** 设置群公告 */
|
|
33
|
-
SetChatRoomAnnouncement(body:
|
|
76
|
+
SetChatRoomAnnouncement(body: GroupOperateChatRoomInfoParam): Promise<AxiosResponse<ApiResponse>>;
|
|
34
77
|
/** 设置群名称 */
|
|
35
|
-
SetChatRoomName(body:
|
|
78
|
+
SetChatRoomName(body: GroupOperateChatRoomInfoParam): Promise<AxiosResponse<ApiResponse>>;
|
|
36
79
|
/** 设置群备注(仅自己可见) */
|
|
37
|
-
SetChatRoomRemarks(body:
|
|
80
|
+
SetChatRoomRemarks(body: GroupOperateChatRoomInfoParam): Promise<AxiosResponse<ApiResponse>>;
|
|
38
81
|
/** 设置自己所在群的昵称 */
|
|
39
|
-
SetNickname(body:
|
|
82
|
+
SetNickname(body: GroupOperateChatRoomInfoParam): Promise<AxiosResponse<ApiResponse>>;
|
|
40
83
|
}
|
|
41
84
|
export declare const groupApi: GroupApi;
|
|
42
85
|
export {};
|
package/dist/api/LabelApi.d.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
import { ApiResponse } from '../types/ApiResponse';
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
1
3
|
declare class LabelApi {
|
|
2
4
|
/** 添加标签 */
|
|
3
|
-
Add(body: any):
|
|
5
|
+
Add(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
4
6
|
/** 删除标签 */
|
|
5
|
-
Delete(body: any):
|
|
7
|
+
Delete(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
6
8
|
/** 获取标签列表 */
|
|
7
|
-
GetList(wxid: string):
|
|
9
|
+
GetList(wxid: string): Promise<AxiosResponse<ApiResponse>>;
|
|
8
10
|
/** 读取标签列表 */
|
|
9
|
-
GetWxidList(body: any):
|
|
11
|
+
GetWxidList(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
10
12
|
/** 更新标签列表 */
|
|
11
|
-
UpdateList(body: any):
|
|
13
|
+
UpdateList(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
12
14
|
/** 修改标签 */
|
|
13
|
-
UpdateName(body: any):
|
|
15
|
+
UpdateName(body: any): Promise<AxiosResponse<ApiResponse>>;
|
|
14
16
|
}
|
|
15
17
|
export declare const labelApi: LabelApi;
|
|
16
18
|
export {};
|
package/dist/api/LoginApi.d.ts
CHANGED
|
@@ -1,90 +1,132 @@
|
|
|
1
|
+
import { ApiResponse } from '../types/ApiResponse';
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
3
|
+
export interface LoginA16LoginParam {
|
|
4
|
+
A16: string;
|
|
5
|
+
DeviceName: string;
|
|
6
|
+
Password: string;
|
|
7
|
+
Proxy?: any;
|
|
8
|
+
UserName: string;
|
|
9
|
+
}
|
|
10
|
+
export interface LoginData62LoginReq {
|
|
11
|
+
Data62: string;
|
|
12
|
+
DeviceName: string;
|
|
13
|
+
Password: string;
|
|
14
|
+
Proxy?: any;
|
|
15
|
+
UserName: string;
|
|
16
|
+
}
|
|
17
|
+
export interface LoginData62SMSAgainReq {
|
|
18
|
+
Cookie: string;
|
|
19
|
+
Proxy?: any;
|
|
20
|
+
Url: string;
|
|
21
|
+
}
|
|
22
|
+
export interface LoginData62SMSVerifyReq {
|
|
23
|
+
Cookie: string;
|
|
24
|
+
Proxy?: any;
|
|
25
|
+
Sms: string;
|
|
26
|
+
Url: string;
|
|
27
|
+
}
|
|
28
|
+
export interface LoginExtDeviceLoginConfirmParam {
|
|
29
|
+
Url: string;
|
|
30
|
+
Wxid: string;
|
|
31
|
+
}
|
|
32
|
+
export interface LoginGetQRReq {
|
|
33
|
+
DeviceID: string;
|
|
34
|
+
DeviceName: string;
|
|
35
|
+
Proxy?: any;
|
|
36
|
+
}
|
|
37
|
+
export interface LoginVerificationcodeParam {
|
|
38
|
+
Code: string;
|
|
39
|
+
Data62: string;
|
|
40
|
+
Ticket: string;
|
|
41
|
+
Uuid: string;
|
|
42
|
+
}
|
|
1
43
|
declare class LoginApi {
|
|
2
44
|
/** A16登录(账号或密码) */
|
|
3
|
-
A16Data(body:
|
|
45
|
+
A16Data(body: LoginA16LoginParam): Promise<AxiosResponse<ApiResponse>>;
|
|
4
46
|
/** A16登录(账号或密码) - android == 新版云函数 */
|
|
5
|
-
A16Data1(body:
|
|
47
|
+
A16Data1(body: LoginA16LoginParam): Promise<AxiosResponse<ApiResponse>>;
|
|
6
48
|
/** 开启自动心跳, 自动二次登录 */
|
|
7
|
-
AutoHeartBeat(wxid: string):
|
|
49
|
+
AutoHeartBeat(wxid: string): Promise<AxiosResponse<ApiResponse>>;
|
|
8
50
|
/** 自动心跳日志 */
|
|
9
|
-
AutoHeartBeatLog(wxid: string):
|
|
51
|
+
AutoHeartBeatLog(wxid: string): Promise<AxiosResponse<ApiResponse>>;
|
|
10
52
|
/** 关闭自动心跳、自动二次登录 */
|
|
11
|
-
CloseAutoHeartBeat(wxid: string):
|
|
53
|
+
CloseAutoHeartBeat(wxid: string): Promise<AxiosResponse<ApiResponse>>;
|
|
12
54
|
/** 62登录(账号或密码) */
|
|
13
|
-
Data62Login(body:
|
|
55
|
+
Data62Login(body: LoginData62LoginReq): Promise<AxiosResponse<ApiResponse>>;
|
|
14
56
|
/** 62登录(账号或密码), 并申请使用二维码验证 */
|
|
15
|
-
Data62QRCodeApply(body:
|
|
57
|
+
Data62QRCodeApply(body: LoginData62LoginReq): Promise<AxiosResponse<ApiResponse>>;
|
|
16
58
|
/** 62登录(账号或密码), 二维码验证校验 */
|
|
17
|
-
Data62QRCodeVerify(body:
|
|
59
|
+
Data62QRCodeVerify(body: LoginData62SMSVerifyReq): Promise<AxiosResponse<ApiResponse>>;
|
|
18
60
|
/** 62登录(账号或密码), 重发验证码 */
|
|
19
|
-
Data62SMSAgain(body:
|
|
61
|
+
Data62SMSAgain(body: LoginData62SMSAgainReq): Promise<AxiosResponse<ApiResponse>>;
|
|
20
62
|
/** 62登录(账号或密码), 并申请使用SMS验证 */
|
|
21
|
-
Data62SMSApply(body:
|
|
63
|
+
Data62SMSApply(body: LoginData62LoginReq): Promise<AxiosResponse<ApiResponse>>;
|
|
22
64
|
/** 62登录(账号或密码), 短信验证 */
|
|
23
|
-
Data62SMSVerify(body:
|
|
65
|
+
Data62SMSVerify(body: LoginData62SMSVerifyReq): Promise<AxiosResponse<ApiResponse>>;
|
|
24
66
|
/** 唤醒登陆(只限扫码登录) */
|
|
25
|
-
Awaken(body:
|
|
67
|
+
Awaken(body: LoginExtDeviceLoginConfirmParam): Promise<AxiosResponse<ApiResponse>>;
|
|
26
68
|
/** 检测二维码 */
|
|
27
|
-
CheckQR(uuid: string):
|
|
69
|
+
CheckQR(uuid: string): Promise<AxiosResponse<ApiResponse>>;
|
|
28
70
|
/** 新设备扫码登录 */
|
|
29
|
-
ExtDeviceLoginConfirmGet(body:
|
|
71
|
+
ExtDeviceLoginConfirmGet(body: LoginExtDeviceLoginConfirmParam): Promise<AxiosResponse<ApiResponse>>;
|
|
30
72
|
/** 新设备扫码确认登录 */
|
|
31
|
-
ExtDeviceLoginConfirmOk(body:
|
|
73
|
+
ExtDeviceLoginConfirmOk(body: LoginExtDeviceLoginConfirmParam): Promise<AxiosResponse<ApiResponse>>;
|
|
32
74
|
/** 获取62数据 */
|
|
33
|
-
Get62Data(wxid: string):
|
|
75
|
+
Get62Data(wxid: string): Promise<AxiosResponse<ApiResponse>>;
|
|
34
76
|
/** 获取A16数据 */
|
|
35
|
-
GetA16Data(wxid: string):
|
|
77
|
+
GetA16Data(wxid: string): Promise<AxiosResponse<ApiResponse>>;
|
|
36
78
|
/** 获取登陆缓存信息 */
|
|
37
|
-
GetCacheInfo(wxid: string):
|
|
79
|
+
GetCacheInfo(wxid: string): Promise<AxiosResponse<ApiResponse>>;
|
|
38
80
|
/** 获取二维码(iPad) */
|
|
39
|
-
GetQRPad(body:
|
|
81
|
+
GetQRPad(body: LoginGetQRReq): Promise<AxiosResponse<ApiResponse>>;
|
|
40
82
|
/** 获取二维码(iPad-绕过验证码) */
|
|
41
|
-
GetQRPadx(body:
|
|
83
|
+
GetQRPadx(body: LoginGetQRReq): Promise<AxiosResponse<ApiResponse>>;
|
|
42
84
|
/** 获取二维码(Mac) */
|
|
43
|
-
GetQRMac(body:
|
|
85
|
+
GetQRMac(body: LoginGetQRReq): Promise<AxiosResponse<ApiResponse>>;
|
|
44
86
|
/** 获取二维码(Car) */
|
|
45
|
-
GetQRCar(body:
|
|
87
|
+
GetQRCar(body: LoginGetQRReq): Promise<AxiosResponse<ApiResponse>>;
|
|
46
88
|
/** 获取二维码(Windows) */
|
|
47
|
-
GetQRWin(body:
|
|
89
|
+
GetQRWin(body: LoginGetQRReq): Promise<AxiosResponse<ApiResponse>>;
|
|
48
90
|
/** 获取二维码(WinUnified-统一PC版) */
|
|
49
|
-
GetQRWinUnified(body:
|
|
91
|
+
GetQRWinUnified(body: LoginGetQRReq): Promise<AxiosResponse<ApiResponse>>;
|
|
50
92
|
/** 获取二维码(WindowsUwp-绕过验证码) */
|
|
51
|
-
GetQRWinUwp(body:
|
|
93
|
+
GetQRWinUwp(body: LoginGetQRReq): Promise<AxiosResponse<ApiResponse>>;
|
|
52
94
|
/** 获取二维码(iPad-绕过验证码) */
|
|
53
|
-
GetQRx(body:
|
|
95
|
+
GetQRx(body: LoginGetQRReq): Promise<AxiosResponse<ApiResponse>>;
|
|
54
96
|
/** 心跳包 */
|
|
55
|
-
HeartBeat(wxid: string):
|
|
97
|
+
HeartBeat(wxid: string): Promise<AxiosResponse<ApiResponse>>;
|
|
56
98
|
/** 心跳包(长连接) */
|
|
57
|
-
HeartBeatLong(wxid: string):
|
|
99
|
+
HeartBeatLong(wxid: string): Promise<AxiosResponse<ApiResponse>>;
|
|
58
100
|
/** 退出登录 */
|
|
59
|
-
LogOut(wxid: string):
|
|
101
|
+
LogOut(wxid: string): Promise<AxiosResponse<ApiResponse>>;
|
|
60
102
|
/** 唤醒登录(只限扫码登录) */
|
|
61
|
-
LoginAwaken(wxid: string):
|
|
103
|
+
LoginAwaken(wxid: string): Promise<AxiosResponse<ApiResponse>>;
|
|
62
104
|
/** 检测二维码 */
|
|
63
|
-
LoginCheckQR(uuid: string):
|
|
105
|
+
LoginCheckQR(uuid: string): Promise<AxiosResponse<ApiResponse>>;
|
|
64
106
|
/** 获取二维码(iPad) */
|
|
65
|
-
LoginGetQR(body:
|
|
107
|
+
LoginGetQR(body: LoginGetQRReq): Promise<AxiosResponse<ApiResponse>>;
|
|
66
108
|
/** 获取二维码(Car) */
|
|
67
|
-
LoginGetQRCar(body:
|
|
109
|
+
LoginGetQRCar(body: LoginGetQRReq): Promise<AxiosResponse<ApiResponse>>;
|
|
68
110
|
/** 获取二维码(Mac) */
|
|
69
|
-
LoginGetQRMac(body:
|
|
111
|
+
LoginGetQRMac(body: LoginGetQRReq): Promise<AxiosResponse<ApiResponse>>;
|
|
70
112
|
/** 获取二维码(安卓Pad) */
|
|
71
|
-
LoginGetQRPad(body:
|
|
113
|
+
LoginGetQRPad(body: LoginGetQRReq): Promise<AxiosResponse<ApiResponse>>;
|
|
72
114
|
/** 获取二维码(安卓Pad-绕过验证码) */
|
|
73
|
-
LoginGetQRPadx(body:
|
|
115
|
+
LoginGetQRPadx(body: LoginGetQRReq): Promise<AxiosResponse<ApiResponse>>;
|
|
74
116
|
/** 获取二维码(Windows) */
|
|
75
|
-
LoginGetQRWin(body:
|
|
117
|
+
LoginGetQRWin(body: LoginGetQRReq): Promise<AxiosResponse<ApiResponse>>;
|
|
76
118
|
/** 获取二维码(WinUnified-统一PC版) */
|
|
77
|
-
LoginGetQRWinUnified(body:
|
|
119
|
+
LoginGetQRWinUnified(body: LoginGetQRReq): Promise<AxiosResponse<ApiResponse>>;
|
|
78
120
|
/** 获取二维码(WindowsUwp-绕过验证码) */
|
|
79
|
-
LoginGetQRWinUwp(body:
|
|
121
|
+
LoginGetQRWinUwp(body: LoginGetQRReq): Promise<AxiosResponse<ApiResponse>>;
|
|
80
122
|
/** 获取二维码(iPad-绕过验证码) */
|
|
81
|
-
LoginGetQRx(body:
|
|
123
|
+
LoginGetQRx(body: LoginGetQRReq): Promise<AxiosResponse<ApiResponse>>;
|
|
82
124
|
/** 二次登录 */
|
|
83
|
-
LoginTwiceAutoAuth(wxid: string):
|
|
125
|
+
LoginTwiceAutoAuth(wxid: string): Promise<AxiosResponse<ApiResponse>>;
|
|
84
126
|
/** 初始化 */
|
|
85
|
-
Newinit(wxid: string, MaxSynckey?: string, CurrentSynckey?: string):
|
|
127
|
+
Newinit(wxid: string, MaxSynckey?: string, CurrentSynckey?: string): Promise<AxiosResponse<ApiResponse>>;
|
|
86
128
|
/** 提交登录验证码 */
|
|
87
|
-
YPayVerificationcode(body:
|
|
129
|
+
YPayVerificationcode(body: LoginVerificationcodeParam): Promise<AxiosResponse<ApiResponse>>;
|
|
88
130
|
}
|
|
89
131
|
export declare const loginApi: LoginApi;
|
|
90
132
|
export {};
|