@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,445 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module AI 面板
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* AI面板-查询ws的连接配置(火山版)
|
|
6
|
+
*/
|
|
7
|
+
export declare function findWsConnectConfig(options: {
|
|
8
|
+
/** TODO clientType */
|
|
9
|
+
clientType: any;
|
|
10
|
+
/** 设备 DK */
|
|
11
|
+
deviceKey: string;
|
|
12
|
+
/** 产品 PK */
|
|
13
|
+
productKey: string;
|
|
14
|
+
/** 接口调用成功的回调函数 */
|
|
15
|
+
success?: (res: ResponseData) => void;
|
|
16
|
+
/** 接口调用失败的回调函数 */
|
|
17
|
+
fail?: (res: Error) => void;
|
|
18
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
19
|
+
complete?: () => void;
|
|
20
|
+
},
|
|
21
|
+
/** @ignore */
|
|
22
|
+
requestMethod: RequestFunction): void;
|
|
23
|
+
/**
|
|
24
|
+
* AI面板-续约topic(火山版)
|
|
25
|
+
*/
|
|
26
|
+
export declare function renewTopic(options: {
|
|
27
|
+
/** Topic */
|
|
28
|
+
topic: string;
|
|
29
|
+
/** 接口调用成功的回调函数 */
|
|
30
|
+
success?: (res: ResponseData) => void;
|
|
31
|
+
/** 接口调用失败的回调函数 */
|
|
32
|
+
fail?: (res: Error) => void;
|
|
33
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
34
|
+
complete?: () => void;
|
|
35
|
+
},
|
|
36
|
+
/** @ignore */
|
|
37
|
+
requestMethod: RequestFunction): void;
|
|
38
|
+
/**
|
|
39
|
+
* AI面板-获取设备的聊天记录(火山版)
|
|
40
|
+
*/
|
|
41
|
+
export declare function findDevice(options: any,
|
|
42
|
+
/** @ignore */
|
|
43
|
+
requestMethod: RequestFunction): void;
|
|
44
|
+
/**
|
|
45
|
+
* AI面板-设置设备的音色与角色
|
|
46
|
+
*/
|
|
47
|
+
export declare function editDeviceRoleVoice(options: {
|
|
48
|
+
/** TODO 确认接口入参明细 */
|
|
49
|
+
arr: any;
|
|
50
|
+
/** 接口调用成功的回调函数 */
|
|
51
|
+
success?: (res: ResponseData) => void;
|
|
52
|
+
/** 接口调用失败的回调函数 */
|
|
53
|
+
fail?: (res: Error) => void;
|
|
54
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
55
|
+
complete?: () => void;
|
|
56
|
+
},
|
|
57
|
+
/** @ignore */
|
|
58
|
+
requestMethod: RequestFunction): void;
|
|
59
|
+
/**
|
|
60
|
+
* AI面板-获取设备的当前角色与音色
|
|
61
|
+
*/
|
|
62
|
+
export declare function findDeviceRoleVoiceRel(options: {
|
|
63
|
+
/** 设备 DK */
|
|
64
|
+
deviceKey: string;
|
|
65
|
+
/** 产品 PK */
|
|
66
|
+
productKey: string;
|
|
67
|
+
/** 接口调用成功的回调函数 */
|
|
68
|
+
success?: (res: ResponseData) => void;
|
|
69
|
+
/** 接口调用失败的回调函数 */
|
|
70
|
+
fail?: (res: Error) => void;
|
|
71
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
72
|
+
complete?: () => void;
|
|
73
|
+
},
|
|
74
|
+
/** @ignore */
|
|
75
|
+
requestMethod: RequestFunction): void;
|
|
76
|
+
/**
|
|
77
|
+
* AI面板-查询声音页
|
|
78
|
+
*/
|
|
79
|
+
export declare function findPage(options: {
|
|
80
|
+
/** 角色ID */
|
|
81
|
+
roleId: number;
|
|
82
|
+
/** 声音类型:device-设备 manager-管理员 */
|
|
83
|
+
voiceType: 'device' | 'manager';
|
|
84
|
+
/** 设备PK */
|
|
85
|
+
productKey: string;
|
|
86
|
+
/** 设备DK */
|
|
87
|
+
deviceKey: string;
|
|
88
|
+
/** 页码 */
|
|
89
|
+
pageNum: number;
|
|
90
|
+
/** 页大小 */
|
|
91
|
+
pageSize: number;
|
|
92
|
+
/** 接口调用成功的回调函数 */
|
|
93
|
+
success?: (res: ResponseData) => void;
|
|
94
|
+
/** 接口调用失败的回调函数 */
|
|
95
|
+
fail?: (res: Error) => void;
|
|
96
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
97
|
+
complete?: () => void;
|
|
98
|
+
},
|
|
99
|
+
/** @ignore */
|
|
100
|
+
requestMethod: RequestFunction): void;
|
|
101
|
+
/**
|
|
102
|
+
* AI面板-智能体参数设置
|
|
103
|
+
*/
|
|
104
|
+
export declare function agentParamConfig(options: {
|
|
105
|
+
/** 设备PK */
|
|
106
|
+
productKey: string;
|
|
107
|
+
/** 设备DK */
|
|
108
|
+
deviceKey: string;
|
|
109
|
+
/**
|
|
110
|
+
* configParams
|
|
111
|
+
* type wakeWord-唤醒词,chatModeSt-聊天模式
|
|
112
|
+
* data 数据,数组的话,以逗号隔开
|
|
113
|
+
*/
|
|
114
|
+
configParams: Array<{
|
|
115
|
+
type: 'wakeWord' | 'chatModeSt';
|
|
116
|
+
data: string;
|
|
117
|
+
}>;
|
|
118
|
+
/** 页码 */
|
|
119
|
+
/** 接口调用成功的回调函数 */
|
|
120
|
+
success?: (res: ResponseData) => void;
|
|
121
|
+
/** 接口调用失败的回调函数 */
|
|
122
|
+
fail?: (res: Error) => void;
|
|
123
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
124
|
+
complete?: () => void;
|
|
125
|
+
},
|
|
126
|
+
/** @ignore */
|
|
127
|
+
requestMethod: RequestFunction): void;
|
|
128
|
+
/**
|
|
129
|
+
* AI面板-coze聊天记录
|
|
130
|
+
*/
|
|
131
|
+
export declare function cozeFindDevice(options: {
|
|
132
|
+
/** 角色ID */
|
|
133
|
+
roleId: number;
|
|
134
|
+
/** 设备PK */
|
|
135
|
+
productKey: string;
|
|
136
|
+
/** 设备DK */
|
|
137
|
+
deviceKey: string;
|
|
138
|
+
/** 刷新:0,加载:1 默认0 */
|
|
139
|
+
status: number;
|
|
140
|
+
/** status=0:指定为返回结果中的 lastId,status=1:指定为返回结果中的 firstId */
|
|
141
|
+
afterId: number;
|
|
142
|
+
/** 每页条数 */
|
|
143
|
+
limit: number;
|
|
144
|
+
/** 接口调用成功的回调函数 */
|
|
145
|
+
success?: (res: ResponseData) => void;
|
|
146
|
+
/** 接口调用失败的回调函数 */
|
|
147
|
+
fail?: (res: Error) => void;
|
|
148
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
149
|
+
complete?: () => void;
|
|
150
|
+
},
|
|
151
|
+
/** @ignore */
|
|
152
|
+
requestMethod: RequestFunction): void;
|
|
153
|
+
/**
|
|
154
|
+
* AI面板-获取可选角色页
|
|
155
|
+
*/
|
|
156
|
+
export declare function roleFindPage(options: {
|
|
157
|
+
/** 设备PK */
|
|
158
|
+
productKey: string;
|
|
159
|
+
/** 设备DK */
|
|
160
|
+
deviceKey: string;
|
|
161
|
+
/** 页码 */
|
|
162
|
+
pageNum: number;
|
|
163
|
+
/** 页大小 */
|
|
164
|
+
pageSize: number;
|
|
165
|
+
/** 角色类型 */
|
|
166
|
+
roleType: string;
|
|
167
|
+
/** 接口调用成功的回调函数 */
|
|
168
|
+
success?: (res: ResponseData) => void;
|
|
169
|
+
/** 接口调用失败的回调函数 */
|
|
170
|
+
fail?: (res: Error) => void;
|
|
171
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
172
|
+
complete?: () => void;
|
|
173
|
+
},
|
|
174
|
+
/** @ignore */
|
|
175
|
+
requestMethod: RequestFunction): void;
|
|
176
|
+
/**
|
|
177
|
+
* AI面板-智能体角色管理-新增角色
|
|
178
|
+
*/
|
|
179
|
+
export declare function roleAdd(options: {
|
|
180
|
+
/** 设备PK */
|
|
181
|
+
productKey: string;
|
|
182
|
+
/** 产品DK */
|
|
183
|
+
deviceKey: string;
|
|
184
|
+
/** 角色名称 */
|
|
185
|
+
roleName: string;
|
|
186
|
+
/** 角色提示文本 */
|
|
187
|
+
prompt?: string;
|
|
188
|
+
/** 角色描述 */
|
|
189
|
+
roleDesc?: string;
|
|
190
|
+
/** 角色图片地址 */
|
|
191
|
+
rolePicUrl?: string;
|
|
192
|
+
/** 角色声音Id */
|
|
193
|
+
voiceId?: number;
|
|
194
|
+
/** 接口调用成功的回调函数 */
|
|
195
|
+
success?: (res: ResponseData) => void;
|
|
196
|
+
/** 接口调用失败的回调函数 */
|
|
197
|
+
fail?: (res: Error) => void;
|
|
198
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
199
|
+
complete?: () => void;
|
|
200
|
+
},
|
|
201
|
+
/** @ignore */
|
|
202
|
+
requestMethod: RequestFunction): void;
|
|
203
|
+
/**
|
|
204
|
+
* AI面板-智能体角色管理-编辑角色
|
|
205
|
+
*/
|
|
206
|
+
export declare function roleEdit(options: {
|
|
207
|
+
/** 设备PK */
|
|
208
|
+
productKey: string;
|
|
209
|
+
/** 设备DK */
|
|
210
|
+
deviceKey: string;
|
|
211
|
+
/** 角色名称 */
|
|
212
|
+
roleName: string;
|
|
213
|
+
/** 角色ID */
|
|
214
|
+
roleId: number;
|
|
215
|
+
/** 角色提示文本 */
|
|
216
|
+
prompt?: string;
|
|
217
|
+
/** 角色描述 */
|
|
218
|
+
roleDesc?: string;
|
|
219
|
+
/** 角色图片地址 */
|
|
220
|
+
rolePicUrl?: string;
|
|
221
|
+
/** 角色声音Id */
|
|
222
|
+
voiceId?: number;
|
|
223
|
+
/** 接口调用成功的回调函数 */
|
|
224
|
+
success?: (res: ResponseData) => void;
|
|
225
|
+
/** 接口调用失败的回调函数 */
|
|
226
|
+
fail?: (res: Error) => void;
|
|
227
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
228
|
+
complete?: () => void;
|
|
229
|
+
},
|
|
230
|
+
/** @ignore */
|
|
231
|
+
requestMethod: RequestFunction): void;
|
|
232
|
+
/**
|
|
233
|
+
* AI面板-智能体角色管理-角色详情
|
|
234
|
+
*/
|
|
235
|
+
export declare function roleDetail(options: {
|
|
236
|
+
/** 设备PK */
|
|
237
|
+
productKey: string;
|
|
238
|
+
/** 设备DK */
|
|
239
|
+
deviceKey: string;
|
|
240
|
+
/** 角色ID */
|
|
241
|
+
roleId: number;
|
|
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
|
+
* AI面板-智能体角色管理-角色删除
|
|
253
|
+
*/
|
|
254
|
+
export declare function roleDelete(options: {
|
|
255
|
+
/** 设备PK */
|
|
256
|
+
productKey: string;
|
|
257
|
+
/** 设备DK */
|
|
258
|
+
deviceKey: string;
|
|
259
|
+
/** 角色ID */
|
|
260
|
+
roleId: number;
|
|
261
|
+
/** 接口调用成功的回调函数 */
|
|
262
|
+
success?: (res: ResponseData) => void;
|
|
263
|
+
/** 接口调用失败的回调函数 */
|
|
264
|
+
fail?: (res: Error) => void;
|
|
265
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
266
|
+
complete?: () => void;
|
|
267
|
+
},
|
|
268
|
+
/** @ignore */
|
|
269
|
+
requestMethod: RequestFunction): void;
|
|
270
|
+
/**
|
|
271
|
+
* AI面板-删除设备的聊天记录
|
|
272
|
+
* @since 2025-06-04
|
|
273
|
+
*/
|
|
274
|
+
export declare function deleteHistory(options: {
|
|
275
|
+
/** 设备PK */
|
|
276
|
+
productKey: string;
|
|
277
|
+
/** 设备DK */
|
|
278
|
+
deviceKey: string;
|
|
279
|
+
/** 角色ID */
|
|
280
|
+
roleId: number;
|
|
281
|
+
/** 接口调用成功的回调函数 */
|
|
282
|
+
success?: (res: ResponseData) => void;
|
|
283
|
+
/** 接口调用失败的回调函数 */
|
|
284
|
+
fail?: (res: Error) => void;
|
|
285
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
286
|
+
complete?: () => void;
|
|
287
|
+
},
|
|
288
|
+
/** @ignore */
|
|
289
|
+
requestMethod: RequestFunction): void;
|
|
290
|
+
/**
|
|
291
|
+
* AI面板-查询总结
|
|
292
|
+
*/
|
|
293
|
+
export declare function getSummary(options: {
|
|
294
|
+
/** 设备PK */
|
|
295
|
+
productKey: string;
|
|
296
|
+
/** 设备DK */
|
|
297
|
+
deviceKey: string;
|
|
298
|
+
/** 时间 格式: YYYYMMDD */
|
|
299
|
+
day: string;
|
|
300
|
+
/** 接口调用成功的回调函数 */
|
|
301
|
+
success?: (res: ResponseData) => void;
|
|
302
|
+
/** 接口调用失败的回调函数 */
|
|
303
|
+
fail?: (res: Error) => void;
|
|
304
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
305
|
+
complete?: () => void;
|
|
306
|
+
},
|
|
307
|
+
/** @ignore */
|
|
308
|
+
requestMethod: RequestFunction): void;
|
|
309
|
+
/**
|
|
310
|
+
* AI面板-查询产品是否开启音色复刻状态
|
|
311
|
+
*/
|
|
312
|
+
export declare function getAiVoiceCopyStatus(options: {
|
|
313
|
+
/** 产品PK */
|
|
314
|
+
productKey: string;
|
|
315
|
+
/** 接口调用成功的回调函数 */
|
|
316
|
+
success?: (res: ResponseData) => void;
|
|
317
|
+
/** 接口调用失败的回调函数 */
|
|
318
|
+
fail?: (res: Error) => void;
|
|
319
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
320
|
+
complete?: () => void;
|
|
321
|
+
},
|
|
322
|
+
/** @ignore */
|
|
323
|
+
requestMethod: RequestFunction): void;
|
|
324
|
+
/**
|
|
325
|
+
* AI面板-智能体基础语音列表
|
|
326
|
+
*/
|
|
327
|
+
export declare function queryAiBotVoiceList(options: {
|
|
328
|
+
/** 角色ID */
|
|
329
|
+
botRoleId: number;
|
|
330
|
+
/** 产品PK */
|
|
331
|
+
productKey: string;
|
|
332
|
+
/** 设备DK */
|
|
333
|
+
deviceKey: string;
|
|
334
|
+
/** 页码 */
|
|
335
|
+
pageNum: number;
|
|
336
|
+
/** 页大小 */
|
|
337
|
+
pageSize: number;
|
|
338
|
+
/** 接口调用成功的回调函数 */
|
|
339
|
+
success?: (res: ResponseData) => void;
|
|
340
|
+
/** 接口调用失败的回调函数 */
|
|
341
|
+
fail?: (res: Error) => void;
|
|
342
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
343
|
+
complete?: () => void;
|
|
344
|
+
},
|
|
345
|
+
/** @ignore */
|
|
346
|
+
requestMethod: RequestFunction): void;
|
|
347
|
+
/**
|
|
348
|
+
* AI面板-自定义音色查询
|
|
349
|
+
*/
|
|
350
|
+
export declare function getEduVoiceCopyAudio(options: {
|
|
351
|
+
/** 角色ID */
|
|
352
|
+
botRoleId: number;
|
|
353
|
+
/** 产品PK */
|
|
354
|
+
productKey: string;
|
|
355
|
+
/** 设备DK */
|
|
356
|
+
deviceKey: string;
|
|
357
|
+
/** 接口调用成功的回调函数 */
|
|
358
|
+
success?: (res: ResponseData) => void;
|
|
359
|
+
/** 接口调用失败的回调函数 */
|
|
360
|
+
fail?: (res: Error) => void;
|
|
361
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
362
|
+
complete?: () => void;
|
|
363
|
+
},
|
|
364
|
+
/** @ignore */
|
|
365
|
+
requestMethod: RequestFunction): void;
|
|
366
|
+
/**
|
|
367
|
+
* AI面板-声音发布-下架
|
|
368
|
+
*/
|
|
369
|
+
export declare function changePublishStatus(options: {
|
|
370
|
+
/** 产品PK */
|
|
371
|
+
productKey: string;
|
|
372
|
+
/** 设备DK */
|
|
373
|
+
deviceKey: string;
|
|
374
|
+
/** id */
|
|
375
|
+
id: string;
|
|
376
|
+
/** 发布状态 */
|
|
377
|
+
publishStatus: boolean;
|
|
378
|
+
/** 接口调用成功的回调函数 */
|
|
379
|
+
success?: (res: ResponseData) => void;
|
|
380
|
+
/** 接口调用失败的回调函数 */
|
|
381
|
+
fail?: (res: Error) => void;
|
|
382
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
383
|
+
complete?: () => void;
|
|
384
|
+
},
|
|
385
|
+
/** @ignore */
|
|
386
|
+
requestMethod: RequestFunction): void;
|
|
387
|
+
/**
|
|
388
|
+
* AI面板-音色名称编辑
|
|
389
|
+
*/
|
|
390
|
+
export declare function setVoiceNameAudio(options: {
|
|
391
|
+
/** 产品PK */
|
|
392
|
+
productKey: string;
|
|
393
|
+
/** 设备DK */
|
|
394
|
+
deviceKey: string;
|
|
395
|
+
/** 声音id */
|
|
396
|
+
voiceId: string;
|
|
397
|
+
/** 音色名称 */
|
|
398
|
+
voiceName: string;
|
|
399
|
+
/** 接口调用成功的回调函数 */
|
|
400
|
+
success?: (res: ResponseData) => void;
|
|
401
|
+
/** 接口调用失败的回调函数 */
|
|
402
|
+
fail?: (res: Error) => void;
|
|
403
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
404
|
+
complete?: () => void;
|
|
405
|
+
},
|
|
406
|
+
/** @ignore */
|
|
407
|
+
requestMethod: RequestFunction): void;
|
|
408
|
+
/**
|
|
409
|
+
* AI面板-声音复刻-查询套餐列表
|
|
410
|
+
*/
|
|
411
|
+
export declare function findPackageList(options: {
|
|
412
|
+
/** 商户号 */
|
|
413
|
+
merchantNo: string;
|
|
414
|
+
/** 终端应用 */
|
|
415
|
+
terminalCode?: string;
|
|
416
|
+
/** 套餐类型,默认 AI_VOICE_CLONE */
|
|
417
|
+
packageType?: string;
|
|
418
|
+
/** 接口调用成功的回调函数 */
|
|
419
|
+
success?: (res: ResponseData) => void;
|
|
420
|
+
/** 接口调用失败的回调函数 */
|
|
421
|
+
fail?: (res: Error) => void;
|
|
422
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
423
|
+
complete?: () => void;
|
|
424
|
+
},
|
|
425
|
+
/** @ignore */
|
|
426
|
+
requestMethod: RequestFunction): void;
|
|
427
|
+
/**
|
|
428
|
+
* AI面板-声音复刻-终端用户创建业务订单
|
|
429
|
+
*/
|
|
430
|
+
export declare function createBizOrder(options: {
|
|
431
|
+
/** 商户号 */
|
|
432
|
+
merchantNo: string;
|
|
433
|
+
/** 套餐版本id */
|
|
434
|
+
packageVersionId: number;
|
|
435
|
+
/** 购买份数 */
|
|
436
|
+
size: number;
|
|
437
|
+
/** 接口调用成功的回调函数 */
|
|
438
|
+
success?: (res: ResponseData) => void;
|
|
439
|
+
/** 接口调用失败的回调函数 */
|
|
440
|
+
fail?: (res: Error) => void;
|
|
441
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
442
|
+
complete?: () => void;
|
|
443
|
+
},
|
|
444
|
+
/** @ignore */
|
|
445
|
+
requestMethod: RequestFunction): void;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module 自定义角色
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 提示词模板列表
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```
|
|
9
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
10
|
+
* plugin.ai.promptTemplateList({
|
|
11
|
+
* supplier:'',
|
|
12
|
+
* success (res) {},
|
|
13
|
+
* fail (res) {},
|
|
14
|
+
* complete (res) { }
|
|
15
|
+
* })
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare function promptTemplateList(options: {
|
|
19
|
+
/** 供应商 */
|
|
20
|
+
supplier: string;
|
|
21
|
+
/** 模板标签,多个模板使用","分隔 */
|
|
22
|
+
tags?: string;
|
|
23
|
+
/** 接口调用成功的回调函数 */
|
|
24
|
+
success?: (res: ResponseData) => void;
|
|
25
|
+
/** 接口调用失败的回调函数 */
|
|
26
|
+
fail?: (res: Error) => void;
|
|
27
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
28
|
+
complete?: () => void;
|
|
29
|
+
},
|
|
30
|
+
/** @ignore */
|
|
31
|
+
requestMethod: RequestFunction): void;
|
|
32
|
+
/**
|
|
33
|
+
* 提示词模板详情
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```
|
|
37
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
38
|
+
* plugin.ai.promptTemplateDetail({
|
|
39
|
+
* ptcId:'',
|
|
40
|
+
* success (res) {},
|
|
41
|
+
* fail (res) {},
|
|
42
|
+
* complete (res) { }
|
|
43
|
+
* })
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare function promptTemplateDetail(options: {
|
|
47
|
+
/** 模板ID */
|
|
48
|
+
ptcId: number;
|
|
49
|
+
/** 接口调用成功的回调函数 */
|
|
50
|
+
success?: (res: ResponseData) => void;
|
|
51
|
+
/** 接口调用失败的回调函数 */
|
|
52
|
+
fail?: (res: Error) => void;
|
|
53
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
54
|
+
complete?: () => void;
|
|
55
|
+
},
|
|
56
|
+
/** @ignore */
|
|
57
|
+
requestMethod: RequestFunction): void;
|
|
58
|
+
/**
|
|
59
|
+
* 润色提示词
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```
|
|
63
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
64
|
+
* plugin.ai.obtainPolishPrompt({
|
|
65
|
+
* roleName:'',
|
|
66
|
+
* roleInput:'',
|
|
67
|
+
* roleDesc:'',
|
|
68
|
+
* success (res) {},
|
|
69
|
+
* fail (res) {},
|
|
70
|
+
* complete (res) { }
|
|
71
|
+
* })
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
export declare function obtainPolishPrompt(options: {
|
|
75
|
+
/** 角色名称 */
|
|
76
|
+
roleName: string;
|
|
77
|
+
/** 角色补充 */
|
|
78
|
+
roleInput: string;
|
|
79
|
+
/** 角色描述 */
|
|
80
|
+
roleDesc: string;
|
|
81
|
+
/** 接口调用成功的回调函数 */
|
|
82
|
+
success?: (res: ResponseData) => void;
|
|
83
|
+
/** 接口调用失败的回调函数 */
|
|
84
|
+
fail?: (res: Error) => void;
|
|
85
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
86
|
+
complete?: () => void;
|
|
87
|
+
},
|
|
88
|
+
/** @ignore */
|
|
89
|
+
requestMethod: RequestFunction): void;
|
|
90
|
+
/**
|
|
91
|
+
* 查询给角色设置的音色信息
|
|
92
|
+
* @desc 可查询最新的声音信息
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```
|
|
96
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
97
|
+
* plugin.ai.findBotVoice({
|
|
98
|
+
* roleId:'',
|
|
99
|
+
* success (res) {},
|
|
100
|
+
* fail (res) {},
|
|
101
|
+
* complete (res) { }
|
|
102
|
+
* })
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
export declare function findBotVoice(options: {
|
|
106
|
+
/** 角色ID */
|
|
107
|
+
roleId: number;
|
|
108
|
+
/** 接口调用成功的回调函数 */
|
|
109
|
+
success?: (res: ResponseData) => void;
|
|
110
|
+
/** 接口调用失败的回调函数 */
|
|
111
|
+
fail?: (res: Error) => void;
|
|
112
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
113
|
+
complete?: () => void;
|
|
114
|
+
},
|
|
115
|
+
/** @ignore */
|
|
116
|
+
requestMethod: RequestFunction): void;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module 互动总结
|
|
3
|
+
*/
|
|
4
|
+
import type { CommonStatusOptionType } from '../types/params';
|
|
5
|
+
/**
|
|
6
|
+
* 是否显示互动总结/成长建议
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```
|
|
10
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
11
|
+
* plugin.ai.isShowSummaryAndTask({
|
|
12
|
+
* productKey:'',
|
|
13
|
+
* type:'SUMMARY',
|
|
14
|
+
* success (res) {},
|
|
15
|
+
* fail (res) {},
|
|
16
|
+
* complete (res) { }
|
|
17
|
+
* })
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare function isShowSummaryAndTask(options: {
|
|
21
|
+
/** 设备 PK */
|
|
22
|
+
productKey: string;
|
|
23
|
+
/** 类型 */
|
|
24
|
+
type: CommonStatusOptionType;
|
|
25
|
+
/** 接口调用成功的回调函数 */
|
|
26
|
+
success?: (res: ResponseData) => void;
|
|
27
|
+
/** 接口调用失败的回调函数 */
|
|
28
|
+
fail?: (res: Error) => void;
|
|
29
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
30
|
+
complete?: () => void;
|
|
31
|
+
},
|
|
32
|
+
/** @ignore */
|
|
33
|
+
requestMethod: RequestFunction): void;
|
|
34
|
+
/**
|
|
35
|
+
* 查询互动总结是否生成
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```
|
|
39
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
40
|
+
* plugin.ai.querySummaryGenerate({
|
|
41
|
+
* productKey:'',
|
|
42
|
+
* deviceKey:'',
|
|
43
|
+
* startTime:'',
|
|
44
|
+
* endTime:'',
|
|
45
|
+
* success (res) {},
|
|
46
|
+
* fail (res) {},
|
|
47
|
+
* complete (res) { }
|
|
48
|
+
* })
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare function querySummaryGenerate(options: {
|
|
52
|
+
/** 设备 PK */
|
|
53
|
+
productKey?: string;
|
|
54
|
+
/** 设备 DK */
|
|
55
|
+
deviceKey?: string;
|
|
56
|
+
/** 终端用户 ID */
|
|
57
|
+
endUserId?: string;
|
|
58
|
+
/** 设备信息 ID */
|
|
59
|
+
deviceInfoId?: string;
|
|
60
|
+
/** 开始时间,毫秒时间戳 */
|
|
61
|
+
startTime: number;
|
|
62
|
+
/** 结束时间,毫秒时间戳 */
|
|
63
|
+
endTime: number;
|
|
64
|
+
/** 角色ID */
|
|
65
|
+
roleId?: string;
|
|
66
|
+
/** 数据维度:device(设备级别 pk、dk 必传); user(用户级别 pk、dk、endUserId 或 deviceInfoId 必传其一) 默认为device */
|
|
67
|
+
dataDim?: string;
|
|
68
|
+
/** 接口调用成功的回调函数 */
|
|
69
|
+
success?: (res: ResponseData) => void;
|
|
70
|
+
/** 接口调用失败的回调函数 */
|
|
71
|
+
fail?: (res: Error) => void;
|
|
72
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
73
|
+
complete?: () => void;
|
|
74
|
+
},
|
|
75
|
+
/** @ignore */
|
|
76
|
+
requestMethod: RequestFunction): void;
|
|
77
|
+
/**
|
|
78
|
+
* 查询互动总结内容
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```
|
|
82
|
+
* const plugin = requirePlugin('quecPlugin')
|
|
83
|
+
* plugin.ai.summaryCommon({
|
|
84
|
+
* day:''
|
|
85
|
+
* productKey: '',
|
|
86
|
+
* deviceKey: '',
|
|
87
|
+
* endUserId: '',
|
|
88
|
+
* success (res) {},
|
|
89
|
+
* fail (res) {},
|
|
90
|
+
* complete (res) { }
|
|
91
|
+
* })
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
export declare function summaryCommon(options: {
|
|
95
|
+
/** 天数 */
|
|
96
|
+
day: number;
|
|
97
|
+
/** 设备信息 ID */
|
|
98
|
+
deviceInfoId?: string;
|
|
99
|
+
/** 设备 PK */
|
|
100
|
+
productKey?: string;
|
|
101
|
+
/** 设备 DK */
|
|
102
|
+
deviceKey?: string;
|
|
103
|
+
/** 终端用户 ID */
|
|
104
|
+
endUserId?: string;
|
|
105
|
+
/** 数据维度:device(设备级别 pk、dk 必传); user(用户级别 pk、dk、endUserId 或 deviceInfoId 必传其一) 默认为device */
|
|
106
|
+
dataDim?: string;
|
|
107
|
+
/** 接口调用成功的回调函数 */
|
|
108
|
+
success?: (res: ResponseData) => void;
|
|
109
|
+
/** 接口调用失败的回调函数 */
|
|
110
|
+
fail?: (res: Error) => void;
|
|
111
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
112
|
+
complete?: () => void;
|
|
113
|
+
},
|
|
114
|
+
/** @ignore */
|
|
115
|
+
requestMethod: RequestFunction): void;
|