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.
@@ -0,0 +1,14 @@
1
+ export interface ApiResponse {
2
+ /** 状态码 */
3
+ Code: number;
4
+ /** 是否成功 */
5
+ Success: boolean;
6
+ /** 响应消息 */
7
+ Message: string;
8
+ /** 响应数据 */
9
+ Data: any;
10
+ /** 62数据(可选) */
11
+ Data62?: string;
12
+ /** 设备ID(可选) */
13
+ DeviceId?: string;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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: Axios.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.5",
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",