@aws-sdk/client-workdocs 3.294.0 → 3.296.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.
Files changed (147) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/WorkDocs.js +15 -0
  3. package/dist-cjs/commands/AbortDocumentVersionUploadCommand.js +4 -4
  4. package/dist-cjs/commands/ActivateUserCommand.js +4 -4
  5. package/dist-cjs/commands/AddResourcePermissionsCommand.js +4 -4
  6. package/dist-cjs/commands/CreateCommentCommand.js +4 -4
  7. package/dist-cjs/commands/CreateCustomMetadataCommand.js +4 -4
  8. package/dist-cjs/commands/CreateFolderCommand.js +4 -4
  9. package/dist-cjs/commands/CreateLabelsCommand.js +4 -4
  10. package/dist-cjs/commands/CreateNotificationSubscriptionCommand.js +4 -4
  11. package/dist-cjs/commands/CreateUserCommand.js +4 -4
  12. package/dist-cjs/commands/DeactivateUserCommand.js +4 -4
  13. package/dist-cjs/commands/DeleteCommentCommand.js +4 -4
  14. package/dist-cjs/commands/DeleteCustomMetadataCommand.js +4 -4
  15. package/dist-cjs/commands/DeleteDocumentCommand.js +4 -4
  16. package/dist-cjs/commands/DeleteDocumentVersionCommand.js +4 -4
  17. package/dist-cjs/commands/DeleteFolderCommand.js +4 -4
  18. package/dist-cjs/commands/DeleteFolderContentsCommand.js +4 -4
  19. package/dist-cjs/commands/DeleteLabelsCommand.js +4 -4
  20. package/dist-cjs/commands/DeleteNotificationSubscriptionCommand.js +4 -4
  21. package/dist-cjs/commands/DeleteUserCommand.js +4 -4
  22. package/dist-cjs/commands/DescribeActivitiesCommand.js +4 -4
  23. package/dist-cjs/commands/DescribeCommentsCommand.js +4 -4
  24. package/dist-cjs/commands/DescribeDocumentVersionsCommand.js +4 -4
  25. package/dist-cjs/commands/DescribeFolderContentsCommand.js +4 -4
  26. package/dist-cjs/commands/DescribeGroupsCommand.js +4 -4
  27. package/dist-cjs/commands/DescribeNotificationSubscriptionsCommand.js +4 -4
  28. package/dist-cjs/commands/DescribeResourcePermissionsCommand.js +4 -4
  29. package/dist-cjs/commands/DescribeRootFoldersCommand.js +4 -4
  30. package/dist-cjs/commands/DescribeUsersCommand.js +4 -4
  31. package/dist-cjs/commands/GetCurrentUserCommand.js +4 -4
  32. package/dist-cjs/commands/GetDocumentCommand.js +4 -4
  33. package/dist-cjs/commands/GetDocumentPathCommand.js +4 -4
  34. package/dist-cjs/commands/GetDocumentVersionCommand.js +4 -4
  35. package/dist-cjs/commands/GetFolderCommand.js +4 -4
  36. package/dist-cjs/commands/GetFolderPathCommand.js +4 -4
  37. package/dist-cjs/commands/GetResourcesCommand.js +4 -4
  38. package/dist-cjs/commands/InitiateDocumentVersionUploadCommand.js +4 -4
  39. package/dist-cjs/commands/RemoveAllResourcePermissionsCommand.js +4 -4
  40. package/dist-cjs/commands/RemoveResourcePermissionCommand.js +4 -4
  41. package/dist-cjs/commands/RestoreDocumentVersionsCommand.js +4 -4
  42. package/dist-cjs/commands/SearchResourcesCommand.js +46 -0
  43. package/dist-cjs/commands/UpdateDocumentCommand.js +4 -4
  44. package/dist-cjs/commands/UpdateDocumentVersionCommand.js +4 -4
  45. package/dist-cjs/commands/UpdateFolderCommand.js +4 -4
  46. package/dist-cjs/commands/UpdateUserCommand.js +4 -4
  47. package/dist-cjs/commands/index.js +1 -0
  48. package/dist-cjs/endpoint/ruleset.js +3 -3
  49. package/dist-cjs/models/models_0.js +168 -3
  50. package/dist-cjs/pagination/DescribeActivitiesPaginator.js +29 -0
  51. package/dist-cjs/pagination/DescribeCommentsPaginator.js +29 -0
  52. package/dist-cjs/pagination/DescribeGroupsPaginator.js +29 -0
  53. package/dist-cjs/pagination/DescribeNotificationSubscriptionsPaginator.js +29 -0
  54. package/dist-cjs/pagination/DescribeResourcePermissionsPaginator.js +29 -0
  55. package/dist-cjs/pagination/DescribeRootFoldersPaginator.js +29 -0
  56. package/dist-cjs/pagination/SearchResourcesPaginator.js +29 -0
  57. package/dist-cjs/pagination/index.js +7 -0
  58. package/dist-cjs/protocols/Aws_restJson1.js +245 -2
  59. package/dist-es/WorkDocs.js +15 -0
  60. package/dist-es/commands/AbortDocumentVersionUploadCommand.js +4 -4
  61. package/dist-es/commands/ActivateUserCommand.js +4 -4
  62. package/dist-es/commands/AddResourcePermissionsCommand.js +4 -4
  63. package/dist-es/commands/CreateCommentCommand.js +4 -4
  64. package/dist-es/commands/CreateCustomMetadataCommand.js +4 -4
  65. package/dist-es/commands/CreateFolderCommand.js +4 -4
  66. package/dist-es/commands/CreateLabelsCommand.js +4 -4
  67. package/dist-es/commands/CreateNotificationSubscriptionCommand.js +4 -4
  68. package/dist-es/commands/CreateUserCommand.js +4 -4
  69. package/dist-es/commands/DeactivateUserCommand.js +4 -4
  70. package/dist-es/commands/DeleteCommentCommand.js +4 -4
  71. package/dist-es/commands/DeleteCustomMetadataCommand.js +4 -4
  72. package/dist-es/commands/DeleteDocumentCommand.js +4 -4
  73. package/dist-es/commands/DeleteDocumentVersionCommand.js +4 -4
  74. package/dist-es/commands/DeleteFolderCommand.js +4 -4
  75. package/dist-es/commands/DeleteFolderContentsCommand.js +4 -4
  76. package/dist-es/commands/DeleteLabelsCommand.js +4 -4
  77. package/dist-es/commands/DeleteNotificationSubscriptionCommand.js +4 -4
  78. package/dist-es/commands/DeleteUserCommand.js +4 -4
  79. package/dist-es/commands/DescribeActivitiesCommand.js +4 -4
  80. package/dist-es/commands/DescribeCommentsCommand.js +4 -4
  81. package/dist-es/commands/DescribeDocumentVersionsCommand.js +4 -4
  82. package/dist-es/commands/DescribeFolderContentsCommand.js +4 -4
  83. package/dist-es/commands/DescribeGroupsCommand.js +4 -4
  84. package/dist-es/commands/DescribeNotificationSubscriptionsCommand.js +4 -4
  85. package/dist-es/commands/DescribeResourcePermissionsCommand.js +4 -4
  86. package/dist-es/commands/DescribeRootFoldersCommand.js +4 -4
  87. package/dist-es/commands/DescribeUsersCommand.js +4 -4
  88. package/dist-es/commands/GetCurrentUserCommand.js +4 -4
  89. package/dist-es/commands/GetDocumentCommand.js +4 -4
  90. package/dist-es/commands/GetDocumentPathCommand.js +4 -4
  91. package/dist-es/commands/GetDocumentVersionCommand.js +4 -4
  92. package/dist-es/commands/GetFolderCommand.js +4 -4
  93. package/dist-es/commands/GetFolderPathCommand.js +4 -4
  94. package/dist-es/commands/GetResourcesCommand.js +4 -4
  95. package/dist-es/commands/InitiateDocumentVersionUploadCommand.js +4 -4
  96. package/dist-es/commands/RemoveAllResourcePermissionsCommand.js +4 -4
  97. package/dist-es/commands/RemoveResourcePermissionCommand.js +4 -4
  98. package/dist-es/commands/RestoreDocumentVersionsCommand.js +4 -4
  99. package/dist-es/commands/SearchResourcesCommand.js +42 -0
  100. package/dist-es/commands/UpdateDocumentCommand.js +4 -4
  101. package/dist-es/commands/UpdateDocumentVersionCommand.js +4 -4
  102. package/dist-es/commands/UpdateFolderCommand.js +4 -4
  103. package/dist-es/commands/UpdateUserCommand.js +4 -4
  104. package/dist-es/commands/index.js +1 -0
  105. package/dist-es/endpoint/ruleset.js +3 -3
  106. package/dist-es/models/models_0.js +156 -0
  107. package/dist-es/pagination/DescribeActivitiesPaginator.js +25 -0
  108. package/dist-es/pagination/DescribeCommentsPaginator.js +25 -0
  109. package/dist-es/pagination/DescribeGroupsPaginator.js +25 -0
  110. package/dist-es/pagination/DescribeNotificationSubscriptionsPaginator.js +25 -0
  111. package/dist-es/pagination/DescribeResourcePermissionsPaginator.js +25 -0
  112. package/dist-es/pagination/DescribeRootFoldersPaginator.js +25 -0
  113. package/dist-es/pagination/SearchResourcesPaginator.js +25 -0
  114. package/dist-es/pagination/index.js +7 -0
  115. package/dist-es/protocols/Aws_restJson1.js +241 -0
  116. package/dist-types/WorkDocs.d.ts +7 -0
  117. package/dist-types/WorkDocsClient.d.ts +5 -4
  118. package/dist-types/commands/InitiateDocumentVersionUploadCommand.d.ts +3 -0
  119. package/dist-types/commands/SearchResourcesCommand.d.ts +56 -0
  120. package/dist-types/commands/index.d.ts +1 -0
  121. package/dist-types/endpoint/EndpointParameters.d.ts +2 -2
  122. package/dist-types/models/models_0.d.ts +295 -0
  123. package/dist-types/pagination/DescribeActivitiesPaginator.d.ts +4 -0
  124. package/dist-types/pagination/DescribeCommentsPaginator.d.ts +4 -0
  125. package/dist-types/pagination/DescribeGroupsPaginator.d.ts +4 -0
  126. package/dist-types/pagination/DescribeNotificationSubscriptionsPaginator.d.ts +4 -0
  127. package/dist-types/pagination/DescribeResourcePermissionsPaginator.d.ts +4 -0
  128. package/dist-types/pagination/DescribeRootFoldersPaginator.d.ts +4 -0
  129. package/dist-types/pagination/SearchResourcesPaginator.d.ts +4 -0
  130. package/dist-types/pagination/index.d.ts +7 -0
  131. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  132. package/dist-types/ts3.4/WorkDocs.d.ts +17 -0
  133. package/dist-types/ts3.4/WorkDocsClient.d.ts +10 -4
  134. package/dist-types/ts3.4/commands/SearchResourcesCommand.d.ts +37 -0
  135. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  136. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -5
  137. package/dist-types/ts3.4/models/models_0.d.ts +156 -0
  138. package/dist-types/ts3.4/pagination/DescribeActivitiesPaginator.d.ts +11 -0
  139. package/dist-types/ts3.4/pagination/DescribeCommentsPaginator.d.ts +11 -0
  140. package/dist-types/ts3.4/pagination/DescribeGroupsPaginator.d.ts +11 -0
  141. package/dist-types/ts3.4/pagination/DescribeNotificationSubscriptionsPaginator.d.ts +11 -0
  142. package/dist-types/ts3.4/pagination/DescribeResourcePermissionsPaginator.d.ts +11 -0
  143. package/dist-types/ts3.4/pagination/DescribeRootFoldersPaginator.d.ts +11 -0
  144. package/dist-types/ts3.4/pagination/SearchResourcesPaginator.d.ts +11 -0
  145. package/dist-types/ts3.4/pagination/index.d.ts +7 -0
  146. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  147. package/package.json +36 -36
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class DescribeRootFoldersCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class DescribeRootFoldersCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeRootFoldersCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class DescribeUsersCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class DescribeUsersCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeUsersCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class GetCurrentUserCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class GetCurrentUserCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetCurrentUserCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class GetDocumentCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class GetDocumentCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDocumentCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class GetDocumentPathCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class GetDocumentPathCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDocumentPathCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class GetDocumentVersionCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class GetDocumentVersionCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDocumentVersionCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class GetFolderCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class GetFolderCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetFolderCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class GetFolderPathCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class GetFolderPathCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetFolderPathCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class GetResourcesCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class GetResourcesCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetResourcesCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class InitiateDocumentVersionUploadCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class InitiateDocumentVersionUploadCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, InitiateDocumentVersionUploadCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class RemoveAllResourcePermissionsCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class RemoveAllResourcePermissionsCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RemoveAllResourcePermissionsCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class RemoveResourcePermissionCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class RemoveResourcePermissionCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RemoveResourcePermissionCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class RestoreDocumentVersionsCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class RestoreDocumentVersionsCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RestoreDocumentVersionsCommand.getEndpointParameterInstructions()));
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SearchResourcesCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class SearchResourcesCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SearchResourcesCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "WorkDocsClient";
28
+ const commandName = "SearchResourcesCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.SearchResourcesRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.SearchResourcesResponseFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.serializeAws_restJson1SearchResourcesCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1SearchResourcesCommand)(output, context);
44
+ }
45
+ }
46
+ exports.SearchResourcesCommand = SearchResourcesCommand;
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class UpdateDocumentCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class UpdateDocumentCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateDocumentCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class UpdateDocumentVersionCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class UpdateDocumentVersionCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateDocumentVersionCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class UpdateFolderCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class UpdateFolderCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateFolderCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class UpdateUserCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class UpdateUserCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateUserCommand.getEndpointParameterInstructions()));
@@ -40,6 +40,7 @@ tslib_1.__exportStar(require("./InitiateDocumentVersionUploadCommand"), exports)
40
40
  tslib_1.__exportStar(require("./RemoveAllResourcePermissionsCommand"), exports);
41
41
  tslib_1.__exportStar(require("./RemoveResourcePermissionCommand"), exports);
42
42
  tslib_1.__exportStar(require("./RestoreDocumentVersionsCommand"), exports);
43
+ tslib_1.__exportStar(require("./SearchResourcesCommand"), exports);
43
44
  tslib_1.__exportStar(require("./UpdateDocumentCommand"), exports);
44
45
  tslib_1.__exportStar(require("./UpdateDocumentVersionCommand"), exports);
45
46
  tslib_1.__exportStar(require("./UpdateFolderCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const q = "fn", r = "argv", s = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://workdocs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://workdocs-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://workdocs.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ endpoint: { url: "https://workdocs.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://workdocs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://workdocs-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://workdocs.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://workdocs.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;