@alicloud/aimiaobi20230801 1.2.0 → 1.3.1

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/src/client.ts CHANGED
@@ -65,9 +65,9 @@ export class CancelAsyncTaskResponseBody extends $tea.Model {
65
65
  }
66
66
 
67
67
  export class CancelAsyncTaskResponse extends $tea.Model {
68
- headers: { [key: string]: string };
69
- statusCode: number;
70
- body: CancelAsyncTaskResponseBody;
68
+ headers?: { [key: string]: string };
69
+ statusCode?: number;
70
+ body?: CancelAsyncTaskResponseBody;
71
71
  static names(): { [key: string]: string } {
72
72
  return {
73
73
  headers: 'headers',
@@ -210,9 +210,9 @@ export class CreateGeneratedContentResponseBody extends $tea.Model {
210
210
  }
211
211
 
212
212
  export class CreateGeneratedContentResponse extends $tea.Model {
213
- headers: { [key: string]: string };
214
- statusCode: number;
215
- body: CreateGeneratedContentResponseBody;
213
+ headers?: { [key: string]: string };
214
+ statusCode?: number;
215
+ body?: CreateGeneratedContentResponseBody;
216
216
  static names(): { [key: string]: string } {
217
217
  return {
218
218
  headers: 'headers',
@@ -288,9 +288,9 @@ export class CreateTokenResponseBody extends $tea.Model {
288
288
  }
289
289
 
290
290
  export class CreateTokenResponse extends $tea.Model {
291
- headers: { [key: string]: string };
292
- statusCode: number;
293
- body: CreateTokenResponseBody;
291
+ headers?: { [key: string]: string };
292
+ statusCode?: number;
293
+ body?: CreateTokenResponseBody;
294
294
  static names(): { [key: string]: string } {
295
295
  return {
296
296
  headers: 'headers',
@@ -369,9 +369,9 @@ export class DeleteGeneratedContentResponseBody extends $tea.Model {
369
369
  }
370
370
 
371
371
  export class DeleteGeneratedContentResponse extends $tea.Model {
372
- headers: { [key: string]: string };
373
- statusCode: number;
374
- body: DeleteGeneratedContentResponseBody;
372
+ headers?: { [key: string]: string };
373
+ statusCode?: number;
374
+ body?: DeleteGeneratedContentResponseBody;
375
375
  static names(): { [key: string]: string } {
376
376
  return {
377
377
  headers: 'headers',
@@ -450,9 +450,9 @@ export class DeleteMaterialByIdResponseBody extends $tea.Model {
450
450
  }
451
451
 
452
452
  export class DeleteMaterialByIdResponse extends $tea.Model {
453
- headers: { [key: string]: string };
454
- statusCode: number;
455
- body: DeleteMaterialByIdResponseBody;
453
+ headers?: { [key: string]: string };
454
+ statusCode?: number;
455
+ body?: DeleteMaterialByIdResponseBody;
456
456
  static names(): { [key: string]: string } {
457
457
  return {
458
458
  headers: 'headers',
@@ -531,9 +531,9 @@ export class ExportGeneratedContentResponseBody extends $tea.Model {
531
531
  }
532
532
 
533
533
  export class ExportGeneratedContentResponse extends $tea.Model {
534
- headers: { [key: string]: string };
535
- statusCode: number;
536
- body: ExportGeneratedContentResponseBody;
534
+ headers?: { [key: string]: string };
535
+ statusCode?: number;
536
+ body?: ExportGeneratedContentResponseBody;
537
537
  static names(): { [key: string]: string } {
538
538
  return {
539
539
  headers: 'headers',
@@ -667,9 +667,9 @@ export class FeedbackDialogueResponseBody extends $tea.Model {
667
667
  }
668
668
 
669
669
  export class FeedbackDialogueResponse extends $tea.Model {
670
- headers: { [key: string]: string };
671
- statusCode: number;
672
- body: FeedbackDialogueResponseBody;
670
+ headers?: { [key: string]: string };
671
+ statusCode?: number;
672
+ body?: FeedbackDialogueResponseBody;
673
673
  static names(): { [key: string]: string } {
674
674
  return {
675
675
  headers: 'headers',
@@ -776,9 +776,9 @@ export class FetchImageTaskResponseBody extends $tea.Model {
776
776
  }
777
777
 
778
778
  export class FetchImageTaskResponse extends $tea.Model {
779
- headers: { [key: string]: string };
780
- statusCode: number;
781
- body: FetchImageTaskResponseBody;
779
+ headers?: { [key: string]: string };
780
+ statusCode?: number;
781
+ body?: FetchImageTaskResponseBody;
782
782
  static names(): { [key: string]: string } {
783
783
  return {
784
784
  headers: 'headers',
@@ -800,6 +800,90 @@ 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
+ fileName?: string;
807
+ static names(): { [key: string]: string } {
808
+ return {
809
+ agentKey: 'AgentKey',
810
+ fileKey: 'FileKey',
811
+ fileName: 'FileName',
812
+ };
813
+ }
814
+
815
+ static types(): { [key: string]: any } {
816
+ return {
817
+ agentKey: 'string',
818
+ fileKey: 'string',
819
+ fileName: 'string',
820
+ };
821
+ }
822
+
823
+ constructor(map?: { [key: string]: any }) {
824
+ super(map);
825
+ }
826
+ }
827
+
828
+ export class GenerateFileUrlByKeyResponseBody extends $tea.Model {
829
+ code?: string;
830
+ data?: string;
831
+ httpStatusCode?: number;
832
+ message?: string;
833
+ requestId?: string;
834
+ success?: boolean;
835
+ static names(): { [key: string]: string } {
836
+ return {
837
+ code: 'Code',
838
+ data: 'Data',
839
+ httpStatusCode: 'HttpStatusCode',
840
+ message: 'Message',
841
+ requestId: 'RequestId',
842
+ success: 'Success',
843
+ };
844
+ }
845
+
846
+ static types(): { [key: string]: any } {
847
+ return {
848
+ code: 'string',
849
+ data: 'string',
850
+ httpStatusCode: 'number',
851
+ message: 'string',
852
+ requestId: 'string',
853
+ success: 'boolean',
854
+ };
855
+ }
856
+
857
+ constructor(map?: { [key: string]: any }) {
858
+ super(map);
859
+ }
860
+ }
861
+
862
+ export class GenerateFileUrlByKeyResponse extends $tea.Model {
863
+ headers?: { [key: string]: string };
864
+ statusCode?: number;
865
+ body?: GenerateFileUrlByKeyResponseBody;
866
+ static names(): { [key: string]: string } {
867
+ return {
868
+ headers: 'headers',
869
+ statusCode: 'statusCode',
870
+ body: 'body',
871
+ };
872
+ }
873
+
874
+ static types(): { [key: string]: any } {
875
+ return {
876
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
877
+ statusCode: 'number',
878
+ body: GenerateFileUrlByKeyResponseBody,
879
+ };
880
+ }
881
+
882
+ constructor(map?: { [key: string]: any }) {
883
+ super(map);
884
+ }
885
+ }
886
+
803
887
  export class GenerateImageTaskRequest extends $tea.Model {
804
888
  agentKey?: string;
805
889
  articleTaskId?: string;
@@ -897,9 +981,9 @@ export class GenerateImageTaskResponseBody extends $tea.Model {
897
981
  }
898
982
 
899
983
  export class GenerateImageTaskResponse extends $tea.Model {
900
- headers: { [key: string]: string };
901
- statusCode: number;
902
- body: GenerateImageTaskResponseBody;
984
+ headers?: { [key: string]: string };
985
+ statusCode?: number;
986
+ body?: GenerateImageTaskResponseBody;
903
987
  static names(): { [key: string]: string } {
904
988
  return {
905
989
  headers: 'headers',
@@ -921,6 +1005,90 @@ export class GenerateImageTaskResponse extends $tea.Model {
921
1005
  }
922
1006
  }
923
1007
 
1008
+ export class GenerateUploadConfigRequest extends $tea.Model {
1009
+ agentKey?: string;
1010
+ fileName?: string;
1011
+ parentDir?: string;
1012
+ static names(): { [key: string]: string } {
1013
+ return {
1014
+ agentKey: 'AgentKey',
1015
+ fileName: 'FileName',
1016
+ parentDir: 'ParentDir',
1017
+ };
1018
+ }
1019
+
1020
+ static types(): { [key: string]: any } {
1021
+ return {
1022
+ agentKey: 'string',
1023
+ fileName: 'string',
1024
+ parentDir: 'string',
1025
+ };
1026
+ }
1027
+
1028
+ constructor(map?: { [key: string]: any }) {
1029
+ super(map);
1030
+ }
1031
+ }
1032
+
1033
+ export class GenerateUploadConfigResponseBody extends $tea.Model {
1034
+ code?: string;
1035
+ data?: GenerateUploadConfigResponseBodyData;
1036
+ httpStatusCode?: number;
1037
+ message?: string;
1038
+ requestId?: string;
1039
+ success?: boolean;
1040
+ static names(): { [key: string]: string } {
1041
+ return {
1042
+ code: 'Code',
1043
+ data: 'Data',
1044
+ httpStatusCode: 'HttpStatusCode',
1045
+ message: 'Message',
1046
+ requestId: 'RequestId',
1047
+ success: 'Success',
1048
+ };
1049
+ }
1050
+
1051
+ static types(): { [key: string]: any } {
1052
+ return {
1053
+ code: 'string',
1054
+ data: GenerateUploadConfigResponseBodyData,
1055
+ httpStatusCode: 'number',
1056
+ message: 'string',
1057
+ requestId: 'string',
1058
+ success: 'boolean',
1059
+ };
1060
+ }
1061
+
1062
+ constructor(map?: { [key: string]: any }) {
1063
+ super(map);
1064
+ }
1065
+ }
1066
+
1067
+ export class GenerateUploadConfigResponse extends $tea.Model {
1068
+ headers?: { [key: string]: string };
1069
+ statusCode?: number;
1070
+ body?: GenerateUploadConfigResponseBody;
1071
+ static names(): { [key: string]: string } {
1072
+ return {
1073
+ headers: 'headers',
1074
+ statusCode: 'statusCode',
1075
+ body: 'body',
1076
+ };
1077
+ }
1078
+
1079
+ static types(): { [key: string]: any } {
1080
+ return {
1081
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1082
+ statusCode: 'number',
1083
+ body: GenerateUploadConfigResponseBody,
1084
+ };
1085
+ }
1086
+
1087
+ constructor(map?: { [key: string]: any }) {
1088
+ super(map);
1089
+ }
1090
+ }
1091
+
924
1092
  export class GenerateViewPointRequest extends $tea.Model {
925
1093
  agentKey?: string;
926
1094
  referenceData?: GenerateViewPointRequestReferenceData;
@@ -1000,9 +1168,9 @@ export class GenerateViewPointResponseBody extends $tea.Model {
1000
1168
  }
1001
1169
 
1002
1170
  export class GenerateViewPointResponse extends $tea.Model {
1003
- headers: { [key: string]: string };
1004
- statusCode: number;
1005
- body: GenerateViewPointResponseBody;
1171
+ headers?: { [key: string]: string };
1172
+ statusCode?: number;
1173
+ body?: GenerateViewPointResponseBody;
1006
1174
  static names(): { [key: string]: string } {
1007
1175
  return {
1008
1176
  headers: 'headers',
@@ -1081,9 +1249,9 @@ export class GetDataSourceOrderConfigResponseBody extends $tea.Model {
1081
1249
  }
1082
1250
 
1083
1251
  export class GetDataSourceOrderConfigResponse extends $tea.Model {
1084
- headers: { [key: string]: string };
1085
- statusCode: number;
1086
- body: GetDataSourceOrderConfigResponseBody;
1252
+ headers?: { [key: string]: string };
1253
+ statusCode?: number;
1254
+ body?: GetDataSourceOrderConfigResponseBody;
1087
1255
  static names(): { [key: string]: string } {
1088
1256
  return {
1089
1257
  headers: 'headers',
@@ -1162,9 +1330,9 @@ export class GetGeneratedContentResponseBody extends $tea.Model {
1162
1330
  }
1163
1331
 
1164
1332
  export class GetGeneratedContentResponse extends $tea.Model {
1165
- headers: { [key: string]: string };
1166
- statusCode: number;
1167
- body: GetGeneratedContentResponseBody;
1333
+ headers?: { [key: string]: string };
1334
+ statusCode?: number;
1335
+ body?: GetGeneratedContentResponseBody;
1168
1336
  static names(): { [key: string]: string } {
1169
1337
  return {
1170
1338
  headers: 'headers',
@@ -1243,9 +1411,9 @@ export class GetMaterialByIdResponseBody extends $tea.Model {
1243
1411
  }
1244
1412
 
1245
1413
  export class GetMaterialByIdResponse extends $tea.Model {
1246
- headers: { [key: string]: string };
1247
- statusCode: number;
1248
- body: GetMaterialByIdResponseBody;
1414
+ headers?: { [key: string]: string };
1415
+ statusCode?: number;
1416
+ body?: GetMaterialByIdResponseBody;
1249
1417
  static names(): { [key: string]: string } {
1250
1418
  return {
1251
1419
  headers: 'headers',
@@ -1321,9 +1489,9 @@ export class GetPropertiesResponseBody extends $tea.Model {
1321
1489
  }
1322
1490
 
1323
1491
  export class GetPropertiesResponse extends $tea.Model {
1324
- headers: { [key: string]: string };
1325
- statusCode: number;
1326
- body: GetPropertiesResponseBody;
1492
+ headers?: { [key: string]: string };
1493
+ statusCode?: number;
1494
+ body?: GetPropertiesResponseBody;
1327
1495
  static names(): { [key: string]: string } {
1328
1496
  return {
1329
1497
  headers: 'headers',
@@ -1487,9 +1655,9 @@ export class ListAsyncTasksResponseBody extends $tea.Model {
1487
1655
  }
1488
1656
 
1489
1657
  export class ListAsyncTasksResponse extends $tea.Model {
1490
- headers: { [key: string]: string };
1491
- statusCode: number;
1492
- body: ListAsyncTasksResponseBody;
1658
+ headers?: { [key: string]: string };
1659
+ statusCode?: number;
1660
+ body?: ListAsyncTasksResponseBody;
1493
1661
  static names(): { [key: string]: string } {
1494
1662
  return {
1495
1663
  headers: 'headers',
@@ -1568,9 +1736,9 @@ export class ListBuildConfigsResponseBody extends $tea.Model {
1568
1736
  }
1569
1737
 
1570
1738
  export class ListBuildConfigsResponse extends $tea.Model {
1571
- headers: { [key: string]: string };
1572
- statusCode: number;
1573
- body: ListBuildConfigsResponseBody;
1739
+ headers?: { [key: string]: string };
1740
+ statusCode?: number;
1741
+ body?: ListBuildConfigsResponseBody;
1574
1742
  static names(): { [key: string]: string } {
1575
1743
  return {
1576
1744
  headers: 'headers',
@@ -1673,9 +1841,9 @@ export class ListDialoguesResponseBody extends $tea.Model {
1673
1841
  }
1674
1842
 
1675
1843
  export class ListDialoguesResponse extends $tea.Model {
1676
- headers: { [key: string]: string };
1677
- statusCode: number;
1678
- body: ListDialoguesResponseBody;
1844
+ headers?: { [key: string]: string };
1845
+ statusCode?: number;
1846
+ body?: ListDialoguesResponseBody;
1679
1847
  static names(): { [key: string]: string } {
1680
1848
  return {
1681
1849
  headers: 'headers',
@@ -1778,9 +1946,9 @@ export class ListGeneratedContentsResponseBody extends $tea.Model {
1778
1946
  }
1779
1947
 
1780
1948
  export class ListGeneratedContentsResponse extends $tea.Model {
1781
- headers: { [key: string]: string };
1782
- statusCode: number;
1783
- body: ListGeneratedContentsResponseBody;
1949
+ headers?: { [key: string]: string };
1950
+ statusCode?: number;
1951
+ body?: ListGeneratedContentsResponseBody;
1784
1952
  static names(): { [key: string]: string } {
1785
1953
  return {
1786
1954
  headers: 'headers',
@@ -1899,9 +2067,9 @@ export class ListHotNewsWithTypeResponseBody extends $tea.Model {
1899
2067
  }
1900
2068
 
1901
2069
  export class ListHotNewsWithTypeResponse extends $tea.Model {
1902
- headers: { [key: string]: string };
1903
- statusCode: number;
1904
- body: ListHotNewsWithTypeResponseBody;
2070
+ headers?: { [key: string]: string };
2071
+ statusCode?: number;
2072
+ body?: ListHotNewsWithTypeResponseBody;
1905
2073
  static names(): { [key: string]: string } {
1906
2074
  return {
1907
2075
  headers: 'headers',
@@ -2095,9 +2263,9 @@ export class ListMaterialDocumentsResponseBody extends $tea.Model {
2095
2263
  }
2096
2264
 
2097
2265
  export class ListMaterialDocumentsResponse extends $tea.Model {
2098
- headers: { [key: string]: string };
2099
- statusCode: number;
2100
- body: ListMaterialDocumentsResponseBody;
2266
+ headers?: { [key: string]: string };
2267
+ statusCode?: number;
2268
+ body?: ListMaterialDocumentsResponseBody;
2101
2269
  static names(): { [key: string]: string } {
2102
2270
  return {
2103
2271
  headers: 'headers',
@@ -2173,9 +2341,9 @@ export class ListVersionsResponseBody extends $tea.Model {
2173
2341
  }
2174
2342
 
2175
2343
  export class ListVersionsResponse extends $tea.Model {
2176
- headers: { [key: string]: string };
2177
- statusCode: number;
2178
- body: ListVersionsResponseBody;
2344
+ headers?: { [key: string]: string };
2345
+ statusCode?: number;
2346
+ body?: ListVersionsResponseBody;
2179
2347
  static names(): { [key: string]: string } {
2180
2348
  return {
2181
2349
  headers: 'headers',
@@ -2254,9 +2422,9 @@ export class QueryAsyncTaskResponseBody extends $tea.Model {
2254
2422
  }
2255
2423
 
2256
2424
  export class QueryAsyncTaskResponse extends $tea.Model {
2257
- headers: { [key: string]: string };
2258
- statusCode: number;
2259
- body: QueryAsyncTaskResponseBody;
2425
+ headers?: { [key: string]: string };
2426
+ statusCode?: number;
2427
+ body?: QueryAsyncTaskResponseBody;
2260
2428
  static names(): { [key: string]: string } {
2261
2429
  return {
2262
2430
  headers: 'headers',
@@ -2363,9 +2531,9 @@ export class SaveDataSourceOrderConfigResponseBody extends $tea.Model {
2363
2531
  }
2364
2532
 
2365
2533
  export class SaveDataSourceOrderConfigResponse extends $tea.Model {
2366
- headers: { [key: string]: string };
2367
- statusCode: number;
2368
- body: SaveDataSourceOrderConfigResponseBody;
2534
+ headers?: { [key: string]: string };
2535
+ statusCode?: number;
2536
+ body?: SaveDataSourceOrderConfigResponseBody;
2369
2537
  static names(): { [key: string]: string } {
2370
2538
  return {
2371
2539
  headers: 'headers',
@@ -2538,9 +2706,9 @@ export class SaveMaterialDocumentResponseBody extends $tea.Model {
2538
2706
  }
2539
2707
 
2540
2708
  export class SaveMaterialDocumentResponse extends $tea.Model {
2541
- headers: { [key: string]: string };
2542
- statusCode: number;
2543
- body: SaveMaterialDocumentResponseBody;
2709
+ headers?: { [key: string]: string };
2710
+ statusCode?: number;
2711
+ body?: SaveMaterialDocumentResponseBody;
2544
2712
  static names(): { [key: string]: string } {
2545
2713
  return {
2546
2714
  headers: 'headers',
@@ -2562,6 +2730,148 @@ export class SaveMaterialDocumentResponse extends $tea.Model {
2562
2730
  }
2563
2731
  }
2564
2732
 
2733
+ export class SearchNewsRequest extends $tea.Model {
2734
+ agentKey?: string;
2735
+ filterNotNull?: boolean;
2736
+ includeContent?: boolean;
2737
+ page?: number;
2738
+ pageSize?: number;
2739
+ query?: string;
2740
+ searchSources?: string[];
2741
+ static names(): { [key: string]: string } {
2742
+ return {
2743
+ agentKey: 'AgentKey',
2744
+ filterNotNull: 'FilterNotNull',
2745
+ includeContent: 'IncludeContent',
2746
+ page: 'Page',
2747
+ pageSize: 'PageSize',
2748
+ query: 'Query',
2749
+ searchSources: 'SearchSources',
2750
+ };
2751
+ }
2752
+
2753
+ static types(): { [key: string]: any } {
2754
+ return {
2755
+ agentKey: 'string',
2756
+ filterNotNull: 'boolean',
2757
+ includeContent: 'boolean',
2758
+ page: 'number',
2759
+ pageSize: 'number',
2760
+ query: 'string',
2761
+ searchSources: { 'type': 'array', 'itemType': 'string' },
2762
+ };
2763
+ }
2764
+
2765
+ constructor(map?: { [key: string]: any }) {
2766
+ super(map);
2767
+ }
2768
+ }
2769
+
2770
+ export class SearchNewsShrinkRequest extends $tea.Model {
2771
+ agentKey?: string;
2772
+ filterNotNull?: boolean;
2773
+ includeContent?: boolean;
2774
+ page?: number;
2775
+ pageSize?: number;
2776
+ query?: string;
2777
+ searchSourcesShrink?: string;
2778
+ static names(): { [key: string]: string } {
2779
+ return {
2780
+ agentKey: 'AgentKey',
2781
+ filterNotNull: 'FilterNotNull',
2782
+ includeContent: 'IncludeContent',
2783
+ page: 'Page',
2784
+ pageSize: 'PageSize',
2785
+ query: 'Query',
2786
+ searchSourcesShrink: 'SearchSources',
2787
+ };
2788
+ }
2789
+
2790
+ static types(): { [key: string]: any } {
2791
+ return {
2792
+ agentKey: 'string',
2793
+ filterNotNull: 'boolean',
2794
+ includeContent: 'boolean',
2795
+ page: 'number',
2796
+ pageSize: 'number',
2797
+ query: 'string',
2798
+ searchSourcesShrink: 'string',
2799
+ };
2800
+ }
2801
+
2802
+ constructor(map?: { [key: string]: any }) {
2803
+ super(map);
2804
+ }
2805
+ }
2806
+
2807
+ export class SearchNewsResponseBody extends $tea.Model {
2808
+ code?: string;
2809
+ current?: number;
2810
+ data?: SearchNewsResponseBodyData[];
2811
+ httpStatusCode?: number;
2812
+ message?: string;
2813
+ requestId?: string;
2814
+ size?: number;
2815
+ success?: boolean;
2816
+ total?: number;
2817
+ static names(): { [key: string]: string } {
2818
+ return {
2819
+ code: 'Code',
2820
+ current: 'Current',
2821
+ data: 'Data',
2822
+ httpStatusCode: 'HttpStatusCode',
2823
+ message: 'Message',
2824
+ requestId: 'RequestId',
2825
+ size: 'Size',
2826
+ success: 'Success',
2827
+ total: 'Total',
2828
+ };
2829
+ }
2830
+
2831
+ static types(): { [key: string]: any } {
2832
+ return {
2833
+ code: 'string',
2834
+ current: 'number',
2835
+ data: { 'type': 'array', 'itemType': SearchNewsResponseBodyData },
2836
+ httpStatusCode: 'number',
2837
+ message: 'string',
2838
+ requestId: 'string',
2839
+ size: 'number',
2840
+ success: 'boolean',
2841
+ total: 'number',
2842
+ };
2843
+ }
2844
+
2845
+ constructor(map?: { [key: string]: any }) {
2846
+ super(map);
2847
+ }
2848
+ }
2849
+
2850
+ export class SearchNewsResponse extends $tea.Model {
2851
+ headers?: { [key: string]: string };
2852
+ statusCode?: number;
2853
+ body?: SearchNewsResponseBody;
2854
+ static names(): { [key: string]: string } {
2855
+ return {
2856
+ headers: 'headers',
2857
+ statusCode: 'statusCode',
2858
+ body: 'body',
2859
+ };
2860
+ }
2861
+
2862
+ static types(): { [key: string]: any } {
2863
+ return {
2864
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2865
+ statusCode: 'number',
2866
+ body: SearchNewsResponseBody,
2867
+ };
2868
+ }
2869
+
2870
+ constructor(map?: { [key: string]: any }) {
2871
+ super(map);
2872
+ }
2873
+ }
2874
+
2565
2875
  export class SubmitAsyncTaskRequest extends $tea.Model {
2566
2876
  agentKey?: string;
2567
2877
  taskCode?: string;
@@ -2628,9 +2938,9 @@ export class SubmitAsyncTaskResponseBody extends $tea.Model {
2628
2938
  }
2629
2939
 
2630
2940
  export class SubmitAsyncTaskResponse extends $tea.Model {
2631
- headers: { [key: string]: string };
2632
- statusCode: number;
2633
- body: SubmitAsyncTaskResponseBody;
2941
+ headers?: { [key: string]: string };
2942
+ statusCode?: number;
2943
+ body?: SubmitAsyncTaskResponseBody;
2634
2944
  static names(): { [key: string]: string } {
2635
2945
  return {
2636
2946
  headers: 'headers',
@@ -2761,9 +3071,9 @@ export class UpdateGeneratedContentResponseBody extends $tea.Model {
2761
3071
  }
2762
3072
 
2763
3073
  export class UpdateGeneratedContentResponse extends $tea.Model {
2764
- headers: { [key: string]: string };
2765
- statusCode: number;
2766
- body: UpdateGeneratedContentResponseBody;
3074
+ headers?: { [key: string]: string };
3075
+ statusCode?: number;
3076
+ body?: UpdateGeneratedContentResponseBody;
2767
3077
  static names(): { [key: string]: string } {
2768
3078
  return {
2769
3079
  headers: 'headers',
@@ -2936,9 +3246,9 @@ export class UpdateMaterialDocumentResponseBody extends $tea.Model {
2936
3246
  }
2937
3247
 
2938
3248
  export class UpdateMaterialDocumentResponse extends $tea.Model {
2939
- headers: { [key: string]: string };
2940
- statusCode: number;
2941
- body: UpdateMaterialDocumentResponseBody;
3249
+ headers?: { [key: string]: string };
3250
+ statusCode?: number;
3251
+ body?: UpdateMaterialDocumentResponseBody;
2942
3252
  static names(): { [key: string]: string } {
2943
3253
  return {
2944
3254
  headers: 'headers',
@@ -3129,6 +3439,31 @@ export class GenerateImageTaskResponseBodyData extends $tea.Model {
3129
3439
  }
3130
3440
  }
3131
3441
 
3442
+ export class GenerateUploadConfigResponseBodyData extends $tea.Model {
3443
+ fileKey?: string;
3444
+ formDatas?: { [key: string]: any };
3445
+ postUrl?: string;
3446
+ static names(): { [key: string]: string } {
3447
+ return {
3448
+ fileKey: 'FileKey',
3449
+ formDatas: 'FormDatas',
3450
+ postUrl: 'PostUrl',
3451
+ };
3452
+ }
3453
+
3454
+ static types(): { [key: string]: any } {
3455
+ return {
3456
+ fileKey: 'string',
3457
+ formDatas: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
3458
+ postUrl: 'string',
3459
+ };
3460
+ }
3461
+
3462
+ constructor(map?: { [key: string]: any }) {
3463
+ super(map);
3464
+ }
3465
+ }
3466
+
3132
3467
  export class GenerateViewPointRequestReferenceData extends $tea.Model {
3133
3468
  miniDoc?: string[];
3134
3469
  static names(): { [key: string]: string } {
@@ -4155,6 +4490,61 @@ export class SaveDataSourceOrderConfigRequestUserConfigDataSourceList extends $t
4155
4490
  }
4156
4491
  }
4157
4492
 
4493
+ export class SearchNewsResponseBodyData extends $tea.Model {
4494
+ author?: string;
4495
+ content?: string;
4496
+ docUuid?: string;
4497
+ imageUrls?: string[];
4498
+ pubTime?: string;
4499
+ searchSource?: string;
4500
+ searchSourceName?: string;
4501
+ source?: string;
4502
+ summary?: string;
4503
+ tag?: string;
4504
+ title?: string;
4505
+ updateTime?: string;
4506
+ url?: string;
4507
+ static names(): { [key: string]: string } {
4508
+ return {
4509
+ author: 'Author',
4510
+ content: 'Content',
4511
+ docUuid: 'DocUuid',
4512
+ imageUrls: 'ImageUrls',
4513
+ pubTime: 'PubTime',
4514
+ searchSource: 'SearchSource',
4515
+ searchSourceName: 'SearchSourceName',
4516
+ source: 'Source',
4517
+ summary: 'Summary',
4518
+ tag: 'Tag',
4519
+ title: 'Title',
4520
+ updateTime: 'UpdateTime',
4521
+ url: 'Url',
4522
+ };
4523
+ }
4524
+
4525
+ static types(): { [key: string]: any } {
4526
+ return {
4527
+ author: 'string',
4528
+ content: 'string',
4529
+ docUuid: 'string',
4530
+ imageUrls: { 'type': 'array', 'itemType': 'string' },
4531
+ pubTime: 'string',
4532
+ searchSource: 'string',
4533
+ searchSourceName: 'string',
4534
+ source: 'string',
4535
+ summary: 'string',
4536
+ tag: 'string',
4537
+ title: 'string',
4538
+ updateTime: 'string',
4539
+ url: 'string',
4540
+ };
4541
+ }
4542
+
4543
+ constructor(map?: { [key: string]: any }) {
4544
+ super(map);
4545
+ }
4546
+ }
4547
+
4158
4548
  export class SubmitAsyncTaskResponseBodyData extends $tea.Model {
4159
4549
  taskId?: string;
4160
4550
  taskIntermediateResult?: any;
@@ -4551,6 +4941,45 @@ export default class Client extends OpenApi {
4551
4941
  return await this.fetchImageTaskWithOptions(request, runtime);
4552
4942
  }
4553
4943
 
4944
+ async generateFileUrlByKeyWithOptions(request: GenerateFileUrlByKeyRequest, runtime: $Util.RuntimeOptions): Promise<GenerateFileUrlByKeyResponse> {
4945
+ Util.validateModel(request);
4946
+ let query = { };
4947
+ if (!Util.isUnset(request.agentKey)) {
4948
+ query["AgentKey"] = request.agentKey;
4949
+ }
4950
+
4951
+ let body : {[key: string ]: any} = { };
4952
+ if (!Util.isUnset(request.fileKey)) {
4953
+ body["FileKey"] = request.fileKey;
4954
+ }
4955
+
4956
+ if (!Util.isUnset(request.fileName)) {
4957
+ body["FileName"] = request.fileName;
4958
+ }
4959
+
4960
+ let req = new $OpenApi.OpenApiRequest({
4961
+ query: OpenApiUtil.query(query),
4962
+ body: OpenApiUtil.parseToMap(body),
4963
+ });
4964
+ let params = new $OpenApi.Params({
4965
+ action: "GenerateFileUrlByKey",
4966
+ version: "2023-08-01",
4967
+ protocol: "HTTPS",
4968
+ pathname: "/",
4969
+ method: "POST",
4970
+ authType: "AK",
4971
+ style: "RPC",
4972
+ reqBodyType: "formData",
4973
+ bodyType: "json",
4974
+ });
4975
+ return $tea.cast<GenerateFileUrlByKeyResponse>(await this.callApi(params, req, runtime), new GenerateFileUrlByKeyResponse({}));
4976
+ }
4977
+
4978
+ async generateFileUrlByKey(request: GenerateFileUrlByKeyRequest): Promise<GenerateFileUrlByKeyResponse> {
4979
+ let runtime = new $Util.RuntimeOptions({ });
4980
+ return await this.generateFileUrlByKeyWithOptions(request, runtime);
4981
+ }
4982
+
4554
4983
  async generateImageTaskWithOptions(tmpReq: GenerateImageTaskRequest, runtime: $Util.RuntimeOptions): Promise<GenerateImageTaskResponse> {
4555
4984
  Util.validateModel(tmpReq);
4556
4985
  let request = new GenerateImageTaskShrinkRequest({ });
@@ -4604,6 +5033,45 @@ export default class Client extends OpenApi {
4604
5033
  return await this.generateImageTaskWithOptions(request, runtime);
4605
5034
  }
4606
5035
 
5036
+ async generateUploadConfigWithOptions(request: GenerateUploadConfigRequest, runtime: $Util.RuntimeOptions): Promise<GenerateUploadConfigResponse> {
5037
+ Util.validateModel(request);
5038
+ let query = { };
5039
+ if (!Util.isUnset(request.agentKey)) {
5040
+ query["AgentKey"] = request.agentKey;
5041
+ }
5042
+
5043
+ let body : {[key: string ]: any} = { };
5044
+ if (!Util.isUnset(request.fileName)) {
5045
+ body["FileName"] = request.fileName;
5046
+ }
5047
+
5048
+ if (!Util.isUnset(request.parentDir)) {
5049
+ body["ParentDir"] = request.parentDir;
5050
+ }
5051
+
5052
+ let req = new $OpenApi.OpenApiRequest({
5053
+ query: OpenApiUtil.query(query),
5054
+ body: OpenApiUtil.parseToMap(body),
5055
+ });
5056
+ let params = new $OpenApi.Params({
5057
+ action: "GenerateUploadConfig",
5058
+ version: "2023-08-01",
5059
+ protocol: "HTTPS",
5060
+ pathname: "/",
5061
+ method: "POST",
5062
+ authType: "AK",
5063
+ style: "RPC",
5064
+ reqBodyType: "formData",
5065
+ bodyType: "json",
5066
+ });
5067
+ return $tea.cast<GenerateUploadConfigResponse>(await this.callApi(params, req, runtime), new GenerateUploadConfigResponse({}));
5068
+ }
5069
+
5070
+ async generateUploadConfig(request: GenerateUploadConfigRequest): Promise<GenerateUploadConfigResponse> {
5071
+ let runtime = new $Util.RuntimeOptions({ });
5072
+ return await this.generateUploadConfigWithOptions(request, runtime);
5073
+ }
5074
+
4607
5075
  async generateViewPointWithOptions(tmpReq: GenerateViewPointRequest, runtime: $Util.RuntimeOptions): Promise<GenerateViewPointResponse> {
4608
5076
  Util.validateModel(tmpReq);
4609
5077
  let request = new GenerateViewPointShrinkRequest({ });
@@ -5357,6 +5825,67 @@ export default class Client extends OpenApi {
5357
5825
  return await this.saveMaterialDocumentWithOptions(request, runtime);
5358
5826
  }
5359
5827
 
5828
+ async searchNewsWithOptions(tmpReq: SearchNewsRequest, runtime: $Util.RuntimeOptions): Promise<SearchNewsResponse> {
5829
+ Util.validateModel(tmpReq);
5830
+ let request = new SearchNewsShrinkRequest({ });
5831
+ OpenApiUtil.convert(tmpReq, request);
5832
+ if (!Util.isUnset(tmpReq.searchSources)) {
5833
+ request.searchSourcesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.searchSources, "SearchSources", "json");
5834
+ }
5835
+
5836
+ let query = { };
5837
+ if (!Util.isUnset(request.agentKey)) {
5838
+ query["AgentKey"] = request.agentKey;
5839
+ }
5840
+
5841
+ let body : {[key: string ]: any} = { };
5842
+ if (!Util.isUnset(request.filterNotNull)) {
5843
+ body["FilterNotNull"] = request.filterNotNull;
5844
+ }
5845
+
5846
+ if (!Util.isUnset(request.includeContent)) {
5847
+ body["IncludeContent"] = request.includeContent;
5848
+ }
5849
+
5850
+ if (!Util.isUnset(request.page)) {
5851
+ body["Page"] = request.page;
5852
+ }
5853
+
5854
+ if (!Util.isUnset(request.pageSize)) {
5855
+ body["PageSize"] = request.pageSize;
5856
+ }
5857
+
5858
+ if (!Util.isUnset(request.query)) {
5859
+ body["Query"] = request.query;
5860
+ }
5861
+
5862
+ if (!Util.isUnset(request.searchSourcesShrink)) {
5863
+ body["SearchSources"] = request.searchSourcesShrink;
5864
+ }
5865
+
5866
+ let req = new $OpenApi.OpenApiRequest({
5867
+ query: OpenApiUtil.query(query),
5868
+ body: OpenApiUtil.parseToMap(body),
5869
+ });
5870
+ let params = new $OpenApi.Params({
5871
+ action: "SearchNews",
5872
+ version: "2023-08-01",
5873
+ protocol: "HTTPS",
5874
+ pathname: "/",
5875
+ method: "POST",
5876
+ authType: "AK",
5877
+ style: "RPC",
5878
+ reqBodyType: "formData",
5879
+ bodyType: "json",
5880
+ });
5881
+ return $tea.cast<SearchNewsResponse>(await this.callApi(params, req, runtime), new SearchNewsResponse({}));
5882
+ }
5883
+
5884
+ async searchNews(request: SearchNewsRequest): Promise<SearchNewsResponse> {
5885
+ let runtime = new $Util.RuntimeOptions({ });
5886
+ return await this.searchNewsWithOptions(request, runtime);
5887
+ }
5888
+
5360
5889
  async submitAsyncTaskWithOptions(request: SubmitAsyncTaskRequest, runtime: $Util.RuntimeOptions): Promise<SubmitAsyncTaskResponse> {
5361
5890
  Util.validateModel(request);
5362
5891
  let query = { };