ms-types 0.10.10 → 0.10.11

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 (36) hide show
  1. package/package.json +1 -1
  2. package/types/cryptoUtils.d.ts +50 -36
  3. package/types/dotocr.d.ts +9 -2
  4. package/types/file.d.ts +1 -1
  5. package/types/hid.d.ts +46 -4
  6. package/types/image.d.ts +447 -447
  7. package/types/lua/action.lua +6 -6
  8. package/types/lua/cryptoUtils.lua +7 -7
  9. package/types/lua/cv.lua +142 -142
  10. package/types/lua/dotocr.lua +4 -4
  11. package/types/lua/file.lua +1 -1
  12. package/types/lua/global.lua +5 -3
  13. package/types/lua/hid.lua +22 -22
  14. package/types/lua/http.lua +26 -11
  15. package/types/lua/image.lua +9 -5
  16. package/types/lua/node.lua +1 -1
  17. package/types/lua/pip.lua +6 -6
  18. package/types/lua/yolo.lua +1 -1
  19. package/types/lua/yolocls.lua +1 -1
  20. package/types/node.d.ts +1 -0
  21. package/types/opencv.d.ts +571 -38
  22. package/types/paddleocr.d.ts +1 -0
  23. package/types/pip.d.ts +11 -0
  24. package/types/system.d.ts +1 -0
  25. package/types/tts.d.ts +1 -1
  26. package/types/ui.d.ts +2 -0
  27. package/types/web.d.ts +16 -0
  28. package/types/zh/HID/346/250/241/345/235/227.d.ts +46 -4
  29. package/types/zh/PaddleOCR/346/250/241/345/235/227.d.ts +1 -0
  30. package/types/zh//345/212/250/344/275/234/346/250/241/345/235/227.d.ts +1 -1
  31. package/types/zh//346/202/254/346/265/256/347/252/227/346/250/241/345/235/227.d.ts +10 -0
  32. package/types/zh//346/226/207/344/273/266/346/250/241/345/235/227.d.ts +1 -1
  33. package/types/zh//347/202/271/351/230/265OCR/346/250/241/345/235/227.d.ts +9 -2
  34. package/types/zh//347/263/273/347/273/237/346/250/241/345/235/227.d.ts +1 -0
  35. package/types/zh//350/212/202/347/202/271/346/250/241/345/235/227.d.ts +1 -0
  36. package/types/zh//350/247/206/345/233/276/346/250/241/345/235/227.d.ts +2 -0
@@ -154,7 +154,7 @@ local _ActionBuilder = {}
154
154
  --- 添加手指
155
155
  ---@param id integer 指针编号
156
156
  ---@return Pointer 返回指针对象
157
- ---@example builder:addPointer(id)
157
+ ---@example builder:addPointer(1)
158
158
  function _ActionBuilder:addPointer(id)
159
159
  ---@type Pointer
160
160
  local ret
@@ -166,7 +166,7 @@ end
166
166
  ---@param y integer
167
167
  ---@param duration integer|nil 按下持续时间,默认20ms
168
168
  ---@return ActionBuilder self
169
- ---@example builder:singleTap(x, y, duration)
169
+ ---@example builder:singleTap(100, 100, 50)
170
170
  function _ActionBuilder:singleTap(x, y, duration)
171
171
  ---@type ActionBuilder
172
172
  local ret
@@ -177,7 +177,7 @@ end
177
177
  ---@param points TapPoint[] 坐标数组
178
178
  ---@param duration integer|nil 按下持续时间,默认20ms
179
179
  ---@return ActionBuilder self
180
- ---@example builder:multiTap(points, duration)
180
+ ---@example builder:multiTap({ { x = 100, y = 100 }, { x = 200, y = 200 } }, 50)
181
181
  function _ActionBuilder:multiTap(points, duration)
182
182
  ---@type ActionBuilder
183
183
  local ret
@@ -197,7 +197,7 @@ local _Pointer = {}
197
197
  ---@param y integer
198
198
  ---@param duration integer|nil 持续时间
199
199
  ---@return Pointer self
200
- ---@example pointer:moveTo(x, y, duration)
200
+ ---@example pointer:moveTo(100, 100, 200)
201
201
  function _Pointer:moveTo(x, y, duration)
202
202
  ---@type Pointer
203
203
  local ret
@@ -225,7 +225,7 @@ end
225
225
  --- 停留
226
226
  ---@param duration integer 停留时间,默认20ms
227
227
  ---@return Pointer self
228
- ---@example pointer:stay(duration)
228
+ ---@example pointer:stay(100)
229
229
  function _Pointer:stay(duration)
230
230
  ---@type Pointer
231
231
  local ret
@@ -237,7 +237,7 @@ end
237
237
  ---@param y integer
238
238
  ---@param duration integer|nil 按下持续时间,默认20ms
239
239
  ---@return Pointer self
240
- ---@example pointer:tap(x, y, duration)
240
+ ---@example pointer:tap(100, 100, 50)
241
241
  function _Pointer:tap(x, y, duration)
242
242
  ---@type Pointer
243
243
  local ret
@@ -8,7 +8,7 @@ local _CryptoUtils = {}
8
8
  ---@param aesKey string AES密钥 支持16位、24位、32位字符串
9
9
  ---@param noPadding boolean 是否禁用填充,默认为false, 默认使用PKCS7填充
10
10
  ---@return string 加密后的数据
11
- ---@example cryptoUtils.encryptWithAES_ECB(data, aesKey, noPadding)
11
+ ---@example cryptoUtils.encryptWithAES_ECB("hello", "1234567890123456", false)
12
12
  function _CryptoUtils.encryptWithAES_ECB(data, aesKey, noPadding) return "" end
13
13
 
14
14
  --- 使用AES ECB模式解密数据 默认使用PKCS7填充
@@ -16,39 +16,39 @@ function _CryptoUtils.encryptWithAES_ECB(data, aesKey, noPadding) return "" end
16
16
  ---@param aesKey string AES密钥 支持16位、24位、32位字符串
17
17
  ---@param noPadding boolean 是否禁用填充,默认为false, 默认使用PKCS7填充
18
18
  ---@return string 解密后的数据
19
- ---@example cryptoUtils.decryptWithAES_ECB(data, aesKey, noPadding)
19
+ ---@example cryptoUtils.decryptWithAES_ECB("BASE64_CIPHER", "1234567890123456", false)
20
20
  function _CryptoUtils.decryptWithAES_ECB(data, aesKey, noPadding) return "" end
21
21
 
22
22
  --- 使用RSA公钥加密数据 默认使用PKCS1填充
23
23
  ---@param data string 要加密的数据
24
24
  ---@param publicKeyBase64 string RSA公钥
25
25
  ---@return string 加密后的数据
26
- ---@example cryptoUtils.encryptWithRSA(data, publicKeyBase64)
26
+ ---@example cryptoUtils.encryptWithRSA("hello", "BASE64_PUBLIC_KEY")
27
27
  function _CryptoUtils.encryptWithRSA(data, publicKeyBase64) return "" end
28
28
 
29
29
  --- 使用RSA私钥解密数据 默认使用PKCS1填充
30
30
  ---@param encryptedData string 要解密的数据
31
31
  ---@param privateKeyBase64 string RSA私钥
32
32
  ---@return string 解密后的数据
33
- ---@example cryptoUtils.decryptWithRSA(encryptedData, privateKeyBase64)
33
+ ---@example cryptoUtils.decryptWithRSA("BASE64_CIPHER", "BASE64_PRIVATE_KEY")
34
34
  function _CryptoUtils.decryptWithRSA(encryptedData, privateKeyBase64) return "" end
35
35
 
36
36
  --- 计算MD5值
37
37
  ---@param data string 要计算MD5的值
38
38
  ---@return string MD5值
39
- ---@example cryptoUtils.md5(data)
39
+ ---@example cryptoUtils.md5("hello")
40
40
  function _CryptoUtils.md5(data) return "" end
41
41
 
42
42
  --- 计算SHA1值
43
43
  ---@param data string 要计算SHA1的值
44
44
  ---@return string SHA1值
45
- ---@example cryptoUtils.sha1(data)
45
+ ---@example cryptoUtils.sha1("hello")
46
46
  function _CryptoUtils.sha1(data) return "" end
47
47
 
48
48
  --- 计算SHA256值
49
49
  ---@param data string 要计算SHA256的值
50
50
  ---@return string SHA256值
51
- ---@example cryptoUtils.sha256(data)
51
+ ---@example cryptoUtils.sha256("hello")
52
52
  function _CryptoUtils.sha256(data) return "" end
53
53
 
54
54
  ---@type CryptoUtils