@quec-wx-mp/api-ai 0.1.4
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/README.md +1 -0
- package/dist/QuecPluginAI.d.ts +107 -0
- package/dist/api.d.ts +332 -0
- package/dist/const.d.ts +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -0
- package/dist/modules/bot.d.ts +133 -0
- package/dist/modules/buy.d.ts +89 -0
- package/dist/modules/chat.d.ts +37 -0
- package/dist/modules/content.d.ts +125 -0
- package/dist/modules/growth_baby.d.ts +538 -0
- package/dist/modules/mbti.d.ts +190 -0
- package/dist/modules/memory.d.ts +298 -0
- package/dist/modules/panel.d.ts +445 -0
- package/dist/modules/role.d.ts +116 -0
- package/dist/modules/summary.d.ts +115 -0
- package/dist/modules/usage.d.ts +165 -0
- package/dist/modules/voiceprint.d.ts +261 -0
- package/dist/tools.d.ts +1 -0
- package/package.json +35 -0
|
@@ -0,0 +1,538 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module 情感交互&家长引导
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 新增宝贝信息
|
|
6
|
+
* @example
|
|
7
|
+
*
|
|
8
|
+
* ```js
|
|
9
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
10
|
+
* plugin.ai.addBabyInfo({
|
|
11
|
+
* productKey:'',
|
|
12
|
+
* deviceKey:'',
|
|
13
|
+
* nickname:'',
|
|
14
|
+
* gender:0,
|
|
15
|
+
* birthdayYear:'',
|
|
16
|
+
* birthdayMonth:'',
|
|
17
|
+
* birthdayDay:'',
|
|
18
|
+
* birthdayTime:'',
|
|
19
|
+
* endUserId:'',
|
|
20
|
+
* success (res) {},
|
|
21
|
+
* fail (res) {},
|
|
22
|
+
* complete (res) { }
|
|
23
|
+
* })
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare function addBabyInfo(options: {
|
|
27
|
+
/** 设备 deviceKey */
|
|
28
|
+
deviceKey?: string;
|
|
29
|
+
/** 产品 productKey */
|
|
30
|
+
productKey?: string;
|
|
31
|
+
/** 宝贝昵称 */
|
|
32
|
+
nickname?: string;
|
|
33
|
+
/** 性别: 0-女,1-男 */
|
|
34
|
+
gender?: number;
|
|
35
|
+
/** 生日-年份 */
|
|
36
|
+
birthdayYear?: number;
|
|
37
|
+
/** 生日-月份 */
|
|
38
|
+
birthdayMonth?: number;
|
|
39
|
+
/** 生日-天 */
|
|
40
|
+
birthdayDay?: number;
|
|
41
|
+
/** 生日-时间戳 */
|
|
42
|
+
birthdayTime?: number;
|
|
43
|
+
/** 终端用户ID */
|
|
44
|
+
endUserId?: string;
|
|
45
|
+
/** 接口调用成功的回调函数 */
|
|
46
|
+
success: (res: ResponseData) => void;
|
|
47
|
+
/** 接口调用失败的回调函数 */
|
|
48
|
+
fail: (res: Error) => void;
|
|
49
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
50
|
+
complete: () => void;
|
|
51
|
+
},
|
|
52
|
+
/** @ignore */
|
|
53
|
+
requestMethod: RequestFunction): void;
|
|
54
|
+
/**
|
|
55
|
+
* 更新宝贝信息
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```js
|
|
59
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
60
|
+
* plugin.ai.updateBabyInfo({
|
|
61
|
+
* id:'',
|
|
62
|
+
* nickname:'',
|
|
63
|
+
* gender:0,
|
|
64
|
+
* birthdayYear:'',
|
|
65
|
+
* birthdayMonth:'',
|
|
66
|
+
* birthdayDay:'',
|
|
67
|
+
* birthdayTime:'',
|
|
68
|
+
* success (res) {},
|
|
69
|
+
* fail (res) {},
|
|
70
|
+
* complete (res) { }
|
|
71
|
+
* })
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
export declare function updateBabyInfo(options: {
|
|
75
|
+
/** 宝宝ID */
|
|
76
|
+
id?: string;
|
|
77
|
+
/** 宝贝昵称 */
|
|
78
|
+
nickname?: string;
|
|
79
|
+
/** 性别: 0-女,1-男 */
|
|
80
|
+
gender?: number;
|
|
81
|
+
/** 生日-年份 */
|
|
82
|
+
birthdayYear?: number;
|
|
83
|
+
/** 生日-月份 */
|
|
84
|
+
birthdayMonth?: number;
|
|
85
|
+
/** 生日-天 */
|
|
86
|
+
birthdayDay?: number;
|
|
87
|
+
/** 生日-时间戳 */
|
|
88
|
+
birthdayTime?: number;
|
|
89
|
+
/** 接口调用成功的回调函数 */
|
|
90
|
+
success: (res: ResponseData) => void;
|
|
91
|
+
/** 接口调用失败的回调函数 */
|
|
92
|
+
fail: (res: Error) => void;
|
|
93
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
94
|
+
complete: () => void;
|
|
95
|
+
},
|
|
96
|
+
/** @ignore */
|
|
97
|
+
requestMethod: RequestFunction): void;
|
|
98
|
+
/**
|
|
99
|
+
* 获取宝贝信息详情
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```js
|
|
103
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
104
|
+
* plugin.ai.getBabyInfo({
|
|
105
|
+
* productKey:'',
|
|
106
|
+
* deviceKey:'',
|
|
107
|
+
* endUserId:'',
|
|
108
|
+
* success (res) {},
|
|
109
|
+
* fail (res) {},
|
|
110
|
+
* complete (res) { }
|
|
111
|
+
* })
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
export declare function getBabyInfo(options: {
|
|
115
|
+
/** 设备 deviceKey */
|
|
116
|
+
deviceKey?: string;
|
|
117
|
+
/** 产品 productKey */
|
|
118
|
+
productKey?: string;
|
|
119
|
+
/** 终端用户ID */
|
|
120
|
+
endUserId?: string;
|
|
121
|
+
/** 接口调用成功的回调函数 */
|
|
122
|
+
success?: (res: ResponseData) => void;
|
|
123
|
+
/** 接口调用失败的回调函数 */
|
|
124
|
+
fail?: (res: Error) => void;
|
|
125
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
126
|
+
complete?: () => void;
|
|
127
|
+
},
|
|
128
|
+
/** @ignore */
|
|
129
|
+
requestMethod: RequestFunction): void;
|
|
130
|
+
/**
|
|
131
|
+
* 新增宝贝任务
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```js
|
|
135
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
136
|
+
* plugin.ai.addBabyTask({
|
|
137
|
+
* babyId:'',
|
|
138
|
+
* growthTaskIds:[1,2],
|
|
139
|
+
* repeatDays:'1,2,3',
|
|
140
|
+
* success (res) {},
|
|
141
|
+
* fail (res) {},
|
|
142
|
+
* complete (res) { }
|
|
143
|
+
* })
|
|
144
|
+
* ```
|
|
145
|
+
*/
|
|
146
|
+
export declare function addBabyTask(options: {
|
|
147
|
+
/** 宝宝ID */
|
|
148
|
+
babyId: string;
|
|
149
|
+
/** 成长任务ID集合 */
|
|
150
|
+
growthTaskIds: string[];
|
|
151
|
+
/** 重复日期:1,2,3,4,5,6,7 (周一到周日),为空则每天重复 */
|
|
152
|
+
repeatDays?: string;
|
|
153
|
+
/** 开始时间戳 */
|
|
154
|
+
startTime?: number;
|
|
155
|
+
/** 结束时间戳 */
|
|
156
|
+
endTime?: number;
|
|
157
|
+
/** 接口调用成功的回调函数 */
|
|
158
|
+
success?: (res: ResponseData) => void;
|
|
159
|
+
/** 接口调用失败的回调函数 */
|
|
160
|
+
fail?: (res: Error) => void;
|
|
161
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
162
|
+
complete?: () => void;
|
|
163
|
+
},
|
|
164
|
+
/** @ignore */
|
|
165
|
+
requestMethod: RequestFunction): void;
|
|
166
|
+
/**
|
|
167
|
+
* 更新宝贝任务
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* ```js
|
|
171
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
172
|
+
* plugin.ai.updateBabyTask({
|
|
173
|
+
* babyTaskId:'',
|
|
174
|
+
* repeatDays:'1,2,3',
|
|
175
|
+
* success (res) {},
|
|
176
|
+
* fail (res) {},
|
|
177
|
+
* complete (res) { }
|
|
178
|
+
* })
|
|
179
|
+
* ```
|
|
180
|
+
*/
|
|
181
|
+
export declare function updateBabyTask(options: {
|
|
182
|
+
/** 宝宝任务ID */
|
|
183
|
+
babyTaskId: string;
|
|
184
|
+
/** 重复日期:1,2,3,4,5,6,7 (周一到周日),为空则每天重复 */
|
|
185
|
+
repeatDays?: string[];
|
|
186
|
+
/** 开始时间戳 */
|
|
187
|
+
startTime?: number;
|
|
188
|
+
/** 结束时间戳 */
|
|
189
|
+
endTime?: number;
|
|
190
|
+
/** 接口调用成功的回调函数 */
|
|
191
|
+
success?: (res: ResponseData) => void;
|
|
192
|
+
/** 接口调用失败的回调函数 */
|
|
193
|
+
fail?: (res: Error) => void;
|
|
194
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
195
|
+
complete?: () => void;
|
|
196
|
+
},
|
|
197
|
+
/** @ignore */
|
|
198
|
+
requestMethod: RequestFunction): void;
|
|
199
|
+
/**
|
|
200
|
+
* 删除宝贝任务
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
* ```js
|
|
204
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
205
|
+
* plugin.ai.deleteBabyTask({
|
|
206
|
+
* babyTaskId:'',
|
|
207
|
+
* success (res) {},
|
|
208
|
+
* fail (res) {},
|
|
209
|
+
* complete (res) { }
|
|
210
|
+
* })
|
|
211
|
+
* ```
|
|
212
|
+
*/
|
|
213
|
+
export declare function deleteBabyTask(options: {
|
|
214
|
+
/** 宝宝任务ID */
|
|
215
|
+
babyTaskId: string;
|
|
216
|
+
/** 接口调用成功的回调函数 */
|
|
217
|
+
success?: (res: ResponseData) => void;
|
|
218
|
+
/** 接口调用失败的回调函数 */
|
|
219
|
+
fail?: (res: Error) => void;
|
|
220
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
221
|
+
complete?: () => void;
|
|
222
|
+
},
|
|
223
|
+
/** @ignore */
|
|
224
|
+
requestMethod: RequestFunction): void;
|
|
225
|
+
/**
|
|
226
|
+
* 宝贝任务列表(未开始、进行中、已完成进行分类)
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* ```js
|
|
230
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
231
|
+
* plugin.ai.babyTaskList({
|
|
232
|
+
* babyId:'',
|
|
233
|
+
* success (res) {},
|
|
234
|
+
* fail (res) {},
|
|
235
|
+
* complete (res) { }
|
|
236
|
+
* })
|
|
237
|
+
* ```
|
|
238
|
+
*/
|
|
239
|
+
export declare function babyTaskList(options: {
|
|
240
|
+
/** 宝宝ID */
|
|
241
|
+
babyId: string;
|
|
242
|
+
/** 接口调用成功的回调函数 */
|
|
243
|
+
success?: (res: ResponseData) => void;
|
|
244
|
+
/** 接口调用失败的回调函数 */
|
|
245
|
+
fail?: (res: Error) => void;
|
|
246
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
247
|
+
complete?: () => void;
|
|
248
|
+
},
|
|
249
|
+
/** @ignore */
|
|
250
|
+
requestMethod: RequestFunction): void;
|
|
251
|
+
/**
|
|
252
|
+
* 根据年龄获取成长任务列表
|
|
253
|
+
*
|
|
254
|
+
* @example
|
|
255
|
+
* ```js
|
|
256
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
257
|
+
* plugin.ai.taskListByAge({
|
|
258
|
+
* age:'',
|
|
259
|
+
* success (res) {},
|
|
260
|
+
* fail (res) {},
|
|
261
|
+
* complete (res) { }
|
|
262
|
+
* })
|
|
263
|
+
* ```
|
|
264
|
+
*/
|
|
265
|
+
export declare function taskListByAge(options: {
|
|
266
|
+
/** 年龄 */
|
|
267
|
+
age: number;
|
|
268
|
+
/** 接口调用成功的回调函数 */
|
|
269
|
+
success?: (res: ResponseData) => void;
|
|
270
|
+
/** 接口调用失败的回调函数 */
|
|
271
|
+
fail?: (res: Error) => void;
|
|
272
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
273
|
+
complete?: () => void;
|
|
274
|
+
},
|
|
275
|
+
/** @ignore */
|
|
276
|
+
requestMethod: RequestFunction): void;
|
|
277
|
+
/**
|
|
278
|
+
* 获取宝贝任务完成情况统计
|
|
279
|
+
*
|
|
280
|
+
* @example
|
|
281
|
+
* ```js
|
|
282
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
283
|
+
* plugin.ai.getBabyTaskFinishStatistics({
|
|
284
|
+
* babyTaskId:'',
|
|
285
|
+
* success (res) {},
|
|
286
|
+
* fail (res) {},
|
|
287
|
+
* complete (res) { }
|
|
288
|
+
* })
|
|
289
|
+
* ```
|
|
290
|
+
*/
|
|
291
|
+
export declare function getBabyTaskFinishStatistics(options: {
|
|
292
|
+
/** 宝宝任务ID */
|
|
293
|
+
babyTaskId: string;
|
|
294
|
+
/** 开始时间戳 */
|
|
295
|
+
startTime?: number;
|
|
296
|
+
/** 结束时间戳 */
|
|
297
|
+
endTime?: number;
|
|
298
|
+
/** 接口调用成功的回调函数 */
|
|
299
|
+
success?: (res: ResponseData) => void;
|
|
300
|
+
/** 接口调用失败的回调函数 */
|
|
301
|
+
fail?: (res: Error) => void;
|
|
302
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
303
|
+
complete?: () => void;
|
|
304
|
+
},
|
|
305
|
+
/** @ignore */
|
|
306
|
+
requestMethod: RequestFunction): void;
|
|
307
|
+
/**
|
|
308
|
+
* 获取宝贝任务每周情况统计
|
|
309
|
+
*
|
|
310
|
+
* @example
|
|
311
|
+
* ```js
|
|
312
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
313
|
+
* plugin.ai.getBabyTaskWeekStatistics({
|
|
314
|
+
* babyId:'',
|
|
315
|
+
* success (res) {},
|
|
316
|
+
* fail (res) {},
|
|
317
|
+
* complete (res) { }
|
|
318
|
+
* })
|
|
319
|
+
* ```
|
|
320
|
+
*/
|
|
321
|
+
export declare function getBabyTaskWeekStatistics(options: {
|
|
322
|
+
/** 宝宝ID */
|
|
323
|
+
babyId: string;
|
|
324
|
+
/** 获取开始时间戳 */
|
|
325
|
+
startTime?: number;
|
|
326
|
+
/** 获取结束时间戳 */
|
|
327
|
+
endTime?: number;
|
|
328
|
+
/** 接口调用成功的回调函数 */
|
|
329
|
+
success?: (res: ResponseData) => void;
|
|
330
|
+
/** 接口调用失败的回调函数 */
|
|
331
|
+
fail?: (res: Error) => void;
|
|
332
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
333
|
+
complete?: () => void;
|
|
334
|
+
},
|
|
335
|
+
/** @ignore */
|
|
336
|
+
requestMethod: RequestFunction): void;
|
|
337
|
+
/**
|
|
338
|
+
* 获取宝贝删除成长任务列表
|
|
339
|
+
*
|
|
340
|
+
* @example
|
|
341
|
+
* ```js
|
|
342
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
343
|
+
* plugin.ai.listDeleteBabyTask({
|
|
344
|
+
* babyId:'',
|
|
345
|
+
* pageNum:1,
|
|
346
|
+
* pageSize:10,
|
|
347
|
+
* success (res) {},
|
|
348
|
+
* fail (res) {},
|
|
349
|
+
* complete (res) { }
|
|
350
|
+
* })
|
|
351
|
+
* ```
|
|
352
|
+
*/
|
|
353
|
+
export declare function listDeleteBabyTask(options: {
|
|
354
|
+
/** 宝宝ID */
|
|
355
|
+
babyId: string;
|
|
356
|
+
/** 页码 */
|
|
357
|
+
pageNum: number;
|
|
358
|
+
/** 每页数量 */
|
|
359
|
+
pageSize: number;
|
|
360
|
+
/** 接口调用成功的回调函数 */
|
|
361
|
+
success?: (res: ResponseData) => void;
|
|
362
|
+
/** 接口调用失败的回调函数 */
|
|
363
|
+
fail?: (res: Error) => void;
|
|
364
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
365
|
+
complete?: () => void;
|
|
366
|
+
},
|
|
367
|
+
/** @ignore */
|
|
368
|
+
requestMethod: RequestFunction): void;
|
|
369
|
+
/**
|
|
370
|
+
* 获取风险预警列表。(productKey、deviceKey、endUserId 与 diId 二选一)
|
|
371
|
+
*
|
|
372
|
+
* @example
|
|
373
|
+
* ```js
|
|
374
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
375
|
+
* // 获取风险预警列表
|
|
376
|
+
* plugin.ai.chatWarnList({
|
|
377
|
+
* productKey:'',
|
|
378
|
+
* deviceKey:'',
|
|
379
|
+
* endUserId:'',
|
|
380
|
+
* pageNum:1,
|
|
381
|
+
* pageSize:10,
|
|
382
|
+
* success (res) {},
|
|
383
|
+
* fail (res) {},
|
|
384
|
+
* complete (res) { }
|
|
385
|
+
* })
|
|
386
|
+
* ```
|
|
387
|
+
*/
|
|
388
|
+
export declare function chatWarnList(options: {
|
|
389
|
+
/** 产品 PK */
|
|
390
|
+
productKey?: string;
|
|
391
|
+
/** 设备 DK */
|
|
392
|
+
deviceKey?: string;
|
|
393
|
+
/** 终端用户 ID */
|
|
394
|
+
endUserId?: string;
|
|
395
|
+
/** 设备信息 ID */
|
|
396
|
+
diId?: string;
|
|
397
|
+
/** 是否已经处理 */
|
|
398
|
+
status?: boolean;
|
|
399
|
+
/** 页码 */
|
|
400
|
+
pageNum?: number;
|
|
401
|
+
/** 页大小 */
|
|
402
|
+
pageSize?: number;
|
|
403
|
+
/** 接口调用成功的回调函数 */
|
|
404
|
+
success?: (res: ResponseData) => void;
|
|
405
|
+
/** 接口调用失败的回调函数 */
|
|
406
|
+
fail?: (res: Error) => void;
|
|
407
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
408
|
+
complete?: () => void;
|
|
409
|
+
},
|
|
410
|
+
/** @ignore */
|
|
411
|
+
requestMethod: RequestFunction): void;
|
|
412
|
+
/**
|
|
413
|
+
* 风险预警详情
|
|
414
|
+
*
|
|
415
|
+
* @example
|
|
416
|
+
* ```js
|
|
417
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
418
|
+
* plugin.ai.chatWarnDetail({
|
|
419
|
+
* id:'',
|
|
420
|
+
* success (res) {},
|
|
421
|
+
* fail (res) {},
|
|
422
|
+
* complete (res) { }
|
|
423
|
+
* })
|
|
424
|
+
* ```
|
|
425
|
+
*/
|
|
426
|
+
export declare function chatWarnDetail(options: {
|
|
427
|
+
/** 风险预警 ID */
|
|
428
|
+
id: string;
|
|
429
|
+
/** 接口调用成功的回调函数 */
|
|
430
|
+
success?: (res: ResponseData) => void;
|
|
431
|
+
/** 接口调用失败的回调函数 */
|
|
432
|
+
fail?: (res: Error) => void;
|
|
433
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
434
|
+
complete?: () => void;
|
|
435
|
+
},
|
|
436
|
+
/** @ignore */
|
|
437
|
+
requestMethod: RequestFunction): void;
|
|
438
|
+
/**
|
|
439
|
+
* 录音文件 pcm 转 mp3 格式
|
|
440
|
+
*
|
|
441
|
+
* @example
|
|
442
|
+
* ```
|
|
443
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
444
|
+
* plugin.ai.pcmToMp3({
|
|
445
|
+
* file:'',
|
|
446
|
+
* success (res) {},
|
|
447
|
+
* fail (res) {},
|
|
448
|
+
* complete (res) { }
|
|
449
|
+
* })
|
|
450
|
+
* ```
|
|
451
|
+
*/
|
|
452
|
+
export declare function pcmToMp3(options: {
|
|
453
|
+
/** 文件 */
|
|
454
|
+
file: any;
|
|
455
|
+
/** 接口调用成功的回调函数 */
|
|
456
|
+
success?: (res: ResponseData) => void;
|
|
457
|
+
/** 接口调用失败的回调函数 */
|
|
458
|
+
fail?: (res: Error) => void;
|
|
459
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
460
|
+
complete?: (e: any) => void;
|
|
461
|
+
},
|
|
462
|
+
/** @ignore */
|
|
463
|
+
Config: any,
|
|
464
|
+
/** @ignore */
|
|
465
|
+
Store: any): void;
|
|
466
|
+
/**
|
|
467
|
+
* 发送家长引导语音
|
|
468
|
+
*
|
|
469
|
+
* @example
|
|
470
|
+
* ```js
|
|
471
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
472
|
+
* plugin.ai.uploadGuideVoice({
|
|
473
|
+
* id:'',
|
|
474
|
+
* productKey:'',
|
|
475
|
+
* deviceKey:'',
|
|
476
|
+
* endUserId:'',
|
|
477
|
+
* voiceFileUrl:'',
|
|
478
|
+
* voiceTime:'',
|
|
479
|
+
* success (res) {},
|
|
480
|
+
* fail (res) {},
|
|
481
|
+
* complete (res) { }
|
|
482
|
+
* })
|
|
483
|
+
* ```
|
|
484
|
+
*/
|
|
485
|
+
export declare function uploadGuideVoice(options: {
|
|
486
|
+
/** 预警 ID */
|
|
487
|
+
id: string;
|
|
488
|
+
/** 产品 PK */
|
|
489
|
+
productKey?: string;
|
|
490
|
+
/** 设备 DK */
|
|
491
|
+
deviceKey?: string;
|
|
492
|
+
/** 终端用户 ID */
|
|
493
|
+
endUserId?: string;
|
|
494
|
+
/** 声音文件(plugin.ai.pcmToMp3 API 返回声音 Url) */
|
|
495
|
+
voiceFileUrl?: string;
|
|
496
|
+
/** 语音时长 */
|
|
497
|
+
voiceTime?: number;
|
|
498
|
+
/** 接口调用成功的回调函数 */
|
|
499
|
+
success?: (res: ResponseData) => void;
|
|
500
|
+
/** 接口调用失败的回调函数 */
|
|
501
|
+
fail?: (res: Error) => void;
|
|
502
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
503
|
+
complete?: () => void;
|
|
504
|
+
},
|
|
505
|
+
/** @ignore */
|
|
506
|
+
requestMethod: RequestFunction): void;
|
|
507
|
+
/**
|
|
508
|
+
* 重新发送家长引导语音
|
|
509
|
+
*
|
|
510
|
+
* @example
|
|
511
|
+
* ```js
|
|
512
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
513
|
+
* plugin.ai.chatWarnResend({
|
|
514
|
+
* id:'',
|
|
515
|
+
* productKey:'',
|
|
516
|
+
* deviceKey:'',
|
|
517
|
+
* success (res) {},
|
|
518
|
+
* fail (res) {},
|
|
519
|
+
* complete (res) { }
|
|
520
|
+
* })
|
|
521
|
+
* ```
|
|
522
|
+
*/
|
|
523
|
+
export declare function chatWarnResend(options: {
|
|
524
|
+
/** 预警 ID */
|
|
525
|
+
id: string;
|
|
526
|
+
/** 产品 PK */
|
|
527
|
+
productKey?: string;
|
|
528
|
+
/** 设备 DK */
|
|
529
|
+
deviceKey?: string;
|
|
530
|
+
/** 接口调用成功的回调函数 */
|
|
531
|
+
success?: (res: ResponseData) => void;
|
|
532
|
+
/** 接口调用失败的回调函数 */
|
|
533
|
+
fail?: (res: Error) => void;
|
|
534
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
535
|
+
complete?: () => void;
|
|
536
|
+
},
|
|
537
|
+
/** @ignore */
|
|
538
|
+
requestMethod: RequestFunction): void;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module 性格养成
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 获取信息
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```js
|
|
9
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
10
|
+
* plugin.ai.getAiMemoryUserInfo({
|
|
11
|
+
* productKey:'',
|
|
12
|
+
* deviceKey:'',
|
|
13
|
+
* endUserId:'',
|
|
14
|
+
* roleId:'',
|
|
15
|
+
* success (res) {},
|
|
16
|
+
* fail (res) {},
|
|
17
|
+
* complete (res) { }
|
|
18
|
+
* })
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function getAiMemoryUserInfo(options: {
|
|
22
|
+
/** 产品 PK */
|
|
23
|
+
productKey: string;
|
|
24
|
+
/** 设备 DK */
|
|
25
|
+
deviceKey: string;
|
|
26
|
+
/** 终端用户 ID */
|
|
27
|
+
endUserId: string;
|
|
28
|
+
/** 角色 ID */
|
|
29
|
+
roleId: string;
|
|
30
|
+
/** 接口调用成功的回调函数 */
|
|
31
|
+
success?: (res: ResponseData) => void;
|
|
32
|
+
/** 接口调用失败的回调函数 */
|
|
33
|
+
fail?: (res: Error) => void;
|
|
34
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
35
|
+
complete?: () => void;
|
|
36
|
+
},
|
|
37
|
+
/** @ignore */
|
|
38
|
+
requestMethod: RequestFunction): void;
|
|
39
|
+
/**
|
|
40
|
+
* 性格养成-修改信息
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```js
|
|
44
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
45
|
+
* plugin.ai.setAiMemoryUserInfo({
|
|
46
|
+
* productKey:'',
|
|
47
|
+
* deviceKey:'',
|
|
48
|
+
* endUserId:'',
|
|
49
|
+
* roleId:'',
|
|
50
|
+
* username:'',
|
|
51
|
+
* mastername:'',
|
|
52
|
+
* constellation:'',
|
|
53
|
+
* mbti:'',
|
|
54
|
+
* step:1,
|
|
55
|
+
* success (res) {},
|
|
56
|
+
* fail (res) {},
|
|
57
|
+
* complete (res) { }
|
|
58
|
+
* })
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare function setAiMemoryUserInfo(options: {
|
|
62
|
+
/** 产品 PK */
|
|
63
|
+
productKey: string;
|
|
64
|
+
/** 设备 DK */
|
|
65
|
+
deviceKey: string;
|
|
66
|
+
/** 终端用户 ID */
|
|
67
|
+
endUserId: string;
|
|
68
|
+
/** 角色 ID */
|
|
69
|
+
roleId: string;
|
|
70
|
+
/** 玩具名称 */
|
|
71
|
+
username: string;
|
|
72
|
+
/** 主人称呼 */
|
|
73
|
+
mastername: string;
|
|
74
|
+
/** 星座 */
|
|
75
|
+
constellation: string;
|
|
76
|
+
/** MBTI */
|
|
77
|
+
mbti: string;
|
|
78
|
+
/** 步数 */
|
|
79
|
+
step: number;
|
|
80
|
+
/** 接口调用成功的回调函数 */
|
|
81
|
+
success?: (res: ResponseData) => void;
|
|
82
|
+
/** 接口调用失败的回调函数 */
|
|
83
|
+
fail?: (res: Error) => void;
|
|
84
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
85
|
+
complete?: () => void;
|
|
86
|
+
},
|
|
87
|
+
/** @ignore */
|
|
88
|
+
requestMethod: RequestFunction): void;
|
|
89
|
+
/**
|
|
90
|
+
* MBTI对比
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```js
|
|
94
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
95
|
+
* plugin.ai.memoryCompare({
|
|
96
|
+
* productKey:'',
|
|
97
|
+
* deviceKey:'',
|
|
98
|
+
* endUserId:'',
|
|
99
|
+
* roleId:'',
|
|
100
|
+
* days:'20260110,20260111',
|
|
101
|
+
* success (res) {},
|
|
102
|
+
* fail (res) {},
|
|
103
|
+
* complete (res) { }
|
|
104
|
+
* })
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
export declare function memoryCompare(options: {
|
|
108
|
+
/** 角色 ID */
|
|
109
|
+
roleId: string;
|
|
110
|
+
/** 产品 PK */
|
|
111
|
+
productKey: string;
|
|
112
|
+
/** 设备 DK */
|
|
113
|
+
deviceKey: string;
|
|
114
|
+
/** 终端用户 ID */
|
|
115
|
+
endUserId: string;
|
|
116
|
+
/** 时间 */
|
|
117
|
+
days?: number;
|
|
118
|
+
/** 接口调用成功的回调函数 */
|
|
119
|
+
success?: (res: ResponseData) => void;
|
|
120
|
+
/** 接口调用失败的回调函数 */
|
|
121
|
+
fail?: (res: Error) => void;
|
|
122
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
123
|
+
complete?: () => void;
|
|
124
|
+
},
|
|
125
|
+
/** @ignore */
|
|
126
|
+
requestMethod: RequestFunction): void;
|
|
127
|
+
/**
|
|
128
|
+
* MBTI变化提醒
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```js
|
|
132
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
133
|
+
* plugin.ai.memoryRemind({
|
|
134
|
+
* productKey:'',
|
|
135
|
+
* deviceKey:'',
|
|
136
|
+
* endUserId:'',
|
|
137
|
+
* roleId:'',
|
|
138
|
+
* success (res) {},
|
|
139
|
+
* fail (res) {},
|
|
140
|
+
* complete (res) { }
|
|
141
|
+
* })
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
export declare function memoryRemind(options: {
|
|
145
|
+
/** 产品 PK */
|
|
146
|
+
productKey: string;
|
|
147
|
+
/** 设备 DK */
|
|
148
|
+
deviceKey: string;
|
|
149
|
+
/** 终端用户 ID */
|
|
150
|
+
endUserId: string;
|
|
151
|
+
/** 角色 ID */
|
|
152
|
+
roleId: string;
|
|
153
|
+
/** 接口调用成功的回调函数 */
|
|
154
|
+
success?: (res: ResponseData) => void;
|
|
155
|
+
/** 接口调用失败的回调函数 */
|
|
156
|
+
fail?: (res: Error) => void;
|
|
157
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
158
|
+
complete?: () => void;
|
|
159
|
+
},
|
|
160
|
+
/** @ignore */
|
|
161
|
+
requestMethod: RequestFunction): void;
|
|
162
|
+
/**
|
|
163
|
+
* 产品功能开关批量查询
|
|
164
|
+
*
|
|
165
|
+
* @example
|
|
166
|
+
* ```js
|
|
167
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
168
|
+
* plugin.ai.aiProductConfig({
|
|
169
|
+
* productKey:'',
|
|
170
|
+
* types:'SUMMARY,BABY_TASK,CHAT_WARN',
|
|
171
|
+
* success (res) {},
|
|
172
|
+
* fail (res) {},
|
|
173
|
+
* complete (res) { }
|
|
174
|
+
* })
|
|
175
|
+
* ```
|
|
176
|
+
*/
|
|
177
|
+
export declare function aiProductConfig(options: {
|
|
178
|
+
/** 产品 PK */
|
|
179
|
+
productKey: string;
|
|
180
|
+
/** 配置类型,多个以“,”分隔(SUMMARY:聊天总结,GROWTH_ADVICE:成长建议,NURTURE_MBTI_SWITCH:性格养成,BABY_TASK: 成长任务,CHAT_WARN:风险预警) */
|
|
181
|
+
types: string[];
|
|
182
|
+
/** 接口调用成功的回调函数 */
|
|
183
|
+
success?: (res: ResponseData) => void;
|
|
184
|
+
/** 接口调用失败的回调函数 */
|
|
185
|
+
fail?: (res: Error) => void;
|
|
186
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
187
|
+
complete?: () => void;
|
|
188
|
+
},
|
|
189
|
+
/** @ignore */
|
|
190
|
+
requestMethod: RequestFunction): void;
|