@alicloud/quanmiaolightapp20240801 1.3.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 +1175 -203
- package/dist/client.js +1098 -63
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +2060 -424
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
|
*/
|
|
@@ -36,6 +37,68 @@ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $Ope
|
|
|
36
37
|
const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
|
|
37
38
|
const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
|
|
38
39
|
const $tea = __importStar(require("@alicloud/tea-typescript"));
|
|
40
|
+
class GenerateBroadcastNewsRequest extends $tea.Model {
|
|
41
|
+
static names() {
|
|
42
|
+
return {
|
|
43
|
+
prompt: 'prompt',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
static types() {
|
|
47
|
+
return {
|
|
48
|
+
prompt: 'string',
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
constructor(map) {
|
|
52
|
+
super(map);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.GenerateBroadcastNewsRequest = GenerateBroadcastNewsRequest;
|
|
56
|
+
class GenerateBroadcastNewsResponseBody extends $tea.Model {
|
|
57
|
+
static names() {
|
|
58
|
+
return {
|
|
59
|
+
code: 'code',
|
|
60
|
+
data: 'data',
|
|
61
|
+
httpStatusCode: 'httpStatusCode',
|
|
62
|
+
message: 'message',
|
|
63
|
+
requestId: 'requestId',
|
|
64
|
+
success: 'success',
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
static types() {
|
|
68
|
+
return {
|
|
69
|
+
code: 'string',
|
|
70
|
+
data: GenerateBroadcastNewsResponseBodyData,
|
|
71
|
+
httpStatusCode: 'number',
|
|
72
|
+
message: 'string',
|
|
73
|
+
requestId: 'string',
|
|
74
|
+
success: 'boolean',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
constructor(map) {
|
|
78
|
+
super(map);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.GenerateBroadcastNewsResponseBody = GenerateBroadcastNewsResponseBody;
|
|
82
|
+
class GenerateBroadcastNewsResponse extends $tea.Model {
|
|
83
|
+
static names() {
|
|
84
|
+
return {
|
|
85
|
+
headers: 'headers',
|
|
86
|
+
statusCode: 'statusCode',
|
|
87
|
+
body: 'body',
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
static types() {
|
|
91
|
+
return {
|
|
92
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
93
|
+
statusCode: 'number',
|
|
94
|
+
body: GenerateBroadcastNewsResponseBody,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
constructor(map) {
|
|
98
|
+
super(map);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.GenerateBroadcastNewsResponse = GenerateBroadcastNewsResponse;
|
|
39
102
|
class ListHotTopicSummariesRequest extends $tea.Model {
|
|
40
103
|
static names() {
|
|
41
104
|
return {
|
|
@@ -112,6 +175,260 @@ class ListHotTopicSummariesResponse extends $tea.Model {
|
|
|
112
175
|
}
|
|
113
176
|
}
|
|
114
177
|
exports.ListHotTopicSummariesResponse = ListHotTopicSummariesResponse;
|
|
178
|
+
class RunCommentGenerationRequest extends $tea.Model {
|
|
179
|
+
static names() {
|
|
180
|
+
return {
|
|
181
|
+
length: 'length',
|
|
182
|
+
numComments: 'numComments',
|
|
183
|
+
sourceMaterial: 'sourceMaterial',
|
|
184
|
+
style: 'style',
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
static types() {
|
|
188
|
+
return {
|
|
189
|
+
length: 'string',
|
|
190
|
+
numComments: 'string',
|
|
191
|
+
sourceMaterial: 'string',
|
|
192
|
+
style: 'string',
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
constructor(map) {
|
|
196
|
+
super(map);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
exports.RunCommentGenerationRequest = RunCommentGenerationRequest;
|
|
200
|
+
class RunCommentGenerationResponseBody extends $tea.Model {
|
|
201
|
+
static names() {
|
|
202
|
+
return {
|
|
203
|
+
end: 'end',
|
|
204
|
+
header: 'header',
|
|
205
|
+
payload: 'payload',
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
static types() {
|
|
209
|
+
return {
|
|
210
|
+
end: 'boolean',
|
|
211
|
+
header: RunCommentGenerationResponseBodyHeader,
|
|
212
|
+
payload: RunCommentGenerationResponseBodyPayload,
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
constructor(map) {
|
|
216
|
+
super(map);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
exports.RunCommentGenerationResponseBody = RunCommentGenerationResponseBody;
|
|
220
|
+
class RunCommentGenerationResponse extends $tea.Model {
|
|
221
|
+
static names() {
|
|
222
|
+
return {
|
|
223
|
+
headers: 'headers',
|
|
224
|
+
statusCode: 'statusCode',
|
|
225
|
+
body: 'body',
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
static types() {
|
|
229
|
+
return {
|
|
230
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
231
|
+
statusCode: 'number',
|
|
232
|
+
body: RunCommentGenerationResponseBody,
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
constructor(map) {
|
|
236
|
+
super(map);
|
|
237
|
+
}
|
|
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;
|
|
115
432
|
class RunMarketingInformationExtractRequest extends $tea.Model {
|
|
116
433
|
static names() {
|
|
117
434
|
return {
|
|
@@ -478,7 +795,9 @@ class RunVideoAnalysisRequest extends $tea.Model {
|
|
|
478
795
|
modelCustomPromptTemplateId: 'modelCustomPromptTemplateId',
|
|
479
796
|
modelId: 'modelId',
|
|
480
797
|
originalSessionId: 'originalSessionId',
|
|
798
|
+
snapshotInterval: 'snapshotInterval',
|
|
481
799
|
taskId: 'taskId',
|
|
800
|
+
videoExtraInfo: 'videoExtraInfo',
|
|
482
801
|
videoModelCustomPromptTemplate: 'videoModelCustomPromptTemplate',
|
|
483
802
|
videoModelId: 'videoModelId',
|
|
484
803
|
videoUrl: 'videoUrl',
|
|
@@ -491,7 +810,9 @@ class RunVideoAnalysisRequest extends $tea.Model {
|
|
|
491
810
|
modelCustomPromptTemplateId: 'string',
|
|
492
811
|
modelId: 'string',
|
|
493
812
|
originalSessionId: 'string',
|
|
813
|
+
snapshotInterval: 'number',
|
|
494
814
|
taskId: 'string',
|
|
815
|
+
videoExtraInfo: 'string',
|
|
495
816
|
videoModelCustomPromptTemplate: 'string',
|
|
496
817
|
videoModelId: 'string',
|
|
497
818
|
videoUrl: 'string',
|
|
@@ -510,7 +831,9 @@ class RunVideoAnalysisShrinkRequest extends $tea.Model {
|
|
|
510
831
|
modelCustomPromptTemplateId: 'modelCustomPromptTemplateId',
|
|
511
832
|
modelId: 'modelId',
|
|
512
833
|
originalSessionId: 'originalSessionId',
|
|
834
|
+
snapshotInterval: 'snapshotInterval',
|
|
513
835
|
taskId: 'taskId',
|
|
836
|
+
videoExtraInfo: 'videoExtraInfo',
|
|
514
837
|
videoModelCustomPromptTemplate: 'videoModelCustomPromptTemplate',
|
|
515
838
|
videoModelId: 'videoModelId',
|
|
516
839
|
videoUrl: 'videoUrl',
|
|
@@ -523,7 +846,9 @@ class RunVideoAnalysisShrinkRequest extends $tea.Model {
|
|
|
523
846
|
modelCustomPromptTemplateId: 'string',
|
|
524
847
|
modelId: 'string',
|
|
525
848
|
originalSessionId: 'string',
|
|
849
|
+
snapshotInterval: 'number',
|
|
526
850
|
taskId: 'string',
|
|
851
|
+
videoExtraInfo: 'string',
|
|
527
852
|
videoModelCustomPromptTemplate: 'string',
|
|
528
853
|
videoModelId: 'string',
|
|
529
854
|
videoUrl: 'string',
|
|
@@ -533,151 +858,623 @@ class RunVideoAnalysisShrinkRequest extends $tea.Model {
|
|
|
533
858
|
super(map);
|
|
534
859
|
}
|
|
535
860
|
}
|
|
536
|
-
exports.RunVideoAnalysisShrinkRequest = RunVideoAnalysisShrinkRequest;
|
|
537
|
-
class RunVideoAnalysisResponseBody extends $tea.Model {
|
|
861
|
+
exports.RunVideoAnalysisShrinkRequest = RunVideoAnalysisShrinkRequest;
|
|
862
|
+
class RunVideoAnalysisResponseBody extends $tea.Model {
|
|
863
|
+
static names() {
|
|
864
|
+
return {
|
|
865
|
+
header: 'header',
|
|
866
|
+
payload: 'payload',
|
|
867
|
+
requestId: 'requestId',
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
static types() {
|
|
871
|
+
return {
|
|
872
|
+
header: RunVideoAnalysisResponseBodyHeader,
|
|
873
|
+
payload: RunVideoAnalysisResponseBodyPayload,
|
|
874
|
+
requestId: 'string',
|
|
875
|
+
};
|
|
876
|
+
}
|
|
877
|
+
constructor(map) {
|
|
878
|
+
super(map);
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
exports.RunVideoAnalysisResponseBody = RunVideoAnalysisResponseBody;
|
|
882
|
+
class RunVideoAnalysisResponse extends $tea.Model {
|
|
883
|
+
static names() {
|
|
884
|
+
return {
|
|
885
|
+
headers: 'headers',
|
|
886
|
+
statusCode: 'statusCode',
|
|
887
|
+
body: 'body',
|
|
888
|
+
};
|
|
889
|
+
}
|
|
890
|
+
static types() {
|
|
891
|
+
return {
|
|
892
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
893
|
+
statusCode: 'number',
|
|
894
|
+
body: RunVideoAnalysisResponseBody,
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
constructor(map) {
|
|
898
|
+
super(map);
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
exports.RunVideoAnalysisResponse = RunVideoAnalysisResponse;
|
|
902
|
+
class GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages extends $tea.Model {
|
|
903
|
+
static names() {
|
|
904
|
+
return {
|
|
905
|
+
url: 'url',
|
|
906
|
+
};
|
|
907
|
+
}
|
|
908
|
+
static types() {
|
|
909
|
+
return {
|
|
910
|
+
url: 'string',
|
|
911
|
+
};
|
|
912
|
+
}
|
|
913
|
+
constructor(map) {
|
|
914
|
+
super(map);
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
exports.GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages = GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages;
|
|
918
|
+
class GenerateBroadcastNewsResponseBodyDataHotTopicSummaries extends $tea.Model {
|
|
919
|
+
static names() {
|
|
920
|
+
return {
|
|
921
|
+
category: 'category',
|
|
922
|
+
hotTopic: 'hotTopic',
|
|
923
|
+
hotTopicVersion: 'hotTopicVersion',
|
|
924
|
+
hotValue: 'hotValue',
|
|
925
|
+
id: 'id',
|
|
926
|
+
images: 'images',
|
|
927
|
+
textSummary: 'textSummary',
|
|
928
|
+
};
|
|
929
|
+
}
|
|
930
|
+
static types() {
|
|
931
|
+
return {
|
|
932
|
+
category: 'string',
|
|
933
|
+
hotTopic: 'string',
|
|
934
|
+
hotTopicVersion: 'string',
|
|
935
|
+
hotValue: 'number',
|
|
936
|
+
id: 'string',
|
|
937
|
+
images: { 'type': 'array', 'itemType': GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages },
|
|
938
|
+
textSummary: 'string',
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
constructor(map) {
|
|
942
|
+
super(map);
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
exports.GenerateBroadcastNewsResponseBodyDataHotTopicSummaries = GenerateBroadcastNewsResponseBodyDataHotTopicSummaries;
|
|
946
|
+
class GenerateBroadcastNewsResponseBodyDataUsage extends $tea.Model {
|
|
947
|
+
static names() {
|
|
948
|
+
return {
|
|
949
|
+
inputTokens: 'inputTokens',
|
|
950
|
+
outputTokens: 'outputTokens',
|
|
951
|
+
totalTokens: 'totalTokens',
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
static types() {
|
|
955
|
+
return {
|
|
956
|
+
inputTokens: 'number',
|
|
957
|
+
outputTokens: 'number',
|
|
958
|
+
totalTokens: 'number',
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
constructor(map) {
|
|
962
|
+
super(map);
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
exports.GenerateBroadcastNewsResponseBodyDataUsage = GenerateBroadcastNewsResponseBodyDataUsage;
|
|
966
|
+
class GenerateBroadcastNewsResponseBodyData extends $tea.Model {
|
|
967
|
+
static names() {
|
|
968
|
+
return {
|
|
969
|
+
hotTopicSummaries: 'hotTopicSummaries',
|
|
970
|
+
sessionId: 'sessionId',
|
|
971
|
+
taskId: 'taskId',
|
|
972
|
+
text: 'text',
|
|
973
|
+
usage: 'usage',
|
|
974
|
+
};
|
|
975
|
+
}
|
|
976
|
+
static types() {
|
|
977
|
+
return {
|
|
978
|
+
hotTopicSummaries: { 'type': 'array', 'itemType': GenerateBroadcastNewsResponseBodyDataHotTopicSummaries },
|
|
979
|
+
sessionId: 'string',
|
|
980
|
+
taskId: 'string',
|
|
981
|
+
text: 'string',
|
|
982
|
+
usage: GenerateBroadcastNewsResponseBodyDataUsage,
|
|
983
|
+
};
|
|
984
|
+
}
|
|
985
|
+
constructor(map) {
|
|
986
|
+
super(map);
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
exports.GenerateBroadcastNewsResponseBodyData = GenerateBroadcastNewsResponseBodyData;
|
|
990
|
+
class ListHotTopicSummariesResponseBodyDataNewsComments extends $tea.Model {
|
|
991
|
+
static names() {
|
|
992
|
+
return {
|
|
993
|
+
text: 'text',
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
static types() {
|
|
997
|
+
return {
|
|
998
|
+
text: 'string',
|
|
999
|
+
};
|
|
1000
|
+
}
|
|
1001
|
+
constructor(map) {
|
|
1002
|
+
super(map);
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
exports.ListHotTopicSummariesResponseBodyDataNewsComments = ListHotTopicSummariesResponseBodyDataNewsComments;
|
|
1006
|
+
class ListHotTopicSummariesResponseBodyDataNews extends $tea.Model {
|
|
1007
|
+
static names() {
|
|
1008
|
+
return {
|
|
1009
|
+
comments: 'comments',
|
|
1010
|
+
content: 'content',
|
|
1011
|
+
pubTime: 'pubTime',
|
|
1012
|
+
title: 'title',
|
|
1013
|
+
url: 'url',
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
static types() {
|
|
1017
|
+
return {
|
|
1018
|
+
comments: { 'type': 'array', 'itemType': ListHotTopicSummariesResponseBodyDataNewsComments },
|
|
1019
|
+
content: 'string',
|
|
1020
|
+
pubTime: 'string',
|
|
1021
|
+
title: 'string',
|
|
1022
|
+
url: 'string',
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
1025
|
+
constructor(map) {
|
|
1026
|
+
super(map);
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
exports.ListHotTopicSummariesResponseBodyDataNews = ListHotTopicSummariesResponseBodyDataNews;
|
|
1030
|
+
class ListHotTopicSummariesResponseBodyDataSummarySummaries extends $tea.Model {
|
|
1031
|
+
static names() {
|
|
1032
|
+
return {
|
|
1033
|
+
summary: 'summary',
|
|
1034
|
+
title: 'title',
|
|
1035
|
+
};
|
|
1036
|
+
}
|
|
1037
|
+
static types() {
|
|
1038
|
+
return {
|
|
1039
|
+
summary: 'string',
|
|
1040
|
+
title: 'string',
|
|
1041
|
+
};
|
|
1042
|
+
}
|
|
1043
|
+
constructor(map) {
|
|
1044
|
+
super(map);
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
exports.ListHotTopicSummariesResponseBodyDataSummarySummaries = ListHotTopicSummariesResponseBodyDataSummarySummaries;
|
|
1048
|
+
class ListHotTopicSummariesResponseBodyDataSummary extends $tea.Model {
|
|
1049
|
+
static names() {
|
|
1050
|
+
return {
|
|
1051
|
+
summaries: 'summaries',
|
|
1052
|
+
};
|
|
1053
|
+
}
|
|
1054
|
+
static types() {
|
|
1055
|
+
return {
|
|
1056
|
+
summaries: { 'type': 'array', 'itemType': ListHotTopicSummariesResponseBodyDataSummarySummaries },
|
|
1057
|
+
};
|
|
1058
|
+
}
|
|
1059
|
+
constructor(map) {
|
|
1060
|
+
super(map);
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
exports.ListHotTopicSummariesResponseBodyDataSummary = ListHotTopicSummariesResponseBodyDataSummary;
|
|
1064
|
+
class ListHotTopicSummariesResponseBodyData extends $tea.Model {
|
|
1065
|
+
static names() {
|
|
1066
|
+
return {
|
|
1067
|
+
category: 'category',
|
|
1068
|
+
hotTopic: 'hotTopic',
|
|
1069
|
+
hotTopicVersion: 'hotTopicVersion',
|
|
1070
|
+
hotValue: 'hotValue',
|
|
1071
|
+
id: 'id',
|
|
1072
|
+
news: 'news',
|
|
1073
|
+
summary: 'summary',
|
|
1074
|
+
textSummary: 'textSummary',
|
|
1075
|
+
};
|
|
1076
|
+
}
|
|
1077
|
+
static types() {
|
|
1078
|
+
return {
|
|
1079
|
+
category: 'string',
|
|
1080
|
+
hotTopic: 'string',
|
|
1081
|
+
hotTopicVersion: 'string',
|
|
1082
|
+
hotValue: 'number',
|
|
1083
|
+
id: 'string',
|
|
1084
|
+
news: { 'type': 'array', 'itemType': ListHotTopicSummariesResponseBodyDataNews },
|
|
1085
|
+
summary: ListHotTopicSummariesResponseBodyDataSummary,
|
|
1086
|
+
textSummary: 'string',
|
|
1087
|
+
};
|
|
1088
|
+
}
|
|
1089
|
+
constructor(map) {
|
|
1090
|
+
super(map);
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
exports.ListHotTopicSummariesResponseBodyData = ListHotTopicSummariesResponseBodyData;
|
|
1094
|
+
class RunCommentGenerationResponseBodyHeader extends $tea.Model {
|
|
1095
|
+
static names() {
|
|
1096
|
+
return {
|
|
1097
|
+
event: 'event',
|
|
1098
|
+
eventInfo: 'eventInfo',
|
|
1099
|
+
requestId: 'requestId',
|
|
1100
|
+
sessionId: 'sessionId',
|
|
1101
|
+
taskId: 'taskId',
|
|
1102
|
+
traceId: 'traceId',
|
|
1103
|
+
};
|
|
1104
|
+
}
|
|
1105
|
+
static types() {
|
|
1106
|
+
return {
|
|
1107
|
+
event: 'string',
|
|
1108
|
+
eventInfo: 'string',
|
|
1109
|
+
requestId: 'string',
|
|
1110
|
+
sessionId: 'string',
|
|
1111
|
+
taskId: 'string',
|
|
1112
|
+
traceId: 'string',
|
|
1113
|
+
};
|
|
1114
|
+
}
|
|
1115
|
+
constructor(map) {
|
|
1116
|
+
super(map);
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
exports.RunCommentGenerationResponseBodyHeader = RunCommentGenerationResponseBodyHeader;
|
|
1120
|
+
class RunCommentGenerationResponseBodyPayloadOutput extends $tea.Model {
|
|
1121
|
+
static names() {
|
|
1122
|
+
return {
|
|
1123
|
+
text: 'text',
|
|
1124
|
+
};
|
|
1125
|
+
}
|
|
1126
|
+
static types() {
|
|
1127
|
+
return {
|
|
1128
|
+
text: 'string',
|
|
1129
|
+
};
|
|
1130
|
+
}
|
|
1131
|
+
constructor(map) {
|
|
1132
|
+
super(map);
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
exports.RunCommentGenerationResponseBodyPayloadOutput = RunCommentGenerationResponseBodyPayloadOutput;
|
|
1136
|
+
class RunCommentGenerationResponseBodyPayloadUsage extends $tea.Model {
|
|
1137
|
+
static names() {
|
|
1138
|
+
return {
|
|
1139
|
+
inputTokens: 'inputTokens',
|
|
1140
|
+
outputTokens: 'outputTokens',
|
|
1141
|
+
totalTokens: 'totalTokens',
|
|
1142
|
+
};
|
|
1143
|
+
}
|
|
1144
|
+
static types() {
|
|
1145
|
+
return {
|
|
1146
|
+
inputTokens: 'number',
|
|
1147
|
+
outputTokens: 'number',
|
|
1148
|
+
totalTokens: 'number',
|
|
1149
|
+
};
|
|
1150
|
+
}
|
|
1151
|
+
constructor(map) {
|
|
1152
|
+
super(map);
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
exports.RunCommentGenerationResponseBodyPayloadUsage = RunCommentGenerationResponseBodyPayloadUsage;
|
|
1156
|
+
class RunCommentGenerationResponseBodyPayload extends $tea.Model {
|
|
1157
|
+
static names() {
|
|
1158
|
+
return {
|
|
1159
|
+
output: 'output',
|
|
1160
|
+
usage: 'usage',
|
|
1161
|
+
};
|
|
1162
|
+
}
|
|
1163
|
+
static types() {
|
|
1164
|
+
return {
|
|
1165
|
+
output: RunCommentGenerationResponseBodyPayloadOutput,
|
|
1166
|
+
usage: RunCommentGenerationResponseBodyPayloadUsage,
|
|
1167
|
+
};
|
|
1168
|
+
}
|
|
1169
|
+
constructor(map) {
|
|
1170
|
+
super(map);
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
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 {
|
|
538
1339
|
static names() {
|
|
539
1340
|
return {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
1341
|
+
inputTokens: 'inputTokens',
|
|
1342
|
+
outputTokens: 'outputTokens',
|
|
1343
|
+
totalTokens: 'totalTokens',
|
|
543
1344
|
};
|
|
544
1345
|
}
|
|
545
1346
|
static types() {
|
|
546
1347
|
return {
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
1348
|
+
inputTokens: 'number',
|
|
1349
|
+
outputTokens: 'number',
|
|
1350
|
+
totalTokens: 'number',
|
|
550
1351
|
};
|
|
551
1352
|
}
|
|
552
1353
|
constructor(map) {
|
|
553
1354
|
super(map);
|
|
554
1355
|
}
|
|
555
1356
|
}
|
|
556
|
-
exports.
|
|
557
|
-
class
|
|
1357
|
+
exports.RunHotTopicChatResponseBodyPayloadUsage = RunHotTopicChatResponseBodyPayloadUsage;
|
|
1358
|
+
class RunHotTopicChatResponseBodyPayload extends $tea.Model {
|
|
558
1359
|
static names() {
|
|
559
1360
|
return {
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
body: 'body',
|
|
1361
|
+
output: 'output',
|
|
1362
|
+
usage: 'usage',
|
|
563
1363
|
};
|
|
564
1364
|
}
|
|
565
1365
|
static types() {
|
|
566
1366
|
return {
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
body: RunVideoAnalysisResponseBody,
|
|
1367
|
+
output: RunHotTopicChatResponseBodyPayloadOutput,
|
|
1368
|
+
usage: RunHotTopicChatResponseBodyPayloadUsage,
|
|
570
1369
|
};
|
|
571
1370
|
}
|
|
572
1371
|
constructor(map) {
|
|
573
1372
|
super(map);
|
|
574
1373
|
}
|
|
575
1374
|
}
|
|
576
|
-
exports.
|
|
577
|
-
class
|
|
1375
|
+
exports.RunHotTopicChatResponseBodyPayload = RunHotTopicChatResponseBodyPayload;
|
|
1376
|
+
class RunHotTopicSummaryRequestStepForCustomSummaryStyleConfig extends $tea.Model {
|
|
578
1377
|
static names() {
|
|
579
1378
|
return {
|
|
580
|
-
|
|
1379
|
+
summaryImageCount: 'summaryImageCount',
|
|
1380
|
+
summaryModel: 'summaryModel',
|
|
1381
|
+
summaryPrompt: 'summaryPrompt',
|
|
581
1382
|
};
|
|
582
1383
|
}
|
|
583
1384
|
static types() {
|
|
584
1385
|
return {
|
|
585
|
-
|
|
1386
|
+
summaryImageCount: 'number',
|
|
1387
|
+
summaryModel: 'string',
|
|
1388
|
+
summaryPrompt: 'string',
|
|
586
1389
|
};
|
|
587
1390
|
}
|
|
588
1391
|
constructor(map) {
|
|
589
1392
|
super(map);
|
|
590
1393
|
}
|
|
591
1394
|
}
|
|
592
|
-
exports.
|
|
593
|
-
class
|
|
1395
|
+
exports.RunHotTopicSummaryRequestStepForCustomSummaryStyleConfig = RunHotTopicSummaryRequestStepForCustomSummaryStyleConfig;
|
|
1396
|
+
class RunHotTopicSummaryResponseBodyHeader extends $tea.Model {
|
|
594
1397
|
static names() {
|
|
595
1398
|
return {
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
1399
|
+
errorCode: 'errorCode',
|
|
1400
|
+
errorMessage: 'errorMessage',
|
|
1401
|
+
event: 'event',
|
|
1402
|
+
sessionId: 'sessionId',
|
|
1403
|
+
taskId: 'taskId',
|
|
1404
|
+
traceId: 'traceId',
|
|
601
1405
|
};
|
|
602
1406
|
}
|
|
603
1407
|
static types() {
|
|
604
1408
|
return {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
1409
|
+
errorCode: 'string',
|
|
1410
|
+
errorMessage: 'string',
|
|
1411
|
+
event: 'string',
|
|
1412
|
+
sessionId: 'string',
|
|
1413
|
+
taskId: 'string',
|
|
1414
|
+
traceId: 'string',
|
|
610
1415
|
};
|
|
611
1416
|
}
|
|
612
1417
|
constructor(map) {
|
|
613
1418
|
super(map);
|
|
614
1419
|
}
|
|
615
1420
|
}
|
|
616
|
-
exports.
|
|
617
|
-
class
|
|
1421
|
+
exports.RunHotTopicSummaryResponseBodyHeader = RunHotTopicSummaryResponseBodyHeader;
|
|
1422
|
+
class RunHotTopicSummaryResponseBodyPayloadOutput extends $tea.Model {
|
|
618
1423
|
static names() {
|
|
619
1424
|
return {
|
|
620
|
-
|
|
621
|
-
|
|
1425
|
+
text: 'text',
|
|
1426
|
+
topicId: 'topicId',
|
|
622
1427
|
};
|
|
623
1428
|
}
|
|
624
1429
|
static types() {
|
|
625
1430
|
return {
|
|
626
|
-
|
|
627
|
-
|
|
1431
|
+
text: 'string',
|
|
1432
|
+
topicId: 'string',
|
|
628
1433
|
};
|
|
629
1434
|
}
|
|
630
1435
|
constructor(map) {
|
|
631
1436
|
super(map);
|
|
632
1437
|
}
|
|
633
1438
|
}
|
|
634
|
-
exports.
|
|
635
|
-
class
|
|
1439
|
+
exports.RunHotTopicSummaryResponseBodyPayloadOutput = RunHotTopicSummaryResponseBodyPayloadOutput;
|
|
1440
|
+
class RunHotTopicSummaryResponseBodyPayloadUsage extends $tea.Model {
|
|
636
1441
|
static names() {
|
|
637
1442
|
return {
|
|
638
|
-
|
|
1443
|
+
inputTokens: 'inputTokens',
|
|
1444
|
+
outputTokens: 'outputTokens',
|
|
1445
|
+
totalTokens: 'totalTokens',
|
|
639
1446
|
};
|
|
640
1447
|
}
|
|
641
1448
|
static types() {
|
|
642
1449
|
return {
|
|
643
|
-
|
|
1450
|
+
inputTokens: 'number',
|
|
1451
|
+
outputTokens: 'number',
|
|
1452
|
+
totalTokens: 'number',
|
|
644
1453
|
};
|
|
645
1454
|
}
|
|
646
1455
|
constructor(map) {
|
|
647
1456
|
super(map);
|
|
648
1457
|
}
|
|
649
1458
|
}
|
|
650
|
-
exports.
|
|
651
|
-
class
|
|
1459
|
+
exports.RunHotTopicSummaryResponseBodyPayloadUsage = RunHotTopicSummaryResponseBodyPayloadUsage;
|
|
1460
|
+
class RunHotTopicSummaryResponseBodyPayload extends $tea.Model {
|
|
652
1461
|
static names() {
|
|
653
1462
|
return {
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
hotTopicVersion: 'hotTopicVersion',
|
|
657
|
-
hotValue: 'hotValue',
|
|
658
|
-
id: 'id',
|
|
659
|
-
news: 'news',
|
|
660
|
-
summary: 'summary',
|
|
661
|
-
textSummary: 'textSummary',
|
|
1463
|
+
output: 'output',
|
|
1464
|
+
usage: 'usage',
|
|
662
1465
|
};
|
|
663
1466
|
}
|
|
664
1467
|
static types() {
|
|
665
1468
|
return {
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
hotTopicVersion: 'string',
|
|
669
|
-
hotValue: 'number',
|
|
670
|
-
id: 'string',
|
|
671
|
-
news: { 'type': 'array', 'itemType': ListHotTopicSummariesResponseBodyDataNews },
|
|
672
|
-
summary: ListHotTopicSummariesResponseBodyDataSummary,
|
|
673
|
-
textSummary: 'string',
|
|
1469
|
+
output: RunHotTopicSummaryResponseBodyPayloadOutput,
|
|
1470
|
+
usage: RunHotTopicSummaryResponseBodyPayloadUsage,
|
|
674
1471
|
};
|
|
675
1472
|
}
|
|
676
1473
|
constructor(map) {
|
|
677
1474
|
super(map);
|
|
678
1475
|
}
|
|
679
1476
|
}
|
|
680
|
-
exports.
|
|
1477
|
+
exports.RunHotTopicSummaryResponseBodyPayload = RunHotTopicSummaryResponseBodyPayload;
|
|
681
1478
|
class RunMarketingInformationExtractResponseBodyHeader extends $tea.Model {
|
|
682
1479
|
static names() {
|
|
683
1480
|
return {
|
|
@@ -1474,6 +2271,48 @@ class Client extends openapi_client_1.default {
|
|
|
1474
2271
|
}
|
|
1475
2272
|
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
1476
2273
|
}
|
|
2274
|
+
/**
|
|
2275
|
+
* 新闻播报-抽取分类获取播报热点
|
|
2276
|
+
*
|
|
2277
|
+
* @param request - GenerateBroadcastNewsRequest
|
|
2278
|
+
* @param headers - map
|
|
2279
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2280
|
+
* @returns GenerateBroadcastNewsResponse
|
|
2281
|
+
*/
|
|
2282
|
+
async generateBroadcastNewsWithOptions(workspaceId, request, headers, runtime) {
|
|
2283
|
+
tea_util_1.default.validateModel(request);
|
|
2284
|
+
let body = {};
|
|
2285
|
+
if (!tea_util_1.default.isUnset(request.prompt)) {
|
|
2286
|
+
body["prompt"] = request.prompt;
|
|
2287
|
+
}
|
|
2288
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2289
|
+
headers: headers,
|
|
2290
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
2291
|
+
});
|
|
2292
|
+
let params = new $OpenApi.Params({
|
|
2293
|
+
action: "GenerateBroadcastNews",
|
|
2294
|
+
version: "2024-08-01",
|
|
2295
|
+
protocol: "HTTPS",
|
|
2296
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/quanmiao/lightapp/GenerateBroadcastNews`,
|
|
2297
|
+
method: "POST",
|
|
2298
|
+
authType: "AK",
|
|
2299
|
+
style: "ROA",
|
|
2300
|
+
reqBodyType: "formData",
|
|
2301
|
+
bodyType: "json",
|
|
2302
|
+
});
|
|
2303
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GenerateBroadcastNewsResponse({}));
|
|
2304
|
+
}
|
|
2305
|
+
/**
|
|
2306
|
+
* 新闻播报-抽取分类获取播报热点
|
|
2307
|
+
*
|
|
2308
|
+
* @param request - GenerateBroadcastNewsRequest
|
|
2309
|
+
* @returns GenerateBroadcastNewsResponse
|
|
2310
|
+
*/
|
|
2311
|
+
async generateBroadcastNews(workspaceId, request) {
|
|
2312
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
2313
|
+
let headers = {};
|
|
2314
|
+
return await this.generateBroadcastNewsWithOptions(workspaceId, request, headers, runtime);
|
|
2315
|
+
}
|
|
1477
2316
|
/**
|
|
1478
2317
|
* 轻应用-新闻播报-获取热点话题摘要列表
|
|
1479
2318
|
*
|
|
@@ -1528,6 +2367,196 @@ class Client extends openapi_client_1.default {
|
|
|
1528
2367
|
let headers = {};
|
|
1529
2368
|
return await this.listHotTopicSummariesWithOptions(workspaceId, request, headers, runtime);
|
|
1530
2369
|
}
|
|
2370
|
+
/**
|
|
2371
|
+
* 评论生成服务
|
|
2372
|
+
*
|
|
2373
|
+
* @param request - RunCommentGenerationRequest
|
|
2374
|
+
* @param headers - map
|
|
2375
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2376
|
+
* @returns RunCommentGenerationResponse
|
|
2377
|
+
*/
|
|
2378
|
+
async runCommentGenerationWithOptions(workspaceId, request, headers, runtime) {
|
|
2379
|
+
tea_util_1.default.validateModel(request);
|
|
2380
|
+
let body = {};
|
|
2381
|
+
if (!tea_util_1.default.isUnset(request.length)) {
|
|
2382
|
+
body["length"] = request.length;
|
|
2383
|
+
}
|
|
2384
|
+
if (!tea_util_1.default.isUnset(request.numComments)) {
|
|
2385
|
+
body["numComments"] = request.numComments;
|
|
2386
|
+
}
|
|
2387
|
+
if (!tea_util_1.default.isUnset(request.sourceMaterial)) {
|
|
2388
|
+
body["sourceMaterial"] = request.sourceMaterial;
|
|
2389
|
+
}
|
|
2390
|
+
if (!tea_util_1.default.isUnset(request.style)) {
|
|
2391
|
+
body["style"] = request.style;
|
|
2392
|
+
}
|
|
2393
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2394
|
+
headers: headers,
|
|
2395
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
2396
|
+
});
|
|
2397
|
+
let params = new $OpenApi.Params({
|
|
2398
|
+
action: "RunCommentGeneration",
|
|
2399
|
+
version: "2024-08-01",
|
|
2400
|
+
protocol: "HTTPS",
|
|
2401
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/quanmiao/lightapp/runCommentGeneration`,
|
|
2402
|
+
method: "POST",
|
|
2403
|
+
authType: "AK",
|
|
2404
|
+
style: "ROA",
|
|
2405
|
+
reqBodyType: "formData",
|
|
2406
|
+
bodyType: "json",
|
|
2407
|
+
});
|
|
2408
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RunCommentGenerationResponse({}));
|
|
2409
|
+
}
|
|
2410
|
+
/**
|
|
2411
|
+
* 评论生成服务
|
|
2412
|
+
*
|
|
2413
|
+
* @param request - RunCommentGenerationRequest
|
|
2414
|
+
* @returns RunCommentGenerationResponse
|
|
2415
|
+
*/
|
|
2416
|
+
async runCommentGeneration(workspaceId, request) {
|
|
2417
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
2418
|
+
let headers = {};
|
|
2419
|
+
return await this.runCommentGenerationWithOptions(workspaceId, request, headers, runtime);
|
|
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
|
+
}
|
|
1531
2560
|
/**
|
|
1532
2561
|
* 营销信息抽取服务
|
|
1533
2562
|
*
|
|
@@ -1833,9 +2862,15 @@ class Client extends openapi_client_1.default {
|
|
|
1833
2862
|
if (!tea_util_1.default.isUnset(request.originalSessionId)) {
|
|
1834
2863
|
body["originalSessionId"] = request.originalSessionId;
|
|
1835
2864
|
}
|
|
2865
|
+
if (!tea_util_1.default.isUnset(request.snapshotInterval)) {
|
|
2866
|
+
body["snapshotInterval"] = request.snapshotInterval;
|
|
2867
|
+
}
|
|
1836
2868
|
if (!tea_util_1.default.isUnset(request.taskId)) {
|
|
1837
2869
|
body["taskId"] = request.taskId;
|
|
1838
2870
|
}
|
|
2871
|
+
if (!tea_util_1.default.isUnset(request.videoExtraInfo)) {
|
|
2872
|
+
body["videoExtraInfo"] = request.videoExtraInfo;
|
|
2873
|
+
}
|
|
1839
2874
|
if (!tea_util_1.default.isUnset(request.videoModelCustomPromptTemplate)) {
|
|
1840
2875
|
body["videoModelCustomPromptTemplate"] = request.videoModelCustomPromptTemplate;
|
|
1841
2876
|
}
|