@alicloud/aimiaobi20230801 1.3.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/dist/client.d.ts +91 -90
- package/dist/client.js +20 -2
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +97 -90
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
|
|
69
|
-
statusCode
|
|
70
|
-
body
|
|
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
|
|
214
|
-
statusCode
|
|
215
|
-
body
|
|
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
|
|
292
|
-
statusCode
|
|
293
|
-
body
|
|
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
|
|
373
|
-
statusCode
|
|
374
|
-
body
|
|
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
|
|
454
|
-
statusCode
|
|
455
|
-
body
|
|
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
|
|
535
|
-
statusCode
|
|
536
|
-
body
|
|
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
|
|
671
|
-
statusCode
|
|
672
|
-
body
|
|
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
|
|
780
|
-
statusCode
|
|
781
|
-
body
|
|
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',
|
|
@@ -803,10 +803,12 @@ export class FetchImageTaskResponse extends $tea.Model {
|
|
|
803
803
|
export class GenerateFileUrlByKeyRequest extends $tea.Model {
|
|
804
804
|
agentKey?: string;
|
|
805
805
|
fileKey?: string;
|
|
806
|
+
fileName?: string;
|
|
806
807
|
static names(): { [key: string]: string } {
|
|
807
808
|
return {
|
|
808
809
|
agentKey: 'AgentKey',
|
|
809
810
|
fileKey: 'FileKey',
|
|
811
|
+
fileName: 'FileName',
|
|
810
812
|
};
|
|
811
813
|
}
|
|
812
814
|
|
|
@@ -814,6 +816,7 @@ export class GenerateFileUrlByKeyRequest extends $tea.Model {
|
|
|
814
816
|
return {
|
|
815
817
|
agentKey: 'string',
|
|
816
818
|
fileKey: 'string',
|
|
819
|
+
fileName: 'string',
|
|
817
820
|
};
|
|
818
821
|
}
|
|
819
822
|
|
|
@@ -857,9 +860,9 @@ export class GenerateFileUrlByKeyResponseBody extends $tea.Model {
|
|
|
857
860
|
}
|
|
858
861
|
|
|
859
862
|
export class GenerateFileUrlByKeyResponse extends $tea.Model {
|
|
860
|
-
headers
|
|
861
|
-
statusCode
|
|
862
|
-
body
|
|
863
|
+
headers?: { [key: string]: string };
|
|
864
|
+
statusCode?: number;
|
|
865
|
+
body?: GenerateFileUrlByKeyResponseBody;
|
|
863
866
|
static names(): { [key: string]: string } {
|
|
864
867
|
return {
|
|
865
868
|
headers: 'headers',
|
|
@@ -978,9 +981,9 @@ export class GenerateImageTaskResponseBody extends $tea.Model {
|
|
|
978
981
|
}
|
|
979
982
|
|
|
980
983
|
export class GenerateImageTaskResponse extends $tea.Model {
|
|
981
|
-
headers
|
|
982
|
-
statusCode
|
|
983
|
-
body
|
|
984
|
+
headers?: { [key: string]: string };
|
|
985
|
+
statusCode?: number;
|
|
986
|
+
body?: GenerateImageTaskResponseBody;
|
|
984
987
|
static names(): { [key: string]: string } {
|
|
985
988
|
return {
|
|
986
989
|
headers: 'headers',
|
|
@@ -1062,9 +1065,9 @@ export class GenerateUploadConfigResponseBody extends $tea.Model {
|
|
|
1062
1065
|
}
|
|
1063
1066
|
|
|
1064
1067
|
export class GenerateUploadConfigResponse extends $tea.Model {
|
|
1065
|
-
headers
|
|
1066
|
-
statusCode
|
|
1067
|
-
body
|
|
1068
|
+
headers?: { [key: string]: string };
|
|
1069
|
+
statusCode?: number;
|
|
1070
|
+
body?: GenerateUploadConfigResponseBody;
|
|
1068
1071
|
static names(): { [key: string]: string } {
|
|
1069
1072
|
return {
|
|
1070
1073
|
headers: 'headers',
|
|
@@ -1165,9 +1168,9 @@ export class GenerateViewPointResponseBody extends $tea.Model {
|
|
|
1165
1168
|
}
|
|
1166
1169
|
|
|
1167
1170
|
export class GenerateViewPointResponse extends $tea.Model {
|
|
1168
|
-
headers
|
|
1169
|
-
statusCode
|
|
1170
|
-
body
|
|
1171
|
+
headers?: { [key: string]: string };
|
|
1172
|
+
statusCode?: number;
|
|
1173
|
+
body?: GenerateViewPointResponseBody;
|
|
1171
1174
|
static names(): { [key: string]: string } {
|
|
1172
1175
|
return {
|
|
1173
1176
|
headers: 'headers',
|
|
@@ -1246,9 +1249,9 @@ export class GetDataSourceOrderConfigResponseBody extends $tea.Model {
|
|
|
1246
1249
|
}
|
|
1247
1250
|
|
|
1248
1251
|
export class GetDataSourceOrderConfigResponse extends $tea.Model {
|
|
1249
|
-
headers
|
|
1250
|
-
statusCode
|
|
1251
|
-
body
|
|
1252
|
+
headers?: { [key: string]: string };
|
|
1253
|
+
statusCode?: number;
|
|
1254
|
+
body?: GetDataSourceOrderConfigResponseBody;
|
|
1252
1255
|
static names(): { [key: string]: string } {
|
|
1253
1256
|
return {
|
|
1254
1257
|
headers: 'headers',
|
|
@@ -1327,9 +1330,9 @@ export class GetGeneratedContentResponseBody extends $tea.Model {
|
|
|
1327
1330
|
}
|
|
1328
1331
|
|
|
1329
1332
|
export class GetGeneratedContentResponse extends $tea.Model {
|
|
1330
|
-
headers
|
|
1331
|
-
statusCode
|
|
1332
|
-
body
|
|
1333
|
+
headers?: { [key: string]: string };
|
|
1334
|
+
statusCode?: number;
|
|
1335
|
+
body?: GetGeneratedContentResponseBody;
|
|
1333
1336
|
static names(): { [key: string]: string } {
|
|
1334
1337
|
return {
|
|
1335
1338
|
headers: 'headers',
|
|
@@ -1408,9 +1411,9 @@ export class GetMaterialByIdResponseBody extends $tea.Model {
|
|
|
1408
1411
|
}
|
|
1409
1412
|
|
|
1410
1413
|
export class GetMaterialByIdResponse extends $tea.Model {
|
|
1411
|
-
headers
|
|
1412
|
-
statusCode
|
|
1413
|
-
body
|
|
1414
|
+
headers?: { [key: string]: string };
|
|
1415
|
+
statusCode?: number;
|
|
1416
|
+
body?: GetMaterialByIdResponseBody;
|
|
1414
1417
|
static names(): { [key: string]: string } {
|
|
1415
1418
|
return {
|
|
1416
1419
|
headers: 'headers',
|
|
@@ -1486,9 +1489,9 @@ export class GetPropertiesResponseBody extends $tea.Model {
|
|
|
1486
1489
|
}
|
|
1487
1490
|
|
|
1488
1491
|
export class GetPropertiesResponse extends $tea.Model {
|
|
1489
|
-
headers
|
|
1490
|
-
statusCode
|
|
1491
|
-
body
|
|
1492
|
+
headers?: { [key: string]: string };
|
|
1493
|
+
statusCode?: number;
|
|
1494
|
+
body?: GetPropertiesResponseBody;
|
|
1492
1495
|
static names(): { [key: string]: string } {
|
|
1493
1496
|
return {
|
|
1494
1497
|
headers: 'headers',
|
|
@@ -1652,9 +1655,9 @@ export class ListAsyncTasksResponseBody extends $tea.Model {
|
|
|
1652
1655
|
}
|
|
1653
1656
|
|
|
1654
1657
|
export class ListAsyncTasksResponse extends $tea.Model {
|
|
1655
|
-
headers
|
|
1656
|
-
statusCode
|
|
1657
|
-
body
|
|
1658
|
+
headers?: { [key: string]: string };
|
|
1659
|
+
statusCode?: number;
|
|
1660
|
+
body?: ListAsyncTasksResponseBody;
|
|
1658
1661
|
static names(): { [key: string]: string } {
|
|
1659
1662
|
return {
|
|
1660
1663
|
headers: 'headers',
|
|
@@ -1733,9 +1736,9 @@ export class ListBuildConfigsResponseBody extends $tea.Model {
|
|
|
1733
1736
|
}
|
|
1734
1737
|
|
|
1735
1738
|
export class ListBuildConfigsResponse extends $tea.Model {
|
|
1736
|
-
headers
|
|
1737
|
-
statusCode
|
|
1738
|
-
body
|
|
1739
|
+
headers?: { [key: string]: string };
|
|
1740
|
+
statusCode?: number;
|
|
1741
|
+
body?: ListBuildConfigsResponseBody;
|
|
1739
1742
|
static names(): { [key: string]: string } {
|
|
1740
1743
|
return {
|
|
1741
1744
|
headers: 'headers',
|
|
@@ -1838,9 +1841,9 @@ export class ListDialoguesResponseBody extends $tea.Model {
|
|
|
1838
1841
|
}
|
|
1839
1842
|
|
|
1840
1843
|
export class ListDialoguesResponse extends $tea.Model {
|
|
1841
|
-
headers
|
|
1842
|
-
statusCode
|
|
1843
|
-
body
|
|
1844
|
+
headers?: { [key: string]: string };
|
|
1845
|
+
statusCode?: number;
|
|
1846
|
+
body?: ListDialoguesResponseBody;
|
|
1844
1847
|
static names(): { [key: string]: string } {
|
|
1845
1848
|
return {
|
|
1846
1849
|
headers: 'headers',
|
|
@@ -1943,9 +1946,9 @@ export class ListGeneratedContentsResponseBody extends $tea.Model {
|
|
|
1943
1946
|
}
|
|
1944
1947
|
|
|
1945
1948
|
export class ListGeneratedContentsResponse extends $tea.Model {
|
|
1946
|
-
headers
|
|
1947
|
-
statusCode
|
|
1948
|
-
body
|
|
1949
|
+
headers?: { [key: string]: string };
|
|
1950
|
+
statusCode?: number;
|
|
1951
|
+
body?: ListGeneratedContentsResponseBody;
|
|
1949
1952
|
static names(): { [key: string]: string } {
|
|
1950
1953
|
return {
|
|
1951
1954
|
headers: 'headers',
|
|
@@ -2064,9 +2067,9 @@ export class ListHotNewsWithTypeResponseBody extends $tea.Model {
|
|
|
2064
2067
|
}
|
|
2065
2068
|
|
|
2066
2069
|
export class ListHotNewsWithTypeResponse extends $tea.Model {
|
|
2067
|
-
headers
|
|
2068
|
-
statusCode
|
|
2069
|
-
body
|
|
2070
|
+
headers?: { [key: string]: string };
|
|
2071
|
+
statusCode?: number;
|
|
2072
|
+
body?: ListHotNewsWithTypeResponseBody;
|
|
2070
2073
|
static names(): { [key: string]: string } {
|
|
2071
2074
|
return {
|
|
2072
2075
|
headers: 'headers',
|
|
@@ -2260,9 +2263,9 @@ export class ListMaterialDocumentsResponseBody extends $tea.Model {
|
|
|
2260
2263
|
}
|
|
2261
2264
|
|
|
2262
2265
|
export class ListMaterialDocumentsResponse extends $tea.Model {
|
|
2263
|
-
headers
|
|
2264
|
-
statusCode
|
|
2265
|
-
body
|
|
2266
|
+
headers?: { [key: string]: string };
|
|
2267
|
+
statusCode?: number;
|
|
2268
|
+
body?: ListMaterialDocumentsResponseBody;
|
|
2266
2269
|
static names(): { [key: string]: string } {
|
|
2267
2270
|
return {
|
|
2268
2271
|
headers: 'headers',
|
|
@@ -2338,9 +2341,9 @@ export class ListVersionsResponseBody extends $tea.Model {
|
|
|
2338
2341
|
}
|
|
2339
2342
|
|
|
2340
2343
|
export class ListVersionsResponse extends $tea.Model {
|
|
2341
|
-
headers
|
|
2342
|
-
statusCode
|
|
2343
|
-
body
|
|
2344
|
+
headers?: { [key: string]: string };
|
|
2345
|
+
statusCode?: number;
|
|
2346
|
+
body?: ListVersionsResponseBody;
|
|
2344
2347
|
static names(): { [key: string]: string } {
|
|
2345
2348
|
return {
|
|
2346
2349
|
headers: 'headers',
|
|
@@ -2419,9 +2422,9 @@ export class QueryAsyncTaskResponseBody extends $tea.Model {
|
|
|
2419
2422
|
}
|
|
2420
2423
|
|
|
2421
2424
|
export class QueryAsyncTaskResponse extends $tea.Model {
|
|
2422
|
-
headers
|
|
2423
|
-
statusCode
|
|
2424
|
-
body
|
|
2425
|
+
headers?: { [key: string]: string };
|
|
2426
|
+
statusCode?: number;
|
|
2427
|
+
body?: QueryAsyncTaskResponseBody;
|
|
2425
2428
|
static names(): { [key: string]: string } {
|
|
2426
2429
|
return {
|
|
2427
2430
|
headers: 'headers',
|
|
@@ -2528,9 +2531,9 @@ export class SaveDataSourceOrderConfigResponseBody extends $tea.Model {
|
|
|
2528
2531
|
}
|
|
2529
2532
|
|
|
2530
2533
|
export class SaveDataSourceOrderConfigResponse extends $tea.Model {
|
|
2531
|
-
headers
|
|
2532
|
-
statusCode
|
|
2533
|
-
body
|
|
2534
|
+
headers?: { [key: string]: string };
|
|
2535
|
+
statusCode?: number;
|
|
2536
|
+
body?: SaveDataSourceOrderConfigResponseBody;
|
|
2534
2537
|
static names(): { [key: string]: string } {
|
|
2535
2538
|
return {
|
|
2536
2539
|
headers: 'headers',
|
|
@@ -2703,9 +2706,9 @@ export class SaveMaterialDocumentResponseBody extends $tea.Model {
|
|
|
2703
2706
|
}
|
|
2704
2707
|
|
|
2705
2708
|
export class SaveMaterialDocumentResponse extends $tea.Model {
|
|
2706
|
-
headers
|
|
2707
|
-
statusCode
|
|
2708
|
-
body
|
|
2709
|
+
headers?: { [key: string]: string };
|
|
2710
|
+
statusCode?: number;
|
|
2711
|
+
body?: SaveMaterialDocumentResponseBody;
|
|
2709
2712
|
static names(): { [key: string]: string } {
|
|
2710
2713
|
return {
|
|
2711
2714
|
headers: 'headers',
|
|
@@ -2845,9 +2848,9 @@ export class SearchNewsResponseBody extends $tea.Model {
|
|
|
2845
2848
|
}
|
|
2846
2849
|
|
|
2847
2850
|
export class SearchNewsResponse extends $tea.Model {
|
|
2848
|
-
headers
|
|
2849
|
-
statusCode
|
|
2850
|
-
body
|
|
2851
|
+
headers?: { [key: string]: string };
|
|
2852
|
+
statusCode?: number;
|
|
2853
|
+
body?: SearchNewsResponseBody;
|
|
2851
2854
|
static names(): { [key: string]: string } {
|
|
2852
2855
|
return {
|
|
2853
2856
|
headers: 'headers',
|
|
@@ -2935,9 +2938,9 @@ export class SubmitAsyncTaskResponseBody extends $tea.Model {
|
|
|
2935
2938
|
}
|
|
2936
2939
|
|
|
2937
2940
|
export class SubmitAsyncTaskResponse extends $tea.Model {
|
|
2938
|
-
headers
|
|
2939
|
-
statusCode
|
|
2940
|
-
body
|
|
2941
|
+
headers?: { [key: string]: string };
|
|
2942
|
+
statusCode?: number;
|
|
2943
|
+
body?: SubmitAsyncTaskResponseBody;
|
|
2941
2944
|
static names(): { [key: string]: string } {
|
|
2942
2945
|
return {
|
|
2943
2946
|
headers: 'headers',
|
|
@@ -3068,9 +3071,9 @@ export class UpdateGeneratedContentResponseBody extends $tea.Model {
|
|
|
3068
3071
|
}
|
|
3069
3072
|
|
|
3070
3073
|
export class UpdateGeneratedContentResponse extends $tea.Model {
|
|
3071
|
-
headers
|
|
3072
|
-
statusCode
|
|
3073
|
-
body
|
|
3074
|
+
headers?: { [key: string]: string };
|
|
3075
|
+
statusCode?: number;
|
|
3076
|
+
body?: UpdateGeneratedContentResponseBody;
|
|
3074
3077
|
static names(): { [key: string]: string } {
|
|
3075
3078
|
return {
|
|
3076
3079
|
headers: 'headers',
|
|
@@ -3243,9 +3246,9 @@ export class UpdateMaterialDocumentResponseBody extends $tea.Model {
|
|
|
3243
3246
|
}
|
|
3244
3247
|
|
|
3245
3248
|
export class UpdateMaterialDocumentResponse extends $tea.Model {
|
|
3246
|
-
headers
|
|
3247
|
-
statusCode
|
|
3248
|
-
body
|
|
3249
|
+
headers?: { [key: string]: string };
|
|
3250
|
+
statusCode?: number;
|
|
3251
|
+
body?: UpdateMaterialDocumentResponseBody;
|
|
3249
3252
|
static names(): { [key: string]: string } {
|
|
3250
3253
|
return {
|
|
3251
3254
|
headers: 'headers',
|
|
@@ -4950,6 +4953,10 @@ export default class Client extends OpenApi {
|
|
|
4950
4953
|
body["FileKey"] = request.fileKey;
|
|
4951
4954
|
}
|
|
4952
4955
|
|
|
4956
|
+
if (!Util.isUnset(request.fileName)) {
|
|
4957
|
+
body["FileName"] = request.fileName;
|
|
4958
|
+
}
|
|
4959
|
+
|
|
4953
4960
|
let req = new $OpenApi.OpenApiRequest({
|
|
4954
4961
|
query: OpenApiUtil.query(query),
|
|
4955
4962
|
body: OpenApiUtil.parseToMap(body),
|