@aws-sdk/client-ivschat 3.474.0 → 3.477.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.
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_UpdateRoomCommand = exports.de_UpdateLoggingConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SendEventCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRoomsCommand = exports.de_ListLoggingConfigurationsCommand = exports.de_GetRoomCommand = exports.de_GetLoggingConfigurationCommand = exports.de_DisconnectUserCommand = exports.de_DeleteRoomCommand = exports.de_DeleteMessageCommand = exports.de_DeleteLoggingConfigurationCommand = exports.de_CreateRoomCommand = exports.de_CreateLoggingConfigurationCommand = exports.de_CreateChatTokenCommand = exports.se_UpdateRoomCommand = exports.se_UpdateLoggingConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SendEventCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRoomsCommand = exports.se_ListLoggingConfigurationsCommand = exports.se_GetRoomCommand = exports.se_GetLoggingConfigurationCommand = exports.se_DisconnectUserCommand = exports.se_DeleteRoomCommand = exports.se_DeleteMessageCommand = exports.se_DeleteLoggingConfigurationCommand = exports.se_CreateRoomCommand = exports.se_CreateLoggingConfigurationCommand = exports.se_CreateChatTokenCommand = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const
|
|
5
|
+
const core_2 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const IvschatServiceException_1 = require("../models/IvschatServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_CreateChatTokenCommand = async (input, context) => {
|
|
10
|
-
const
|
|
10
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
b.bp("/CreateChatToken");
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
17
|
attributes: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -20,46 +20,32 @@ const se_CreateChatTokenCommand = async (input, context) => {
|
|
|
20
20
|
sessionDurationInMinutes: [],
|
|
21
21
|
userId: [],
|
|
22
22
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
hostname,
|
|
26
|
-
port,
|
|
27
|
-
method: "POST",
|
|
28
|
-
headers,
|
|
29
|
-
path: resolvedPath,
|
|
30
|
-
body,
|
|
31
|
-
});
|
|
23
|
+
b.m("POST").h(headers).b(body);
|
|
24
|
+
return b.build();
|
|
32
25
|
};
|
|
33
26
|
exports.se_CreateChatTokenCommand = se_CreateChatTokenCommand;
|
|
34
27
|
const se_CreateLoggingConfigurationCommand = async (input, context) => {
|
|
35
|
-
const
|
|
28
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
36
29
|
const headers = {
|
|
37
30
|
"content-type": "application/json",
|
|
38
31
|
};
|
|
39
|
-
|
|
32
|
+
b.bp("/CreateLoggingConfiguration");
|
|
40
33
|
let body;
|
|
41
34
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
42
35
|
destinationConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
43
36
|
name: [],
|
|
44
37
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
45
38
|
}));
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
hostname,
|
|
49
|
-
port,
|
|
50
|
-
method: "POST",
|
|
51
|
-
headers,
|
|
52
|
-
path: resolvedPath,
|
|
53
|
-
body,
|
|
54
|
-
});
|
|
39
|
+
b.m("POST").h(headers).b(body);
|
|
40
|
+
return b.build();
|
|
55
41
|
};
|
|
56
42
|
exports.se_CreateLoggingConfigurationCommand = se_CreateLoggingConfigurationCommand;
|
|
57
43
|
const se_CreateRoomCommand = async (input, context) => {
|
|
58
|
-
const
|
|
44
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
59
45
|
const headers = {
|
|
60
46
|
"content-type": "application/json",
|
|
61
47
|
};
|
|
62
|
-
|
|
48
|
+
b.bp("/CreateRoom");
|
|
63
49
|
let body;
|
|
64
50
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
65
51
|
loggingConfigurationIdentifiers: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -69,175 +55,119 @@ const se_CreateRoomCommand = async (input, context) => {
|
|
|
69
55
|
name: [],
|
|
70
56
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
71
57
|
}));
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
hostname,
|
|
75
|
-
port,
|
|
76
|
-
method: "POST",
|
|
77
|
-
headers,
|
|
78
|
-
path: resolvedPath,
|
|
79
|
-
body,
|
|
80
|
-
});
|
|
58
|
+
b.m("POST").h(headers).b(body);
|
|
59
|
+
return b.build();
|
|
81
60
|
};
|
|
82
61
|
exports.se_CreateRoomCommand = se_CreateRoomCommand;
|
|
83
62
|
const se_DeleteLoggingConfigurationCommand = async (input, context) => {
|
|
84
|
-
const
|
|
63
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
85
64
|
const headers = {
|
|
86
65
|
"content-type": "application/json",
|
|
87
66
|
};
|
|
88
|
-
|
|
67
|
+
b.bp("/DeleteLoggingConfiguration");
|
|
89
68
|
let body;
|
|
90
69
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
91
70
|
identifier: [],
|
|
92
71
|
}));
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
hostname,
|
|
96
|
-
port,
|
|
97
|
-
method: "POST",
|
|
98
|
-
headers,
|
|
99
|
-
path: resolvedPath,
|
|
100
|
-
body,
|
|
101
|
-
});
|
|
72
|
+
b.m("POST").h(headers).b(body);
|
|
73
|
+
return b.build();
|
|
102
74
|
};
|
|
103
75
|
exports.se_DeleteLoggingConfigurationCommand = se_DeleteLoggingConfigurationCommand;
|
|
104
76
|
const se_DeleteMessageCommand = async (input, context) => {
|
|
105
|
-
const
|
|
77
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
106
78
|
const headers = {
|
|
107
79
|
"content-type": "application/json",
|
|
108
80
|
};
|
|
109
|
-
|
|
81
|
+
b.bp("/DeleteMessage");
|
|
110
82
|
let body;
|
|
111
83
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
112
84
|
id: [],
|
|
113
85
|
reason: [],
|
|
114
86
|
roomIdentifier: [],
|
|
115
87
|
}));
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
hostname,
|
|
119
|
-
port,
|
|
120
|
-
method: "POST",
|
|
121
|
-
headers,
|
|
122
|
-
path: resolvedPath,
|
|
123
|
-
body,
|
|
124
|
-
});
|
|
88
|
+
b.m("POST").h(headers).b(body);
|
|
89
|
+
return b.build();
|
|
125
90
|
};
|
|
126
91
|
exports.se_DeleteMessageCommand = se_DeleteMessageCommand;
|
|
127
92
|
const se_DeleteRoomCommand = async (input, context) => {
|
|
128
|
-
const
|
|
93
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
129
94
|
const headers = {
|
|
130
95
|
"content-type": "application/json",
|
|
131
96
|
};
|
|
132
|
-
|
|
97
|
+
b.bp("/DeleteRoom");
|
|
133
98
|
let body;
|
|
134
99
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
135
100
|
identifier: [],
|
|
136
101
|
}));
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
hostname,
|
|
140
|
-
port,
|
|
141
|
-
method: "POST",
|
|
142
|
-
headers,
|
|
143
|
-
path: resolvedPath,
|
|
144
|
-
body,
|
|
145
|
-
});
|
|
102
|
+
b.m("POST").h(headers).b(body);
|
|
103
|
+
return b.build();
|
|
146
104
|
};
|
|
147
105
|
exports.se_DeleteRoomCommand = se_DeleteRoomCommand;
|
|
148
106
|
const se_DisconnectUserCommand = async (input, context) => {
|
|
149
|
-
const
|
|
107
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
150
108
|
const headers = {
|
|
151
109
|
"content-type": "application/json",
|
|
152
110
|
};
|
|
153
|
-
|
|
111
|
+
b.bp("/DisconnectUser");
|
|
154
112
|
let body;
|
|
155
113
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
156
114
|
reason: [],
|
|
157
115
|
roomIdentifier: [],
|
|
158
116
|
userId: [],
|
|
159
117
|
}));
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
hostname,
|
|
163
|
-
port,
|
|
164
|
-
method: "POST",
|
|
165
|
-
headers,
|
|
166
|
-
path: resolvedPath,
|
|
167
|
-
body,
|
|
168
|
-
});
|
|
118
|
+
b.m("POST").h(headers).b(body);
|
|
119
|
+
return b.build();
|
|
169
120
|
};
|
|
170
121
|
exports.se_DisconnectUserCommand = se_DisconnectUserCommand;
|
|
171
122
|
const se_GetLoggingConfigurationCommand = async (input, context) => {
|
|
172
|
-
const
|
|
123
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
173
124
|
const headers = {
|
|
174
125
|
"content-type": "application/json",
|
|
175
126
|
};
|
|
176
|
-
|
|
127
|
+
b.bp("/GetLoggingConfiguration");
|
|
177
128
|
let body;
|
|
178
129
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
179
130
|
identifier: [],
|
|
180
131
|
}));
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
hostname,
|
|
184
|
-
port,
|
|
185
|
-
method: "POST",
|
|
186
|
-
headers,
|
|
187
|
-
path: resolvedPath,
|
|
188
|
-
body,
|
|
189
|
-
});
|
|
132
|
+
b.m("POST").h(headers).b(body);
|
|
133
|
+
return b.build();
|
|
190
134
|
};
|
|
191
135
|
exports.se_GetLoggingConfigurationCommand = se_GetLoggingConfigurationCommand;
|
|
192
136
|
const se_GetRoomCommand = async (input, context) => {
|
|
193
|
-
const
|
|
137
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
194
138
|
const headers = {
|
|
195
139
|
"content-type": "application/json",
|
|
196
140
|
};
|
|
197
|
-
|
|
141
|
+
b.bp("/GetRoom");
|
|
198
142
|
let body;
|
|
199
143
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
200
144
|
identifier: [],
|
|
201
145
|
}));
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
hostname,
|
|
205
|
-
port,
|
|
206
|
-
method: "POST",
|
|
207
|
-
headers,
|
|
208
|
-
path: resolvedPath,
|
|
209
|
-
body,
|
|
210
|
-
});
|
|
146
|
+
b.m("POST").h(headers).b(body);
|
|
147
|
+
return b.build();
|
|
211
148
|
};
|
|
212
149
|
exports.se_GetRoomCommand = se_GetRoomCommand;
|
|
213
150
|
const se_ListLoggingConfigurationsCommand = async (input, context) => {
|
|
214
|
-
const
|
|
151
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
215
152
|
const headers = {
|
|
216
153
|
"content-type": "application/json",
|
|
217
154
|
};
|
|
218
|
-
|
|
155
|
+
b.bp("/ListLoggingConfigurations");
|
|
219
156
|
let body;
|
|
220
157
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
221
158
|
maxResults: [],
|
|
222
159
|
nextToken: [],
|
|
223
160
|
}));
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
hostname,
|
|
227
|
-
port,
|
|
228
|
-
method: "POST",
|
|
229
|
-
headers,
|
|
230
|
-
path: resolvedPath,
|
|
231
|
-
body,
|
|
232
|
-
});
|
|
161
|
+
b.m("POST").h(headers).b(body);
|
|
162
|
+
return b.build();
|
|
233
163
|
};
|
|
234
164
|
exports.se_ListLoggingConfigurationsCommand = se_ListLoggingConfigurationsCommand;
|
|
235
165
|
const se_ListRoomsCommand = async (input, context) => {
|
|
236
|
-
const
|
|
166
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
237
167
|
const headers = {
|
|
238
168
|
"content-type": "application/json",
|
|
239
169
|
};
|
|
240
|
-
|
|
170
|
+
b.bp("/ListRooms");
|
|
241
171
|
let body;
|
|
242
172
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
243
173
|
loggingConfigurationIdentifier: [],
|
|
@@ -246,132 +176,89 @@ const se_ListRoomsCommand = async (input, context) => {
|
|
|
246
176
|
name: [],
|
|
247
177
|
nextToken: [],
|
|
248
178
|
}));
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
hostname,
|
|
252
|
-
port,
|
|
253
|
-
method: "POST",
|
|
254
|
-
headers,
|
|
255
|
-
path: resolvedPath,
|
|
256
|
-
body,
|
|
257
|
-
});
|
|
179
|
+
b.m("POST").h(headers).b(body);
|
|
180
|
+
return b.build();
|
|
258
181
|
};
|
|
259
182
|
exports.se_ListRoomsCommand = se_ListRoomsCommand;
|
|
260
183
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
261
|
-
const
|
|
184
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
262
185
|
const headers = {};
|
|
263
|
-
|
|
264
|
-
|
|
186
|
+
b.bp("/tags/{resourceArn}");
|
|
187
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
265
188
|
let body;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
hostname,
|
|
269
|
-
port,
|
|
270
|
-
method: "GET",
|
|
271
|
-
headers,
|
|
272
|
-
path: resolvedPath,
|
|
273
|
-
body,
|
|
274
|
-
});
|
|
189
|
+
b.m("GET").h(headers).b(body);
|
|
190
|
+
return b.build();
|
|
275
191
|
};
|
|
276
192
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
277
193
|
const se_SendEventCommand = async (input, context) => {
|
|
278
|
-
const
|
|
194
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
279
195
|
const headers = {
|
|
280
196
|
"content-type": "application/json",
|
|
281
197
|
};
|
|
282
|
-
|
|
198
|
+
b.bp("/SendEvent");
|
|
283
199
|
let body;
|
|
284
200
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
285
201
|
attributes: (_) => (0, smithy_client_1._json)(_),
|
|
286
202
|
eventName: [],
|
|
287
203
|
roomIdentifier: [],
|
|
288
204
|
}));
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
hostname,
|
|
292
|
-
port,
|
|
293
|
-
method: "POST",
|
|
294
|
-
headers,
|
|
295
|
-
path: resolvedPath,
|
|
296
|
-
body,
|
|
297
|
-
});
|
|
205
|
+
b.m("POST").h(headers).b(body);
|
|
206
|
+
return b.build();
|
|
298
207
|
};
|
|
299
208
|
exports.se_SendEventCommand = se_SendEventCommand;
|
|
300
209
|
const se_TagResourceCommand = async (input, context) => {
|
|
301
|
-
const
|
|
210
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
302
211
|
const headers = {
|
|
303
212
|
"content-type": "application/json",
|
|
304
213
|
};
|
|
305
|
-
|
|
306
|
-
|
|
214
|
+
b.bp("/tags/{resourceArn}");
|
|
215
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
307
216
|
let body;
|
|
308
217
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
309
218
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
310
219
|
}));
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
hostname,
|
|
314
|
-
port,
|
|
315
|
-
method: "POST",
|
|
316
|
-
headers,
|
|
317
|
-
path: resolvedPath,
|
|
318
|
-
body,
|
|
319
|
-
});
|
|
220
|
+
b.m("POST").h(headers).b(body);
|
|
221
|
+
return b.build();
|
|
320
222
|
};
|
|
321
223
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
322
224
|
const se_UntagResourceCommand = async (input, context) => {
|
|
323
|
-
const
|
|
225
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
324
226
|
const headers = {};
|
|
325
|
-
|
|
326
|
-
|
|
227
|
+
b.bp("/tags/{resourceArn}");
|
|
228
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
327
229
|
const query = (0, smithy_client_1.map)({
|
|
328
|
-
|
|
230
|
+
[_tK]: [
|
|
329
231
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
330
|
-
() => (input
|
|
232
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
331
233
|
],
|
|
332
234
|
});
|
|
333
235
|
let body;
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
hostname,
|
|
337
|
-
port,
|
|
338
|
-
method: "DELETE",
|
|
339
|
-
headers,
|
|
340
|
-
path: resolvedPath,
|
|
341
|
-
query,
|
|
342
|
-
body,
|
|
343
|
-
});
|
|
236
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
237
|
+
return b.build();
|
|
344
238
|
};
|
|
345
239
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
346
240
|
const se_UpdateLoggingConfigurationCommand = async (input, context) => {
|
|
347
|
-
const
|
|
241
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
348
242
|
const headers = {
|
|
349
243
|
"content-type": "application/json",
|
|
350
244
|
};
|
|
351
|
-
|
|
245
|
+
b.bp("/UpdateLoggingConfiguration");
|
|
352
246
|
let body;
|
|
353
247
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
354
248
|
destinationConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
355
249
|
identifier: [],
|
|
356
250
|
name: [],
|
|
357
251
|
}));
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
hostname,
|
|
361
|
-
port,
|
|
362
|
-
method: "POST",
|
|
363
|
-
headers,
|
|
364
|
-
path: resolvedPath,
|
|
365
|
-
body,
|
|
366
|
-
});
|
|
252
|
+
b.m("POST").h(headers).b(body);
|
|
253
|
+
return b.build();
|
|
367
254
|
};
|
|
368
255
|
exports.se_UpdateLoggingConfigurationCommand = se_UpdateLoggingConfigurationCommand;
|
|
369
256
|
const se_UpdateRoomCommand = async (input, context) => {
|
|
370
|
-
const
|
|
257
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
371
258
|
const headers = {
|
|
372
259
|
"content-type": "application/json",
|
|
373
260
|
};
|
|
374
|
-
|
|
261
|
+
b.bp("/UpdateRoom");
|
|
375
262
|
let body;
|
|
376
263
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
377
264
|
identifier: [],
|
|
@@ -381,15 +268,8 @@ const se_UpdateRoomCommand = async (input, context) => {
|
|
|
381
268
|
messageReviewHandler: (_) => (0, smithy_client_1._json)(_),
|
|
382
269
|
name: [],
|
|
383
270
|
}));
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
hostname,
|
|
387
|
-
port,
|
|
388
|
-
method: "POST",
|
|
389
|
-
headers,
|
|
390
|
-
path: resolvedPath,
|
|
391
|
-
body,
|
|
392
|
-
});
|
|
271
|
+
b.m("POST").h(headers).b(body);
|
|
272
|
+
return b.build();
|
|
393
273
|
};
|
|
394
274
|
exports.se_UpdateRoomCommand = se_UpdateRoomCommand;
|
|
395
275
|
const de_CreateChatTokenCommand = async (output, context) => {
|
|
@@ -1327,6 +1207,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1327
1207
|
value !== "" &&
|
|
1328
1208
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1329
1209
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1210
|
+
const _tK = "tagKeys";
|
|
1330
1211
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1331
1212
|
if (encoded.length) {
|
|
1332
1213
|
return JSON.parse(encoded);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
2
|
-
import {
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset,
|
|
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
4
|
import { IvschatServiceException as __BaseException } from "../models/IvschatServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, InternalServerException, PendingVerification, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export const se_CreateChatTokenCommand = async (input, context) => {
|
|
7
|
-
const
|
|
7
|
+
const b = rb(input, context);
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
b.bp("/CreateChatToken");
|
|
12
12
|
let body;
|
|
13
13
|
body = JSON.stringify(take(input, {
|
|
14
14
|
attributes: (_) => _json(_),
|
|
@@ -17,44 +17,30 @@ export const se_CreateChatTokenCommand = async (input, context) => {
|
|
|
17
17
|
sessionDurationInMinutes: [],
|
|
18
18
|
userId: [],
|
|
19
19
|
}));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
hostname,
|
|
23
|
-
port,
|
|
24
|
-
method: "POST",
|
|
25
|
-
headers,
|
|
26
|
-
path: resolvedPath,
|
|
27
|
-
body,
|
|
28
|
-
});
|
|
20
|
+
b.m("POST").h(headers).b(body);
|
|
21
|
+
return b.build();
|
|
29
22
|
};
|
|
30
23
|
export const se_CreateLoggingConfigurationCommand = async (input, context) => {
|
|
31
|
-
const
|
|
24
|
+
const b = rb(input, context);
|
|
32
25
|
const headers = {
|
|
33
26
|
"content-type": "application/json",
|
|
34
27
|
};
|
|
35
|
-
|
|
28
|
+
b.bp("/CreateLoggingConfiguration");
|
|
36
29
|
let body;
|
|
37
30
|
body = JSON.stringify(take(input, {
|
|
38
31
|
destinationConfiguration: (_) => _json(_),
|
|
39
32
|
name: [],
|
|
40
33
|
tags: (_) => _json(_),
|
|
41
34
|
}));
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
hostname,
|
|
45
|
-
port,
|
|
46
|
-
method: "POST",
|
|
47
|
-
headers,
|
|
48
|
-
path: resolvedPath,
|
|
49
|
-
body,
|
|
50
|
-
});
|
|
35
|
+
b.m("POST").h(headers).b(body);
|
|
36
|
+
return b.build();
|
|
51
37
|
};
|
|
52
38
|
export const se_CreateRoomCommand = async (input, context) => {
|
|
53
|
-
const
|
|
39
|
+
const b = rb(input, context);
|
|
54
40
|
const headers = {
|
|
55
41
|
"content-type": "application/json",
|
|
56
42
|
};
|
|
57
|
-
|
|
43
|
+
b.bp("/CreateRoom");
|
|
58
44
|
let body;
|
|
59
45
|
body = JSON.stringify(take(input, {
|
|
60
46
|
loggingConfigurationIdentifiers: (_) => _json(_),
|
|
@@ -64,167 +50,111 @@ export const se_CreateRoomCommand = async (input, context) => {
|
|
|
64
50
|
name: [],
|
|
65
51
|
tags: (_) => _json(_),
|
|
66
52
|
}));
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
hostname,
|
|
70
|
-
port,
|
|
71
|
-
method: "POST",
|
|
72
|
-
headers,
|
|
73
|
-
path: resolvedPath,
|
|
74
|
-
body,
|
|
75
|
-
});
|
|
53
|
+
b.m("POST").h(headers).b(body);
|
|
54
|
+
return b.build();
|
|
76
55
|
};
|
|
77
56
|
export const se_DeleteLoggingConfigurationCommand = async (input, context) => {
|
|
78
|
-
const
|
|
57
|
+
const b = rb(input, context);
|
|
79
58
|
const headers = {
|
|
80
59
|
"content-type": "application/json",
|
|
81
60
|
};
|
|
82
|
-
|
|
61
|
+
b.bp("/DeleteLoggingConfiguration");
|
|
83
62
|
let body;
|
|
84
63
|
body = JSON.stringify(take(input, {
|
|
85
64
|
identifier: [],
|
|
86
65
|
}));
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
hostname,
|
|
90
|
-
port,
|
|
91
|
-
method: "POST",
|
|
92
|
-
headers,
|
|
93
|
-
path: resolvedPath,
|
|
94
|
-
body,
|
|
95
|
-
});
|
|
66
|
+
b.m("POST").h(headers).b(body);
|
|
67
|
+
return b.build();
|
|
96
68
|
};
|
|
97
69
|
export const se_DeleteMessageCommand = async (input, context) => {
|
|
98
|
-
const
|
|
70
|
+
const b = rb(input, context);
|
|
99
71
|
const headers = {
|
|
100
72
|
"content-type": "application/json",
|
|
101
73
|
};
|
|
102
|
-
|
|
74
|
+
b.bp("/DeleteMessage");
|
|
103
75
|
let body;
|
|
104
76
|
body = JSON.stringify(take(input, {
|
|
105
77
|
id: [],
|
|
106
78
|
reason: [],
|
|
107
79
|
roomIdentifier: [],
|
|
108
80
|
}));
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
hostname,
|
|
112
|
-
port,
|
|
113
|
-
method: "POST",
|
|
114
|
-
headers,
|
|
115
|
-
path: resolvedPath,
|
|
116
|
-
body,
|
|
117
|
-
});
|
|
81
|
+
b.m("POST").h(headers).b(body);
|
|
82
|
+
return b.build();
|
|
118
83
|
};
|
|
119
84
|
export const se_DeleteRoomCommand = async (input, context) => {
|
|
120
|
-
const
|
|
85
|
+
const b = rb(input, context);
|
|
121
86
|
const headers = {
|
|
122
87
|
"content-type": "application/json",
|
|
123
88
|
};
|
|
124
|
-
|
|
89
|
+
b.bp("/DeleteRoom");
|
|
125
90
|
let body;
|
|
126
91
|
body = JSON.stringify(take(input, {
|
|
127
92
|
identifier: [],
|
|
128
93
|
}));
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
hostname,
|
|
132
|
-
port,
|
|
133
|
-
method: "POST",
|
|
134
|
-
headers,
|
|
135
|
-
path: resolvedPath,
|
|
136
|
-
body,
|
|
137
|
-
});
|
|
94
|
+
b.m("POST").h(headers).b(body);
|
|
95
|
+
return b.build();
|
|
138
96
|
};
|
|
139
97
|
export const se_DisconnectUserCommand = async (input, context) => {
|
|
140
|
-
const
|
|
98
|
+
const b = rb(input, context);
|
|
141
99
|
const headers = {
|
|
142
100
|
"content-type": "application/json",
|
|
143
101
|
};
|
|
144
|
-
|
|
102
|
+
b.bp("/DisconnectUser");
|
|
145
103
|
let body;
|
|
146
104
|
body = JSON.stringify(take(input, {
|
|
147
105
|
reason: [],
|
|
148
106
|
roomIdentifier: [],
|
|
149
107
|
userId: [],
|
|
150
108
|
}));
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
hostname,
|
|
154
|
-
port,
|
|
155
|
-
method: "POST",
|
|
156
|
-
headers,
|
|
157
|
-
path: resolvedPath,
|
|
158
|
-
body,
|
|
159
|
-
});
|
|
109
|
+
b.m("POST").h(headers).b(body);
|
|
110
|
+
return b.build();
|
|
160
111
|
};
|
|
161
112
|
export const se_GetLoggingConfigurationCommand = async (input, context) => {
|
|
162
|
-
const
|
|
113
|
+
const b = rb(input, context);
|
|
163
114
|
const headers = {
|
|
164
115
|
"content-type": "application/json",
|
|
165
116
|
};
|
|
166
|
-
|
|
117
|
+
b.bp("/GetLoggingConfiguration");
|
|
167
118
|
let body;
|
|
168
119
|
body = JSON.stringify(take(input, {
|
|
169
120
|
identifier: [],
|
|
170
121
|
}));
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
hostname,
|
|
174
|
-
port,
|
|
175
|
-
method: "POST",
|
|
176
|
-
headers,
|
|
177
|
-
path: resolvedPath,
|
|
178
|
-
body,
|
|
179
|
-
});
|
|
122
|
+
b.m("POST").h(headers).b(body);
|
|
123
|
+
return b.build();
|
|
180
124
|
};
|
|
181
125
|
export const se_GetRoomCommand = async (input, context) => {
|
|
182
|
-
const
|
|
126
|
+
const b = rb(input, context);
|
|
183
127
|
const headers = {
|
|
184
128
|
"content-type": "application/json",
|
|
185
129
|
};
|
|
186
|
-
|
|
130
|
+
b.bp("/GetRoom");
|
|
187
131
|
let body;
|
|
188
132
|
body = JSON.stringify(take(input, {
|
|
189
133
|
identifier: [],
|
|
190
134
|
}));
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
hostname,
|
|
194
|
-
port,
|
|
195
|
-
method: "POST",
|
|
196
|
-
headers,
|
|
197
|
-
path: resolvedPath,
|
|
198
|
-
body,
|
|
199
|
-
});
|
|
135
|
+
b.m("POST").h(headers).b(body);
|
|
136
|
+
return b.build();
|
|
200
137
|
};
|
|
201
138
|
export const se_ListLoggingConfigurationsCommand = async (input, context) => {
|
|
202
|
-
const
|
|
139
|
+
const b = rb(input, context);
|
|
203
140
|
const headers = {
|
|
204
141
|
"content-type": "application/json",
|
|
205
142
|
};
|
|
206
|
-
|
|
143
|
+
b.bp("/ListLoggingConfigurations");
|
|
207
144
|
let body;
|
|
208
145
|
body = JSON.stringify(take(input, {
|
|
209
146
|
maxResults: [],
|
|
210
147
|
nextToken: [],
|
|
211
148
|
}));
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
hostname,
|
|
215
|
-
port,
|
|
216
|
-
method: "POST",
|
|
217
|
-
headers,
|
|
218
|
-
path: resolvedPath,
|
|
219
|
-
body,
|
|
220
|
-
});
|
|
149
|
+
b.m("POST").h(headers).b(body);
|
|
150
|
+
return b.build();
|
|
221
151
|
};
|
|
222
152
|
export const se_ListRoomsCommand = async (input, context) => {
|
|
223
|
-
const
|
|
153
|
+
const b = rb(input, context);
|
|
224
154
|
const headers = {
|
|
225
155
|
"content-type": "application/json",
|
|
226
156
|
};
|
|
227
|
-
|
|
157
|
+
b.bp("/ListRooms");
|
|
228
158
|
let body;
|
|
229
159
|
body = JSON.stringify(take(input, {
|
|
230
160
|
loggingConfigurationIdentifier: [],
|
|
@@ -233,126 +163,83 @@ export const se_ListRoomsCommand = async (input, context) => {
|
|
|
233
163
|
name: [],
|
|
234
164
|
nextToken: [],
|
|
235
165
|
}));
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
hostname,
|
|
239
|
-
port,
|
|
240
|
-
method: "POST",
|
|
241
|
-
headers,
|
|
242
|
-
path: resolvedPath,
|
|
243
|
-
body,
|
|
244
|
-
});
|
|
166
|
+
b.m("POST").h(headers).b(body);
|
|
167
|
+
return b.build();
|
|
245
168
|
};
|
|
246
169
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
247
|
-
const
|
|
170
|
+
const b = rb(input, context);
|
|
248
171
|
const headers = {};
|
|
249
|
-
|
|
250
|
-
|
|
172
|
+
b.bp("/tags/{resourceArn}");
|
|
173
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
251
174
|
let body;
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
hostname,
|
|
255
|
-
port,
|
|
256
|
-
method: "GET",
|
|
257
|
-
headers,
|
|
258
|
-
path: resolvedPath,
|
|
259
|
-
body,
|
|
260
|
-
});
|
|
175
|
+
b.m("GET").h(headers).b(body);
|
|
176
|
+
return b.build();
|
|
261
177
|
};
|
|
262
178
|
export const se_SendEventCommand = async (input, context) => {
|
|
263
|
-
const
|
|
179
|
+
const b = rb(input, context);
|
|
264
180
|
const headers = {
|
|
265
181
|
"content-type": "application/json",
|
|
266
182
|
};
|
|
267
|
-
|
|
183
|
+
b.bp("/SendEvent");
|
|
268
184
|
let body;
|
|
269
185
|
body = JSON.stringify(take(input, {
|
|
270
186
|
attributes: (_) => _json(_),
|
|
271
187
|
eventName: [],
|
|
272
188
|
roomIdentifier: [],
|
|
273
189
|
}));
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
hostname,
|
|
277
|
-
port,
|
|
278
|
-
method: "POST",
|
|
279
|
-
headers,
|
|
280
|
-
path: resolvedPath,
|
|
281
|
-
body,
|
|
282
|
-
});
|
|
190
|
+
b.m("POST").h(headers).b(body);
|
|
191
|
+
return b.build();
|
|
283
192
|
};
|
|
284
193
|
export const se_TagResourceCommand = async (input, context) => {
|
|
285
|
-
const
|
|
194
|
+
const b = rb(input, context);
|
|
286
195
|
const headers = {
|
|
287
196
|
"content-type": "application/json",
|
|
288
197
|
};
|
|
289
|
-
|
|
290
|
-
|
|
198
|
+
b.bp("/tags/{resourceArn}");
|
|
199
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
291
200
|
let body;
|
|
292
201
|
body = JSON.stringify(take(input, {
|
|
293
202
|
tags: (_) => _json(_),
|
|
294
203
|
}));
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
hostname,
|
|
298
|
-
port,
|
|
299
|
-
method: "POST",
|
|
300
|
-
headers,
|
|
301
|
-
path: resolvedPath,
|
|
302
|
-
body,
|
|
303
|
-
});
|
|
204
|
+
b.m("POST").h(headers).b(body);
|
|
205
|
+
return b.build();
|
|
304
206
|
};
|
|
305
207
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
306
|
-
const
|
|
208
|
+
const b = rb(input, context);
|
|
307
209
|
const headers = {};
|
|
308
|
-
|
|
309
|
-
|
|
210
|
+
b.bp("/tags/{resourceArn}");
|
|
211
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
310
212
|
const query = map({
|
|
311
|
-
|
|
213
|
+
[_tK]: [
|
|
312
214
|
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
313
|
-
() => (input
|
|
215
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
314
216
|
],
|
|
315
217
|
});
|
|
316
218
|
let body;
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
hostname,
|
|
320
|
-
port,
|
|
321
|
-
method: "DELETE",
|
|
322
|
-
headers,
|
|
323
|
-
path: resolvedPath,
|
|
324
|
-
query,
|
|
325
|
-
body,
|
|
326
|
-
});
|
|
219
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
220
|
+
return b.build();
|
|
327
221
|
};
|
|
328
222
|
export const se_UpdateLoggingConfigurationCommand = async (input, context) => {
|
|
329
|
-
const
|
|
223
|
+
const b = rb(input, context);
|
|
330
224
|
const headers = {
|
|
331
225
|
"content-type": "application/json",
|
|
332
226
|
};
|
|
333
|
-
|
|
227
|
+
b.bp("/UpdateLoggingConfiguration");
|
|
334
228
|
let body;
|
|
335
229
|
body = JSON.stringify(take(input, {
|
|
336
230
|
destinationConfiguration: (_) => _json(_),
|
|
337
231
|
identifier: [],
|
|
338
232
|
name: [],
|
|
339
233
|
}));
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
hostname,
|
|
343
|
-
port,
|
|
344
|
-
method: "POST",
|
|
345
|
-
headers,
|
|
346
|
-
path: resolvedPath,
|
|
347
|
-
body,
|
|
348
|
-
});
|
|
234
|
+
b.m("POST").h(headers).b(body);
|
|
235
|
+
return b.build();
|
|
349
236
|
};
|
|
350
237
|
export const se_UpdateRoomCommand = async (input, context) => {
|
|
351
|
-
const
|
|
238
|
+
const b = rb(input, context);
|
|
352
239
|
const headers = {
|
|
353
240
|
"content-type": "application/json",
|
|
354
241
|
};
|
|
355
|
-
|
|
242
|
+
b.bp("/UpdateRoom");
|
|
356
243
|
let body;
|
|
357
244
|
body = JSON.stringify(take(input, {
|
|
358
245
|
identifier: [],
|
|
@@ -362,15 +249,8 @@ export const se_UpdateRoomCommand = async (input, context) => {
|
|
|
362
249
|
messageReviewHandler: (_) => _json(_),
|
|
363
250
|
name: [],
|
|
364
251
|
}));
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
hostname,
|
|
368
|
-
port,
|
|
369
|
-
method: "POST",
|
|
370
|
-
headers,
|
|
371
|
-
path: resolvedPath,
|
|
372
|
-
body,
|
|
373
|
-
});
|
|
252
|
+
b.m("POST").h(headers).b(body);
|
|
253
|
+
return b.build();
|
|
374
254
|
};
|
|
375
255
|
export const de_CreateChatTokenCommand = async (output, context) => {
|
|
376
256
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1290,6 +1170,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1290
1170
|
value !== "" &&
|
|
1291
1171
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1292
1172
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1173
|
+
const _tK = "tagKeys";
|
|
1293
1174
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1294
1175
|
if (encoded.length) {
|
|
1295
1176
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ivschat",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ivschat Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.477.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.477.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|