@aws-sdk/client-workdocs 3.325.0 → 3.327.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 (45) hide show
  1. package/dist-types/commands/AbortDocumentVersionUploadCommand.d.ts +4 -0
  2. package/dist-types/commands/ActivateUserCommand.d.ts +28 -0
  3. package/dist-types/commands/AddResourcePermissionsCommand.d.ts +15 -0
  4. package/dist-types/commands/CreateCommentCommand.d.ts +38 -0
  5. package/dist-types/commands/CreateCustomMetadataCommand.d.ts +4 -0
  6. package/dist-types/commands/CreateFolderCommand.d.ts +20 -0
  7. package/dist-types/commands/CreateLabelsCommand.d.ts +4 -0
  8. package/dist-types/commands/CreateNotificationSubscriptionCommand.d.ts +10 -0
  9. package/dist-types/commands/CreateUserCommand.d.ts +28 -0
  10. package/dist-types/commands/DeactivateUserCommand.d.ts +4 -0
  11. package/dist-types/commands/DeleteCommentCommand.d.ts +4 -0
  12. package/dist-types/commands/DeleteCustomMetadataCommand.d.ts +4 -0
  13. package/dist-types/commands/DeleteDocumentCommand.d.ts +4 -0
  14. package/dist-types/commands/DeleteDocumentVersionCommand.d.ts +4 -0
  15. package/dist-types/commands/DeleteFolderCommand.d.ts +4 -0
  16. package/dist-types/commands/DeleteFolderContentsCommand.d.ts +4 -0
  17. package/dist-types/commands/DeleteLabelsCommand.d.ts +4 -0
  18. package/dist-types/commands/DeleteNotificationSubscriptionCommand.d.ts +4 -0
  19. package/dist-types/commands/DeleteUserCommand.d.ts +4 -0
  20. package/dist-types/commands/DescribeActivitiesCommand.d.ts +86 -0
  21. package/dist-types/commands/DescribeCommentsCommand.d.ts +41 -0
  22. package/dist-types/commands/DescribeDocumentVersionsCommand.d.ts +27 -0
  23. package/dist-types/commands/DescribeFolderContentsCommand.d.ts +55 -0
  24. package/dist-types/commands/DescribeGroupsCommand.d.ts +12 -0
  25. package/dist-types/commands/DescribeNotificationSubscriptionsCommand.d.ts +13 -0
  26. package/dist-types/commands/DescribeResourcePermissionsCommand.d.ts +18 -0
  27. package/dist-types/commands/DescribeRootFoldersCommand.d.ts +23 -0
  28. package/dist-types/commands/DescribeUsersCommand.d.ts +32 -0
  29. package/dist-types/commands/GetCurrentUserCommand.d.ts +28 -0
  30. package/dist-types/commands/GetDocumentCommand.d.ts +38 -0
  31. package/dist-types/commands/GetDocumentPathCommand.d.ts +13 -0
  32. package/dist-types/commands/GetDocumentVersionCommand.d.ts +27 -0
  33. package/dist-types/commands/GetFolderCommand.d.ts +23 -0
  34. package/dist-types/commands/GetFolderPathCommand.d.ts +13 -0
  35. package/dist-types/commands/GetResourcesCommand.d.ts +55 -0
  36. package/dist-types/commands/InitiateDocumentVersionUploadCommand.d.ts +41 -0
  37. package/dist-types/commands/RemoveAllResourcePermissionsCommand.d.ts +4 -0
  38. package/dist-types/commands/RemoveResourcePermissionCommand.d.ts +4 -0
  39. package/dist-types/commands/RestoreDocumentVersionsCommand.d.ts +4 -0
  40. package/dist-types/commands/SearchResourcesCommand.d.ts +106 -0
  41. package/dist-types/commands/UpdateDocumentCommand.d.ts +4 -0
  42. package/dist-types/commands/UpdateDocumentVersionCommand.d.ts +4 -0
  43. package/dist-types/commands/UpdateFolderCommand.d.ts +4 -0
  44. package/dist-types/commands/UpdateUserCommand.d.ts +28 -0
  45. package/package.json +7 -7
@@ -35,6 +35,8 @@ export interface RemoveResourcePermissionCommandOutput extends __MetadataBearer
35
35
  * };
36
36
  * const command = new RemoveResourcePermissionCommand(input);
37
37
  * const response = await client.send(command);
38
+ * // {};
39
+ *
38
40
  * ```
39
41
  *
40
42
  * @param RemoveResourcePermissionCommandInput - {@link RemoveResourcePermissionCommandInput}
@@ -57,6 +59,8 @@ export interface RemoveResourcePermissionCommandOutput extends __MetadataBearer
57
59
  * @throws {@link UnauthorizedResourceAccessException} (client fault)
58
60
  * <p>The caller does not have access to perform the action on the resource.</p>
59
61
  *
62
+ * @throws {@link WorkDocsServiceException}
63
+ * <p>Base exception class for all service exceptions from WorkDocs service.</p>
60
64
  *
61
65
  */
62
66
  export declare class RemoveResourcePermissionCommand extends $Command<RemoveResourcePermissionCommandInput, RemoveResourcePermissionCommandOutput, WorkDocsClientResolvedConfig> {
@@ -32,6 +32,8 @@ export interface RestoreDocumentVersionsCommandOutput extends __MetadataBearer {
32
32
  * };
33
33
  * const command = new RestoreDocumentVersionsCommand(input);
34
34
  * const response = await client.send(command);
35
+ * // {};
36
+ *
35
37
  * ```
36
38
  *
37
39
  * @param RestoreDocumentVersionsCommandInput - {@link RestoreDocumentVersionsCommandInput}
@@ -66,6 +68,8 @@ export interface RestoreDocumentVersionsCommandOutput extends __MetadataBearer {
66
68
  * @throws {@link UnauthorizedResourceAccessException} (client fault)
67
69
  * <p>The caller does not have access to perform the action on the resource.</p>
68
70
  *
71
+ * @throws {@link WorkDocsServiceException}
72
+ * <p>Base exception class for all service exceptions from WorkDocs service.</p>
69
73
  *
70
74
  */
71
75
  export declare class RestoreDocumentVersionsCommand extends $Command<RestoreDocumentVersionsCommandInput, RestoreDocumentVersionsCommandOutput, WorkDocsClientResolvedConfig> {
@@ -87,6 +87,110 @@ export interface SearchResourcesCommandOutput extends SearchResourcesResponse, _
87
87
  * };
88
88
  * const command = new SearchResourcesCommand(input);
89
89
  * const response = await client.send(command);
90
+ * // { // SearchResourcesResponse
91
+ * // Items: [ // ResponseItemsList
92
+ * // { // ResponseItem
93
+ * // ResourceType: "DOCUMENT" || "FOLDER" || "COMMENT" || "DOCUMENT_VERSION",
94
+ * // WebUrl: "STRING_VALUE",
95
+ * // DocumentMetadata: { // DocumentMetadata
96
+ * // Id: "STRING_VALUE",
97
+ * // CreatorId: "STRING_VALUE",
98
+ * // ParentFolderId: "STRING_VALUE",
99
+ * // CreatedTimestamp: new Date("TIMESTAMP"),
100
+ * // ModifiedTimestamp: new Date("TIMESTAMP"),
101
+ * // LatestVersionMetadata: { // DocumentVersionMetadata
102
+ * // Id: "STRING_VALUE",
103
+ * // Name: "STRING_VALUE",
104
+ * // ContentType: "STRING_VALUE",
105
+ * // Size: Number("long"),
106
+ * // Signature: "STRING_VALUE",
107
+ * // Status: "INITIALIZED" || "ACTIVE",
108
+ * // CreatedTimestamp: new Date("TIMESTAMP"),
109
+ * // ModifiedTimestamp: new Date("TIMESTAMP"),
110
+ * // ContentCreatedTimestamp: new Date("TIMESTAMP"),
111
+ * // ContentModifiedTimestamp: new Date("TIMESTAMP"),
112
+ * // CreatorId: "STRING_VALUE",
113
+ * // Thumbnail: { // DocumentThumbnailUrlMap
114
+ * // "<keys>": "STRING_VALUE",
115
+ * // },
116
+ * // Source: { // DocumentSourceUrlMap
117
+ * // "<keys>": "STRING_VALUE",
118
+ * // },
119
+ * // },
120
+ * // ResourceState: "ACTIVE" || "RESTORING" || "RECYCLING" || "RECYCLED",
121
+ * // Labels: [ // SharedLabels
122
+ * // "STRING_VALUE",
123
+ * // ],
124
+ * // },
125
+ * // FolderMetadata: { // FolderMetadata
126
+ * // Id: "STRING_VALUE",
127
+ * // Name: "STRING_VALUE",
128
+ * // CreatorId: "STRING_VALUE",
129
+ * // ParentFolderId: "STRING_VALUE",
130
+ * // CreatedTimestamp: new Date("TIMESTAMP"),
131
+ * // ModifiedTimestamp: new Date("TIMESTAMP"),
132
+ * // ResourceState: "ACTIVE" || "RESTORING" || "RECYCLING" || "RECYCLED",
133
+ * // Signature: "STRING_VALUE",
134
+ * // Labels: [
135
+ * // "STRING_VALUE",
136
+ * // ],
137
+ * // Size: Number("long"),
138
+ * // LatestVersionSize: Number("long"),
139
+ * // },
140
+ * // CommentMetadata: { // CommentMetadata
141
+ * // CommentId: "STRING_VALUE",
142
+ * // Contributor: { // User
143
+ * // Id: "STRING_VALUE",
144
+ * // Username: "STRING_VALUE",
145
+ * // EmailAddress: "STRING_VALUE",
146
+ * // GivenName: "STRING_VALUE",
147
+ * // Surname: "STRING_VALUE",
148
+ * // OrganizationId: "STRING_VALUE",
149
+ * // RootFolderId: "STRING_VALUE",
150
+ * // RecycleBinFolderId: "STRING_VALUE",
151
+ * // Status: "ACTIVE" || "INACTIVE" || "PENDING",
152
+ * // Type: "USER" || "ADMIN" || "POWERUSER" || "MINIMALUSER" || "WORKSPACESUSER",
153
+ * // CreatedTimestamp: new Date("TIMESTAMP"),
154
+ * // ModifiedTimestamp: new Date("TIMESTAMP"),
155
+ * // TimeZoneId: "STRING_VALUE",
156
+ * // Locale: "en" || "fr" || "ko" || "de" || "es" || "ja" || "ru" || "zh_CN" || "zh_TW" || "pt_BR" || "default",
157
+ * // Storage: { // UserStorageMetadata
158
+ * // StorageUtilizedInBytes: Number("long"),
159
+ * // StorageRule: { // StorageRuleType
160
+ * // StorageAllocatedInBytes: Number("long"),
161
+ * // StorageType: "UNLIMITED" || "QUOTA",
162
+ * // },
163
+ * // },
164
+ * // },
165
+ * // CreatedTimestamp: new Date("TIMESTAMP"),
166
+ * // CommentStatus: "DRAFT" || "PUBLISHED" || "DELETED",
167
+ * // RecipientId: "STRING_VALUE",
168
+ * // ContributorId: "STRING_VALUE",
169
+ * // },
170
+ * // DocumentVersionMetadata: {
171
+ * // Id: "STRING_VALUE",
172
+ * // Name: "STRING_VALUE",
173
+ * // ContentType: "STRING_VALUE",
174
+ * // Size: Number("long"),
175
+ * // Signature: "STRING_VALUE",
176
+ * // Status: "INITIALIZED" || "ACTIVE",
177
+ * // CreatedTimestamp: new Date("TIMESTAMP"),
178
+ * // ModifiedTimestamp: new Date("TIMESTAMP"),
179
+ * // ContentCreatedTimestamp: new Date("TIMESTAMP"),
180
+ * // ContentModifiedTimestamp: new Date("TIMESTAMP"),
181
+ * // CreatorId: "STRING_VALUE",
182
+ * // Thumbnail: {
183
+ * // "<keys>": "STRING_VALUE",
184
+ * // },
185
+ * // Source: {
186
+ * // "<keys>": "STRING_VALUE",
187
+ * // },
188
+ * // },
189
+ * // },
190
+ * // ],
191
+ * // Marker: "STRING_VALUE",
192
+ * // };
193
+ *
90
194
  * ```
91
195
  *
92
196
  * @param SearchResourcesCommandInput - {@link SearchResourcesCommandInput}
@@ -107,6 +211,8 @@ export interface SearchResourcesCommandOutput extends SearchResourcesResponse, _
107
211
  * @throws {@link UnauthorizedResourceAccessException} (client fault)
108
212
  * <p>The caller does not have access to perform the action on the resource.</p>
109
213
  *
214
+ * @throws {@link WorkDocsServiceException}
215
+ * <p>Base exception class for all service exceptions from WorkDocs service.</p>
110
216
  *
111
217
  */
112
218
  export declare class SearchResourcesCommand extends $Command<SearchResourcesCommandInput, SearchResourcesCommandOutput, WorkDocsClientResolvedConfig> {
@@ -36,6 +36,8 @@ export interface UpdateDocumentCommandOutput extends __MetadataBearer {
36
36
  * };
37
37
  * const command = new UpdateDocumentCommand(input);
38
38
  * const response = await client.send(command);
39
+ * // {};
40
+ *
39
41
  * ```
40
42
  *
41
43
  * @param UpdateDocumentCommandInput - {@link UpdateDocumentCommandInput}
@@ -76,6 +78,8 @@ export interface UpdateDocumentCommandOutput extends __MetadataBearer {
76
78
  * @throws {@link UnauthorizedResourceAccessException} (client fault)
77
79
  * <p>The caller does not have access to perform the action on the resource.</p>
78
80
  *
81
+ * @throws {@link WorkDocsServiceException}
82
+ * <p>Base exception class for all service exceptions from WorkDocs service.</p>
79
83
  *
80
84
  */
81
85
  export declare class UpdateDocumentCommand extends $Command<UpdateDocumentCommandInput, UpdateDocumentCommandOutput, WorkDocsClientResolvedConfig> {
@@ -37,6 +37,8 @@ export interface UpdateDocumentVersionCommandOutput extends __MetadataBearer {
37
37
  * };
38
38
  * const command = new UpdateDocumentVersionCommand(input);
39
39
  * const response = await client.send(command);
40
+ * // {};
41
+ *
40
42
  * ```
41
43
  *
42
44
  * @param UpdateDocumentVersionCommandInput - {@link UpdateDocumentVersionCommandInput}
@@ -71,6 +73,8 @@ export interface UpdateDocumentVersionCommandOutput extends __MetadataBearer {
71
73
  * @throws {@link UnauthorizedResourceAccessException} (client fault)
72
74
  * <p>The caller does not have access to perform the action on the resource.</p>
73
75
  *
76
+ * @throws {@link WorkDocsServiceException}
77
+ * <p>Base exception class for all service exceptions from WorkDocs service.</p>
74
78
  *
75
79
  */
76
80
  export declare class UpdateDocumentVersionCommand extends $Command<UpdateDocumentVersionCommandInput, UpdateDocumentVersionCommandOutput, WorkDocsClientResolvedConfig> {
@@ -36,6 +36,8 @@ export interface UpdateFolderCommandOutput extends __MetadataBearer {
36
36
  * };
37
37
  * const command = new UpdateFolderCommand(input);
38
38
  * const response = await client.send(command);
39
+ * // {};
40
+ *
39
41
  * ```
40
42
  *
41
43
  * @param UpdateFolderCommandInput - {@link UpdateFolderCommandInput}
@@ -76,6 +78,8 @@ export interface UpdateFolderCommandOutput extends __MetadataBearer {
76
78
  * @throws {@link UnauthorizedResourceAccessException} (client fault)
77
79
  * <p>The caller does not have access to perform the action on the resource.</p>
78
80
  *
81
+ * @throws {@link WorkDocsServiceException}
82
+ * <p>Base exception class for all service exceptions from WorkDocs service.</p>
79
83
  *
80
84
  */
81
85
  export declare class UpdateFolderCommand extends $Command<UpdateFolderCommandInput, UpdateFolderCommandOutput, WorkDocsClientResolvedConfig> {
@@ -43,6 +43,32 @@ export interface UpdateUserCommandOutput extends UpdateUserResponse, __MetadataB
43
43
  * };
44
44
  * const command = new UpdateUserCommand(input);
45
45
  * const response = await client.send(command);
46
+ * // { // UpdateUserResponse
47
+ * // User: { // User
48
+ * // Id: "STRING_VALUE",
49
+ * // Username: "STRING_VALUE",
50
+ * // EmailAddress: "STRING_VALUE",
51
+ * // GivenName: "STRING_VALUE",
52
+ * // Surname: "STRING_VALUE",
53
+ * // OrganizationId: "STRING_VALUE",
54
+ * // RootFolderId: "STRING_VALUE",
55
+ * // RecycleBinFolderId: "STRING_VALUE",
56
+ * // Status: "ACTIVE" || "INACTIVE" || "PENDING",
57
+ * // Type: "USER" || "ADMIN" || "POWERUSER" || "MINIMALUSER" || "WORKSPACESUSER",
58
+ * // CreatedTimestamp: new Date("TIMESTAMP"),
59
+ * // ModifiedTimestamp: new Date("TIMESTAMP"),
60
+ * // TimeZoneId: "STRING_VALUE",
61
+ * // Locale: "en" || "fr" || "ko" || "de" || "es" || "ja" || "ru" || "zh_CN" || "zh_TW" || "pt_BR" || "default",
62
+ * // Storage: { // UserStorageMetadata
63
+ * // StorageUtilizedInBytes: Number("long"),
64
+ * // StorageRule: { // StorageRuleType
65
+ * // StorageAllocatedInBytes: Number("long"),
66
+ * // StorageType: "UNLIMITED" || "QUOTA",
67
+ * // },
68
+ * // },
69
+ * // },
70
+ * // };
71
+ *
46
72
  * ```
47
73
  *
48
74
  * @param UpdateUserCommandInput - {@link UpdateUserCommandInput}
@@ -80,6 +106,8 @@ export interface UpdateUserCommandOutput extends UpdateUserResponse, __MetadataB
80
106
  * @throws {@link UnauthorizedResourceAccessException} (client fault)
81
107
  * <p>The caller does not have access to perform the action on the resource.</p>
82
108
  *
109
+ * @throws {@link WorkDocsServiceException}
110
+ * <p>Base exception class for all service exceptions from WorkDocs service.</p>
83
111
  *
84
112
  */
85
113
  export declare class UpdateUserCommand extends $Command<UpdateUserCommandInput, UpdateUserCommandOutput, WorkDocsClientResolvedConfig> {
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.325.0",
4
+ "version": "3.327.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.325.0",
24
+ "@aws-sdk/client-sts": "3.327.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.325.0",
26
+ "@aws-sdk/credential-provider-node": "3.327.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -32,11 +32,11 @@
32
32
  "@aws-sdk/middleware-host-header": "3.325.0",
33
33
  "@aws-sdk/middleware-logger": "3.325.0",
34
34
  "@aws-sdk/middleware-recursion-detection": "3.325.0",
35
- "@aws-sdk/middleware-retry": "3.325.0",
35
+ "@aws-sdk/middleware-retry": "3.327.0",
36
36
  "@aws-sdk/middleware-serde": "3.325.0",
37
37
  "@aws-sdk/middleware-signing": "3.325.0",
38
38
  "@aws-sdk/middleware-stack": "3.325.0",
39
- "@aws-sdk/middleware-user-agent": "3.325.0",
39
+ "@aws-sdk/middleware-user-agent": "3.327.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.321.1",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
@@ -48,8 +48,8 @@
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
49
  "@aws-sdk/util-defaults-mode-browser": "3.325.0",
50
50
  "@aws-sdk/util-defaults-mode-node": "3.325.0",
51
- "@aws-sdk/util-endpoints": "3.319.0",
52
- "@aws-sdk/util-retry": "3.310.0",
51
+ "@aws-sdk/util-endpoints": "3.327.0",
52
+ "@aws-sdk/util-retry": "3.327.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",
55
55
  "@aws-sdk/util-utf8": "3.310.0",