@aws-sdk/client-personalize 3.525.0 → 3.529.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-cjs/index.js +60 -100
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -282,6 +282,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
282
282
|
var import_types = require("@smithy/types");
|
|
283
283
|
|
|
284
284
|
// src/protocols/Aws_json1_1.ts
|
|
285
|
+
var import_core2 = require("@aws-sdk/core");
|
|
285
286
|
|
|
286
287
|
|
|
287
288
|
|
|
@@ -889,7 +890,7 @@ var de_CreateBatchInferenceJobCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
889
890
|
if (output.statusCode >= 300) {
|
|
890
891
|
return de_CommandError(output, context);
|
|
891
892
|
}
|
|
892
|
-
const data = await
|
|
893
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
893
894
|
let contents = {};
|
|
894
895
|
contents = (0, import_smithy_client._json)(data);
|
|
895
896
|
const response = {
|
|
@@ -902,7 +903,7 @@ var de_CreateBatchSegmentJobCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
902
903
|
if (output.statusCode >= 300) {
|
|
903
904
|
return de_CommandError(output, context);
|
|
904
905
|
}
|
|
905
|
-
const data = await
|
|
906
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
906
907
|
let contents = {};
|
|
907
908
|
contents = (0, import_smithy_client._json)(data);
|
|
908
909
|
const response = {
|
|
@@ -915,7 +916,7 @@ var de_CreateCampaignCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
915
916
|
if (output.statusCode >= 300) {
|
|
916
917
|
return de_CommandError(output, context);
|
|
917
918
|
}
|
|
918
|
-
const data = await
|
|
919
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
919
920
|
let contents = {};
|
|
920
921
|
contents = (0, import_smithy_client._json)(data);
|
|
921
922
|
const response = {
|
|
@@ -928,7 +929,7 @@ var de_CreateDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
928
929
|
if (output.statusCode >= 300) {
|
|
929
930
|
return de_CommandError(output, context);
|
|
930
931
|
}
|
|
931
|
-
const data = await
|
|
932
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
932
933
|
let contents = {};
|
|
933
934
|
contents = (0, import_smithy_client._json)(data);
|
|
934
935
|
const response = {
|
|
@@ -941,7 +942,7 @@ var de_CreateDatasetExportJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
941
942
|
if (output.statusCode >= 300) {
|
|
942
943
|
return de_CommandError(output, context);
|
|
943
944
|
}
|
|
944
|
-
const data = await
|
|
945
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
945
946
|
let contents = {};
|
|
946
947
|
contents = (0, import_smithy_client._json)(data);
|
|
947
948
|
const response = {
|
|
@@ -954,7 +955,7 @@ var de_CreateDatasetGroupCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
954
955
|
if (output.statusCode >= 300) {
|
|
955
956
|
return de_CommandError(output, context);
|
|
956
957
|
}
|
|
957
|
-
const data = await
|
|
958
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
958
959
|
let contents = {};
|
|
959
960
|
contents = (0, import_smithy_client._json)(data);
|
|
960
961
|
const response = {
|
|
@@ -967,7 +968,7 @@ var de_CreateDatasetImportJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
967
968
|
if (output.statusCode >= 300) {
|
|
968
969
|
return de_CommandError(output, context);
|
|
969
970
|
}
|
|
970
|
-
const data = await
|
|
971
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
971
972
|
let contents = {};
|
|
972
973
|
contents = (0, import_smithy_client._json)(data);
|
|
973
974
|
const response = {
|
|
@@ -980,7 +981,7 @@ var de_CreateEventTrackerCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
980
981
|
if (output.statusCode >= 300) {
|
|
981
982
|
return de_CommandError(output, context);
|
|
982
983
|
}
|
|
983
|
-
const data = await
|
|
984
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
984
985
|
let contents = {};
|
|
985
986
|
contents = (0, import_smithy_client._json)(data);
|
|
986
987
|
const response = {
|
|
@@ -993,7 +994,7 @@ var de_CreateFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
993
994
|
if (output.statusCode >= 300) {
|
|
994
995
|
return de_CommandError(output, context);
|
|
995
996
|
}
|
|
996
|
-
const data = await
|
|
997
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
997
998
|
let contents = {};
|
|
998
999
|
contents = (0, import_smithy_client._json)(data);
|
|
999
1000
|
const response = {
|
|
@@ -1006,7 +1007,7 @@ var de_CreateMetricAttributionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1006
1007
|
if (output.statusCode >= 300) {
|
|
1007
1008
|
return de_CommandError(output, context);
|
|
1008
1009
|
}
|
|
1009
|
-
const data = await
|
|
1010
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1010
1011
|
let contents = {};
|
|
1011
1012
|
contents = (0, import_smithy_client._json)(data);
|
|
1012
1013
|
const response = {
|
|
@@ -1019,7 +1020,7 @@ var de_CreateRecommenderCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1019
1020
|
if (output.statusCode >= 300) {
|
|
1020
1021
|
return de_CommandError(output, context);
|
|
1021
1022
|
}
|
|
1022
|
-
const data = await
|
|
1023
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1023
1024
|
let contents = {};
|
|
1024
1025
|
contents = (0, import_smithy_client._json)(data);
|
|
1025
1026
|
const response = {
|
|
@@ -1032,7 +1033,7 @@ var de_CreateSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1032
1033
|
if (output.statusCode >= 300) {
|
|
1033
1034
|
return de_CommandError(output, context);
|
|
1034
1035
|
}
|
|
1035
|
-
const data = await
|
|
1036
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1036
1037
|
let contents = {};
|
|
1037
1038
|
contents = (0, import_smithy_client._json)(data);
|
|
1038
1039
|
const response = {
|
|
@@ -1045,7 +1046,7 @@ var de_CreateSolutionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1045
1046
|
if (output.statusCode >= 300) {
|
|
1046
1047
|
return de_CommandError(output, context);
|
|
1047
1048
|
}
|
|
1048
|
-
const data = await
|
|
1049
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1049
1050
|
let contents = {};
|
|
1050
1051
|
contents = (0, import_smithy_client._json)(data);
|
|
1051
1052
|
const response = {
|
|
@@ -1058,7 +1059,7 @@ var de_CreateSolutionVersionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1058
1059
|
if (output.statusCode >= 300) {
|
|
1059
1060
|
return de_CommandError(output, context);
|
|
1060
1061
|
}
|
|
1061
|
-
const data = await
|
|
1062
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1062
1063
|
let contents = {};
|
|
1063
1064
|
contents = (0, import_smithy_client._json)(data);
|
|
1064
1065
|
const response = {
|
|
@@ -1161,7 +1162,7 @@ var de_DescribeAlgorithmCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1161
1162
|
if (output.statusCode >= 300) {
|
|
1162
1163
|
return de_CommandError(output, context);
|
|
1163
1164
|
}
|
|
1164
|
-
const data = await
|
|
1165
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1165
1166
|
let contents = {};
|
|
1166
1167
|
contents = de_DescribeAlgorithmResponse(data, context);
|
|
1167
1168
|
const response = {
|
|
@@ -1174,7 +1175,7 @@ var de_DescribeBatchInferenceJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1174
1175
|
if (output.statusCode >= 300) {
|
|
1175
1176
|
return de_CommandError(output, context);
|
|
1176
1177
|
}
|
|
1177
|
-
const data = await
|
|
1178
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1178
1179
|
let contents = {};
|
|
1179
1180
|
contents = de_DescribeBatchInferenceJobResponse(data, context);
|
|
1180
1181
|
const response = {
|
|
@@ -1187,7 +1188,7 @@ var de_DescribeBatchSegmentJobCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1187
1188
|
if (output.statusCode >= 300) {
|
|
1188
1189
|
return de_CommandError(output, context);
|
|
1189
1190
|
}
|
|
1190
|
-
const data = await
|
|
1191
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1191
1192
|
let contents = {};
|
|
1192
1193
|
contents = de_DescribeBatchSegmentJobResponse(data, context);
|
|
1193
1194
|
const response = {
|
|
@@ -1200,7 +1201,7 @@ var de_DescribeCampaignCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1200
1201
|
if (output.statusCode >= 300) {
|
|
1201
1202
|
return de_CommandError(output, context);
|
|
1202
1203
|
}
|
|
1203
|
-
const data = await
|
|
1204
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1204
1205
|
let contents = {};
|
|
1205
1206
|
contents = de_DescribeCampaignResponse(data, context);
|
|
1206
1207
|
const response = {
|
|
@@ -1213,7 +1214,7 @@ var de_DescribeDatasetCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1213
1214
|
if (output.statusCode >= 300) {
|
|
1214
1215
|
return de_CommandError(output, context);
|
|
1215
1216
|
}
|
|
1216
|
-
const data = await
|
|
1217
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1217
1218
|
let contents = {};
|
|
1218
1219
|
contents = de_DescribeDatasetResponse(data, context);
|
|
1219
1220
|
const response = {
|
|
@@ -1226,7 +1227,7 @@ var de_DescribeDatasetExportJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1226
1227
|
if (output.statusCode >= 300) {
|
|
1227
1228
|
return de_CommandError(output, context);
|
|
1228
1229
|
}
|
|
1229
|
-
const data = await
|
|
1230
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1230
1231
|
let contents = {};
|
|
1231
1232
|
contents = de_DescribeDatasetExportJobResponse(data, context);
|
|
1232
1233
|
const response = {
|
|
@@ -1239,7 +1240,7 @@ var de_DescribeDatasetGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1239
1240
|
if (output.statusCode >= 300) {
|
|
1240
1241
|
return de_CommandError(output, context);
|
|
1241
1242
|
}
|
|
1242
|
-
const data = await
|
|
1243
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1243
1244
|
let contents = {};
|
|
1244
1245
|
contents = de_DescribeDatasetGroupResponse(data, context);
|
|
1245
1246
|
const response = {
|
|
@@ -1252,7 +1253,7 @@ var de_DescribeDatasetImportJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1252
1253
|
if (output.statusCode >= 300) {
|
|
1253
1254
|
return de_CommandError(output, context);
|
|
1254
1255
|
}
|
|
1255
|
-
const data = await
|
|
1256
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1256
1257
|
let contents = {};
|
|
1257
1258
|
contents = de_DescribeDatasetImportJobResponse(data, context);
|
|
1258
1259
|
const response = {
|
|
@@ -1265,7 +1266,7 @@ var de_DescribeEventTrackerCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1265
1266
|
if (output.statusCode >= 300) {
|
|
1266
1267
|
return de_CommandError(output, context);
|
|
1267
1268
|
}
|
|
1268
|
-
const data = await
|
|
1269
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1269
1270
|
let contents = {};
|
|
1270
1271
|
contents = de_DescribeEventTrackerResponse(data, context);
|
|
1271
1272
|
const response = {
|
|
@@ -1278,7 +1279,7 @@ var de_DescribeFeatureTransformationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1278
1279
|
if (output.statusCode >= 300) {
|
|
1279
1280
|
return de_CommandError(output, context);
|
|
1280
1281
|
}
|
|
1281
|
-
const data = await
|
|
1282
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1282
1283
|
let contents = {};
|
|
1283
1284
|
contents = de_DescribeFeatureTransformationResponse(data, context);
|
|
1284
1285
|
const response = {
|
|
@@ -1291,7 +1292,7 @@ var de_DescribeFilterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1291
1292
|
if (output.statusCode >= 300) {
|
|
1292
1293
|
return de_CommandError(output, context);
|
|
1293
1294
|
}
|
|
1294
|
-
const data = await
|
|
1295
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1295
1296
|
let contents = {};
|
|
1296
1297
|
contents = de_DescribeFilterResponse(data, context);
|
|
1297
1298
|
const response = {
|
|
@@ -1304,7 +1305,7 @@ var de_DescribeMetricAttributionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1304
1305
|
if (output.statusCode >= 300) {
|
|
1305
1306
|
return de_CommandError(output, context);
|
|
1306
1307
|
}
|
|
1307
|
-
const data = await
|
|
1308
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1308
1309
|
let contents = {};
|
|
1309
1310
|
contents = de_DescribeMetricAttributionResponse(data, context);
|
|
1310
1311
|
const response = {
|
|
@@ -1317,7 +1318,7 @@ var de_DescribeRecipeCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1317
1318
|
if (output.statusCode >= 300) {
|
|
1318
1319
|
return de_CommandError(output, context);
|
|
1319
1320
|
}
|
|
1320
|
-
const data = await
|
|
1321
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1321
1322
|
let contents = {};
|
|
1322
1323
|
contents = de_DescribeRecipeResponse(data, context);
|
|
1323
1324
|
const response = {
|
|
@@ -1330,7 +1331,7 @@ var de_DescribeRecommenderCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1330
1331
|
if (output.statusCode >= 300) {
|
|
1331
1332
|
return de_CommandError(output, context);
|
|
1332
1333
|
}
|
|
1333
|
-
const data = await
|
|
1334
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1334
1335
|
let contents = {};
|
|
1335
1336
|
contents = de_DescribeRecommenderResponse(data, context);
|
|
1336
1337
|
const response = {
|
|
@@ -1343,7 +1344,7 @@ var de_DescribeSchemaCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1343
1344
|
if (output.statusCode >= 300) {
|
|
1344
1345
|
return de_CommandError(output, context);
|
|
1345
1346
|
}
|
|
1346
|
-
const data = await
|
|
1347
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1347
1348
|
let contents = {};
|
|
1348
1349
|
contents = de_DescribeSchemaResponse(data, context);
|
|
1349
1350
|
const response = {
|
|
@@ -1356,7 +1357,7 @@ var de_DescribeSolutionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1356
1357
|
if (output.statusCode >= 300) {
|
|
1357
1358
|
return de_CommandError(output, context);
|
|
1358
1359
|
}
|
|
1359
|
-
const data = await
|
|
1360
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1360
1361
|
let contents = {};
|
|
1361
1362
|
contents = de_DescribeSolutionResponse(data, context);
|
|
1362
1363
|
const response = {
|
|
@@ -1369,7 +1370,7 @@ var de_DescribeSolutionVersionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1369
1370
|
if (output.statusCode >= 300) {
|
|
1370
1371
|
return de_CommandError(output, context);
|
|
1371
1372
|
}
|
|
1372
|
-
const data = await
|
|
1373
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1373
1374
|
let contents = {};
|
|
1374
1375
|
contents = de_DescribeSolutionVersionResponse(data, context);
|
|
1375
1376
|
const response = {
|
|
@@ -1382,7 +1383,7 @@ var de_GetSolutionMetricsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1382
1383
|
if (output.statusCode >= 300) {
|
|
1383
1384
|
return de_CommandError(output, context);
|
|
1384
1385
|
}
|
|
1385
|
-
const data = await
|
|
1386
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1386
1387
|
let contents = {};
|
|
1387
1388
|
contents = de_GetSolutionMetricsResponse(data, context);
|
|
1388
1389
|
const response = {
|
|
@@ -1395,7 +1396,7 @@ var de_ListBatchInferenceJobsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1395
1396
|
if (output.statusCode >= 300) {
|
|
1396
1397
|
return de_CommandError(output, context);
|
|
1397
1398
|
}
|
|
1398
|
-
const data = await
|
|
1399
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1399
1400
|
let contents = {};
|
|
1400
1401
|
contents = de_ListBatchInferenceJobsResponse(data, context);
|
|
1401
1402
|
const response = {
|
|
@@ -1408,7 +1409,7 @@ var de_ListBatchSegmentJobsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1408
1409
|
if (output.statusCode >= 300) {
|
|
1409
1410
|
return de_CommandError(output, context);
|
|
1410
1411
|
}
|
|
1411
|
-
const data = await
|
|
1412
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1412
1413
|
let contents = {};
|
|
1413
1414
|
contents = de_ListBatchSegmentJobsResponse(data, context);
|
|
1414
1415
|
const response = {
|
|
@@ -1421,7 +1422,7 @@ var de_ListCampaignsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1421
1422
|
if (output.statusCode >= 300) {
|
|
1422
1423
|
return de_CommandError(output, context);
|
|
1423
1424
|
}
|
|
1424
|
-
const data = await
|
|
1425
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1425
1426
|
let contents = {};
|
|
1426
1427
|
contents = de_ListCampaignsResponse(data, context);
|
|
1427
1428
|
const response = {
|
|
@@ -1434,7 +1435,7 @@ var de_ListDatasetExportJobsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1434
1435
|
if (output.statusCode >= 300) {
|
|
1435
1436
|
return de_CommandError(output, context);
|
|
1436
1437
|
}
|
|
1437
|
-
const data = await
|
|
1438
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1438
1439
|
let contents = {};
|
|
1439
1440
|
contents = de_ListDatasetExportJobsResponse(data, context);
|
|
1440
1441
|
const response = {
|
|
@@ -1447,7 +1448,7 @@ var de_ListDatasetGroupsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1447
1448
|
if (output.statusCode >= 300) {
|
|
1448
1449
|
return de_CommandError(output, context);
|
|
1449
1450
|
}
|
|
1450
|
-
const data = await
|
|
1451
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1451
1452
|
let contents = {};
|
|
1452
1453
|
contents = de_ListDatasetGroupsResponse(data, context);
|
|
1453
1454
|
const response = {
|
|
@@ -1460,7 +1461,7 @@ var de_ListDatasetImportJobsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1460
1461
|
if (output.statusCode >= 300) {
|
|
1461
1462
|
return de_CommandError(output, context);
|
|
1462
1463
|
}
|
|
1463
|
-
const data = await
|
|
1464
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1464
1465
|
let contents = {};
|
|
1465
1466
|
contents = de_ListDatasetImportJobsResponse(data, context);
|
|
1466
1467
|
const response = {
|
|
@@ -1473,7 +1474,7 @@ var de_ListDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1473
1474
|
if (output.statusCode >= 300) {
|
|
1474
1475
|
return de_CommandError(output, context);
|
|
1475
1476
|
}
|
|
1476
|
-
const data = await
|
|
1477
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1477
1478
|
let contents = {};
|
|
1478
1479
|
contents = de_ListDatasetsResponse(data, context);
|
|
1479
1480
|
const response = {
|
|
@@ -1486,7 +1487,7 @@ var de_ListEventTrackersCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1486
1487
|
if (output.statusCode >= 300) {
|
|
1487
1488
|
return de_CommandError(output, context);
|
|
1488
1489
|
}
|
|
1489
|
-
const data = await
|
|
1490
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1490
1491
|
let contents = {};
|
|
1491
1492
|
contents = de_ListEventTrackersResponse(data, context);
|
|
1492
1493
|
const response = {
|
|
@@ -1499,7 +1500,7 @@ var de_ListFiltersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1499
1500
|
if (output.statusCode >= 300) {
|
|
1500
1501
|
return de_CommandError(output, context);
|
|
1501
1502
|
}
|
|
1502
|
-
const data = await
|
|
1503
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1503
1504
|
let contents = {};
|
|
1504
1505
|
contents = de_ListFiltersResponse(data, context);
|
|
1505
1506
|
const response = {
|
|
@@ -1512,7 +1513,7 @@ var de_ListMetricAttributionMetricsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1512
1513
|
if (output.statusCode >= 300) {
|
|
1513
1514
|
return de_CommandError(output, context);
|
|
1514
1515
|
}
|
|
1515
|
-
const data = await
|
|
1516
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1516
1517
|
let contents = {};
|
|
1517
1518
|
contents = (0, import_smithy_client._json)(data);
|
|
1518
1519
|
const response = {
|
|
@@ -1525,7 +1526,7 @@ var de_ListMetricAttributionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1525
1526
|
if (output.statusCode >= 300) {
|
|
1526
1527
|
return de_CommandError(output, context);
|
|
1527
1528
|
}
|
|
1528
|
-
const data = await
|
|
1529
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1529
1530
|
let contents = {};
|
|
1530
1531
|
contents = de_ListMetricAttributionsResponse(data, context);
|
|
1531
1532
|
const response = {
|
|
@@ -1538,7 +1539,7 @@ var de_ListRecipesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1538
1539
|
if (output.statusCode >= 300) {
|
|
1539
1540
|
return de_CommandError(output, context);
|
|
1540
1541
|
}
|
|
1541
|
-
const data = await
|
|
1542
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1542
1543
|
let contents = {};
|
|
1543
1544
|
contents = de_ListRecipesResponse(data, context);
|
|
1544
1545
|
const response = {
|
|
@@ -1551,7 +1552,7 @@ var de_ListRecommendersCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1551
1552
|
if (output.statusCode >= 300) {
|
|
1552
1553
|
return de_CommandError(output, context);
|
|
1553
1554
|
}
|
|
1554
|
-
const data = await
|
|
1555
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1555
1556
|
let contents = {};
|
|
1556
1557
|
contents = de_ListRecommendersResponse(data, context);
|
|
1557
1558
|
const response = {
|
|
@@ -1564,7 +1565,7 @@ var de_ListSchemasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1564
1565
|
if (output.statusCode >= 300) {
|
|
1565
1566
|
return de_CommandError(output, context);
|
|
1566
1567
|
}
|
|
1567
|
-
const data = await
|
|
1568
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1568
1569
|
let contents = {};
|
|
1569
1570
|
contents = de_ListSchemasResponse(data, context);
|
|
1570
1571
|
const response = {
|
|
@@ -1577,7 +1578,7 @@ var de_ListSolutionsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1577
1578
|
if (output.statusCode >= 300) {
|
|
1578
1579
|
return de_CommandError(output, context);
|
|
1579
1580
|
}
|
|
1580
|
-
const data = await
|
|
1581
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1581
1582
|
let contents = {};
|
|
1582
1583
|
contents = de_ListSolutionsResponse(data, context);
|
|
1583
1584
|
const response = {
|
|
@@ -1590,7 +1591,7 @@ var de_ListSolutionVersionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1590
1591
|
if (output.statusCode >= 300) {
|
|
1591
1592
|
return de_CommandError(output, context);
|
|
1592
1593
|
}
|
|
1593
|
-
const data = await
|
|
1594
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1594
1595
|
let contents = {};
|
|
1595
1596
|
contents = de_ListSolutionVersionsResponse(data, context);
|
|
1596
1597
|
const response = {
|
|
@@ -1603,7 +1604,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1603
1604
|
if (output.statusCode >= 300) {
|
|
1604
1605
|
return de_CommandError(output, context);
|
|
1605
1606
|
}
|
|
1606
|
-
const data = await
|
|
1607
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1607
1608
|
let contents = {};
|
|
1608
1609
|
contents = (0, import_smithy_client._json)(data);
|
|
1609
1610
|
const response = {
|
|
@@ -1616,7 +1617,7 @@ var de_StartRecommenderCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1616
1617
|
if (output.statusCode >= 300) {
|
|
1617
1618
|
return de_CommandError(output, context);
|
|
1618
1619
|
}
|
|
1619
|
-
const data = await
|
|
1620
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1620
1621
|
let contents = {};
|
|
1621
1622
|
contents = (0, import_smithy_client._json)(data);
|
|
1622
1623
|
const response = {
|
|
@@ -1629,7 +1630,7 @@ var de_StopRecommenderCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1629
1630
|
if (output.statusCode >= 300) {
|
|
1630
1631
|
return de_CommandError(output, context);
|
|
1631
1632
|
}
|
|
1632
|
-
const data = await
|
|
1633
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1633
1634
|
let contents = {};
|
|
1634
1635
|
contents = (0, import_smithy_client._json)(data);
|
|
1635
1636
|
const response = {
|
|
@@ -1652,7 +1653,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1652
1653
|
if (output.statusCode >= 300) {
|
|
1653
1654
|
return de_CommandError(output, context);
|
|
1654
1655
|
}
|
|
1655
|
-
const data = await
|
|
1656
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1656
1657
|
let contents = {};
|
|
1657
1658
|
contents = (0, import_smithy_client._json)(data);
|
|
1658
1659
|
const response = {
|
|
@@ -1665,7 +1666,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1665
1666
|
if (output.statusCode >= 300) {
|
|
1666
1667
|
return de_CommandError(output, context);
|
|
1667
1668
|
}
|
|
1668
|
-
const data = await
|
|
1669
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1669
1670
|
let contents = {};
|
|
1670
1671
|
contents = (0, import_smithy_client._json)(data);
|
|
1671
1672
|
const response = {
|
|
@@ -1678,7 +1679,7 @@ var de_UpdateCampaignCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1678
1679
|
if (output.statusCode >= 300) {
|
|
1679
1680
|
return de_CommandError(output, context);
|
|
1680
1681
|
}
|
|
1681
|
-
const data = await
|
|
1682
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1682
1683
|
let contents = {};
|
|
1683
1684
|
contents = (0, import_smithy_client._json)(data);
|
|
1684
1685
|
const response = {
|
|
@@ -1691,7 +1692,7 @@ var de_UpdateDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1691
1692
|
if (output.statusCode >= 300) {
|
|
1692
1693
|
return de_CommandError(output, context);
|
|
1693
1694
|
}
|
|
1694
|
-
const data = await
|
|
1695
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1695
1696
|
let contents = {};
|
|
1696
1697
|
contents = (0, import_smithy_client._json)(data);
|
|
1697
1698
|
const response = {
|
|
@@ -1704,7 +1705,7 @@ var de_UpdateMetricAttributionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1704
1705
|
if (output.statusCode >= 300) {
|
|
1705
1706
|
return de_CommandError(output, context);
|
|
1706
1707
|
}
|
|
1707
|
-
const data = await
|
|
1708
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1708
1709
|
let contents = {};
|
|
1709
1710
|
contents = (0, import_smithy_client._json)(data);
|
|
1710
1711
|
const response = {
|
|
@@ -1717,7 +1718,7 @@ var de_UpdateRecommenderCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1717
1718
|
if (output.statusCode >= 300) {
|
|
1718
1719
|
return de_CommandError(output, context);
|
|
1719
1720
|
}
|
|
1720
|
-
const data = await
|
|
1721
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1721
1722
|
let contents = {};
|
|
1722
1723
|
contents = (0, import_smithy_client._json)(data);
|
|
1723
1724
|
const response = {
|
|
@@ -1729,9 +1730,9 @@ var de_UpdateRecommenderCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1729
1730
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1730
1731
|
const parsedOutput = {
|
|
1731
1732
|
...output,
|
|
1732
|
-
body: await
|
|
1733
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1733
1734
|
};
|
|
1734
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1735
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1735
1736
|
switch (errorCode) {
|
|
1736
1737
|
case "InvalidInputException":
|
|
1737
1738
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
@@ -2656,7 +2657,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2656
2657
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2657
2658
|
cfId: output.headers["x-amz-cf-id"]
|
|
2658
2659
|
}), "deserializeMetadata");
|
|
2659
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2660
2660
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(PersonalizeServiceException);
|
|
2661
2661
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2662
2662
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2683,46 +2683,6 @@ function sharedHeaders(operation) {
|
|
|
2683
2683
|
};
|
|
2684
2684
|
}
|
|
2685
2685
|
__name(sharedHeaders, "sharedHeaders");
|
|
2686
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2687
|
-
if (encoded.length) {
|
|
2688
|
-
return JSON.parse(encoded);
|
|
2689
|
-
}
|
|
2690
|
-
return {};
|
|
2691
|
-
}), "parseBody");
|
|
2692
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2693
|
-
const value = await parseBody(errorBody, context);
|
|
2694
|
-
value.message = value.message ?? value.Message;
|
|
2695
|
-
return value;
|
|
2696
|
-
}, "parseErrorBody");
|
|
2697
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2698
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2699
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2700
|
-
let cleanValue = rawValue;
|
|
2701
|
-
if (typeof cleanValue === "number") {
|
|
2702
|
-
cleanValue = cleanValue.toString();
|
|
2703
|
-
}
|
|
2704
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2705
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2706
|
-
}
|
|
2707
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2708
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2709
|
-
}
|
|
2710
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2711
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2712
|
-
}
|
|
2713
|
-
return cleanValue;
|
|
2714
|
-
}, "sanitizeErrorCode");
|
|
2715
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2716
|
-
if (headerKey !== void 0) {
|
|
2717
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2718
|
-
}
|
|
2719
|
-
if (data.code !== void 0) {
|
|
2720
|
-
return sanitizeErrorCode(data.code);
|
|
2721
|
-
}
|
|
2722
|
-
if (data["__type"] !== void 0) {
|
|
2723
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2724
|
-
}
|
|
2725
|
-
}, "loadRestJsonErrorCode");
|
|
2726
2686
|
|
|
2727
2687
|
// src/commands/CreateBatchInferenceJobCommand.ts
|
|
2728
2688
|
var _CreateBatchInferenceJobCommand = class _CreateBatchInferenceJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { InvalidInputException, InvalidNextTokenException, LimitExceededException, ResourceAlreadyExistsException, ResourceInUseException, ResourceNotFoundException, TooManyTagKeysException, TooManyTagsException, } from "../models/models_0";
|
|
@@ -2237,43 +2238,3 @@ function sharedHeaders(operation) {
|
|
|
2237
2238
|
"x-amz-target": `AmazonPersonalize.${operation}`,
|
|
2238
2239
|
};
|
|
2239
2240
|
}
|
|
2240
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2241
|
-
if (encoded.length) {
|
|
2242
|
-
return JSON.parse(encoded);
|
|
2243
|
-
}
|
|
2244
|
-
return {};
|
|
2245
|
-
});
|
|
2246
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2247
|
-
const value = await parseBody(errorBody, context);
|
|
2248
|
-
value.message = value.message ?? value.Message;
|
|
2249
|
-
return value;
|
|
2250
|
-
};
|
|
2251
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2252
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2253
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2254
|
-
let cleanValue = rawValue;
|
|
2255
|
-
if (typeof cleanValue === "number") {
|
|
2256
|
-
cleanValue = cleanValue.toString();
|
|
2257
|
-
}
|
|
2258
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2259
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2260
|
-
}
|
|
2261
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2262
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2263
|
-
}
|
|
2264
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2265
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2266
|
-
}
|
|
2267
|
-
return cleanValue;
|
|
2268
|
-
};
|
|
2269
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2270
|
-
if (headerKey !== undefined) {
|
|
2271
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2272
|
-
}
|
|
2273
|
-
if (data.code !== undefined) {
|
|
2274
|
-
return sanitizeErrorCode(data.code);
|
|
2275
|
-
}
|
|
2276
|
-
if (data["__type"] !== undefined) {
|
|
2277
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2278
|
-
}
|
|
2279
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-personalize",
|
|
3
3
|
"description": "AWS SDK for JavaScript Personalize Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-personalize",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.1",
|
|
24
|
+
"@aws-sdk/core": "3.529.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.1",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|