ms-vite-plugin 1.4.38 → 1.4.40

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.
@@ -585,12 +585,13 @@ GET /api/setClipboard
585
585
 
586
586
  POST /api/login
587
587
 
588
- 用户授权模式下,该接口会使用账号密码执行登录。授权卡密模式下,该接口是兼容旧控制端的空操作,会直接返回成功,不读取请求体字段,也不执行账号登录。
588
+ 用户授权模式下,该接口会使用账号密码执行登录。授权卡密模式下,该接口是兼容旧控制端的空操作,会直接返回成功,不读取请求体字段,不切换服务器类型,也不执行账号登录。
589
589
 
590
590
  > Body 请求参数
591
591
 
592
592
  ```json
593
593
  {
594
+ "serverType": "domestic",
594
595
  "username": "string",
595
596
  "password": "string"
596
597
  }
@@ -601,9 +602,17 @@ POST /api/login
601
602
  | 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
602
603
  | ------------ | ---- | ------ | ---- | ---------- | ---- |
603
604
  | body | body | object | 是 | | none |
605
+ | » serverType | body | string | 是 | 服务器类型 | 用户授权模式下使用;授权卡密模式下忽略 |
604
606
  | » username | body | string | 是 | 用户名 | 用户授权模式下使用;授权卡密模式下忽略 |
605
607
  | » password | body | string | 是 | 密码 | 用户授权模式下使用;授权卡密模式下忽略 |
606
608
 
609
+ #### 枚举值
610
+
611
+ | 属性 | 值 |
612
+ | ------------ | ------------- |
613
+ | » serverType | domestic |
614
+ | » serverType | international |
615
+
607
616
  > 返回示例
608
617
 
609
618
  > 200 Response
@@ -713,6 +722,7 @@ GET /api/status
713
722
  "isVolumeControlEnabled": true,
714
723
  "agentVersion": "string",
715
724
  "appVersion": "string",
725
+ "serverType": "international",
716
726
  "isHidConnected": true,
717
727
  "isShowUI": true,
718
728
  "isLogin": true,
@@ -773,6 +783,7 @@ GET /api/status
773
783
  | »» isVolumeControlEnabled | boolean | true | none | 是否开启了音量键启停 | none |
774
784
  | »» agentVersion | string | true | none | agent版本号 | none |
775
785
  | »» appVersion | string | true | none | app版本号 | none |
786
+ | »» serverType | string | true | none | 授权服务器类型 | none |
776
787
  | »» isHidConnected | boolean | true | none | hid设备是否连接 | none |
777
788
  | »» isShowUI | boolean | true | none | 实现显示了 UI | none |
778
789
  | »» isLogin | boolean | true | none | 是否登录 | none |
@@ -786,6 +797,8 @@ GET /api/status
786
797
  | orientation | LANDSCAPE |
787
798
  | authMode | user |
788
799
  | authMode | card |
800
+ | serverType | international |
801
+ | serverType | domestic |
789
802
 
790
803
  ## GET App切到前台
791
804
 
@@ -3310,6 +3323,7 @@ GET /mirror/image
3310
3323
  "isVolumeControlEnabled": true,
3311
3324
  "agentVersion": "string",
3312
3325
  "appVersion": "string",
3326
+ "serverType": "international",
3313
3327
  "isHidConnected": true,
3314
3328
  "isShowUI": true,
3315
3329
  "isLogin": true,
@@ -3359,6 +3373,7 @@ GET /mirror/image
3359
3373
  | isVolumeControlEnabled | boolean | true | none | 是否开启了音量键启停 | none |
3360
3374
  | agentVersion | string | true | none | agent版本号 | none |
3361
3375
  | appVersion | string | true | none | app版本号 | none |
3376
+ | serverType | string | true | none | 授权服务器类型 | none |
3362
3377
  | isHidConnected | boolean | true | none | hid设备是否连接 | none |
3363
3378
  | isShowUI | boolean | true | none | 实现显示了 UI | none |
3364
3379
  | isLogin | boolean | true | none | 是否登录 | none |
@@ -3372,3 +3387,5 @@ GET /mirror/image
3372
3387
  | orientation | LANDSCAPE |
3373
3388
  | authMode | user |
3374
3389
  | authMode | card |
3390
+ | serverType | international |
3391
+ | serverType | domestic |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-vite-plugin",
3
- "version": "1.4.38",
3
+ "version": "1.4.40",
4
4
  "type": "commonjs",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -44,4 +44,4 @@
44
44
  "@types/ws": "^8.18.1",
45
45
  "typescript": "~6.0.3"
46
46
  }
47
- }
47
+ }