@@ -8,14 +8,14 @@ export type BatchTaskResponse = {
88 *
99 * Code 为 0 表示成功,其他值表示失败
1010 *
11- * Code: 10001, Message : "invalid param"
12- * Code: 10002, Message : "invalid token"
13- * Code: 10003, Message : "invalid operate"
11+ * Code: 10001, Msg : "invalid param"
12+ * Code: 10002, Msg : "invalid token"
13+ * Code: 10003, Msg : "invalid operate"
1414 *
1515 */
1616 [ InstanceId : string ] : {
1717 Code : number ;
18- Message : string ;
18+ Msg : string ;
1919 } ;
2020} ;
2121
@@ -35,7 +35,7 @@ interface DescribeInstancePropertiesResponse extends BatchTaskResponse {
3535 * Code 为 0 表示成功
3636 */
3737 Code : number ;
38- Message : string ;
38+ Msg : string ;
3939 RequestId : string ;
4040 DeviceInfo : InstanceProperties [ 'DeviceInfo' ] ;
4141 GPSInfo : InstanceProperties [ 'GPSInfo' ] ;
@@ -60,7 +60,7 @@ interface ListUserAppsResponse extends BatchTaskResponse {
6060 * Code 为 0 表示成功
6161 */
6262 Code : number ;
63- Message : string ;
63+ Msg : string ;
6464 RequestId : string ;
6565 AppList : App [ ] ;
6666 } ;
@@ -69,7 +69,7 @@ interface ListUserAppsResponse extends BatchTaskResponse {
6969interface DescribeCameraMediaPlayStatusResponse extends BatchTaskResponse {
7070 [ InstanceId : string ] : {
7171 Code : number ;
72- Message : string ;
72+ Msg : string ;
7373 FilePath : string ;
7474 /**
7575 * 循环次数,负数表示无限循环
@@ -81,15 +81,15 @@ interface DescribeCameraMediaPlayStatusResponse extends BatchTaskResponse {
8181interface DescribeKeepAliveListResponse extends BatchTaskResponse {
8282 [ InstanceId : string ] : {
8383 Code : number ;
84- Message : string ;
84+ Msg : string ;
8585 AppList : string [ ] ;
8686 } ;
8787}
8888
8989interface MediaSearchResponse extends BatchTaskResponse {
9090 [ InstanceId : string ] : {
9191 Code : number ;
92- Message : string ;
92+ Msg : string ;
9393 MediaList : {
9494 FileName : string ; // 'abc123.mp4';
9595 FilePath : string ; // '/sdcard/xxxx';
@@ -105,7 +105,7 @@ interface ListAllAppsResponse extends BatchTaskResponse {
105105 * Code 为 0 表示成功
106106 */
107107 Code : number ;
108- Message : string ;
108+ Msg : string ;
109109 RequestId : string ;
110110 AppList : App [ ] ;
111111 } ;
@@ -114,7 +114,7 @@ interface ListAllAppsResponse extends BatchTaskResponse {
114114interface DescribeAppInstallBlackListResponse extends BatchTaskResponse {
115115 [ InstanceId : string ] : {
116116 Code : number ;
117- Message : string ;
117+ Msg : string ;
118118 AppList : string [ ] ;
119119 } ;
120120}
@@ -255,7 +255,6 @@ export interface AndroidInstance {
255255 * @example
256256 * const {url} = AndroidInstance.getInstanceImage({instanceId: 'cai-xxx1'});
257257 *
258- * @returns {{url: string} } response url - 截图地址
259258 */
260259 getInstanceImage ( {
261260 instanceId,
@@ -281,7 +280,6 @@ export interface AndroidInstance {
281280 * @example
282281 * AndroidInstance.upload({instanceId: 'cai-xxx1', files: [{file: file1, path: '/sdcard/xxx/'}, {file: file2, path: '/sdcard/xxx/']});
283282 *
284- * @returns {{Code: number; Message: string; FileStatus: { CloudPath: string; FileName: string }[] | null} } response
285283 */
286284 upload ( { instanceId, files } : { instanceId : string ; files : { file : File ; path ?: string } [ ] } ) : Promise < {
287285 Code : number ;
@@ -299,7 +297,6 @@ export interface AndroidInstance {
299297 * @example
300298 * const {address} = AndroidInstance.getInstanceDownloadAddress({instanceId: 'cai-xxx1', path: '/sdcard/xxx/'});
301299 *
302- * @returns {{address: string} } response address - 下载地址
303300 */
304301 getInstanceDownloadAddress ( { instanceId, path } : { instanceId : string ; path : string } ) : { address : string } ;
305302 /**
0 commit comments