@aws-sdk/client-kinesis-video-signaling 3.303.0 → 3.309.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.
@@ -36,10 +36,10 @@ class GetIceServerConfigCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1GetIceServerConfigCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_GetIceServerConfigCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1GetIceServerConfigCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_GetIceServerConfigCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.GetIceServerConfigCommand = GetIceServerConfigCommand;
@@ -36,10 +36,10 @@ class SendAlexaOfferToMasterCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1SendAlexaOfferToMasterCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_SendAlexaOfferToMasterCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1SendAlexaOfferToMasterCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_SendAlexaOfferToMasterCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.SendAlexaOfferToMasterCommand = SendAlexaOfferToMasterCommand;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1SendAlexaOfferToMasterCommand = exports.deserializeAws_restJson1GetIceServerConfigCommand = exports.serializeAws_restJson1SendAlexaOfferToMasterCommand = exports.serializeAws_restJson1GetIceServerConfigCommand = void 0;
3
+ exports.de_SendAlexaOfferToMasterCommand = exports.de_GetIceServerConfigCommand = exports.se_SendAlexaOfferToMasterCommand = exports.se_GetIceServerConfigCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const KinesisVideoSignalingServiceException_1 = require("../models/KinesisVideoSignalingServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
- const serializeAws_restJson1GetIceServerConfigCommand = async (input, context) => {
8
+ const se_GetIceServerConfigCommand = async (input, context) => {
9
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
10
  const headers = {
11
11
  "content-type": "application/json",
@@ -28,8 +28,8 @@ const serializeAws_restJson1GetIceServerConfigCommand = async (input, context) =
28
28
  body,
29
29
  });
30
30
  };
31
- exports.serializeAws_restJson1GetIceServerConfigCommand = serializeAws_restJson1GetIceServerConfigCommand;
32
- const serializeAws_restJson1SendAlexaOfferToMasterCommand = async (input, context) => {
31
+ exports.se_GetIceServerConfigCommand = se_GetIceServerConfigCommand;
32
+ const se_SendAlexaOfferToMasterCommand = async (input, context) => {
33
33
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
34
34
  const headers = {
35
35
  "content-type": "application/json",
@@ -51,22 +51,22 @@ const serializeAws_restJson1SendAlexaOfferToMasterCommand = async (input, contex
51
51
  body,
52
52
  });
53
53
  };
54
- exports.serializeAws_restJson1SendAlexaOfferToMasterCommand = serializeAws_restJson1SendAlexaOfferToMasterCommand;
55
- const deserializeAws_restJson1GetIceServerConfigCommand = async (output, context) => {
54
+ exports.se_SendAlexaOfferToMasterCommand = se_SendAlexaOfferToMasterCommand;
55
+ const de_GetIceServerConfigCommand = async (output, context) => {
56
56
  if (output.statusCode !== 200 && output.statusCode >= 300) {
57
- return deserializeAws_restJson1GetIceServerConfigCommandError(output, context);
57
+ return de_GetIceServerConfigCommandError(output, context);
58
58
  }
59
59
  const contents = map({
60
60
  $metadata: deserializeMetadata(output),
61
61
  });
62
62
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
63
63
  if (data.IceServerList != null) {
64
- contents.IceServerList = deserializeAws_restJson1IceServerList(data.IceServerList, context);
64
+ contents.IceServerList = de_IceServerList(data.IceServerList, context);
65
65
  }
66
66
  return contents;
67
67
  };
68
- exports.deserializeAws_restJson1GetIceServerConfigCommand = deserializeAws_restJson1GetIceServerConfigCommand;
69
- const deserializeAws_restJson1GetIceServerConfigCommandError = async (output, context) => {
68
+ exports.de_GetIceServerConfigCommand = de_GetIceServerConfigCommand;
69
+ const de_GetIceServerConfigCommandError = async (output, context) => {
70
70
  const parsedOutput = {
71
71
  ...output,
72
72
  body: await parseErrorBody(output.body, context),
@@ -75,22 +75,22 @@ const deserializeAws_restJson1GetIceServerConfigCommandError = async (output, co
75
75
  switch (errorCode) {
76
76
  case "ClientLimitExceededException":
77
77
  case "com.amazonaws.kinesisvideosignaling#ClientLimitExceededException":
78
- throw await deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context);
78
+ throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
79
79
  case "InvalidArgumentException":
80
80
  case "com.amazonaws.kinesisvideosignaling#InvalidArgumentException":
81
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
81
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
82
82
  case "InvalidClientException":
83
83
  case "com.amazonaws.kinesisvideosignaling#InvalidClientException":
84
- throw await deserializeAws_restJson1InvalidClientExceptionResponse(parsedOutput, context);
84
+ throw await de_InvalidClientExceptionRes(parsedOutput, context);
85
85
  case "NotAuthorizedException":
86
86
  case "com.amazonaws.kinesisvideosignaling#NotAuthorizedException":
87
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
87
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
88
88
  case "ResourceNotFoundException":
89
89
  case "com.amazonaws.kinesisvideosignaling#ResourceNotFoundException":
90
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
90
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
91
91
  case "SessionExpiredException":
92
92
  case "com.amazonaws.kinesisvideosignaling#SessionExpiredException":
93
- throw await deserializeAws_restJson1SessionExpiredExceptionResponse(parsedOutput, context);
93
+ throw await de_SessionExpiredExceptionRes(parsedOutput, context);
94
94
  default:
95
95
  const parsedBody = parsedOutput.body;
96
96
  (0, smithy_client_1.throwDefaultError)({
@@ -101,9 +101,9 @@ const deserializeAws_restJson1GetIceServerConfigCommandError = async (output, co
101
101
  });
102
102
  }
103
103
  };
104
- const deserializeAws_restJson1SendAlexaOfferToMasterCommand = async (output, context) => {
104
+ const de_SendAlexaOfferToMasterCommand = async (output, context) => {
105
105
  if (output.statusCode !== 200 && output.statusCode >= 300) {
106
- return deserializeAws_restJson1SendAlexaOfferToMasterCommandError(output, context);
106
+ return de_SendAlexaOfferToMasterCommandError(output, context);
107
107
  }
108
108
  const contents = map({
109
109
  $metadata: deserializeMetadata(output),
@@ -114,8 +114,8 @@ const deserializeAws_restJson1SendAlexaOfferToMasterCommand = async (output, con
114
114
  }
115
115
  return contents;
116
116
  };
117
- exports.deserializeAws_restJson1SendAlexaOfferToMasterCommand = deserializeAws_restJson1SendAlexaOfferToMasterCommand;
118
- const deserializeAws_restJson1SendAlexaOfferToMasterCommandError = async (output, context) => {
117
+ exports.de_SendAlexaOfferToMasterCommand = de_SendAlexaOfferToMasterCommand;
118
+ const de_SendAlexaOfferToMasterCommandError = async (output, context) => {
119
119
  const parsedOutput = {
120
120
  ...output,
121
121
  body: await parseErrorBody(output.body, context),
@@ -124,16 +124,16 @@ const deserializeAws_restJson1SendAlexaOfferToMasterCommandError = async (output
124
124
  switch (errorCode) {
125
125
  case "ClientLimitExceededException":
126
126
  case "com.amazonaws.kinesisvideosignaling#ClientLimitExceededException":
127
- throw await deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context);
127
+ throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
128
128
  case "InvalidArgumentException":
129
129
  case "com.amazonaws.kinesisvideosignaling#InvalidArgumentException":
130
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
130
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
131
131
  case "NotAuthorizedException":
132
132
  case "com.amazonaws.kinesisvideosignaling#NotAuthorizedException":
133
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
133
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
134
134
  case "ResourceNotFoundException":
135
135
  case "com.amazonaws.kinesisvideosignaling#ResourceNotFoundException":
136
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
136
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
137
137
  default:
138
138
  const parsedBody = parsedOutput.body;
139
139
  (0, smithy_client_1.throwDefaultError)({
@@ -145,7 +145,7 @@ const deserializeAws_restJson1SendAlexaOfferToMasterCommandError = async (output
145
145
  }
146
146
  };
147
147
  const map = smithy_client_1.map;
148
- const deserializeAws_restJson1ClientLimitExceededExceptionResponse = async (parsedOutput, context) => {
148
+ const de_ClientLimitExceededExceptionRes = async (parsedOutput, context) => {
149
149
  const contents = map({});
150
150
  const data = parsedOutput.body;
151
151
  if (data.Message != null) {
@@ -157,7 +157,7 @@ const deserializeAws_restJson1ClientLimitExceededExceptionResponse = async (pars
157
157
  });
158
158
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
159
159
  };
160
- const deserializeAws_restJson1InvalidArgumentExceptionResponse = async (parsedOutput, context) => {
160
+ const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
161
161
  const contents = map({});
162
162
  const data = parsedOutput.body;
163
163
  if (data.Message != null) {
@@ -169,7 +169,7 @@ const deserializeAws_restJson1InvalidArgumentExceptionResponse = async (parsedOu
169
169
  });
170
170
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
171
171
  };
172
- const deserializeAws_restJson1InvalidClientExceptionResponse = async (parsedOutput, context) => {
172
+ const de_InvalidClientExceptionRes = async (parsedOutput, context) => {
173
173
  const contents = map({});
174
174
  const data = parsedOutput.body;
175
175
  if (data.message != null) {
@@ -181,7 +181,7 @@ const deserializeAws_restJson1InvalidClientExceptionResponse = async (parsedOutp
181
181
  });
182
182
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
183
183
  };
184
- const deserializeAws_restJson1NotAuthorizedExceptionResponse = async (parsedOutput, context) => {
184
+ const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
185
185
  const contents = map({});
186
186
  const data = parsedOutput.body;
187
187
  if (data.Message != null) {
@@ -193,7 +193,7 @@ const deserializeAws_restJson1NotAuthorizedExceptionResponse = async (parsedOutp
193
193
  });
194
194
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
195
195
  };
196
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
196
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
197
197
  const contents = map({});
198
198
  const data = parsedOutput.body;
199
199
  if (data.Message != null) {
@@ -205,7 +205,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
205
205
  });
206
206
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
207
207
  };
208
- const deserializeAws_restJson1SessionExpiredExceptionResponse = async (parsedOutput, context) => {
208
+ const de_SessionExpiredExceptionRes = async (parsedOutput, context) => {
209
209
  const contents = map({});
210
210
  const data = parsedOutput.body;
211
211
  if (data.message != null) {
@@ -217,26 +217,26 @@ const deserializeAws_restJson1SessionExpiredExceptionResponse = async (parsedOut
217
217
  });
218
218
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
219
219
  };
220
- const deserializeAws_restJson1IceServer = (output, context) => {
220
+ const de_IceServer = (output, context) => {
221
221
  return {
222
222
  Password: (0, smithy_client_1.expectString)(output.Password),
223
223
  Ttl: (0, smithy_client_1.expectInt32)(output.Ttl),
224
- Uris: output.Uris != null ? deserializeAws_restJson1Uris(output.Uris, context) : undefined,
224
+ Uris: output.Uris != null ? de_Uris(output.Uris, context) : undefined,
225
225
  Username: (0, smithy_client_1.expectString)(output.Username),
226
226
  };
227
227
  };
228
- const deserializeAws_restJson1IceServerList = (output, context) => {
228
+ const de_IceServerList = (output, context) => {
229
229
  const retVal = (output || [])
230
230
  .filter((e) => e != null)
231
231
  .map((entry) => {
232
232
  if (entry === null) {
233
233
  return null;
234
234
  }
235
- return deserializeAws_restJson1IceServer(entry, context);
235
+ return de_IceServer(entry, context);
236
236
  });
237
237
  return retVal;
238
238
  };
239
- const deserializeAws_restJson1Uris = (output, context) => {
239
+ const de_Uris = (output, context) => {
240
240
  const retVal = (output || [])
241
241
  .filter((e) => e != null)
242
242
  .map((entry) => {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { deserializeAws_restJson1GetIceServerConfigCommand, serializeAws_restJson1GetIceServerConfigCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_GetIceServerConfigCommand, se_GetIceServerConfigCommand } from "../protocols/Aws_restJson1";
5
5
  export class GetIceServerConfigCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class GetIceServerConfigCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1GetIceServerConfigCommand(input, context);
36
+ return se_GetIceServerConfigCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1GetIceServerConfigCommand(output, context);
39
+ return de_GetIceServerConfigCommand(output, context);
40
40
  }
41
41
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { deserializeAws_restJson1SendAlexaOfferToMasterCommand, serializeAws_restJson1SendAlexaOfferToMasterCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_SendAlexaOfferToMasterCommand, se_SendAlexaOfferToMasterCommand } from "../protocols/Aws_restJson1";
5
5
  export class SendAlexaOfferToMasterCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class SendAlexaOfferToMasterCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1SendAlexaOfferToMasterCommand(input, context);
36
+ return se_SendAlexaOfferToMasterCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1SendAlexaOfferToMasterCommand(output, context);
39
+ return de_SendAlexaOfferToMasterCommand(output, context);
40
40
  }
41
41
  }
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { KinesisVideoSignalingServiceException as __BaseException } from "../models/KinesisVideoSignalingServiceException";
4
4
  import { ClientLimitExceededException, InvalidArgumentException, InvalidClientException, NotAuthorizedException, ResourceNotFoundException, SessionExpiredException, } from "../models/models_0";
5
- export const serializeAws_restJson1GetIceServerConfigCommand = async (input, context) => {
5
+ export const se_GetIceServerConfigCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {
8
8
  "content-type": "application/json",
@@ -25,7 +25,7 @@ export const serializeAws_restJson1GetIceServerConfigCommand = async (input, con
25
25
  body,
26
26
  });
27
27
  };
28
- export const serializeAws_restJson1SendAlexaOfferToMasterCommand = async (input, context) => {
28
+ export const se_SendAlexaOfferToMasterCommand = async (input, context) => {
29
29
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
30
30
  const headers = {
31
31
  "content-type": "application/json",
@@ -47,20 +47,20 @@ export const serializeAws_restJson1SendAlexaOfferToMasterCommand = async (input,
47
47
  body,
48
48
  });
49
49
  };
50
- export const deserializeAws_restJson1GetIceServerConfigCommand = async (output, context) => {
50
+ export const de_GetIceServerConfigCommand = async (output, context) => {
51
51
  if (output.statusCode !== 200 && output.statusCode >= 300) {
52
- return deserializeAws_restJson1GetIceServerConfigCommandError(output, context);
52
+ return de_GetIceServerConfigCommandError(output, context);
53
53
  }
54
54
  const contents = map({
55
55
  $metadata: deserializeMetadata(output),
56
56
  });
57
57
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
58
58
  if (data.IceServerList != null) {
59
- contents.IceServerList = deserializeAws_restJson1IceServerList(data.IceServerList, context);
59
+ contents.IceServerList = de_IceServerList(data.IceServerList, context);
60
60
  }
61
61
  return contents;
62
62
  };
63
- const deserializeAws_restJson1GetIceServerConfigCommandError = async (output, context) => {
63
+ const de_GetIceServerConfigCommandError = async (output, context) => {
64
64
  const parsedOutput = {
65
65
  ...output,
66
66
  body: await parseErrorBody(output.body, context),
@@ -69,22 +69,22 @@ const deserializeAws_restJson1GetIceServerConfigCommandError = async (output, co
69
69
  switch (errorCode) {
70
70
  case "ClientLimitExceededException":
71
71
  case "com.amazonaws.kinesisvideosignaling#ClientLimitExceededException":
72
- throw await deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context);
72
+ throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
73
73
  case "InvalidArgumentException":
74
74
  case "com.amazonaws.kinesisvideosignaling#InvalidArgumentException":
75
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
75
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
76
76
  case "InvalidClientException":
77
77
  case "com.amazonaws.kinesisvideosignaling#InvalidClientException":
78
- throw await deserializeAws_restJson1InvalidClientExceptionResponse(parsedOutput, context);
78
+ throw await de_InvalidClientExceptionRes(parsedOutput, context);
79
79
  case "NotAuthorizedException":
80
80
  case "com.amazonaws.kinesisvideosignaling#NotAuthorizedException":
81
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
81
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
82
82
  case "ResourceNotFoundException":
83
83
  case "com.amazonaws.kinesisvideosignaling#ResourceNotFoundException":
84
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
84
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
85
85
  case "SessionExpiredException":
86
86
  case "com.amazonaws.kinesisvideosignaling#SessionExpiredException":
87
- throw await deserializeAws_restJson1SessionExpiredExceptionResponse(parsedOutput, context);
87
+ throw await de_SessionExpiredExceptionRes(parsedOutput, context);
88
88
  default:
89
89
  const parsedBody = parsedOutput.body;
90
90
  throwDefaultError({
@@ -95,9 +95,9 @@ const deserializeAws_restJson1GetIceServerConfigCommandError = async (output, co
95
95
  });
96
96
  }
97
97
  };
98
- export const deserializeAws_restJson1SendAlexaOfferToMasterCommand = async (output, context) => {
98
+ export const de_SendAlexaOfferToMasterCommand = async (output, context) => {
99
99
  if (output.statusCode !== 200 && output.statusCode >= 300) {
100
- return deserializeAws_restJson1SendAlexaOfferToMasterCommandError(output, context);
100
+ return de_SendAlexaOfferToMasterCommandError(output, context);
101
101
  }
102
102
  const contents = map({
103
103
  $metadata: deserializeMetadata(output),
@@ -108,7 +108,7 @@ export const deserializeAws_restJson1SendAlexaOfferToMasterCommand = async (outp
108
108
  }
109
109
  return contents;
110
110
  };
111
- const deserializeAws_restJson1SendAlexaOfferToMasterCommandError = async (output, context) => {
111
+ const de_SendAlexaOfferToMasterCommandError = async (output, context) => {
112
112
  const parsedOutput = {
113
113
  ...output,
114
114
  body: await parseErrorBody(output.body, context),
@@ -117,16 +117,16 @@ const deserializeAws_restJson1SendAlexaOfferToMasterCommandError = async (output
117
117
  switch (errorCode) {
118
118
  case "ClientLimitExceededException":
119
119
  case "com.amazonaws.kinesisvideosignaling#ClientLimitExceededException":
120
- throw await deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context);
120
+ throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
121
121
  case "InvalidArgumentException":
122
122
  case "com.amazonaws.kinesisvideosignaling#InvalidArgumentException":
123
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
123
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
124
124
  case "NotAuthorizedException":
125
125
  case "com.amazonaws.kinesisvideosignaling#NotAuthorizedException":
126
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
126
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
127
127
  case "ResourceNotFoundException":
128
128
  case "com.amazonaws.kinesisvideosignaling#ResourceNotFoundException":
129
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
129
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
130
130
  default:
131
131
  const parsedBody = parsedOutput.body;
132
132
  throwDefaultError({
@@ -138,7 +138,7 @@ const deserializeAws_restJson1SendAlexaOfferToMasterCommandError = async (output
138
138
  }
139
139
  };
140
140
  const map = __map;
141
- const deserializeAws_restJson1ClientLimitExceededExceptionResponse = async (parsedOutput, context) => {
141
+ const de_ClientLimitExceededExceptionRes = async (parsedOutput, context) => {
142
142
  const contents = map({});
143
143
  const data = parsedOutput.body;
144
144
  if (data.Message != null) {
@@ -150,7 +150,7 @@ const deserializeAws_restJson1ClientLimitExceededExceptionResponse = async (pars
150
150
  });
151
151
  return __decorateServiceException(exception, parsedOutput.body);
152
152
  };
153
- const deserializeAws_restJson1InvalidArgumentExceptionResponse = async (parsedOutput, context) => {
153
+ const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
154
154
  const contents = map({});
155
155
  const data = parsedOutput.body;
156
156
  if (data.Message != null) {
@@ -162,7 +162,7 @@ const deserializeAws_restJson1InvalidArgumentExceptionResponse = async (parsedOu
162
162
  });
163
163
  return __decorateServiceException(exception, parsedOutput.body);
164
164
  };
165
- const deserializeAws_restJson1InvalidClientExceptionResponse = async (parsedOutput, context) => {
165
+ const de_InvalidClientExceptionRes = async (parsedOutput, context) => {
166
166
  const contents = map({});
167
167
  const data = parsedOutput.body;
168
168
  if (data.message != null) {
@@ -174,7 +174,7 @@ const deserializeAws_restJson1InvalidClientExceptionResponse = async (parsedOutp
174
174
  });
175
175
  return __decorateServiceException(exception, parsedOutput.body);
176
176
  };
177
- const deserializeAws_restJson1NotAuthorizedExceptionResponse = async (parsedOutput, context) => {
177
+ const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
178
178
  const contents = map({});
179
179
  const data = parsedOutput.body;
180
180
  if (data.Message != null) {
@@ -186,7 +186,7 @@ const deserializeAws_restJson1NotAuthorizedExceptionResponse = async (parsedOutp
186
186
  });
187
187
  return __decorateServiceException(exception, parsedOutput.body);
188
188
  };
189
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
189
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
190
190
  const contents = map({});
191
191
  const data = parsedOutput.body;
192
192
  if (data.Message != null) {
@@ -198,7 +198,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
198
198
  });
199
199
  return __decorateServiceException(exception, parsedOutput.body);
200
200
  };
201
- const deserializeAws_restJson1SessionExpiredExceptionResponse = async (parsedOutput, context) => {
201
+ const de_SessionExpiredExceptionRes = async (parsedOutput, context) => {
202
202
  const contents = map({});
203
203
  const data = parsedOutput.body;
204
204
  if (data.message != null) {
@@ -210,26 +210,26 @@ const deserializeAws_restJson1SessionExpiredExceptionResponse = async (parsedOut
210
210
  });
211
211
  return __decorateServiceException(exception, parsedOutput.body);
212
212
  };
213
- const deserializeAws_restJson1IceServer = (output, context) => {
213
+ const de_IceServer = (output, context) => {
214
214
  return {
215
215
  Password: __expectString(output.Password),
216
216
  Ttl: __expectInt32(output.Ttl),
217
- Uris: output.Uris != null ? deserializeAws_restJson1Uris(output.Uris, context) : undefined,
217
+ Uris: output.Uris != null ? de_Uris(output.Uris, context) : undefined,
218
218
  Username: __expectString(output.Username),
219
219
  };
220
220
  };
221
- const deserializeAws_restJson1IceServerList = (output, context) => {
221
+ const de_IceServerList = (output, context) => {
222
222
  const retVal = (output || [])
223
223
  .filter((e) => e != null)
224
224
  .map((entry) => {
225
225
  if (entry === null) {
226
226
  return null;
227
227
  }
228
- return deserializeAws_restJson1IceServer(entry, context);
228
+ return de_IceServer(entry, context);
229
229
  });
230
230
  return retVal;
231
231
  };
232
- const deserializeAws_restJson1Uris = (output, context) => {
232
+ const de_Uris = (output, context) => {
233
233
  const retVal = (output || [])
234
234
  .filter((e) => e != null)
235
235
  .map((entry) => {
@@ -2,7 +2,19 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a
2
2
  import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
3
  import { GetIceServerConfigCommandInput, GetIceServerConfigCommandOutput } from "../commands/GetIceServerConfigCommand";
4
4
  import { SendAlexaOfferToMasterCommandInput, SendAlexaOfferToMasterCommandOutput } from "../commands/SendAlexaOfferToMasterCommand";
5
- export declare const serializeAws_restJson1GetIceServerConfigCommand: (input: GetIceServerConfigCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
6
- export declare const serializeAws_restJson1SendAlexaOfferToMasterCommand: (input: SendAlexaOfferToMasterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
7
- export declare const deserializeAws_restJson1GetIceServerConfigCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetIceServerConfigCommandOutput>;
8
- export declare const deserializeAws_restJson1SendAlexaOfferToMasterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendAlexaOfferToMasterCommandOutput>;
5
+ /**
6
+ * serializeAws_restJson1GetIceServerConfigCommand
7
+ */
8
+ export declare const se_GetIceServerConfigCommand: (input: GetIceServerConfigCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
9
+ /**
10
+ * serializeAws_restJson1SendAlexaOfferToMasterCommand
11
+ */
12
+ export declare const se_SendAlexaOfferToMasterCommand: (input: SendAlexaOfferToMasterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
13
+ /**
14
+ * deserializeAws_restJson1GetIceServerConfigCommand
15
+ */
16
+ export declare const de_GetIceServerConfigCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetIceServerConfigCommandOutput>;
17
+ /**
18
+ * deserializeAws_restJson1SendAlexaOfferToMasterCommand
19
+ */
20
+ export declare const de_SendAlexaOfferToMasterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendAlexaOfferToMasterCommandOutput>;
@@ -11,19 +11,19 @@ import {
11
11
  SendAlexaOfferToMasterCommandInput,
12
12
  SendAlexaOfferToMasterCommandOutput,
13
13
  } from "../commands/SendAlexaOfferToMasterCommand";
14
- export declare const serializeAws_restJson1GetIceServerConfigCommand: (
14
+ export declare const se_GetIceServerConfigCommand: (
15
15
  input: GetIceServerConfigCommandInput,
16
16
  context: __SerdeContext
17
17
  ) => Promise<__HttpRequest>;
18
- export declare const serializeAws_restJson1SendAlexaOfferToMasterCommand: (
18
+ export declare const se_SendAlexaOfferToMasterCommand: (
19
19
  input: SendAlexaOfferToMasterCommandInput,
20
20
  context: __SerdeContext
21
21
  ) => Promise<__HttpRequest>;
22
- export declare const deserializeAws_restJson1GetIceServerConfigCommand: (
22
+ export declare const de_GetIceServerConfigCommand: (
23
23
  output: __HttpResponse,
24
24
  context: __SerdeContext
25
25
  ) => Promise<GetIceServerConfigCommandOutput>;
26
- export declare const deserializeAws_restJson1SendAlexaOfferToMasterCommand: (
26
+ export declare const de_SendAlexaOfferToMasterCommand: (
27
27
  output: __HttpResponse,
28
28
  context: __SerdeContext
29
29
  ) => Promise<SendAlexaOfferToMasterCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kinesis-video-signaling",
3
3
  "description": "AWS SDK for JavaScript Kinesis Video Signaling Client for Node.js, Browser and React Native",
4
- "version": "3.303.0",
4
+ "version": "3.309.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",
@@ -21,37 +21,37 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.303.0",
25
- "@aws-sdk/config-resolver": "3.303.0",
26
- "@aws-sdk/credential-provider-node": "3.303.0",
27
- "@aws-sdk/fetch-http-handler": "3.303.0",
28
- "@aws-sdk/hash-node": "3.303.0",
29
- "@aws-sdk/invalid-dependency": "3.303.0",
30
- "@aws-sdk/middleware-content-length": "3.303.0",
31
- "@aws-sdk/middleware-endpoint": "3.303.0",
32
- "@aws-sdk/middleware-host-header": "3.303.0",
33
- "@aws-sdk/middleware-logger": "3.303.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
- "@aws-sdk/middleware-retry": "3.303.0",
36
- "@aws-sdk/middleware-serde": "3.303.0",
37
- "@aws-sdk/middleware-signing": "3.303.0",
38
- "@aws-sdk/middleware-stack": "3.303.0",
39
- "@aws-sdk/middleware-user-agent": "3.303.0",
40
- "@aws-sdk/node-config-provider": "3.303.0",
41
- "@aws-sdk/node-http-handler": "3.303.0",
42
- "@aws-sdk/protocol-http": "3.303.0",
43
- "@aws-sdk/smithy-client": "3.303.0",
44
- "@aws-sdk/types": "3.303.0",
45
- "@aws-sdk/url-parser": "3.303.0",
24
+ "@aws-sdk/client-sts": "3.309.0",
25
+ "@aws-sdk/config-resolver": "3.306.0",
26
+ "@aws-sdk/credential-provider-node": "3.309.0",
27
+ "@aws-sdk/fetch-http-handler": "3.306.0",
28
+ "@aws-sdk/hash-node": "3.306.0",
29
+ "@aws-sdk/invalid-dependency": "3.306.0",
30
+ "@aws-sdk/middleware-content-length": "3.306.0",
31
+ "@aws-sdk/middleware-endpoint": "3.306.0",
32
+ "@aws-sdk/middleware-host-header": "3.306.0",
33
+ "@aws-sdk/middleware-logger": "3.306.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
+ "@aws-sdk/middleware-retry": "3.306.0",
36
+ "@aws-sdk/middleware-serde": "3.306.0",
37
+ "@aws-sdk/middleware-signing": "3.306.0",
38
+ "@aws-sdk/middleware-stack": "3.306.0",
39
+ "@aws-sdk/middleware-user-agent": "3.306.0",
40
+ "@aws-sdk/node-config-provider": "3.306.0",
41
+ "@aws-sdk/node-http-handler": "3.306.0",
42
+ "@aws-sdk/protocol-http": "3.306.0",
43
+ "@aws-sdk/smithy-client": "3.309.0",
44
+ "@aws-sdk/types": "3.306.0",
45
+ "@aws-sdk/url-parser": "3.306.0",
46
46
  "@aws-sdk/util-base64": "3.303.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.303.0",
48
48
  "@aws-sdk/util-body-length-node": "3.303.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
- "@aws-sdk/util-endpoints": "3.303.0",
52
- "@aws-sdk/util-retry": "3.303.0",
53
- "@aws-sdk/util-user-agent-browser": "3.303.0",
54
- "@aws-sdk/util-user-agent-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.309.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.309.0",
51
+ "@aws-sdk/util-endpoints": "3.306.0",
52
+ "@aws-sdk/util-retry": "3.306.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.306.0",
54
+ "@aws-sdk/util-user-agent-node": "3.306.0",
55
55
  "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },