ms-vite-plugin 1.1.20 → 1.1.21

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,2411 @@
1
+ ---
2
+ title: 默认模块
3
+ language_tabs:
4
+ - shell: Shell
5
+ - http: HTTP
6
+ - javascript: JavaScript
7
+ - ruby: Ruby
8
+ - python: Python
9
+ - php: PHP
10
+ - java: Java
11
+ - go: Go
12
+ toc_footers: []
13
+ includes: []
14
+ search: true
15
+ code_clipboard: true
16
+ highlight_theme: darkula
17
+ headingLevel: 2
18
+ generator: "@tarslib/widdershins v4.0.30"
19
+
20
+ ---
21
+
22
+ # 默认模块
23
+
24
+ Base URLs:
25
+
26
+ # Authentication
27
+
28
+ # Api
29
+
30
+ ## POST 同步脚本
31
+
32
+ POST /api/sync
33
+
34
+ > Body 请求参数
35
+
36
+ ```yaml
37
+ string
38
+
39
+ ```
40
+
41
+ ### 请求参数
42
+
43
+ |名称|位置|类型|必选|说明|
44
+ |---|---|---|---|---|
45
+ |projectName|query|string| 否 |项目名称|
46
+ |body|body|string(binary)| 否 |none|
47
+
48
+ > 返回示例
49
+
50
+ > 200 Response
51
+
52
+ ```json
53
+ {}
54
+ ```
55
+
56
+ ### 返回结果
57
+
58
+ |状态码|状态码含义|说明|数据模型|
59
+ |---|---|---|---|
60
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
61
+
62
+ ### 返回数据结构
63
+
64
+ ## GET 运行UI
65
+
66
+ GET /api/runUI
67
+
68
+ > 返回示例
69
+
70
+ > 200 Response
71
+
72
+ ```json
73
+ {
74
+ "success": true,
75
+ "message": "string"
76
+ }
77
+ ```
78
+
79
+ ### 返回结果
80
+
81
+ |状态码|状态码含义|说明|数据模型|
82
+ |---|---|---|---|
83
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
84
+
85
+ ### 返回数据结构
86
+
87
+ 状态码 **200**
88
+
89
+ |名称|类型|必选|约束|中文名|说明|
90
+ |---|---|---|---|---|---|
91
+ |» success|boolean|true|none|是否成功|none|
92
+ |» message|string|true|none|提示信息|none|
93
+
94
+ ## GET 运行脚本
95
+
96
+ GET /api/run
97
+
98
+ > 返回示例
99
+
100
+ > 200 Response
101
+
102
+ ```json
103
+ {
104
+ "success": true,
105
+ "message": "string"
106
+ }
107
+ ```
108
+
109
+ ### 返回结果
110
+
111
+ |状态码|状态码含义|说明|数据模型|
112
+ |---|---|---|---|
113
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
114
+
115
+ ### 返回数据结构
116
+
117
+ 状态码 **200**
118
+
119
+ |名称|类型|必选|约束|中文名|说明|
120
+ |---|---|---|---|---|---|
121
+ |» success|boolean|true|none||none|
122
+ |» message|string|true|none||none|
123
+
124
+ ## GET 停止脚本
125
+
126
+ GET /api/stop
127
+
128
+ > 返回示例
129
+
130
+ > 200 Response
131
+
132
+ ```json
133
+ {
134
+ "success": true,
135
+ "message": "string"
136
+ }
137
+ ```
138
+
139
+ ### 返回结果
140
+
141
+ |状态码|状态码含义|说明|数据模型|
142
+ |---|---|---|---|
143
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
144
+
145
+ ### 返回数据结构
146
+
147
+ 状态码 **200**
148
+
149
+ |名称|类型|必选|约束|中文名|说明|
150
+ |---|---|---|---|---|---|
151
+ |» success|boolean|true|none||none|
152
+ |» message|string|true|none||none|
153
+
154
+ ## GET 节点XML(仅Agent)
155
+
156
+ GET /api/source
157
+
158
+ ### 请求参数
159
+
160
+ |名称|位置|类型|必选|说明|
161
+ |---|---|---|---|---|
162
+ |max_depth|query|integer| 是 |页面深度|
163
+ |timeout|query|integer| 是 |超时时间(单位秒)|
164
+
165
+ > 返回示例
166
+
167
+ > 200 Response
168
+
169
+ ```xml
170
+ <?xml version="1.0" encoding="UTF-8" ?>
171
+ ```
172
+
173
+ ### 返回结果
174
+
175
+ |状态码|状态码含义|说明|数据模型|
176
+ |---|---|---|---|
177
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
178
+
179
+ ### 返回数据结构
180
+
181
+ ## GET 截图
182
+
183
+ GET /api/screenshot
184
+
185
+ > 返回示例
186
+
187
+ > 200 Response
188
+
189
+ ### 返回结果
190
+
191
+ |状态码|状态码含义|说明|数据模型|
192
+ |---|---|---|---|
193
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
194
+
195
+ ### 返回数据结构
196
+
197
+ ## GET 截图Base64
198
+
199
+ GET /api/screenshotBase64
200
+
201
+ > 返回示例
202
+
203
+ > 200 Response
204
+
205
+ ```json
206
+ {
207
+ "success": true,
208
+ "data": "string"
209
+ }
210
+ ```
211
+
212
+ ### 返回结果
213
+
214
+ |状态码|状态码含义|说明|数据模型|
215
+ |---|---|---|---|
216
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
217
+
218
+ ### 返回数据结构
219
+
220
+ 状态码 **200**
221
+
222
+ |名称|类型|必选|约束|中文名|说明|
223
+ |---|---|---|---|---|---|
224
+ |» success|boolean|true|none|是否成功|none|
225
+ |» data|string|true|none|base64 截图|none|
226
+
227
+ ## GET 获取已安装的应用列表
228
+
229
+ GET /api/apps
230
+
231
+ > 返回示例
232
+
233
+ > 200 Response
234
+
235
+ ```json
236
+ {
237
+ "data": [
238
+ {
239
+ "appName": "string",
240
+ "bundleIdentifier": "string",
241
+ "bundleVersion": "string"
242
+ }
243
+ ],
244
+ "success": true
245
+ }
246
+ ```
247
+
248
+ ### 返回结果
249
+
250
+ |状态码|状态码含义|说明|数据模型|
251
+ |---|---|---|---|
252
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
253
+
254
+ ### 返回数据结构
255
+
256
+ 状态码 **200**
257
+
258
+ |名称|类型|必选|约束|中文名|说明|
259
+ |---|---|---|---|---|---|
260
+ |» data|[object]|true|none|应用列表|none|
261
+ |»» appName|string|true|none|应用名称|none|
262
+ |»» bundleIdentifier|string|true|none|应用bundleId|none|
263
+ |»» bundleVersion|string|true|none|应用版本|none|
264
+ |» success|boolean|true|none||none|
265
+
266
+ ## GET 获取当前在前台的APP(仅Agent)
267
+
268
+ GET /api/activeAppInfo
269
+
270
+ > 返回示例
271
+
272
+ > 200 Response
273
+
274
+ ```json
275
+ {
276
+ "success": true,
277
+ "data": {
278
+ "name": "string",
279
+ "bundleId": "string",
280
+ "pid": 0
281
+ }
282
+ }
283
+ ```
284
+
285
+ ### 返回结果
286
+
287
+ |状态码|状态码含义|说明|数据模型|
288
+ |---|---|---|---|
289
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
290
+
291
+ ### 返回数据结构
292
+
293
+ 状态码 **200**
294
+
295
+ |名称|类型|必选|约束|中文名|说明|
296
+ |---|---|---|---|---|---|
297
+ |» success|boolean|true|none||none|
298
+ |» data|object|true|none||none|
299
+ |»» name|string|true|none||none|
300
+ |»» bundleId|string|true|none|应用包名|none|
301
+ |»» pid|integer|true|none||none|
302
+
303
+ ## POST 登录接口
304
+
305
+ POST /api/login
306
+
307
+ > Body 请求参数
308
+
309
+ ```json
310
+ {
311
+ "serverType": "domestic",
312
+ "username": "string",
313
+ "password": "string"
314
+ }
315
+ ```
316
+
317
+ ### 请求参数
318
+
319
+ |名称|位置|类型|必选|中文名|说明|
320
+ |---|---|---|---|---|---|
321
+ |body|body|object| 是 ||none|
322
+ |» serverType|body|string| 是 | 服务器类型|none|
323
+ |» username|body|string| 是 | 用户名|none|
324
+ |» password|body|string| 是 | 密码|none|
325
+
326
+ #### 枚举值
327
+
328
+ |属性|值|
329
+ |---|---|
330
+ |» serverType|domestic|
331
+ |» serverType|international|
332
+
333
+ > 返回示例
334
+
335
+ > 200 Response
336
+
337
+ ```json
338
+ {
339
+ "message": "string",
340
+ "success": true
341
+ }
342
+ ```
343
+
344
+ ### 返回结果
345
+
346
+ |状态码|状态码含义|说明|数据模型|
347
+ |---|---|---|---|
348
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
349
+
350
+ ### 返回数据结构
351
+
352
+ 状态码 **200**
353
+
354
+ |名称|类型|必选|约束|中文名|说明|
355
+ |---|---|---|---|---|---|
356
+ |» message|string|true|none|提示信息|none|
357
+ |» success|boolean|true|none|是否成功|none|
358
+
359
+ ## GET 登出接口
360
+
361
+ GET /api/logout
362
+
363
+ > 返回示例
364
+
365
+ > 200 Response
366
+
367
+ ```json
368
+ {
369
+ "success": true,
370
+ "message": "string"
371
+ }
372
+ ```
373
+
374
+ ### 返回结果
375
+
376
+ |状态码|状态码含义|说明|数据模型|
377
+ |---|---|---|---|
378
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
379
+
380
+ ### 返回数据结构
381
+
382
+ 状态码 **200**
383
+
384
+ |名称|类型|必选|约束|中文名|说明|
385
+ |---|---|---|---|---|---|
386
+ |» success|boolean|true|none|是否成功|none|
387
+ |» message|string|true|none|信息|none|
388
+
389
+ ## GET 获取软件状态
390
+
391
+ GET /api/status
392
+
393
+ > 返回示例
394
+
395
+ > 200 Response
396
+
397
+ ```json
398
+ {
399
+ "success": true,
400
+ "data": {
401
+ "deviceIp": "string",
402
+ "screenInfo": {
403
+ "logicWidth": 0,
404
+ "logicHeight": 0,
405
+ "height": 0,
406
+ "width": 0,
407
+ "scale": 0
408
+ },
409
+ "deviceName": "string",
410
+ "batteryInfo": {
411
+ "level": 0,
412
+ "isCharging": true
413
+ },
414
+ "appName": "string",
415
+ "appBuildNumber": 0,
416
+ "appBundleId": "string",
417
+ "deviceModel": "string",
418
+ "agentConnected": true,
419
+ "isRun": true,
420
+ "isDebugMode": true,
421
+ "isAuth": true,
422
+ "isRecording": true,
423
+ "udid": "string",
424
+ "serverDeviceId": "string",
425
+ "isPipScriptControlEnabled": true,
426
+ "orientation": "PORTRAIT",
427
+ "osVersion": "string",
428
+ "ecid": "string",
429
+ "isVolumeControlEnabled": true,
430
+ "agentVersion": "string",
431
+ "appVersion": "string",
432
+ "serverType": "international",
433
+ "isHidConnected": true,
434
+ "isShowUI": true,
435
+ "isLogin": true,
436
+ "isPipWindowEnabled": true,
437
+ "deviceId": "string"
438
+ }
439
+ }
440
+ ```
441
+
442
+ ### 返回结果
443
+
444
+ |状态码|状态码含义|说明|数据模型|
445
+ |---|---|---|---|
446
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
447
+
448
+ ### 返回数据结构
449
+
450
+ 状态码 **200**
451
+
452
+ |名称|类型|必选|约束|中文名|说明|
453
+ |---|---|---|---|---|---|
454
+ |» success|boolean|true|none|是否成功|none|
455
+ |» data|[软件状态](#schema软件状态)|true|none||none|
456
+ |»» deviceIp|string|true|none|设备IP|none|
457
+ |»» screenInfo|object|true|none|屏幕信息|none|
458
+ |»»» logicWidth|integer|true|none|逻辑宽带|none|
459
+ |»»» logicHeight|integer|true|none|逻辑高度|none|
460
+ |»»» height|integer|true|none|物理高度|none|
461
+ |»»» width|integer|true|none|物理宽度|none|
462
+ |»»» scale|number|true|none|缩放比|none|
463
+ |»» deviceName|string|true|none|设备名称|none|
464
+ |»» batteryInfo|object|true|none|电池信息|none|
465
+ |»»» level|integer|true|none|电量 1-100|none|
466
+ |»»» isCharging|boolean|true|none|是否充电中|none|
467
+ |»» appName|string|true|none|app名称|none|
468
+ |»» appBuildNumber|integer|true|none|app构建号|none|
469
+ |»» appBundleId|string|true|none|app 包名|none|
470
+ |»» deviceModel|string|true|none|设备型号|none|
471
+ |»» agentConnected|boolean|true|none|agent是否连接|none|
472
+ |»» isRun|boolean|true|none|脚本是否启动|none|
473
+ |»» isDebugMode|boolean|true|none|是否调试模式运行|none|
474
+ |»» isAuth|boolean|true|none|是否授权|none|
475
+ |»» isRecording|boolean|true|none|是否录屏中|none|
476
+ |»» udid|string|true|none|设备唯一 UDID|none|
477
+ |»» serverDeviceId|string|true|none|服务器设备ID|none|
478
+ |»» isPipScriptControlEnabled|boolean|true|none|悬浮窗控制是否打开|none|
479
+ |»» orientation|string|true|none|屏幕方向|none|
480
+ |»» osVersion|string|true|none|系统版本|none|
481
+ |»» ecid|string|true|none|设备唯一 ECID|none|
482
+ |»» isVolumeControlEnabled|boolean|true|none|是否开启了音量键启停|none|
483
+ |»» agentVersion|string|true|none|agent版本号|none|
484
+ |»» appVersion|string|true|none|app版本号|none|
485
+ |»» serverType|string|true|none|授权服务器类型|none|
486
+ |»» isHidConnected|boolean|true|none|hid设备是否连接|none|
487
+ |»» isShowUI|boolean|true|none|实现显示了 UI|none|
488
+ |»» isLogin|boolean|true|none|是否登录|none|
489
+ |»» isPipWindowEnabled|boolean|true|none|悬浮窗是否打开|none|
490
+ |»» deviceId|string|true|none|设备 ID,应用唯一,卸载重装变化|none|
491
+
492
+ #### 枚举值
493
+
494
+ |属性|值|
495
+ |---|---|
496
+ |orientation|PORTRAIT|
497
+ |orientation|LANDSCAPE|
498
+ |serverType|international|
499
+ |serverType|domestic|
500
+
501
+ ## GET App切到前台
502
+
503
+ GET /api/takeMeToFront
504
+
505
+ > 返回示例
506
+
507
+ > 200 Response
508
+
509
+ ```json
510
+ {
511
+ "success": true
512
+ }
513
+ ```
514
+
515
+ ### 返回结果
516
+
517
+ |状态码|状态码含义|说明|数据模型|
518
+ |---|---|---|---|
519
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
520
+
521
+ ### 返回数据结构
522
+
523
+ 状态码 **200**
524
+
525
+ |名称|类型|必选|约束|中文名|说明|
526
+ |---|---|---|---|---|---|
527
+ |» success|boolean|true|none|是否成功|none|
528
+
529
+ ## GET 获取所有配置
530
+
531
+ GET /api/getAllConfig
532
+
533
+ > 返回示例
534
+
535
+ > 200 Response
536
+
537
+ ```json
538
+ {
539
+ "success": true,
540
+ "data": {}
541
+ }
542
+ ```
543
+
544
+ ### 返回结果
545
+
546
+ |状态码|状态码含义|说明|数据模型|
547
+ |---|---|---|---|
548
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
549
+
550
+ ### 返回数据结构
551
+
552
+ 状态码 **200**
553
+
554
+ |名称|类型|必选|约束|中文名|说明|
555
+ |---|---|---|---|---|---|
556
+ |» success|boolean|true|none|是否成功|none|
557
+ |» data|object|true|none||none|
558
+
559
+ ## POST 设置所有配置
560
+
561
+ POST /api/setAllConfig
562
+
563
+ > Body 请求参数
564
+
565
+ ```json
566
+ {}
567
+ ```
568
+
569
+ ### 请求参数
570
+
571
+ |名称|位置|类型|必选|中文名|说明|
572
+ |---|---|---|---|---|---|
573
+ |body|body|object| 否 ||none|
574
+
575
+ > 返回示例
576
+
577
+ > 200 Response
578
+
579
+ ```json
580
+ {
581
+ "success": true
582
+ }
583
+ ```
584
+
585
+ ### 返回结果
586
+
587
+ |状态码|状态码含义|说明|数据模型|
588
+ |---|---|---|---|
589
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
590
+
591
+ ### 返回数据结构
592
+
593
+ 状态码 **200**
594
+
595
+ |名称|类型|必选|约束|中文名|说明|
596
+ |---|---|---|---|---|---|
597
+ |» success|boolean|true|none|是否成功|none|
598
+
599
+ ## POST 设置配置项
600
+
601
+ POST /api/setConfig
602
+
603
+ > Body 请求参数
604
+
605
+ ```json
606
+ {
607
+ "key": "string",
608
+ "value": "string"
609
+ }
610
+ ```
611
+
612
+ ### 请求参数
613
+
614
+ |名称|位置|类型|必选|中文名|说明|
615
+ |---|---|---|---|---|---|
616
+ |body|body|object| 否 ||none|
617
+ |» key|body|string| 是 | 配置 Key|none|
618
+ |» value|body|string| 是 | 配置 Value|none|
619
+
620
+ > 返回示例
621
+
622
+ > 200 Response
623
+
624
+ ```json
625
+ {
626
+ "success": true
627
+ }
628
+ ```
629
+
630
+ ### 返回结果
631
+
632
+ |状态码|状态码含义|说明|数据模型|
633
+ |---|---|---|---|
634
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
635
+
636
+ ### 返回数据结构
637
+
638
+ 状态码 **200**
639
+
640
+ |名称|类型|必选|约束|中文名|说明|
641
+ |---|---|---|---|---|---|
642
+ |» success|boolean|true|none|是否成功|none|
643
+
644
+ ## GET 实时屏幕画面流MJPEG
645
+
646
+ GET /mirror/image
647
+
648
+ ### 请求参数
649
+
650
+ |名称|位置|类型|必选|中文名|说明|
651
+ |---|---|---|---|---|---|
652
+ |fps|query|integer| 是 ||帧率|
653
+ |quality|query|number| 是 ||质量 0.1-1.0|
654
+
655
+ > 返回示例
656
+
657
+ > 200 Response
658
+
659
+ ### 返回结果
660
+
661
+ |状态码|状态码含义|说明|数据模型|
662
+ |---|---|---|---|
663
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
664
+
665
+ ### 返回数据结构
666
+
667
+ ## POST 执行脚本(仅支持JS脚本)
668
+
669
+ POST /api/runScript
670
+
671
+ 脚本如果最后一行如果有返回值,会转成 json 返回,不需要写 return
672
+
673
+
674
+ appleOcr.recognize('screen');
675
+ 或者
676
+ let a = 1;
677
+ a;
678
+
679
+ > Body 请求参数
680
+
681
+ ```json
682
+ {
683
+ "script": "appleOcr.recognize('screen');"
684
+ }
685
+ ```
686
+
687
+ ```json
688
+ {
689
+ "script": "let a = 1; \n a;"
690
+ }
691
+ ```
692
+
693
+ ### 请求参数
694
+
695
+ |名称|位置|类型|必选|中文名|说明|
696
+ |---|---|---|---|---|---|
697
+ |body|body|object| 否 ||none|
698
+ |» script|body|string| 是 | 脚本文本|none|
699
+
700
+ > 返回示例
701
+
702
+ > 200 Response
703
+
704
+ ```json
705
+ {}
706
+ ```
707
+
708
+ ### 返回结果
709
+
710
+ |状态码|状态码含义|说明|数据模型|
711
+ |---|---|---|---|
712
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
713
+
714
+ ### 返回数据结构
715
+
716
+ ## GET 加载指定软件包
717
+
718
+ GET /api/load
719
+
720
+ ### 请求参数
721
+
722
+ |名称|位置|类型|必选|中文名|说明|
723
+ |---|---|---|---|---|---|
724
+ |appNo|query|string| 否 ||软件编号|
725
+
726
+ > 返回示例
727
+
728
+ > 200 Response
729
+
730
+ ```json
731
+ {
732
+ "success": true,
733
+ "message": "string"
734
+ }
735
+ ```
736
+
737
+ ### 返回结果
738
+
739
+ |状态码|状态码含义|说明|数据模型|
740
+ |---|---|---|---|
741
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
742
+
743
+ ### 返回数据结构
744
+
745
+ 状态码 **200**
746
+
747
+ |名称|类型|必选|约束|中文名|说明|
748
+ |---|---|---|---|---|---|
749
+ |» success|boolean|true|none|是否成功|none|
750
+ |» message|string|true|none|信息|none|
751
+
752
+ # Api/日志接口
753
+
754
+ ## GET 日志列表
755
+
756
+ GET /logger/files
757
+
758
+ > 返回示例
759
+
760
+ > 200 Response
761
+
762
+ ```json
763
+ [
764
+ {
765
+ "filePath": "string",
766
+ "fileName": "string",
767
+ "modificationDate": "string",
768
+ "fileSize": "string"
769
+ }
770
+ ]
771
+ ```
772
+
773
+ ### 返回结果
774
+
775
+ |状态码|状态码含义|说明|数据模型|
776
+ |---|---|---|---|
777
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
778
+
779
+ ### 返回数据结构
780
+
781
+ 状态码 **200**
782
+
783
+ |名称|类型|必选|约束|中文名|说明|
784
+ |---|---|---|---|---|---|
785
+ |» filePath|string|true|none|文件路径|none|
786
+ |» fileName|string|true|none|文件名|none|
787
+ |» modificationDate|string|true|none|最后更新时间|none|
788
+ |» fileSize|string|true|none|文件大小|none|
789
+
790
+ ## GET 下载日志
791
+
792
+ GET /logger/download
793
+
794
+ ### 请求参数
795
+
796
+ |名称|位置|类型|必选|中文名|说明|
797
+ |---|---|---|---|---|---|
798
+ |fileName|query|string| 否 ||none|
799
+
800
+ > 返回示例
801
+
802
+ > 200 Response
803
+
804
+ ### 返回结果
805
+
806
+ |状态码|状态码含义|说明|数据模型|
807
+ |---|---|---|---|
808
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
809
+
810
+ ### 返回数据结构
811
+
812
+ # Api/输入法接口
813
+
814
+ ## GET API键盘是否弹出
815
+
816
+ GET /api/ime/isOk
817
+
818
+ > 返回示例
819
+
820
+ > 200 Response
821
+
822
+ ```json
823
+ {
824
+ "success": true
825
+ }
826
+ ```
827
+
828
+ ### 返回结果
829
+
830
+ |状态码|状态码含义|说明|数据模型|
831
+ |---|---|---|---|
832
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
833
+
834
+ ### 返回数据结构
835
+
836
+ 状态码 **200**
837
+
838
+ |名称|类型|必选|约束|中文名|说明|
839
+ |---|---|---|---|---|---|
840
+ |» success|boolean|true|none|是否成功|none|
841
+
842
+ ## GET (仅API键盘弹出可用)输入文字
843
+
844
+ GET /api/ime/input
845
+
846
+ ### 请求参数
847
+
848
+ |名称|位置|类型|必选|中文名|说明|
849
+ |---|---|---|---|---|---|
850
+ |text|query|string| 是 ||none|
851
+
852
+ > 返回示例
853
+
854
+ > 200 Response
855
+
856
+ ```json
857
+ {
858
+ "success": true
859
+ }
860
+ ```
861
+
862
+ ### 返回结果
863
+
864
+ |状态码|状态码含义|说明|数据模型|
865
+ |---|---|---|---|
866
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
867
+
868
+ ### 返回数据结构
869
+
870
+ 状态码 **200**
871
+
872
+ |名称|类型|必选|约束|中文名|说明|
873
+ |---|---|---|---|---|---|
874
+ |» success|boolean|true|none|是否成功|none|
875
+
876
+ ## GET (仅API键盘弹出可用)获取已输入文本
877
+
878
+ GET /api/ime/getText
879
+
880
+ > 返回示例
881
+
882
+ > 200 Response
883
+
884
+ ```json
885
+ {
886
+ "data": "string",
887
+ "success": true
888
+ }
889
+ ```
890
+
891
+ ### 返回结果
892
+
893
+ |状态码|状态码含义|说明|数据模型|
894
+ |---|---|---|---|
895
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
896
+
897
+ ### 返回数据结构
898
+
899
+ 状态码 **200**
900
+
901
+ |名称|类型|必选|约束|中文名|说明|
902
+ |---|---|---|---|---|---|
903
+ |» data|string|true|none|已输入文本|none|
904
+ |» success|boolean|true|none|是否成功|none|
905
+
906
+ ## GET (仅API键盘弹出可用)清空文本
907
+
908
+ GET /api/ime/clearText
909
+
910
+ > 返回示例
911
+
912
+ > 200 Response
913
+
914
+ ```json
915
+ {
916
+ "success": true
917
+ }
918
+ ```
919
+
920
+ ### 返回结果
921
+
922
+ |状态码|状态码含义|说明|数据模型|
923
+ |---|---|---|---|
924
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
925
+
926
+ ### 返回数据结构
927
+
928
+ 状态码 **200**
929
+
930
+ |名称|类型|必选|约束|中文名|说明|
931
+ |---|---|---|---|---|---|
932
+ |» success|boolean|true|none|是否成功|none|
933
+
934
+ ## GET (仅API键盘弹出可用)粘贴文本
935
+
936
+ GET /api/ime/paste
937
+
938
+ ### 请求参数
939
+
940
+ |名称|位置|类型|必选|中文名|说明|
941
+ |---|---|---|---|---|---|
942
+ |text|query|string| 否 ||为空时使用剪切板数据,不为空输入指定数据|
943
+
944
+ > 返回示例
945
+
946
+ > 200 Response
947
+
948
+ ```json
949
+ {
950
+ "success": true,
951
+ "data": "string"
952
+ }
953
+ ```
954
+
955
+ ### 返回结果
956
+
957
+ |状态码|状态码含义|说明|数据模型|
958
+ |---|---|---|---|
959
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
960
+
961
+ ### 返回数据结构
962
+
963
+ 状态码 **200**
964
+
965
+ |名称|类型|必选|约束|中文名|说明|
966
+ |---|---|---|---|---|---|
967
+ |» success|boolean|true|none|是否成功|none|
968
+ |» data|string|true|none|成功返回输入的数据|none|
969
+
970
+ ## GET (仅API键盘弹出可用)按删除键
971
+
972
+ GET /api/ime/pressDel
973
+
974
+ > 返回示例
975
+
976
+ > 200 Response
977
+
978
+ ```json
979
+ {
980
+ "success": true,
981
+ "data": "string"
982
+ }
983
+ ```
984
+
985
+ ### 返回结果
986
+
987
+ |状态码|状态码含义|说明|数据模型|
988
+ |---|---|---|---|
989
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
990
+
991
+ ### 返回数据结构
992
+
993
+ 状态码 **200**
994
+
995
+ |名称|类型|必选|约束|中文名|说明|
996
+ |---|---|---|---|---|---|
997
+ |» success|boolean|true|none|是否成功|none|
998
+ |» data|string|true|none|剩余文本数据|none|
999
+
1000
+ ## GET (仅API键盘弹出可用)按回车键
1001
+
1002
+ GET /api/ime/pressEnter
1003
+
1004
+ > 返回示例
1005
+
1006
+ > 200 Response
1007
+
1008
+ ```json
1009
+ {
1010
+ "success": true
1011
+ }
1012
+ ```
1013
+
1014
+ ### 返回结果
1015
+
1016
+ |状态码|状态码含义|说明|数据模型|
1017
+ |---|---|---|---|
1018
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1019
+
1020
+ ### 返回数据结构
1021
+
1022
+ 状态码 **200**
1023
+
1024
+ |名称|类型|必选|约束|中文名|说明|
1025
+ |---|---|---|---|---|---|
1026
+ |» success|boolean|true|none|是否成功|none|
1027
+
1028
+ ## GET (仅API键盘弹出可用)隐藏键盘
1029
+
1030
+ GET /api/ime/dismiss
1031
+
1032
+ > 返回示例
1033
+
1034
+ > 200 Response
1035
+
1036
+ ```json
1037
+ {
1038
+ "success": true
1039
+ }
1040
+ ```
1041
+
1042
+ ### 返回结果
1043
+
1044
+ |状态码|状态码含义|说明|数据模型|
1045
+ |---|---|---|---|
1046
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1047
+
1048
+ ### 返回数据结构
1049
+
1050
+ 状态码 **200**
1051
+
1052
+ |名称|类型|必选|约束|中文名|说明|
1053
+ |---|---|---|---|---|---|
1054
+ |» success|boolean|true|none|是否成功|none|
1055
+
1056
+ ## GET (仅API键盘弹出可用)获取剪切板
1057
+
1058
+ GET /api/ime/getClipboard
1059
+
1060
+ > 返回示例
1061
+
1062
+ > 200 Response
1063
+
1064
+ ```json
1065
+ {
1066
+ "data": "string",
1067
+ "success": true
1068
+ }
1069
+ ```
1070
+
1071
+ ### 返回结果
1072
+
1073
+ |状态码|状态码含义|说明|数据模型|
1074
+ |---|---|---|---|
1075
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1076
+
1077
+ ### 返回数据结构
1078
+
1079
+ 状态码 **200**
1080
+
1081
+ |名称|类型|必选|约束|中文名|说明|
1082
+ |---|---|---|---|---|---|
1083
+ |» data|string|true|none|剪切板内容|none|
1084
+ |» success|boolean|true|none|是否成功|none|
1085
+
1086
+ ## GET (仅API键盘弹出可用)设置剪切板
1087
+
1088
+ GET /api/ime/setClipboard
1089
+
1090
+ ### 请求参数
1091
+
1092
+ |名称|位置|类型|必选|中文名|说明|
1093
+ |---|---|---|---|---|---|
1094
+ |text|query|string| 否 ||none|
1095
+
1096
+ > 返回示例
1097
+
1098
+ > 200 Response
1099
+
1100
+ ```json
1101
+ {
1102
+ "success": true
1103
+ }
1104
+ ```
1105
+
1106
+ ### 返回结果
1107
+
1108
+ |状态码|状态码含义|说明|数据模型|
1109
+ |---|---|---|---|
1110
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1111
+
1112
+ ### 返回数据结构
1113
+
1114
+ 状态码 **200**
1115
+
1116
+ |名称|类型|必选|约束|中文名|说明|
1117
+ |---|---|---|---|---|---|
1118
+ |» success|boolean|true|none|是否成功|none|
1119
+
1120
+ # Api/Agent控制接口(仅Agent)
1121
+
1122
+ ## GET 返回主页
1123
+
1124
+ GET /api/control/home
1125
+
1126
+ > 返回示例
1127
+
1128
+ > 200 Response
1129
+
1130
+ ```json
1131
+ {
1132
+ "success": true
1133
+ }
1134
+ ```
1135
+
1136
+ ### 返回结果
1137
+
1138
+ |状态码|状态码含义|说明|数据模型|
1139
+ |---|---|---|---|
1140
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1141
+
1142
+ ### 返回数据结构
1143
+
1144
+ 状态码 **200**
1145
+
1146
+ |名称|类型|必选|约束|中文名|说明|
1147
+ |---|---|---|---|---|---|
1148
+ |» success|boolean|true|none|是否成功|none|
1149
+
1150
+ ## GET App切换器
1151
+
1152
+ GET /api/control/recent
1153
+
1154
+ > 返回示例
1155
+
1156
+ > 200 Response
1157
+
1158
+ ```json
1159
+ {
1160
+ "success": true
1161
+ }
1162
+ ```
1163
+
1164
+ ### 返回结果
1165
+
1166
+ |状态码|状态码含义|说明|数据模型|
1167
+ |---|---|---|---|
1168
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1169
+
1170
+ ### 返回数据结构
1171
+
1172
+ 状态码 **200**
1173
+
1174
+ |名称|类型|必选|约束|中文名|说明|
1175
+ |---|---|---|---|---|---|
1176
+ |» success|boolean|true|none|是否成功|none|
1177
+
1178
+ ## GET 点击操作
1179
+
1180
+ GET /api/control/click
1181
+
1182
+ ### 请求参数
1183
+
1184
+ |名称|位置|类型|必选|中文名|说明|
1185
+ |---|---|---|---|---|---|
1186
+ |x|query|string| 是 ||点击坐标X|
1187
+ |y|query|string| 是 ||点击坐标Y|
1188
+ |duration|query|string| 是 ||持续时间|
1189
+
1190
+ > 返回示例
1191
+
1192
+ > 200 Response
1193
+
1194
+ ```json
1195
+ {
1196
+ "success": true
1197
+ }
1198
+ ```
1199
+
1200
+ ### 返回结果
1201
+
1202
+ |状态码|状态码含义|说明|数据模型|
1203
+ |---|---|---|---|
1204
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1205
+
1206
+ ### 返回数据结构
1207
+
1208
+ 状态码 **200**
1209
+
1210
+ |名称|类型|必选|约束|中文名|说明|
1211
+ |---|---|---|---|---|---|
1212
+ |» success|boolean|true|none|是否成功|none|
1213
+
1214
+ ## GET 双击操作
1215
+
1216
+ GET /api/control/doubleClick
1217
+
1218
+ ### 请求参数
1219
+
1220
+ |名称|位置|类型|必选|中文名|说明|
1221
+ |---|---|---|---|---|---|
1222
+ |x|query|integer| 是 ||点击坐标X|
1223
+ |y|query|integer| 是 ||点击坐标Y|
1224
+ |duration|query|integer| 是 ||持续时间|
1225
+ |interval|query|integer| 否 ||间隔时间|
1226
+
1227
+ > 返回示例
1228
+
1229
+ > 200 Response
1230
+
1231
+ ```json
1232
+ {
1233
+ "success": true
1234
+ }
1235
+ ```
1236
+
1237
+ ### 返回结果
1238
+
1239
+ |状态码|状态码含义|说明|数据模型|
1240
+ |---|---|---|---|
1241
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1242
+
1243
+ ### 返回数据结构
1244
+
1245
+ 状态码 **200**
1246
+
1247
+ |名称|类型|必选|约束|中文名|说明|
1248
+ |---|---|---|---|---|---|
1249
+ |» success|boolean|true|none|是否成功|none|
1250
+
1251
+ ## GET 滑动操作
1252
+
1253
+ GET /api/control/swipe
1254
+
1255
+ ### 请求参数
1256
+
1257
+ |名称|位置|类型|必选|中文名|说明|
1258
+ |---|---|---|---|---|---|
1259
+ |startX|query|integer| 是 ||起点X|
1260
+ |startY|query|integer| 是 ||起点Y|
1261
+ |endX|query|integer| 是 ||终点X|
1262
+ |endY|query|integer| 是 ||终点Y|
1263
+ |duration|query|integer| 是 ||持续时间(毫秒)|
1264
+ |jitter|query|boolean| 否 ||是否开启抖动|
1265
+ |steps|query|integer| 否 ||抖动步数|
1266
+
1267
+ > 返回示例
1268
+
1269
+ > 200 Response
1270
+
1271
+ ```json
1272
+ {
1273
+ "success": true
1274
+ }
1275
+ ```
1276
+
1277
+ ### 返回结果
1278
+
1279
+ |状态码|状态码含义|说明|数据模型|
1280
+ |---|---|---|---|
1281
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1282
+
1283
+ ### 返回数据结构
1284
+
1285
+ 状态码 **200**
1286
+
1287
+ |名称|类型|必选|约束|中文名|说明|
1288
+ |---|---|---|---|---|---|
1289
+ |» success|boolean|true|none|是否成功|none|
1290
+
1291
+ ## GET 按按钮
1292
+
1293
+ GET /api/control/pressButton
1294
+
1295
+ ### 请求参数
1296
+
1297
+ |名称|位置|类型|必选|中文名|说明|
1298
+ |---|---|---|---|---|---|
1299
+ |button|query|string| 是 ||按钮|
1300
+
1301
+ #### 枚举值
1302
+
1303
+ |属性|值|
1304
+ |---|---|
1305
+ |button|home|
1306
+ |button|volumeup|
1307
+ |button|volumedown|
1308
+
1309
+ > 返回示例
1310
+
1311
+ > 200 Response
1312
+
1313
+ ```json
1314
+ {
1315
+ "success": true
1316
+ }
1317
+ ```
1318
+
1319
+ ### 返回结果
1320
+
1321
+ |状态码|状态码含义|说明|数据模型|
1322
+ |---|---|---|---|
1323
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1324
+
1325
+ ### 返回数据结构
1326
+
1327
+ 状态码 **200**
1328
+
1329
+ |名称|类型|必选|约束|中文名|说明|
1330
+ |---|---|---|---|---|---|
1331
+ |» success|boolean|true|none|是否成功|none|
1332
+
1333
+ ## GET (仅键盘弹出可用)输入文字
1334
+
1335
+ GET /api/control/input
1336
+
1337
+ ### 请求参数
1338
+
1339
+ |名称|位置|类型|必选|中文名|说明|
1340
+ |---|---|---|---|---|---|
1341
+ |text|query|string| 是 ||none|
1342
+
1343
+ > 返回示例
1344
+
1345
+ > 200 Response
1346
+
1347
+ ```json
1348
+ {
1349
+ "success": true
1350
+ }
1351
+ ```
1352
+
1353
+ ### 返回结果
1354
+
1355
+ |状态码|状态码含义|说明|数据模型|
1356
+ |---|---|---|---|
1357
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1358
+
1359
+ ### 返回数据结构
1360
+
1361
+ 状态码 **200**
1362
+
1363
+ |名称|类型|必选|约束|中文名|说明|
1364
+ |---|---|---|---|---|---|
1365
+ |» success|boolean|true|none|是否成功|none|
1366
+
1367
+ ## GET (仅键盘弹出可用)退格
1368
+
1369
+ GET /api/control/backspace
1370
+
1371
+ ### 请求参数
1372
+
1373
+ |名称|位置|类型|必选|中文名|说明|
1374
+ |---|---|---|---|---|---|
1375
+ |count|query|integer| 是 ||删除数量|
1376
+
1377
+ > 返回示例
1378
+
1379
+ > 200 Response
1380
+
1381
+ ```json
1382
+ {
1383
+ "success": true
1384
+ }
1385
+ ```
1386
+
1387
+ ### 返回结果
1388
+
1389
+ |状态码|状态码含义|说明|数据模型|
1390
+ |---|---|---|---|
1391
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1392
+
1393
+ ### 返回数据结构
1394
+
1395
+ 状态码 **200**
1396
+
1397
+ |名称|类型|必选|约束|中文名|说明|
1398
+ |---|---|---|---|---|---|
1399
+ |» success|boolean|true|none|是否成功|none|
1400
+
1401
+ ## GET (仅键盘弹出可用)回车
1402
+
1403
+ GET /api/control/enter
1404
+
1405
+ > 返回示例
1406
+
1407
+ > 200 Response
1408
+
1409
+ ```json
1410
+ {
1411
+ "success": true
1412
+ }
1413
+ ```
1414
+
1415
+ ### 返回结果
1416
+
1417
+ |状态码|状态码含义|说明|数据模型|
1418
+ |---|---|---|---|
1419
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1420
+
1421
+ ### 返回数据结构
1422
+
1423
+ 状态码 **200**
1424
+
1425
+ |名称|类型|必选|约束|中文名|说明|
1426
+ |---|---|---|---|---|---|
1427
+ |» success|boolean|true|none|是否成功|none|
1428
+
1429
+ ## GET 打开App
1430
+
1431
+ GET /api/control/startApp
1432
+
1433
+ ### 请求参数
1434
+
1435
+ |名称|位置|类型|必选|中文名|说明|
1436
+ |---|---|---|---|---|---|
1437
+ |bundleId|query|string| 是 ||none|
1438
+
1439
+ > 返回示例
1440
+
1441
+ > 200 Response
1442
+
1443
+ ```json
1444
+ {
1445
+ "success": true
1446
+ }
1447
+ ```
1448
+
1449
+ ### 返回结果
1450
+
1451
+ |状态码|状态码含义|说明|数据模型|
1452
+ |---|---|---|---|
1453
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1454
+
1455
+ ### 返回数据结构
1456
+
1457
+ 状态码 **200**
1458
+
1459
+ |名称|类型|必选|约束|中文名|说明|
1460
+ |---|---|---|---|---|---|
1461
+ |» success|boolean|true|none|是否成功|none|
1462
+
1463
+ ## GET 激活App(把App拉到前台)
1464
+
1465
+ GET /api/control/activateApp
1466
+
1467
+ ### 请求参数
1468
+
1469
+ |名称|位置|类型|必选|中文名|说明|
1470
+ |---|---|---|---|---|---|
1471
+ |bundleId|query|string| 是 ||none|
1472
+
1473
+ > 返回示例
1474
+
1475
+ > 200 Response
1476
+
1477
+ ```json
1478
+ {
1479
+ "success": true
1480
+ }
1481
+ ```
1482
+
1483
+ ### 返回结果
1484
+
1485
+ |状态码|状态码含义|说明|数据模型|
1486
+ |---|---|---|---|
1487
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1488
+
1489
+ ### 返回数据结构
1490
+
1491
+ 状态码 **200**
1492
+
1493
+ |名称|类型|必选|约束|中文名|说明|
1494
+ |---|---|---|---|---|---|
1495
+ |» success|boolean|true|none|是否成功|none|
1496
+
1497
+ ## GET 停止App
1498
+
1499
+ GET /api/control/stopApp
1500
+
1501
+ ### 请求参数
1502
+
1503
+ |名称|位置|类型|必选|中文名|说明|
1504
+ |---|---|---|---|---|---|
1505
+ |bundleId|query|string| 是 ||none|
1506
+
1507
+ > 返回示例
1508
+
1509
+ > 200 Response
1510
+
1511
+ ```json
1512
+ {
1513
+ "success": true
1514
+ }
1515
+ ```
1516
+
1517
+ ### 返回结果
1518
+
1519
+ |状态码|状态码含义|说明|数据模型|
1520
+ |---|---|---|---|
1521
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1522
+
1523
+ ### 返回数据结构
1524
+
1525
+ 状态码 **200**
1526
+
1527
+ |名称|类型|必选|约束|中文名|说明|
1528
+ |---|---|---|---|---|---|
1529
+ |» success|boolean|true|none|是否成功|none|
1530
+
1531
+ ## GET 打开URL
1532
+
1533
+ GET /api/control/openURL
1534
+
1535
+ ### 请求参数
1536
+
1537
+ |名称|位置|类型|必选|中文名|说明|
1538
+ |---|---|---|---|---|---|
1539
+ |url|query|string| 是 ||none|
1540
+
1541
+ > 返回示例
1542
+
1543
+ > 200 Response
1544
+
1545
+ ```json
1546
+ {
1547
+ "success": true
1548
+ }
1549
+ ```
1550
+
1551
+ ### 返回结果
1552
+
1553
+ |状态码|状态码含义|说明|数据模型|
1554
+ |---|---|---|---|
1555
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1556
+
1557
+ ### 返回数据结构
1558
+
1559
+ 状态码 **200**
1560
+
1561
+ |名称|类型|必选|约束|中文名|说明|
1562
+ |---|---|---|---|---|---|
1563
+ |» success|boolean|true|none|是否成功|none|
1564
+
1565
+ ## POST W3CActions
1566
+
1567
+ POST /api/control/w3cActions
1568
+
1569
+ > Body 请求参数
1570
+
1571
+ ```json
1572
+ {
1573
+ "actions": [
1574
+ "string"
1575
+ ]
1576
+ }
1577
+ ```
1578
+
1579
+ ### 请求参数
1580
+
1581
+ |名称|位置|类型|必选|中文名|说明|
1582
+ |---|---|---|---|---|---|
1583
+ |body|body|object| 是 ||none|
1584
+ |» actions|body|[string]| 是 | W3C 动作|none|
1585
+
1586
+ > 返回示例
1587
+
1588
+ > 200 Response
1589
+
1590
+ ```json
1591
+ {}
1592
+ ```
1593
+
1594
+ ### 返回结果
1595
+
1596
+ |状态码|状态码含义|说明|数据模型|
1597
+ |---|---|---|---|
1598
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1599
+
1600
+ ### 返回数据结构
1601
+
1602
+ # Api/HID控制接口(仅HID)
1603
+
1604
+ ## GET (仅键盘弹出可用)输入文字
1605
+
1606
+ GET /api/hid/input
1607
+
1608
+ 输入文字,相当于复制粘贴,有 API 键盘的情况下使用 API 键盘输入
1609
+
1610
+ ### 请求参数
1611
+
1612
+ |名称|位置|类型|必选|中文名|说明|
1613
+ |---|---|---|---|---|---|
1614
+ |text|query|string| 是 ||none|
1615
+
1616
+ > 返回示例
1617
+
1618
+ > 200 Response
1619
+
1620
+ ```json
1621
+ {
1622
+ "success": true
1623
+ }
1624
+ ```
1625
+
1626
+ ### 返回结果
1627
+
1628
+ |状态码|状态码含义|说明|数据模型|
1629
+ |---|---|---|---|
1630
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1631
+
1632
+ ### 返回数据结构
1633
+
1634
+ 状态码 **200**
1635
+
1636
+ |名称|类型|必选|约束|中文名|说明|
1637
+ |---|---|---|---|---|---|
1638
+ |» success|boolean|true|none|是否成功|none|
1639
+
1640
+ ## GET (仅键盘弹出可用)输入字符
1641
+
1642
+ GET /api/hid/inputSimple
1643
+
1644
+ 输入字符,相当于按键盘,只能输入键盘的按键,不能输入中文
1645
+
1646
+ ### 请求参数
1647
+
1648
+ |名称|位置|类型|必选|中文名|说明|
1649
+ |---|---|---|---|---|---|
1650
+ |text|query|string| 是 ||none|
1651
+
1652
+ > 返回示例
1653
+
1654
+ > 200 Response
1655
+
1656
+ ```json
1657
+ {
1658
+ "success": true
1659
+ }
1660
+ ```
1661
+
1662
+ ### 返回结果
1663
+
1664
+ |状态码|状态码含义|说明|数据模型|
1665
+ |---|---|---|---|
1666
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1667
+
1668
+ ### 返回数据结构
1669
+
1670
+ 状态码 **200**
1671
+
1672
+ |名称|类型|必选|约束|中文名|说明|
1673
+ |---|---|---|---|---|---|
1674
+ |» success|boolean|true|none|是否成功|none|
1675
+
1676
+ ## GET (仅键盘弹出可用)退格
1677
+
1678
+ GET /api/hid/backspace
1679
+
1680
+ ### 请求参数
1681
+
1682
+ |名称|位置|类型|必选|中文名|说明|
1683
+ |---|---|---|---|---|---|
1684
+ |count|query|integer| 是 ||删除数量|
1685
+
1686
+ > 返回示例
1687
+
1688
+ > 200 Response
1689
+
1690
+ ```json
1691
+ {
1692
+ "success": true
1693
+ }
1694
+ ```
1695
+
1696
+ ### 返回结果
1697
+
1698
+ |状态码|状态码含义|说明|数据模型|
1699
+ |---|---|---|---|
1700
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1701
+
1702
+ ### 返回数据结构
1703
+
1704
+ 状态码 **200**
1705
+
1706
+ |名称|类型|必选|约束|中文名|说明|
1707
+ |---|---|---|---|---|---|
1708
+ |» success|boolean|true|none|是否成功|none|
1709
+
1710
+ ## GET (仅键盘弹出可用)回车
1711
+
1712
+ GET /api/hid/enter
1713
+
1714
+ > 返回示例
1715
+
1716
+ > 200 Response
1717
+
1718
+ ```json
1719
+ {
1720
+ "success": true
1721
+ }
1722
+ ```
1723
+
1724
+ ### 返回结果
1725
+
1726
+ |状态码|状态码含义|说明|数据模型|
1727
+ |---|---|---|---|
1728
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1729
+
1730
+ ### 返回数据结构
1731
+
1732
+ 状态码 **200**
1733
+
1734
+ |名称|类型|必选|约束|中文名|说明|
1735
+ |---|---|---|---|---|---|
1736
+ |» success|boolean|true|none|是否成功|none|
1737
+
1738
+ ## GET 按按钮
1739
+
1740
+ GET /api/hid/pressButton
1741
+
1742
+ ### 请求参数
1743
+
1744
+ |名称|位置|类型|必选|中文名|说明|
1745
+ |---|---|---|---|---|---|
1746
+ |button|query|string| 是 ||按钮|
1747
+
1748
+ #### 枚举值
1749
+
1750
+ |属性|值|
1751
+ |---|---|
1752
+ |button|home|
1753
+ |button|volumeup|
1754
+ |button|volumedown|
1755
+
1756
+ > 返回示例
1757
+
1758
+ > 200 Response
1759
+
1760
+ ```json
1761
+ {
1762
+ "success": true
1763
+ }
1764
+ ```
1765
+
1766
+ ### 返回结果
1767
+
1768
+ |状态码|状态码含义|说明|数据模型|
1769
+ |---|---|---|---|
1770
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1771
+
1772
+ ### 返回数据结构
1773
+
1774
+ 状态码 **200**
1775
+
1776
+ |名称|类型|必选|约束|中文名|说明|
1777
+ |---|---|---|---|---|---|
1778
+ |» success|boolean|true|none|是否成功|none|
1779
+
1780
+ ## GET 快捷指令截图
1781
+
1782
+ GET /api/hid/shortcutScreenshot
1783
+
1784
+ > 返回示例
1785
+
1786
+ > 200 Response
1787
+
1788
+ ```json
1789
+ {
1790
+ "success": true
1791
+ }
1792
+ ```
1793
+
1794
+ ### 返回结果
1795
+
1796
+ |状态码|状态码含义|说明|数据模型|
1797
+ |---|---|---|---|
1798
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1799
+
1800
+ ### 返回数据结构
1801
+
1802
+ 状态码 **200**
1803
+
1804
+ |名称|类型|必选|约束|中文名|说明|
1805
+ |---|---|---|---|---|---|
1806
+ |» success|boolean|true|none|是否成功|none|
1807
+
1808
+ ## GET 快捷指令截图Base64
1809
+
1810
+ GET /api/hid/shortcutScreenshotBase64
1811
+
1812
+ > 返回示例
1813
+
1814
+ > 200 Response
1815
+
1816
+ ```json
1817
+ {
1818
+ "success": true
1819
+ }
1820
+ ```
1821
+
1822
+ ### 返回结果
1823
+
1824
+ |状态码|状态码含义|说明|数据模型|
1825
+ |---|---|---|---|
1826
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1827
+
1828
+ ### 返回数据结构
1829
+
1830
+ 状态码 **200**
1831
+
1832
+ |名称|类型|必选|约束|中文名|说明|
1833
+ |---|---|---|---|---|---|
1834
+ |» success|boolean|true|none|是否成功|none|
1835
+
1836
+ ## GET 打开录屏界面
1837
+
1838
+ GET /api/hid/openRecordScreen
1839
+
1840
+ > 返回示例
1841
+
1842
+ > 200 Response
1843
+
1844
+ ```json
1845
+ {
1846
+ "success": true
1847
+ }
1848
+ ```
1849
+
1850
+ ### 返回结果
1851
+
1852
+ |状态码|状态码含义|说明|数据模型|
1853
+ |---|---|---|---|
1854
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1855
+
1856
+ ### 返回数据结构
1857
+
1858
+ 状态码 **200**
1859
+
1860
+ |名称|类型|必选|约束|中文名|说明|
1861
+ |---|---|---|---|---|---|
1862
+ |» success|boolean|true|none|是否成功|none|
1863
+
1864
+ ## GET 获取录屏状态
1865
+
1866
+ GET /api/hid/isRecording
1867
+
1868
+ > 返回示例
1869
+
1870
+ > 200 Response
1871
+
1872
+ ```json
1873
+ {
1874
+ "success": true,
1875
+ "data": true
1876
+ }
1877
+ ```
1878
+
1879
+ ### 返回结果
1880
+
1881
+ |状态码|状态码含义|说明|数据模型|
1882
+ |---|---|---|---|
1883
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1884
+
1885
+ ### 返回数据结构
1886
+
1887
+ 状态码 **200**
1888
+
1889
+ |名称|类型|必选|约束|中文名|说明|
1890
+ |---|---|---|---|---|---|
1891
+ |» success|boolean|true|none|是否成功|none|
1892
+ |» data|boolean|true|none|录屏是否运行中|none|
1893
+
1894
+ ## GET 返回主页
1895
+
1896
+ GET /api/hid/home
1897
+
1898
+ > 返回示例
1899
+
1900
+ > 200 Response
1901
+
1902
+ ```json
1903
+ {
1904
+ "success": true
1905
+ }
1906
+ ```
1907
+
1908
+ ### 返回结果
1909
+
1910
+ |状态码|状态码含义|说明|数据模型|
1911
+ |---|---|---|---|
1912
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1913
+
1914
+ ### 返回数据结构
1915
+
1916
+ 状态码 **200**
1917
+
1918
+ |名称|类型|必选|约束|中文名|说明|
1919
+ |---|---|---|---|---|---|
1920
+ |» success|boolean|true|none|是否成功|none|
1921
+
1922
+ ## GET App切换器
1923
+
1924
+ GET /api/hid/recent
1925
+
1926
+ > 返回示例
1927
+
1928
+ > 200 Response
1929
+
1930
+ ```json
1931
+ {
1932
+ "success": true
1933
+ }
1934
+ ```
1935
+
1936
+ ### 返回结果
1937
+
1938
+ |状态码|状态码含义|说明|数据模型|
1939
+ |---|---|---|---|
1940
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1941
+
1942
+ ### 返回数据结构
1943
+
1944
+ 状态码 **200**
1945
+
1946
+ |名称|类型|必选|约束|中文名|说明|
1947
+ |---|---|---|---|---|---|
1948
+ |» success|boolean|true|none|是否成功|none|
1949
+
1950
+ ## GET 点击操作
1951
+
1952
+ GET /api/hid/click
1953
+
1954
+ ### 请求参数
1955
+
1956
+ |名称|位置|类型|必选|中文名|说明|
1957
+ |---|---|---|---|---|---|
1958
+ |x|query|integer| 是 ||点击坐标X|
1959
+ |y|query|integer| 是 ||点击坐标Y|
1960
+ |duration|query|integer| 是 ||持续时间|
1961
+
1962
+ > 返回示例
1963
+
1964
+ > 200 Response
1965
+
1966
+ ```json
1967
+ {
1968
+ "success": true
1969
+ }
1970
+ ```
1971
+
1972
+ ### 返回结果
1973
+
1974
+ |状态码|状态码含义|说明|数据模型|
1975
+ |---|---|---|---|
1976
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
1977
+
1978
+ ### 返回数据结构
1979
+
1980
+ 状态码 **200**
1981
+
1982
+ |名称|类型|必选|约束|中文名|说明|
1983
+ |---|---|---|---|---|---|
1984
+ |» success|boolean|true|none|是否成功|none|
1985
+
1986
+ ## GET 双击操作
1987
+
1988
+ GET /api/hid/doubleClick
1989
+
1990
+ ### 请求参数
1991
+
1992
+ |名称|位置|类型|必选|中文名|说明|
1993
+ |---|---|---|---|---|---|
1994
+ |x|query|integer| 是 ||点击坐标X|
1995
+ |y|query|integer| 是 ||点击坐标Y|
1996
+ |duration|query|integer| 是 ||持续时间|
1997
+ |interval|query|integer| 否 ||间隔时间|
1998
+
1999
+ > 返回示例
2000
+
2001
+ > 200 Response
2002
+
2003
+ ```json
2004
+ {
2005
+ "success": true
2006
+ }
2007
+ ```
2008
+
2009
+ ### 返回结果
2010
+
2011
+ |状态码|状态码含义|说明|数据模型|
2012
+ |---|---|---|---|
2013
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
2014
+
2015
+ ### 返回数据结构
2016
+
2017
+ 状态码 **200**
2018
+
2019
+ |名称|类型|必选|约束|中文名|说明|
2020
+ |---|---|---|---|---|---|
2021
+ |» success|boolean|true|none|是否成功|none|
2022
+
2023
+ ## GET 滑动操作
2024
+
2025
+ GET /api/hid/swipe
2026
+
2027
+ ### 请求参数
2028
+
2029
+ |名称|位置|类型|必选|中文名|说明|
2030
+ |---|---|---|---|---|---|
2031
+ |startX|query|integer| 是 ||起点X|
2032
+ |startY|query|integer| 是 ||起点Y|
2033
+ |endX|query|integer| 是 ||终点X|
2034
+ |endY|query|integer| 是 ||终点Y|
2035
+ |jitter|query|boolean| 是 ||是否开启抖动|
2036
+ |steps|query|integer| 是 ||抖动步数|
2037
+
2038
+ > 返回示例
2039
+
2040
+ > 200 Response
2041
+
2042
+ ```json
2043
+ {
2044
+ "success": true
2045
+ }
2046
+ ```
2047
+
2048
+ ### 返回结果
2049
+
2050
+ |状态码|状态码含义|说明|数据模型|
2051
+ |---|---|---|---|
2052
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
2053
+
2054
+ ### 返回数据结构
2055
+
2056
+ 状态码 **200**
2057
+
2058
+ |名称|类型|必选|约束|中文名|说明|
2059
+ |---|---|---|---|---|---|
2060
+ |» success|boolean|true|none|是否成功|none|
2061
+
2062
+ ## GET 获取当前在前台的App(仅 IOS18.2及以上)
2063
+
2064
+ GET /api/hid/currentAppInfo
2065
+
2066
+ > 返回示例
2067
+
2068
+ > 200 Response
2069
+
2070
+ ```json
2071
+ {
2072
+ "success": true
2073
+ }
2074
+ ```
2075
+
2076
+ ### 返回结果
2077
+
2078
+ |状态码|状态码含义|说明|数据模型|
2079
+ |---|---|---|---|
2080
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
2081
+
2082
+ ### 返回数据结构
2083
+
2084
+ 状态码 **200**
2085
+
2086
+ |名称|类型|必选|约束|中文名|说明|
2087
+ |---|---|---|---|---|---|
2088
+ |» success|boolean|true|none|是否成功|none|
2089
+
2090
+ ## GET 打开App
2091
+
2092
+ GET /api/hid/openApp
2093
+
2094
+ ### 请求参数
2095
+
2096
+ |名称|位置|类型|必选|中文名|说明|
2097
+ |---|---|---|---|---|---|
2098
+ |name|query|string| 是 ||支持 app 名称和 app bundleId|
2099
+
2100
+ > 返回示例
2101
+
2102
+ > 200 Response
2103
+
2104
+ ```json
2105
+ {
2106
+ "success": true
2107
+ }
2108
+ ```
2109
+
2110
+ ### 返回结果
2111
+
2112
+ |状态码|状态码含义|说明|数据模型|
2113
+ |---|---|---|---|
2114
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
2115
+
2116
+ ### 返回数据结构
2117
+
2118
+ 状态码 **200**
2119
+
2120
+ |名称|类型|必选|约束|中文名|说明|
2121
+ |---|---|---|---|---|---|
2122
+ |» success|boolean|true|none|是否成功|none|
2123
+
2124
+ ## GET 关闭App
2125
+
2126
+ GET /api/hid/closeApp
2127
+
2128
+ ### 请求参数
2129
+
2130
+ |名称|位置|类型|必选|中文名|说明|
2131
+ |---|---|---|---|---|---|
2132
+ |name|query|string| 是 ||支持 app 名称和 app bundleId|
2133
+
2134
+ > 返回示例
2135
+
2136
+ > 200 Response
2137
+
2138
+ ```json
2139
+ {
2140
+ "success": true
2141
+ }
2142
+ ```
2143
+
2144
+ ### 返回结果
2145
+
2146
+ |状态码|状态码含义|说明|数据模型|
2147
+ |---|---|---|---|
2148
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
2149
+
2150
+ ### 返回数据结构
2151
+
2152
+ 状态码 **200**
2153
+
2154
+ |名称|类型|必选|约束|中文名|说明|
2155
+ |---|---|---|---|---|---|
2156
+ |» success|boolean|true|none|是否成功|none|
2157
+
2158
+ ## GET 打开URL
2159
+
2160
+ GET /api/hid/openURL
2161
+
2162
+ ### 请求参数
2163
+
2164
+ |名称|位置|类型|必选|中文名|说明|
2165
+ |---|---|---|---|---|---|
2166
+ |url|query|string| 是 ||none|
2167
+
2168
+ > 返回示例
2169
+
2170
+ > 200 Response
2171
+
2172
+ ```json
2173
+ {
2174
+ "success": true
2175
+ }
2176
+ ```
2177
+
2178
+ ### 返回结果
2179
+
2180
+ |状态码|状态码含义|说明|数据模型|
2181
+ |---|---|---|---|
2182
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
2183
+
2184
+ ### 返回数据结构
2185
+
2186
+ 状态码 **200**
2187
+
2188
+ |名称|类型|必选|约束|中文名|说明|
2189
+ |---|---|---|---|---|---|
2190
+ |» success|boolean|true|none|是否成功|none|
2191
+
2192
+ ## GET 重启HID设备
2193
+
2194
+ GET /api/hid/restartDevice
2195
+
2196
+ > 返回示例
2197
+
2198
+ > 200 Response
2199
+
2200
+ ```json
2201
+ {
2202
+ "success": true
2203
+ }
2204
+ ```
2205
+
2206
+ ### 返回结果
2207
+
2208
+ |状态码|状态码含义|说明|数据模型|
2209
+ |---|---|---|---|
2210
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
2211
+
2212
+ ### 返回数据结构
2213
+
2214
+ 状态码 **200**
2215
+
2216
+ |名称|类型|必选|约束|中文名|说明|
2217
+ |---|---|---|---|---|---|
2218
+ |» success|boolean|true|none|是否成功|none|
2219
+
2220
+ ## GET 移动坐标
2221
+
2222
+ GET /api/hid/move
2223
+
2224
+ ### 请求参数
2225
+
2226
+ |名称|位置|类型|必选|中文名|说明|
2227
+ |---|---|---|---|---|---|
2228
+ |x|query|integer| 是 ||点击坐标X|
2229
+ |y|query|integer| 是 ||点击坐标Y|
2230
+
2231
+ > 返回示例
2232
+
2233
+ > 200 Response
2234
+
2235
+ ```json
2236
+ {
2237
+ "success": true
2238
+ }
2239
+ ```
2240
+
2241
+ ### 返回结果
2242
+
2243
+ |状态码|状态码含义|说明|数据模型|
2244
+ |---|---|---|---|
2245
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
2246
+
2247
+ ### 返回数据结构
2248
+
2249
+ 状态码 **200**
2250
+
2251
+ |名称|类型|必选|约束|中文名|说明|
2252
+ |---|---|---|---|---|---|
2253
+ |» success|boolean|true|none|是否成功|none|
2254
+
2255
+ ## GET 鼠标按下
2256
+
2257
+ GET /api/hid/mouseDown
2258
+
2259
+ > 返回示例
2260
+
2261
+ > 200 Response
2262
+
2263
+ ```json
2264
+ {
2265
+ "success": true
2266
+ }
2267
+ ```
2268
+
2269
+ ### 返回结果
2270
+
2271
+ |状态码|状态码含义|说明|数据模型|
2272
+ |---|---|---|---|
2273
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
2274
+
2275
+ ### 返回数据结构
2276
+
2277
+ 状态码 **200**
2278
+
2279
+ |名称|类型|必选|约束|中文名|说明|
2280
+ |---|---|---|---|---|---|
2281
+ |» success|boolean|true|none|是否成功|none|
2282
+
2283
+ ## GET 鼠标抬起
2284
+
2285
+ GET /api/hid/mouseUp
2286
+
2287
+ > 返回示例
2288
+
2289
+ > 200 Response
2290
+
2291
+ ```json
2292
+ {
2293
+ "success": true
2294
+ }
2295
+ ```
2296
+
2297
+ ### 返回结果
2298
+
2299
+ |状态码|状态码含义|说明|数据模型|
2300
+ |---|---|---|---|
2301
+ |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline|
2302
+
2303
+ ### 返回数据结构
2304
+
2305
+ 状态码 **200**
2306
+
2307
+ |名称|类型|必选|约束|中文名|说明|
2308
+ |---|---|---|---|---|---|
2309
+ |» success|boolean|true|none|是否成功|none|
2310
+
2311
+ # 数据模型
2312
+
2313
+ <h2 id="tocS_软件状态">软件状态</h2>
2314
+
2315
+ <a id="schema软件状态"></a>
2316
+ <a id="schema_软件状态"></a>
2317
+ <a id="tocS软件状态"></a>
2318
+ <a id="tocs软件状态"></a>
2319
+
2320
+ ```json
2321
+ {
2322
+ "deviceIp": "string",
2323
+ "screenInfo": {
2324
+ "logicWidth": 0,
2325
+ "logicHeight": 0,
2326
+ "height": 0,
2327
+ "width": 0,
2328
+ "scale": 0
2329
+ },
2330
+ "deviceName": "string",
2331
+ "batteryInfo": {
2332
+ "level": 0,
2333
+ "isCharging": true
2334
+ },
2335
+ "appName": "string",
2336
+ "appBuildNumber": 0,
2337
+ "appBundleId": "string",
2338
+ "deviceModel": "string",
2339
+ "agentConnected": true,
2340
+ "isRun": true,
2341
+ "isDebugMode": true,
2342
+ "isAuth": true,
2343
+ "isRecording": true,
2344
+ "udid": "string",
2345
+ "serverDeviceId": "string",
2346
+ "isPipScriptControlEnabled": true,
2347
+ "orientation": "PORTRAIT",
2348
+ "osVersion": "string",
2349
+ "ecid": "string",
2350
+ "isVolumeControlEnabled": true,
2351
+ "agentVersion": "string",
2352
+ "appVersion": "string",
2353
+ "serverType": "international",
2354
+ "isHidConnected": true,
2355
+ "isShowUI": true,
2356
+ "isLogin": true,
2357
+ "isPipWindowEnabled": true,
2358
+ "deviceId": "string"
2359
+ }
2360
+
2361
+ ```
2362
+
2363
+ ### 属性
2364
+
2365
+ |名称|类型|必选|约束|中文名|说明|
2366
+ |---|---|---|---|---|---|
2367
+ |deviceIp|string|true|none|设备IP|none|
2368
+ |screenInfo|object|true|none|屏幕信息|none|
2369
+ |» logicWidth|integer|true|none|逻辑宽带|none|
2370
+ |» logicHeight|integer|true|none|逻辑高度|none|
2371
+ |» height|integer|true|none|物理高度|none|
2372
+ |» width|integer|true|none|物理宽度|none|
2373
+ |» scale|number|true|none|缩放比|none|
2374
+ |deviceName|string|true|none|设备名称|none|
2375
+ |batteryInfo|object|true|none|电池信息|none|
2376
+ |» level|integer|true|none|电量 1-100|none|
2377
+ |» isCharging|boolean|true|none|是否充电中|none|
2378
+ |appName|string|true|none|app名称|none|
2379
+ |appBuildNumber|integer|true|none|app构建号|none|
2380
+ |appBundleId|string|true|none|app 包名|none|
2381
+ |deviceModel|string|true|none|设备型号|none|
2382
+ |agentConnected|boolean|true|none|agent是否连接|none|
2383
+ |isRun|boolean|true|none|脚本是否启动|none|
2384
+ |isDebugMode|boolean|true|none|是否调试模式运行|none|
2385
+ |isAuth|boolean|true|none|是否授权|none|
2386
+ |isRecording|boolean|true|none|是否录屏中|none|
2387
+ |udid|string|true|none|设备唯一 UDID|none|
2388
+ |serverDeviceId|string|true|none|服务器设备ID|none|
2389
+ |isPipScriptControlEnabled|boolean|true|none|悬浮窗控制是否打开|none|
2390
+ |orientation|string|true|none|屏幕方向|none|
2391
+ |osVersion|string|true|none|系统版本|none|
2392
+ |ecid|string|true|none|设备唯一 ECID|none|
2393
+ |isVolumeControlEnabled|boolean|true|none|是否开启了音量键启停|none|
2394
+ |agentVersion|string|true|none|agent版本号|none|
2395
+ |appVersion|string|true|none|app版本号|none|
2396
+ |serverType|string|true|none|授权服务器类型|none|
2397
+ |isHidConnected|boolean|true|none|hid设备是否连接|none|
2398
+ |isShowUI|boolean|true|none|实现显示了 UI|none|
2399
+ |isLogin|boolean|true|none|是否登录|none|
2400
+ |isPipWindowEnabled|boolean|true|none|悬浮窗是否打开|none|
2401
+ |deviceId|string|true|none|设备 ID,应用唯一,卸载重装变化|none|
2402
+
2403
+ #### 枚举值
2404
+
2405
+ |属性|值|
2406
+ |---|---|
2407
+ |orientation|PORTRAIT|
2408
+ |orientation|LANDSCAPE|
2409
+ |serverType|international|
2410
+ |serverType|domestic|
2411
+