@ray-js/api 1.6.31 → 2.0.0-alpha.0
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.
- package/@types/all-kits.d.ts +0 -2
- package/@types/api-cloud.d.ts +111 -128
- package/lib/P2PKit-2.0.3.js +1 -1
- package/lib/PlayNetKit-1.1.3.d.ts +26 -0
- package/lib/PlayNetKit-1.1.3.js +78 -0
- package/lib/all-kits.d.ts +1 -2
- package/lib/all-kits.js +2 -3
- package/lib/cloud/device.d.ts +1 -12
- package/lib/cloud/device.js +1 -32
- package/lib/cloud/laser-clean/index.d.ts +1 -1
- package/lib/cloud/laser-clean/index.js +1 -1
- package/lib/cloud/laser-clean/map.d.ts +1 -2
- package/lib/cloud/laser-clean/map.js +1 -2
- package/package.json +5 -5
- package/@types/IPCKit.d.ts +0 -1550
- package/@types/PlayNetKit.d.ts +0 -1731
- package/LICENSE.md +0 -9
- package/lib/IPCKit-6.2.3.d.ts +0 -74
- package/lib/IPCKit-6.2.3.js +0 -224
- package/lib/PlayNetKit-1.3.30.d.ts +0 -60
- package/lib/PlayNetKit-1.3.30.js +0 -180
package/@types/IPCKit.d.ts
DELETED
@@ -1,1550 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* IPCKit
|
3
|
-
*
|
4
|
-
* @version 6.2.3
|
5
|
-
*/
|
6
|
-
declare namespace ty.ipc {
|
7
|
-
/**
|
8
|
-
*@description 生成云存储签名URL*/
|
9
|
-
export function generateSignedUrl(params: {
|
10
|
-
/** file path */
|
11
|
-
path: string;
|
12
|
-
/** expiration */
|
13
|
-
expiration: string;
|
14
|
-
/** region */
|
15
|
-
region: string;
|
16
|
-
/** token */
|
17
|
-
token: string;
|
18
|
-
/** sk */
|
19
|
-
sk: string;
|
20
|
-
/** provider */
|
21
|
-
provider: string;
|
22
|
-
/** endpoint */
|
23
|
-
endpoint: string;
|
24
|
-
/** ak */
|
25
|
-
ak: string;
|
26
|
-
/** bucket */
|
27
|
-
bucket: string;
|
28
|
-
success?: (params: {
|
29
|
-
/** signed url */
|
30
|
-
signedUrl: string;
|
31
|
-
}) => void;
|
32
|
-
fail?: (params: {
|
33
|
-
errorMsg: string;
|
34
|
-
errorCode: string | number;
|
35
|
-
innerError: {
|
36
|
-
errorCode: string | number;
|
37
|
-
errorMsg: string;
|
38
|
-
};
|
39
|
-
}) => void;
|
40
|
-
complete?: () => void;
|
41
|
-
}): void;
|
42
|
-
|
43
|
-
/**
|
44
|
-
*@description 是否开启 NS(音频降噪),需要在StartAudioRecord之前调用*/
|
45
|
-
export function enableAudioNS(params: {
|
46
|
-
/** 设备 ID */
|
47
|
-
deviceId: string;
|
48
|
-
/** 是否开启 */
|
49
|
-
enable: boolean;
|
50
|
-
success?: (params: null) => void;
|
51
|
-
fail?: (params: {
|
52
|
-
errorMsg: string;
|
53
|
-
errorCode: string | number;
|
54
|
-
innerError: {
|
55
|
-
errorCode: string | number;
|
56
|
-
errorMsg: string;
|
57
|
-
};
|
58
|
-
}) => void;
|
59
|
-
complete?: () => void;
|
60
|
-
}): void;
|
61
|
-
|
62
|
-
/**
|
63
|
-
*@description 是否开启 AGC(自动增益),需要在StartAudioRecord之前调用*/
|
64
|
-
export function enableAudioAGC(params: {
|
65
|
-
/** 设备 ID */
|
66
|
-
deviceId: string;
|
67
|
-
/** 是否开启 */
|
68
|
-
enable: boolean;
|
69
|
-
success?: (params: null) => void;
|
70
|
-
fail?: (params: {
|
71
|
-
errorMsg: string;
|
72
|
-
errorCode: string | number;
|
73
|
-
innerError: {
|
74
|
-
errorCode: string | number;
|
75
|
-
errorMsg: string;
|
76
|
-
};
|
77
|
-
}) => void;
|
78
|
-
complete?: () => void;
|
79
|
-
}): void;
|
80
|
-
|
81
|
-
/**
|
82
|
-
*@description 是否开启 AEC(回音消除),需要在StartAudioRecord之前调用*/
|
83
|
-
export function enableAudioAEC(params: {
|
84
|
-
/** 设备 ID */
|
85
|
-
deviceId: string;
|
86
|
-
/** 是否开启 */
|
87
|
-
enable: boolean;
|
88
|
-
success?: (params: null) => void;
|
89
|
-
fail?: (params: {
|
90
|
-
errorMsg: string;
|
91
|
-
errorCode: string | number;
|
92
|
-
innerError: {
|
93
|
-
errorCode: string | number;
|
94
|
-
errorMsg: string;
|
95
|
-
};
|
96
|
-
}) => void;
|
97
|
-
complete?: () => void;
|
98
|
-
}): void;
|
99
|
-
|
100
|
-
/**
|
101
|
-
*@description 获取摄像头配置*/
|
102
|
-
export function obtainCameraConfig(params: {
|
103
|
-
/** 设备 ID */
|
104
|
-
deviceId: string;
|
105
|
-
success?: (params: {
|
106
|
-
/** 当前对讲方式。1:单向对讲;2:双向对讲 */
|
107
|
-
supportedAudioMode: number;
|
108
|
-
}) => void;
|
109
|
-
fail?: (params: {
|
110
|
-
errorMsg: string;
|
111
|
-
errorCode: string | number;
|
112
|
-
innerError: {
|
113
|
-
errorCode: string | number;
|
114
|
-
errorMsg: string;
|
115
|
-
};
|
116
|
-
}) => void;
|
117
|
-
complete?: () => void;
|
118
|
-
}): void;
|
119
|
-
|
120
|
-
/**
|
121
|
-
*@description 开始鸟类识别流程*/
|
122
|
-
export function startIdentifyingBirds(params: {
|
123
|
-
/** 取消鸟类识别id */
|
124
|
-
identifier: string;
|
125
|
-
/** 设备id */
|
126
|
-
deviceId: string;
|
127
|
-
success?: (params: {
|
128
|
-
/** 识别成功的数据 */
|
129
|
-
result: Object;
|
130
|
-
}) => void;
|
131
|
-
fail?: (params: {
|
132
|
-
errorMsg: string;
|
133
|
-
errorCode: string | number;
|
134
|
-
innerError: {
|
135
|
-
errorCode: string | number;
|
136
|
-
errorMsg: string;
|
137
|
-
};
|
138
|
-
}) => void;
|
139
|
-
complete?: () => void;
|
140
|
-
}): void;
|
141
|
-
|
142
|
-
/**
|
143
|
-
*@description 取消鸟类识别流程*/
|
144
|
-
export function cancelIdentifyingBirds(params: {
|
145
|
-
/** 取消鸟类识别id */
|
146
|
-
identifier: string;
|
147
|
-
/** 设备id */
|
148
|
-
deviceId: string;
|
149
|
-
success?: (params: null) => void;
|
150
|
-
fail?: (params: {
|
151
|
-
errorMsg: string;
|
152
|
-
errorCode: string | number;
|
153
|
-
innerError: {
|
154
|
-
errorCode: string | number;
|
155
|
-
errorMsg: string;
|
156
|
-
};
|
157
|
-
}) => void;
|
158
|
-
complete?: () => void;
|
159
|
-
}): void;
|
160
|
-
|
161
|
-
/**
|
162
|
-
*@description 是否支持ai云存储*/
|
163
|
-
export function isSupportAICloud(params?: {
|
164
|
-
success?: (params: null) => void;
|
165
|
-
fail?: (params: {
|
166
|
-
errorMsg: string;
|
167
|
-
errorCode: string | number;
|
168
|
-
innerError: {
|
169
|
-
errorCode: string | number;
|
170
|
-
errorMsg: string;
|
171
|
-
};
|
172
|
-
}) => void;
|
173
|
-
complete?: () => void;
|
174
|
-
}): void;
|
175
|
-
|
176
|
-
/**
|
177
|
-
*@description 是否支持喂鸟器*/
|
178
|
-
export function isSupportBirdFeeder(params?: {
|
179
|
-
success?: (params: null) => void;
|
180
|
-
fail?: (params: {
|
181
|
-
errorMsg: string;
|
182
|
-
errorCode: string | number;
|
183
|
-
innerError: {
|
184
|
-
errorCode: string | number;
|
185
|
-
errorMsg: string;
|
186
|
-
};
|
187
|
-
}) => void;
|
188
|
-
complete?: () => void;
|
189
|
-
}): void;
|
190
|
-
|
191
|
-
/**
|
192
|
-
*@description 是否支持全屏
|
193
|
-
*目前有折叠屏不支持全屏的情况,iOS 默认 true*/
|
194
|
-
export function isSupportFullScreen(params?: {
|
195
|
-
success?: (params: null) => void;
|
196
|
-
fail?: (params: {
|
197
|
-
errorMsg: string;
|
198
|
-
errorCode: string | number;
|
199
|
-
innerError: {
|
200
|
-
errorCode: string | number;
|
201
|
-
errorMsg: string;
|
202
|
-
};
|
203
|
-
}) => void;
|
204
|
-
complete?: () => void;
|
205
|
-
}): void;
|
206
|
-
|
207
|
-
/**
|
208
|
-
*@description 下载云存储视频*/
|
209
|
-
export function downloadCloudPlayBack(params: {
|
210
|
-
/** 设备id */
|
211
|
-
deviceId: string;
|
212
|
-
/** url */
|
213
|
-
url: string;
|
214
|
-
/** 保存路径 */
|
215
|
-
path: string;
|
216
|
-
/** 录像前缀 */
|
217
|
-
prefix: number;
|
218
|
-
/** 录像片段偏移量, */
|
219
|
-
videoSegments: number[];
|
220
|
-
/** 单片段时长 */
|
221
|
-
videoSegmentSize: number;
|
222
|
-
success?: (params: { path: string }) => void;
|
223
|
-
fail?: (params: {
|
224
|
-
errorMsg: string;
|
225
|
-
errorCode: string | number;
|
226
|
-
innerError: {
|
227
|
-
errorCode: string | number;
|
228
|
-
errorMsg: string;
|
229
|
-
};
|
230
|
-
}) => void;
|
231
|
-
complete?: () => void;
|
232
|
-
}): void;
|
233
|
-
|
234
|
-
/**
|
235
|
-
*@description 取消云存储下载*/
|
236
|
-
export function cancelDownloadCloudPlayBack(params: {
|
237
|
-
/** 设备 ID */
|
238
|
-
deviceId: string;
|
239
|
-
success?: (params: null) => void;
|
240
|
-
fail?: (params: {
|
241
|
-
errorMsg: string;
|
242
|
-
errorCode: string | number;
|
243
|
-
innerError: {
|
244
|
-
errorCode: string | number;
|
245
|
-
errorMsg: string;
|
246
|
-
};
|
247
|
-
}) => void;
|
248
|
-
complete?: () => void;
|
249
|
-
}): void;
|
250
|
-
|
251
|
-
/**
|
252
|
-
*@description 发送 dps*/
|
253
|
-
export function publishDps(params: {
|
254
|
-
/** 设备id */
|
255
|
-
deviceId: string;
|
256
|
-
/** dps */
|
257
|
-
dps: any;
|
258
|
-
/**
|
259
|
-
* 下发通道类型
|
260
|
-
* 0: 局域网
|
261
|
-
* 1: 网络
|
262
|
-
* 2: 自动
|
263
|
-
*/
|
264
|
-
mode: number;
|
265
|
-
/** 预留下发逻辑配置标记,后续可以拓展,例如下发声音,下发操作后续动作等等 */
|
266
|
-
options: any;
|
267
|
-
success?: (params: boolean) => void;
|
268
|
-
fail?: (params: {
|
269
|
-
errorMsg: string;
|
270
|
-
errorCode: string | number;
|
271
|
-
innerError: {
|
272
|
-
errorCode: string | number;
|
273
|
-
errorMsg: string;
|
274
|
-
};
|
275
|
-
}) => void;
|
276
|
-
complete?: () => void;
|
277
|
-
}): void;
|
278
|
-
|
279
|
-
/**
|
280
|
-
*@description 是否支持设备上传日志*/
|
281
|
-
export function isDeviceSupportUploadLog(params: {
|
282
|
-
/** 设备 ID */
|
283
|
-
deviceId: string;
|
284
|
-
success?: (params: boolean) => void;
|
285
|
-
fail?: (params: {
|
286
|
-
errorMsg: string;
|
287
|
-
errorCode: string | number;
|
288
|
-
innerError: {
|
289
|
-
errorCode: string | number;
|
290
|
-
errorMsg: string;
|
291
|
-
};
|
292
|
-
}) => void;
|
293
|
-
complete?: () => void;
|
294
|
-
}): void;
|
295
|
-
|
296
|
-
/**
|
297
|
-
*@description 上传设备日志*/
|
298
|
-
export function uploadDeviceLog(params: {
|
299
|
-
/** 设备 ID */
|
300
|
-
deviceId: string;
|
301
|
-
/** 超时,默认60s */
|
302
|
-
timeout: number;
|
303
|
-
success?: (params: {
|
304
|
-
/** 设备 ID */
|
305
|
-
deviceId: string;
|
306
|
-
/** 成功/失败 */
|
307
|
-
result: boolean;
|
308
|
-
/** 扩展字段 */
|
309
|
-
extInfo?: any;
|
310
|
-
}) => void;
|
311
|
-
fail?: (params: {
|
312
|
-
errorMsg: string;
|
313
|
-
errorCode: string | number;
|
314
|
-
innerError: {
|
315
|
-
errorCode: string | number;
|
316
|
-
errorMsg: string;
|
317
|
-
};
|
318
|
-
}) => void;
|
319
|
-
complete?: () => void;
|
320
|
-
}): void;
|
321
|
-
|
322
|
-
/**
|
323
|
-
*@description download file*/
|
324
|
-
export function downloadResourceToPhoneAlbum(params: {
|
325
|
-
/** device ID */
|
326
|
-
deviceId: string;
|
327
|
-
/** file type, 0:image, 1:video */
|
328
|
-
fileType?: number;
|
329
|
-
/** download url */
|
330
|
-
url: string;
|
331
|
-
/** download secret key */
|
332
|
-
secretKey?: string;
|
333
|
-
success?: (params: null) => void;
|
334
|
-
fail?: (params: {
|
335
|
-
errorMsg: string;
|
336
|
-
errorCode: string | number;
|
337
|
-
innerError: {
|
338
|
-
errorCode: string | number;
|
339
|
-
errorMsg: string;
|
340
|
-
};
|
341
|
-
}) => void;
|
342
|
-
complete?: () => void;
|
343
|
-
}): void;
|
344
|
-
|
345
|
-
/**
|
346
|
-
*@description share resource by system*/
|
347
|
-
export function shareResourceBySystem(params: {
|
348
|
-
/** device ID */
|
349
|
-
deviceId: string;
|
350
|
-
/** file type, 0:image, 1:video */
|
351
|
-
fileType?: number;
|
352
|
-
/** download url */
|
353
|
-
url?: string;
|
354
|
-
/** local file path */
|
355
|
-
filePath?: string;
|
356
|
-
/** secret key */
|
357
|
-
secretKey?: string;
|
358
|
-
success?: (params: null) => void;
|
359
|
-
fail?: (params: {
|
360
|
-
errorMsg: string;
|
361
|
-
errorCode: string | number;
|
362
|
-
innerError: {
|
363
|
-
errorCode: string | number;
|
364
|
-
errorMsg: string;
|
365
|
-
};
|
366
|
-
}) => void;
|
367
|
-
complete?: () => void;
|
368
|
-
}): void;
|
369
|
-
|
370
|
-
/**
|
371
|
-
*@description show identifying bird view*/
|
372
|
-
export function showIdentifyingBirdView(params: {
|
373
|
-
/** device ID */
|
374
|
-
deviceId: string;
|
375
|
-
/** identify bird id */
|
376
|
-
identifier: string;
|
377
|
-
/** download url */
|
378
|
-
theme?: number;
|
379
|
-
/** scanner color,default #FF592A */
|
380
|
-
scannerColor?: string;
|
381
|
-
/** ext data */
|
382
|
-
extData?: Object;
|
383
|
-
success?: (params: null) => void;
|
384
|
-
fail?: (params: {
|
385
|
-
errorMsg: string;
|
386
|
-
errorCode: string | number;
|
387
|
-
innerError: {
|
388
|
-
errorCode: string | number;
|
389
|
-
errorMsg: string;
|
390
|
-
};
|
391
|
-
}) => void;
|
392
|
-
complete?: () => void;
|
393
|
-
}): void;
|
394
|
-
|
395
|
-
/**
|
396
|
-
*@description snapshoot to sandbox*/
|
397
|
-
export function snapshootToSandbox(params: {
|
398
|
-
/** device ID */
|
399
|
-
deviceId: string;
|
400
|
-
/** file path */
|
401
|
-
filePath?: string;
|
402
|
-
success?: (params: {
|
403
|
-
/** file path */
|
404
|
-
filePath: string;
|
405
|
-
/** base64 data */
|
406
|
-
base64data: string;
|
407
|
-
}) => void;
|
408
|
-
fail?: (params: {
|
409
|
-
errorMsg: string;
|
410
|
-
errorCode: string | number;
|
411
|
-
innerError: {
|
412
|
-
errorCode: string | number;
|
413
|
-
errorMsg: string;
|
414
|
-
};
|
415
|
-
}) => void;
|
416
|
-
complete?: () => void;
|
417
|
-
}): void;
|
418
|
-
|
419
|
-
/**
|
420
|
-
*@description upload AI feature image*/
|
421
|
-
export function uploadAIFeatureImage(params: {
|
422
|
-
/** device ID */
|
423
|
-
deviceId: string;
|
424
|
-
/** task id */
|
425
|
-
taskId: string;
|
426
|
-
/** business type, default is aiBirdIdentify */
|
427
|
-
businessType?: string;
|
428
|
-
/** content type, defaul is image/jpeg */
|
429
|
-
contentType?: string;
|
430
|
-
/** file path */
|
431
|
-
filePath: string;
|
432
|
-
success?: (params: {
|
433
|
-
/** bucket */
|
434
|
-
bucket: string;
|
435
|
-
/** requestNo */
|
436
|
-
requestNo: string;
|
437
|
-
/** secretKey */
|
438
|
-
secretKey: string;
|
439
|
-
/** file path */
|
440
|
-
filePath: string;
|
441
|
-
/** url */
|
442
|
-
url: string;
|
443
|
-
}) => void;
|
444
|
-
fail?: (params: {
|
445
|
-
errorMsg: string;
|
446
|
-
errorCode: string | number;
|
447
|
-
innerError: {
|
448
|
-
errorCode: string | number;
|
449
|
-
errorMsg: string;
|
450
|
-
};
|
451
|
-
}) => void;
|
452
|
-
complete?: () => void;
|
453
|
-
}): void;
|
454
|
-
|
455
|
-
/**
|
456
|
-
*@description remove snapshoot from sandbox*/
|
457
|
-
export function removeSnapshootFromSandbox(params?: {
|
458
|
-
/** device ID */
|
459
|
-
deviceId?: string;
|
460
|
-
success?: (params: null) => void;
|
461
|
-
fail?: (params: {
|
462
|
-
errorMsg: string;
|
463
|
-
errorCode: string | number;
|
464
|
-
innerError: {
|
465
|
-
errorCode: string | number;
|
466
|
-
errorMsg: string;
|
467
|
-
};
|
468
|
-
}) => void;
|
469
|
-
complete?: () => void;
|
470
|
-
}): void;
|
471
|
-
|
472
|
-
/**
|
473
|
-
*@description 下载图片*/
|
474
|
-
export function downloadEncryptionImage(params: {
|
475
|
-
/** 图片连接 */
|
476
|
-
url: string;
|
477
|
-
/** 秘钥信息 */
|
478
|
-
encryptKey: string;
|
479
|
-
/** 设备id */
|
480
|
-
deviceId: string;
|
481
|
-
/** fileName */
|
482
|
-
fileName: string;
|
483
|
-
success?: (params: { path: string }) => void;
|
484
|
-
fail?: (params: {
|
485
|
-
errorMsg: string;
|
486
|
-
errorCode: string | number;
|
487
|
-
innerError: {
|
488
|
-
errorCode: string | number;
|
489
|
-
errorMsg: string;
|
490
|
-
};
|
491
|
-
}) => void;
|
492
|
-
complete?: () => void;
|
493
|
-
}): void;
|
494
|
-
|
495
|
-
/**
|
496
|
-
*@description 删除图片*/
|
497
|
-
export function deleteImages(params: {
|
498
|
-
/** 设备id */
|
499
|
-
deviceId: string;
|
500
|
-
/** 图片路径 */
|
501
|
-
imagePath: string[];
|
502
|
-
success?: (params: null) => void;
|
503
|
-
fail?: (params: {
|
504
|
-
errorMsg: string;
|
505
|
-
errorCode: string | number;
|
506
|
-
innerError: {
|
507
|
-
errorCode: string | number;
|
508
|
-
errorMsg: string;
|
509
|
-
};
|
510
|
-
}) => void;
|
511
|
-
complete?: () => void;
|
512
|
-
}): void;
|
513
|
-
|
514
|
-
/**
|
515
|
-
*@description 创建媒体设备*/
|
516
|
-
export function createMediaDevice(params: {
|
517
|
-
/** 设备 ID */
|
518
|
-
deviceId: string;
|
519
|
-
success?: (params: null) => void;
|
520
|
-
fail?: (params: {
|
521
|
-
errorMsg: string;
|
522
|
-
errorCode: string | number;
|
523
|
-
innerError: {
|
524
|
-
errorCode: string | number;
|
525
|
-
errorMsg: string;
|
526
|
-
};
|
527
|
-
}) => void;
|
528
|
-
complete?: () => void;
|
529
|
-
}): void;
|
530
|
-
|
531
|
-
/**
|
532
|
-
*@description 视频下载支持旋转*/
|
533
|
-
export function startDownloadMessageVideo(params: {
|
534
|
-
/** 设备 ID */
|
535
|
-
deviceId: string;
|
536
|
-
/** 路径 */
|
537
|
-
path: string;
|
538
|
-
/** 加密key */
|
539
|
-
encryptKey: string;
|
540
|
-
/** 保存路径 0: 默认值,保存在手机相册。1: 保存在 App 相册。2: 同时保存到手机相册和 App 相册 */
|
541
|
-
savePath: number;
|
542
|
-
/** 旋转角度 仅支持:0(正常模式,不旋转)、1(顺时针旋转90度)、2(顺时针旋转180度)、3(顺时针旋转270度 */
|
543
|
-
rotateMode: number;
|
544
|
-
success?: (params: null) => void;
|
545
|
-
fail?: (params: {
|
546
|
-
errorMsg: string;
|
547
|
-
errorCode: string | number;
|
548
|
-
innerError: {
|
549
|
-
errorCode: string | number;
|
550
|
-
errorMsg: string;
|
551
|
-
};
|
552
|
-
}) => void;
|
553
|
-
complete?: () => void;
|
554
|
-
}): void;
|
555
|
-
|
556
|
-
/**
|
557
|
-
*@description 取消视频下载*/
|
558
|
-
export function cancelDownloadMessageVideo(params?: {
|
559
|
-
success?: (params: null) => void;
|
560
|
-
fail?: (params: {
|
561
|
-
errorMsg: string;
|
562
|
-
errorCode: string | number;
|
563
|
-
innerError: {
|
564
|
-
errorCode: string | number;
|
565
|
-
errorMsg: string;
|
566
|
-
};
|
567
|
-
}) => void;
|
568
|
-
complete?: () => void;
|
569
|
-
}): void;
|
570
|
-
|
571
|
-
/**
|
572
|
-
*@description 获取视频码率*/
|
573
|
-
export function getVideoBitrateKbps(params: {
|
574
|
-
/** 设备ID */
|
575
|
-
deviceId: string;
|
576
|
-
/** 扩展参数 */
|
577
|
-
extendParam: Object;
|
578
|
-
success?: (params: {
|
579
|
-
/** 视频的码率kbps */
|
580
|
-
kbps: string;
|
581
|
-
}) => void;
|
582
|
-
fail?: (params: {
|
583
|
-
errorMsg: string;
|
584
|
-
errorCode: string | number;
|
585
|
-
innerError: {
|
586
|
-
errorCode: string | number;
|
587
|
-
errorMsg: string;
|
588
|
-
};
|
589
|
-
}) => void;
|
590
|
-
complete?: () => void;
|
591
|
-
}): void;
|
592
|
-
|
593
|
-
/**
|
594
|
-
*@description 画中画:是否支持画中画:只有安卓在用*/
|
595
|
-
export function isSupportFloatWindow(params: {
|
596
|
-
/** 设备ID */
|
597
|
-
deviceId: string;
|
598
|
-
/** 扩展参数 */
|
599
|
-
extendParam: Object;
|
600
|
-
success?: (params: {
|
601
|
-
/** 是否支持画中画: true支持;false不支持 */
|
602
|
-
isSupport: boolean;
|
603
|
-
}) => void;
|
604
|
-
fail?: (params: {
|
605
|
-
errorMsg: string;
|
606
|
-
errorCode: string | number;
|
607
|
-
innerError: {
|
608
|
-
errorCode: string | number;
|
609
|
-
errorMsg: string;
|
610
|
-
};
|
611
|
-
}) => void;
|
612
|
-
complete?: () => void;
|
613
|
-
}): void;
|
614
|
-
|
615
|
-
/**
|
616
|
-
*@description 画中画:开启画中画*/
|
617
|
-
export function openFloatWindow(params: {
|
618
|
-
/** 设备ID */
|
619
|
-
deviceId: string;
|
620
|
-
/** 扩展参数 */
|
621
|
-
extendParam: Object;
|
622
|
-
success?: (params: null) => void;
|
623
|
-
fail?: (params: {
|
624
|
-
errorMsg: string;
|
625
|
-
errorCode: string | number;
|
626
|
-
innerError: {
|
627
|
-
errorCode: string | number;
|
628
|
-
errorMsg: string;
|
629
|
-
};
|
630
|
-
}) => void;
|
631
|
-
complete?: () => void;
|
632
|
-
}): void;
|
633
|
-
|
634
|
-
/**
|
635
|
-
*@description IPC-APP缓存支持的对讲方式:是否支持对讲*/
|
636
|
-
export function isSupportedTalk(params: {
|
637
|
-
/** 设备ID */
|
638
|
-
deviceId: string;
|
639
|
-
/** 扩展参数 */
|
640
|
-
extendParam: Object;
|
641
|
-
success?: (params: {
|
642
|
-
/** 是否支持对讲 */
|
643
|
-
isSupport: boolean;
|
644
|
-
}) => void;
|
645
|
-
fail?: (params: {
|
646
|
-
errorMsg: string;
|
647
|
-
errorCode: string | number;
|
648
|
-
innerError: {
|
649
|
-
errorCode: string | number;
|
650
|
-
errorMsg: string;
|
651
|
-
};
|
652
|
-
}) => void;
|
653
|
-
complete?: () => void;
|
654
|
-
}): void;
|
655
|
-
|
656
|
-
/**
|
657
|
-
*@description 设备支持的对讲模式*/
|
658
|
-
export function getCurrentSupportedTalkMode(params: {
|
659
|
-
/** 设备ID */
|
660
|
-
deviceId: string;
|
661
|
-
/** 扩展参数 */
|
662
|
-
extendParam: Object;
|
663
|
-
success?: (params: {
|
664
|
-
/** 设备支持的对讲模式。回掉方法的参数为数值型,0 未知;1:单向对讲;2:双向对讲。 */
|
665
|
-
talkbackMode: number;
|
666
|
-
}) => void;
|
667
|
-
fail?: (params: {
|
668
|
-
errorMsg: string;
|
669
|
-
errorCode: string | number;
|
670
|
-
innerError: {
|
671
|
-
errorCode: string | number;
|
672
|
-
errorMsg: string;
|
673
|
-
};
|
674
|
-
}) => void;
|
675
|
-
complete?: () => void;
|
676
|
-
}): void;
|
677
|
-
|
678
|
-
/**
|
679
|
-
*@description IPC TTT日志打点*/
|
680
|
-
export function ipcTTTOperatorLog(params: {
|
681
|
-
/** IPC日志 */
|
682
|
-
ipcLogString: string;
|
683
|
-
success?: (params: null) => void;
|
684
|
-
fail?: (params: {
|
685
|
-
errorMsg: string;
|
686
|
-
errorCode: string | number;
|
687
|
-
innerError: {
|
688
|
-
errorCode: string | number;
|
689
|
-
errorMsg: string;
|
690
|
-
};
|
691
|
-
}) => void;
|
692
|
-
complete?: () => void;
|
693
|
-
}): void;
|
694
|
-
|
695
|
-
/**
|
696
|
-
*@description 唤醒门铃设备。门铃设备休眠时,需要在连接 p2p 通道之前调用*/
|
697
|
-
export function wakeUpDoorBell(params: {
|
698
|
-
/** 设备id */
|
699
|
-
deviceId: string;
|
700
|
-
success?: (params: null) => void;
|
701
|
-
fail?: (params: {
|
702
|
-
errorMsg: string;
|
703
|
-
errorCode: string | number;
|
704
|
-
innerError: {
|
705
|
-
errorCode: string | number;
|
706
|
-
errorMsg: string;
|
707
|
-
};
|
708
|
-
}) => void;
|
709
|
-
complete?: () => void;
|
710
|
-
}): void;
|
711
|
-
|
712
|
-
/**
|
713
|
-
*@description 设置语音对讲变声音*/
|
714
|
-
export function enableVoiceEffect(params: {
|
715
|
-
/** 设备id */
|
716
|
-
deviceId: string;
|
717
|
-
/** 变声类型 0:原声,1:小哥哥,2:大叔,3:机器人,4:萝莉音 */
|
718
|
-
effectType: number;
|
719
|
-
success?: (params: null) => void;
|
720
|
-
fail?: (params: {
|
721
|
-
errorMsg: string;
|
722
|
-
errorCode: string | number;
|
723
|
-
innerError: {
|
724
|
-
errorCode: string | number;
|
725
|
-
errorMsg: string;
|
726
|
-
};
|
727
|
-
}) => void;
|
728
|
-
complete?: () => void;
|
729
|
-
}): void;
|
730
|
-
|
731
|
-
/**
|
732
|
-
*@description 获取上次设置语音对讲变声音模式*/
|
733
|
-
export function getLastAudioEffect(params: {
|
734
|
-
/** 设备id */
|
735
|
-
deviceId: string;
|
736
|
-
success?: (params: {
|
737
|
-
/** 变声类型 0:原声,1:小哥哥,2:大叔,3:机器人,4:萝莉音 */
|
738
|
-
effectType: number;
|
739
|
-
}) => void;
|
740
|
-
fail?: (params: {
|
741
|
-
errorMsg: string;
|
742
|
-
errorCode: string | number;
|
743
|
-
innerError: {
|
744
|
-
errorCode: string | number;
|
745
|
-
errorMsg: string;
|
746
|
-
};
|
747
|
-
}) => void;
|
748
|
-
complete?: () => void;
|
749
|
-
}): void;
|
750
|
-
|
751
|
-
/**
|
752
|
-
*@description 是否已经连接*/
|
753
|
-
export function isConnected(params: {
|
754
|
-
/** 设备id */
|
755
|
-
deviceId: string;
|
756
|
-
success?: (params: {
|
757
|
-
/** YES 已经连接 */
|
758
|
-
isConnected: boolean;
|
759
|
-
}) => void;
|
760
|
-
fail?: (params: {
|
761
|
-
errorMsg: string;
|
762
|
-
errorCode: string | number;
|
763
|
-
innerError: {
|
764
|
-
errorCode: string | number;
|
765
|
-
errorMsg: string;
|
766
|
-
};
|
767
|
-
}) => void;
|
768
|
-
complete?: () => void;
|
769
|
-
}): void;
|
770
|
-
|
771
|
-
/**
|
772
|
-
*@description 是否正在连接*/
|
773
|
-
export function isConnecting(params: {
|
774
|
-
/** 设备id */
|
775
|
-
deviceId: string;
|
776
|
-
success?: (params: {
|
777
|
-
/** YES 正在连接 */
|
778
|
-
isConnecting: boolean;
|
779
|
-
}) => void;
|
780
|
-
fail?: (params: {
|
781
|
-
errorMsg: string;
|
782
|
-
errorCode: string | number;
|
783
|
-
innerError: {
|
784
|
-
errorCode: string | number;
|
785
|
-
errorMsg: string;
|
786
|
-
};
|
787
|
-
}) => void;
|
788
|
-
complete?: () => void;
|
789
|
-
}): void;
|
790
|
-
|
791
|
-
/**
|
792
|
-
*@description 请求连接*/
|
793
|
-
export function connect(params: {
|
794
|
-
/** 设备id */
|
795
|
-
deviceId: string;
|
796
|
-
success?: (params: null) => void;
|
797
|
-
fail?: (params: {
|
798
|
-
errorMsg: string;
|
799
|
-
errorCode: string | number;
|
800
|
-
innerError: {
|
801
|
-
errorCode: string | number;
|
802
|
-
errorMsg: string;
|
803
|
-
};
|
804
|
-
}) => void;
|
805
|
-
complete?: () => void;
|
806
|
-
}): void;
|
807
|
-
|
808
|
-
/**
|
809
|
-
*@description 断开连接*/
|
810
|
-
export function disConnect(params: {
|
811
|
-
/** 设备id */
|
812
|
-
deviceId: string;
|
813
|
-
success?: (params: null) => void;
|
814
|
-
fail?: (params: {
|
815
|
-
errorMsg: string;
|
816
|
-
errorCode: string | number;
|
817
|
-
innerError: {
|
818
|
-
errorCode: string | number;
|
819
|
-
errorMsg: string;
|
820
|
-
};
|
821
|
-
}) => void;
|
822
|
-
complete?: () => void;
|
823
|
-
}): void;
|
824
|
-
|
825
|
-
/**
|
826
|
-
*@description 是否断开连接*/
|
827
|
-
export function isDisConnect(params: {
|
828
|
-
/** 设备id */
|
829
|
-
deviceId: string;
|
830
|
-
success?: (params: {
|
831
|
-
/** YES 已经断开连接 */
|
832
|
-
isDisConnect: boolean;
|
833
|
-
}) => void;
|
834
|
-
fail?: (params: {
|
835
|
-
errorMsg: string;
|
836
|
-
errorCode: string | number;
|
837
|
-
innerError: {
|
838
|
-
errorCode: string | number;
|
839
|
-
errorMsg: string;
|
840
|
-
};
|
841
|
-
}) => void;
|
842
|
-
complete?: () => void;
|
843
|
-
}): void;
|
844
|
-
|
845
|
-
/**
|
846
|
-
*@description 开启 debug log 输出给面板*/
|
847
|
-
export function enableDebugLog(params: {
|
848
|
-
/** 设备 ID */
|
849
|
-
deviceId: string;
|
850
|
-
success?: (params: null) => void;
|
851
|
-
fail?: (params: {
|
852
|
-
errorMsg: string;
|
853
|
-
errorCode: string | number;
|
854
|
-
innerError: {
|
855
|
-
errorCode: string | number;
|
856
|
-
errorMsg: string;
|
857
|
-
};
|
858
|
-
}) => void;
|
859
|
-
complete?: () => void;
|
860
|
-
}): void;
|
861
|
-
|
862
|
-
/**
|
863
|
-
*@description 关闭 debug log 输出给面板*/
|
864
|
-
export function disableDebugLog(params: {
|
865
|
-
/** 设备 ID */
|
866
|
-
deviceId: string;
|
867
|
-
success?: (params: null) => void;
|
868
|
-
fail?: (params: {
|
869
|
-
errorMsg: string;
|
870
|
-
errorCode: string | number;
|
871
|
-
innerError: {
|
872
|
-
errorCode: string | number;
|
873
|
-
errorMsg: string;
|
874
|
-
};
|
875
|
-
}) => void;
|
876
|
-
complete?: () => void;
|
877
|
-
}): void;
|
878
|
-
|
879
|
-
/**
|
880
|
-
*@description 上传 App 日志*/
|
881
|
-
export function uploadAppLog(params?: {
|
882
|
-
success?: (params: null) => void;
|
883
|
-
fail?: (params: {
|
884
|
-
errorMsg: string;
|
885
|
-
errorCode: string | number;
|
886
|
-
innerError: {
|
887
|
-
errorCode: string | number;
|
888
|
-
errorMsg: string;
|
889
|
-
};
|
890
|
-
}) => void;
|
891
|
-
complete?: () => void;
|
892
|
-
}): void;
|
893
|
-
|
894
|
-
/**
|
895
|
-
*@description JS -> Native,RN 调用原生接口,通用路由跳转接口
|
896
|
-
*参数由app与面板共同约定*/
|
897
|
-
export function gotoCameraSettingsRouter(params: {
|
898
|
-
/**
|
899
|
-
* Router url: "thingSmart://" + 路由名 + "?" + 参数名1 + "=" + 参数1 + "&" + 参数名2 + "=" +参数2 +...
|
900
|
-
* eg:"thingSmart://camera_action_doorbell?extra_camera_uuid=6c33c4b767d016738co3yw&doorbell_start_time=1645075573"
|
901
|
-
*/
|
902
|
-
url: string;
|
903
|
-
success?: (params: null) => void;
|
904
|
-
fail?: (params: {
|
905
|
-
errorMsg: string;
|
906
|
-
errorCode: string | number;
|
907
|
-
innerError: {
|
908
|
-
errorCode: string | number;
|
909
|
-
errorMsg: string;
|
910
|
-
};
|
911
|
-
}) => void;
|
912
|
-
complete?: () => void;
|
913
|
-
}): void;
|
914
|
-
|
915
|
-
/**
|
916
|
-
*@description JS -> Native,RN 调用原生接口,是否支持切换对讲模式
|
917
|
-
*参数由app与面板共同约定*/
|
918
|
-
export function couldChangeTalkbackMode(params: {
|
919
|
-
/** 设备ID */
|
920
|
-
devId: string;
|
921
|
-
success?: (params: null) => void;
|
922
|
-
fail?: (params: {
|
923
|
-
errorMsg: string;
|
924
|
-
errorCode: string | number;
|
925
|
-
innerError: {
|
926
|
-
errorCode: string | number;
|
927
|
-
errorMsg: string;
|
928
|
-
};
|
929
|
-
}) => void;
|
930
|
-
complete?: () => void;
|
931
|
-
}): void;
|
932
|
-
|
933
|
-
/**
|
934
|
-
*@description 门铃呼叫参数设置*/
|
935
|
-
export function doorbellCallConfig(params?: {
|
936
|
-
/** 是否忽略门铃呼叫 */
|
937
|
-
ignoreWhenCalling?: boolean;
|
938
|
-
/** 门铃呼叫超时时长 */
|
939
|
-
doorbellRingTimeOut?: number;
|
940
|
-
success?: (params: null) => void;
|
941
|
-
fail?: (params: {
|
942
|
-
errorMsg: string;
|
943
|
-
errorCode: string | number;
|
944
|
-
innerError: {
|
945
|
-
errorCode: string | number;
|
946
|
-
errorMsg: string;
|
947
|
-
};
|
948
|
-
}) => void;
|
949
|
-
complete?: () => void;
|
950
|
-
}): void;
|
951
|
-
|
952
|
-
/**
|
953
|
-
*@description 接听门铃呼叫*/
|
954
|
-
export function acceptDoorbellCall(params: {
|
955
|
-
/** 门铃呼叫消息id */
|
956
|
-
messageId: string;
|
957
|
-
success?: (params: null) => void;
|
958
|
-
fail?: (params: {
|
959
|
-
errorMsg: string;
|
960
|
-
errorCode: string | number;
|
961
|
-
innerError: {
|
962
|
-
errorCode: string | number;
|
963
|
-
errorMsg: string;
|
964
|
-
};
|
965
|
-
}) => void;
|
966
|
-
complete?: () => void;
|
967
|
-
}): void;
|
968
|
-
|
969
|
-
/**
|
970
|
-
*@description 拒绝门铃呼叫*/
|
971
|
-
export function refuseDoorbellCall(params: {
|
972
|
-
/** 门铃呼叫消息id */
|
973
|
-
messageId: string;
|
974
|
-
success?: (params: null) => void;
|
975
|
-
fail?: (params: {
|
976
|
-
errorMsg: string;
|
977
|
-
errorCode: string | number;
|
978
|
-
innerError: {
|
979
|
-
errorCode: string | number;
|
980
|
-
errorMsg: string;
|
981
|
-
};
|
982
|
-
}) => void;
|
983
|
-
complete?: () => void;
|
984
|
-
}): void;
|
985
|
-
|
986
|
-
/**
|
987
|
-
*@description 挂断门铃呼叫*/
|
988
|
-
export function hangupDoorbellCall(params: {
|
989
|
-
/** 门铃呼叫消息id */
|
990
|
-
messageId: string;
|
991
|
-
success?: (params: null) => void;
|
992
|
-
fail?: (params: {
|
993
|
-
errorMsg: string;
|
994
|
-
errorCode: string | number;
|
995
|
-
innerError: {
|
996
|
-
errorCode: string | number;
|
997
|
-
errorMsg: string;
|
998
|
-
};
|
999
|
-
}) => void;
|
1000
|
-
complete?: () => void;
|
1001
|
-
}): void;
|
1002
|
-
|
1003
|
-
/**
|
1004
|
-
*@description 是否自定义默认语音配置*/
|
1005
|
-
export function isSupportedCustomDefaultAudioConfig(params?: {
|
1006
|
-
success?: (params: null) => void;
|
1007
|
-
fail?: (params: {
|
1008
|
-
errorMsg: string;
|
1009
|
-
errorCode: string | number;
|
1010
|
-
innerError: {
|
1011
|
-
errorCode: string | number;
|
1012
|
-
errorMsg: string;
|
1013
|
-
};
|
1014
|
-
}) => void;
|
1015
|
-
complete?: () => void;
|
1016
|
-
}): void;
|
1017
|
-
|
1018
|
-
/**
|
1019
|
-
*@description 视频播放信息回调*/
|
1020
|
-
export function onPlayMessageVideoInfo(listener: (params: MessageVideoInfoModel) => void): void;
|
1021
|
-
|
1022
|
-
/**
|
1023
|
-
*@description 移除监听:视频播放信息回调*/
|
1024
|
-
export function offPlayMessageVideoInfo(listener: (params: MessageVideoInfoModel) => void): void;
|
1025
|
-
|
1026
|
-
/**
|
1027
|
-
*@description 音频播放信息回调*/
|
1028
|
-
export function onPlayMessageAudioInfo(listener: (params: MessageAudioInfoModel) => void): void;
|
1029
|
-
|
1030
|
-
/**
|
1031
|
-
*@description 移除监听:音频播放信息回调*/
|
1032
|
-
export function offPlayMessageAudioInfo(listener: (params: MessageAudioInfoModel) => void): void;
|
1033
|
-
|
1034
|
-
/**
|
1035
|
-
*@description 播放完成回调*/
|
1036
|
-
export function onPlayMessageVideoFinish(
|
1037
|
-
listener: (params: MessageVideoFinishModel) => void
|
1038
|
-
): void;
|
1039
|
-
|
1040
|
-
/**
|
1041
|
-
*@description 移除监听:播放完成回调*/
|
1042
|
-
export function offPlayMessageVideoFinish(
|
1043
|
-
listener: (params: MessageVideoFinishModel) => void
|
1044
|
-
): void;
|
1045
|
-
|
1046
|
-
/**
|
1047
|
-
*@description 下载进度事件*/
|
1048
|
-
export function onCloudPlayBackDownloadProgress(
|
1049
|
-
listener: (params: cloudPlayBackDownloadProgressBody) => void
|
1050
|
-
): void;
|
1051
|
-
|
1052
|
-
/**
|
1053
|
-
*@description 移除监听:下载进度事件*/
|
1054
|
-
export function offCloudPlayBackDownloadProgress(
|
1055
|
-
listener: (params: cloudPlayBackDownloadProgressBody) => void
|
1056
|
-
): void;
|
1057
|
-
|
1058
|
-
/**
|
1059
|
-
*@description identifying bird view action trigger*/
|
1060
|
-
export function onIdentifyingBirdViewActionTrigger(
|
1061
|
-
listener: (params: IdentifyBirdViewActionTriggerEvent) => void
|
1062
|
-
): void;
|
1063
|
-
|
1064
|
-
/**
|
1065
|
-
*@description 移除监听:identifying bird view action trigger*/
|
1066
|
-
export function offIdentifyingBirdViewActionTrigger(
|
1067
|
-
listener: (params: IdentifyBirdViewActionTriggerEvent) => void
|
1068
|
-
): void;
|
1069
|
-
|
1070
|
-
/**
|
1071
|
-
*@description 视频下载结束*/
|
1072
|
-
export function onDownloadMessageVideoFinished(
|
1073
|
-
listener: (params: DownloadMessageVideoFinishedModel) => void
|
1074
|
-
): void;
|
1075
|
-
|
1076
|
-
/**
|
1077
|
-
*@description 移除监听:视频下载结束*/
|
1078
|
-
export function offDownloadMessageVideoFinished(
|
1079
|
-
listener: (params: DownloadMessageVideoFinishedModel) => void
|
1080
|
-
): void;
|
1081
|
-
|
1082
|
-
/**
|
1083
|
-
*@description 视频下载进度*/
|
1084
|
-
export function onDownloadMessageVideoProgress(
|
1085
|
-
listener: (params: DownloadMessageVideoProgressModel) => void
|
1086
|
-
): void;
|
1087
|
-
|
1088
|
-
/**
|
1089
|
-
*@description 移除监听:视频下载进度*/
|
1090
|
-
export function offDownloadMessageVideoProgress(
|
1091
|
-
listener: (params: DownloadMessageVideoProgressModel) => void
|
1092
|
-
): void;
|
1093
|
-
|
1094
|
-
/**
|
1095
|
-
*@description 面板调试日志事件*/
|
1096
|
-
export function onDebugLogHit(listener: (params: PanelDebugLogBody) => void): void;
|
1097
|
-
|
1098
|
-
/**
|
1099
|
-
*@description 移除监听:面板调试日志事件*/
|
1100
|
-
export function offDebugLogHit(listener: (params: PanelDebugLogBody) => void): void;
|
1101
|
-
|
1102
|
-
/**
|
1103
|
-
*@description 门铃呼叫挂断事件*/
|
1104
|
-
export function onDoorBellCallHangUp(listener: (params: DoorbellCallEventResponse) => void): void;
|
1105
|
-
|
1106
|
-
/**
|
1107
|
-
*@description 移除监听:门铃呼叫挂断事件*/
|
1108
|
-
export function offDoorBellCallHangUp(
|
1109
|
-
listener: (params: DoorbellCallEventResponse) => void
|
1110
|
-
): void;
|
1111
|
-
|
1112
|
-
/**
|
1113
|
-
*@description 其他终端挂断门铃呼叫事件*/
|
1114
|
-
export function onDoorBellCallHangUpByOther(
|
1115
|
-
listener: (params: DoorbellCallEventResponse) => void
|
1116
|
-
): void;
|
1117
|
-
|
1118
|
-
/**
|
1119
|
-
*@description 移除监听:其他终端挂断门铃呼叫事件*/
|
1120
|
-
export function offDoorBellCallHangUpByOther(
|
1121
|
-
listener: (params: DoorbellCallEventResponse) => void
|
1122
|
-
): void;
|
1123
|
-
|
1124
|
-
/**
|
1125
|
-
*@description 取消门铃呼叫事件*/
|
1126
|
-
export function onDoorBellCallCancel(listener: (params: DoorbellCallEventResponse) => void): void;
|
1127
|
-
|
1128
|
-
/**
|
1129
|
-
*@description 移除监听:取消门铃呼叫事件*/
|
1130
|
-
export function offDoorBellCallCancel(
|
1131
|
-
listener: (params: DoorbellCallEventResponse) => void
|
1132
|
-
): void;
|
1133
|
-
|
1134
|
-
export type Object = {};
|
1135
|
-
|
1136
|
-
export type MessageVideoInfoModel = {
|
1137
|
-
/** 时间戳 */
|
1138
|
-
timestamp: string;
|
1139
|
-
/** 视频宽度 */
|
1140
|
-
width: number;
|
1141
|
-
/** 视频高度 */
|
1142
|
-
height: number;
|
1143
|
-
/** 帧率 */
|
1144
|
-
frameRate: number;
|
1145
|
-
/** 播放进度 */
|
1146
|
-
progress: number;
|
1147
|
-
/** 时长 */
|
1148
|
-
duration: number;
|
1149
|
-
};
|
1150
|
-
|
1151
|
-
export type MessageAudioInfoModel = {
|
1152
|
-
/** 时间戳 */
|
1153
|
-
timestamp: string;
|
1154
|
-
/** 视频宽度 */
|
1155
|
-
width: number;
|
1156
|
-
/** 视频高度 */
|
1157
|
-
height: number;
|
1158
|
-
/** 帧率 */
|
1159
|
-
frameRate: number;
|
1160
|
-
/** 播放进度 */
|
1161
|
-
progress: number;
|
1162
|
-
/** 时长 */
|
1163
|
-
duration: number;
|
1164
|
-
};
|
1165
|
-
|
1166
|
-
export type MessageVideoFinishModel = {
|
1167
|
-
/** 播放结束 */
|
1168
|
-
palyFinish: boolean;
|
1169
|
-
};
|
1170
|
-
|
1171
|
-
export type cloudPlayBackDownloadProgressBody = {
|
1172
|
-
/** 下载进度 */
|
1173
|
-
progress: number;
|
1174
|
-
};
|
1175
|
-
|
1176
|
-
export type IdentifyBirdViewActionTriggerEvent = {
|
1177
|
-
/** device ID */
|
1178
|
-
deviceId: string;
|
1179
|
-
/** trigger action item index,default 0 */
|
1180
|
-
index?: number;
|
1181
|
-
};
|
1182
|
-
|
1183
|
-
export type DownloadMessageVideoFinishedModel = {
|
1184
|
-
/** 视频保存路径 */
|
1185
|
-
filePath: string;
|
1186
|
-
};
|
1187
|
-
|
1188
|
-
export type DownloadMessageVideoProgressModel = {
|
1189
|
-
/** 下载进度 */
|
1190
|
-
progress: number;
|
1191
|
-
};
|
1192
|
-
|
1193
|
-
export type PanelDebugLogBody = {
|
1194
|
-
/** 日志数组 */
|
1195
|
-
logList: string[];
|
1196
|
-
};
|
1197
|
-
|
1198
|
-
export type DoorbellCallEventResponse = {
|
1199
|
-
/** 返回结果 */
|
1200
|
-
response?: any;
|
1201
|
-
};
|
1202
|
-
|
1203
|
-
export type EnableAudioNSParams = {
|
1204
|
-
/** 设备 ID */
|
1205
|
-
deviceId: string;
|
1206
|
-
/** 是否开启 */
|
1207
|
-
enable: boolean;
|
1208
|
-
};
|
1209
|
-
|
1210
|
-
export type EnableAudioAGCParams = {
|
1211
|
-
/** 设备 ID */
|
1212
|
-
deviceId: string;
|
1213
|
-
/** 是否开启 */
|
1214
|
-
enable: boolean;
|
1215
|
-
};
|
1216
|
-
|
1217
|
-
export type EnableAudioAECParams = {
|
1218
|
-
/** 设备 ID */
|
1219
|
-
deviceId: string;
|
1220
|
-
/** 是否开启 */
|
1221
|
-
enable: boolean;
|
1222
|
-
};
|
1223
|
-
|
1224
|
-
export type CameraConfigParams = {
|
1225
|
-
/** 设备 ID */
|
1226
|
-
deviceId: string;
|
1227
|
-
};
|
1228
|
-
|
1229
|
-
export type CameraConfig = {
|
1230
|
-
/** 当前对讲方式。1:单向对讲;2:双向对讲 */
|
1231
|
-
supportedAudioMode: number;
|
1232
|
-
};
|
1233
|
-
|
1234
|
-
export type IdentifyingBirdsParams = {
|
1235
|
-
/** 取消鸟类识别id */
|
1236
|
-
identifier: string;
|
1237
|
-
/** 设备id */
|
1238
|
-
deviceId: string;
|
1239
|
-
};
|
1240
|
-
|
1241
|
-
export type RecognizeBirdSuccessModel = {
|
1242
|
-
/** 识别成功的数据 */
|
1243
|
-
result: Object;
|
1244
|
-
};
|
1245
|
-
|
1246
|
-
export type DownloadCloudVideoParams = {
|
1247
|
-
/** 设备id */
|
1248
|
-
deviceId: string;
|
1249
|
-
/** url */
|
1250
|
-
url: string;
|
1251
|
-
/** 保存路径 */
|
1252
|
-
path: string;
|
1253
|
-
/** 录像前缀 */
|
1254
|
-
prefix: number;
|
1255
|
-
/** 录像片段偏移量, */
|
1256
|
-
videoSegments: number[];
|
1257
|
-
/** 单片段时长 */
|
1258
|
-
videoSegmentSize: number;
|
1259
|
-
};
|
1260
|
-
|
1261
|
-
export type CloudPlayBackDownloadSuccessModel = {
|
1262
|
-
path: string;
|
1263
|
-
};
|
1264
|
-
|
1265
|
-
export type DpsPublish = {
|
1266
|
-
/** 设备id */
|
1267
|
-
deviceId: string;
|
1268
|
-
/** dps */
|
1269
|
-
dps: any;
|
1270
|
-
/**
|
1271
|
-
* 下发通道类型
|
1272
|
-
* 0: 局域网
|
1273
|
-
* 1: 网络
|
1274
|
-
* 2: 自动
|
1275
|
-
*/
|
1276
|
-
mode: number;
|
1277
|
-
/** 预留下发逻辑配置标记,后续可以拓展,例如下发声音,下发操作后续动作等等 */
|
1278
|
-
options: any;
|
1279
|
-
};
|
1280
|
-
|
1281
|
-
export type DeviceSupportUploadLogParams = {
|
1282
|
-
/** 设备 ID */
|
1283
|
-
deviceId: string;
|
1284
|
-
};
|
1285
|
-
|
1286
|
-
export type DeviceUploadLogParams = {
|
1287
|
-
/** 设备 ID */
|
1288
|
-
deviceId: string;
|
1289
|
-
/** 超时,默认60s */
|
1290
|
-
timeout: number;
|
1291
|
-
};
|
1292
|
-
|
1293
|
-
export type DeviceUploadLogResultModel = {
|
1294
|
-
/** 设备 ID */
|
1295
|
-
deviceId: string;
|
1296
|
-
/** 成功/失败 */
|
1297
|
-
result: boolean;
|
1298
|
-
/** 扩展字段 */
|
1299
|
-
extInfo?: any;
|
1300
|
-
};
|
1301
|
-
|
1302
|
-
export type DownloadResourceParams = {
|
1303
|
-
/** device ID */
|
1304
|
-
deviceId: string;
|
1305
|
-
/** file type, 0:image, 1:video */
|
1306
|
-
fileType?: number;
|
1307
|
-
/** download url */
|
1308
|
-
url: string;
|
1309
|
-
/** download secret key */
|
1310
|
-
secretKey?: string;
|
1311
|
-
};
|
1312
|
-
|
1313
|
-
export type ShareResourceParams = {
|
1314
|
-
/** device ID */
|
1315
|
-
deviceId: string;
|
1316
|
-
/** file type, 0:image, 1:video */
|
1317
|
-
fileType?: number;
|
1318
|
-
/** download url */
|
1319
|
-
url?: string;
|
1320
|
-
/** local file path */
|
1321
|
-
filePath?: string;
|
1322
|
-
/** secret key */
|
1323
|
-
secretKey?: string;
|
1324
|
-
};
|
1325
|
-
|
1326
|
-
export type IdentifyBirdLoadingUIParams = {
|
1327
|
-
/** device ID */
|
1328
|
-
deviceId: string;
|
1329
|
-
/** identify bird id */
|
1330
|
-
identifier: string;
|
1331
|
-
/** download url */
|
1332
|
-
theme?: number;
|
1333
|
-
/** scanner color,default #FF592A */
|
1334
|
-
scannerColor?: string;
|
1335
|
-
/** ext data */
|
1336
|
-
extData?: Object;
|
1337
|
-
};
|
1338
|
-
|
1339
|
-
export type SnapshootToSandboxParams = {
|
1340
|
-
/** device ID */
|
1341
|
-
deviceId: string;
|
1342
|
-
/** file path */
|
1343
|
-
filePath?: string;
|
1344
|
-
};
|
1345
|
-
|
1346
|
-
export type SnapshootToSandboxResponse = {
|
1347
|
-
/** file path */
|
1348
|
-
filePath: string;
|
1349
|
-
/** base64 data */
|
1350
|
-
base64data: string;
|
1351
|
-
};
|
1352
|
-
|
1353
|
-
export type UploadAIFeatureImageParams = {
|
1354
|
-
/** device ID */
|
1355
|
-
deviceId: string;
|
1356
|
-
/** task id */
|
1357
|
-
taskId: string;
|
1358
|
-
/** business type, default is aiBirdIdentify */
|
1359
|
-
businessType?: string;
|
1360
|
-
/** content type, defaul is image/jpeg */
|
1361
|
-
contentType?: string;
|
1362
|
-
/** file path */
|
1363
|
-
filePath: string;
|
1364
|
-
};
|
1365
|
-
|
1366
|
-
export type UploadAIFeatureImageResponse = {
|
1367
|
-
/** bucket */
|
1368
|
-
bucket: string;
|
1369
|
-
/** requestNo */
|
1370
|
-
requestNo: string;
|
1371
|
-
/** secretKey */
|
1372
|
-
secretKey: string;
|
1373
|
-
/** file path */
|
1374
|
-
filePath: string;
|
1375
|
-
/** url */
|
1376
|
-
url: string;
|
1377
|
-
};
|
1378
|
-
|
1379
|
-
export type RemoveSnapshotParams = {
|
1380
|
-
/** device ID */
|
1381
|
-
deviceId?: string;
|
1382
|
-
};
|
1383
|
-
|
1384
|
-
export type DownloadEncryptionImageParams = {
|
1385
|
-
/** 图片连接 */
|
1386
|
-
url: string;
|
1387
|
-
/** 秘钥信息 */
|
1388
|
-
encryptKey: string;
|
1389
|
-
/** 设备id */
|
1390
|
-
deviceId: string;
|
1391
|
-
/** fileName */
|
1392
|
-
fileName: string;
|
1393
|
-
};
|
1394
|
-
|
1395
|
-
export type StringCallbackClass = {
|
1396
|
-
path: string;
|
1397
|
-
};
|
1398
|
-
|
1399
|
-
export type DeleteImageParams = {
|
1400
|
-
/** 设备id */
|
1401
|
-
deviceId: string;
|
1402
|
-
/** 图片路径 */
|
1403
|
-
imagePath: string[];
|
1404
|
-
};
|
1405
|
-
|
1406
|
-
export type MediaDeviceModel = {
|
1407
|
-
/** 设备 ID */
|
1408
|
-
deviceId: string;
|
1409
|
-
};
|
1410
|
-
|
1411
|
-
export type DownloadVideoParams = {
|
1412
|
-
/** 设备 ID */
|
1413
|
-
deviceId: string;
|
1414
|
-
/** 路径 */
|
1415
|
-
path: string;
|
1416
|
-
/** 加密key */
|
1417
|
-
encryptKey: string;
|
1418
|
-
/** 保存路径 0: 默认值,保存在手机相册。1: 保存在 App 相册。2: 同时保存到手机相册和 App 相册 */
|
1419
|
-
savePath: number;
|
1420
|
-
/** 旋转角度 仅支持:0(正常模式,不旋转)、1(顺时针旋转90度)、2(顺时针旋转180度)、3(顺时针旋转270度 */
|
1421
|
-
rotateMode: number;
|
1422
|
-
};
|
1423
|
-
|
1424
|
-
export type VideoBitrateParams = {
|
1425
|
-
/** 设备ID */
|
1426
|
-
deviceId: string;
|
1427
|
-
/** 扩展参数 */
|
1428
|
-
extendParam: Object;
|
1429
|
-
};
|
1430
|
-
|
1431
|
-
export type VideoBitRateModel = {
|
1432
|
-
/** 视频的码率kbps */
|
1433
|
-
kbps: string;
|
1434
|
-
};
|
1435
|
-
|
1436
|
-
export type SupportFloatWindowParams = {
|
1437
|
-
/** 设备ID */
|
1438
|
-
deviceId: string;
|
1439
|
-
/** 扩展参数 */
|
1440
|
-
extendParam: Object;
|
1441
|
-
};
|
1442
|
-
|
1443
|
-
export type SupportFloatWindowModel = {
|
1444
|
-
/** 是否支持画中画: true支持;false不支持 */
|
1445
|
-
isSupport: boolean;
|
1446
|
-
};
|
1447
|
-
|
1448
|
-
export type OpenFloatWindowParams = {
|
1449
|
-
/** 设备ID */
|
1450
|
-
deviceId: string;
|
1451
|
-
/** 扩展参数 */
|
1452
|
-
extendParam: Object;
|
1453
|
-
};
|
1454
|
-
|
1455
|
-
export type SupportedTalkParams = {
|
1456
|
-
/** 设备ID */
|
1457
|
-
deviceId: string;
|
1458
|
-
/** 扩展参数 */
|
1459
|
-
extendParam: Object;
|
1460
|
-
};
|
1461
|
-
|
1462
|
-
export type SupportedTalkModel = {
|
1463
|
-
/** 是否支持对讲 */
|
1464
|
-
isSupport: boolean;
|
1465
|
-
};
|
1466
|
-
|
1467
|
-
export type CurrentSupportedTalkParams = {
|
1468
|
-
/** 设备ID */
|
1469
|
-
deviceId: string;
|
1470
|
-
/** 扩展参数 */
|
1471
|
-
extendParam: Object;
|
1472
|
-
};
|
1473
|
-
|
1474
|
-
export type CurrentSupportedTalkModel = {
|
1475
|
-
/** 设备支持的对讲模式。回掉方法的参数为数值型,0 未知;1:单向对讲;2:双向对讲。 */
|
1476
|
-
talkbackMode: number;
|
1477
|
-
};
|
1478
|
-
|
1479
|
-
export type IPCLogModel = {
|
1480
|
-
/** IPC日志 */
|
1481
|
-
ipcLogString: string;
|
1482
|
-
};
|
1483
|
-
|
1484
|
-
export type WakeUpDoorBellModel = {
|
1485
|
-
/** 设备id */
|
1486
|
-
deviceId: string;
|
1487
|
-
};
|
1488
|
-
|
1489
|
-
export type EnableVoiceEffectModel = {
|
1490
|
-
/** 设备id */
|
1491
|
-
deviceId: string;
|
1492
|
-
/** 变声类型 0:原声,1:小哥哥,2:大叔,3:机器人,4:萝莉音 */
|
1493
|
-
effectType: number;
|
1494
|
-
};
|
1495
|
-
|
1496
|
-
export type AudioEffectModel = {
|
1497
|
-
/** 设备id */
|
1498
|
-
deviceId: string;
|
1499
|
-
};
|
1500
|
-
|
1501
|
-
export type LastAudioEffectModel = {
|
1502
|
-
/** 变声类型 0:原声,1:小哥哥,2:大叔,3:机器人,4:萝莉音 */
|
1503
|
-
effectType: number;
|
1504
|
-
};
|
1505
|
-
|
1506
|
-
export type ConnectModel = {
|
1507
|
-
/** 设备id */
|
1508
|
-
deviceId: string;
|
1509
|
-
};
|
1510
|
-
|
1511
|
-
export type ConnectedResultModel = {
|
1512
|
-
/** YES 已经连接 */
|
1513
|
-
isConnected: boolean;
|
1514
|
-
};
|
1515
|
-
|
1516
|
-
export type ConnectingResultModel = {
|
1517
|
-
/** YES 正在连接 */
|
1518
|
-
isConnecting: boolean;
|
1519
|
-
};
|
1520
|
-
|
1521
|
-
export type DisConnectResultModel = {
|
1522
|
-
/** YES 已经断开连接 */
|
1523
|
-
isDisConnect: boolean;
|
1524
|
-
};
|
1525
|
-
|
1526
|
-
export type RouterParamsBean = {
|
1527
|
-
/**
|
1528
|
-
* Router url: "thingSmart://" + 路由名 + "?" + 参数名1 + "=" + 参数1 + "&" + 参数名2 + "=" +参数2 +...
|
1529
|
-
* eg:"thingSmart://camera_action_doorbell?extra_camera_uuid=6c33c4b767d016738co3yw&doorbell_start_time=1645075573"
|
1530
|
-
*/
|
1531
|
-
url: string;
|
1532
|
-
};
|
1533
|
-
|
1534
|
-
export type DeviceParamsBean = {
|
1535
|
-
/** 设备ID */
|
1536
|
-
devId: string;
|
1537
|
-
};
|
1538
|
-
|
1539
|
-
export type DoorbellConfigParams = {
|
1540
|
-
/** 是否忽略门铃呼叫 */
|
1541
|
-
ignoreWhenCalling?: boolean;
|
1542
|
-
/** 门铃呼叫超时时长 */
|
1543
|
-
doorbellRingTimeOut?: number;
|
1544
|
-
};
|
1545
|
-
|
1546
|
-
export type DoorbellCallParams = {
|
1547
|
-
/** 门铃呼叫消息id */
|
1548
|
-
messageId: string;
|
1549
|
-
};
|
1550
|
-
}
|