@aws-sdk/client-ivschat 3.121.0 → 3.130.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/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-ivschat
9
+
10
+
11
+
12
+
13
+
14
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-ivschat
17
+
18
+
19
+
20
+
21
+
22
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/client-ivschat
25
+
26
+
27
+
28
+
29
+
6
30
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
31
 
8
32
 
@@ -13,19 +13,15 @@ const serializeAws_restJson1CreateChatTokenCommand = async (input, context) => {
13
13
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateChatToken";
14
14
  let body;
15
15
  body = JSON.stringify({
16
- ...(input.attributes !== undefined &&
17
- input.attributes !== null && {
16
+ ...(input.attributes != null && {
18
17
  attributes: serializeAws_restJson1ChatTokenAttributes(input.attributes, context),
19
18
  }),
20
- ...(input.capabilities !== undefined &&
21
- input.capabilities !== null && {
19
+ ...(input.capabilities != null && {
22
20
  capabilities: serializeAws_restJson1ChatTokenCapabilities(input.capabilities, context),
23
21
  }),
24
- ...(input.roomIdentifier !== undefined &&
25
- input.roomIdentifier !== null && { roomIdentifier: input.roomIdentifier }),
26
- ...(input.sessionDurationInMinutes !== undefined &&
27
- input.sessionDurationInMinutes !== null && { sessionDurationInMinutes: input.sessionDurationInMinutes }),
28
- ...(input.userId !== undefined && input.userId !== null && { userId: input.userId }),
22
+ ...(input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier }),
23
+ ...(input.sessionDurationInMinutes != null && { sessionDurationInMinutes: input.sessionDurationInMinutes }),
24
+ ...(input.userId != null && { userId: input.userId }),
29
25
  });
30
26
  return new protocol_http_1.HttpRequest({
31
27
  protocol,
@@ -46,16 +42,15 @@ const serializeAws_restJson1CreateRoomCommand = async (input, context) => {
46
42
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateRoom";
47
43
  let body;
48
44
  body = JSON.stringify({
49
- ...(input.maximumMessageLength !== undefined &&
50
- input.maximumMessageLength !== null && { maximumMessageLength: input.maximumMessageLength }),
51
- ...(input.maximumMessageRatePerSecond !== undefined &&
52
- input.maximumMessageRatePerSecond !== null && { maximumMessageRatePerSecond: input.maximumMessageRatePerSecond }),
53
- ...(input.messageReviewHandler !== undefined &&
54
- input.messageReviewHandler !== null && {
45
+ ...(input.maximumMessageLength != null && { maximumMessageLength: input.maximumMessageLength }),
46
+ ...(input.maximumMessageRatePerSecond != null && {
47
+ maximumMessageRatePerSecond: input.maximumMessageRatePerSecond,
48
+ }),
49
+ ...(input.messageReviewHandler != null && {
55
50
  messageReviewHandler: serializeAws_restJson1MessageReviewHandler(input.messageReviewHandler, context),
56
51
  }),
57
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
58
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
52
+ ...(input.name != null && { name: input.name }),
53
+ ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
59
54
  });
60
55
  return new protocol_http_1.HttpRequest({
61
56
  protocol,
@@ -76,10 +71,9 @@ const serializeAws_restJson1DeleteMessageCommand = async (input, context) => {
76
71
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteMessage";
77
72
  let body;
78
73
  body = JSON.stringify({
79
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
80
- ...(input.reason !== undefined && input.reason !== null && { reason: input.reason }),
81
- ...(input.roomIdentifier !== undefined &&
82
- input.roomIdentifier !== null && { roomIdentifier: input.roomIdentifier }),
74
+ ...(input.id != null && { id: input.id }),
75
+ ...(input.reason != null && { reason: input.reason }),
76
+ ...(input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier }),
83
77
  });
84
78
  return new protocol_http_1.HttpRequest({
85
79
  protocol,
@@ -100,7 +94,7 @@ const serializeAws_restJson1DeleteRoomCommand = async (input, context) => {
100
94
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteRoom";
101
95
  let body;
102
96
  body = JSON.stringify({
103
- ...(input.identifier !== undefined && input.identifier !== null && { identifier: input.identifier }),
97
+ ...(input.identifier != null && { identifier: input.identifier }),
104
98
  });
105
99
  return new protocol_http_1.HttpRequest({
106
100
  protocol,
@@ -121,10 +115,9 @@ const serializeAws_restJson1DisconnectUserCommand = async (input, context) => {
121
115
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectUser";
122
116
  let body;
123
117
  body = JSON.stringify({
124
- ...(input.reason !== undefined && input.reason !== null && { reason: input.reason }),
125
- ...(input.roomIdentifier !== undefined &&
126
- input.roomIdentifier !== null && { roomIdentifier: input.roomIdentifier }),
127
- ...(input.userId !== undefined && input.userId !== null && { userId: input.userId }),
118
+ ...(input.reason != null && { reason: input.reason }),
119
+ ...(input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier }),
120
+ ...(input.userId != null && { userId: input.userId }),
128
121
  });
129
122
  return new protocol_http_1.HttpRequest({
130
123
  protocol,
@@ -145,7 +138,7 @@ const serializeAws_restJson1GetRoomCommand = async (input, context) => {
145
138
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetRoom";
146
139
  let body;
147
140
  body = JSON.stringify({
148
- ...(input.identifier !== undefined && input.identifier !== null && { identifier: input.identifier }),
141
+ ...(input.identifier != null && { identifier: input.identifier }),
149
142
  });
150
143
  return new protocol_http_1.HttpRequest({
151
144
  protocol,
@@ -166,11 +159,10 @@ const serializeAws_restJson1ListRoomsCommand = async (input, context) => {
166
159
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListRooms";
167
160
  let body;
168
161
  body = JSON.stringify({
169
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
170
- ...(input.messageReviewHandlerUri !== undefined &&
171
- input.messageReviewHandlerUri !== null && { messageReviewHandlerUri: input.messageReviewHandlerUri }),
172
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
173
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
162
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
163
+ ...(input.messageReviewHandlerUri != null && { messageReviewHandlerUri: input.messageReviewHandlerUri }),
164
+ ...(input.name != null && { name: input.name }),
165
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
174
166
  });
175
167
  return new protocol_http_1.HttpRequest({
176
168
  protocol,
@@ -217,11 +209,9 @@ const serializeAws_restJson1SendEventCommand = async (input, context) => {
217
209
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/SendEvent";
218
210
  let body;
219
211
  body = JSON.stringify({
220
- ...(input.attributes !== undefined &&
221
- input.attributes !== null && { attributes: serializeAws_restJson1EventAttributes(input.attributes, context) }),
222
- ...(input.eventName !== undefined && input.eventName !== null && { eventName: input.eventName }),
223
- ...(input.roomIdentifier !== undefined &&
224
- input.roomIdentifier !== null && { roomIdentifier: input.roomIdentifier }),
212
+ ...(input.attributes != null && { attributes: serializeAws_restJson1EventAttributes(input.attributes, context) }),
213
+ ...(input.eventName != null && { eventName: input.eventName }),
214
+ ...(input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier }),
225
215
  });
226
216
  return new protocol_http_1.HttpRequest({
227
217
  protocol,
@@ -252,7 +242,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
252
242
  }
253
243
  let body;
254
244
  body = JSON.stringify({
255
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
245
+ ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
256
246
  });
257
247
  return new protocol_http_1.HttpRequest({
258
248
  protocol,
@@ -303,16 +293,15 @@ const serializeAws_restJson1UpdateRoomCommand = async (input, context) => {
303
293
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateRoom";
304
294
  let body;
305
295
  body = JSON.stringify({
306
- ...(input.identifier !== undefined && input.identifier !== null && { identifier: input.identifier }),
307
- ...(input.maximumMessageLength !== undefined &&
308
- input.maximumMessageLength !== null && { maximumMessageLength: input.maximumMessageLength }),
309
- ...(input.maximumMessageRatePerSecond !== undefined &&
310
- input.maximumMessageRatePerSecond !== null && { maximumMessageRatePerSecond: input.maximumMessageRatePerSecond }),
311
- ...(input.messageReviewHandler !== undefined &&
312
- input.messageReviewHandler !== null && {
296
+ ...(input.identifier != null && { identifier: input.identifier }),
297
+ ...(input.maximumMessageLength != null && { maximumMessageLength: input.maximumMessageLength }),
298
+ ...(input.maximumMessageRatePerSecond != null && {
299
+ maximumMessageRatePerSecond: input.maximumMessageRatePerSecond,
300
+ }),
301
+ ...(input.messageReviewHandler != null && {
313
302
  messageReviewHandler: serializeAws_restJson1MessageReviewHandler(input.messageReviewHandler, context),
314
303
  }),
315
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
304
+ ...(input.name != null && { name: input.name }),
316
305
  });
317
306
  return new protocol_http_1.HttpRequest({
318
307
  protocol,
@@ -1138,9 +1127,8 @@ const serializeAws_restJson1EventAttributes = (input, context) => {
1138
1127
  };
1139
1128
  const serializeAws_restJson1MessageReviewHandler = (input, context) => {
1140
1129
  return {
1141
- ...(input.fallbackResult !== undefined &&
1142
- input.fallbackResult !== null && { fallbackResult: input.fallbackResult }),
1143
- ...(input.uri !== undefined && input.uri !== null && { uri: input.uri }),
1130
+ ...(input.fallbackResult != null && { fallbackResult: input.fallbackResult }),
1131
+ ...(input.uri != null && { uri: input.uri }),
1144
1132
  };
1145
1133
  };
1146
1134
  const serializeAws_restJson1Tags = (input, context) => {
@@ -1174,20 +1162,14 @@ const deserializeAws_restJson1RoomList = (output, context) => {
1174
1162
  const deserializeAws_restJson1RoomSummary = (output, context) => {
1175
1163
  return {
1176
1164
  arn: (0, smithy_client_1.expectString)(output.arn),
1177
- createTime: output.createTime !== undefined && output.createTime !== null
1178
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createTime))
1179
- : undefined,
1165
+ createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createTime)) : undefined,
1180
1166
  id: (0, smithy_client_1.expectString)(output.id),
1181
- messageReviewHandler: output.messageReviewHandler !== undefined && output.messageReviewHandler !== null
1167
+ messageReviewHandler: output.messageReviewHandler != null
1182
1168
  ? deserializeAws_restJson1MessageReviewHandler(output.messageReviewHandler, context)
1183
1169
  : undefined,
1184
1170
  name: (0, smithy_client_1.expectString)(output.name),
1185
- tags: output.tags !== undefined && output.tags !== null
1186
- ? deserializeAws_restJson1Tags(output.tags, context)
1187
- : undefined,
1188
- updateTime: output.updateTime !== undefined && output.updateTime !== null
1189
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updateTime))
1190
- : undefined,
1171
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
1172
+ updateTime: output.updateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updateTime)) : undefined,
1191
1173
  };
1192
1174
  };
1193
1175
  const deserializeAws_restJson1Tags = (output, context) => {
@@ -1249,6 +1231,9 @@ const loadRestJsonErrorCode = (output, data) => {
1249
1231
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1250
1232
  const sanitizeErrorCode = (rawValue) => {
1251
1233
  let cleanValue = rawValue;
1234
+ if (typeof cleanValue === "number") {
1235
+ cleanValue = cleanValue.toString();
1236
+ }
1252
1237
  if (cleanValue.indexOf(":") >= 0) {
1253
1238
  cleanValue = cleanValue.split(":")[0];
1254
1239
  }
@@ -14,15 +14,11 @@ export var serializeAws_restJson1CreateChatTokenCommand = function (input, conte
14
14
  "content-type": "application/json",
15
15
  };
16
16
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateChatToken";
17
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.attributes !== undefined &&
18
- input.attributes !== null && {
17
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.attributes != null && {
19
18
  attributes: serializeAws_restJson1ChatTokenAttributes(input.attributes, context),
20
- })), (input.capabilities !== undefined &&
21
- input.capabilities !== null && {
19
+ })), (input.capabilities != null && {
22
20
  capabilities: serializeAws_restJson1ChatTokenCapabilities(input.capabilities, context),
23
- })), (input.roomIdentifier !== undefined &&
24
- input.roomIdentifier !== null && { roomIdentifier: input.roomIdentifier })), (input.sessionDurationInMinutes !== undefined &&
25
- input.sessionDurationInMinutes !== null && { sessionDurationInMinutes: input.sessionDurationInMinutes })), (input.userId !== undefined && input.userId !== null && { userId: input.userId })));
21
+ })), (input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier })), (input.sessionDurationInMinutes != null && { sessionDurationInMinutes: input.sessionDurationInMinutes })), (input.userId != null && { userId: input.userId })));
26
22
  return [2, new __HttpRequest({
27
23
  protocol: protocol,
28
24
  hostname: hostname,
@@ -46,12 +42,11 @@ export var serializeAws_restJson1CreateRoomCommand = function (input, context) {
46
42
  "content-type": "application/json",
47
43
  };
48
44
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateRoom";
49
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.maximumMessageLength !== undefined &&
50
- input.maximumMessageLength !== null && { maximumMessageLength: input.maximumMessageLength })), (input.maximumMessageRatePerSecond !== undefined &&
51
- input.maximumMessageRatePerSecond !== null && { maximumMessageRatePerSecond: input.maximumMessageRatePerSecond })), (input.messageReviewHandler !== undefined &&
52
- input.messageReviewHandler !== null && {
45
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.maximumMessageLength != null && { maximumMessageLength: input.maximumMessageLength })), (input.maximumMessageRatePerSecond != null && {
46
+ maximumMessageRatePerSecond: input.maximumMessageRatePerSecond,
47
+ })), (input.messageReviewHandler != null && {
53
48
  messageReviewHandler: serializeAws_restJson1MessageReviewHandler(input.messageReviewHandler, context),
54
- })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
49
+ })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
55
50
  return [2, new __HttpRequest({
56
51
  protocol: protocol,
57
52
  hostname: hostname,
@@ -75,8 +70,7 @@ export var serializeAws_restJson1DeleteMessageCommand = function (input, context
75
70
  "content-type": "application/json",
76
71
  };
77
72
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteMessage";
78
- body = JSON.stringify(__assign(__assign(__assign({}, (input.id !== undefined && input.id !== null && { id: input.id })), (input.reason !== undefined && input.reason !== null && { reason: input.reason })), (input.roomIdentifier !== undefined &&
79
- input.roomIdentifier !== null && { roomIdentifier: input.roomIdentifier })));
73
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.id != null && { id: input.id })), (input.reason != null && { reason: input.reason })), (input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier })));
80
74
  return [2, new __HttpRequest({
81
75
  protocol: protocol,
82
76
  hostname: hostname,
@@ -100,7 +94,7 @@ export var serializeAws_restJson1DeleteRoomCommand = function (input, context) {
100
94
  "content-type": "application/json",
101
95
  };
102
96
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteRoom";
103
- body = JSON.stringify(__assign({}, (input.identifier !== undefined && input.identifier !== null && { identifier: input.identifier })));
97
+ body = JSON.stringify(__assign({}, (input.identifier != null && { identifier: input.identifier })));
104
98
  return [2, new __HttpRequest({
105
99
  protocol: protocol,
106
100
  hostname: hostname,
@@ -124,8 +118,7 @@ export var serializeAws_restJson1DisconnectUserCommand = function (input, contex
124
118
  "content-type": "application/json",
125
119
  };
126
120
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DisconnectUser";
127
- body = JSON.stringify(__assign(__assign(__assign({}, (input.reason !== undefined && input.reason !== null && { reason: input.reason })), (input.roomIdentifier !== undefined &&
128
- input.roomIdentifier !== null && { roomIdentifier: input.roomIdentifier })), (input.userId !== undefined && input.userId !== null && { userId: input.userId })));
121
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.reason != null && { reason: input.reason })), (input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier })), (input.userId != null && { userId: input.userId })));
129
122
  return [2, new __HttpRequest({
130
123
  protocol: protocol,
131
124
  hostname: hostname,
@@ -149,7 +142,7 @@ export var serializeAws_restJson1GetRoomCommand = function (input, context) { re
149
142
  "content-type": "application/json",
150
143
  };
151
144
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetRoom";
152
- body = JSON.stringify(__assign({}, (input.identifier !== undefined && input.identifier !== null && { identifier: input.identifier })));
145
+ body = JSON.stringify(__assign({}, (input.identifier != null && { identifier: input.identifier })));
153
146
  return [2, new __HttpRequest({
154
147
  protocol: protocol,
155
148
  hostname: hostname,
@@ -173,8 +166,7 @@ export var serializeAws_restJson1ListRoomsCommand = function (input, context) {
173
166
  "content-type": "application/json",
174
167
  };
175
168
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListRooms";
176
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.messageReviewHandlerUri !== undefined &&
177
- input.messageReviewHandlerUri !== null && { messageReviewHandlerUri: input.messageReviewHandlerUri })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
169
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.messageReviewHandlerUri != null && { messageReviewHandlerUri: input.messageReviewHandlerUri })), (input.name != null && { name: input.name })), (input.nextToken != null && { nextToken: input.nextToken })));
178
170
  return [2, new __HttpRequest({
179
171
  protocol: protocol,
180
172
  hostname: hostname,
@@ -229,9 +221,7 @@ export var serializeAws_restJson1SendEventCommand = function (input, context) {
229
221
  "content-type": "application/json",
230
222
  };
231
223
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/SendEvent";
232
- body = JSON.stringify(__assign(__assign(__assign({}, (input.attributes !== undefined &&
233
- input.attributes !== null && { attributes: serializeAws_restJson1EventAttributes(input.attributes, context) })), (input.eventName !== undefined && input.eventName !== null && { eventName: input.eventName })), (input.roomIdentifier !== undefined &&
234
- input.roomIdentifier !== null && { roomIdentifier: input.roomIdentifier })));
224
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.attributes != null && { attributes: serializeAws_restJson1EventAttributes(input.attributes, context) })), (input.eventName != null && { eventName: input.eventName })), (input.roomIdentifier != null && { roomIdentifier: input.roomIdentifier })));
235
225
  return [2, new __HttpRequest({
236
226
  protocol: protocol,
237
227
  hostname: hostname,
@@ -265,7 +255,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
265
255
  else {
266
256
  throw new Error("No value provided for input HTTP label: resourceArn.");
267
257
  }
268
- body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
258
+ body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
269
259
  return [2, new __HttpRequest({
270
260
  protocol: protocol,
271
261
  hostname: hostname,
@@ -322,12 +312,11 @@ export var serializeAws_restJson1UpdateRoomCommand = function (input, context) {
322
312
  "content-type": "application/json",
323
313
  };
324
314
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateRoom";
325
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.identifier !== undefined && input.identifier !== null && { identifier: input.identifier })), (input.maximumMessageLength !== undefined &&
326
- input.maximumMessageLength !== null && { maximumMessageLength: input.maximumMessageLength })), (input.maximumMessageRatePerSecond !== undefined &&
327
- input.maximumMessageRatePerSecond !== null && { maximumMessageRatePerSecond: input.maximumMessageRatePerSecond })), (input.messageReviewHandler !== undefined &&
328
- input.messageReviewHandler !== null && {
315
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.identifier != null && { identifier: input.identifier })), (input.maximumMessageLength != null && { maximumMessageLength: input.maximumMessageLength })), (input.maximumMessageRatePerSecond != null && {
316
+ maximumMessageRatePerSecond: input.maximumMessageRatePerSecond,
317
+ })), (input.messageReviewHandler != null && {
329
318
  messageReviewHandler: serializeAws_restJson1MessageReviewHandler(input.messageReviewHandler, context),
330
- })), (input.name !== undefined && input.name !== null && { name: input.name })));
319
+ })), (input.name != null && { name: input.name })));
331
320
  return [2, new __HttpRequest({
332
321
  protocol: protocol,
333
322
  hostname: hostname,
@@ -1403,8 +1392,7 @@ var serializeAws_restJson1EventAttributes = function (input, context) {
1403
1392
  }, {});
1404
1393
  };
1405
1394
  var serializeAws_restJson1MessageReviewHandler = function (input, context) {
1406
- return __assign(__assign({}, (input.fallbackResult !== undefined &&
1407
- input.fallbackResult !== null && { fallbackResult: input.fallbackResult })), (input.uri !== undefined && input.uri !== null && { uri: input.uri }));
1395
+ return __assign(__assign({}, (input.fallbackResult != null && { fallbackResult: input.fallbackResult })), (input.uri != null && { uri: input.uri }));
1408
1396
  };
1409
1397
  var serializeAws_restJson1Tags = function (input, context) {
1410
1398
  return Object.entries(input).reduce(function (acc, _a) {
@@ -1436,20 +1424,14 @@ var deserializeAws_restJson1RoomList = function (output, context) {
1436
1424
  var deserializeAws_restJson1RoomSummary = function (output, context) {
1437
1425
  return {
1438
1426
  arn: __expectString(output.arn),
1439
- createTime: output.createTime !== undefined && output.createTime !== null
1440
- ? __expectNonNull(__parseRfc3339DateTime(output.createTime))
1441
- : undefined,
1427
+ createTime: output.createTime != null ? __expectNonNull(__parseRfc3339DateTime(output.createTime)) : undefined,
1442
1428
  id: __expectString(output.id),
1443
- messageReviewHandler: output.messageReviewHandler !== undefined && output.messageReviewHandler !== null
1429
+ messageReviewHandler: output.messageReviewHandler != null
1444
1430
  ? deserializeAws_restJson1MessageReviewHandler(output.messageReviewHandler, context)
1445
1431
  : undefined,
1446
1432
  name: __expectString(output.name),
1447
- tags: output.tags !== undefined && output.tags !== null
1448
- ? deserializeAws_restJson1Tags(output.tags, context)
1449
- : undefined,
1450
- updateTime: output.updateTime !== undefined && output.updateTime !== null
1451
- ? __expectNonNull(__parseRfc3339DateTime(output.updateTime))
1452
- : undefined,
1433
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
1434
+ updateTime: output.updateTime != null ? __expectNonNull(__parseRfc3339DateTime(output.updateTime)) : undefined,
1453
1435
  };
1454
1436
  };
1455
1437
  var deserializeAws_restJson1Tags = function (output, context) {
@@ -1517,6 +1499,9 @@ var loadRestJsonErrorCode = function (output, data) {
1517
1499
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
1518
1500
  var sanitizeErrorCode = function (rawValue) {
1519
1501
  var cleanValue = rawValue;
1502
+ if (typeof cleanValue === "number") {
1503
+ cleanValue = cleanValue.toString();
1504
+ }
1520
1505
  if (cleanValue.indexOf(":") >= 0) {
1521
1506
  cleanValue = cleanValue.split(":")[0];
1522
1507
  }
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.121.0",
4
+ "version": "3.130.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",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1"