@alicloud/quanmiaolightapp20240801 1.4.0 → 1.5.1
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 +761 -136
- package/dist/client.js +653 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1527 -464
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 {
|
|
@@ -323,16 +516,22 @@ exports.RunMarketingInformationExtractResponse = RunMarketingInformationExtractR
|
|
|
323
516
|
class RunMarketingInformationWritingRequest extends $tea.Model {
|
|
324
517
|
static names() {
|
|
325
518
|
return {
|
|
519
|
+
customLimitation: 'customLimitation',
|
|
326
520
|
customPrompt: 'customPrompt',
|
|
521
|
+
inputExample: 'inputExample',
|
|
327
522
|
modelId: 'modelId',
|
|
523
|
+
outputExample: 'outputExample',
|
|
328
524
|
sourceMaterial: 'sourceMaterial',
|
|
329
525
|
writingType: 'writingType',
|
|
330
526
|
};
|
|
331
527
|
}
|
|
332
528
|
static types() {
|
|
333
529
|
return {
|
|
530
|
+
customLimitation: 'string',
|
|
334
531
|
customPrompt: 'string',
|
|
532
|
+
inputExample: 'string',
|
|
335
533
|
modelId: 'string',
|
|
534
|
+
outputExample: 'string',
|
|
336
535
|
sourceMaterial: 'string',
|
|
337
536
|
writingType: 'string',
|
|
338
537
|
};
|
|
@@ -978,6 +1177,310 @@ class RunCommentGenerationResponseBodyPayload extends $tea.Model {
|
|
|
978
1177
|
}
|
|
979
1178
|
}
|
|
980
1179
|
exports.RunCommentGenerationResponseBodyPayload = RunCommentGenerationResponseBodyPayload;
|
|
1180
|
+
class RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights extends $tea.Model {
|
|
1181
|
+
static names() {
|
|
1182
|
+
return {
|
|
1183
|
+
dimension: 'dimension',
|
|
1184
|
+
weight: 'weight',
|
|
1185
|
+
};
|
|
1186
|
+
}
|
|
1187
|
+
static types() {
|
|
1188
|
+
return {
|
|
1189
|
+
dimension: 'string',
|
|
1190
|
+
weight: 'number',
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
constructor(map) {
|
|
1194
|
+
super(map);
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
exports.RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights = RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights;
|
|
1198
|
+
class RunHotTopicChatRequestStepForBroadcastContentConfig extends $tea.Model {
|
|
1199
|
+
static names() {
|
|
1200
|
+
return {
|
|
1201
|
+
categories: 'categories',
|
|
1202
|
+
customHotValueWeights: 'customHotValueWeights',
|
|
1203
|
+
topicCount: 'topicCount',
|
|
1204
|
+
};
|
|
1205
|
+
}
|
|
1206
|
+
static types() {
|
|
1207
|
+
return {
|
|
1208
|
+
categories: { 'type': 'array', 'itemType': 'string' },
|
|
1209
|
+
customHotValueWeights: { 'type': 'array', 'itemType': RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights },
|
|
1210
|
+
topicCount: 'number',
|
|
1211
|
+
};
|
|
1212
|
+
}
|
|
1213
|
+
constructor(map) {
|
|
1214
|
+
super(map);
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
exports.RunHotTopicChatRequestStepForBroadcastContentConfig = RunHotTopicChatRequestStepForBroadcastContentConfig;
|
|
1218
|
+
class RunHotTopicChatResponseBodyHeader extends $tea.Model {
|
|
1219
|
+
static names() {
|
|
1220
|
+
return {
|
|
1221
|
+
errorCode: 'errorCode',
|
|
1222
|
+
errorMessage: 'errorMessage',
|
|
1223
|
+
event: 'event',
|
|
1224
|
+
eventInfo: 'eventInfo',
|
|
1225
|
+
sessionId: 'sessionId',
|
|
1226
|
+
taskId: 'taskId',
|
|
1227
|
+
traceId: 'traceId',
|
|
1228
|
+
};
|
|
1229
|
+
}
|
|
1230
|
+
static types() {
|
|
1231
|
+
return {
|
|
1232
|
+
errorCode: 'string',
|
|
1233
|
+
errorMessage: 'string',
|
|
1234
|
+
event: 'string',
|
|
1235
|
+
eventInfo: 'string',
|
|
1236
|
+
sessionId: 'string',
|
|
1237
|
+
taskId: 'string',
|
|
1238
|
+
traceId: 'string',
|
|
1239
|
+
};
|
|
1240
|
+
}
|
|
1241
|
+
constructor(map) {
|
|
1242
|
+
super(map);
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
exports.RunHotTopicChatResponseBodyHeader = RunHotTopicChatResponseBodyHeader;
|
|
1246
|
+
class RunHotTopicChatResponseBodyPayloadOutputArticles extends $tea.Model {
|
|
1247
|
+
static names() {
|
|
1248
|
+
return {
|
|
1249
|
+
content: 'content',
|
|
1250
|
+
pubTime: 'pubTime',
|
|
1251
|
+
score: 'score',
|
|
1252
|
+
searchSourceName: 'searchSourceName',
|
|
1253
|
+
select: 'select',
|
|
1254
|
+
summary: 'summary',
|
|
1255
|
+
title: 'title',
|
|
1256
|
+
url: 'url',
|
|
1257
|
+
};
|
|
1258
|
+
}
|
|
1259
|
+
static types() {
|
|
1260
|
+
return {
|
|
1261
|
+
content: 'string',
|
|
1262
|
+
pubTime: 'string',
|
|
1263
|
+
score: 'number',
|
|
1264
|
+
searchSourceName: 'string',
|
|
1265
|
+
select: 'boolean',
|
|
1266
|
+
summary: 'string',
|
|
1267
|
+
title: 'string',
|
|
1268
|
+
url: 'string',
|
|
1269
|
+
};
|
|
1270
|
+
}
|
|
1271
|
+
constructor(map) {
|
|
1272
|
+
super(map);
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
exports.RunHotTopicChatResponseBodyPayloadOutputArticles = RunHotTopicChatResponseBodyPayloadOutputArticles;
|
|
1276
|
+
class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries extends $tea.Model {
|
|
1277
|
+
static names() {
|
|
1278
|
+
return {
|
|
1279
|
+
customHotValue: 'customHotValue',
|
|
1280
|
+
hotTopic: 'hotTopic',
|
|
1281
|
+
hotTopicVersion: 'hotTopicVersion',
|
|
1282
|
+
hotValue: 'hotValue',
|
|
1283
|
+
};
|
|
1284
|
+
}
|
|
1285
|
+
static types() {
|
|
1286
|
+
return {
|
|
1287
|
+
customHotValue: 'number',
|
|
1288
|
+
hotTopic: 'string',
|
|
1289
|
+
hotTopicVersion: 'string',
|
|
1290
|
+
hotValue: 'number',
|
|
1291
|
+
};
|
|
1292
|
+
}
|
|
1293
|
+
constructor(map) {
|
|
1294
|
+
super(map);
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
exports.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries = RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries;
|
|
1298
|
+
class RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias extends $tea.Model {
|
|
1299
|
+
static names() {
|
|
1300
|
+
return {
|
|
1301
|
+
fileUrl: 'fileUrl',
|
|
1302
|
+
mediaType: 'mediaType',
|
|
1303
|
+
sortScore: 'sortScore',
|
|
1304
|
+
};
|
|
1305
|
+
}
|
|
1306
|
+
static types() {
|
|
1307
|
+
return {
|
|
1308
|
+
fileUrl: 'string',
|
|
1309
|
+
mediaType: 'string',
|
|
1310
|
+
sortScore: 'number',
|
|
1311
|
+
};
|
|
1312
|
+
}
|
|
1313
|
+
constructor(map) {
|
|
1314
|
+
super(map);
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
exports.RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias = RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias;
|
|
1318
|
+
class RunHotTopicChatResponseBodyPayloadOutput extends $tea.Model {
|
|
1319
|
+
static names() {
|
|
1320
|
+
return {
|
|
1321
|
+
articles: 'articles',
|
|
1322
|
+
hotTopicSummaries: 'hotTopicSummaries',
|
|
1323
|
+
multimodalMedias: 'multimodalMedias',
|
|
1324
|
+
recommendQueries: 'recommendQueries',
|
|
1325
|
+
searchQuery: 'searchQuery',
|
|
1326
|
+
text: 'text',
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
static types() {
|
|
1330
|
+
return {
|
|
1331
|
+
articles: { 'type': 'array', 'itemType': RunHotTopicChatResponseBodyPayloadOutputArticles },
|
|
1332
|
+
hotTopicSummaries: { 'type': 'array', 'itemType': RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries },
|
|
1333
|
+
multimodalMedias: { 'type': 'array', 'itemType': RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias },
|
|
1334
|
+
recommendQueries: { 'type': 'array', 'itemType': 'string' },
|
|
1335
|
+
searchQuery: 'string',
|
|
1336
|
+
text: 'string',
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
constructor(map) {
|
|
1340
|
+
super(map);
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
exports.RunHotTopicChatResponseBodyPayloadOutput = RunHotTopicChatResponseBodyPayloadOutput;
|
|
1344
|
+
class RunHotTopicChatResponseBodyPayloadUsage extends $tea.Model {
|
|
1345
|
+
static names() {
|
|
1346
|
+
return {
|
|
1347
|
+
inputTokens: 'inputTokens',
|
|
1348
|
+
outputTokens: 'outputTokens',
|
|
1349
|
+
totalTokens: 'totalTokens',
|
|
1350
|
+
};
|
|
1351
|
+
}
|
|
1352
|
+
static types() {
|
|
1353
|
+
return {
|
|
1354
|
+
inputTokens: 'number',
|
|
1355
|
+
outputTokens: 'number',
|
|
1356
|
+
totalTokens: 'number',
|
|
1357
|
+
};
|
|
1358
|
+
}
|
|
1359
|
+
constructor(map) {
|
|
1360
|
+
super(map);
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
exports.RunHotTopicChatResponseBodyPayloadUsage = RunHotTopicChatResponseBodyPayloadUsage;
|
|
1364
|
+
class RunHotTopicChatResponseBodyPayload extends $tea.Model {
|
|
1365
|
+
static names() {
|
|
1366
|
+
return {
|
|
1367
|
+
output: 'output',
|
|
1368
|
+
usage: 'usage',
|
|
1369
|
+
};
|
|
1370
|
+
}
|
|
1371
|
+
static types() {
|
|
1372
|
+
return {
|
|
1373
|
+
output: RunHotTopicChatResponseBodyPayloadOutput,
|
|
1374
|
+
usage: RunHotTopicChatResponseBodyPayloadUsage,
|
|
1375
|
+
};
|
|
1376
|
+
}
|
|
1377
|
+
constructor(map) {
|
|
1378
|
+
super(map);
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
exports.RunHotTopicChatResponseBodyPayload = RunHotTopicChatResponseBodyPayload;
|
|
1382
|
+
class RunHotTopicSummaryRequestStepForCustomSummaryStyleConfig extends $tea.Model {
|
|
1383
|
+
static names() {
|
|
1384
|
+
return {
|
|
1385
|
+
summaryImageCount: 'summaryImageCount',
|
|
1386
|
+
summaryModel: 'summaryModel',
|
|
1387
|
+
summaryPrompt: 'summaryPrompt',
|
|
1388
|
+
};
|
|
1389
|
+
}
|
|
1390
|
+
static types() {
|
|
1391
|
+
return {
|
|
1392
|
+
summaryImageCount: 'number',
|
|
1393
|
+
summaryModel: 'string',
|
|
1394
|
+
summaryPrompt: 'string',
|
|
1395
|
+
};
|
|
1396
|
+
}
|
|
1397
|
+
constructor(map) {
|
|
1398
|
+
super(map);
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
exports.RunHotTopicSummaryRequestStepForCustomSummaryStyleConfig = RunHotTopicSummaryRequestStepForCustomSummaryStyleConfig;
|
|
1402
|
+
class RunHotTopicSummaryResponseBodyHeader extends $tea.Model {
|
|
1403
|
+
static names() {
|
|
1404
|
+
return {
|
|
1405
|
+
errorCode: 'errorCode',
|
|
1406
|
+
errorMessage: 'errorMessage',
|
|
1407
|
+
event: 'event',
|
|
1408
|
+
sessionId: 'sessionId',
|
|
1409
|
+
taskId: 'taskId',
|
|
1410
|
+
traceId: 'traceId',
|
|
1411
|
+
};
|
|
1412
|
+
}
|
|
1413
|
+
static types() {
|
|
1414
|
+
return {
|
|
1415
|
+
errorCode: 'string',
|
|
1416
|
+
errorMessage: 'string',
|
|
1417
|
+
event: 'string',
|
|
1418
|
+
sessionId: 'string',
|
|
1419
|
+
taskId: 'string',
|
|
1420
|
+
traceId: 'string',
|
|
1421
|
+
};
|
|
1422
|
+
}
|
|
1423
|
+
constructor(map) {
|
|
1424
|
+
super(map);
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
exports.RunHotTopicSummaryResponseBodyHeader = RunHotTopicSummaryResponseBodyHeader;
|
|
1428
|
+
class RunHotTopicSummaryResponseBodyPayloadOutput extends $tea.Model {
|
|
1429
|
+
static names() {
|
|
1430
|
+
return {
|
|
1431
|
+
text: 'text',
|
|
1432
|
+
topicId: 'topicId',
|
|
1433
|
+
};
|
|
1434
|
+
}
|
|
1435
|
+
static types() {
|
|
1436
|
+
return {
|
|
1437
|
+
text: 'string',
|
|
1438
|
+
topicId: 'string',
|
|
1439
|
+
};
|
|
1440
|
+
}
|
|
1441
|
+
constructor(map) {
|
|
1442
|
+
super(map);
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
exports.RunHotTopicSummaryResponseBodyPayloadOutput = RunHotTopicSummaryResponseBodyPayloadOutput;
|
|
1446
|
+
class RunHotTopicSummaryResponseBodyPayloadUsage extends $tea.Model {
|
|
1447
|
+
static names() {
|
|
1448
|
+
return {
|
|
1449
|
+
inputTokens: 'inputTokens',
|
|
1450
|
+
outputTokens: 'outputTokens',
|
|
1451
|
+
totalTokens: 'totalTokens',
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
static types() {
|
|
1455
|
+
return {
|
|
1456
|
+
inputTokens: 'number',
|
|
1457
|
+
outputTokens: 'number',
|
|
1458
|
+
totalTokens: 'number',
|
|
1459
|
+
};
|
|
1460
|
+
}
|
|
1461
|
+
constructor(map) {
|
|
1462
|
+
super(map);
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
exports.RunHotTopicSummaryResponseBodyPayloadUsage = RunHotTopicSummaryResponseBodyPayloadUsage;
|
|
1466
|
+
class RunHotTopicSummaryResponseBodyPayload extends $tea.Model {
|
|
1467
|
+
static names() {
|
|
1468
|
+
return {
|
|
1469
|
+
output: 'output',
|
|
1470
|
+
usage: 'usage',
|
|
1471
|
+
};
|
|
1472
|
+
}
|
|
1473
|
+
static types() {
|
|
1474
|
+
return {
|
|
1475
|
+
output: RunHotTopicSummaryResponseBodyPayloadOutput,
|
|
1476
|
+
usage: RunHotTopicSummaryResponseBodyPayloadUsage,
|
|
1477
|
+
};
|
|
1478
|
+
}
|
|
1479
|
+
constructor(map) {
|
|
1480
|
+
super(map);
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
exports.RunHotTopicSummaryResponseBodyPayload = RunHotTopicSummaryResponseBodyPayload;
|
|
981
1484
|
class RunMarketingInformationExtractResponseBodyHeader extends $tea.Model {
|
|
982
1485
|
static names() {
|
|
983
1486
|
return {
|
|
@@ -1921,6 +2424,145 @@ class Client extends openapi_client_1.default {
|
|
|
1921
2424
|
let headers = {};
|
|
1922
2425
|
return await this.runCommentGenerationWithOptions(workspaceId, request, headers, runtime);
|
|
1923
2426
|
}
|
|
2427
|
+
/**
|
|
2428
|
+
* 轻应用-热点播报-问答
|
|
2429
|
+
*
|
|
2430
|
+
* @param tmpReq - RunHotTopicChatRequest
|
|
2431
|
+
* @param headers - map
|
|
2432
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2433
|
+
* @returns RunHotTopicChatResponse
|
|
2434
|
+
*/
|
|
2435
|
+
async runHotTopicChatWithOptions(workspaceId, tmpReq, headers, runtime) {
|
|
2436
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
2437
|
+
let request = new RunHotTopicChatShrinkRequest({});
|
|
2438
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
2439
|
+
if (!tea_util_1.default.isUnset(tmpReq.generateOptions)) {
|
|
2440
|
+
request.generateOptionsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.generateOptions, "generateOptions", "json");
|
|
2441
|
+
}
|
|
2442
|
+
if (!tea_util_1.default.isUnset(tmpReq.hotTopics)) {
|
|
2443
|
+
request.hotTopicsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.hotTopics, "hotTopics", "json");
|
|
2444
|
+
}
|
|
2445
|
+
if (!tea_util_1.default.isUnset(tmpReq.stepForBroadcastContentConfig)) {
|
|
2446
|
+
request.stepForBroadcastContentConfigShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.stepForBroadcastContentConfig, "stepForBroadcastContentConfig", "json");
|
|
2447
|
+
}
|
|
2448
|
+
let body = {};
|
|
2449
|
+
if (!tea_util_1.default.isUnset(request.category)) {
|
|
2450
|
+
body["category"] = request.category;
|
|
2451
|
+
}
|
|
2452
|
+
if (!tea_util_1.default.isUnset(request.generateOptionsShrink)) {
|
|
2453
|
+
body["generateOptions"] = request.generateOptionsShrink;
|
|
2454
|
+
}
|
|
2455
|
+
if (!tea_util_1.default.isUnset(request.hotTopicVersion)) {
|
|
2456
|
+
body["hotTopicVersion"] = request.hotTopicVersion;
|
|
2457
|
+
}
|
|
2458
|
+
if (!tea_util_1.default.isUnset(request.hotTopicsShrink)) {
|
|
2459
|
+
body["hotTopics"] = request.hotTopicsShrink;
|
|
2460
|
+
}
|
|
2461
|
+
if (!tea_util_1.default.isUnset(request.imageCount)) {
|
|
2462
|
+
body["imageCount"] = request.imageCount;
|
|
2463
|
+
}
|
|
2464
|
+
if (!tea_util_1.default.isUnset(request.modelCustomPromptTemplate)) {
|
|
2465
|
+
body["modelCustomPromptTemplate"] = request.modelCustomPromptTemplate;
|
|
2466
|
+
}
|
|
2467
|
+
if (!tea_util_1.default.isUnset(request.modelId)) {
|
|
2468
|
+
body["modelId"] = request.modelId;
|
|
2469
|
+
}
|
|
2470
|
+
if (!tea_util_1.default.isUnset(request.originalSessionId)) {
|
|
2471
|
+
body["originalSessionId"] = request.originalSessionId;
|
|
2472
|
+
}
|
|
2473
|
+
if (!tea_util_1.default.isUnset(request.prompt)) {
|
|
2474
|
+
body["prompt"] = request.prompt;
|
|
2475
|
+
}
|
|
2476
|
+
if (!tea_util_1.default.isUnset(request.stepForBroadcastContentConfigShrink)) {
|
|
2477
|
+
body["stepForBroadcastContentConfig"] = request.stepForBroadcastContentConfigShrink;
|
|
2478
|
+
}
|
|
2479
|
+
if (!tea_util_1.default.isUnset(request.taskId)) {
|
|
2480
|
+
body["taskId"] = request.taskId;
|
|
2481
|
+
}
|
|
2482
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2483
|
+
headers: headers,
|
|
2484
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
2485
|
+
});
|
|
2486
|
+
let params = new $OpenApi.Params({
|
|
2487
|
+
action: "RunHotTopicChat",
|
|
2488
|
+
version: "2024-08-01",
|
|
2489
|
+
protocol: "HTTPS",
|
|
2490
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/quanmiao/lightapp/runHotTopicChat`,
|
|
2491
|
+
method: "POST",
|
|
2492
|
+
authType: "AK",
|
|
2493
|
+
style: "ROA",
|
|
2494
|
+
reqBodyType: "formData",
|
|
2495
|
+
bodyType: "json",
|
|
2496
|
+
});
|
|
2497
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RunHotTopicChatResponse({}));
|
|
2498
|
+
}
|
|
2499
|
+
/**
|
|
2500
|
+
* 轻应用-热点播报-问答
|
|
2501
|
+
*
|
|
2502
|
+
* @param request - RunHotTopicChatRequest
|
|
2503
|
+
* @returns RunHotTopicChatResponse
|
|
2504
|
+
*/
|
|
2505
|
+
async runHotTopicChat(workspaceId, request) {
|
|
2506
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
2507
|
+
let headers = {};
|
|
2508
|
+
return await this.runHotTopicChatWithOptions(workspaceId, request, headers, runtime);
|
|
2509
|
+
}
|
|
2510
|
+
/**
|
|
2511
|
+
* 轻应用-热点播报-热点摘要生成
|
|
2512
|
+
*
|
|
2513
|
+
* @param tmpReq - RunHotTopicSummaryRequest
|
|
2514
|
+
* @param headers - map
|
|
2515
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2516
|
+
* @returns RunHotTopicSummaryResponse
|
|
2517
|
+
*/
|
|
2518
|
+
async runHotTopicSummaryWithOptions(workspaceId, tmpReq, headers, runtime) {
|
|
2519
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
2520
|
+
let request = new RunHotTopicSummaryShrinkRequest({});
|
|
2521
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
2522
|
+
if (!tea_util_1.default.isUnset(tmpReq.stepForCustomSummaryStyleConfig)) {
|
|
2523
|
+
request.stepForCustomSummaryStyleConfigShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.stepForCustomSummaryStyleConfig, "stepForCustomSummaryStyleConfig", "json");
|
|
2524
|
+
}
|
|
2525
|
+
if (!tea_util_1.default.isUnset(tmpReq.topicIds)) {
|
|
2526
|
+
request.topicIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.topicIds, "topicIds", "json");
|
|
2527
|
+
}
|
|
2528
|
+
let body = {};
|
|
2529
|
+
if (!tea_util_1.default.isUnset(request.hotTopicVersion)) {
|
|
2530
|
+
body["hotTopicVersion"] = request.hotTopicVersion;
|
|
2531
|
+
}
|
|
2532
|
+
if (!tea_util_1.default.isUnset(request.stepForCustomSummaryStyleConfigShrink)) {
|
|
2533
|
+
body["stepForCustomSummaryStyleConfig"] = request.stepForCustomSummaryStyleConfigShrink;
|
|
2534
|
+
}
|
|
2535
|
+
if (!tea_util_1.default.isUnset(request.topicIdsShrink)) {
|
|
2536
|
+
body["topicIds"] = request.topicIdsShrink;
|
|
2537
|
+
}
|
|
2538
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2539
|
+
headers: headers,
|
|
2540
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
2541
|
+
});
|
|
2542
|
+
let params = new $OpenApi.Params({
|
|
2543
|
+
action: "RunHotTopicSummary",
|
|
2544
|
+
version: "2024-08-01",
|
|
2545
|
+
protocol: "HTTPS",
|
|
2546
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/quanmiao/lightapp/runHotTopicSummary`,
|
|
2547
|
+
method: "POST",
|
|
2548
|
+
authType: "AK",
|
|
2549
|
+
style: "ROA",
|
|
2550
|
+
reqBodyType: "formData",
|
|
2551
|
+
bodyType: "json",
|
|
2552
|
+
});
|
|
2553
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RunHotTopicSummaryResponse({}));
|
|
2554
|
+
}
|
|
2555
|
+
/**
|
|
2556
|
+
* 轻应用-热点播报-热点摘要生成
|
|
2557
|
+
*
|
|
2558
|
+
* @param request - RunHotTopicSummaryRequest
|
|
2559
|
+
* @returns RunHotTopicSummaryResponse
|
|
2560
|
+
*/
|
|
2561
|
+
async runHotTopicSummary(workspaceId, request) {
|
|
2562
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
2563
|
+
let headers = {};
|
|
2564
|
+
return await this.runHotTopicSummaryWithOptions(workspaceId, request, headers, runtime);
|
|
2565
|
+
}
|
|
1924
2566
|
/**
|
|
1925
2567
|
* 营销信息抽取服务
|
|
1926
2568
|
*
|
|
@@ -1988,12 +2630,21 @@ class Client extends openapi_client_1.default {
|
|
|
1988
2630
|
async runMarketingInformationWritingWithOptions(workspaceId, request, headers, runtime) {
|
|
1989
2631
|
tea_util_1.default.validateModel(request);
|
|
1990
2632
|
let body = {};
|
|
2633
|
+
if (!tea_util_1.default.isUnset(request.customLimitation)) {
|
|
2634
|
+
body["customLimitation"] = request.customLimitation;
|
|
2635
|
+
}
|
|
1991
2636
|
if (!tea_util_1.default.isUnset(request.customPrompt)) {
|
|
1992
2637
|
body["customPrompt"] = request.customPrompt;
|
|
1993
2638
|
}
|
|
2639
|
+
if (!tea_util_1.default.isUnset(request.inputExample)) {
|
|
2640
|
+
body["inputExample"] = request.inputExample;
|
|
2641
|
+
}
|
|
1994
2642
|
if (!tea_util_1.default.isUnset(request.modelId)) {
|
|
1995
2643
|
body["modelId"] = request.modelId;
|
|
1996
2644
|
}
|
|
2645
|
+
if (!tea_util_1.default.isUnset(request.outputExample)) {
|
|
2646
|
+
body["outputExample"] = request.outputExample;
|
|
2647
|
+
}
|
|
1997
2648
|
if (!tea_util_1.default.isUnset(request.sourceMaterial)) {
|
|
1998
2649
|
body["sourceMaterial"] = request.sourceMaterial;
|
|
1999
2650
|
}
|