@aws-sdk/client-workdocs 3.476.0 → 3.478.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/pagination/DescribeActivitiesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeCommentsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeDocumentVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeFolderContentsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeNotificationSubscriptionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeResourcePermissionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeRootFoldersPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeUsersPaginator.js +2 -24
- package/dist-cjs/pagination/SearchResourcesPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +379 -688
- package/dist-es/pagination/DescribeActivitiesPaginator.js +2 -23
- package/dist-es/pagination/DescribeCommentsPaginator.js +2 -23
- package/dist-es/pagination/DescribeDocumentVersionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeFolderContentsPaginator.js +2 -23
- package/dist-es/pagination/DescribeGroupsPaginator.js +2 -23
- package/dist-es/pagination/DescribeNotificationSubscriptionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeResourcePermissionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeRootFoldersPaginator.js +2 -23
- package/dist-es/pagination/DescribeUsersPaginator.js +2 -23
- package/dist-es/pagination/SearchResourcesPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +380 -689
- package/dist-types/pagination/DescribeActivitiesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeCommentsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeDocumentVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeFolderContentsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeNotificationSubscriptionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeResourcePermissionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeRootFoldersPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeUsersPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchResourcesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeActivitiesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeCommentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeDocumentVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeFolderContentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeNotificationSubscriptionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeResourcePermissionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeRootFoldersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeUsersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchResourcesPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -2,85 +2,61 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_CreateFolderCommand = exports.de_CreateCustomMetadataCommand = exports.de_CreateCommentCommand = exports.de_AddResourcePermissionsCommand = exports.de_ActivateUserCommand = exports.de_AbortDocumentVersionUploadCommand = exports.se_UpdateUserCommand = exports.se_UpdateFolderCommand = exports.se_UpdateDocumentVersionCommand = exports.se_UpdateDocumentCommand = exports.se_SearchResourcesCommand = exports.se_RestoreDocumentVersionsCommand = exports.se_RemoveResourcePermissionCommand = exports.se_RemoveAllResourcePermissionsCommand = exports.se_InitiateDocumentVersionUploadCommand = exports.se_GetResourcesCommand = exports.se_GetFolderPathCommand = exports.se_GetFolderCommand = exports.se_GetDocumentVersionCommand = exports.se_GetDocumentPathCommand = exports.se_GetDocumentCommand = exports.se_GetCurrentUserCommand = exports.se_DescribeUsersCommand = exports.se_DescribeRootFoldersCommand = exports.se_DescribeResourcePermissionsCommand = exports.se_DescribeNotificationSubscriptionsCommand = exports.se_DescribeGroupsCommand = exports.se_DescribeFolderContentsCommand = exports.se_DescribeDocumentVersionsCommand = exports.se_DescribeCommentsCommand = exports.se_DescribeActivitiesCommand = exports.se_DeleteUserCommand = exports.se_DeleteNotificationSubscriptionCommand = exports.se_DeleteLabelsCommand = exports.se_DeleteFolderContentsCommand = exports.se_DeleteFolderCommand = exports.se_DeleteDocumentVersionCommand = exports.se_DeleteDocumentCommand = exports.se_DeleteCustomMetadataCommand = exports.se_DeleteCommentCommand = exports.se_DeactivateUserCommand = exports.se_CreateUserCommand = exports.se_CreateNotificationSubscriptionCommand = exports.se_CreateLabelsCommand = exports.se_CreateFolderCommand = exports.se_CreateCustomMetadataCommand = exports.se_CreateCommentCommand = exports.se_AddResourcePermissionsCommand = exports.se_ActivateUserCommand = exports.se_AbortDocumentVersionUploadCommand = void 0;
|
|
4
4
|
exports.de_UpdateUserCommand = exports.de_UpdateFolderCommand = exports.de_UpdateDocumentVersionCommand = exports.de_UpdateDocumentCommand = exports.de_SearchResourcesCommand = exports.de_RestoreDocumentVersionsCommand = exports.de_RemoveResourcePermissionCommand = exports.de_RemoveAllResourcePermissionsCommand = exports.de_InitiateDocumentVersionUploadCommand = exports.de_GetResourcesCommand = exports.de_GetFolderPathCommand = exports.de_GetFolderCommand = exports.de_GetDocumentVersionCommand = exports.de_GetDocumentPathCommand = exports.de_GetDocumentCommand = exports.de_GetCurrentUserCommand = exports.de_DescribeUsersCommand = exports.de_DescribeRootFoldersCommand = exports.de_DescribeResourcePermissionsCommand = exports.de_DescribeNotificationSubscriptionsCommand = exports.de_DescribeGroupsCommand = exports.de_DescribeFolderContentsCommand = exports.de_DescribeDocumentVersionsCommand = exports.de_DescribeCommentsCommand = exports.de_DescribeActivitiesCommand = exports.de_DeleteUserCommand = exports.de_DeleteNotificationSubscriptionCommand = exports.de_DeleteLabelsCommand = exports.de_DeleteFolderContentsCommand = exports.de_DeleteFolderCommand = exports.de_DeleteDocumentVersionCommand = exports.de_DeleteDocumentCommand = exports.de_DeleteCustomMetadataCommand = exports.de_DeleteCommentCommand = exports.de_DeactivateUserCommand = exports.de_CreateUserCommand = exports.de_CreateNotificationSubscriptionCommand = exports.de_CreateLabelsCommand = void 0;
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const WorkDocsServiceException_1 = require("../models/WorkDocsServiceException");
|
|
9
9
|
const se_AbortDocumentVersionUploadCommand = async (input, context) => {
|
|
10
|
-
const
|
|
10
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
11
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
12
|
-
|
|
12
|
+
[_a]: input[_AT],
|
|
13
13
|
});
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionId", () => input.VersionId, "{VersionId}", false);
|
|
14
|
+
b.bp("/api/v1/documents/{DocumentId}/versions/{VersionId}");
|
|
15
|
+
b.p("DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
16
|
+
b.p("VersionId", () => input.VersionId, "{VersionId}", false);
|
|
18
17
|
let body;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
hostname,
|
|
22
|
-
port,
|
|
23
|
-
method: "DELETE",
|
|
24
|
-
headers,
|
|
25
|
-
path: resolvedPath,
|
|
26
|
-
body,
|
|
27
|
-
});
|
|
18
|
+
b.m("DELETE").h(headers).b(body);
|
|
19
|
+
return b.build();
|
|
28
20
|
};
|
|
29
21
|
exports.se_AbortDocumentVersionUploadCommand = se_AbortDocumentVersionUploadCommand;
|
|
30
22
|
const se_ActivateUserCommand = async (input, context) => {
|
|
31
|
-
const
|
|
23
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
32
24
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
33
|
-
|
|
25
|
+
[_a]: input[_AT],
|
|
34
26
|
});
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
b.bp("/api/v1/users/{UserId}/activation");
|
|
28
|
+
b.p("UserId", () => input.UserId, "{UserId}", false);
|
|
37
29
|
let body;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
hostname,
|
|
41
|
-
port,
|
|
42
|
-
method: "POST",
|
|
43
|
-
headers,
|
|
44
|
-
path: resolvedPath,
|
|
45
|
-
body,
|
|
46
|
-
});
|
|
30
|
+
b.m("POST").h(headers).b(body);
|
|
31
|
+
return b.build();
|
|
47
32
|
};
|
|
48
33
|
exports.se_ActivateUserCommand = se_ActivateUserCommand;
|
|
49
34
|
const se_AddResourcePermissionsCommand = async (input, context) => {
|
|
50
|
-
const
|
|
35
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
51
36
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
52
37
|
"content-type": "application/json",
|
|
53
|
-
|
|
38
|
+
[_a]: input[_AT],
|
|
54
39
|
});
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
40
|
+
b.bp("/api/v1/resources/{ResourceId}/permissions");
|
|
41
|
+
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
58
42
|
let body;
|
|
59
43
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
60
44
|
NotificationOptions: (_) => (0, smithy_client_1._json)(_),
|
|
61
45
|
Principals: (_) => (0, smithy_client_1._json)(_),
|
|
62
46
|
}));
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
hostname,
|
|
66
|
-
port,
|
|
67
|
-
method: "POST",
|
|
68
|
-
headers,
|
|
69
|
-
path: resolvedPath,
|
|
70
|
-
body,
|
|
71
|
-
});
|
|
47
|
+
b.m("POST").h(headers).b(body);
|
|
48
|
+
return b.build();
|
|
72
49
|
};
|
|
73
50
|
exports.se_AddResourcePermissionsCommand = se_AddResourcePermissionsCommand;
|
|
74
51
|
const se_CreateCommentCommand = async (input, context) => {
|
|
75
|
-
const
|
|
52
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
76
53
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
77
54
|
"content-type": "application/json",
|
|
78
|
-
|
|
55
|
+
[_a]: input[_AT],
|
|
79
56
|
});
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionId", () => input.VersionId, "{VersionId}", false);
|
|
57
|
+
b.bp("/api/v1/documents/{DocumentId}/versions/{VersionId}/comment");
|
|
58
|
+
b.p("DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
59
|
+
b.p("VersionId", () => input.VersionId, "{VersionId}", false);
|
|
84
60
|
let body;
|
|
85
61
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
86
62
|
NotifyCollaborators: [],
|
|
@@ -89,123 +65,85 @@ const se_CreateCommentCommand = async (input, context) => {
|
|
|
89
65
|
ThreadId: [],
|
|
90
66
|
Visibility: [],
|
|
91
67
|
}));
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
hostname,
|
|
95
|
-
port,
|
|
96
|
-
method: "POST",
|
|
97
|
-
headers,
|
|
98
|
-
path: resolvedPath,
|
|
99
|
-
body,
|
|
100
|
-
});
|
|
68
|
+
b.m("POST").h(headers).b(body);
|
|
69
|
+
return b.build();
|
|
101
70
|
};
|
|
102
71
|
exports.se_CreateCommentCommand = se_CreateCommentCommand;
|
|
103
72
|
const se_CreateCustomMetadataCommand = async (input, context) => {
|
|
104
|
-
const
|
|
73
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
105
74
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
106
75
|
"content-type": "application/json",
|
|
107
|
-
|
|
76
|
+
[_a]: input[_AT],
|
|
108
77
|
});
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
78
|
+
b.bp("/api/v1/resources/{ResourceId}/customMetadata");
|
|
79
|
+
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
112
80
|
const query = (0, smithy_client_1.map)({
|
|
113
|
-
|
|
81
|
+
[_v]: [, input[_VI]],
|
|
114
82
|
});
|
|
115
83
|
let body;
|
|
116
84
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
117
85
|
CustomMetadata: (_) => (0, smithy_client_1._json)(_),
|
|
118
86
|
}));
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
hostname,
|
|
122
|
-
port,
|
|
123
|
-
method: "PUT",
|
|
124
|
-
headers,
|
|
125
|
-
path: resolvedPath,
|
|
126
|
-
query,
|
|
127
|
-
body,
|
|
128
|
-
});
|
|
87
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
88
|
+
return b.build();
|
|
129
89
|
};
|
|
130
90
|
exports.se_CreateCustomMetadataCommand = se_CreateCustomMetadataCommand;
|
|
131
91
|
const se_CreateFolderCommand = async (input, context) => {
|
|
132
|
-
const
|
|
92
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
133
93
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
134
94
|
"content-type": "application/json",
|
|
135
|
-
|
|
95
|
+
[_a]: input[_AT],
|
|
136
96
|
});
|
|
137
|
-
|
|
97
|
+
b.bp("/api/v1/folders");
|
|
138
98
|
let body;
|
|
139
99
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
140
100
|
Name: [],
|
|
141
101
|
ParentFolderId: [],
|
|
142
102
|
}));
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
hostname,
|
|
146
|
-
port,
|
|
147
|
-
method: "POST",
|
|
148
|
-
headers,
|
|
149
|
-
path: resolvedPath,
|
|
150
|
-
body,
|
|
151
|
-
});
|
|
103
|
+
b.m("POST").h(headers).b(body);
|
|
104
|
+
return b.build();
|
|
152
105
|
};
|
|
153
106
|
exports.se_CreateFolderCommand = se_CreateFolderCommand;
|
|
154
107
|
const se_CreateLabelsCommand = async (input, context) => {
|
|
155
|
-
const
|
|
108
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
156
109
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
157
110
|
"content-type": "application/json",
|
|
158
|
-
|
|
111
|
+
[_a]: input[_AT],
|
|
159
112
|
});
|
|
160
|
-
|
|
161
|
-
|
|
113
|
+
b.bp("/api/v1/resources/{ResourceId}/labels");
|
|
114
|
+
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
162
115
|
let body;
|
|
163
116
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
164
117
|
Labels: (_) => (0, smithy_client_1._json)(_),
|
|
165
118
|
}));
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
hostname,
|
|
169
|
-
port,
|
|
170
|
-
method: "PUT",
|
|
171
|
-
headers,
|
|
172
|
-
path: resolvedPath,
|
|
173
|
-
body,
|
|
174
|
-
});
|
|
119
|
+
b.m("PUT").h(headers).b(body);
|
|
120
|
+
return b.build();
|
|
175
121
|
};
|
|
176
122
|
exports.se_CreateLabelsCommand = se_CreateLabelsCommand;
|
|
177
123
|
const se_CreateNotificationSubscriptionCommand = async (input, context) => {
|
|
178
|
-
const
|
|
124
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
179
125
|
const headers = {
|
|
180
126
|
"content-type": "application/json",
|
|
181
127
|
};
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OrganizationId", () => input.OrganizationId, "{OrganizationId}", false);
|
|
128
|
+
b.bp("/api/v1/organizations/{OrganizationId}/subscriptions");
|
|
129
|
+
b.p("OrganizationId", () => input.OrganizationId, "{OrganizationId}", false);
|
|
185
130
|
let body;
|
|
186
131
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
187
132
|
Endpoint: [],
|
|
188
133
|
Protocol: [],
|
|
189
134
|
SubscriptionType: [],
|
|
190
135
|
}));
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
hostname,
|
|
194
|
-
port,
|
|
195
|
-
method: "POST",
|
|
196
|
-
headers,
|
|
197
|
-
path: resolvedPath,
|
|
198
|
-
body,
|
|
199
|
-
});
|
|
136
|
+
b.m("POST").h(headers).b(body);
|
|
137
|
+
return b.build();
|
|
200
138
|
};
|
|
201
139
|
exports.se_CreateNotificationSubscriptionCommand = se_CreateNotificationSubscriptionCommand;
|
|
202
140
|
const se_CreateUserCommand = async (input, context) => {
|
|
203
|
-
const
|
|
141
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
204
142
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
205
143
|
"content-type": "application/json",
|
|
206
|
-
|
|
144
|
+
[_a]: input[_AT],
|
|
207
145
|
});
|
|
208
|
-
|
|
146
|
+
b.bp("/api/v1/users");
|
|
209
147
|
let body;
|
|
210
148
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
211
149
|
EmailAddress: [],
|
|
@@ -217,655 +155,422 @@ const se_CreateUserCommand = async (input, context) => {
|
|
|
217
155
|
TimeZoneId: [],
|
|
218
156
|
Username: [],
|
|
219
157
|
}));
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
hostname,
|
|
223
|
-
port,
|
|
224
|
-
method: "POST",
|
|
225
|
-
headers,
|
|
226
|
-
path: resolvedPath,
|
|
227
|
-
body,
|
|
228
|
-
});
|
|
158
|
+
b.m("POST").h(headers).b(body);
|
|
159
|
+
return b.build();
|
|
229
160
|
};
|
|
230
161
|
exports.se_CreateUserCommand = se_CreateUserCommand;
|
|
231
162
|
const se_DeactivateUserCommand = async (input, context) => {
|
|
232
|
-
const
|
|
163
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
233
164
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
234
|
-
|
|
165
|
+
[_a]: input[_AT],
|
|
235
166
|
});
|
|
236
|
-
|
|
237
|
-
|
|
167
|
+
b.bp("/api/v1/users/{UserId}/activation");
|
|
168
|
+
b.p("UserId", () => input.UserId, "{UserId}", false);
|
|
238
169
|
let body;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
hostname,
|
|
242
|
-
port,
|
|
243
|
-
method: "DELETE",
|
|
244
|
-
headers,
|
|
245
|
-
path: resolvedPath,
|
|
246
|
-
body,
|
|
247
|
-
});
|
|
170
|
+
b.m("DELETE").h(headers).b(body);
|
|
171
|
+
return b.build();
|
|
248
172
|
};
|
|
249
173
|
exports.se_DeactivateUserCommand = se_DeactivateUserCommand;
|
|
250
174
|
const se_DeleteCommentCommand = async (input, context) => {
|
|
251
|
-
const
|
|
175
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
252
176
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
253
|
-
|
|
177
|
+
[_a]: input[_AT],
|
|
254
178
|
});
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CommentId", () => input.CommentId, "{CommentId}", false);
|
|
179
|
+
b.bp("/api/v1/documents/{DocumentId}/versions/{VersionId}/comment/{CommentId}");
|
|
180
|
+
b.p("DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
181
|
+
b.p("VersionId", () => input.VersionId, "{VersionId}", false);
|
|
182
|
+
b.p("CommentId", () => input.CommentId, "{CommentId}", false);
|
|
260
183
|
let body;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
hostname,
|
|
264
|
-
port,
|
|
265
|
-
method: "DELETE",
|
|
266
|
-
headers,
|
|
267
|
-
path: resolvedPath,
|
|
268
|
-
body,
|
|
269
|
-
});
|
|
184
|
+
b.m("DELETE").h(headers).b(body);
|
|
185
|
+
return b.build();
|
|
270
186
|
};
|
|
271
187
|
exports.se_DeleteCommentCommand = se_DeleteCommentCommand;
|
|
272
188
|
const se_DeleteCustomMetadataCommand = async (input, context) => {
|
|
273
|
-
const
|
|
189
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
274
190
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
275
|
-
|
|
191
|
+
[_a]: input[_AT],
|
|
276
192
|
});
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
193
|
+
b.bp("/api/v1/resources/{ResourceId}/customMetadata");
|
|
194
|
+
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
280
195
|
const query = (0, smithy_client_1.map)({
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
196
|
+
[_vI]: [, input[_VI]],
|
|
197
|
+
[_k]: [() => input.Keys !== void 0, () => (input[_K] || []).map((_entry) => _entry)],
|
|
198
|
+
[_dA]: [() => input.DeleteAll !== void 0, () => input[_DA].toString()],
|
|
284
199
|
});
|
|
285
200
|
let body;
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
hostname,
|
|
289
|
-
port,
|
|
290
|
-
method: "DELETE",
|
|
291
|
-
headers,
|
|
292
|
-
path: resolvedPath,
|
|
293
|
-
query,
|
|
294
|
-
body,
|
|
295
|
-
});
|
|
201
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
202
|
+
return b.build();
|
|
296
203
|
};
|
|
297
204
|
exports.se_DeleteCustomMetadataCommand = se_DeleteCustomMetadataCommand;
|
|
298
205
|
const se_DeleteDocumentCommand = async (input, context) => {
|
|
299
|
-
const
|
|
206
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
300
207
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
301
|
-
|
|
208
|
+
[_a]: input[_AT],
|
|
302
209
|
});
|
|
303
|
-
|
|
304
|
-
|
|
210
|
+
b.bp("/api/v1/documents/{DocumentId}");
|
|
211
|
+
b.p("DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
305
212
|
let body;
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
hostname,
|
|
309
|
-
port,
|
|
310
|
-
method: "DELETE",
|
|
311
|
-
headers,
|
|
312
|
-
path: resolvedPath,
|
|
313
|
-
body,
|
|
314
|
-
});
|
|
213
|
+
b.m("DELETE").h(headers).b(body);
|
|
214
|
+
return b.build();
|
|
315
215
|
};
|
|
316
216
|
exports.se_DeleteDocumentCommand = se_DeleteDocumentCommand;
|
|
317
217
|
const se_DeleteDocumentVersionCommand = async (input, context) => {
|
|
318
|
-
const
|
|
218
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
319
219
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
320
|
-
|
|
220
|
+
[_a]: input[_AT],
|
|
321
221
|
});
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionId", () => input.VersionId, "{VersionId}", false);
|
|
222
|
+
b.bp("/api/v1/documentVersions/{DocumentId}/versions/{VersionId}");
|
|
223
|
+
b.p("DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
224
|
+
b.p("VersionId", () => input.VersionId, "{VersionId}", false);
|
|
326
225
|
const query = (0, smithy_client_1.map)({
|
|
327
|
-
|
|
328
|
-
(0, smithy_client_1.expectNonNull)(input.DeletePriorVersions, `DeletePriorVersions`) != null,
|
|
329
|
-
() => input.DeletePriorVersions.toString(),
|
|
330
|
-
],
|
|
226
|
+
[_dPV]: [(0, smithy_client_1.expectNonNull)(input.DeletePriorVersions, `DeletePriorVersions`) != null, () => input[_DPV].toString()],
|
|
331
227
|
});
|
|
332
228
|
let body;
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
hostname,
|
|
336
|
-
port,
|
|
337
|
-
method: "DELETE",
|
|
338
|
-
headers,
|
|
339
|
-
path: resolvedPath,
|
|
340
|
-
query,
|
|
341
|
-
body,
|
|
342
|
-
});
|
|
229
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
230
|
+
return b.build();
|
|
343
231
|
};
|
|
344
232
|
exports.se_DeleteDocumentVersionCommand = se_DeleteDocumentVersionCommand;
|
|
345
233
|
const se_DeleteFolderCommand = async (input, context) => {
|
|
346
|
-
const
|
|
234
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
347
235
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
348
|
-
|
|
236
|
+
[_a]: input[_AT],
|
|
349
237
|
});
|
|
350
|
-
|
|
351
|
-
|
|
238
|
+
b.bp("/api/v1/folders/{FolderId}");
|
|
239
|
+
b.p("FolderId", () => input.FolderId, "{FolderId}", false);
|
|
352
240
|
let body;
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
hostname,
|
|
356
|
-
port,
|
|
357
|
-
method: "DELETE",
|
|
358
|
-
headers,
|
|
359
|
-
path: resolvedPath,
|
|
360
|
-
body,
|
|
361
|
-
});
|
|
241
|
+
b.m("DELETE").h(headers).b(body);
|
|
242
|
+
return b.build();
|
|
362
243
|
};
|
|
363
244
|
exports.se_DeleteFolderCommand = se_DeleteFolderCommand;
|
|
364
245
|
const se_DeleteFolderContentsCommand = async (input, context) => {
|
|
365
|
-
const
|
|
246
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
366
247
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
367
|
-
|
|
248
|
+
[_a]: input[_AT],
|
|
368
249
|
});
|
|
369
|
-
|
|
370
|
-
|
|
250
|
+
b.bp("/api/v1/folders/{FolderId}/contents");
|
|
251
|
+
b.p("FolderId", () => input.FolderId, "{FolderId}", false);
|
|
371
252
|
let body;
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
hostname,
|
|
375
|
-
port,
|
|
376
|
-
method: "DELETE",
|
|
377
|
-
headers,
|
|
378
|
-
path: resolvedPath,
|
|
379
|
-
body,
|
|
380
|
-
});
|
|
253
|
+
b.m("DELETE").h(headers).b(body);
|
|
254
|
+
return b.build();
|
|
381
255
|
};
|
|
382
256
|
exports.se_DeleteFolderContentsCommand = se_DeleteFolderContentsCommand;
|
|
383
257
|
const se_DeleteLabelsCommand = async (input, context) => {
|
|
384
|
-
const
|
|
258
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
385
259
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
386
|
-
|
|
260
|
+
[_a]: input[_AT],
|
|
387
261
|
});
|
|
388
|
-
|
|
389
|
-
|
|
262
|
+
b.bp("/api/v1/resources/{ResourceId}/labels");
|
|
263
|
+
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
390
264
|
const query = (0, smithy_client_1.map)({
|
|
391
|
-
|
|
392
|
-
|
|
265
|
+
[_l]: [() => input.Labels !== void 0, () => (input[_L] || []).map((_entry) => _entry)],
|
|
266
|
+
[_dA]: [() => input.DeleteAll !== void 0, () => input[_DA].toString()],
|
|
393
267
|
});
|
|
394
268
|
let body;
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
hostname,
|
|
398
|
-
port,
|
|
399
|
-
method: "DELETE",
|
|
400
|
-
headers,
|
|
401
|
-
path: resolvedPath,
|
|
402
|
-
query,
|
|
403
|
-
body,
|
|
404
|
-
});
|
|
269
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
270
|
+
return b.build();
|
|
405
271
|
};
|
|
406
272
|
exports.se_DeleteLabelsCommand = se_DeleteLabelsCommand;
|
|
407
273
|
const se_DeleteNotificationSubscriptionCommand = async (input, context) => {
|
|
408
|
-
const
|
|
274
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
409
275
|
const headers = {};
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OrganizationId", () => input.OrganizationId, "{OrganizationId}", false);
|
|
276
|
+
b.bp("/api/v1/organizations/{OrganizationId}/subscriptions/{SubscriptionId}");
|
|
277
|
+
b.p("SubscriptionId", () => input.SubscriptionId, "{SubscriptionId}", false);
|
|
278
|
+
b.p("OrganizationId", () => input.OrganizationId, "{OrganizationId}", false);
|
|
414
279
|
let body;
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
hostname,
|
|
418
|
-
port,
|
|
419
|
-
method: "DELETE",
|
|
420
|
-
headers,
|
|
421
|
-
path: resolvedPath,
|
|
422
|
-
body,
|
|
423
|
-
});
|
|
280
|
+
b.m("DELETE").h(headers).b(body);
|
|
281
|
+
return b.build();
|
|
424
282
|
};
|
|
425
283
|
exports.se_DeleteNotificationSubscriptionCommand = se_DeleteNotificationSubscriptionCommand;
|
|
426
284
|
const se_DeleteUserCommand = async (input, context) => {
|
|
427
|
-
const
|
|
285
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
428
286
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
429
|
-
|
|
287
|
+
[_a]: input[_AT],
|
|
430
288
|
});
|
|
431
|
-
|
|
432
|
-
|
|
289
|
+
b.bp("/api/v1/users/{UserId}");
|
|
290
|
+
b.p("UserId", () => input.UserId, "{UserId}", false);
|
|
433
291
|
let body;
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
hostname,
|
|
437
|
-
port,
|
|
438
|
-
method: "DELETE",
|
|
439
|
-
headers,
|
|
440
|
-
path: resolvedPath,
|
|
441
|
-
body,
|
|
442
|
-
});
|
|
292
|
+
b.m("DELETE").h(headers).b(body);
|
|
293
|
+
return b.build();
|
|
443
294
|
};
|
|
444
295
|
exports.se_DeleteUserCommand = se_DeleteUserCommand;
|
|
445
296
|
const se_DescribeActivitiesCommand = async (input, context) => {
|
|
446
|
-
const
|
|
297
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
447
298
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
448
|
-
|
|
299
|
+
[_a]: input[_AT],
|
|
449
300
|
});
|
|
450
|
-
|
|
301
|
+
b.bp("/api/v1/activities");
|
|
451
302
|
const query = (0, smithy_client_1.map)({
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
],
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
includeIndirectActivities: [
|
|
462
|
-
() => input.IncludeIndirectActivities !== void 0,
|
|
463
|
-
() => input.IncludeIndirectActivities.toString(),
|
|
464
|
-
],
|
|
465
|
-
limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
|
|
466
|
-
marker: [, input.Marker],
|
|
303
|
+
[_sT]: [() => input.StartTime !== void 0, () => (input[_ST].toISOString().split(".")[0] + "Z").toString()],
|
|
304
|
+
[_eT]: [() => input.EndTime !== void 0, () => (input[_ET].toISOString().split(".")[0] + "Z").toString()],
|
|
305
|
+
[_oI]: [, input[_OI]],
|
|
306
|
+
[_aT]: [, input[_ATc]],
|
|
307
|
+
[_rI]: [, input[_RI]],
|
|
308
|
+
[_uI]: [, input[_UI]],
|
|
309
|
+
[_iIA]: [() => input.IncludeIndirectActivities !== void 0, () => input[_IIA].toString()],
|
|
310
|
+
[_li]: [() => input.Limit !== void 0, () => input[_Li].toString()],
|
|
311
|
+
[_m]: [, input[_M]],
|
|
467
312
|
});
|
|
468
313
|
let body;
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
hostname,
|
|
472
|
-
port,
|
|
473
|
-
method: "GET",
|
|
474
|
-
headers,
|
|
475
|
-
path: resolvedPath,
|
|
476
|
-
query,
|
|
477
|
-
body,
|
|
478
|
-
});
|
|
314
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
315
|
+
return b.build();
|
|
479
316
|
};
|
|
480
317
|
exports.se_DescribeActivitiesCommand = se_DescribeActivitiesCommand;
|
|
481
318
|
const se_DescribeCommentsCommand = async (input, context) => {
|
|
482
|
-
const
|
|
319
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
483
320
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
484
|
-
|
|
321
|
+
[_a]: input[_AT],
|
|
485
322
|
});
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionId", () => input.VersionId, "{VersionId}", false);
|
|
323
|
+
b.bp("/api/v1/documents/{DocumentId}/versions/{VersionId}/comments");
|
|
324
|
+
b.p("DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
325
|
+
b.p("VersionId", () => input.VersionId, "{VersionId}", false);
|
|
490
326
|
const query = (0, smithy_client_1.map)({
|
|
491
|
-
|
|
492
|
-
|
|
327
|
+
[_li]: [() => input.Limit !== void 0, () => input[_Li].toString()],
|
|
328
|
+
[_m]: [, input[_M]],
|
|
493
329
|
});
|
|
494
330
|
let body;
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
hostname,
|
|
498
|
-
port,
|
|
499
|
-
method: "GET",
|
|
500
|
-
headers,
|
|
501
|
-
path: resolvedPath,
|
|
502
|
-
query,
|
|
503
|
-
body,
|
|
504
|
-
});
|
|
331
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
332
|
+
return b.build();
|
|
505
333
|
};
|
|
506
334
|
exports.se_DescribeCommentsCommand = se_DescribeCommentsCommand;
|
|
507
335
|
const se_DescribeDocumentVersionsCommand = async (input, context) => {
|
|
508
|
-
const
|
|
336
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
509
337
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
510
|
-
|
|
338
|
+
[_a]: input[_AT],
|
|
511
339
|
});
|
|
512
|
-
|
|
513
|
-
|
|
340
|
+
b.bp("/api/v1/documents/{DocumentId}/versions");
|
|
341
|
+
b.p("DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
514
342
|
const query = (0, smithy_client_1.map)({
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
343
|
+
[_m]: [, input[_M]],
|
|
344
|
+
[_li]: [() => input.Limit !== void 0, () => input[_Li].toString()],
|
|
345
|
+
[_i]: [, input[_I]],
|
|
346
|
+
[_f]: [, input[_F]],
|
|
519
347
|
});
|
|
520
348
|
let body;
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
hostname,
|
|
524
|
-
port,
|
|
525
|
-
method: "GET",
|
|
526
|
-
headers,
|
|
527
|
-
path: resolvedPath,
|
|
528
|
-
query,
|
|
529
|
-
body,
|
|
530
|
-
});
|
|
349
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
350
|
+
return b.build();
|
|
531
351
|
};
|
|
532
352
|
exports.se_DescribeDocumentVersionsCommand = se_DescribeDocumentVersionsCommand;
|
|
533
353
|
const se_DescribeFolderContentsCommand = async (input, context) => {
|
|
534
|
-
const
|
|
354
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
535
355
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
536
|
-
|
|
356
|
+
[_a]: input[_AT],
|
|
537
357
|
});
|
|
538
|
-
|
|
539
|
-
|
|
358
|
+
b.bp("/api/v1/folders/{FolderId}/contents");
|
|
359
|
+
b.p("FolderId", () => input.FolderId, "{FolderId}", false);
|
|
540
360
|
const query = (0, smithy_client_1.map)({
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
361
|
+
[_s]: [, input[_S]],
|
|
362
|
+
[_o]: [, input[_O]],
|
|
363
|
+
[_li]: [() => input.Limit !== void 0, () => input[_Li].toString()],
|
|
364
|
+
[_m]: [, input[_M]],
|
|
365
|
+
[_t]: [, input[_T]],
|
|
366
|
+
[_i]: [, input[_I]],
|
|
547
367
|
});
|
|
548
368
|
let body;
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
hostname,
|
|
552
|
-
port,
|
|
553
|
-
method: "GET",
|
|
554
|
-
headers,
|
|
555
|
-
path: resolvedPath,
|
|
556
|
-
query,
|
|
557
|
-
body,
|
|
558
|
-
});
|
|
369
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
370
|
+
return b.build();
|
|
559
371
|
};
|
|
560
372
|
exports.se_DescribeFolderContentsCommand = se_DescribeFolderContentsCommand;
|
|
561
373
|
const se_DescribeGroupsCommand = async (input, context) => {
|
|
562
|
-
const
|
|
374
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
563
375
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
564
|
-
|
|
376
|
+
[_a]: input[_AT],
|
|
565
377
|
});
|
|
566
|
-
|
|
378
|
+
b.bp("/api/v1/groups");
|
|
567
379
|
const query = (0, smithy_client_1.map)({
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
380
|
+
[_sQ]: [, (0, smithy_client_1.expectNonNull)(input[_SQ], `SearchQuery`)],
|
|
381
|
+
[_oI]: [, input[_OI]],
|
|
382
|
+
[_m]: [, input[_M]],
|
|
383
|
+
[_li]: [() => input.Limit !== void 0, () => input[_Li].toString()],
|
|
572
384
|
});
|
|
573
385
|
let body;
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
hostname,
|
|
577
|
-
port,
|
|
578
|
-
method: "GET",
|
|
579
|
-
headers,
|
|
580
|
-
path: resolvedPath,
|
|
581
|
-
query,
|
|
582
|
-
body,
|
|
583
|
-
});
|
|
386
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
387
|
+
return b.build();
|
|
584
388
|
};
|
|
585
389
|
exports.se_DescribeGroupsCommand = se_DescribeGroupsCommand;
|
|
586
390
|
const se_DescribeNotificationSubscriptionsCommand = async (input, context) => {
|
|
587
|
-
const
|
|
391
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
588
392
|
const headers = {};
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OrganizationId", () => input.OrganizationId, "{OrganizationId}", false);
|
|
393
|
+
b.bp("/api/v1/organizations/{OrganizationId}/subscriptions");
|
|
394
|
+
b.p("OrganizationId", () => input.OrganizationId, "{OrganizationId}", false);
|
|
592
395
|
const query = (0, smithy_client_1.map)({
|
|
593
|
-
|
|
594
|
-
|
|
396
|
+
[_m]: [, input[_M]],
|
|
397
|
+
[_li]: [() => input.Limit !== void 0, () => input[_Li].toString()],
|
|
595
398
|
});
|
|
596
399
|
let body;
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
hostname,
|
|
600
|
-
port,
|
|
601
|
-
method: "GET",
|
|
602
|
-
headers,
|
|
603
|
-
path: resolvedPath,
|
|
604
|
-
query,
|
|
605
|
-
body,
|
|
606
|
-
});
|
|
400
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
401
|
+
return b.build();
|
|
607
402
|
};
|
|
608
403
|
exports.se_DescribeNotificationSubscriptionsCommand = se_DescribeNotificationSubscriptionsCommand;
|
|
609
404
|
const se_DescribeResourcePermissionsCommand = async (input, context) => {
|
|
610
|
-
const
|
|
405
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
611
406
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
612
|
-
|
|
407
|
+
[_a]: input[_AT],
|
|
613
408
|
});
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
409
|
+
b.bp("/api/v1/resources/{ResourceId}/permissions");
|
|
410
|
+
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
617
411
|
const query = (0, smithy_client_1.map)({
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
412
|
+
[_pI]: [, input[_PI]],
|
|
413
|
+
[_li]: [() => input.Limit !== void 0, () => input[_Li].toString()],
|
|
414
|
+
[_m]: [, input[_M]],
|
|
621
415
|
});
|
|
622
416
|
let body;
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
hostname,
|
|
626
|
-
port,
|
|
627
|
-
method: "GET",
|
|
628
|
-
headers,
|
|
629
|
-
path: resolvedPath,
|
|
630
|
-
query,
|
|
631
|
-
body,
|
|
632
|
-
});
|
|
417
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
418
|
+
return b.build();
|
|
633
419
|
};
|
|
634
420
|
exports.se_DescribeResourcePermissionsCommand = se_DescribeResourcePermissionsCommand;
|
|
635
421
|
const se_DescribeRootFoldersCommand = async (input, context) => {
|
|
636
|
-
const
|
|
422
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
637
423
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
638
|
-
|
|
424
|
+
[_a]: input[_AT],
|
|
639
425
|
});
|
|
640
|
-
|
|
426
|
+
b.bp("/api/v1/me/root");
|
|
641
427
|
const query = (0, smithy_client_1.map)({
|
|
642
|
-
|
|
643
|
-
|
|
428
|
+
[_li]: [() => input.Limit !== void 0, () => input[_Li].toString()],
|
|
429
|
+
[_m]: [, input[_M]],
|
|
644
430
|
});
|
|
645
431
|
let body;
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
hostname,
|
|
649
|
-
port,
|
|
650
|
-
method: "GET",
|
|
651
|
-
headers,
|
|
652
|
-
path: resolvedPath,
|
|
653
|
-
query,
|
|
654
|
-
body,
|
|
655
|
-
});
|
|
432
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
433
|
+
return b.build();
|
|
656
434
|
};
|
|
657
435
|
exports.se_DescribeRootFoldersCommand = se_DescribeRootFoldersCommand;
|
|
658
436
|
const se_DescribeUsersCommand = async (input, context) => {
|
|
659
|
-
const
|
|
437
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
660
438
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
661
|
-
|
|
439
|
+
[_a]: input[_AT],
|
|
662
440
|
});
|
|
663
|
-
|
|
441
|
+
b.bp("/api/v1/users");
|
|
664
442
|
const query = (0, smithy_client_1.map)({
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
443
|
+
[_oI]: [, input[_OI]],
|
|
444
|
+
[_uIs]: [, input[_UIs]],
|
|
445
|
+
[_q]: [, input[_Q]],
|
|
446
|
+
[_i]: [, input[_I]],
|
|
447
|
+
[_o]: [, input[_O]],
|
|
448
|
+
[_s]: [, input[_S]],
|
|
449
|
+
[_m]: [, input[_M]],
|
|
450
|
+
[_li]: [() => input.Limit !== void 0, () => input[_Li].toString()],
|
|
451
|
+
[_f]: [, input[_F]],
|
|
674
452
|
});
|
|
675
453
|
let body;
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
hostname,
|
|
679
|
-
port,
|
|
680
|
-
method: "GET",
|
|
681
|
-
headers,
|
|
682
|
-
path: resolvedPath,
|
|
683
|
-
query,
|
|
684
|
-
body,
|
|
685
|
-
});
|
|
454
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
455
|
+
return b.build();
|
|
686
456
|
};
|
|
687
457
|
exports.se_DescribeUsersCommand = se_DescribeUsersCommand;
|
|
688
458
|
const se_GetCurrentUserCommand = async (input, context) => {
|
|
689
|
-
const
|
|
459
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
690
460
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
691
|
-
|
|
461
|
+
[_a]: input[_AT],
|
|
692
462
|
});
|
|
693
|
-
|
|
463
|
+
b.bp("/api/v1/me");
|
|
694
464
|
let body;
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
hostname,
|
|
698
|
-
port,
|
|
699
|
-
method: "GET",
|
|
700
|
-
headers,
|
|
701
|
-
path: resolvedPath,
|
|
702
|
-
body,
|
|
703
|
-
});
|
|
465
|
+
b.m("GET").h(headers).b(body);
|
|
466
|
+
return b.build();
|
|
704
467
|
};
|
|
705
468
|
exports.se_GetCurrentUserCommand = se_GetCurrentUserCommand;
|
|
706
469
|
const se_GetDocumentCommand = async (input, context) => {
|
|
707
|
-
const
|
|
470
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
708
471
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
709
|
-
|
|
472
|
+
[_a]: input[_AT],
|
|
710
473
|
});
|
|
711
|
-
|
|
712
|
-
|
|
474
|
+
b.bp("/api/v1/documents/{DocumentId}");
|
|
475
|
+
b.p("DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
713
476
|
const query = (0, smithy_client_1.map)({
|
|
714
|
-
|
|
715
|
-
() => input.IncludeCustomMetadata !== void 0,
|
|
716
|
-
() => input.IncludeCustomMetadata.toString(),
|
|
717
|
-
],
|
|
477
|
+
[_iCM]: [() => input.IncludeCustomMetadata !== void 0, () => input[_ICM].toString()],
|
|
718
478
|
});
|
|
719
479
|
let body;
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
hostname,
|
|
723
|
-
port,
|
|
724
|
-
method: "GET",
|
|
725
|
-
headers,
|
|
726
|
-
path: resolvedPath,
|
|
727
|
-
query,
|
|
728
|
-
body,
|
|
729
|
-
});
|
|
480
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
481
|
+
return b.build();
|
|
730
482
|
};
|
|
731
483
|
exports.se_GetDocumentCommand = se_GetDocumentCommand;
|
|
732
484
|
const se_GetDocumentPathCommand = async (input, context) => {
|
|
733
|
-
const
|
|
485
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
734
486
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
735
|
-
|
|
487
|
+
[_a]: input[_AT],
|
|
736
488
|
});
|
|
737
|
-
|
|
738
|
-
|
|
489
|
+
b.bp("/api/v1/documents/{DocumentId}/path");
|
|
490
|
+
b.p("DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
739
491
|
const query = (0, smithy_client_1.map)({
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
492
|
+
[_li]: [() => input.Limit !== void 0, () => input[_Li].toString()],
|
|
493
|
+
[_f]: [, input[_F]],
|
|
494
|
+
[_m]: [, input[_M]],
|
|
743
495
|
});
|
|
744
496
|
let body;
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
hostname,
|
|
748
|
-
port,
|
|
749
|
-
method: "GET",
|
|
750
|
-
headers,
|
|
751
|
-
path: resolvedPath,
|
|
752
|
-
query,
|
|
753
|
-
body,
|
|
754
|
-
});
|
|
497
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
498
|
+
return b.build();
|
|
755
499
|
};
|
|
756
500
|
exports.se_GetDocumentPathCommand = se_GetDocumentPathCommand;
|
|
757
501
|
const se_GetDocumentVersionCommand = async (input, context) => {
|
|
758
|
-
const
|
|
502
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
759
503
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
760
|
-
|
|
504
|
+
[_a]: input[_AT],
|
|
761
505
|
});
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionId", () => input.VersionId, "{VersionId}", false);
|
|
506
|
+
b.bp("/api/v1/documents/{DocumentId}/versions/{VersionId}");
|
|
507
|
+
b.p("DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
508
|
+
b.p("VersionId", () => input.VersionId, "{VersionId}", false);
|
|
766
509
|
const query = (0, smithy_client_1.map)({
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
() => input.IncludeCustomMetadata !== void 0,
|
|
770
|
-
() => input.IncludeCustomMetadata.toString(),
|
|
771
|
-
],
|
|
510
|
+
[_f]: [, input[_F]],
|
|
511
|
+
[_iCM]: [() => input.IncludeCustomMetadata !== void 0, () => input[_ICM].toString()],
|
|
772
512
|
});
|
|
773
513
|
let body;
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
hostname,
|
|
777
|
-
port,
|
|
778
|
-
method: "GET",
|
|
779
|
-
headers,
|
|
780
|
-
path: resolvedPath,
|
|
781
|
-
query,
|
|
782
|
-
body,
|
|
783
|
-
});
|
|
514
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
515
|
+
return b.build();
|
|
784
516
|
};
|
|
785
517
|
exports.se_GetDocumentVersionCommand = se_GetDocumentVersionCommand;
|
|
786
518
|
const se_GetFolderCommand = async (input, context) => {
|
|
787
|
-
const
|
|
519
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
788
520
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
789
|
-
|
|
521
|
+
[_a]: input[_AT],
|
|
790
522
|
});
|
|
791
|
-
|
|
792
|
-
|
|
523
|
+
b.bp("/api/v1/folders/{FolderId}");
|
|
524
|
+
b.p("FolderId", () => input.FolderId, "{FolderId}", false);
|
|
793
525
|
const query = (0, smithy_client_1.map)({
|
|
794
|
-
|
|
795
|
-
() => input.IncludeCustomMetadata !== void 0,
|
|
796
|
-
() => input.IncludeCustomMetadata.toString(),
|
|
797
|
-
],
|
|
526
|
+
[_iCM]: [() => input.IncludeCustomMetadata !== void 0, () => input[_ICM].toString()],
|
|
798
527
|
});
|
|
799
528
|
let body;
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
hostname,
|
|
803
|
-
port,
|
|
804
|
-
method: "GET",
|
|
805
|
-
headers,
|
|
806
|
-
path: resolvedPath,
|
|
807
|
-
query,
|
|
808
|
-
body,
|
|
809
|
-
});
|
|
529
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
530
|
+
return b.build();
|
|
810
531
|
};
|
|
811
532
|
exports.se_GetFolderCommand = se_GetFolderCommand;
|
|
812
533
|
const se_GetFolderPathCommand = async (input, context) => {
|
|
813
|
-
const
|
|
534
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
814
535
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
815
|
-
|
|
536
|
+
[_a]: input[_AT],
|
|
816
537
|
});
|
|
817
|
-
|
|
818
|
-
|
|
538
|
+
b.bp("/api/v1/folders/{FolderId}/path");
|
|
539
|
+
b.p("FolderId", () => input.FolderId, "{FolderId}", false);
|
|
819
540
|
const query = (0, smithy_client_1.map)({
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
541
|
+
[_li]: [() => input.Limit !== void 0, () => input[_Li].toString()],
|
|
542
|
+
[_f]: [, input[_F]],
|
|
543
|
+
[_m]: [, input[_M]],
|
|
823
544
|
});
|
|
824
545
|
let body;
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
hostname,
|
|
828
|
-
port,
|
|
829
|
-
method: "GET",
|
|
830
|
-
headers,
|
|
831
|
-
path: resolvedPath,
|
|
832
|
-
query,
|
|
833
|
-
body,
|
|
834
|
-
});
|
|
546
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
547
|
+
return b.build();
|
|
835
548
|
};
|
|
836
549
|
exports.se_GetFolderPathCommand = se_GetFolderPathCommand;
|
|
837
550
|
const se_GetResourcesCommand = async (input, context) => {
|
|
838
|
-
const
|
|
551
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
839
552
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
840
|
-
|
|
553
|
+
[_a]: input[_AT],
|
|
841
554
|
});
|
|
842
|
-
|
|
555
|
+
b.bp("/api/v1/resources");
|
|
843
556
|
const query = (0, smithy_client_1.map)({
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
557
|
+
[_uI]: [, input[_UI]],
|
|
558
|
+
[_cT]: [, input[_CT]],
|
|
559
|
+
[_li]: [() => input.Limit !== void 0, () => input[_Li].toString()],
|
|
560
|
+
[_m]: [, input[_M]],
|
|
848
561
|
});
|
|
849
562
|
let body;
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
hostname,
|
|
853
|
-
port,
|
|
854
|
-
method: "GET",
|
|
855
|
-
headers,
|
|
856
|
-
path: resolvedPath,
|
|
857
|
-
query,
|
|
858
|
-
body,
|
|
859
|
-
});
|
|
563
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
564
|
+
return b.build();
|
|
860
565
|
};
|
|
861
566
|
exports.se_GetResourcesCommand = se_GetResourcesCommand;
|
|
862
567
|
const se_InitiateDocumentVersionUploadCommand = async (input, context) => {
|
|
863
|
-
const
|
|
568
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
864
569
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
865
570
|
"content-type": "application/json",
|
|
866
|
-
|
|
571
|
+
[_a]: input[_AT],
|
|
867
572
|
});
|
|
868
|
-
|
|
573
|
+
b.bp("/api/v1/documents");
|
|
869
574
|
let body;
|
|
870
575
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
871
576
|
ContentCreatedTimestamp: (_) => Math.round(_.getTime() / 1000),
|
|
@@ -876,89 +581,57 @@ const se_InitiateDocumentVersionUploadCommand = async (input, context) => {
|
|
|
876
581
|
Name: [],
|
|
877
582
|
ParentFolderId: [],
|
|
878
583
|
}));
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
hostname,
|
|
882
|
-
port,
|
|
883
|
-
method: "POST",
|
|
884
|
-
headers,
|
|
885
|
-
path: resolvedPath,
|
|
886
|
-
body,
|
|
887
|
-
});
|
|
584
|
+
b.m("POST").h(headers).b(body);
|
|
585
|
+
return b.build();
|
|
888
586
|
};
|
|
889
587
|
exports.se_InitiateDocumentVersionUploadCommand = se_InitiateDocumentVersionUploadCommand;
|
|
890
588
|
const se_RemoveAllResourcePermissionsCommand = async (input, context) => {
|
|
891
|
-
const
|
|
589
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
892
590
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
893
|
-
|
|
591
|
+
[_a]: input[_AT],
|
|
894
592
|
});
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
593
|
+
b.bp("/api/v1/resources/{ResourceId}/permissions");
|
|
594
|
+
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
898
595
|
let body;
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
hostname,
|
|
902
|
-
port,
|
|
903
|
-
method: "DELETE",
|
|
904
|
-
headers,
|
|
905
|
-
path: resolvedPath,
|
|
906
|
-
body,
|
|
907
|
-
});
|
|
596
|
+
b.m("DELETE").h(headers).b(body);
|
|
597
|
+
return b.build();
|
|
908
598
|
};
|
|
909
599
|
exports.se_RemoveAllResourcePermissionsCommand = se_RemoveAllResourcePermissionsCommand;
|
|
910
600
|
const se_RemoveResourcePermissionCommand = async (input, context) => {
|
|
911
|
-
const
|
|
601
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
912
602
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
913
|
-
|
|
603
|
+
[_a]: input[_AT],
|
|
914
604
|
});
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PrincipalId", () => input.PrincipalId, "{PrincipalId}", false);
|
|
605
|
+
b.bp("/api/v1/resources/{ResourceId}/permissions/{PrincipalId}");
|
|
606
|
+
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
607
|
+
b.p("PrincipalId", () => input.PrincipalId, "{PrincipalId}", false);
|
|
919
608
|
const query = (0, smithy_client_1.map)({
|
|
920
|
-
|
|
609
|
+
[_t]: [, input[_PT]],
|
|
921
610
|
});
|
|
922
611
|
let body;
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
hostname,
|
|
926
|
-
port,
|
|
927
|
-
method: "DELETE",
|
|
928
|
-
headers,
|
|
929
|
-
path: resolvedPath,
|
|
930
|
-
query,
|
|
931
|
-
body,
|
|
932
|
-
});
|
|
612
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
613
|
+
return b.build();
|
|
933
614
|
};
|
|
934
615
|
exports.se_RemoveResourcePermissionCommand = se_RemoveResourcePermissionCommand;
|
|
935
616
|
const se_RestoreDocumentVersionsCommand = async (input, context) => {
|
|
936
|
-
const
|
|
617
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
937
618
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
938
|
-
|
|
619
|
+
[_a]: input[_AT],
|
|
939
620
|
});
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
621
|
+
b.bp("/api/v1/documentVersions/restore/{DocumentId}");
|
|
622
|
+
b.p("DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
943
623
|
let body;
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
hostname,
|
|
947
|
-
port,
|
|
948
|
-
method: "POST",
|
|
949
|
-
headers,
|
|
950
|
-
path: resolvedPath,
|
|
951
|
-
body,
|
|
952
|
-
});
|
|
624
|
+
b.m("POST").h(headers).b(body);
|
|
625
|
+
return b.build();
|
|
953
626
|
};
|
|
954
627
|
exports.se_RestoreDocumentVersionsCommand = se_RestoreDocumentVersionsCommand;
|
|
955
628
|
const se_SearchResourcesCommand = async (input, context) => {
|
|
956
|
-
const
|
|
629
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
957
630
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
958
631
|
"content-type": "application/json",
|
|
959
|
-
|
|
632
|
+
[_a]: input[_AT],
|
|
960
633
|
});
|
|
961
|
-
|
|
634
|
+
b.bp("/api/v1/search");
|
|
962
635
|
let body;
|
|
963
636
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
964
637
|
AdditionalResponseFields: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -970,100 +643,71 @@ const se_SearchResourcesCommand = async (input, context) => {
|
|
|
970
643
|
QueryScopes: (_) => (0, smithy_client_1._json)(_),
|
|
971
644
|
QueryText: [],
|
|
972
645
|
}));
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
hostname,
|
|
976
|
-
port,
|
|
977
|
-
method: "POST",
|
|
978
|
-
headers,
|
|
979
|
-
path: resolvedPath,
|
|
980
|
-
body,
|
|
981
|
-
});
|
|
646
|
+
b.m("POST").h(headers).b(body);
|
|
647
|
+
return b.build();
|
|
982
648
|
};
|
|
983
649
|
exports.se_SearchResourcesCommand = se_SearchResourcesCommand;
|
|
984
650
|
const se_UpdateDocumentCommand = async (input, context) => {
|
|
985
|
-
const
|
|
651
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
986
652
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
987
653
|
"content-type": "application/json",
|
|
988
|
-
|
|
654
|
+
[_a]: input[_AT],
|
|
989
655
|
});
|
|
990
|
-
|
|
991
|
-
|
|
656
|
+
b.bp("/api/v1/documents/{DocumentId}");
|
|
657
|
+
b.p("DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
992
658
|
let body;
|
|
993
659
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
994
660
|
Name: [],
|
|
995
661
|
ParentFolderId: [],
|
|
996
662
|
ResourceState: [],
|
|
997
663
|
}));
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
hostname,
|
|
1001
|
-
port,
|
|
1002
|
-
method: "PATCH",
|
|
1003
|
-
headers,
|
|
1004
|
-
path: resolvedPath,
|
|
1005
|
-
body,
|
|
1006
|
-
});
|
|
664
|
+
b.m("PATCH").h(headers).b(body);
|
|
665
|
+
return b.build();
|
|
1007
666
|
};
|
|
1008
667
|
exports.se_UpdateDocumentCommand = se_UpdateDocumentCommand;
|
|
1009
668
|
const se_UpdateDocumentVersionCommand = async (input, context) => {
|
|
1010
|
-
const
|
|
669
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1011
670
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1012
671
|
"content-type": "application/json",
|
|
1013
|
-
|
|
672
|
+
[_a]: input[_AT],
|
|
1014
673
|
});
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VersionId", () => input.VersionId, "{VersionId}", false);
|
|
674
|
+
b.bp("/api/v1/documents/{DocumentId}/versions/{VersionId}");
|
|
675
|
+
b.p("DocumentId", () => input.DocumentId, "{DocumentId}", false);
|
|
676
|
+
b.p("VersionId", () => input.VersionId, "{VersionId}", false);
|
|
1019
677
|
let body;
|
|
1020
678
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1021
679
|
VersionStatus: [],
|
|
1022
680
|
}));
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
hostname,
|
|
1026
|
-
port,
|
|
1027
|
-
method: "PATCH",
|
|
1028
|
-
headers,
|
|
1029
|
-
path: resolvedPath,
|
|
1030
|
-
body,
|
|
1031
|
-
});
|
|
681
|
+
b.m("PATCH").h(headers).b(body);
|
|
682
|
+
return b.build();
|
|
1032
683
|
};
|
|
1033
684
|
exports.se_UpdateDocumentVersionCommand = se_UpdateDocumentVersionCommand;
|
|
1034
685
|
const se_UpdateFolderCommand = async (input, context) => {
|
|
1035
|
-
const
|
|
686
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1036
687
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1037
688
|
"content-type": "application/json",
|
|
1038
|
-
|
|
689
|
+
[_a]: input[_AT],
|
|
1039
690
|
});
|
|
1040
|
-
|
|
1041
|
-
|
|
691
|
+
b.bp("/api/v1/folders/{FolderId}");
|
|
692
|
+
b.p("FolderId", () => input.FolderId, "{FolderId}", false);
|
|
1042
693
|
let body;
|
|
1043
694
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1044
695
|
Name: [],
|
|
1045
696
|
ParentFolderId: [],
|
|
1046
697
|
ResourceState: [],
|
|
1047
698
|
}));
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
hostname,
|
|
1051
|
-
port,
|
|
1052
|
-
method: "PATCH",
|
|
1053
|
-
headers,
|
|
1054
|
-
path: resolvedPath,
|
|
1055
|
-
body,
|
|
1056
|
-
});
|
|
699
|
+
b.m("PATCH").h(headers).b(body);
|
|
700
|
+
return b.build();
|
|
1057
701
|
};
|
|
1058
702
|
exports.se_UpdateFolderCommand = se_UpdateFolderCommand;
|
|
1059
703
|
const se_UpdateUserCommand = async (input, context) => {
|
|
1060
|
-
const
|
|
704
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1061
705
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1062
706
|
"content-type": "application/json",
|
|
1063
|
-
|
|
707
|
+
[_a]: input[_AT],
|
|
1064
708
|
});
|
|
1065
|
-
|
|
1066
|
-
|
|
709
|
+
b.bp("/api/v1/users/{UserId}");
|
|
710
|
+
b.p("UserId", () => input.UserId, "{UserId}", false);
|
|
1067
711
|
let body;
|
|
1068
712
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1069
713
|
GivenName: [],
|
|
@@ -1074,15 +718,8 @@ const se_UpdateUserCommand = async (input, context) => {
|
|
|
1074
718
|
TimeZoneId: [],
|
|
1075
719
|
Type: [],
|
|
1076
720
|
}));
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
hostname,
|
|
1080
|
-
port,
|
|
1081
|
-
method: "PATCH",
|
|
1082
|
-
headers,
|
|
1083
|
-
path: resolvedPath,
|
|
1084
|
-
body,
|
|
1085
|
-
});
|
|
721
|
+
b.m("PATCH").h(headers).b(body);
|
|
722
|
+
return b.build();
|
|
1086
723
|
};
|
|
1087
724
|
exports.se_UpdateUserCommand = se_UpdateUserCommand;
|
|
1088
725
|
const de_AbortDocumentVersionUploadCommand = async (output, context) => {
|
|
@@ -3769,6 +3406,60 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
3769
3406
|
value !== "" &&
|
|
3770
3407
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
3771
3408
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
3409
|
+
const _AT = "AuthenticationToken";
|
|
3410
|
+
const _ATc = "ActivityTypes";
|
|
3411
|
+
const _CT = "CollectionType";
|
|
3412
|
+
const _DA = "DeleteAll";
|
|
3413
|
+
const _DPV = "DeletePriorVersions";
|
|
3414
|
+
const _ET = "EndTime";
|
|
3415
|
+
const _F = "Fields";
|
|
3416
|
+
const _I = "Include";
|
|
3417
|
+
const _ICM = "IncludeCustomMetadata";
|
|
3418
|
+
const _IIA = "IncludeIndirectActivities";
|
|
3419
|
+
const _K = "Keys";
|
|
3420
|
+
const _L = "Labels";
|
|
3421
|
+
const _Li = "Limit";
|
|
3422
|
+
const _M = "Marker";
|
|
3423
|
+
const _O = "Order";
|
|
3424
|
+
const _OI = "OrganizationId";
|
|
3425
|
+
const _PI = "PrincipalId";
|
|
3426
|
+
const _PT = "PrincipalType";
|
|
3427
|
+
const _Q = "Query";
|
|
3428
|
+
const _RI = "ResourceId";
|
|
3429
|
+
const _S = "Sort";
|
|
3430
|
+
const _SQ = "SearchQuery";
|
|
3431
|
+
const _ST = "StartTime";
|
|
3432
|
+
const _T = "Type";
|
|
3433
|
+
const _UI = "UserId";
|
|
3434
|
+
const _UIs = "UserIds";
|
|
3435
|
+
const _VI = "VersionId";
|
|
3436
|
+
const _a = "authentication";
|
|
3437
|
+
const _aT = "activityTypes";
|
|
3438
|
+
const _cT = "collectionType";
|
|
3439
|
+
const _dA = "deleteAll";
|
|
3440
|
+
const _dPV = "deletePriorVersions";
|
|
3441
|
+
const _eT = "endTime";
|
|
3442
|
+
const _f = "fields";
|
|
3443
|
+
const _i = "include";
|
|
3444
|
+
const _iCM = "includeCustomMetadata";
|
|
3445
|
+
const _iIA = "includeIndirectActivities";
|
|
3446
|
+
const _k = "keys";
|
|
3447
|
+
const _l = "labels";
|
|
3448
|
+
const _li = "limit";
|
|
3449
|
+
const _m = "marker";
|
|
3450
|
+
const _o = "order";
|
|
3451
|
+
const _oI = "organizationId";
|
|
3452
|
+
const _pI = "principalId";
|
|
3453
|
+
const _q = "query";
|
|
3454
|
+
const _rI = "resourceId";
|
|
3455
|
+
const _s = "sort";
|
|
3456
|
+
const _sQ = "searchQuery";
|
|
3457
|
+
const _sT = "startTime";
|
|
3458
|
+
const _t = "type";
|
|
3459
|
+
const _uI = "userId";
|
|
3460
|
+
const _uIs = "userIds";
|
|
3461
|
+
const _v = "versionid";
|
|
3462
|
+
const _vI = "versionId";
|
|
3772
3463
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3773
3464
|
if (encoded.length) {
|
|
3774
3465
|
return JSON.parse(encoded);
|