@alicloud/quanmiaolightapp20240801 1.4.0 → 1.5.0
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/dist/client.d.ts +758 -136
- package/dist/client.js +638 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1528 -486
package/dist/client.js
CHANGED
|
@@ -26,8 +26,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
29
|
+
exports.RunCommentGenerationResponseBodyPayloadUsage = exports.RunCommentGenerationResponseBodyPayloadOutput = exports.RunCommentGenerationResponseBodyHeader = exports.ListHotTopicSummariesResponseBodyData = exports.ListHotTopicSummariesResponseBodyDataSummary = exports.ListHotTopicSummariesResponseBodyDataSummarySummaries = exports.ListHotTopicSummariesResponseBodyDataNews = exports.ListHotTopicSummariesResponseBodyDataNewsComments = exports.GenerateBroadcastNewsResponseBodyData = exports.GenerateBroadcastNewsResponseBodyDataUsage = exports.GenerateBroadcastNewsResponseBodyDataHotTopicSummaries = exports.GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages = exports.RunVideoAnalysisResponse = exports.RunVideoAnalysisResponseBody = exports.RunVideoAnalysisShrinkRequest = exports.RunVideoAnalysisRequest = exports.RunStyleWritingResponse = exports.RunStyleWritingResponseBody = exports.RunStyleWritingShrinkRequest = exports.RunStyleWritingRequest = exports.RunScriptPlanningResponse = exports.RunScriptPlanningResponseBody = exports.RunScriptPlanningRequest = exports.RunScriptContinueResponse = exports.RunScriptContinueResponseBody = exports.RunScriptContinueRequest = exports.RunMarketingInformationWritingResponse = exports.RunMarketingInformationWritingResponseBody = exports.RunMarketingInformationWritingRequest = exports.RunMarketingInformationExtractResponse = exports.RunMarketingInformationExtractResponseBody = exports.RunMarketingInformationExtractShrinkRequest = exports.RunMarketingInformationExtractRequest = exports.RunHotTopicSummaryResponse = exports.RunHotTopicSummaryResponseBody = exports.RunHotTopicSummaryShrinkRequest = exports.RunHotTopicSummaryRequest = exports.RunHotTopicChatResponse = exports.RunHotTopicChatResponseBody = exports.RunHotTopicChatShrinkRequest = exports.RunHotTopicChatRequest = exports.RunCommentGenerationResponse = exports.RunCommentGenerationResponseBody = exports.RunCommentGenerationRequest = exports.ListHotTopicSummariesResponse = exports.ListHotTopicSummariesResponseBody = exports.ListHotTopicSummariesRequest = exports.GenerateBroadcastNewsResponse = exports.GenerateBroadcastNewsResponseBody = exports.GenerateBroadcastNewsRequest = void 0;
|
|
30
|
+
exports.RunVideoAnalysisResponseBodyPayloadOutputVideoTitleGenerateResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoTitleGenerateResultUsage = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResultVideoMindMappings = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResultVideoMindMappingsChildNodes = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResultVideoMindMappingsChildNodesChildNodes = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResultUsage = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoGenerateResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoGenerateResultUsage = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoCaptionResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoCaptionResultVideoCaptions = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoAnalysisResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoAnalysisResultVideoShotAnalysisResults = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoAnalysisResultUsage = exports.RunVideoAnalysisResponseBodyHeader = exports.RunStyleWritingResponseBodyPayload = exports.RunStyleWritingResponseBodyPayloadUsage = exports.RunStyleWritingResponseBodyPayloadOutput = exports.RunStyleWritingResponseBodyHeader = exports.RunScriptPlanningResponseBodyPayload = exports.RunScriptPlanningResponseBodyPayloadUsage = exports.RunScriptPlanningResponseBodyPayloadOutput = exports.RunScriptPlanningResponseBodyHeader = exports.RunScriptContinueResponseBodyPayload = exports.RunScriptContinueResponseBodyPayloadUsage = exports.RunScriptContinueResponseBodyPayloadOutput = exports.RunScriptContinueResponseBodyHeader = exports.RunMarketingInformationWritingResponseBodyPayload = exports.RunMarketingInformationWritingResponseBodyPayloadUsage = exports.RunMarketingInformationWritingResponseBodyPayloadOutput = exports.RunMarketingInformationWritingResponseBodyHeader = exports.RunMarketingInformationExtractResponseBodyPayload = exports.RunMarketingInformationExtractResponseBodyPayloadUsage = exports.RunMarketingInformationExtractResponseBodyPayloadOutput = exports.RunMarketingInformationExtractResponseBodyHeader = exports.RunHotTopicSummaryResponseBodyPayload = exports.RunHotTopicSummaryResponseBodyPayloadUsage = exports.RunHotTopicSummaryResponseBodyPayloadOutput = exports.RunHotTopicSummaryResponseBodyHeader = exports.RunHotTopicSummaryRequestStepForCustomSummaryStyleConfig = exports.RunHotTopicChatResponseBodyPayload = exports.RunHotTopicChatResponseBodyPayloadUsage = exports.RunHotTopicChatResponseBodyPayloadOutput = exports.RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias = exports.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries = exports.RunHotTopicChatResponseBodyPayloadOutputArticles = exports.RunHotTopicChatResponseBodyHeader = exports.RunHotTopicChatRequestStepForBroadcastContentConfig = exports.RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights = exports.RunCommentGenerationResponseBodyPayload = void 0;
|
|
31
|
+
exports.RunVideoAnalysisResponseBodyPayload = exports.RunVideoAnalysisResponseBodyPayloadUsage = exports.RunVideoAnalysisResponseBodyPayloadOutput = void 0;
|
|
31
32
|
// This file is auto-generated, don't edit it
|
|
32
33
|
/**
|
|
33
34
|
*/
|
|
@@ -236,6 +237,198 @@ class RunCommentGenerationResponse extends $tea.Model {
|
|
|
236
237
|
}
|
|
237
238
|
}
|
|
238
239
|
exports.RunCommentGenerationResponse = RunCommentGenerationResponse;
|
|
240
|
+
class RunHotTopicChatRequest extends $tea.Model {
|
|
241
|
+
static names() {
|
|
242
|
+
return {
|
|
243
|
+
category: 'category',
|
|
244
|
+
generateOptions: 'generateOptions',
|
|
245
|
+
hotTopicVersion: 'hotTopicVersion',
|
|
246
|
+
hotTopics: 'hotTopics',
|
|
247
|
+
imageCount: 'imageCount',
|
|
248
|
+
modelCustomPromptTemplate: 'modelCustomPromptTemplate',
|
|
249
|
+
modelId: 'modelId',
|
|
250
|
+
originalSessionId: 'originalSessionId',
|
|
251
|
+
prompt: 'prompt',
|
|
252
|
+
stepForBroadcastContentConfig: 'stepForBroadcastContentConfig',
|
|
253
|
+
taskId: 'taskId',
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
static types() {
|
|
257
|
+
return {
|
|
258
|
+
category: 'string',
|
|
259
|
+
generateOptions: { 'type': 'array', 'itemType': 'string' },
|
|
260
|
+
hotTopicVersion: 'string',
|
|
261
|
+
hotTopics: { 'type': 'array', 'itemType': 'string' },
|
|
262
|
+
imageCount: 'number',
|
|
263
|
+
modelCustomPromptTemplate: 'string',
|
|
264
|
+
modelId: 'string',
|
|
265
|
+
originalSessionId: 'string',
|
|
266
|
+
prompt: 'string',
|
|
267
|
+
stepForBroadcastContentConfig: RunHotTopicChatRequestStepForBroadcastContentConfig,
|
|
268
|
+
taskId: 'string',
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
constructor(map) {
|
|
272
|
+
super(map);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
exports.RunHotTopicChatRequest = RunHotTopicChatRequest;
|
|
276
|
+
class RunHotTopicChatShrinkRequest extends $tea.Model {
|
|
277
|
+
static names() {
|
|
278
|
+
return {
|
|
279
|
+
category: 'category',
|
|
280
|
+
generateOptionsShrink: 'generateOptions',
|
|
281
|
+
hotTopicVersion: 'hotTopicVersion',
|
|
282
|
+
hotTopicsShrink: 'hotTopics',
|
|
283
|
+
imageCount: 'imageCount',
|
|
284
|
+
modelCustomPromptTemplate: 'modelCustomPromptTemplate',
|
|
285
|
+
modelId: 'modelId',
|
|
286
|
+
originalSessionId: 'originalSessionId',
|
|
287
|
+
prompt: 'prompt',
|
|
288
|
+
stepForBroadcastContentConfigShrink: 'stepForBroadcastContentConfig',
|
|
289
|
+
taskId: 'taskId',
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
static types() {
|
|
293
|
+
return {
|
|
294
|
+
category: 'string',
|
|
295
|
+
generateOptionsShrink: 'string',
|
|
296
|
+
hotTopicVersion: 'string',
|
|
297
|
+
hotTopicsShrink: 'string',
|
|
298
|
+
imageCount: 'number',
|
|
299
|
+
modelCustomPromptTemplate: 'string',
|
|
300
|
+
modelId: 'string',
|
|
301
|
+
originalSessionId: 'string',
|
|
302
|
+
prompt: 'string',
|
|
303
|
+
stepForBroadcastContentConfigShrink: 'string',
|
|
304
|
+
taskId: 'string',
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
constructor(map) {
|
|
308
|
+
super(map);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
exports.RunHotTopicChatShrinkRequest = RunHotTopicChatShrinkRequest;
|
|
312
|
+
class RunHotTopicChatResponseBody extends $tea.Model {
|
|
313
|
+
static names() {
|
|
314
|
+
return {
|
|
315
|
+
header: 'header',
|
|
316
|
+
payload: 'payload',
|
|
317
|
+
requestId: 'requestId',
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
static types() {
|
|
321
|
+
return {
|
|
322
|
+
header: RunHotTopicChatResponseBodyHeader,
|
|
323
|
+
payload: RunHotTopicChatResponseBodyPayload,
|
|
324
|
+
requestId: 'string',
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
constructor(map) {
|
|
328
|
+
super(map);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
exports.RunHotTopicChatResponseBody = RunHotTopicChatResponseBody;
|
|
332
|
+
class RunHotTopicChatResponse extends $tea.Model {
|
|
333
|
+
static names() {
|
|
334
|
+
return {
|
|
335
|
+
headers: 'headers',
|
|
336
|
+
statusCode: 'statusCode',
|
|
337
|
+
body: 'body',
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
static types() {
|
|
341
|
+
return {
|
|
342
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
343
|
+
statusCode: 'number',
|
|
344
|
+
body: RunHotTopicChatResponseBody,
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
constructor(map) {
|
|
348
|
+
super(map);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
exports.RunHotTopicChatResponse = RunHotTopicChatResponse;
|
|
352
|
+
class RunHotTopicSummaryRequest extends $tea.Model {
|
|
353
|
+
static names() {
|
|
354
|
+
return {
|
|
355
|
+
hotTopicVersion: 'hotTopicVersion',
|
|
356
|
+
stepForCustomSummaryStyleConfig: 'stepForCustomSummaryStyleConfig',
|
|
357
|
+
topicIds: 'topicIds',
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
static types() {
|
|
361
|
+
return {
|
|
362
|
+
hotTopicVersion: 'string',
|
|
363
|
+
stepForCustomSummaryStyleConfig: RunHotTopicSummaryRequestStepForCustomSummaryStyleConfig,
|
|
364
|
+
topicIds: { 'type': 'array', 'itemType': 'string' },
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
constructor(map) {
|
|
368
|
+
super(map);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
exports.RunHotTopicSummaryRequest = RunHotTopicSummaryRequest;
|
|
372
|
+
class RunHotTopicSummaryShrinkRequest extends $tea.Model {
|
|
373
|
+
static names() {
|
|
374
|
+
return {
|
|
375
|
+
hotTopicVersion: 'hotTopicVersion',
|
|
376
|
+
stepForCustomSummaryStyleConfigShrink: 'stepForCustomSummaryStyleConfig',
|
|
377
|
+
topicIdsShrink: 'topicIds',
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
static types() {
|
|
381
|
+
return {
|
|
382
|
+
hotTopicVersion: 'string',
|
|
383
|
+
stepForCustomSummaryStyleConfigShrink: 'string',
|
|
384
|
+
topicIdsShrink: 'string',
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
constructor(map) {
|
|
388
|
+
super(map);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
exports.RunHotTopicSummaryShrinkRequest = RunHotTopicSummaryShrinkRequest;
|
|
392
|
+
class RunHotTopicSummaryResponseBody extends $tea.Model {
|
|
393
|
+
static names() {
|
|
394
|
+
return {
|
|
395
|
+
header: 'header',
|
|
396
|
+
payload: 'payload',
|
|
397
|
+
requestId: 'requestId',
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
static types() {
|
|
401
|
+
return {
|
|
402
|
+
header: RunHotTopicSummaryResponseBodyHeader,
|
|
403
|
+
payload: RunHotTopicSummaryResponseBodyPayload,
|
|
404
|
+
requestId: 'string',
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
constructor(map) {
|
|
408
|
+
super(map);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
exports.RunHotTopicSummaryResponseBody = RunHotTopicSummaryResponseBody;
|
|
412
|
+
class RunHotTopicSummaryResponse extends $tea.Model {
|
|
413
|
+
static names() {
|
|
414
|
+
return {
|
|
415
|
+
headers: 'headers',
|
|
416
|
+
statusCode: 'statusCode',
|
|
417
|
+
body: 'body',
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
static types() {
|
|
421
|
+
return {
|
|
422
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
423
|
+
statusCode: 'number',
|
|
424
|
+
body: RunHotTopicSummaryResponseBody,
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
constructor(map) {
|
|
428
|
+
super(map);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
exports.RunHotTopicSummaryResponse = RunHotTopicSummaryResponse;
|
|
239
432
|
class RunMarketingInformationExtractRequest extends $tea.Model {
|
|
240
433
|
static names() {
|
|
241
434
|
return {
|
|
@@ -978,6 +1171,310 @@ class RunCommentGenerationResponseBodyPayload extends $tea.Model {
|
|
|
978
1171
|
}
|
|
979
1172
|
}
|
|
980
1173
|
exports.RunCommentGenerationResponseBodyPayload = RunCommentGenerationResponseBodyPayload;
|
|
1174
|
+
class RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights extends $tea.Model {
|
|
1175
|
+
static names() {
|
|
1176
|
+
return {
|
|
1177
|
+
dimension: 'dimension',
|
|
1178
|
+
weight: 'weight',
|
|
1179
|
+
};
|
|
1180
|
+
}
|
|
1181
|
+
static types() {
|
|
1182
|
+
return {
|
|
1183
|
+
dimension: 'string',
|
|
1184
|
+
weight: 'number',
|
|
1185
|
+
};
|
|
1186
|
+
}
|
|
1187
|
+
constructor(map) {
|
|
1188
|
+
super(map);
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
exports.RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights = RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights;
|
|
1192
|
+
class RunHotTopicChatRequestStepForBroadcastContentConfig extends $tea.Model {
|
|
1193
|
+
static names() {
|
|
1194
|
+
return {
|
|
1195
|
+
categories: 'categories',
|
|
1196
|
+
customHotValueWeights: 'customHotValueWeights',
|
|
1197
|
+
topicCount: 'topicCount',
|
|
1198
|
+
};
|
|
1199
|
+
}
|
|
1200
|
+
static types() {
|
|
1201
|
+
return {
|
|
1202
|
+
categories: { 'type': 'array', 'itemType': 'string' },
|
|
1203
|
+
customHotValueWeights: { 'type': 'array', 'itemType': RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights },
|
|
1204
|
+
topicCount: 'number',
|
|
1205
|
+
};
|
|
1206
|
+
}
|
|
1207
|
+
constructor(map) {
|
|
1208
|
+
super(map);
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
exports.RunHotTopicChatRequestStepForBroadcastContentConfig = RunHotTopicChatRequestStepForBroadcastContentConfig;
|
|
1212
|
+
class RunHotTopicChatResponseBodyHeader extends $tea.Model {
|
|
1213
|
+
static names() {
|
|
1214
|
+
return {
|
|
1215
|
+
errorCode: 'errorCode',
|
|
1216
|
+
errorMessage: 'errorMessage',
|
|
1217
|
+
event: 'event',
|
|
1218
|
+
eventInfo: 'eventInfo',
|
|
1219
|
+
sessionId: 'sessionId',
|
|
1220
|
+
taskId: 'taskId',
|
|
1221
|
+
traceId: 'traceId',
|
|
1222
|
+
};
|
|
1223
|
+
}
|
|
1224
|
+
static types() {
|
|
1225
|
+
return {
|
|
1226
|
+
errorCode: 'string',
|
|
1227
|
+
errorMessage: 'string',
|
|
1228
|
+
event: 'string',
|
|
1229
|
+
eventInfo: 'string',
|
|
1230
|
+
sessionId: 'string',
|
|
1231
|
+
taskId: 'string',
|
|
1232
|
+
traceId: 'string',
|
|
1233
|
+
};
|
|
1234
|
+
}
|
|
1235
|
+
constructor(map) {
|
|
1236
|
+
super(map);
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
exports.RunHotTopicChatResponseBodyHeader = RunHotTopicChatResponseBodyHeader;
|
|
1240
|
+
class RunHotTopicChatResponseBodyPayloadOutputArticles extends $tea.Model {
|
|
1241
|
+
static names() {
|
|
1242
|
+
return {
|
|
1243
|
+
content: 'content',
|
|
1244
|
+
pubTime: 'pubTime',
|
|
1245
|
+
score: 'score',
|
|
1246
|
+
searchSourceName: 'searchSourceName',
|
|
1247
|
+
select: 'select',
|
|
1248
|
+
summary: 'summary',
|
|
1249
|
+
title: 'title',
|
|
1250
|
+
url: 'url',
|
|
1251
|
+
};
|
|
1252
|
+
}
|
|
1253
|
+
static types() {
|
|
1254
|
+
return {
|
|
1255
|
+
content: 'string',
|
|
1256
|
+
pubTime: 'string',
|
|
1257
|
+
score: 'number',
|
|
1258
|
+
searchSourceName: 'string',
|
|
1259
|
+
select: 'boolean',
|
|
1260
|
+
summary: 'string',
|
|
1261
|
+
title: 'string',
|
|
1262
|
+
url: 'string',
|
|
1263
|
+
};
|
|
1264
|
+
}
|
|
1265
|
+
constructor(map) {
|
|
1266
|
+
super(map);
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
exports.RunHotTopicChatResponseBodyPayloadOutputArticles = RunHotTopicChatResponseBodyPayloadOutputArticles;
|
|
1270
|
+
class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries extends $tea.Model {
|
|
1271
|
+
static names() {
|
|
1272
|
+
return {
|
|
1273
|
+
customHotValue: 'customHotValue',
|
|
1274
|
+
hotTopic: 'hotTopic',
|
|
1275
|
+
hotTopicVersion: 'hotTopicVersion',
|
|
1276
|
+
hotValue: 'hotValue',
|
|
1277
|
+
};
|
|
1278
|
+
}
|
|
1279
|
+
static types() {
|
|
1280
|
+
return {
|
|
1281
|
+
customHotValue: 'number',
|
|
1282
|
+
hotTopic: 'string',
|
|
1283
|
+
hotTopicVersion: 'string',
|
|
1284
|
+
hotValue: 'number',
|
|
1285
|
+
};
|
|
1286
|
+
}
|
|
1287
|
+
constructor(map) {
|
|
1288
|
+
super(map);
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
exports.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries = RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries;
|
|
1292
|
+
class RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias extends $tea.Model {
|
|
1293
|
+
static names() {
|
|
1294
|
+
return {
|
|
1295
|
+
fileUrl: 'fileUrl',
|
|
1296
|
+
mediaType: 'mediaType',
|
|
1297
|
+
sortScore: 'sortScore',
|
|
1298
|
+
};
|
|
1299
|
+
}
|
|
1300
|
+
static types() {
|
|
1301
|
+
return {
|
|
1302
|
+
fileUrl: 'string',
|
|
1303
|
+
mediaType: 'string',
|
|
1304
|
+
sortScore: 'number',
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
constructor(map) {
|
|
1308
|
+
super(map);
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
exports.RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias = RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias;
|
|
1312
|
+
class RunHotTopicChatResponseBodyPayloadOutput extends $tea.Model {
|
|
1313
|
+
static names() {
|
|
1314
|
+
return {
|
|
1315
|
+
articles: 'articles',
|
|
1316
|
+
hotTopicSummaries: 'hotTopicSummaries',
|
|
1317
|
+
multimodalMedias: 'multimodalMedias',
|
|
1318
|
+
recommendQueries: 'recommendQueries',
|
|
1319
|
+
searchQuery: 'searchQuery',
|
|
1320
|
+
text: 'text',
|
|
1321
|
+
};
|
|
1322
|
+
}
|
|
1323
|
+
static types() {
|
|
1324
|
+
return {
|
|
1325
|
+
articles: { 'type': 'array', 'itemType': RunHotTopicChatResponseBodyPayloadOutputArticles },
|
|
1326
|
+
hotTopicSummaries: { 'type': 'array', 'itemType': RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries },
|
|
1327
|
+
multimodalMedias: { 'type': 'array', 'itemType': RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias },
|
|
1328
|
+
recommendQueries: { 'type': 'array', 'itemType': 'string' },
|
|
1329
|
+
searchQuery: 'string',
|
|
1330
|
+
text: 'string',
|
|
1331
|
+
};
|
|
1332
|
+
}
|
|
1333
|
+
constructor(map) {
|
|
1334
|
+
super(map);
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
exports.RunHotTopicChatResponseBodyPayloadOutput = RunHotTopicChatResponseBodyPayloadOutput;
|
|
1338
|
+
class RunHotTopicChatResponseBodyPayloadUsage extends $tea.Model {
|
|
1339
|
+
static names() {
|
|
1340
|
+
return {
|
|
1341
|
+
inputTokens: 'inputTokens',
|
|
1342
|
+
outputTokens: 'outputTokens',
|
|
1343
|
+
totalTokens: 'totalTokens',
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
static types() {
|
|
1347
|
+
return {
|
|
1348
|
+
inputTokens: 'number',
|
|
1349
|
+
outputTokens: 'number',
|
|
1350
|
+
totalTokens: 'number',
|
|
1351
|
+
};
|
|
1352
|
+
}
|
|
1353
|
+
constructor(map) {
|
|
1354
|
+
super(map);
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
exports.RunHotTopicChatResponseBodyPayloadUsage = RunHotTopicChatResponseBodyPayloadUsage;
|
|
1358
|
+
class RunHotTopicChatResponseBodyPayload extends $tea.Model {
|
|
1359
|
+
static names() {
|
|
1360
|
+
return {
|
|
1361
|
+
output: 'output',
|
|
1362
|
+
usage: 'usage',
|
|
1363
|
+
};
|
|
1364
|
+
}
|
|
1365
|
+
static types() {
|
|
1366
|
+
return {
|
|
1367
|
+
output: RunHotTopicChatResponseBodyPayloadOutput,
|
|
1368
|
+
usage: RunHotTopicChatResponseBodyPayloadUsage,
|
|
1369
|
+
};
|
|
1370
|
+
}
|
|
1371
|
+
constructor(map) {
|
|
1372
|
+
super(map);
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
exports.RunHotTopicChatResponseBodyPayload = RunHotTopicChatResponseBodyPayload;
|
|
1376
|
+
class RunHotTopicSummaryRequestStepForCustomSummaryStyleConfig extends $tea.Model {
|
|
1377
|
+
static names() {
|
|
1378
|
+
return {
|
|
1379
|
+
summaryImageCount: 'summaryImageCount',
|
|
1380
|
+
summaryModel: 'summaryModel',
|
|
1381
|
+
summaryPrompt: 'summaryPrompt',
|
|
1382
|
+
};
|
|
1383
|
+
}
|
|
1384
|
+
static types() {
|
|
1385
|
+
return {
|
|
1386
|
+
summaryImageCount: 'number',
|
|
1387
|
+
summaryModel: 'string',
|
|
1388
|
+
summaryPrompt: 'string',
|
|
1389
|
+
};
|
|
1390
|
+
}
|
|
1391
|
+
constructor(map) {
|
|
1392
|
+
super(map);
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
exports.RunHotTopicSummaryRequestStepForCustomSummaryStyleConfig = RunHotTopicSummaryRequestStepForCustomSummaryStyleConfig;
|
|
1396
|
+
class RunHotTopicSummaryResponseBodyHeader extends $tea.Model {
|
|
1397
|
+
static names() {
|
|
1398
|
+
return {
|
|
1399
|
+
errorCode: 'errorCode',
|
|
1400
|
+
errorMessage: 'errorMessage',
|
|
1401
|
+
event: 'event',
|
|
1402
|
+
sessionId: 'sessionId',
|
|
1403
|
+
taskId: 'taskId',
|
|
1404
|
+
traceId: 'traceId',
|
|
1405
|
+
};
|
|
1406
|
+
}
|
|
1407
|
+
static types() {
|
|
1408
|
+
return {
|
|
1409
|
+
errorCode: 'string',
|
|
1410
|
+
errorMessage: 'string',
|
|
1411
|
+
event: 'string',
|
|
1412
|
+
sessionId: 'string',
|
|
1413
|
+
taskId: 'string',
|
|
1414
|
+
traceId: 'string',
|
|
1415
|
+
};
|
|
1416
|
+
}
|
|
1417
|
+
constructor(map) {
|
|
1418
|
+
super(map);
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
exports.RunHotTopicSummaryResponseBodyHeader = RunHotTopicSummaryResponseBodyHeader;
|
|
1422
|
+
class RunHotTopicSummaryResponseBodyPayloadOutput extends $tea.Model {
|
|
1423
|
+
static names() {
|
|
1424
|
+
return {
|
|
1425
|
+
text: 'text',
|
|
1426
|
+
topicId: 'topicId',
|
|
1427
|
+
};
|
|
1428
|
+
}
|
|
1429
|
+
static types() {
|
|
1430
|
+
return {
|
|
1431
|
+
text: 'string',
|
|
1432
|
+
topicId: 'string',
|
|
1433
|
+
};
|
|
1434
|
+
}
|
|
1435
|
+
constructor(map) {
|
|
1436
|
+
super(map);
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
exports.RunHotTopicSummaryResponseBodyPayloadOutput = RunHotTopicSummaryResponseBodyPayloadOutput;
|
|
1440
|
+
class RunHotTopicSummaryResponseBodyPayloadUsage extends $tea.Model {
|
|
1441
|
+
static names() {
|
|
1442
|
+
return {
|
|
1443
|
+
inputTokens: 'inputTokens',
|
|
1444
|
+
outputTokens: 'outputTokens',
|
|
1445
|
+
totalTokens: 'totalTokens',
|
|
1446
|
+
};
|
|
1447
|
+
}
|
|
1448
|
+
static types() {
|
|
1449
|
+
return {
|
|
1450
|
+
inputTokens: 'number',
|
|
1451
|
+
outputTokens: 'number',
|
|
1452
|
+
totalTokens: 'number',
|
|
1453
|
+
};
|
|
1454
|
+
}
|
|
1455
|
+
constructor(map) {
|
|
1456
|
+
super(map);
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
exports.RunHotTopicSummaryResponseBodyPayloadUsage = RunHotTopicSummaryResponseBodyPayloadUsage;
|
|
1460
|
+
class RunHotTopicSummaryResponseBodyPayload extends $tea.Model {
|
|
1461
|
+
static names() {
|
|
1462
|
+
return {
|
|
1463
|
+
output: 'output',
|
|
1464
|
+
usage: 'usage',
|
|
1465
|
+
};
|
|
1466
|
+
}
|
|
1467
|
+
static types() {
|
|
1468
|
+
return {
|
|
1469
|
+
output: RunHotTopicSummaryResponseBodyPayloadOutput,
|
|
1470
|
+
usage: RunHotTopicSummaryResponseBodyPayloadUsage,
|
|
1471
|
+
};
|
|
1472
|
+
}
|
|
1473
|
+
constructor(map) {
|
|
1474
|
+
super(map);
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
exports.RunHotTopicSummaryResponseBodyPayload = RunHotTopicSummaryResponseBodyPayload;
|
|
981
1478
|
class RunMarketingInformationExtractResponseBodyHeader extends $tea.Model {
|
|
982
1479
|
static names() {
|
|
983
1480
|
return {
|
|
@@ -1921,6 +2418,145 @@ class Client extends openapi_client_1.default {
|
|
|
1921
2418
|
let headers = {};
|
|
1922
2419
|
return await this.runCommentGenerationWithOptions(workspaceId, request, headers, runtime);
|
|
1923
2420
|
}
|
|
2421
|
+
/**
|
|
2422
|
+
* 轻应用-热点播报-问答
|
|
2423
|
+
*
|
|
2424
|
+
* @param tmpReq - RunHotTopicChatRequest
|
|
2425
|
+
* @param headers - map
|
|
2426
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2427
|
+
* @returns RunHotTopicChatResponse
|
|
2428
|
+
*/
|
|
2429
|
+
async runHotTopicChatWithOptions(workspaceId, tmpReq, headers, runtime) {
|
|
2430
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
2431
|
+
let request = new RunHotTopicChatShrinkRequest({});
|
|
2432
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
2433
|
+
if (!tea_util_1.default.isUnset(tmpReq.generateOptions)) {
|
|
2434
|
+
request.generateOptionsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.generateOptions, "generateOptions", "json");
|
|
2435
|
+
}
|
|
2436
|
+
if (!tea_util_1.default.isUnset(tmpReq.hotTopics)) {
|
|
2437
|
+
request.hotTopicsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.hotTopics, "hotTopics", "json");
|
|
2438
|
+
}
|
|
2439
|
+
if (!tea_util_1.default.isUnset(tmpReq.stepForBroadcastContentConfig)) {
|
|
2440
|
+
request.stepForBroadcastContentConfigShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.stepForBroadcastContentConfig, "stepForBroadcastContentConfig", "json");
|
|
2441
|
+
}
|
|
2442
|
+
let body = {};
|
|
2443
|
+
if (!tea_util_1.default.isUnset(request.category)) {
|
|
2444
|
+
body["category"] = request.category;
|
|
2445
|
+
}
|
|
2446
|
+
if (!tea_util_1.default.isUnset(request.generateOptionsShrink)) {
|
|
2447
|
+
body["generateOptions"] = request.generateOptionsShrink;
|
|
2448
|
+
}
|
|
2449
|
+
if (!tea_util_1.default.isUnset(request.hotTopicVersion)) {
|
|
2450
|
+
body["hotTopicVersion"] = request.hotTopicVersion;
|
|
2451
|
+
}
|
|
2452
|
+
if (!tea_util_1.default.isUnset(request.hotTopicsShrink)) {
|
|
2453
|
+
body["hotTopics"] = request.hotTopicsShrink;
|
|
2454
|
+
}
|
|
2455
|
+
if (!tea_util_1.default.isUnset(request.imageCount)) {
|
|
2456
|
+
body["imageCount"] = request.imageCount;
|
|
2457
|
+
}
|
|
2458
|
+
if (!tea_util_1.default.isUnset(request.modelCustomPromptTemplate)) {
|
|
2459
|
+
body["modelCustomPromptTemplate"] = request.modelCustomPromptTemplate;
|
|
2460
|
+
}
|
|
2461
|
+
if (!tea_util_1.default.isUnset(request.modelId)) {
|
|
2462
|
+
body["modelId"] = request.modelId;
|
|
2463
|
+
}
|
|
2464
|
+
if (!tea_util_1.default.isUnset(request.originalSessionId)) {
|
|
2465
|
+
body["originalSessionId"] = request.originalSessionId;
|
|
2466
|
+
}
|
|
2467
|
+
if (!tea_util_1.default.isUnset(request.prompt)) {
|
|
2468
|
+
body["prompt"] = request.prompt;
|
|
2469
|
+
}
|
|
2470
|
+
if (!tea_util_1.default.isUnset(request.stepForBroadcastContentConfigShrink)) {
|
|
2471
|
+
body["stepForBroadcastContentConfig"] = request.stepForBroadcastContentConfigShrink;
|
|
2472
|
+
}
|
|
2473
|
+
if (!tea_util_1.default.isUnset(request.taskId)) {
|
|
2474
|
+
body["taskId"] = request.taskId;
|
|
2475
|
+
}
|
|
2476
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2477
|
+
headers: headers,
|
|
2478
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
2479
|
+
});
|
|
2480
|
+
let params = new $OpenApi.Params({
|
|
2481
|
+
action: "RunHotTopicChat",
|
|
2482
|
+
version: "2024-08-01",
|
|
2483
|
+
protocol: "HTTPS",
|
|
2484
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/quanmiao/lightapp/runHotTopicChat`,
|
|
2485
|
+
method: "POST",
|
|
2486
|
+
authType: "AK",
|
|
2487
|
+
style: "ROA",
|
|
2488
|
+
reqBodyType: "formData",
|
|
2489
|
+
bodyType: "json",
|
|
2490
|
+
});
|
|
2491
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RunHotTopicChatResponse({}));
|
|
2492
|
+
}
|
|
2493
|
+
/**
|
|
2494
|
+
* 轻应用-热点播报-问答
|
|
2495
|
+
*
|
|
2496
|
+
* @param request - RunHotTopicChatRequest
|
|
2497
|
+
* @returns RunHotTopicChatResponse
|
|
2498
|
+
*/
|
|
2499
|
+
async runHotTopicChat(workspaceId, request) {
|
|
2500
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
2501
|
+
let headers = {};
|
|
2502
|
+
return await this.runHotTopicChatWithOptions(workspaceId, request, headers, runtime);
|
|
2503
|
+
}
|
|
2504
|
+
/**
|
|
2505
|
+
* 轻应用-热点播报-热点摘要生成
|
|
2506
|
+
*
|
|
2507
|
+
* @param tmpReq - RunHotTopicSummaryRequest
|
|
2508
|
+
* @param headers - map
|
|
2509
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2510
|
+
* @returns RunHotTopicSummaryResponse
|
|
2511
|
+
*/
|
|
2512
|
+
async runHotTopicSummaryWithOptions(workspaceId, tmpReq, headers, runtime) {
|
|
2513
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
2514
|
+
let request = new RunHotTopicSummaryShrinkRequest({});
|
|
2515
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
2516
|
+
if (!tea_util_1.default.isUnset(tmpReq.stepForCustomSummaryStyleConfig)) {
|
|
2517
|
+
request.stepForCustomSummaryStyleConfigShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.stepForCustomSummaryStyleConfig, "stepForCustomSummaryStyleConfig", "json");
|
|
2518
|
+
}
|
|
2519
|
+
if (!tea_util_1.default.isUnset(tmpReq.topicIds)) {
|
|
2520
|
+
request.topicIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.topicIds, "topicIds", "json");
|
|
2521
|
+
}
|
|
2522
|
+
let body = {};
|
|
2523
|
+
if (!tea_util_1.default.isUnset(request.hotTopicVersion)) {
|
|
2524
|
+
body["hotTopicVersion"] = request.hotTopicVersion;
|
|
2525
|
+
}
|
|
2526
|
+
if (!tea_util_1.default.isUnset(request.stepForCustomSummaryStyleConfigShrink)) {
|
|
2527
|
+
body["stepForCustomSummaryStyleConfig"] = request.stepForCustomSummaryStyleConfigShrink;
|
|
2528
|
+
}
|
|
2529
|
+
if (!tea_util_1.default.isUnset(request.topicIdsShrink)) {
|
|
2530
|
+
body["topicIds"] = request.topicIdsShrink;
|
|
2531
|
+
}
|
|
2532
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2533
|
+
headers: headers,
|
|
2534
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
2535
|
+
});
|
|
2536
|
+
let params = new $OpenApi.Params({
|
|
2537
|
+
action: "RunHotTopicSummary",
|
|
2538
|
+
version: "2024-08-01",
|
|
2539
|
+
protocol: "HTTPS",
|
|
2540
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/quanmiao/lightapp/runHotTopicSummary`,
|
|
2541
|
+
method: "POST",
|
|
2542
|
+
authType: "AK",
|
|
2543
|
+
style: "ROA",
|
|
2544
|
+
reqBodyType: "formData",
|
|
2545
|
+
bodyType: "json",
|
|
2546
|
+
});
|
|
2547
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RunHotTopicSummaryResponse({}));
|
|
2548
|
+
}
|
|
2549
|
+
/**
|
|
2550
|
+
* 轻应用-热点播报-热点摘要生成
|
|
2551
|
+
*
|
|
2552
|
+
* @param request - RunHotTopicSummaryRequest
|
|
2553
|
+
* @returns RunHotTopicSummaryResponse
|
|
2554
|
+
*/
|
|
2555
|
+
async runHotTopicSummary(workspaceId, request) {
|
|
2556
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
2557
|
+
let headers = {};
|
|
2558
|
+
return await this.runHotTopicSummaryWithOptions(workspaceId, request, headers, runtime);
|
|
2559
|
+
}
|
|
1924
2560
|
/**
|
|
1925
2561
|
* 营销信息抽取服务
|
|
1926
2562
|
*
|