wx2tg-puppet 2.0.5 → 2.0.6
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 +5 -1
- 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 +20 -18
- 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
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const MessageType: {
|
|
2
|
+
Unknown: string;
|
|
3
|
+
FileStart: string;
|
|
4
|
+
File: string;
|
|
5
|
+
Voice: string;
|
|
6
|
+
Contact: string;
|
|
7
|
+
Emoji: string;
|
|
8
|
+
Image: string;
|
|
9
|
+
Text: string;
|
|
10
|
+
Video: string;
|
|
11
|
+
Url: string;
|
|
12
|
+
RoomInvitation: string;
|
|
13
|
+
MiniApp: string;
|
|
14
|
+
AppMsg: string;
|
|
15
|
+
Link: string;
|
|
16
|
+
AddFriend: string;
|
|
17
|
+
Quote: string;
|
|
18
|
+
Transfer: string;
|
|
19
|
+
RedPacket: string;
|
|
20
|
+
VideoAccount: string;
|
|
21
|
+
Revoke: string;
|
|
22
|
+
Pat: string;
|
|
23
|
+
Location: string;
|
|
24
|
+
FunctionMsg: string;
|
|
25
|
+
NewMonmentTimeline: string;
|
|
26
|
+
ChatHistroy: string;
|
|
27
|
+
Voip: string;
|
|
28
|
+
RealTimeLocation: string;
|
|
29
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageType = void 0;
|
|
4
|
+
exports.MessageType = {
|
|
5
|
+
Unknown: 'unknown', // 未知类型
|
|
6
|
+
FileStart: 'file_start', // 文件开始
|
|
7
|
+
File: 'file', // 文件发送结束
|
|
8
|
+
Voice: 'voice', // 语音
|
|
9
|
+
Contact: 'contact', // 名片
|
|
10
|
+
Emoji: 'emoji', // 表情
|
|
11
|
+
Image: 'image', // 图片
|
|
12
|
+
Text: 'text', // 文本
|
|
13
|
+
Video: 'video', // 视频
|
|
14
|
+
Url: 'link', // 链接
|
|
15
|
+
RoomInvitation: 'room_invitation', // 群邀请
|
|
16
|
+
MiniApp: 'mini_app', // 小程序消息
|
|
17
|
+
AppMsg: 'app_msg', // app消息
|
|
18
|
+
Link: 'link', // 公众号链接
|
|
19
|
+
AddFriend: 'add_friend', // 添加好友通知
|
|
20
|
+
Quote: 'quote', // 引用消息
|
|
21
|
+
Transfer: 'transfer', //转账
|
|
22
|
+
RedPacket: 'red_packet', //红包
|
|
23
|
+
VideoAccount: 'video_account', // 视频号消息
|
|
24
|
+
Revoke: 'revoke', // 撤回消息
|
|
25
|
+
Pat: 'pat', // 拍一拍
|
|
26
|
+
Location: 'location', // 位置消息
|
|
27
|
+
FunctionMsg: 'function_msg', // 微信团队消息
|
|
28
|
+
NewMonmentTimeline: 'new_monment_timeline', // 朋友圈更新
|
|
29
|
+
ChatHistroy: 'chat_histroy', // 聊天记录
|
|
30
|
+
Voip: 'voip', // voip消息
|
|
31
|
+
RealTimeLocation: 'real_time_location', // 实时位置共享
|
|
32
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const axiosInstance:
|
|
1
|
+
export declare const axiosInstance: import("axios").AxiosInstance;
|
|
2
2
|
export declare function setBaseUrl(baseUrl: string): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wx2tg-puppet",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
"license": "ISC",
|
|
24
24
|
"description": "微信机器人核心库,可作为依赖被其他项目引入。",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/axios": "^0.9.36",
|
|
27
26
|
"@types/json-bigint": "^1.0.4",
|
|
28
27
|
"@types/qrcode-terminal": "^0.12.2",
|
|
29
28
|
"ts-node": "^10.9.2",
|