@aws-sdk/client-qconnect 3.504.0 → 3.509.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 +74 -1111
- package/dist-es/protocols/Aws_restJson1.js +90 -1127
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1471,7 +1471,7 @@ var se_UpdateQuickResponseCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
1471
1471
|
}, "se_UpdateQuickResponseCommand");
|
|
1472
1472
|
var de_CreateAssistantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1473
1473
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1474
|
-
return
|
|
1474
|
+
return de_CommandError(output, context);
|
|
1475
1475
|
}
|
|
1476
1476
|
const contents = (0, import_smithy_client.map)({
|
|
1477
1477
|
$metadata: deserializeMetadata(output)
|
|
@@ -1483,37 +1483,9 @@ var de_CreateAssistantCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1483
1483
|
Object.assign(contents, doc);
|
|
1484
1484
|
return contents;
|
|
1485
1485
|
}, "de_CreateAssistantCommand");
|
|
1486
|
-
var de_CreateAssistantCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1487
|
-
const parsedOutput = {
|
|
1488
|
-
...output,
|
|
1489
|
-
body: await parseErrorBody(output.body, context)
|
|
1490
|
-
};
|
|
1491
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
|
-
switch (errorCode) {
|
|
1493
|
-
case "AccessDeniedException":
|
|
1494
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
1495
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "ConflictException":
|
|
1497
|
-
case "com.amazonaws.qconnect#ConflictException":
|
|
1498
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "ServiceQuotaExceededException":
|
|
1500
|
-
case "com.amazonaws.qconnect#ServiceQuotaExceededException":
|
|
1501
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "ValidationException":
|
|
1503
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
1504
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1505
|
-
default:
|
|
1506
|
-
const parsedBody = parsedOutput.body;
|
|
1507
|
-
return throwDefaultError({
|
|
1508
|
-
output,
|
|
1509
|
-
parsedBody,
|
|
1510
|
-
errorCode
|
|
1511
|
-
});
|
|
1512
|
-
}
|
|
1513
|
-
}, "de_CreateAssistantCommandError");
|
|
1514
1486
|
var de_CreateAssistantAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1515
1487
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1516
|
-
return
|
|
1488
|
+
return de_CommandError(output, context);
|
|
1517
1489
|
}
|
|
1518
1490
|
const contents = (0, import_smithy_client.map)({
|
|
1519
1491
|
$metadata: deserializeMetadata(output)
|
|
@@ -1525,40 +1497,9 @@ var de_CreateAssistantAssociationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1525
1497
|
Object.assign(contents, doc);
|
|
1526
1498
|
return contents;
|
|
1527
1499
|
}, "de_CreateAssistantAssociationCommand");
|
|
1528
|
-
var de_CreateAssistantAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1529
|
-
const parsedOutput = {
|
|
1530
|
-
...output,
|
|
1531
|
-
body: await parseErrorBody(output.body, context)
|
|
1532
|
-
};
|
|
1533
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1534
|
-
switch (errorCode) {
|
|
1535
|
-
case "AccessDeniedException":
|
|
1536
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
1537
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1538
|
-
case "ConflictException":
|
|
1539
|
-
case "com.amazonaws.qconnect#ConflictException":
|
|
1540
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1541
|
-
case "ResourceNotFoundException":
|
|
1542
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
1543
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "ServiceQuotaExceededException":
|
|
1545
|
-
case "com.amazonaws.qconnect#ServiceQuotaExceededException":
|
|
1546
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "ValidationException":
|
|
1548
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
1549
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1550
|
-
default:
|
|
1551
|
-
const parsedBody = parsedOutput.body;
|
|
1552
|
-
return throwDefaultError({
|
|
1553
|
-
output,
|
|
1554
|
-
parsedBody,
|
|
1555
|
-
errorCode
|
|
1556
|
-
});
|
|
1557
|
-
}
|
|
1558
|
-
}, "de_CreateAssistantAssociationCommandError");
|
|
1559
1500
|
var de_CreateContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1560
1501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1561
|
-
return
|
|
1502
|
+
return de_CommandError(output, context);
|
|
1562
1503
|
}
|
|
1563
1504
|
const contents = (0, import_smithy_client.map)({
|
|
1564
1505
|
$metadata: deserializeMetadata(output)
|
|
@@ -1570,40 +1511,9 @@ var de_CreateContentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1570
1511
|
Object.assign(contents, doc);
|
|
1571
1512
|
return contents;
|
|
1572
1513
|
}, "de_CreateContentCommand");
|
|
1573
|
-
var de_CreateContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1574
|
-
const parsedOutput = {
|
|
1575
|
-
...output,
|
|
1576
|
-
body: await parseErrorBody(output.body, context)
|
|
1577
|
-
};
|
|
1578
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1579
|
-
switch (errorCode) {
|
|
1580
|
-
case "AccessDeniedException":
|
|
1581
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
1582
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1583
|
-
case "ConflictException":
|
|
1584
|
-
case "com.amazonaws.qconnect#ConflictException":
|
|
1585
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "ResourceNotFoundException":
|
|
1587
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
1588
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "ServiceQuotaExceededException":
|
|
1590
|
-
case "com.amazonaws.qconnect#ServiceQuotaExceededException":
|
|
1591
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "ValidationException":
|
|
1593
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
1594
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1595
|
-
default:
|
|
1596
|
-
const parsedBody = parsedOutput.body;
|
|
1597
|
-
return throwDefaultError({
|
|
1598
|
-
output,
|
|
1599
|
-
parsedBody,
|
|
1600
|
-
errorCode
|
|
1601
|
-
});
|
|
1602
|
-
}
|
|
1603
|
-
}, "de_CreateContentCommandError");
|
|
1604
1514
|
var de_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1605
1515
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1606
|
-
return
|
|
1516
|
+
return de_CommandError(output, context);
|
|
1607
1517
|
}
|
|
1608
1518
|
const contents = (0, import_smithy_client.map)({
|
|
1609
1519
|
$metadata: deserializeMetadata(output)
|
|
@@ -1615,37 +1525,9 @@ var de_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1615
1525
|
Object.assign(contents, doc);
|
|
1616
1526
|
return contents;
|
|
1617
1527
|
}, "de_CreateKnowledgeBaseCommand");
|
|
1618
|
-
var de_CreateKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1619
|
-
const parsedOutput = {
|
|
1620
|
-
...output,
|
|
1621
|
-
body: await parseErrorBody(output.body, context)
|
|
1622
|
-
};
|
|
1623
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
|
-
switch (errorCode) {
|
|
1625
|
-
case "AccessDeniedException":
|
|
1626
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
1627
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "ConflictException":
|
|
1629
|
-
case "com.amazonaws.qconnect#ConflictException":
|
|
1630
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "ServiceQuotaExceededException":
|
|
1632
|
-
case "com.amazonaws.qconnect#ServiceQuotaExceededException":
|
|
1633
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1634
|
-
case "ValidationException":
|
|
1635
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
1636
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1637
|
-
default:
|
|
1638
|
-
const parsedBody = parsedOutput.body;
|
|
1639
|
-
return throwDefaultError({
|
|
1640
|
-
output,
|
|
1641
|
-
parsedBody,
|
|
1642
|
-
errorCode
|
|
1643
|
-
});
|
|
1644
|
-
}
|
|
1645
|
-
}, "de_CreateKnowledgeBaseCommandError");
|
|
1646
1528
|
var de_CreateQuickResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1647
1529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1648
|
-
return
|
|
1530
|
+
return de_CommandError(output, context);
|
|
1649
1531
|
}
|
|
1650
1532
|
const contents = (0, import_smithy_client.map)({
|
|
1651
1533
|
$metadata: deserializeMetadata(output)
|
|
@@ -1657,40 +1539,9 @@ var de_CreateQuickResponseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1657
1539
|
Object.assign(contents, doc);
|
|
1658
1540
|
return contents;
|
|
1659
1541
|
}, "de_CreateQuickResponseCommand");
|
|
1660
|
-
var de_CreateQuickResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1661
|
-
const parsedOutput = {
|
|
1662
|
-
...output,
|
|
1663
|
-
body: await parseErrorBody(output.body, context)
|
|
1664
|
-
};
|
|
1665
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1666
|
-
switch (errorCode) {
|
|
1667
|
-
case "AccessDeniedException":
|
|
1668
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
1669
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1670
|
-
case "ConflictException":
|
|
1671
|
-
case "com.amazonaws.qconnect#ConflictException":
|
|
1672
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1673
|
-
case "ResourceNotFoundException":
|
|
1674
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
1675
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1676
|
-
case "ServiceQuotaExceededException":
|
|
1677
|
-
case "com.amazonaws.qconnect#ServiceQuotaExceededException":
|
|
1678
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1679
|
-
case "ValidationException":
|
|
1680
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
1681
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1682
|
-
default:
|
|
1683
|
-
const parsedBody = parsedOutput.body;
|
|
1684
|
-
return throwDefaultError({
|
|
1685
|
-
output,
|
|
1686
|
-
parsedBody,
|
|
1687
|
-
errorCode
|
|
1688
|
-
});
|
|
1689
|
-
}
|
|
1690
|
-
}, "de_CreateQuickResponseCommandError");
|
|
1691
1542
|
var de_CreateSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1692
1543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1693
|
-
return
|
|
1544
|
+
return de_CommandError(output, context);
|
|
1694
1545
|
}
|
|
1695
1546
|
const contents = (0, import_smithy_client.map)({
|
|
1696
1547
|
$metadata: deserializeMetadata(output)
|
|
@@ -1702,34 +1553,9 @@ var de_CreateSessionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1702
1553
|
Object.assign(contents, doc);
|
|
1703
1554
|
return contents;
|
|
1704
1555
|
}, "de_CreateSessionCommand");
|
|
1705
|
-
var de_CreateSessionCommandError = /* @__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 "ConflictException":
|
|
1713
|
-
case "com.amazonaws.qconnect#ConflictException":
|
|
1714
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1715
|
-
case "ResourceNotFoundException":
|
|
1716
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
1717
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1718
|
-
case "ValidationException":
|
|
1719
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
1720
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1721
|
-
default:
|
|
1722
|
-
const parsedBody = parsedOutput.body;
|
|
1723
|
-
return throwDefaultError({
|
|
1724
|
-
output,
|
|
1725
|
-
parsedBody,
|
|
1726
|
-
errorCode
|
|
1727
|
-
});
|
|
1728
|
-
}
|
|
1729
|
-
}, "de_CreateSessionCommandError");
|
|
1730
1556
|
var de_DeleteAssistantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1731
1557
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1732
|
-
return
|
|
1558
|
+
return de_CommandError(output, context);
|
|
1733
1559
|
}
|
|
1734
1560
|
const contents = (0, import_smithy_client.map)({
|
|
1735
1561
|
$metadata: deserializeMetadata(output)
|
|
@@ -1737,34 +1563,9 @@ var de_DeleteAssistantCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1737
1563
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1738
1564
|
return contents;
|
|
1739
1565
|
}, "de_DeleteAssistantCommand");
|
|
1740
|
-
var de_DeleteAssistantCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1741
|
-
const parsedOutput = {
|
|
1742
|
-
...output,
|
|
1743
|
-
body: await parseErrorBody(output.body, context)
|
|
1744
|
-
};
|
|
1745
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1746
|
-
switch (errorCode) {
|
|
1747
|
-
case "AccessDeniedException":
|
|
1748
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
1749
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1750
|
-
case "ResourceNotFoundException":
|
|
1751
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
1752
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1753
|
-
case "ValidationException":
|
|
1754
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
1755
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1756
|
-
default:
|
|
1757
|
-
const parsedBody = parsedOutput.body;
|
|
1758
|
-
return throwDefaultError({
|
|
1759
|
-
output,
|
|
1760
|
-
parsedBody,
|
|
1761
|
-
errorCode
|
|
1762
|
-
});
|
|
1763
|
-
}
|
|
1764
|
-
}, "de_DeleteAssistantCommandError");
|
|
1765
1566
|
var de_DeleteAssistantAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1766
1567
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1767
|
-
return
|
|
1568
|
+
return de_CommandError(output, context);
|
|
1768
1569
|
}
|
|
1769
1570
|
const contents = (0, import_smithy_client.map)({
|
|
1770
1571
|
$metadata: deserializeMetadata(output)
|
|
@@ -1772,34 +1573,9 @@ var de_DeleteAssistantAssociationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1772
1573
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1773
1574
|
return contents;
|
|
1774
1575
|
}, "de_DeleteAssistantAssociationCommand");
|
|
1775
|
-
var de_DeleteAssistantAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1776
|
-
const parsedOutput = {
|
|
1777
|
-
...output,
|
|
1778
|
-
body: await parseErrorBody(output.body, context)
|
|
1779
|
-
};
|
|
1780
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1781
|
-
switch (errorCode) {
|
|
1782
|
-
case "AccessDeniedException":
|
|
1783
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
1784
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1785
|
-
case "ResourceNotFoundException":
|
|
1786
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
1787
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1788
|
-
case "ValidationException":
|
|
1789
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
1790
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1791
|
-
default:
|
|
1792
|
-
const parsedBody = parsedOutput.body;
|
|
1793
|
-
return throwDefaultError({
|
|
1794
|
-
output,
|
|
1795
|
-
parsedBody,
|
|
1796
|
-
errorCode
|
|
1797
|
-
});
|
|
1798
|
-
}
|
|
1799
|
-
}, "de_DeleteAssistantAssociationCommandError");
|
|
1800
1576
|
var de_DeleteContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1801
1577
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1802
|
-
return
|
|
1578
|
+
return de_CommandError(output, context);
|
|
1803
1579
|
}
|
|
1804
1580
|
const contents = (0, import_smithy_client.map)({
|
|
1805
1581
|
$metadata: deserializeMetadata(output)
|
|
@@ -1807,34 +1583,9 @@ var de_DeleteContentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1807
1583
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1808
1584
|
return contents;
|
|
1809
1585
|
}, "de_DeleteContentCommand");
|
|
1810
|
-
var de_DeleteContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1811
|
-
const parsedOutput = {
|
|
1812
|
-
...output,
|
|
1813
|
-
body: await parseErrorBody(output.body, context)
|
|
1814
|
-
};
|
|
1815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
|
-
switch (errorCode) {
|
|
1817
|
-
case "AccessDeniedException":
|
|
1818
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
1819
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1820
|
-
case "ResourceNotFoundException":
|
|
1821
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
1822
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "ValidationException":
|
|
1824
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
1825
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1826
|
-
default:
|
|
1827
|
-
const parsedBody = parsedOutput.body;
|
|
1828
|
-
return throwDefaultError({
|
|
1829
|
-
output,
|
|
1830
|
-
parsedBody,
|
|
1831
|
-
errorCode
|
|
1832
|
-
});
|
|
1833
|
-
}
|
|
1834
|
-
}, "de_DeleteContentCommandError");
|
|
1835
1586
|
var de_DeleteImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1836
1587
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1837
|
-
return
|
|
1588
|
+
return de_CommandError(output, context);
|
|
1838
1589
|
}
|
|
1839
1590
|
const contents = (0, import_smithy_client.map)({
|
|
1840
1591
|
$metadata: deserializeMetadata(output)
|
|
@@ -1842,37 +1593,9 @@ var de_DeleteImportJobCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1842
1593
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1843
1594
|
return contents;
|
|
1844
1595
|
}, "de_DeleteImportJobCommand");
|
|
1845
|
-
var de_DeleteImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1846
|
-
const parsedOutput = {
|
|
1847
|
-
...output,
|
|
1848
|
-
body: await parseErrorBody(output.body, context)
|
|
1849
|
-
};
|
|
1850
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1851
|
-
switch (errorCode) {
|
|
1852
|
-
case "AccessDeniedException":
|
|
1853
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
1854
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "ConflictException":
|
|
1856
|
-
case "com.amazonaws.qconnect#ConflictException":
|
|
1857
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1858
|
-
case "ResourceNotFoundException":
|
|
1859
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
1860
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1861
|
-
case "ValidationException":
|
|
1862
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
1863
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1864
|
-
default:
|
|
1865
|
-
const parsedBody = parsedOutput.body;
|
|
1866
|
-
return throwDefaultError({
|
|
1867
|
-
output,
|
|
1868
|
-
parsedBody,
|
|
1869
|
-
errorCode
|
|
1870
|
-
});
|
|
1871
|
-
}
|
|
1872
|
-
}, "de_DeleteImportJobCommandError");
|
|
1873
1596
|
var de_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1874
1597
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1875
|
-
return
|
|
1598
|
+
return de_CommandError(output, context);
|
|
1876
1599
|
}
|
|
1877
1600
|
const contents = (0, import_smithy_client.map)({
|
|
1878
1601
|
$metadata: deserializeMetadata(output)
|
|
@@ -1880,37 +1603,9 @@ var de_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1880
1603
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1881
1604
|
return contents;
|
|
1882
1605
|
}, "de_DeleteKnowledgeBaseCommand");
|
|
1883
|
-
var de_DeleteKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1884
|
-
const parsedOutput = {
|
|
1885
|
-
...output,
|
|
1886
|
-
body: await parseErrorBody(output.body, context)
|
|
1887
|
-
};
|
|
1888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1889
|
-
switch (errorCode) {
|
|
1890
|
-
case "AccessDeniedException":
|
|
1891
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
1892
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1893
|
-
case "ConflictException":
|
|
1894
|
-
case "com.amazonaws.qconnect#ConflictException":
|
|
1895
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1896
|
-
case "ResourceNotFoundException":
|
|
1897
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
1898
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1899
|
-
case "ValidationException":
|
|
1900
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
1901
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1902
|
-
default:
|
|
1903
|
-
const parsedBody = parsedOutput.body;
|
|
1904
|
-
return throwDefaultError({
|
|
1905
|
-
output,
|
|
1906
|
-
parsedBody,
|
|
1907
|
-
errorCode
|
|
1908
|
-
});
|
|
1909
|
-
}
|
|
1910
|
-
}, "de_DeleteKnowledgeBaseCommandError");
|
|
1911
1606
|
var de_DeleteQuickResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1912
1607
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1913
|
-
return
|
|
1608
|
+
return de_CommandError(output, context);
|
|
1914
1609
|
}
|
|
1915
1610
|
const contents = (0, import_smithy_client.map)({
|
|
1916
1611
|
$metadata: deserializeMetadata(output)
|
|
@@ -1918,34 +1613,9 @@ var de_DeleteQuickResponseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1918
1613
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1919
1614
|
return contents;
|
|
1920
1615
|
}, "de_DeleteQuickResponseCommand");
|
|
1921
|
-
var de_DeleteQuickResponseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1922
|
-
const parsedOutput = {
|
|
1923
|
-
...output,
|
|
1924
|
-
body: await parseErrorBody(output.body, context)
|
|
1925
|
-
};
|
|
1926
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1927
|
-
switch (errorCode) {
|
|
1928
|
-
case "AccessDeniedException":
|
|
1929
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
1930
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1931
|
-
case "ResourceNotFoundException":
|
|
1932
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
1933
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1934
|
-
case "ValidationException":
|
|
1935
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
1936
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1937
|
-
default:
|
|
1938
|
-
const parsedBody = parsedOutput.body;
|
|
1939
|
-
return throwDefaultError({
|
|
1940
|
-
output,
|
|
1941
|
-
parsedBody,
|
|
1942
|
-
errorCode
|
|
1943
|
-
});
|
|
1944
|
-
}
|
|
1945
|
-
}, "de_DeleteQuickResponseCommandError");
|
|
1946
1616
|
var de_GetAssistantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1947
1617
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1948
|
-
return
|
|
1618
|
+
return de_CommandError(output, context);
|
|
1949
1619
|
}
|
|
1950
1620
|
const contents = (0, import_smithy_client.map)({
|
|
1951
1621
|
$metadata: deserializeMetadata(output)
|
|
@@ -1957,34 +1627,9 @@ var de_GetAssistantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1957
1627
|
Object.assign(contents, doc);
|
|
1958
1628
|
return contents;
|
|
1959
1629
|
}, "de_GetAssistantCommand");
|
|
1960
|
-
var de_GetAssistantCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1961
|
-
const parsedOutput = {
|
|
1962
|
-
...output,
|
|
1963
|
-
body: await parseErrorBody(output.body, context)
|
|
1964
|
-
};
|
|
1965
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1966
|
-
switch (errorCode) {
|
|
1967
|
-
case "AccessDeniedException":
|
|
1968
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
1969
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "ResourceNotFoundException":
|
|
1971
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
1972
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1973
|
-
case "ValidationException":
|
|
1974
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
1975
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1976
|
-
default:
|
|
1977
|
-
const parsedBody = parsedOutput.body;
|
|
1978
|
-
return throwDefaultError({
|
|
1979
|
-
output,
|
|
1980
|
-
parsedBody,
|
|
1981
|
-
errorCode
|
|
1982
|
-
});
|
|
1983
|
-
}
|
|
1984
|
-
}, "de_GetAssistantCommandError");
|
|
1985
1630
|
var de_GetAssistantAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1986
1631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1987
|
-
return
|
|
1632
|
+
return de_CommandError(output, context);
|
|
1988
1633
|
}
|
|
1989
1634
|
const contents = (0, import_smithy_client.map)({
|
|
1990
1635
|
$metadata: deserializeMetadata(output)
|
|
@@ -1996,34 +1641,9 @@ var de_GetAssistantAssociationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1996
1641
|
Object.assign(contents, doc);
|
|
1997
1642
|
return contents;
|
|
1998
1643
|
}, "de_GetAssistantAssociationCommand");
|
|
1999
|
-
var de_GetAssistantAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2000
|
-
const parsedOutput = {
|
|
2001
|
-
...output,
|
|
2002
|
-
body: await parseErrorBody(output.body, context)
|
|
2003
|
-
};
|
|
2004
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2005
|
-
switch (errorCode) {
|
|
2006
|
-
case "AccessDeniedException":
|
|
2007
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2008
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2009
|
-
case "ResourceNotFoundException":
|
|
2010
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2011
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2012
|
-
case "ValidationException":
|
|
2013
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2014
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2015
|
-
default:
|
|
2016
|
-
const parsedBody = parsedOutput.body;
|
|
2017
|
-
return throwDefaultError({
|
|
2018
|
-
output,
|
|
2019
|
-
parsedBody,
|
|
2020
|
-
errorCode
|
|
2021
|
-
});
|
|
2022
|
-
}
|
|
2023
|
-
}, "de_GetAssistantAssociationCommandError");
|
|
2024
1644
|
var de_GetContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2025
1645
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2026
|
-
return
|
|
1646
|
+
return de_CommandError(output, context);
|
|
2027
1647
|
}
|
|
2028
1648
|
const contents = (0, import_smithy_client.map)({
|
|
2029
1649
|
$metadata: deserializeMetadata(output)
|
|
@@ -2035,34 +1655,9 @@ var de_GetContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2035
1655
|
Object.assign(contents, doc);
|
|
2036
1656
|
return contents;
|
|
2037
1657
|
}, "de_GetContentCommand");
|
|
2038
|
-
var de_GetContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2039
|
-
const parsedOutput = {
|
|
2040
|
-
...output,
|
|
2041
|
-
body: await parseErrorBody(output.body, context)
|
|
2042
|
-
};
|
|
2043
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2044
|
-
switch (errorCode) {
|
|
2045
|
-
case "AccessDeniedException":
|
|
2046
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2047
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2048
|
-
case "ResourceNotFoundException":
|
|
2049
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2050
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2051
|
-
case "ValidationException":
|
|
2052
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2053
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2054
|
-
default:
|
|
2055
|
-
const parsedBody = parsedOutput.body;
|
|
2056
|
-
return throwDefaultError({
|
|
2057
|
-
output,
|
|
2058
|
-
parsedBody,
|
|
2059
|
-
errorCode
|
|
2060
|
-
});
|
|
2061
|
-
}
|
|
2062
|
-
}, "de_GetContentCommandError");
|
|
2063
1658
|
var de_GetContentSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2064
1659
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2065
|
-
return
|
|
1660
|
+
return de_CommandError(output, context);
|
|
2066
1661
|
}
|
|
2067
1662
|
const contents = (0, import_smithy_client.map)({
|
|
2068
1663
|
$metadata: deserializeMetadata(output)
|
|
@@ -2074,34 +1669,9 @@ var de_GetContentSummaryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2074
1669
|
Object.assign(contents, doc);
|
|
2075
1670
|
return contents;
|
|
2076
1671
|
}, "de_GetContentSummaryCommand");
|
|
2077
|
-
var de_GetContentSummaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2078
|
-
const parsedOutput = {
|
|
2079
|
-
...output,
|
|
2080
|
-
body: await parseErrorBody(output.body, context)
|
|
2081
|
-
};
|
|
2082
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2083
|
-
switch (errorCode) {
|
|
2084
|
-
case "AccessDeniedException":
|
|
2085
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2086
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2087
|
-
case "ResourceNotFoundException":
|
|
2088
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2089
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2090
|
-
case "ValidationException":
|
|
2091
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2092
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2093
|
-
default:
|
|
2094
|
-
const parsedBody = parsedOutput.body;
|
|
2095
|
-
return throwDefaultError({
|
|
2096
|
-
output,
|
|
2097
|
-
parsedBody,
|
|
2098
|
-
errorCode
|
|
2099
|
-
});
|
|
2100
|
-
}
|
|
2101
|
-
}, "de_GetContentSummaryCommandError");
|
|
2102
1672
|
var de_GetImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2103
1673
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2104
|
-
return
|
|
1674
|
+
return de_CommandError(output, context);
|
|
2105
1675
|
}
|
|
2106
1676
|
const contents = (0, import_smithy_client.map)({
|
|
2107
1677
|
$metadata: deserializeMetadata(output)
|
|
@@ -2113,34 +1683,9 @@ var de_GetImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2113
1683
|
Object.assign(contents, doc);
|
|
2114
1684
|
return contents;
|
|
2115
1685
|
}, "de_GetImportJobCommand");
|
|
2116
|
-
var de_GetImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2117
|
-
const parsedOutput = {
|
|
2118
|
-
...output,
|
|
2119
|
-
body: await parseErrorBody(output.body, context)
|
|
2120
|
-
};
|
|
2121
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2122
|
-
switch (errorCode) {
|
|
2123
|
-
case "AccessDeniedException":
|
|
2124
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2125
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2126
|
-
case "ResourceNotFoundException":
|
|
2127
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2128
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2129
|
-
case "ValidationException":
|
|
2130
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2131
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2132
|
-
default:
|
|
2133
|
-
const parsedBody = parsedOutput.body;
|
|
2134
|
-
return throwDefaultError({
|
|
2135
|
-
output,
|
|
2136
|
-
parsedBody,
|
|
2137
|
-
errorCode
|
|
2138
|
-
});
|
|
2139
|
-
}
|
|
2140
|
-
}, "de_GetImportJobCommandError");
|
|
2141
1686
|
var de_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2142
1687
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2143
|
-
return
|
|
1688
|
+
return de_CommandError(output, context);
|
|
2144
1689
|
}
|
|
2145
1690
|
const contents = (0, import_smithy_client.map)({
|
|
2146
1691
|
$metadata: deserializeMetadata(output)
|
|
@@ -2152,34 +1697,9 @@ var de_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2152
1697
|
Object.assign(contents, doc);
|
|
2153
1698
|
return contents;
|
|
2154
1699
|
}, "de_GetKnowledgeBaseCommand");
|
|
2155
|
-
var de_GetKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2156
|
-
const parsedOutput = {
|
|
2157
|
-
...output,
|
|
2158
|
-
body: await parseErrorBody(output.body, context)
|
|
2159
|
-
};
|
|
2160
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2161
|
-
switch (errorCode) {
|
|
2162
|
-
case "AccessDeniedException":
|
|
2163
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2164
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2165
|
-
case "ResourceNotFoundException":
|
|
2166
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2167
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2168
|
-
case "ValidationException":
|
|
2169
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2170
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2171
|
-
default:
|
|
2172
|
-
const parsedBody = parsedOutput.body;
|
|
2173
|
-
return throwDefaultError({
|
|
2174
|
-
output,
|
|
2175
|
-
parsedBody,
|
|
2176
|
-
errorCode
|
|
2177
|
-
});
|
|
2178
|
-
}
|
|
2179
|
-
}, "de_GetKnowledgeBaseCommandError");
|
|
2180
1700
|
var de_GetQuickResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2181
1701
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2182
|
-
return
|
|
1702
|
+
return de_CommandError(output, context);
|
|
2183
1703
|
}
|
|
2184
1704
|
const contents = (0, import_smithy_client.map)({
|
|
2185
1705
|
$metadata: deserializeMetadata(output)
|
|
@@ -2191,74 +1711,24 @@ var de_GetQuickResponseCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2191
1711
|
Object.assign(contents, doc);
|
|
2192
1712
|
return contents;
|
|
2193
1713
|
}, "de_GetQuickResponseCommand");
|
|
2194
|
-
var
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
body: await parseErrorBody(output.body, context)
|
|
2198
|
-
};
|
|
2199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2200
|
-
switch (errorCode) {
|
|
2201
|
-
case "AccessDeniedException":
|
|
2202
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2203
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2204
|
-
case "ResourceNotFoundException":
|
|
2205
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2206
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2207
|
-
case "ValidationException":
|
|
2208
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2209
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2210
|
-
default:
|
|
2211
|
-
const parsedBody = parsedOutput.body;
|
|
2212
|
-
return throwDefaultError({
|
|
2213
|
-
output,
|
|
2214
|
-
parsedBody,
|
|
2215
|
-
errorCode
|
|
2216
|
-
});
|
|
2217
|
-
}
|
|
2218
|
-
}, "de_GetQuickResponseCommandError");
|
|
2219
|
-
var de_GetRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2220
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2221
|
-
return de_GetRecommendationsCommandError(output, context);
|
|
2222
|
-
}
|
|
2223
|
-
const contents = (0, import_smithy_client.map)({
|
|
2224
|
-
$metadata: deserializeMetadata(output)
|
|
2225
|
-
});
|
|
2226
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2227
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2228
|
-
recommendations: (_) => de_RecommendationList(_, context),
|
|
2229
|
-
triggers: import_smithy_client._json
|
|
2230
|
-
});
|
|
2231
|
-
Object.assign(contents, doc);
|
|
2232
|
-
return contents;
|
|
2233
|
-
}, "de_GetRecommendationsCommand");
|
|
2234
|
-
var de_GetRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2235
|
-
const parsedOutput = {
|
|
2236
|
-
...output,
|
|
2237
|
-
body: await parseErrorBody(output.body, context)
|
|
2238
|
-
};
|
|
2239
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2240
|
-
switch (errorCode) {
|
|
2241
|
-
case "AccessDeniedException":
|
|
2242
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2243
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "ResourceNotFoundException":
|
|
2245
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2246
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "ValidationException":
|
|
2248
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2249
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2250
|
-
default:
|
|
2251
|
-
const parsedBody = parsedOutput.body;
|
|
2252
|
-
return throwDefaultError({
|
|
2253
|
-
output,
|
|
2254
|
-
parsedBody,
|
|
2255
|
-
errorCode
|
|
2256
|
-
});
|
|
1714
|
+
var de_GetRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1715
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1716
|
+
return de_CommandError(output, context);
|
|
2257
1717
|
}
|
|
2258
|
-
|
|
1718
|
+
const contents = (0, import_smithy_client.map)({
|
|
1719
|
+
$metadata: deserializeMetadata(output)
|
|
1720
|
+
});
|
|
1721
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1722
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1723
|
+
recommendations: (_) => de_RecommendationList(_, context),
|
|
1724
|
+
triggers: import_smithy_client._json
|
|
1725
|
+
});
|
|
1726
|
+
Object.assign(contents, doc);
|
|
1727
|
+
return contents;
|
|
1728
|
+
}, "de_GetRecommendationsCommand");
|
|
2259
1729
|
var de_GetSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2260
1730
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2261
|
-
return
|
|
1731
|
+
return de_CommandError(output, context);
|
|
2262
1732
|
}
|
|
2263
1733
|
const contents = (0, import_smithy_client.map)({
|
|
2264
1734
|
$metadata: deserializeMetadata(output)
|
|
@@ -2270,34 +1740,9 @@ var de_GetSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2270
1740
|
Object.assign(contents, doc);
|
|
2271
1741
|
return contents;
|
|
2272
1742
|
}, "de_GetSessionCommand");
|
|
2273
|
-
var de_GetSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2274
|
-
const parsedOutput = {
|
|
2275
|
-
...output,
|
|
2276
|
-
body: await parseErrorBody(output.body, context)
|
|
2277
|
-
};
|
|
2278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2279
|
-
switch (errorCode) {
|
|
2280
|
-
case "AccessDeniedException":
|
|
2281
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2282
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2283
|
-
case "ResourceNotFoundException":
|
|
2284
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2285
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2286
|
-
case "ValidationException":
|
|
2287
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2288
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2289
|
-
default:
|
|
2290
|
-
const parsedBody = parsedOutput.body;
|
|
2291
|
-
return throwDefaultError({
|
|
2292
|
-
output,
|
|
2293
|
-
parsedBody,
|
|
2294
|
-
errorCode
|
|
2295
|
-
});
|
|
2296
|
-
}
|
|
2297
|
-
}, "de_GetSessionCommandError");
|
|
2298
1743
|
var de_ListAssistantAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2299
1744
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2300
|
-
return
|
|
1745
|
+
return de_CommandError(output, context);
|
|
2301
1746
|
}
|
|
2302
1747
|
const contents = (0, import_smithy_client.map)({
|
|
2303
1748
|
$metadata: deserializeMetadata(output)
|
|
@@ -2310,34 +1755,9 @@ var de_ListAssistantAssociationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2310
1755
|
Object.assign(contents, doc);
|
|
2311
1756
|
return contents;
|
|
2312
1757
|
}, "de_ListAssistantAssociationsCommand");
|
|
2313
|
-
var de_ListAssistantAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2314
|
-
const parsedOutput = {
|
|
2315
|
-
...output,
|
|
2316
|
-
body: await parseErrorBody(output.body, context)
|
|
2317
|
-
};
|
|
2318
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2319
|
-
switch (errorCode) {
|
|
2320
|
-
case "AccessDeniedException":
|
|
2321
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2322
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2323
|
-
case "ResourceNotFoundException":
|
|
2324
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2325
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2326
|
-
case "ValidationException":
|
|
2327
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2328
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2329
|
-
default:
|
|
2330
|
-
const parsedBody = parsedOutput.body;
|
|
2331
|
-
return throwDefaultError({
|
|
2332
|
-
output,
|
|
2333
|
-
parsedBody,
|
|
2334
|
-
errorCode
|
|
2335
|
-
});
|
|
2336
|
-
}
|
|
2337
|
-
}, "de_ListAssistantAssociationsCommandError");
|
|
2338
1758
|
var de_ListAssistantsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2339
1759
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2340
|
-
return
|
|
1760
|
+
return de_CommandError(output, context);
|
|
2341
1761
|
}
|
|
2342
1762
|
const contents = (0, import_smithy_client.map)({
|
|
2343
1763
|
$metadata: deserializeMetadata(output)
|
|
@@ -2350,31 +1770,9 @@ var de_ListAssistantsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2350
1770
|
Object.assign(contents, doc);
|
|
2351
1771
|
return contents;
|
|
2352
1772
|
}, "de_ListAssistantsCommand");
|
|
2353
|
-
var de_ListAssistantsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2354
|
-
const parsedOutput = {
|
|
2355
|
-
...output,
|
|
2356
|
-
body: await parseErrorBody(output.body, context)
|
|
2357
|
-
};
|
|
2358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2359
|
-
switch (errorCode) {
|
|
2360
|
-
case "AccessDeniedException":
|
|
2361
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2362
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2363
|
-
case "ValidationException":
|
|
2364
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2365
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2366
|
-
default:
|
|
2367
|
-
const parsedBody = parsedOutput.body;
|
|
2368
|
-
return throwDefaultError({
|
|
2369
|
-
output,
|
|
2370
|
-
parsedBody,
|
|
2371
|
-
errorCode
|
|
2372
|
-
});
|
|
2373
|
-
}
|
|
2374
|
-
}, "de_ListAssistantsCommandError");
|
|
2375
1773
|
var de_ListContentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2376
1774
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2377
|
-
return
|
|
1775
|
+
return de_CommandError(output, context);
|
|
2378
1776
|
}
|
|
2379
1777
|
const contents = (0, import_smithy_client.map)({
|
|
2380
1778
|
$metadata: deserializeMetadata(output)
|
|
@@ -2387,34 +1785,9 @@ var de_ListContentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2387
1785
|
Object.assign(contents, doc);
|
|
2388
1786
|
return contents;
|
|
2389
1787
|
}, "de_ListContentsCommand");
|
|
2390
|
-
var de_ListContentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2391
|
-
const parsedOutput = {
|
|
2392
|
-
...output,
|
|
2393
|
-
body: await parseErrorBody(output.body, context)
|
|
2394
|
-
};
|
|
2395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2396
|
-
switch (errorCode) {
|
|
2397
|
-
case "AccessDeniedException":
|
|
2398
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2399
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2400
|
-
case "ResourceNotFoundException":
|
|
2401
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2402
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2403
|
-
case "ValidationException":
|
|
2404
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2405
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2406
|
-
default:
|
|
2407
|
-
const parsedBody = parsedOutput.body;
|
|
2408
|
-
return throwDefaultError({
|
|
2409
|
-
output,
|
|
2410
|
-
parsedBody,
|
|
2411
|
-
errorCode
|
|
2412
|
-
});
|
|
2413
|
-
}
|
|
2414
|
-
}, "de_ListContentsCommandError");
|
|
2415
1788
|
var de_ListImportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2416
1789
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2417
|
-
return
|
|
1790
|
+
return de_CommandError(output, context);
|
|
2418
1791
|
}
|
|
2419
1792
|
const contents = (0, import_smithy_client.map)({
|
|
2420
1793
|
$metadata: deserializeMetadata(output)
|
|
@@ -2427,31 +1800,9 @@ var de_ListImportJobsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2427
1800
|
Object.assign(contents, doc);
|
|
2428
1801
|
return contents;
|
|
2429
1802
|
}, "de_ListImportJobsCommand");
|
|
2430
|
-
var de_ListImportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2431
|
-
const parsedOutput = {
|
|
2432
|
-
...output,
|
|
2433
|
-
body: await parseErrorBody(output.body, context)
|
|
2434
|
-
};
|
|
2435
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2436
|
-
switch (errorCode) {
|
|
2437
|
-
case "AccessDeniedException":
|
|
2438
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2439
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2440
|
-
case "ValidationException":
|
|
2441
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2442
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2443
|
-
default:
|
|
2444
|
-
const parsedBody = parsedOutput.body;
|
|
2445
|
-
return throwDefaultError({
|
|
2446
|
-
output,
|
|
2447
|
-
parsedBody,
|
|
2448
|
-
errorCode
|
|
2449
|
-
});
|
|
2450
|
-
}
|
|
2451
|
-
}, "de_ListImportJobsCommandError");
|
|
2452
1803
|
var de_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2453
1804
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2454
|
-
return
|
|
1805
|
+
return de_CommandError(output, context);
|
|
2455
1806
|
}
|
|
2456
1807
|
const contents = (0, import_smithy_client.map)({
|
|
2457
1808
|
$metadata: deserializeMetadata(output)
|
|
@@ -2464,31 +1815,9 @@ var de_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2464
1815
|
Object.assign(contents, doc);
|
|
2465
1816
|
return contents;
|
|
2466
1817
|
}, "de_ListKnowledgeBasesCommand");
|
|
2467
|
-
var de_ListKnowledgeBasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2468
|
-
const parsedOutput = {
|
|
2469
|
-
...output,
|
|
2470
|
-
body: await parseErrorBody(output.body, context)
|
|
2471
|
-
};
|
|
2472
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2473
|
-
switch (errorCode) {
|
|
2474
|
-
case "AccessDeniedException":
|
|
2475
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2476
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2477
|
-
case "ValidationException":
|
|
2478
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2479
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2480
|
-
default:
|
|
2481
|
-
const parsedBody = parsedOutput.body;
|
|
2482
|
-
return throwDefaultError({
|
|
2483
|
-
output,
|
|
2484
|
-
parsedBody,
|
|
2485
|
-
errorCode
|
|
2486
|
-
});
|
|
2487
|
-
}
|
|
2488
|
-
}, "de_ListKnowledgeBasesCommandError");
|
|
2489
1818
|
var de_ListQuickResponsesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2490
1819
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2491
|
-
return
|
|
1820
|
+
return de_CommandError(output, context);
|
|
2492
1821
|
}
|
|
2493
1822
|
const contents = (0, import_smithy_client.map)({
|
|
2494
1823
|
$metadata: deserializeMetadata(output)
|
|
@@ -2501,34 +1830,9 @@ var de_ListQuickResponsesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2501
1830
|
Object.assign(contents, doc);
|
|
2502
1831
|
return contents;
|
|
2503
1832
|
}, "de_ListQuickResponsesCommand");
|
|
2504
|
-
var de_ListQuickResponsesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2505
|
-
const parsedOutput = {
|
|
2506
|
-
...output,
|
|
2507
|
-
body: await parseErrorBody(output.body, context)
|
|
2508
|
-
};
|
|
2509
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2510
|
-
switch (errorCode) {
|
|
2511
|
-
case "AccessDeniedException":
|
|
2512
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2513
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2514
|
-
case "ResourceNotFoundException":
|
|
2515
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2516
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2517
|
-
case "ValidationException":
|
|
2518
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2519
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2520
|
-
default:
|
|
2521
|
-
const parsedBody = parsedOutput.body;
|
|
2522
|
-
return throwDefaultError({
|
|
2523
|
-
output,
|
|
2524
|
-
parsedBody,
|
|
2525
|
-
errorCode
|
|
2526
|
-
});
|
|
2527
|
-
}
|
|
2528
|
-
}, "de_ListQuickResponsesCommandError");
|
|
2529
1833
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2530
1834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2531
|
-
return
|
|
1835
|
+
return de_CommandError(output, context);
|
|
2532
1836
|
}
|
|
2533
1837
|
const contents = (0, import_smithy_client.map)({
|
|
2534
1838
|
$metadata: deserializeMetadata(output)
|
|
@@ -2540,28 +1844,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2540
1844
|
Object.assign(contents, doc);
|
|
2541
1845
|
return contents;
|
|
2542
1846
|
}, "de_ListTagsForResourceCommand");
|
|
2543
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2544
|
-
const parsedOutput = {
|
|
2545
|
-
...output,
|
|
2546
|
-
body: await parseErrorBody(output.body, context)
|
|
2547
|
-
};
|
|
2548
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2549
|
-
switch (errorCode) {
|
|
2550
|
-
case "ResourceNotFoundException":
|
|
2551
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2552
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2553
|
-
default:
|
|
2554
|
-
const parsedBody = parsedOutput.body;
|
|
2555
|
-
return throwDefaultError({
|
|
2556
|
-
output,
|
|
2557
|
-
parsedBody,
|
|
2558
|
-
errorCode
|
|
2559
|
-
});
|
|
2560
|
-
}
|
|
2561
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2562
1847
|
var de_NotifyRecommendationsReceivedCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2563
1848
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2564
|
-
return
|
|
1849
|
+
return de_CommandError(output, context);
|
|
2565
1850
|
}
|
|
2566
1851
|
const contents = (0, import_smithy_client.map)({
|
|
2567
1852
|
$metadata: deserializeMetadata(output)
|
|
@@ -2574,34 +1859,9 @@ var de_NotifyRecommendationsReceivedCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2574
1859
|
Object.assign(contents, doc);
|
|
2575
1860
|
return contents;
|
|
2576
1861
|
}, "de_NotifyRecommendationsReceivedCommand");
|
|
2577
|
-
var de_NotifyRecommendationsReceivedCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2578
|
-
const parsedOutput = {
|
|
2579
|
-
...output,
|
|
2580
|
-
body: await parseErrorBody(output.body, context)
|
|
2581
|
-
};
|
|
2582
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2583
|
-
switch (errorCode) {
|
|
2584
|
-
case "AccessDeniedException":
|
|
2585
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2586
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2587
|
-
case "ResourceNotFoundException":
|
|
2588
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2589
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2590
|
-
case "ValidationException":
|
|
2591
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2592
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2593
|
-
default:
|
|
2594
|
-
const parsedBody = parsedOutput.body;
|
|
2595
|
-
return throwDefaultError({
|
|
2596
|
-
output,
|
|
2597
|
-
parsedBody,
|
|
2598
|
-
errorCode
|
|
2599
|
-
});
|
|
2600
|
-
}
|
|
2601
|
-
}, "de_NotifyRecommendationsReceivedCommandError");
|
|
2602
1862
|
var de_PutFeedbackCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2603
1863
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2604
|
-
return
|
|
1864
|
+
return de_CommandError(output, context);
|
|
2605
1865
|
}
|
|
2606
1866
|
const contents = (0, import_smithy_client.map)({
|
|
2607
1867
|
$metadata: deserializeMetadata(output)
|
|
@@ -2617,34 +1877,9 @@ var de_PutFeedbackCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2617
1877
|
Object.assign(contents, doc);
|
|
2618
1878
|
return contents;
|
|
2619
1879
|
}, "de_PutFeedbackCommand");
|
|
2620
|
-
var de_PutFeedbackCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2621
|
-
const parsedOutput = {
|
|
2622
|
-
...output,
|
|
2623
|
-
body: await parseErrorBody(output.body, context)
|
|
2624
|
-
};
|
|
2625
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2626
|
-
switch (errorCode) {
|
|
2627
|
-
case "AccessDeniedException":
|
|
2628
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2629
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2630
|
-
case "ResourceNotFoundException":
|
|
2631
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2632
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2633
|
-
case "ValidationException":
|
|
2634
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2635
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2636
|
-
default:
|
|
2637
|
-
const parsedBody = parsedOutput.body;
|
|
2638
|
-
return throwDefaultError({
|
|
2639
|
-
output,
|
|
2640
|
-
parsedBody,
|
|
2641
|
-
errorCode
|
|
2642
|
-
});
|
|
2643
|
-
}
|
|
2644
|
-
}, "de_PutFeedbackCommandError");
|
|
2645
1880
|
var de_QueryAssistantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2646
1881
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2647
|
-
return
|
|
1882
|
+
return de_CommandError(output, context);
|
|
2648
1883
|
}
|
|
2649
1884
|
const contents = (0, import_smithy_client.map)({
|
|
2650
1885
|
$metadata: deserializeMetadata(output)
|
|
@@ -2655,39 +1890,11 @@ var de_QueryAssistantCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2655
1890
|
results: (_) => de_QueryResultsList(_, context)
|
|
2656
1891
|
});
|
|
2657
1892
|
Object.assign(contents, doc);
|
|
2658
|
-
return contents;
|
|
2659
|
-
}, "de_QueryAssistantCommand");
|
|
2660
|
-
var de_QueryAssistantCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2661
|
-
const parsedOutput = {
|
|
2662
|
-
...output,
|
|
2663
|
-
body: await parseErrorBody(output.body, context)
|
|
2664
|
-
};
|
|
2665
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2666
|
-
switch (errorCode) {
|
|
2667
|
-
case "AccessDeniedException":
|
|
2668
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2669
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2670
|
-
case "RequestTimeoutException":
|
|
2671
|
-
case "com.amazonaws.qconnect#RequestTimeoutException":
|
|
2672
|
-
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
2673
|
-
case "ResourceNotFoundException":
|
|
2674
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2675
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2676
|
-
case "ValidationException":
|
|
2677
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2678
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2679
|
-
default:
|
|
2680
|
-
const parsedBody = parsedOutput.body;
|
|
2681
|
-
return throwDefaultError({
|
|
2682
|
-
output,
|
|
2683
|
-
parsedBody,
|
|
2684
|
-
errorCode
|
|
2685
|
-
});
|
|
2686
|
-
}
|
|
2687
|
-
}, "de_QueryAssistantCommandError");
|
|
1893
|
+
return contents;
|
|
1894
|
+
}, "de_QueryAssistantCommand");
|
|
2688
1895
|
var de_RemoveKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2689
1896
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2690
|
-
return
|
|
1897
|
+
return de_CommandError(output, context);
|
|
2691
1898
|
}
|
|
2692
1899
|
const contents = (0, import_smithy_client.map)({
|
|
2693
1900
|
$metadata: deserializeMetadata(output)
|
|
@@ -2695,34 +1902,9 @@ var de_RemoveKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (out
|
|
|
2695
1902
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2696
1903
|
return contents;
|
|
2697
1904
|
}, "de_RemoveKnowledgeBaseTemplateUriCommand");
|
|
2698
|
-
var de_RemoveKnowledgeBaseTemplateUriCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2699
|
-
const parsedOutput = {
|
|
2700
|
-
...output,
|
|
2701
|
-
body: await parseErrorBody(output.body, context)
|
|
2702
|
-
};
|
|
2703
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2704
|
-
switch (errorCode) {
|
|
2705
|
-
case "AccessDeniedException":
|
|
2706
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2707
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2708
|
-
case "ResourceNotFoundException":
|
|
2709
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2710
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2711
|
-
case "ValidationException":
|
|
2712
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2713
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2714
|
-
default:
|
|
2715
|
-
const parsedBody = parsedOutput.body;
|
|
2716
|
-
return throwDefaultError({
|
|
2717
|
-
output,
|
|
2718
|
-
parsedBody,
|
|
2719
|
-
errorCode
|
|
2720
|
-
});
|
|
2721
|
-
}
|
|
2722
|
-
}, "de_RemoveKnowledgeBaseTemplateUriCommandError");
|
|
2723
1905
|
var de_SearchContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2724
1906
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2725
|
-
return
|
|
1907
|
+
return de_CommandError(output, context);
|
|
2726
1908
|
}
|
|
2727
1909
|
const contents = (0, import_smithy_client.map)({
|
|
2728
1910
|
$metadata: deserializeMetadata(output)
|
|
@@ -2735,34 +1917,9 @@ var de_SearchContentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2735
1917
|
Object.assign(contents, doc);
|
|
2736
1918
|
return contents;
|
|
2737
1919
|
}, "de_SearchContentCommand");
|
|
2738
|
-
var de_SearchContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2739
|
-
const parsedOutput = {
|
|
2740
|
-
...output,
|
|
2741
|
-
body: await parseErrorBody(output.body, context)
|
|
2742
|
-
};
|
|
2743
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2744
|
-
switch (errorCode) {
|
|
2745
|
-
case "AccessDeniedException":
|
|
2746
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2747
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2748
|
-
case "ResourceNotFoundException":
|
|
2749
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2750
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2751
|
-
case "ValidationException":
|
|
2752
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2753
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2754
|
-
default:
|
|
2755
|
-
const parsedBody = parsedOutput.body;
|
|
2756
|
-
return throwDefaultError({
|
|
2757
|
-
output,
|
|
2758
|
-
parsedBody,
|
|
2759
|
-
errorCode
|
|
2760
|
-
});
|
|
2761
|
-
}
|
|
2762
|
-
}, "de_SearchContentCommandError");
|
|
2763
1920
|
var de_SearchQuickResponsesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2764
1921
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2765
|
-
return
|
|
1922
|
+
return de_CommandError(output, context);
|
|
2766
1923
|
}
|
|
2767
1924
|
const contents = (0, import_smithy_client.map)({
|
|
2768
1925
|
$metadata: deserializeMetadata(output)
|
|
@@ -2775,37 +1932,9 @@ var de_SearchQuickResponsesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2775
1932
|
Object.assign(contents, doc);
|
|
2776
1933
|
return contents;
|
|
2777
1934
|
}, "de_SearchQuickResponsesCommand");
|
|
2778
|
-
var de_SearchQuickResponsesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2779
|
-
const parsedOutput = {
|
|
2780
|
-
...output,
|
|
2781
|
-
body: await parseErrorBody(output.body, context)
|
|
2782
|
-
};
|
|
2783
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2784
|
-
switch (errorCode) {
|
|
2785
|
-
case "AccessDeniedException":
|
|
2786
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2787
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2788
|
-
case "RequestTimeoutException":
|
|
2789
|
-
case "com.amazonaws.qconnect#RequestTimeoutException":
|
|
2790
|
-
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
2791
|
-
case "ResourceNotFoundException":
|
|
2792
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2793
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2794
|
-
case "ValidationException":
|
|
2795
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2796
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2797
|
-
default:
|
|
2798
|
-
const parsedBody = parsedOutput.body;
|
|
2799
|
-
return throwDefaultError({
|
|
2800
|
-
output,
|
|
2801
|
-
parsedBody,
|
|
2802
|
-
errorCode
|
|
2803
|
-
});
|
|
2804
|
-
}
|
|
2805
|
-
}, "de_SearchQuickResponsesCommandError");
|
|
2806
1935
|
var de_SearchSessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2807
1936
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2808
|
-
return
|
|
1937
|
+
return de_CommandError(output, context);
|
|
2809
1938
|
}
|
|
2810
1939
|
const contents = (0, import_smithy_client.map)({
|
|
2811
1940
|
$metadata: deserializeMetadata(output)
|
|
@@ -2818,34 +1947,9 @@ var de_SearchSessionsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2818
1947
|
Object.assign(contents, doc);
|
|
2819
1948
|
return contents;
|
|
2820
1949
|
}, "de_SearchSessionsCommand");
|
|
2821
|
-
var de_SearchSessionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2822
|
-
const parsedOutput = {
|
|
2823
|
-
...output,
|
|
2824
|
-
body: await parseErrorBody(output.body, context)
|
|
2825
|
-
};
|
|
2826
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2827
|
-
switch (errorCode) {
|
|
2828
|
-
case "AccessDeniedException":
|
|
2829
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2830
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2831
|
-
case "ResourceNotFoundException":
|
|
2832
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2833
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2834
|
-
case "ValidationException":
|
|
2835
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2836
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2837
|
-
default:
|
|
2838
|
-
const parsedBody = parsedOutput.body;
|
|
2839
|
-
return throwDefaultError({
|
|
2840
|
-
output,
|
|
2841
|
-
parsedBody,
|
|
2842
|
-
errorCode
|
|
2843
|
-
});
|
|
2844
|
-
}
|
|
2845
|
-
}, "de_SearchSessionsCommandError");
|
|
2846
1950
|
var de_StartContentUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2847
1951
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2848
|
-
return
|
|
1952
|
+
return de_CommandError(output, context);
|
|
2849
1953
|
}
|
|
2850
1954
|
const contents = (0, import_smithy_client.map)({
|
|
2851
1955
|
$metadata: deserializeMetadata(output)
|
|
@@ -2860,34 +1964,9 @@ var de_StartContentUploadCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2860
1964
|
Object.assign(contents, doc);
|
|
2861
1965
|
return contents;
|
|
2862
1966
|
}, "de_StartContentUploadCommand");
|
|
2863
|
-
var de_StartContentUploadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2864
|
-
const parsedOutput = {
|
|
2865
|
-
...output,
|
|
2866
|
-
body: await parseErrorBody(output.body, context)
|
|
2867
|
-
};
|
|
2868
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2869
|
-
switch (errorCode) {
|
|
2870
|
-
case "AccessDeniedException":
|
|
2871
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2872
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2873
|
-
case "ResourceNotFoundException":
|
|
2874
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2875
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2876
|
-
case "ValidationException":
|
|
2877
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2878
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2879
|
-
default:
|
|
2880
|
-
const parsedBody = parsedOutput.body;
|
|
2881
|
-
return throwDefaultError({
|
|
2882
|
-
output,
|
|
2883
|
-
parsedBody,
|
|
2884
|
-
errorCode
|
|
2885
|
-
});
|
|
2886
|
-
}
|
|
2887
|
-
}, "de_StartContentUploadCommandError");
|
|
2888
1967
|
var de_StartImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2889
1968
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2890
|
-
return
|
|
1969
|
+
return de_CommandError(output, context);
|
|
2891
1970
|
}
|
|
2892
1971
|
const contents = (0, import_smithy_client.map)({
|
|
2893
1972
|
$metadata: deserializeMetadata(output)
|
|
@@ -2899,40 +1978,9 @@ var de_StartImportJobCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2899
1978
|
Object.assign(contents, doc);
|
|
2900
1979
|
return contents;
|
|
2901
1980
|
}, "de_StartImportJobCommand");
|
|
2902
|
-
var de_StartImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2903
|
-
const parsedOutput = {
|
|
2904
|
-
...output,
|
|
2905
|
-
body: await parseErrorBody(output.body, context)
|
|
2906
|
-
};
|
|
2907
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2908
|
-
switch (errorCode) {
|
|
2909
|
-
case "AccessDeniedException":
|
|
2910
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
2911
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2912
|
-
case "ConflictException":
|
|
2913
|
-
case "com.amazonaws.qconnect#ConflictException":
|
|
2914
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2915
|
-
case "ResourceNotFoundException":
|
|
2916
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2917
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2918
|
-
case "ServiceQuotaExceededException":
|
|
2919
|
-
case "com.amazonaws.qconnect#ServiceQuotaExceededException":
|
|
2920
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2921
|
-
case "ValidationException":
|
|
2922
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
2923
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2924
|
-
default:
|
|
2925
|
-
const parsedBody = parsedOutput.body;
|
|
2926
|
-
return throwDefaultError({
|
|
2927
|
-
output,
|
|
2928
|
-
parsedBody,
|
|
2929
|
-
errorCode
|
|
2930
|
-
});
|
|
2931
|
-
}
|
|
2932
|
-
}, "de_StartImportJobCommandError");
|
|
2933
1981
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2934
1982
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2935
|
-
return
|
|
1983
|
+
return de_CommandError(output, context);
|
|
2936
1984
|
}
|
|
2937
1985
|
const contents = (0, import_smithy_client.map)({
|
|
2938
1986
|
$metadata: deserializeMetadata(output)
|
|
@@ -2940,31 +1988,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2940
1988
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2941
1989
|
return contents;
|
|
2942
1990
|
}, "de_TagResourceCommand");
|
|
2943
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2944
|
-
const parsedOutput = {
|
|
2945
|
-
...output,
|
|
2946
|
-
body: await parseErrorBody(output.body, context)
|
|
2947
|
-
};
|
|
2948
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2949
|
-
switch (errorCode) {
|
|
2950
|
-
case "ResourceNotFoundException":
|
|
2951
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2952
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2953
|
-
case "TooManyTagsException":
|
|
2954
|
-
case "com.amazonaws.qconnect#TooManyTagsException":
|
|
2955
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2956
|
-
default:
|
|
2957
|
-
const parsedBody = parsedOutput.body;
|
|
2958
|
-
return throwDefaultError({
|
|
2959
|
-
output,
|
|
2960
|
-
parsedBody,
|
|
2961
|
-
errorCode
|
|
2962
|
-
});
|
|
2963
|
-
}
|
|
2964
|
-
}, "de_TagResourceCommandError");
|
|
2965
1991
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2966
1992
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2967
|
-
return
|
|
1993
|
+
return de_CommandError(output, context);
|
|
2968
1994
|
}
|
|
2969
1995
|
const contents = (0, import_smithy_client.map)({
|
|
2970
1996
|
$metadata: deserializeMetadata(output)
|
|
@@ -2972,28 +1998,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2972
1998
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2973
1999
|
return contents;
|
|
2974
2000
|
}, "de_UntagResourceCommand");
|
|
2975
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2976
|
-
const parsedOutput = {
|
|
2977
|
-
...output,
|
|
2978
|
-
body: await parseErrorBody(output.body, context)
|
|
2979
|
-
};
|
|
2980
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2981
|
-
switch (errorCode) {
|
|
2982
|
-
case "ResourceNotFoundException":
|
|
2983
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2984
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2985
|
-
default:
|
|
2986
|
-
const parsedBody = parsedOutput.body;
|
|
2987
|
-
return throwDefaultError({
|
|
2988
|
-
output,
|
|
2989
|
-
parsedBody,
|
|
2990
|
-
errorCode
|
|
2991
|
-
});
|
|
2992
|
-
}
|
|
2993
|
-
}, "de_UntagResourceCommandError");
|
|
2994
2001
|
var de_UpdateContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2995
2002
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2996
|
-
return
|
|
2003
|
+
return de_CommandError(output, context);
|
|
2997
2004
|
}
|
|
2998
2005
|
const contents = (0, import_smithy_client.map)({
|
|
2999
2006
|
$metadata: deserializeMetadata(output)
|
|
@@ -3005,37 +2012,9 @@ var de_UpdateContentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3005
2012
|
Object.assign(contents, doc);
|
|
3006
2013
|
return contents;
|
|
3007
2014
|
}, "de_UpdateContentCommand");
|
|
3008
|
-
var de_UpdateContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3009
|
-
const parsedOutput = {
|
|
3010
|
-
...output,
|
|
3011
|
-
body: await parseErrorBody(output.body, context)
|
|
3012
|
-
};
|
|
3013
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3014
|
-
switch (errorCode) {
|
|
3015
|
-
case "AccessDeniedException":
|
|
3016
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
3017
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3018
|
-
case "PreconditionFailedException":
|
|
3019
|
-
case "com.amazonaws.qconnect#PreconditionFailedException":
|
|
3020
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
3021
|
-
case "ResourceNotFoundException":
|
|
3022
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
3023
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3024
|
-
case "ValidationException":
|
|
3025
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
3026
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3027
|
-
default:
|
|
3028
|
-
const parsedBody = parsedOutput.body;
|
|
3029
|
-
return throwDefaultError({
|
|
3030
|
-
output,
|
|
3031
|
-
parsedBody,
|
|
3032
|
-
errorCode
|
|
3033
|
-
});
|
|
3034
|
-
}
|
|
3035
|
-
}, "de_UpdateContentCommandError");
|
|
3036
2015
|
var de_UpdateKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3037
2016
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3038
|
-
return
|
|
2017
|
+
return de_CommandError(output, context);
|
|
3039
2018
|
}
|
|
3040
2019
|
const contents = (0, import_smithy_client.map)({
|
|
3041
2020
|
$metadata: deserializeMetadata(output)
|
|
@@ -3047,34 +2026,9 @@ var de_UpdateKnowledgeBaseTemplateUriCommand = /* @__PURE__ */ __name(async (out
|
|
|
3047
2026
|
Object.assign(contents, doc);
|
|
3048
2027
|
return contents;
|
|
3049
2028
|
}, "de_UpdateKnowledgeBaseTemplateUriCommand");
|
|
3050
|
-
var de_UpdateKnowledgeBaseTemplateUriCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3051
|
-
const parsedOutput = {
|
|
3052
|
-
...output,
|
|
3053
|
-
body: await parseErrorBody(output.body, context)
|
|
3054
|
-
};
|
|
3055
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3056
|
-
switch (errorCode) {
|
|
3057
|
-
case "AccessDeniedException":
|
|
3058
|
-
case "com.amazonaws.qconnect#AccessDeniedException":
|
|
3059
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3060
|
-
case "ResourceNotFoundException":
|
|
3061
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
3062
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3063
|
-
case "ValidationException":
|
|
3064
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
3065
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3066
|
-
default:
|
|
3067
|
-
const parsedBody = parsedOutput.body;
|
|
3068
|
-
return throwDefaultError({
|
|
3069
|
-
output,
|
|
3070
|
-
parsedBody,
|
|
3071
|
-
errorCode
|
|
3072
|
-
});
|
|
3073
|
-
}
|
|
3074
|
-
}, "de_UpdateKnowledgeBaseTemplateUriCommandError");
|
|
3075
2029
|
var de_UpdateQuickResponseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3076
2030
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3077
|
-
return
|
|
2031
|
+
return de_CommandError(output, context);
|
|
3078
2032
|
}
|
|
3079
2033
|
const contents = (0, import_smithy_client.map)({
|
|
3080
2034
|
$metadata: deserializeMetadata(output)
|
|
@@ -3086,7 +2040,7 @@ var de_UpdateQuickResponseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3086
2040
|
Object.assign(contents, doc);
|
|
3087
2041
|
return contents;
|
|
3088
2042
|
}, "de_UpdateQuickResponseCommand");
|
|
3089
|
-
var
|
|
2043
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3090
2044
|
const parsedOutput = {
|
|
3091
2045
|
...output,
|
|
3092
2046
|
body: await parseErrorBody(output.body, context)
|
|
@@ -3099,15 +2053,24 @@ var de_UpdateQuickResponseCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
3099
2053
|
case "ConflictException":
|
|
3100
2054
|
case "com.amazonaws.qconnect#ConflictException":
|
|
3101
2055
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3102
|
-
case "
|
|
3103
|
-
case "com.amazonaws.qconnect#
|
|
3104
|
-
throw await
|
|
3105
|
-
case "ResourceNotFoundException":
|
|
3106
|
-
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
3107
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2056
|
+
case "ServiceQuotaExceededException":
|
|
2057
|
+
case "com.amazonaws.qconnect#ServiceQuotaExceededException":
|
|
2058
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3108
2059
|
case "ValidationException":
|
|
3109
2060
|
case "com.amazonaws.qconnect#ValidationException":
|
|
3110
2061
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2062
|
+
case "ResourceNotFoundException":
|
|
2063
|
+
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
2064
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2065
|
+
case "RequestTimeoutException":
|
|
2066
|
+
case "com.amazonaws.qconnect#RequestTimeoutException":
|
|
2067
|
+
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
2068
|
+
case "TooManyTagsException":
|
|
2069
|
+
case "com.amazonaws.qconnect#TooManyTagsException":
|
|
2070
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2071
|
+
case "PreconditionFailedException":
|
|
2072
|
+
case "com.amazonaws.qconnect#PreconditionFailedException":
|
|
2073
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
3111
2074
|
default:
|
|
3112
2075
|
const parsedBody = parsedOutput.body;
|
|
3113
2076
|
return throwDefaultError({
|
|
@@ -3116,7 +2079,7 @@ var de_UpdateQuickResponseCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
3116
2079
|
errorCode
|
|
3117
2080
|
});
|
|
3118
2081
|
}
|
|
3119
|
-
}, "
|
|
2082
|
+
}, "de_CommandError");
|
|
3120
2083
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(QConnectServiceException);
|
|
3121
2084
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3122
2085
|
const contents = (0, import_smithy_client.map)({});
|