UNPKG

74.7 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class WorkDocs extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: WorkDocs.Types.ClientConfiguration)
13 config: Config & WorkDocs.Types.ClientConfiguration;
14 /**
15 * Aborts the upload of the specified document version that was previously initiated by InitiateDocumentVersionUpload. The client should make this call only when it no longer intends to upload the document version, or fails to do so.
16 */
17 abortDocumentVersionUpload(params: WorkDocs.Types.AbortDocumentVersionUploadRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
18 /**
19 * Aborts the upload of the specified document version that was previously initiated by InitiateDocumentVersionUpload. The client should make this call only when it no longer intends to upload the document version, or fails to do so.
20 */
21 abortDocumentVersionUpload(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
22 /**
23 * Activates the specified user. Only active users can access Amazon WorkDocs.
24 */
25 activateUser(params: WorkDocs.Types.ActivateUserRequest, callback?: (err: AWSError, data: WorkDocs.Types.ActivateUserResponse) => void): Request<WorkDocs.Types.ActivateUserResponse, AWSError>;
26 /**
27 * Activates the specified user. Only active users can access Amazon WorkDocs.
28 */
29 activateUser(callback?: (err: AWSError, data: WorkDocs.Types.ActivateUserResponse) => void): Request<WorkDocs.Types.ActivateUserResponse, AWSError>;
30 /**
31 * Creates a set of permissions for the specified folder or document. The resource permissions are overwritten if the principals already have different permissions.
32 */
33 addResourcePermissions(params: WorkDocs.Types.AddResourcePermissionsRequest, callback?: (err: AWSError, data: WorkDocs.Types.AddResourcePermissionsResponse) => void): Request<WorkDocs.Types.AddResourcePermissionsResponse, AWSError>;
34 /**
35 * Creates a set of permissions for the specified folder or document. The resource permissions are overwritten if the principals already have different permissions.
36 */
37 addResourcePermissions(callback?: (err: AWSError, data: WorkDocs.Types.AddResourcePermissionsResponse) => void): Request<WorkDocs.Types.AddResourcePermissionsResponse, AWSError>;
38 /**
39 * Adds a new comment to the specified document version.
40 */
41 createComment(params: WorkDocs.Types.CreateCommentRequest, callback?: (err: AWSError, data: WorkDocs.Types.CreateCommentResponse) => void): Request<WorkDocs.Types.CreateCommentResponse, AWSError>;
42 /**
43 * Adds a new comment to the specified document version.
44 */
45 createComment(callback?: (err: AWSError, data: WorkDocs.Types.CreateCommentResponse) => void): Request<WorkDocs.Types.CreateCommentResponse, AWSError>;
46 /**
47 * Adds one or more custom properties to the specified resource (a folder, document, or version).
48 */
49 createCustomMetadata(params: WorkDocs.Types.CreateCustomMetadataRequest, callback?: (err: AWSError, data: WorkDocs.Types.CreateCustomMetadataResponse) => void): Request<WorkDocs.Types.CreateCustomMetadataResponse, AWSError>;
50 /**
51 * Adds one or more custom properties to the specified resource (a folder, document, or version).
52 */
53 createCustomMetadata(callback?: (err: AWSError, data: WorkDocs.Types.CreateCustomMetadataResponse) => void): Request<WorkDocs.Types.CreateCustomMetadataResponse, AWSError>;
54 /**
55 * Creates a folder with the specified name and parent folder.
56 */
57 createFolder(params: WorkDocs.Types.CreateFolderRequest, callback?: (err: AWSError, data: WorkDocs.Types.CreateFolderResponse) => void): Request<WorkDocs.Types.CreateFolderResponse, AWSError>;
58 /**
59 * Creates a folder with the specified name and parent folder.
60 */
61 createFolder(callback?: (err: AWSError, data: WorkDocs.Types.CreateFolderResponse) => void): Request<WorkDocs.Types.CreateFolderResponse, AWSError>;
62 /**
63 * Adds the specified list of labels to the given resource (a document or folder)
64 */
65 createLabels(params: WorkDocs.Types.CreateLabelsRequest, callback?: (err: AWSError, data: WorkDocs.Types.CreateLabelsResponse) => void): Request<WorkDocs.Types.CreateLabelsResponse, AWSError>;
66 /**
67 * Adds the specified list of labels to the given resource (a document or folder)
68 */
69 createLabels(callback?: (err: AWSError, data: WorkDocs.Types.CreateLabelsResponse) => void): Request<WorkDocs.Types.CreateLabelsResponse, AWSError>;
70 /**
71 * Configure Amazon WorkDocs to use Amazon SNS notifications. The endpoint receives a confirmation message, and must confirm the subscription. For more information, see Subscribe to Notifications in the Amazon WorkDocs Developer Guide.
72 */
73 createNotificationSubscription(params: WorkDocs.Types.CreateNotificationSubscriptionRequest, callback?: (err: AWSError, data: WorkDocs.Types.CreateNotificationSubscriptionResponse) => void): Request<WorkDocs.Types.CreateNotificationSubscriptionResponse, AWSError>;
74 /**
75 * Configure Amazon WorkDocs to use Amazon SNS notifications. The endpoint receives a confirmation message, and must confirm the subscription. For more information, see Subscribe to Notifications in the Amazon WorkDocs Developer Guide.
76 */
77 createNotificationSubscription(callback?: (err: AWSError, data: WorkDocs.Types.CreateNotificationSubscriptionResponse) => void): Request<WorkDocs.Types.CreateNotificationSubscriptionResponse, AWSError>;
78 /**
79 * Creates a user in a Simple AD or Microsoft AD directory. The status of a newly created user is "ACTIVE". New users can access Amazon WorkDocs.
80 */
81 createUser(params: WorkDocs.Types.CreateUserRequest, callback?: (err: AWSError, data: WorkDocs.Types.CreateUserResponse) => void): Request<WorkDocs.Types.CreateUserResponse, AWSError>;
82 /**
83 * Creates a user in a Simple AD or Microsoft AD directory. The status of a newly created user is "ACTIVE". New users can access Amazon WorkDocs.
84 */
85 createUser(callback?: (err: AWSError, data: WorkDocs.Types.CreateUserResponse) => void): Request<WorkDocs.Types.CreateUserResponse, AWSError>;
86 /**
87 * Deactivates the specified user, which revokes the user's access to Amazon WorkDocs.
88 */
89 deactivateUser(params: WorkDocs.Types.DeactivateUserRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
90 /**
91 * Deactivates the specified user, which revokes the user's access to Amazon WorkDocs.
92 */
93 deactivateUser(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
94 /**
95 * Deletes the specified comment from the document version.
96 */
97 deleteComment(params: WorkDocs.Types.DeleteCommentRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
98 /**
99 * Deletes the specified comment from the document version.
100 */
101 deleteComment(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
102 /**
103 * Deletes custom metadata from the specified resource.
104 */
105 deleteCustomMetadata(params: WorkDocs.Types.DeleteCustomMetadataRequest, callback?: (err: AWSError, data: WorkDocs.Types.DeleteCustomMetadataResponse) => void): Request<WorkDocs.Types.DeleteCustomMetadataResponse, AWSError>;
106 /**
107 * Deletes custom metadata from the specified resource.
108 */
109 deleteCustomMetadata(callback?: (err: AWSError, data: WorkDocs.Types.DeleteCustomMetadataResponse) => void): Request<WorkDocs.Types.DeleteCustomMetadataResponse, AWSError>;
110 /**
111 * Permanently deletes the specified document and its associated metadata.
112 */
113 deleteDocument(params: WorkDocs.Types.DeleteDocumentRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
114 /**
115 * Permanently deletes the specified document and its associated metadata.
116 */
117 deleteDocument(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
118 /**
119 * Permanently deletes the specified folder and its contents.
120 */
121 deleteFolder(params: WorkDocs.Types.DeleteFolderRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
122 /**
123 * Permanently deletes the specified folder and its contents.
124 */
125 deleteFolder(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
126 /**
127 * Deletes the contents of the specified folder.
128 */
129 deleteFolderContents(params: WorkDocs.Types.DeleteFolderContentsRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
130 /**
131 * Deletes the contents of the specified folder.
132 */
133 deleteFolderContents(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
134 /**
135 * Deletes the specified list of labels from a resource.
136 */
137 deleteLabels(params: WorkDocs.Types.DeleteLabelsRequest, callback?: (err: AWSError, data: WorkDocs.Types.DeleteLabelsResponse) => void): Request<WorkDocs.Types.DeleteLabelsResponse, AWSError>;
138 /**
139 * Deletes the specified list of labels from a resource.
140 */
141 deleteLabels(callback?: (err: AWSError, data: WorkDocs.Types.DeleteLabelsResponse) => void): Request<WorkDocs.Types.DeleteLabelsResponse, AWSError>;
142 /**
143 * Deletes the specified subscription from the specified organization.
144 */
145 deleteNotificationSubscription(params: WorkDocs.Types.DeleteNotificationSubscriptionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
146 /**
147 * Deletes the specified subscription from the specified organization.
148 */
149 deleteNotificationSubscription(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
150 /**
151 * Deletes the specified user from a Simple AD or Microsoft AD directory.
152 */
153 deleteUser(params: WorkDocs.Types.DeleteUserRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
154 /**
155 * Deletes the specified user from a Simple AD or Microsoft AD directory.
156 */
157 deleteUser(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
158 /**
159 * Describes the user activities in a specified time period.
160 */
161 describeActivities(params: WorkDocs.Types.DescribeActivitiesRequest, callback?: (err: AWSError, data: WorkDocs.Types.DescribeActivitiesResponse) => void): Request<WorkDocs.Types.DescribeActivitiesResponse, AWSError>;
162 /**
163 * Describes the user activities in a specified time period.
164 */
165 describeActivities(callback?: (err: AWSError, data: WorkDocs.Types.DescribeActivitiesResponse) => void): Request<WorkDocs.Types.DescribeActivitiesResponse, AWSError>;
166 /**
167 * List all the comments for the specified document version.
168 */
169 describeComments(params: WorkDocs.Types.DescribeCommentsRequest, callback?: (err: AWSError, data: WorkDocs.Types.DescribeCommentsResponse) => void): Request<WorkDocs.Types.DescribeCommentsResponse, AWSError>;
170 /**
171 * List all the comments for the specified document version.
172 */
173 describeComments(callback?: (err: AWSError, data: WorkDocs.Types.DescribeCommentsResponse) => void): Request<WorkDocs.Types.DescribeCommentsResponse, AWSError>;
174 /**
175 * Retrieves the document versions for the specified document. By default, only active versions are returned.
176 */
177 describeDocumentVersions(params: WorkDocs.Types.DescribeDocumentVersionsRequest, callback?: (err: AWSError, data: WorkDocs.Types.DescribeDocumentVersionsResponse) => void): Request<WorkDocs.Types.DescribeDocumentVersionsResponse, AWSError>;
178 /**
179 * Retrieves the document versions for the specified document. By default, only active versions are returned.
180 */
181 describeDocumentVersions(callback?: (err: AWSError, data: WorkDocs.Types.DescribeDocumentVersionsResponse) => void): Request<WorkDocs.Types.DescribeDocumentVersionsResponse, AWSError>;
182 /**
183 * Describes the contents of the specified folder, including its documents and subfolders. By default, Amazon WorkDocs returns the first 100 active document and folder metadata items. If there are more results, the response includes a marker that you can use to request the next set of results. You can also request initialized documents.
184 */
185 describeFolderContents(params: WorkDocs.Types.DescribeFolderContentsRequest, callback?: (err: AWSError, data: WorkDocs.Types.DescribeFolderContentsResponse) => void): Request<WorkDocs.Types.DescribeFolderContentsResponse, AWSError>;
186 /**
187 * Describes the contents of the specified folder, including its documents and subfolders. By default, Amazon WorkDocs returns the first 100 active document and folder metadata items. If there are more results, the response includes a marker that you can use to request the next set of results. You can also request initialized documents.
188 */
189 describeFolderContents(callback?: (err: AWSError, data: WorkDocs.Types.DescribeFolderContentsResponse) => void): Request<WorkDocs.Types.DescribeFolderContentsResponse, AWSError>;
190 /**
191 * Describes the groups specified by the query. Groups are defined by the underlying Active Directory.
192 */
193 describeGroups(params: WorkDocs.Types.DescribeGroupsRequest, callback?: (err: AWSError, data: WorkDocs.Types.DescribeGroupsResponse) => void): Request<WorkDocs.Types.DescribeGroupsResponse, AWSError>;
194 /**
195 * Describes the groups specified by the query. Groups are defined by the underlying Active Directory.
196 */
197 describeGroups(callback?: (err: AWSError, data: WorkDocs.Types.DescribeGroupsResponse) => void): Request<WorkDocs.Types.DescribeGroupsResponse, AWSError>;
198 /**
199 * Lists the specified notification subscriptions.
200 */
201 describeNotificationSubscriptions(params: WorkDocs.Types.DescribeNotificationSubscriptionsRequest, callback?: (err: AWSError, data: WorkDocs.Types.DescribeNotificationSubscriptionsResponse) => void): Request<WorkDocs.Types.DescribeNotificationSubscriptionsResponse, AWSError>;
202 /**
203 * Lists the specified notification subscriptions.
204 */
205 describeNotificationSubscriptions(callback?: (err: AWSError, data: WorkDocs.Types.DescribeNotificationSubscriptionsResponse) => void): Request<WorkDocs.Types.DescribeNotificationSubscriptionsResponse, AWSError>;
206 /**
207 * Describes the permissions of a specified resource.
208 */
209 describeResourcePermissions(params: WorkDocs.Types.DescribeResourcePermissionsRequest, callback?: (err: AWSError, data: WorkDocs.Types.DescribeResourcePermissionsResponse) => void): Request<WorkDocs.Types.DescribeResourcePermissionsResponse, AWSError>;
210 /**
211 * Describes the permissions of a specified resource.
212 */
213 describeResourcePermissions(callback?: (err: AWSError, data: WorkDocs.Types.DescribeResourcePermissionsResponse) => void): Request<WorkDocs.Types.DescribeResourcePermissionsResponse, AWSError>;
214 /**
215 * Describes the current user's special folders; the RootFolder and the RecycleBin. RootFolder is the root of user's files and folders and RecycleBin is the root of recycled items. This is not a valid action for SigV4 (administrative API) clients. This action requires an authentication token. To get an authentication token, register an application with Amazon WorkDocs. For more information, see Authentication and Access Control for User Applications in the Amazon WorkDocs Developer Guide.
216 */
217 describeRootFolders(params: WorkDocs.Types.DescribeRootFoldersRequest, callback?: (err: AWSError, data: WorkDocs.Types.DescribeRootFoldersResponse) => void): Request<WorkDocs.Types.DescribeRootFoldersResponse, AWSError>;
218 /**
219 * Describes the current user's special folders; the RootFolder and the RecycleBin. RootFolder is the root of user's files and folders and RecycleBin is the root of recycled items. This is not a valid action for SigV4 (administrative API) clients. This action requires an authentication token. To get an authentication token, register an application with Amazon WorkDocs. For more information, see Authentication and Access Control for User Applications in the Amazon WorkDocs Developer Guide.
220 */
221 describeRootFolders(callback?: (err: AWSError, data: WorkDocs.Types.DescribeRootFoldersResponse) => void): Request<WorkDocs.Types.DescribeRootFoldersResponse, AWSError>;
222 /**
223 * Describes the specified users. You can describe all users or filter the results (for example, by status or organization). By default, Amazon WorkDocs returns the first 24 active or pending users. If there are more results, the response includes a marker that you can use to request the next set of results.
224 */
225 describeUsers(params: WorkDocs.Types.DescribeUsersRequest, callback?: (err: AWSError, data: WorkDocs.Types.DescribeUsersResponse) => void): Request<WorkDocs.Types.DescribeUsersResponse, AWSError>;
226 /**
227 * Describes the specified users. You can describe all users or filter the results (for example, by status or organization). By default, Amazon WorkDocs returns the first 24 active or pending users. If there are more results, the response includes a marker that you can use to request the next set of results.
228 */
229 describeUsers(callback?: (err: AWSError, data: WorkDocs.Types.DescribeUsersResponse) => void): Request<WorkDocs.Types.DescribeUsersResponse, AWSError>;
230 /**
231 * Retrieves details of the current user for whom the authentication token was generated. This is not a valid action for SigV4 (administrative API) clients. This action requires an authentication token. To get an authentication token, register an application with Amazon WorkDocs. For more information, see Authentication and Access Control for User Applications in the Amazon WorkDocs Developer Guide.
232 */
233 getCurrentUser(params: WorkDocs.Types.GetCurrentUserRequest, callback?: (err: AWSError, data: WorkDocs.Types.GetCurrentUserResponse) => void): Request<WorkDocs.Types.GetCurrentUserResponse, AWSError>;
234 /**
235 * Retrieves details of the current user for whom the authentication token was generated. This is not a valid action for SigV4 (administrative API) clients. This action requires an authentication token. To get an authentication token, register an application with Amazon WorkDocs. For more information, see Authentication and Access Control for User Applications in the Amazon WorkDocs Developer Guide.
236 */
237 getCurrentUser(callback?: (err: AWSError, data: WorkDocs.Types.GetCurrentUserResponse) => void): Request<WorkDocs.Types.GetCurrentUserResponse, AWSError>;
238 /**
239 * Retrieves details of a document.
240 */
241 getDocument(params: WorkDocs.Types.GetDocumentRequest, callback?: (err: AWSError, data: WorkDocs.Types.GetDocumentResponse) => void): Request<WorkDocs.Types.GetDocumentResponse, AWSError>;
242 /**
243 * Retrieves details of a document.
244 */
245 getDocument(callback?: (err: AWSError, data: WorkDocs.Types.GetDocumentResponse) => void): Request<WorkDocs.Types.GetDocumentResponse, AWSError>;
246 /**
247 * Retrieves the path information (the hierarchy from the root folder) for the requested document. By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested document and only includes the IDs of the parent folders in the path. You can limit the maximum number of levels. You can also request the names of the parent folders.
248 */
249 getDocumentPath(params: WorkDocs.Types.GetDocumentPathRequest, callback?: (err: AWSError, data: WorkDocs.Types.GetDocumentPathResponse) => void): Request<WorkDocs.Types.GetDocumentPathResponse, AWSError>;
250 /**
251 * Retrieves the path information (the hierarchy from the root folder) for the requested document. By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested document and only includes the IDs of the parent folders in the path. You can limit the maximum number of levels. You can also request the names of the parent folders.
252 */
253 getDocumentPath(callback?: (err: AWSError, data: WorkDocs.Types.GetDocumentPathResponse) => void): Request<WorkDocs.Types.GetDocumentPathResponse, AWSError>;
254 /**
255 * Retrieves version metadata for the specified document.
256 */
257 getDocumentVersion(params: WorkDocs.Types.GetDocumentVersionRequest, callback?: (err: AWSError, data: WorkDocs.Types.GetDocumentVersionResponse) => void): Request<WorkDocs.Types.GetDocumentVersionResponse, AWSError>;
258 /**
259 * Retrieves version metadata for the specified document.
260 */
261 getDocumentVersion(callback?: (err: AWSError, data: WorkDocs.Types.GetDocumentVersionResponse) => void): Request<WorkDocs.Types.GetDocumentVersionResponse, AWSError>;
262 /**
263 * Retrieves the metadata of the specified folder.
264 */
265 getFolder(params: WorkDocs.Types.GetFolderRequest, callback?: (err: AWSError, data: WorkDocs.Types.GetFolderResponse) => void): Request<WorkDocs.Types.GetFolderResponse, AWSError>;
266 /**
267 * Retrieves the metadata of the specified folder.
268 */
269 getFolder(callback?: (err: AWSError, data: WorkDocs.Types.GetFolderResponse) => void): Request<WorkDocs.Types.GetFolderResponse, AWSError>;
270 /**
271 * Retrieves the path information (the hierarchy from the root folder) for the specified folder. By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested folder and only includes the IDs of the parent folders in the path. You can limit the maximum number of levels. You can also request the parent folder names.
272 */
273 getFolderPath(params: WorkDocs.Types.GetFolderPathRequest, callback?: (err: AWSError, data: WorkDocs.Types.GetFolderPathResponse) => void): Request<WorkDocs.Types.GetFolderPathResponse, AWSError>;
274 /**
275 * Retrieves the path information (the hierarchy from the root folder) for the specified folder. By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested folder and only includes the IDs of the parent folders in the path. You can limit the maximum number of levels. You can also request the parent folder names.
276 */
277 getFolderPath(callback?: (err: AWSError, data: WorkDocs.Types.GetFolderPathResponse) => void): Request<WorkDocs.Types.GetFolderPathResponse, AWSError>;
278 /**
279 * Retrieves a collection of resources, including folders and documents. The only CollectionType supported is SHARED_WITH_ME.
280 */
281 getResources(params: WorkDocs.Types.GetResourcesRequest, callback?: (err: AWSError, data: WorkDocs.Types.GetResourcesResponse) => void): Request<WorkDocs.Types.GetResourcesResponse, AWSError>;
282 /**
283 * Retrieves a collection of resources, including folders and documents. The only CollectionType supported is SHARED_WITH_ME.
284 */
285 getResources(callback?: (err: AWSError, data: WorkDocs.Types.GetResourcesResponse) => void): Request<WorkDocs.Types.GetResourcesResponse, AWSError>;
286 /**
287 * Creates a new document object and version object. The client specifies the parent folder ID and name of the document to upload. The ID is optionally specified when creating a new version of an existing document. This is the first step to upload a document. Next, upload the document to the URL returned from the call, and then call UpdateDocumentVersion. To cancel the document upload, call AbortDocumentVersionUpload.
288 */
289 initiateDocumentVersionUpload(params: WorkDocs.Types.InitiateDocumentVersionUploadRequest, callback?: (err: AWSError, data: WorkDocs.Types.InitiateDocumentVersionUploadResponse) => void): Request<WorkDocs.Types.InitiateDocumentVersionUploadResponse, AWSError>;
290 /**
291 * Creates a new document object and version object. The client specifies the parent folder ID and name of the document to upload. The ID is optionally specified when creating a new version of an existing document. This is the first step to upload a document. Next, upload the document to the URL returned from the call, and then call UpdateDocumentVersion. To cancel the document upload, call AbortDocumentVersionUpload.
292 */
293 initiateDocumentVersionUpload(callback?: (err: AWSError, data: WorkDocs.Types.InitiateDocumentVersionUploadResponse) => void): Request<WorkDocs.Types.InitiateDocumentVersionUploadResponse, AWSError>;
294 /**
295 * Removes all the permissions from the specified resource.
296 */
297 removeAllResourcePermissions(params: WorkDocs.Types.RemoveAllResourcePermissionsRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
298 /**
299 * Removes all the permissions from the specified resource.
300 */
301 removeAllResourcePermissions(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
302 /**
303 * Removes the permission for the specified principal from the specified resource.
304 */
305 removeResourcePermission(params: WorkDocs.Types.RemoveResourcePermissionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
306 /**
307 * Removes the permission for the specified principal from the specified resource.
308 */
309 removeResourcePermission(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
310 /**
311 * Updates the specified attributes of a document. The user must have access to both the document and its parent folder, if applicable.
312 */
313 updateDocument(params: WorkDocs.Types.UpdateDocumentRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
314 /**
315 * Updates the specified attributes of a document. The user must have access to both the document and its parent folder, if applicable.
316 */
317 updateDocument(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
318 /**
319 * Changes the status of the document version to ACTIVE. Amazon WorkDocs also sets its document container to ACTIVE. This is the last step in a document upload, after the client uploads the document to an S3-presigned URL returned by InitiateDocumentVersionUpload.
320 */
321 updateDocumentVersion(params: WorkDocs.Types.UpdateDocumentVersionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
322 /**
323 * Changes the status of the document version to ACTIVE. Amazon WorkDocs also sets its document container to ACTIVE. This is the last step in a document upload, after the client uploads the document to an S3-presigned URL returned by InitiateDocumentVersionUpload.
324 */
325 updateDocumentVersion(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
326 /**
327 * Updates the specified attributes of the specified folder. The user must have access to both the folder and its parent folder, if applicable.
328 */
329 updateFolder(params: WorkDocs.Types.UpdateFolderRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
330 /**
331 * Updates the specified attributes of the specified folder. The user must have access to both the folder and its parent folder, if applicable.
332 */
333 updateFolder(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
334 /**
335 * Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the Amazon WorkDocs site.
336 */
337 updateUser(params: WorkDocs.Types.UpdateUserRequest, callback?: (err: AWSError, data: WorkDocs.Types.UpdateUserResponse) => void): Request<WorkDocs.Types.UpdateUserResponse, AWSError>;
338 /**
339 * Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the Amazon WorkDocs site.
340 */
341 updateUser(callback?: (err: AWSError, data: WorkDocs.Types.UpdateUserResponse) => void): Request<WorkDocs.Types.UpdateUserResponse, AWSError>;
342}
343declare namespace WorkDocs {
344 export interface AbortDocumentVersionUploadRequest {
345 /**
346 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
347 */
348 AuthenticationToken?: AuthenticationHeaderType;
349 /**
350 * The ID of the document.
351 */
352 DocumentId: ResourceIdType;
353 /**
354 * The ID of the version.
355 */
356 VersionId: DocumentVersionIdType;
357 }
358 export interface ActivateUserRequest {
359 /**
360 * The ID of the user.
361 */
362 UserId: IdType;
363 /**
364 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
365 */
366 AuthenticationToken?: AuthenticationHeaderType;
367 }
368 export interface ActivateUserResponse {
369 /**
370 * The user information.
371 */
372 User?: User;
373 }
374 export interface Activity {
375 /**
376 * The activity type.
377 */
378 Type?: ActivityType;
379 /**
380 * The timestamp when the action was performed.
381 */
382 TimeStamp?: TimestampType;
383 /**
384 * Indicates whether an activity is indirect or direct. An indirect activity results from a direct activity performed on a parent resource. For example, sharing a parent folder (the direct activity) shares all of the subfolders and documents within the parent folder (the indirect activity).
385 */
386 IsIndirectActivity?: BooleanType;
387 /**
388 * The ID of the organization.
389 */
390 OrganizationId?: IdType;
391 /**
392 * The user who performed the action.
393 */
394 Initiator?: UserMetadata;
395 /**
396 * The list of users or groups impacted by this action. This is an optional field and is filled for the following sharing activities: DOCUMENT_SHARED, DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.
397 */
398 Participants?: Participants;
399 /**
400 * The metadata of the resource involved in the user action.
401 */
402 ResourceMetadata?: ResourceMetadata;
403 /**
404 * The original parent of the resource. This is an optional field and is filled for move activities.
405 */
406 OriginalParent?: ResourceMetadata;
407 /**
408 * Metadata of the commenting activity. This is an optional field and is filled for commenting activities.
409 */
410 CommentMetadata?: CommentMetadata;
411 }
412 export type ActivityNamesFilterType = string;
413 export type ActivityType = "DOCUMENT_CHECKED_IN"|"DOCUMENT_CHECKED_OUT"|"DOCUMENT_RENAMED"|"DOCUMENT_VERSION_UPLOADED"|"DOCUMENT_VERSION_DELETED"|"DOCUMENT_VERSION_VIEWED"|"DOCUMENT_VERSION_DOWNLOADED"|"DOCUMENT_RECYCLED"|"DOCUMENT_RESTORED"|"DOCUMENT_REVERTED"|"DOCUMENT_SHARED"|"DOCUMENT_UNSHARED"|"DOCUMENT_SHARE_PERMISSION_CHANGED"|"DOCUMENT_SHAREABLE_LINK_CREATED"|"DOCUMENT_SHAREABLE_LINK_REMOVED"|"DOCUMENT_SHAREABLE_LINK_PERMISSION_CHANGED"|"DOCUMENT_MOVED"|"DOCUMENT_COMMENT_ADDED"|"DOCUMENT_COMMENT_DELETED"|"DOCUMENT_ANNOTATION_ADDED"|"DOCUMENT_ANNOTATION_DELETED"|"FOLDER_CREATED"|"FOLDER_DELETED"|"FOLDER_RENAMED"|"FOLDER_RECYCLED"|"FOLDER_RESTORED"|"FOLDER_SHARED"|"FOLDER_UNSHARED"|"FOLDER_SHARE_PERMISSION_CHANGED"|"FOLDER_SHAREABLE_LINK_CREATED"|"FOLDER_SHAREABLE_LINK_REMOVED"|"FOLDER_SHAREABLE_LINK_PERMISSION_CHANGED"|"FOLDER_MOVED"|string;
414 export interface AddResourcePermissionsRequest {
415 /**
416 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
417 */
418 AuthenticationToken?: AuthenticationHeaderType;
419 /**
420 * The ID of the resource.
421 */
422 ResourceId: ResourceIdType;
423 /**
424 * The users, groups, or organization being granted permission.
425 */
426 Principals: SharePrincipalList;
427 /**
428 * The notification options.
429 */
430 NotificationOptions?: NotificationOptions;
431 }
432 export interface AddResourcePermissionsResponse {
433 /**
434 * The share results.
435 */
436 ShareResults?: ShareResultsList;
437 }
438 export type AuthenticationHeaderType = string;
439 export type BooleanEnumType = "TRUE"|"FALSE"|string;
440 export type BooleanType = boolean;
441 export interface Comment {
442 /**
443 * The ID of the comment.
444 */
445 CommentId: CommentIdType;
446 /**
447 * The ID of the parent comment.
448 */
449 ParentId?: CommentIdType;
450 /**
451 * The ID of the root comment in the thread.
452 */
453 ThreadId?: CommentIdType;
454 /**
455 * The text of the comment.
456 */
457 Text?: CommentTextType;
458 /**
459 * The details of the user who made the comment.
460 */
461 Contributor?: User;
462 /**
463 * The time that the comment was created.
464 */
465 CreatedTimestamp?: TimestampType;
466 /**
467 * The status of the comment.
468 */
469 Status?: CommentStatusType;
470 /**
471 * The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.
472 */
473 Visibility?: CommentVisibilityType;
474 /**
475 * If the comment is a reply to another user's comment, this field contains the user ID of the user being replied to.
476 */
477 RecipientId?: IdType;
478 }
479 export type CommentIdType = string;
480 export type CommentList = Comment[];
481 export interface CommentMetadata {
482 /**
483 * The ID of the comment.
484 */
485 CommentId?: CommentIdType;
486 /**
487 * The user who made the comment.
488 */
489 Contributor?: User;
490 /**
491 * The timestamp that the comment was created.
492 */
493 CreatedTimestamp?: TimestampType;
494 /**
495 * The status of the comment.
496 */
497 CommentStatus?: CommentStatusType;
498 /**
499 * The ID of the user being replied to.
500 */
501 RecipientId?: IdType;
502 }
503 export type CommentStatusType = "DRAFT"|"PUBLISHED"|"DELETED"|string;
504 export type CommentTextType = string;
505 export type CommentVisibilityType = "PUBLIC"|"PRIVATE"|string;
506 export interface CreateCommentRequest {
507 /**
508 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
509 */
510 AuthenticationToken?: AuthenticationHeaderType;
511 /**
512 * The ID of the document.
513 */
514 DocumentId: ResourceIdType;
515 /**
516 * The ID of the document version.
517 */
518 VersionId: DocumentVersionIdType;
519 /**
520 * The ID of the parent comment.
521 */
522 ParentId?: CommentIdType;
523 /**
524 * The ID of the root comment in the thread.
525 */
526 ThreadId?: CommentIdType;
527 /**
528 * The text of the comment.
529 */
530 Text: CommentTextType;
531 /**
532 * The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.
533 */
534 Visibility?: CommentVisibilityType;
535 /**
536 * Set this parameter to TRUE to send an email out to the document collaborators after the comment is created.
537 */
538 NotifyCollaborators?: BooleanType;
539 }
540 export interface CreateCommentResponse {
541 /**
542 * The comment that has been created.
543 */
544 Comment?: Comment;
545 }
546 export interface CreateCustomMetadataRequest {
547 /**
548 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
549 */
550 AuthenticationToken?: AuthenticationHeaderType;
551 /**
552 * The ID of the resource.
553 */
554 ResourceId: ResourceIdType;
555 /**
556 * The ID of the version, if the custom metadata is being added to a document version.
557 */
558 VersionId?: DocumentVersionIdType;
559 /**
560 * Custom metadata in the form of name-value pairs.
561 */
562 CustomMetadata: CustomMetadataMap;
563 }
564 export interface CreateCustomMetadataResponse {
565 }
566 export interface CreateFolderRequest {
567 /**
568 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
569 */
570 AuthenticationToken?: AuthenticationHeaderType;
571 /**
572 * The name of the new folder.
573 */
574 Name?: ResourceNameType;
575 /**
576 * The ID of the parent folder.
577 */
578 ParentFolderId: ResourceIdType;
579 }
580 export interface CreateFolderResponse {
581 /**
582 * The metadata of the folder.
583 */
584 Metadata?: FolderMetadata;
585 }
586 export interface CreateLabelsRequest {
587 /**
588 * The ID of the resource.
589 */
590 ResourceId: ResourceIdType;
591 /**
592 * List of labels to add to the resource.
593 */
594 Labels: SharedLabels;
595 /**
596 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
597 */
598 AuthenticationToken?: AuthenticationHeaderType;
599 }
600 export interface CreateLabelsResponse {
601 }
602 export interface CreateNotificationSubscriptionRequest {
603 /**
604 * The ID of the organization.
605 */
606 OrganizationId: IdType;
607 /**
608 * The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with https.
609 */
610 Endpoint: SubscriptionEndPointType;
611 /**
612 * The protocol to use. The supported value is https, which delivers JSON-encoded messages using HTTPS POST.
613 */
614 Protocol: SubscriptionProtocolType;
615 /**
616 * The notification type.
617 */
618 SubscriptionType: SubscriptionType;
619 }
620 export interface CreateNotificationSubscriptionResponse {
621 /**
622 * The subscription.
623 */
624 Subscription?: Subscription;
625 }
626 export interface CreateUserRequest {
627 /**
628 * The ID of the organization.
629 */
630 OrganizationId?: IdType;
631 /**
632 * The login name of the user.
633 */
634 Username: UsernameType;
635 /**
636 * The email address of the user.
637 */
638 EmailAddress?: EmailAddressType;
639 /**
640 * The given name of the user.
641 */
642 GivenName: UserAttributeValueType;
643 /**
644 * The surname of the user.
645 */
646 Surname: UserAttributeValueType;
647 /**
648 * The password of the user.
649 */
650 Password: PasswordType;
651 /**
652 * The time zone ID of the user.
653 */
654 TimeZoneId?: TimeZoneIdType;
655 /**
656 * The amount of storage for the user.
657 */
658 StorageRule?: StorageRuleType;
659 /**
660 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
661 */
662 AuthenticationToken?: AuthenticationHeaderType;
663 }
664 export interface CreateUserResponse {
665 /**
666 * The user information.
667 */
668 User?: User;
669 }
670 export type CustomMetadataKeyList = CustomMetadataKeyType[];
671 export type CustomMetadataKeyType = string;
672 export type CustomMetadataMap = {[key: string]: CustomMetadataValueType};
673 export type CustomMetadataValueType = string;
674 export interface DeactivateUserRequest {
675 /**
676 * The ID of the user.
677 */
678 UserId: IdType;
679 /**
680 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
681 */
682 AuthenticationToken?: AuthenticationHeaderType;
683 }
684 export interface DeleteCommentRequest {
685 /**
686 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
687 */
688 AuthenticationToken?: AuthenticationHeaderType;
689 /**
690 * The ID of the document.
691 */
692 DocumentId: ResourceIdType;
693 /**
694 * The ID of the document version.
695 */
696 VersionId: DocumentVersionIdType;
697 /**
698 * The ID of the comment.
699 */
700 CommentId: CommentIdType;
701 }
702 export interface DeleteCustomMetadataRequest {
703 /**
704 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
705 */
706 AuthenticationToken?: AuthenticationHeaderType;
707 /**
708 * The ID of the resource, either a document or folder.
709 */
710 ResourceId: ResourceIdType;
711 /**
712 * The ID of the version, if the custom metadata is being deleted from a document version.
713 */
714 VersionId?: DocumentVersionIdType;
715 /**
716 * List of properties to remove.
717 */
718 Keys?: CustomMetadataKeyList;
719 /**
720 * Flag to indicate removal of all custom metadata properties from the specified resource.
721 */
722 DeleteAll?: BooleanType;
723 }
724 export interface DeleteCustomMetadataResponse {
725 }
726 export interface DeleteDocumentRequest {
727 /**
728 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
729 */
730 AuthenticationToken?: AuthenticationHeaderType;
731 /**
732 * The ID of the document.
733 */
734 DocumentId: ResourceIdType;
735 }
736 export interface DeleteFolderContentsRequest {
737 /**
738 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
739 */
740 AuthenticationToken?: AuthenticationHeaderType;
741 /**
742 * The ID of the folder.
743 */
744 FolderId: ResourceIdType;
745 }
746 export interface DeleteFolderRequest {
747 /**
748 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
749 */
750 AuthenticationToken?: AuthenticationHeaderType;
751 /**
752 * The ID of the folder.
753 */
754 FolderId: ResourceIdType;
755 }
756 export interface DeleteLabelsRequest {
757 /**
758 * The ID of the resource.
759 */
760 ResourceId: ResourceIdType;
761 /**
762 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
763 */
764 AuthenticationToken?: AuthenticationHeaderType;
765 /**
766 * List of labels to delete from the resource.
767 */
768 Labels?: SharedLabels;
769 /**
770 * Flag to request removal of all labels from the specified resource.
771 */
772 DeleteAll?: BooleanType;
773 }
774 export interface DeleteLabelsResponse {
775 }
776 export interface DeleteNotificationSubscriptionRequest {
777 /**
778 * The ID of the subscription.
779 */
780 SubscriptionId: IdType;
781 /**
782 * The ID of the organization.
783 */
784 OrganizationId: IdType;
785 }
786 export interface DeleteUserRequest {
787 /**
788 * Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.
789 */
790 AuthenticationToken?: AuthenticationHeaderType;
791 /**
792 * The ID of the user.
793 */
794 UserId: IdType;
795 }
796 export interface DescribeActivitiesRequest {
797 /**
798 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
799 */
800 AuthenticationToken?: AuthenticationHeaderType;
801 /**
802 * The timestamp that determines the starting time of the activities. The response includes the activities performed after the specified timestamp.
803 */
804 StartTime?: TimestampType;
805 /**
806 * The timestamp that determines the end time of the activities. The response includes the activities performed before the specified timestamp.
807 */
808 EndTime?: TimestampType;
809 /**
810 * The ID of the organization. This is a mandatory parameter when using administrative API (SigV4) requests.
811 */
812 OrganizationId?: IdType;
813 /**
814 * Specifies which activity types to include in the response. If this field is left empty, all activity types are returned.
815 */
816 ActivityTypes?: ActivityNamesFilterType;
817 /**
818 * The document or folder ID for which to describe activity types.
819 */
820 ResourceId?: IdType;
821 /**
822 * The ID of the user who performed the action. The response includes activities pertaining to this user. This is an optional parameter and is only applicable for administrative API (SigV4) requests.
823 */
824 UserId?: IdType;
825 /**
826 * Includes indirect activities. An indirect activity results from a direct activity performed on a parent resource. For example, sharing a parent folder (the direct activity) shares all of the subfolders and documents within the parent folder (the indirect activity).
827 */
828 IncludeIndirectActivities?: BooleanType;
829 /**
830 * The maximum number of items to return.
831 */
832 Limit?: LimitType;
833 /**
834 * The marker for the next set of results.
835 */
836 Marker?: MarkerType;
837 }
838 export interface DescribeActivitiesResponse {
839 /**
840 * The list of activities for the specified user and time period.
841 */
842 UserActivities?: UserActivities;
843 /**
844 * The marker for the next set of results.
845 */
846 Marker?: MarkerType;
847 }
848 export interface DescribeCommentsRequest {
849 /**
850 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
851 */
852 AuthenticationToken?: AuthenticationHeaderType;
853 /**
854 * The ID of the document.
855 */
856 DocumentId: ResourceIdType;
857 /**
858 * The ID of the document version.
859 */
860 VersionId: DocumentVersionIdType;
861 /**
862 * The maximum number of items to return.
863 */
864 Limit?: LimitType;
865 /**
866 * The marker for the next set of results. This marker was received from a previous call.
867 */
868 Marker?: MarkerType;
869 }
870 export interface DescribeCommentsResponse {
871 /**
872 * The list of comments for the specified document version.
873 */
874 Comments?: CommentList;
875 /**
876 * The marker for the next set of results. This marker was received from a previous call.
877 */
878 Marker?: MarkerType;
879 }
880 export interface DescribeDocumentVersionsRequest {
881 /**
882 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
883 */
884 AuthenticationToken?: AuthenticationHeaderType;
885 /**
886 * The ID of the document.
887 */
888 DocumentId: ResourceIdType;
889 /**
890 * The marker for the next set of results. (You received this marker from a previous call.)
891 */
892 Marker?: PageMarkerType;
893 /**
894 * The maximum number of versions to return with this call.
895 */
896 Limit?: LimitType;
897 /**
898 * A comma-separated list of values. Specify "INITIALIZED" to include incomplete versions.
899 */
900 Include?: FieldNamesType;
901 /**
902 * Specify "SOURCE" to include initialized versions and a URL for the source document.
903 */
904 Fields?: FieldNamesType;
905 }
906 export interface DescribeDocumentVersionsResponse {
907 /**
908 * The document versions.
909 */
910 DocumentVersions?: DocumentVersionMetadataList;
911 /**
912 * The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
913 */
914 Marker?: PageMarkerType;
915 }
916 export interface DescribeFolderContentsRequest {
917 /**
918 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
919 */
920 AuthenticationToken?: AuthenticationHeaderType;
921 /**
922 * The ID of the folder.
923 */
924 FolderId: ResourceIdType;
925 /**
926 * The sorting criteria.
927 */
928 Sort?: ResourceSortType;
929 /**
930 * The order for the contents of the folder.
931 */
932 Order?: OrderType;
933 /**
934 * The maximum number of items to return with this call.
935 */
936 Limit?: LimitType;
937 /**
938 * The marker for the next set of results. This marker was received from a previous call.
939 */
940 Marker?: PageMarkerType;
941 /**
942 * The type of items.
943 */
944 Type?: FolderContentType;
945 /**
946 * The contents to include. Specify "INITIALIZED" to include initialized documents.
947 */
948 Include?: FieldNamesType;
949 }
950 export interface DescribeFolderContentsResponse {
951 /**
952 * The subfolders in the specified folder.
953 */
954 Folders?: FolderMetadataList;
955 /**
956 * The documents in the specified folder.
957 */
958 Documents?: DocumentMetadataList;
959 /**
960 * The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
961 */
962 Marker?: PageMarkerType;
963 }
964 export interface DescribeGroupsRequest {
965 /**
966 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
967 */
968 AuthenticationToken?: AuthenticationHeaderType;
969 /**
970 * A query to describe groups by group name.
971 */
972 SearchQuery: SearchQueryType;
973 /**
974 * The ID of the organization.
975 */
976 OrganizationId?: IdType;
977 /**
978 * The marker for the next set of results. (You received this marker from a previous call.)
979 */
980 Marker?: MarkerType;
981 /**
982 * The maximum number of items to return with this call.
983 */
984 Limit?: PositiveIntegerType;
985 }
986 export interface DescribeGroupsResponse {
987 /**
988 * The list of groups.
989 */
990 Groups?: GroupMetadataList;
991 /**
992 * The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
993 */
994 Marker?: MarkerType;
995 }
996 export interface DescribeNotificationSubscriptionsRequest {
997 /**
998 * The ID of the organization.
999 */
1000 OrganizationId: IdType;
1001 /**
1002 * The marker for the next set of results. (You received this marker from a previous call.)
1003 */
1004 Marker?: PageMarkerType;
1005 /**
1006 * The maximum number of items to return with this call.
1007 */
1008 Limit?: LimitType;
1009 }
1010 export interface DescribeNotificationSubscriptionsResponse {
1011 /**
1012 * The subscriptions.
1013 */
1014 Subscriptions?: SubscriptionList;
1015 /**
1016 * The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
1017 */
1018 Marker?: PageMarkerType;
1019 }
1020 export interface DescribeResourcePermissionsRequest {
1021 /**
1022 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
1023 */
1024 AuthenticationToken?: AuthenticationHeaderType;
1025 /**
1026 * The ID of the resource.
1027 */
1028 ResourceId: ResourceIdType;
1029 /**
1030 * The ID of the principal to filter permissions by.
1031 */
1032 PrincipalId?: IdType;
1033 /**
1034 * The maximum number of items to return with this call.
1035 */
1036 Limit?: LimitType;
1037 /**
1038 * The marker for the next set of results. (You received this marker from a previous call)
1039 */
1040 Marker?: PageMarkerType;
1041 }
1042 export interface DescribeResourcePermissionsResponse {
1043 /**
1044 * The principals.
1045 */
1046 Principals?: PrincipalList;
1047 /**
1048 * The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
1049 */
1050 Marker?: PageMarkerType;
1051 }
1052 export interface DescribeRootFoldersRequest {
1053 /**
1054 * Amazon WorkDocs authentication token.
1055 */
1056 AuthenticationToken: AuthenticationHeaderType;
1057 /**
1058 * The maximum number of items to return.
1059 */
1060 Limit?: LimitType;
1061 /**
1062 * The marker for the next set of results. (You received this marker from a previous call.)
1063 */
1064 Marker?: PageMarkerType;
1065 }
1066 export interface DescribeRootFoldersResponse {
1067 /**
1068 * The user's special folders.
1069 */
1070 Folders?: FolderMetadataList;
1071 /**
1072 * The marker for the next set of results.
1073 */
1074 Marker?: PageMarkerType;
1075 }
1076 export interface DescribeUsersRequest {
1077 /**
1078 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
1079 */
1080 AuthenticationToken?: AuthenticationHeaderType;
1081 /**
1082 * The ID of the organization.
1083 */
1084 OrganizationId?: IdType;
1085 /**
1086 * The IDs of the users.
1087 */
1088 UserIds?: UserIdsType;
1089 /**
1090 * A query to filter users by user name.
1091 */
1092 Query?: SearchQueryType;
1093 /**
1094 * The state of the users. Specify "ALL" to include inactive users.
1095 */
1096 Include?: UserFilterType;
1097 /**
1098 * The order for the results.
1099 */
1100 Order?: OrderType;
1101 /**
1102 * The sorting criteria.
1103 */
1104 Sort?: UserSortType;
1105 /**
1106 * The marker for the next set of results. (You received this marker from a previous call.)
1107 */
1108 Marker?: PageMarkerType;
1109 /**
1110 * The maximum number of items to return.
1111 */
1112 Limit?: LimitType;
1113 /**
1114 * A comma-separated list of values. Specify "STORAGE_METADATA" to include the user storage quota and utilization information.
1115 */
1116 Fields?: FieldNamesType;
1117 }
1118 export interface DescribeUsersResponse {
1119 /**
1120 * The users.
1121 */
1122 Users?: OrganizationUserList;
1123 /**
1124 * The total number of users included in the results.
1125 */
1126 TotalNumberOfUsers?: SizeType;
1127 /**
1128 * The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
1129 */
1130 Marker?: PageMarkerType;
1131 }
1132 export type DocumentContentType = string;
1133 export interface DocumentMetadata {
1134 /**
1135 * The ID of the document.
1136 */
1137 Id?: ResourceIdType;
1138 /**
1139 * The ID of the creator.
1140 */
1141 CreatorId?: IdType;
1142 /**
1143 * The ID of the parent folder.
1144 */
1145 ParentFolderId?: ResourceIdType;
1146 /**
1147 * The time when the document was created.
1148 */
1149 CreatedTimestamp?: TimestampType;
1150 /**
1151 * The time when the document was updated.
1152 */
1153 ModifiedTimestamp?: TimestampType;
1154 /**
1155 * The latest version of the document.
1156 */
1157 LatestVersionMetadata?: DocumentVersionMetadata;
1158 /**
1159 * The resource state.
1160 */
1161 ResourceState?: ResourceStateType;
1162 /**
1163 * List of labels on the document.
1164 */
1165 Labels?: SharedLabels;
1166 }
1167 export type DocumentMetadataList = DocumentMetadata[];
1168 export type DocumentSourceType = "ORIGINAL"|"WITH_COMMENTS"|string;
1169 export type DocumentSourceUrlMap = {[key: string]: UrlType};
1170 export type DocumentStatusType = "INITIALIZED"|"ACTIVE"|string;
1171 export type DocumentThumbnailType = "SMALL"|"SMALL_HQ"|"LARGE"|string;
1172 export type DocumentThumbnailUrlMap = {[key: string]: UrlType};
1173 export type DocumentVersionIdType = string;
1174 export interface DocumentVersionMetadata {
1175 /**
1176 * The ID of the version.
1177 */
1178 Id?: DocumentVersionIdType;
1179 /**
1180 * The name of the version.
1181 */
1182 Name?: ResourceNameType;
1183 /**
1184 * The content type of the document.
1185 */
1186 ContentType?: DocumentContentType;
1187 /**
1188 * The size of the document, in bytes.
1189 */
1190 Size?: SizeType;
1191 /**
1192 * The signature of the document.
1193 */
1194 Signature?: HashType;
1195 /**
1196 * The status of the document.
1197 */
1198 Status?: DocumentStatusType;
1199 /**
1200 * The timestamp when the document was first uploaded.
1201 */
1202 CreatedTimestamp?: TimestampType;
1203 /**
1204 * The timestamp when the document was last uploaded.
1205 */
1206 ModifiedTimestamp?: TimestampType;
1207 /**
1208 * The timestamp when the content of the document was originally created.
1209 */
1210 ContentCreatedTimestamp?: TimestampType;
1211 /**
1212 * The timestamp when the content of the document was modified.
1213 */
1214 ContentModifiedTimestamp?: TimestampType;
1215 /**
1216 * The ID of the creator.
1217 */
1218 CreatorId?: IdType;
1219 /**
1220 * The thumbnail of the document.
1221 */
1222 Thumbnail?: DocumentThumbnailUrlMap;
1223 /**
1224 * The source of the document.
1225 */
1226 Source?: DocumentSourceUrlMap;
1227 }
1228 export type DocumentVersionMetadataList = DocumentVersionMetadata[];
1229 export type DocumentVersionStatus = "ACTIVE"|string;
1230 export type EmailAddressType = string;
1231 export type FieldNamesType = string;
1232 export type FolderContentType = "ALL"|"DOCUMENT"|"FOLDER"|string;
1233 export interface FolderMetadata {
1234 /**
1235 * The ID of the folder.
1236 */
1237 Id?: ResourceIdType;
1238 /**
1239 * The name of the folder.
1240 */
1241 Name?: ResourceNameType;
1242 /**
1243 * The ID of the creator.
1244 */
1245 CreatorId?: IdType;
1246 /**
1247 * The ID of the parent folder.
1248 */
1249 ParentFolderId?: ResourceIdType;
1250 /**
1251 * The time when the folder was created.
1252 */
1253 CreatedTimestamp?: TimestampType;
1254 /**
1255 * The time when the folder was updated.
1256 */
1257 ModifiedTimestamp?: TimestampType;
1258 /**
1259 * The resource state of the folder.
1260 */
1261 ResourceState?: ResourceStateType;
1262 /**
1263 * The unique identifier created from the subfolders and documents of the folder.
1264 */
1265 Signature?: HashType;
1266 /**
1267 * List of labels on the folder.
1268 */
1269 Labels?: SharedLabels;
1270 /**
1271 * The size of the folder metadata.
1272 */
1273 Size?: SizeType;
1274 /**
1275 * The size of the latest version of the folder metadata.
1276 */
1277 LatestVersionSize?: SizeType;
1278 }
1279 export type FolderMetadataList = FolderMetadata[];
1280 export interface GetCurrentUserRequest {
1281 /**
1282 * Amazon WorkDocs authentication token.
1283 */
1284 AuthenticationToken: AuthenticationHeaderType;
1285 }
1286 export interface GetCurrentUserResponse {
1287 /**
1288 * Metadata of the user.
1289 */
1290 User?: User;
1291 }
1292 export interface GetDocumentPathRequest {
1293 /**
1294 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
1295 */
1296 AuthenticationToken?: AuthenticationHeaderType;
1297 /**
1298 * The ID of the document.
1299 */
1300 DocumentId: IdType;
1301 /**
1302 * The maximum number of levels in the hierarchy to return.
1303 */
1304 Limit?: LimitType;
1305 /**
1306 * A comma-separated list of values. Specify NAME to include the names of the parent folders.
1307 */
1308 Fields?: FieldNamesType;
1309 /**
1310 * This value is not supported.
1311 */
1312 Marker?: PageMarkerType;
1313 }
1314 export interface GetDocumentPathResponse {
1315 /**
1316 * The path information.
1317 */
1318 Path?: ResourcePath;
1319 }
1320 export interface GetDocumentRequest {
1321 /**
1322 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
1323 */
1324 AuthenticationToken?: AuthenticationHeaderType;
1325 /**
1326 * The ID of the document.
1327 */
1328 DocumentId: ResourceIdType;
1329 /**
1330 * Set this to TRUE to include custom metadata in the response.
1331 */
1332 IncludeCustomMetadata?: BooleanType;
1333 }
1334 export interface GetDocumentResponse {
1335 /**
1336 * The metadata details of the document.
1337 */
1338 Metadata?: DocumentMetadata;
1339 /**
1340 * The custom metadata on the document.
1341 */
1342 CustomMetadata?: CustomMetadataMap;
1343 }
1344 export interface GetDocumentVersionRequest {
1345 /**
1346 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
1347 */
1348 AuthenticationToken?: AuthenticationHeaderType;
1349 /**
1350 * The ID of the document.
1351 */
1352 DocumentId: ResourceIdType;
1353 /**
1354 * The version ID of the document.
1355 */
1356 VersionId: DocumentVersionIdType;
1357 /**
1358 * A comma-separated list of values. Specify "SOURCE" to include a URL for the source document.
1359 */
1360 Fields?: FieldNamesType;
1361 /**
1362 * Set this to TRUE to include custom metadata in the response.
1363 */
1364 IncludeCustomMetadata?: BooleanType;
1365 }
1366 export interface GetDocumentVersionResponse {
1367 /**
1368 * The version metadata.
1369 */
1370 Metadata?: DocumentVersionMetadata;
1371 /**
1372 * The custom metadata on the document version.
1373 */
1374 CustomMetadata?: CustomMetadataMap;
1375 }
1376 export interface GetFolderPathRequest {
1377 /**
1378 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
1379 */
1380 AuthenticationToken?: AuthenticationHeaderType;
1381 /**
1382 * The ID of the folder.
1383 */
1384 FolderId: IdType;
1385 /**
1386 * The maximum number of levels in the hierarchy to return.
1387 */
1388 Limit?: LimitType;
1389 /**
1390 * A comma-separated list of values. Specify "NAME" to include the names of the parent folders.
1391 */
1392 Fields?: FieldNamesType;
1393 /**
1394 * This value is not supported.
1395 */
1396 Marker?: PageMarkerType;
1397 }
1398 export interface GetFolderPathResponse {
1399 /**
1400 * The path information.
1401 */
1402 Path?: ResourcePath;
1403 }
1404 export interface GetFolderRequest {
1405 /**
1406 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
1407 */
1408 AuthenticationToken?: AuthenticationHeaderType;
1409 /**
1410 * The ID of the folder.
1411 */
1412 FolderId: ResourceIdType;
1413 /**
1414 * Set to TRUE to include custom metadata in the response.
1415 */
1416 IncludeCustomMetadata?: BooleanType;
1417 }
1418 export interface GetFolderResponse {
1419 /**
1420 * The metadata of the folder.
1421 */
1422 Metadata?: FolderMetadata;
1423 /**
1424 * The custom metadata on the folder.
1425 */
1426 CustomMetadata?: CustomMetadataMap;
1427 }
1428 export interface GetResourcesRequest {
1429 /**
1430 * The Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
1431 */
1432 AuthenticationToken?: AuthenticationHeaderType;
1433 /**
1434 * The user ID for the resource collection. This is a required field for accessing the API operation using IAM credentials.
1435 */
1436 UserId?: IdType;
1437 /**
1438 * The collection type.
1439 */
1440 CollectionType?: ResourceCollectionType;
1441 /**
1442 * The maximum number of resources to return.
1443 */
1444 Limit?: LimitType;
1445 /**
1446 * The marker for the next set of results. This marker was received from a previous call.
1447 */
1448 Marker?: PageMarkerType;
1449 }
1450 export interface GetResourcesResponse {
1451 /**
1452 * The folders in the specified folder.
1453 */
1454 Folders?: FolderMetadataList;
1455 /**
1456 * The documents in the specified collection.
1457 */
1458 Documents?: DocumentMetadataList;
1459 /**
1460 * The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
1461 */
1462 Marker?: PageMarkerType;
1463 }
1464 export interface GroupMetadata {
1465 /**
1466 * The ID of the user group.
1467 */
1468 Id?: IdType;
1469 /**
1470 * The name of the group.
1471 */
1472 Name?: GroupNameType;
1473 }
1474 export type GroupMetadataList = GroupMetadata[];
1475 export type GroupNameType = string;
1476 export type HashType = string;
1477 export type HeaderNameType = string;
1478 export type HeaderValueType = string;
1479 export type IdType = string;
1480 export interface InitiateDocumentVersionUploadRequest {
1481 /**
1482 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
1483 */
1484 AuthenticationToken?: AuthenticationHeaderType;
1485 /**
1486 * The ID of the document.
1487 */
1488 Id?: ResourceIdType;
1489 /**
1490 * The name of the document.
1491 */
1492 Name?: ResourceNameType;
1493 /**
1494 * The timestamp when the content of the document was originally created.
1495 */
1496 ContentCreatedTimestamp?: TimestampType;
1497 /**
1498 * The timestamp when the content of the document was modified.
1499 */
1500 ContentModifiedTimestamp?: TimestampType;
1501 /**
1502 * The content type of the document.
1503 */
1504 ContentType?: DocumentContentType;
1505 /**
1506 * The size of the document, in bytes.
1507 */
1508 DocumentSizeInBytes?: SizeType;
1509 /**
1510 * The ID of the parent folder.
1511 */
1512 ParentFolderId: ResourceIdType;
1513 }
1514 export interface InitiateDocumentVersionUploadResponse {
1515 /**
1516 * The document metadata.
1517 */
1518 Metadata?: DocumentMetadata;
1519 /**
1520 * The upload metadata.
1521 */
1522 UploadMetadata?: UploadMetadata;
1523 }
1524 export type LimitType = number;
1525 export type LocaleType = "en"|"fr"|"ko"|"de"|"es"|"ja"|"ru"|"zh_CN"|"zh_TW"|"pt_BR"|"default"|string;
1526 export type MarkerType = string;
1527 export type MessageType = string;
1528 export interface NotificationOptions {
1529 /**
1530 * Boolean value to indicate an email notification should be sent to the receipients.
1531 */
1532 SendEmail?: BooleanType;
1533 /**
1534 * Text value to be included in the email body.
1535 */
1536 EmailMessage?: MessageType;
1537 }
1538 export type OrderType = "ASCENDING"|"DESCENDING"|string;
1539 export type OrganizationUserList = User[];
1540 export type PageMarkerType = string;
1541 export interface Participants {
1542 /**
1543 * The list of users.
1544 */
1545 Users?: UserMetadataList;
1546 /**
1547 * The list of user groups.
1548 */
1549 Groups?: GroupMetadataList;
1550 }
1551 export type PasswordType = string;
1552 export interface PermissionInfo {
1553 /**
1554 * The role of the user.
1555 */
1556 Role?: RoleType;
1557 /**
1558 * The type of permissions.
1559 */
1560 Type?: RolePermissionType;
1561 }
1562 export type PermissionInfoList = PermissionInfo[];
1563 export type PositiveIntegerType = number;
1564 export type PositiveSizeType = number;
1565 export interface Principal {
1566 /**
1567 * The ID of the resource.
1568 */
1569 Id?: IdType;
1570 /**
1571 * The type of resource.
1572 */
1573 Type?: PrincipalType;
1574 /**
1575 * The permission information for the resource.
1576 */
1577 Roles?: PermissionInfoList;
1578 }
1579 export type PrincipalList = Principal[];
1580 export type PrincipalType = "USER"|"GROUP"|"INVITE"|"ANONYMOUS"|"ORGANIZATION"|string;
1581 export interface RemoveAllResourcePermissionsRequest {
1582 /**
1583 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
1584 */
1585 AuthenticationToken?: AuthenticationHeaderType;
1586 /**
1587 * The ID of the resource.
1588 */
1589 ResourceId: ResourceIdType;
1590 }
1591 export interface RemoveResourcePermissionRequest {
1592 /**
1593 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
1594 */
1595 AuthenticationToken?: AuthenticationHeaderType;
1596 /**
1597 * The ID of the resource.
1598 */
1599 ResourceId: ResourceIdType;
1600 /**
1601 * The principal ID of the resource.
1602 */
1603 PrincipalId: IdType;
1604 /**
1605 * The principal type of the resource.
1606 */
1607 PrincipalType?: PrincipalType;
1608 }
1609 export type ResourceCollectionType = "SHARED_WITH_ME"|string;
1610 export type ResourceIdType = string;
1611 export interface ResourceMetadata {
1612 /**
1613 * The type of resource.
1614 */
1615 Type?: ResourceType;
1616 /**
1617 * The name of the resource.
1618 */
1619 Name?: ResourceNameType;
1620 /**
1621 * The original name of the resource before a rename operation.
1622 */
1623 OriginalName?: ResourceNameType;
1624 /**
1625 * The ID of the resource.
1626 */
1627 Id?: ResourceIdType;
1628 /**
1629 * The version ID of the resource. This is an optional field and is filled for action on document version.
1630 */
1631 VersionId?: DocumentVersionIdType;
1632 /**
1633 * The owner of the resource.
1634 */
1635 Owner?: UserMetadata;
1636 /**
1637 * The parent ID of the resource before a rename operation.
1638 */
1639 ParentId?: ResourceIdType;
1640 }
1641 export type ResourceNameType = string;
1642 export interface ResourcePath {
1643 /**
1644 * The components of the resource path.
1645 */
1646 Components?: ResourcePathComponentList;
1647 }
1648 export interface ResourcePathComponent {
1649 /**
1650 * The ID of the resource path.
1651 */
1652 Id?: IdType;
1653 /**
1654 * The name of the resource path.
1655 */
1656 Name?: ResourceNameType;
1657 }
1658 export type ResourcePathComponentList = ResourcePathComponent[];
1659 export type ResourceSortType = "DATE"|"NAME"|string;
1660 export type ResourceStateType = "ACTIVE"|"RESTORING"|"RECYCLING"|"RECYCLED"|string;
1661 export type ResourceType = "FOLDER"|"DOCUMENT"|string;
1662 export type RolePermissionType = "DIRECT"|"INHERITED"|string;
1663 export type RoleType = "VIEWER"|"CONTRIBUTOR"|"OWNER"|"COOWNER"|string;
1664 export type SearchQueryType = string;
1665 export interface SharePrincipal {
1666 /**
1667 * The ID of the recipient.
1668 */
1669 Id: IdType;
1670 /**
1671 * The type of the recipient.
1672 */
1673 Type: PrincipalType;
1674 /**
1675 * The role of the recipient.
1676 */
1677 Role: RoleType;
1678 }
1679 export type SharePrincipalList = SharePrincipal[];
1680 export interface ShareResult {
1681 /**
1682 * The ID of the principal.
1683 */
1684 PrincipalId?: IdType;
1685 /**
1686 * The ID of the invited user.
1687 */
1688 InviteePrincipalId?: IdType;
1689 /**
1690 * The role.
1691 */
1692 Role?: RoleType;
1693 /**
1694 * The status.
1695 */
1696 Status?: ShareStatusType;
1697 /**
1698 * The ID of the resource that was shared.
1699 */
1700 ShareId?: ResourceIdType;
1701 /**
1702 * The status message.
1703 */
1704 StatusMessage?: MessageType;
1705 }
1706 export type ShareResultsList = ShareResult[];
1707 export type ShareStatusType = "SUCCESS"|"FAILURE"|string;
1708 export type SharedLabel = string;
1709 export type SharedLabels = SharedLabel[];
1710 export type SignedHeaderMap = {[key: string]: HeaderValueType};
1711 export type SizeType = number;
1712 export interface StorageRuleType {
1713 /**
1714 * The amount of storage allocated, in bytes.
1715 */
1716 StorageAllocatedInBytes?: PositiveSizeType;
1717 /**
1718 * The type of storage.
1719 */
1720 StorageType?: StorageType;
1721 }
1722 export type StorageType = "UNLIMITED"|"QUOTA"|string;
1723 export interface Subscription {
1724 /**
1725 * The ID of the subscription.
1726 */
1727 SubscriptionId?: IdType;
1728 /**
1729 * The endpoint of the subscription.
1730 */
1731 EndPoint?: SubscriptionEndPointType;
1732 /**
1733 * The protocol of the subscription.
1734 */
1735 Protocol?: SubscriptionProtocolType;
1736 }
1737 export type SubscriptionEndPointType = string;
1738 export type SubscriptionList = Subscription[];
1739 export type SubscriptionProtocolType = "HTTPS"|string;
1740 export type SubscriptionType = "ALL"|string;
1741 export type TimeZoneIdType = string;
1742 export type TimestampType = Date;
1743 export interface UpdateDocumentRequest {
1744 /**
1745 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
1746 */
1747 AuthenticationToken?: AuthenticationHeaderType;
1748 /**
1749 * The ID of the document.
1750 */
1751 DocumentId: ResourceIdType;
1752 /**
1753 * The name of the document.
1754 */
1755 Name?: ResourceNameType;
1756 /**
1757 * The ID of the parent folder.
1758 */
1759 ParentFolderId?: ResourceIdType;
1760 /**
1761 * The resource state of the document. Only ACTIVE and RECYCLED are supported.
1762 */
1763 ResourceState?: ResourceStateType;
1764 }
1765 export interface UpdateDocumentVersionRequest {
1766 /**
1767 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
1768 */
1769 AuthenticationToken?: AuthenticationHeaderType;
1770 /**
1771 * The ID of the document.
1772 */
1773 DocumentId: ResourceIdType;
1774 /**
1775 * The version ID of the document.
1776 */
1777 VersionId: DocumentVersionIdType;
1778 /**
1779 * The status of the version.
1780 */
1781 VersionStatus?: DocumentVersionStatus;
1782 }
1783 export interface UpdateFolderRequest {
1784 /**
1785 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
1786 */
1787 AuthenticationToken?: AuthenticationHeaderType;
1788 /**
1789 * The ID of the folder.
1790 */
1791 FolderId: ResourceIdType;
1792 /**
1793 * The name of the folder.
1794 */
1795 Name?: ResourceNameType;
1796 /**
1797 * The ID of the parent folder.
1798 */
1799 ParentFolderId?: ResourceIdType;
1800 /**
1801 * The resource state of the folder. Only ACTIVE and RECYCLED are accepted values from the API.
1802 */
1803 ResourceState?: ResourceStateType;
1804 }
1805 export interface UpdateUserRequest {
1806 /**
1807 * Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
1808 */
1809 AuthenticationToken?: AuthenticationHeaderType;
1810 /**
1811 * The ID of the user.
1812 */
1813 UserId: IdType;
1814 /**
1815 * The given name of the user.
1816 */
1817 GivenName?: UserAttributeValueType;
1818 /**
1819 * The surname of the user.
1820 */
1821 Surname?: UserAttributeValueType;
1822 /**
1823 * The type of the user.
1824 */
1825 Type?: UserType;
1826 /**
1827 * The amount of storage for the user.
1828 */
1829 StorageRule?: StorageRuleType;
1830 /**
1831 * The time zone ID of the user.
1832 */
1833 TimeZoneId?: TimeZoneIdType;
1834 /**
1835 * The locale of the user.
1836 */
1837 Locale?: LocaleType;
1838 /**
1839 * Boolean value to determine whether the user is granted Poweruser privileges.
1840 */
1841 GrantPoweruserPrivileges?: BooleanEnumType;
1842 }
1843 export interface UpdateUserResponse {
1844 /**
1845 * The user information.
1846 */
1847 User?: User;
1848 }
1849 export interface UploadMetadata {
1850 /**
1851 * The URL of the upload.
1852 */
1853 UploadUrl?: UrlType;
1854 /**
1855 * The signed headers.
1856 */
1857 SignedHeaders?: SignedHeaderMap;
1858 }
1859 export type UrlType = string;
1860 export interface User {
1861 /**
1862 * The ID of the user.
1863 */
1864 Id?: IdType;
1865 /**
1866 * The login name of the user.
1867 */
1868 Username?: UsernameType;
1869 /**
1870 * The email address of the user.
1871 */
1872 EmailAddress?: EmailAddressType;
1873 /**
1874 * The given name of the user.
1875 */
1876 GivenName?: UserAttributeValueType;
1877 /**
1878 * The surname of the user.
1879 */
1880 Surname?: UserAttributeValueType;
1881 /**
1882 * The ID of the organization.
1883 */
1884 OrganizationId?: IdType;
1885 /**
1886 * The ID of the root folder.
1887 */
1888 RootFolderId?: ResourceIdType;
1889 /**
1890 * The ID of the recycle bin folder.
1891 */
1892 RecycleBinFolderId?: ResourceIdType;
1893 /**
1894 * The status of the user.
1895 */
1896 Status?: UserStatusType;
1897 /**
1898 * The type of user.
1899 */
1900 Type?: UserType;
1901 /**
1902 * The time when the user was created.
1903 */
1904 CreatedTimestamp?: TimestampType;
1905 /**
1906 * The time when the user was modified.
1907 */
1908 ModifiedTimestamp?: TimestampType;
1909 /**
1910 * The time zone ID of the user.
1911 */
1912 TimeZoneId?: TimeZoneIdType;
1913 /**
1914 * The locale of the user.
1915 */
1916 Locale?: LocaleType;
1917 /**
1918 * The storage for the user.
1919 */
1920 Storage?: UserStorageMetadata;
1921 }
1922 export type UserActivities = Activity[];
1923 export type UserAttributeValueType = string;
1924 export type UserFilterType = "ALL"|"ACTIVE_PENDING"|string;
1925 export type UserIdsType = string;
1926 export interface UserMetadata {
1927 /**
1928 * The ID of the user.
1929 */
1930 Id?: IdType;
1931 /**
1932 * The name of the user.
1933 */
1934 Username?: UsernameType;
1935 /**
1936 * The given name of the user before a rename operation.
1937 */
1938 GivenName?: UserAttributeValueType;
1939 /**
1940 * The surname of the user.
1941 */
1942 Surname?: UserAttributeValueType;
1943 /**
1944 * The email address of the user.
1945 */
1946 EmailAddress?: EmailAddressType;
1947 }
1948 export type UserMetadataList = UserMetadata[];
1949 export type UserSortType = "USER_NAME"|"FULL_NAME"|"STORAGE_LIMIT"|"USER_STATUS"|"STORAGE_USED"|string;
1950 export type UserStatusType = "ACTIVE"|"INACTIVE"|"PENDING"|string;
1951 export interface UserStorageMetadata {
1952 /**
1953 * The amount of storage used, in bytes.
1954 */
1955 StorageUtilizedInBytes?: SizeType;
1956 /**
1957 * The storage for a user.
1958 */
1959 StorageRule?: StorageRuleType;
1960 }
1961 export type UserType = "USER"|"ADMIN"|"POWERUSER"|"MINIMALUSER"|"WORKSPACESUSER"|string;
1962 export type UsernameType = string;
1963 /**
1964 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1965 */
1966 export type apiVersion = "2016-05-01"|"latest"|string;
1967 export interface ClientApiVersions {
1968 /**
1969 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1970 */
1971 apiVersion?: apiVersion;
1972 }
1973 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
1974 /**
1975 * Contains interfaces for use with the WorkDocs client.
1976 */
1977 export import Types = WorkDocs;
1978}
1979export = WorkDocs;