@alicloud/aimiaobi20230801 1.1.0 → 1.3.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 +282 -0
- package/dist/client.js +567 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +730 -14
package/dist/client.js
CHANGED
|
@@ -637,6 +637,70 @@ class FetchImageTaskResponse extends $tea.Model {
|
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
639
|
exports.FetchImageTaskResponse = FetchImageTaskResponse;
|
|
640
|
+
class GenerateFileUrlByKeyRequest extends $tea.Model {
|
|
641
|
+
constructor(map) {
|
|
642
|
+
super(map);
|
|
643
|
+
}
|
|
644
|
+
static names() {
|
|
645
|
+
return {
|
|
646
|
+
agentKey: 'AgentKey',
|
|
647
|
+
fileKey: 'FileKey',
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
static types() {
|
|
651
|
+
return {
|
|
652
|
+
agentKey: 'string',
|
|
653
|
+
fileKey: 'string',
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
exports.GenerateFileUrlByKeyRequest = GenerateFileUrlByKeyRequest;
|
|
658
|
+
class GenerateFileUrlByKeyResponseBody extends $tea.Model {
|
|
659
|
+
constructor(map) {
|
|
660
|
+
super(map);
|
|
661
|
+
}
|
|
662
|
+
static names() {
|
|
663
|
+
return {
|
|
664
|
+
code: 'Code',
|
|
665
|
+
data: 'Data',
|
|
666
|
+
httpStatusCode: 'HttpStatusCode',
|
|
667
|
+
message: 'Message',
|
|
668
|
+
requestId: 'RequestId',
|
|
669
|
+
success: 'Success',
|
|
670
|
+
};
|
|
671
|
+
}
|
|
672
|
+
static types() {
|
|
673
|
+
return {
|
|
674
|
+
code: 'string',
|
|
675
|
+
data: 'string',
|
|
676
|
+
httpStatusCode: 'number',
|
|
677
|
+
message: 'string',
|
|
678
|
+
requestId: 'string',
|
|
679
|
+
success: 'boolean',
|
|
680
|
+
};
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
exports.GenerateFileUrlByKeyResponseBody = GenerateFileUrlByKeyResponseBody;
|
|
684
|
+
class GenerateFileUrlByKeyResponse extends $tea.Model {
|
|
685
|
+
constructor(map) {
|
|
686
|
+
super(map);
|
|
687
|
+
}
|
|
688
|
+
static names() {
|
|
689
|
+
return {
|
|
690
|
+
headers: 'headers',
|
|
691
|
+
statusCode: 'statusCode',
|
|
692
|
+
body: 'body',
|
|
693
|
+
};
|
|
694
|
+
}
|
|
695
|
+
static types() {
|
|
696
|
+
return {
|
|
697
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
698
|
+
statusCode: 'number',
|
|
699
|
+
body: GenerateFileUrlByKeyResponseBody,
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
exports.GenerateFileUrlByKeyResponse = GenerateFileUrlByKeyResponse;
|
|
640
704
|
class GenerateImageTaskRequest extends $tea.Model {
|
|
641
705
|
constructor(map) {
|
|
642
706
|
super(map);
|
|
@@ -731,6 +795,72 @@ class GenerateImageTaskResponse extends $tea.Model {
|
|
|
731
795
|
}
|
|
732
796
|
}
|
|
733
797
|
exports.GenerateImageTaskResponse = GenerateImageTaskResponse;
|
|
798
|
+
class GenerateUploadConfigRequest extends $tea.Model {
|
|
799
|
+
constructor(map) {
|
|
800
|
+
super(map);
|
|
801
|
+
}
|
|
802
|
+
static names() {
|
|
803
|
+
return {
|
|
804
|
+
agentKey: 'AgentKey',
|
|
805
|
+
fileName: 'FileName',
|
|
806
|
+
parentDir: 'ParentDir',
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
static types() {
|
|
810
|
+
return {
|
|
811
|
+
agentKey: 'string',
|
|
812
|
+
fileName: 'string',
|
|
813
|
+
parentDir: 'string',
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
exports.GenerateUploadConfigRequest = GenerateUploadConfigRequest;
|
|
818
|
+
class GenerateUploadConfigResponseBody extends $tea.Model {
|
|
819
|
+
constructor(map) {
|
|
820
|
+
super(map);
|
|
821
|
+
}
|
|
822
|
+
static names() {
|
|
823
|
+
return {
|
|
824
|
+
code: 'Code',
|
|
825
|
+
data: 'Data',
|
|
826
|
+
httpStatusCode: 'HttpStatusCode',
|
|
827
|
+
message: 'Message',
|
|
828
|
+
requestId: 'RequestId',
|
|
829
|
+
success: 'Success',
|
|
830
|
+
};
|
|
831
|
+
}
|
|
832
|
+
static types() {
|
|
833
|
+
return {
|
|
834
|
+
code: 'string',
|
|
835
|
+
data: GenerateUploadConfigResponseBodyData,
|
|
836
|
+
httpStatusCode: 'number',
|
|
837
|
+
message: 'string',
|
|
838
|
+
requestId: 'string',
|
|
839
|
+
success: 'boolean',
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
exports.GenerateUploadConfigResponseBody = GenerateUploadConfigResponseBody;
|
|
844
|
+
class GenerateUploadConfigResponse extends $tea.Model {
|
|
845
|
+
constructor(map) {
|
|
846
|
+
super(map);
|
|
847
|
+
}
|
|
848
|
+
static names() {
|
|
849
|
+
return {
|
|
850
|
+
headers: 'headers',
|
|
851
|
+
statusCode: 'statusCode',
|
|
852
|
+
body: 'body',
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
static types() {
|
|
856
|
+
return {
|
|
857
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
858
|
+
statusCode: 'number',
|
|
859
|
+
body: GenerateUploadConfigResponseBody,
|
|
860
|
+
};
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
exports.GenerateUploadConfigResponse = GenerateUploadConfigResponse;
|
|
734
864
|
class GenerateViewPointRequest extends $tea.Model {
|
|
735
865
|
constructor(map) {
|
|
736
866
|
super(map);
|
|
@@ -1995,6 +2125,114 @@ class SaveMaterialDocumentResponse extends $tea.Model {
|
|
|
1995
2125
|
}
|
|
1996
2126
|
}
|
|
1997
2127
|
exports.SaveMaterialDocumentResponse = SaveMaterialDocumentResponse;
|
|
2128
|
+
class SearchNewsRequest extends $tea.Model {
|
|
2129
|
+
constructor(map) {
|
|
2130
|
+
super(map);
|
|
2131
|
+
}
|
|
2132
|
+
static names() {
|
|
2133
|
+
return {
|
|
2134
|
+
agentKey: 'AgentKey',
|
|
2135
|
+
filterNotNull: 'FilterNotNull',
|
|
2136
|
+
includeContent: 'IncludeContent',
|
|
2137
|
+
page: 'Page',
|
|
2138
|
+
pageSize: 'PageSize',
|
|
2139
|
+
query: 'Query',
|
|
2140
|
+
searchSources: 'SearchSources',
|
|
2141
|
+
};
|
|
2142
|
+
}
|
|
2143
|
+
static types() {
|
|
2144
|
+
return {
|
|
2145
|
+
agentKey: 'string',
|
|
2146
|
+
filterNotNull: 'boolean',
|
|
2147
|
+
includeContent: 'boolean',
|
|
2148
|
+
page: 'number',
|
|
2149
|
+
pageSize: 'number',
|
|
2150
|
+
query: 'string',
|
|
2151
|
+
searchSources: { 'type': 'array', 'itemType': 'string' },
|
|
2152
|
+
};
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
exports.SearchNewsRequest = SearchNewsRequest;
|
|
2156
|
+
class SearchNewsShrinkRequest extends $tea.Model {
|
|
2157
|
+
constructor(map) {
|
|
2158
|
+
super(map);
|
|
2159
|
+
}
|
|
2160
|
+
static names() {
|
|
2161
|
+
return {
|
|
2162
|
+
agentKey: 'AgentKey',
|
|
2163
|
+
filterNotNull: 'FilterNotNull',
|
|
2164
|
+
includeContent: 'IncludeContent',
|
|
2165
|
+
page: 'Page',
|
|
2166
|
+
pageSize: 'PageSize',
|
|
2167
|
+
query: 'Query',
|
|
2168
|
+
searchSourcesShrink: 'SearchSources',
|
|
2169
|
+
};
|
|
2170
|
+
}
|
|
2171
|
+
static types() {
|
|
2172
|
+
return {
|
|
2173
|
+
agentKey: 'string',
|
|
2174
|
+
filterNotNull: 'boolean',
|
|
2175
|
+
includeContent: 'boolean',
|
|
2176
|
+
page: 'number',
|
|
2177
|
+
pageSize: 'number',
|
|
2178
|
+
query: 'string',
|
|
2179
|
+
searchSourcesShrink: 'string',
|
|
2180
|
+
};
|
|
2181
|
+
}
|
|
2182
|
+
}
|
|
2183
|
+
exports.SearchNewsShrinkRequest = SearchNewsShrinkRequest;
|
|
2184
|
+
class SearchNewsResponseBody extends $tea.Model {
|
|
2185
|
+
constructor(map) {
|
|
2186
|
+
super(map);
|
|
2187
|
+
}
|
|
2188
|
+
static names() {
|
|
2189
|
+
return {
|
|
2190
|
+
code: 'Code',
|
|
2191
|
+
current: 'Current',
|
|
2192
|
+
data: 'Data',
|
|
2193
|
+
httpStatusCode: 'HttpStatusCode',
|
|
2194
|
+
message: 'Message',
|
|
2195
|
+
requestId: 'RequestId',
|
|
2196
|
+
size: 'Size',
|
|
2197
|
+
success: 'Success',
|
|
2198
|
+
total: 'Total',
|
|
2199
|
+
};
|
|
2200
|
+
}
|
|
2201
|
+
static types() {
|
|
2202
|
+
return {
|
|
2203
|
+
code: 'string',
|
|
2204
|
+
current: 'number',
|
|
2205
|
+
data: { 'type': 'array', 'itemType': SearchNewsResponseBodyData },
|
|
2206
|
+
httpStatusCode: 'number',
|
|
2207
|
+
message: 'string',
|
|
2208
|
+
requestId: 'string',
|
|
2209
|
+
size: 'number',
|
|
2210
|
+
success: 'boolean',
|
|
2211
|
+
total: 'number',
|
|
2212
|
+
};
|
|
2213
|
+
}
|
|
2214
|
+
}
|
|
2215
|
+
exports.SearchNewsResponseBody = SearchNewsResponseBody;
|
|
2216
|
+
class SearchNewsResponse extends $tea.Model {
|
|
2217
|
+
constructor(map) {
|
|
2218
|
+
super(map);
|
|
2219
|
+
}
|
|
2220
|
+
static names() {
|
|
2221
|
+
return {
|
|
2222
|
+
headers: 'headers',
|
|
2223
|
+
statusCode: 'statusCode',
|
|
2224
|
+
body: 'body',
|
|
2225
|
+
};
|
|
2226
|
+
}
|
|
2227
|
+
static types() {
|
|
2228
|
+
return {
|
|
2229
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2230
|
+
statusCode: 'number',
|
|
2231
|
+
body: SearchNewsResponseBody,
|
|
2232
|
+
};
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
exports.SearchNewsResponse = SearchNewsResponse;
|
|
1998
2236
|
class SubmitAsyncTaskRequest extends $tea.Model {
|
|
1999
2237
|
constructor(map) {
|
|
2000
2238
|
super(map);
|
|
@@ -2065,6 +2303,108 @@ class SubmitAsyncTaskResponse extends $tea.Model {
|
|
|
2065
2303
|
}
|
|
2066
2304
|
}
|
|
2067
2305
|
exports.SubmitAsyncTaskResponse = SubmitAsyncTaskResponse;
|
|
2306
|
+
class UpdateGeneratedContentRequest extends $tea.Model {
|
|
2307
|
+
constructor(map) {
|
|
2308
|
+
super(map);
|
|
2309
|
+
}
|
|
2310
|
+
static names() {
|
|
2311
|
+
return {
|
|
2312
|
+
agentKey: 'AgentKey',
|
|
2313
|
+
content: 'Content',
|
|
2314
|
+
contentText: 'ContentText',
|
|
2315
|
+
id: 'Id',
|
|
2316
|
+
keywords: 'Keywords',
|
|
2317
|
+
prompt: 'Prompt',
|
|
2318
|
+
title: 'Title',
|
|
2319
|
+
};
|
|
2320
|
+
}
|
|
2321
|
+
static types() {
|
|
2322
|
+
return {
|
|
2323
|
+
agentKey: 'string',
|
|
2324
|
+
content: 'string',
|
|
2325
|
+
contentText: 'string',
|
|
2326
|
+
id: 'number',
|
|
2327
|
+
keywords: { 'type': 'array', 'itemType': 'string' },
|
|
2328
|
+
prompt: 'string',
|
|
2329
|
+
title: 'string',
|
|
2330
|
+
};
|
|
2331
|
+
}
|
|
2332
|
+
}
|
|
2333
|
+
exports.UpdateGeneratedContentRequest = UpdateGeneratedContentRequest;
|
|
2334
|
+
class UpdateGeneratedContentShrinkRequest extends $tea.Model {
|
|
2335
|
+
constructor(map) {
|
|
2336
|
+
super(map);
|
|
2337
|
+
}
|
|
2338
|
+
static names() {
|
|
2339
|
+
return {
|
|
2340
|
+
agentKey: 'AgentKey',
|
|
2341
|
+
content: 'Content',
|
|
2342
|
+
contentText: 'ContentText',
|
|
2343
|
+
id: 'Id',
|
|
2344
|
+
keywordsShrink: 'Keywords',
|
|
2345
|
+
prompt: 'Prompt',
|
|
2346
|
+
title: 'Title',
|
|
2347
|
+
};
|
|
2348
|
+
}
|
|
2349
|
+
static types() {
|
|
2350
|
+
return {
|
|
2351
|
+
agentKey: 'string',
|
|
2352
|
+
content: 'string',
|
|
2353
|
+
contentText: 'string',
|
|
2354
|
+
id: 'number',
|
|
2355
|
+
keywordsShrink: 'string',
|
|
2356
|
+
prompt: 'string',
|
|
2357
|
+
title: 'string',
|
|
2358
|
+
};
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
exports.UpdateGeneratedContentShrinkRequest = UpdateGeneratedContentShrinkRequest;
|
|
2362
|
+
class UpdateGeneratedContentResponseBody extends $tea.Model {
|
|
2363
|
+
constructor(map) {
|
|
2364
|
+
super(map);
|
|
2365
|
+
}
|
|
2366
|
+
static names() {
|
|
2367
|
+
return {
|
|
2368
|
+
code: 'Code',
|
|
2369
|
+
data: 'Data',
|
|
2370
|
+
httpStatusCode: 'HttpStatusCode',
|
|
2371
|
+
message: 'Message',
|
|
2372
|
+
requestId: 'RequestId',
|
|
2373
|
+
success: 'Success',
|
|
2374
|
+
};
|
|
2375
|
+
}
|
|
2376
|
+
static types() {
|
|
2377
|
+
return {
|
|
2378
|
+
code: 'string',
|
|
2379
|
+
data: 'boolean',
|
|
2380
|
+
httpStatusCode: 'number',
|
|
2381
|
+
message: 'string',
|
|
2382
|
+
requestId: 'string',
|
|
2383
|
+
success: 'boolean',
|
|
2384
|
+
};
|
|
2385
|
+
}
|
|
2386
|
+
}
|
|
2387
|
+
exports.UpdateGeneratedContentResponseBody = UpdateGeneratedContentResponseBody;
|
|
2388
|
+
class UpdateGeneratedContentResponse extends $tea.Model {
|
|
2389
|
+
constructor(map) {
|
|
2390
|
+
super(map);
|
|
2391
|
+
}
|
|
2392
|
+
static names() {
|
|
2393
|
+
return {
|
|
2394
|
+
headers: 'headers',
|
|
2395
|
+
statusCode: 'statusCode',
|
|
2396
|
+
body: 'body',
|
|
2397
|
+
};
|
|
2398
|
+
}
|
|
2399
|
+
static types() {
|
|
2400
|
+
return {
|
|
2401
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2402
|
+
statusCode: 'number',
|
|
2403
|
+
body: UpdateGeneratedContentResponseBody,
|
|
2404
|
+
};
|
|
2405
|
+
}
|
|
2406
|
+
}
|
|
2407
|
+
exports.UpdateGeneratedContentResponse = UpdateGeneratedContentResponse;
|
|
2068
2408
|
class UpdateMaterialDocumentRequest extends $tea.Model {
|
|
2069
2409
|
constructor(map) {
|
|
2070
2410
|
super(map);
|
|
@@ -2331,6 +2671,26 @@ class GenerateImageTaskResponseBodyData extends $tea.Model {
|
|
|
2331
2671
|
}
|
|
2332
2672
|
}
|
|
2333
2673
|
exports.GenerateImageTaskResponseBodyData = GenerateImageTaskResponseBodyData;
|
|
2674
|
+
class GenerateUploadConfigResponseBodyData extends $tea.Model {
|
|
2675
|
+
constructor(map) {
|
|
2676
|
+
super(map);
|
|
2677
|
+
}
|
|
2678
|
+
static names() {
|
|
2679
|
+
return {
|
|
2680
|
+
fileKey: 'FileKey',
|
|
2681
|
+
formDatas: 'FormDatas',
|
|
2682
|
+
postUrl: 'PostUrl',
|
|
2683
|
+
};
|
|
2684
|
+
}
|
|
2685
|
+
static types() {
|
|
2686
|
+
return {
|
|
2687
|
+
fileKey: 'string',
|
|
2688
|
+
formDatas: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
2689
|
+
postUrl: 'string',
|
|
2690
|
+
};
|
|
2691
|
+
}
|
|
2692
|
+
}
|
|
2693
|
+
exports.GenerateUploadConfigResponseBodyData = GenerateUploadConfigResponseBodyData;
|
|
2334
2694
|
class GenerateViewPointRequestReferenceData extends $tea.Model {
|
|
2335
2695
|
constructor(map) {
|
|
2336
2696
|
super(map);
|
|
@@ -3105,6 +3465,46 @@ class SaveDataSourceOrderConfigRequestUserConfigDataSourceList extends $tea.Mode
|
|
|
3105
3465
|
}
|
|
3106
3466
|
}
|
|
3107
3467
|
exports.SaveDataSourceOrderConfigRequestUserConfigDataSourceList = SaveDataSourceOrderConfigRequestUserConfigDataSourceList;
|
|
3468
|
+
class SearchNewsResponseBodyData extends $tea.Model {
|
|
3469
|
+
constructor(map) {
|
|
3470
|
+
super(map);
|
|
3471
|
+
}
|
|
3472
|
+
static names() {
|
|
3473
|
+
return {
|
|
3474
|
+
author: 'Author',
|
|
3475
|
+
content: 'Content',
|
|
3476
|
+
docUuid: 'DocUuid',
|
|
3477
|
+
imageUrls: 'ImageUrls',
|
|
3478
|
+
pubTime: 'PubTime',
|
|
3479
|
+
searchSource: 'SearchSource',
|
|
3480
|
+
searchSourceName: 'SearchSourceName',
|
|
3481
|
+
source: 'Source',
|
|
3482
|
+
summary: 'Summary',
|
|
3483
|
+
tag: 'Tag',
|
|
3484
|
+
title: 'Title',
|
|
3485
|
+
updateTime: 'UpdateTime',
|
|
3486
|
+
url: 'Url',
|
|
3487
|
+
};
|
|
3488
|
+
}
|
|
3489
|
+
static types() {
|
|
3490
|
+
return {
|
|
3491
|
+
author: 'string',
|
|
3492
|
+
content: 'string',
|
|
3493
|
+
docUuid: 'string',
|
|
3494
|
+
imageUrls: { 'type': 'array', 'itemType': 'string' },
|
|
3495
|
+
pubTime: 'string',
|
|
3496
|
+
searchSource: 'string',
|
|
3497
|
+
searchSourceName: 'string',
|
|
3498
|
+
source: 'string',
|
|
3499
|
+
summary: 'string',
|
|
3500
|
+
tag: 'string',
|
|
3501
|
+
title: 'string',
|
|
3502
|
+
updateTime: 'string',
|
|
3503
|
+
url: 'string',
|
|
3504
|
+
};
|
|
3505
|
+
}
|
|
3506
|
+
}
|
|
3507
|
+
exports.SearchNewsResponseBodyData = SearchNewsResponseBodyData;
|
|
3108
3508
|
class SubmitAsyncTaskResponseBodyData extends $tea.Model {
|
|
3109
3509
|
constructor(map) {
|
|
3110
3510
|
super(map);
|
|
@@ -3441,6 +3841,37 @@ class Client extends openapi_client_1.default {
|
|
|
3441
3841
|
let runtime = new $Util.RuntimeOptions({});
|
|
3442
3842
|
return await this.fetchImageTaskWithOptions(request, runtime);
|
|
3443
3843
|
}
|
|
3844
|
+
async generateFileUrlByKeyWithOptions(request, runtime) {
|
|
3845
|
+
tea_util_1.default.validateModel(request);
|
|
3846
|
+
let query = {};
|
|
3847
|
+
if (!tea_util_1.default.isUnset(request.agentKey)) {
|
|
3848
|
+
query["AgentKey"] = request.agentKey;
|
|
3849
|
+
}
|
|
3850
|
+
let body = {};
|
|
3851
|
+
if (!tea_util_1.default.isUnset(request.fileKey)) {
|
|
3852
|
+
body["FileKey"] = request.fileKey;
|
|
3853
|
+
}
|
|
3854
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3855
|
+
query: openapi_util_1.default.query(query),
|
|
3856
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
3857
|
+
});
|
|
3858
|
+
let params = new $OpenApi.Params({
|
|
3859
|
+
action: "GenerateFileUrlByKey",
|
|
3860
|
+
version: "2023-08-01",
|
|
3861
|
+
protocol: "HTTPS",
|
|
3862
|
+
pathname: "/",
|
|
3863
|
+
method: "POST",
|
|
3864
|
+
authType: "AK",
|
|
3865
|
+
style: "RPC",
|
|
3866
|
+
reqBodyType: "formData",
|
|
3867
|
+
bodyType: "json",
|
|
3868
|
+
});
|
|
3869
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GenerateFileUrlByKeyResponse({}));
|
|
3870
|
+
}
|
|
3871
|
+
async generateFileUrlByKey(request) {
|
|
3872
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3873
|
+
return await this.generateFileUrlByKeyWithOptions(request, runtime);
|
|
3874
|
+
}
|
|
3444
3875
|
async generateImageTaskWithOptions(tmpReq, runtime) {
|
|
3445
3876
|
tea_util_1.default.validateModel(tmpReq);
|
|
3446
3877
|
let request = new GenerateImageTaskShrinkRequest({});
|
|
@@ -3486,6 +3917,40 @@ class Client extends openapi_client_1.default {
|
|
|
3486
3917
|
let runtime = new $Util.RuntimeOptions({});
|
|
3487
3918
|
return await this.generateImageTaskWithOptions(request, runtime);
|
|
3488
3919
|
}
|
|
3920
|
+
async generateUploadConfigWithOptions(request, runtime) {
|
|
3921
|
+
tea_util_1.default.validateModel(request);
|
|
3922
|
+
let query = {};
|
|
3923
|
+
if (!tea_util_1.default.isUnset(request.agentKey)) {
|
|
3924
|
+
query["AgentKey"] = request.agentKey;
|
|
3925
|
+
}
|
|
3926
|
+
let body = {};
|
|
3927
|
+
if (!tea_util_1.default.isUnset(request.fileName)) {
|
|
3928
|
+
body["FileName"] = request.fileName;
|
|
3929
|
+
}
|
|
3930
|
+
if (!tea_util_1.default.isUnset(request.parentDir)) {
|
|
3931
|
+
body["ParentDir"] = request.parentDir;
|
|
3932
|
+
}
|
|
3933
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3934
|
+
query: openapi_util_1.default.query(query),
|
|
3935
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
3936
|
+
});
|
|
3937
|
+
let params = new $OpenApi.Params({
|
|
3938
|
+
action: "GenerateUploadConfig",
|
|
3939
|
+
version: "2023-08-01",
|
|
3940
|
+
protocol: "HTTPS",
|
|
3941
|
+
pathname: "/",
|
|
3942
|
+
method: "POST",
|
|
3943
|
+
authType: "AK",
|
|
3944
|
+
style: "RPC",
|
|
3945
|
+
reqBodyType: "formData",
|
|
3946
|
+
bodyType: "json",
|
|
3947
|
+
});
|
|
3948
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GenerateUploadConfigResponse({}));
|
|
3949
|
+
}
|
|
3950
|
+
async generateUploadConfig(request) {
|
|
3951
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3952
|
+
return await this.generateUploadConfigWithOptions(request, runtime);
|
|
3953
|
+
}
|
|
3489
3954
|
async generateViewPointWithOptions(tmpReq, runtime) {
|
|
3490
3955
|
tea_util_1.default.validateModel(tmpReq);
|
|
3491
3956
|
let request = new GenerateViewPointShrinkRequest({});
|
|
@@ -4124,6 +4589,57 @@ class Client extends openapi_client_1.default {
|
|
|
4124
4589
|
let runtime = new $Util.RuntimeOptions({});
|
|
4125
4590
|
return await this.saveMaterialDocumentWithOptions(request, runtime);
|
|
4126
4591
|
}
|
|
4592
|
+
async searchNewsWithOptions(tmpReq, runtime) {
|
|
4593
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
4594
|
+
let request = new SearchNewsShrinkRequest({});
|
|
4595
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
4596
|
+
if (!tea_util_1.default.isUnset(tmpReq.searchSources)) {
|
|
4597
|
+
request.searchSourcesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.searchSources, "SearchSources", "json");
|
|
4598
|
+
}
|
|
4599
|
+
let query = {};
|
|
4600
|
+
if (!tea_util_1.default.isUnset(request.agentKey)) {
|
|
4601
|
+
query["AgentKey"] = request.agentKey;
|
|
4602
|
+
}
|
|
4603
|
+
let body = {};
|
|
4604
|
+
if (!tea_util_1.default.isUnset(request.filterNotNull)) {
|
|
4605
|
+
body["FilterNotNull"] = request.filterNotNull;
|
|
4606
|
+
}
|
|
4607
|
+
if (!tea_util_1.default.isUnset(request.includeContent)) {
|
|
4608
|
+
body["IncludeContent"] = request.includeContent;
|
|
4609
|
+
}
|
|
4610
|
+
if (!tea_util_1.default.isUnset(request.page)) {
|
|
4611
|
+
body["Page"] = request.page;
|
|
4612
|
+
}
|
|
4613
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4614
|
+
body["PageSize"] = request.pageSize;
|
|
4615
|
+
}
|
|
4616
|
+
if (!tea_util_1.default.isUnset(request.query)) {
|
|
4617
|
+
body["Query"] = request.query;
|
|
4618
|
+
}
|
|
4619
|
+
if (!tea_util_1.default.isUnset(request.searchSourcesShrink)) {
|
|
4620
|
+
body["SearchSources"] = request.searchSourcesShrink;
|
|
4621
|
+
}
|
|
4622
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4623
|
+
query: openapi_util_1.default.query(query),
|
|
4624
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
4625
|
+
});
|
|
4626
|
+
let params = new $OpenApi.Params({
|
|
4627
|
+
action: "SearchNews",
|
|
4628
|
+
version: "2023-08-01",
|
|
4629
|
+
protocol: "HTTPS",
|
|
4630
|
+
pathname: "/",
|
|
4631
|
+
method: "POST",
|
|
4632
|
+
authType: "AK",
|
|
4633
|
+
style: "RPC",
|
|
4634
|
+
reqBodyType: "formData",
|
|
4635
|
+
bodyType: "json",
|
|
4636
|
+
});
|
|
4637
|
+
return $tea.cast(await this.callApi(params, req, runtime), new SearchNewsResponse({}));
|
|
4638
|
+
}
|
|
4639
|
+
async searchNews(request) {
|
|
4640
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4641
|
+
return await this.searchNewsWithOptions(request, runtime);
|
|
4642
|
+
}
|
|
4127
4643
|
async submitAsyncTaskWithOptions(request, runtime) {
|
|
4128
4644
|
tea_util_1.default.validateModel(request);
|
|
4129
4645
|
let query = {};
|
|
@@ -4164,6 +4680,57 @@ class Client extends openapi_client_1.default {
|
|
|
4164
4680
|
let runtime = new $Util.RuntimeOptions({});
|
|
4165
4681
|
return await this.submitAsyncTaskWithOptions(request, runtime);
|
|
4166
4682
|
}
|
|
4683
|
+
async updateGeneratedContentWithOptions(tmpReq, runtime) {
|
|
4684
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
4685
|
+
let request = new UpdateGeneratedContentShrinkRequest({});
|
|
4686
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
4687
|
+
if (!tea_util_1.default.isUnset(tmpReq.keywords)) {
|
|
4688
|
+
request.keywordsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.keywords, "Keywords", "json");
|
|
4689
|
+
}
|
|
4690
|
+
let query = {};
|
|
4691
|
+
if (!tea_util_1.default.isUnset(request.agentKey)) {
|
|
4692
|
+
query["AgentKey"] = request.agentKey;
|
|
4693
|
+
}
|
|
4694
|
+
let body = {};
|
|
4695
|
+
if (!tea_util_1.default.isUnset(request.content)) {
|
|
4696
|
+
body["Content"] = request.content;
|
|
4697
|
+
}
|
|
4698
|
+
if (!tea_util_1.default.isUnset(request.contentText)) {
|
|
4699
|
+
body["ContentText"] = request.contentText;
|
|
4700
|
+
}
|
|
4701
|
+
if (!tea_util_1.default.isUnset(request.id)) {
|
|
4702
|
+
body["Id"] = request.id;
|
|
4703
|
+
}
|
|
4704
|
+
if (!tea_util_1.default.isUnset(request.keywordsShrink)) {
|
|
4705
|
+
body["Keywords"] = request.keywordsShrink;
|
|
4706
|
+
}
|
|
4707
|
+
if (!tea_util_1.default.isUnset(request.prompt)) {
|
|
4708
|
+
body["Prompt"] = request.prompt;
|
|
4709
|
+
}
|
|
4710
|
+
if (!tea_util_1.default.isUnset(request.title)) {
|
|
4711
|
+
body["Title"] = request.title;
|
|
4712
|
+
}
|
|
4713
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4714
|
+
query: openapi_util_1.default.query(query),
|
|
4715
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
4716
|
+
});
|
|
4717
|
+
let params = new $OpenApi.Params({
|
|
4718
|
+
action: "UpdateGeneratedContent",
|
|
4719
|
+
version: "2023-08-01",
|
|
4720
|
+
protocol: "HTTPS",
|
|
4721
|
+
pathname: "/",
|
|
4722
|
+
method: "POST",
|
|
4723
|
+
authType: "AK",
|
|
4724
|
+
style: "RPC",
|
|
4725
|
+
reqBodyType: "formData",
|
|
4726
|
+
bodyType: "json",
|
|
4727
|
+
});
|
|
4728
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateGeneratedContentResponse({}));
|
|
4729
|
+
}
|
|
4730
|
+
async updateGeneratedContent(request) {
|
|
4731
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4732
|
+
return await this.updateGeneratedContentWithOptions(request, runtime);
|
|
4733
|
+
}
|
|
4167
4734
|
async updateMaterialDocumentWithOptions(tmpReq, runtime) {
|
|
4168
4735
|
tea_util_1.default.validateModel(tmpReq);
|
|
4169
4736
|
let request = new UpdateMaterialDocumentShrinkRequest({});
|