@aws-sdk/client-ivschat 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 +631 -895
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/IvschatClient.js +2 -0
- package/dist-es/commands/CreateChatTokenCommand.js +3 -10
- package/dist-es/commands/CreateLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/CreateRoomCommand.js +3 -9
- package/dist-es/commands/DeleteLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteMessageCommand.js +3 -9
- package/dist-es/commands/DeleteRoomCommand.js +3 -9
- package/dist-es/commands/DisconnectUserCommand.js +3 -10
- package/dist-es/commands/GetLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/GetRoomCommand.js +3 -9
- package/dist-es/commands/ListLoggingConfigurationsCommand.js +3 -9
- package/dist-es/commands/ListRoomsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/SendEventCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateLoggingConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateRoomCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -26
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +577 -0
- package/dist-types/IvschatClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +4 -13
- 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 +79 -0
- package/dist-types/ts3.4/IvschatClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -10
- 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 +86 -0
- package/package.json +33 -33
- package/dist-es/protocols/Aws_restJson1.js +0 -726
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -155
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -209
|
@@ -1,726 +0,0 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion, 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, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { IvschatServiceException as __BaseException } from "../models/IvschatServiceException";
|
|
5
|
-
import { AccessDeniedException, ConflictException, InternalServerException, PendingVerification, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const se_CreateChatTokenCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/CreateChatToken");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
attributes: (_) => _json(_),
|
|
15
|
-
capabilities: (_) => _json(_),
|
|
16
|
-
roomIdentifier: [],
|
|
17
|
-
sessionDurationInMinutes: [],
|
|
18
|
-
userId: [],
|
|
19
|
-
}));
|
|
20
|
-
b.m("POST").h(headers).b(body);
|
|
21
|
-
return b.build();
|
|
22
|
-
};
|
|
23
|
-
export const se_CreateLoggingConfigurationCommand = async (input, context) => {
|
|
24
|
-
const b = rb(input, context);
|
|
25
|
-
const headers = {
|
|
26
|
-
"content-type": "application/json",
|
|
27
|
-
};
|
|
28
|
-
b.bp("/CreateLoggingConfiguration");
|
|
29
|
-
let body;
|
|
30
|
-
body = JSON.stringify(take(input, {
|
|
31
|
-
destinationConfiguration: (_) => _json(_),
|
|
32
|
-
name: [],
|
|
33
|
-
tags: (_) => _json(_),
|
|
34
|
-
}));
|
|
35
|
-
b.m("POST").h(headers).b(body);
|
|
36
|
-
return b.build();
|
|
37
|
-
};
|
|
38
|
-
export const se_CreateRoomCommand = async (input, context) => {
|
|
39
|
-
const b = rb(input, context);
|
|
40
|
-
const headers = {
|
|
41
|
-
"content-type": "application/json",
|
|
42
|
-
};
|
|
43
|
-
b.bp("/CreateRoom");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(take(input, {
|
|
46
|
-
loggingConfigurationIdentifiers: (_) => _json(_),
|
|
47
|
-
maximumMessageLength: [],
|
|
48
|
-
maximumMessageRatePerSecond: [],
|
|
49
|
-
messageReviewHandler: (_) => _json(_),
|
|
50
|
-
name: [],
|
|
51
|
-
tags: (_) => _json(_),
|
|
52
|
-
}));
|
|
53
|
-
b.m("POST").h(headers).b(body);
|
|
54
|
-
return b.build();
|
|
55
|
-
};
|
|
56
|
-
export const se_DeleteLoggingConfigurationCommand = async (input, context) => {
|
|
57
|
-
const b = rb(input, context);
|
|
58
|
-
const headers = {
|
|
59
|
-
"content-type": "application/json",
|
|
60
|
-
};
|
|
61
|
-
b.bp("/DeleteLoggingConfiguration");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(take(input, {
|
|
64
|
-
identifier: [],
|
|
65
|
-
}));
|
|
66
|
-
b.m("POST").h(headers).b(body);
|
|
67
|
-
return b.build();
|
|
68
|
-
};
|
|
69
|
-
export const se_DeleteMessageCommand = async (input, context) => {
|
|
70
|
-
const b = rb(input, context);
|
|
71
|
-
const headers = {
|
|
72
|
-
"content-type": "application/json",
|
|
73
|
-
};
|
|
74
|
-
b.bp("/DeleteMessage");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify(take(input, {
|
|
77
|
-
id: [],
|
|
78
|
-
reason: [],
|
|
79
|
-
roomIdentifier: [],
|
|
80
|
-
}));
|
|
81
|
-
b.m("POST").h(headers).b(body);
|
|
82
|
-
return b.build();
|
|
83
|
-
};
|
|
84
|
-
export const se_DeleteRoomCommand = async (input, context) => {
|
|
85
|
-
const b = rb(input, context);
|
|
86
|
-
const headers = {
|
|
87
|
-
"content-type": "application/json",
|
|
88
|
-
};
|
|
89
|
-
b.bp("/DeleteRoom");
|
|
90
|
-
let body;
|
|
91
|
-
body = JSON.stringify(take(input, {
|
|
92
|
-
identifier: [],
|
|
93
|
-
}));
|
|
94
|
-
b.m("POST").h(headers).b(body);
|
|
95
|
-
return b.build();
|
|
96
|
-
};
|
|
97
|
-
export const se_DisconnectUserCommand = async (input, context) => {
|
|
98
|
-
const b = rb(input, context);
|
|
99
|
-
const headers = {
|
|
100
|
-
"content-type": "application/json",
|
|
101
|
-
};
|
|
102
|
-
b.bp("/DisconnectUser");
|
|
103
|
-
let body;
|
|
104
|
-
body = JSON.stringify(take(input, {
|
|
105
|
-
reason: [],
|
|
106
|
-
roomIdentifier: [],
|
|
107
|
-
userId: [],
|
|
108
|
-
}));
|
|
109
|
-
b.m("POST").h(headers).b(body);
|
|
110
|
-
return b.build();
|
|
111
|
-
};
|
|
112
|
-
export const se_GetLoggingConfigurationCommand = async (input, context) => {
|
|
113
|
-
const b = rb(input, context);
|
|
114
|
-
const headers = {
|
|
115
|
-
"content-type": "application/json",
|
|
116
|
-
};
|
|
117
|
-
b.bp("/GetLoggingConfiguration");
|
|
118
|
-
let body;
|
|
119
|
-
body = JSON.stringify(take(input, {
|
|
120
|
-
identifier: [],
|
|
121
|
-
}));
|
|
122
|
-
b.m("POST").h(headers).b(body);
|
|
123
|
-
return b.build();
|
|
124
|
-
};
|
|
125
|
-
export const se_GetRoomCommand = async (input, context) => {
|
|
126
|
-
const b = rb(input, context);
|
|
127
|
-
const headers = {
|
|
128
|
-
"content-type": "application/json",
|
|
129
|
-
};
|
|
130
|
-
b.bp("/GetRoom");
|
|
131
|
-
let body;
|
|
132
|
-
body = JSON.stringify(take(input, {
|
|
133
|
-
identifier: [],
|
|
134
|
-
}));
|
|
135
|
-
b.m("POST").h(headers).b(body);
|
|
136
|
-
return b.build();
|
|
137
|
-
};
|
|
138
|
-
export const se_ListLoggingConfigurationsCommand = async (input, context) => {
|
|
139
|
-
const b = rb(input, context);
|
|
140
|
-
const headers = {
|
|
141
|
-
"content-type": "application/json",
|
|
142
|
-
};
|
|
143
|
-
b.bp("/ListLoggingConfigurations");
|
|
144
|
-
let body;
|
|
145
|
-
body = JSON.stringify(take(input, {
|
|
146
|
-
maxResults: [],
|
|
147
|
-
nextToken: [],
|
|
148
|
-
}));
|
|
149
|
-
b.m("POST").h(headers).b(body);
|
|
150
|
-
return b.build();
|
|
151
|
-
};
|
|
152
|
-
export const se_ListRoomsCommand = async (input, context) => {
|
|
153
|
-
const b = rb(input, context);
|
|
154
|
-
const headers = {
|
|
155
|
-
"content-type": "application/json",
|
|
156
|
-
};
|
|
157
|
-
b.bp("/ListRooms");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify(take(input, {
|
|
160
|
-
loggingConfigurationIdentifier: [],
|
|
161
|
-
maxResults: [],
|
|
162
|
-
messageReviewHandlerUri: [],
|
|
163
|
-
name: [],
|
|
164
|
-
nextToken: [],
|
|
165
|
-
}));
|
|
166
|
-
b.m("POST").h(headers).b(body);
|
|
167
|
-
return b.build();
|
|
168
|
-
};
|
|
169
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
170
|
-
const b = rb(input, context);
|
|
171
|
-
const headers = {};
|
|
172
|
-
b.bp("/tags/{resourceArn}");
|
|
173
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
174
|
-
let body;
|
|
175
|
-
b.m("GET").h(headers).b(body);
|
|
176
|
-
return b.build();
|
|
177
|
-
};
|
|
178
|
-
export const se_SendEventCommand = async (input, context) => {
|
|
179
|
-
const b = rb(input, context);
|
|
180
|
-
const headers = {
|
|
181
|
-
"content-type": "application/json",
|
|
182
|
-
};
|
|
183
|
-
b.bp("/SendEvent");
|
|
184
|
-
let body;
|
|
185
|
-
body = JSON.stringify(take(input, {
|
|
186
|
-
attributes: (_) => _json(_),
|
|
187
|
-
eventName: [],
|
|
188
|
-
roomIdentifier: [],
|
|
189
|
-
}));
|
|
190
|
-
b.m("POST").h(headers).b(body);
|
|
191
|
-
return b.build();
|
|
192
|
-
};
|
|
193
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
194
|
-
const b = rb(input, context);
|
|
195
|
-
const headers = {
|
|
196
|
-
"content-type": "application/json",
|
|
197
|
-
};
|
|
198
|
-
b.bp("/tags/{resourceArn}");
|
|
199
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify(take(input, {
|
|
202
|
-
tags: (_) => _json(_),
|
|
203
|
-
}));
|
|
204
|
-
b.m("POST").h(headers).b(body);
|
|
205
|
-
return b.build();
|
|
206
|
-
};
|
|
207
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
208
|
-
const b = rb(input, context);
|
|
209
|
-
const headers = {};
|
|
210
|
-
b.bp("/tags/{resourceArn}");
|
|
211
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
212
|
-
const query = map({
|
|
213
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
214
|
-
});
|
|
215
|
-
let body;
|
|
216
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
217
|
-
return b.build();
|
|
218
|
-
};
|
|
219
|
-
export const se_UpdateLoggingConfigurationCommand = async (input, context) => {
|
|
220
|
-
const b = rb(input, context);
|
|
221
|
-
const headers = {
|
|
222
|
-
"content-type": "application/json",
|
|
223
|
-
};
|
|
224
|
-
b.bp("/UpdateLoggingConfiguration");
|
|
225
|
-
let body;
|
|
226
|
-
body = JSON.stringify(take(input, {
|
|
227
|
-
destinationConfiguration: (_) => _json(_),
|
|
228
|
-
identifier: [],
|
|
229
|
-
name: [],
|
|
230
|
-
}));
|
|
231
|
-
b.m("POST").h(headers).b(body);
|
|
232
|
-
return b.build();
|
|
233
|
-
};
|
|
234
|
-
export const se_UpdateRoomCommand = async (input, context) => {
|
|
235
|
-
const b = rb(input, context);
|
|
236
|
-
const headers = {
|
|
237
|
-
"content-type": "application/json",
|
|
238
|
-
};
|
|
239
|
-
b.bp("/UpdateRoom");
|
|
240
|
-
let body;
|
|
241
|
-
body = JSON.stringify(take(input, {
|
|
242
|
-
identifier: [],
|
|
243
|
-
loggingConfigurationIdentifiers: (_) => _json(_),
|
|
244
|
-
maximumMessageLength: [],
|
|
245
|
-
maximumMessageRatePerSecond: [],
|
|
246
|
-
messageReviewHandler: (_) => _json(_),
|
|
247
|
-
name: [],
|
|
248
|
-
}));
|
|
249
|
-
b.m("POST").h(headers).b(body);
|
|
250
|
-
return b.build();
|
|
251
|
-
};
|
|
252
|
-
export const de_CreateChatTokenCommand = async (output, context) => {
|
|
253
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
254
|
-
return de_CommandError(output, context);
|
|
255
|
-
}
|
|
256
|
-
const contents = map({
|
|
257
|
-
$metadata: deserializeMetadata(output),
|
|
258
|
-
});
|
|
259
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
260
|
-
const doc = take(data, {
|
|
261
|
-
sessionExpirationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
262
|
-
token: __expectString,
|
|
263
|
-
tokenExpirationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
264
|
-
});
|
|
265
|
-
Object.assign(contents, doc);
|
|
266
|
-
return contents;
|
|
267
|
-
};
|
|
268
|
-
export const de_CreateLoggingConfigurationCommand = async (output, context) => {
|
|
269
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
270
|
-
return de_CommandError(output, context);
|
|
271
|
-
}
|
|
272
|
-
const contents = map({
|
|
273
|
-
$metadata: deserializeMetadata(output),
|
|
274
|
-
});
|
|
275
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
276
|
-
const doc = take(data, {
|
|
277
|
-
arn: __expectString,
|
|
278
|
-
createTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
279
|
-
destinationConfiguration: (_) => _json(__expectUnion(_)),
|
|
280
|
-
id: __expectString,
|
|
281
|
-
name: __expectString,
|
|
282
|
-
state: __expectString,
|
|
283
|
-
tags: _json,
|
|
284
|
-
updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
285
|
-
});
|
|
286
|
-
Object.assign(contents, doc);
|
|
287
|
-
return contents;
|
|
288
|
-
};
|
|
289
|
-
export const de_CreateRoomCommand = async (output, context) => {
|
|
290
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
291
|
-
return de_CommandError(output, context);
|
|
292
|
-
}
|
|
293
|
-
const contents = map({
|
|
294
|
-
$metadata: deserializeMetadata(output),
|
|
295
|
-
});
|
|
296
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
297
|
-
const doc = take(data, {
|
|
298
|
-
arn: __expectString,
|
|
299
|
-
createTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
300
|
-
id: __expectString,
|
|
301
|
-
loggingConfigurationIdentifiers: _json,
|
|
302
|
-
maximumMessageLength: __expectInt32,
|
|
303
|
-
maximumMessageRatePerSecond: __expectInt32,
|
|
304
|
-
messageReviewHandler: _json,
|
|
305
|
-
name: __expectString,
|
|
306
|
-
tags: _json,
|
|
307
|
-
updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
308
|
-
});
|
|
309
|
-
Object.assign(contents, doc);
|
|
310
|
-
return contents;
|
|
311
|
-
};
|
|
312
|
-
export const de_DeleteLoggingConfigurationCommand = async (output, context) => {
|
|
313
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
314
|
-
return de_CommandError(output, context);
|
|
315
|
-
}
|
|
316
|
-
const contents = map({
|
|
317
|
-
$metadata: deserializeMetadata(output),
|
|
318
|
-
});
|
|
319
|
-
await collectBody(output.body, context);
|
|
320
|
-
return contents;
|
|
321
|
-
};
|
|
322
|
-
export const de_DeleteMessageCommand = async (output, context) => {
|
|
323
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
324
|
-
return de_CommandError(output, context);
|
|
325
|
-
}
|
|
326
|
-
const contents = map({
|
|
327
|
-
$metadata: deserializeMetadata(output),
|
|
328
|
-
});
|
|
329
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
330
|
-
const doc = take(data, {
|
|
331
|
-
id: __expectString,
|
|
332
|
-
});
|
|
333
|
-
Object.assign(contents, doc);
|
|
334
|
-
return contents;
|
|
335
|
-
};
|
|
336
|
-
export const de_DeleteRoomCommand = async (output, context) => {
|
|
337
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
338
|
-
return de_CommandError(output, context);
|
|
339
|
-
}
|
|
340
|
-
const contents = map({
|
|
341
|
-
$metadata: deserializeMetadata(output),
|
|
342
|
-
});
|
|
343
|
-
await collectBody(output.body, context);
|
|
344
|
-
return contents;
|
|
345
|
-
};
|
|
346
|
-
export const de_DisconnectUserCommand = async (output, context) => {
|
|
347
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
348
|
-
return de_CommandError(output, context);
|
|
349
|
-
}
|
|
350
|
-
const contents = map({
|
|
351
|
-
$metadata: deserializeMetadata(output),
|
|
352
|
-
});
|
|
353
|
-
await collectBody(output.body, context);
|
|
354
|
-
return contents;
|
|
355
|
-
};
|
|
356
|
-
export const de_GetLoggingConfigurationCommand = async (output, context) => {
|
|
357
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
358
|
-
return de_CommandError(output, context);
|
|
359
|
-
}
|
|
360
|
-
const contents = map({
|
|
361
|
-
$metadata: deserializeMetadata(output),
|
|
362
|
-
});
|
|
363
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
364
|
-
const doc = take(data, {
|
|
365
|
-
arn: __expectString,
|
|
366
|
-
createTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
367
|
-
destinationConfiguration: (_) => _json(__expectUnion(_)),
|
|
368
|
-
id: __expectString,
|
|
369
|
-
name: __expectString,
|
|
370
|
-
state: __expectString,
|
|
371
|
-
tags: _json,
|
|
372
|
-
updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
373
|
-
});
|
|
374
|
-
Object.assign(contents, doc);
|
|
375
|
-
return contents;
|
|
376
|
-
};
|
|
377
|
-
export const de_GetRoomCommand = async (output, context) => {
|
|
378
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
379
|
-
return de_CommandError(output, context);
|
|
380
|
-
}
|
|
381
|
-
const contents = map({
|
|
382
|
-
$metadata: deserializeMetadata(output),
|
|
383
|
-
});
|
|
384
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
385
|
-
const doc = take(data, {
|
|
386
|
-
arn: __expectString,
|
|
387
|
-
createTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
388
|
-
id: __expectString,
|
|
389
|
-
loggingConfigurationIdentifiers: _json,
|
|
390
|
-
maximumMessageLength: __expectInt32,
|
|
391
|
-
maximumMessageRatePerSecond: __expectInt32,
|
|
392
|
-
messageReviewHandler: _json,
|
|
393
|
-
name: __expectString,
|
|
394
|
-
tags: _json,
|
|
395
|
-
updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
396
|
-
});
|
|
397
|
-
Object.assign(contents, doc);
|
|
398
|
-
return contents;
|
|
399
|
-
};
|
|
400
|
-
export const de_ListLoggingConfigurationsCommand = async (output, context) => {
|
|
401
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
402
|
-
return de_CommandError(output, context);
|
|
403
|
-
}
|
|
404
|
-
const contents = map({
|
|
405
|
-
$metadata: deserializeMetadata(output),
|
|
406
|
-
});
|
|
407
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
408
|
-
const doc = take(data, {
|
|
409
|
-
loggingConfigurations: (_) => de_LoggingConfigurationList(_, context),
|
|
410
|
-
nextToken: __expectString,
|
|
411
|
-
});
|
|
412
|
-
Object.assign(contents, doc);
|
|
413
|
-
return contents;
|
|
414
|
-
};
|
|
415
|
-
export const de_ListRoomsCommand = async (output, context) => {
|
|
416
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
417
|
-
return de_CommandError(output, context);
|
|
418
|
-
}
|
|
419
|
-
const contents = map({
|
|
420
|
-
$metadata: deserializeMetadata(output),
|
|
421
|
-
});
|
|
422
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
423
|
-
const doc = take(data, {
|
|
424
|
-
nextToken: __expectString,
|
|
425
|
-
rooms: (_) => de_RoomList(_, context),
|
|
426
|
-
});
|
|
427
|
-
Object.assign(contents, doc);
|
|
428
|
-
return contents;
|
|
429
|
-
};
|
|
430
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
431
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
432
|
-
return de_CommandError(output, context);
|
|
433
|
-
}
|
|
434
|
-
const contents = map({
|
|
435
|
-
$metadata: deserializeMetadata(output),
|
|
436
|
-
});
|
|
437
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
438
|
-
const doc = take(data, {
|
|
439
|
-
tags: _json,
|
|
440
|
-
});
|
|
441
|
-
Object.assign(contents, doc);
|
|
442
|
-
return contents;
|
|
443
|
-
};
|
|
444
|
-
export const de_SendEventCommand = async (output, context) => {
|
|
445
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
446
|
-
return de_CommandError(output, context);
|
|
447
|
-
}
|
|
448
|
-
const contents = map({
|
|
449
|
-
$metadata: deserializeMetadata(output),
|
|
450
|
-
});
|
|
451
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
452
|
-
const doc = take(data, {
|
|
453
|
-
id: __expectString,
|
|
454
|
-
});
|
|
455
|
-
Object.assign(contents, doc);
|
|
456
|
-
return contents;
|
|
457
|
-
};
|
|
458
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
459
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
460
|
-
return de_CommandError(output, context);
|
|
461
|
-
}
|
|
462
|
-
const contents = map({
|
|
463
|
-
$metadata: deserializeMetadata(output),
|
|
464
|
-
});
|
|
465
|
-
await collectBody(output.body, context);
|
|
466
|
-
return contents;
|
|
467
|
-
};
|
|
468
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
469
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
470
|
-
return de_CommandError(output, context);
|
|
471
|
-
}
|
|
472
|
-
const contents = map({
|
|
473
|
-
$metadata: deserializeMetadata(output),
|
|
474
|
-
});
|
|
475
|
-
await collectBody(output.body, context);
|
|
476
|
-
return contents;
|
|
477
|
-
};
|
|
478
|
-
export const de_UpdateLoggingConfigurationCommand = async (output, context) => {
|
|
479
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
480
|
-
return de_CommandError(output, context);
|
|
481
|
-
}
|
|
482
|
-
const contents = map({
|
|
483
|
-
$metadata: deserializeMetadata(output),
|
|
484
|
-
});
|
|
485
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
486
|
-
const doc = take(data, {
|
|
487
|
-
arn: __expectString,
|
|
488
|
-
createTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
489
|
-
destinationConfiguration: (_) => _json(__expectUnion(_)),
|
|
490
|
-
id: __expectString,
|
|
491
|
-
name: __expectString,
|
|
492
|
-
state: __expectString,
|
|
493
|
-
tags: _json,
|
|
494
|
-
updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
495
|
-
});
|
|
496
|
-
Object.assign(contents, doc);
|
|
497
|
-
return contents;
|
|
498
|
-
};
|
|
499
|
-
export const de_UpdateRoomCommand = async (output, context) => {
|
|
500
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
501
|
-
return de_CommandError(output, context);
|
|
502
|
-
}
|
|
503
|
-
const contents = map({
|
|
504
|
-
$metadata: deserializeMetadata(output),
|
|
505
|
-
});
|
|
506
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
507
|
-
const doc = take(data, {
|
|
508
|
-
arn: __expectString,
|
|
509
|
-
createTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
510
|
-
id: __expectString,
|
|
511
|
-
loggingConfigurationIdentifiers: _json,
|
|
512
|
-
maximumMessageLength: __expectInt32,
|
|
513
|
-
maximumMessageRatePerSecond: __expectInt32,
|
|
514
|
-
messageReviewHandler: _json,
|
|
515
|
-
name: __expectString,
|
|
516
|
-
tags: _json,
|
|
517
|
-
updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
518
|
-
});
|
|
519
|
-
Object.assign(contents, doc);
|
|
520
|
-
return contents;
|
|
521
|
-
};
|
|
522
|
-
const de_CommandError = async (output, context) => {
|
|
523
|
-
const parsedOutput = {
|
|
524
|
-
...output,
|
|
525
|
-
body: await parseErrorBody(output.body, context),
|
|
526
|
-
};
|
|
527
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
528
|
-
switch (errorCode) {
|
|
529
|
-
case "AccessDeniedException":
|
|
530
|
-
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
531
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
532
|
-
case "PendingVerification":
|
|
533
|
-
case "com.amazonaws.ivschat#PendingVerification":
|
|
534
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
535
|
-
case "ResourceNotFoundException":
|
|
536
|
-
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
537
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
538
|
-
case "ValidationException":
|
|
539
|
-
case "com.amazonaws.ivschat#ValidationException":
|
|
540
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
541
|
-
case "ConflictException":
|
|
542
|
-
case "com.amazonaws.ivschat#ConflictException":
|
|
543
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
544
|
-
case "ServiceQuotaExceededException":
|
|
545
|
-
case "com.amazonaws.ivschat#ServiceQuotaExceededException":
|
|
546
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
547
|
-
case "ThrottlingException":
|
|
548
|
-
case "com.amazonaws.ivschat#ThrottlingException":
|
|
549
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
550
|
-
case "InternalServerException":
|
|
551
|
-
case "com.amazonaws.ivschat#InternalServerException":
|
|
552
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
553
|
-
default:
|
|
554
|
-
const parsedBody = parsedOutput.body;
|
|
555
|
-
return throwDefaultError({
|
|
556
|
-
output,
|
|
557
|
-
parsedBody,
|
|
558
|
-
errorCode,
|
|
559
|
-
});
|
|
560
|
-
}
|
|
561
|
-
};
|
|
562
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
563
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
564
|
-
const contents = map({});
|
|
565
|
-
const data = parsedOutput.body;
|
|
566
|
-
const doc = take(data, {
|
|
567
|
-
message: __expectString,
|
|
568
|
-
});
|
|
569
|
-
Object.assign(contents, doc);
|
|
570
|
-
const exception = new AccessDeniedException({
|
|
571
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
572
|
-
...contents,
|
|
573
|
-
});
|
|
574
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
575
|
-
};
|
|
576
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
577
|
-
const contents = map({});
|
|
578
|
-
const data = parsedOutput.body;
|
|
579
|
-
const doc = take(data, {
|
|
580
|
-
message: __expectString,
|
|
581
|
-
resourceId: __expectString,
|
|
582
|
-
resourceType: __expectString,
|
|
583
|
-
});
|
|
584
|
-
Object.assign(contents, doc);
|
|
585
|
-
const exception = new ConflictException({
|
|
586
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
587
|
-
...contents,
|
|
588
|
-
});
|
|
589
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
590
|
-
};
|
|
591
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
592
|
-
const contents = map({});
|
|
593
|
-
const data = parsedOutput.body;
|
|
594
|
-
const doc = take(data, {
|
|
595
|
-
message: __expectString,
|
|
596
|
-
});
|
|
597
|
-
Object.assign(contents, doc);
|
|
598
|
-
const exception = new InternalServerException({
|
|
599
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
600
|
-
...contents,
|
|
601
|
-
});
|
|
602
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
603
|
-
};
|
|
604
|
-
const de_PendingVerificationRes = async (parsedOutput, context) => {
|
|
605
|
-
const contents = map({});
|
|
606
|
-
const data = parsedOutput.body;
|
|
607
|
-
const doc = take(data, {
|
|
608
|
-
message: __expectString,
|
|
609
|
-
});
|
|
610
|
-
Object.assign(contents, doc);
|
|
611
|
-
const exception = new PendingVerification({
|
|
612
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
613
|
-
...contents,
|
|
614
|
-
});
|
|
615
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
616
|
-
};
|
|
617
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
618
|
-
const contents = map({});
|
|
619
|
-
const data = parsedOutput.body;
|
|
620
|
-
const doc = take(data, {
|
|
621
|
-
message: __expectString,
|
|
622
|
-
resourceId: __expectString,
|
|
623
|
-
resourceType: __expectString,
|
|
624
|
-
});
|
|
625
|
-
Object.assign(contents, doc);
|
|
626
|
-
const exception = new ResourceNotFoundException({
|
|
627
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
628
|
-
...contents,
|
|
629
|
-
});
|
|
630
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
631
|
-
};
|
|
632
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
633
|
-
const contents = map({});
|
|
634
|
-
const data = parsedOutput.body;
|
|
635
|
-
const doc = take(data, {
|
|
636
|
-
limit: __expectInt32,
|
|
637
|
-
message: __expectString,
|
|
638
|
-
resourceId: __expectString,
|
|
639
|
-
resourceType: __expectString,
|
|
640
|
-
});
|
|
641
|
-
Object.assign(contents, doc);
|
|
642
|
-
const exception = new ServiceQuotaExceededException({
|
|
643
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
644
|
-
...contents,
|
|
645
|
-
});
|
|
646
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
647
|
-
};
|
|
648
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
649
|
-
const contents = map({});
|
|
650
|
-
const data = parsedOutput.body;
|
|
651
|
-
const doc = take(data, {
|
|
652
|
-
limit: __expectInt32,
|
|
653
|
-
message: __expectString,
|
|
654
|
-
resourceId: __expectString,
|
|
655
|
-
resourceType: __expectString,
|
|
656
|
-
});
|
|
657
|
-
Object.assign(contents, doc);
|
|
658
|
-
const exception = new ThrottlingException({
|
|
659
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
660
|
-
...contents,
|
|
661
|
-
});
|
|
662
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
663
|
-
};
|
|
664
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
665
|
-
const contents = map({});
|
|
666
|
-
const data = parsedOutput.body;
|
|
667
|
-
const doc = take(data, {
|
|
668
|
-
fieldList: _json,
|
|
669
|
-
message: __expectString,
|
|
670
|
-
reason: __expectString,
|
|
671
|
-
});
|
|
672
|
-
Object.assign(contents, doc);
|
|
673
|
-
const exception = new ValidationException({
|
|
674
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
675
|
-
...contents,
|
|
676
|
-
});
|
|
677
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
678
|
-
};
|
|
679
|
-
const de_LoggingConfigurationList = (output, context) => {
|
|
680
|
-
const retVal = (output || [])
|
|
681
|
-
.filter((e) => e != null)
|
|
682
|
-
.map((entry) => {
|
|
683
|
-
return de_LoggingConfigurationSummary(entry, context);
|
|
684
|
-
});
|
|
685
|
-
return retVal;
|
|
686
|
-
};
|
|
687
|
-
const de_LoggingConfigurationSummary = (output, context) => {
|
|
688
|
-
return take(output, {
|
|
689
|
-
arn: __expectString,
|
|
690
|
-
createTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
691
|
-
destinationConfiguration: (_) => _json(__expectUnion(_)),
|
|
692
|
-
id: __expectString,
|
|
693
|
-
name: __expectString,
|
|
694
|
-
state: __expectString,
|
|
695
|
-
tags: _json,
|
|
696
|
-
updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
697
|
-
});
|
|
698
|
-
};
|
|
699
|
-
const de_RoomList = (output, context) => {
|
|
700
|
-
const retVal = (output || [])
|
|
701
|
-
.filter((e) => e != null)
|
|
702
|
-
.map((entry) => {
|
|
703
|
-
return de_RoomSummary(entry, context);
|
|
704
|
-
});
|
|
705
|
-
return retVal;
|
|
706
|
-
};
|
|
707
|
-
const de_RoomSummary = (output, context) => {
|
|
708
|
-
return take(output, {
|
|
709
|
-
arn: __expectString,
|
|
710
|
-
createTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
711
|
-
id: __expectString,
|
|
712
|
-
loggingConfigurationIdentifiers: _json,
|
|
713
|
-
messageReviewHandler: _json,
|
|
714
|
-
name: __expectString,
|
|
715
|
-
tags: _json,
|
|
716
|
-
updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
717
|
-
});
|
|
718
|
-
};
|
|
719
|
-
const deserializeMetadata = (output) => ({
|
|
720
|
-
httpStatusCode: output.statusCode,
|
|
721
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
722
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
723
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
724
|
-
});
|
|
725
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
726
|
-
const _tK = "tagKeys";
|