deeke-script-app 1.7.5 → 1.7.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.
Files changed (49) hide show
  1. package/@deekeScript/@type/Class/Global.d.ts +1 -1
  2. package/@deekeScript/@type/Class/Rect.d.ts +16 -16
  3. package/@deekeScript/@type/Class/UiSelector.d.ts +201 -201
  4. package/@deekeScript/@type/Class/WebSocket.d.ts +49 -49
  5. package/@deekeScript/@type/interface/Access.d.ts +141 -141
  6. package/@deekeScript/@type/interface/App.d.ts +101 -101
  7. package/@deekeScript/@type/interface/DeekeScriptJson.d.ts +13 -13
  8. package/@deekeScript/@type/interface/Device.d.ts +212 -88
  9. package/@deekeScript/@type/interface/Encrypt.d.ts +58 -58
  10. package/@deekeScript/@type/interface/Engines.d.ts +39 -39
  11. package/@deekeScript/@type/interface/Files.d.ts +283 -283
  12. package/@deekeScript/@type/interface/FloatDialogs.d.ts +47 -47
  13. package/@deekeScript/@type/interface/ForegroundServiceBridge.d.ts +31 -31
  14. package/@deekeScript/@type/interface/Hid.d.ts +342 -342
  15. package/@deekeScript/@type/interface/Http.d.ts +94 -94
  16. package/@deekeScript/@type/interface/Images.d.ts +71 -71
  17. package/@deekeScript/@type/interface/Java.d.ts +7 -7
  18. package/@deekeScript/@type/interface/KeyBoards.d.ts +54 -27
  19. package/@deekeScript/@type/interface/Log.d.ts +16 -16
  20. package/@deekeScript/@type/interface/MediaStore.d.ts +146 -146
  21. package/@deekeScript/@type/interface/NotificationBridge.d.ts +28 -28
  22. package/@deekeScript/@type/interface/SocketIOClient.d.ts +76 -76
  23. package/@deekeScript/@type/interface/Storage.d.ts +119 -119
  24. package/@deekeScript/@type/interface/System.d.ts +120 -120
  25. package/@deekeScript/@type/interface/UiObject.d.ts +202 -202
  26. package/README.md +67 -67
  27. package/deekeScript.json +670 -670
  28. package/deekeScript.schema.json +681 -681
  29. package/deekeScriptZipBuild +48 -48
  30. package/gulpfile +17 -17
  31. package/init +32 -32
  32. package/jsconfig.json +11 -11
  33. package/package.json +43 -43
  34. package/script/statistics/statistics.js +120 -120
  35. package/script/task/douyin_zan.js +37 -37
  36. package/script/task/dy.js +6 -6
  37. package/script/task/dyApp.js +6 -6
  38. package/script/task/tool.js +9 -9
  39. package/script/task.html +4 -4
  40. package/src/statistics/statistics.js +120 -120
  41. package/src/task/douyin_zan.js +89 -89
  42. package/src/task/dy.js +14 -14
  43. package/src/task/dyApp.js +7 -7
  44. package/src/task/tool.js +19 -19
  45. package/src/task.html +4 -4
  46. package/test.json +132 -132
  47. package/uglify-config.json +15 -15
  48. package/update-types.js +118 -118
  49. package/images/test/statistics.png +0 -0
@@ -1,88 +1,212 @@
1
- declare global {
2
- var Device: Device;
3
- }
4
-
5
- interface Device {
6
- /**
7
- * 息屏后,保持 CPU 唤醒,延时释放
8
- * @param second 保持 CPU 唤醒,延时释放,单位秒
9
- */
10
- public keepCpuAwake(second: number): void;
11
-
12
- /**
13
- * 关闭CPU唤醒状态
14
- */
15
- public releaseCpuWakeLock(): void;
16
-
17
- /**
18
- * 获取屏幕宽度
19
- */
20
- public width(): number;
21
-
22
- /**
23
- * 获取屏幕高度
24
- */
25
- public height(): number;
26
-
27
- /**
28
- * 获取设备版本,如 26
29
- */
30
- public sdkInt(): number;
31
-
32
- /**
33
- * 获取设备
34
- */
35
- public device(): string;
36
-
37
- /**
38
- * 获取设备版本,如 "8.1.0"
39
- */
40
- public androidVersion(): string;
41
-
42
- /**
43
- * 生成设备唯一标识符, 卸载App前,可以通过getUuid获取,卸载后丢失
44
- */
45
- public createUuid(): string;
46
-
47
- /**
48
- * 获取设备唯一标识符
49
- */
50
- public getUuid(): string;
51
-
52
- /**
53
- * 获取设备卡密
54
- */
55
- public getToken(): string;
56
-
57
- /**
58
- * 获取设备其他信息(此方法可以取代getToken和getUuid)
59
- */
60
- public getAttr(key: string): string;
61
-
62
- /**
63
- * 判断屏幕是否亮着
64
- */
65
- public isScreenOn(): boolean;
66
-
67
- /**
68
- * 获取设备品牌, 如 "HUAWEI" 或 "Xiaomi"
69
- */
70
- public brand(): string;
71
-
72
- /**
73
- * 获取设备操作系统名称, 如 "Android"
74
- */
75
- public os(): string;
76
-
77
- /**
78
- * 获取设备型号名称, 如 "Honor V30" 或类似的字符串
79
- */
80
- public model(): string;
81
-
82
- /**
83
- * 获取设备代号, 例如 "REL" 表示正式发布的版本
84
- */
85
- public codename(): string;
86
- }
87
-
88
- export { };
1
+ declare global {
2
+ var Device: Device;
3
+ }
4
+
5
+ interface Device {
6
+ /**
7
+ * 获取屏幕宽度
8
+ */
9
+ public width(): number;
10
+
11
+ /**
12
+ * 获取屏幕高度
13
+ */
14
+ public height(): number;
15
+
16
+ /**
17
+ * 获取设备版本,如 26
18
+ */
19
+ public sdkInt(): number;
20
+
21
+ /**
22
+ * 获取设备
23
+ */
24
+ public device(): string;
25
+
26
+ /**
27
+ * 获取设备版本,如 "8.1.0"
28
+ */
29
+ public androidVersion(): string;
30
+
31
+ /**
32
+ * 生成设备唯一标识符, 卸载App前,可以通过getUuid获取,卸载后丢失
33
+ */
34
+ public createUuid(): string;
35
+
36
+ /**
37
+ * 获取设备唯一标识符
38
+ */
39
+ public getUuid(): string;
40
+
41
+ /**
42
+ * 获取设备卡密
43
+ */
44
+ public getToken(): string;
45
+
46
+ /**
47
+ * 获取设备其他信息(此方法可以取代getToken和getUuid)
48
+ */
49
+ public getAttr(key: string): string;
50
+
51
+ /**
52
+ * 获取设备品牌, 如 "HUAWEI" 或 "Xiaomi"
53
+ */
54
+ public brand(): string;
55
+
56
+ /**
57
+ * 获取设备操作系统名称, 如 "Android"
58
+ */
59
+ public os(): string;
60
+
61
+ /**
62
+ * 获取设备型号名称, 如 "Honor V30" 或类似的字符串
63
+ */
64
+ public model(): string;
65
+
66
+ /**
67
+ * 获取设备代号, 例如 "REL" 表示正式发布的版本
68
+ */
69
+ public codename(): string;
70
+
71
+ /**
72
+ * 获取设备制造商信息,如 "HUAWEI"、"Xiaomi" 等
73
+ */
74
+ public manufacturer(): string;
75
+
76
+ /**
77
+ * 获取硬件名称,如 "kirin990" 等
78
+ */
79
+ public hardware(): string;
80
+
81
+ /**
82
+ * 获取主板型号信息
83
+ */
84
+ public board(): string;
85
+
86
+ /**
87
+ * 获取产品名称信息
88
+ */
89
+ public product(): string;
90
+
91
+ /**
92
+ * 获取 Bootloader 版本信息
93
+ */
94
+ public bootloader(): string;
95
+
96
+ /**
97
+ * 获取构建ID信息
98
+ */
99
+ public buildId(): string;
100
+
101
+ /**
102
+ * 获取显示版本信息
103
+ */
104
+ public display(): string;
105
+
106
+ /**
107
+ * 获取设备指纹信息
108
+ */
109
+ public fingerprint(): string;
110
+
111
+ /**
112
+ * 获取主机名信息
113
+ */
114
+ public host(): string;
115
+
116
+ /**
117
+ * 获取构建用户信息
118
+ */
119
+ public user(): string;
120
+
121
+ /**
122
+ * 获取CPU架构信息,如 "arm64-v8a"、"armeabi-v7a" 等
123
+ */
124
+ public getCpuAbi(): string;
125
+
126
+ /**
127
+ * 获取所有支持的CPU架构列表
128
+ */
129
+ public getCpuAbis(): string[];
130
+
131
+ /**
132
+ * 获取WiFi网络的IP地址(仅WiFi连接时有效)
133
+ * @returns WiFi IP地址,如果WiFi未连接返回空字符串
134
+ */
135
+ public getWifiIPAddress(): string;
136
+
137
+ /**
138
+ * 获取当前活动网络的IP地址(支持WiFi和移动网络,返回局域网IP)
139
+ * @returns 当前活动网络的IP地址,如果获取失败返回 "127.0.0.1"
140
+ */
141
+ public getIPAddress(): string;
142
+
143
+ /**
144
+ * 获取公网IPv4地址(需要通过HTTP请求外部服务)
145
+ * @returns 公网IPv4地址,如果获取失败返回空字符串
146
+ */
147
+ public getPublicIPAddress(): string;
148
+
149
+ /**
150
+ * 获取公网IPv6地址(需要通过HTTP请求外部服务)
151
+ * @returns 公网IPv6地址,如果获取失败返回空字符串
152
+ */
153
+ public getPublicIPAddressV6(): string;
154
+
155
+ /**
156
+ * 获取公网IP信息(包含IPv4和IPv6)
157
+ * @returns 包含 ipv4 和 ipv6 的对象
158
+ */
159
+ public getPublicIPInfo(): {
160
+ ipv4: string;
161
+ ipv6: string;
162
+ };
163
+
164
+ /**
165
+ * 获取完整的IP信息(包括当前IP、WiFi IP、公网IP等)
166
+ * @returns 包含所有IP信息的对象
167
+ */
168
+ public getIpInfo(): {
169
+ ip: string;
170
+ wifiIP: string;
171
+ publicIP: string;
172
+ publicIPV6: string;
173
+ publicIPInfo: {
174
+ ipv4: string;
175
+ ipv6: string;
176
+ };
177
+ };
178
+
179
+ /**
180
+ * 获取MAC地址(需要WiFi已连接)
181
+ * @returns MAC地址,如果WiFi未连接返回空字符串
182
+ */
183
+ public getMacAddress(): string;
184
+
185
+ /**
186
+ * 获取网络类型
187
+ * @returns 网络类型:"WiFi" | "Mobile" | "Ethernet" | "Other" | "None"
188
+ */
189
+ public getNetworkType(): "WiFi" | "Mobile" | "Ethernet" | "Other" | "None";
190
+
191
+ /**
192
+ * 检查网络是否已连接
193
+ * @returns 网络是否已连接
194
+ */
195
+ public isNetworkConnected(): boolean;
196
+
197
+ /**
198
+ * 获取完整的网络信息
199
+ * @returns 包含网络类型、连接状态、MAC地址、IP地址等的对象
200
+ */
201
+ public getNetworkInfo(): {
202
+ type: "WiFi" | "Mobile" | "Ethernet" | "Other" | "None";
203
+ connected: boolean;
204
+ macAddress: string;
205
+ ip: string;
206
+ wifiIP: string;
207
+ publicIP: string;
208
+ publicIPV6: string;
209
+ };
210
+ }
211
+
212
+ export { };
@@ -1,58 +1,58 @@
1
- declare global {
2
- var Encrypt: Encrypt;
3
- }
4
-
5
- interface Encrypt {
6
- /**
7
- * md5加密
8
- * @param input
9
- */
10
- public md5(input: string): string;
11
-
12
- /**
13
- * sha1加密
14
- * @param input
15
- */
16
- public sha1(input: string): string;
17
-
18
- /**
19
- * sha256加密
20
- * @param input
21
- */
22
- public sha256(input: string): string;
23
-
24
- /**
25
- * base64 encode
26
- * @param input
27
- */
28
- public base64Encode(input: string|byte[]): string;
29
-
30
- /**
31
- * base64 decode
32
- * @param input
33
- */
34
- public base64Decode(input: string): string;
35
-
36
- /**
37
- * 生成iv
38
- */
39
- public generateIv(): string;
40
-
41
- /**
42
- * aescbc加密
43
- * @param key
44
- * @param iv
45
- * @param input
46
- */
47
- public aesCbcEncode(key: string, iv: string, input: string): string;
48
-
49
- /**
50
- * aescbc解密
51
- * @param key
52
- * @param iv
53
- * @param input
54
- */
55
- public aesCbcDecode(key: string, iv: string, input: string): string;
56
- }
57
-
58
- export { };
1
+ declare global {
2
+ var Encrypt: Encrypt;
3
+ }
4
+
5
+ interface Encrypt {
6
+ /**
7
+ * md5加密
8
+ * @param input
9
+ */
10
+ public md5(input: string): string;
11
+
12
+ /**
13
+ * sha1加密
14
+ * @param input
15
+ */
16
+ public sha1(input: string): string;
17
+
18
+ /**
19
+ * sha256加密
20
+ * @param input
21
+ */
22
+ public sha256(input: string): string;
23
+
24
+ /**
25
+ * base64 encode
26
+ * @param input
27
+ */
28
+ public base64Encode(input: string|byte[]): string;
29
+
30
+ /**
31
+ * base64 decode
32
+ * @param input
33
+ */
34
+ public base64Decode(input: string): string;
35
+
36
+ /**
37
+ * 生成iv
38
+ */
39
+ public generateIv(): string;
40
+
41
+ /**
42
+ * aescbc加密
43
+ * @param key
44
+ * @param iv
45
+ * @param input
46
+ */
47
+ public aesCbcEncode(key: string, iv: string, input: string): string;
48
+
49
+ /**
50
+ * aescbc解密
51
+ * @param key
52
+ * @param iv
53
+ * @param input
54
+ */
55
+ public aesCbcDecode(key: string, iv: string, input: string): string;
56
+ }
57
+
58
+ export { };
@@ -1,39 +1,39 @@
1
- declare global {
2
- var Engines: Engines;
3
- }
4
-
5
- interface Engines {
6
- /**
7
- * 执行脚本
8
- * @param file 文件路径,相对根目录的路径
9
- */
10
- public executeScript(file: string): void;
11
-
12
- /**
13
- * 执行脚本
14
- * @param content 脚本内容
15
- */
16
- public executeScriptStr(name: string, content: string): void;
17
-
18
- /**
19
- * 关闭当前线程和子线程所有脚本(包含定时器、socket、Hid等;不会关闭hooks脚本)
20
- */
21
- public closeAll(): void;
22
-
23
- /**
24
- * 关闭当前线程之外的其他线程和子线程(包含定时器、socket、Hid等;不会关闭hooks脚本)
25
- */
26
- public closeOther(): void;
27
-
28
- /**
29
- * 关闭hooks脚本
30
- */
31
- public closeHook(): void;
32
-
33
- /**
34
- * 返回所有子脚本的数量
35
- */
36
- public childScriptCount(): number;
37
- }
38
-
39
- export { };
1
+ declare global {
2
+ var Engines: Engines;
3
+ }
4
+
5
+ interface Engines {
6
+ /**
7
+ * 执行脚本
8
+ * @param file 文件路径,相对根目录的路径
9
+ */
10
+ public executeScript(file: string): void;
11
+
12
+ /**
13
+ * 执行脚本
14
+ * @param content 脚本内容
15
+ */
16
+ public executeScriptStr(name: string, content: string): void;
17
+
18
+ /**
19
+ * 关闭当前线程和子线程所有脚本(包含定时器、socket、Hid等;不会关闭hooks脚本)
20
+ */
21
+ public closeAll(): void;
22
+
23
+ /**
24
+ * 关闭当前线程之外的其他线程和子线程(包含定时器、socket、Hid等;不会关闭hooks脚本)
25
+ */
26
+ public closeOther(): void;
27
+
28
+ /**
29
+ * 关闭hooks脚本
30
+ */
31
+ public closeHook(): void;
32
+
33
+ /**
34
+ * 返回所有子脚本的数量
35
+ */
36
+ public childScriptCount(): number;
37
+ }
38
+
39
+ export { };