@alicloud/quanmiaolightapp20240801 1.5.1 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +58 -140
- package/dist/client.js +79 -191
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +100 -251
package/dist/client.d.ts
CHANGED
|
@@ -176,59 +176,6 @@ export declare class ListHotTopicSummariesResponse extends $tea.Model {
|
|
|
176
176
|
[key: string]: any;
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
export declare class RunCommentGenerationRequest extends $tea.Model {
|
|
180
|
-
/**
|
|
181
|
-
* @example
|
|
182
|
-
* 20
|
|
183
|
-
*/
|
|
184
|
-
length?: string;
|
|
185
|
-
/**
|
|
186
|
-
* @example
|
|
187
|
-
* 10
|
|
188
|
-
*/
|
|
189
|
-
numComments?: string;
|
|
190
|
-
sourceMaterial?: string;
|
|
191
|
-
style?: string;
|
|
192
|
-
static names(): {
|
|
193
|
-
[key: string]: string;
|
|
194
|
-
};
|
|
195
|
-
static types(): {
|
|
196
|
-
[key: string]: any;
|
|
197
|
-
};
|
|
198
|
-
constructor(map?: {
|
|
199
|
-
[key: string]: any;
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
export declare class RunCommentGenerationResponseBody extends $tea.Model {
|
|
203
|
-
end?: boolean;
|
|
204
|
-
header?: RunCommentGenerationResponseBodyHeader;
|
|
205
|
-
payload?: RunCommentGenerationResponseBodyPayload;
|
|
206
|
-
static names(): {
|
|
207
|
-
[key: string]: string;
|
|
208
|
-
};
|
|
209
|
-
static types(): {
|
|
210
|
-
[key: string]: any;
|
|
211
|
-
};
|
|
212
|
-
constructor(map?: {
|
|
213
|
-
[key: string]: any;
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
export declare class RunCommentGenerationResponse extends $tea.Model {
|
|
217
|
-
headers?: {
|
|
218
|
-
[key: string]: string;
|
|
219
|
-
};
|
|
220
|
-
statusCode?: number;
|
|
221
|
-
body?: RunCommentGenerationResponseBody;
|
|
222
|
-
static names(): {
|
|
223
|
-
[key: string]: string;
|
|
224
|
-
};
|
|
225
|
-
static types(): {
|
|
226
|
-
[key: string]: any;
|
|
227
|
-
};
|
|
228
|
-
constructor(map?: {
|
|
229
|
-
[key: string]: any;
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
179
|
export declare class RunHotTopicChatRequest extends $tea.Model {
|
|
233
180
|
category?: string;
|
|
234
181
|
generateOptions?: string[];
|
|
@@ -243,6 +190,7 @@ export declare class RunHotTopicChatRequest extends $tea.Model {
|
|
|
243
190
|
* 1
|
|
244
191
|
*/
|
|
245
192
|
imageCount?: number;
|
|
193
|
+
messages?: RunHotTopicChatRequestMessages[];
|
|
246
194
|
/**
|
|
247
195
|
* @example
|
|
248
196
|
* xx
|
|
@@ -289,6 +237,7 @@ export declare class RunHotTopicChatShrinkRequest extends $tea.Model {
|
|
|
289
237
|
* 1
|
|
290
238
|
*/
|
|
291
239
|
imageCount?: number;
|
|
240
|
+
messagesShrink?: string;
|
|
292
241
|
/**
|
|
293
242
|
* @example
|
|
294
243
|
* xx
|
|
@@ -1158,84 +1107,22 @@ export declare class ListHotTopicSummariesResponseBodyData extends $tea.Model {
|
|
|
1158
1107
|
[key: string]: any;
|
|
1159
1108
|
});
|
|
1160
1109
|
}
|
|
1161
|
-
export declare class
|
|
1162
|
-
/**
|
|
1163
|
-
* @example
|
|
1164
|
-
* result-generated
|
|
1165
|
-
*/
|
|
1166
|
-
event?: string;
|
|
1167
|
-
eventInfo?: string;
|
|
1168
|
-
/**
|
|
1169
|
-
* @example
|
|
1170
|
-
* F8A35034-EDCF-5C50-95A5-1044316F36E3
|
|
1171
|
-
*/
|
|
1172
|
-
requestId?: string;
|
|
1173
|
-
/**
|
|
1174
|
-
* @example
|
|
1175
|
-
* tcm9xac9dsfbfgm8hf5k94l3cqybwh9o3mn0iuyytdgd9qoejxf1crxsdvuvr8fu0zuhbe8anhdaoeif2wbkmebagnezh23cuhkiazx2tmjh4eml791eak7t95sshvtkz14bh2lnbktzvdhialzd8reoaem0pktw41slinwyoabe75xlnxsqb5eo1i6ly70
|
|
1176
|
-
*/
|
|
1177
|
-
sessionId?: string;
|
|
1110
|
+
export declare class RunHotTopicChatRequestMessages extends $tea.Model {
|
|
1178
1111
|
/**
|
|
1179
1112
|
* @example
|
|
1180
|
-
*
|
|
1181
|
-
*/
|
|
1182
|
-
taskId?: string;
|
|
1183
|
-
/**
|
|
1184
|
-
* @example
|
|
1185
|
-
* 21507c3517074446017046500ed5f1
|
|
1186
|
-
*/
|
|
1187
|
-
traceId?: string;
|
|
1188
|
-
static names(): {
|
|
1189
|
-
[key: string]: string;
|
|
1190
|
-
};
|
|
1191
|
-
static types(): {
|
|
1192
|
-
[key: string]: any;
|
|
1193
|
-
};
|
|
1194
|
-
constructor(map?: {
|
|
1195
|
-
[key: string]: any;
|
|
1196
|
-
});
|
|
1197
|
-
}
|
|
1198
|
-
export declare class RunCommentGenerationResponseBodyPayloadOutput extends $tea.Model {
|
|
1199
|
-
text?: string;
|
|
1200
|
-
static names(): {
|
|
1201
|
-
[key: string]: string;
|
|
1202
|
-
};
|
|
1203
|
-
static types(): {
|
|
1204
|
-
[key: string]: any;
|
|
1205
|
-
};
|
|
1206
|
-
constructor(map?: {
|
|
1207
|
-
[key: string]: any;
|
|
1208
|
-
});
|
|
1209
|
-
}
|
|
1210
|
-
export declare class RunCommentGenerationResponseBodyPayloadUsage extends $tea.Model {
|
|
1211
|
-
/**
|
|
1212
|
-
* @example
|
|
1213
|
-
* 100
|
|
1113
|
+
* xxx
|
|
1214
1114
|
*/
|
|
1215
|
-
|
|
1115
|
+
content?: string;
|
|
1216
1116
|
/**
|
|
1217
1117
|
* @example
|
|
1218
|
-
*
|
|
1118
|
+
* 2024-12-10 18:51:29
|
|
1219
1119
|
*/
|
|
1220
|
-
|
|
1120
|
+
createTime?: string;
|
|
1221
1121
|
/**
|
|
1222
1122
|
* @example
|
|
1223
|
-
*
|
|
1123
|
+
* user
|
|
1224
1124
|
*/
|
|
1225
|
-
|
|
1226
|
-
static names(): {
|
|
1227
|
-
[key: string]: string;
|
|
1228
|
-
};
|
|
1229
|
-
static types(): {
|
|
1230
|
-
[key: string]: any;
|
|
1231
|
-
};
|
|
1232
|
-
constructor(map?: {
|
|
1233
|
-
[key: string]: any;
|
|
1234
|
-
});
|
|
1235
|
-
}
|
|
1236
|
-
export declare class RunCommentGenerationResponseBodyPayload extends $tea.Model {
|
|
1237
|
-
output?: RunCommentGenerationResponseBodyPayloadOutput;
|
|
1238
|
-
usage?: RunCommentGenerationResponseBodyPayloadUsage;
|
|
1125
|
+
role?: string;
|
|
1239
1126
|
static names(): {
|
|
1240
1127
|
[key: string]: string;
|
|
1241
1128
|
};
|
|
@@ -1370,12 +1257,54 @@ export declare class RunHotTopicChatResponseBodyPayloadOutputArticles extends $t
|
|
|
1370
1257
|
[key: string]: any;
|
|
1371
1258
|
});
|
|
1372
1259
|
}
|
|
1260
|
+
export declare class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages extends $tea.Model {
|
|
1261
|
+
/**
|
|
1262
|
+
* @example
|
|
1263
|
+
* http://xxx
|
|
1264
|
+
*/
|
|
1265
|
+
url?: string;
|
|
1266
|
+
static names(): {
|
|
1267
|
+
[key: string]: string;
|
|
1268
|
+
};
|
|
1269
|
+
static types(): {
|
|
1270
|
+
[key: string]: any;
|
|
1271
|
+
};
|
|
1272
|
+
constructor(map?: {
|
|
1273
|
+
[key: string]: any;
|
|
1274
|
+
});
|
|
1275
|
+
}
|
|
1276
|
+
export declare class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews extends $tea.Model {
|
|
1277
|
+
/**
|
|
1278
|
+
* @example
|
|
1279
|
+
* xxx
|
|
1280
|
+
*/
|
|
1281
|
+
title?: string;
|
|
1282
|
+
/**
|
|
1283
|
+
* @example
|
|
1284
|
+
* http://xxx
|
|
1285
|
+
*/
|
|
1286
|
+
url?: string;
|
|
1287
|
+
static names(): {
|
|
1288
|
+
[key: string]: string;
|
|
1289
|
+
};
|
|
1290
|
+
static types(): {
|
|
1291
|
+
[key: string]: any;
|
|
1292
|
+
};
|
|
1293
|
+
constructor(map?: {
|
|
1294
|
+
[key: string]: any;
|
|
1295
|
+
});
|
|
1296
|
+
}
|
|
1373
1297
|
export declare class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries extends $tea.Model {
|
|
1374
1298
|
/**
|
|
1375
1299
|
* @example
|
|
1376
1300
|
* 100000
|
|
1377
1301
|
*/
|
|
1378
1302
|
customHotValue?: number;
|
|
1303
|
+
/**
|
|
1304
|
+
* @example
|
|
1305
|
+
* xxx
|
|
1306
|
+
*/
|
|
1307
|
+
customTextSummary?: string;
|
|
1379
1308
|
/**
|
|
1380
1309
|
* @example
|
|
1381
1310
|
* xx
|
|
@@ -1391,6 +1320,13 @@ export declare class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries e
|
|
|
1391
1320
|
* 100000
|
|
1392
1321
|
*/
|
|
1393
1322
|
hotValue?: number;
|
|
1323
|
+
images?: RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages[];
|
|
1324
|
+
news?: RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews[];
|
|
1325
|
+
/**
|
|
1326
|
+
* @example
|
|
1327
|
+
* xxx
|
|
1328
|
+
*/
|
|
1329
|
+
textSummary?: string;
|
|
1394
1330
|
static names(): {
|
|
1395
1331
|
[key: string]: string;
|
|
1396
1332
|
};
|
|
@@ -2516,24 +2452,6 @@ export default class Client extends OpenApi {
|
|
|
2516
2452
|
* @returns ListHotTopicSummariesResponse
|
|
2517
2453
|
*/
|
|
2518
2454
|
listHotTopicSummaries(workspaceId: string, request: ListHotTopicSummariesRequest): Promise<ListHotTopicSummariesResponse>;
|
|
2519
|
-
/**
|
|
2520
|
-
* 评论生成服务
|
|
2521
|
-
*
|
|
2522
|
-
* @param request - RunCommentGenerationRequest
|
|
2523
|
-
* @param headers - map
|
|
2524
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
2525
|
-
* @returns RunCommentGenerationResponse
|
|
2526
|
-
*/
|
|
2527
|
-
runCommentGenerationWithOptions(workspaceId: string, request: RunCommentGenerationRequest, headers: {
|
|
2528
|
-
[key: string]: string;
|
|
2529
|
-
}, runtime: $Util.RuntimeOptions): Promise<RunCommentGenerationResponse>;
|
|
2530
|
-
/**
|
|
2531
|
-
* 评论生成服务
|
|
2532
|
-
*
|
|
2533
|
-
* @param request - RunCommentGenerationRequest
|
|
2534
|
-
* @returns RunCommentGenerationResponse
|
|
2535
|
-
*/
|
|
2536
|
-
runCommentGeneration(workspaceId: string, request: RunCommentGenerationRequest): Promise<RunCommentGenerationResponse>;
|
|
2537
2455
|
/**
|
|
2538
2456
|
* 轻应用-热点播报-问答
|
|
2539
2457
|
*
|
package/dist/client.js
CHANGED
|
@@ -15,20 +15,29 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
exports.RunVideoAnalysisResponseBodyPayloadOutputVideoTitleGenerateResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoTitleGenerateResultUsage = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResultVideoMindMappings = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResultVideoMindMappingsChildNodes = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResultVideoMindMappingsChildNodesChildNodes = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResultUsage = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoGenerateResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoGenerateResultUsage = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoCaptionResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoCaptionResultVideoCaptions = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoAnalysisResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoAnalysisResultVideoShotAnalysisResults = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoAnalysisResultUsage = exports.RunVideoAnalysisResponseBodyHeader = exports.RunStyleWritingResponseBodyPayload = exports.RunStyleWritingResponseBodyPayloadUsage = exports.RunStyleWritingResponseBodyPayloadOutput = exports.RunStyleWritingResponseBodyHeader = exports.RunScriptPlanningResponseBodyPayload = exports.RunScriptPlanningResponseBodyPayloadUsage = exports.RunScriptPlanningResponseBodyPayloadOutput = exports.RunScriptPlanningResponseBodyHeader = exports.RunScriptContinueResponseBodyPayload = exports.RunScriptContinueResponseBodyPayloadUsage = exports.RunScriptContinueResponseBodyPayloadOutput = exports.RunScriptContinueResponseBodyHeader = exports.RunMarketingInformationWritingResponseBodyPayload = exports.RunMarketingInformationWritingResponseBodyPayloadUsage = exports.RunMarketingInformationWritingResponseBodyPayloadOutput = exports.RunMarketingInformationWritingResponseBodyHeader = exports.RunMarketingInformationExtractResponseBodyPayload = exports.RunMarketingInformationExtractResponseBodyPayloadUsage = exports.RunMarketingInformationExtractResponseBodyPayloadOutput = exports.RunMarketingInformationExtractResponseBodyHeader = exports.RunHotTopicSummaryResponseBodyPayload = exports.RunHotTopicSummaryResponseBodyPayloadUsage = exports.RunHotTopicSummaryResponseBodyPayloadOutput = exports.RunHotTopicSummaryResponseBodyHeader = exports.RunHotTopicSummaryRequestStepForCustomSummaryStyleConfig = exports.RunHotTopicChatResponseBodyPayload = exports.RunHotTopicChatResponseBodyPayloadUsage = exports.RunHotTopicChatResponseBodyPayloadOutput = exports.RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias = exports.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries = exports.
|
|
31
|
-
exports.RunVideoAnalysisResponseBodyPayload = exports.RunVideoAnalysisResponseBodyPayloadUsage = exports.RunVideoAnalysisResponseBodyPayloadOutput = void 0;
|
|
39
|
+
exports.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages = exports.RunHotTopicChatResponseBodyPayloadOutputArticles = exports.RunHotTopicChatResponseBodyHeader = exports.RunHotTopicChatRequestStepForBroadcastContentConfig = exports.RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights = exports.RunHotTopicChatRequestMessages = exports.ListHotTopicSummariesResponseBodyData = exports.ListHotTopicSummariesResponseBodyDataSummary = exports.ListHotTopicSummariesResponseBodyDataSummarySummaries = exports.ListHotTopicSummariesResponseBodyDataNews = exports.ListHotTopicSummariesResponseBodyDataNewsComments = exports.GenerateBroadcastNewsResponseBodyData = exports.GenerateBroadcastNewsResponseBodyDataUsage = exports.GenerateBroadcastNewsResponseBodyDataHotTopicSummaries = exports.GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages = exports.RunVideoAnalysisResponse = exports.RunVideoAnalysisResponseBody = exports.RunVideoAnalysisShrinkRequest = exports.RunVideoAnalysisRequest = exports.RunStyleWritingResponse = exports.RunStyleWritingResponseBody = exports.RunStyleWritingShrinkRequest = exports.RunStyleWritingRequest = exports.RunScriptPlanningResponse = exports.RunScriptPlanningResponseBody = exports.RunScriptPlanningRequest = exports.RunScriptContinueResponse = exports.RunScriptContinueResponseBody = exports.RunScriptContinueRequest = exports.RunMarketingInformationWritingResponse = exports.RunMarketingInformationWritingResponseBody = exports.RunMarketingInformationWritingRequest = exports.RunMarketingInformationExtractResponse = exports.RunMarketingInformationExtractResponseBody = exports.RunMarketingInformationExtractShrinkRequest = exports.RunMarketingInformationExtractRequest = exports.RunHotTopicSummaryResponse = exports.RunHotTopicSummaryResponseBody = exports.RunHotTopicSummaryShrinkRequest = exports.RunHotTopicSummaryRequest = exports.RunHotTopicChatResponse = exports.RunHotTopicChatResponseBody = exports.RunHotTopicChatShrinkRequest = exports.RunHotTopicChatRequest = exports.ListHotTopicSummariesResponse = exports.ListHotTopicSummariesResponseBody = exports.ListHotTopicSummariesRequest = exports.GenerateBroadcastNewsResponse = exports.GenerateBroadcastNewsResponseBody = exports.GenerateBroadcastNewsRequest = void 0;
|
|
40
|
+
exports.RunVideoAnalysisResponseBodyPayload = exports.RunVideoAnalysisResponseBodyPayloadUsage = exports.RunVideoAnalysisResponseBodyPayloadOutput = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoTitleGenerateResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoTitleGenerateResultUsage = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResultVideoMindMappings = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResultVideoMindMappingsChildNodes = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResultVideoMindMappingsChildNodesChildNodes = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResultUsage = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoGenerateResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoGenerateResultUsage = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoCaptionResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoCaptionResultVideoCaptions = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoAnalysisResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoAnalysisResultVideoShotAnalysisResults = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoAnalysisResultUsage = exports.RunVideoAnalysisResponseBodyHeader = exports.RunStyleWritingResponseBodyPayload = exports.RunStyleWritingResponseBodyPayloadUsage = exports.RunStyleWritingResponseBodyPayloadOutput = exports.RunStyleWritingResponseBodyHeader = exports.RunScriptPlanningResponseBodyPayload = exports.RunScriptPlanningResponseBodyPayloadUsage = exports.RunScriptPlanningResponseBodyPayloadOutput = exports.RunScriptPlanningResponseBodyHeader = exports.RunScriptContinueResponseBodyPayload = exports.RunScriptContinueResponseBodyPayloadUsage = exports.RunScriptContinueResponseBodyPayloadOutput = exports.RunScriptContinueResponseBodyHeader = exports.RunMarketingInformationWritingResponseBodyPayload = exports.RunMarketingInformationWritingResponseBodyPayloadUsage = exports.RunMarketingInformationWritingResponseBodyPayloadOutput = exports.RunMarketingInformationWritingResponseBodyHeader = exports.RunMarketingInformationExtractResponseBodyPayload = exports.RunMarketingInformationExtractResponseBodyPayloadUsage = exports.RunMarketingInformationExtractResponseBodyPayloadOutput = exports.RunMarketingInformationExtractResponseBodyHeader = exports.RunHotTopicSummaryResponseBodyPayload = exports.RunHotTopicSummaryResponseBodyPayloadUsage = exports.RunHotTopicSummaryResponseBodyPayloadOutput = exports.RunHotTopicSummaryResponseBodyHeader = exports.RunHotTopicSummaryRequestStepForCustomSummaryStyleConfig = exports.RunHotTopicChatResponseBodyPayload = exports.RunHotTopicChatResponseBodyPayloadUsage = exports.RunHotTopicChatResponseBodyPayloadOutput = exports.RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias = exports.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries = exports.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews = void 0;
|
|
32
41
|
// This file is auto-generated, don't edit it
|
|
33
42
|
/**
|
|
34
43
|
*/
|
|
@@ -175,68 +184,6 @@ class ListHotTopicSummariesResponse extends $tea.Model {
|
|
|
175
184
|
}
|
|
176
185
|
}
|
|
177
186
|
exports.ListHotTopicSummariesResponse = ListHotTopicSummariesResponse;
|
|
178
|
-
class RunCommentGenerationRequest extends $tea.Model {
|
|
179
|
-
static names() {
|
|
180
|
-
return {
|
|
181
|
-
length: 'length',
|
|
182
|
-
numComments: 'numComments',
|
|
183
|
-
sourceMaterial: 'sourceMaterial',
|
|
184
|
-
style: 'style',
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
static types() {
|
|
188
|
-
return {
|
|
189
|
-
length: 'string',
|
|
190
|
-
numComments: 'string',
|
|
191
|
-
sourceMaterial: 'string',
|
|
192
|
-
style: 'string',
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
constructor(map) {
|
|
196
|
-
super(map);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
exports.RunCommentGenerationRequest = RunCommentGenerationRequest;
|
|
200
|
-
class RunCommentGenerationResponseBody extends $tea.Model {
|
|
201
|
-
static names() {
|
|
202
|
-
return {
|
|
203
|
-
end: 'end',
|
|
204
|
-
header: 'header',
|
|
205
|
-
payload: 'payload',
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
static types() {
|
|
209
|
-
return {
|
|
210
|
-
end: 'boolean',
|
|
211
|
-
header: RunCommentGenerationResponseBodyHeader,
|
|
212
|
-
payload: RunCommentGenerationResponseBodyPayload,
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
constructor(map) {
|
|
216
|
-
super(map);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
exports.RunCommentGenerationResponseBody = RunCommentGenerationResponseBody;
|
|
220
|
-
class RunCommentGenerationResponse extends $tea.Model {
|
|
221
|
-
static names() {
|
|
222
|
-
return {
|
|
223
|
-
headers: 'headers',
|
|
224
|
-
statusCode: 'statusCode',
|
|
225
|
-
body: 'body',
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
static types() {
|
|
229
|
-
return {
|
|
230
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
231
|
-
statusCode: 'number',
|
|
232
|
-
body: RunCommentGenerationResponseBody,
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
constructor(map) {
|
|
236
|
-
super(map);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
exports.RunCommentGenerationResponse = RunCommentGenerationResponse;
|
|
240
187
|
class RunHotTopicChatRequest extends $tea.Model {
|
|
241
188
|
static names() {
|
|
242
189
|
return {
|
|
@@ -245,6 +192,7 @@ class RunHotTopicChatRequest extends $tea.Model {
|
|
|
245
192
|
hotTopicVersion: 'hotTopicVersion',
|
|
246
193
|
hotTopics: 'hotTopics',
|
|
247
194
|
imageCount: 'imageCount',
|
|
195
|
+
messages: 'messages',
|
|
248
196
|
modelCustomPromptTemplate: 'modelCustomPromptTemplate',
|
|
249
197
|
modelId: 'modelId',
|
|
250
198
|
originalSessionId: 'originalSessionId',
|
|
@@ -260,6 +208,7 @@ class RunHotTopicChatRequest extends $tea.Model {
|
|
|
260
208
|
hotTopicVersion: 'string',
|
|
261
209
|
hotTopics: { 'type': 'array', 'itemType': 'string' },
|
|
262
210
|
imageCount: 'number',
|
|
211
|
+
messages: { 'type': 'array', 'itemType': RunHotTopicChatRequestMessages },
|
|
263
212
|
modelCustomPromptTemplate: 'string',
|
|
264
213
|
modelId: 'string',
|
|
265
214
|
originalSessionId: 'string',
|
|
@@ -281,6 +230,7 @@ class RunHotTopicChatShrinkRequest extends $tea.Model {
|
|
|
281
230
|
hotTopicVersion: 'hotTopicVersion',
|
|
282
231
|
hotTopicsShrink: 'hotTopics',
|
|
283
232
|
imageCount: 'imageCount',
|
|
233
|
+
messagesShrink: 'messages',
|
|
284
234
|
modelCustomPromptTemplate: 'modelCustomPromptTemplate',
|
|
285
235
|
modelId: 'modelId',
|
|
286
236
|
originalSessionId: 'originalSessionId',
|
|
@@ -296,6 +246,7 @@ class RunHotTopicChatShrinkRequest extends $tea.Model {
|
|
|
296
246
|
hotTopicVersion: 'string',
|
|
297
247
|
hotTopicsShrink: 'string',
|
|
298
248
|
imageCount: 'number',
|
|
249
|
+
messagesShrink: 'string',
|
|
299
250
|
modelCustomPromptTemplate: 'string',
|
|
300
251
|
modelId: 'string',
|
|
301
252
|
originalSessionId: 'string',
|
|
@@ -1097,86 +1048,26 @@ class ListHotTopicSummariesResponseBodyData extends $tea.Model {
|
|
|
1097
1048
|
}
|
|
1098
1049
|
}
|
|
1099
1050
|
exports.ListHotTopicSummariesResponseBodyData = ListHotTopicSummariesResponseBodyData;
|
|
1100
|
-
class
|
|
1101
|
-
static names() {
|
|
1102
|
-
return {
|
|
1103
|
-
event: 'event',
|
|
1104
|
-
eventInfo: 'eventInfo',
|
|
1105
|
-
requestId: 'requestId',
|
|
1106
|
-
sessionId: 'sessionId',
|
|
1107
|
-
taskId: 'taskId',
|
|
1108
|
-
traceId: 'traceId',
|
|
1109
|
-
};
|
|
1110
|
-
}
|
|
1111
|
-
static types() {
|
|
1112
|
-
return {
|
|
1113
|
-
event: 'string',
|
|
1114
|
-
eventInfo: 'string',
|
|
1115
|
-
requestId: 'string',
|
|
1116
|
-
sessionId: 'string',
|
|
1117
|
-
taskId: 'string',
|
|
1118
|
-
traceId: 'string',
|
|
1119
|
-
};
|
|
1120
|
-
}
|
|
1121
|
-
constructor(map) {
|
|
1122
|
-
super(map);
|
|
1123
|
-
}
|
|
1124
|
-
}
|
|
1125
|
-
exports.RunCommentGenerationResponseBodyHeader = RunCommentGenerationResponseBodyHeader;
|
|
1126
|
-
class RunCommentGenerationResponseBodyPayloadOutput extends $tea.Model {
|
|
1127
|
-
static names() {
|
|
1128
|
-
return {
|
|
1129
|
-
text: 'text',
|
|
1130
|
-
};
|
|
1131
|
-
}
|
|
1132
|
-
static types() {
|
|
1133
|
-
return {
|
|
1134
|
-
text: 'string',
|
|
1135
|
-
};
|
|
1136
|
-
}
|
|
1137
|
-
constructor(map) {
|
|
1138
|
-
super(map);
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
exports.RunCommentGenerationResponseBodyPayloadOutput = RunCommentGenerationResponseBodyPayloadOutput;
|
|
1142
|
-
class RunCommentGenerationResponseBodyPayloadUsage extends $tea.Model {
|
|
1051
|
+
class RunHotTopicChatRequestMessages extends $tea.Model {
|
|
1143
1052
|
static names() {
|
|
1144
1053
|
return {
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
};
|
|
1149
|
-
}
|
|
1150
|
-
static types() {
|
|
1151
|
-
return {
|
|
1152
|
-
inputTokens: 'number',
|
|
1153
|
-
outputTokens: 'number',
|
|
1154
|
-
totalTokens: 'number',
|
|
1155
|
-
};
|
|
1156
|
-
}
|
|
1157
|
-
constructor(map) {
|
|
1158
|
-
super(map);
|
|
1159
|
-
}
|
|
1160
|
-
}
|
|
1161
|
-
exports.RunCommentGenerationResponseBodyPayloadUsage = RunCommentGenerationResponseBodyPayloadUsage;
|
|
1162
|
-
class RunCommentGenerationResponseBodyPayload extends $tea.Model {
|
|
1163
|
-
static names() {
|
|
1164
|
-
return {
|
|
1165
|
-
output: 'output',
|
|
1166
|
-
usage: 'usage',
|
|
1054
|
+
content: 'content',
|
|
1055
|
+
createTime: 'createTime',
|
|
1056
|
+
role: 'role',
|
|
1167
1057
|
};
|
|
1168
1058
|
}
|
|
1169
1059
|
static types() {
|
|
1170
1060
|
return {
|
|
1171
|
-
|
|
1172
|
-
|
|
1061
|
+
content: 'string',
|
|
1062
|
+
createTime: 'string',
|
|
1063
|
+
role: 'string',
|
|
1173
1064
|
};
|
|
1174
1065
|
}
|
|
1175
1066
|
constructor(map) {
|
|
1176
1067
|
super(map);
|
|
1177
1068
|
}
|
|
1178
1069
|
}
|
|
1179
|
-
exports.
|
|
1070
|
+
exports.RunHotTopicChatRequestMessages = RunHotTopicChatRequestMessages;
|
|
1180
1071
|
class RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights extends $tea.Model {
|
|
1181
1072
|
static names() {
|
|
1182
1073
|
return {
|
|
@@ -1273,21 +1164,63 @@ class RunHotTopicChatResponseBodyPayloadOutputArticles extends $tea.Model {
|
|
|
1273
1164
|
}
|
|
1274
1165
|
}
|
|
1275
1166
|
exports.RunHotTopicChatResponseBodyPayloadOutputArticles = RunHotTopicChatResponseBodyPayloadOutputArticles;
|
|
1167
|
+
class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages extends $tea.Model {
|
|
1168
|
+
static names() {
|
|
1169
|
+
return {
|
|
1170
|
+
url: 'url',
|
|
1171
|
+
};
|
|
1172
|
+
}
|
|
1173
|
+
static types() {
|
|
1174
|
+
return {
|
|
1175
|
+
url: 'string',
|
|
1176
|
+
};
|
|
1177
|
+
}
|
|
1178
|
+
constructor(map) {
|
|
1179
|
+
super(map);
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
exports.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages = RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages;
|
|
1183
|
+
class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews extends $tea.Model {
|
|
1184
|
+
static names() {
|
|
1185
|
+
return {
|
|
1186
|
+
title: 'title',
|
|
1187
|
+
url: 'url',
|
|
1188
|
+
};
|
|
1189
|
+
}
|
|
1190
|
+
static types() {
|
|
1191
|
+
return {
|
|
1192
|
+
title: 'string',
|
|
1193
|
+
url: 'string',
|
|
1194
|
+
};
|
|
1195
|
+
}
|
|
1196
|
+
constructor(map) {
|
|
1197
|
+
super(map);
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
exports.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews = RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews;
|
|
1276
1201
|
class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries extends $tea.Model {
|
|
1277
1202
|
static names() {
|
|
1278
1203
|
return {
|
|
1279
1204
|
customHotValue: 'customHotValue',
|
|
1205
|
+
customTextSummary: 'customTextSummary',
|
|
1280
1206
|
hotTopic: 'hotTopic',
|
|
1281
1207
|
hotTopicVersion: 'hotTopicVersion',
|
|
1282
1208
|
hotValue: 'hotValue',
|
|
1209
|
+
images: 'images',
|
|
1210
|
+
news: 'news',
|
|
1211
|
+
textSummary: 'textSummary',
|
|
1283
1212
|
};
|
|
1284
1213
|
}
|
|
1285
1214
|
static types() {
|
|
1286
1215
|
return {
|
|
1287
1216
|
customHotValue: 'number',
|
|
1217
|
+
customTextSummary: 'string',
|
|
1288
1218
|
hotTopic: 'string',
|
|
1289
1219
|
hotTopicVersion: 'string',
|
|
1290
1220
|
hotValue: 'number',
|
|
1221
|
+
images: { 'type': 'array', 'itemType': RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages },
|
|
1222
|
+
news: { 'type': 'array', 'itemType': RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews },
|
|
1223
|
+
textSummary: 'string',
|
|
1291
1224
|
};
|
|
1292
1225
|
}
|
|
1293
1226
|
constructor(map) {
|
|
@@ -2373,57 +2306,6 @@ class Client extends openapi_client_1.default {
|
|
|
2373
2306
|
let headers = {};
|
|
2374
2307
|
return await this.listHotTopicSummariesWithOptions(workspaceId, request, headers, runtime);
|
|
2375
2308
|
}
|
|
2376
|
-
/**
|
|
2377
|
-
* 评论生成服务
|
|
2378
|
-
*
|
|
2379
|
-
* @param request - RunCommentGenerationRequest
|
|
2380
|
-
* @param headers - map
|
|
2381
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
2382
|
-
* @returns RunCommentGenerationResponse
|
|
2383
|
-
*/
|
|
2384
|
-
async runCommentGenerationWithOptions(workspaceId, request, headers, runtime) {
|
|
2385
|
-
tea_util_1.default.validateModel(request);
|
|
2386
|
-
let body = {};
|
|
2387
|
-
if (!tea_util_1.default.isUnset(request.length)) {
|
|
2388
|
-
body["length"] = request.length;
|
|
2389
|
-
}
|
|
2390
|
-
if (!tea_util_1.default.isUnset(request.numComments)) {
|
|
2391
|
-
body["numComments"] = request.numComments;
|
|
2392
|
-
}
|
|
2393
|
-
if (!tea_util_1.default.isUnset(request.sourceMaterial)) {
|
|
2394
|
-
body["sourceMaterial"] = request.sourceMaterial;
|
|
2395
|
-
}
|
|
2396
|
-
if (!tea_util_1.default.isUnset(request.style)) {
|
|
2397
|
-
body["style"] = request.style;
|
|
2398
|
-
}
|
|
2399
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
2400
|
-
headers: headers,
|
|
2401
|
-
body: openapi_util_1.default.parseToMap(body),
|
|
2402
|
-
});
|
|
2403
|
-
let params = new $OpenApi.Params({
|
|
2404
|
-
action: "RunCommentGeneration",
|
|
2405
|
-
version: "2024-08-01",
|
|
2406
|
-
protocol: "HTTPS",
|
|
2407
|
-
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/quanmiao/lightapp/runCommentGeneration`,
|
|
2408
|
-
method: "POST",
|
|
2409
|
-
authType: "AK",
|
|
2410
|
-
style: "ROA",
|
|
2411
|
-
reqBodyType: "formData",
|
|
2412
|
-
bodyType: "json",
|
|
2413
|
-
});
|
|
2414
|
-
return $tea.cast(await this.callApi(params, req, runtime), new RunCommentGenerationResponse({}));
|
|
2415
|
-
}
|
|
2416
|
-
/**
|
|
2417
|
-
* 评论生成服务
|
|
2418
|
-
*
|
|
2419
|
-
* @param request - RunCommentGenerationRequest
|
|
2420
|
-
* @returns RunCommentGenerationResponse
|
|
2421
|
-
*/
|
|
2422
|
-
async runCommentGeneration(workspaceId, request) {
|
|
2423
|
-
let runtime = new $Util.RuntimeOptions({});
|
|
2424
|
-
let headers = {};
|
|
2425
|
-
return await this.runCommentGenerationWithOptions(workspaceId, request, headers, runtime);
|
|
2426
|
-
}
|
|
2427
2309
|
/**
|
|
2428
2310
|
* 轻应用-热点播报-问答
|
|
2429
2311
|
*
|
|
@@ -2442,6 +2324,9 @@ class Client extends openapi_client_1.default {
|
|
|
2442
2324
|
if (!tea_util_1.default.isUnset(tmpReq.hotTopics)) {
|
|
2443
2325
|
request.hotTopicsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.hotTopics, "hotTopics", "json");
|
|
2444
2326
|
}
|
|
2327
|
+
if (!tea_util_1.default.isUnset(tmpReq.messages)) {
|
|
2328
|
+
request.messagesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.messages, "messages", "json");
|
|
2329
|
+
}
|
|
2445
2330
|
if (!tea_util_1.default.isUnset(tmpReq.stepForBroadcastContentConfig)) {
|
|
2446
2331
|
request.stepForBroadcastContentConfigShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.stepForBroadcastContentConfig, "stepForBroadcastContentConfig", "json");
|
|
2447
2332
|
}
|
|
@@ -2461,6 +2346,9 @@ class Client extends openapi_client_1.default {
|
|
|
2461
2346
|
if (!tea_util_1.default.isUnset(request.imageCount)) {
|
|
2462
2347
|
body["imageCount"] = request.imageCount;
|
|
2463
2348
|
}
|
|
2349
|
+
if (!tea_util_1.default.isUnset(request.messagesShrink)) {
|
|
2350
|
+
body["messages"] = request.messagesShrink;
|
|
2351
|
+
}
|
|
2464
2352
|
if (!tea_util_1.default.isUnset(request.modelCustomPromptTemplate)) {
|
|
2465
2353
|
body["modelCustomPromptTemplate"] = request.modelCustomPromptTemplate;
|
|
2466
2354
|
}
|