@ray-js/api 1.7.13 → 1.7.15-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.
@@ -0,0 +1,607 @@
1
+ /**
2
+ * WearKit
3
+ *
4
+ * @version 1.1.6
5
+ */
6
+ declare namespace ty.wear {
7
+ export type RecordTransferRealTimeRecognizeStatus = {
8
+ /** 设备id */
9
+ deviceId: string;
10
+ /** 实时转写记录id */
11
+ recordId: string;
12
+ /** 实时转写请求id */
13
+ requestId: string;
14
+ /** 实时转写asrId */
15
+ asrId: number;
16
+ /** 声道 */
17
+ channel: number;
18
+ /** 阶段 0.任务 1.收音 2.发数据 3.收数据 4.asr 5.text 6.skill 7.tts */
19
+ phase: number;
20
+ /** 阶段状态 0. 未开启 1.进行中 2.结束 3.取消 */
21
+ status: number;
22
+ /** 文本 */
23
+ text: string;
24
+ /** 开始时间,单位毫秒 */
25
+ beginOffset: number;
26
+ /** 结束时间,单位毫秒 */
27
+ endOffset: number;
28
+ /** 错误码 */
29
+ errorCode: number;
30
+ /** 错误消息 */
31
+ errorMessage?: string;
32
+ }
33
+ export type RecordTransferAmplitude = {
34
+ /** 设备id */
35
+ deviceId: string;
36
+ /** 振幅 0~1 */
37
+ amplitude: number;
38
+ /** 声道,只有同声传译时才有意义,0表示左耳,1表示右耳 */
39
+ channel: number;
40
+ }
41
+
42
+ export type RecordTransferStatus = {
43
+ /** 设备id */
44
+ deviceId: string;
45
+ /** 状态,0未知,1录音中,2暂停,3结束 */
46
+ state: number;
47
+ /** 是否正在开始中 */
48
+ isStarting: boolean;
49
+ /** 是否正在暂停中 */
50
+ isPausing: boolean;
51
+ /** 是否正在恢复中 */
52
+ isResuming: boolean;
53
+ /** 是否正在结束中 */
54
+ isStoping: boolean;
55
+ }
56
+ export type RecordTransferFinish = {
57
+ /** 设备id */
58
+ deviceId: string;
59
+ /** 错误码 */
60
+ code: number;
61
+ /** 错误消息 */
62
+ message?: string;
63
+ }
64
+
65
+ export type StartRecordTransferConfig = {
66
+ /** 录音类型,0呼叫,1会议,2同声传译 3:f2f翻译 */
67
+ recordType: number;
68
+ /** dp控制超时时间 单位秒 */
69
+ controlTimeout: number;
70
+ /** 录音通道 0 ble(opus) 1 Bt 2 micro 默认是0 为了适配原有逻辑 */
71
+ recordChannel: number;
72
+ /** 仅用于recordType == 3(面对面翻译确认数据来源方向)0: default 1: left 2:right */
73
+ f2fChannel: number;
74
+ /** 灌流超时时间 单位秒 */
75
+ dataTimeout: number;
76
+ /** 转写模式 0文件转写,1实时转写. 同声传译使用实时转写模式,设置为0并不起作用 */
77
+ transferType: number;
78
+ /** 是否需要翻译. 同声传译需要翻译,设置为false并不起作用 */
79
+ needTranslate: boolean;
80
+ /** 会议或者电话模式,表示起始语言 同声传译模式,表示左耳语言 */
81
+ originalLanguage?: string;
82
+ /** 会议或者电话模式,表示目标语言 同声传译模式,表示右耳语言 */
83
+ targetLanguage?: string;
84
+ /** 智能体id */
85
+ agentId?: string;
86
+ /** TTS流编码方式,通过编码后将流写入到耳机设备 0: opus_silk 1:opus_celt */
87
+ ttsEncode?: number;
88
+ /** 是否需要TTS. true:需要 false:不需要 */
89
+ needTts: boolean;
90
+ }
91
+
92
+ export type RecordTransferTaskResponse = {
93
+ /**
94
+ * 录音任务信息
95
+ */
96
+ task?: {
97
+ /** 状态,0未知,1录音中,2暂停,3结束 */
98
+ state: number;
99
+ /** 用户录音时间 单位毫秒 */
100
+ userRecordDuration: number;
101
+ /** 音频类型 0呼叫 1会议 2同声传译 */
102
+ recordType: number;
103
+ /** 转写模式 0文件转写,1实时转写 */
104
+ transferType: number;
105
+ /** 是否需要翻译 */
106
+ needTranslate: boolean;
107
+ /** 会议或者电话模式,表示起始语言 同声传译模式,表示左耳语言 */
108
+ originalLanguage?: string;
109
+ /** 会议或者电话模式,表示目标语言 同声传译模式,表示右耳语言 */
110
+ targetLanguage?: string;
111
+ /** 是否正在开始中 */
112
+ isStarting: boolean;
113
+ /** 是否正在暂停中 */
114
+ isPausing: boolean;
115
+ /** 是否正在恢复中 */
116
+ isResuming: boolean;
117
+ /** 是否正在结束中 */
118
+ isStoping: boolean;
119
+ /** 当前正在实时转写的asrId */
120
+ currentRealTimeAsrId?: string;
121
+ /** 实时转写记录id */
122
+ recordId?: string;
123
+ };
124
+ }
125
+
126
+ export type RecordTransferRealTimeItem = {
127
+ /** asrId */
128
+ asrId: number;
129
+ /** 录音转写id */
130
+ recordTransferId: number;
131
+ /** 开始偏移时间 */
132
+ beginOffset: number;
133
+ /** 结束偏移时间 */
134
+ endOffset: number;
135
+ /** 文案 */
136
+ text?: string;
137
+ /** 请求id */
138
+ requestId: string;
139
+ /** 实时转写记录id */
140
+ recordId: string;
141
+ /** 声道. 会议模式只有0声道 电话模式有0、1声道(其中0声道表示近端,1声道表示远端) 同声传译模式有0、1声道(其中0声道表示左耳,1声道表示右耳) */
142
+ channel: number;
143
+ /** 转录状态,0未转录或转写中、1转录成功、2转录失败 */
144
+ status: number;
145
+ /** asr文案 */
146
+ asr?: string;
147
+ /** translate文案 */
148
+ translate?: string;
149
+ }
150
+
151
+ export type GetRecordTransferRealTimeResultResponse = {
152
+ /** 实时转写数据列表 */
153
+ list?: Array<RecordTransferRealTimeItem>;
154
+ }
155
+
156
+ export type RecordTransferResultListRes = {
157
+ /** 录音转写id */
158
+ recordTransferId: number;
159
+ /** 目录id */
160
+ directoryId: number;
161
+ /** 设备生成的录音文件唯一标识符 */
162
+ deviceUniqueId: string;
163
+ /** 文件名称 */
164
+ name: string;
165
+ /** 录音时间 时间戳 单位秒 */
166
+ recordTime: number;
167
+ /** 录音时长 单位毫秒 */
168
+ duration: number;
169
+ /** 音频类型 0呼叫、1会议、2同声传译 */
170
+ recordType: number;
171
+ /** 音频格式 */
172
+ audioFormat: number;
173
+ /** 设备id */
174
+ deviceId: string;
175
+ /** 录音文件路径 */
176
+ filePath?: string;
177
+ /** 录音wav文件路径 */
178
+ wavFilePath?: string;
179
+ /** 振幅字符串,以**,**格开 */
180
+ amplitudes?: string;
181
+ /** 文件同步状态,0未上传、1上传中、2已上传、3上传失败 */
182
+ status: number;
183
+ /** 是否已经点击过 */
184
+ visit: boolean;
185
+ /** 是否被移除,移到垃圾桶 */
186
+ remove: boolean;
187
+ /** 云端存储的key */
188
+ storageKey?: string;
189
+ /** 转录状态,0未转录、1转录中、2已转录、3转录失败 */
190
+ transfer: number;
191
+ /** 音频文件来源,0表示app,1表示设备 */
192
+ source: number;
193
+ /** 转写模式 0文件转写,1实时转写 */
194
+ transferType: number;
195
+ /** 是否需要翻译 */
196
+ needTranslate: boolean;
197
+ /** 起始语言 */
198
+ originalLanguage?: string;
199
+ /** 目标语言 */
200
+ targetLanguage?: string;
201
+ /** 实时转写记录id */
202
+ recordId?: string;
203
+ /** 实时转写智能体id */
204
+ agentId?: string;
205
+ }
206
+
207
+ export type getRecordTransferProcessStatusRes = {
208
+ /** 转写成功的文件id列表 */
209
+ success: Array<string>;
210
+ /** 转写失败的文件id列表 */
211
+ fail: Array<string>;
212
+ }
213
+
214
+ /**
215
+ * @description 开始录音转写
216
+ */
217
+ export function startRecordTransfer(params: {
218
+ /** 设备id */
219
+ deviceId: number
220
+ /** 开始录音的配置参数 */
221
+ config: StartRecordTransferConfig
222
+ success?: (params: null) => void
223
+ fail?: (params: {
224
+ errorMsg: string
225
+ errorCode: string | number
226
+ innerError: {
227
+ errorCode: string | number
228
+ errorMsg: string
229
+ }
230
+ }) => void
231
+ }): void
232
+
233
+ /**
234
+ * @description 暂停录音
235
+ */
236
+ export function pauseRecordTransfer(params: {
237
+ /** 设备id */
238
+ deviceId: number
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
+ }): void
249
+
250
+ /**
251
+ * @description 恢复录音
252
+ */
253
+ export function resumeRecordTransfer(params: {
254
+ /** 设备id */
255
+ deviceId: number
256
+ success?: (params: null) => void
257
+ fail?: (params: {
258
+ errorMsg: string
259
+ errorCode: string | number
260
+ innerError: {
261
+ errorCode: string | number
262
+ errorMsg: string
263
+ }
264
+ }) => void
265
+ }): void
266
+
267
+ /**
268
+ * @description 结束录音
269
+ */
270
+ export function stopRecordTransfer(params: {
271
+ /** 设备id */
272
+ deviceId: number
273
+ success?: (params: null) => void
274
+ fail?: (params: {
275
+ errorMsg: string
276
+ errorCode: string | number
277
+ innerError: {
278
+ errorCode: string | number
279
+ errorMsg: string
280
+ }
281
+ }) => void
282
+ }): void
283
+
284
+ /**
285
+ * @description 获取录音转写任务
286
+ */
287
+ export function recordTransferTask(params: {
288
+ /** 设备id */
289
+ deviceId: number
290
+ success?: (params: RecordTransferTaskResponse) => void
291
+ fail?: (params: {
292
+ errorMsg: string
293
+ errorCode: string | number
294
+ innerError: {
295
+ errorCode: string | number
296
+ errorMsg: string
297
+ }
298
+ }) => void
299
+ }): void
300
+
301
+ /**
302
+ * @description 获取实时转写数据
303
+ */
304
+ export function getRecordTransferRealTimeResult(params: {
305
+ /** 文件id */
306
+ fileId?: string;
307
+ /** 实时转写记录id */
308
+ recordId?: string;
309
+ /** 查询小于等于asrId的数据 */
310
+ asrId?: string;
311
+ success?: (params: GetRecordTransferRealTimeResultResponse) => void
312
+ fail?: (params: {
313
+ errorMsg: string
314
+ errorCode: string | number
315
+ innerError: {
316
+ errorCode: string | number
317
+ errorMsg: string
318
+ }
319
+ }) => void
320
+ }): void
321
+
322
+ /**
323
+ * @description 获取录音转写列表
324
+ */
325
+ export function getRecordTransferResultList(params: {
326
+ /** 目录id, 不传会查出所有目录 */
327
+ directoryId?: string;
328
+ /** 音频类型, 0呼叫、1会议、2同声传译、 不传会查出所有音频类型 */
329
+ recordType?: string;
330
+ /** 设备id, 不传会查出所有设备 */
331
+ deviceId?: string;
332
+ /** 是否垃圾桶, 0未删除、1已删除、不传会查出删除和未删除 */
333
+ remove?: string;
334
+ /** 转写状态, 0未转写、1转写中、2转写成功、3转写失败、不传会查所有状态 */
335
+ transfer?: string;
336
+ /** 音频文件来源,0表示app,1表示设备,不传会查所有来源 */
337
+ source?: string;
338
+ /** 排序规则 0-fileId、1-recordTime、2-updateAt,不传默认fileId */
339
+ orderBy?: string;
340
+ /** 排序 0降序 1升序,不传默认降序 */
341
+ asc?: string;
342
+ /** 最后一个记录id,不传或0 表示不做限制 */
343
+ lastRecordTransferId?: string;
344
+ /** 分页大小,不传或0 表示不分页(全部) */
345
+ pageSize?: number;
346
+ success?: (params: RecordTransferResultListRes[]) => void
347
+ fail?: (params: {
348
+ errorMsg: string
349
+ errorCode: string | number
350
+ innerError: {
351
+ errorCode: string | number
352
+ errorMsg: string
353
+ }
354
+ }) => void
355
+ }): void
356
+
357
+ /**
358
+ * @description 获取录音详情
359
+ */
360
+ export function getRecordTransferResultDetail(params: {
361
+ /** 录音转写id */
362
+ recordTransferId: number;
363
+ /** 振幅最大个数 */
364
+ amplitudeMaxCount?: string;
365
+ success?: (params: RecordTransferResultListRes) => void
366
+ fail?: (params: {
367
+ errorMsg: string
368
+ errorCode: string | number
369
+ innerError: {
370
+ errorCode: string | number
371
+ errorMsg: string
372
+ }
373
+ }) => void
374
+ }): void
375
+
376
+ /**
377
+ * @description 更新录音文件信息
378
+ */
379
+ export function updateRecordTransferResult(params: {
380
+ /** 录音转写id */
381
+ recordTransferId: number;
382
+ /** 目录id, 不传表示不更新 */
383
+ directoryId?: string;
384
+ /** 文件名称, 不传表示不更新 */
385
+ name?: string;
386
+ /** 录音文件名称, 不传表示不更新 */
387
+ fileName?: string;
388
+ /** 录音wav文件名称, 不传表示不更新 */
389
+ wavFileName?: string;
390
+ /** 振幅字符串,以**,**格开, 不传表示不更新 */
391
+ amplitudes?: string;
392
+ /** 文件同步状态,0未上传、1上传中、2已上传、3上传失败, 不传表示不更新 */
393
+ status?: string;
394
+ /** 是否已经点击过, 不传表示不更新 */
395
+ visit?: string;
396
+ /** 是否被移除,移到垃圾桶, 不传表示不更新 */
397
+ remove?: string;
398
+ /** 云端存储的key, 不传表示不更新 */
399
+ storageKey?: string;
400
+ /** 转录状态,0未转录、1转录中、2已转录、3转录失败, 不传表示不更新 */
401
+ transfer?: string;
402
+ success?: (params: null) => void
403
+ fail?: (params: {
404
+ errorMsg: string
405
+ errorCode: string | number
406
+ innerError: {
407
+ errorCode: string | number
408
+ errorMsg: string
409
+ }
410
+ }) => void
411
+ }): void
412
+
413
+ /**
414
+ * @description 批量删除录音文件
415
+ */
416
+ export function removeFileList(params: {
417
+ /** 多个文件 */
418
+ fileIds?: Array<number>;
419
+ success?: (params: null) => void
420
+ fail?: (params: {
421
+ errorMsg: string
422
+ errorCode: string | number
423
+ innerError: {
424
+ errorCode: string | number
425
+ errorMsg: string
426
+ }
427
+ }) => void
428
+ }): void
429
+
430
+ /**
431
+ * @description 保存转写结果
432
+ */
433
+ export function saveRecordTransferRecognizeResult(params: {
434
+ /** 录音转写id */
435
+ recordTransferId: number;
436
+ /** 转写结果 */
437
+ text: string;
438
+ success?: (params: null) => void
439
+ fail?: (params: {
440
+ errorMsg: string
441
+ errorCode: string | number
442
+ innerError: {
443
+ errorCode: string | number
444
+ errorMsg: string
445
+ }
446
+ }) => void
447
+ }): void
448
+
449
+ /**
450
+ * @description 保存转写结果
451
+ */
452
+ export function saveRecordTransferSummaryResult(params: {
453
+ /** 录音转写id */
454
+ recordTransferId: number;
455
+ /** 转写结果 */
456
+ text: string;
457
+ success?: (params: null) => void
458
+ fail?: (params: {
459
+ errorMsg: string
460
+ errorCode: string | number
461
+ innerError: {
462
+ errorCode: string | number
463
+ errorMsg: string
464
+ }
465
+ }) => void
466
+ }): void
467
+
468
+ /**
469
+ * @description 更新转写结果
470
+ */
471
+ export function saveRecordTransferRealTimeRecognizeResult(params: {
472
+ /** 请求id */
473
+ asrId: number;
474
+ /** 文案 */
475
+ text?: string;
476
+ /** asr文案 */
477
+ asr?: string;
478
+ /** translate文案 */
479
+ translate?: string;
480
+ success?: (params: null) => void
481
+ fail?: (params: {
482
+ errorMsg: string
483
+ errorCode: string | number
484
+ innerError: {
485
+ errorCode: string | number
486
+ errorMsg: string
487
+ }
488
+ }) => void
489
+ }): void
490
+
491
+ /**
492
+ * @description 转写状态查询
493
+ */
494
+ export function getRecordTransferProcessStatus(params: {
495
+ /** 设备id */
496
+ deviceId: string;
497
+ /** 文件id列表 */
498
+ fileIds: Array<string>;
499
+ success?: (params: getRecordTransferProcessStatusRes) => void
500
+ fail?: (params: {
501
+ errorMsg: string
502
+ errorCode: string | number
503
+ innerError: {
504
+ errorCode: string | number
505
+ errorMsg: string
506
+ }
507
+ }) => void
508
+ }): void
509
+
510
+ /**
511
+ * @description 转写结果查询
512
+ */
513
+ export function getRecordTransferRecognizeResult(params: {
514
+ /** 录音转写id */
515
+ recordTransferId: number;
516
+ /** 来源:0本地 1云端 */
517
+ from: number;
518
+ success?: (params: {
519
+ /** 转写结果 */
520
+ text: string
521
+ }) => void
522
+ fail?: (params: {
523
+ errorMsg: string
524
+ errorCode: string | number
525
+ innerError: {
526
+ errorCode: string | number
527
+ errorMsg: string
528
+ }
529
+ }) => void
530
+ }): void
531
+
532
+ /**
533
+ * @description 对录音转写记录进行转写操作
534
+ */
535
+ export function processRecordTransferResult(params: {
536
+ /** 录音转写id */
537
+ recordTransferId: number;
538
+ /** 模版 */
539
+ template: string;
540
+ /** 语言 */
541
+ language: string;
542
+ success?: (params: null) => void
543
+ fail?: (params: {
544
+ errorMsg: string
545
+ errorCode: string | number
546
+ innerError: {
547
+ errorCode: string | number
548
+ errorMsg: string
549
+ }
550
+ }) => void
551
+ }): void
552
+
553
+ /**
554
+ * @description 转写总结查询
555
+ */
556
+ export function getRecordTransferSummaryResult(params: {
557
+ /** 录音转写id */
558
+ recordTransferId: number;
559
+ /** 来源:0本地 1云端 */
560
+ from: number;
561
+ success?: (params: {
562
+ /** 总结文案 */
563
+ text: string;
564
+ }) => void
565
+ fail?: (params: {
566
+ errorMsg: string
567
+ errorCode: string | number
568
+ innerError: {
569
+ errorCode: string | number
570
+ errorMsg: string
571
+ }
572
+ }) => void
573
+ }): void
574
+
575
+ /**
576
+ * @description 实时翻译录音事件通知
577
+ */
578
+ export function onRecordTransferRealTimeRecognizeStatusUpdateEvent(listener: (params: RecordTransferRealTimeRecognizeStatus) => void): void
579
+ /**
580
+ * @description 监听声音振幅
581
+ */
582
+ export function onRecordTransferAmplitudeUpdateEvent(listener: (params: RecordTransferAmplitude) => void): void
583
+ /**
584
+ * @description 录音状态变更事件
585
+ */
586
+ export function onRecordTransferStatusUpdateEvent(listener: (params: RecordTransferStatus) => void): void
587
+ /**
588
+ * @description 录音结束的通知
589
+ */
590
+ export function onRecordTransferFinishEvent(listener: (params: RecordTransferFinish) => void): void
591
+ /**
592
+ * @description 移除实时翻译录音事件通知
593
+ */
594
+ export function offRecordTransferRealTimeRecognizeStatusUpdateEvent(listener: (params: RecordTransferRealTimeRecognizeStatus) => void): void
595
+ /**
596
+ * @description 移除监听声音振幅
597
+ */
598
+ export function offRecordTransferAmplitudeUpdateEvent(listener: (params: RecordTransferAmplitude) => void): void
599
+ /**
600
+ * @description 移除录音状态变更事件
601
+ */
602
+ export function offRecordTransferStatusUpdateEvent(listener: (params: RecordTransferStatus) => void): void
603
+ /**
604
+ * @description 移除录音结束的通知
605
+ */
606
+ export function offRecordTransferFinishEvent(listener: (params: RecordTransferFinish) => void): void
607
+ }
@@ -12,3 +12,4 @@
12
12
  /// <reference path="./AIKit.d.ts" />
13
13
  /// <reference path="./IPCKit.d.ts" />
14
14
  /// <reference path="./PlayNetKit.d.ts" />
15
+ /// <reference path="./WearKit.d.ts" />
@@ -114,7 +114,7 @@ declare namespace ty {
114
114
  */
115
115
  export function deleteCleaningRecord(params: DeleteCleaningRecordParams): Promise<DeleteCleaningRecordResponse>;
116
116
 
117
- // #region 获取扫地机的语音包列表
117
+ // # region 获取扫地机的语音包列表
118
118
  type GetVoiceListParams = {
119
119
  //设备id
120
120
  devId: string;
@@ -161,10 +161,8 @@ declare namespace ty {
161
161
  };
162
162
 
163
163
  type GetGyroCleanRecordsResponse = {
164
- datas: {
165
- uuid: string;
166
- dps: any[];
167
- }[];
164
+ datas: { dpId: number; gid: number; gmtCreate: number; recordId: string; uuid: string; value: string }[];
165
+ totalCount: number;
168
166
  };
169
167
 
170
168
  /**
@@ -184,13 +182,14 @@ declare namespace ty {
184
182
  };
185
183
 
186
184
  type GetGyroCleanRecordDetailResponse = {
187
- datas: {
188
- dataList: string[];
189
- startRow: string;
190
- devId: string;
191
- subRecordId: number; // 记录id;
192
- hasNext: boolean; // 是否有下一页
193
- };
185
+ dataList: string[];
186
+ startRow: string;
187
+ devId: string;
188
+ mapId: number;
189
+ startTime: number;
190
+ endTime: number;
191
+ subRecordId: number; // 记录id
192
+ hasNext: boolean; // 是否有下一页
194
193
  };
195
194
 
196
195
  /**
@@ -200,8 +199,24 @@ declare namespace ty {
200
199
  export function getGyroCleanRecordDetail(
201
200
  params: GetGyroCleanRecordDetailParams,
202
201
  ): Promise<GetGyroCleanRecordDetailResponse>;
202
+ // #endregion
203
203
 
204
- // #region 获取扫地机的历史地图
204
+ // #region 删除陀螺仪扫地机的清扫记录
205
+ type DeleteGyroCleanRecordParams = {
206
+ devId: string; // 设备id
207
+ uuid: string; // 清扫记录的recordId,多条记录用逗号隔开
208
+ };
209
+
210
+ type DeleteGyroCleanRecordResponse = boolean;
211
+
212
+ /**
213
+ * 删除陀螺仪扫地机的清扫记录
214
+ * @returns 删除陀螺仪扫地机的清扫记录结果的 Promise
215
+ */
216
+ export function deleteGyroCleanRecord(params: DeleteGyroCleanRecordParams): Promise<DeleteGyroCleanRecordResponse>;
217
+ // #endregion
218
+
219
+ // #region 获取陀螺仪扫地机的最新清扫地图
205
220
  type GetGyroLatestCleanMapParams = {
206
221
  start: number; // startRow
207
222
  size: number; // 分页
@@ -209,13 +224,14 @@ declare namespace ty {
209
224
  };
210
225
 
211
226
  type GetGyroLatestCleanMapResponse = {
212
- datas: {
213
- dataList: string[];
214
- startRow: string;
215
- devId: string;
216
- subRecordId: number; // 记录id;
217
- hasNext: boolean; // 是否有下一页
218
- };
227
+ dataList: string[];
228
+ startRow: string;
229
+ devId: string;
230
+ mapId: number;
231
+ startTime: number;
232
+ endTime: number;
233
+ subRecordId: number; // 记录id
234
+ hasNext: boolean; // 是否有下一页
219
235
  };
220
236
 
221
237
  /**
@@ -210,6 +210,7 @@ interface IpcContext {
210
210
  setTrackingStatus(res?: Callback & { status?: boolean }): void
211
211
  getVideoInfo(res?: Callback): void
212
212
  isMuted(res: Callback & { success: (r: { isMuted: boolean }) => void }): void
213
+ setConfig(res: Callback & { config?: string }): void
213
214
  }
214
215
 
215
216
  interface CameraContext {
@@ -0,0 +1,28 @@
1
+ /// <reference path="../@types/WearKit.d.ts" />
2
+ export declare const wear: {
3
+ startRecordTransfer: typeof ty.wear.startRecordTransfer;
4
+ pauseRecordTransfer: typeof ty.wear.pauseRecordTransfer;
5
+ resumeRecordTransfer: typeof ty.wear.resumeRecordTransfer;
6
+ stopRecordTransfer: typeof ty.wear.stopRecordTransfer;
7
+ recordTransferTask: typeof ty.wear.recordTransferTask;
8
+ getRecordTransferRealTimeResult: typeof ty.wear.getRecordTransferRealTimeResult;
9
+ getRecordTransferResultList: typeof ty.wear.getRecordTransferResultList;
10
+ getRecordTransferResultDetail: typeof ty.wear.getRecordTransferResultDetail;
11
+ updateRecordTransferResult: typeof ty.wear.updateRecordTransferResult;
12
+ removeFileList: typeof ty.wear.removeFileList;
13
+ saveRecordTransferRecognizeResult: typeof ty.wear.saveRecordTransferRecognizeResult;
14
+ saveRecordTransferSummaryResult: typeof ty.wear.saveRecordTransferSummaryResult;
15
+ saveRecordTransferRealTimeRecognizeResult: typeof ty.wear.saveRecordTransferRealTimeRecognizeResult;
16
+ getRecordTransferProcessStatus: typeof ty.wear.getRecordTransferProcessStatus;
17
+ getRecordTransferRecognizeResult: typeof ty.wear.getRecordTransferRecognizeResult;
18
+ processRecordTransferResult: typeof ty.wear.processRecordTransferResult;
19
+ getRecordTransferSummaryResult: typeof ty.wear.getRecordTransferSummaryResult;
20
+ onRecordTransferRealTimeRecognizeStatusUpdateEvent: typeof ty.wear.onRecordTransferRealTimeRecognizeStatusUpdateEvent;
21
+ onRecordTransferAmplitudeUpdateEvent: typeof ty.wear.onRecordTransferAmplitudeUpdateEvent;
22
+ onRecordTransferStatusUpdateEvent: typeof ty.wear.onRecordTransferStatusUpdateEvent;
23
+ onRecordTransferFinishEvent: typeof ty.wear.onRecordTransferFinishEvent;
24
+ offRecordTransferRealTimeRecognizeStatusUpdateEvent: typeof ty.wear.offRecordTransferRealTimeRecognizeStatusUpdateEvent;
25
+ offRecordTransferAmplitudeUpdateEvent: typeof ty.wear.offRecordTransferAmplitudeUpdateEvent;
26
+ offRecordTransferStatusUpdateEvent: typeof ty.wear.offRecordTransferStatusUpdateEvent;
27
+ offRecordTransferFinishEvent: typeof ty.wear.offRecordTransferFinishEvent;
28
+ };
@@ -0,0 +1,81 @@
1
+ /// <reference path="../@types/WearKit.d.ts" />
2
+
3
+ import { createFactory } from './utils';
4
+ const factory = createFactory('WearKit');
5
+ export const wear = {
6
+ startRecordTransfer: factory('startRecordTransfer', {
7
+ "namespace": "wear"
8
+ }),
9
+ pauseRecordTransfer: factory('pauseRecordTransfer', {
10
+ "namespace": "wear"
11
+ }),
12
+ resumeRecordTransfer: factory('resumeRecordTransfer', {
13
+ "namespace": "wear"
14
+ }),
15
+ stopRecordTransfer: factory('stopRecordTransfer', {
16
+ "namespace": "wear"
17
+ }),
18
+ recordTransferTask: factory('recordTransferTask', {
19
+ "namespace": "wear"
20
+ }),
21
+ getRecordTransferRealTimeResult: factory('getRecordTransferRealTimeResult', {
22
+ "namespace": "wear"
23
+ }),
24
+ getRecordTransferResultList: factory('getRecordTransferResultList', {
25
+ "namespace": "wear"
26
+ }),
27
+ getRecordTransferResultDetail: factory('getRecordTransferResultDetail', {
28
+ "namespace": "wear"
29
+ }),
30
+ updateRecordTransferResult: factory('updateRecordTransferResult', {
31
+ "namespace": "wear"
32
+ }),
33
+ removeFileList: factory('removeFileList', {
34
+ "namespace": "wear"
35
+ }),
36
+ saveRecordTransferRecognizeResult: factory('saveRecordTransferRecognizeResult', {
37
+ "namespace": "wear"
38
+ }),
39
+ saveRecordTransferSummaryResult: factory('saveRecordTransferSummaryResult', {
40
+ "namespace": "wear"
41
+ }),
42
+ saveRecordTransferRealTimeRecognizeResult: factory('saveRecordTransferRealTimeRecognizeResult', {
43
+ "namespace": "wear"
44
+ }),
45
+ getRecordTransferProcessStatus: factory('getRecordTransferProcessStatus', {
46
+ "namespace": "wear"
47
+ }),
48
+ getRecordTransferRecognizeResult: factory('getRecordTransferRecognizeResult', {
49
+ "namespace": "wear"
50
+ }),
51
+ processRecordTransferResult: factory('processRecordTransferResult', {
52
+ "namespace": "wear"
53
+ }),
54
+ getRecordTransferSummaryResult: factory('getRecordTransferSummaryResult', {
55
+ "namespace": "wear"
56
+ }),
57
+ onRecordTransferRealTimeRecognizeStatusUpdateEvent: factory('onRecordTransferRealTimeRecognizeStatusUpdateEvent', {
58
+ "namespace": "wear"
59
+ }),
60
+ onRecordTransferAmplitudeUpdateEvent: factory('onRecordTransferAmplitudeUpdateEvent', {
61
+ "namespace": "wear"
62
+ }),
63
+ onRecordTransferStatusUpdateEvent: factory('onRecordTransferStatusUpdateEvent', {
64
+ "namespace": "wear"
65
+ }),
66
+ onRecordTransferFinishEvent: factory('onRecordTransferFinishEvent', {
67
+ "namespace": "wear"
68
+ }),
69
+ offRecordTransferRealTimeRecognizeStatusUpdateEvent: factory('offRecordTransferRealTimeRecognizeStatusUpdateEvent', {
70
+ "namespace": "wear"
71
+ }),
72
+ offRecordTransferAmplitudeUpdateEvent: factory('offRecordTransferAmplitudeUpdateEvent', {
73
+ "namespace": "wear"
74
+ }),
75
+ offRecordTransferStatusUpdateEvent: factory('offRecordTransferStatusUpdateEvent', {
76
+ "namespace": "wear"
77
+ }),
78
+ offRecordTransferFinishEvent: factory('offRecordTransferFinishEvent', {
79
+ "namespace": "wear"
80
+ })
81
+ };
package/lib/all-kits.d.ts CHANGED
@@ -12,3 +12,4 @@ import * as device from './DeviceKit-4.13.1';
12
12
  export { device };
13
13
  export * from './AIKit-1.2.0';
14
14
  export * from './IPCKit-6.4.5';
15
+ export * from './WearKit-1.1.6';
package/lib/all-kits.js CHANGED
@@ -11,4 +11,5 @@ export * from './MediaKit-3.4.1';
11
11
  import * as device from './DeviceKit-4.13.1';
12
12
  export { device };
13
13
  export * from './AIKit-1.2.0';
14
- export * from './IPCKit-6.4.5';
14
+ export * from './IPCKit-6.4.5';
15
+ export * from './WearKit-1.1.6';
@@ -292,7 +292,7 @@ function getVasServiceConfigList(params) {
292
292
  * 获取移动摄像机轨迹路径列表
293
293
  */
294
294
  function getMovePathList(params) {
295
- return requestFunc('m.ipc.move.point.by.path.list', params, '3.0');
295
+ return requestFunc('m.ipc.move.point.by.path.list', params, '1.0');
296
296
  }
297
297
 
298
298
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "1.7.13",
3
+ "version": "1.7.15-alpha.0",
4
4
  "description": "Ray universal api",
5
5
  "keywords": [
6
6
  "ray"
@@ -29,14 +29,14 @@
29
29
  "watch": "ray start --type=component"
30
30
  },
31
31
  "dependencies": {
32
- "@ray-js/framework": "1.7.13",
33
- "@ray-js/router": "1.7.13",
32
+ "@ray-js/framework": "1.7.15-alpha.0",
33
+ "@ray-js/router": "1.7.15-alpha.0",
34
34
  "@ray-js/wechat": "^0.3.8",
35
35
  "base64-browser": "^1.0.1",
36
36
  "query-string": "^7.1.3"
37
37
  },
38
38
  "devDependencies": {
39
- "@ray-js/cli": "1.7.13",
39
+ "@ray-js/cli": "1.7.15-alpha.0",
40
40
  "art-template": "^4.13.4",
41
41
  "fs-extra": "^10.1.0",
42
42
  "miniprogram-api-typings": "^3.12.3",
@@ -46,5 +46,5 @@
46
46
  "access": "public",
47
47
  "registry": "https://registry.npmjs.com"
48
48
  },
49
- "gitHead": "0a3f037c3cb0cc2f7a5b5adbbce432b0808a4010"
49
+ "gitHead": "523d1c33e98ffbd0a1689b71f48a0200a7bfa0f9"
50
50
  }