@alicloud/quanmiaolightapp20240801 1.5.0 → 2.0.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 +52 -159
- package/dist/client.js +76 -203
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +94 -275
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[];
|
|
@@ -531,13 +478,16 @@ export declare class RunMarketingInformationExtractResponse extends $tea.Model {
|
|
|
531
478
|
});
|
|
532
479
|
}
|
|
533
480
|
export declare class RunMarketingInformationWritingRequest extends $tea.Model {
|
|
481
|
+
customLimitation?: string;
|
|
534
482
|
customPrompt?: string;
|
|
483
|
+
inputExample?: string;
|
|
535
484
|
/**
|
|
536
485
|
* @example
|
|
537
486
|
* qwen-max
|
|
538
487
|
* qwen-plus
|
|
539
488
|
*/
|
|
540
489
|
modelId?: string;
|
|
490
|
+
outputExample?: string;
|
|
541
491
|
sourceMaterial?: string;
|
|
542
492
|
writingType?: string;
|
|
543
493
|
static names(): {
|
|
@@ -1155,94 +1105,6 @@ export declare class ListHotTopicSummariesResponseBodyData extends $tea.Model {
|
|
|
1155
1105
|
[key: string]: any;
|
|
1156
1106
|
});
|
|
1157
1107
|
}
|
|
1158
|
-
export declare class RunCommentGenerationResponseBodyHeader extends $tea.Model {
|
|
1159
|
-
/**
|
|
1160
|
-
* @example
|
|
1161
|
-
* result-generated
|
|
1162
|
-
*/
|
|
1163
|
-
event?: string;
|
|
1164
|
-
eventInfo?: string;
|
|
1165
|
-
/**
|
|
1166
|
-
* @example
|
|
1167
|
-
* F8A35034-EDCF-5C50-95A5-1044316F36E3
|
|
1168
|
-
*/
|
|
1169
|
-
requestId?: string;
|
|
1170
|
-
/**
|
|
1171
|
-
* @example
|
|
1172
|
-
* tcm9xac9dsfbfgm8hf5k94l3cqybwh9o3mn0iuyytdgd9qoejxf1crxsdvuvr8fu0zuhbe8anhdaoeif2wbkmebagnezh23cuhkiazx2tmjh4eml791eak7t95sshvtkz14bh2lnbktzvdhialzd8reoaem0pktw41slinwyoabe75xlnxsqb5eo1i6ly70
|
|
1173
|
-
*/
|
|
1174
|
-
sessionId?: string;
|
|
1175
|
-
/**
|
|
1176
|
-
* @example
|
|
1177
|
-
* task-fu1918oghtodbis3chgpfr
|
|
1178
|
-
*/
|
|
1179
|
-
taskId?: string;
|
|
1180
|
-
/**
|
|
1181
|
-
* @example
|
|
1182
|
-
* 21507c3517074446017046500ed5f1
|
|
1183
|
-
*/
|
|
1184
|
-
traceId?: string;
|
|
1185
|
-
static names(): {
|
|
1186
|
-
[key: string]: string;
|
|
1187
|
-
};
|
|
1188
|
-
static types(): {
|
|
1189
|
-
[key: string]: any;
|
|
1190
|
-
};
|
|
1191
|
-
constructor(map?: {
|
|
1192
|
-
[key: string]: any;
|
|
1193
|
-
});
|
|
1194
|
-
}
|
|
1195
|
-
export declare class RunCommentGenerationResponseBodyPayloadOutput extends $tea.Model {
|
|
1196
|
-
text?: string;
|
|
1197
|
-
static names(): {
|
|
1198
|
-
[key: string]: string;
|
|
1199
|
-
};
|
|
1200
|
-
static types(): {
|
|
1201
|
-
[key: string]: any;
|
|
1202
|
-
};
|
|
1203
|
-
constructor(map?: {
|
|
1204
|
-
[key: string]: any;
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
export declare class RunCommentGenerationResponseBodyPayloadUsage extends $tea.Model {
|
|
1208
|
-
/**
|
|
1209
|
-
* @example
|
|
1210
|
-
* 100
|
|
1211
|
-
*/
|
|
1212
|
-
inputTokens?: number;
|
|
1213
|
-
/**
|
|
1214
|
-
* @example
|
|
1215
|
-
* 100
|
|
1216
|
-
*/
|
|
1217
|
-
outputTokens?: number;
|
|
1218
|
-
/**
|
|
1219
|
-
* @example
|
|
1220
|
-
* 200
|
|
1221
|
-
*/
|
|
1222
|
-
totalTokens?: number;
|
|
1223
|
-
static names(): {
|
|
1224
|
-
[key: string]: string;
|
|
1225
|
-
};
|
|
1226
|
-
static types(): {
|
|
1227
|
-
[key: string]: any;
|
|
1228
|
-
};
|
|
1229
|
-
constructor(map?: {
|
|
1230
|
-
[key: string]: any;
|
|
1231
|
-
});
|
|
1232
|
-
}
|
|
1233
|
-
export declare class RunCommentGenerationResponseBodyPayload extends $tea.Model {
|
|
1234
|
-
output?: RunCommentGenerationResponseBodyPayloadOutput;
|
|
1235
|
-
usage?: RunCommentGenerationResponseBodyPayloadUsage;
|
|
1236
|
-
static names(): {
|
|
1237
|
-
[key: string]: string;
|
|
1238
|
-
};
|
|
1239
|
-
static types(): {
|
|
1240
|
-
[key: string]: any;
|
|
1241
|
-
};
|
|
1242
|
-
constructor(map?: {
|
|
1243
|
-
[key: string]: any;
|
|
1244
|
-
});
|
|
1245
|
-
}
|
|
1246
1108
|
export declare class RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights extends $tea.Model {
|
|
1247
1109
|
/**
|
|
1248
1110
|
* @example
|
|
@@ -1367,12 +1229,54 @@ export declare class RunHotTopicChatResponseBodyPayloadOutputArticles extends $t
|
|
|
1367
1229
|
[key: string]: any;
|
|
1368
1230
|
});
|
|
1369
1231
|
}
|
|
1232
|
+
export declare class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages extends $tea.Model {
|
|
1233
|
+
/**
|
|
1234
|
+
* @example
|
|
1235
|
+
* http://xxx
|
|
1236
|
+
*/
|
|
1237
|
+
url?: string;
|
|
1238
|
+
static names(): {
|
|
1239
|
+
[key: string]: string;
|
|
1240
|
+
};
|
|
1241
|
+
static types(): {
|
|
1242
|
+
[key: string]: any;
|
|
1243
|
+
};
|
|
1244
|
+
constructor(map?: {
|
|
1245
|
+
[key: string]: any;
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1248
|
+
export declare class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews extends $tea.Model {
|
|
1249
|
+
/**
|
|
1250
|
+
* @example
|
|
1251
|
+
* xxx
|
|
1252
|
+
*/
|
|
1253
|
+
title?: string;
|
|
1254
|
+
/**
|
|
1255
|
+
* @example
|
|
1256
|
+
* http://xxx
|
|
1257
|
+
*/
|
|
1258
|
+
url?: string;
|
|
1259
|
+
static names(): {
|
|
1260
|
+
[key: string]: string;
|
|
1261
|
+
};
|
|
1262
|
+
static types(): {
|
|
1263
|
+
[key: string]: any;
|
|
1264
|
+
};
|
|
1265
|
+
constructor(map?: {
|
|
1266
|
+
[key: string]: any;
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1370
1269
|
export declare class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries extends $tea.Model {
|
|
1371
1270
|
/**
|
|
1372
1271
|
* @example
|
|
1373
1272
|
* 100000
|
|
1374
1273
|
*/
|
|
1375
1274
|
customHotValue?: number;
|
|
1275
|
+
/**
|
|
1276
|
+
* @example
|
|
1277
|
+
* xxx
|
|
1278
|
+
*/
|
|
1279
|
+
customTextSummary?: string;
|
|
1376
1280
|
/**
|
|
1377
1281
|
* @example
|
|
1378
1282
|
* xx
|
|
@@ -1388,6 +1292,13 @@ export declare class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries e
|
|
|
1388
1292
|
* 100000
|
|
1389
1293
|
*/
|
|
1390
1294
|
hotValue?: number;
|
|
1295
|
+
images?: RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages[];
|
|
1296
|
+
news?: RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews[];
|
|
1297
|
+
/**
|
|
1298
|
+
* @example
|
|
1299
|
+
* xxx
|
|
1300
|
+
*/
|
|
1301
|
+
textSummary?: string;
|
|
1391
1302
|
static names(): {
|
|
1392
1303
|
[key: string]: string;
|
|
1393
1304
|
};
|
|
@@ -2513,24 +2424,6 @@ export default class Client extends OpenApi {
|
|
|
2513
2424
|
* @returns ListHotTopicSummariesResponse
|
|
2514
2425
|
*/
|
|
2515
2426
|
listHotTopicSummaries(workspaceId: string, request: ListHotTopicSummariesRequest): Promise<ListHotTopicSummariesResponse>;
|
|
2516
|
-
/**
|
|
2517
|
-
* 评论生成服务
|
|
2518
|
-
*
|
|
2519
|
-
* @param request - RunCommentGenerationRequest
|
|
2520
|
-
* @param headers - map
|
|
2521
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
2522
|
-
* @returns RunCommentGenerationResponse
|
|
2523
|
-
*/
|
|
2524
|
-
runCommentGenerationWithOptions(workspaceId: string, request: RunCommentGenerationRequest, headers: {
|
|
2525
|
-
[key: string]: string;
|
|
2526
|
-
}, runtime: $Util.RuntimeOptions): Promise<RunCommentGenerationResponse>;
|
|
2527
|
-
/**
|
|
2528
|
-
* 评论生成服务
|
|
2529
|
-
*
|
|
2530
|
-
* @param request - RunCommentGenerationRequest
|
|
2531
|
-
* @returns RunCommentGenerationResponse
|
|
2532
|
-
*/
|
|
2533
|
-
runCommentGeneration(workspaceId: string, request: RunCommentGenerationRequest): Promise<RunCommentGenerationResponse>;
|
|
2534
2427
|
/**
|
|
2535
2428
|
* 轻应用-热点播报-问答
|
|
2536
2429
|
*
|
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 =
|
|
31
|
-
exports.RunVideoAnalysisResponseBodyPayload = exports.RunVideoAnalysisResponseBodyPayloadUsage = exports.RunVideoAnalysisResponseBodyPayloadOutput = void 0;
|
|
39
|
+
exports.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews = exports.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages = exports.RunHotTopicChatResponseBodyPayloadOutputArticles = exports.RunHotTopicChatResponseBodyHeader = exports.RunHotTopicChatRequestStepForBroadcastContentConfig = exports.RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights = 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 = 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 {
|
|
@@ -516,16 +463,22 @@ exports.RunMarketingInformationExtractResponse = RunMarketingInformationExtractR
|
|
|
516
463
|
class RunMarketingInformationWritingRequest extends $tea.Model {
|
|
517
464
|
static names() {
|
|
518
465
|
return {
|
|
466
|
+
customLimitation: 'customLimitation',
|
|
519
467
|
customPrompt: 'customPrompt',
|
|
468
|
+
inputExample: 'inputExample',
|
|
520
469
|
modelId: 'modelId',
|
|
470
|
+
outputExample: 'outputExample',
|
|
521
471
|
sourceMaterial: 'sourceMaterial',
|
|
522
472
|
writingType: 'writingType',
|
|
523
473
|
};
|
|
524
474
|
}
|
|
525
475
|
static types() {
|
|
526
476
|
return {
|
|
477
|
+
customLimitation: 'string',
|
|
527
478
|
customPrompt: 'string',
|
|
479
|
+
inputExample: 'string',
|
|
528
480
|
modelId: 'string',
|
|
481
|
+
outputExample: 'string',
|
|
529
482
|
sourceMaterial: 'string',
|
|
530
483
|
writingType: 'string',
|
|
531
484
|
};
|
|
@@ -1091,86 +1044,6 @@ class ListHotTopicSummariesResponseBodyData extends $tea.Model {
|
|
|
1091
1044
|
}
|
|
1092
1045
|
}
|
|
1093
1046
|
exports.ListHotTopicSummariesResponseBodyData = ListHotTopicSummariesResponseBodyData;
|
|
1094
|
-
class RunCommentGenerationResponseBodyHeader extends $tea.Model {
|
|
1095
|
-
static names() {
|
|
1096
|
-
return {
|
|
1097
|
-
event: 'event',
|
|
1098
|
-
eventInfo: 'eventInfo',
|
|
1099
|
-
requestId: 'requestId',
|
|
1100
|
-
sessionId: 'sessionId',
|
|
1101
|
-
taskId: 'taskId',
|
|
1102
|
-
traceId: 'traceId',
|
|
1103
|
-
};
|
|
1104
|
-
}
|
|
1105
|
-
static types() {
|
|
1106
|
-
return {
|
|
1107
|
-
event: 'string',
|
|
1108
|
-
eventInfo: 'string',
|
|
1109
|
-
requestId: 'string',
|
|
1110
|
-
sessionId: 'string',
|
|
1111
|
-
taskId: 'string',
|
|
1112
|
-
traceId: 'string',
|
|
1113
|
-
};
|
|
1114
|
-
}
|
|
1115
|
-
constructor(map) {
|
|
1116
|
-
super(map);
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
exports.RunCommentGenerationResponseBodyHeader = RunCommentGenerationResponseBodyHeader;
|
|
1120
|
-
class RunCommentGenerationResponseBodyPayloadOutput extends $tea.Model {
|
|
1121
|
-
static names() {
|
|
1122
|
-
return {
|
|
1123
|
-
text: 'text',
|
|
1124
|
-
};
|
|
1125
|
-
}
|
|
1126
|
-
static types() {
|
|
1127
|
-
return {
|
|
1128
|
-
text: 'string',
|
|
1129
|
-
};
|
|
1130
|
-
}
|
|
1131
|
-
constructor(map) {
|
|
1132
|
-
super(map);
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
exports.RunCommentGenerationResponseBodyPayloadOutput = RunCommentGenerationResponseBodyPayloadOutput;
|
|
1136
|
-
class RunCommentGenerationResponseBodyPayloadUsage extends $tea.Model {
|
|
1137
|
-
static names() {
|
|
1138
|
-
return {
|
|
1139
|
-
inputTokens: 'inputTokens',
|
|
1140
|
-
outputTokens: 'outputTokens',
|
|
1141
|
-
totalTokens: 'totalTokens',
|
|
1142
|
-
};
|
|
1143
|
-
}
|
|
1144
|
-
static types() {
|
|
1145
|
-
return {
|
|
1146
|
-
inputTokens: 'number',
|
|
1147
|
-
outputTokens: 'number',
|
|
1148
|
-
totalTokens: 'number',
|
|
1149
|
-
};
|
|
1150
|
-
}
|
|
1151
|
-
constructor(map) {
|
|
1152
|
-
super(map);
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
exports.RunCommentGenerationResponseBodyPayloadUsage = RunCommentGenerationResponseBodyPayloadUsage;
|
|
1156
|
-
class RunCommentGenerationResponseBodyPayload extends $tea.Model {
|
|
1157
|
-
static names() {
|
|
1158
|
-
return {
|
|
1159
|
-
output: 'output',
|
|
1160
|
-
usage: 'usage',
|
|
1161
|
-
};
|
|
1162
|
-
}
|
|
1163
|
-
static types() {
|
|
1164
|
-
return {
|
|
1165
|
-
output: RunCommentGenerationResponseBodyPayloadOutput,
|
|
1166
|
-
usage: RunCommentGenerationResponseBodyPayloadUsage,
|
|
1167
|
-
};
|
|
1168
|
-
}
|
|
1169
|
-
constructor(map) {
|
|
1170
|
-
super(map);
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
exports.RunCommentGenerationResponseBodyPayload = RunCommentGenerationResponseBodyPayload;
|
|
1174
1047
|
class RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights extends $tea.Model {
|
|
1175
1048
|
static names() {
|
|
1176
1049
|
return {
|
|
@@ -1267,21 +1140,63 @@ class RunHotTopicChatResponseBodyPayloadOutputArticles extends $tea.Model {
|
|
|
1267
1140
|
}
|
|
1268
1141
|
}
|
|
1269
1142
|
exports.RunHotTopicChatResponseBodyPayloadOutputArticles = RunHotTopicChatResponseBodyPayloadOutputArticles;
|
|
1143
|
+
class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages extends $tea.Model {
|
|
1144
|
+
static names() {
|
|
1145
|
+
return {
|
|
1146
|
+
url: 'url',
|
|
1147
|
+
};
|
|
1148
|
+
}
|
|
1149
|
+
static types() {
|
|
1150
|
+
return {
|
|
1151
|
+
url: 'string',
|
|
1152
|
+
};
|
|
1153
|
+
}
|
|
1154
|
+
constructor(map) {
|
|
1155
|
+
super(map);
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
exports.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages = RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages;
|
|
1159
|
+
class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews extends $tea.Model {
|
|
1160
|
+
static names() {
|
|
1161
|
+
return {
|
|
1162
|
+
title: 'title',
|
|
1163
|
+
url: 'url',
|
|
1164
|
+
};
|
|
1165
|
+
}
|
|
1166
|
+
static types() {
|
|
1167
|
+
return {
|
|
1168
|
+
title: 'string',
|
|
1169
|
+
url: 'string',
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1172
|
+
constructor(map) {
|
|
1173
|
+
super(map);
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
exports.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews = RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews;
|
|
1270
1177
|
class RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries extends $tea.Model {
|
|
1271
1178
|
static names() {
|
|
1272
1179
|
return {
|
|
1273
1180
|
customHotValue: 'customHotValue',
|
|
1181
|
+
customTextSummary: 'customTextSummary',
|
|
1274
1182
|
hotTopic: 'hotTopic',
|
|
1275
1183
|
hotTopicVersion: 'hotTopicVersion',
|
|
1276
1184
|
hotValue: 'hotValue',
|
|
1185
|
+
images: 'images',
|
|
1186
|
+
news: 'news',
|
|
1187
|
+
textSummary: 'textSummary',
|
|
1277
1188
|
};
|
|
1278
1189
|
}
|
|
1279
1190
|
static types() {
|
|
1280
1191
|
return {
|
|
1281
1192
|
customHotValue: 'number',
|
|
1193
|
+
customTextSummary: 'string',
|
|
1282
1194
|
hotTopic: 'string',
|
|
1283
1195
|
hotTopicVersion: 'string',
|
|
1284
1196
|
hotValue: 'number',
|
|
1197
|
+
images: { 'type': 'array', 'itemType': RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages },
|
|
1198
|
+
news: { 'type': 'array', 'itemType': RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews },
|
|
1199
|
+
textSummary: 'string',
|
|
1285
1200
|
};
|
|
1286
1201
|
}
|
|
1287
1202
|
constructor(map) {
|
|
@@ -2367,57 +2282,6 @@ class Client extends openapi_client_1.default {
|
|
|
2367
2282
|
let headers = {};
|
|
2368
2283
|
return await this.listHotTopicSummariesWithOptions(workspaceId, request, headers, runtime);
|
|
2369
2284
|
}
|
|
2370
|
-
/**
|
|
2371
|
-
* 评论生成服务
|
|
2372
|
-
*
|
|
2373
|
-
* @param request - RunCommentGenerationRequest
|
|
2374
|
-
* @param headers - map
|
|
2375
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
2376
|
-
* @returns RunCommentGenerationResponse
|
|
2377
|
-
*/
|
|
2378
|
-
async runCommentGenerationWithOptions(workspaceId, request, headers, runtime) {
|
|
2379
|
-
tea_util_1.default.validateModel(request);
|
|
2380
|
-
let body = {};
|
|
2381
|
-
if (!tea_util_1.default.isUnset(request.length)) {
|
|
2382
|
-
body["length"] = request.length;
|
|
2383
|
-
}
|
|
2384
|
-
if (!tea_util_1.default.isUnset(request.numComments)) {
|
|
2385
|
-
body["numComments"] = request.numComments;
|
|
2386
|
-
}
|
|
2387
|
-
if (!tea_util_1.default.isUnset(request.sourceMaterial)) {
|
|
2388
|
-
body["sourceMaterial"] = request.sourceMaterial;
|
|
2389
|
-
}
|
|
2390
|
-
if (!tea_util_1.default.isUnset(request.style)) {
|
|
2391
|
-
body["style"] = request.style;
|
|
2392
|
-
}
|
|
2393
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
2394
|
-
headers: headers,
|
|
2395
|
-
body: openapi_util_1.default.parseToMap(body),
|
|
2396
|
-
});
|
|
2397
|
-
let params = new $OpenApi.Params({
|
|
2398
|
-
action: "RunCommentGeneration",
|
|
2399
|
-
version: "2024-08-01",
|
|
2400
|
-
protocol: "HTTPS",
|
|
2401
|
-
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/quanmiao/lightapp/runCommentGeneration`,
|
|
2402
|
-
method: "POST",
|
|
2403
|
-
authType: "AK",
|
|
2404
|
-
style: "ROA",
|
|
2405
|
-
reqBodyType: "formData",
|
|
2406
|
-
bodyType: "json",
|
|
2407
|
-
});
|
|
2408
|
-
return $tea.cast(await this.callApi(params, req, runtime), new RunCommentGenerationResponse({}));
|
|
2409
|
-
}
|
|
2410
|
-
/**
|
|
2411
|
-
* 评论生成服务
|
|
2412
|
-
*
|
|
2413
|
-
* @param request - RunCommentGenerationRequest
|
|
2414
|
-
* @returns RunCommentGenerationResponse
|
|
2415
|
-
*/
|
|
2416
|
-
async runCommentGeneration(workspaceId, request) {
|
|
2417
|
-
let runtime = new $Util.RuntimeOptions({});
|
|
2418
|
-
let headers = {};
|
|
2419
|
-
return await this.runCommentGenerationWithOptions(workspaceId, request, headers, runtime);
|
|
2420
|
-
}
|
|
2421
2285
|
/**
|
|
2422
2286
|
* 轻应用-热点播报-问答
|
|
2423
2287
|
*
|
|
@@ -2624,12 +2488,21 @@ class Client extends openapi_client_1.default {
|
|
|
2624
2488
|
async runMarketingInformationWritingWithOptions(workspaceId, request, headers, runtime) {
|
|
2625
2489
|
tea_util_1.default.validateModel(request);
|
|
2626
2490
|
let body = {};
|
|
2491
|
+
if (!tea_util_1.default.isUnset(request.customLimitation)) {
|
|
2492
|
+
body["customLimitation"] = request.customLimitation;
|
|
2493
|
+
}
|
|
2627
2494
|
if (!tea_util_1.default.isUnset(request.customPrompt)) {
|
|
2628
2495
|
body["customPrompt"] = request.customPrompt;
|
|
2629
2496
|
}
|
|
2497
|
+
if (!tea_util_1.default.isUnset(request.inputExample)) {
|
|
2498
|
+
body["inputExample"] = request.inputExample;
|
|
2499
|
+
}
|
|
2630
2500
|
if (!tea_util_1.default.isUnset(request.modelId)) {
|
|
2631
2501
|
body["modelId"] = request.modelId;
|
|
2632
2502
|
}
|
|
2503
|
+
if (!tea_util_1.default.isUnset(request.outputExample)) {
|
|
2504
|
+
body["outputExample"] = request.outputExample;
|
|
2505
|
+
}
|
|
2633
2506
|
if (!tea_util_1.default.isUnset(request.sourceMaterial)) {
|
|
2634
2507
|
body["sourceMaterial"] = request.sourceMaterial;
|
|
2635
2508
|
}
|