@aws-sdk/client-repostspace 3.928.0 → 3.930.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +850 -981
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/RepostspaceClient.js +2 -0
- package/dist-es/commands/BatchAddChannelRoleToAccessorsCommand.js +3 -9
- package/dist-es/commands/BatchAddRoleCommand.js +3 -9
- package/dist-es/commands/BatchRemoveChannelRoleFromAccessorsCommand.js +3 -9
- package/dist-es/commands/BatchRemoveRoleCommand.js +3 -9
- package/dist-es/commands/CreateChannelCommand.js +3 -10
- package/dist-es/commands/CreateSpaceCommand.js +3 -10
- package/dist-es/commands/DeleteSpaceCommand.js +3 -9
- package/dist-es/commands/DeregisterAdminCommand.js +3 -9
- package/dist-es/commands/GetChannelCommand.js +3 -10
- package/dist-es/commands/GetSpaceCommand.js +3 -10
- package/dist-es/commands/ListChannelsCommand.js +3 -10
- package/dist-es/commands/ListSpacesCommand.js +3 -10
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -10
- package/dist-es/commands/RegisterAdminCommand.js +3 -9
- package/dist-es/commands/SendInvitesCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -10
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateChannelCommand.js +3 -10
- package/dist-es/commands/UpdateSpaceCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -82
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +801 -0
- package/dist-types/RepostspaceClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -60
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +89 -0
- package/dist-types/ts3.4/RepostspaceClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -41
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +96 -0
- package/package.json +34 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -736
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -173
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -233
|
@@ -1,736 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
|
-
import { RepostspaceServiceException as __BaseException } from "../models/RepostspaceServiceException";
|
|
6
|
-
export const se_BatchAddChannelRoleToAccessorsCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/spaces/{spaceId}/channels/{channelId}/roles");
|
|
12
|
-
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
13
|
-
b.p("channelId", () => input.channelId, "{channelId}", false);
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(take(input, {
|
|
16
|
-
accessorIds: (_) => _json(_),
|
|
17
|
-
channelRole: [],
|
|
18
|
-
}));
|
|
19
|
-
b.m("POST").h(headers).b(body);
|
|
20
|
-
return b.build();
|
|
21
|
-
};
|
|
22
|
-
export const se_BatchAddRoleCommand = async (input, context) => {
|
|
23
|
-
const b = rb(input, context);
|
|
24
|
-
const headers = {
|
|
25
|
-
"content-type": "application/json",
|
|
26
|
-
};
|
|
27
|
-
b.bp("/spaces/{spaceId}/roles");
|
|
28
|
-
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
29
|
-
let body;
|
|
30
|
-
body = JSON.stringify(take(input, {
|
|
31
|
-
accessorIds: (_) => _json(_),
|
|
32
|
-
role: [],
|
|
33
|
-
}));
|
|
34
|
-
b.m("POST").h(headers).b(body);
|
|
35
|
-
return b.build();
|
|
36
|
-
};
|
|
37
|
-
export const se_BatchRemoveChannelRoleFromAccessorsCommand = async (input, context) => {
|
|
38
|
-
const b = rb(input, context);
|
|
39
|
-
const headers = {
|
|
40
|
-
"content-type": "application/json",
|
|
41
|
-
};
|
|
42
|
-
b.bp("/spaces/{spaceId}/channels/{channelId}/roles");
|
|
43
|
-
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
44
|
-
b.p("channelId", () => input.channelId, "{channelId}", false);
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify(take(input, {
|
|
47
|
-
accessorIds: (_) => _json(_),
|
|
48
|
-
channelRole: [],
|
|
49
|
-
}));
|
|
50
|
-
b.m("PATCH").h(headers).b(body);
|
|
51
|
-
return b.build();
|
|
52
|
-
};
|
|
53
|
-
export const se_BatchRemoveRoleCommand = async (input, context) => {
|
|
54
|
-
const b = rb(input, context);
|
|
55
|
-
const headers = {
|
|
56
|
-
"content-type": "application/json",
|
|
57
|
-
};
|
|
58
|
-
b.bp("/spaces/{spaceId}/roles");
|
|
59
|
-
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
60
|
-
let body;
|
|
61
|
-
body = JSON.stringify(take(input, {
|
|
62
|
-
accessorIds: (_) => _json(_),
|
|
63
|
-
role: [],
|
|
64
|
-
}));
|
|
65
|
-
b.m("PATCH").h(headers).b(body);
|
|
66
|
-
return b.build();
|
|
67
|
-
};
|
|
68
|
-
export const se_CreateChannelCommand = async (input, context) => {
|
|
69
|
-
const b = rb(input, context);
|
|
70
|
-
const headers = {
|
|
71
|
-
"content-type": "application/json",
|
|
72
|
-
};
|
|
73
|
-
b.bp("/spaces/{spaceId}/channels");
|
|
74
|
-
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify(take(input, {
|
|
77
|
-
channelDescription: [],
|
|
78
|
-
channelName: [],
|
|
79
|
-
}));
|
|
80
|
-
b.m("POST").h(headers).b(body);
|
|
81
|
-
return b.build();
|
|
82
|
-
};
|
|
83
|
-
export const se_CreateSpaceCommand = async (input, context) => {
|
|
84
|
-
const b = rb(input, context);
|
|
85
|
-
const headers = {
|
|
86
|
-
"content-type": "application/json",
|
|
87
|
-
};
|
|
88
|
-
b.bp("/spaces");
|
|
89
|
-
let body;
|
|
90
|
-
body = JSON.stringify(take(input, {
|
|
91
|
-
description: [],
|
|
92
|
-
name: [],
|
|
93
|
-
roleArn: [],
|
|
94
|
-
subdomain: [],
|
|
95
|
-
supportedEmailDomains: (_) => _json(_),
|
|
96
|
-
tags: (_) => _json(_),
|
|
97
|
-
tier: [],
|
|
98
|
-
userKMSKey: [],
|
|
99
|
-
}));
|
|
100
|
-
b.m("POST").h(headers).b(body);
|
|
101
|
-
return b.build();
|
|
102
|
-
};
|
|
103
|
-
export const se_DeleteSpaceCommand = async (input, context) => {
|
|
104
|
-
const b = rb(input, context);
|
|
105
|
-
const headers = {};
|
|
106
|
-
b.bp("/spaces/{spaceId}");
|
|
107
|
-
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
108
|
-
let body;
|
|
109
|
-
b.m("DELETE").h(headers).b(body);
|
|
110
|
-
return b.build();
|
|
111
|
-
};
|
|
112
|
-
export const se_DeregisterAdminCommand = async (input, context) => {
|
|
113
|
-
const b = rb(input, context);
|
|
114
|
-
const headers = {};
|
|
115
|
-
b.bp("/spaces/{spaceId}/admins/{adminId}");
|
|
116
|
-
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
117
|
-
b.p("adminId", () => input.adminId, "{adminId}", false);
|
|
118
|
-
let body;
|
|
119
|
-
b.m("DELETE").h(headers).b(body);
|
|
120
|
-
return b.build();
|
|
121
|
-
};
|
|
122
|
-
export const se_GetChannelCommand = async (input, context) => {
|
|
123
|
-
const b = rb(input, context);
|
|
124
|
-
const headers = {};
|
|
125
|
-
b.bp("/spaces/{spaceId}/channels/{channelId}");
|
|
126
|
-
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
127
|
-
b.p("channelId", () => input.channelId, "{channelId}", false);
|
|
128
|
-
let body;
|
|
129
|
-
b.m("GET").h(headers).b(body);
|
|
130
|
-
return b.build();
|
|
131
|
-
};
|
|
132
|
-
export const se_GetSpaceCommand = async (input, context) => {
|
|
133
|
-
const b = rb(input, context);
|
|
134
|
-
const headers = {};
|
|
135
|
-
b.bp("/spaces/{spaceId}");
|
|
136
|
-
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
137
|
-
let body;
|
|
138
|
-
b.m("GET").h(headers).b(body);
|
|
139
|
-
return b.build();
|
|
140
|
-
};
|
|
141
|
-
export const se_ListChannelsCommand = async (input, context) => {
|
|
142
|
-
const b = rb(input, context);
|
|
143
|
-
const headers = {};
|
|
144
|
-
b.bp("/spaces/{spaceId}/channels");
|
|
145
|
-
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
146
|
-
const query = map({
|
|
147
|
-
[_nT]: [, input[_nT]],
|
|
148
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
149
|
-
});
|
|
150
|
-
let body;
|
|
151
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
152
|
-
return b.build();
|
|
153
|
-
};
|
|
154
|
-
export const se_ListSpacesCommand = async (input, context) => {
|
|
155
|
-
const b = rb(input, context);
|
|
156
|
-
const headers = {};
|
|
157
|
-
b.bp("/spaces");
|
|
158
|
-
const query = map({
|
|
159
|
-
[_nT]: [, input[_nT]],
|
|
160
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
161
|
-
});
|
|
162
|
-
let body;
|
|
163
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
164
|
-
return b.build();
|
|
165
|
-
};
|
|
166
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
167
|
-
const b = rb(input, context);
|
|
168
|
-
const headers = {};
|
|
169
|
-
b.bp("/tags/{resourceArn}");
|
|
170
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
171
|
-
let body;
|
|
172
|
-
b.m("GET").h(headers).b(body);
|
|
173
|
-
return b.build();
|
|
174
|
-
};
|
|
175
|
-
export const se_RegisterAdminCommand = async (input, context) => {
|
|
176
|
-
const b = rb(input, context);
|
|
177
|
-
const headers = {};
|
|
178
|
-
b.bp("/spaces/{spaceId}/admins/{adminId}");
|
|
179
|
-
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
180
|
-
b.p("adminId", () => input.adminId, "{adminId}", false);
|
|
181
|
-
let body;
|
|
182
|
-
b.m("POST").h(headers).b(body);
|
|
183
|
-
return b.build();
|
|
184
|
-
};
|
|
185
|
-
export const se_SendInvitesCommand = async (input, context) => {
|
|
186
|
-
const b = rb(input, context);
|
|
187
|
-
const headers = {
|
|
188
|
-
"content-type": "application/json",
|
|
189
|
-
};
|
|
190
|
-
b.bp("/spaces/{spaceId}/invite");
|
|
191
|
-
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
192
|
-
let body;
|
|
193
|
-
body = JSON.stringify(take(input, {
|
|
194
|
-
accessorIds: (_) => _json(_),
|
|
195
|
-
body: [],
|
|
196
|
-
title: [],
|
|
197
|
-
}));
|
|
198
|
-
b.m("POST").h(headers).b(body);
|
|
199
|
-
return b.build();
|
|
200
|
-
};
|
|
201
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
202
|
-
const b = rb(input, context);
|
|
203
|
-
const headers = {
|
|
204
|
-
"content-type": "application/json",
|
|
205
|
-
};
|
|
206
|
-
b.bp("/tags/{resourceArn}");
|
|
207
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
208
|
-
let body;
|
|
209
|
-
body = JSON.stringify(take(input, {
|
|
210
|
-
tags: (_) => _json(_),
|
|
211
|
-
}));
|
|
212
|
-
b.m("POST").h(headers).b(body);
|
|
213
|
-
return b.build();
|
|
214
|
-
};
|
|
215
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
216
|
-
const b = rb(input, context);
|
|
217
|
-
const headers = {};
|
|
218
|
-
b.bp("/tags/{resourceArn}");
|
|
219
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
220
|
-
const query = map({
|
|
221
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
222
|
-
});
|
|
223
|
-
let body;
|
|
224
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
225
|
-
return b.build();
|
|
226
|
-
};
|
|
227
|
-
export const se_UpdateChannelCommand = async (input, context) => {
|
|
228
|
-
const b = rb(input, context);
|
|
229
|
-
const headers = {
|
|
230
|
-
"content-type": "application/json",
|
|
231
|
-
};
|
|
232
|
-
b.bp("/spaces/{spaceId}/channels/{channelId}");
|
|
233
|
-
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
234
|
-
b.p("channelId", () => input.channelId, "{channelId}", false);
|
|
235
|
-
let body;
|
|
236
|
-
body = JSON.stringify(take(input, {
|
|
237
|
-
channelDescription: [],
|
|
238
|
-
channelName: [],
|
|
239
|
-
}));
|
|
240
|
-
b.m("PUT").h(headers).b(body);
|
|
241
|
-
return b.build();
|
|
242
|
-
};
|
|
243
|
-
export const se_UpdateSpaceCommand = async (input, context) => {
|
|
244
|
-
const b = rb(input, context);
|
|
245
|
-
const headers = {
|
|
246
|
-
"content-type": "application/json",
|
|
247
|
-
};
|
|
248
|
-
b.bp("/spaces/{spaceId}");
|
|
249
|
-
b.p("spaceId", () => input.spaceId, "{spaceId}", false);
|
|
250
|
-
let body;
|
|
251
|
-
body = JSON.stringify(take(input, {
|
|
252
|
-
description: [],
|
|
253
|
-
roleArn: [],
|
|
254
|
-
supportedEmailDomains: (_) => _json(_),
|
|
255
|
-
tier: [],
|
|
256
|
-
}));
|
|
257
|
-
b.m("PUT").h(headers).b(body);
|
|
258
|
-
return b.build();
|
|
259
|
-
};
|
|
260
|
-
export const de_BatchAddChannelRoleToAccessorsCommand = async (output, context) => {
|
|
261
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
262
|
-
return de_CommandError(output, context);
|
|
263
|
-
}
|
|
264
|
-
const contents = map({
|
|
265
|
-
$metadata: deserializeMetadata(output),
|
|
266
|
-
});
|
|
267
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
268
|
-
const doc = take(data, {
|
|
269
|
-
addedAccessorIds: _json,
|
|
270
|
-
errors: _json,
|
|
271
|
-
});
|
|
272
|
-
Object.assign(contents, doc);
|
|
273
|
-
return contents;
|
|
274
|
-
};
|
|
275
|
-
export const de_BatchAddRoleCommand = async (output, context) => {
|
|
276
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
277
|
-
return de_CommandError(output, context);
|
|
278
|
-
}
|
|
279
|
-
const contents = map({
|
|
280
|
-
$metadata: deserializeMetadata(output),
|
|
281
|
-
});
|
|
282
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
283
|
-
const doc = take(data, {
|
|
284
|
-
addedAccessorIds: _json,
|
|
285
|
-
errors: _json,
|
|
286
|
-
});
|
|
287
|
-
Object.assign(contents, doc);
|
|
288
|
-
return contents;
|
|
289
|
-
};
|
|
290
|
-
export const de_BatchRemoveChannelRoleFromAccessorsCommand = async (output, context) => {
|
|
291
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
292
|
-
return de_CommandError(output, context);
|
|
293
|
-
}
|
|
294
|
-
const contents = map({
|
|
295
|
-
$metadata: deserializeMetadata(output),
|
|
296
|
-
});
|
|
297
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
298
|
-
const doc = take(data, {
|
|
299
|
-
errors: _json,
|
|
300
|
-
removedAccessorIds: _json,
|
|
301
|
-
});
|
|
302
|
-
Object.assign(contents, doc);
|
|
303
|
-
return contents;
|
|
304
|
-
};
|
|
305
|
-
export const de_BatchRemoveRoleCommand = async (output, context) => {
|
|
306
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
307
|
-
return de_CommandError(output, context);
|
|
308
|
-
}
|
|
309
|
-
const contents = map({
|
|
310
|
-
$metadata: deserializeMetadata(output),
|
|
311
|
-
});
|
|
312
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
313
|
-
const doc = take(data, {
|
|
314
|
-
errors: _json,
|
|
315
|
-
removedAccessorIds: _json,
|
|
316
|
-
});
|
|
317
|
-
Object.assign(contents, doc);
|
|
318
|
-
return contents;
|
|
319
|
-
};
|
|
320
|
-
export const de_CreateChannelCommand = async (output, context) => {
|
|
321
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
322
|
-
return de_CommandError(output, context);
|
|
323
|
-
}
|
|
324
|
-
const contents = map({
|
|
325
|
-
$metadata: deserializeMetadata(output),
|
|
326
|
-
});
|
|
327
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
328
|
-
const doc = take(data, {
|
|
329
|
-
channelId: __expectString,
|
|
330
|
-
});
|
|
331
|
-
Object.assign(contents, doc);
|
|
332
|
-
return contents;
|
|
333
|
-
};
|
|
334
|
-
export const de_CreateSpaceCommand = async (output, context) => {
|
|
335
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
336
|
-
return de_CommandError(output, context);
|
|
337
|
-
}
|
|
338
|
-
const contents = map({
|
|
339
|
-
$metadata: deserializeMetadata(output),
|
|
340
|
-
});
|
|
341
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
342
|
-
const doc = take(data, {
|
|
343
|
-
spaceId: __expectString,
|
|
344
|
-
});
|
|
345
|
-
Object.assign(contents, doc);
|
|
346
|
-
return contents;
|
|
347
|
-
};
|
|
348
|
-
export const de_DeleteSpaceCommand = async (output, context) => {
|
|
349
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
350
|
-
return de_CommandError(output, context);
|
|
351
|
-
}
|
|
352
|
-
const contents = map({
|
|
353
|
-
$metadata: deserializeMetadata(output),
|
|
354
|
-
});
|
|
355
|
-
await collectBody(output.body, context);
|
|
356
|
-
return contents;
|
|
357
|
-
};
|
|
358
|
-
export const de_DeregisterAdminCommand = async (output, context) => {
|
|
359
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
360
|
-
return de_CommandError(output, context);
|
|
361
|
-
}
|
|
362
|
-
const contents = map({
|
|
363
|
-
$metadata: deserializeMetadata(output),
|
|
364
|
-
});
|
|
365
|
-
await collectBody(output.body, context);
|
|
366
|
-
return contents;
|
|
367
|
-
};
|
|
368
|
-
export const de_GetChannelCommand = async (output, context) => {
|
|
369
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
370
|
-
return de_CommandError(output, context);
|
|
371
|
-
}
|
|
372
|
-
const contents = map({
|
|
373
|
-
$metadata: deserializeMetadata(output),
|
|
374
|
-
});
|
|
375
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
376
|
-
const doc = take(data, {
|
|
377
|
-
channelDescription: __expectString,
|
|
378
|
-
channelId: __expectString,
|
|
379
|
-
channelName: __expectString,
|
|
380
|
-
channelRoles: _json,
|
|
381
|
-
channelStatus: __expectString,
|
|
382
|
-
createDateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
383
|
-
deleteDateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
384
|
-
spaceId: __expectString,
|
|
385
|
-
});
|
|
386
|
-
Object.assign(contents, doc);
|
|
387
|
-
return contents;
|
|
388
|
-
};
|
|
389
|
-
export const de_GetSpaceCommand = async (output, context) => {
|
|
390
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
391
|
-
return de_CommandError(output, context);
|
|
392
|
-
}
|
|
393
|
-
const contents = map({
|
|
394
|
-
$metadata: deserializeMetadata(output),
|
|
395
|
-
});
|
|
396
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
397
|
-
const doc = take(data, {
|
|
398
|
-
applicationArn: __expectString,
|
|
399
|
-
arn: __expectString,
|
|
400
|
-
clientId: __expectString,
|
|
401
|
-
configurationStatus: __expectString,
|
|
402
|
-
contentSize: __expectLong,
|
|
403
|
-
createDateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
404
|
-
customerRoleArn: __expectString,
|
|
405
|
-
deleteDateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
406
|
-
description: __expectString,
|
|
407
|
-
groupAdmins: _json,
|
|
408
|
-
identityStoreId: __expectString,
|
|
409
|
-
name: __expectString,
|
|
410
|
-
randomDomain: __expectString,
|
|
411
|
-
roles: _json,
|
|
412
|
-
spaceId: __expectString,
|
|
413
|
-
status: __expectString,
|
|
414
|
-
storageLimit: __expectLong,
|
|
415
|
-
supportedEmailDomains: _json,
|
|
416
|
-
tier: __expectString,
|
|
417
|
-
userAdmins: _json,
|
|
418
|
-
userCount: __expectInt32,
|
|
419
|
-
userKMSKey: __expectString,
|
|
420
|
-
vanityDomain: __expectString,
|
|
421
|
-
vanityDomainStatus: __expectString,
|
|
422
|
-
});
|
|
423
|
-
Object.assign(contents, doc);
|
|
424
|
-
return contents;
|
|
425
|
-
};
|
|
426
|
-
export const de_ListChannelsCommand = async (output, context) => {
|
|
427
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
428
|
-
return de_CommandError(output, context);
|
|
429
|
-
}
|
|
430
|
-
const contents = map({
|
|
431
|
-
$metadata: deserializeMetadata(output),
|
|
432
|
-
});
|
|
433
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
434
|
-
const doc = take(data, {
|
|
435
|
-
channels: (_) => de_ChannelsList(_, context),
|
|
436
|
-
nextToken: __expectString,
|
|
437
|
-
});
|
|
438
|
-
Object.assign(contents, doc);
|
|
439
|
-
return contents;
|
|
440
|
-
};
|
|
441
|
-
export const de_ListSpacesCommand = async (output, context) => {
|
|
442
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
443
|
-
return de_CommandError(output, context);
|
|
444
|
-
}
|
|
445
|
-
const contents = map({
|
|
446
|
-
$metadata: deserializeMetadata(output),
|
|
447
|
-
});
|
|
448
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
449
|
-
const doc = take(data, {
|
|
450
|
-
nextToken: __expectString,
|
|
451
|
-
spaces: (_) => de_SpacesList(_, context),
|
|
452
|
-
});
|
|
453
|
-
Object.assign(contents, doc);
|
|
454
|
-
return contents;
|
|
455
|
-
};
|
|
456
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
457
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
458
|
-
return de_CommandError(output, context);
|
|
459
|
-
}
|
|
460
|
-
const contents = map({
|
|
461
|
-
$metadata: deserializeMetadata(output),
|
|
462
|
-
});
|
|
463
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
464
|
-
const doc = take(data, {
|
|
465
|
-
tags: _json,
|
|
466
|
-
});
|
|
467
|
-
Object.assign(contents, doc);
|
|
468
|
-
return contents;
|
|
469
|
-
};
|
|
470
|
-
export const de_RegisterAdminCommand = async (output, context) => {
|
|
471
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
472
|
-
return de_CommandError(output, context);
|
|
473
|
-
}
|
|
474
|
-
const contents = map({
|
|
475
|
-
$metadata: deserializeMetadata(output),
|
|
476
|
-
});
|
|
477
|
-
await collectBody(output.body, context);
|
|
478
|
-
return contents;
|
|
479
|
-
};
|
|
480
|
-
export const de_SendInvitesCommand = async (output, context) => {
|
|
481
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
482
|
-
return de_CommandError(output, context);
|
|
483
|
-
}
|
|
484
|
-
const contents = map({
|
|
485
|
-
$metadata: deserializeMetadata(output),
|
|
486
|
-
});
|
|
487
|
-
await collectBody(output.body, context);
|
|
488
|
-
return contents;
|
|
489
|
-
};
|
|
490
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
491
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
492
|
-
return de_CommandError(output, context);
|
|
493
|
-
}
|
|
494
|
-
const contents = map({
|
|
495
|
-
$metadata: deserializeMetadata(output),
|
|
496
|
-
});
|
|
497
|
-
await collectBody(output.body, context);
|
|
498
|
-
return contents;
|
|
499
|
-
};
|
|
500
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
501
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
502
|
-
return de_CommandError(output, context);
|
|
503
|
-
}
|
|
504
|
-
const contents = map({
|
|
505
|
-
$metadata: deserializeMetadata(output),
|
|
506
|
-
});
|
|
507
|
-
await collectBody(output.body, context);
|
|
508
|
-
return contents;
|
|
509
|
-
};
|
|
510
|
-
export const de_UpdateChannelCommand = async (output, context) => {
|
|
511
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
512
|
-
return de_CommandError(output, context);
|
|
513
|
-
}
|
|
514
|
-
const contents = map({
|
|
515
|
-
$metadata: deserializeMetadata(output),
|
|
516
|
-
});
|
|
517
|
-
await collectBody(output.body, context);
|
|
518
|
-
return contents;
|
|
519
|
-
};
|
|
520
|
-
export const de_UpdateSpaceCommand = async (output, context) => {
|
|
521
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
522
|
-
return de_CommandError(output, context);
|
|
523
|
-
}
|
|
524
|
-
const contents = map({
|
|
525
|
-
$metadata: deserializeMetadata(output),
|
|
526
|
-
});
|
|
527
|
-
await collectBody(output.body, context);
|
|
528
|
-
return contents;
|
|
529
|
-
};
|
|
530
|
-
const de_CommandError = async (output, context) => {
|
|
531
|
-
const parsedOutput = {
|
|
532
|
-
...output,
|
|
533
|
-
body: await parseErrorBody(output.body, context),
|
|
534
|
-
};
|
|
535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
536
|
-
switch (errorCode) {
|
|
537
|
-
case "AccessDeniedException":
|
|
538
|
-
case "com.amazonaws.repostspace#AccessDeniedException":
|
|
539
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
540
|
-
case "InternalServerException":
|
|
541
|
-
case "com.amazonaws.repostspace#InternalServerException":
|
|
542
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
543
|
-
case "ResourceNotFoundException":
|
|
544
|
-
case "com.amazonaws.repostspace#ResourceNotFoundException":
|
|
545
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
546
|
-
case "ThrottlingException":
|
|
547
|
-
case "com.amazonaws.repostspace#ThrottlingException":
|
|
548
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
549
|
-
case "ValidationException":
|
|
550
|
-
case "com.amazonaws.repostspace#ValidationException":
|
|
551
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
552
|
-
case "ConflictException":
|
|
553
|
-
case "com.amazonaws.repostspace#ConflictException":
|
|
554
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
555
|
-
case "ServiceQuotaExceededException":
|
|
556
|
-
case "com.amazonaws.repostspace#ServiceQuotaExceededException":
|
|
557
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
558
|
-
default:
|
|
559
|
-
const parsedBody = parsedOutput.body;
|
|
560
|
-
return throwDefaultError({
|
|
561
|
-
output,
|
|
562
|
-
parsedBody,
|
|
563
|
-
errorCode,
|
|
564
|
-
});
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
568
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
569
|
-
const contents = map({});
|
|
570
|
-
const data = parsedOutput.body;
|
|
571
|
-
const doc = take(data, {
|
|
572
|
-
message: __expectString,
|
|
573
|
-
});
|
|
574
|
-
Object.assign(contents, doc);
|
|
575
|
-
const exception = new AccessDeniedException({
|
|
576
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
577
|
-
...contents,
|
|
578
|
-
});
|
|
579
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
580
|
-
};
|
|
581
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
582
|
-
const contents = map({});
|
|
583
|
-
const data = parsedOutput.body;
|
|
584
|
-
const doc = take(data, {
|
|
585
|
-
message: __expectString,
|
|
586
|
-
resourceId: __expectString,
|
|
587
|
-
resourceType: __expectString,
|
|
588
|
-
});
|
|
589
|
-
Object.assign(contents, doc);
|
|
590
|
-
const exception = new ConflictException({
|
|
591
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
592
|
-
...contents,
|
|
593
|
-
});
|
|
594
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
595
|
-
};
|
|
596
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
597
|
-
const contents = map({
|
|
598
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
599
|
-
});
|
|
600
|
-
const data = parsedOutput.body;
|
|
601
|
-
const doc = take(data, {
|
|
602
|
-
message: __expectString,
|
|
603
|
-
});
|
|
604
|
-
Object.assign(contents, doc);
|
|
605
|
-
const exception = new InternalServerException({
|
|
606
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
607
|
-
...contents,
|
|
608
|
-
});
|
|
609
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
610
|
-
};
|
|
611
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
612
|
-
const contents = map({});
|
|
613
|
-
const data = parsedOutput.body;
|
|
614
|
-
const doc = take(data, {
|
|
615
|
-
message: __expectString,
|
|
616
|
-
resourceId: __expectString,
|
|
617
|
-
resourceType: __expectString,
|
|
618
|
-
});
|
|
619
|
-
Object.assign(contents, doc);
|
|
620
|
-
const exception = new ResourceNotFoundException({
|
|
621
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
622
|
-
...contents,
|
|
623
|
-
});
|
|
624
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
625
|
-
};
|
|
626
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
627
|
-
const contents = map({});
|
|
628
|
-
const data = parsedOutput.body;
|
|
629
|
-
const doc = take(data, {
|
|
630
|
-
message: __expectString,
|
|
631
|
-
quotaCode: __expectString,
|
|
632
|
-
resourceId: __expectString,
|
|
633
|
-
resourceType: __expectString,
|
|
634
|
-
serviceCode: __expectString,
|
|
635
|
-
});
|
|
636
|
-
Object.assign(contents, doc);
|
|
637
|
-
const exception = new ServiceQuotaExceededException({
|
|
638
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
639
|
-
...contents,
|
|
640
|
-
});
|
|
641
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
642
|
-
};
|
|
643
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
644
|
-
const contents = map({
|
|
645
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
646
|
-
});
|
|
647
|
-
const data = parsedOutput.body;
|
|
648
|
-
const doc = take(data, {
|
|
649
|
-
message: __expectString,
|
|
650
|
-
quotaCode: __expectString,
|
|
651
|
-
serviceCode: __expectString,
|
|
652
|
-
});
|
|
653
|
-
Object.assign(contents, doc);
|
|
654
|
-
const exception = new ThrottlingException({
|
|
655
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
656
|
-
...contents,
|
|
657
|
-
});
|
|
658
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
659
|
-
};
|
|
660
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
661
|
-
const contents = map({});
|
|
662
|
-
const data = parsedOutput.body;
|
|
663
|
-
const doc = take(data, {
|
|
664
|
-
fieldList: _json,
|
|
665
|
-
message: __expectString,
|
|
666
|
-
reason: __expectString,
|
|
667
|
-
});
|
|
668
|
-
Object.assign(contents, doc);
|
|
669
|
-
const exception = new ValidationException({
|
|
670
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
671
|
-
...contents,
|
|
672
|
-
});
|
|
673
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
674
|
-
};
|
|
675
|
-
const de_ChannelData = (output, context) => {
|
|
676
|
-
return take(output, {
|
|
677
|
-
channelDescription: __expectString,
|
|
678
|
-
channelId: __expectString,
|
|
679
|
-
channelName: __expectString,
|
|
680
|
-
channelStatus: __expectString,
|
|
681
|
-
createDateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
682
|
-
deleteDateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
683
|
-
groupCount: __expectInt32,
|
|
684
|
-
spaceId: __expectString,
|
|
685
|
-
userCount: __expectInt32,
|
|
686
|
-
});
|
|
687
|
-
};
|
|
688
|
-
const de_ChannelsList = (output, context) => {
|
|
689
|
-
const retVal = (output || [])
|
|
690
|
-
.filter((e) => e != null)
|
|
691
|
-
.map((entry) => {
|
|
692
|
-
return de_ChannelData(entry, context);
|
|
693
|
-
});
|
|
694
|
-
return retVal;
|
|
695
|
-
};
|
|
696
|
-
const de_SpaceData = (output, context) => {
|
|
697
|
-
return take(output, {
|
|
698
|
-
arn: __expectString,
|
|
699
|
-
configurationStatus: __expectString,
|
|
700
|
-
contentSize: __expectLong,
|
|
701
|
-
createDateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
702
|
-
deleteDateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
703
|
-
description: __expectString,
|
|
704
|
-
name: __expectString,
|
|
705
|
-
randomDomain: __expectString,
|
|
706
|
-
spaceId: __expectString,
|
|
707
|
-
status: __expectString,
|
|
708
|
-
storageLimit: __expectLong,
|
|
709
|
-
supportedEmailDomains: _json,
|
|
710
|
-
tier: __expectString,
|
|
711
|
-
userCount: __expectInt32,
|
|
712
|
-
userKMSKey: __expectString,
|
|
713
|
-
vanityDomain: __expectString,
|
|
714
|
-
vanityDomainStatus: __expectString,
|
|
715
|
-
});
|
|
716
|
-
};
|
|
717
|
-
const de_SpacesList = (output, context) => {
|
|
718
|
-
const retVal = (output || [])
|
|
719
|
-
.filter((e) => e != null)
|
|
720
|
-
.map((entry) => {
|
|
721
|
-
return de_SpaceData(entry, context);
|
|
722
|
-
});
|
|
723
|
-
return retVal;
|
|
724
|
-
};
|
|
725
|
-
const deserializeMetadata = (output) => ({
|
|
726
|
-
httpStatusCode: output.statusCode,
|
|
727
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
728
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
729
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
730
|
-
});
|
|
731
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
732
|
-
const _mR = "maxResults";
|
|
733
|
-
const _nT = "nextToken";
|
|
734
|
-
const _rAS = "retryAfterSeconds";
|
|
735
|
-
const _ra = "retry-after";
|
|
736
|
-
const _tK = "tagKeys";
|