@alicloud/quanmiaolightapp20240801 2.0.0 → 2.1.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 +465 -0
- package/dist/client.js +479 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +785 -8
package/dist/client.js
CHANGED
|
@@ -36,8 +36,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
39
|
+
exports.ListHotTopicSummariesResponseBodyDataNewsComments = exports.GenerateOutputFormatResponseBodyData = exports.GenerateOutputFormatRequestTags = exports.GenerateBroadcastNewsResponseBodyData = exports.GenerateBroadcastNewsResponseBodyDataUsage = exports.GenerateBroadcastNewsResponseBodyDataHotTopicSummaries = exports.GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages = exports.RunVideoAnalysisResponse = exports.RunVideoAnalysisResponseBody = exports.RunVideoAnalysisShrinkRequest = exports.RunVideoAnalysisRequest = exports.RunTagMiningAnalysisResponse = exports.RunTagMiningAnalysisResponseBody = exports.RunTagMiningAnalysisShrinkRequest = exports.RunTagMiningAnalysisRequest = 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.GenerateOutputFormatResponse = exports.GenerateOutputFormatResponseBody = exports.GenerateOutputFormatShrinkRequest = exports.GenerateOutputFormatRequest = exports.GenerateBroadcastNewsResponse = exports.GenerateBroadcastNewsResponseBody = exports.GenerateBroadcastNewsRequest = void 0;
|
|
40
|
+
exports.RunVideoAnalysisResponseBodyPayloadOutputVideoAnalysisResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoAnalysisResultVideoShotAnalysisResults = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoAnalysisResultUsage = exports.RunVideoAnalysisResponseBodyHeader = exports.RunTagMiningAnalysisResponseBodyPayload = exports.RunTagMiningAnalysisResponseBodyPayloadUsage = exports.RunTagMiningAnalysisResponseBodyPayloadOutput = exports.RunTagMiningAnalysisResponseBodyHeader = exports.RunTagMiningAnalysisRequestTags = 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 = exports.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages = exports.RunHotTopicChatResponseBodyPayloadOutputArticles = exports.RunHotTopicChatResponseBodyHeader = exports.RunHotTopicChatRequestStepForBroadcastContentConfig = exports.RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights = exports.RunHotTopicChatRequestMessages = exports.ListHotTopicSummariesResponseBodyData = exports.ListHotTopicSummariesResponseBodyDataSummary = exports.ListHotTopicSummariesResponseBodyDataSummarySummaries = exports.ListHotTopicSummariesResponseBodyDataNews = void 0;
|
|
41
|
+
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 = void 0;
|
|
41
42
|
// This file is auto-generated, don't edit it
|
|
42
43
|
/**
|
|
43
44
|
*/
|
|
@@ -108,6 +109,100 @@ class GenerateBroadcastNewsResponse extends $tea.Model {
|
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
111
|
exports.GenerateBroadcastNewsResponse = GenerateBroadcastNewsResponse;
|
|
112
|
+
class GenerateOutputFormatRequest extends $tea.Model {
|
|
113
|
+
static names() {
|
|
114
|
+
return {
|
|
115
|
+
businessType: 'businessType',
|
|
116
|
+
content: 'content',
|
|
117
|
+
extraInfo: 'extraInfo',
|
|
118
|
+
tags: 'tags',
|
|
119
|
+
taskDescription: 'taskDescription',
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
static types() {
|
|
123
|
+
return {
|
|
124
|
+
businessType: 'string',
|
|
125
|
+
content: 'string',
|
|
126
|
+
extraInfo: 'string',
|
|
127
|
+
tags: { 'type': 'array', 'itemType': GenerateOutputFormatRequestTags },
|
|
128
|
+
taskDescription: 'string',
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
constructor(map) {
|
|
132
|
+
super(map);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
exports.GenerateOutputFormatRequest = GenerateOutputFormatRequest;
|
|
136
|
+
class GenerateOutputFormatShrinkRequest extends $tea.Model {
|
|
137
|
+
static names() {
|
|
138
|
+
return {
|
|
139
|
+
businessType: 'businessType',
|
|
140
|
+
content: 'content',
|
|
141
|
+
extraInfo: 'extraInfo',
|
|
142
|
+
tagsShrink: 'tags',
|
|
143
|
+
taskDescription: 'taskDescription',
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
static types() {
|
|
147
|
+
return {
|
|
148
|
+
businessType: 'string',
|
|
149
|
+
content: 'string',
|
|
150
|
+
extraInfo: 'string',
|
|
151
|
+
tagsShrink: 'string',
|
|
152
|
+
taskDescription: 'string',
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
constructor(map) {
|
|
156
|
+
super(map);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
exports.GenerateOutputFormatShrinkRequest = GenerateOutputFormatShrinkRequest;
|
|
160
|
+
class GenerateOutputFormatResponseBody extends $tea.Model {
|
|
161
|
+
static names() {
|
|
162
|
+
return {
|
|
163
|
+
code: 'code',
|
|
164
|
+
data: 'data',
|
|
165
|
+
httpStatusCode: 'httpStatusCode',
|
|
166
|
+
message: 'message',
|
|
167
|
+
requestId: 'requestId',
|
|
168
|
+
success: 'success',
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
static types() {
|
|
172
|
+
return {
|
|
173
|
+
code: 'string',
|
|
174
|
+
data: GenerateOutputFormatResponseBodyData,
|
|
175
|
+
httpStatusCode: 'number',
|
|
176
|
+
message: 'string',
|
|
177
|
+
requestId: 'string',
|
|
178
|
+
success: 'boolean',
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
constructor(map) {
|
|
182
|
+
super(map);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
exports.GenerateOutputFormatResponseBody = GenerateOutputFormatResponseBody;
|
|
186
|
+
class GenerateOutputFormatResponse extends $tea.Model {
|
|
187
|
+
static names() {
|
|
188
|
+
return {
|
|
189
|
+
headers: 'headers',
|
|
190
|
+
statusCode: 'statusCode',
|
|
191
|
+
body: 'body',
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
static types() {
|
|
195
|
+
return {
|
|
196
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
197
|
+
statusCode: 'number',
|
|
198
|
+
body: GenerateOutputFormatResponseBody,
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
constructor(map) {
|
|
202
|
+
super(map);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
exports.GenerateOutputFormatResponse = GenerateOutputFormatResponse;
|
|
111
206
|
class ListHotTopicSummariesRequest extends $tea.Model {
|
|
112
207
|
static names() {
|
|
113
208
|
return {
|
|
@@ -192,6 +287,7 @@ class RunHotTopicChatRequest extends $tea.Model {
|
|
|
192
287
|
hotTopicVersion: 'hotTopicVersion',
|
|
193
288
|
hotTopics: 'hotTopics',
|
|
194
289
|
imageCount: 'imageCount',
|
|
290
|
+
messages: 'messages',
|
|
195
291
|
modelCustomPromptTemplate: 'modelCustomPromptTemplate',
|
|
196
292
|
modelId: 'modelId',
|
|
197
293
|
originalSessionId: 'originalSessionId',
|
|
@@ -207,6 +303,7 @@ class RunHotTopicChatRequest extends $tea.Model {
|
|
|
207
303
|
hotTopicVersion: 'string',
|
|
208
304
|
hotTopics: { 'type': 'array', 'itemType': 'string' },
|
|
209
305
|
imageCount: 'number',
|
|
306
|
+
messages: { 'type': 'array', 'itemType': RunHotTopicChatRequestMessages },
|
|
210
307
|
modelCustomPromptTemplate: 'string',
|
|
211
308
|
modelId: 'string',
|
|
212
309
|
originalSessionId: 'string',
|
|
@@ -228,6 +325,7 @@ class RunHotTopicChatShrinkRequest extends $tea.Model {
|
|
|
228
325
|
hotTopicVersion: 'hotTopicVersion',
|
|
229
326
|
hotTopicsShrink: 'hotTopics',
|
|
230
327
|
imageCount: 'imageCount',
|
|
328
|
+
messagesShrink: 'messages',
|
|
231
329
|
modelCustomPromptTemplate: 'modelCustomPromptTemplate',
|
|
232
330
|
modelId: 'modelId',
|
|
233
331
|
originalSessionId: 'originalSessionId',
|
|
@@ -243,6 +341,7 @@ class RunHotTopicChatShrinkRequest extends $tea.Model {
|
|
|
243
341
|
hotTopicVersion: 'string',
|
|
244
342
|
hotTopicsShrink: 'string',
|
|
245
343
|
imageCount: 'number',
|
|
344
|
+
messagesShrink: 'string',
|
|
246
345
|
modelCustomPromptTemplate: 'string',
|
|
247
346
|
modelId: 'string',
|
|
248
347
|
originalSessionId: 'string',
|
|
@@ -740,6 +839,102 @@ class RunStyleWritingResponse extends $tea.Model {
|
|
|
740
839
|
}
|
|
741
840
|
}
|
|
742
841
|
exports.RunStyleWritingResponse = RunStyleWritingResponse;
|
|
842
|
+
class RunTagMiningAnalysisRequest extends $tea.Model {
|
|
843
|
+
static names() {
|
|
844
|
+
return {
|
|
845
|
+
businessType: 'businessType',
|
|
846
|
+
content: 'content',
|
|
847
|
+
extraInfo: 'extraInfo',
|
|
848
|
+
modelId: 'modelId',
|
|
849
|
+
outputFormat: 'outputFormat',
|
|
850
|
+
tags: 'tags',
|
|
851
|
+
taskDescription: 'taskDescription',
|
|
852
|
+
};
|
|
853
|
+
}
|
|
854
|
+
static types() {
|
|
855
|
+
return {
|
|
856
|
+
businessType: 'string',
|
|
857
|
+
content: 'string',
|
|
858
|
+
extraInfo: 'string',
|
|
859
|
+
modelId: 'string',
|
|
860
|
+
outputFormat: 'string',
|
|
861
|
+
tags: { 'type': 'array', 'itemType': RunTagMiningAnalysisRequestTags },
|
|
862
|
+
taskDescription: 'string',
|
|
863
|
+
};
|
|
864
|
+
}
|
|
865
|
+
constructor(map) {
|
|
866
|
+
super(map);
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
exports.RunTagMiningAnalysisRequest = RunTagMiningAnalysisRequest;
|
|
870
|
+
class RunTagMiningAnalysisShrinkRequest extends $tea.Model {
|
|
871
|
+
static names() {
|
|
872
|
+
return {
|
|
873
|
+
businessType: 'businessType',
|
|
874
|
+
content: 'content',
|
|
875
|
+
extraInfo: 'extraInfo',
|
|
876
|
+
modelId: 'modelId',
|
|
877
|
+
outputFormat: 'outputFormat',
|
|
878
|
+
tagsShrink: 'tags',
|
|
879
|
+
taskDescription: 'taskDescription',
|
|
880
|
+
};
|
|
881
|
+
}
|
|
882
|
+
static types() {
|
|
883
|
+
return {
|
|
884
|
+
businessType: 'string',
|
|
885
|
+
content: 'string',
|
|
886
|
+
extraInfo: 'string',
|
|
887
|
+
modelId: 'string',
|
|
888
|
+
outputFormat: 'string',
|
|
889
|
+
tagsShrink: 'string',
|
|
890
|
+
taskDescription: 'string',
|
|
891
|
+
};
|
|
892
|
+
}
|
|
893
|
+
constructor(map) {
|
|
894
|
+
super(map);
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
exports.RunTagMiningAnalysisShrinkRequest = RunTagMiningAnalysisShrinkRequest;
|
|
898
|
+
class RunTagMiningAnalysisResponseBody extends $tea.Model {
|
|
899
|
+
static names() {
|
|
900
|
+
return {
|
|
901
|
+
header: 'header',
|
|
902
|
+
payload: 'payload',
|
|
903
|
+
requestId: 'requestId',
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
static types() {
|
|
907
|
+
return {
|
|
908
|
+
header: RunTagMiningAnalysisResponseBodyHeader,
|
|
909
|
+
payload: RunTagMiningAnalysisResponseBodyPayload,
|
|
910
|
+
requestId: 'string',
|
|
911
|
+
};
|
|
912
|
+
}
|
|
913
|
+
constructor(map) {
|
|
914
|
+
super(map);
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
exports.RunTagMiningAnalysisResponseBody = RunTagMiningAnalysisResponseBody;
|
|
918
|
+
class RunTagMiningAnalysisResponse extends $tea.Model {
|
|
919
|
+
static names() {
|
|
920
|
+
return {
|
|
921
|
+
headers: 'headers',
|
|
922
|
+
statusCode: 'statusCode',
|
|
923
|
+
body: 'body',
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
static types() {
|
|
927
|
+
return {
|
|
928
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
929
|
+
statusCode: 'number',
|
|
930
|
+
body: RunTagMiningAnalysisResponseBody,
|
|
931
|
+
};
|
|
932
|
+
}
|
|
933
|
+
constructor(map) {
|
|
934
|
+
super(map);
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
exports.RunTagMiningAnalysisResponse = RunTagMiningAnalysisResponse;
|
|
743
938
|
class RunVideoAnalysisRequest extends $tea.Model {
|
|
744
939
|
static names() {
|
|
745
940
|
return {
|
|
@@ -940,6 +1135,40 @@ class GenerateBroadcastNewsResponseBodyData extends $tea.Model {
|
|
|
940
1135
|
}
|
|
941
1136
|
}
|
|
942
1137
|
exports.GenerateBroadcastNewsResponseBodyData = GenerateBroadcastNewsResponseBodyData;
|
|
1138
|
+
class GenerateOutputFormatRequestTags extends $tea.Model {
|
|
1139
|
+
static names() {
|
|
1140
|
+
return {
|
|
1141
|
+
tagDefinePrompt: 'tagDefinePrompt',
|
|
1142
|
+
tagName: 'tagName',
|
|
1143
|
+
};
|
|
1144
|
+
}
|
|
1145
|
+
static types() {
|
|
1146
|
+
return {
|
|
1147
|
+
tagDefinePrompt: 'string',
|
|
1148
|
+
tagName: 'string',
|
|
1149
|
+
};
|
|
1150
|
+
}
|
|
1151
|
+
constructor(map) {
|
|
1152
|
+
super(map);
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
exports.GenerateOutputFormatRequestTags = GenerateOutputFormatRequestTags;
|
|
1156
|
+
class GenerateOutputFormatResponseBodyData extends $tea.Model {
|
|
1157
|
+
static names() {
|
|
1158
|
+
return {
|
|
1159
|
+
outputFormat: 'outputFormat',
|
|
1160
|
+
};
|
|
1161
|
+
}
|
|
1162
|
+
static types() {
|
|
1163
|
+
return {
|
|
1164
|
+
outputFormat: 'string',
|
|
1165
|
+
};
|
|
1166
|
+
}
|
|
1167
|
+
constructor(map) {
|
|
1168
|
+
super(map);
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
exports.GenerateOutputFormatResponseBodyData = GenerateOutputFormatResponseBodyData;
|
|
943
1172
|
class ListHotTopicSummariesResponseBodyDataNewsComments extends $tea.Model {
|
|
944
1173
|
static names() {
|
|
945
1174
|
return {
|
|
@@ -1044,6 +1273,26 @@ class ListHotTopicSummariesResponseBodyData extends $tea.Model {
|
|
|
1044
1273
|
}
|
|
1045
1274
|
}
|
|
1046
1275
|
exports.ListHotTopicSummariesResponseBodyData = ListHotTopicSummariesResponseBodyData;
|
|
1276
|
+
class RunHotTopicChatRequestMessages extends $tea.Model {
|
|
1277
|
+
static names() {
|
|
1278
|
+
return {
|
|
1279
|
+
content: 'content',
|
|
1280
|
+
createTime: 'createTime',
|
|
1281
|
+
role: 'role',
|
|
1282
|
+
};
|
|
1283
|
+
}
|
|
1284
|
+
static types() {
|
|
1285
|
+
return {
|
|
1286
|
+
content: 'string',
|
|
1287
|
+
createTime: 'string',
|
|
1288
|
+
role: 'string',
|
|
1289
|
+
};
|
|
1290
|
+
}
|
|
1291
|
+
constructor(map) {
|
|
1292
|
+
super(map);
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
exports.RunHotTopicChatRequestMessages = RunHotTopicChatRequestMessages;
|
|
1047
1296
|
class RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights extends $tea.Model {
|
|
1048
1297
|
static names() {
|
|
1049
1298
|
return {
|
|
@@ -1802,6 +2051,104 @@ class RunStyleWritingResponseBodyPayload extends $tea.Model {
|
|
|
1802
2051
|
}
|
|
1803
2052
|
}
|
|
1804
2053
|
exports.RunStyleWritingResponseBodyPayload = RunStyleWritingResponseBodyPayload;
|
|
2054
|
+
class RunTagMiningAnalysisRequestTags extends $tea.Model {
|
|
2055
|
+
static names() {
|
|
2056
|
+
return {
|
|
2057
|
+
tagDefinePrompt: 'tagDefinePrompt',
|
|
2058
|
+
tagName: 'tagName',
|
|
2059
|
+
};
|
|
2060
|
+
}
|
|
2061
|
+
static types() {
|
|
2062
|
+
return {
|
|
2063
|
+
tagDefinePrompt: 'string',
|
|
2064
|
+
tagName: 'string',
|
|
2065
|
+
};
|
|
2066
|
+
}
|
|
2067
|
+
constructor(map) {
|
|
2068
|
+
super(map);
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
exports.RunTagMiningAnalysisRequestTags = RunTagMiningAnalysisRequestTags;
|
|
2072
|
+
class RunTagMiningAnalysisResponseBodyHeader extends $tea.Model {
|
|
2073
|
+
static names() {
|
|
2074
|
+
return {
|
|
2075
|
+
errorCode: 'errorCode',
|
|
2076
|
+
errorMessage: 'errorMessage',
|
|
2077
|
+
event: 'event',
|
|
2078
|
+
sessionId: 'sessionId',
|
|
2079
|
+
taskId: 'taskId',
|
|
2080
|
+
traceId: 'traceId',
|
|
2081
|
+
};
|
|
2082
|
+
}
|
|
2083
|
+
static types() {
|
|
2084
|
+
return {
|
|
2085
|
+
errorCode: 'string',
|
|
2086
|
+
errorMessage: 'string',
|
|
2087
|
+
event: 'string',
|
|
2088
|
+
sessionId: 'string',
|
|
2089
|
+
taskId: 'string',
|
|
2090
|
+
traceId: 'string',
|
|
2091
|
+
};
|
|
2092
|
+
}
|
|
2093
|
+
constructor(map) {
|
|
2094
|
+
super(map);
|
|
2095
|
+
}
|
|
2096
|
+
}
|
|
2097
|
+
exports.RunTagMiningAnalysisResponseBodyHeader = RunTagMiningAnalysisResponseBodyHeader;
|
|
2098
|
+
class RunTagMiningAnalysisResponseBodyPayloadOutput extends $tea.Model {
|
|
2099
|
+
static names() {
|
|
2100
|
+
return {
|
|
2101
|
+
text: 'text',
|
|
2102
|
+
};
|
|
2103
|
+
}
|
|
2104
|
+
static types() {
|
|
2105
|
+
return {
|
|
2106
|
+
text: 'string',
|
|
2107
|
+
};
|
|
2108
|
+
}
|
|
2109
|
+
constructor(map) {
|
|
2110
|
+
super(map);
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
exports.RunTagMiningAnalysisResponseBodyPayloadOutput = RunTagMiningAnalysisResponseBodyPayloadOutput;
|
|
2114
|
+
class RunTagMiningAnalysisResponseBodyPayloadUsage extends $tea.Model {
|
|
2115
|
+
static names() {
|
|
2116
|
+
return {
|
|
2117
|
+
inputTokens: 'inputTokens',
|
|
2118
|
+
outputTokens: 'outputTokens',
|
|
2119
|
+
totalTokens: 'totalTokens',
|
|
2120
|
+
};
|
|
2121
|
+
}
|
|
2122
|
+
static types() {
|
|
2123
|
+
return {
|
|
2124
|
+
inputTokens: 'number',
|
|
2125
|
+
outputTokens: 'number',
|
|
2126
|
+
totalTokens: 'number',
|
|
2127
|
+
};
|
|
2128
|
+
}
|
|
2129
|
+
constructor(map) {
|
|
2130
|
+
super(map);
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
exports.RunTagMiningAnalysisResponseBodyPayloadUsage = RunTagMiningAnalysisResponseBodyPayloadUsage;
|
|
2134
|
+
class RunTagMiningAnalysisResponseBodyPayload extends $tea.Model {
|
|
2135
|
+
static names() {
|
|
2136
|
+
return {
|
|
2137
|
+
output: 'output',
|
|
2138
|
+
usage: 'usage',
|
|
2139
|
+
};
|
|
2140
|
+
}
|
|
2141
|
+
static types() {
|
|
2142
|
+
return {
|
|
2143
|
+
output: RunTagMiningAnalysisResponseBodyPayloadOutput,
|
|
2144
|
+
usage: RunTagMiningAnalysisResponseBodyPayloadUsage,
|
|
2145
|
+
};
|
|
2146
|
+
}
|
|
2147
|
+
constructor(map) {
|
|
2148
|
+
super(map);
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
exports.RunTagMiningAnalysisResponseBodyPayload = RunTagMiningAnalysisResponseBodyPayload;
|
|
1805
2152
|
class RunVideoAnalysisResponseBodyHeader extends $tea.Model {
|
|
1806
2153
|
static names() {
|
|
1807
2154
|
return {
|
|
@@ -2228,6 +2575,65 @@ class Client extends openapi_client_1.default {
|
|
|
2228
2575
|
let headers = {};
|
|
2229
2576
|
return await this.generateBroadcastNewsWithOptions(workspaceId, request, headers, runtime);
|
|
2230
2577
|
}
|
|
2578
|
+
/**
|
|
2579
|
+
* 轻应用-标签挖掘-获取示例输出格式
|
|
2580
|
+
*
|
|
2581
|
+
* @param tmpReq - GenerateOutputFormatRequest
|
|
2582
|
+
* @param headers - map
|
|
2583
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2584
|
+
* @returns GenerateOutputFormatResponse
|
|
2585
|
+
*/
|
|
2586
|
+
async generateOutputFormatWithOptions(workspaceId, tmpReq, headers, runtime) {
|
|
2587
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
2588
|
+
let request = new GenerateOutputFormatShrinkRequest({});
|
|
2589
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
2590
|
+
if (!tea_util_1.default.isUnset(tmpReq.tags)) {
|
|
2591
|
+
request.tagsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tags, "tags", "json");
|
|
2592
|
+
}
|
|
2593
|
+
let body = {};
|
|
2594
|
+
if (!tea_util_1.default.isUnset(request.businessType)) {
|
|
2595
|
+
body["businessType"] = request.businessType;
|
|
2596
|
+
}
|
|
2597
|
+
if (!tea_util_1.default.isUnset(request.content)) {
|
|
2598
|
+
body["content"] = request.content;
|
|
2599
|
+
}
|
|
2600
|
+
if (!tea_util_1.default.isUnset(request.extraInfo)) {
|
|
2601
|
+
body["extraInfo"] = request.extraInfo;
|
|
2602
|
+
}
|
|
2603
|
+
if (!tea_util_1.default.isUnset(request.tagsShrink)) {
|
|
2604
|
+
body["tags"] = request.tagsShrink;
|
|
2605
|
+
}
|
|
2606
|
+
if (!tea_util_1.default.isUnset(request.taskDescription)) {
|
|
2607
|
+
body["taskDescription"] = request.taskDescription;
|
|
2608
|
+
}
|
|
2609
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2610
|
+
headers: headers,
|
|
2611
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
2612
|
+
});
|
|
2613
|
+
let params = new $OpenApi.Params({
|
|
2614
|
+
action: "GenerateOutputFormat",
|
|
2615
|
+
version: "2024-08-01",
|
|
2616
|
+
protocol: "HTTPS",
|
|
2617
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/quanmiao/lightapp/generateOutputFormat`,
|
|
2618
|
+
method: "POST",
|
|
2619
|
+
authType: "AK",
|
|
2620
|
+
style: "ROA",
|
|
2621
|
+
reqBodyType: "formData",
|
|
2622
|
+
bodyType: "json",
|
|
2623
|
+
});
|
|
2624
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GenerateOutputFormatResponse({}));
|
|
2625
|
+
}
|
|
2626
|
+
/**
|
|
2627
|
+
* 轻应用-标签挖掘-获取示例输出格式
|
|
2628
|
+
*
|
|
2629
|
+
* @param request - GenerateOutputFormatRequest
|
|
2630
|
+
* @returns GenerateOutputFormatResponse
|
|
2631
|
+
*/
|
|
2632
|
+
async generateOutputFormat(workspaceId, request) {
|
|
2633
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
2634
|
+
let headers = {};
|
|
2635
|
+
return await this.generateOutputFormatWithOptions(workspaceId, request, headers, runtime);
|
|
2636
|
+
}
|
|
2231
2637
|
/**
|
|
2232
2638
|
* 轻应用-新闻播报-获取热点话题摘要列表
|
|
2233
2639
|
*
|
|
@@ -2300,6 +2706,9 @@ class Client extends openapi_client_1.default {
|
|
|
2300
2706
|
if (!tea_util_1.default.isUnset(tmpReq.hotTopics)) {
|
|
2301
2707
|
request.hotTopicsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.hotTopics, "hotTopics", "json");
|
|
2302
2708
|
}
|
|
2709
|
+
if (!tea_util_1.default.isUnset(tmpReq.messages)) {
|
|
2710
|
+
request.messagesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.messages, "messages", "json");
|
|
2711
|
+
}
|
|
2303
2712
|
if (!tea_util_1.default.isUnset(tmpReq.stepForBroadcastContentConfig)) {
|
|
2304
2713
|
request.stepForBroadcastContentConfigShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.stepForBroadcastContentConfig, "stepForBroadcastContentConfig", "json");
|
|
2305
2714
|
}
|
|
@@ -2319,6 +2728,9 @@ class Client extends openapi_client_1.default {
|
|
|
2319
2728
|
if (!tea_util_1.default.isUnset(request.imageCount)) {
|
|
2320
2729
|
body["imageCount"] = request.imageCount;
|
|
2321
2730
|
}
|
|
2731
|
+
if (!tea_util_1.default.isUnset(request.messagesShrink)) {
|
|
2732
|
+
body["messages"] = request.messagesShrink;
|
|
2733
|
+
}
|
|
2322
2734
|
if (!tea_util_1.default.isUnset(request.modelCustomPromptTemplate)) {
|
|
2323
2735
|
body["modelCustomPromptTemplate"] = request.modelCustomPromptTemplate;
|
|
2324
2736
|
}
|
|
@@ -2704,6 +3116,71 @@ class Client extends openapi_client_1.default {
|
|
|
2704
3116
|
let headers = {};
|
|
2705
3117
|
return await this.runStyleWritingWithOptions(workspaceId, request, headers, runtime);
|
|
2706
3118
|
}
|
|
3119
|
+
/**
|
|
3120
|
+
* 轻应用-标签挖掘
|
|
3121
|
+
*
|
|
3122
|
+
* @param tmpReq - RunTagMiningAnalysisRequest
|
|
3123
|
+
* @param headers - map
|
|
3124
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3125
|
+
* @returns RunTagMiningAnalysisResponse
|
|
3126
|
+
*/
|
|
3127
|
+
async runTagMiningAnalysisWithOptions(workspaceId, tmpReq, headers, runtime) {
|
|
3128
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
3129
|
+
let request = new RunTagMiningAnalysisShrinkRequest({});
|
|
3130
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
3131
|
+
if (!tea_util_1.default.isUnset(tmpReq.tags)) {
|
|
3132
|
+
request.tagsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tags, "tags", "json");
|
|
3133
|
+
}
|
|
3134
|
+
let body = {};
|
|
3135
|
+
if (!tea_util_1.default.isUnset(request.businessType)) {
|
|
3136
|
+
body["businessType"] = request.businessType;
|
|
3137
|
+
}
|
|
3138
|
+
if (!tea_util_1.default.isUnset(request.content)) {
|
|
3139
|
+
body["content"] = request.content;
|
|
3140
|
+
}
|
|
3141
|
+
if (!tea_util_1.default.isUnset(request.extraInfo)) {
|
|
3142
|
+
body["extraInfo"] = request.extraInfo;
|
|
3143
|
+
}
|
|
3144
|
+
if (!tea_util_1.default.isUnset(request.modelId)) {
|
|
3145
|
+
body["modelId"] = request.modelId;
|
|
3146
|
+
}
|
|
3147
|
+
if (!tea_util_1.default.isUnset(request.outputFormat)) {
|
|
3148
|
+
body["outputFormat"] = request.outputFormat;
|
|
3149
|
+
}
|
|
3150
|
+
if (!tea_util_1.default.isUnset(request.tagsShrink)) {
|
|
3151
|
+
body["tags"] = request.tagsShrink;
|
|
3152
|
+
}
|
|
3153
|
+
if (!tea_util_1.default.isUnset(request.taskDescription)) {
|
|
3154
|
+
body["taskDescription"] = request.taskDescription;
|
|
3155
|
+
}
|
|
3156
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3157
|
+
headers: headers,
|
|
3158
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
3159
|
+
});
|
|
3160
|
+
let params = new $OpenApi.Params({
|
|
3161
|
+
action: "RunTagMiningAnalysis",
|
|
3162
|
+
version: "2024-08-01",
|
|
3163
|
+
protocol: "HTTPS",
|
|
3164
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/quanmiao/lightapp/runTagMiningAnalysis`,
|
|
3165
|
+
method: "POST",
|
|
3166
|
+
authType: "AK",
|
|
3167
|
+
style: "ROA",
|
|
3168
|
+
reqBodyType: "formData",
|
|
3169
|
+
bodyType: "json",
|
|
3170
|
+
});
|
|
3171
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RunTagMiningAnalysisResponse({}));
|
|
3172
|
+
}
|
|
3173
|
+
/**
|
|
3174
|
+
* 轻应用-标签挖掘
|
|
3175
|
+
*
|
|
3176
|
+
* @param request - RunTagMiningAnalysisRequest
|
|
3177
|
+
* @returns RunTagMiningAnalysisResponse
|
|
3178
|
+
*/
|
|
3179
|
+
async runTagMiningAnalysis(workspaceId, request) {
|
|
3180
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3181
|
+
let headers = {};
|
|
3182
|
+
return await this.runTagMiningAnalysisWithOptions(workspaceId, request, headers, runtime);
|
|
3183
|
+
}
|
|
2707
3184
|
/**
|
|
2708
3185
|
* 轻应用-视频理解
|
|
2709
3186
|
*
|