@alicloud/quanmiaolightapp20240801 1.2.0 → 1.4.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 +350 -0
- package/dist/client.js +401 -2
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +594 -0
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,6 +260,92 @@ export class ListHotTopicSummariesResponse extends $tea.Model {
|
|
|
158
260
|
}
|
|
159
261
|
}
|
|
160
262
|
|
|
263
|
+
export class RunCommentGenerationRequest extends $tea.Model {
|
|
264
|
+
/**
|
|
265
|
+
* @example
|
|
266
|
+
* 20
|
|
267
|
+
*/
|
|
268
|
+
length?: string;
|
|
269
|
+
/**
|
|
270
|
+
* @example
|
|
271
|
+
* 10
|
|
272
|
+
*/
|
|
273
|
+
numComments?: string;
|
|
274
|
+
sourceMaterial?: string;
|
|
275
|
+
style?: string;
|
|
276
|
+
static names(): { [key: string]: string } {
|
|
277
|
+
return {
|
|
278
|
+
length: 'length',
|
|
279
|
+
numComments: 'numComments',
|
|
280
|
+
sourceMaterial: 'sourceMaterial',
|
|
281
|
+
style: 'style',
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
static types(): { [key: string]: any } {
|
|
286
|
+
return {
|
|
287
|
+
length: 'string',
|
|
288
|
+
numComments: 'string',
|
|
289
|
+
sourceMaterial: 'string',
|
|
290
|
+
style: 'string',
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
constructor(map?: { [key: string]: any }) {
|
|
295
|
+
super(map);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export class RunCommentGenerationResponseBody extends $tea.Model {
|
|
300
|
+
end?: boolean;
|
|
301
|
+
header?: RunCommentGenerationResponseBodyHeader;
|
|
302
|
+
payload?: RunCommentGenerationResponseBodyPayload;
|
|
303
|
+
static names(): { [key: string]: string } {
|
|
304
|
+
return {
|
|
305
|
+
end: 'end',
|
|
306
|
+
header: 'header',
|
|
307
|
+
payload: 'payload',
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
static types(): { [key: string]: any } {
|
|
312
|
+
return {
|
|
313
|
+
end: 'boolean',
|
|
314
|
+
header: RunCommentGenerationResponseBodyHeader,
|
|
315
|
+
payload: RunCommentGenerationResponseBodyPayload,
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
constructor(map?: { [key: string]: any }) {
|
|
320
|
+
super(map);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export class RunCommentGenerationResponse extends $tea.Model {
|
|
325
|
+
headers?: { [key: string]: string };
|
|
326
|
+
statusCode?: number;
|
|
327
|
+
body?: RunCommentGenerationResponseBody;
|
|
328
|
+
static names(): { [key: string]: string } {
|
|
329
|
+
return {
|
|
330
|
+
headers: 'headers',
|
|
331
|
+
statusCode: 'statusCode',
|
|
332
|
+
body: 'body',
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
static types(): { [key: string]: any } {
|
|
337
|
+
return {
|
|
338
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
339
|
+
statusCode: 'number',
|
|
340
|
+
body: RunCommentGenerationResponseBody,
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
constructor(map?: { [key: string]: any }) {
|
|
345
|
+
super(map);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
161
349
|
export class RunMarketingInformationExtractRequest extends $tea.Model {
|
|
162
350
|
customPrompt?: string;
|
|
163
351
|
extractType?: string;
|
|
@@ -721,11 +909,13 @@ export class RunVideoAnalysisRequest extends $tea.Model {
|
|
|
721
909
|
* a3d1c2ac-f086-4a21-9069-f5631542f5ax
|
|
722
910
|
*/
|
|
723
911
|
originalSessionId?: string;
|
|
912
|
+
snapshotInterval?: number;
|
|
724
913
|
/**
|
|
725
914
|
* @example
|
|
726
915
|
* a3d1c2ac-f086-4a21-9069-f5631542f5a2
|
|
727
916
|
*/
|
|
728
917
|
taskId?: string;
|
|
918
|
+
videoExtraInfo?: string;
|
|
729
919
|
videoModelCustomPromptTemplate?: string;
|
|
730
920
|
/**
|
|
731
921
|
* @example
|
|
@@ -744,7 +934,9 @@ export class RunVideoAnalysisRequest extends $tea.Model {
|
|
|
744
934
|
modelCustomPromptTemplateId: 'modelCustomPromptTemplateId',
|
|
745
935
|
modelId: 'modelId',
|
|
746
936
|
originalSessionId: 'originalSessionId',
|
|
937
|
+
snapshotInterval: 'snapshotInterval',
|
|
747
938
|
taskId: 'taskId',
|
|
939
|
+
videoExtraInfo: 'videoExtraInfo',
|
|
748
940
|
videoModelCustomPromptTemplate: 'videoModelCustomPromptTemplate',
|
|
749
941
|
videoModelId: 'videoModelId',
|
|
750
942
|
videoUrl: 'videoUrl',
|
|
@@ -758,7 +950,9 @@ export class RunVideoAnalysisRequest extends $tea.Model {
|
|
|
758
950
|
modelCustomPromptTemplateId: 'string',
|
|
759
951
|
modelId: 'string',
|
|
760
952
|
originalSessionId: 'string',
|
|
953
|
+
snapshotInterval: 'number',
|
|
761
954
|
taskId: 'string',
|
|
955
|
+
videoExtraInfo: 'string',
|
|
762
956
|
videoModelCustomPromptTemplate: 'string',
|
|
763
957
|
videoModelId: 'string',
|
|
764
958
|
videoUrl: 'string',
|
|
@@ -788,11 +982,13 @@ export class RunVideoAnalysisShrinkRequest extends $tea.Model {
|
|
|
788
982
|
* a3d1c2ac-f086-4a21-9069-f5631542f5ax
|
|
789
983
|
*/
|
|
790
984
|
originalSessionId?: string;
|
|
985
|
+
snapshotInterval?: number;
|
|
791
986
|
/**
|
|
792
987
|
* @example
|
|
793
988
|
* a3d1c2ac-f086-4a21-9069-f5631542f5a2
|
|
794
989
|
*/
|
|
795
990
|
taskId?: string;
|
|
991
|
+
videoExtraInfo?: string;
|
|
796
992
|
videoModelCustomPromptTemplate?: string;
|
|
797
993
|
/**
|
|
798
994
|
* @example
|
|
@@ -811,7 +1007,9 @@ export class RunVideoAnalysisShrinkRequest extends $tea.Model {
|
|
|
811
1007
|
modelCustomPromptTemplateId: 'modelCustomPromptTemplateId',
|
|
812
1008
|
modelId: 'modelId',
|
|
813
1009
|
originalSessionId: 'originalSessionId',
|
|
1010
|
+
snapshotInterval: 'snapshotInterval',
|
|
814
1011
|
taskId: 'taskId',
|
|
1012
|
+
videoExtraInfo: 'videoExtraInfo',
|
|
815
1013
|
videoModelCustomPromptTemplate: 'videoModelCustomPromptTemplate',
|
|
816
1014
|
videoModelId: 'videoModelId',
|
|
817
1015
|
videoUrl: 'videoUrl',
|
|
@@ -825,7 +1023,9 @@ export class RunVideoAnalysisShrinkRequest extends $tea.Model {
|
|
|
825
1023
|
modelCustomPromptTemplateId: 'string',
|
|
826
1024
|
modelId: 'string',
|
|
827
1025
|
originalSessionId: 'string',
|
|
1026
|
+
snapshotInterval: 'number',
|
|
828
1027
|
taskId: 'string',
|
|
1028
|
+
videoExtraInfo: 'string',
|
|
829
1029
|
videoModelCustomPromptTemplate: 'string',
|
|
830
1030
|
videoModelId: 'string',
|
|
831
1031
|
videoUrl: 'string',
|
|
@@ -891,6 +1091,158 @@ export class RunVideoAnalysisResponse extends $tea.Model {
|
|
|
891
1091
|
}
|
|
892
1092
|
}
|
|
893
1093
|
|
|
1094
|
+
export class GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages extends $tea.Model {
|
|
1095
|
+
/**
|
|
1096
|
+
* @example
|
|
1097
|
+
* http://xxx.com/xxx.jpeg
|
|
1098
|
+
*/
|
|
1099
|
+
url?: string;
|
|
1100
|
+
static names(): { [key: string]: string } {
|
|
1101
|
+
return {
|
|
1102
|
+
url: 'url',
|
|
1103
|
+
};
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
static types(): { [key: string]: any } {
|
|
1107
|
+
return {
|
|
1108
|
+
url: 'string',
|
|
1109
|
+
};
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
constructor(map?: { [key: string]: any }) {
|
|
1113
|
+
super(map);
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
export class GenerateBroadcastNewsResponseBodyDataHotTopicSummaries extends $tea.Model {
|
|
1118
|
+
category?: string;
|
|
1119
|
+
hotTopic?: string;
|
|
1120
|
+
/**
|
|
1121
|
+
* @example
|
|
1122
|
+
* 2024-09-13_08
|
|
1123
|
+
*/
|
|
1124
|
+
hotTopicVersion?: string;
|
|
1125
|
+
/**
|
|
1126
|
+
* @example
|
|
1127
|
+
* 1000000
|
|
1128
|
+
*/
|
|
1129
|
+
hotValue?: number;
|
|
1130
|
+
/**
|
|
1131
|
+
* @example
|
|
1132
|
+
* 1458tb3bjo7531kap42a
|
|
1133
|
+
*/
|
|
1134
|
+
id?: string;
|
|
1135
|
+
images?: GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages[];
|
|
1136
|
+
/**
|
|
1137
|
+
* @example
|
|
1138
|
+
* xxx
|
|
1139
|
+
*/
|
|
1140
|
+
textSummary?: string;
|
|
1141
|
+
static names(): { [key: string]: string } {
|
|
1142
|
+
return {
|
|
1143
|
+
category: 'category',
|
|
1144
|
+
hotTopic: 'hotTopic',
|
|
1145
|
+
hotTopicVersion: 'hotTopicVersion',
|
|
1146
|
+
hotValue: 'hotValue',
|
|
1147
|
+
id: 'id',
|
|
1148
|
+
images: 'images',
|
|
1149
|
+
textSummary: 'textSummary',
|
|
1150
|
+
};
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
static types(): { [key: string]: any } {
|
|
1154
|
+
return {
|
|
1155
|
+
category: 'string',
|
|
1156
|
+
hotTopic: 'string',
|
|
1157
|
+
hotTopicVersion: 'string',
|
|
1158
|
+
hotValue: 'number',
|
|
1159
|
+
id: 'string',
|
|
1160
|
+
images: { 'type': 'array', 'itemType': GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages },
|
|
1161
|
+
textSummary: 'string',
|
|
1162
|
+
};
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
constructor(map?: { [key: string]: any }) {
|
|
1166
|
+
super(map);
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
export class GenerateBroadcastNewsResponseBodyDataUsage extends $tea.Model {
|
|
1171
|
+
/**
|
|
1172
|
+
* @example
|
|
1173
|
+
* 1
|
|
1174
|
+
*/
|
|
1175
|
+
inputTokens?: number;
|
|
1176
|
+
/**
|
|
1177
|
+
* @example
|
|
1178
|
+
* 2
|
|
1179
|
+
*/
|
|
1180
|
+
outputTokens?: number;
|
|
1181
|
+
/**
|
|
1182
|
+
* @example
|
|
1183
|
+
* 3
|
|
1184
|
+
*/
|
|
1185
|
+
totalTokens?: number;
|
|
1186
|
+
static names(): { [key: string]: string } {
|
|
1187
|
+
return {
|
|
1188
|
+
inputTokens: 'inputTokens',
|
|
1189
|
+
outputTokens: 'outputTokens',
|
|
1190
|
+
totalTokens: 'totalTokens',
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
static types(): { [key: string]: any } {
|
|
1195
|
+
return {
|
|
1196
|
+
inputTokens: 'number',
|
|
1197
|
+
outputTokens: 'number',
|
|
1198
|
+
totalTokens: 'number',
|
|
1199
|
+
};
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
constructor(map?: { [key: string]: any }) {
|
|
1203
|
+
super(map);
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
export class GenerateBroadcastNewsResponseBodyData extends $tea.Model {
|
|
1208
|
+
hotTopicSummaries?: GenerateBroadcastNewsResponseBodyDataHotTopicSummaries[];
|
|
1209
|
+
/**
|
|
1210
|
+
* @example
|
|
1211
|
+
* 2bb0ea82dafd48a8817fadc4c90e2b52
|
|
1212
|
+
*/
|
|
1213
|
+
sessionId?: string;
|
|
1214
|
+
/**
|
|
1215
|
+
* @example
|
|
1216
|
+
* 3feb69ed02d9b1a17d0f1a942675d300
|
|
1217
|
+
*/
|
|
1218
|
+
taskId?: string;
|
|
1219
|
+
text?: string;
|
|
1220
|
+
usage?: GenerateBroadcastNewsResponseBodyDataUsage;
|
|
1221
|
+
static names(): { [key: string]: string } {
|
|
1222
|
+
return {
|
|
1223
|
+
hotTopicSummaries: 'hotTopicSummaries',
|
|
1224
|
+
sessionId: 'sessionId',
|
|
1225
|
+
taskId: 'taskId',
|
|
1226
|
+
text: 'text',
|
|
1227
|
+
usage: 'usage',
|
|
1228
|
+
};
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
static types(): { [key: string]: any } {
|
|
1232
|
+
return {
|
|
1233
|
+
hotTopicSummaries: { 'type': 'array', 'itemType': GenerateBroadcastNewsResponseBodyDataHotTopicSummaries },
|
|
1234
|
+
sessionId: 'string',
|
|
1235
|
+
taskId: 'string',
|
|
1236
|
+
text: 'string',
|
|
1237
|
+
usage: GenerateBroadcastNewsResponseBodyDataUsage,
|
|
1238
|
+
};
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
constructor(map?: { [key: string]: any }) {
|
|
1242
|
+
super(map);
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
|
|
894
1246
|
export class ListHotTopicSummariesResponseBodyDataNewsComments extends $tea.Model {
|
|
895
1247
|
/**
|
|
896
1248
|
* @example
|
|
@@ -1073,6 +1425,138 @@ export class ListHotTopicSummariesResponseBodyData extends $tea.Model {
|
|
|
1073
1425
|
}
|
|
1074
1426
|
}
|
|
1075
1427
|
|
|
1428
|
+
export class RunCommentGenerationResponseBodyHeader extends $tea.Model {
|
|
1429
|
+
/**
|
|
1430
|
+
* @example
|
|
1431
|
+
* result-generated
|
|
1432
|
+
*/
|
|
1433
|
+
event?: string;
|
|
1434
|
+
eventInfo?: string;
|
|
1435
|
+
/**
|
|
1436
|
+
* @example
|
|
1437
|
+
* F8A35034-EDCF-5C50-95A5-1044316F36E3
|
|
1438
|
+
*/
|
|
1439
|
+
requestId?: string;
|
|
1440
|
+
/**
|
|
1441
|
+
* @example
|
|
1442
|
+
* tcm9xac9dsfbfgm8hf5k94l3cqybwh9o3mn0iuyytdgd9qoejxf1crxsdvuvr8fu0zuhbe8anhdaoeif2wbkmebagnezh23cuhkiazx2tmjh4eml791eak7t95sshvtkz14bh2lnbktzvdhialzd8reoaem0pktw41slinwyoabe75xlnxsqb5eo1i6ly70
|
|
1443
|
+
*/
|
|
1444
|
+
sessionId?: string;
|
|
1445
|
+
/**
|
|
1446
|
+
* @example
|
|
1447
|
+
* task-fu1918oghtodbis3chgpfr
|
|
1448
|
+
*/
|
|
1449
|
+
taskId?: string;
|
|
1450
|
+
/**
|
|
1451
|
+
* @example
|
|
1452
|
+
* 21507c3517074446017046500ed5f1
|
|
1453
|
+
*/
|
|
1454
|
+
traceId?: string;
|
|
1455
|
+
static names(): { [key: string]: string } {
|
|
1456
|
+
return {
|
|
1457
|
+
event: 'event',
|
|
1458
|
+
eventInfo: 'eventInfo',
|
|
1459
|
+
requestId: 'requestId',
|
|
1460
|
+
sessionId: 'sessionId',
|
|
1461
|
+
taskId: 'taskId',
|
|
1462
|
+
traceId: 'traceId',
|
|
1463
|
+
};
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
static types(): { [key: string]: any } {
|
|
1467
|
+
return {
|
|
1468
|
+
event: 'string',
|
|
1469
|
+
eventInfo: 'string',
|
|
1470
|
+
requestId: 'string',
|
|
1471
|
+
sessionId: 'string',
|
|
1472
|
+
taskId: 'string',
|
|
1473
|
+
traceId: 'string',
|
|
1474
|
+
};
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
constructor(map?: { [key: string]: any }) {
|
|
1478
|
+
super(map);
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
export class RunCommentGenerationResponseBodyPayloadOutput extends $tea.Model {
|
|
1483
|
+
text?: string;
|
|
1484
|
+
static names(): { [key: string]: string } {
|
|
1485
|
+
return {
|
|
1486
|
+
text: 'text',
|
|
1487
|
+
};
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
static types(): { [key: string]: any } {
|
|
1491
|
+
return {
|
|
1492
|
+
text: 'string',
|
|
1493
|
+
};
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
constructor(map?: { [key: string]: any }) {
|
|
1497
|
+
super(map);
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
export class RunCommentGenerationResponseBodyPayloadUsage extends $tea.Model {
|
|
1502
|
+
/**
|
|
1503
|
+
* @example
|
|
1504
|
+
* 100
|
|
1505
|
+
*/
|
|
1506
|
+
inputTokens?: number;
|
|
1507
|
+
/**
|
|
1508
|
+
* @example
|
|
1509
|
+
* 100
|
|
1510
|
+
*/
|
|
1511
|
+
outputTokens?: number;
|
|
1512
|
+
/**
|
|
1513
|
+
* @example
|
|
1514
|
+
* 200
|
|
1515
|
+
*/
|
|
1516
|
+
totalTokens?: number;
|
|
1517
|
+
static names(): { [key: string]: string } {
|
|
1518
|
+
return {
|
|
1519
|
+
inputTokens: 'inputTokens',
|
|
1520
|
+
outputTokens: 'outputTokens',
|
|
1521
|
+
totalTokens: 'totalTokens',
|
|
1522
|
+
};
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
static types(): { [key: string]: any } {
|
|
1526
|
+
return {
|
|
1527
|
+
inputTokens: 'number',
|
|
1528
|
+
outputTokens: 'number',
|
|
1529
|
+
totalTokens: 'number',
|
|
1530
|
+
};
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
constructor(map?: { [key: string]: any }) {
|
|
1534
|
+
super(map);
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
export class RunCommentGenerationResponseBodyPayload extends $tea.Model {
|
|
1539
|
+
output?: RunCommentGenerationResponseBodyPayloadOutput;
|
|
1540
|
+
usage?: RunCommentGenerationResponseBodyPayloadUsage;
|
|
1541
|
+
static names(): { [key: string]: string } {
|
|
1542
|
+
return {
|
|
1543
|
+
output: 'output',
|
|
1544
|
+
usage: 'usage',
|
|
1545
|
+
};
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
static types(): { [key: string]: any } {
|
|
1549
|
+
return {
|
|
1550
|
+
output: RunCommentGenerationResponseBodyPayloadOutput,
|
|
1551
|
+
usage: RunCommentGenerationResponseBodyPayloadUsage,
|
|
1552
|
+
};
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
constructor(map?: { [key: string]: any }) {
|
|
1556
|
+
super(map);
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1076
1560
|
export class RunMarketingInformationExtractResponseBodyHeader extends $tea.Model {
|
|
1077
1561
|
/**
|
|
1078
1562
|
* @example
|
|
@@ -2404,6 +2888,51 @@ export default class Client extends OpenApi {
|
|
|
2404
2888
|
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
2405
2889
|
}
|
|
2406
2890
|
|
|
2891
|
+
/**
|
|
2892
|
+
* 新闻播报-抽取分类获取播报热点
|
|
2893
|
+
*
|
|
2894
|
+
* @param request - GenerateBroadcastNewsRequest
|
|
2895
|
+
* @param headers - map
|
|
2896
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2897
|
+
* @returns GenerateBroadcastNewsResponse
|
|
2898
|
+
*/
|
|
2899
|
+
async generateBroadcastNewsWithOptions(workspaceId: string, request: GenerateBroadcastNewsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GenerateBroadcastNewsResponse> {
|
|
2900
|
+
Util.validateModel(request);
|
|
2901
|
+
let body : {[key: string ]: any} = { };
|
|
2902
|
+
if (!Util.isUnset(request.prompt)) {
|
|
2903
|
+
body["prompt"] = request.prompt;
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2907
|
+
headers: headers,
|
|
2908
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2909
|
+
});
|
|
2910
|
+
let params = new $OpenApi.Params({
|
|
2911
|
+
action: "GenerateBroadcastNews",
|
|
2912
|
+
version: "2024-08-01",
|
|
2913
|
+
protocol: "HTTPS",
|
|
2914
|
+
pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/quanmiao/lightapp/GenerateBroadcastNews`,
|
|
2915
|
+
method: "POST",
|
|
2916
|
+
authType: "AK",
|
|
2917
|
+
style: "ROA",
|
|
2918
|
+
reqBodyType: "formData",
|
|
2919
|
+
bodyType: "json",
|
|
2920
|
+
});
|
|
2921
|
+
return $tea.cast<GenerateBroadcastNewsResponse>(await this.callApi(params, req, runtime), new GenerateBroadcastNewsResponse({}));
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
/**
|
|
2925
|
+
* 新闻播报-抽取分类获取播报热点
|
|
2926
|
+
*
|
|
2927
|
+
* @param request - GenerateBroadcastNewsRequest
|
|
2928
|
+
* @returns GenerateBroadcastNewsResponse
|
|
2929
|
+
*/
|
|
2930
|
+
async generateBroadcastNews(workspaceId: string, request: GenerateBroadcastNewsRequest): Promise<GenerateBroadcastNewsResponse> {
|
|
2931
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2932
|
+
let headers : {[key: string ]: string} = { };
|
|
2933
|
+
return await this.generateBroadcastNewsWithOptions(workspaceId, request, headers, runtime);
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2407
2936
|
/**
|
|
2408
2937
|
* 轻应用-新闻播报-获取热点话题摘要列表
|
|
2409
2938
|
*
|
|
@@ -2465,6 +2994,63 @@ export default class Client extends OpenApi {
|
|
|
2465
2994
|
return await this.listHotTopicSummariesWithOptions(workspaceId, request, headers, runtime);
|
|
2466
2995
|
}
|
|
2467
2996
|
|
|
2997
|
+
/**
|
|
2998
|
+
* 评论生成服务
|
|
2999
|
+
*
|
|
3000
|
+
* @param request - RunCommentGenerationRequest
|
|
3001
|
+
* @param headers - map
|
|
3002
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3003
|
+
* @returns RunCommentGenerationResponse
|
|
3004
|
+
*/
|
|
3005
|
+
async runCommentGenerationWithOptions(workspaceId: string, request: RunCommentGenerationRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RunCommentGenerationResponse> {
|
|
3006
|
+
Util.validateModel(request);
|
|
3007
|
+
let body : {[key: string ]: any} = { };
|
|
3008
|
+
if (!Util.isUnset(request.length)) {
|
|
3009
|
+
body["length"] = request.length;
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
if (!Util.isUnset(request.numComments)) {
|
|
3013
|
+
body["numComments"] = request.numComments;
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
if (!Util.isUnset(request.sourceMaterial)) {
|
|
3017
|
+
body["sourceMaterial"] = request.sourceMaterial;
|
|
3018
|
+
}
|
|
3019
|
+
|
|
3020
|
+
if (!Util.isUnset(request.style)) {
|
|
3021
|
+
body["style"] = request.style;
|
|
3022
|
+
}
|
|
3023
|
+
|
|
3024
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3025
|
+
headers: headers,
|
|
3026
|
+
body: OpenApiUtil.parseToMap(body),
|
|
3027
|
+
});
|
|
3028
|
+
let params = new $OpenApi.Params({
|
|
3029
|
+
action: "RunCommentGeneration",
|
|
3030
|
+
version: "2024-08-01",
|
|
3031
|
+
protocol: "HTTPS",
|
|
3032
|
+
pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/quanmiao/lightapp/runCommentGeneration`,
|
|
3033
|
+
method: "POST",
|
|
3034
|
+
authType: "AK",
|
|
3035
|
+
style: "ROA",
|
|
3036
|
+
reqBodyType: "formData",
|
|
3037
|
+
bodyType: "json",
|
|
3038
|
+
});
|
|
3039
|
+
return $tea.cast<RunCommentGenerationResponse>(await this.callApi(params, req, runtime), new RunCommentGenerationResponse({}));
|
|
3040
|
+
}
|
|
3041
|
+
|
|
3042
|
+
/**
|
|
3043
|
+
* 评论生成服务
|
|
3044
|
+
*
|
|
3045
|
+
* @param request - RunCommentGenerationRequest
|
|
3046
|
+
* @returns RunCommentGenerationResponse
|
|
3047
|
+
*/
|
|
3048
|
+
async runCommentGeneration(workspaceId: string, request: RunCommentGenerationRequest): Promise<RunCommentGenerationResponse> {
|
|
3049
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3050
|
+
let headers : {[key: string ]: string} = { };
|
|
3051
|
+
return await this.runCommentGenerationWithOptions(workspaceId, request, headers, runtime);
|
|
3052
|
+
}
|
|
3053
|
+
|
|
2468
3054
|
/**
|
|
2469
3055
|
* 营销信息抽取服务
|
|
2470
3056
|
*
|
|
@@ -2811,10 +3397,18 @@ export default class Client extends OpenApi {
|
|
|
2811
3397
|
body["originalSessionId"] = request.originalSessionId;
|
|
2812
3398
|
}
|
|
2813
3399
|
|
|
3400
|
+
if (!Util.isUnset(request.snapshotInterval)) {
|
|
3401
|
+
body["snapshotInterval"] = request.snapshotInterval;
|
|
3402
|
+
}
|
|
3403
|
+
|
|
2814
3404
|
if (!Util.isUnset(request.taskId)) {
|
|
2815
3405
|
body["taskId"] = request.taskId;
|
|
2816
3406
|
}
|
|
2817
3407
|
|
|
3408
|
+
if (!Util.isUnset(request.videoExtraInfo)) {
|
|
3409
|
+
body["videoExtraInfo"] = request.videoExtraInfo;
|
|
3410
|
+
}
|
|
3411
|
+
|
|
2818
3412
|
if (!Util.isUnset(request.videoModelCustomPromptTemplate)) {
|
|
2819
3413
|
body["videoModelCustomPromptTemplate"] = request.videoModelCustomPromptTemplate;
|
|
2820
3414
|
}
|