@ray-js/api 1.6.27 → 1.6.29

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,694 @@
1
+ /**
2
+ * AIKit
3
+ *
4
+ * @version 1.1.0
5
+ */
6
+ declare namespace ty.ai {
7
+ /**
8
+ *@description 获取ai翻译列表*/
9
+ export function getTranslateRecords(params?: {
10
+ /** 设备id, 不传会查出所有设备 */
11
+ deviceId?: string;
12
+ /** 最后一个记录id,不传或0 表示不做限制 */
13
+ lastId?: number;
14
+ /** 分页大小,不传或0 表示不分页(全部) */
15
+ pageSize?: number;
16
+ success?: (params: {
17
+ /** 列表 */
18
+ list?: TranslateRecord[];
19
+ }) => void;
20
+ fail?: (params: {
21
+ errorMsg: string;
22
+ errorCode: string | number;
23
+ innerError: {
24
+ errorCode: string | number;
25
+ errorMsg: string;
26
+ };
27
+ }) => void;
28
+ complete?: () => void;
29
+ }): void;
30
+
31
+ /**
32
+ *@description 获取翻译详情*/
33
+ export function getTranslateRecord(params: {
34
+ /** 翻译记录id */
35
+ translateId: number;
36
+ success?: (params: {
37
+ /** 翻译记录id */
38
+ translateId: number;
39
+ /** 设备id */
40
+ deviceId: string;
41
+ /** 起始语言 */
42
+ originalLanguage?: string;
43
+ /** 目标语言 */
44
+ targetLanguage?: string;
45
+ /** 实时转写记录id */
46
+ recordId?: string;
47
+ /** 实时转写智能体id */
48
+ agentId?: string;
49
+ /** 文件名称 */
50
+ name: string;
51
+ /** 开始录音时间 时间戳 单位秒 */
52
+ beginAt: number;
53
+ /** 结束录音时长 单位毫秒 */
54
+ endAt: number;
55
+ /** 录音时长 */
56
+ duration: number;
57
+ /** 是否已经点击过 */
58
+ visit: boolean;
59
+ /** 是否被移除,移到垃圾桶 */
60
+ remove: boolean;
61
+ /** 录音wav文件路径 */
62
+ wavFilePath?: string;
63
+ /** 总结状态,0未总结、1总结中、2已总结、3总结失败 */
64
+ summaryStatus: number;
65
+ }) => void;
66
+ fail?: (params: {
67
+ errorMsg: string;
68
+ errorCode: string | number;
69
+ innerError: {
70
+ errorCode: string | number;
71
+ errorMsg: string;
72
+ };
73
+ }) => void;
74
+ complete?: () => void;
75
+ }): void;
76
+
77
+ /**
78
+ *@description 更新翻译记录*/
79
+ export function updateTranslateRecord(params: {
80
+ /** 翻译记录id */
81
+ translateId: number;
82
+ /** 文件名称, 不传表示不更新 */
83
+ name?: string;
84
+ /** 总结状态,0未总结、1总结中、2已总结、3总结失败, 不传表示不更新 */
85
+ summaryStatus?: string;
86
+ /** 是否已经点击过, 不传表示不更新 */
87
+ visit?: string;
88
+ /** 是否被移除,移到垃圾桶, 不传表示不更新 */
89
+ remove?: string;
90
+ success?: (params: null) => void;
91
+ fail?: (params: {
92
+ errorMsg: string;
93
+ errorCode: string | number;
94
+ innerError: {
95
+ errorCode: string | number;
96
+ errorMsg: string;
97
+ };
98
+ }) => void;
99
+ complete?: () => void;
100
+ }): void;
101
+
102
+ /**
103
+ *@description 删除翻译记录*/
104
+ export function removeTranslateRecord(params: {
105
+ /** 翻译记录id */
106
+ translateId: number;
107
+ success?: (params: null) => void;
108
+ fail?: (params: {
109
+ errorMsg: string;
110
+ errorCode: string | number;
111
+ innerError: {
112
+ errorCode: string | number;
113
+ errorMsg: string;
114
+ };
115
+ }) => void;
116
+ complete?: () => void;
117
+ }): void;
118
+
119
+ /**
120
+ *@description 获取翻译实时数据*/
121
+ export function getTranslateRealTimeResult(params: {
122
+ /** 翻译记录id */
123
+ translateId: string;
124
+ success?: (params: {
125
+ /** 实时转写数据列表 */
126
+ list?: TranslateRealTimeResult[];
127
+ }) => void;
128
+ fail?: (params: {
129
+ errorMsg: string;
130
+ errorCode: string | number;
131
+ innerError: {
132
+ errorCode: string | number;
133
+ errorMsg: string;
134
+ };
135
+ }) => void;
136
+ complete?: () => void;
137
+ }): void;
138
+
139
+ /**
140
+ *@description 执行总结*/
141
+ export function processTranslateSummary(params: {
142
+ /** 翻译记录id */
143
+ translateId: number;
144
+ /** 模版 */
145
+ template: string;
146
+ /** 语言 */
147
+ language: string;
148
+ success?: (params: null) => void;
149
+ fail?: (params: {
150
+ errorMsg: string;
151
+ errorCode: string | number;
152
+ innerError: {
153
+ errorCode: string | number;
154
+ errorMsg: string;
155
+ };
156
+ }) => void;
157
+ complete?: () => void;
158
+ }): void;
159
+
160
+ /**
161
+ *@description 总结状态查询*/
162
+ export function getTranslateSummaryProcessStatus(params: {
163
+ /** 设备id */
164
+ deviceId: string;
165
+ /** 翻译记录id列表 */
166
+ translateIds: string[];
167
+ success?: (params: {
168
+ /** 转写成功的文件id列表 */
169
+ success: string[];
170
+ /** 转写失败的文件id列表 */
171
+ fail: string[];
172
+ }) => void;
173
+ fail?: (params: {
174
+ errorMsg: string;
175
+ errorCode: string | number;
176
+ innerError: {
177
+ errorCode: string | number;
178
+ errorMsg: string;
179
+ };
180
+ }) => void;
181
+ complete?: () => void;
182
+ }): void;
183
+
184
+ /**
185
+ *@description 总结查询*/
186
+ export function getTranslateSummary(params: {
187
+ /** 翻译记录id */
188
+ translateId: number;
189
+ success?: (params: {
190
+ /** 总结文案 */
191
+ text: string;
192
+ }) => void;
193
+ fail?: (params: {
194
+ errorMsg: string;
195
+ errorCode: string | number;
196
+ innerError: {
197
+ errorCode: string | number;
198
+ errorMsg: string;
199
+ };
200
+ }) => void;
201
+ complete?: () => void;
202
+ }): void;
203
+
204
+ /**
205
+ *@description 背景音乐列表查询*/
206
+ export function backgroundMusicList(params?: {
207
+ success?: (params: {
208
+ /** 音乐列表 */
209
+ musicList?: MusicModel[];
210
+ }) => void;
211
+ fail?: (params: {
212
+ errorMsg: string;
213
+ errorCode: string | number;
214
+ innerError: {
215
+ errorCode: string | number;
216
+ errorMsg: string;
217
+ };
218
+ }) => void;
219
+ complete?: () => void;
220
+ }): void;
221
+
222
+ /**
223
+ *@description 背景音乐下载*/
224
+ export function backgroundMusicDownload(params: {
225
+ /** 音乐下载URL地址 */
226
+ musicUrl: string;
227
+ /** 音乐本地路径地址 */
228
+ musicPath: string;
229
+ success?: (params: {
230
+ /** 音乐本地地址 */
231
+ musicPath: string;
232
+ }) => void;
233
+ fail?: (params: {
234
+ errorMsg: string;
235
+ errorCode: string | number;
236
+ innerError: {
237
+ errorCode: string | number;
238
+ errorMsg: string;
239
+ };
240
+ }) => void;
241
+ complete?: () => void;
242
+ }): void;
243
+
244
+ /**
245
+ *@description 对象识别模型初始化*/
246
+ export function objectDetectCreate(params?: {
247
+ success?: (params: null) => void;
248
+ fail?: (params: {
249
+ errorMsg: string;
250
+ errorCode: string | number;
251
+ innerError: {
252
+ errorCode: string | number;
253
+ errorMsg: string;
254
+ };
255
+ }) => void;
256
+ complete?: () => void;
257
+ }): void;
258
+
259
+ /**
260
+ *@description 对象识别模型销毁*/
261
+ export function objectDetectDestroy(params?: {
262
+ success?: (params: null) => void;
263
+ fail?: (params: {
264
+ errorMsg: string;
265
+ errorCode: string | number;
266
+ innerError: {
267
+ errorCode: string | number;
268
+ errorMsg: string;
269
+ };
270
+ }) => void;
271
+ complete?: () => void;
272
+ }): void;
273
+
274
+ /**
275
+ *@description 视频对象识别处理*/
276
+ export function objectDetectForVideo(params: {
277
+ /** 视频输入路径 */
278
+ inputVideoPath: string;
279
+ /** 视频输出路径 */
280
+ outputVideoPath: string;
281
+ /**
282
+ * 视频配置信息
283
+ * -- 默认1080
284
+ */
285
+ videoConfig?: VideoConfig;
286
+ /** 识别类型 */
287
+ detectType?: DetectType;
288
+ /** 图像处理类型 */
289
+ imageEditType?: ImageEditType;
290
+ /** 配乐本地地址 */
291
+ musicPath: string;
292
+ /** 音频处理类型 */
293
+ audioEditType?: AudioEditType;
294
+ /** 原始音频音量 */
295
+ originAudioVolume?: number;
296
+ /** 覆盖音频音量 */
297
+ overlayAudioVolume?: number;
298
+ success?: (params: {
299
+ /** 输出路径 */
300
+ path: string;
301
+ }) => void;
302
+ fail?: (params: {
303
+ errorMsg: string;
304
+ errorCode: string | number;
305
+ innerError: {
306
+ errorCode: string | number;
307
+ errorMsg: string;
308
+ };
309
+ }) => void;
310
+ complete?: () => void;
311
+ }): void;
312
+
313
+ /**
314
+ *@description 取消视频对象识别处理*/
315
+ export function objectDetectForVideoCancel(params?: {
316
+ success?: (params: null) => void;
317
+ fail?: (params: {
318
+ errorMsg: string;
319
+ errorCode: string | number;
320
+ innerError: {
321
+ errorCode: string | number;
322
+ errorMsg: string;
323
+ };
324
+ }) => void;
325
+ complete?: () => void;
326
+ }): void;
327
+
328
+ /**
329
+ *@description 图片对象识别处理*/
330
+ export function objectDetectForImage(params: {
331
+ /** 图片输入路径 */
332
+ inputPath: string;
333
+ /** 图片输出路径 */
334
+ outputPath: string;
335
+ /** 识别类型 */
336
+ detectType?: DetectType;
337
+ /** 图像处理类型 */
338
+ imageEditType?: ImageEditType;
339
+ success?: (params: {
340
+ /** 输出路径 */
341
+ path: string;
342
+ }) => void;
343
+ fail?: (params: {
344
+ errorMsg: string;
345
+ errorCode: string | number;
346
+ innerError: {
347
+ errorCode: string | number;
348
+ errorMsg: string;
349
+ };
350
+ }) => void;
351
+ complete?: () => void;
352
+ }): void;
353
+
354
+ /**
355
+ *@description 取消图片对象识别处理*/
356
+ export function objectDetectForImageCancel(params?: {
357
+ success?: (params: null) => void;
358
+ fail?: (params: {
359
+ errorMsg: string;
360
+ errorCode: string | number;
361
+ innerError: {
362
+ errorCode: string | number;
363
+ errorMsg: string;
364
+ };
365
+ }) => void;
366
+ complete?: () => void;
367
+ }): void;
368
+
369
+ /**
370
+ *@description 处理进度*/
371
+ export function onVideoObjectDetectProgress(
372
+ listener: (params: DetectProgressEvent) => void
373
+ ): void;
374
+
375
+ /**
376
+ *@description 移除监听:处理进度*/
377
+ export function offVideoObjectDetectProgress(
378
+ listener: (params: DetectProgressEvent) => void
379
+ ): void;
380
+
381
+ export type TranslateRecord = {
382
+ /** 翻译记录id */
383
+ translateId: number;
384
+ /** 设备id */
385
+ deviceId: string;
386
+ /** 起始语言 */
387
+ originalLanguage?: string;
388
+ /** 目标语言 */
389
+ targetLanguage?: string;
390
+ /** 实时转写记录id */
391
+ recordId?: string;
392
+ /** 实时转写智能体id */
393
+ agentId?: string;
394
+ /** 文件名称 */
395
+ name: string;
396
+ /** 开始录音时间 时间戳 单位秒 */
397
+ beginAt: number;
398
+ /** 结束录音时长 单位毫秒 */
399
+ endAt: number;
400
+ /** 录音时长 */
401
+ duration: number;
402
+ /** 是否已经点击过 */
403
+ visit: boolean;
404
+ /** 是否被移除,移到垃圾桶 */
405
+ remove: boolean;
406
+ /** 录音wav文件路径 */
407
+ wavFilePath?: string;
408
+ /** 总结状态,0未总结、1总结中、2已总结、3总结失败 */
409
+ summaryStatus: number;
410
+ };
411
+
412
+ export type TranslateRealTimeResult = {
413
+ /** asrId */
414
+ asrId: number;
415
+ /** 翻译记录id */
416
+ translateId: number;
417
+ /** 本次录音唯一标识 */
418
+ requestId: string;
419
+ /** 翻译ai识别唯一标识id */
420
+ recordId: string;
421
+ /** 音频开始时间, 单位毫秒 */
422
+ beginTime: number;
423
+ /** 音频结束时间, 单位毫秒 */
424
+ endTime: number;
425
+ /** 翻译文案 */
426
+ text: string;
427
+ /** 识别文案 */
428
+ asr: string;
429
+ /** 通道 */
430
+ channel: number;
431
+ };
432
+
433
+ export type MusicModel = {
434
+ /** 音乐标题 */
435
+ musicTitle: string;
436
+ /** 音乐下载URL地址 */
437
+ musicUrl: string;
438
+ };
439
+
440
+ export enum VideoConfig {
441
+ /** 480 */
442
+ Level_480 = 1,
443
+
444
+ /** 540 */
445
+ Level_540 = 2,
446
+
447
+ /** 720 */
448
+ Level_720 = 3,
449
+
450
+ /** 1080(默认) */
451
+ Level_1080 = 4,
452
+ }
453
+
454
+ export enum DetectType {
455
+ /** 宠物 */
456
+ VideoDetectMainBodyTypePet = 1,
457
+
458
+ /** 人物 */
459
+ VideoDetectMainBodyTypePerson = 2,
460
+ }
461
+
462
+ export enum ImageEditType {
463
+ /** 没有效果 */
464
+ ImageEditTypeNoEffect = 1,
465
+
466
+ /** 主体突出 */
467
+ ImageEditTypeHighlight = 2,
468
+ }
469
+
470
+ export enum AudioEditType {
471
+ /** 不处理 */
472
+ audioEditTypeNULL = 1,
473
+
474
+ /** 0.5 0.5 混音 */
475
+ audioEditTypeMix = 2,
476
+
477
+ /** 视频静音 */
478
+ audioEditTypeMute = 3,
479
+ }
480
+
481
+ export type DetectProgressEvent = {
482
+ /** 处理进度 1-100 */
483
+ progress: number;
484
+ };
485
+
486
+ export type MusicModelList = {
487
+ /** 音乐列表 */
488
+ musicList?: MusicModel[];
489
+ };
490
+
491
+ export type MusicParams = {
492
+ /** 音乐下载URL地址 */
493
+ musicUrl: string;
494
+ /** 音乐本地路径地址 */
495
+ musicPath: string;
496
+ };
497
+
498
+ export type MusicResponse = {
499
+ /** 音乐本地地址 */
500
+ musicPath: string;
501
+ };
502
+
503
+ export type DetectVideoParams = {
504
+ /** 视频输入路径 */
505
+ inputVideoPath: string;
506
+ /** 视频输出路径 */
507
+ outputVideoPath: string;
508
+ /**
509
+ * 视频配置信息
510
+ * -- 默认1080
511
+ */
512
+ videoConfig?: VideoConfig;
513
+ /** 识别类型 */
514
+ detectType?: DetectType;
515
+ /** 图像处理类型 */
516
+ imageEditType?: ImageEditType;
517
+ /** 配乐本地地址 */
518
+ musicPath: string;
519
+ /** 音频处理类型 */
520
+ audioEditType?: AudioEditType;
521
+ /** 原始音频音量 */
522
+ originAudioVolume?: number;
523
+ /** 覆盖音频音量 */
524
+ overlayAudioVolume?: number;
525
+ };
526
+
527
+ export type DetectVideoResponse = {
528
+ /** 输出路径 */
529
+ path: string;
530
+ };
531
+
532
+ export type DetectImageParams = {
533
+ /** 图片输入路径 */
534
+ inputPath: string;
535
+ /** 图片输出路径 */
536
+ outputPath: string;
537
+ /** 识别类型 */
538
+ detectType?: DetectType;
539
+ /** 图像处理类型 */
540
+ imageEditType?: ImageEditType;
541
+ };
542
+
543
+ export type DetectImageResponse = {
544
+ /** 输出路径 */
545
+ path: string;
546
+ };
547
+
548
+ /**
549
+ *@description 创建 Translate 上下文 */
550
+ interface TranslateContext {
551
+ /**
552
+ *@description 开始说话*/
553
+ startSpeak(params: {
554
+ /** 通道: 0近端, 1远端 */
555
+ channel: number;
556
+ success?: (params: null) => void;
557
+ fail?: (params: {
558
+ errorMsg: string;
559
+ errorCode: string | number;
560
+ innerError: {
561
+ errorCode: string | number;
562
+ errorMsg: string;
563
+ };
564
+ }) => void;
565
+ complete?: () => void;
566
+ }): void;
567
+
568
+ /**
569
+ *@description 停止说话*/
570
+ stopSpeak(params: {
571
+ success?: (params: null) => void;
572
+ fail?: (params: {
573
+ errorMsg: string;
574
+ errorCode: string | number;
575
+ innerError: {
576
+ errorCode: string | number;
577
+ errorMsg: string;
578
+ };
579
+ }) => void;
580
+ complete?: () => void;
581
+ }): void;
582
+
583
+ /**
584
+ *@description 释放翻译任务*/
585
+ dispose(params: {
586
+ success?: (params: null) => void;
587
+ fail?: (params: {
588
+ errorMsg: string;
589
+ errorCode: string | number;
590
+ innerError: {
591
+ errorCode: string | number;
592
+ errorMsg: string;
593
+ };
594
+ }) => void;
595
+ complete?: () => void;
596
+ }): void;
597
+
598
+ /**
599
+ *@description 监听翻译异常事件*/
600
+ onTranslateError(
601
+ listener: (params: {
602
+ /** 错误码 */
603
+ code: number;
604
+ /** 错误消息 */
605
+ message?: string;
606
+ }) => void
607
+ ): void;
608
+
609
+ /**
610
+ *@description 取消监听翻译异常事件*/
611
+ offTranslateError(
612
+ listener: (params: {
613
+ /** 错误码 */
614
+ code: number;
615
+ /** 错误消息 */
616
+ message?: string;
617
+ }) => void
618
+ ): void;
619
+
620
+ /**
621
+ *@description 监听翻译实时asr状态变更事件*/
622
+ onTranslateRealTimeStatusUpdate(
623
+ listener: (params: {
624
+ /** 实时转写记录id */
625
+ recordId: string;
626
+ /** 实时转写请求id */
627
+ requestId: string;
628
+ /** 实时转写asrId */
629
+ asrId: number;
630
+ /** 声道 */
631
+ channel: number;
632
+ /** 阶段 0.任务 1.收音 2.发数据 3.收数据 4.asr 5.text 6.skill 7.tts */
633
+ phase: number;
634
+ /** 阶段状态 0. 未开启 1.进行中 2.结束 3.取消 */
635
+ status: number;
636
+ /** 文本 */
637
+ text?: string;
638
+ /** 错误码 */
639
+ errorCode?: number;
640
+ /** 错误消息 */
641
+ errorMessage?: string;
642
+ }) => void
643
+ ): void;
644
+
645
+ /**
646
+ *@description 取消监听翻译实时asr状态变更事件*/
647
+ offTranslateRealTimeStatusUpdate(
648
+ listener: (params: {
649
+ /** 实时转写记录id */
650
+ recordId: string;
651
+ /** 实时转写请求id */
652
+ requestId: string;
653
+ /** 实时转写asrId */
654
+ asrId: number;
655
+ /** 声道 */
656
+ channel: number;
657
+ /** 阶段 0.任务 1.收音 2.发数据 3.收数据 4.asr 5.text 6.skill 7.tts */
658
+ phase: number;
659
+ /** 阶段状态 0. 未开启 1.进行中 2.结束 3.取消 */
660
+ status: number;
661
+ /** 文本 */
662
+ text?: string;
663
+ /** 错误码 */
664
+ errorCode?: number;
665
+ /** 错误消息 */
666
+ errorMessage?: string;
667
+ }) => void
668
+ ): void;
669
+ }
670
+ /**
671
+ *@description 创建内部 Translate 上下文*/
672
+ export function generateTranslateTask(params: {
673
+ /** 设备id */
674
+ deviceId: string;
675
+ /** 灌流超时时间 单位秒 */
676
+ dataTimeout: number;
677
+ /** 近端语言 */
678
+ originalLanguage: string;
679
+ /** 远端语言 */
680
+ targetLanguage: string;
681
+ /** 智能体id */
682
+ agentId: 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
+ }): TranslateContext;
694
+ }
@@ -9,3 +9,4 @@
9
9
  /// <reference path="./OutdoorKit.d.ts" />
10
10
  /// <reference path="./HealthKit.d.ts" />
11
11
  /// <reference path="./MediaKit.d.ts" />
12
+ /// <reference path="./AIKit.d.ts" />
@@ -0,0 +1,21 @@
1
+ export declare const ai: {
2
+ getTranslateRecords: typeof ty.ai.getTranslateRecords;
3
+ getTranslateRecord: typeof ty.ai.getTranslateRecord;
4
+ updateTranslateRecord: typeof ty.ai.updateTranslateRecord;
5
+ removeTranslateRecord: typeof ty.ai.removeTranslateRecord;
6
+ getTranslateRealTimeResult: typeof ty.ai.getTranslateRealTimeResult;
7
+ processTranslateSummary: typeof ty.ai.processTranslateSummary;
8
+ getTranslateSummary: typeof ty.ai.getTranslateSummary;
9
+ getTranslateSummaryProcessStatus: typeof ty.ai.getTranslateSummaryProcessStatus;
10
+ backgroundMusicList: typeof ty.ai.backgroundMusicList;
11
+ backgroundMusicDownload: typeof ty.ai.backgroundMusicDownload;
12
+ objectDetectCreate: typeof ty.ai.objectDetectCreate;
13
+ objectDetectDestroy: typeof ty.ai.objectDetectDestroy;
14
+ objectDetectForImage: typeof ty.ai.objectDetectForImage;
15
+ objectDetectForImageCancel: typeof ty.ai.objectDetectForImageCancel;
16
+ objectDetectForVideo: typeof ty.ai.objectDetectForVideo;
17
+ objectDetectForVideoCancel: typeof ty.ai.objectDetectForVideoCancel;
18
+ onVideoObjectDetectProgress: typeof ty.ai.onVideoObjectDetectProgress;
19
+ offVideoObjectDetectProgress: typeof ty.ai.offVideoObjectDetectProgress;
20
+ generateTranslateTask: typeof ty.ai.generateTranslateTask;
21
+ };
@@ -0,0 +1,65 @@
1
+ /// <reference path="../@types/AIKit.d.ts" />
2
+
3
+ import { createFactory } from './utils';
4
+ const factory = createFactory('AIKit');
5
+
6
+ // ray 1.6.29 集成
7
+ export const ai = {
8
+ getTranslateRecords: factory('getTranslateRecords', {
9
+ "namespace": "ai"
10
+ }),
11
+ getTranslateRecord: factory('getTranslateRecord', {
12
+ "namespace": "ai"
13
+ }),
14
+ updateTranslateRecord: factory('updateTranslateRecord', {
15
+ "namespace": "ai"
16
+ }),
17
+ removeTranslateRecord: factory('removeTranslateRecord', {
18
+ "namespace": "ai"
19
+ }),
20
+ getTranslateRealTimeResult: factory('getTranslateRealTimeResult', {
21
+ "namespace": "ai"
22
+ }),
23
+ processTranslateSummary: factory('processTranslateSummary', {
24
+ "namespace": "ai"
25
+ }),
26
+ getTranslateSummary: factory('getTranslateSummary', {
27
+ "namespace": "ai"
28
+ }),
29
+ getTranslateSummaryProcessStatus: factory('getTranslateSummaryProcessStatus', {
30
+ "namespace": "ai"
31
+ }),
32
+ backgroundMusicList: factory('backgroundMusicList', {
33
+ "namespace": "ai"
34
+ }),
35
+ backgroundMusicDownload: factory('backgroundMusicDownload', {
36
+ "namespace": "ai"
37
+ }),
38
+ objectDetectCreate: factory('objectDetectCreate', {
39
+ "namespace": "ai"
40
+ }),
41
+ objectDetectDestroy: factory('objectDetectDestroy', {
42
+ "namespace": "ai"
43
+ }),
44
+ objectDetectForImage: factory('objectDetectForImage', {
45
+ "namespace": "ai"
46
+ }),
47
+ objectDetectForImageCancel: factory('objectDetectForImageCancel', {
48
+ "namespace": "ai"
49
+ }),
50
+ objectDetectForVideo: factory('objectDetectForVideo', {
51
+ "namespace": "ai"
52
+ }),
53
+ objectDetectForVideoCancel: factory('objectDetectForVideoCancel', {
54
+ "namespace": "ai"
55
+ }),
56
+ onVideoObjectDetectProgress: factory('onVideoObjectDetectProgress', {
57
+ "namespace": "ai"
58
+ }),
59
+ offVideoObjectDetectProgress: factory('offVideoObjectDetectProgress', {
60
+ "namespace": "ai"
61
+ }),
62
+ generateTranslateTask: factory('generateTranslateTask', {
63
+ "namespace": "ai"
64
+ })
65
+ };
package/lib/all-kits.d.ts CHANGED
@@ -10,3 +10,4 @@ export * from './OutdoorKit-1.0.4';
10
10
  export * from './MediaKit-3.4.1';
11
11
  import * as device from './DeviceKit-4.13.1';
12
12
  export { device };
13
+ export * from './AIKit-1.0.0';
package/lib/all-kits.js CHANGED
@@ -9,4 +9,5 @@ export * from './P2PKit-2.0.3';
9
9
  export * from './OutdoorKit-1.0.4';
10
10
  export * from './MediaKit-3.4.1';
11
11
  import * as device from './DeviceKit-4.13.1';
12
- export { device };
12
+ export { device };
13
+ export * from './AIKit-1.0.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "1.6.27",
3
+ "version": "1.6.29",
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.6.27",
33
- "@ray-js/router": "1.6.27",
32
+ "@ray-js/framework": "1.6.29",
33
+ "@ray-js/router": "1.6.29",
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.6.27",
39
+ "@ray-js/cli": "1.6.29",
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": "b18090b1c4c2db59972453985c9265ef56236eb2"
49
+ "gitHead": "511cd3f8d57c2888411700526781e65959037c5b"
50
50
  }
package/LICENSE.md DELETED
@@ -1,9 +0,0 @@
1
- Copyright © 2014-2022 Tuya.inc
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.