@aws-sdk/client-wisdom 3.504.0 → 3.507.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-cjs/index.js +73 -1085
- package/dist-es/protocols/Aws_restJson1.js +89 -1101
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1331,7 +1331,7 @@ var se_UpdateQuickResponseCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
1331
1331
|
}, "se_UpdateQuickResponseCommand");
|
|
1332
1332
|
var de_CreateAssistantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1333
1333
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1334
|
-
return
|
|
1334
|
+
return de_CommandError(output, context);
|
|
1335
1335
|
}
|
|
1336
1336
|
const contents = (0, import_smithy_client.map)({
|
|
1337
1337
|
$metadata: deserializeMetadata(output)
|
|
@@ -1343,37 +1343,9 @@ var de_CreateAssistantCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1343
1343
|
Object.assign(contents, doc);
|
|
1344
1344
|
return contents;
|
|
1345
1345
|
}, "de_CreateAssistantCommand");
|
|
1346
|
-
var de_CreateAssistantCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1347
|
-
const parsedOutput = {
|
|
1348
|
-
...output,
|
|
1349
|
-
body: await parseErrorBody(output.body, context)
|
|
1350
|
-
};
|
|
1351
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1352
|
-
switch (errorCode) {
|
|
1353
|
-
case "AccessDeniedException":
|
|
1354
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1355
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1356
|
-
case "ConflictException":
|
|
1357
|
-
case "com.amazonaws.wisdom#ConflictException":
|
|
1358
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1359
|
-
case "ServiceQuotaExceededException":
|
|
1360
|
-
case "com.amazonaws.wisdom#ServiceQuotaExceededException":
|
|
1361
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1362
|
-
case "ValidationException":
|
|
1363
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
1364
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1365
|
-
default:
|
|
1366
|
-
const parsedBody = parsedOutput.body;
|
|
1367
|
-
return throwDefaultError({
|
|
1368
|
-
output,
|
|
1369
|
-
parsedBody,
|
|
1370
|
-
errorCode
|
|
1371
|
-
});
|
|
1372
|
-
}
|
|
1373
|
-
}, "de_CreateAssistantCommandError");
|
|
1374
1346
|
var de_CreateAssistantAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1375
1347
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1376
|
-
return
|
|
1348
|
+
return de_CommandError(output, context);
|
|
1377
1349
|
}
|
|
1378
1350
|
const contents = (0, import_smithy_client.map)({
|
|
1379
1351
|
$metadata: deserializeMetadata(output)
|
|
@@ -1385,40 +1357,9 @@ var de_CreateAssistantAssociationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1385
1357
|
Object.assign(contents, doc);
|
|
1386
1358
|
return contents;
|
|
1387
1359
|
}, "de_CreateAssistantAssociationCommand");
|
|
1388
|
-
var de_CreateAssistantAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1389
|
-
const parsedOutput = {
|
|
1390
|
-
...output,
|
|
1391
|
-
body: await parseErrorBody(output.body, context)
|
|
1392
|
-
};
|
|
1393
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1394
|
-
switch (errorCode) {
|
|
1395
|
-
case "AccessDeniedException":
|
|
1396
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1397
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1398
|
-
case "ConflictException":
|
|
1399
|
-
case "com.amazonaws.wisdom#ConflictException":
|
|
1400
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1401
|
-
case "ResourceNotFoundException":
|
|
1402
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1403
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1404
|
-
case "ServiceQuotaExceededException":
|
|
1405
|
-
case "com.amazonaws.wisdom#ServiceQuotaExceededException":
|
|
1406
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1407
|
-
case "ValidationException":
|
|
1408
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
1409
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1410
|
-
default:
|
|
1411
|
-
const parsedBody = parsedOutput.body;
|
|
1412
|
-
return throwDefaultError({
|
|
1413
|
-
output,
|
|
1414
|
-
parsedBody,
|
|
1415
|
-
errorCode
|
|
1416
|
-
});
|
|
1417
|
-
}
|
|
1418
|
-
}, "de_CreateAssistantAssociationCommandError");
|
|
1419
1360
|
var de_CreateContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1420
1361
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1421
|
-
return
|
|
1362
|
+
return de_CommandError(output, context);
|
|
1422
1363
|
}
|
|
1423
1364
|
const contents = (0, import_smithy_client.map)({
|
|
1424
1365
|
$metadata: deserializeMetadata(output)
|
|
@@ -1430,40 +1371,9 @@ var de_CreateContentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1430
1371
|
Object.assign(contents, doc);
|
|
1431
1372
|
return contents;
|
|
1432
1373
|
}, "de_CreateContentCommand");
|
|
1433
|
-
var de_CreateContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1434
|
-
const parsedOutput = {
|
|
1435
|
-
...output,
|
|
1436
|
-
body: await parseErrorBody(output.body, context)
|
|
1437
|
-
};
|
|
1438
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1439
|
-
switch (errorCode) {
|
|
1440
|
-
case "AccessDeniedException":
|
|
1441
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1442
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1443
|
-
case "ConflictException":
|
|
1444
|
-
case "com.amazonaws.wisdom#ConflictException":
|
|
1445
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1446
|
-
case "ResourceNotFoundException":
|
|
1447
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1448
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "ServiceQuotaExceededException":
|
|
1450
|
-
case "com.amazonaws.wisdom#ServiceQuotaExceededException":
|
|
1451
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1452
|
-
case "ValidationException":
|
|
1453
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
1454
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1455
|
-
default:
|
|
1456
|
-
const parsedBody = parsedOutput.body;
|
|
1457
|
-
return throwDefaultError({
|
|
1458
|
-
output,
|
|
1459
|
-
parsedBody,
|
|
1460
|
-
errorCode
|
|
1461
|
-
});
|
|
1462
|
-
}
|
|
1463
|
-
}, "de_CreateContentCommandError");
|
|
1464
1374
|
var de_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1465
1375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1466
|
-
return
|
|
1376
|
+
return de_CommandError(output, context);
|
|
1467
1377
|
}
|
|
1468
1378
|
const contents = (0, import_smithy_client.map)({
|
|
1469
1379
|
$metadata: deserializeMetadata(output)
|
|
@@ -1475,37 +1385,9 @@ var de_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1475
1385
|
Object.assign(contents, doc);
|
|
1476
1386
|
return contents;
|
|
1477
1387
|
}, "de_CreateKnowledgeBaseCommand");
|
|
1478
|
-
var de_CreateKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1479
|
-
const parsedOutput = {
|
|
1480
|
-
...output,
|
|
1481
|
-
body: await parseErrorBody(output.body, context)
|
|
1482
|
-
};
|
|
1483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
|
-
switch (errorCode) {
|
|
1485
|
-
case "AccessDeniedException":
|
|
1486
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1487
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1488
|
-
case "ConflictException":
|
|
1489
|
-
case "com.amazonaws.wisdom#ConflictException":
|
|
1490
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "ServiceQuotaExceededException":
|
|
1492
|
-
case "com.amazonaws.wisdom#ServiceQuotaExceededException":
|
|
1493
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "ValidationException":
|
|
1495
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
1496
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1497
|
-
default:
|
|
1498
|
-
const parsedBody = parsedOutput.body;
|
|
1499
|
-
return throwDefaultError({
|
|
1500
|
-
output,
|
|
1501
|
-
parsedBody,
|
|
1502
|
-
errorCode
|
|
1503
|
-
});
|
|
1504
|
-
}
|
|
1505
|
-
}, "de_CreateKnowledgeBaseCommandError");
|
|
1506
1388
|
var de_CreateQuickResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1507
1389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1508
|
-
return
|
|
1390
|
+
return de_CommandError(output, context);
|
|
1509
1391
|
}
|
|
1510
1392
|
const contents = (0, import_smithy_client.map)({
|
|
1511
1393
|
$metadata: deserializeMetadata(output)
|
|
@@ -1517,40 +1399,9 @@ var de_CreateQuickResponseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1517
1399
|
Object.assign(contents, doc);
|
|
1518
1400
|
return contents;
|
|
1519
1401
|
}, "de_CreateQuickResponseCommand");
|
|
1520
|
-
var de_CreateQuickResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1521
|
-
const parsedOutput = {
|
|
1522
|
-
...output,
|
|
1523
|
-
body: await parseErrorBody(output.body, context)
|
|
1524
|
-
};
|
|
1525
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1526
|
-
switch (errorCode) {
|
|
1527
|
-
case "AccessDeniedException":
|
|
1528
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1529
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1530
|
-
case "ConflictException":
|
|
1531
|
-
case "com.amazonaws.wisdom#ConflictException":
|
|
1532
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1533
|
-
case "ResourceNotFoundException":
|
|
1534
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1535
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1536
|
-
case "ServiceQuotaExceededException":
|
|
1537
|
-
case "com.amazonaws.wisdom#ServiceQuotaExceededException":
|
|
1538
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1539
|
-
case "ValidationException":
|
|
1540
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
1541
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1542
|
-
default:
|
|
1543
|
-
const parsedBody = parsedOutput.body;
|
|
1544
|
-
return throwDefaultError({
|
|
1545
|
-
output,
|
|
1546
|
-
parsedBody,
|
|
1547
|
-
errorCode
|
|
1548
|
-
});
|
|
1549
|
-
}
|
|
1550
|
-
}, "de_CreateQuickResponseCommandError");
|
|
1551
1402
|
var de_CreateSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1552
1403
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1553
|
-
return
|
|
1404
|
+
return de_CommandError(output, context);
|
|
1554
1405
|
}
|
|
1555
1406
|
const contents = (0, import_smithy_client.map)({
|
|
1556
1407
|
$metadata: deserializeMetadata(output)
|
|
@@ -1562,34 +1413,9 @@ var de_CreateSessionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1562
1413
|
Object.assign(contents, doc);
|
|
1563
1414
|
return contents;
|
|
1564
1415
|
}, "de_CreateSessionCommand");
|
|
1565
|
-
var de_CreateSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1566
|
-
const parsedOutput = {
|
|
1567
|
-
...output,
|
|
1568
|
-
body: await parseErrorBody(output.body, context)
|
|
1569
|
-
};
|
|
1570
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1571
|
-
switch (errorCode) {
|
|
1572
|
-
case "ConflictException":
|
|
1573
|
-
case "com.amazonaws.wisdom#ConflictException":
|
|
1574
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1575
|
-
case "ResourceNotFoundException":
|
|
1576
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1577
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1578
|
-
case "ValidationException":
|
|
1579
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
1580
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1581
|
-
default:
|
|
1582
|
-
const parsedBody = parsedOutput.body;
|
|
1583
|
-
return throwDefaultError({
|
|
1584
|
-
output,
|
|
1585
|
-
parsedBody,
|
|
1586
|
-
errorCode
|
|
1587
|
-
});
|
|
1588
|
-
}
|
|
1589
|
-
}, "de_CreateSessionCommandError");
|
|
1590
1416
|
var de_DeleteAssistantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1591
1417
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1592
|
-
return
|
|
1418
|
+
return de_CommandError(output, context);
|
|
1593
1419
|
}
|
|
1594
1420
|
const contents = (0, import_smithy_client.map)({
|
|
1595
1421
|
$metadata: deserializeMetadata(output)
|
|
@@ -1597,34 +1423,9 @@ var de_DeleteAssistantCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1597
1423
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1598
1424
|
return contents;
|
|
1599
1425
|
}, "de_DeleteAssistantCommand");
|
|
1600
|
-
var de_DeleteAssistantCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1601
|
-
const parsedOutput = {
|
|
1602
|
-
...output,
|
|
1603
|
-
body: await parseErrorBody(output.body, context)
|
|
1604
|
-
};
|
|
1605
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1606
|
-
switch (errorCode) {
|
|
1607
|
-
case "AccessDeniedException":
|
|
1608
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1609
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1610
|
-
case "ResourceNotFoundException":
|
|
1611
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1612
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1613
|
-
case "ValidationException":
|
|
1614
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
1615
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1616
|
-
default:
|
|
1617
|
-
const parsedBody = parsedOutput.body;
|
|
1618
|
-
return throwDefaultError({
|
|
1619
|
-
output,
|
|
1620
|
-
parsedBody,
|
|
1621
|
-
errorCode
|
|
1622
|
-
});
|
|
1623
|
-
}
|
|
1624
|
-
}, "de_DeleteAssistantCommandError");
|
|
1625
1426
|
var de_DeleteAssistantAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1626
1427
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1627
|
-
return
|
|
1428
|
+
return de_CommandError(output, context);
|
|
1628
1429
|
}
|
|
1629
1430
|
const contents = (0, import_smithy_client.map)({
|
|
1630
1431
|
$metadata: deserializeMetadata(output)
|
|
@@ -1632,34 +1433,9 @@ var de_DeleteAssistantAssociationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1632
1433
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1633
1434
|
return contents;
|
|
1634
1435
|
}, "de_DeleteAssistantAssociationCommand");
|
|
1635
|
-
var de_DeleteAssistantAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1636
|
-
const parsedOutput = {
|
|
1637
|
-
...output,
|
|
1638
|
-
body: await parseErrorBody(output.body, context)
|
|
1639
|
-
};
|
|
1640
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1641
|
-
switch (errorCode) {
|
|
1642
|
-
case "AccessDeniedException":
|
|
1643
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1644
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "ResourceNotFoundException":
|
|
1646
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1647
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "ValidationException":
|
|
1649
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
1650
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1651
|
-
default:
|
|
1652
|
-
const parsedBody = parsedOutput.body;
|
|
1653
|
-
return throwDefaultError({
|
|
1654
|
-
output,
|
|
1655
|
-
parsedBody,
|
|
1656
|
-
errorCode
|
|
1657
|
-
});
|
|
1658
|
-
}
|
|
1659
|
-
}, "de_DeleteAssistantAssociationCommandError");
|
|
1660
1436
|
var de_DeleteContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1661
1437
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1662
|
-
return
|
|
1438
|
+
return de_CommandError(output, context);
|
|
1663
1439
|
}
|
|
1664
1440
|
const contents = (0, import_smithy_client.map)({
|
|
1665
1441
|
$metadata: deserializeMetadata(output)
|
|
@@ -1667,34 +1443,9 @@ var de_DeleteContentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1667
1443
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1668
1444
|
return contents;
|
|
1669
1445
|
}, "de_DeleteContentCommand");
|
|
1670
|
-
var de_DeleteContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1671
|
-
const parsedOutput = {
|
|
1672
|
-
...output,
|
|
1673
|
-
body: await parseErrorBody(output.body, context)
|
|
1674
|
-
};
|
|
1675
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1676
|
-
switch (errorCode) {
|
|
1677
|
-
case "AccessDeniedException":
|
|
1678
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1679
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1680
|
-
case "ResourceNotFoundException":
|
|
1681
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1682
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1683
|
-
case "ValidationException":
|
|
1684
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
1685
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1686
|
-
default:
|
|
1687
|
-
const parsedBody = parsedOutput.body;
|
|
1688
|
-
return throwDefaultError({
|
|
1689
|
-
output,
|
|
1690
|
-
parsedBody,
|
|
1691
|
-
errorCode
|
|
1692
|
-
});
|
|
1693
|
-
}
|
|
1694
|
-
}, "de_DeleteContentCommandError");
|
|
1695
1446
|
var de_DeleteImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1696
1447
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1697
|
-
return
|
|
1448
|
+
return de_CommandError(output, context);
|
|
1698
1449
|
}
|
|
1699
1450
|
const contents = (0, import_smithy_client.map)({
|
|
1700
1451
|
$metadata: deserializeMetadata(output)
|
|
@@ -1702,37 +1453,9 @@ var de_DeleteImportJobCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1702
1453
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1703
1454
|
return contents;
|
|
1704
1455
|
}, "de_DeleteImportJobCommand");
|
|
1705
|
-
var de_DeleteImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1706
|
-
const parsedOutput = {
|
|
1707
|
-
...output,
|
|
1708
|
-
body: await parseErrorBody(output.body, context)
|
|
1709
|
-
};
|
|
1710
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1711
|
-
switch (errorCode) {
|
|
1712
|
-
case "AccessDeniedException":
|
|
1713
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1714
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1715
|
-
case "ConflictException":
|
|
1716
|
-
case "com.amazonaws.wisdom#ConflictException":
|
|
1717
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1718
|
-
case "ResourceNotFoundException":
|
|
1719
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1720
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1721
|
-
case "ValidationException":
|
|
1722
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
1723
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1724
|
-
default:
|
|
1725
|
-
const parsedBody = parsedOutput.body;
|
|
1726
|
-
return throwDefaultError({
|
|
1727
|
-
output,
|
|
1728
|
-
parsedBody,
|
|
1729
|
-
errorCode
|
|
1730
|
-
});
|
|
1731
|
-
}
|
|
1732
|
-
}, "de_DeleteImportJobCommandError");
|
|
1733
1456
|
var de_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1734
1457
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1735
|
-
return
|
|
1458
|
+
return de_CommandError(output, context);
|
|
1736
1459
|
}
|
|
1737
1460
|
const contents = (0, import_smithy_client.map)({
|
|
1738
1461
|
$metadata: deserializeMetadata(output)
|
|
@@ -1740,37 +1463,9 @@ var de_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1740
1463
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1741
1464
|
return contents;
|
|
1742
1465
|
}, "de_DeleteKnowledgeBaseCommand");
|
|
1743
|
-
var de_DeleteKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1744
|
-
const parsedOutput = {
|
|
1745
|
-
...output,
|
|
1746
|
-
body: await parseErrorBody(output.body, context)
|
|
1747
|
-
};
|
|
1748
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1749
|
-
switch (errorCode) {
|
|
1750
|
-
case "AccessDeniedException":
|
|
1751
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1752
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1753
|
-
case "ConflictException":
|
|
1754
|
-
case "com.amazonaws.wisdom#ConflictException":
|
|
1755
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1756
|
-
case "ResourceNotFoundException":
|
|
1757
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1758
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1759
|
-
case "ValidationException":
|
|
1760
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
1761
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1762
|
-
default:
|
|
1763
|
-
const parsedBody = parsedOutput.body;
|
|
1764
|
-
return throwDefaultError({
|
|
1765
|
-
output,
|
|
1766
|
-
parsedBody,
|
|
1767
|
-
errorCode
|
|
1768
|
-
});
|
|
1769
|
-
}
|
|
1770
|
-
}, "de_DeleteKnowledgeBaseCommandError");
|
|
1771
1466
|
var de_DeleteQuickResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1772
1467
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1773
|
-
return
|
|
1468
|
+
return de_CommandError(output, context);
|
|
1774
1469
|
}
|
|
1775
1470
|
const contents = (0, import_smithy_client.map)({
|
|
1776
1471
|
$metadata: deserializeMetadata(output)
|
|
@@ -1778,34 +1473,9 @@ var de_DeleteQuickResponseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1778
1473
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1779
1474
|
return contents;
|
|
1780
1475
|
}, "de_DeleteQuickResponseCommand");
|
|
1781
|
-
var de_DeleteQuickResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1782
|
-
const parsedOutput = {
|
|
1783
|
-
...output,
|
|
1784
|
-
body: await parseErrorBody(output.body, context)
|
|
1785
|
-
};
|
|
1786
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1787
|
-
switch (errorCode) {
|
|
1788
|
-
case "AccessDeniedException":
|
|
1789
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1790
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1791
|
-
case "ResourceNotFoundException":
|
|
1792
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1793
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1794
|
-
case "ValidationException":
|
|
1795
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
1796
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1797
|
-
default:
|
|
1798
|
-
const parsedBody = parsedOutput.body;
|
|
1799
|
-
return throwDefaultError({
|
|
1800
|
-
output,
|
|
1801
|
-
parsedBody,
|
|
1802
|
-
errorCode
|
|
1803
|
-
});
|
|
1804
|
-
}
|
|
1805
|
-
}, "de_DeleteQuickResponseCommandError");
|
|
1806
1476
|
var de_GetAssistantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1807
1477
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1808
|
-
return
|
|
1478
|
+
return de_CommandError(output, context);
|
|
1809
1479
|
}
|
|
1810
1480
|
const contents = (0, import_smithy_client.map)({
|
|
1811
1481
|
$metadata: deserializeMetadata(output)
|
|
@@ -1817,34 +1487,9 @@ var de_GetAssistantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1817
1487
|
Object.assign(contents, doc);
|
|
1818
1488
|
return contents;
|
|
1819
1489
|
}, "de_GetAssistantCommand");
|
|
1820
|
-
var de_GetAssistantCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1821
|
-
const parsedOutput = {
|
|
1822
|
-
...output,
|
|
1823
|
-
body: await parseErrorBody(output.body, context)
|
|
1824
|
-
};
|
|
1825
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1826
|
-
switch (errorCode) {
|
|
1827
|
-
case "AccessDeniedException":
|
|
1828
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1829
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1830
|
-
case "ResourceNotFoundException":
|
|
1831
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1832
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1833
|
-
case "ValidationException":
|
|
1834
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
1835
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1836
|
-
default:
|
|
1837
|
-
const parsedBody = parsedOutput.body;
|
|
1838
|
-
return throwDefaultError({
|
|
1839
|
-
output,
|
|
1840
|
-
parsedBody,
|
|
1841
|
-
errorCode
|
|
1842
|
-
});
|
|
1843
|
-
}
|
|
1844
|
-
}, "de_GetAssistantCommandError");
|
|
1845
1490
|
var de_GetAssistantAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1846
1491
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1847
|
-
return
|
|
1492
|
+
return de_CommandError(output, context);
|
|
1848
1493
|
}
|
|
1849
1494
|
const contents = (0, import_smithy_client.map)({
|
|
1850
1495
|
$metadata: deserializeMetadata(output)
|
|
@@ -1856,34 +1501,9 @@ var de_GetAssistantAssociationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1856
1501
|
Object.assign(contents, doc);
|
|
1857
1502
|
return contents;
|
|
1858
1503
|
}, "de_GetAssistantAssociationCommand");
|
|
1859
|
-
var de_GetAssistantAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1860
|
-
const parsedOutput = {
|
|
1861
|
-
...output,
|
|
1862
|
-
body: await parseErrorBody(output.body, context)
|
|
1863
|
-
};
|
|
1864
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
|
-
switch (errorCode) {
|
|
1866
|
-
case "AccessDeniedException":
|
|
1867
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1868
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1869
|
-
case "ResourceNotFoundException":
|
|
1870
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1871
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1872
|
-
case "ValidationException":
|
|
1873
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
1874
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1875
|
-
default:
|
|
1876
|
-
const parsedBody = parsedOutput.body;
|
|
1877
|
-
return throwDefaultError({
|
|
1878
|
-
output,
|
|
1879
|
-
parsedBody,
|
|
1880
|
-
errorCode
|
|
1881
|
-
});
|
|
1882
|
-
}
|
|
1883
|
-
}, "de_GetAssistantAssociationCommandError");
|
|
1884
1504
|
var de_GetContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1885
1505
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1886
|
-
return
|
|
1506
|
+
return de_CommandError(output, context);
|
|
1887
1507
|
}
|
|
1888
1508
|
const contents = (0, import_smithy_client.map)({
|
|
1889
1509
|
$metadata: deserializeMetadata(output)
|
|
@@ -1895,34 +1515,9 @@ var de_GetContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1895
1515
|
Object.assign(contents, doc);
|
|
1896
1516
|
return contents;
|
|
1897
1517
|
}, "de_GetContentCommand");
|
|
1898
|
-
var de_GetContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1899
|
-
const parsedOutput = {
|
|
1900
|
-
...output,
|
|
1901
|
-
body: await parseErrorBody(output.body, context)
|
|
1902
|
-
};
|
|
1903
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1904
|
-
switch (errorCode) {
|
|
1905
|
-
case "AccessDeniedException":
|
|
1906
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1907
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1908
|
-
case "ResourceNotFoundException":
|
|
1909
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1910
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1911
|
-
case "ValidationException":
|
|
1912
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
1913
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1914
|
-
default:
|
|
1915
|
-
const parsedBody = parsedOutput.body;
|
|
1916
|
-
return throwDefaultError({
|
|
1917
|
-
output,
|
|
1918
|
-
parsedBody,
|
|
1919
|
-
errorCode
|
|
1920
|
-
});
|
|
1921
|
-
}
|
|
1922
|
-
}, "de_GetContentCommandError");
|
|
1923
1518
|
var de_GetContentSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1924
1519
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1925
|
-
return
|
|
1520
|
+
return de_CommandError(output, context);
|
|
1926
1521
|
}
|
|
1927
1522
|
const contents = (0, import_smithy_client.map)({
|
|
1928
1523
|
$metadata: deserializeMetadata(output)
|
|
@@ -1934,34 +1529,9 @@ var de_GetContentSummaryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1934
1529
|
Object.assign(contents, doc);
|
|
1935
1530
|
return contents;
|
|
1936
1531
|
}, "de_GetContentSummaryCommand");
|
|
1937
|
-
var de_GetContentSummaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1938
|
-
const parsedOutput = {
|
|
1939
|
-
...output,
|
|
1940
|
-
body: await parseErrorBody(output.body, context)
|
|
1941
|
-
};
|
|
1942
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1943
|
-
switch (errorCode) {
|
|
1944
|
-
case "AccessDeniedException":
|
|
1945
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1946
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1947
|
-
case "ResourceNotFoundException":
|
|
1948
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1949
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1950
|
-
case "ValidationException":
|
|
1951
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
1952
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1953
|
-
default:
|
|
1954
|
-
const parsedBody = parsedOutput.body;
|
|
1955
|
-
return throwDefaultError({
|
|
1956
|
-
output,
|
|
1957
|
-
parsedBody,
|
|
1958
|
-
errorCode
|
|
1959
|
-
});
|
|
1960
|
-
}
|
|
1961
|
-
}, "de_GetContentSummaryCommandError");
|
|
1962
1532
|
var de_GetImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1963
1533
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1964
|
-
return
|
|
1534
|
+
return de_CommandError(output, context);
|
|
1965
1535
|
}
|
|
1966
1536
|
const contents = (0, import_smithy_client.map)({
|
|
1967
1537
|
$metadata: deserializeMetadata(output)
|
|
@@ -1973,34 +1543,9 @@ var de_GetImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1973
1543
|
Object.assign(contents, doc);
|
|
1974
1544
|
return contents;
|
|
1975
1545
|
}, "de_GetImportJobCommand");
|
|
1976
|
-
var de_GetImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1977
|
-
const parsedOutput = {
|
|
1978
|
-
...output,
|
|
1979
|
-
body: await parseErrorBody(output.body, context)
|
|
1980
|
-
};
|
|
1981
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
|
-
switch (errorCode) {
|
|
1983
|
-
case "AccessDeniedException":
|
|
1984
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
1985
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1986
|
-
case "ResourceNotFoundException":
|
|
1987
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1988
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1989
|
-
case "ValidationException":
|
|
1990
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
1991
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1992
|
-
default:
|
|
1993
|
-
const parsedBody = parsedOutput.body;
|
|
1994
|
-
return throwDefaultError({
|
|
1995
|
-
output,
|
|
1996
|
-
parsedBody,
|
|
1997
|
-
errorCode
|
|
1998
|
-
});
|
|
1999
|
-
}
|
|
2000
|
-
}, "de_GetImportJobCommandError");
|
|
2001
1546
|
var de_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2002
1547
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2003
|
-
return
|
|
1548
|
+
return de_CommandError(output, context);
|
|
2004
1549
|
}
|
|
2005
1550
|
const contents = (0, import_smithy_client.map)({
|
|
2006
1551
|
$metadata: deserializeMetadata(output)
|
|
@@ -2011,74 +1556,24 @@ var de_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2011
1556
|
});
|
|
2012
1557
|
Object.assign(contents, doc);
|
|
2013
1558
|
return contents;
|
|
2014
|
-
}, "de_GetKnowledgeBaseCommand");
|
|
2015
|
-
var
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
body: await parseErrorBody(output.body, context)
|
|
2019
|
-
};
|
|
2020
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2021
|
-
switch (errorCode) {
|
|
2022
|
-
case "AccessDeniedException":
|
|
2023
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2024
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2025
|
-
case "ResourceNotFoundException":
|
|
2026
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2027
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "ValidationException":
|
|
2029
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2030
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2031
|
-
default:
|
|
2032
|
-
const parsedBody = parsedOutput.body;
|
|
2033
|
-
return throwDefaultError({
|
|
2034
|
-
output,
|
|
2035
|
-
parsedBody,
|
|
2036
|
-
errorCode
|
|
2037
|
-
});
|
|
2038
|
-
}
|
|
2039
|
-
}, "de_GetKnowledgeBaseCommandError");
|
|
2040
|
-
var de_GetQuickResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2041
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2042
|
-
return de_GetQuickResponseCommandError(output, context);
|
|
2043
|
-
}
|
|
2044
|
-
const contents = (0, import_smithy_client.map)({
|
|
2045
|
-
$metadata: deserializeMetadata(output)
|
|
2046
|
-
});
|
|
2047
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2048
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2049
|
-
quickResponse: (_) => de_QuickResponseData(_, context)
|
|
2050
|
-
});
|
|
2051
|
-
Object.assign(contents, doc);
|
|
2052
|
-
return contents;
|
|
2053
|
-
}, "de_GetQuickResponseCommand");
|
|
2054
|
-
var de_GetQuickResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2055
|
-
const parsedOutput = {
|
|
2056
|
-
...output,
|
|
2057
|
-
body: await parseErrorBody(output.body, context)
|
|
2058
|
-
};
|
|
2059
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2060
|
-
switch (errorCode) {
|
|
2061
|
-
case "AccessDeniedException":
|
|
2062
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2063
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2064
|
-
case "ResourceNotFoundException":
|
|
2065
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2066
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2067
|
-
case "ValidationException":
|
|
2068
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2069
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2070
|
-
default:
|
|
2071
|
-
const parsedBody = parsedOutput.body;
|
|
2072
|
-
return throwDefaultError({
|
|
2073
|
-
output,
|
|
2074
|
-
parsedBody,
|
|
2075
|
-
errorCode
|
|
2076
|
-
});
|
|
1559
|
+
}, "de_GetKnowledgeBaseCommand");
|
|
1560
|
+
var de_GetQuickResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1561
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1562
|
+
return de_CommandError(output, context);
|
|
2077
1563
|
}
|
|
2078
|
-
|
|
1564
|
+
const contents = (0, import_smithy_client.map)({
|
|
1565
|
+
$metadata: deserializeMetadata(output)
|
|
1566
|
+
});
|
|
1567
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1568
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1569
|
+
quickResponse: (_) => de_QuickResponseData(_, context)
|
|
1570
|
+
});
|
|
1571
|
+
Object.assign(contents, doc);
|
|
1572
|
+
return contents;
|
|
1573
|
+
}, "de_GetQuickResponseCommand");
|
|
2079
1574
|
var de_GetRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2080
1575
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2081
|
-
return
|
|
1576
|
+
return de_CommandError(output, context);
|
|
2082
1577
|
}
|
|
2083
1578
|
const contents = (0, import_smithy_client.map)({
|
|
2084
1579
|
$metadata: deserializeMetadata(output)
|
|
@@ -2091,34 +1586,9 @@ var de_GetRecommendationsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2091
1586
|
Object.assign(contents, doc);
|
|
2092
1587
|
return contents;
|
|
2093
1588
|
}, "de_GetRecommendationsCommand");
|
|
2094
|
-
var de_GetRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2095
|
-
const parsedOutput = {
|
|
2096
|
-
...output,
|
|
2097
|
-
body: await parseErrorBody(output.body, context)
|
|
2098
|
-
};
|
|
2099
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2100
|
-
switch (errorCode) {
|
|
2101
|
-
case "AccessDeniedException":
|
|
2102
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2103
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2104
|
-
case "ResourceNotFoundException":
|
|
2105
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2106
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2107
|
-
case "ValidationException":
|
|
2108
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2109
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2110
|
-
default:
|
|
2111
|
-
const parsedBody = parsedOutput.body;
|
|
2112
|
-
return throwDefaultError({
|
|
2113
|
-
output,
|
|
2114
|
-
parsedBody,
|
|
2115
|
-
errorCode
|
|
2116
|
-
});
|
|
2117
|
-
}
|
|
2118
|
-
}, "de_GetRecommendationsCommandError");
|
|
2119
1589
|
var de_GetSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2120
1590
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2121
|
-
return
|
|
1591
|
+
return de_CommandError(output, context);
|
|
2122
1592
|
}
|
|
2123
1593
|
const contents = (0, import_smithy_client.map)({
|
|
2124
1594
|
$metadata: deserializeMetadata(output)
|
|
@@ -2130,34 +1600,9 @@ var de_GetSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2130
1600
|
Object.assign(contents, doc);
|
|
2131
1601
|
return contents;
|
|
2132
1602
|
}, "de_GetSessionCommand");
|
|
2133
|
-
var de_GetSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2134
|
-
const parsedOutput = {
|
|
2135
|
-
...output,
|
|
2136
|
-
body: await parseErrorBody(output.body, context)
|
|
2137
|
-
};
|
|
2138
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2139
|
-
switch (errorCode) {
|
|
2140
|
-
case "AccessDeniedException":
|
|
2141
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2142
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2143
|
-
case "ResourceNotFoundException":
|
|
2144
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2145
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2146
|
-
case "ValidationException":
|
|
2147
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2148
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2149
|
-
default:
|
|
2150
|
-
const parsedBody = parsedOutput.body;
|
|
2151
|
-
return throwDefaultError({
|
|
2152
|
-
output,
|
|
2153
|
-
parsedBody,
|
|
2154
|
-
errorCode
|
|
2155
|
-
});
|
|
2156
|
-
}
|
|
2157
|
-
}, "de_GetSessionCommandError");
|
|
2158
1603
|
var de_ListAssistantAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2159
1604
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2160
|
-
return
|
|
1605
|
+
return de_CommandError(output, context);
|
|
2161
1606
|
}
|
|
2162
1607
|
const contents = (0, import_smithy_client.map)({
|
|
2163
1608
|
$metadata: deserializeMetadata(output)
|
|
@@ -2170,34 +1615,9 @@ var de_ListAssistantAssociationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2170
1615
|
Object.assign(contents, doc);
|
|
2171
1616
|
return contents;
|
|
2172
1617
|
}, "de_ListAssistantAssociationsCommand");
|
|
2173
|
-
var de_ListAssistantAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2174
|
-
const parsedOutput = {
|
|
2175
|
-
...output,
|
|
2176
|
-
body: await parseErrorBody(output.body, context)
|
|
2177
|
-
};
|
|
2178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2179
|
-
switch (errorCode) {
|
|
2180
|
-
case "AccessDeniedException":
|
|
2181
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2182
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2183
|
-
case "ResourceNotFoundException":
|
|
2184
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2185
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2186
|
-
case "ValidationException":
|
|
2187
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2188
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2189
|
-
default:
|
|
2190
|
-
const parsedBody = parsedOutput.body;
|
|
2191
|
-
return throwDefaultError({
|
|
2192
|
-
output,
|
|
2193
|
-
parsedBody,
|
|
2194
|
-
errorCode
|
|
2195
|
-
});
|
|
2196
|
-
}
|
|
2197
|
-
}, "de_ListAssistantAssociationsCommandError");
|
|
2198
1618
|
var de_ListAssistantsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2199
1619
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2200
|
-
return
|
|
1620
|
+
return de_CommandError(output, context);
|
|
2201
1621
|
}
|
|
2202
1622
|
const contents = (0, import_smithy_client.map)({
|
|
2203
1623
|
$metadata: deserializeMetadata(output)
|
|
@@ -2210,31 +1630,9 @@ var de_ListAssistantsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2210
1630
|
Object.assign(contents, doc);
|
|
2211
1631
|
return contents;
|
|
2212
1632
|
}, "de_ListAssistantsCommand");
|
|
2213
|
-
var de_ListAssistantsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2214
|
-
const parsedOutput = {
|
|
2215
|
-
...output,
|
|
2216
|
-
body: await parseErrorBody(output.body, context)
|
|
2217
|
-
};
|
|
2218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2219
|
-
switch (errorCode) {
|
|
2220
|
-
case "AccessDeniedException":
|
|
2221
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2222
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2223
|
-
case "ValidationException":
|
|
2224
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2225
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2226
|
-
default:
|
|
2227
|
-
const parsedBody = parsedOutput.body;
|
|
2228
|
-
return throwDefaultError({
|
|
2229
|
-
output,
|
|
2230
|
-
parsedBody,
|
|
2231
|
-
errorCode
|
|
2232
|
-
});
|
|
2233
|
-
}
|
|
2234
|
-
}, "de_ListAssistantsCommandError");
|
|
2235
1633
|
var de_ListContentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2236
1634
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2237
|
-
return
|
|
1635
|
+
return de_CommandError(output, context);
|
|
2238
1636
|
}
|
|
2239
1637
|
const contents = (0, import_smithy_client.map)({
|
|
2240
1638
|
$metadata: deserializeMetadata(output)
|
|
@@ -2247,34 +1645,9 @@ var de_ListContentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2247
1645
|
Object.assign(contents, doc);
|
|
2248
1646
|
return contents;
|
|
2249
1647
|
}, "de_ListContentsCommand");
|
|
2250
|
-
var de_ListContentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2251
|
-
const parsedOutput = {
|
|
2252
|
-
...output,
|
|
2253
|
-
body: await parseErrorBody(output.body, context)
|
|
2254
|
-
};
|
|
2255
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2256
|
-
switch (errorCode) {
|
|
2257
|
-
case "AccessDeniedException":
|
|
2258
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2259
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2260
|
-
case "ResourceNotFoundException":
|
|
2261
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2262
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2263
|
-
case "ValidationException":
|
|
2264
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2265
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2266
|
-
default:
|
|
2267
|
-
const parsedBody = parsedOutput.body;
|
|
2268
|
-
return throwDefaultError({
|
|
2269
|
-
output,
|
|
2270
|
-
parsedBody,
|
|
2271
|
-
errorCode
|
|
2272
|
-
});
|
|
2273
|
-
}
|
|
2274
|
-
}, "de_ListContentsCommandError");
|
|
2275
1648
|
var de_ListImportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2276
1649
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2277
|
-
return
|
|
1650
|
+
return de_CommandError(output, context);
|
|
2278
1651
|
}
|
|
2279
1652
|
const contents = (0, import_smithy_client.map)({
|
|
2280
1653
|
$metadata: deserializeMetadata(output)
|
|
@@ -2287,31 +1660,9 @@ var de_ListImportJobsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2287
1660
|
Object.assign(contents, doc);
|
|
2288
1661
|
return contents;
|
|
2289
1662
|
}, "de_ListImportJobsCommand");
|
|
2290
|
-
var de_ListImportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2291
|
-
const parsedOutput = {
|
|
2292
|
-
...output,
|
|
2293
|
-
body: await parseErrorBody(output.body, context)
|
|
2294
|
-
};
|
|
2295
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2296
|
-
switch (errorCode) {
|
|
2297
|
-
case "AccessDeniedException":
|
|
2298
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2299
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2300
|
-
case "ValidationException":
|
|
2301
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2302
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2303
|
-
default:
|
|
2304
|
-
const parsedBody = parsedOutput.body;
|
|
2305
|
-
return throwDefaultError({
|
|
2306
|
-
output,
|
|
2307
|
-
parsedBody,
|
|
2308
|
-
errorCode
|
|
2309
|
-
});
|
|
2310
|
-
}
|
|
2311
|
-
}, "de_ListImportJobsCommandError");
|
|
2312
1663
|
var de_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2313
1664
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2314
|
-
return
|
|
1665
|
+
return de_CommandError(output, context);
|
|
2315
1666
|
}
|
|
2316
1667
|
const contents = (0, import_smithy_client.map)({
|
|
2317
1668
|
$metadata: deserializeMetadata(output)
|
|
@@ -2324,31 +1675,9 @@ var de_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2324
1675
|
Object.assign(contents, doc);
|
|
2325
1676
|
return contents;
|
|
2326
1677
|
}, "de_ListKnowledgeBasesCommand");
|
|
2327
|
-
var de_ListKnowledgeBasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2328
|
-
const parsedOutput = {
|
|
2329
|
-
...output,
|
|
2330
|
-
body: await parseErrorBody(output.body, context)
|
|
2331
|
-
};
|
|
2332
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2333
|
-
switch (errorCode) {
|
|
2334
|
-
case "AccessDeniedException":
|
|
2335
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2336
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2337
|
-
case "ValidationException":
|
|
2338
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2339
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2340
|
-
default:
|
|
2341
|
-
const parsedBody = parsedOutput.body;
|
|
2342
|
-
return throwDefaultError({
|
|
2343
|
-
output,
|
|
2344
|
-
parsedBody,
|
|
2345
|
-
errorCode
|
|
2346
|
-
});
|
|
2347
|
-
}
|
|
2348
|
-
}, "de_ListKnowledgeBasesCommandError");
|
|
2349
1678
|
var de_ListQuickResponsesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2350
1679
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2351
|
-
return
|
|
1680
|
+
return de_CommandError(output, context);
|
|
2352
1681
|
}
|
|
2353
1682
|
const contents = (0, import_smithy_client.map)({
|
|
2354
1683
|
$metadata: deserializeMetadata(output)
|
|
@@ -2361,34 +1690,9 @@ var de_ListQuickResponsesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2361
1690
|
Object.assign(contents, doc);
|
|
2362
1691
|
return contents;
|
|
2363
1692
|
}, "de_ListQuickResponsesCommand");
|
|
2364
|
-
var de_ListQuickResponsesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2365
|
-
const parsedOutput = {
|
|
2366
|
-
...output,
|
|
2367
|
-
body: await parseErrorBody(output.body, context)
|
|
2368
|
-
};
|
|
2369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2370
|
-
switch (errorCode) {
|
|
2371
|
-
case "AccessDeniedException":
|
|
2372
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2373
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2374
|
-
case "ResourceNotFoundException":
|
|
2375
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2376
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2377
|
-
case "ValidationException":
|
|
2378
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2379
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2380
|
-
default:
|
|
2381
|
-
const parsedBody = parsedOutput.body;
|
|
2382
|
-
return throwDefaultError({
|
|
2383
|
-
output,
|
|
2384
|
-
parsedBody,
|
|
2385
|
-
errorCode
|
|
2386
|
-
});
|
|
2387
|
-
}
|
|
2388
|
-
}, "de_ListQuickResponsesCommandError");
|
|
2389
1693
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2390
1694
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2391
|
-
return
|
|
1695
|
+
return de_CommandError(output, context);
|
|
2392
1696
|
}
|
|
2393
1697
|
const contents = (0, import_smithy_client.map)({
|
|
2394
1698
|
$metadata: deserializeMetadata(output)
|
|
@@ -2400,28 +1704,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2400
1704
|
Object.assign(contents, doc);
|
|
2401
1705
|
return contents;
|
|
2402
1706
|
}, "de_ListTagsForResourceCommand");
|
|
2403
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2404
|
-
const parsedOutput = {
|
|
2405
|
-
...output,
|
|
2406
|
-
body: await parseErrorBody(output.body, context)
|
|
2407
|
-
};
|
|
2408
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2409
|
-
switch (errorCode) {
|
|
2410
|
-
case "ResourceNotFoundException":
|
|
2411
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2412
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2413
|
-
default:
|
|
2414
|
-
const parsedBody = parsedOutput.body;
|
|
2415
|
-
return throwDefaultError({
|
|
2416
|
-
output,
|
|
2417
|
-
parsedBody,
|
|
2418
|
-
errorCode
|
|
2419
|
-
});
|
|
2420
|
-
}
|
|
2421
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2422
1707
|
var de_NotifyRecommendationsReceivedCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2423
1708
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2424
|
-
return
|
|
1709
|
+
return de_CommandError(output, context);
|
|
2425
1710
|
}
|
|
2426
1711
|
const contents = (0, import_smithy_client.map)({
|
|
2427
1712
|
$metadata: deserializeMetadata(output)
|
|
@@ -2434,34 +1719,9 @@ var de_NotifyRecommendationsReceivedCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2434
1719
|
Object.assign(contents, doc);
|
|
2435
1720
|
return contents;
|
|
2436
1721
|
}, "de_NotifyRecommendationsReceivedCommand");
|
|
2437
|
-
var de_NotifyRecommendationsReceivedCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2438
|
-
const parsedOutput = {
|
|
2439
|
-
...output,
|
|
2440
|
-
body: await parseErrorBody(output.body, context)
|
|
2441
|
-
};
|
|
2442
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2443
|
-
switch (errorCode) {
|
|
2444
|
-
case "AccessDeniedException":
|
|
2445
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2446
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2447
|
-
case "ResourceNotFoundException":
|
|
2448
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2449
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2450
|
-
case "ValidationException":
|
|
2451
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2452
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2453
|
-
default:
|
|
2454
|
-
const parsedBody = parsedOutput.body;
|
|
2455
|
-
return throwDefaultError({
|
|
2456
|
-
output,
|
|
2457
|
-
parsedBody,
|
|
2458
|
-
errorCode
|
|
2459
|
-
});
|
|
2460
|
-
}
|
|
2461
|
-
}, "de_NotifyRecommendationsReceivedCommandError");
|
|
2462
1722
|
var de_QueryAssistantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2463
1723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2464
|
-
return
|
|
1724
|
+
return de_CommandError(output, context);
|
|
2465
1725
|
}
|
|
2466
1726
|
const contents = (0, import_smithy_client.map)({
|
|
2467
1727
|
$metadata: deserializeMetadata(output)
|
|
@@ -2472,39 +1732,11 @@ var de_QueryAssistantCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2472
1732
|
results: (_) => de_QueryResultsList(_, context)
|
|
2473
1733
|
});
|
|
2474
1734
|
Object.assign(contents, doc);
|
|
2475
|
-
return contents;
|
|
2476
|
-
}, "de_QueryAssistantCommand");
|
|
2477
|
-
var de_QueryAssistantCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2478
|
-
const parsedOutput = {
|
|
2479
|
-
...output,
|
|
2480
|
-
body: await parseErrorBody(output.body, context)
|
|
2481
|
-
};
|
|
2482
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2483
|
-
switch (errorCode) {
|
|
2484
|
-
case "AccessDeniedException":
|
|
2485
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2486
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2487
|
-
case "RequestTimeoutException":
|
|
2488
|
-
case "com.amazonaws.wisdom#RequestTimeoutException":
|
|
2489
|
-
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
2490
|
-
case "ResourceNotFoundException":
|
|
2491
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2492
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2493
|
-
case "ValidationException":
|
|
2494
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2495
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2496
|
-
default:
|
|
2497
|
-
const parsedBody = parsedOutput.body;
|
|
2498
|
-
return throwDefaultError({
|
|
2499
|
-
output,
|
|
2500
|
-
parsedBody,
|
|
2501
|
-
errorCode
|
|
2502
|
-
});
|
|
2503
|
-
}
|
|
2504
|
-
}, "de_QueryAssistantCommandError");
|
|
1735
|
+
return contents;
|
|
1736
|
+
}, "de_QueryAssistantCommand");
|
|
2505
1737
|
var de_RemoveKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2506
1738
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2507
|
-
return
|
|
1739
|
+
return de_CommandError(output, context);
|
|
2508
1740
|
}
|
|
2509
1741
|
const contents = (0, import_smithy_client.map)({
|
|
2510
1742
|
$metadata: deserializeMetadata(output)
|
|
@@ -2512,34 +1744,9 @@ var de_RemoveKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (out
|
|
|
2512
1744
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2513
1745
|
return contents;
|
|
2514
1746
|
}, "de_RemoveKnowledgeBaseTemplateUriCommand");
|
|
2515
|
-
var de_RemoveKnowledgeBaseTemplateUriCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2516
|
-
const parsedOutput = {
|
|
2517
|
-
...output,
|
|
2518
|
-
body: await parseErrorBody(output.body, context)
|
|
2519
|
-
};
|
|
2520
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2521
|
-
switch (errorCode) {
|
|
2522
|
-
case "AccessDeniedException":
|
|
2523
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2524
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2525
|
-
case "ResourceNotFoundException":
|
|
2526
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2527
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2528
|
-
case "ValidationException":
|
|
2529
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2530
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2531
|
-
default:
|
|
2532
|
-
const parsedBody = parsedOutput.body;
|
|
2533
|
-
return throwDefaultError({
|
|
2534
|
-
output,
|
|
2535
|
-
parsedBody,
|
|
2536
|
-
errorCode
|
|
2537
|
-
});
|
|
2538
|
-
}
|
|
2539
|
-
}, "de_RemoveKnowledgeBaseTemplateUriCommandError");
|
|
2540
1747
|
var de_SearchContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2541
1748
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2542
|
-
return
|
|
1749
|
+
return de_CommandError(output, context);
|
|
2543
1750
|
}
|
|
2544
1751
|
const contents = (0, import_smithy_client.map)({
|
|
2545
1752
|
$metadata: deserializeMetadata(output)
|
|
@@ -2552,34 +1759,9 @@ var de_SearchContentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2552
1759
|
Object.assign(contents, doc);
|
|
2553
1760
|
return contents;
|
|
2554
1761
|
}, "de_SearchContentCommand");
|
|
2555
|
-
var de_SearchContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2556
|
-
const parsedOutput = {
|
|
2557
|
-
...output,
|
|
2558
|
-
body: await parseErrorBody(output.body, context)
|
|
2559
|
-
};
|
|
2560
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2561
|
-
switch (errorCode) {
|
|
2562
|
-
case "AccessDeniedException":
|
|
2563
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2564
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2565
|
-
case "ResourceNotFoundException":
|
|
2566
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2567
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2568
|
-
case "ValidationException":
|
|
2569
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2570
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2571
|
-
default:
|
|
2572
|
-
const parsedBody = parsedOutput.body;
|
|
2573
|
-
return throwDefaultError({
|
|
2574
|
-
output,
|
|
2575
|
-
parsedBody,
|
|
2576
|
-
errorCode
|
|
2577
|
-
});
|
|
2578
|
-
}
|
|
2579
|
-
}, "de_SearchContentCommandError");
|
|
2580
1762
|
var de_SearchQuickResponsesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2581
1763
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2582
|
-
return
|
|
1764
|
+
return de_CommandError(output, context);
|
|
2583
1765
|
}
|
|
2584
1766
|
const contents = (0, import_smithy_client.map)({
|
|
2585
1767
|
$metadata: deserializeMetadata(output)
|
|
@@ -2592,37 +1774,9 @@ var de_SearchQuickResponsesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2592
1774
|
Object.assign(contents, doc);
|
|
2593
1775
|
return contents;
|
|
2594
1776
|
}, "de_SearchQuickResponsesCommand");
|
|
2595
|
-
var de_SearchQuickResponsesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2596
|
-
const parsedOutput = {
|
|
2597
|
-
...output,
|
|
2598
|
-
body: await parseErrorBody(output.body, context)
|
|
2599
|
-
};
|
|
2600
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2601
|
-
switch (errorCode) {
|
|
2602
|
-
case "AccessDeniedException":
|
|
2603
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2604
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2605
|
-
case "RequestTimeoutException":
|
|
2606
|
-
case "com.amazonaws.wisdom#RequestTimeoutException":
|
|
2607
|
-
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
2608
|
-
case "ResourceNotFoundException":
|
|
2609
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2610
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2611
|
-
case "ValidationException":
|
|
2612
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2613
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2614
|
-
default:
|
|
2615
|
-
const parsedBody = parsedOutput.body;
|
|
2616
|
-
return throwDefaultError({
|
|
2617
|
-
output,
|
|
2618
|
-
parsedBody,
|
|
2619
|
-
errorCode
|
|
2620
|
-
});
|
|
2621
|
-
}
|
|
2622
|
-
}, "de_SearchQuickResponsesCommandError");
|
|
2623
1777
|
var de_SearchSessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2624
1778
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2625
|
-
return
|
|
1779
|
+
return de_CommandError(output, context);
|
|
2626
1780
|
}
|
|
2627
1781
|
const contents = (0, import_smithy_client.map)({
|
|
2628
1782
|
$metadata: deserializeMetadata(output)
|
|
@@ -2635,34 +1789,9 @@ var de_SearchSessionsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2635
1789
|
Object.assign(contents, doc);
|
|
2636
1790
|
return contents;
|
|
2637
1791
|
}, "de_SearchSessionsCommand");
|
|
2638
|
-
var de_SearchSessionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2639
|
-
const parsedOutput = {
|
|
2640
|
-
...output,
|
|
2641
|
-
body: await parseErrorBody(output.body, context)
|
|
2642
|
-
};
|
|
2643
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2644
|
-
switch (errorCode) {
|
|
2645
|
-
case "AccessDeniedException":
|
|
2646
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2647
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2648
|
-
case "ResourceNotFoundException":
|
|
2649
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2650
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2651
|
-
case "ValidationException":
|
|
2652
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2653
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2654
|
-
default:
|
|
2655
|
-
const parsedBody = parsedOutput.body;
|
|
2656
|
-
return throwDefaultError({
|
|
2657
|
-
output,
|
|
2658
|
-
parsedBody,
|
|
2659
|
-
errorCode
|
|
2660
|
-
});
|
|
2661
|
-
}
|
|
2662
|
-
}, "de_SearchSessionsCommandError");
|
|
2663
1792
|
var de_StartContentUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2664
1793
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2665
|
-
return
|
|
1794
|
+
return de_CommandError(output, context);
|
|
2666
1795
|
}
|
|
2667
1796
|
const contents = (0, import_smithy_client.map)({
|
|
2668
1797
|
$metadata: deserializeMetadata(output)
|
|
@@ -2677,34 +1806,9 @@ var de_StartContentUploadCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2677
1806
|
Object.assign(contents, doc);
|
|
2678
1807
|
return contents;
|
|
2679
1808
|
}, "de_StartContentUploadCommand");
|
|
2680
|
-
var de_StartContentUploadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2681
|
-
const parsedOutput = {
|
|
2682
|
-
...output,
|
|
2683
|
-
body: await parseErrorBody(output.body, context)
|
|
2684
|
-
};
|
|
2685
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2686
|
-
switch (errorCode) {
|
|
2687
|
-
case "AccessDeniedException":
|
|
2688
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2689
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2690
|
-
case "ResourceNotFoundException":
|
|
2691
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2692
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2693
|
-
case "ValidationException":
|
|
2694
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2695
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2696
|
-
default:
|
|
2697
|
-
const parsedBody = parsedOutput.body;
|
|
2698
|
-
return throwDefaultError({
|
|
2699
|
-
output,
|
|
2700
|
-
parsedBody,
|
|
2701
|
-
errorCode
|
|
2702
|
-
});
|
|
2703
|
-
}
|
|
2704
|
-
}, "de_StartContentUploadCommandError");
|
|
2705
1809
|
var de_StartImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2706
1810
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2707
|
-
return
|
|
1811
|
+
return de_CommandError(output, context);
|
|
2708
1812
|
}
|
|
2709
1813
|
const contents = (0, import_smithy_client.map)({
|
|
2710
1814
|
$metadata: deserializeMetadata(output)
|
|
@@ -2716,40 +1820,9 @@ var de_StartImportJobCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2716
1820
|
Object.assign(contents, doc);
|
|
2717
1821
|
return contents;
|
|
2718
1822
|
}, "de_StartImportJobCommand");
|
|
2719
|
-
var de_StartImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2720
|
-
const parsedOutput = {
|
|
2721
|
-
...output,
|
|
2722
|
-
body: await parseErrorBody(output.body, context)
|
|
2723
|
-
};
|
|
2724
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2725
|
-
switch (errorCode) {
|
|
2726
|
-
case "AccessDeniedException":
|
|
2727
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2728
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2729
|
-
case "ConflictException":
|
|
2730
|
-
case "com.amazonaws.wisdom#ConflictException":
|
|
2731
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2732
|
-
case "ResourceNotFoundException":
|
|
2733
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2734
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2735
|
-
case "ServiceQuotaExceededException":
|
|
2736
|
-
case "com.amazonaws.wisdom#ServiceQuotaExceededException":
|
|
2737
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2738
|
-
case "ValidationException":
|
|
2739
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2740
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2741
|
-
default:
|
|
2742
|
-
const parsedBody = parsedOutput.body;
|
|
2743
|
-
return throwDefaultError({
|
|
2744
|
-
output,
|
|
2745
|
-
parsedBody,
|
|
2746
|
-
errorCode
|
|
2747
|
-
});
|
|
2748
|
-
}
|
|
2749
|
-
}, "de_StartImportJobCommandError");
|
|
2750
1823
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2751
1824
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2752
|
-
return
|
|
1825
|
+
return de_CommandError(output, context);
|
|
2753
1826
|
}
|
|
2754
1827
|
const contents = (0, import_smithy_client.map)({
|
|
2755
1828
|
$metadata: deserializeMetadata(output)
|
|
@@ -2757,31 +1830,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2757
1830
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2758
1831
|
return contents;
|
|
2759
1832
|
}, "de_TagResourceCommand");
|
|
2760
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2761
|
-
const parsedOutput = {
|
|
2762
|
-
...output,
|
|
2763
|
-
body: await parseErrorBody(output.body, context)
|
|
2764
|
-
};
|
|
2765
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2766
|
-
switch (errorCode) {
|
|
2767
|
-
case "ResourceNotFoundException":
|
|
2768
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2769
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2770
|
-
case "TooManyTagsException":
|
|
2771
|
-
case "com.amazonaws.wisdom#TooManyTagsException":
|
|
2772
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2773
|
-
default:
|
|
2774
|
-
const parsedBody = parsedOutput.body;
|
|
2775
|
-
return throwDefaultError({
|
|
2776
|
-
output,
|
|
2777
|
-
parsedBody,
|
|
2778
|
-
errorCode
|
|
2779
|
-
});
|
|
2780
|
-
}
|
|
2781
|
-
}, "de_TagResourceCommandError");
|
|
2782
1833
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2783
1834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2784
|
-
return
|
|
1835
|
+
return de_CommandError(output, context);
|
|
2785
1836
|
}
|
|
2786
1837
|
const contents = (0, import_smithy_client.map)({
|
|
2787
1838
|
$metadata: deserializeMetadata(output)
|
|
@@ -2789,28 +1840,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2789
1840
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2790
1841
|
return contents;
|
|
2791
1842
|
}, "de_UntagResourceCommand");
|
|
2792
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2793
|
-
const parsedOutput = {
|
|
2794
|
-
...output,
|
|
2795
|
-
body: await parseErrorBody(output.body, context)
|
|
2796
|
-
};
|
|
2797
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2798
|
-
switch (errorCode) {
|
|
2799
|
-
case "ResourceNotFoundException":
|
|
2800
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2801
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2802
|
-
default:
|
|
2803
|
-
const parsedBody = parsedOutput.body;
|
|
2804
|
-
return throwDefaultError({
|
|
2805
|
-
output,
|
|
2806
|
-
parsedBody,
|
|
2807
|
-
errorCode
|
|
2808
|
-
});
|
|
2809
|
-
}
|
|
2810
|
-
}, "de_UntagResourceCommandError");
|
|
2811
1843
|
var de_UpdateContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2812
1844
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2813
|
-
return
|
|
1845
|
+
return de_CommandError(output, context);
|
|
2814
1846
|
}
|
|
2815
1847
|
const contents = (0, import_smithy_client.map)({
|
|
2816
1848
|
$metadata: deserializeMetadata(output)
|
|
@@ -2822,37 +1854,9 @@ var de_UpdateContentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2822
1854
|
Object.assign(contents, doc);
|
|
2823
1855
|
return contents;
|
|
2824
1856
|
}, "de_UpdateContentCommand");
|
|
2825
|
-
var de_UpdateContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2826
|
-
const parsedOutput = {
|
|
2827
|
-
...output,
|
|
2828
|
-
body: await parseErrorBody(output.body, context)
|
|
2829
|
-
};
|
|
2830
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2831
|
-
switch (errorCode) {
|
|
2832
|
-
case "AccessDeniedException":
|
|
2833
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2834
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2835
|
-
case "PreconditionFailedException":
|
|
2836
|
-
case "com.amazonaws.wisdom#PreconditionFailedException":
|
|
2837
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2838
|
-
case "ResourceNotFoundException":
|
|
2839
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2840
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2841
|
-
case "ValidationException":
|
|
2842
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2843
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2844
|
-
default:
|
|
2845
|
-
const parsedBody = parsedOutput.body;
|
|
2846
|
-
return throwDefaultError({
|
|
2847
|
-
output,
|
|
2848
|
-
parsedBody,
|
|
2849
|
-
errorCode
|
|
2850
|
-
});
|
|
2851
|
-
}
|
|
2852
|
-
}, "de_UpdateContentCommandError");
|
|
2853
1857
|
var de_UpdateKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2854
1858
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2855
|
-
return
|
|
1859
|
+
return de_CommandError(output, context);
|
|
2856
1860
|
}
|
|
2857
1861
|
const contents = (0, import_smithy_client.map)({
|
|
2858
1862
|
$metadata: deserializeMetadata(output)
|
|
@@ -2864,34 +1868,9 @@ var de_UpdateKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (out
|
|
|
2864
1868
|
Object.assign(contents, doc);
|
|
2865
1869
|
return contents;
|
|
2866
1870
|
}, "de_UpdateKnowledgeBaseTemplateUriCommand");
|
|
2867
|
-
var de_UpdateKnowledgeBaseTemplateUriCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2868
|
-
const parsedOutput = {
|
|
2869
|
-
...output,
|
|
2870
|
-
body: await parseErrorBody(output.body, context)
|
|
2871
|
-
};
|
|
2872
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2873
|
-
switch (errorCode) {
|
|
2874
|
-
case "AccessDeniedException":
|
|
2875
|
-
case "com.amazonaws.wisdom#AccessDeniedException":
|
|
2876
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2877
|
-
case "ResourceNotFoundException":
|
|
2878
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2879
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2880
|
-
case "ValidationException":
|
|
2881
|
-
case "com.amazonaws.wisdom#ValidationException":
|
|
2882
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2883
|
-
default:
|
|
2884
|
-
const parsedBody = parsedOutput.body;
|
|
2885
|
-
return throwDefaultError({
|
|
2886
|
-
output,
|
|
2887
|
-
parsedBody,
|
|
2888
|
-
errorCode
|
|
2889
|
-
});
|
|
2890
|
-
}
|
|
2891
|
-
}, "de_UpdateKnowledgeBaseTemplateUriCommandError");
|
|
2892
1871
|
var de_UpdateQuickResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2893
1872
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2894
|
-
return
|
|
1873
|
+
return de_CommandError(output, context);
|
|
2895
1874
|
}
|
|
2896
1875
|
const contents = (0, import_smithy_client.map)({
|
|
2897
1876
|
$metadata: deserializeMetadata(output)
|
|
@@ -2903,7 +1882,7 @@ var de_UpdateQuickResponseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2903
1882
|
Object.assign(contents, doc);
|
|
2904
1883
|
return contents;
|
|
2905
1884
|
}, "de_UpdateQuickResponseCommand");
|
|
2906
|
-
var
|
|
1885
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2907
1886
|
const parsedOutput = {
|
|
2908
1887
|
...output,
|
|
2909
1888
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2916,15 +1895,24 @@ var de_UpdateQuickResponseCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
2916
1895
|
case "ConflictException":
|
|
2917
1896
|
case "com.amazonaws.wisdom#ConflictException":
|
|
2918
1897
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2919
|
-
case "
|
|
2920
|
-
case "com.amazonaws.wisdom#
|
|
2921
|
-
throw await
|
|
2922
|
-
case "ResourceNotFoundException":
|
|
2923
|
-
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
2924
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1898
|
+
case "ServiceQuotaExceededException":
|
|
1899
|
+
case "com.amazonaws.wisdom#ServiceQuotaExceededException":
|
|
1900
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2925
1901
|
case "ValidationException":
|
|
2926
1902
|
case "com.amazonaws.wisdom#ValidationException":
|
|
2927
1903
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1904
|
+
case "ResourceNotFoundException":
|
|
1905
|
+
case "com.amazonaws.wisdom#ResourceNotFoundException":
|
|
1906
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1907
|
+
case "RequestTimeoutException":
|
|
1908
|
+
case "com.amazonaws.wisdom#RequestTimeoutException":
|
|
1909
|
+
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
1910
|
+
case "TooManyTagsException":
|
|
1911
|
+
case "com.amazonaws.wisdom#TooManyTagsException":
|
|
1912
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1913
|
+
case "PreconditionFailedException":
|
|
1914
|
+
case "com.amazonaws.wisdom#PreconditionFailedException":
|
|
1915
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2928
1916
|
default:
|
|
2929
1917
|
const parsedBody = parsedOutput.body;
|
|
2930
1918
|
return throwDefaultError({
|
|
@@ -2933,7 +1921,7 @@ var de_UpdateQuickResponseCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
2933
1921
|
errorCode
|
|
2934
1922
|
});
|
|
2935
1923
|
}
|
|
2936
|
-
}, "
|
|
1924
|
+
}, "de_CommandError");
|
|
2937
1925
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(WisdomServiceException);
|
|
2938
1926
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2939
1927
|
const contents = (0, import_smithy_client.map)({});
|