@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/src/client.ts CHANGED
@@ -7,6 +7,108 @@ import OpenApiUtil from '@alicloud/openapi-util';
7
7
  import EndpointUtil from '@alicloud/endpoint-util';
8
8
  import * as $tea from '@alicloud/tea-typescript';
9
9
 
10
+ export class GenerateBroadcastNewsRequest extends $tea.Model {
11
+ /**
12
+ * @remarks
13
+ * This parameter is required.
14
+ */
15
+ prompt?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ prompt: 'prompt',
19
+ };
20
+ }
21
+
22
+ static types(): { [key: string]: any } {
23
+ return {
24
+ prompt: 'string',
25
+ };
26
+ }
27
+
28
+ constructor(map?: { [key: string]: any }) {
29
+ super(map);
30
+ }
31
+ }
32
+
33
+ export class GenerateBroadcastNewsResponseBody extends $tea.Model {
34
+ /**
35
+ * @example
36
+ * xx
37
+ */
38
+ code?: string;
39
+ data?: GenerateBroadcastNewsResponseBodyData;
40
+ /**
41
+ * @example
42
+ * 200
43
+ */
44
+ httpStatusCode?: number;
45
+ /**
46
+ * @example
47
+ * success
48
+ */
49
+ message?: string;
50
+ /**
51
+ * @example
52
+ * 117F5ABE-CF02-5502-9A3F-E56BC9081A64
53
+ */
54
+ requestId?: string;
55
+ /**
56
+ * @example
57
+ * True
58
+ */
59
+ success?: boolean;
60
+ static names(): { [key: string]: string } {
61
+ return {
62
+ code: 'code',
63
+ data: 'data',
64
+ httpStatusCode: 'httpStatusCode',
65
+ message: 'message',
66
+ requestId: 'requestId',
67
+ success: 'success',
68
+ };
69
+ }
70
+
71
+ static types(): { [key: string]: any } {
72
+ return {
73
+ code: 'string',
74
+ data: GenerateBroadcastNewsResponseBodyData,
75
+ httpStatusCode: 'number',
76
+ message: 'string',
77
+ requestId: 'string',
78
+ success: 'boolean',
79
+ };
80
+ }
81
+
82
+ constructor(map?: { [key: string]: any }) {
83
+ super(map);
84
+ }
85
+ }
86
+
87
+ export class GenerateBroadcastNewsResponse extends $tea.Model {
88
+ headers?: { [key: string]: string };
89
+ statusCode?: number;
90
+ body?: GenerateBroadcastNewsResponseBody;
91
+ static names(): { [key: string]: string } {
92
+ return {
93
+ headers: 'headers',
94
+ statusCode: 'statusCode',
95
+ body: 'body',
96
+ };
97
+ }
98
+
99
+ static types(): { [key: string]: any } {
100
+ return {
101
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
102
+ statusCode: 'number',
103
+ body: GenerateBroadcastNewsResponseBody,
104
+ };
105
+ }
106
+
107
+ constructor(map?: { [key: string]: any }) {
108
+ super(map);
109
+ }
110
+ }
111
+
10
112
  export class ListHotTopicSummariesRequest extends $tea.Model {
11
113
  /**
12
114
  * @example
@@ -158,64 +260,34 @@ export class ListHotTopicSummariesResponse extends $tea.Model {
158
260
  }
159
261
  }
160
262
 
161
- export class RunMarketingInformationExtractRequest extends $tea.Model {
162
- customPrompt?: string;
163
- extractType?: string;
263
+ export class RunCommentGenerationRequest extends $tea.Model {
164
264
  /**
165
265
  * @example
166
- * qwen-max
167
- * qwen-plus
266
+ * 20
168
267
  */
169
- modelId?: string;
170
- sourceMaterials?: string[];
171
- static names(): { [key: string]: string } {
172
- return {
173
- customPrompt: 'customPrompt',
174
- extractType: 'extractType',
175
- modelId: 'modelId',
176
- sourceMaterials: 'sourceMaterials',
177
- };
178
- }
179
-
180
- static types(): { [key: string]: any } {
181
- return {
182
- customPrompt: 'string',
183
- extractType: 'string',
184
- modelId: 'string',
185
- sourceMaterials: { 'type': 'array', 'itemType': 'string' },
186
- };
187
- }
188
-
189
- constructor(map?: { [key: string]: any }) {
190
- super(map);
191
- }
192
- }
193
-
194
- export class RunMarketingInformationExtractShrinkRequest extends $tea.Model {
195
- customPrompt?: string;
196
- extractType?: string;
268
+ length?: string;
197
269
  /**
198
270
  * @example
199
- * qwen-max
200
- * qwen-plus
271
+ * 10
201
272
  */
202
- modelId?: string;
203
- sourceMaterialsShrink?: string;
273
+ numComments?: string;
274
+ sourceMaterial?: string;
275
+ style?: string;
204
276
  static names(): { [key: string]: string } {
205
277
  return {
206
- customPrompt: 'customPrompt',
207
- extractType: 'extractType',
208
- modelId: 'modelId',
209
- sourceMaterialsShrink: 'sourceMaterials',
278
+ length: 'length',
279
+ numComments: 'numComments',
280
+ sourceMaterial: 'sourceMaterial',
281
+ style: 'style',
210
282
  };
211
283
  }
212
284
 
213
285
  static types(): { [key: string]: any } {
214
286
  return {
215
- customPrompt: 'string',
216
- extractType: 'string',
217
- modelId: 'string',
218
- sourceMaterialsShrink: 'string',
287
+ length: 'string',
288
+ numComments: 'string',
289
+ sourceMaterial: 'string',
290
+ style: 'string',
219
291
  };
220
292
  }
221
293
 
@@ -224,14 +296,10 @@ export class RunMarketingInformationExtractShrinkRequest extends $tea.Model {
224
296
  }
225
297
  }
226
298
 
227
- export class RunMarketingInformationExtractResponseBody extends $tea.Model {
228
- /**
229
- * @example
230
- * {\\"TimeZone\\": \\"Asia/Shanghai\\", \\"DateTime\\": \\"2024-03-07T17:00:09+08:00\\"}
231
- */
299
+ export class RunCommentGenerationResponseBody extends $tea.Model {
232
300
  end?: boolean;
233
- header?: RunMarketingInformationExtractResponseBodyHeader;
234
- payload?: RunMarketingInformationExtractResponseBodyPayload;
301
+ header?: RunCommentGenerationResponseBodyHeader;
302
+ payload?: RunCommentGenerationResponseBodyPayload;
235
303
  static names(): { [key: string]: string } {
236
304
  return {
237
305
  end: 'end',
@@ -243,8 +311,8 @@ export class RunMarketingInformationExtractResponseBody extends $tea.Model {
243
311
  static types(): { [key: string]: any } {
244
312
  return {
245
313
  end: 'boolean',
246
- header: RunMarketingInformationExtractResponseBodyHeader,
247
- payload: RunMarketingInformationExtractResponseBodyPayload,
314
+ header: RunCommentGenerationResponseBodyHeader,
315
+ payload: RunCommentGenerationResponseBodyPayload,
248
316
  };
249
317
  }
250
318
 
@@ -253,10 +321,10 @@ export class RunMarketingInformationExtractResponseBody extends $tea.Model {
253
321
  }
254
322
  }
255
323
 
256
- export class RunMarketingInformationExtractResponse extends $tea.Model {
324
+ export class RunCommentGenerationResponse extends $tea.Model {
257
325
  headers?: { [key: string]: string };
258
326
  statusCode?: number;
259
- body?: RunMarketingInformationExtractResponseBody;
327
+ body?: RunCommentGenerationResponseBody;
260
328
  static names(): { [key: string]: string } {
261
329
  return {
262
330
  headers: 'headers',
@@ -269,7 +337,7 @@ export class RunMarketingInformationExtractResponse extends $tea.Model {
269
337
  return {
270
338
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
271
339
  statusCode: 'number',
272
- body: RunMarketingInformationExtractResponseBody,
340
+ body: RunCommentGenerationResponseBody,
273
341
  };
274
342
  }
275
343
 
@@ -278,31 +346,71 @@ export class RunMarketingInformationExtractResponse extends $tea.Model {
278
346
  }
279
347
  }
280
348
 
281
- export class RunMarketingInformationWritingRequest extends $tea.Model {
282
- customPrompt?: string;
349
+ export class RunHotTopicChatRequest extends $tea.Model {
350
+ category?: string;
351
+ generateOptions?: string[];
352
+ /**
353
+ * @example
354
+ * 2024-09-13_12
355
+ */
356
+ hotTopicVersion?: string;
357
+ hotTopics?: string[];
358
+ /**
359
+ * @example
360
+ * 1
361
+ */
362
+ imageCount?: number;
363
+ /**
364
+ * @example
365
+ * xx
366
+ */
367
+ modelCustomPromptTemplate?: string;
283
368
  /**
284
369
  * @example
285
370
  * qwen-max
286
- * qwen-plus
287
371
  */
288
372
  modelId?: string;
289
- sourceMaterial?: string;
290
- writingType?: string;
373
+ /**
374
+ * @example
375
+ * a3d1c2ac-f086-4a21-9069-f5631542f5ax
376
+ */
377
+ originalSessionId?: string;
378
+ prompt?: string;
379
+ stepForBroadcastContentConfig?: RunHotTopicChatRequestStepForBroadcastContentConfig;
380
+ /**
381
+ * @example
382
+ * a3d1c2ac-f086-4a21-9069-f5631542f5a2
383
+ */
384
+ taskId?: string;
291
385
  static names(): { [key: string]: string } {
292
386
  return {
293
- customPrompt: 'customPrompt',
387
+ category: 'category',
388
+ generateOptions: 'generateOptions',
389
+ hotTopicVersion: 'hotTopicVersion',
390
+ hotTopics: 'hotTopics',
391
+ imageCount: 'imageCount',
392
+ modelCustomPromptTemplate: 'modelCustomPromptTemplate',
294
393
  modelId: 'modelId',
295
- sourceMaterial: 'sourceMaterial',
296
- writingType: 'writingType',
394
+ originalSessionId: 'originalSessionId',
395
+ prompt: 'prompt',
396
+ stepForBroadcastContentConfig: 'stepForBroadcastContentConfig',
397
+ taskId: 'taskId',
297
398
  };
298
399
  }
299
400
 
300
401
  static types(): { [key: string]: any } {
301
402
  return {
302
- customPrompt: 'string',
403
+ category: 'string',
404
+ generateOptions: { 'type': 'array', 'itemType': 'string' },
405
+ hotTopicVersion: 'string',
406
+ hotTopics: { 'type': 'array', 'itemType': 'string' },
407
+ imageCount: 'number',
408
+ modelCustomPromptTemplate: 'string',
303
409
  modelId: 'string',
304
- sourceMaterial: 'string',
305
- writingType: 'string',
410
+ originalSessionId: 'string',
411
+ prompt: 'string',
412
+ stepForBroadcastContentConfig: RunHotTopicChatRequestStepForBroadcastContentConfig,
413
+ taskId: 'string',
306
414
  };
307
415
  }
308
416
 
@@ -311,27 +419,71 @@ export class RunMarketingInformationWritingRequest extends $tea.Model {
311
419
  }
312
420
  }
313
421
 
314
- export class RunMarketingInformationWritingResponseBody extends $tea.Model {
422
+ export class RunHotTopicChatShrinkRequest extends $tea.Model {
423
+ category?: string;
424
+ generateOptionsShrink?: string;
315
425
  /**
316
426
  * @example
317
- * 2024-06-21T10:29:52+08:00
427
+ * 2024-09-13_12
318
428
  */
319
- end?: boolean;
320
- header?: RunMarketingInformationWritingResponseBodyHeader;
321
- payload?: RunMarketingInformationWritingResponseBodyPayload;
429
+ hotTopicVersion?: string;
430
+ hotTopicsShrink?: string;
431
+ /**
432
+ * @example
433
+ * 1
434
+ */
435
+ imageCount?: number;
436
+ /**
437
+ * @example
438
+ * xx
439
+ */
440
+ modelCustomPromptTemplate?: string;
441
+ /**
442
+ * @example
443
+ * qwen-max
444
+ */
445
+ modelId?: string;
446
+ /**
447
+ * @example
448
+ * a3d1c2ac-f086-4a21-9069-f5631542f5ax
449
+ */
450
+ originalSessionId?: string;
451
+ prompt?: string;
452
+ stepForBroadcastContentConfigShrink?: string;
453
+ /**
454
+ * @example
455
+ * a3d1c2ac-f086-4a21-9069-f5631542f5a2
456
+ */
457
+ taskId?: string;
322
458
  static names(): { [key: string]: string } {
323
459
  return {
324
- end: 'end',
325
- header: 'header',
326
- payload: 'payload',
460
+ category: 'category',
461
+ generateOptionsShrink: 'generateOptions',
462
+ hotTopicVersion: 'hotTopicVersion',
463
+ hotTopicsShrink: 'hotTopics',
464
+ imageCount: 'imageCount',
465
+ modelCustomPromptTemplate: 'modelCustomPromptTemplate',
466
+ modelId: 'modelId',
467
+ originalSessionId: 'originalSessionId',
468
+ prompt: 'prompt',
469
+ stepForBroadcastContentConfigShrink: 'stepForBroadcastContentConfig',
470
+ taskId: 'taskId',
327
471
  };
328
472
  }
329
473
 
330
474
  static types(): { [key: string]: any } {
331
475
  return {
332
- end: 'boolean',
333
- header: RunMarketingInformationWritingResponseBodyHeader,
334
- payload: RunMarketingInformationWritingResponseBodyPayload,
476
+ category: 'string',
477
+ generateOptionsShrink: 'string',
478
+ hotTopicVersion: 'string',
479
+ hotTopicsShrink: 'string',
480
+ imageCount: 'number',
481
+ modelCustomPromptTemplate: 'string',
482
+ modelId: 'string',
483
+ originalSessionId: 'string',
484
+ prompt: 'string',
485
+ stepForBroadcastContentConfigShrink: 'string',
486
+ taskId: 'string',
335
487
  };
336
488
  }
337
489
 
@@ -340,88 +492,27 @@ export class RunMarketingInformationWritingResponseBody extends $tea.Model {
340
492
  }
341
493
  }
342
494
 
343
- export class RunMarketingInformationWritingResponse extends $tea.Model {
344
- headers?: { [key: string]: string };
345
- statusCode?: number;
346
- body?: RunMarketingInformationWritingResponseBody;
347
- static names(): { [key: string]: string } {
348
- return {
349
- headers: 'headers',
350
- statusCode: 'statusCode',
351
- body: 'body',
352
- };
353
- }
354
-
355
- static types(): { [key: string]: any } {
356
- return {
357
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
358
- statusCode: 'number',
359
- body: RunMarketingInformationWritingResponseBody,
360
- };
361
- }
362
-
363
- constructor(map?: { [key: string]: any }) {
364
- super(map);
365
- }
366
- }
367
-
368
- export class RunScriptContinueRequest extends $tea.Model {
369
- /**
370
- * @example
371
- * 一队全副武装的执法人员和消防员闯入了一间明显已被遗弃多日、门窗紧闭并用胶带封死的公寓,面对着屋内令人作呕的恶臭和门厅里的混乱场面,他们似乎在寻找某种隐藏的真相或危险源,而一封日期为16号的信件成为了揭开谜团的关键线索,随着便衣探员深入探索,一系列封闭的房间暗示着这里曾发生过不为人知的秘密事件。
372
- */
373
- scriptSummary?: string;
374
- /**
375
- * @example
376
- * 悬疑,都市,惊悚
377
- */
378
- scriptTypeKeyword?: string;
495
+ export class RunHotTopicChatResponseBody extends $tea.Model {
496
+ header?: RunHotTopicChatResponseBodyHeader;
497
+ payload?: RunHotTopicChatResponseBodyPayload;
379
498
  /**
380
- * @remarks
381
- * This parameter is required.
382
- *
383
499
  * @example
384
- * 门厅一片狼藉。朝向天井的窗户开着。公寓门突然被撞开了。\n一名便衣探员、两名穿制服的警察和几位消防员———也身着工作服———进来,四下张望。他们都戴着手套以及盖住口鼻的面罩。在他们身后,门房和他妻子也挤进门厅。他们都捂着鼻子。门房的另一只手里拿着一叠信件和促销广告单。他们身后,跟着一位女邻居。\n便衣探员(对门房和邻居):请在外面等候。\n他向一名警察示意,警察正忙着把好奇的旁观者请出门外。\n警察(对门房,指着那一叠信件):最近的一封是哪天的?\n门房(查对信件):最近的一封似乎是16号的......等一下......\n便衣探员想打开左侧的门,却是徒劳。门用胶带封上了。\n便衣探员(对消防员):你来试一下好吗?\n消防员摆弄门的时候,便衣探员进了卧室隔壁的餐厅。他迅速打开窗,转身,想经过对开门进左侧的房间。这两扇门也锁着,门缝被贴上了胶带。他右转进入起居室,也打开了窗户
500
+ * 04DA1A52-4E51-56CB-BA64-FDDA0B53BAE8
385
501
  */
386
- userProvidedContent?: string;
387
- static names(): { [key: string]: string } {
388
- return {
389
- scriptSummary: 'scriptSummary',
390
- scriptTypeKeyword: 'scriptTypeKeyword',
391
- userProvidedContent: 'userProvidedContent',
392
- };
393
- }
394
-
395
- static types(): { [key: string]: any } {
396
- return {
397
- scriptSummary: 'string',
398
- scriptTypeKeyword: 'string',
399
- userProvidedContent: 'string',
400
- };
401
- }
402
-
403
- constructor(map?: { [key: string]: any }) {
404
- super(map);
405
- }
406
- }
407
-
408
- export class RunScriptContinueResponseBody extends $tea.Model {
409
- end?: boolean;
410
- header?: RunScriptContinueResponseBodyHeader;
411
- payload?: RunScriptContinueResponseBodyPayload;
502
+ requestId?: string;
412
503
  static names(): { [key: string]: string } {
413
504
  return {
414
- end: 'end',
415
505
  header: 'header',
416
506
  payload: 'payload',
507
+ requestId: 'requestId',
417
508
  };
418
509
  }
419
510
 
420
511
  static types(): { [key: string]: any } {
421
512
  return {
422
- end: 'boolean',
423
- header: RunScriptContinueResponseBodyHeader,
424
- payload: RunScriptContinueResponseBodyPayload,
513
+ header: RunHotTopicChatResponseBodyHeader,
514
+ payload: RunHotTopicChatResponseBodyPayload,
515
+ requestId: 'string',
425
516
  };
426
517
  }
427
518
 
@@ -430,10 +521,10 @@ export class RunScriptContinueResponseBody extends $tea.Model {
430
521
  }
431
522
  }
432
523
 
433
- export class RunScriptContinueResponse extends $tea.Model {
524
+ export class RunHotTopicChatResponse extends $tea.Model {
434
525
  headers?: { [key: string]: string };
435
526
  statusCode?: number;
436
- body?: RunScriptContinueResponseBody;
527
+ body?: RunHotTopicChatResponseBody;
437
528
  static names(): { [key: string]: string } {
438
529
  return {
439
530
  headers: 'headers',
@@ -446,7 +537,7 @@ export class RunScriptContinueResponse extends $tea.Model {
446
537
  return {
447
538
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
448
539
  statusCode: 'number',
449
- body: RunScriptContinueResponseBody,
540
+ body: RunHotTopicChatResponseBody,
450
541
  };
451
542
  }
452
543
 
@@ -455,58 +546,84 @@ export class RunScriptContinueResponse extends $tea.Model {
455
546
  }
456
547
  }
457
548
 
458
- export class RunScriptPlanningRequest extends $tea.Model {
549
+ export class RunHotTopicSummaryRequest extends $tea.Model {
459
550
  /**
551
+ * @remarks
552
+ * This parameter is required.
553
+ *
460
554
  * @example
461
- * 故事尽可能狗血
555
+ * 2024-10-16_8
462
556
  */
463
- additionalNote?: string;
464
- dialogueInScene?: boolean;
465
- plotConflict?: boolean;
557
+ hotTopicVersion?: string;
466
558
  /**
467
- * @example
468
- * 都市战神
559
+ * @remarks
560
+ * This parameter is required.
469
561
  */
470
- scriptName?: string;
562
+ stepForCustomSummaryStyleConfig?: RunHotTopicSummaryRequestStepForCustomSummaryStyleConfig;
471
563
  /**
564
+ * @remarks
565
+ * This parameter is required.
566
+ *
472
567
  * @example
473
- * 3
568
+ * xxxxx
474
569
  */
475
- scriptShotCount?: number;
570
+ topicIds?: string[];
571
+ static names(): { [key: string]: string } {
572
+ return {
573
+ hotTopicVersion: 'hotTopicVersion',
574
+ stepForCustomSummaryStyleConfig: 'stepForCustomSummaryStyleConfig',
575
+ topicIds: 'topicIds',
576
+ };
577
+ }
578
+
579
+ static types(): { [key: string]: any } {
580
+ return {
581
+ hotTopicVersion: 'string',
582
+ stepForCustomSummaryStyleConfig: RunHotTopicSummaryRequestStepForCustomSummaryStyleConfig,
583
+ topicIds: { 'type': 'array', 'itemType': 'string' },
584
+ };
585
+ }
586
+
587
+ constructor(map?: { [key: string]: any }) {
588
+ super(map);
589
+ }
590
+ }
591
+
592
+ export class RunHotTopicSummaryShrinkRequest extends $tea.Model {
476
593
  /**
477
594
  * @remarks
478
595
  * This parameter is required.
479
596
  *
480
597
  * @example
481
- * 在一个宁静的小镇上,每个家庭都在同一天收到一个神秘的、没有标记的包裹。
598
+ * 2024-10-16_8
482
599
  */
483
- scriptSummary?: string;
600
+ hotTopicVersion?: string;
601
+ /**
602
+ * @remarks
603
+ * This parameter is required.
604
+ */
605
+ stepForCustomSummaryStyleConfigShrink?: string;
484
606
  /**
607
+ * @remarks
608
+ * This parameter is required.
609
+ *
485
610
  * @example
486
- * 现代,都市,爱情,玄幻
611
+ * xxxxx
487
612
  */
488
- scriptTypeKeyword?: string;
613
+ topicIdsShrink?: string;
489
614
  static names(): { [key: string]: string } {
490
615
  return {
491
- additionalNote: 'additionalNote',
492
- dialogueInScene: 'dialogueInScene',
493
- plotConflict: 'plotConflict',
494
- scriptName: 'scriptName',
495
- scriptShotCount: 'scriptShotCount',
496
- scriptSummary: 'scriptSummary',
497
- scriptTypeKeyword: 'scriptTypeKeyword',
616
+ hotTopicVersion: 'hotTopicVersion',
617
+ stepForCustomSummaryStyleConfigShrink: 'stepForCustomSummaryStyleConfig',
618
+ topicIdsShrink: 'topicIds',
498
619
  };
499
620
  }
500
621
 
501
622
  static types(): { [key: string]: any } {
502
623
  return {
503
- additionalNote: 'string',
504
- dialogueInScene: 'boolean',
505
- plotConflict: 'boolean',
506
- scriptName: 'string',
507
- scriptShotCount: 'number',
508
- scriptSummary: 'string',
509
- scriptTypeKeyword: 'string',
624
+ hotTopicVersion: 'string',
625
+ stepForCustomSummaryStyleConfigShrink: 'string',
626
+ topicIdsShrink: 'string',
510
627
  };
511
628
  }
512
629
 
@@ -515,23 +632,30 @@ export class RunScriptPlanningRequest extends $tea.Model {
515
632
  }
516
633
  }
517
634
 
518
- export class RunScriptPlanningResponseBody extends $tea.Model {
519
- end?: boolean;
520
- header?: RunScriptPlanningResponseBodyHeader;
521
- payload?: RunScriptPlanningResponseBodyPayload;
635
+ export class RunHotTopicSummaryResponseBody extends $tea.Model {
636
+ header?: RunHotTopicSummaryResponseBodyHeader;
637
+ payload?: RunHotTopicSummaryResponseBodyPayload;
638
+ /**
639
+ * @remarks
640
+ * Id of the request
641
+ *
642
+ * @example
643
+ * 5D0E915E-655D-59A8-894F-93873F73AAE5
644
+ */
645
+ requestId?: string;
522
646
  static names(): { [key: string]: string } {
523
647
  return {
524
- end: 'end',
525
648
  header: 'header',
526
649
  payload: 'payload',
650
+ requestId: 'requestId',
527
651
  };
528
652
  }
529
653
 
530
654
  static types(): { [key: string]: any } {
531
655
  return {
532
- end: 'boolean',
533
- header: RunScriptPlanningResponseBodyHeader,
534
- payload: RunScriptPlanningResponseBodyPayload,
656
+ header: RunHotTopicSummaryResponseBodyHeader,
657
+ payload: RunHotTopicSummaryResponseBodyPayload,
658
+ requestId: 'string',
535
659
  };
536
660
  }
537
661
 
@@ -540,10 +664,10 @@ export class RunScriptPlanningResponseBody extends $tea.Model {
540
664
  }
541
665
  }
542
666
 
543
- export class RunScriptPlanningResponse extends $tea.Model {
667
+ export class RunHotTopicSummaryResponse extends $tea.Model {
544
668
  headers?: { [key: string]: string };
545
669
  statusCode?: number;
546
- body?: RunScriptPlanningResponseBody;
670
+ body?: RunHotTopicSummaryResponseBody;
547
671
  static names(): { [key: string]: string } {
548
672
  return {
549
673
  headers: 'headers',
@@ -556,7 +680,7 @@ export class RunScriptPlanningResponse extends $tea.Model {
556
680
  return {
557
681
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
558
682
  statusCode: 'number',
559
- body: RunScriptPlanningResponseBody,
683
+ body: RunHotTopicSummaryResponseBody,
560
684
  };
561
685
  }
562
686
 
@@ -565,38 +689,31 @@ export class RunScriptPlanningResponse extends $tea.Model {
565
689
  }
566
690
  }
567
691
 
568
- export class RunStyleWritingRequest extends $tea.Model {
569
- /**
570
- * @remarks
571
- * This parameter is required.
572
- */
573
- learningSamples?: string[];
574
- /**
575
- * @remarks
576
- * This parameter is required.
577
- */
578
- referenceMaterials?: string[];
579
- styleFeature?: string;
692
+ export class RunMarketingInformationExtractRequest extends $tea.Model {
693
+ customPrompt?: string;
694
+ extractType?: string;
580
695
  /**
581
- * @remarks
582
- * This parameter is required.
696
+ * @example
697
+ * qwen-max
698
+ * qwen-plus
583
699
  */
584
- writingTheme?: string;
700
+ modelId?: string;
701
+ sourceMaterials?: string[];
585
702
  static names(): { [key: string]: string } {
586
703
  return {
587
- learningSamples: 'learningSamples',
588
- referenceMaterials: 'referenceMaterials',
589
- styleFeature: 'styleFeature',
590
- writingTheme: 'writingTheme',
704
+ customPrompt: 'customPrompt',
705
+ extractType: 'extractType',
706
+ modelId: 'modelId',
707
+ sourceMaterials: 'sourceMaterials',
591
708
  };
592
709
  }
593
710
 
594
711
  static types(): { [key: string]: any } {
595
712
  return {
596
- learningSamples: { 'type': 'array', 'itemType': 'string' },
597
- referenceMaterials: { 'type': 'array', 'itemType': 'string' },
598
- styleFeature: 'string',
599
- writingTheme: 'string',
713
+ customPrompt: 'string',
714
+ extractType: 'string',
715
+ modelId: 'string',
716
+ sourceMaterials: { 'type': 'array', 'itemType': 'string' },
600
717
  };
601
718
  }
602
719
 
@@ -605,38 +722,31 @@ export class RunStyleWritingRequest extends $tea.Model {
605
722
  }
606
723
  }
607
724
 
608
- export class RunStyleWritingShrinkRequest extends $tea.Model {
609
- /**
610
- * @remarks
611
- * This parameter is required.
612
- */
613
- learningSamplesShrink?: string;
614
- /**
615
- * @remarks
616
- * This parameter is required.
617
- */
618
- referenceMaterialsShrink?: string;
619
- styleFeature?: string;
725
+ export class RunMarketingInformationExtractShrinkRequest extends $tea.Model {
726
+ customPrompt?: string;
727
+ extractType?: string;
620
728
  /**
621
- * @remarks
622
- * This parameter is required.
729
+ * @example
730
+ * qwen-max
731
+ * qwen-plus
623
732
  */
624
- writingTheme?: string;
733
+ modelId?: string;
734
+ sourceMaterialsShrink?: string;
625
735
  static names(): { [key: string]: string } {
626
736
  return {
627
- learningSamplesShrink: 'learningSamples',
628
- referenceMaterialsShrink: 'referenceMaterials',
629
- styleFeature: 'styleFeature',
630
- writingTheme: 'writingTheme',
737
+ customPrompt: 'customPrompt',
738
+ extractType: 'extractType',
739
+ modelId: 'modelId',
740
+ sourceMaterialsShrink: 'sourceMaterials',
631
741
  };
632
742
  }
633
743
 
634
744
  static types(): { [key: string]: any } {
635
745
  return {
636
- learningSamplesShrink: 'string',
637
- referenceMaterialsShrink: 'string',
638
- styleFeature: 'string',
639
- writingTheme: 'string',
746
+ customPrompt: 'string',
747
+ extractType: 'string',
748
+ modelId: 'string',
749
+ sourceMaterialsShrink: 'string',
640
750
  };
641
751
  }
642
752
 
@@ -645,18 +755,14 @@ export class RunStyleWritingShrinkRequest extends $tea.Model {
645
755
  }
646
756
  }
647
757
 
648
- export class RunStyleWritingResponseBody extends $tea.Model {
758
+ export class RunMarketingInformationExtractResponseBody extends $tea.Model {
649
759
  /**
650
760
  * @example
651
- * true
761
+ * {\\"TimeZone\\": \\"Asia/Shanghai\\", \\"DateTime\\": \\"2024-03-07T17:00:09+08:00\\"}
652
762
  */
653
763
  end?: boolean;
654
- /**
655
- * @example
656
- * {"event":"task-progress-start-generating","sessionId":"3cd10828-0e42-471c-8f1a-931cde20b035","taskId":"d3be9981-ca2d-4e17-bf31-1c0a628e9f99","traceId":"66bef4a7f5d61ff3c43f3b710574e175"}
657
- */
658
- header?: RunStyleWritingResponseBodyHeader;
659
- payload?: RunStyleWritingResponseBodyPayload;
764
+ header?: RunMarketingInformationExtractResponseBodyHeader;
765
+ payload?: RunMarketingInformationExtractResponseBodyPayload;
660
766
  static names(): { [key: string]: string } {
661
767
  return {
662
768
  end: 'end',
@@ -668,8 +774,8 @@ export class RunStyleWritingResponseBody extends $tea.Model {
668
774
  static types(): { [key: string]: any } {
669
775
  return {
670
776
  end: 'boolean',
671
- header: RunStyleWritingResponseBodyHeader,
672
- payload: RunStyleWritingResponseBodyPayload,
777
+ header: RunMarketingInformationExtractResponseBodyHeader,
778
+ payload: RunMarketingInformationExtractResponseBodyPayload,
673
779
  };
674
780
  }
675
781
 
@@ -678,10 +784,435 @@ export class RunStyleWritingResponseBody extends $tea.Model {
678
784
  }
679
785
  }
680
786
 
681
- export class RunStyleWritingResponse extends $tea.Model {
787
+ export class RunMarketingInformationExtractResponse extends $tea.Model {
682
788
  headers?: { [key: string]: string };
683
789
  statusCode?: number;
684
- body?: RunStyleWritingResponseBody;
790
+ body?: RunMarketingInformationExtractResponseBody;
791
+ static names(): { [key: string]: string } {
792
+ return {
793
+ headers: 'headers',
794
+ statusCode: 'statusCode',
795
+ body: 'body',
796
+ };
797
+ }
798
+
799
+ static types(): { [key: string]: any } {
800
+ return {
801
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
802
+ statusCode: 'number',
803
+ body: RunMarketingInformationExtractResponseBody,
804
+ };
805
+ }
806
+
807
+ constructor(map?: { [key: string]: any }) {
808
+ super(map);
809
+ }
810
+ }
811
+
812
+ export class RunMarketingInformationWritingRequest extends $tea.Model {
813
+ customPrompt?: string;
814
+ /**
815
+ * @example
816
+ * qwen-max
817
+ * qwen-plus
818
+ */
819
+ modelId?: string;
820
+ sourceMaterial?: string;
821
+ writingType?: string;
822
+ static names(): { [key: string]: string } {
823
+ return {
824
+ customPrompt: 'customPrompt',
825
+ modelId: 'modelId',
826
+ sourceMaterial: 'sourceMaterial',
827
+ writingType: 'writingType',
828
+ };
829
+ }
830
+
831
+ static types(): { [key: string]: any } {
832
+ return {
833
+ customPrompt: 'string',
834
+ modelId: 'string',
835
+ sourceMaterial: 'string',
836
+ writingType: 'string',
837
+ };
838
+ }
839
+
840
+ constructor(map?: { [key: string]: any }) {
841
+ super(map);
842
+ }
843
+ }
844
+
845
+ export class RunMarketingInformationWritingResponseBody extends $tea.Model {
846
+ /**
847
+ * @example
848
+ * 2024-06-21T10:29:52+08:00
849
+ */
850
+ end?: boolean;
851
+ header?: RunMarketingInformationWritingResponseBodyHeader;
852
+ payload?: RunMarketingInformationWritingResponseBodyPayload;
853
+ static names(): { [key: string]: string } {
854
+ return {
855
+ end: 'end',
856
+ header: 'header',
857
+ payload: 'payload',
858
+ };
859
+ }
860
+
861
+ static types(): { [key: string]: any } {
862
+ return {
863
+ end: 'boolean',
864
+ header: RunMarketingInformationWritingResponseBodyHeader,
865
+ payload: RunMarketingInformationWritingResponseBodyPayload,
866
+ };
867
+ }
868
+
869
+ constructor(map?: { [key: string]: any }) {
870
+ super(map);
871
+ }
872
+ }
873
+
874
+ export class RunMarketingInformationWritingResponse extends $tea.Model {
875
+ headers?: { [key: string]: string };
876
+ statusCode?: number;
877
+ body?: RunMarketingInformationWritingResponseBody;
878
+ static names(): { [key: string]: string } {
879
+ return {
880
+ headers: 'headers',
881
+ statusCode: 'statusCode',
882
+ body: 'body',
883
+ };
884
+ }
885
+
886
+ static types(): { [key: string]: any } {
887
+ return {
888
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
889
+ statusCode: 'number',
890
+ body: RunMarketingInformationWritingResponseBody,
891
+ };
892
+ }
893
+
894
+ constructor(map?: { [key: string]: any }) {
895
+ super(map);
896
+ }
897
+ }
898
+
899
+ export class RunScriptContinueRequest extends $tea.Model {
900
+ /**
901
+ * @example
902
+ * 一队全副武装的执法人员和消防员闯入了一间明显已被遗弃多日、门窗紧闭并用胶带封死的公寓,面对着屋内令人作呕的恶臭和门厅里的混乱场面,他们似乎在寻找某种隐藏的真相或危险源,而一封日期为16号的信件成为了揭开谜团的关键线索,随着便衣探员深入探索,一系列封闭的房间暗示着这里曾发生过不为人知的秘密事件。
903
+ */
904
+ scriptSummary?: string;
905
+ /**
906
+ * @example
907
+ * 悬疑,都市,惊悚
908
+ */
909
+ scriptTypeKeyword?: string;
910
+ /**
911
+ * @remarks
912
+ * This parameter is required.
913
+ *
914
+ * @example
915
+ * 门厅一片狼藉。朝向天井的窗户开着。公寓门突然被撞开了。\n一名便衣探员、两名穿制服的警察和几位消防员———也身着工作服———进来,四下张望。他们都戴着手套以及盖住口鼻的面罩。在他们身后,门房和他妻子也挤进门厅。他们都捂着鼻子。门房的另一只手里拿着一叠信件和促销广告单。他们身后,跟着一位女邻居。\n便衣探员(对门房和邻居):请在外面等候。\n他向一名警察示意,警察正忙着把好奇的旁观者请出门外。\n警察(对门房,指着那一叠信件):最近的一封是哪天的?\n门房(查对信件):最近的一封似乎是16号的......等一下......\n便衣探员想打开左侧的门,却是徒劳。门用胶带封上了。\n便衣探员(对消防员):你来试一下好吗?\n消防员摆弄门的时候,便衣探员进了卧室隔壁的餐厅。他迅速打开窗,转身,想经过对开门进左侧的房间。这两扇门也锁着,门缝被贴上了胶带。他右转进入起居室,也打开了窗户
916
+ */
917
+ userProvidedContent?: string;
918
+ static names(): { [key: string]: string } {
919
+ return {
920
+ scriptSummary: 'scriptSummary',
921
+ scriptTypeKeyword: 'scriptTypeKeyword',
922
+ userProvidedContent: 'userProvidedContent',
923
+ };
924
+ }
925
+
926
+ static types(): { [key: string]: any } {
927
+ return {
928
+ scriptSummary: 'string',
929
+ scriptTypeKeyword: 'string',
930
+ userProvidedContent: 'string',
931
+ };
932
+ }
933
+
934
+ constructor(map?: { [key: string]: any }) {
935
+ super(map);
936
+ }
937
+ }
938
+
939
+ export class RunScriptContinueResponseBody extends $tea.Model {
940
+ end?: boolean;
941
+ header?: RunScriptContinueResponseBodyHeader;
942
+ payload?: RunScriptContinueResponseBodyPayload;
943
+ static names(): { [key: string]: string } {
944
+ return {
945
+ end: 'end',
946
+ header: 'header',
947
+ payload: 'payload',
948
+ };
949
+ }
950
+
951
+ static types(): { [key: string]: any } {
952
+ return {
953
+ end: 'boolean',
954
+ header: RunScriptContinueResponseBodyHeader,
955
+ payload: RunScriptContinueResponseBodyPayload,
956
+ };
957
+ }
958
+
959
+ constructor(map?: { [key: string]: any }) {
960
+ super(map);
961
+ }
962
+ }
963
+
964
+ export class RunScriptContinueResponse extends $tea.Model {
965
+ headers?: { [key: string]: string };
966
+ statusCode?: number;
967
+ body?: RunScriptContinueResponseBody;
968
+ static names(): { [key: string]: string } {
969
+ return {
970
+ headers: 'headers',
971
+ statusCode: 'statusCode',
972
+ body: 'body',
973
+ };
974
+ }
975
+
976
+ static types(): { [key: string]: any } {
977
+ return {
978
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
979
+ statusCode: 'number',
980
+ body: RunScriptContinueResponseBody,
981
+ };
982
+ }
983
+
984
+ constructor(map?: { [key: string]: any }) {
985
+ super(map);
986
+ }
987
+ }
988
+
989
+ export class RunScriptPlanningRequest extends $tea.Model {
990
+ /**
991
+ * @example
992
+ * 故事尽可能狗血
993
+ */
994
+ additionalNote?: string;
995
+ dialogueInScene?: boolean;
996
+ plotConflict?: boolean;
997
+ /**
998
+ * @example
999
+ * 都市战神
1000
+ */
1001
+ scriptName?: string;
1002
+ /**
1003
+ * @example
1004
+ * 3
1005
+ */
1006
+ scriptShotCount?: number;
1007
+ /**
1008
+ * @remarks
1009
+ * This parameter is required.
1010
+ *
1011
+ * @example
1012
+ * 在一个宁静的小镇上,每个家庭都在同一天收到一个神秘的、没有标记的包裹。
1013
+ */
1014
+ scriptSummary?: string;
1015
+ /**
1016
+ * @example
1017
+ * 现代,都市,爱情,玄幻
1018
+ */
1019
+ scriptTypeKeyword?: string;
1020
+ static names(): { [key: string]: string } {
1021
+ return {
1022
+ additionalNote: 'additionalNote',
1023
+ dialogueInScene: 'dialogueInScene',
1024
+ plotConflict: 'plotConflict',
1025
+ scriptName: 'scriptName',
1026
+ scriptShotCount: 'scriptShotCount',
1027
+ scriptSummary: 'scriptSummary',
1028
+ scriptTypeKeyword: 'scriptTypeKeyword',
1029
+ };
1030
+ }
1031
+
1032
+ static types(): { [key: string]: any } {
1033
+ return {
1034
+ additionalNote: 'string',
1035
+ dialogueInScene: 'boolean',
1036
+ plotConflict: 'boolean',
1037
+ scriptName: 'string',
1038
+ scriptShotCount: 'number',
1039
+ scriptSummary: 'string',
1040
+ scriptTypeKeyword: 'string',
1041
+ };
1042
+ }
1043
+
1044
+ constructor(map?: { [key: string]: any }) {
1045
+ super(map);
1046
+ }
1047
+ }
1048
+
1049
+ export class RunScriptPlanningResponseBody extends $tea.Model {
1050
+ end?: boolean;
1051
+ header?: RunScriptPlanningResponseBodyHeader;
1052
+ payload?: RunScriptPlanningResponseBodyPayload;
1053
+ static names(): { [key: string]: string } {
1054
+ return {
1055
+ end: 'end',
1056
+ header: 'header',
1057
+ payload: 'payload',
1058
+ };
1059
+ }
1060
+
1061
+ static types(): { [key: string]: any } {
1062
+ return {
1063
+ end: 'boolean',
1064
+ header: RunScriptPlanningResponseBodyHeader,
1065
+ payload: RunScriptPlanningResponseBodyPayload,
1066
+ };
1067
+ }
1068
+
1069
+ constructor(map?: { [key: string]: any }) {
1070
+ super(map);
1071
+ }
1072
+ }
1073
+
1074
+ export class RunScriptPlanningResponse extends $tea.Model {
1075
+ headers?: { [key: string]: string };
1076
+ statusCode?: number;
1077
+ body?: RunScriptPlanningResponseBody;
1078
+ static names(): { [key: string]: string } {
1079
+ return {
1080
+ headers: 'headers',
1081
+ statusCode: 'statusCode',
1082
+ body: 'body',
1083
+ };
1084
+ }
1085
+
1086
+ static types(): { [key: string]: any } {
1087
+ return {
1088
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1089
+ statusCode: 'number',
1090
+ body: RunScriptPlanningResponseBody,
1091
+ };
1092
+ }
1093
+
1094
+ constructor(map?: { [key: string]: any }) {
1095
+ super(map);
1096
+ }
1097
+ }
1098
+
1099
+ export class RunStyleWritingRequest extends $tea.Model {
1100
+ /**
1101
+ * @remarks
1102
+ * This parameter is required.
1103
+ */
1104
+ learningSamples?: string[];
1105
+ /**
1106
+ * @remarks
1107
+ * This parameter is required.
1108
+ */
1109
+ referenceMaterials?: string[];
1110
+ styleFeature?: string;
1111
+ /**
1112
+ * @remarks
1113
+ * This parameter is required.
1114
+ */
1115
+ writingTheme?: string;
1116
+ static names(): { [key: string]: string } {
1117
+ return {
1118
+ learningSamples: 'learningSamples',
1119
+ referenceMaterials: 'referenceMaterials',
1120
+ styleFeature: 'styleFeature',
1121
+ writingTheme: 'writingTheme',
1122
+ };
1123
+ }
1124
+
1125
+ static types(): { [key: string]: any } {
1126
+ return {
1127
+ learningSamples: { 'type': 'array', 'itemType': 'string' },
1128
+ referenceMaterials: { 'type': 'array', 'itemType': 'string' },
1129
+ styleFeature: 'string',
1130
+ writingTheme: 'string',
1131
+ };
1132
+ }
1133
+
1134
+ constructor(map?: { [key: string]: any }) {
1135
+ super(map);
1136
+ }
1137
+ }
1138
+
1139
+ export class RunStyleWritingShrinkRequest extends $tea.Model {
1140
+ /**
1141
+ * @remarks
1142
+ * This parameter is required.
1143
+ */
1144
+ learningSamplesShrink?: string;
1145
+ /**
1146
+ * @remarks
1147
+ * This parameter is required.
1148
+ */
1149
+ referenceMaterialsShrink?: string;
1150
+ styleFeature?: string;
1151
+ /**
1152
+ * @remarks
1153
+ * This parameter is required.
1154
+ */
1155
+ writingTheme?: string;
1156
+ static names(): { [key: string]: string } {
1157
+ return {
1158
+ learningSamplesShrink: 'learningSamples',
1159
+ referenceMaterialsShrink: 'referenceMaterials',
1160
+ styleFeature: 'styleFeature',
1161
+ writingTheme: 'writingTheme',
1162
+ };
1163
+ }
1164
+
1165
+ static types(): { [key: string]: any } {
1166
+ return {
1167
+ learningSamplesShrink: 'string',
1168
+ referenceMaterialsShrink: 'string',
1169
+ styleFeature: 'string',
1170
+ writingTheme: 'string',
1171
+ };
1172
+ }
1173
+
1174
+ constructor(map?: { [key: string]: any }) {
1175
+ super(map);
1176
+ }
1177
+ }
1178
+
1179
+ export class RunStyleWritingResponseBody extends $tea.Model {
1180
+ /**
1181
+ * @example
1182
+ * true
1183
+ */
1184
+ end?: boolean;
1185
+ /**
1186
+ * @example
1187
+ * {"event":"task-progress-start-generating","sessionId":"3cd10828-0e42-471c-8f1a-931cde20b035","taskId":"d3be9981-ca2d-4e17-bf31-1c0a628e9f99","traceId":"66bef4a7f5d61ff3c43f3b710574e175"}
1188
+ */
1189
+ header?: RunStyleWritingResponseBodyHeader;
1190
+ payload?: RunStyleWritingResponseBodyPayload;
1191
+ static names(): { [key: string]: string } {
1192
+ return {
1193
+ end: 'end',
1194
+ header: 'header',
1195
+ payload: 'payload',
1196
+ };
1197
+ }
1198
+
1199
+ static types(): { [key: string]: any } {
1200
+ return {
1201
+ end: 'boolean',
1202
+ header: RunStyleWritingResponseBodyHeader,
1203
+ payload: RunStyleWritingResponseBodyPayload,
1204
+ };
1205
+ }
1206
+
1207
+ constructor(map?: { [key: string]: any }) {
1208
+ super(map);
1209
+ }
1210
+ }
1211
+
1212
+ export class RunStyleWritingResponse extends $tea.Model {
1213
+ headers?: { [key: string]: string };
1214
+ statusCode?: number;
1215
+ body?: RunStyleWritingResponseBody;
685
1216
  static names(): { [key: string]: string } {
686
1217
  return {
687
1218
  headers: 'headers',
@@ -703,65 +1234,848 @@ export class RunStyleWritingResponse extends $tea.Model {
703
1234
  }
704
1235
  }
705
1236
 
706
- export class RunVideoAnalysisRequest extends $tea.Model {
707
- generateOptions?: string[];
708
- modelCustomPromptTemplate?: string;
709
- /**
710
- * @example
711
- * PlotDetail
712
- */
713
- modelCustomPromptTemplateId?: string;
1237
+ export class RunVideoAnalysisRequest extends $tea.Model {
1238
+ generateOptions?: string[];
1239
+ modelCustomPromptTemplate?: string;
1240
+ /**
1241
+ * @example
1242
+ * PlotDetail
1243
+ */
1244
+ modelCustomPromptTemplateId?: string;
1245
+ /**
1246
+ * @example
1247
+ * qwen-max
1248
+ */
1249
+ modelId?: string;
1250
+ /**
1251
+ * @example
1252
+ * a3d1c2ac-f086-4a21-9069-f5631542f5ax
1253
+ */
1254
+ originalSessionId?: string;
1255
+ snapshotInterval?: number;
1256
+ /**
1257
+ * @example
1258
+ * a3d1c2ac-f086-4a21-9069-f5631542f5a2
1259
+ */
1260
+ taskId?: string;
1261
+ videoExtraInfo?: string;
1262
+ videoModelCustomPromptTemplate?: string;
1263
+ /**
1264
+ * @example
1265
+ * qwen-vl-max
1266
+ */
1267
+ videoModelId?: string;
1268
+ /**
1269
+ * @example
1270
+ * http://xxxx.mp4
1271
+ */
1272
+ videoUrl?: string;
1273
+ static names(): { [key: string]: string } {
1274
+ return {
1275
+ generateOptions: 'generateOptions',
1276
+ modelCustomPromptTemplate: 'modelCustomPromptTemplate',
1277
+ modelCustomPromptTemplateId: 'modelCustomPromptTemplateId',
1278
+ modelId: 'modelId',
1279
+ originalSessionId: 'originalSessionId',
1280
+ snapshotInterval: 'snapshotInterval',
1281
+ taskId: 'taskId',
1282
+ videoExtraInfo: 'videoExtraInfo',
1283
+ videoModelCustomPromptTemplate: 'videoModelCustomPromptTemplate',
1284
+ videoModelId: 'videoModelId',
1285
+ videoUrl: 'videoUrl',
1286
+ };
1287
+ }
1288
+
1289
+ static types(): { [key: string]: any } {
1290
+ return {
1291
+ generateOptions: { 'type': 'array', 'itemType': 'string' },
1292
+ modelCustomPromptTemplate: 'string',
1293
+ modelCustomPromptTemplateId: 'string',
1294
+ modelId: 'string',
1295
+ originalSessionId: 'string',
1296
+ snapshotInterval: 'number',
1297
+ taskId: 'string',
1298
+ videoExtraInfo: 'string',
1299
+ videoModelCustomPromptTemplate: 'string',
1300
+ videoModelId: 'string',
1301
+ videoUrl: 'string',
1302
+ };
1303
+ }
1304
+
1305
+ constructor(map?: { [key: string]: any }) {
1306
+ super(map);
1307
+ }
1308
+ }
1309
+
1310
+ export class RunVideoAnalysisShrinkRequest extends $tea.Model {
1311
+ generateOptionsShrink?: string;
1312
+ modelCustomPromptTemplate?: string;
1313
+ /**
1314
+ * @example
1315
+ * PlotDetail
1316
+ */
1317
+ modelCustomPromptTemplateId?: string;
1318
+ /**
1319
+ * @example
1320
+ * qwen-max
1321
+ */
1322
+ modelId?: string;
1323
+ /**
1324
+ * @example
1325
+ * a3d1c2ac-f086-4a21-9069-f5631542f5ax
1326
+ */
1327
+ originalSessionId?: string;
1328
+ snapshotInterval?: number;
1329
+ /**
1330
+ * @example
1331
+ * a3d1c2ac-f086-4a21-9069-f5631542f5a2
1332
+ */
1333
+ taskId?: string;
1334
+ videoExtraInfo?: string;
1335
+ videoModelCustomPromptTemplate?: string;
1336
+ /**
1337
+ * @example
1338
+ * qwen-vl-max
1339
+ */
1340
+ videoModelId?: string;
1341
+ /**
1342
+ * @example
1343
+ * http://xxxx.mp4
1344
+ */
1345
+ videoUrl?: string;
1346
+ static names(): { [key: string]: string } {
1347
+ return {
1348
+ generateOptionsShrink: 'generateOptions',
1349
+ modelCustomPromptTemplate: 'modelCustomPromptTemplate',
1350
+ modelCustomPromptTemplateId: 'modelCustomPromptTemplateId',
1351
+ modelId: 'modelId',
1352
+ originalSessionId: 'originalSessionId',
1353
+ snapshotInterval: 'snapshotInterval',
1354
+ taskId: 'taskId',
1355
+ videoExtraInfo: 'videoExtraInfo',
1356
+ videoModelCustomPromptTemplate: 'videoModelCustomPromptTemplate',
1357
+ videoModelId: 'videoModelId',
1358
+ videoUrl: 'videoUrl',
1359
+ };
1360
+ }
1361
+
1362
+ static types(): { [key: string]: any } {
1363
+ return {
1364
+ generateOptionsShrink: 'string',
1365
+ modelCustomPromptTemplate: 'string',
1366
+ modelCustomPromptTemplateId: 'string',
1367
+ modelId: 'string',
1368
+ originalSessionId: 'string',
1369
+ snapshotInterval: 'number',
1370
+ taskId: 'string',
1371
+ videoExtraInfo: 'string',
1372
+ videoModelCustomPromptTemplate: 'string',
1373
+ videoModelId: 'string',
1374
+ videoUrl: 'string',
1375
+ };
1376
+ }
1377
+
1378
+ constructor(map?: { [key: string]: any }) {
1379
+ super(map);
1380
+ }
1381
+ }
1382
+
1383
+ export class RunVideoAnalysisResponseBody extends $tea.Model {
1384
+ header?: RunVideoAnalysisResponseBodyHeader;
1385
+ payload?: RunVideoAnalysisResponseBodyPayload;
1386
+ /**
1387
+ * @example
1388
+ * 117F5ABE-CF02-5502-9A3F-E56BC9081A64
1389
+ */
1390
+ requestId?: string;
1391
+ static names(): { [key: string]: string } {
1392
+ return {
1393
+ header: 'header',
1394
+ payload: 'payload',
1395
+ requestId: 'requestId',
1396
+ };
1397
+ }
1398
+
1399
+ static types(): { [key: string]: any } {
1400
+ return {
1401
+ header: RunVideoAnalysisResponseBodyHeader,
1402
+ payload: RunVideoAnalysisResponseBodyPayload,
1403
+ requestId: 'string',
1404
+ };
1405
+ }
1406
+
1407
+ constructor(map?: { [key: string]: any }) {
1408
+ super(map);
1409
+ }
1410
+ }
1411
+
1412
+ export class RunVideoAnalysisResponse extends $tea.Model {
1413
+ headers?: { [key: string]: string };
1414
+ statusCode?: number;
1415
+ body?: RunVideoAnalysisResponseBody;
1416
+ static names(): { [key: string]: string } {
1417
+ return {
1418
+ headers: 'headers',
1419
+ statusCode: 'statusCode',
1420
+ body: 'body',
1421
+ };
1422
+ }
1423
+
1424
+ static types(): { [key: string]: any } {
1425
+ return {
1426
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1427
+ statusCode: 'number',
1428
+ body: RunVideoAnalysisResponseBody,
1429
+ };
1430
+ }
1431
+
1432
+ constructor(map?: { [key: string]: any }) {
1433
+ super(map);
1434
+ }
1435
+ }
1436
+
1437
+ export class GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages extends $tea.Model {
1438
+ /**
1439
+ * @example
1440
+ * http://xxx.com/xxx.jpeg
1441
+ */
1442
+ url?: string;
1443
+ static names(): { [key: string]: string } {
1444
+ return {
1445
+ url: 'url',
1446
+ };
1447
+ }
1448
+
1449
+ static types(): { [key: string]: any } {
1450
+ return {
1451
+ url: 'string',
1452
+ };
1453
+ }
1454
+
1455
+ constructor(map?: { [key: string]: any }) {
1456
+ super(map);
1457
+ }
1458
+ }
1459
+
1460
+ export class GenerateBroadcastNewsResponseBodyDataHotTopicSummaries extends $tea.Model {
1461
+ category?: string;
1462
+ hotTopic?: string;
1463
+ /**
1464
+ * @example
1465
+ * 2024-09-13_08
1466
+ */
1467
+ hotTopicVersion?: string;
1468
+ /**
1469
+ * @example
1470
+ * 1000000
1471
+ */
1472
+ hotValue?: number;
1473
+ /**
1474
+ * @example
1475
+ * 1458tb3bjo7531kap42a
1476
+ */
1477
+ id?: string;
1478
+ images?: GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages[];
1479
+ /**
1480
+ * @example
1481
+ * xxx
1482
+ */
1483
+ textSummary?: string;
1484
+ static names(): { [key: string]: string } {
1485
+ return {
1486
+ category: 'category',
1487
+ hotTopic: 'hotTopic',
1488
+ hotTopicVersion: 'hotTopicVersion',
1489
+ hotValue: 'hotValue',
1490
+ id: 'id',
1491
+ images: 'images',
1492
+ textSummary: 'textSummary',
1493
+ };
1494
+ }
1495
+
1496
+ static types(): { [key: string]: any } {
1497
+ return {
1498
+ category: 'string',
1499
+ hotTopic: 'string',
1500
+ hotTopicVersion: 'string',
1501
+ hotValue: 'number',
1502
+ id: 'string',
1503
+ images: { 'type': 'array', 'itemType': GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages },
1504
+ textSummary: 'string',
1505
+ };
1506
+ }
1507
+
1508
+ constructor(map?: { [key: string]: any }) {
1509
+ super(map);
1510
+ }
1511
+ }
1512
+
1513
+ export class GenerateBroadcastNewsResponseBodyDataUsage extends $tea.Model {
1514
+ /**
1515
+ * @example
1516
+ * 1
1517
+ */
1518
+ inputTokens?: number;
1519
+ /**
1520
+ * @example
1521
+ * 2
1522
+ */
1523
+ outputTokens?: number;
1524
+ /**
1525
+ * @example
1526
+ * 3
1527
+ */
1528
+ totalTokens?: number;
1529
+ static names(): { [key: string]: string } {
1530
+ return {
1531
+ inputTokens: 'inputTokens',
1532
+ outputTokens: 'outputTokens',
1533
+ totalTokens: 'totalTokens',
1534
+ };
1535
+ }
1536
+
1537
+ static types(): { [key: string]: any } {
1538
+ return {
1539
+ inputTokens: 'number',
1540
+ outputTokens: 'number',
1541
+ totalTokens: 'number',
1542
+ };
1543
+ }
1544
+
1545
+ constructor(map?: { [key: string]: any }) {
1546
+ super(map);
1547
+ }
1548
+ }
1549
+
1550
+ export class GenerateBroadcastNewsResponseBodyData extends $tea.Model {
1551
+ hotTopicSummaries?: GenerateBroadcastNewsResponseBodyDataHotTopicSummaries[];
1552
+ /**
1553
+ * @example
1554
+ * 2bb0ea82dafd48a8817fadc4c90e2b52
1555
+ */
1556
+ sessionId?: string;
1557
+ /**
1558
+ * @example
1559
+ * 3feb69ed02d9b1a17d0f1a942675d300
1560
+ */
1561
+ taskId?: string;
1562
+ text?: string;
1563
+ usage?: GenerateBroadcastNewsResponseBodyDataUsage;
1564
+ static names(): { [key: string]: string } {
1565
+ return {
1566
+ hotTopicSummaries: 'hotTopicSummaries',
1567
+ sessionId: 'sessionId',
1568
+ taskId: 'taskId',
1569
+ text: 'text',
1570
+ usage: 'usage',
1571
+ };
1572
+ }
1573
+
1574
+ static types(): { [key: string]: any } {
1575
+ return {
1576
+ hotTopicSummaries: { 'type': 'array', 'itemType': GenerateBroadcastNewsResponseBodyDataHotTopicSummaries },
1577
+ sessionId: 'string',
1578
+ taskId: 'string',
1579
+ text: 'string',
1580
+ usage: GenerateBroadcastNewsResponseBodyDataUsage,
1581
+ };
1582
+ }
1583
+
1584
+ constructor(map?: { [key: string]: any }) {
1585
+ super(map);
1586
+ }
1587
+ }
1588
+
1589
+ export class ListHotTopicSummariesResponseBodyDataNewsComments extends $tea.Model {
1590
+ /**
1591
+ * @example
1592
+ * xx
1593
+ */
1594
+ text?: string;
1595
+ static names(): { [key: string]: string } {
1596
+ return {
1597
+ text: 'text',
1598
+ };
1599
+ }
1600
+
1601
+ static types(): { [key: string]: any } {
1602
+ return {
1603
+ text: 'string',
1604
+ };
1605
+ }
1606
+
1607
+ constructor(map?: { [key: string]: any }) {
1608
+ super(map);
1609
+ }
1610
+ }
1611
+
1612
+ export class ListHotTopicSummariesResponseBodyDataNews extends $tea.Model {
1613
+ comments?: ListHotTopicSummariesResponseBodyDataNewsComments[];
1614
+ /**
1615
+ * @example
1616
+ * xx
1617
+ */
1618
+ content?: string;
1619
+ /**
1620
+ * @example
1621
+ * 2024-09-10 15:32:00
1622
+ */
1623
+ pubTime?: string;
1624
+ /**
1625
+ * @example
1626
+ * xx
1627
+ */
1628
+ title?: string;
1629
+ /**
1630
+ * @remarks
1631
+ * url
1632
+ *
1633
+ * @example
1634
+ * http://xxx
1635
+ */
1636
+ url?: string;
1637
+ static names(): { [key: string]: string } {
1638
+ return {
1639
+ comments: 'comments',
1640
+ content: 'content',
1641
+ pubTime: 'pubTime',
1642
+ title: 'title',
1643
+ url: 'url',
1644
+ };
1645
+ }
1646
+
1647
+ static types(): { [key: string]: any } {
1648
+ return {
1649
+ comments: { 'type': 'array', 'itemType': ListHotTopicSummariesResponseBodyDataNewsComments },
1650
+ content: 'string',
1651
+ pubTime: 'string',
1652
+ title: 'string',
1653
+ url: 'string',
1654
+ };
1655
+ }
1656
+
1657
+ constructor(map?: { [key: string]: any }) {
1658
+ super(map);
1659
+ }
1660
+ }
1661
+
1662
+ export class ListHotTopicSummariesResponseBodyDataSummarySummaries extends $tea.Model {
1663
+ /**
1664
+ * @example
1665
+ * xx
1666
+ */
1667
+ summary?: string;
1668
+ /**
1669
+ * @example
1670
+ * xx
1671
+ */
1672
+ title?: string;
1673
+ static names(): { [key: string]: string } {
1674
+ return {
1675
+ summary: 'summary',
1676
+ title: 'title',
1677
+ };
1678
+ }
1679
+
1680
+ static types(): { [key: string]: any } {
1681
+ return {
1682
+ summary: 'string',
1683
+ title: 'string',
1684
+ };
1685
+ }
1686
+
1687
+ constructor(map?: { [key: string]: any }) {
1688
+ super(map);
1689
+ }
1690
+ }
1691
+
1692
+ export class ListHotTopicSummariesResponseBodyDataSummary extends $tea.Model {
1693
+ summaries?: ListHotTopicSummariesResponseBodyDataSummarySummaries[];
1694
+ static names(): { [key: string]: string } {
1695
+ return {
1696
+ summaries: 'summaries',
1697
+ };
1698
+ }
1699
+
1700
+ static types(): { [key: string]: any } {
1701
+ return {
1702
+ summaries: { 'type': 'array', 'itemType': ListHotTopicSummariesResponseBodyDataSummarySummaries },
1703
+ };
1704
+ }
1705
+
1706
+ constructor(map?: { [key: string]: any }) {
1707
+ super(map);
1708
+ }
1709
+ }
1710
+
1711
+ export class ListHotTopicSummariesResponseBodyData extends $tea.Model {
1712
+ category?: string;
1713
+ /**
1714
+ * @example
1715
+ * xx
1716
+ */
1717
+ hotTopic?: string;
1718
+ /**
1719
+ * @example
1720
+ * 2024-09-13_12
1721
+ */
1722
+ hotTopicVersion?: string;
1723
+ /**
1724
+ * @example
1725
+ * 1000000
1726
+ */
1727
+ hotValue?: number;
1728
+ /**
1729
+ * @example
1730
+ * db5dc5b3d8954a30b65ba700c9dda3bb
1731
+ */
1732
+ id?: string;
1733
+ news?: ListHotTopicSummariesResponseBodyDataNews[];
1734
+ summary?: ListHotTopicSummariesResponseBodyDataSummary;
1735
+ /**
1736
+ * @example
1737
+ * xx
1738
+ */
1739
+ textSummary?: string;
1740
+ static names(): { [key: string]: string } {
1741
+ return {
1742
+ category: 'category',
1743
+ hotTopic: 'hotTopic',
1744
+ hotTopicVersion: 'hotTopicVersion',
1745
+ hotValue: 'hotValue',
1746
+ id: 'id',
1747
+ news: 'news',
1748
+ summary: 'summary',
1749
+ textSummary: 'textSummary',
1750
+ };
1751
+ }
1752
+
1753
+ static types(): { [key: string]: any } {
1754
+ return {
1755
+ category: 'string',
1756
+ hotTopic: 'string',
1757
+ hotTopicVersion: 'string',
1758
+ hotValue: 'number',
1759
+ id: 'string',
1760
+ news: { 'type': 'array', 'itemType': ListHotTopicSummariesResponseBodyDataNews },
1761
+ summary: ListHotTopicSummariesResponseBodyDataSummary,
1762
+ textSummary: 'string',
1763
+ };
1764
+ }
1765
+
1766
+ constructor(map?: { [key: string]: any }) {
1767
+ super(map);
1768
+ }
1769
+ }
1770
+
1771
+ export class RunCommentGenerationResponseBodyHeader extends $tea.Model {
1772
+ /**
1773
+ * @example
1774
+ * result-generated
1775
+ */
1776
+ event?: string;
1777
+ eventInfo?: string;
1778
+ /**
1779
+ * @example
1780
+ * F8A35034-EDCF-5C50-95A5-1044316F36E3
1781
+ */
1782
+ requestId?: string;
1783
+ /**
1784
+ * @example
1785
+ * tcm9xac9dsfbfgm8hf5k94l3cqybwh9o3mn0iuyytdgd9qoejxf1crxsdvuvr8fu0zuhbe8anhdaoeif2wbkmebagnezh23cuhkiazx2tmjh4eml791eak7t95sshvtkz14bh2lnbktzvdhialzd8reoaem0pktw41slinwyoabe75xlnxsqb5eo1i6ly70
1786
+ */
1787
+ sessionId?: string;
1788
+ /**
1789
+ * @example
1790
+ * task-fu1918oghtodbis3chgpfr
1791
+ */
1792
+ taskId?: string;
1793
+ /**
1794
+ * @example
1795
+ * 21507c3517074446017046500ed5f1
1796
+ */
1797
+ traceId?: string;
1798
+ static names(): { [key: string]: string } {
1799
+ return {
1800
+ event: 'event',
1801
+ eventInfo: 'eventInfo',
1802
+ requestId: 'requestId',
1803
+ sessionId: 'sessionId',
1804
+ taskId: 'taskId',
1805
+ traceId: 'traceId',
1806
+ };
1807
+ }
1808
+
1809
+ static types(): { [key: string]: any } {
1810
+ return {
1811
+ event: 'string',
1812
+ eventInfo: 'string',
1813
+ requestId: 'string',
1814
+ sessionId: 'string',
1815
+ taskId: 'string',
1816
+ traceId: 'string',
1817
+ };
1818
+ }
1819
+
1820
+ constructor(map?: { [key: string]: any }) {
1821
+ super(map);
1822
+ }
1823
+ }
1824
+
1825
+ export class RunCommentGenerationResponseBodyPayloadOutput extends $tea.Model {
1826
+ text?: string;
1827
+ static names(): { [key: string]: string } {
1828
+ return {
1829
+ text: 'text',
1830
+ };
1831
+ }
1832
+
1833
+ static types(): { [key: string]: any } {
1834
+ return {
1835
+ text: 'string',
1836
+ };
1837
+ }
1838
+
1839
+ constructor(map?: { [key: string]: any }) {
1840
+ super(map);
1841
+ }
1842
+ }
1843
+
1844
+ export class RunCommentGenerationResponseBodyPayloadUsage extends $tea.Model {
1845
+ /**
1846
+ * @example
1847
+ * 100
1848
+ */
1849
+ inputTokens?: number;
1850
+ /**
1851
+ * @example
1852
+ * 100
1853
+ */
1854
+ outputTokens?: number;
1855
+ /**
1856
+ * @example
1857
+ * 200
1858
+ */
1859
+ totalTokens?: number;
1860
+ static names(): { [key: string]: string } {
1861
+ return {
1862
+ inputTokens: 'inputTokens',
1863
+ outputTokens: 'outputTokens',
1864
+ totalTokens: 'totalTokens',
1865
+ };
1866
+ }
1867
+
1868
+ static types(): { [key: string]: any } {
1869
+ return {
1870
+ inputTokens: 'number',
1871
+ outputTokens: 'number',
1872
+ totalTokens: 'number',
1873
+ };
1874
+ }
1875
+
1876
+ constructor(map?: { [key: string]: any }) {
1877
+ super(map);
1878
+ }
1879
+ }
1880
+
1881
+ export class RunCommentGenerationResponseBodyPayload extends $tea.Model {
1882
+ output?: RunCommentGenerationResponseBodyPayloadOutput;
1883
+ usage?: RunCommentGenerationResponseBodyPayloadUsage;
1884
+ static names(): { [key: string]: string } {
1885
+ return {
1886
+ output: 'output',
1887
+ usage: 'usage',
1888
+ };
1889
+ }
1890
+
1891
+ static types(): { [key: string]: any } {
1892
+ return {
1893
+ output: RunCommentGenerationResponseBodyPayloadOutput,
1894
+ usage: RunCommentGenerationResponseBodyPayloadUsage,
1895
+ };
1896
+ }
1897
+
1898
+ constructor(map?: { [key: string]: any }) {
1899
+ super(map);
1900
+ }
1901
+ }
1902
+
1903
+ export class RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights extends $tea.Model {
1904
+ /**
1905
+ * @example
1906
+ * comments
1907
+ */
1908
+ dimension?: string;
1909
+ /**
1910
+ * @example
1911
+ * 1
1912
+ */
1913
+ weight?: number;
1914
+ static names(): { [key: string]: string } {
1915
+ return {
1916
+ dimension: 'dimension',
1917
+ weight: 'weight',
1918
+ };
1919
+ }
1920
+
1921
+ static types(): { [key: string]: any } {
1922
+ return {
1923
+ dimension: 'string',
1924
+ weight: 'number',
1925
+ };
1926
+ }
1927
+
1928
+ constructor(map?: { [key: string]: any }) {
1929
+ super(map);
1930
+ }
1931
+ }
1932
+
1933
+ export class RunHotTopicChatRequestStepForBroadcastContentConfig extends $tea.Model {
1934
+ categories?: string[];
1935
+ customHotValueWeights?: RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights[];
1936
+ /**
1937
+ * @example
1938
+ * 20
1939
+ */
1940
+ topicCount?: number;
1941
+ static names(): { [key: string]: string } {
1942
+ return {
1943
+ categories: 'categories',
1944
+ customHotValueWeights: 'customHotValueWeights',
1945
+ topicCount: 'topicCount',
1946
+ };
1947
+ }
1948
+
1949
+ static types(): { [key: string]: any } {
1950
+ return {
1951
+ categories: { 'type': 'array', 'itemType': 'string' },
1952
+ customHotValueWeights: { 'type': 'array', 'itemType': RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights },
1953
+ topicCount: 'number',
1954
+ };
1955
+ }
1956
+
1957
+ constructor(map?: { [key: string]: any }) {
1958
+ super(map);
1959
+ }
1960
+ }
1961
+
1962
+ export class RunHotTopicChatResponseBodyHeader extends $tea.Model {
1963
+ /**
1964
+ * @example
1965
+ * InvalidParam
1966
+ */
1967
+ errorCode?: string;
1968
+ /**
1969
+ * @example
1970
+ * xx
1971
+ */
1972
+ errorMessage?: string;
1973
+ /**
1974
+ * @example
1975
+ * task-finished
1976
+ */
1977
+ event?: string;
1978
+ /**
1979
+ * @example
1980
+ * xx
1981
+ */
1982
+ eventInfo?: string;
1983
+ /**
1984
+ * @example
1985
+ * xxx
1986
+ */
1987
+ sessionId?: string;
1988
+ /**
1989
+ * @example
1990
+ * d3be9981-ca2d-4e17-bf31-1c0a628e9f99
1991
+ */
1992
+ taskId?: string;
1993
+ /**
1994
+ * @example
1995
+ * 2150451a17191950923411783e2927
1996
+ */
1997
+ traceId?: string;
1998
+ static names(): { [key: string]: string } {
1999
+ return {
2000
+ errorCode: 'errorCode',
2001
+ errorMessage: 'errorMessage',
2002
+ event: 'event',
2003
+ eventInfo: 'eventInfo',
2004
+ sessionId: 'sessionId',
2005
+ taskId: 'taskId',
2006
+ traceId: 'traceId',
2007
+ };
2008
+ }
2009
+
2010
+ static types(): { [key: string]: any } {
2011
+ return {
2012
+ errorCode: 'string',
2013
+ errorMessage: 'string',
2014
+ event: 'string',
2015
+ eventInfo: 'string',
2016
+ sessionId: 'string',
2017
+ taskId: 'string',
2018
+ traceId: 'string',
2019
+ };
2020
+ }
2021
+
2022
+ constructor(map?: { [key: string]: any }) {
2023
+ super(map);
2024
+ }
2025
+ }
2026
+
2027
+ export class RunHotTopicChatResponseBodyPayloadOutputArticles extends $tea.Model {
714
2028
  /**
715
2029
  * @example
716
- * qwen-max
2030
+ * xxx
717
2031
  */
718
- modelId?: string;
2032
+ content?: string;
719
2033
  /**
720
2034
  * @example
721
- * a3d1c2ac-f086-4a21-9069-f5631542f5ax
2035
+ * 2024-09-22 16:45:06
722
2036
  */
723
- originalSessionId?: string;
2037
+ pubTime?: string;
2038
+ score?: number;
2039
+ searchSourceName?: string;
2040
+ select?: boolean;
724
2041
  /**
725
2042
  * @example
726
- * a3d1c2ac-f086-4a21-9069-f5631542f5a2
2043
+ * xx
727
2044
  */
728
- taskId?: string;
729
- videoModelCustomPromptTemplate?: string;
2045
+ summary?: string;
730
2046
  /**
731
2047
  * @example
732
- * qwen-vl-max
2048
+ * test
733
2049
  */
734
- videoModelId?: string;
2050
+ title?: string;
735
2051
  /**
736
2052
  * @example
737
- * http://xxxx.mp4
2053
+ * http://xxx
738
2054
  */
739
- videoUrl?: string;
2055
+ url?: string;
740
2056
  static names(): { [key: string]: string } {
741
2057
  return {
742
- generateOptions: 'generateOptions',
743
- modelCustomPromptTemplate: 'modelCustomPromptTemplate',
744
- modelCustomPromptTemplateId: 'modelCustomPromptTemplateId',
745
- modelId: 'modelId',
746
- originalSessionId: 'originalSessionId',
747
- taskId: 'taskId',
748
- videoModelCustomPromptTemplate: 'videoModelCustomPromptTemplate',
749
- videoModelId: 'videoModelId',
750
- videoUrl: 'videoUrl',
2058
+ content: 'content',
2059
+ pubTime: 'pubTime',
2060
+ score: 'score',
2061
+ searchSourceName: 'searchSourceName',
2062
+ select: 'select',
2063
+ summary: 'summary',
2064
+ title: 'title',
2065
+ url: 'url',
751
2066
  };
752
2067
  }
753
2068
 
754
2069
  static types(): { [key: string]: any } {
755
2070
  return {
756
- generateOptions: { 'type': 'array', 'itemType': 'string' },
757
- modelCustomPromptTemplate: 'string',
758
- modelCustomPromptTemplateId: 'string',
759
- modelId: 'string',
760
- originalSessionId: 'string',
761
- taskId: 'string',
762
- videoModelCustomPromptTemplate: 'string',
763
- videoModelId: 'string',
764
- videoUrl: 'string',
2071
+ content: 'string',
2072
+ pubTime: 'string',
2073
+ score: 'number',
2074
+ searchSourceName: 'string',
2075
+ select: 'boolean',
2076
+ summary: 'string',
2077
+ title: 'string',
2078
+ url: 'string',
765
2079
  };
766
2080
  }
767
2081
 
@@ -770,65 +2084,75 @@ export class RunVideoAnalysisRequest extends $tea.Model {
770
2084
  }
771
2085
  }
772
2086
 
773
- export class RunVideoAnalysisShrinkRequest extends $tea.Model {
774
- generateOptionsShrink?: string;
775
- modelCustomPromptTemplate?: string;
2087
+ export class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries extends $tea.Model {
776
2088
  /**
777
2089
  * @example
778
- * PlotDetail
2090
+ * 100000
779
2091
  */
780
- modelCustomPromptTemplateId?: string;
2092
+ customHotValue?: number;
781
2093
  /**
782
2094
  * @example
783
- * qwen-max
2095
+ * xx
784
2096
  */
785
- modelId?: string;
2097
+ hotTopic?: string;
786
2098
  /**
787
2099
  * @example
788
- * a3d1c2ac-f086-4a21-9069-f5631542f5ax
2100
+ * 2024-09-13_08
789
2101
  */
790
- originalSessionId?: string;
2102
+ hotTopicVersion?: string;
791
2103
  /**
792
2104
  * @example
793
- * a3d1c2ac-f086-4a21-9069-f5631542f5a2
2105
+ * 100000
794
2106
  */
795
- taskId?: string;
796
- videoModelCustomPromptTemplate?: string;
2107
+ hotValue?: number;
2108
+ static names(): { [key: string]: string } {
2109
+ return {
2110
+ customHotValue: 'customHotValue',
2111
+ hotTopic: 'hotTopic',
2112
+ hotTopicVersion: 'hotTopicVersion',
2113
+ hotValue: 'hotValue',
2114
+ };
2115
+ }
2116
+
2117
+ static types(): { [key: string]: any } {
2118
+ return {
2119
+ customHotValue: 'number',
2120
+ hotTopic: 'string',
2121
+ hotTopicVersion: 'string',
2122
+ hotValue: 'number',
2123
+ };
2124
+ }
2125
+
2126
+ constructor(map?: { [key: string]: any }) {
2127
+ super(map);
2128
+ }
2129
+ }
2130
+
2131
+ export class RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias extends $tea.Model {
797
2132
  /**
798
2133
  * @example
799
- * qwen-vl-max
2134
+ * http://xxxx
800
2135
  */
801
- videoModelId?: string;
2136
+ fileUrl?: string;
802
2137
  /**
803
2138
  * @example
804
- * http://xxxx.mp4
2139
+ * image
805
2140
  */
806
- videoUrl?: string;
2141
+ mediaType?: string;
2142
+ sortScore?: number;
807
2143
  static names(): { [key: string]: string } {
808
2144
  return {
809
- generateOptionsShrink: 'generateOptions',
810
- modelCustomPromptTemplate: 'modelCustomPromptTemplate',
811
- modelCustomPromptTemplateId: 'modelCustomPromptTemplateId',
812
- modelId: 'modelId',
813
- originalSessionId: 'originalSessionId',
814
- taskId: 'taskId',
815
- videoModelCustomPromptTemplate: 'videoModelCustomPromptTemplate',
816
- videoModelId: 'videoModelId',
817
- videoUrl: 'videoUrl',
2145
+ fileUrl: 'fileUrl',
2146
+ mediaType: 'mediaType',
2147
+ sortScore: 'sortScore',
818
2148
  };
819
2149
  }
820
2150
 
821
2151
  static types(): { [key: string]: any } {
822
2152
  return {
823
- generateOptionsShrink: 'string',
824
- modelCustomPromptTemplate: 'string',
825
- modelCustomPromptTemplateId: 'string',
826
- modelId: 'string',
827
- originalSessionId: 'string',
828
- taskId: 'string',
829
- videoModelCustomPromptTemplate: 'string',
830
- videoModelId: 'string',
831
- videoUrl: 'string',
2153
+ fileUrl: 'string',
2154
+ mediaType: 'string',
2155
+ sortScore: 'number',
832
2156
  };
833
2157
  }
834
2158
 
@@ -837,27 +2161,36 @@ export class RunVideoAnalysisShrinkRequest extends $tea.Model {
837
2161
  }
838
2162
  }
839
2163
 
840
- export class RunVideoAnalysisResponseBody extends $tea.Model {
841
- header?: RunVideoAnalysisResponseBodyHeader;
842
- payload?: RunVideoAnalysisResponseBodyPayload;
2164
+ export class RunHotTopicChatResponseBodyPayloadOutput extends $tea.Model {
2165
+ articles?: RunHotTopicChatResponseBodyPayloadOutputArticles[];
2166
+ hotTopicSummaries?: RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries[];
2167
+ multimodalMedias?: RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias[];
2168
+ recommendQueries?: string[];
2169
+ searchQuery?: string;
843
2170
  /**
844
2171
  * @example
845
- * 117F5ABE-CF02-5502-9A3F-E56BC9081A64
2172
+ * xx
846
2173
  */
847
- requestId?: string;
2174
+ text?: string;
848
2175
  static names(): { [key: string]: string } {
849
2176
  return {
850
- header: 'header',
851
- payload: 'payload',
852
- requestId: 'requestId',
2177
+ articles: 'articles',
2178
+ hotTopicSummaries: 'hotTopicSummaries',
2179
+ multimodalMedias: 'multimodalMedias',
2180
+ recommendQueries: 'recommendQueries',
2181
+ searchQuery: 'searchQuery',
2182
+ text: 'text',
853
2183
  };
854
2184
  }
855
2185
 
856
2186
  static types(): { [key: string]: any } {
857
2187
  return {
858
- header: RunVideoAnalysisResponseBodyHeader,
859
- payload: RunVideoAnalysisResponseBodyPayload,
860
- requestId: 'string',
2188
+ articles: { 'type': 'array', 'itemType': RunHotTopicChatResponseBodyPayloadOutputArticles },
2189
+ hotTopicSummaries: { 'type': 'array', 'itemType': RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries },
2190
+ multimodalMedias: { 'type': 'array', 'itemType': RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias },
2191
+ recommendQueries: { 'type': 'array', 'itemType': 'string' },
2192
+ searchQuery: 'string',
2193
+ text: 'string',
861
2194
  };
862
2195
  }
863
2196
 
@@ -866,23 +2199,35 @@ export class RunVideoAnalysisResponseBody extends $tea.Model {
866
2199
  }
867
2200
  }
868
2201
 
869
- export class RunVideoAnalysisResponse extends $tea.Model {
870
- headers?: { [key: string]: string };
871
- statusCode?: number;
872
- body?: RunVideoAnalysisResponseBody;
2202
+ export class RunHotTopicChatResponseBodyPayloadUsage extends $tea.Model {
2203
+ /**
2204
+ * @example
2205
+ * 100
2206
+ */
2207
+ inputTokens?: number;
2208
+ /**
2209
+ * @example
2210
+ * 100
2211
+ */
2212
+ outputTokens?: number;
2213
+ /**
2214
+ * @example
2215
+ * 200
2216
+ */
2217
+ totalTokens?: number;
873
2218
  static names(): { [key: string]: string } {
874
2219
  return {
875
- headers: 'headers',
876
- statusCode: 'statusCode',
877
- body: 'body',
2220
+ inputTokens: 'inputTokens',
2221
+ outputTokens: 'outputTokens',
2222
+ totalTokens: 'totalTokens',
878
2223
  };
879
2224
  }
880
2225
 
881
2226
  static types(): { [key: string]: any } {
882
2227
  return {
883
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
884
- statusCode: 'number',
885
- body: RunVideoAnalysisResponseBody,
2228
+ inputTokens: 'number',
2229
+ outputTokens: 'number',
2230
+ totalTokens: 'number',
886
2231
  };
887
2232
  }
888
2233
 
@@ -891,21 +2236,20 @@ export class RunVideoAnalysisResponse extends $tea.Model {
891
2236
  }
892
2237
  }
893
2238
 
894
- export class ListHotTopicSummariesResponseBodyDataNewsComments extends $tea.Model {
895
- /**
896
- * @example
897
- * xx
898
- */
899
- text?: string;
2239
+ export class RunHotTopicChatResponseBodyPayload extends $tea.Model {
2240
+ output?: RunHotTopicChatResponseBodyPayloadOutput;
2241
+ usage?: RunHotTopicChatResponseBodyPayloadUsage;
900
2242
  static names(): { [key: string]: string } {
901
2243
  return {
902
- text: 'text',
2244
+ output: 'output',
2245
+ usage: 'usage',
903
2246
  };
904
2247
  }
905
2248
 
906
2249
  static types(): { [key: string]: any } {
907
2250
  return {
908
- text: 'string',
2251
+ output: RunHotTopicChatResponseBodyPayloadOutput,
2252
+ usage: RunHotTopicChatResponseBodyPayloadUsage,
909
2253
  };
910
2254
  }
911
2255
 
@@ -914,48 +2258,38 @@ export class ListHotTopicSummariesResponseBodyDataNewsComments extends $tea.Mode
914
2258
  }
915
2259
  }
916
2260
 
917
- export class ListHotTopicSummariesResponseBodyDataNews extends $tea.Model {
918
- comments?: ListHotTopicSummariesResponseBodyDataNewsComments[];
919
- /**
920
- * @example
921
- * xx
922
- */
923
- content?: string;
2261
+ export class RunHotTopicSummaryRequestStepForCustomSummaryStyleConfig extends $tea.Model {
924
2262
  /**
925
2263
  * @example
926
- * 2024-09-10 15:32:00
2264
+ * 2
927
2265
  */
928
- pubTime?: string;
2266
+ summaryImageCount?: number;
929
2267
  /**
2268
+ * @remarks
2269
+ * This parameter is required.
2270
+ *
930
2271
  * @example
931
- * xx
2272
+ * qwen-max
932
2273
  */
933
- title?: string;
2274
+ summaryModel?: string;
934
2275
  /**
935
- * @remarks
936
- * url
937
- *
938
2276
  * @example
939
- * http://xxx
2277
+ * xxxx
940
2278
  */
941
- url?: string;
2279
+ summaryPrompt?: string;
942
2280
  static names(): { [key: string]: string } {
943
2281
  return {
944
- comments: 'comments',
945
- content: 'content',
946
- pubTime: 'pubTime',
947
- title: 'title',
948
- url: 'url',
2282
+ summaryImageCount: 'summaryImageCount',
2283
+ summaryModel: 'summaryModel',
2284
+ summaryPrompt: 'summaryPrompt',
949
2285
  };
950
2286
  }
951
2287
 
952
2288
  static types(): { [key: string]: any } {
953
2289
  return {
954
- comments: { 'type': 'array', 'itemType': ListHotTopicSummariesResponseBodyDataNewsComments },
955
- content: 'string',
956
- pubTime: 'string',
957
- title: 'string',
958
- url: 'string',
2290
+ summaryImageCount: 'number',
2291
+ summaryModel: 'string',
2292
+ summaryPrompt: 'string',
959
2293
  };
960
2294
  }
961
2295
 
@@ -964,28 +2298,56 @@ export class ListHotTopicSummariesResponseBodyDataNews extends $tea.Model {
964
2298
  }
965
2299
  }
966
2300
 
967
- export class ListHotTopicSummariesResponseBodyDataSummarySummaries extends $tea.Model {
2301
+ export class RunHotTopicSummaryResponseBodyHeader extends $tea.Model {
968
2302
  /**
969
2303
  * @example
970
- * xx
2304
+ * AccessForbidden
971
2305
  */
972
- summary?: string;
2306
+ errorCode?: string;
973
2307
  /**
974
2308
  * @example
975
- * xx
2309
+ * 错误信息
976
2310
  */
977
- title?: string;
2311
+ errorMessage?: string;
2312
+ /**
2313
+ * @example
2314
+ * task-finished
2315
+ */
2316
+ event?: string;
2317
+ /**
2318
+ * @example
2319
+ * xxxx
2320
+ */
2321
+ sessionId?: string;
2322
+ /**
2323
+ * @example
2324
+ * xxxx
2325
+ */
2326
+ taskId?: string;
2327
+ /**
2328
+ * @example
2329
+ * xxxxx
2330
+ */
2331
+ traceId?: string;
978
2332
  static names(): { [key: string]: string } {
979
2333
  return {
980
- summary: 'summary',
981
- title: 'title',
2334
+ errorCode: 'errorCode',
2335
+ errorMessage: 'errorMessage',
2336
+ event: 'event',
2337
+ sessionId: 'sessionId',
2338
+ taskId: 'taskId',
2339
+ traceId: 'traceId',
982
2340
  };
983
2341
  }
984
2342
 
985
2343
  static types(): { [key: string]: any } {
986
2344
  return {
987
- summary: 'string',
988
- title: 'string',
2345
+ errorCode: 'string',
2346
+ errorMessage: 'string',
2347
+ event: 'string',
2348
+ sessionId: 'string',
2349
+ taskId: 'string',
2350
+ traceId: 'string',
989
2351
  };
990
2352
  }
991
2353
 
@@ -994,17 +2356,20 @@ export class ListHotTopicSummariesResponseBodyDataSummarySummaries extends $tea.
994
2356
  }
995
2357
  }
996
2358
 
997
- export class ListHotTopicSummariesResponseBodyDataSummary extends $tea.Model {
998
- summaries?: ListHotTopicSummariesResponseBodyDataSummarySummaries[];
2359
+ export class RunHotTopicSummaryResponseBodyPayloadOutput extends $tea.Model {
2360
+ text?: string;
2361
+ topicId?: string;
999
2362
  static names(): { [key: string]: string } {
1000
2363
  return {
1001
- summaries: 'summaries',
2364
+ text: 'text',
2365
+ topicId: 'topicId',
1002
2366
  };
1003
2367
  }
1004
2368
 
1005
2369
  static types(): { [key: string]: any } {
1006
2370
  return {
1007
- summaries: { 'type': 'array', 'itemType': ListHotTopicSummariesResponseBodyDataSummarySummaries },
2371
+ text: 'string',
2372
+ topicId: 'string',
1008
2373
  };
1009
2374
  }
1010
2375
 
@@ -1013,58 +2378,57 @@ export class ListHotTopicSummariesResponseBodyDataSummary extends $tea.Model {
1013
2378
  }
1014
2379
  }
1015
2380
 
1016
- export class ListHotTopicSummariesResponseBodyData extends $tea.Model {
1017
- category?: string;
1018
- /**
1019
- * @example
1020
- * xx
1021
- */
1022
- hotTopic?: string;
2381
+ export class RunHotTopicSummaryResponseBodyPayloadUsage extends $tea.Model {
1023
2382
  /**
1024
2383
  * @example
1025
- * 2024-09-13_12
1026
- */
1027
- hotTopicVersion?: string;
1028
- /**
1029
- * @example
1030
- * 1000000
2384
+ * 100
1031
2385
  */
1032
- hotValue?: number;
2386
+ inputTokens?: number;
1033
2387
  /**
1034
2388
  * @example
1035
- * db5dc5b3d8954a30b65ba700c9dda3bb
2389
+ * 100
1036
2390
  */
1037
- id?: string;
1038
- news?: ListHotTopicSummariesResponseBodyDataNews[];
1039
- summary?: ListHotTopicSummariesResponseBodyDataSummary;
2391
+ outputTokens?: number;
1040
2392
  /**
1041
2393
  * @example
1042
- * xx
2394
+ * 200
1043
2395
  */
1044
- textSummary?: string;
2396
+ totalTokens?: number;
1045
2397
  static names(): { [key: string]: string } {
1046
2398
  return {
1047
- category: 'category',
1048
- hotTopic: 'hotTopic',
1049
- hotTopicVersion: 'hotTopicVersion',
1050
- hotValue: 'hotValue',
1051
- id: 'id',
1052
- news: 'news',
1053
- summary: 'summary',
1054
- textSummary: 'textSummary',
2399
+ inputTokens: 'inputTokens',
2400
+ outputTokens: 'outputTokens',
2401
+ totalTokens: 'totalTokens',
1055
2402
  };
1056
2403
  }
1057
2404
 
1058
2405
  static types(): { [key: string]: any } {
1059
2406
  return {
1060
- category: 'string',
1061
- hotTopic: 'string',
1062
- hotTopicVersion: 'string',
1063
- hotValue: 'number',
1064
- id: 'string',
1065
- news: { 'type': 'array', 'itemType': ListHotTopicSummariesResponseBodyDataNews },
1066
- summary: ListHotTopicSummariesResponseBodyDataSummary,
1067
- textSummary: 'string',
2407
+ inputTokens: 'number',
2408
+ outputTokens: 'number',
2409
+ totalTokens: 'number',
2410
+ };
2411
+ }
2412
+
2413
+ constructor(map?: { [key: string]: any }) {
2414
+ super(map);
2415
+ }
2416
+ }
2417
+
2418
+ export class RunHotTopicSummaryResponseBodyPayload extends $tea.Model {
2419
+ output?: RunHotTopicSummaryResponseBodyPayloadOutput;
2420
+ usage?: RunHotTopicSummaryResponseBodyPayloadUsage;
2421
+ static names(): { [key: string]: string } {
2422
+ return {
2423
+ output: 'output',
2424
+ usage: 'usage',
2425
+ };
2426
+ }
2427
+
2428
+ static types(): { [key: string]: any } {
2429
+ return {
2430
+ output: RunHotTopicSummaryResponseBodyPayloadOutput,
2431
+ usage: RunHotTopicSummaryResponseBodyPayloadUsage,
1068
2432
  };
1069
2433
  }
1070
2434
 
@@ -2404,6 +3768,51 @@ export default class Client extends OpenApi {
2404
3768
  return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
2405
3769
  }
2406
3770
 
3771
+ /**
3772
+ * 新闻播报-抽取分类获取播报热点
3773
+ *
3774
+ * @param request - GenerateBroadcastNewsRequest
3775
+ * @param headers - map
3776
+ * @param runtime - runtime options for this request RuntimeOptions
3777
+ * @returns GenerateBroadcastNewsResponse
3778
+ */
3779
+ async generateBroadcastNewsWithOptions(workspaceId: string, request: GenerateBroadcastNewsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GenerateBroadcastNewsResponse> {
3780
+ Util.validateModel(request);
3781
+ let body : {[key: string ]: any} = { };
3782
+ if (!Util.isUnset(request.prompt)) {
3783
+ body["prompt"] = request.prompt;
3784
+ }
3785
+
3786
+ let req = new $OpenApi.OpenApiRequest({
3787
+ headers: headers,
3788
+ body: OpenApiUtil.parseToMap(body),
3789
+ });
3790
+ let params = new $OpenApi.Params({
3791
+ action: "GenerateBroadcastNews",
3792
+ version: "2024-08-01",
3793
+ protocol: "HTTPS",
3794
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/quanmiao/lightapp/GenerateBroadcastNews`,
3795
+ method: "POST",
3796
+ authType: "AK",
3797
+ style: "ROA",
3798
+ reqBodyType: "formData",
3799
+ bodyType: "json",
3800
+ });
3801
+ return $tea.cast<GenerateBroadcastNewsResponse>(await this.callApi(params, req, runtime), new GenerateBroadcastNewsResponse({}));
3802
+ }
3803
+
3804
+ /**
3805
+ * 新闻播报-抽取分类获取播报热点
3806
+ *
3807
+ * @param request - GenerateBroadcastNewsRequest
3808
+ * @returns GenerateBroadcastNewsResponse
3809
+ */
3810
+ async generateBroadcastNews(workspaceId: string, request: GenerateBroadcastNewsRequest): Promise<GenerateBroadcastNewsResponse> {
3811
+ let runtime = new $Util.RuntimeOptions({ });
3812
+ let headers : {[key: string ]: string} = { };
3813
+ return await this.generateBroadcastNewsWithOptions(workspaceId, request, headers, runtime);
3814
+ }
3815
+
2407
3816
  /**
2408
3817
  * 轻应用-新闻播报-获取热点话题摘要列表
2409
3818
  *
@@ -2465,6 +3874,225 @@ export default class Client extends OpenApi {
2465
3874
  return await this.listHotTopicSummariesWithOptions(workspaceId, request, headers, runtime);
2466
3875
  }
2467
3876
 
3877
+ /**
3878
+ * 评论生成服务
3879
+ *
3880
+ * @param request - RunCommentGenerationRequest
3881
+ * @param headers - map
3882
+ * @param runtime - runtime options for this request RuntimeOptions
3883
+ * @returns RunCommentGenerationResponse
3884
+ */
3885
+ async runCommentGenerationWithOptions(workspaceId: string, request: RunCommentGenerationRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RunCommentGenerationResponse> {
3886
+ Util.validateModel(request);
3887
+ let body : {[key: string ]: any} = { };
3888
+ if (!Util.isUnset(request.length)) {
3889
+ body["length"] = request.length;
3890
+ }
3891
+
3892
+ if (!Util.isUnset(request.numComments)) {
3893
+ body["numComments"] = request.numComments;
3894
+ }
3895
+
3896
+ if (!Util.isUnset(request.sourceMaterial)) {
3897
+ body["sourceMaterial"] = request.sourceMaterial;
3898
+ }
3899
+
3900
+ if (!Util.isUnset(request.style)) {
3901
+ body["style"] = request.style;
3902
+ }
3903
+
3904
+ let req = new $OpenApi.OpenApiRequest({
3905
+ headers: headers,
3906
+ body: OpenApiUtil.parseToMap(body),
3907
+ });
3908
+ let params = new $OpenApi.Params({
3909
+ action: "RunCommentGeneration",
3910
+ version: "2024-08-01",
3911
+ protocol: "HTTPS",
3912
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/quanmiao/lightapp/runCommentGeneration`,
3913
+ method: "POST",
3914
+ authType: "AK",
3915
+ style: "ROA",
3916
+ reqBodyType: "formData",
3917
+ bodyType: "json",
3918
+ });
3919
+ return $tea.cast<RunCommentGenerationResponse>(await this.callApi(params, req, runtime), new RunCommentGenerationResponse({}));
3920
+ }
3921
+
3922
+ /**
3923
+ * 评论生成服务
3924
+ *
3925
+ * @param request - RunCommentGenerationRequest
3926
+ * @returns RunCommentGenerationResponse
3927
+ */
3928
+ async runCommentGeneration(workspaceId: string, request: RunCommentGenerationRequest): Promise<RunCommentGenerationResponse> {
3929
+ let runtime = new $Util.RuntimeOptions({ });
3930
+ let headers : {[key: string ]: string} = { };
3931
+ return await this.runCommentGenerationWithOptions(workspaceId, request, headers, runtime);
3932
+ }
3933
+
3934
+ /**
3935
+ * 轻应用-热点播报-问答
3936
+ *
3937
+ * @param tmpReq - RunHotTopicChatRequest
3938
+ * @param headers - map
3939
+ * @param runtime - runtime options for this request RuntimeOptions
3940
+ * @returns RunHotTopicChatResponse
3941
+ */
3942
+ async runHotTopicChatWithOptions(workspaceId: string, tmpReq: RunHotTopicChatRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RunHotTopicChatResponse> {
3943
+ Util.validateModel(tmpReq);
3944
+ let request = new RunHotTopicChatShrinkRequest({ });
3945
+ OpenApiUtil.convert(tmpReq, request);
3946
+ if (!Util.isUnset(tmpReq.generateOptions)) {
3947
+ request.generateOptionsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.generateOptions, "generateOptions", "json");
3948
+ }
3949
+
3950
+ if (!Util.isUnset(tmpReq.hotTopics)) {
3951
+ request.hotTopicsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.hotTopics, "hotTopics", "json");
3952
+ }
3953
+
3954
+ if (!Util.isUnset(tmpReq.stepForBroadcastContentConfig)) {
3955
+ request.stepForBroadcastContentConfigShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.stepForBroadcastContentConfig, "stepForBroadcastContentConfig", "json");
3956
+ }
3957
+
3958
+ let body : {[key: string ]: any} = { };
3959
+ if (!Util.isUnset(request.category)) {
3960
+ body["category"] = request.category;
3961
+ }
3962
+
3963
+ if (!Util.isUnset(request.generateOptionsShrink)) {
3964
+ body["generateOptions"] = request.generateOptionsShrink;
3965
+ }
3966
+
3967
+ if (!Util.isUnset(request.hotTopicVersion)) {
3968
+ body["hotTopicVersion"] = request.hotTopicVersion;
3969
+ }
3970
+
3971
+ if (!Util.isUnset(request.hotTopicsShrink)) {
3972
+ body["hotTopics"] = request.hotTopicsShrink;
3973
+ }
3974
+
3975
+ if (!Util.isUnset(request.imageCount)) {
3976
+ body["imageCount"] = request.imageCount;
3977
+ }
3978
+
3979
+ if (!Util.isUnset(request.modelCustomPromptTemplate)) {
3980
+ body["modelCustomPromptTemplate"] = request.modelCustomPromptTemplate;
3981
+ }
3982
+
3983
+ if (!Util.isUnset(request.modelId)) {
3984
+ body["modelId"] = request.modelId;
3985
+ }
3986
+
3987
+ if (!Util.isUnset(request.originalSessionId)) {
3988
+ body["originalSessionId"] = request.originalSessionId;
3989
+ }
3990
+
3991
+ if (!Util.isUnset(request.prompt)) {
3992
+ body["prompt"] = request.prompt;
3993
+ }
3994
+
3995
+ if (!Util.isUnset(request.stepForBroadcastContentConfigShrink)) {
3996
+ body["stepForBroadcastContentConfig"] = request.stepForBroadcastContentConfigShrink;
3997
+ }
3998
+
3999
+ if (!Util.isUnset(request.taskId)) {
4000
+ body["taskId"] = request.taskId;
4001
+ }
4002
+
4003
+ let req = new $OpenApi.OpenApiRequest({
4004
+ headers: headers,
4005
+ body: OpenApiUtil.parseToMap(body),
4006
+ });
4007
+ let params = new $OpenApi.Params({
4008
+ action: "RunHotTopicChat",
4009
+ version: "2024-08-01",
4010
+ protocol: "HTTPS",
4011
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/quanmiao/lightapp/runHotTopicChat`,
4012
+ method: "POST",
4013
+ authType: "AK",
4014
+ style: "ROA",
4015
+ reqBodyType: "formData",
4016
+ bodyType: "json",
4017
+ });
4018
+ return $tea.cast<RunHotTopicChatResponse>(await this.callApi(params, req, runtime), new RunHotTopicChatResponse({}));
4019
+ }
4020
+
4021
+ /**
4022
+ * 轻应用-热点播报-问答
4023
+ *
4024
+ * @param request - RunHotTopicChatRequest
4025
+ * @returns RunHotTopicChatResponse
4026
+ */
4027
+ async runHotTopicChat(workspaceId: string, request: RunHotTopicChatRequest): Promise<RunHotTopicChatResponse> {
4028
+ let runtime = new $Util.RuntimeOptions({ });
4029
+ let headers : {[key: string ]: string} = { };
4030
+ return await this.runHotTopicChatWithOptions(workspaceId, request, headers, runtime);
4031
+ }
4032
+
4033
+ /**
4034
+ * 轻应用-热点播报-热点摘要生成
4035
+ *
4036
+ * @param tmpReq - RunHotTopicSummaryRequest
4037
+ * @param headers - map
4038
+ * @param runtime - runtime options for this request RuntimeOptions
4039
+ * @returns RunHotTopicSummaryResponse
4040
+ */
4041
+ async runHotTopicSummaryWithOptions(workspaceId: string, tmpReq: RunHotTopicSummaryRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RunHotTopicSummaryResponse> {
4042
+ Util.validateModel(tmpReq);
4043
+ let request = new RunHotTopicSummaryShrinkRequest({ });
4044
+ OpenApiUtil.convert(tmpReq, request);
4045
+ if (!Util.isUnset(tmpReq.stepForCustomSummaryStyleConfig)) {
4046
+ request.stepForCustomSummaryStyleConfigShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.stepForCustomSummaryStyleConfig, "stepForCustomSummaryStyleConfig", "json");
4047
+ }
4048
+
4049
+ if (!Util.isUnset(tmpReq.topicIds)) {
4050
+ request.topicIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.topicIds, "topicIds", "json");
4051
+ }
4052
+
4053
+ let body : {[key: string ]: any} = { };
4054
+ if (!Util.isUnset(request.hotTopicVersion)) {
4055
+ body["hotTopicVersion"] = request.hotTopicVersion;
4056
+ }
4057
+
4058
+ if (!Util.isUnset(request.stepForCustomSummaryStyleConfigShrink)) {
4059
+ body["stepForCustomSummaryStyleConfig"] = request.stepForCustomSummaryStyleConfigShrink;
4060
+ }
4061
+
4062
+ if (!Util.isUnset(request.topicIdsShrink)) {
4063
+ body["topicIds"] = request.topicIdsShrink;
4064
+ }
4065
+
4066
+ let req = new $OpenApi.OpenApiRequest({
4067
+ headers: headers,
4068
+ body: OpenApiUtil.parseToMap(body),
4069
+ });
4070
+ let params = new $OpenApi.Params({
4071
+ action: "RunHotTopicSummary",
4072
+ version: "2024-08-01",
4073
+ protocol: "HTTPS",
4074
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/quanmiao/lightapp/runHotTopicSummary`,
4075
+ method: "POST",
4076
+ authType: "AK",
4077
+ style: "ROA",
4078
+ reqBodyType: "formData",
4079
+ bodyType: "json",
4080
+ });
4081
+ return $tea.cast<RunHotTopicSummaryResponse>(await this.callApi(params, req, runtime), new RunHotTopicSummaryResponse({}));
4082
+ }
4083
+
4084
+ /**
4085
+ * 轻应用-热点播报-热点摘要生成
4086
+ *
4087
+ * @param request - RunHotTopicSummaryRequest
4088
+ * @returns RunHotTopicSummaryResponse
4089
+ */
4090
+ async runHotTopicSummary(workspaceId: string, request: RunHotTopicSummaryRequest): Promise<RunHotTopicSummaryResponse> {
4091
+ let runtime = new $Util.RuntimeOptions({ });
4092
+ let headers : {[key: string ]: string} = { };
4093
+ return await this.runHotTopicSummaryWithOptions(workspaceId, request, headers, runtime);
4094
+ }
4095
+
2468
4096
  /**
2469
4097
  * 营销信息抽取服务
2470
4098
  *
@@ -2811,10 +4439,18 @@ export default class Client extends OpenApi {
2811
4439
  body["originalSessionId"] = request.originalSessionId;
2812
4440
  }
2813
4441
 
4442
+ if (!Util.isUnset(request.snapshotInterval)) {
4443
+ body["snapshotInterval"] = request.snapshotInterval;
4444
+ }
4445
+
2814
4446
  if (!Util.isUnset(request.taskId)) {
2815
4447
  body["taskId"] = request.taskId;
2816
4448
  }
2817
4449
 
4450
+ if (!Util.isUnset(request.videoExtraInfo)) {
4451
+ body["videoExtraInfo"] = request.videoExtraInfo;
4452
+ }
4453
+
2818
4454
  if (!Util.isUnset(request.videoModelCustomPromptTemplate)) {
2819
4455
  body["videoModelCustomPromptTemplate"] = request.videoModelCustomPromptTemplate;
2820
4456
  }