@ray-js/api 1.7.79 → 1.7.80
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/AIKit.d.ts +1140 -1009
- package/@types/AVideoKit.d.ts +26 -101
- package/@types/BaseKit.d.ts +234 -210
- package/@types/BizKit.d.ts +271 -296
- package/@types/DeviceKit.d.ts +57 -88
- package/@types/GroupCITestKit.d.ts +1 -3
- package/@types/HealthKit.d.ts +273 -230
- package/@types/HomeKit.d.ts +1062 -891
- package/@types/IPCKit.d.ts +23 -50
- package/@types/LightKit.d.ts +2 -2
- package/@types/MapKit.d.ts +592 -381
- package/@types/MediaPlayerKit.d.ts +4 -28
- package/@types/MiniKit.d.ts +198 -375
- package/@types/P2PKit.d.ts +139 -205
- package/@types/PayKit.d.ts +10 -79
- package/@types/SweeperKit.d.ts +10 -10
- package/@types/ThirdAuthKit.d.ts +28 -252
- package/@types/WearKit.d.ts +630 -1593
- package/@types/api-extend.d.ts +0 -63
- package/lib/AIKit-1.6.0.d.ts +732 -35
- package/lib/AIKit-1.6.0.js +732 -51
- package/lib/BaseKit-3.17.7.d.ts +0 -214
- package/lib/BaseKit-3.17.7.js +1 -227
- package/lib/DeviceKit-4.13.1.d.ts +3666 -0
- package/lib/DeviceKit-4.13.1.js +3666 -0
- package/lib/HealthKit-6.5.0.d.ts +603 -0
- package/lib/HealthKit-6.5.0.js +603 -0
- package/lib/HomeKit-3.1.4.d.ts +4 -0
- package/lib/HomeKit-3.1.4.js +4 -0
- package/lib/IPCKit-6.4.5.d.ts +0 -1
- package/lib/IPCKit-6.4.5.js +0 -1
- package/lib/MapKit-3.4.13.d.ts +251 -0
- package/lib/MapKit-3.4.13.js +251 -0
- package/lib/MediaKit-3.4.1.d.ts +16 -0
- package/lib/MediaKit-3.4.1.js +16 -0
- package/lib/PlayNetKit-1.3.30.d.ts +930 -0
- package/lib/PlayNetKit-1.3.30.js +930 -0
- package/lib/cloud/alarm.d.ts +38 -5
- package/lib/cloud/alarm.js +38 -5
- package/lib/cloud/device.d.ts +42 -6
- package/lib/cloud/device.js +42 -6
- package/lib/cloud/gateway.d.ts +16 -0
- package/lib/cloud/gateway.js +16 -0
- package/lib/cloud/health.d.ts +1 -0
- package/lib/cloud/health.js +272 -0
- package/lib/cloud/interface.d.ts +161 -0
- package/lib/cloud/interface.js +18 -0
- package/lib/cloud/statistic.d.ts +112 -26
- package/lib/cloud/statistic.js +112 -26
- package/lib/cloud/timer.d.ts +2 -4
- package/lib/nativeRouters/outdoors.d.ts +2 -0
- package/lib/nativeRouters/outdoors.js +2 -0
- package/lib/nativeRouters/remoteGroup.d.ts +2 -0
- package/lib/nativeRouters/remoteGroup.js +2 -0
- package/lib/panel/publishDps.js +1 -1
- package/package.json +5 -5
package/lib/AIKit-1.6.0.d.ts
CHANGED
|
@@ -2,265 +2,962 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
* @since @ray-js/ray 1.6.29
|
|
5
|
+
* @example 基础调用
|
|
6
|
+
* ```tsx
|
|
7
|
+
* import { ai } from '@ray-js/ray';
|
|
8
|
+
*
|
|
9
|
+
* const { getTranslateRecords } = ai;
|
|
10
|
+
*
|
|
11
|
+
* getTranslateRecords({
|
|
12
|
+
* success: (result) => {
|
|
13
|
+
* console.log('getTranslateRecords success', result);
|
|
14
|
+
* },
|
|
15
|
+
* fail: (error) => {
|
|
16
|
+
* console.log('getTranslateRecords fail', error.errorMsg);
|
|
17
|
+
* },
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
5
20
|
*/
|
|
6
21
|
export declare const getTranslateRecords: typeof ty.ai.getTranslateRecords;
|
|
7
22
|
/**
|
|
8
23
|
* @public
|
|
9
24
|
* @since @ray-js/ray 1.6.29
|
|
25
|
+
* @example 基础调用
|
|
26
|
+
* ```tsx
|
|
27
|
+
* import { ai } from '@ray-js/ray';
|
|
28
|
+
*
|
|
29
|
+
* const { getTranslateRecord } = ai;
|
|
30
|
+
*
|
|
31
|
+
* getTranslateRecord({
|
|
32
|
+
* translateId: 0,
|
|
33
|
+
* success: (result) => {
|
|
34
|
+
* console.log('getTranslateRecord success', result);
|
|
35
|
+
* },
|
|
36
|
+
* fail: (error) => {
|
|
37
|
+
* console.log('getTranslateRecord fail', error.errorMsg);
|
|
38
|
+
* },
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
10
41
|
*/
|
|
11
42
|
export declare const getTranslateRecord: typeof ty.ai.getTranslateRecord;
|
|
12
43
|
/**
|
|
13
44
|
* @public
|
|
14
45
|
* @since @ray-js/ray 1.6.29
|
|
46
|
+
* @example 基础调用
|
|
47
|
+
* ```tsx
|
|
48
|
+
* import { ai } from '@ray-js/ray';
|
|
49
|
+
*
|
|
50
|
+
* const { updateTranslateRecord } = ai;
|
|
51
|
+
*
|
|
52
|
+
* updateTranslateRecord({
|
|
53
|
+
* translateId: 0,
|
|
54
|
+
* success: () => {
|
|
55
|
+
* console.log('updateTranslateRecord success');
|
|
56
|
+
* },
|
|
57
|
+
* fail: (error) => {
|
|
58
|
+
* console.log('updateTranslateRecord fail', error.errorMsg);
|
|
59
|
+
* },
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
15
62
|
*/
|
|
16
63
|
export declare const updateTranslateRecord: typeof ty.ai.updateTranslateRecord;
|
|
17
64
|
/**
|
|
18
65
|
* @public
|
|
19
66
|
* @since @ray-js/ray 1.6.29
|
|
67
|
+
* @example 基础调用
|
|
68
|
+
* ```tsx
|
|
69
|
+
* import { ai } from '@ray-js/ray';
|
|
70
|
+
*
|
|
71
|
+
* const { removeTranslateRecord } = ai;
|
|
72
|
+
*
|
|
73
|
+
* removeTranslateRecord({
|
|
74
|
+
* translateId: 0,
|
|
75
|
+
* success: () => {
|
|
76
|
+
* console.log('removeTranslateRecord success');
|
|
77
|
+
* },
|
|
78
|
+
* fail: (error) => {
|
|
79
|
+
* console.log('removeTranslateRecord fail', error.errorMsg);
|
|
80
|
+
* },
|
|
81
|
+
* });
|
|
82
|
+
* ```
|
|
20
83
|
*/
|
|
21
84
|
export declare const removeTranslateRecord: typeof ty.ai.removeTranslateRecord;
|
|
22
85
|
/**
|
|
23
86
|
* @public
|
|
24
87
|
* @since @ray-js/ray 1.6.29
|
|
88
|
+
* @example 基础调用
|
|
89
|
+
* ```tsx
|
|
90
|
+
* import { ai } from '@ray-js/ray';
|
|
91
|
+
*
|
|
92
|
+
* const { getTranslateRealTimeResult } = ai;
|
|
93
|
+
*
|
|
94
|
+
* getTranslateRealTimeResult({
|
|
95
|
+
* translateId: 'example',
|
|
96
|
+
* success: (result) => {
|
|
97
|
+
* console.log('getTranslateRealTimeResult success', result);
|
|
98
|
+
* },
|
|
99
|
+
* fail: (error) => {
|
|
100
|
+
* console.log('getTranslateRealTimeResult fail', error.errorMsg);
|
|
101
|
+
* },
|
|
102
|
+
* });
|
|
103
|
+
* ```
|
|
25
104
|
*/
|
|
26
105
|
export declare const getTranslateRealTimeResult: typeof ty.ai.getTranslateRealTimeResult;
|
|
27
106
|
/**
|
|
28
107
|
* @public
|
|
29
108
|
* @since @ray-js/ray 1.6.29
|
|
109
|
+
* @example 基础调用
|
|
110
|
+
* ```tsx
|
|
111
|
+
* import { ai } from '@ray-js/ray';
|
|
112
|
+
*
|
|
113
|
+
* const { processTranslateSummary } = ai;
|
|
114
|
+
*
|
|
115
|
+
* processTranslateSummary({
|
|
116
|
+
* translateId: 0,
|
|
117
|
+
* template: 'example',
|
|
118
|
+
* language: 'example',
|
|
119
|
+
* success: () => {
|
|
120
|
+
* console.log('processTranslateSummary success');
|
|
121
|
+
* },
|
|
122
|
+
* fail: (error) => {
|
|
123
|
+
* console.log('processTranslateSummary fail', error.errorMsg);
|
|
124
|
+
* },
|
|
125
|
+
* });
|
|
126
|
+
* ```
|
|
30
127
|
*/
|
|
31
128
|
export declare const processTranslateSummary: typeof ty.ai.processTranslateSummary;
|
|
32
129
|
/**
|
|
33
130
|
* @public
|
|
34
131
|
* @since @ray-js/ray 1.6.29
|
|
132
|
+
* @example 基础调用
|
|
133
|
+
* ```tsx
|
|
134
|
+
* import { ai } from '@ray-js/ray';
|
|
135
|
+
*
|
|
136
|
+
* const { getTranslateSummary } = ai;
|
|
137
|
+
*
|
|
138
|
+
* getTranslateSummary({
|
|
139
|
+
* translateId: 0,
|
|
140
|
+
* success: (result) => {
|
|
141
|
+
* console.log('getTranslateSummary success', result);
|
|
142
|
+
* },
|
|
143
|
+
* fail: (error) => {
|
|
144
|
+
* console.log('getTranslateSummary fail', error.errorMsg);
|
|
145
|
+
* },
|
|
146
|
+
* });
|
|
147
|
+
* ```
|
|
35
148
|
*/
|
|
36
149
|
export declare const getTranslateSummary: typeof ty.ai.getTranslateSummary;
|
|
37
150
|
/**
|
|
38
151
|
* @public
|
|
39
152
|
* @since @ray-js/ray 1.6.29
|
|
153
|
+
* @example 基础调用
|
|
154
|
+
* ```tsx
|
|
155
|
+
* import { ai } from '@ray-js/ray';
|
|
156
|
+
*
|
|
157
|
+
* const { getTranslateSummaryProcessStatus } = ai;
|
|
158
|
+
*
|
|
159
|
+
* getTranslateSummaryProcessStatus({
|
|
160
|
+
* deviceId: 'device_001',
|
|
161
|
+
* translateIds: ['example'],
|
|
162
|
+
* success: (result) => {
|
|
163
|
+
* console.log('getTranslateSummaryProcessStatus success', result);
|
|
164
|
+
* },
|
|
165
|
+
* fail: (error) => {
|
|
166
|
+
* console.log('getTranslateSummaryProcessStatus fail', error.errorMsg);
|
|
167
|
+
* },
|
|
168
|
+
* });
|
|
169
|
+
* ```
|
|
40
170
|
*/
|
|
41
171
|
export declare const getTranslateSummaryProcessStatus: typeof ty.ai.getTranslateSummaryProcessStatus;
|
|
42
172
|
/**
|
|
43
173
|
* @public
|
|
44
174
|
* @since @ray-js/ray 1.6.29
|
|
175
|
+
* @example 基础调用
|
|
176
|
+
* ```tsx
|
|
177
|
+
* import { ai } from '@ray-js/ray';
|
|
178
|
+
*
|
|
179
|
+
* const { backgroundMusicList } = ai;
|
|
180
|
+
*
|
|
181
|
+
* backgroundMusicList({
|
|
182
|
+
* success: (result) => {
|
|
183
|
+
* console.log('backgroundMusicList success', result);
|
|
184
|
+
* },
|
|
185
|
+
* fail: (error) => {
|
|
186
|
+
* console.log('backgroundMusicList fail', error.errorMsg);
|
|
187
|
+
* },
|
|
188
|
+
* });
|
|
189
|
+
* ```
|
|
45
190
|
*/
|
|
46
191
|
export declare const backgroundMusicList: typeof ty.ai.backgroundMusicList;
|
|
47
192
|
/**
|
|
48
193
|
* @public
|
|
49
194
|
* @since @ray-js/ray 1.6.29
|
|
195
|
+
* @example 基础调用
|
|
196
|
+
* ```tsx
|
|
197
|
+
* import { ai } from '@ray-js/ray';
|
|
198
|
+
*
|
|
199
|
+
* const { backgroundMusicDownload } = ai;
|
|
200
|
+
*
|
|
201
|
+
* backgroundMusicDownload({
|
|
202
|
+
* musicUrl: 'example',
|
|
203
|
+
* musicPath: 'example',
|
|
204
|
+
* success: (result) => {
|
|
205
|
+
* console.log('backgroundMusicDownload success', result);
|
|
206
|
+
* },
|
|
207
|
+
* fail: (error) => {
|
|
208
|
+
* console.log('backgroundMusicDownload fail', error.errorMsg);
|
|
209
|
+
* },
|
|
210
|
+
* });
|
|
211
|
+
* ```
|
|
50
212
|
*/
|
|
51
213
|
export declare const backgroundMusicDownload: typeof ty.ai.backgroundMusicDownload;
|
|
52
214
|
/**
|
|
53
215
|
* @public
|
|
54
216
|
* @since @ray-js/ray 1.6.29
|
|
217
|
+
* @example 基础调用
|
|
218
|
+
* ```tsx
|
|
219
|
+
* import { ai } from '@ray-js/ray';
|
|
220
|
+
*
|
|
221
|
+
* const { objectDetectCreate } = ai;
|
|
222
|
+
*
|
|
223
|
+
* objectDetectCreate({
|
|
224
|
+
* success: () => {
|
|
225
|
+
* console.log('objectDetectCreate success');
|
|
226
|
+
* },
|
|
227
|
+
* fail: (error) => {
|
|
228
|
+
* console.log('objectDetectCreate fail', error.errorMsg);
|
|
229
|
+
* },
|
|
230
|
+
* });
|
|
231
|
+
* ```
|
|
55
232
|
*/
|
|
56
233
|
export declare const objectDetectCreate: typeof ty.ai.objectDetectCreate;
|
|
57
234
|
/**
|
|
58
235
|
* @public
|
|
59
236
|
* @since @ray-js/ray 1.6.29
|
|
237
|
+
* @example 基础调用
|
|
238
|
+
* ```tsx
|
|
239
|
+
* import { ai } from '@ray-js/ray';
|
|
240
|
+
*
|
|
241
|
+
* const { objectDetectDestroy } = ai;
|
|
242
|
+
*
|
|
243
|
+
* objectDetectDestroy({
|
|
244
|
+
* success: () => {
|
|
245
|
+
* console.log('objectDetectDestroy success');
|
|
246
|
+
* },
|
|
247
|
+
* fail: (error) => {
|
|
248
|
+
* console.log('objectDetectDestroy fail', error.errorMsg);
|
|
249
|
+
* },
|
|
250
|
+
* });
|
|
251
|
+
* ```
|
|
60
252
|
*/
|
|
61
253
|
export declare const objectDetectDestroy: typeof ty.ai.objectDetectDestroy;
|
|
62
254
|
/**
|
|
63
255
|
* @public
|
|
64
256
|
* @since @ray-js/ray 1.6.29
|
|
257
|
+
* @example 基础调用
|
|
258
|
+
* ```tsx
|
|
259
|
+
* import { ai } from '@ray-js/ray';
|
|
260
|
+
*
|
|
261
|
+
* const { objectDetectForImage } = ai;
|
|
262
|
+
*
|
|
263
|
+
* objectDetectForImage({
|
|
264
|
+
* inputPath: 'example',
|
|
265
|
+
* outputPath: 'example',
|
|
266
|
+
* success: (result) => {
|
|
267
|
+
* console.log('objectDetectForImage success', result);
|
|
268
|
+
* },
|
|
269
|
+
* fail: (error) => {
|
|
270
|
+
* console.log('objectDetectForImage fail', error.errorMsg);
|
|
271
|
+
* },
|
|
272
|
+
* });
|
|
273
|
+
* ```
|
|
65
274
|
*/
|
|
66
275
|
export declare const objectDetectForImage: typeof ty.ai.objectDetectForImage;
|
|
67
276
|
/**
|
|
68
277
|
* @public
|
|
69
278
|
* @since @ray-js/ray 1.6.29
|
|
279
|
+
* @example 基础调用
|
|
280
|
+
* ```tsx
|
|
281
|
+
* import { ai } from '@ray-js/ray';
|
|
282
|
+
*
|
|
283
|
+
* const { objectDetectForImageCancel } = ai;
|
|
284
|
+
*
|
|
285
|
+
* objectDetectForImageCancel({
|
|
286
|
+
* success: () => {
|
|
287
|
+
* console.log('objectDetectForImageCancel success');
|
|
288
|
+
* },
|
|
289
|
+
* fail: (error) => {
|
|
290
|
+
* console.log('objectDetectForImageCancel fail', error.errorMsg);
|
|
291
|
+
* },
|
|
292
|
+
* });
|
|
293
|
+
* ```
|
|
70
294
|
*/
|
|
71
295
|
export declare const objectDetectForImageCancel: typeof ty.ai.objectDetectForImageCancel;
|
|
72
296
|
/**
|
|
73
297
|
* @public
|
|
74
298
|
* @since @ray-js/ray 1.6.29
|
|
299
|
+
* @example 基础调用
|
|
300
|
+
* ```tsx
|
|
301
|
+
* import { ai } from '@ray-js/ray';
|
|
302
|
+
*
|
|
303
|
+
* const { objectDetectForVideo } = ai;
|
|
304
|
+
*
|
|
305
|
+
* objectDetectForVideo({
|
|
306
|
+
* inputVideoPath: 'example',
|
|
307
|
+
* outputVideoPath: 'example',
|
|
308
|
+
* musicPath: 'example',
|
|
309
|
+
* success: (result) => {
|
|
310
|
+
* console.log('objectDetectForVideo success', result);
|
|
311
|
+
* },
|
|
312
|
+
* fail: (error) => {
|
|
313
|
+
* console.log('objectDetectForVideo fail', error.errorMsg);
|
|
314
|
+
* },
|
|
315
|
+
* });
|
|
316
|
+
* ```
|
|
75
317
|
*/
|
|
76
318
|
export declare const objectDetectForVideo: typeof ty.ai.objectDetectForVideo;
|
|
77
319
|
/**
|
|
78
320
|
* @public
|
|
79
321
|
* @since @ray-js/ray 1.6.29
|
|
322
|
+
* @example 基础调用
|
|
323
|
+
* ```tsx
|
|
324
|
+
* import { ai } from '@ray-js/ray';
|
|
325
|
+
*
|
|
326
|
+
* const { objectDetectForVideoCancel } = ai;
|
|
327
|
+
*
|
|
328
|
+
* objectDetectForVideoCancel({
|
|
329
|
+
* success: () => {
|
|
330
|
+
* console.log('objectDetectForVideoCancel success');
|
|
331
|
+
* },
|
|
332
|
+
* fail: (error) => {
|
|
333
|
+
* console.log('objectDetectForVideoCancel fail', error.errorMsg);
|
|
334
|
+
* },
|
|
335
|
+
* });
|
|
336
|
+
* ```
|
|
80
337
|
*/
|
|
81
338
|
export declare const objectDetectForVideoCancel: typeof ty.ai.objectDetectForVideoCancel;
|
|
82
339
|
/**
|
|
83
340
|
* @public
|
|
84
341
|
* @since @ray-js/ray 1.6.29
|
|
342
|
+
* @example 基础调用
|
|
343
|
+
* ```tsx
|
|
344
|
+
* import { ai } from '@ray-js/ray';
|
|
345
|
+
*
|
|
346
|
+
* const { onVideoObjectDetectProgress } = ai;
|
|
347
|
+
*
|
|
348
|
+
* onVideoObjectDetectProgress((result) => {
|
|
349
|
+
* console.log('onVideoObjectDetectProgress', result);
|
|
350
|
+
* });
|
|
351
|
+
* ```
|
|
85
352
|
*/
|
|
86
353
|
export declare const onVideoObjectDetectProgress: typeof ty.ai.onVideoObjectDetectProgress;
|
|
87
354
|
/**
|
|
88
355
|
* @public
|
|
89
356
|
* @since @ray-js/ray 1.6.29
|
|
357
|
+
* @example 基础调用
|
|
358
|
+
* ```tsx
|
|
359
|
+
* import { ai } from '@ray-js/ray';
|
|
360
|
+
*
|
|
361
|
+
* const { offVideoObjectDetectProgress } = ai;
|
|
362
|
+
*
|
|
363
|
+
* offVideoObjectDetectProgress((result) => {
|
|
364
|
+
* console.log('offVideoObjectDetectProgress', result);
|
|
365
|
+
* });
|
|
366
|
+
* ```
|
|
90
367
|
*/
|
|
91
368
|
export declare const offVideoObjectDetectProgress: typeof ty.ai.offVideoObjectDetectProgress;
|
|
92
369
|
/**
|
|
93
370
|
* @public
|
|
94
371
|
* @since @ray-js/ray 1.6.29
|
|
372
|
+
* @example 基础调用
|
|
373
|
+
* ```tsx
|
|
374
|
+
* import { ai } from '@ray-js/ray';
|
|
375
|
+
*
|
|
376
|
+
* const { generateTranslateTask } = ai;
|
|
377
|
+
*
|
|
378
|
+
* generateTranslateTask({
|
|
379
|
+
* deviceId: 'device_001',
|
|
380
|
+
* dataTimeout: 0,
|
|
381
|
+
* originalLanguage: 'example',
|
|
382
|
+
* targetLanguage: 'example',
|
|
383
|
+
* agentId: 'example',
|
|
384
|
+
* success: () => {
|
|
385
|
+
* console.log('generateTranslateTask success');
|
|
386
|
+
* },
|
|
387
|
+
* fail: (error) => {
|
|
388
|
+
* console.log('generateTranslateTask fail', error.errorMsg);
|
|
389
|
+
* },
|
|
390
|
+
* });
|
|
391
|
+
* ```
|
|
95
392
|
*/
|
|
96
393
|
export declare const generateTranslateTask: typeof ty.ai.generateTranslateTask;
|
|
97
394
|
/**
|
|
98
395
|
* @public
|
|
99
396
|
* @since @ray-js/ray 1.7.9
|
|
397
|
+
* @example 基础调用
|
|
398
|
+
* ```tsx
|
|
399
|
+
* import { ai } from '@ray-js/ray';
|
|
400
|
+
*
|
|
401
|
+
* const { privacyProtectDetectForVideo } = ai;
|
|
402
|
+
*
|
|
403
|
+
* privacyProtectDetectForVideo({
|
|
404
|
+
* inputVideoPath: 'example',
|
|
405
|
+
* outputVideoPath: 'example',
|
|
406
|
+
* musicPath: 'example',
|
|
407
|
+
* success: (result) => {
|
|
408
|
+
* console.log('privacyProtectDetectForVideo success', result);
|
|
409
|
+
* },
|
|
410
|
+
* fail: (error) => {
|
|
411
|
+
* console.log('privacyProtectDetectForVideo fail', error.errorMsg);
|
|
412
|
+
* },
|
|
413
|
+
* });
|
|
414
|
+
* ```
|
|
100
415
|
*/
|
|
101
416
|
export declare const privacyProtectDetectForVideo: typeof ty.ai.privacyProtectDetectForVideo;
|
|
102
417
|
/**
|
|
103
418
|
* @public
|
|
104
419
|
* @since @ray-js/ray 1.7.20
|
|
420
|
+
* @example 基础调用
|
|
421
|
+
* ```tsx
|
|
422
|
+
* import { ai } from '@ray-js/ray';
|
|
423
|
+
*
|
|
424
|
+
* const { petsPictureQualityDetectForImage } = ai;
|
|
425
|
+
*
|
|
426
|
+
* petsPictureQualityDetectForImage({
|
|
427
|
+
* inputImagePath: 'example',
|
|
428
|
+
* objectAreaPercent: 0,
|
|
429
|
+
* objectFaceRotationAngle: 0,
|
|
430
|
+
* objectFaceSideAngle: 0,
|
|
431
|
+
* maximumPictureBrightness: 0,
|
|
432
|
+
* minimumPictureBrightness: 0,
|
|
433
|
+
* success: (result) => {
|
|
434
|
+
* console.log('petsPictureQualityDetectForImage success', result);
|
|
435
|
+
* },
|
|
436
|
+
* fail: (error) => {
|
|
437
|
+
* console.log('petsPictureQualityDetectForImage fail', error.errorMsg);
|
|
438
|
+
* },
|
|
439
|
+
* });
|
|
440
|
+
* ```
|
|
105
441
|
*/
|
|
106
442
|
export declare const petsPictureQualityDetectForImage: typeof ty.ai.petsPictureQualityDetectForImage;
|
|
107
443
|
/**
|
|
108
444
|
* @public
|
|
109
445
|
* @since @ray-js/ray 1.7.20
|
|
446
|
+
* @example 基础调用
|
|
447
|
+
* ```tsx
|
|
448
|
+
* import { ai } from '@ray-js/ray';
|
|
449
|
+
*
|
|
450
|
+
* const { petsDetectCreate } = ai;
|
|
451
|
+
*
|
|
452
|
+
* petsDetectCreate({
|
|
453
|
+
* success: () => {
|
|
454
|
+
* console.log('petsDetectCreate success');
|
|
455
|
+
* },
|
|
456
|
+
* fail: (error) => {
|
|
457
|
+
* console.log('petsDetectCreate fail', error.errorMsg);
|
|
458
|
+
* },
|
|
459
|
+
* });
|
|
460
|
+
* ```
|
|
110
461
|
*/
|
|
111
462
|
export declare const petsDetectCreate: typeof ty.ai.petsDetectCreate;
|
|
112
463
|
/**
|
|
113
464
|
* @public
|
|
114
465
|
* @since @ray-js/ray 1.7.20
|
|
466
|
+
* @example 基础调用
|
|
467
|
+
* ```tsx
|
|
468
|
+
* import { ai } from '@ray-js/ray';
|
|
469
|
+
*
|
|
470
|
+
* const { petsDetectDestory } = ai;
|
|
471
|
+
*
|
|
472
|
+
* petsDetectDestory({
|
|
473
|
+
* success: () => {
|
|
474
|
+
* console.log('petsDetectDestory success');
|
|
475
|
+
* },
|
|
476
|
+
* fail: (error) => {
|
|
477
|
+
* console.log('petsDetectDestory fail', error.errorMsg);
|
|
478
|
+
* },
|
|
479
|
+
* });
|
|
480
|
+
* ```
|
|
115
481
|
*/
|
|
116
482
|
export declare const petsDetectDestory: typeof ty.ai.petsDetectDestory;
|
|
117
483
|
/**
|
|
118
484
|
* @public
|
|
119
485
|
* @since @ray-js/ray 1.7.27
|
|
486
|
+
* @example 基础调用
|
|
487
|
+
* ```tsx
|
|
488
|
+
* import { ai } from '@ray-js/ray';
|
|
489
|
+
*
|
|
490
|
+
* const { createForegroundVideoService } = ai;
|
|
491
|
+
*
|
|
492
|
+
* createForegroundVideoService({
|
|
493
|
+
* success: () => {
|
|
494
|
+
* console.log('createForegroundVideoService success');
|
|
495
|
+
* },
|
|
496
|
+
* fail: (error) => {
|
|
497
|
+
* console.log('createForegroundVideoService fail', error.errorMsg);
|
|
498
|
+
* },
|
|
499
|
+
* });
|
|
500
|
+
* ```
|
|
120
501
|
*/
|
|
121
502
|
export declare const createForegroundVideoService: typeof ty.ai.createForegroundVideoService;
|
|
122
503
|
/**
|
|
123
504
|
* @public
|
|
124
505
|
* @since @ray-js/ray 1.7.27
|
|
506
|
+
* @example 基础调用
|
|
507
|
+
* ```tsx
|
|
508
|
+
* import { ai } from '@ray-js/ray';
|
|
509
|
+
*
|
|
510
|
+
* const { destroyForegroundVideoService } = ai;
|
|
511
|
+
*
|
|
512
|
+
* destroyForegroundVideoService({
|
|
513
|
+
* success: () => {
|
|
514
|
+
* console.log('destroyForegroundVideoService success');
|
|
515
|
+
* },
|
|
516
|
+
* fail: (error) => {
|
|
517
|
+
* console.log('destroyForegroundVideoService fail', error.errorMsg);
|
|
518
|
+
* },
|
|
519
|
+
* });
|
|
520
|
+
* ```
|
|
125
521
|
*/
|
|
126
522
|
export declare const destroyForegroundVideoService: typeof ty.ai.destroyForegroundVideoService;
|
|
127
523
|
/**
|
|
128
524
|
* @public
|
|
129
525
|
* @since @ray-js/ray 1.7.27
|
|
526
|
+
* @example 基础调用
|
|
527
|
+
* ```tsx
|
|
528
|
+
* import { ai } from '@ray-js/ray';
|
|
529
|
+
*
|
|
530
|
+
* const { processForegroundMediaByTemplate } = ai;
|
|
531
|
+
*
|
|
532
|
+
* processForegroundMediaByTemplate({
|
|
533
|
+
* templateObject: { type: 'example', effect: { code: 'example', name: 'example', ouputDuration: 0, outputDuration: 0, image: 'example', resource: 'example' } },
|
|
534
|
+
* mediaSource: 'example',
|
|
535
|
+
* success: (result) => {
|
|
536
|
+
* console.log('processForegroundMediaByTemplate success', result);
|
|
537
|
+
* },
|
|
538
|
+
* fail: (error) => {
|
|
539
|
+
* console.log('processForegroundMediaByTemplate fail', error.errorMsg);
|
|
540
|
+
* },
|
|
541
|
+
* });
|
|
542
|
+
* ```
|
|
130
543
|
*/
|
|
131
544
|
export declare const processForegroundMediaByTemplate: typeof ty.ai.processForegroundMediaByTemplate;
|
|
132
545
|
/**
|
|
133
546
|
* @public
|
|
134
547
|
* @since @ray-js/ray 1.7.27
|
|
548
|
+
* @example 基础调用
|
|
549
|
+
* ```tsx
|
|
550
|
+
* import { ai } from '@ray-js/ray';
|
|
551
|
+
*
|
|
552
|
+
* const { processPetForegroundMediaByTemplate } = ai;
|
|
553
|
+
*
|
|
554
|
+
* processPetForegroundMediaByTemplate({
|
|
555
|
+
* templateObject: { type: 'example', effect: { code: 'example', name: 'example', ouputDuration: 0, outputDuration: 0, image: 'example', resource: 'example' } },
|
|
556
|
+
* mediaSource: 'example',
|
|
557
|
+
* success: (result) => {
|
|
558
|
+
* console.log('processPetForegroundMediaByTemplate success', result);
|
|
559
|
+
* },
|
|
560
|
+
* fail: (error) => {
|
|
561
|
+
* console.log('processPetForegroundMediaByTemplate fail', error.errorMsg);
|
|
562
|
+
* },
|
|
563
|
+
* });
|
|
564
|
+
* ```
|
|
135
565
|
*/
|
|
136
566
|
export declare const processPetForegroundMediaByTemplate: typeof ty.ai.processPetForegroundMediaByTemplate;
|
|
137
567
|
/**
|
|
138
568
|
* @public
|
|
139
569
|
* @since @ray-js/ray 1.7.37
|
|
570
|
+
* @example 基础调用
|
|
571
|
+
* ```tsx
|
|
572
|
+
* import { ai } from '@ray-js/ray';
|
|
573
|
+
*
|
|
574
|
+
* const { imageEnhanceCreate } = ai;
|
|
575
|
+
*
|
|
576
|
+
* imageEnhanceCreate({
|
|
577
|
+
* trace_id: 'example',
|
|
578
|
+
* device_id: 'device_001',
|
|
579
|
+
* scene_type: 'example',
|
|
580
|
+
* success: () => {
|
|
581
|
+
* console.log('imageEnhanceCreate success');
|
|
582
|
+
* },
|
|
583
|
+
* fail: (error) => {
|
|
584
|
+
* console.log('imageEnhanceCreate fail', error.errorMsg);
|
|
585
|
+
* },
|
|
586
|
+
* });
|
|
587
|
+
* ```
|
|
140
588
|
*/
|
|
141
589
|
export declare const imageEnhanceCreate: typeof ty.ai.imageEnhanceCreate;
|
|
142
590
|
/**
|
|
143
591
|
* @public
|
|
144
592
|
* @since @ray-js/ray 1.7.37
|
|
593
|
+
* @example 基础调用
|
|
594
|
+
* ```tsx
|
|
595
|
+
* import { ai } from '@ray-js/ray';
|
|
596
|
+
*
|
|
597
|
+
* const { imageEnhanceDestroy } = ai;
|
|
598
|
+
*
|
|
599
|
+
* imageEnhanceDestroy({
|
|
600
|
+
* trace_id: 'example',
|
|
601
|
+
* device_id: 'device_001',
|
|
602
|
+
* scene_type: 'example',
|
|
603
|
+
* success: () => {
|
|
604
|
+
* console.log('imageEnhanceDestroy success');
|
|
605
|
+
* },
|
|
606
|
+
* fail: (error) => {
|
|
607
|
+
* console.log('imageEnhanceDestroy fail', error.errorMsg);
|
|
608
|
+
* },
|
|
609
|
+
* });
|
|
610
|
+
* ```
|
|
145
611
|
*/
|
|
146
612
|
export declare const imageEnhanceDestroy: typeof ty.ai.imageEnhanceDestroy;
|
|
147
613
|
/**
|
|
148
614
|
* @public
|
|
149
615
|
* @since @ray-js/ray 1.7.37
|
|
616
|
+
* @example 基础调用
|
|
617
|
+
* ```tsx
|
|
618
|
+
* import { ai } from '@ray-js/ray';
|
|
619
|
+
*
|
|
620
|
+
* const { enhanceClarityForImage } = ai;
|
|
621
|
+
*
|
|
622
|
+
* enhanceClarityForImage({
|
|
623
|
+
* trace_id: 'example',
|
|
624
|
+
* device_id: 'device_001',
|
|
625
|
+
* scene_type: 'example',
|
|
626
|
+
* devId: 'device_001',
|
|
627
|
+
* inputImagePath: 'example',
|
|
628
|
+
* outputImagePath: 'example',
|
|
629
|
+
* success: (result) => {
|
|
630
|
+
* console.log('enhanceClarityForImage success', result);
|
|
631
|
+
* },
|
|
632
|
+
* fail: (error) => {
|
|
633
|
+
* console.log('enhanceClarityForImage fail', error.errorMsg);
|
|
634
|
+
* },
|
|
635
|
+
* });
|
|
636
|
+
* ```
|
|
150
637
|
*/
|
|
151
638
|
export declare const enhanceClarityForImage: typeof ty.ai.enhanceClarityForImage;
|
|
152
639
|
/**
|
|
153
640
|
* @public
|
|
154
641
|
* @since @ray-js/ray 1.7.37
|
|
642
|
+
* @example 基础调用
|
|
643
|
+
* ```tsx
|
|
644
|
+
* import { ai } from '@ray-js/ray';
|
|
645
|
+
*
|
|
646
|
+
* const { enhanceClarityCancel } = ai;
|
|
647
|
+
*
|
|
648
|
+
* enhanceClarityCancel({
|
|
649
|
+
* trace_id: 'example',
|
|
650
|
+
* device_id: 'device_001',
|
|
651
|
+
* scene_type: 'example',
|
|
652
|
+
* success: () => {
|
|
653
|
+
* console.log('enhanceClarityCancel success');
|
|
654
|
+
* },
|
|
655
|
+
* fail: (error) => {
|
|
656
|
+
* console.log('enhanceClarityCancel fail', error.errorMsg);
|
|
657
|
+
* },
|
|
658
|
+
* });
|
|
659
|
+
* ```
|
|
155
660
|
*/
|
|
156
661
|
export declare const enhanceClarityCancel: typeof ty.ai.enhanceClarityCancel;
|
|
157
662
|
/**
|
|
158
663
|
* @public
|
|
159
664
|
* @since @ray-js/ray 1.7.37
|
|
665
|
+
* @example 基础调用
|
|
666
|
+
* ```tsx
|
|
667
|
+
* import { ai } from '@ray-js/ray';
|
|
668
|
+
*
|
|
669
|
+
* const { onEnhanceClarityProgress } = ai;
|
|
670
|
+
*
|
|
671
|
+
* onEnhanceClarityProgress((result) => {
|
|
672
|
+
* console.log('onEnhanceClarityProgress', result);
|
|
673
|
+
* });
|
|
674
|
+
* ```
|
|
160
675
|
*/
|
|
161
676
|
export declare const onEnhanceClarityProgress: typeof ty.ai.onEnhanceClarityProgress;
|
|
162
677
|
/**
|
|
163
678
|
* @public
|
|
164
679
|
* @since @ray-js/ray 1.7.37
|
|
680
|
+
* @example 基础调用
|
|
681
|
+
* ```tsx
|
|
682
|
+
* import { ai } from '@ray-js/ray';
|
|
683
|
+
*
|
|
684
|
+
* const { offEnhanceClarityProgress } = ai;
|
|
685
|
+
*
|
|
686
|
+
* offEnhanceClarityProgress((result) => {
|
|
687
|
+
* console.log('offEnhanceClarityProgress', result);
|
|
688
|
+
* });
|
|
689
|
+
* ```
|
|
165
690
|
*/
|
|
166
691
|
export declare const offEnhanceClarityProgress: typeof ty.ai.offEnhanceClarityProgress;
|
|
167
692
|
/**
|
|
168
693
|
* @public
|
|
169
694
|
* @since @ray-js/ray 1.7.37
|
|
695
|
+
* @example 基础调用
|
|
696
|
+
* ```tsx
|
|
697
|
+
* import { ai } from '@ray-js/ray';
|
|
698
|
+
*
|
|
699
|
+
* const { enhanceCalibrationForImage } = ai;
|
|
700
|
+
*
|
|
701
|
+
* enhanceCalibrationForImage({
|
|
702
|
+
* trace_id: 'example',
|
|
703
|
+
* device_id: 'device_001',
|
|
704
|
+
* scene_type: 'example',
|
|
705
|
+
* inputImagePath: 'example',
|
|
706
|
+
* outputImagePath: 'example',
|
|
707
|
+
* ratio: 0,
|
|
708
|
+
* fCx: 0,
|
|
709
|
+
* fCy: 0,
|
|
710
|
+
* fFx: 0,
|
|
711
|
+
* fFy: 0,
|
|
712
|
+
* fK1: 0,
|
|
713
|
+
* fK2: 0,
|
|
714
|
+
* fK3: 0,
|
|
715
|
+
* fP1: 0,
|
|
716
|
+
* fP2: 0,
|
|
717
|
+
* success: (result) => {
|
|
718
|
+
* console.log('enhanceCalibrationForImage success', result);
|
|
719
|
+
* },
|
|
720
|
+
* fail: (error) => {
|
|
721
|
+
* console.log('enhanceCalibrationForImage fail', error.errorMsg);
|
|
722
|
+
* },
|
|
723
|
+
* });
|
|
724
|
+
* ```
|
|
170
725
|
*/
|
|
171
726
|
export declare const enhanceCalibrationForImage: typeof ty.ai.enhanceCalibrationForImage;
|
|
172
727
|
/**
|
|
173
728
|
* @public
|
|
174
729
|
* @since @ray-js/ray 1.7.37
|
|
730
|
+
* @example 基础调用
|
|
731
|
+
* ```tsx
|
|
732
|
+
* import { ai } from '@ray-js/ray';
|
|
733
|
+
*
|
|
734
|
+
* const { enhanceCalibrationCancel } = ai;
|
|
735
|
+
*
|
|
736
|
+
* enhanceCalibrationCancel({
|
|
737
|
+
* success: () => {
|
|
738
|
+
* console.log('enhanceCalibrationCancel success');
|
|
739
|
+
* },
|
|
740
|
+
* fail: (error) => {
|
|
741
|
+
* console.log('enhanceCalibrationCancel fail', error.errorMsg);
|
|
742
|
+
* },
|
|
743
|
+
* });
|
|
744
|
+
* ```
|
|
175
745
|
*/
|
|
176
746
|
export declare const enhanceCalibrationCancel: typeof ty.ai.enhanceCalibrationCancel;
|
|
177
747
|
/**
|
|
178
748
|
* @public
|
|
179
749
|
* @since @ray-js/ray 1.7.43
|
|
750
|
+
* @example 基础调用
|
|
751
|
+
* ```tsx
|
|
752
|
+
* import { ai } from '@ray-js/ray';
|
|
753
|
+
*
|
|
754
|
+
* const { oralDiseaseInit } = ai;
|
|
755
|
+
*
|
|
756
|
+
* oralDiseaseInit({
|
|
757
|
+
* success: () => {
|
|
758
|
+
* console.log('oralDiseaseInit success');
|
|
759
|
+
* },
|
|
760
|
+
* fail: (error) => {
|
|
761
|
+
* console.log('oralDiseaseInit fail', error.errorMsg);
|
|
762
|
+
* },
|
|
763
|
+
* });
|
|
764
|
+
* ```
|
|
180
765
|
*/
|
|
181
766
|
export declare const oralDiseaseInit: typeof ty.ai.oralDiseaseInit;
|
|
182
767
|
/**
|
|
183
768
|
* @public
|
|
184
769
|
* @since @ray-js/ray 1.7.43
|
|
770
|
+
* @example 基础调用
|
|
771
|
+
* ```tsx
|
|
772
|
+
* import { ai } from '@ray-js/ray';
|
|
773
|
+
*
|
|
774
|
+
* const { onOralModelDownProgress } = ai;
|
|
775
|
+
*
|
|
776
|
+
* onOralModelDownProgress((result) => {
|
|
777
|
+
* console.log('onOralModelDownProgress', result);
|
|
778
|
+
* });
|
|
779
|
+
* ```
|
|
185
780
|
*/
|
|
186
781
|
export declare const onOralModelDownProgress: typeof ty.ai.onOralModelDownProgress;
|
|
187
782
|
/**
|
|
188
783
|
* @public
|
|
189
784
|
* @since @ray-js/ray 1.7.43
|
|
785
|
+
* @example 基础调用
|
|
786
|
+
* ```tsx
|
|
787
|
+
* import { ai } from '@ray-js/ray';
|
|
788
|
+
*
|
|
789
|
+
* const { offOralModelDownProgress } = ai;
|
|
790
|
+
*
|
|
791
|
+
* offOralModelDownProgress((result) => {
|
|
792
|
+
* console.log('offOralModelDownProgress', result);
|
|
793
|
+
* });
|
|
794
|
+
* ```
|
|
190
795
|
*/
|
|
191
796
|
export declare const offOralModelDownProgress: typeof ty.ai.offOralModelDownProgress;
|
|
192
797
|
/**
|
|
193
798
|
* @public
|
|
194
799
|
* @since @ray-js/ray 1.7.43
|
|
800
|
+
* @example 基础调用
|
|
801
|
+
* ```tsx
|
|
802
|
+
* import { ai } from '@ray-js/ray';
|
|
803
|
+
*
|
|
804
|
+
* const { oralDiseasePredictionRun } = ai;
|
|
805
|
+
*
|
|
806
|
+
* oralDiseasePredictionRun({
|
|
807
|
+
* devId: 'device_001',
|
|
808
|
+
* inputImagePath: 'example',
|
|
809
|
+
* outImagePath: 'example',
|
|
810
|
+
* success: (result) => {
|
|
811
|
+
* console.log('oralDiseasePredictionRun success', result);
|
|
812
|
+
* },
|
|
813
|
+
* fail: (error) => {
|
|
814
|
+
* console.log('oralDiseasePredictionRun fail', error.errorMsg);
|
|
815
|
+
* },
|
|
816
|
+
* });
|
|
817
|
+
* ```
|
|
195
818
|
*/
|
|
196
819
|
export declare const oralDiseasePredictionRun: typeof ty.ai.oralDiseasePredictionRun;
|
|
197
820
|
/**
|
|
198
821
|
* @public
|
|
199
822
|
* @since @ray-js/ray 1.7.60
|
|
823
|
+
* @example 基础调用
|
|
824
|
+
* ```tsx
|
|
825
|
+
* import { ai } from '@ray-js/ray';
|
|
826
|
+
*
|
|
827
|
+
* const { pixelImageInit } = ai;
|
|
828
|
+
*
|
|
829
|
+
* pixelImageInit({
|
|
830
|
+
* success: () => {
|
|
831
|
+
* console.log('pixelImageInit success');
|
|
832
|
+
* },
|
|
833
|
+
* fail: (error) => {
|
|
834
|
+
* console.log('pixelImageInit fail', error.errorMsg);
|
|
835
|
+
* },
|
|
836
|
+
* });
|
|
837
|
+
* ```
|
|
200
838
|
*/
|
|
201
839
|
export declare const pixelImageInit: typeof ty.ai.pixelImageInit;
|
|
202
840
|
/**
|
|
203
841
|
* @public
|
|
204
842
|
* @since @ray-js/ray 1.7.60
|
|
843
|
+
* @example 基础调用
|
|
844
|
+
* ```tsx
|
|
845
|
+
* import { ai } from '@ray-js/ray';
|
|
846
|
+
*
|
|
847
|
+
* const { fetchPixelImageCategoryInfo } = ai;
|
|
848
|
+
*
|
|
849
|
+
* fetchPixelImageCategoryInfo({
|
|
850
|
+
* success: (result) => {
|
|
851
|
+
* console.log('fetchPixelImageCategoryInfo success', result);
|
|
852
|
+
* },
|
|
853
|
+
* fail: (error) => {
|
|
854
|
+
* console.log('fetchPixelImageCategoryInfo fail', error.errorMsg);
|
|
855
|
+
* },
|
|
856
|
+
* });
|
|
857
|
+
* ```
|
|
205
858
|
*/
|
|
206
859
|
export declare const fetchPixelImageCategoryInfo: typeof ty.ai.fetchPixelImageCategoryInfo;
|
|
207
860
|
/**
|
|
208
861
|
* @public
|
|
209
862
|
* @since @ray-js/ray 1.7.60
|
|
863
|
+
* @example 基础调用
|
|
864
|
+
* ```tsx
|
|
865
|
+
* import { ai } from '@ray-js/ray';
|
|
866
|
+
*
|
|
867
|
+
* const { generationPixelImage } = ai;
|
|
868
|
+
*
|
|
869
|
+
* generationPixelImage({
|
|
870
|
+
* deviceId: 'device_001',
|
|
871
|
+
* label: 'example',
|
|
872
|
+
* imageWidth: 0,
|
|
873
|
+
* imageHeight: 0,
|
|
874
|
+
* outImagePath: 'example',
|
|
875
|
+
* success: (result) => {
|
|
876
|
+
* console.log('generationPixelImage success', result);
|
|
877
|
+
* },
|
|
878
|
+
* fail: (error) => {
|
|
879
|
+
* console.log('generationPixelImage fail', error.errorMsg);
|
|
880
|
+
* },
|
|
881
|
+
* });
|
|
882
|
+
* ```
|
|
210
883
|
*/
|
|
211
884
|
export declare const generationPixelImage: typeof ty.ai.generationPixelImage;
|
|
212
885
|
/**
|
|
213
886
|
* @public
|
|
214
887
|
* @since @ray-js/ray 1.7.60
|
|
888
|
+
* @example 基础调用
|
|
889
|
+
* ```tsx
|
|
890
|
+
* import { ai } from '@ray-js/ray';
|
|
891
|
+
*
|
|
892
|
+
* const { generationPixeGifImage } = ai;
|
|
893
|
+
*
|
|
894
|
+
* generationPixeGifImage({
|
|
895
|
+
* deviceId: 'device_001',
|
|
896
|
+
* imageWidth: 0,
|
|
897
|
+
* imageHeight: 0,
|
|
898
|
+
* imagePath: 'example',
|
|
899
|
+
* animType: 'example',
|
|
900
|
+
* outImagePath: 'example',
|
|
901
|
+
* success: (result) => {
|
|
902
|
+
* console.log('generationPixeGifImage success', result);
|
|
903
|
+
* },
|
|
904
|
+
* fail: (error) => {
|
|
905
|
+
* console.log('generationPixeGifImage fail', error.errorMsg);
|
|
906
|
+
* },
|
|
907
|
+
* });
|
|
908
|
+
* ```
|
|
215
909
|
*/
|
|
216
910
|
export declare const generationPixeGifImage: typeof ty.ai.generationPixeGifImage;
|
|
217
911
|
/**
|
|
218
912
|
* @public
|
|
219
913
|
* @since @ray-js/ray 1.7.60
|
|
914
|
+
* @example 基础调用
|
|
915
|
+
* ```tsx
|
|
916
|
+
* import { ai } from '@ray-js/ray';
|
|
917
|
+
*
|
|
918
|
+
* const { predictLightScenes } = ai;
|
|
919
|
+
*
|
|
920
|
+
* predictLightScenes({
|
|
921
|
+
* roomId: 0,
|
|
922
|
+
* generateSceneStyles: [{ name: 'example' }],
|
|
923
|
+
* sceneType: 0,
|
|
924
|
+
* success: (result) => {
|
|
925
|
+
* console.log('predictLightScenes success', result);
|
|
926
|
+
* },
|
|
927
|
+
* fail: (error) => {
|
|
928
|
+
* console.log('predictLightScenes fail', error.errorMsg);
|
|
929
|
+
* },
|
|
930
|
+
* });
|
|
931
|
+
* ```
|
|
220
932
|
*/
|
|
221
933
|
export declare const predictLightScenes: typeof ty.ai.predictLightScenes;
|
|
222
934
|
/**
|
|
223
935
|
* @public
|
|
224
936
|
* @since @ray-js/ray 1.7.60
|
|
937
|
+
* @example 基础调用
|
|
938
|
+
* ```tsx
|
|
939
|
+
* import { ai } from '@ray-js/ray';
|
|
940
|
+
*
|
|
941
|
+
* const { onPixelImageInitProgressEvent } = ai;
|
|
942
|
+
*
|
|
943
|
+
* onPixelImageInitProgressEvent((result) => {
|
|
944
|
+
* console.log('onPixelImageInitProgressEvent', result);
|
|
945
|
+
* });
|
|
946
|
+
* ```
|
|
225
947
|
*/
|
|
226
948
|
export declare const onPixelImageInitProgressEvent: typeof ty.ai.onPixelImageInitProgressEvent;
|
|
227
949
|
/**
|
|
228
950
|
* @public
|
|
229
951
|
* @since @ray-js/ray 1.7.60
|
|
952
|
+
* @example 基础调用
|
|
953
|
+
* ```tsx
|
|
954
|
+
* import { ai } from '@ray-js/ray';
|
|
955
|
+
*
|
|
956
|
+
* const { offPixelImageInitProgressEvent } = ai;
|
|
957
|
+
*
|
|
958
|
+
* offPixelImageInitProgressEvent((result) => {
|
|
959
|
+
* console.log('offPixelImageInitProgressEvent', result);
|
|
960
|
+
* });
|
|
961
|
+
* ```
|
|
230
962
|
*/
|
|
231
963
|
export declare const offPixelImageInitProgressEvent: typeof ty.ai.offPixelImageInitProgressEvent;
|
|
232
|
-
/**
|
|
233
|
-
* @public
|
|
234
|
-
* @alias TranslateContext.startSpeak
|
|
235
|
-
*/
|
|
236
|
-
export declare const translateContextStartSpeak: ReturnType<typeof ty.ai.generateTranslateTask>["startSpeak"];
|
|
237
|
-
/**
|
|
238
|
-
* @public
|
|
239
|
-
* @alias TranslateContext.stopSpeak
|
|
240
|
-
*/
|
|
241
|
-
export declare const translateContextStopSpeak: ReturnType<typeof ty.ai.generateTranslateTask>["stopSpeak"];
|
|
242
|
-
/**
|
|
243
|
-
* @public
|
|
244
|
-
* @alias TranslateContext.dispose
|
|
245
|
-
*/
|
|
246
|
-
export declare const translateContextDispose: ReturnType<typeof ty.ai.generateTranslateTask>["dispose"];
|
|
247
|
-
/**
|
|
248
|
-
* @public
|
|
249
|
-
* @alias TranslateContext.onTranslateError
|
|
250
|
-
*/
|
|
251
|
-
export declare const translateContextOnTranslateError: ReturnType<typeof ty.ai.generateTranslateTask>["onTranslateError"];
|
|
252
|
-
/**
|
|
253
|
-
* @public
|
|
254
|
-
* @alias TranslateContext.offTranslateError
|
|
255
|
-
*/
|
|
256
|
-
export declare const translateContextOffTranslateError: ReturnType<typeof ty.ai.generateTranslateTask>["offTranslateError"];
|
|
257
|
-
/**
|
|
258
|
-
* @public
|
|
259
|
-
* @alias TranslateContext.onTranslateRealTimeStatusUpdate
|
|
260
|
-
*/
|
|
261
|
-
export declare const translateContextOnTranslateRealTimeStatusUpdate: ReturnType<typeof ty.ai.generateTranslateTask>["onTranslateRealTimeStatusUpdate"];
|
|
262
|
-
/**
|
|
263
|
-
* @public
|
|
264
|
-
* @alias TranslateContext.offTranslateRealTimeStatusUpdate
|
|
265
|
-
*/
|
|
266
|
-
export declare const translateContextOffTranslateRealTimeStatusUpdate: ReturnType<typeof ty.ai.generateTranslateTask>["offTranslateRealTimeStatusUpdate"];
|