@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/src/client.ts
CHANGED
|
@@ -800,6 +800,87 @@ export class FetchImageTaskResponse extends $tea.Model {
|
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
|
|
803
|
+
export class GenerateFileUrlByKeyRequest extends $tea.Model {
|
|
804
|
+
agentKey?: string;
|
|
805
|
+
fileKey?: string;
|
|
806
|
+
static names(): { [key: string]: string } {
|
|
807
|
+
return {
|
|
808
|
+
agentKey: 'AgentKey',
|
|
809
|
+
fileKey: 'FileKey',
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
static types(): { [key: string]: any } {
|
|
814
|
+
return {
|
|
815
|
+
agentKey: 'string',
|
|
816
|
+
fileKey: 'string',
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
constructor(map?: { [key: string]: any }) {
|
|
821
|
+
super(map);
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
export class GenerateFileUrlByKeyResponseBody extends $tea.Model {
|
|
826
|
+
code?: string;
|
|
827
|
+
data?: string;
|
|
828
|
+
httpStatusCode?: number;
|
|
829
|
+
message?: string;
|
|
830
|
+
requestId?: string;
|
|
831
|
+
success?: boolean;
|
|
832
|
+
static names(): { [key: string]: string } {
|
|
833
|
+
return {
|
|
834
|
+
code: 'Code',
|
|
835
|
+
data: 'Data',
|
|
836
|
+
httpStatusCode: 'HttpStatusCode',
|
|
837
|
+
message: 'Message',
|
|
838
|
+
requestId: 'RequestId',
|
|
839
|
+
success: 'Success',
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
static types(): { [key: string]: any } {
|
|
844
|
+
return {
|
|
845
|
+
code: 'string',
|
|
846
|
+
data: 'string',
|
|
847
|
+
httpStatusCode: 'number',
|
|
848
|
+
message: 'string',
|
|
849
|
+
requestId: 'string',
|
|
850
|
+
success: 'boolean',
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
constructor(map?: { [key: string]: any }) {
|
|
855
|
+
super(map);
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
export class GenerateFileUrlByKeyResponse extends $tea.Model {
|
|
860
|
+
headers: { [key: string]: string };
|
|
861
|
+
statusCode: number;
|
|
862
|
+
body: GenerateFileUrlByKeyResponseBody;
|
|
863
|
+
static names(): { [key: string]: string } {
|
|
864
|
+
return {
|
|
865
|
+
headers: 'headers',
|
|
866
|
+
statusCode: 'statusCode',
|
|
867
|
+
body: 'body',
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
static types(): { [key: string]: any } {
|
|
872
|
+
return {
|
|
873
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
874
|
+
statusCode: 'number',
|
|
875
|
+
body: GenerateFileUrlByKeyResponseBody,
|
|
876
|
+
};
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
constructor(map?: { [key: string]: any }) {
|
|
880
|
+
super(map);
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
|
|
803
884
|
export class GenerateImageTaskRequest extends $tea.Model {
|
|
804
885
|
agentKey?: string;
|
|
805
886
|
articleTaskId?: string;
|
|
@@ -921,6 +1002,90 @@ export class GenerateImageTaskResponse extends $tea.Model {
|
|
|
921
1002
|
}
|
|
922
1003
|
}
|
|
923
1004
|
|
|
1005
|
+
export class GenerateUploadConfigRequest extends $tea.Model {
|
|
1006
|
+
agentKey?: string;
|
|
1007
|
+
fileName?: string;
|
|
1008
|
+
parentDir?: string;
|
|
1009
|
+
static names(): { [key: string]: string } {
|
|
1010
|
+
return {
|
|
1011
|
+
agentKey: 'AgentKey',
|
|
1012
|
+
fileName: 'FileName',
|
|
1013
|
+
parentDir: 'ParentDir',
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
static types(): { [key: string]: any } {
|
|
1018
|
+
return {
|
|
1019
|
+
agentKey: 'string',
|
|
1020
|
+
fileName: 'string',
|
|
1021
|
+
parentDir: 'string',
|
|
1022
|
+
};
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
constructor(map?: { [key: string]: any }) {
|
|
1026
|
+
super(map);
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
export class GenerateUploadConfigResponseBody extends $tea.Model {
|
|
1031
|
+
code?: string;
|
|
1032
|
+
data?: GenerateUploadConfigResponseBodyData;
|
|
1033
|
+
httpStatusCode?: number;
|
|
1034
|
+
message?: string;
|
|
1035
|
+
requestId?: string;
|
|
1036
|
+
success?: boolean;
|
|
1037
|
+
static names(): { [key: string]: string } {
|
|
1038
|
+
return {
|
|
1039
|
+
code: 'Code',
|
|
1040
|
+
data: 'Data',
|
|
1041
|
+
httpStatusCode: 'HttpStatusCode',
|
|
1042
|
+
message: 'Message',
|
|
1043
|
+
requestId: 'RequestId',
|
|
1044
|
+
success: 'Success',
|
|
1045
|
+
};
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
static types(): { [key: string]: any } {
|
|
1049
|
+
return {
|
|
1050
|
+
code: 'string',
|
|
1051
|
+
data: GenerateUploadConfigResponseBodyData,
|
|
1052
|
+
httpStatusCode: 'number',
|
|
1053
|
+
message: 'string',
|
|
1054
|
+
requestId: 'string',
|
|
1055
|
+
success: 'boolean',
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
constructor(map?: { [key: string]: any }) {
|
|
1060
|
+
super(map);
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
export class GenerateUploadConfigResponse extends $tea.Model {
|
|
1065
|
+
headers: { [key: string]: string };
|
|
1066
|
+
statusCode: number;
|
|
1067
|
+
body: GenerateUploadConfigResponseBody;
|
|
1068
|
+
static names(): { [key: string]: string } {
|
|
1069
|
+
return {
|
|
1070
|
+
headers: 'headers',
|
|
1071
|
+
statusCode: 'statusCode',
|
|
1072
|
+
body: 'body',
|
|
1073
|
+
};
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
static types(): { [key: string]: any } {
|
|
1077
|
+
return {
|
|
1078
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1079
|
+
statusCode: 'number',
|
|
1080
|
+
body: GenerateUploadConfigResponseBody,
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
constructor(map?: { [key: string]: any }) {
|
|
1085
|
+
super(map);
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
|
|
924
1089
|
export class GenerateViewPointRequest extends $tea.Model {
|
|
925
1090
|
agentKey?: string;
|
|
926
1091
|
referenceData?: GenerateViewPointRequestReferenceData;
|
|
@@ -2562,6 +2727,148 @@ export class SaveMaterialDocumentResponse extends $tea.Model {
|
|
|
2562
2727
|
}
|
|
2563
2728
|
}
|
|
2564
2729
|
|
|
2730
|
+
export class SearchNewsRequest extends $tea.Model {
|
|
2731
|
+
agentKey?: string;
|
|
2732
|
+
filterNotNull?: boolean;
|
|
2733
|
+
includeContent?: boolean;
|
|
2734
|
+
page?: number;
|
|
2735
|
+
pageSize?: number;
|
|
2736
|
+
query?: string;
|
|
2737
|
+
searchSources?: string[];
|
|
2738
|
+
static names(): { [key: string]: string } {
|
|
2739
|
+
return {
|
|
2740
|
+
agentKey: 'AgentKey',
|
|
2741
|
+
filterNotNull: 'FilterNotNull',
|
|
2742
|
+
includeContent: 'IncludeContent',
|
|
2743
|
+
page: 'Page',
|
|
2744
|
+
pageSize: 'PageSize',
|
|
2745
|
+
query: 'Query',
|
|
2746
|
+
searchSources: 'SearchSources',
|
|
2747
|
+
};
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
static types(): { [key: string]: any } {
|
|
2751
|
+
return {
|
|
2752
|
+
agentKey: 'string',
|
|
2753
|
+
filterNotNull: 'boolean',
|
|
2754
|
+
includeContent: 'boolean',
|
|
2755
|
+
page: 'number',
|
|
2756
|
+
pageSize: 'number',
|
|
2757
|
+
query: 'string',
|
|
2758
|
+
searchSources: { 'type': 'array', 'itemType': 'string' },
|
|
2759
|
+
};
|
|
2760
|
+
}
|
|
2761
|
+
|
|
2762
|
+
constructor(map?: { [key: string]: any }) {
|
|
2763
|
+
super(map);
|
|
2764
|
+
}
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2767
|
+
export class SearchNewsShrinkRequest extends $tea.Model {
|
|
2768
|
+
agentKey?: string;
|
|
2769
|
+
filterNotNull?: boolean;
|
|
2770
|
+
includeContent?: boolean;
|
|
2771
|
+
page?: number;
|
|
2772
|
+
pageSize?: number;
|
|
2773
|
+
query?: string;
|
|
2774
|
+
searchSourcesShrink?: string;
|
|
2775
|
+
static names(): { [key: string]: string } {
|
|
2776
|
+
return {
|
|
2777
|
+
agentKey: 'AgentKey',
|
|
2778
|
+
filterNotNull: 'FilterNotNull',
|
|
2779
|
+
includeContent: 'IncludeContent',
|
|
2780
|
+
page: 'Page',
|
|
2781
|
+
pageSize: 'PageSize',
|
|
2782
|
+
query: 'Query',
|
|
2783
|
+
searchSourcesShrink: 'SearchSources',
|
|
2784
|
+
};
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2787
|
+
static types(): { [key: string]: any } {
|
|
2788
|
+
return {
|
|
2789
|
+
agentKey: 'string',
|
|
2790
|
+
filterNotNull: 'boolean',
|
|
2791
|
+
includeContent: 'boolean',
|
|
2792
|
+
page: 'number',
|
|
2793
|
+
pageSize: 'number',
|
|
2794
|
+
query: 'string',
|
|
2795
|
+
searchSourcesShrink: 'string',
|
|
2796
|
+
};
|
|
2797
|
+
}
|
|
2798
|
+
|
|
2799
|
+
constructor(map?: { [key: string]: any }) {
|
|
2800
|
+
super(map);
|
|
2801
|
+
}
|
|
2802
|
+
}
|
|
2803
|
+
|
|
2804
|
+
export class SearchNewsResponseBody extends $tea.Model {
|
|
2805
|
+
code?: string;
|
|
2806
|
+
current?: number;
|
|
2807
|
+
data?: SearchNewsResponseBodyData[];
|
|
2808
|
+
httpStatusCode?: number;
|
|
2809
|
+
message?: string;
|
|
2810
|
+
requestId?: string;
|
|
2811
|
+
size?: number;
|
|
2812
|
+
success?: boolean;
|
|
2813
|
+
total?: number;
|
|
2814
|
+
static names(): { [key: string]: string } {
|
|
2815
|
+
return {
|
|
2816
|
+
code: 'Code',
|
|
2817
|
+
current: 'Current',
|
|
2818
|
+
data: 'Data',
|
|
2819
|
+
httpStatusCode: 'HttpStatusCode',
|
|
2820
|
+
message: 'Message',
|
|
2821
|
+
requestId: 'RequestId',
|
|
2822
|
+
size: 'Size',
|
|
2823
|
+
success: 'Success',
|
|
2824
|
+
total: 'Total',
|
|
2825
|
+
};
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2828
|
+
static types(): { [key: string]: any } {
|
|
2829
|
+
return {
|
|
2830
|
+
code: 'string',
|
|
2831
|
+
current: 'number',
|
|
2832
|
+
data: { 'type': 'array', 'itemType': SearchNewsResponseBodyData },
|
|
2833
|
+
httpStatusCode: 'number',
|
|
2834
|
+
message: 'string',
|
|
2835
|
+
requestId: 'string',
|
|
2836
|
+
size: 'number',
|
|
2837
|
+
success: 'boolean',
|
|
2838
|
+
total: 'number',
|
|
2839
|
+
};
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
constructor(map?: { [key: string]: any }) {
|
|
2843
|
+
super(map);
|
|
2844
|
+
}
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2847
|
+
export class SearchNewsResponse extends $tea.Model {
|
|
2848
|
+
headers: { [key: string]: string };
|
|
2849
|
+
statusCode: number;
|
|
2850
|
+
body: SearchNewsResponseBody;
|
|
2851
|
+
static names(): { [key: string]: string } {
|
|
2852
|
+
return {
|
|
2853
|
+
headers: 'headers',
|
|
2854
|
+
statusCode: 'statusCode',
|
|
2855
|
+
body: 'body',
|
|
2856
|
+
};
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
static types(): { [key: string]: any } {
|
|
2860
|
+
return {
|
|
2861
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2862
|
+
statusCode: 'number',
|
|
2863
|
+
body: SearchNewsResponseBody,
|
|
2864
|
+
};
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2867
|
+
constructor(map?: { [key: string]: any }) {
|
|
2868
|
+
super(map);
|
|
2869
|
+
}
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2565
2872
|
export class SubmitAsyncTaskRequest extends $tea.Model {
|
|
2566
2873
|
agentKey?: string;
|
|
2567
2874
|
taskCode?: string;
|
|
@@ -3129,6 +3436,31 @@ export class GenerateImageTaskResponseBodyData extends $tea.Model {
|
|
|
3129
3436
|
}
|
|
3130
3437
|
}
|
|
3131
3438
|
|
|
3439
|
+
export class GenerateUploadConfigResponseBodyData extends $tea.Model {
|
|
3440
|
+
fileKey?: string;
|
|
3441
|
+
formDatas?: { [key: string]: any };
|
|
3442
|
+
postUrl?: string;
|
|
3443
|
+
static names(): { [key: string]: string } {
|
|
3444
|
+
return {
|
|
3445
|
+
fileKey: 'FileKey',
|
|
3446
|
+
formDatas: 'FormDatas',
|
|
3447
|
+
postUrl: 'PostUrl',
|
|
3448
|
+
};
|
|
3449
|
+
}
|
|
3450
|
+
|
|
3451
|
+
static types(): { [key: string]: any } {
|
|
3452
|
+
return {
|
|
3453
|
+
fileKey: 'string',
|
|
3454
|
+
formDatas: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
3455
|
+
postUrl: 'string',
|
|
3456
|
+
};
|
|
3457
|
+
}
|
|
3458
|
+
|
|
3459
|
+
constructor(map?: { [key: string]: any }) {
|
|
3460
|
+
super(map);
|
|
3461
|
+
}
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3132
3464
|
export class GenerateViewPointRequestReferenceData extends $tea.Model {
|
|
3133
3465
|
miniDoc?: string[];
|
|
3134
3466
|
static names(): { [key: string]: string } {
|
|
@@ -4155,6 +4487,61 @@ export class SaveDataSourceOrderConfigRequestUserConfigDataSourceList extends $t
|
|
|
4155
4487
|
}
|
|
4156
4488
|
}
|
|
4157
4489
|
|
|
4490
|
+
export class SearchNewsResponseBodyData extends $tea.Model {
|
|
4491
|
+
author?: string;
|
|
4492
|
+
content?: string;
|
|
4493
|
+
docUuid?: string;
|
|
4494
|
+
imageUrls?: string[];
|
|
4495
|
+
pubTime?: string;
|
|
4496
|
+
searchSource?: string;
|
|
4497
|
+
searchSourceName?: string;
|
|
4498
|
+
source?: string;
|
|
4499
|
+
summary?: string;
|
|
4500
|
+
tag?: string;
|
|
4501
|
+
title?: string;
|
|
4502
|
+
updateTime?: string;
|
|
4503
|
+
url?: string;
|
|
4504
|
+
static names(): { [key: string]: string } {
|
|
4505
|
+
return {
|
|
4506
|
+
author: 'Author',
|
|
4507
|
+
content: 'Content',
|
|
4508
|
+
docUuid: 'DocUuid',
|
|
4509
|
+
imageUrls: 'ImageUrls',
|
|
4510
|
+
pubTime: 'PubTime',
|
|
4511
|
+
searchSource: 'SearchSource',
|
|
4512
|
+
searchSourceName: 'SearchSourceName',
|
|
4513
|
+
source: 'Source',
|
|
4514
|
+
summary: 'Summary',
|
|
4515
|
+
tag: 'Tag',
|
|
4516
|
+
title: 'Title',
|
|
4517
|
+
updateTime: 'UpdateTime',
|
|
4518
|
+
url: 'Url',
|
|
4519
|
+
};
|
|
4520
|
+
}
|
|
4521
|
+
|
|
4522
|
+
static types(): { [key: string]: any } {
|
|
4523
|
+
return {
|
|
4524
|
+
author: 'string',
|
|
4525
|
+
content: 'string',
|
|
4526
|
+
docUuid: 'string',
|
|
4527
|
+
imageUrls: { 'type': 'array', 'itemType': 'string' },
|
|
4528
|
+
pubTime: 'string',
|
|
4529
|
+
searchSource: 'string',
|
|
4530
|
+
searchSourceName: 'string',
|
|
4531
|
+
source: 'string',
|
|
4532
|
+
summary: 'string',
|
|
4533
|
+
tag: 'string',
|
|
4534
|
+
title: 'string',
|
|
4535
|
+
updateTime: 'string',
|
|
4536
|
+
url: 'string',
|
|
4537
|
+
};
|
|
4538
|
+
}
|
|
4539
|
+
|
|
4540
|
+
constructor(map?: { [key: string]: any }) {
|
|
4541
|
+
super(map);
|
|
4542
|
+
}
|
|
4543
|
+
}
|
|
4544
|
+
|
|
4158
4545
|
export class SubmitAsyncTaskResponseBodyData extends $tea.Model {
|
|
4159
4546
|
taskId?: string;
|
|
4160
4547
|
taskIntermediateResult?: any;
|
|
@@ -4551,6 +4938,41 @@ export default class Client extends OpenApi {
|
|
|
4551
4938
|
return await this.fetchImageTaskWithOptions(request, runtime);
|
|
4552
4939
|
}
|
|
4553
4940
|
|
|
4941
|
+
async generateFileUrlByKeyWithOptions(request: GenerateFileUrlByKeyRequest, runtime: $Util.RuntimeOptions): Promise<GenerateFileUrlByKeyResponse> {
|
|
4942
|
+
Util.validateModel(request);
|
|
4943
|
+
let query = { };
|
|
4944
|
+
if (!Util.isUnset(request.agentKey)) {
|
|
4945
|
+
query["AgentKey"] = request.agentKey;
|
|
4946
|
+
}
|
|
4947
|
+
|
|
4948
|
+
let body : {[key: string ]: any} = { };
|
|
4949
|
+
if (!Util.isUnset(request.fileKey)) {
|
|
4950
|
+
body["FileKey"] = request.fileKey;
|
|
4951
|
+
}
|
|
4952
|
+
|
|
4953
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4954
|
+
query: OpenApiUtil.query(query),
|
|
4955
|
+
body: OpenApiUtil.parseToMap(body),
|
|
4956
|
+
});
|
|
4957
|
+
let params = new $OpenApi.Params({
|
|
4958
|
+
action: "GenerateFileUrlByKey",
|
|
4959
|
+
version: "2023-08-01",
|
|
4960
|
+
protocol: "HTTPS",
|
|
4961
|
+
pathname: "/",
|
|
4962
|
+
method: "POST",
|
|
4963
|
+
authType: "AK",
|
|
4964
|
+
style: "RPC",
|
|
4965
|
+
reqBodyType: "formData",
|
|
4966
|
+
bodyType: "json",
|
|
4967
|
+
});
|
|
4968
|
+
return $tea.cast<GenerateFileUrlByKeyResponse>(await this.callApi(params, req, runtime), new GenerateFileUrlByKeyResponse({}));
|
|
4969
|
+
}
|
|
4970
|
+
|
|
4971
|
+
async generateFileUrlByKey(request: GenerateFileUrlByKeyRequest): Promise<GenerateFileUrlByKeyResponse> {
|
|
4972
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
4973
|
+
return await this.generateFileUrlByKeyWithOptions(request, runtime);
|
|
4974
|
+
}
|
|
4975
|
+
|
|
4554
4976
|
async generateImageTaskWithOptions(tmpReq: GenerateImageTaskRequest, runtime: $Util.RuntimeOptions): Promise<GenerateImageTaskResponse> {
|
|
4555
4977
|
Util.validateModel(tmpReq);
|
|
4556
4978
|
let request = new GenerateImageTaskShrinkRequest({ });
|
|
@@ -4604,6 +5026,45 @@ export default class Client extends OpenApi {
|
|
|
4604
5026
|
return await this.generateImageTaskWithOptions(request, runtime);
|
|
4605
5027
|
}
|
|
4606
5028
|
|
|
5029
|
+
async generateUploadConfigWithOptions(request: GenerateUploadConfigRequest, runtime: $Util.RuntimeOptions): Promise<GenerateUploadConfigResponse> {
|
|
5030
|
+
Util.validateModel(request);
|
|
5031
|
+
let query = { };
|
|
5032
|
+
if (!Util.isUnset(request.agentKey)) {
|
|
5033
|
+
query["AgentKey"] = request.agentKey;
|
|
5034
|
+
}
|
|
5035
|
+
|
|
5036
|
+
let body : {[key: string ]: any} = { };
|
|
5037
|
+
if (!Util.isUnset(request.fileName)) {
|
|
5038
|
+
body["FileName"] = request.fileName;
|
|
5039
|
+
}
|
|
5040
|
+
|
|
5041
|
+
if (!Util.isUnset(request.parentDir)) {
|
|
5042
|
+
body["ParentDir"] = request.parentDir;
|
|
5043
|
+
}
|
|
5044
|
+
|
|
5045
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5046
|
+
query: OpenApiUtil.query(query),
|
|
5047
|
+
body: OpenApiUtil.parseToMap(body),
|
|
5048
|
+
});
|
|
5049
|
+
let params = new $OpenApi.Params({
|
|
5050
|
+
action: "GenerateUploadConfig",
|
|
5051
|
+
version: "2023-08-01",
|
|
5052
|
+
protocol: "HTTPS",
|
|
5053
|
+
pathname: "/",
|
|
5054
|
+
method: "POST",
|
|
5055
|
+
authType: "AK",
|
|
5056
|
+
style: "RPC",
|
|
5057
|
+
reqBodyType: "formData",
|
|
5058
|
+
bodyType: "json",
|
|
5059
|
+
});
|
|
5060
|
+
return $tea.cast<GenerateUploadConfigResponse>(await this.callApi(params, req, runtime), new GenerateUploadConfigResponse({}));
|
|
5061
|
+
}
|
|
5062
|
+
|
|
5063
|
+
async generateUploadConfig(request: GenerateUploadConfigRequest): Promise<GenerateUploadConfigResponse> {
|
|
5064
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
5065
|
+
return await this.generateUploadConfigWithOptions(request, runtime);
|
|
5066
|
+
}
|
|
5067
|
+
|
|
4607
5068
|
async generateViewPointWithOptions(tmpReq: GenerateViewPointRequest, runtime: $Util.RuntimeOptions): Promise<GenerateViewPointResponse> {
|
|
4608
5069
|
Util.validateModel(tmpReq);
|
|
4609
5070
|
let request = new GenerateViewPointShrinkRequest({ });
|
|
@@ -5357,6 +5818,67 @@ export default class Client extends OpenApi {
|
|
|
5357
5818
|
return await this.saveMaterialDocumentWithOptions(request, runtime);
|
|
5358
5819
|
}
|
|
5359
5820
|
|
|
5821
|
+
async searchNewsWithOptions(tmpReq: SearchNewsRequest, runtime: $Util.RuntimeOptions): Promise<SearchNewsResponse> {
|
|
5822
|
+
Util.validateModel(tmpReq);
|
|
5823
|
+
let request = new SearchNewsShrinkRequest({ });
|
|
5824
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
5825
|
+
if (!Util.isUnset(tmpReq.searchSources)) {
|
|
5826
|
+
request.searchSourcesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.searchSources, "SearchSources", "json");
|
|
5827
|
+
}
|
|
5828
|
+
|
|
5829
|
+
let query = { };
|
|
5830
|
+
if (!Util.isUnset(request.agentKey)) {
|
|
5831
|
+
query["AgentKey"] = request.agentKey;
|
|
5832
|
+
}
|
|
5833
|
+
|
|
5834
|
+
let body : {[key: string ]: any} = { };
|
|
5835
|
+
if (!Util.isUnset(request.filterNotNull)) {
|
|
5836
|
+
body["FilterNotNull"] = request.filterNotNull;
|
|
5837
|
+
}
|
|
5838
|
+
|
|
5839
|
+
if (!Util.isUnset(request.includeContent)) {
|
|
5840
|
+
body["IncludeContent"] = request.includeContent;
|
|
5841
|
+
}
|
|
5842
|
+
|
|
5843
|
+
if (!Util.isUnset(request.page)) {
|
|
5844
|
+
body["Page"] = request.page;
|
|
5845
|
+
}
|
|
5846
|
+
|
|
5847
|
+
if (!Util.isUnset(request.pageSize)) {
|
|
5848
|
+
body["PageSize"] = request.pageSize;
|
|
5849
|
+
}
|
|
5850
|
+
|
|
5851
|
+
if (!Util.isUnset(request.query)) {
|
|
5852
|
+
body["Query"] = request.query;
|
|
5853
|
+
}
|
|
5854
|
+
|
|
5855
|
+
if (!Util.isUnset(request.searchSourcesShrink)) {
|
|
5856
|
+
body["SearchSources"] = request.searchSourcesShrink;
|
|
5857
|
+
}
|
|
5858
|
+
|
|
5859
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5860
|
+
query: OpenApiUtil.query(query),
|
|
5861
|
+
body: OpenApiUtil.parseToMap(body),
|
|
5862
|
+
});
|
|
5863
|
+
let params = new $OpenApi.Params({
|
|
5864
|
+
action: "SearchNews",
|
|
5865
|
+
version: "2023-08-01",
|
|
5866
|
+
protocol: "HTTPS",
|
|
5867
|
+
pathname: "/",
|
|
5868
|
+
method: "POST",
|
|
5869
|
+
authType: "AK",
|
|
5870
|
+
style: "RPC",
|
|
5871
|
+
reqBodyType: "formData",
|
|
5872
|
+
bodyType: "json",
|
|
5873
|
+
});
|
|
5874
|
+
return $tea.cast<SearchNewsResponse>(await this.callApi(params, req, runtime), new SearchNewsResponse({}));
|
|
5875
|
+
}
|
|
5876
|
+
|
|
5877
|
+
async searchNews(request: SearchNewsRequest): Promise<SearchNewsResponse> {
|
|
5878
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
5879
|
+
return await this.searchNewsWithOptions(request, runtime);
|
|
5880
|
+
}
|
|
5881
|
+
|
|
5360
5882
|
async submitAsyncTaskWithOptions(request: SubmitAsyncTaskRequest, runtime: $Util.RuntimeOptions): Promise<SubmitAsyncTaskResponse> {
|
|
5361
5883
|
Util.validateModel(request);
|
|
5362
5884
|
let query = { };
|