@alicloud/aimiaobi20230801 1.2.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 +211 -0
- package/dist/client.js +414 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +522 -0
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);
|
|
@@ -2433,6 +2671,26 @@ class GenerateImageTaskResponseBodyData extends $tea.Model {
|
|
|
2433
2671
|
}
|
|
2434
2672
|
}
|
|
2435
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;
|
|
2436
2694
|
class GenerateViewPointRequestReferenceData extends $tea.Model {
|
|
2437
2695
|
constructor(map) {
|
|
2438
2696
|
super(map);
|
|
@@ -3207,6 +3465,46 @@ class SaveDataSourceOrderConfigRequestUserConfigDataSourceList extends $tea.Mode
|
|
|
3207
3465
|
}
|
|
3208
3466
|
}
|
|
3209
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;
|
|
3210
3508
|
class SubmitAsyncTaskResponseBodyData extends $tea.Model {
|
|
3211
3509
|
constructor(map) {
|
|
3212
3510
|
super(map);
|
|
@@ -3543,6 +3841,37 @@ class Client extends openapi_client_1.default {
|
|
|
3543
3841
|
let runtime = new $Util.RuntimeOptions({});
|
|
3544
3842
|
return await this.fetchImageTaskWithOptions(request, runtime);
|
|
3545
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
|
+
}
|
|
3546
3875
|
async generateImageTaskWithOptions(tmpReq, runtime) {
|
|
3547
3876
|
tea_util_1.default.validateModel(tmpReq);
|
|
3548
3877
|
let request = new GenerateImageTaskShrinkRequest({});
|
|
@@ -3588,6 +3917,40 @@ class Client extends openapi_client_1.default {
|
|
|
3588
3917
|
let runtime = new $Util.RuntimeOptions({});
|
|
3589
3918
|
return await this.generateImageTaskWithOptions(request, runtime);
|
|
3590
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
|
+
}
|
|
3591
3954
|
async generateViewPointWithOptions(tmpReq, runtime) {
|
|
3592
3955
|
tea_util_1.default.validateModel(tmpReq);
|
|
3593
3956
|
let request = new GenerateViewPointShrinkRequest({});
|
|
@@ -4226,6 +4589,57 @@ class Client extends openapi_client_1.default {
|
|
|
4226
4589
|
let runtime = new $Util.RuntimeOptions({});
|
|
4227
4590
|
return await this.saveMaterialDocumentWithOptions(request, runtime);
|
|
4228
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
|
+
}
|
|
4229
4643
|
async submitAsyncTaskWithOptions(request, runtime) {
|
|
4230
4644
|
tea_util_1.default.validateModel(request);
|
|
4231
4645
|
let query = {};
|