@aws-sdk/client-kinesis-video-signaling 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +10 -38
- package/dist-es/protocols/Aws_restJson1.js +9 -37
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -299,7 +299,7 @@ var se_SendAlexaOfferToMasterCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
299
299
|
}, "se_SendAlexaOfferToMasterCommand");
|
|
300
300
|
var de_GetIceServerConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
301
301
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
302
|
-
return
|
|
302
|
+
return de_CommandError(output, context);
|
|
303
303
|
}
|
|
304
304
|
const contents = (0, import_smithy_client.map)({
|
|
305
305
|
$metadata: deserializeMetadata(output)
|
|
@@ -311,43 +311,9 @@ var de_GetIceServerConfigCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
311
311
|
Object.assign(contents, doc);
|
|
312
312
|
return contents;
|
|
313
313
|
}, "de_GetIceServerConfigCommand");
|
|
314
|
-
var de_GetIceServerConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
315
|
-
const parsedOutput = {
|
|
316
|
-
...output,
|
|
317
|
-
body: await parseErrorBody(output.body, context)
|
|
318
|
-
};
|
|
319
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
320
|
-
switch (errorCode) {
|
|
321
|
-
case "ClientLimitExceededException":
|
|
322
|
-
case "com.amazonaws.kinesisvideosignaling#ClientLimitExceededException":
|
|
323
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
324
|
-
case "InvalidArgumentException":
|
|
325
|
-
case "com.amazonaws.kinesisvideosignaling#InvalidArgumentException":
|
|
326
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
327
|
-
case "InvalidClientException":
|
|
328
|
-
case "com.amazonaws.kinesisvideosignaling#InvalidClientException":
|
|
329
|
-
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
330
|
-
case "NotAuthorizedException":
|
|
331
|
-
case "com.amazonaws.kinesisvideosignaling#NotAuthorizedException":
|
|
332
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
333
|
-
case "ResourceNotFoundException":
|
|
334
|
-
case "com.amazonaws.kinesisvideosignaling#ResourceNotFoundException":
|
|
335
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
336
|
-
case "SessionExpiredException":
|
|
337
|
-
case "com.amazonaws.kinesisvideosignaling#SessionExpiredException":
|
|
338
|
-
throw await de_SessionExpiredExceptionRes(parsedOutput, context);
|
|
339
|
-
default:
|
|
340
|
-
const parsedBody = parsedOutput.body;
|
|
341
|
-
return throwDefaultError({
|
|
342
|
-
output,
|
|
343
|
-
parsedBody,
|
|
344
|
-
errorCode
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
}, "de_GetIceServerConfigCommandError");
|
|
348
314
|
var de_SendAlexaOfferToMasterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
349
315
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
350
|
-
return
|
|
316
|
+
return de_CommandError(output, context);
|
|
351
317
|
}
|
|
352
318
|
const contents = (0, import_smithy_client.map)({
|
|
353
319
|
$metadata: deserializeMetadata(output)
|
|
@@ -359,7 +325,7 @@ var de_SendAlexaOfferToMasterCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
359
325
|
Object.assign(contents, doc);
|
|
360
326
|
return contents;
|
|
361
327
|
}, "de_SendAlexaOfferToMasterCommand");
|
|
362
|
-
var
|
|
328
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
363
329
|
const parsedOutput = {
|
|
364
330
|
...output,
|
|
365
331
|
body: await parseErrorBody(output.body, context)
|
|
@@ -372,12 +338,18 @@ var de_SendAlexaOfferToMasterCommandError = /* @__PURE__ */ __name(async (output
|
|
|
372
338
|
case "InvalidArgumentException":
|
|
373
339
|
case "com.amazonaws.kinesisvideosignaling#InvalidArgumentException":
|
|
374
340
|
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
341
|
+
case "InvalidClientException":
|
|
342
|
+
case "com.amazonaws.kinesisvideosignaling#InvalidClientException":
|
|
343
|
+
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
375
344
|
case "NotAuthorizedException":
|
|
376
345
|
case "com.amazonaws.kinesisvideosignaling#NotAuthorizedException":
|
|
377
346
|
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
378
347
|
case "ResourceNotFoundException":
|
|
379
348
|
case "com.amazonaws.kinesisvideosignaling#ResourceNotFoundException":
|
|
380
349
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
350
|
+
case "SessionExpiredException":
|
|
351
|
+
case "com.amazonaws.kinesisvideosignaling#SessionExpiredException":
|
|
352
|
+
throw await de_SessionExpiredExceptionRes(parsedOutput, context);
|
|
381
353
|
default:
|
|
382
354
|
const parsedBody = parsedOutput.body;
|
|
383
355
|
return throwDefaultError({
|
|
@@ -386,7 +358,7 @@ var de_SendAlexaOfferToMasterCommandError = /* @__PURE__ */ __name(async (output
|
|
|
386
358
|
errorCode
|
|
387
359
|
});
|
|
388
360
|
}
|
|
389
|
-
}, "
|
|
361
|
+
}, "de_CommandError");
|
|
390
362
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(KinesisVideoSignalingServiceException);
|
|
391
363
|
var de_ClientLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
392
364
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -35,7 +35,7 @@ export const se_SendAlexaOfferToMasterCommand = async (input, context) => {
|
|
|
35
35
|
};
|
|
36
36
|
export const de_GetIceServerConfigCommand = async (output, context) => {
|
|
37
37
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
38
|
-
return
|
|
38
|
+
return de_CommandError(output, context);
|
|
39
39
|
}
|
|
40
40
|
const contents = map({
|
|
41
41
|
$metadata: deserializeMetadata(output),
|
|
@@ -47,43 +47,9 @@ export const de_GetIceServerConfigCommand = async (output, context) => {
|
|
|
47
47
|
Object.assign(contents, doc);
|
|
48
48
|
return contents;
|
|
49
49
|
};
|
|
50
|
-
const de_GetIceServerConfigCommandError = async (output, context) => {
|
|
51
|
-
const parsedOutput = {
|
|
52
|
-
...output,
|
|
53
|
-
body: await parseErrorBody(output.body, context),
|
|
54
|
-
};
|
|
55
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
56
|
-
switch (errorCode) {
|
|
57
|
-
case "ClientLimitExceededException":
|
|
58
|
-
case "com.amazonaws.kinesisvideosignaling#ClientLimitExceededException":
|
|
59
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
60
|
-
case "InvalidArgumentException":
|
|
61
|
-
case "com.amazonaws.kinesisvideosignaling#InvalidArgumentException":
|
|
62
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
63
|
-
case "InvalidClientException":
|
|
64
|
-
case "com.amazonaws.kinesisvideosignaling#InvalidClientException":
|
|
65
|
-
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
66
|
-
case "NotAuthorizedException":
|
|
67
|
-
case "com.amazonaws.kinesisvideosignaling#NotAuthorizedException":
|
|
68
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
69
|
-
case "ResourceNotFoundException":
|
|
70
|
-
case "com.amazonaws.kinesisvideosignaling#ResourceNotFoundException":
|
|
71
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
72
|
-
case "SessionExpiredException":
|
|
73
|
-
case "com.amazonaws.kinesisvideosignaling#SessionExpiredException":
|
|
74
|
-
throw await de_SessionExpiredExceptionRes(parsedOutput, context);
|
|
75
|
-
default:
|
|
76
|
-
const parsedBody = parsedOutput.body;
|
|
77
|
-
return throwDefaultError({
|
|
78
|
-
output,
|
|
79
|
-
parsedBody,
|
|
80
|
-
errorCode,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
50
|
export const de_SendAlexaOfferToMasterCommand = async (output, context) => {
|
|
85
51
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
86
|
-
return
|
|
52
|
+
return de_CommandError(output, context);
|
|
87
53
|
}
|
|
88
54
|
const contents = map({
|
|
89
55
|
$metadata: deserializeMetadata(output),
|
|
@@ -95,7 +61,7 @@ export const de_SendAlexaOfferToMasterCommand = async (output, context) => {
|
|
|
95
61
|
Object.assign(contents, doc);
|
|
96
62
|
return contents;
|
|
97
63
|
};
|
|
98
|
-
const
|
|
64
|
+
const de_CommandError = async (output, context) => {
|
|
99
65
|
const parsedOutput = {
|
|
100
66
|
...output,
|
|
101
67
|
body: await parseErrorBody(output.body, context),
|
|
@@ -108,12 +74,18 @@ const de_SendAlexaOfferToMasterCommandError = async (output, context) => {
|
|
|
108
74
|
case "InvalidArgumentException":
|
|
109
75
|
case "com.amazonaws.kinesisvideosignaling#InvalidArgumentException":
|
|
110
76
|
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
77
|
+
case "InvalidClientException":
|
|
78
|
+
case "com.amazonaws.kinesisvideosignaling#InvalidClientException":
|
|
79
|
+
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
111
80
|
case "NotAuthorizedException":
|
|
112
81
|
case "com.amazonaws.kinesisvideosignaling#NotAuthorizedException":
|
|
113
82
|
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
114
83
|
case "ResourceNotFoundException":
|
|
115
84
|
case "com.amazonaws.kinesisvideosignaling#ResourceNotFoundException":
|
|
116
85
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
86
|
+
case "SessionExpiredException":
|
|
87
|
+
case "com.amazonaws.kinesisvideosignaling#SessionExpiredException":
|
|
88
|
+
throw await de_SessionExpiredExceptionRes(parsedOutput, context);
|
|
117
89
|
default:
|
|
118
90
|
const parsedBody = parsedOutput.body;
|
|
119
91
|
return throwDefaultError({
|
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.
|
|
4
|
+
"version": "3.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-kinesis-video-signaling",
|
|
@@ -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.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|