@aws-sdk/client-workdocs 3.658.0 → 3.662.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 CHANGED
@@ -1444,7 +1444,7 @@ var import_core2 = require("@aws-sdk/core");
1444
1444
 
1445
1445
  var se_AbortDocumentVersionUploadCommand = /* @__PURE__ */ __name(async (input, context) => {
1446
1446
  const b = (0, import_core.requestBuilder)(input, context);
1447
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1447
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1448
1448
  [_a]: input[_AT]
1449
1449
  });
1450
1450
  b.bp("/api/v1/documents/{DocumentId}/versions/{VersionId}");
@@ -1456,7 +1456,7 @@ var se_AbortDocumentVersionUploadCommand = /* @__PURE__ */ __name(async (input,
1456
1456
  }, "se_AbortDocumentVersionUploadCommand");
1457
1457
  var se_ActivateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
1458
1458
  const b = (0, import_core.requestBuilder)(input, context);
1459
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1459
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1460
1460
  [_a]: input[_AT]
1461
1461
  });
1462
1462
  b.bp("/api/v1/users/{UserId}/activation");
@@ -1467,7 +1467,7 @@ var se_ActivateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
1467
1467
  }, "se_ActivateUserCommand");
1468
1468
  var se_AddResourcePermissionsCommand = /* @__PURE__ */ __name(async (input, context) => {
1469
1469
  const b = (0, import_core.requestBuilder)(input, context);
1470
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1470
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1471
1471
  "content-type": "application/json",
1472
1472
  [_a]: input[_AT]
1473
1473
  });
@@ -1485,7 +1485,7 @@ var se_AddResourcePermissionsCommand = /* @__PURE__ */ __name(async (input, cont
1485
1485
  }, "se_AddResourcePermissionsCommand");
1486
1486
  var se_CreateCommentCommand = /* @__PURE__ */ __name(async (input, context) => {
1487
1487
  const b = (0, import_core.requestBuilder)(input, context);
1488
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1488
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1489
1489
  "content-type": "application/json",
1490
1490
  [_a]: input[_AT]
1491
1491
  });
@@ -1507,7 +1507,7 @@ var se_CreateCommentCommand = /* @__PURE__ */ __name(async (input, context) => {
1507
1507
  }, "se_CreateCommentCommand");
1508
1508
  var se_CreateCustomMetadataCommand = /* @__PURE__ */ __name(async (input, context) => {
1509
1509
  const b = (0, import_core.requestBuilder)(input, context);
1510
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1510
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1511
1511
  "content-type": "application/json",
1512
1512
  [_a]: input[_AT]
1513
1513
  });
@@ -1527,7 +1527,7 @@ var se_CreateCustomMetadataCommand = /* @__PURE__ */ __name(async (input, contex
1527
1527
  }, "se_CreateCustomMetadataCommand");
1528
1528
  var se_CreateFolderCommand = /* @__PURE__ */ __name(async (input, context) => {
1529
1529
  const b = (0, import_core.requestBuilder)(input, context);
1530
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1530
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1531
1531
  "content-type": "application/json",
1532
1532
  [_a]: input[_AT]
1533
1533
  });
@@ -1544,7 +1544,7 @@ var se_CreateFolderCommand = /* @__PURE__ */ __name(async (input, context) => {
1544
1544
  }, "se_CreateFolderCommand");
1545
1545
  var se_CreateLabelsCommand = /* @__PURE__ */ __name(async (input, context) => {
1546
1546
  const b = (0, import_core.requestBuilder)(input, context);
1547
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1547
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1548
1548
  "content-type": "application/json",
1549
1549
  [_a]: input[_AT]
1550
1550
  });
@@ -1579,7 +1579,7 @@ var se_CreateNotificationSubscriptionCommand = /* @__PURE__ */ __name(async (inp
1579
1579
  }, "se_CreateNotificationSubscriptionCommand");
1580
1580
  var se_CreateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
1581
1581
  const b = (0, import_core.requestBuilder)(input, context);
1582
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1582
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1583
1583
  "content-type": "application/json",
1584
1584
  [_a]: input[_AT]
1585
1585
  });
@@ -1602,7 +1602,7 @@ var se_CreateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
1602
1602
  }, "se_CreateUserCommand");
1603
1603
  var se_DeactivateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
1604
1604
  const b = (0, import_core.requestBuilder)(input, context);
1605
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1605
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1606
1606
  [_a]: input[_AT]
1607
1607
  });
1608
1608
  b.bp("/api/v1/users/{UserId}/activation");
@@ -1613,7 +1613,7 @@ var se_DeactivateUserCommand = /* @__PURE__ */ __name(async (input, context) =>
1613
1613
  }, "se_DeactivateUserCommand");
1614
1614
  var se_DeleteCommentCommand = /* @__PURE__ */ __name(async (input, context) => {
1615
1615
  const b = (0, import_core.requestBuilder)(input, context);
1616
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1616
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1617
1617
  [_a]: input[_AT]
1618
1618
  });
1619
1619
  b.bp("/api/v1/documents/{DocumentId}/versions/{VersionId}/comment/{CommentId}");
@@ -1626,14 +1626,14 @@ var se_DeleteCommentCommand = /* @__PURE__ */ __name(async (input, context) => {
1626
1626
  }, "se_DeleteCommentCommand");
1627
1627
  var se_DeleteCustomMetadataCommand = /* @__PURE__ */ __name(async (input, context) => {
1628
1628
  const b = (0, import_core.requestBuilder)(input, context);
1629
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1629
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1630
1630
  [_a]: input[_AT]
1631
1631
  });
1632
1632
  b.bp("/api/v1/resources/{ResourceId}/customMetadata");
1633
1633
  b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
1634
1634
  const query = (0, import_smithy_client.map)({
1635
1635
  [_vI]: [, input[_VI]],
1636
- [_k]: [() => input.Keys !== void 0, () => (input[_K] || []).map((_entry) => _entry)],
1636
+ [_k]: [() => input.Keys !== void 0, () => input[_K] || []],
1637
1637
  [_dA]: [() => input.DeleteAll !== void 0, () => input[_DA].toString()]
1638
1638
  });
1639
1639
  let body;
@@ -1642,7 +1642,7 @@ var se_DeleteCustomMetadataCommand = /* @__PURE__ */ __name(async (input, contex
1642
1642
  }, "se_DeleteCustomMetadataCommand");
1643
1643
  var se_DeleteDocumentCommand = /* @__PURE__ */ __name(async (input, context) => {
1644
1644
  const b = (0, import_core.requestBuilder)(input, context);
1645
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1645
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1646
1646
  [_a]: input[_AT]
1647
1647
  });
1648
1648
  b.bp("/api/v1/documents/{DocumentId}");
@@ -1653,7 +1653,7 @@ var se_DeleteDocumentCommand = /* @__PURE__ */ __name(async (input, context) =>
1653
1653
  }, "se_DeleteDocumentCommand");
1654
1654
  var se_DeleteDocumentVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
1655
1655
  const b = (0, import_core.requestBuilder)(input, context);
1656
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1656
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1657
1657
  [_a]: input[_AT]
1658
1658
  });
1659
1659
  b.bp("/api/v1/documentVersions/{DocumentId}/versions/{VersionId}");
@@ -1668,7 +1668,7 @@ var se_DeleteDocumentVersionCommand = /* @__PURE__ */ __name(async (input, conte
1668
1668
  }, "se_DeleteDocumentVersionCommand");
1669
1669
  var se_DeleteFolderCommand = /* @__PURE__ */ __name(async (input, context) => {
1670
1670
  const b = (0, import_core.requestBuilder)(input, context);
1671
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1671
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1672
1672
  [_a]: input[_AT]
1673
1673
  });
1674
1674
  b.bp("/api/v1/folders/{FolderId}");
@@ -1679,7 +1679,7 @@ var se_DeleteFolderCommand = /* @__PURE__ */ __name(async (input, context) => {
1679
1679
  }, "se_DeleteFolderCommand");
1680
1680
  var se_DeleteFolderContentsCommand = /* @__PURE__ */ __name(async (input, context) => {
1681
1681
  const b = (0, import_core.requestBuilder)(input, context);
1682
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1682
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1683
1683
  [_a]: input[_AT]
1684
1684
  });
1685
1685
  b.bp("/api/v1/folders/{FolderId}/contents");
@@ -1690,13 +1690,13 @@ var se_DeleteFolderContentsCommand = /* @__PURE__ */ __name(async (input, contex
1690
1690
  }, "se_DeleteFolderContentsCommand");
1691
1691
  var se_DeleteLabelsCommand = /* @__PURE__ */ __name(async (input, context) => {
1692
1692
  const b = (0, import_core.requestBuilder)(input, context);
1693
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1693
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1694
1694
  [_a]: input[_AT]
1695
1695
  });
1696
1696
  b.bp("/api/v1/resources/{ResourceId}/labels");
1697
1697
  b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
1698
1698
  const query = (0, import_smithy_client.map)({
1699
- [_l]: [() => input.Labels !== void 0, () => (input[_L] || []).map((_entry) => _entry)],
1699
+ [_l]: [() => input.Labels !== void 0, () => input[_L] || []],
1700
1700
  [_dA]: [() => input.DeleteAll !== void 0, () => input[_DA].toString()]
1701
1701
  });
1702
1702
  let body;
@@ -1715,7 +1715,7 @@ var se_DeleteNotificationSubscriptionCommand = /* @__PURE__ */ __name(async (inp
1715
1715
  }, "se_DeleteNotificationSubscriptionCommand");
1716
1716
  var se_DeleteUserCommand = /* @__PURE__ */ __name(async (input, context) => {
1717
1717
  const b = (0, import_core.requestBuilder)(input, context);
1718
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1718
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1719
1719
  [_a]: input[_AT]
1720
1720
  });
1721
1721
  b.bp("/api/v1/users/{UserId}");
@@ -1726,7 +1726,7 @@ var se_DeleteUserCommand = /* @__PURE__ */ __name(async (input, context) => {
1726
1726
  }, "se_DeleteUserCommand");
1727
1727
  var se_DescribeActivitiesCommand = /* @__PURE__ */ __name(async (input, context) => {
1728
1728
  const b = (0, import_core.requestBuilder)(input, context);
1729
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1729
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1730
1730
  [_a]: input[_AT]
1731
1731
  });
1732
1732
  b.bp("/api/v1/activities");
@@ -1747,7 +1747,7 @@ var se_DescribeActivitiesCommand = /* @__PURE__ */ __name(async (input, context)
1747
1747
  }, "se_DescribeActivitiesCommand");
1748
1748
  var se_DescribeCommentsCommand = /* @__PURE__ */ __name(async (input, context) => {
1749
1749
  const b = (0, import_core.requestBuilder)(input, context);
1750
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1750
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1751
1751
  [_a]: input[_AT]
1752
1752
  });
1753
1753
  b.bp("/api/v1/documents/{DocumentId}/versions/{VersionId}/comments");
@@ -1763,7 +1763,7 @@ var se_DescribeCommentsCommand = /* @__PURE__ */ __name(async (input, context) =
1763
1763
  }, "se_DescribeCommentsCommand");
1764
1764
  var se_DescribeDocumentVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
1765
1765
  const b = (0, import_core.requestBuilder)(input, context);
1766
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1766
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1767
1767
  [_a]: input[_AT]
1768
1768
  });
1769
1769
  b.bp("/api/v1/documents/{DocumentId}/versions");
@@ -1780,7 +1780,7 @@ var se_DescribeDocumentVersionsCommand = /* @__PURE__ */ __name(async (input, co
1780
1780
  }, "se_DescribeDocumentVersionsCommand");
1781
1781
  var se_DescribeFolderContentsCommand = /* @__PURE__ */ __name(async (input, context) => {
1782
1782
  const b = (0, import_core.requestBuilder)(input, context);
1783
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1783
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1784
1784
  [_a]: input[_AT]
1785
1785
  });
1786
1786
  b.bp("/api/v1/folders/{FolderId}/contents");
@@ -1799,7 +1799,7 @@ var se_DescribeFolderContentsCommand = /* @__PURE__ */ __name(async (input, cont
1799
1799
  }, "se_DescribeFolderContentsCommand");
1800
1800
  var se_DescribeGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
1801
1801
  const b = (0, import_core.requestBuilder)(input, context);
1802
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1802
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1803
1803
  [_a]: input[_AT]
1804
1804
  });
1805
1805
  b.bp("/api/v1/groups");
@@ -1828,7 +1828,7 @@ var se_DescribeNotificationSubscriptionsCommand = /* @__PURE__ */ __name(async (
1828
1828
  }, "se_DescribeNotificationSubscriptionsCommand");
1829
1829
  var se_DescribeResourcePermissionsCommand = /* @__PURE__ */ __name(async (input, context) => {
1830
1830
  const b = (0, import_core.requestBuilder)(input, context);
1831
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1831
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1832
1832
  [_a]: input[_AT]
1833
1833
  });
1834
1834
  b.bp("/api/v1/resources/{ResourceId}/permissions");
@@ -1844,7 +1844,7 @@ var se_DescribeResourcePermissionsCommand = /* @__PURE__ */ __name(async (input,
1844
1844
  }, "se_DescribeResourcePermissionsCommand");
1845
1845
  var se_DescribeRootFoldersCommand = /* @__PURE__ */ __name(async (input, context) => {
1846
1846
  const b = (0, import_core.requestBuilder)(input, context);
1847
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1847
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1848
1848
  [_a]: input[_AT]
1849
1849
  });
1850
1850
  b.bp("/api/v1/me/root");
@@ -1858,7 +1858,7 @@ var se_DescribeRootFoldersCommand = /* @__PURE__ */ __name(async (input, context
1858
1858
  }, "se_DescribeRootFoldersCommand");
1859
1859
  var se_DescribeUsersCommand = /* @__PURE__ */ __name(async (input, context) => {
1860
1860
  const b = (0, import_core.requestBuilder)(input, context);
1861
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1861
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1862
1862
  [_a]: input[_AT]
1863
1863
  });
1864
1864
  b.bp("/api/v1/users");
@@ -1879,7 +1879,7 @@ var se_DescribeUsersCommand = /* @__PURE__ */ __name(async (input, context) => {
1879
1879
  }, "se_DescribeUsersCommand");
1880
1880
  var se_GetCurrentUserCommand = /* @__PURE__ */ __name(async (input, context) => {
1881
1881
  const b = (0, import_core.requestBuilder)(input, context);
1882
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1882
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1883
1883
  [_a]: input[_AT]
1884
1884
  });
1885
1885
  b.bp("/api/v1/me");
@@ -1889,7 +1889,7 @@ var se_GetCurrentUserCommand = /* @__PURE__ */ __name(async (input, context) =>
1889
1889
  }, "se_GetCurrentUserCommand");
1890
1890
  var se_GetDocumentCommand = /* @__PURE__ */ __name(async (input, context) => {
1891
1891
  const b = (0, import_core.requestBuilder)(input, context);
1892
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1892
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1893
1893
  [_a]: input[_AT]
1894
1894
  });
1895
1895
  b.bp("/api/v1/documents/{DocumentId}");
@@ -1903,7 +1903,7 @@ var se_GetDocumentCommand = /* @__PURE__ */ __name(async (input, context) => {
1903
1903
  }, "se_GetDocumentCommand");
1904
1904
  var se_GetDocumentPathCommand = /* @__PURE__ */ __name(async (input, context) => {
1905
1905
  const b = (0, import_core.requestBuilder)(input, context);
1906
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1906
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1907
1907
  [_a]: input[_AT]
1908
1908
  });
1909
1909
  b.bp("/api/v1/documents/{DocumentId}/path");
@@ -1919,7 +1919,7 @@ var se_GetDocumentPathCommand = /* @__PURE__ */ __name(async (input, context) =>
1919
1919
  }, "se_GetDocumentPathCommand");
1920
1920
  var se_GetDocumentVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
1921
1921
  const b = (0, import_core.requestBuilder)(input, context);
1922
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1922
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1923
1923
  [_a]: input[_AT]
1924
1924
  });
1925
1925
  b.bp("/api/v1/documents/{DocumentId}/versions/{VersionId}");
@@ -1935,7 +1935,7 @@ var se_GetDocumentVersionCommand = /* @__PURE__ */ __name(async (input, context)
1935
1935
  }, "se_GetDocumentVersionCommand");
1936
1936
  var se_GetFolderCommand = /* @__PURE__ */ __name(async (input, context) => {
1937
1937
  const b = (0, import_core.requestBuilder)(input, context);
1938
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1938
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1939
1939
  [_a]: input[_AT]
1940
1940
  });
1941
1941
  b.bp("/api/v1/folders/{FolderId}");
@@ -1949,7 +1949,7 @@ var se_GetFolderCommand = /* @__PURE__ */ __name(async (input, context) => {
1949
1949
  }, "se_GetFolderCommand");
1950
1950
  var se_GetFolderPathCommand = /* @__PURE__ */ __name(async (input, context) => {
1951
1951
  const b = (0, import_core.requestBuilder)(input, context);
1952
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1952
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1953
1953
  [_a]: input[_AT]
1954
1954
  });
1955
1955
  b.bp("/api/v1/folders/{FolderId}/path");
@@ -1965,7 +1965,7 @@ var se_GetFolderPathCommand = /* @__PURE__ */ __name(async (input, context) => {
1965
1965
  }, "se_GetFolderPathCommand");
1966
1966
  var se_GetResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
1967
1967
  const b = (0, import_core.requestBuilder)(input, context);
1968
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1968
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1969
1969
  [_a]: input[_AT]
1970
1970
  });
1971
1971
  b.bp("/api/v1/resources");
@@ -1981,7 +1981,7 @@ var se_GetResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
1981
1981
  }, "se_GetResourcesCommand");
1982
1982
  var se_InitiateDocumentVersionUploadCommand = /* @__PURE__ */ __name(async (input, context) => {
1983
1983
  const b = (0, import_core.requestBuilder)(input, context);
1984
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1984
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1985
1985
  "content-type": "application/json",
1986
1986
  [_a]: input[_AT]
1987
1987
  });
@@ -2003,7 +2003,7 @@ var se_InitiateDocumentVersionUploadCommand = /* @__PURE__ */ __name(async (inpu
2003
2003
  }, "se_InitiateDocumentVersionUploadCommand");
2004
2004
  var se_RemoveAllResourcePermissionsCommand = /* @__PURE__ */ __name(async (input, context) => {
2005
2005
  const b = (0, import_core.requestBuilder)(input, context);
2006
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
2006
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
2007
2007
  [_a]: input[_AT]
2008
2008
  });
2009
2009
  b.bp("/api/v1/resources/{ResourceId}/permissions");
@@ -2014,7 +2014,7 @@ var se_RemoveAllResourcePermissionsCommand = /* @__PURE__ */ __name(async (input
2014
2014
  }, "se_RemoveAllResourcePermissionsCommand");
2015
2015
  var se_RemoveResourcePermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
2016
2016
  const b = (0, import_core.requestBuilder)(input, context);
2017
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
2017
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
2018
2018
  [_a]: input[_AT]
2019
2019
  });
2020
2020
  b.bp("/api/v1/resources/{ResourceId}/permissions/{PrincipalId}");
@@ -2029,7 +2029,7 @@ var se_RemoveResourcePermissionCommand = /* @__PURE__ */ __name(async (input, co
2029
2029
  }, "se_RemoveResourcePermissionCommand");
2030
2030
  var se_RestoreDocumentVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
2031
2031
  const b = (0, import_core.requestBuilder)(input, context);
2032
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
2032
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
2033
2033
  [_a]: input[_AT]
2034
2034
  });
2035
2035
  b.bp("/api/v1/documentVersions/restore/{DocumentId}");
@@ -2040,7 +2040,7 @@ var se_RestoreDocumentVersionsCommand = /* @__PURE__ */ __name(async (input, con
2040
2040
  }, "se_RestoreDocumentVersionsCommand");
2041
2041
  var se_SearchResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
2042
2042
  const b = (0, import_core.requestBuilder)(input, context);
2043
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
2043
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
2044
2044
  "content-type": "application/json",
2045
2045
  [_a]: input[_AT]
2046
2046
  });
@@ -2063,7 +2063,7 @@ var se_SearchResourcesCommand = /* @__PURE__ */ __name(async (input, context) =>
2063
2063
  }, "se_SearchResourcesCommand");
2064
2064
  var se_UpdateDocumentCommand = /* @__PURE__ */ __name(async (input, context) => {
2065
2065
  const b = (0, import_core.requestBuilder)(input, context);
2066
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
2066
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
2067
2067
  "content-type": "application/json",
2068
2068
  [_a]: input[_AT]
2069
2069
  });
@@ -2082,7 +2082,7 @@ var se_UpdateDocumentCommand = /* @__PURE__ */ __name(async (input, context) =>
2082
2082
  }, "se_UpdateDocumentCommand");
2083
2083
  var se_UpdateDocumentVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
2084
2084
  const b = (0, import_core.requestBuilder)(input, context);
2085
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
2085
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
2086
2086
  "content-type": "application/json",
2087
2087
  [_a]: input[_AT]
2088
2088
  });
@@ -2100,7 +2100,7 @@ var se_UpdateDocumentVersionCommand = /* @__PURE__ */ __name(async (input, conte
2100
2100
  }, "se_UpdateDocumentVersionCommand");
2101
2101
  var se_UpdateFolderCommand = /* @__PURE__ */ __name(async (input, context) => {
2102
2102
  const b = (0, import_core.requestBuilder)(input, context);
2103
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
2103
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
2104
2104
  "content-type": "application/json",
2105
2105
  [_a]: input[_AT]
2106
2106
  });
@@ -2119,7 +2119,7 @@ var se_UpdateFolderCommand = /* @__PURE__ */ __name(async (input, context) => {
2119
2119
  }, "se_UpdateFolderCommand");
2120
2120
  var se_UpdateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
2121
2121
  const b = (0, import_core.requestBuilder)(input, context);
2122
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
2122
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
2123
2123
  "content-type": "application/json",
2124
2124
  [_a]: input[_AT]
2125
2125
  });
@@ -3295,7 +3295,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
3295
3295
  extendedRequestId: output.headers["x-amz-id-2"],
3296
3296
  cfId: output.headers["x-amz-cf-id"]
3297
3297
  }), "deserializeMetadata");
3298
- var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
3299
3298
  var _AT = "AuthenticationToken";
3300
3299
  var _ATc = "ActivityTypes";
3301
3300
  var _CT = "CollectionType";
@@ -1,6 +1,6 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, serializeDateTime as __serializeDateTime, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, parseEpochTimestamp as __parseEpochTimestamp, serializeDateTime as __serializeDateTime, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { ConcurrentModificationException, ConflictingOperationException, CustomMetadataLimitExceededException, DeactivatingLastSystemUserException, DocumentLockedForCommentsException, DraftUploadOutOfSyncException, EntityAlreadyExistsException, EntityNotExistsException, FailedDependencyException, IllegalUserStateException, InvalidArgumentException, InvalidCommentOperationException, InvalidOperationException, InvalidPasswordException, LimitExceededException, ProhibitedStateException, RequestedEntityTooLargeException, ResourceAlreadyCheckedOutException, ServiceUnavailableException, StorageLimitExceededException, StorageLimitWillExceedException, TooManyLabelsException, TooManySubscriptionsException, UnauthorizedOperationException, UnauthorizedResourceAccessException, } from "../models/models_0";
5
5
  import { WorkDocsServiceException as __BaseException } from "../models/WorkDocsServiceException";
6
6
  export const se_AbortDocumentVersionUploadCommand = async (input, context) => {
@@ -180,7 +180,7 @@ export const se_DeleteCustomMetadataCommand = async (input, context) => {
180
180
  b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
181
181
  const query = map({
182
182
  [_vI]: [, input[_VI]],
183
- [_k]: [() => input.Keys !== void 0, () => (input[_K] || []).map((_entry) => _entry)],
183
+ [_k]: [() => input.Keys !== void 0, () => input[_K] || []],
184
184
  [_dA]: [() => input.DeleteAll !== void 0, () => input[_DA].toString()],
185
185
  });
186
186
  let body;
@@ -243,7 +243,7 @@ export const se_DeleteLabelsCommand = async (input, context) => {
243
243
  b.bp("/api/v1/resources/{ResourceId}/labels");
244
244
  b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
245
245
  const query = map({
246
- [_l]: [() => input.Labels !== void 0, () => (input[_L] || []).map((_entry) => _entry)],
246
+ [_l]: [() => input.Labels !== void 0, () => input[_L] || []],
247
247
  [_dA]: [() => input.DeleteAll !== void 0, () => input[_DA].toString()],
248
248
  });
249
249
  let body;
@@ -1845,11 +1845,6 @@ const deserializeMetadata = (output) => ({
1845
1845
  cfId: output.headers["x-amz-cf-id"],
1846
1846
  });
1847
1847
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1848
- const isSerializableHeaderValue = (value) => value !== undefined &&
1849
- value !== null &&
1850
- value !== "" &&
1851
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1852
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1853
1848
  const _AT = "AuthenticationToken";
1854
1849
  const _ATc = "ActivityTypes";
1855
1850
  const _CT = "CollectionType";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-workdocs",
3
3
  "description": "AWS SDK for JavaScript Workdocs Client for Node.js, Browser and React Native",
4
- "version": "3.658.0",
4
+ "version": "3.662.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-workdocs",
@@ -20,43 +20,43 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.658.0",
24
- "@aws-sdk/client-sts": "3.658.0",
25
- "@aws-sdk/core": "3.658.0",
26
- "@aws-sdk/credential-provider-node": "3.658.0",
27
- "@aws-sdk/middleware-host-header": "3.654.0",
28
- "@aws-sdk/middleware-logger": "3.654.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.654.0",
30
- "@aws-sdk/middleware-user-agent": "3.654.0",
31
- "@aws-sdk/region-config-resolver": "3.654.0",
32
- "@aws-sdk/types": "3.654.0",
33
- "@aws-sdk/util-endpoints": "3.654.0",
34
- "@aws-sdk/util-user-agent-browser": "3.654.0",
35
- "@aws-sdk/util-user-agent-node": "3.654.0",
36
- "@smithy/config-resolver": "^3.0.8",
37
- "@smithy/core": "^2.4.3",
38
- "@smithy/fetch-http-handler": "^3.2.7",
39
- "@smithy/hash-node": "^3.0.6",
40
- "@smithy/invalid-dependency": "^3.0.6",
41
- "@smithy/middleware-content-length": "^3.0.8",
42
- "@smithy/middleware-endpoint": "^3.1.3",
43
- "@smithy/middleware-retry": "^3.0.18",
44
- "@smithy/middleware-serde": "^3.0.6",
45
- "@smithy/middleware-stack": "^3.0.6",
46
- "@smithy/node-config-provider": "^3.1.7",
47
- "@smithy/node-http-handler": "^3.2.2",
48
- "@smithy/protocol-http": "^4.1.3",
49
- "@smithy/smithy-client": "^3.3.2",
50
- "@smithy/types": "^3.4.2",
51
- "@smithy/url-parser": "^3.0.6",
23
+ "@aws-sdk/client-sso-oidc": "3.662.0",
24
+ "@aws-sdk/client-sts": "3.662.0",
25
+ "@aws-sdk/core": "3.662.0",
26
+ "@aws-sdk/credential-provider-node": "3.662.0",
27
+ "@aws-sdk/middleware-host-header": "3.662.0",
28
+ "@aws-sdk/middleware-logger": "3.662.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.662.0",
30
+ "@aws-sdk/middleware-user-agent": "3.662.0",
31
+ "@aws-sdk/region-config-resolver": "3.662.0",
32
+ "@aws-sdk/types": "3.662.0",
33
+ "@aws-sdk/util-endpoints": "3.662.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.662.0",
35
+ "@aws-sdk/util-user-agent-node": "3.662.0",
36
+ "@smithy/config-resolver": "^3.0.9",
37
+ "@smithy/core": "^2.4.7",
38
+ "@smithy/fetch-http-handler": "^3.2.9",
39
+ "@smithy/hash-node": "^3.0.7",
40
+ "@smithy/invalid-dependency": "^3.0.7",
41
+ "@smithy/middleware-content-length": "^3.0.9",
42
+ "@smithy/middleware-endpoint": "^3.1.4",
43
+ "@smithy/middleware-retry": "^3.0.22",
44
+ "@smithy/middleware-serde": "^3.0.7",
45
+ "@smithy/middleware-stack": "^3.0.7",
46
+ "@smithy/node-config-provider": "^3.1.8",
47
+ "@smithy/node-http-handler": "^3.2.4",
48
+ "@smithy/protocol-http": "^4.1.4",
49
+ "@smithy/smithy-client": "^3.3.6",
50
+ "@smithy/types": "^3.5.0",
51
+ "@smithy/url-parser": "^3.0.7",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.18",
56
- "@smithy/util-defaults-mode-node": "^3.0.18",
57
- "@smithy/util-endpoints": "^2.1.2",
58
- "@smithy/util-middleware": "^3.0.6",
59
- "@smithy/util-retry": "^3.0.6",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.22",
56
+ "@smithy/util-defaults-mode-node": "^3.0.22",
57
+ "@smithy/util-endpoints": "^2.1.3",
58
+ "@smithy/util-middleware": "^3.0.7",
59
+ "@smithy/util-retry": "^3.0.7",
60
60
  "@smithy/util-utf8": "^3.0.0",
61
61
  "tslib": "^2.6.2"
62
62
  },