@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 ADDED
@@ -0,0 +1 @@
1
+ # api-ai
@@ -0,0 +1,107 @@
1
+ import type { InjectOptions } from './types/inject';
2
+ import { findPackageListV2, createContentBizOrder } from './modules/buy';
3
+ import { isShowOnDemand, onDemandCategory, onDemandSearchalbum, onDemandTracklist } from './modules/content';
4
+ import { addBabyInfo, updateBabyInfo, getBabyInfo, addBabyTask, updateBabyTask, deleteBabyTask, babyTaskList, taskListByAge, getBabyTaskFinishStatistics, getBabyTaskWeekStatistics, listDeleteBabyTask, chatWarnList, chatWarnDetail, pcmToMp3, uploadGuideVoice, chatWarnResend } from './modules/growth_baby';
5
+ import { getAiMemoryUserInfo, setAiMemoryUserInfo, memoryCompare, memoryRemind, aiProductConfig } from './modules/mbti';
6
+ import { getVoicePrintStatus, getDeviceVoicePrintInfo, addFeature, updateFeature, getFeature, deleteFeature, uploadFeature, updateDeviceVoicePrint } from './modules/voiceprint';
7
+ import { findListV2, findDeviceRoleVoiceRelV2, editDeviceRoleVoiceV2, deviceMessageV2, getSummaryV2, deviceResetV2, deviceShiftV2, deleteMemoryV2 } from './modules/memory';
8
+ import { aiChatWarnStatus, aiChatWarnDisable, aiChatCurrent, aiChatPage, findLicenseTime } from './modules/usage';
9
+ import { isShowSummaryAndTask, querySummaryGenerate, summaryCommon } from './modules/summary';
10
+ import { getSpeedConfig, setSpeedConfig, findBotList, setBotConfigBatch } from './modules/bot';
11
+ import { promptTemplateList, promptTemplateDetail, obtainPolishPrompt, findBotVoice } from './modules/role';
12
+ import { deleteHistoryV2 } from './modules/chat';
13
+ import { findWsConnectConfig, renewTopic, findDevice, editDeviceRoleVoice, findDeviceRoleVoiceRel, findPage, agentParamConfig, cozeFindDevice, roleFindPage, roleAdd, roleEdit, roleDetail, roleDelete, deleteHistory, getSummary, getAiVoiceCopyStatus, queryAiBotVoiceList, getEduVoiceCopyAudio, changePublishStatus, setVoiceNameAudio, findPackageList, createBizOrder } from './modules/panel';
14
+ export declare class QuecPluginAI {
15
+ readonly injectName = "ai";
16
+ readonly version: string;
17
+ /** @ignore */
18
+ Config: any;
19
+ /** @ignore */
20
+ Store: any;
21
+ /** @ignore */
22
+ Request: RequestFunction;
23
+ /** @ignore */
24
+ constructor(e: InjectOptions);
25
+ findListV2(options: Parameters<typeof findListV2>[0]): void;
26
+ findDeviceRoleVoiceRelV2(options: Parameters<typeof findDeviceRoleVoiceRelV2>[0]): void;
27
+ deviceMessageV2(options: Parameters<typeof deviceMessageV2>[0]): void;
28
+ getSummaryV2(options: Parameters<typeof getSummaryV2>[0]): void;
29
+ editDeviceRoleVoiceV2(options: Parameters<typeof editDeviceRoleVoiceV2>[0]): void;
30
+ deviceResetV2(options: Parameters<typeof deviceResetV2>[0]): void;
31
+ deviceShiftV2(options: Parameters<typeof deviceShiftV2>[0]): void;
32
+ deleteMemoryV2(options: Parameters<typeof deleteMemoryV2>[0]): void;
33
+ getVoicePrintStatus(options: Parameters<typeof getVoicePrintStatus>[0]): void;
34
+ getDeviceVoicePrintInfo(options: Parameters<typeof getDeviceVoicePrintInfo>[0]): void;
35
+ addFeature(options: Parameters<typeof addFeature>[0]): void;
36
+ updateFeature(options: Parameters<typeof updateFeature>[0]): void;
37
+ getFeature(options: Parameters<typeof getFeature>[0]): void;
38
+ deleteFeature(options: Parameters<typeof deleteFeature>[0]): void;
39
+ uploadFeature(options: Parameters<typeof uploadFeature>[0]): void;
40
+ updateDeviceVoicePrint(options: Parameters<typeof updateDeviceVoicePrint>[0]): void;
41
+ isShowOnDemand(options: Parameters<typeof isShowOnDemand>[0]): void;
42
+ onDemandCategory(options: Parameters<typeof onDemandCategory>[0]): void;
43
+ onDemandSearchalbum(options: Parameters<typeof onDemandSearchalbum>[0]): void;
44
+ onDemandTracklist(options: Parameters<typeof onDemandTracklist>[0]): void;
45
+ deleteHistoryV2(options: Parameters<typeof deleteHistoryV2>[0]): void;
46
+ promptTemplateList(options: Parameters<typeof promptTemplateList>[0]): void;
47
+ promptTemplateDetail(options: Parameters<typeof promptTemplateDetail>[0]): void;
48
+ obtainPolishPrompt(options: Parameters<typeof obtainPolishPrompt>[0]): void;
49
+ getSpeedConfig(options: Parameters<typeof getSpeedConfig>[0]): void;
50
+ setSpeedConfig(options: Parameters<typeof setSpeedConfig>[0]): void;
51
+ findBotVoice(options: Parameters<typeof findBotVoice>[0]): void;
52
+ findBotList(options: Parameters<typeof findBotList>[0]): void;
53
+ setBotConfigBatch(options: Parameters<typeof setBotConfigBatch>[0]): void;
54
+ summaryCommon(options: Parameters<typeof summaryCommon>[0]): void;
55
+ isShowSummaryAndTask(options: Parameters<typeof isShowSummaryAndTask>[0]): void;
56
+ querySummaryGenerate(options: Parameters<typeof querySummaryGenerate>[0]): void;
57
+ findPackageListV2(options: Parameters<typeof findPackageListV2>[0]): ReturnType<typeof findPackageListV2>;
58
+ createContentBizOrder(options: Parameters<typeof createContentBizOrder>[0]): void;
59
+ addBabyInfo(options: Parameters<typeof addBabyInfo>[0]): void;
60
+ updateBabyInfo(options: Parameters<typeof updateBabyInfo>[0]): void;
61
+ getBabyInfo(options: Parameters<typeof getBabyInfo>[0]): void;
62
+ addBabyTask(options: Parameters<typeof addBabyTask>[0]): void;
63
+ updateBabyTask(options: Parameters<typeof updateBabyTask>[0]): void;
64
+ deleteBabyTask(options: Parameters<typeof deleteBabyTask>[0]): void;
65
+ babyTaskList(options: Parameters<typeof babyTaskList>[0]): void;
66
+ listDeleteBabyTask(options: Parameters<typeof listDeleteBabyTask>[0]): void;
67
+ taskListByAge(options: Parameters<typeof taskListByAge>[0]): void;
68
+ getBabyTaskFinishStatistics(options: Parameters<typeof getBabyTaskFinishStatistics>[0]): void;
69
+ getBabyTaskWeekStatistics(options: Parameters<typeof getBabyTaskWeekStatistics>[0]): void;
70
+ chatWarnList(options: Parameters<typeof chatWarnList>[0]): void;
71
+ chatWarnDetail(options: Parameters<typeof chatWarnDetail>[0]): void;
72
+ pcmToMp3(options: Parameters<typeof pcmToMp3>[0]): void;
73
+ uploadGuideVoice(options: Parameters<typeof uploadGuideVoice>[0]): void;
74
+ chatWarnResend(options: Parameters<typeof chatWarnResend>[0]): void;
75
+ getAiMemoryUserInfo(options: Parameters<typeof getAiMemoryUserInfo>[0]): void;
76
+ setAiMemoryUserInfo(options: Parameters<typeof setAiMemoryUserInfo>[0]): void;
77
+ memoryCompare(options: Parameters<typeof memoryCompare>[0]): void;
78
+ memoryRemind(options: Parameters<typeof memoryRemind>[0]): void;
79
+ aiProductConfig(options: Parameters<typeof aiProductConfig>[0]): void;
80
+ aiChatWarnStatus(options: Parameters<typeof aiChatWarnStatus>[0]): void;
81
+ aiChatWarnDisable(options: Parameters<typeof aiChatWarnDisable>[0]): void;
82
+ aiChatCurrent(options: Parameters<typeof aiChatCurrent>[0]): void;
83
+ aiChatPage(options: Parameters<typeof aiChatPage>[0]): void;
84
+ findLicenseTime(options: Parameters<typeof findLicenseTime>[0]): void;
85
+ findWsConnectConfig(options: Parameters<typeof findWsConnectConfig>[0]): void;
86
+ renewTopic(options: Parameters<typeof renewTopic>[0]): void;
87
+ findDevice(options: Parameters<typeof findDevice>[0]): void;
88
+ editDeviceRoleVoice(options: Parameters<typeof editDeviceRoleVoice>[0]): void;
89
+ findDeviceRoleVoiceRel(options: Parameters<typeof findDeviceRoleVoiceRel>[0]): void;
90
+ findPage(options: Parameters<typeof findPage>[0]): void;
91
+ agentParamConfig(options: Parameters<typeof agentParamConfig>[0]): void;
92
+ cozeFindDevice(options: Parameters<typeof cozeFindDevice>[0]): void;
93
+ roleDetail(options: Parameters<typeof roleDetail>[0]): void;
94
+ roleFindPage(options: Parameters<typeof roleFindPage>[0]): void;
95
+ roleAdd(options: Parameters<typeof roleAdd>[0]): void;
96
+ roleEdit(options: Parameters<typeof roleEdit>[0]): void;
97
+ roleDelete(options: Parameters<typeof roleDelete>[0]): void;
98
+ deleteHistory(options: Parameters<typeof deleteHistory>[0]): void;
99
+ getSummary(options: Parameters<typeof getSummary>[0]): void;
100
+ queryAiBotVoiceList(options: Parameters<typeof queryAiBotVoiceList>[0]): void;
101
+ setVoiceNameAudio(options: Parameters<typeof setVoiceNameAudio>[0]): void;
102
+ getEduVoiceCopyAudio(options: Parameters<typeof getEduVoiceCopyAudio>[0]): void;
103
+ getAiVoiceCopyStatus(options: Parameters<typeof getAiVoiceCopyStatus>[0]): void;
104
+ findPackageList(options: Parameters<typeof findPackageList>[0]): void;
105
+ changePublishStatus(options: Parameters<typeof changePublishStatus>[0]): void;
106
+ createBizOrder(options: Parameters<typeof createBizOrder>[0]): void;
107
+ }
package/dist/api.d.ts ADDED
@@ -0,0 +1,332 @@
1
+ export declare const apiMap: {
2
+ findWsConnectConfig: {
3
+ path: string;
4
+ method: string;
5
+ };
6
+ renewTopic: {
7
+ path: string;
8
+ method: string;
9
+ };
10
+ findDevice: {
11
+ path: string;
12
+ method: string;
13
+ };
14
+ editDeviceRoleVoice: {
15
+ path: string;
16
+ method: string;
17
+ };
18
+ findDeviceRoleVoiceRel: {
19
+ path: string;
20
+ method: string;
21
+ };
22
+ findPage: {
23
+ path: string;
24
+ method: string;
25
+ };
26
+ agentParamConfig: {
27
+ path: string;
28
+ method: string;
29
+ };
30
+ cozeFindPage: {
31
+ path: string;
32
+ method: string;
33
+ };
34
+ roleFindPage: {
35
+ path: string;
36
+ method: string;
37
+ };
38
+ roleAdd: {
39
+ path: string;
40
+ method: string;
41
+ };
42
+ roleEdit: {
43
+ path: string;
44
+ method: string;
45
+ };
46
+ roleDetail: {
47
+ path: string;
48
+ method: string;
49
+ };
50
+ roleDelete: {
51
+ path: string;
52
+ method: string;
53
+ };
54
+ deleteHistory: {
55
+ path: string;
56
+ method: string;
57
+ isFormat: number;
58
+ };
59
+ getSummary: {
60
+ path: string;
61
+ method: string;
62
+ };
63
+ getAiVoiceCopyStatus: {
64
+ path: string;
65
+ method: string;
66
+ };
67
+ queryAiBotVoiceList: {
68
+ path: string;
69
+ method: string;
70
+ };
71
+ getEduVoiceCopyAudio: {
72
+ path: string;
73
+ method: string;
74
+ };
75
+ changePublishStatus: {
76
+ path: string;
77
+ method: string;
78
+ };
79
+ setVoiceNameAudio: {
80
+ path: string;
81
+ method: string;
82
+ };
83
+ findPackageList: {
84
+ path: string;
85
+ method: string;
86
+ };
87
+ createBizOrder: {
88
+ path: string;
89
+ method: string;
90
+ };
91
+ getVoicePrintStatus: {
92
+ path: string;
93
+ method: string;
94
+ };
95
+ getDeviceVoicePrintInfo: {
96
+ path: string;
97
+ method: string;
98
+ };
99
+ addFeature: {
100
+ path: string;
101
+ method: string;
102
+ };
103
+ getFeature: {
104
+ path: string;
105
+ method: string;
106
+ };
107
+ updateFeature: {
108
+ path: string;
109
+ method: string;
110
+ };
111
+ deleteFeature: {
112
+ path: string;
113
+ method: string;
114
+ };
115
+ uploadFeature: {
116
+ path: string;
117
+ };
118
+ updateDeviceVoicePrint: {
119
+ path: string;
120
+ method: string;
121
+ };
122
+ getSpeedConfig: {
123
+ path: string;
124
+ method: string;
125
+ };
126
+ setSpeedConfig: {
127
+ path: string;
128
+ method: string;
129
+ };
130
+ findBotList: {
131
+ path: string;
132
+ method: string;
133
+ };
134
+ setBotConfigBatch: {
135
+ path: string;
136
+ method: string;
137
+ };
138
+ aiChatWarnStatus: {
139
+ path: string;
140
+ method: string;
141
+ };
142
+ aiChatWarnDisable: {
143
+ path: string;
144
+ method: string;
145
+ };
146
+ aiChatCurrent: {
147
+ path: string;
148
+ method: string;
149
+ };
150
+ aiChatPage: {
151
+ path: string;
152
+ method: string;
153
+ };
154
+ findLicenseTime: {
155
+ path: string;
156
+ method: string;
157
+ };
158
+ querySummaryGenerate: {
159
+ path: string;
160
+ method: string;
161
+ };
162
+ summaryCommon: {
163
+ path: string;
164
+ method: string;
165
+ };
166
+ isShowSummaryAndTask: {
167
+ path: string;
168
+ method: string;
169
+ };
170
+ promptTemplateList: {
171
+ path: string;
172
+ method: string;
173
+ };
174
+ promptTemplateDetail: {
175
+ path: string;
176
+ method: string;
177
+ };
178
+ obtainPolishPrompt: {
179
+ path: string;
180
+ method: string;
181
+ };
182
+ findBotVoice: {
183
+ path: string;
184
+ method: string;
185
+ };
186
+ findListV2: {
187
+ path: string;
188
+ method: string;
189
+ };
190
+ findDeviceRoleVoiceRelV2: {
191
+ path: string;
192
+ method: string;
193
+ };
194
+ deviceMessageV2: {
195
+ path: string;
196
+ method: string;
197
+ };
198
+ getSummaryV2: {
199
+ path: string;
200
+ method: string;
201
+ };
202
+ editDeviceRoleVoiceV2: {
203
+ path: string;
204
+ method: string;
205
+ };
206
+ deviceResetV2: {
207
+ path: string;
208
+ method: string;
209
+ };
210
+ deviceShiftV2: {
211
+ path: string;
212
+ method: string;
213
+ };
214
+ deleteMemoryV2: {
215
+ path: string;
216
+ method: string;
217
+ isFormat: number;
218
+ };
219
+ getAiMemoryUserInfo: {
220
+ path: string;
221
+ method: string;
222
+ };
223
+ setAiMemoryUserInfo: {
224
+ path: string;
225
+ method: string;
226
+ };
227
+ memoryCompare: {
228
+ path: string;
229
+ method: string;
230
+ };
231
+ memoryRemind: {
232
+ path: string;
233
+ method: string;
234
+ };
235
+ aiProductConfig: {
236
+ path: string;
237
+ method: string;
238
+ };
239
+ addBabyTask: {
240
+ path: string;
241
+ method: string;
242
+ };
243
+ updateBabyTask: {
244
+ path: string;
245
+ method: string;
246
+ };
247
+ deleteBabyTask: {
248
+ path: string;
249
+ method: string;
250
+ isFormat: number;
251
+ };
252
+ babyTaskList: {
253
+ path: string;
254
+ method: string;
255
+ };
256
+ taskListByAge: {
257
+ path: string;
258
+ method: string;
259
+ };
260
+ getBabyTaskFinishStatistics: {
261
+ path: string;
262
+ method: string;
263
+ };
264
+ getBabyTaskWeekStatistics: {
265
+ path: string;
266
+ method: string;
267
+ };
268
+ listDeleteBabyTask: {
269
+ path: string;
270
+ method: string;
271
+ };
272
+ chatWarnList: {
273
+ path: string;
274
+ method: string;
275
+ };
276
+ chatWarnDetail: {
277
+ path: string;
278
+ method: string;
279
+ };
280
+ pcmToMp3: {
281
+ path: string;
282
+ };
283
+ chatWarnSend: {
284
+ path: string;
285
+ method: string;
286
+ };
287
+ chatWarnResend: {
288
+ path: string;
289
+ method: string;
290
+ };
291
+ addBabyInfo: {
292
+ path: string;
293
+ method: string;
294
+ };
295
+ updateBabyInfo: {
296
+ path: string;
297
+ method: string;
298
+ };
299
+ getBabyInfo: {
300
+ path: string;
301
+ method: string;
302
+ };
303
+ isShowOnDemand: {
304
+ path: string;
305
+ method: string;
306
+ };
307
+ onDemandCategory: {
308
+ path: string;
309
+ method: string;
310
+ };
311
+ onDemandSearchalbum: {
312
+ path: string;
313
+ method: string;
314
+ };
315
+ onDemandTracklist: {
316
+ path: string;
317
+ method: string;
318
+ };
319
+ deleteHistoryV2: {
320
+ path: string;
321
+ method: string;
322
+ isFormat: number;
323
+ };
324
+ findPackageListV2: {
325
+ path: string;
326
+ method: string;
327
+ };
328
+ createContentBizOrder: {
329
+ path: string;
330
+ method: string;
331
+ };
332
+ };
@@ -0,0 +1 @@
1
+ export declare const INJECT_NAME = "ai";
@@ -0,0 +1,7 @@
1
+ import { QuecPluginAI } from './QuecPluginAI';
2
+ import type { InjectOptions } from './types/inject';
3
+ declare const _default: {
4
+ injectName: string;
5
+ createInstance: (e: InjectOptions) => QuecPluginAI;
6
+ };
7
+ export default _default;
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={23(e,i,t){Object.defineProperty(i,"__esModule",{value:!0}),i.aiChatWarnStatus=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId,supplier:e.supplier},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.aiChatWarnStatus,params:n,options:{success:t,fail:o,complete:c}})},i.aiChatWarnDisable=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId,supplier:e.supplier,warnType:e.warnType},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.aiChatWarnDisable,params:n,options:{success:t,fail:o,complete:c}})},i.aiChatCurrent=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId,supplier:e.supplier},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.aiChatCurrent,params:n,options:{success:t,fail:o,complete:c}})},i.aiChatPage=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId,supplier:e.supplier,pageNum:e.pageNum,pageSize:e.pageSize},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.aiChatPage,params:n,options:{success:t,fail:o,complete:c}})},i.findLicenseTime=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.findLicenseTime,params:n,options:{success:t,fail:o,complete:c}})};const a=t(765),s=t(454)},63(e,i,t){Object.defineProperty(i,"__esModule",{value:!0}),i.QuecPluginAI=void 0;const a=t(213),s=t(540),o=t(89),c=t(432),p=t(514),n=t(387),d=t(777),r=t(23),l=t(920),u=t(845),m=t(90),f=t(536),y=t(926);i.QuecPluginAI=class{constructor(e){this.injectName=a.INJECT_NAME,this.version="0.1.4",this.Config=e.sdk_config,this.Store=e.sdk_store_user,this.Request=e.sdk_request_map.RequestSaaS}findListV2(e){(0,d.findListV2)(e,this.Request)}findDeviceRoleVoiceRelV2(e){(0,d.findDeviceRoleVoiceRelV2)(e,this.Request)}deviceMessageV2(e){(0,d.deviceMessageV2)(e,this.Request)}getSummaryV2(e){(0,d.getSummaryV2)(e,this.Request)}editDeviceRoleVoiceV2(e){(0,d.editDeviceRoleVoiceV2)(e,this.Request)}deviceResetV2(e){(0,d.deviceResetV2)(e,this.Request)}deviceShiftV2(e){(0,d.deviceShiftV2)(e,this.Request)}deleteMemoryV2(e){(0,d.deleteMemoryV2)(e,this.Request)}getVoicePrintStatus(e){(0,n.getVoicePrintStatus)(e,this.Request)}getDeviceVoicePrintInfo(e){(0,n.getDeviceVoicePrintInfo)(e,this.Request)}addFeature(e){(0,n.addFeature)(e,this.Request)}updateFeature(e){(0,n.updateFeature)(e,this.Request)}getFeature(e){(0,n.getFeature)(e,this.Request)}deleteFeature(e){(0,n.deleteFeature)(e,this.Request)}uploadFeature(e){(0,n.uploadFeature)(e,this.Config,this.Store)}updateDeviceVoicePrint(e){(0,n.updateDeviceVoicePrint)(e,this.Request)}isShowOnDemand(e){(0,o.isShowOnDemand)(e,this.Request)}onDemandCategory(e){(0,o.onDemandCategory)(e,this.Request)}onDemandSearchalbum(e){(0,o.onDemandSearchalbum)(e,this.Request)}onDemandTracklist(e){(0,o.onDemandTracklist)(e,this.Request)}deleteHistoryV2(e){(0,f.deleteHistoryV2)(e,this.Request)}promptTemplateList(e){(0,m.promptTemplateList)(e,this.Request)}promptTemplateDetail(e){(0,m.promptTemplateDetail)(e,this.Request)}obtainPolishPrompt(e){(0,m.obtainPolishPrompt)(e,this.Request)}getSpeedConfig(e){(0,u.getSpeedConfig)(e,this.Request)}setSpeedConfig(e){(0,u.setSpeedConfig)(e,this.Request)}findBotVoice(e){(0,m.findBotVoice)(e,this.Request)}findBotList(e){(0,u.findBotList)(e,this.Request)}setBotConfigBatch(e){(0,u.setBotConfigBatch)(e,this.Request)}summaryCommon(e){(0,l.summaryCommon)(e,this.Request)}isShowSummaryAndTask(e){(0,l.isShowSummaryAndTask)(e,this.Request)}querySummaryGenerate(e){(0,l.querySummaryGenerate)(e,this.Request)}findPackageListV2(e){return(0,s.findPackageListV2)(e,this.Request)}createContentBizOrder(e){(0,s.createContentBizOrder)(e,this.Request)}addBabyInfo(e){(0,c.addBabyInfo)(e,this.Request)}updateBabyInfo(e){(0,c.updateBabyInfo)(e,this.Request)}getBabyInfo(e){(0,c.getBabyInfo)(e,this.Request)}addBabyTask(e){(0,c.addBabyTask)(e,this.Request)}updateBabyTask(e){(0,c.updateBabyTask)(e,this.Request)}deleteBabyTask(e){(0,c.deleteBabyTask)(e,this.Request)}babyTaskList(e){(0,c.babyTaskList)(e,this.Request)}listDeleteBabyTask(e){(0,c.listDeleteBabyTask)(e,this.Request)}taskListByAge(e){(0,c.taskListByAge)(e,this.Request)}getBabyTaskFinishStatistics(e){(0,c.getBabyTaskFinishStatistics)(e,this.Request)}getBabyTaskWeekStatistics(e){(0,c.getBabyTaskWeekStatistics)(e,this.Request)}chatWarnList(e){(0,c.chatWarnList)(e,this.Request)}chatWarnDetail(e){(0,c.chatWarnDetail)(e,this.Request)}pcmToMp3(e){(0,c.pcmToMp3)(e,this.Config,this.Store)}uploadGuideVoice(e){(0,c.uploadGuideVoice)(e,this.Request)}chatWarnResend(e){(0,c.chatWarnResend)(e,this.Request)}getAiMemoryUserInfo(e){(0,p.getAiMemoryUserInfo)(e,this.Request)}setAiMemoryUserInfo(e){(0,p.setAiMemoryUserInfo)(e,this.Request)}memoryCompare(e){(0,p.memoryCompare)(e,this.Request)}memoryRemind(e){(0,p.memoryRemind)(e,this.Request)}aiProductConfig(e){(0,p.aiProductConfig)(e,this.Request)}aiChatWarnStatus(e){(0,r.aiChatWarnStatus)(e,this.Request)}aiChatWarnDisable(e){(0,r.aiChatWarnDisable)(e,this.Request)}aiChatCurrent(e){(0,r.aiChatCurrent)(e,this.Request)}aiChatPage(e){(0,r.aiChatPage)(e,this.Request)}findLicenseTime(e){(0,r.findLicenseTime)(e,this.Request)}findWsConnectConfig(e){(0,y.findWsConnectConfig)(e,this.Request)}renewTopic(e){(0,y.renewTopic)(e,this.Request)}findDevice(e){(0,y.findDevice)(e,this.Request)}editDeviceRoleVoice(e){(0,y.editDeviceRoleVoice)(e,this.Request)}findDeviceRoleVoiceRel(e){(0,y.findDeviceRoleVoiceRel)(e,this.Request)}findPage(e){(0,y.findPage)(e,this.Request)}agentParamConfig(e){(0,y.agentParamConfig)(e,this.Request)}cozeFindDevice(e){(0,y.cozeFindDevice)(e,this.Request)}roleDetail(e){(0,y.roleDetail)(e,this.Request)}roleFindPage(e){(0,y.roleFindPage)(e,this.Request)}roleAdd(e){(0,y.roleAdd)(e,this.Request)}roleEdit(e){(0,y.roleEdit)(e,this.Request)}roleDelete(e){(0,y.roleDelete)(e,this.Request)}deleteHistory(e){(0,y.deleteHistory)(e,this.Request)}getSummary(e){(0,y.getSummary)(e,this.Request)}queryAiBotVoiceList(e){(0,y.queryAiBotVoiceList)(e,this.Request)}setVoiceNameAudio(e){(0,y.setVoiceNameAudio)(e,this.Request)}getEduVoiceCopyAudio(e){(0,y.getEduVoiceCopyAudio)(e,this.Request)}getAiVoiceCopyStatus(e){(0,y.getAiVoiceCopyStatus)(e,this.Request)}findPackageList(e){(0,y.findPackageList)(e,this.Request)}changePublishStatus(e){(0,y.changePublishStatus)(e,this.Request)}createBizOrder(e){(0,y.createBizOrder)(e,this.Request)}}},89(e,i,t){Object.defineProperty(i,"__esModule",{value:!0}),i.isShowOnDemand=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.isShowOnDemand,params:n,options:{success:t,fail:o,complete:c}})},i.onDemandCategory=function(e,i){const{success:t,fail:a,complete:o}=e;let c={code:e.code?e.code:"quec_common_app"};i({apiConfig:s.apiMap.onDemandCategory,params:c,options:{success:t,fail:a,complete:o}})},i.onDemandSearchalbum=function(e,i){const{success:t,fail:o,complete:c}=e;let p={type:e.type,name:e.name,pageNum:e.pageNum,pageSize:e.pageSize},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.onDemandSearchalbum,params:n,options:{success:t,fail:o,complete:c}})},i.onDemandTracklist=function(e,i){const{success:t,fail:o,complete:c}=e;let p={albumId:e.albumId,pageNum:e.pageNum,pageSize:e.pageSize},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.onDemandTracklist,params:n,options:{success:t,fail:o,complete:c}})};const a=t(765),s=t(454)},90(e,i,t){Object.defineProperty(i,"__esModule",{value:!0}),i.promptTemplateList=function(e,i){const{success:t,fail:o,complete:c}=e;let p={supplier:e.supplier,tags:e.tags},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.promptTemplateList,params:n,options:{success:t,fail:o,complete:c}})},i.promptTemplateDetail=function(e,i){const{success:t,fail:o,complete:c}=e;let p={ptcId:e.ptcId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.promptTemplateDetail,params:n,options:{success:t,fail:o,complete:c}})},i.obtainPolishPrompt=function(e,i){const{success:t,fail:o,complete:c}=e;let p={roleName:e.roleName,roleInput:e.roleInput,roleDesc:e.roleDesc},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.obtainPolishPrompt,params:n,options:{success:t,fail:o,complete:c}})},i.findBotVoice=function(e,i){const{success:t,fail:o,complete:c}=e;let p={roleId:e.roleId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.findBotVoice,params:n,options:{success:t,fail:o,complete:c}})};const a=t(765),s=t(454)},213(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.INJECT_NAME=void 0,i.INJECT_NAME="ai"},387(e,i,t){Object.defineProperty(i,"__esModule",{value:!0}),i.getVoicePrintStatus=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.getVoicePrintStatus,params:n,options:{success:t,fail:o,complete:c}})},i.getDeviceVoicePrintInfo=function(e,i){const{success:t,fail:o,complete:c}=e;let p={vpId:e.vpId,deviceInfoId:e.deviceInfoId,productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.getDeviceVoicePrintInfo,params:n,options:{success:t,fail:o,complete:c}})},i.addFeature=function(e,i){const{success:t,fail:o,complete:c}=e;let p={vpId:e.vpId,featureName:e.featureName,featureDesc:e.featureDesc},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.addFeature,params:n,options:{success:t,fail:o,complete:c}})},i.updateFeature=function(e,i){const{success:t,fail:o,complete:c}=e;let p={vpfId:e.vpfId,featureName:e.featureName,featureDesc:e.featureDesc},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.updateFeature,params:n,options:{success:t,fail:o,complete:c}})},i.getFeature=function(e,i){const{success:t,fail:o,complete:c}=e;let p={vpfId:e.vpfId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.getFeature,params:n,options:{success:t,fail:o,complete:c}})},i.deleteFeature=function(e,i){const{success:t,fail:o,complete:c}=e;let p={vpfId:e.vpfId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.deleteFeature,params:n,options:{success:t,fail:o,complete:c}})},i.uploadFeature=function(e,i,t){const{success:a,fail:o,complete:c}=e,p=i.getSaasBaseURL();wx.uploadFile({url:p+s.apiMap.uploadFeature.path,header:{Authorization:t.getToken(),"Content-Type":"multipart/form-data","Accept-Language":"zh-CN"},filePath:e.file,name:"file",formData:{vpfId:e.vpfId,file:e.file,fileType:e.fileType,sampleRate:e.sampleRate,channel:e.channel},success(e){a&&a(e)},fail(e){o&&o(e)},complete(e){c&&c(e)}})},i.updateDeviceVoicePrint=function(e,i){const{success:t,fail:a,complete:o}=e;let c={diId:e.diId,vpId:e.vpId,vpfIds:e.vpfIds,activeStatus:e.activeStatus,identifyStatus:e.identifyStatus,wakeupStatus:e.wakeupStatus,interruptStatus:e.interruptStatus};i({apiConfig:s.apiMap.updateDeviceVoicePrint,params:c,options:{success:t,fail:a,complete:o}})};const a=t(765),s=t(454)},432(e,i,t){Object.defineProperty(i,"__esModule",{value:!0}),i.addBabyInfo=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey,nickname:e.nickname,gender:e.gender,birthdayYear:e.birthdayYear,birthdayMonth:e.birthdayMonth,birthdayDay:e.birthdayDay,birthdayTime:e.birthdayTime,endUserId:e.endUserId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.addBabyInfo,params:n,options:{success:t,fail:o,complete:c}})},i.updateBabyInfo=function(e,i){const{success:t,fail:o,complete:c}=e;let p={id:e.id,nickname:e.nickname,gender:e.gender,birthdayYear:e.birthdayYear,birthdayMonth:e.birthdayMonth,birthdayDay:e.birthdayDay,birthdayTime:e.birthdayTime},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.updateBabyInfo,params:n,options:{success:t,fail:o,complete:c}})},i.getBabyInfo=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.getBabyInfo,params:n,options:{success:t,fail:o,complete:c}})},i.addBabyTask=function(e,i){const{success:t,fail:o,complete:c}=e;let p={babyId:e.babyId,growthTaskIds:e.growthTaskIds,repeatDays:e.repeatDays,startTime:e.startTime,endTime:e.endTime},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.addBabyTask,params:n,options:{success:t,fail:o,complete:c}})},i.updateBabyTask=function(e,i){const{success:t,fail:o,complete:c}=e;let p={babyTaskId:e.babyTaskId,repeatDays:e.repeatDays,startTime:e.startTime,endTime:e.endTime},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.updateBabyTask,params:n,options:{success:t,fail:o,complete:c}})},i.deleteBabyTask=function(e,i){const{success:t,fail:o,complete:c}=e;let p={babyTaskId:e.babyTaskId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.deleteBabyTask,params:n,options:{success:t,fail:o,complete:c}})},i.babyTaskList=function(e,i){const{success:t,fail:o,complete:c}=e;let p={babyId:e.babyId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.babyTaskList,params:n,options:{success:t,fail:o,complete:c}})},i.taskListByAge=function(e,i){const{success:t,fail:o,complete:c}=e;let p={age:e.age},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.taskListByAge,params:n,options:{success:t,fail:o,complete:c}})},i.getBabyTaskFinishStatistics=function(e,i){const{success:t,fail:o,complete:c}=e;let p={babyTaskId:e.babyTaskId,startTime:e.startTime,endTime:e.endTime},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.getBabyTaskFinishStatistics,params:n,options:{success:t,fail:o,complete:c}})},i.getBabyTaskWeekStatistics=function(e,i){const{success:t,fail:o,complete:c}=e;let p={babyId:e.babyId,startTime:e.startTime,endTime:e.endTime},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.getBabyTaskWeekStatistics,params:n,options:{success:t,fail:o,complete:c}})},i.listDeleteBabyTask=function(e,i){const{success:t,fail:o,complete:c}=e;let p={babyId:e.babyId,pageNum:e.pageNum,pageSize:e.pageSize},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.listDeleteBabyTask,params:n,options:{success:t,fail:o,complete:c}})},i.chatWarnList=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId,diId:e.diId,pageSize:e.pageSize,pageNum:e.pageNum,status:e.status},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.chatWarnList,params:n,options:{success:t,fail:o,complete:c}})},i.chatWarnDetail=function(e,i){const{success:t,fail:a,complete:o}=e;let c={id:e.id};i({apiConfig:s.apiMap.chatWarnDetail,params:c,options:{success:t,fail:a,complete:o}})},i.pcmToMp3=function(e,i,t){const{success:a,fail:o,complete:c}=e,p=i.getSaasBaseURL();wx.uploadFile({url:p+s.apiMap.pcmToMp3.path,header:{Authorization:t.getToken(),"Content-Type":"multipart/form-data","Accept-Language":"zh-CN"},filePath:e.file,name:"file",formData:{file:e.file},success(e){a&&a(e)},fail(e){o&&o(e)},complete(e){c&&c(e)}})},i.uploadGuideVoice=function(e,i){const{success:t,fail:o,complete:c}=e;let p={id:e.id,productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId,voiceFileUrl:e.voiceFileUrl,voiceTime:e.voiceTime},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.chatWarnSend,params:n,options:{success:t,fail:o,complete:c}})},i.chatWarnResend=function(e,i){const{success:t,fail:a,complete:o}=e;let c={id:e.id,productKey:e.productKey,deviceKey:e.deviceKey};i({apiConfig:s.apiMap.chatWarnResend,params:c,options:{success:t,fail:a,complete:o}})};const a=t(765),s=t(454)},454(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.apiMap=void 0;i.apiMap=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},{findPackageListV2:{path:"/v2/order/enduserapi/trade/package/findPackageList/v2",method:"GET"},createContentBizOrder:{path:"/v2/order/enduserapi/biz/order/createSimpleDeviceBizOrder",method:"POST"}}),{deleteHistoryV2:{path:"/v2/aibiz/enduserapi/chatHistory/delete/v2",method:"DELETE",isFormat:1}}),{isShowOnDemand:{path:"/v2/aibiz/enduserapi/app/on/demand/isShow",method:"GET"},onDemandCategory:{path:"/v2/aibiz/enduserapi/app/on/demand/category",method:"GET"},onDemandSearchalbum:{path:"/v2/aibiz/enduserapi/app/on/demand/searchalbum",method:"GET"},onDemandTracklist:{path:"/v2/aibiz/enduserapi/app/on/demand/tracklist",method:"GET"}}),{addBabyInfo:{path:"/v2/aibiz/enduserapi/babyInfo/add",method:"POST"},updateBabyInfo:{path:"/v2/aibiz/enduserapi/babyInfo/update",method:"PUT"},getBabyInfo:{path:"/v2/aibiz/enduserapi/babyInfo/getDetail",method:"GET"}}),{chatWarnList:{path:"/v2/aibiz/enduserapi/aiChatWarn/list",method:"GET"},chatWarnDetail:{path:"/v2/aibiz/enduserapi/aiChatWarn/detail",method:"GET"},pcmToMp3:{path:"/v2/media/enduserapi/file/pcmToMp3"},chatWarnSend:{path:"/v2/aibiz/enduserapi/aiChatWarn/sendParentGuideVoice",method:"POST"},chatWarnResend:{path:"/v2/aibiz/enduserapi/aiChatWarn/resendParentGuideVoice",method:"POST"}}),{addBabyTask:{path:"/v2/aibiz/enduserapi/babyTask/add",method:"POST"},updateBabyTask:{path:"/v2/aibiz/enduserapi/babyTask/update",method:"PUT"},deleteBabyTask:{path:"/v2/aibiz/enduserapi/babyTask/delete",method:"DELETE",isFormat:1},babyTaskList:{path:"/v2/aibiz/enduserapi/babyTask/list",method:"GET"},taskListByAge:{path:"/v2/aibiz/enduserapi/growthTask/listByAge",method:"GET"},getBabyTaskFinishStatistics:{path:"/v2/aibiz/enduserapi/babyTask/getBabyTaskFinishStatistics",method:"GET"},getBabyTaskWeekStatistics:{path:"/v2/aibiz/enduserapi/babyTask/getBabyTaskWeekStatistics",method:"GET"},listDeleteBabyTask:{path:"/v2/aibiz/enduserapi/babyTask/listDeleteBabyTask",method:"GET"}}),{getAiMemoryUserInfo:{path:"/v2/ainurture/enduserapi/aimemory/getAiMemoryUserInfo",method:"GET"},setAiMemoryUserInfo:{path:"/v2/ainurture/enduserapi/aimemory/setAiMemoryUserInfo",method:"POST"},memoryCompare:{path:"/v2/ainurture/enduserapi/aimbtihistory/compare",method:"GET"},memoryRemind:{path:"/v2/ainurture/enduserapi/aimbtihistory/remind",method:"GET"},aiProductConfig:{path:"/v2/aibiz/enduserapi/aiProductConfig/commonStatusOptionList",method:"GET"}}),{findListV2:{path:"/v2/aibiz/enduserapi/device/findList",method:"GET"},findDeviceRoleVoiceRelV2:{path:"/v2/aibiz/enduserapi/deviceRoleVoice/findDeviceRoleVoiceRel/v2",method:"GET"},deviceMessageV2:{path:"/v2/aimessage/enduserapi/deviceMessage/findPage/v2",method:"GET"},getSummaryV2:{path:"/v2/aibiz/enduserapi/summary/getSummary/v2",method:"GET"},editDeviceRoleVoiceV2:{path:"/v2/aibiz/enduserapi/deviceRoleVoice/editDeviceRoleVoice/v2",method:"PUT"},deviceResetV2:{path:"/v2/aibiz/enduserapi/device/reset/v2",method:"POST"},deviceShiftV2:{path:"/v2/aibiz/enduserapi/device/shift/v2",method:"POST"},deleteMemoryV2:{path:"/v2/aibiz/enduserapi/chatHistory/deleteMemory/v2",method:"DELETE",isFormat:1}}),{promptTemplateList:{path:"/v2/aibiz/enduserapi/promptTemplate/findList",method:"GET"},promptTemplateDetail:{path:"/v2/aibiz/enduserapi/promptTemplate/detail",method:"GET"},obtainPolishPrompt:{path:"/v2/aibiz/enduserapi/role/obtainPolishPrompt",method:"POST"},findBotVoice:{path:"/v2/aibiz/enduserapi/userBotConfig/findBotVoice",method:"GET"}}),{querySummaryGenerate:{path:"/v2/aibiz/enduserapi/summary/generate/status/day",method:"GET"},summaryCommon:{path:"/v2/aibiz/enduserapi/summary/common",method:"GET"},isShowSummaryAndTask:{path:"/v2/aibiz/enduserapi/aiProductConfig/commonStatusOption",method:"GET"}}),{aiChatWarnStatus:{path:"/v2/ailicense/enduserapi/deviceLicense/aiChat/warnStatus",method:"GET"},aiChatWarnDisable:{path:"/v2/ailicense/enduserapi/deviceLicense/aiChat/warn/disable",method:"POST"},aiChatCurrent:{path:"/v2/ailicense/enduserapi/deviceLicense/aiChat/current",method:"GET"},aiChatPage:{path:"/v2/ailicense/enduserapi/deviceLicense/aiChat/page",method:"GET"},findLicenseTime:{path:"/v2/ailicense/enduserapi/deviceLicense/findLicenseTime",method:"GET"}}),{getSpeedConfig:{path:"/v2/aibiz/enduserapi/userBotConfig/getConfig",method:"GET"},setSpeedConfig:{path:"/v2/aibiz/enduserapi/userBotConfig/setConfig",method:"POST"},findBotList:{path:"/v2/aibiz/enduserapi/userBotConfig/findList",method:"GET"},setBotConfigBatch:{path:"/v2/aibiz/enduserapi/userBotConfig/setConfig/batch",method:"POST"}}),{getVoicePrintStatus:{path:"/v2/aibiz/enduserapi/aiProductConfig/getVoicePrintStatus",method:"GET"},getDeviceVoicePrintInfo:{path:"/v2/aibiz/enduserapi/voicePrint/getDeviceVoicePrintInfo",method:"GET"},addFeature:{path:"/v2/aibiz/enduserapi/voicePrint/addFeature",method:"POST"},getFeature:{path:"/v2/aibiz/enduserapi/voicePrint/getFeature",method:"GET"},updateFeature:{path:"/v2/aibiz/enduserapi/voicePrint/updateFeature",method:"PUT"},deleteFeature:{path:"/v2/aibiz/enduserapi/voicePrint/deleteFeature",method:"DELETE"},uploadFeature:{path:"/v2/aibiz/enduserapi/voicePrint/uploadFeature"},updateDeviceVoicePrint:{path:"/v2/aibiz/enduserapi/voicePrint/updateDeviceVoicePrint",method:"POST"}}),{findWsConnectConfig:{path:"/v2/aibiz/enduserapi/websocket/findWsConnectConfig",method:"GET"},renewTopic:{path:"/v2/aibiz/enduserapi/websocket/renewTopic",method:"GET"},findDevice:{path:"/v2/aibiz/enduserapi/chatHistory/findDevice",method:"GET"},editDeviceRoleVoice:{path:"/v2/aibiz/enduserapi/deviceRoleVoice/editDeviceRoleVoice",method:"PUT"},findDeviceRoleVoiceRel:{path:"/v2/aibiz/enduserapi/deviceRoleVoice/findDeviceRoleVoiceRel",method:"GET"},findPage:{path:"/v2/aibiz/enduserapi/voice/findPage",method:"GET"},agentParamConfig:{path:"/v2/aibiz/enduserapi/agentParamConfig",method:"POST"},cozeFindPage:{path:"/v2/aimessage/enduserapi/deviceMessage/findPage",method:"GET"},roleFindPage:{path:"/v2/aibiz/enduserapi/role/findPage",method:"GET"},roleAdd:{path:"/v2/aibiz/enduserapi/role/add",method:"POST"},roleEdit:{path:"/v2/aibiz/enduserapi/role/edit",method:"POST"},roleDetail:{path:"/v2/aibiz/enduserapi/role/findDetail",method:"GET"},roleDelete:{path:"/v2/aibiz/enduserapi/role/delete",method:"POST"},deleteHistory:{path:"/v2/aibiz/enduserapi/chatHistory/delete",method:"DELETE",isFormat:1},getSummary:{path:"/v2/aibiz/enduserapi/summary/getSummary",method:"GET"},getAiVoiceCopyStatus:{path:"/v2/aibiz/enduserapi/aiProductConfig/aiAiVoiceCopy/getAiVoiceCopyStatus",method:"GET"},queryAiBotVoiceList:{path:"/v2/aibiz/enduserapi/voice/queryAiBotVoiceList",method:"GET"},getEduVoiceCopyAudio:{path:"/v2/aibiz/enduserapi/voice/getEduVoiceCopyAudio",method:"GET"},changePublishStatus:{path:"/v2/aibiz/enduserapi/voice/changePublishStatus",method:"PUT"},setVoiceNameAudio:{path:"/v2/aibiz/enduserapi/voice/setVoiceNameAudio",method:"PUT"},findPackageList:{path:"/v2/order/enduserapi/trade/package/findPackageList",method:"GET"},createBizOrder:{path:"/v2/order/enduserapi/biz/order/createBizOrder",method:"POST"}})},514(e,i,t){Object.defineProperty(i,"__esModule",{value:!0}),i.getAiMemoryUserInfo=function(e,i){const{success:t,fail:o,complete:c}=e;let p={roleId:e.roleId,productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.getAiMemoryUserInfo,params:n,options:{success:t,fail:o,complete:c}})},i.setAiMemoryUserInfo=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId,roleId:e.roleId,username:e.username,mastername:e.mastername,constellation:e.constellation,mbti:e.mbti,step:e.step},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.setAiMemoryUserInfo,params:n,options:{success:t,fail:o,complete:c}})},i.memoryCompare=function(e,i){const{success:t,fail:o,complete:c}=e;let p={roleId:e.roleId,productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId,days:e.days},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.memoryCompare,params:n,options:{success:t,fail:o,complete:c}})},i.memoryRemind=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId,roleId:e.roleId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.memoryRemind,params:n,options:{success:t,fail:o,complete:c}})},i.aiProductConfig=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,types:e.types},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.aiProductConfig,params:n,options:{success:t,fail:o,complete:c}})};const a=t(765),s=t(454)},536(e,i,t){Object.defineProperty(i,"__esModule",{value:!0}),i.deleteHistoryV2=function(e,i){const{success:t,fail:o,complete:c}=e;let p={roleIds:e.roleIds,deviceInfoId:e.deviceInfoId,productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.deleteHistoryV2,params:n,options:{success:t,fail:o,complete:c}})};const a=t(765),s=t(454)},540(e,i,t){Object.defineProperty(i,"__esModule",{value:!0}),i.findPackageListV2=function(e,i){const{success:t,fail:o,complete:c}=e;let p={merchantNo:e.merchantNo,packageType:e.packageType,terminalCode:e.terminalCode,productKey:e.productKey,deviceKey:e.deviceKey,goodsKey:e.goodsKey,goodsThirdId:e.goodsThirdId,iccids:e.iccids,productCode:e.productCode},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.findPackageListV2,params:n,options:{success:t,fail:o,complete:c}})},i.createContentBizOrder=function(e,i){const{success:t,fail:a,complete:o}=e;let c={productKey:e.productKey,deviceKey:e.deviceKey,packageType:e.packageType,merchantNo:e.merchantNo,packageVersionId:e.packageVersionId,size:e.size};i({url:s.apiMap.createContentBizOrder.path+"/"+c.packageType,apiConfig:s.apiMap.createContentBizOrder,params:c,options:{success:t,fail:a,complete:o}})};const a=t(765),s=t(454)},765(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.filterParams=function(e){const i={};for(const t in e)(0===e[t]||!1===e[t]||e[t]&&""!==e[t].toString().trim()||Array.isArray(e[t]))&&(i[t]=e[t]);return i}},777(e,i,t){Object.defineProperty(i,"__esModule",{value:!0}),i.findListV2=function(e,i){const{success:t,fail:s,complete:o}=e;i({apiConfig:a.apiMap.findListV2,options:{success:t,fail:s,complete:o}})},i.findDeviceRoleVoiceRelV2=function(e,i){let t={productKey:e.productKey,deviceKey:e.deviceKey,deviceInfoId:e.deviceInfoId,endUserId:e.endUserId},o=(0,s.filterParams)(t);const{success:c,fail:p,complete:n}=e;i({params:o,apiConfig:a.apiMap.findDeviceRoleVoiceRelV2,options:{success:c,fail:p,complete:n}})},i.editDeviceRoleVoiceV2=function(e,i){const{success:t,fail:o,complete:c}=e;let p={roleId:e.roleId,voiceId:e.voiceId,deviceInfoId:e.deviceInfoId,productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId},n=(0,s.filterParams)(p);i({apiConfig:a.apiMap.editDeviceRoleVoiceV2,params:n,options:{success:t,fail:o,complete:c}})},i.deviceMessageV2=function(e,i){const{success:t,fail:o,complete:c}=e;let p={roleId:e.roleId,status:e.status,deviceInfoId:e.deviceInfoId,productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId,afterId:e.afterId,limit:e.limit},n=(0,s.filterParams)(p);i({apiConfig:a.apiMap.deviceMessageV2,params:n,options:{success:t,fail:o,complete:c}})},i.getSummaryV2=function(e,i){const{success:t,fail:o,complete:c}=e;let p={day:e.day,deviceInfoId:e.deviceInfoId,productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId},n=(0,s.filterParams)(p);i({apiConfig:a.apiMap.getSummaryV2,params:n,options:{success:t,fail:o,complete:c}})},i.deviceResetV2=function(e,i){const{success:t,fail:o,complete:c}=e;let p={deviceInfoId:e.deviceInfoId,productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId},n=(0,s.filterParams)(p);i({apiConfig:a.apiMap.deviceResetV2,params:n,options:{success:t,fail:o,complete:c}})},i.deviceShiftV2=function(e,i){const{success:t,fail:o,complete:c}=e;let p={deviceInfoIdOld:e.deviceInfoIdOld,deviceInfoIdNew:e.deviceInfoIdNew,productKeyNew:e.productKeyNew,deviceKeyNew:e.deviceKeyNew,endUserIdNew:e.endUserIdNew},n=(0,s.filterParams)(p);i({apiConfig:a.apiMap.deviceShiftV2,params:n,options:{success:t,fail:o,complete:c}})},i.deleteMemoryV2=function(e,i){const{success:t,fail:o,complete:c}=e;let p={roleIds:e.roleIds,deviceInfoId:e.deviceInfoId,productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId},n=(0,s.filterParams)(p);i({apiConfig:a.apiMap.deleteMemoryV2,params:n,options:{success:t,fail:o,complete:c}})};const a=t(454),s=t(765)},845(e,i,t){Object.defineProperty(i,"__esModule",{value:!0}),i.getSpeedConfig=function(e,i){const{success:t,fail:o,complete:c}=e;let p={roleId:e.roleId,configType:e.configType},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.getSpeedConfig,params:n,options:{success:t,fail:o,complete:c}})},i.setSpeedConfig=function(e,i){const{success:t,fail:o,complete:c}=e;let p={roleId:e.roleId,configType:e.configType,configContent:e.configContent},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.setSpeedConfig,params:n,options:{success:t,fail:o,complete:c}})},i.findBotList=function(e,i){const{success:t,fail:o,complete:c}=e;let p={configTypes:e.configTypes,roleId:e.roleId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.findBotList,params:n,options:{success:t,fail:o,complete:c}})},i.setBotConfigBatch=function(e,i){const{success:t,fail:o,complete:c}=e;let p={configList:e.configList,roleId:e.roleId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.setBotConfigBatch,params:n,options:{success:t,fail:o,complete:c}})};const a=t(765),s=t(454)},920(e,i,t){Object.defineProperty(i,"__esModule",{value:!0}),i.isShowSummaryAndTask=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,type:e.type},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.isShowSummaryAndTask,params:n,options:{success:t,fail:o,complete:c}})},i.querySummaryGenerate=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId,deviceInfoId:e.deviceInfoId,startTime:e.startTime,endTime:e.endTime,roleId:e.roleId,dataDim:e.dataDim},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.querySummaryGenerate,params:n,options:{success:t,fail:o,complete:c}})},i.summaryCommon=function(e,i){const{success:t,fail:o,complete:c}=e;let p={day:e.day,deviceInfoId:e.deviceInfoId,productKey:e.productKey,deviceKey:e.deviceKey,endUserId:e.endUserId,dataDim:e.dataDim},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.summaryCommon,params:n,options:{success:t,fail:o,complete:c}})};const a=t(765),s=t(454)},926(e,i,t){Object.defineProperty(i,"__esModule",{value:!0}),i.findWsConnectConfig=function(e,i){const{success:t,fail:a,complete:o}=e;let c={clientType:e.clientType,deviceKey:e.deviceKey,productKey:e.productKey};i({apiConfig:s.apiMap.findWsConnectConfig,params:c,options:{success:t,fail:a,complete:o}})},i.renewTopic=function(e,i){const{success:t,fail:a,complete:o}=e;let c={topic:e.topic};i({apiConfig:s.apiMap.renewTopic,params:c,options:{success:t,fail:a,complete:o}})},i.findDevice=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey,startTime:e.startTime,endTime:e.endTime,pageNum:e.pageNum,pageSize:e.pageSize},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.findDevice,params:n,options:{success:t,fail:o,complete:c}})},i.editDeviceRoleVoice=function(e,i){const{success:t,fail:a,complete:o}=e;i({apiConfig:s.apiMap.editDeviceRoleVoice,params:e.arr,options:{success:t,fail:a,complete:o}})},i.findDeviceRoleVoiceRel=function(e,i){const{success:t,fail:a,complete:o}=e;let c={productKey:e.productKey,deviceKey:e.deviceKey};i({apiConfig:s.apiMap.findDeviceRoleVoiceRel,params:c,options:{success:t,fail:a,complete:o}})},i.findPage=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey,pageNum:e.pageNum,pageSize:e.pageSize,roleId:e.roleId?e.roleId:"",voiceType:e.voiceType||""},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.findPage,params:n,options:{success:t,fail:o,complete:c}})},i.agentParamConfig=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey,configParams:e.configParams},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.agentParamConfig,params:n,options:{success:t,fail:o,complete:c}})},i.cozeFindDevice=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey,roleId:e.roleId,status:e.status,afterId:e.afterId,limit:e.limit},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.cozeFindPage,params:n,options:{success:t,fail:o,complete:c}})},i.roleFindPage=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey,pageNum:e.pageNum,pageSize:e.pageSize,roleType:e.roleType||""},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.roleFindPage,params:n,options:{success:t,fail:o,complete:c}})},i.roleAdd=function(e,i){const{success:t,fail:o,complete:c}=e;let p={deviceKey:e.deviceKey,productKey:e.productKey,roleName:e.roleName,prompt:e.prompt,roleDesc:e.roleDesc,rolePicUrl:e.rolePicUrl,voiceId:e.voiceId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.roleAdd,params:n,options:{success:t,fail:o,complete:c}})},i.roleEdit=function(e,i){const{success:t,fail:o,complete:c}=e;let p={deviceKey:e.deviceKey,productKey:e.productKey,roleName:e.roleName,roleId:e.roleId,prompt:e.prompt,roleDesc:e.roleDesc,rolePicUrl:e.rolePicUrl,voiceId:e.voiceId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.roleEdit,params:n,options:{success:t,fail:o,complete:c}})},i.roleDetail=function(e,i){const{success:t,fail:o,complete:c}=e;let p={deviceKey:e.deviceKey,productKey:e.productKey,roleId:e.roleId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.roleDetail,params:n,options:{success:t,fail:o,complete:c}})},i.roleDelete=function(e,i){const{success:t,fail:o,complete:c}=e;let p={deviceKey:e.deviceKey,productKey:e.productKey,roleId:e.roleId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.roleDelete,params:n,options:{success:t,fail:o,complete:c}})},i.deleteHistory=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey,roleId:e.roleId},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.deleteHistory,params:n,options:{success:t,fail:o,complete:c}})},i.getSummary=function(e,i){const{success:t,fail:o,complete:c}=e;let p={productKey:e.productKey,deviceKey:e.deviceKey,day:e.day},n=(0,a.filterParams)(p);i({apiConfig:s.apiMap.getSummary,params:n,options:{success:t,fail:o,complete:c}})},i.getAiVoiceCopyStatus=function(e,i){const{success:t,fail:a,complete:o}=e;let c={productKey:e.productKey};i({apiConfig:s.apiMap.getAiVoiceCopyStatus,params:c,options:{success:t,fail:a,complete:o}})},i.queryAiBotVoiceList=function(e,i){const{success:t,fail:a,complete:o}=e;let c={botRoleId:e.botRoleId,productKey:e.productKey,deviceKey:e.deviceKey,pageNum:e.pageNum,pageSize:e.pageSize};i({apiConfig:s.apiMap.queryAiBotVoiceList,params:c,options:{success:t,fail:a,complete:o}})},i.getEduVoiceCopyAudio=function(e,i){const{success:t,fail:a,complete:o}=e;let c={botRoleId:e.botRoleId,productKey:e.productKey,deviceKey:e.deviceKey};i({apiConfig:s.apiMap.getEduVoiceCopyAudio,params:c,options:{success:t,fail:a,complete:o}})},i.changePublishStatus=function(e,i){const{success:t,fail:a,complete:o}=e;let c={productKey:e.productKey,deviceKey:e.deviceKey,id:e.id,publishStatus:e.publishStatus};i({apiConfig:s.apiMap.changePublishStatus,params:c,options:{success:t,fail:a,complete:o}})},i.setVoiceNameAudio=function(e,i){const{success:t,fail:a,complete:o}=e;let c={productKey:e.productKey,deviceKey:e.deviceKey,voiceId:e.voiceId,voiceName:e.voiceName};i({apiConfig:s.apiMap.setVoiceNameAudio,params:c,options:{success:t,fail:a,complete:o}})},i.findPackageList=function(e,i){const{success:t,fail:a,complete:o}=e;let c={merchantNo:e.merchantNo,packageType:e.packageType?e.packageType:"AI_VOICE_CLONE",terminalCode:e.terminalCode};i({apiConfig:s.apiMap.findPackageList,params:c,options:{success:t,fail:a,complete:o}})},i.createBizOrder=function(e,i){const{success:t,fail:a,complete:o}=e;let c={merchantNo:e.merchantNo,packageVersionId:e.packageVersionId,size:e.size};i({apiConfig:s.apiMap.createBizOrder,params:c,options:{success:t,fail:a,complete:o}})};const a=t(765),s=t(454)}},i={};function t(a){var s=i[a];if(void 0!==s)return s.exports;var o=i[a]={exports:{}};return e[a](o,o.exports,t),o.exports}var a={};(()=>{var e=a;Object.defineProperty(e,"__esModule",{value:!0});const i=t(213),s=t(63);e.default={injectName:i.INJECT_NAME,createInstance:e=>new s.QuecPluginAI(e)}})(),module.exports=a})();
@@ -0,0 +1,133 @@
1
+ /**
2
+ * @module 智能体
3
+ */
4
+ import type { EndUserAgentConfig } from '../types/params';
5
+ /**
6
+ * 声音配置 - 查询语速配置详情
7
+ *
8
+ * @example
9
+ * ```
10
+ * const plugin = requirePlugin('quecPlugin')
11
+ * plugin.ai.getSpeedConfig({
12
+ * roleId:'',
13
+ * configType:'botSpeechRate',
14
+ * success (res) {},
15
+ * fail (res) {},
16
+ * complete (res) { }
17
+ * })
18
+ * ```
19
+ */
20
+ export declare function getSpeedConfig(options: {
21
+ /** 角色ID */
22
+ roleId: number;
23
+ /** 配置类型:botSpeechRate */
24
+ configType: string;
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.setSpeedConfig({
41
+ * roleId:'',
42
+ * configType:'botSpeechRate',
43
+ * configContent:'fast',
44
+ * success (res) {},
45
+ * fail (res) {},
46
+ * complete (res) { }
47
+ * })
48
+ * ```
49
+ */
50
+ export declare function setSpeedConfig(options: {
51
+ /** 角色ID */
52
+ roleId: number;
53
+ /** 配置类型:botSpeechRate */
54
+ configType: string;
55
+ /** 语速值: fast 快速; normal 正常;slow 慢速 */
56
+ configContent: string;
57
+ /** 接口调用成功的回调函数 */
58
+ success?: (res: ResponseData) => void;
59
+ /** 接口调用失败的回调函数 */
60
+ fail?: (res: Error) => void;
61
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
62
+ complete?: () => void;
63
+ },
64
+ /** @ignore */
65
+ requestMethod: RequestFunction): void;
66
+ /**
67
+ * 查询给角色设置的配置信息
68
+ * @desc 终端用户查询给角色设置的配置信息(含语速)
69
+ *
70
+ * @example
71
+ * ```
72
+ * const plugin = requirePlugin('quecPlugin')
73
+ * plugin.ai.findBotList({
74
+ * configTypes:'',
75
+ * roleId:'',
76
+ * success (res) {},
77
+ * fail (res) {},
78
+ * complete (res) { }
79
+ * })
80
+ * ```
81
+ */
82
+ export declare function findBotList(options: {
83
+ /** 配置类型, 多个“,”分割: botLanguage-智能体语种;botSpeechRate-语速 */
84
+ configTypes: string;
85
+ /** 角色ID */
86
+ roleId: string;
87
+ /** 接口调用成功的回调函数 */
88
+ success?: (res: ResponseData) => void;
89
+ /** 接口调用失败的回调函数 */
90
+ fail?: (res: Error) => void;
91
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
92
+ complete?: () => void;
93
+ },
94
+ /** @ignore */
95
+ requestMethod: RequestFunction): void;
96
+ /**
97
+ * 批量设置智能体配置
98
+ *
99
+ * @example
100
+ * ```
101
+ * const plugin = requirePlugin('quecPlugin')
102
+ * plugin.ai.setBotConfigBatch({
103
+ * configList:[{
104
+ * botSpeechRate:'fast',
105
+ * configType:'语种、botVoiceId'
106
+ * }],
107
+ * roleId:'',
108
+ * success (res) {},
109
+ * fail (res) {},
110
+ * complete (res) { }
111
+ * })
112
+ * ```
113
+ */
114
+ export declare function setBotConfigBatch(options: {
115
+ /**
116
+ * 配置列表
117
+ * configType-配置类型
118
+ * configContent-配置内容
119
+ */
120
+ configList: Array<EndUserAgentConfig>;
121
+ /**
122
+ * 角色ID
123
+ */
124
+ roleId: string;
125
+ /** 接口调用成功的回调函数 */
126
+ success: (res: ResponseData) => void;
127
+ /** 接口调用失败的回调函数 */
128
+ fail: (res: Error) => void;
129
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
130
+ complete: () => void;
131
+ },
132
+ /** @ignore */
133
+ requestMethod: RequestFunction): void;