@aws-sdk/client-kinesis-video-signaling 3.928.0 → 3.929.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 +166 -215
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/KinesisVideoSignalingClient.js +2 -0
- package/dist-es/commands/GetIceServerConfigCommand.js +3 -9
- package/dist-es/commands/SendAlexaOfferToMasterCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +144 -0
- package/dist-types/KinesisVideoSignalingClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +18 -0
- package/dist-types/ts3.4/KinesisVideoSignalingClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +23 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -184
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -20
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -29
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
18
|
|
|
20
19
|
const resolveClientEndpointParameters = (options) => {
|
|
21
20
|
return Object.assign(options, {
|
|
@@ -91,6 +90,7 @@ class KinesisVideoSignalingClient extends smithyClient.Client {
|
|
|
91
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
95
|
this.middlewareStack.use(middlewareRetry.getOmitRetryHeadersPlugin(this.config));
|
|
96
96
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
@@ -111,14 +111,14 @@ class KinesisVideoSignalingClient extends smithyClient.Client {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
class KinesisVideoSignalingServiceException extends smithyClient.ServiceException {
|
|
114
|
+
let KinesisVideoSignalingServiceException$1 = class KinesisVideoSignalingServiceException extends smithyClient.ServiceException {
|
|
115
115
|
constructor(options) {
|
|
116
116
|
super(options);
|
|
117
117
|
Object.setPrototypeOf(this, KinesisVideoSignalingServiceException.prototype);
|
|
118
118
|
}
|
|
119
|
-
}
|
|
119
|
+
};
|
|
120
120
|
|
|
121
|
-
class ClientLimitExceededException extends KinesisVideoSignalingServiceException {
|
|
121
|
+
let ClientLimitExceededException$1 = class ClientLimitExceededException extends KinesisVideoSignalingServiceException$1 {
|
|
122
122
|
name = "ClientLimitExceededException";
|
|
123
123
|
$fault = "client";
|
|
124
124
|
Message;
|
|
@@ -131,11 +131,11 @@ class ClientLimitExceededException extends KinesisVideoSignalingServiceException
|
|
|
131
131
|
Object.setPrototypeOf(this, ClientLimitExceededException.prototype);
|
|
132
132
|
this.Message = opts.Message;
|
|
133
133
|
}
|
|
134
|
-
}
|
|
134
|
+
};
|
|
135
135
|
const Service = {
|
|
136
136
|
TURN: "TURN",
|
|
137
137
|
};
|
|
138
|
-
class InvalidArgumentException extends KinesisVideoSignalingServiceException {
|
|
138
|
+
let InvalidArgumentException$1 = class InvalidArgumentException extends KinesisVideoSignalingServiceException$1 {
|
|
139
139
|
name = "InvalidArgumentException";
|
|
140
140
|
$fault = "client";
|
|
141
141
|
Message;
|
|
@@ -148,8 +148,8 @@ class InvalidArgumentException extends KinesisVideoSignalingServiceException {
|
|
|
148
148
|
Object.setPrototypeOf(this, InvalidArgumentException.prototype);
|
|
149
149
|
this.Message = opts.Message;
|
|
150
150
|
}
|
|
151
|
-
}
|
|
152
|
-
class InvalidClientException extends KinesisVideoSignalingServiceException {
|
|
151
|
+
};
|
|
152
|
+
let InvalidClientException$1 = class InvalidClientException extends KinesisVideoSignalingServiceException$1 {
|
|
153
153
|
name = "InvalidClientException";
|
|
154
154
|
$fault = "client";
|
|
155
155
|
constructor(opts) {
|
|
@@ -160,8 +160,8 @@ class InvalidClientException extends KinesisVideoSignalingServiceException {
|
|
|
160
160
|
});
|
|
161
161
|
Object.setPrototypeOf(this, InvalidClientException.prototype);
|
|
162
162
|
}
|
|
163
|
-
}
|
|
164
|
-
class NotAuthorizedException extends KinesisVideoSignalingServiceException {
|
|
163
|
+
};
|
|
164
|
+
let NotAuthorizedException$1 = class NotAuthorizedException extends KinesisVideoSignalingServiceException$1 {
|
|
165
165
|
name = "NotAuthorizedException";
|
|
166
166
|
$fault = "client";
|
|
167
167
|
Message;
|
|
@@ -174,8 +174,8 @@ class NotAuthorizedException extends KinesisVideoSignalingServiceException {
|
|
|
174
174
|
Object.setPrototypeOf(this, NotAuthorizedException.prototype);
|
|
175
175
|
this.Message = opts.Message;
|
|
176
176
|
}
|
|
177
|
-
}
|
|
178
|
-
class ResourceNotFoundException extends KinesisVideoSignalingServiceException {
|
|
177
|
+
};
|
|
178
|
+
let ResourceNotFoundException$1 = class ResourceNotFoundException extends KinesisVideoSignalingServiceException$1 {
|
|
179
179
|
name = "ResourceNotFoundException";
|
|
180
180
|
$fault = "client";
|
|
181
181
|
Message;
|
|
@@ -188,8 +188,8 @@ class ResourceNotFoundException extends KinesisVideoSignalingServiceException {
|
|
|
188
188
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
189
189
|
this.Message = opts.Message;
|
|
190
190
|
}
|
|
191
|
-
}
|
|
192
|
-
class SessionExpiredException extends KinesisVideoSignalingServiceException {
|
|
191
|
+
};
|
|
192
|
+
let SessionExpiredException$1 = class SessionExpiredException extends KinesisVideoSignalingServiceException$1 {
|
|
193
193
|
name = "SessionExpiredException";
|
|
194
194
|
$fault = "client";
|
|
195
195
|
constructor(opts) {
|
|
@@ -200,201 +200,157 @@ class SessionExpiredException extends KinesisVideoSignalingServiceException {
|
|
|
200
200
|
});
|
|
201
201
|
Object.setPrototypeOf(this, SessionExpiredException.prototype);
|
|
202
202
|
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
const se_GetIceServerConfigCommand = async (input, context) => {
|
|
206
|
-
const b = core.requestBuilder(input, context);
|
|
207
|
-
const headers = {
|
|
208
|
-
"content-type": "application/json",
|
|
209
|
-
};
|
|
210
|
-
b.bp("/v1/get-ice-server-config");
|
|
211
|
-
let body;
|
|
212
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
213
|
-
ChannelARN: [],
|
|
214
|
-
ClientId: [],
|
|
215
|
-
Service: [],
|
|
216
|
-
Username: [],
|
|
217
|
-
}));
|
|
218
|
-
b.m("POST").h(headers).b(body);
|
|
219
|
-
return b.build();
|
|
220
|
-
};
|
|
221
|
-
const se_SendAlexaOfferToMasterCommand = async (input, context) => {
|
|
222
|
-
const b = core.requestBuilder(input, context);
|
|
223
|
-
const headers = {
|
|
224
|
-
"content-type": "application/json",
|
|
225
|
-
};
|
|
226
|
-
b.bp("/v1/send-alexa-offer-to-master");
|
|
227
|
-
let body;
|
|
228
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
229
|
-
ChannelARN: [],
|
|
230
|
-
MessagePayload: [],
|
|
231
|
-
SenderClientId: [],
|
|
232
|
-
}));
|
|
233
|
-
b.m("POST").h(headers).b(body);
|
|
234
|
-
return b.build();
|
|
235
|
-
};
|
|
236
|
-
const de_GetIceServerConfigCommand = async (output, context) => {
|
|
237
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
238
|
-
return de_CommandError(output, context);
|
|
239
|
-
}
|
|
240
|
-
const contents = smithyClient.map({
|
|
241
|
-
$metadata: deserializeMetadata(output),
|
|
242
|
-
});
|
|
243
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
244
|
-
const doc = smithyClient.take(data, {
|
|
245
|
-
IceServerList: smithyClient._json,
|
|
246
|
-
});
|
|
247
|
-
Object.assign(contents, doc);
|
|
248
|
-
return contents;
|
|
249
|
-
};
|
|
250
|
-
const de_SendAlexaOfferToMasterCommand = async (output, context) => {
|
|
251
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
252
|
-
return de_CommandError(output, context);
|
|
253
|
-
}
|
|
254
|
-
const contents = smithyClient.map({
|
|
255
|
-
$metadata: deserializeMetadata(output),
|
|
256
|
-
});
|
|
257
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
258
|
-
const doc = smithyClient.take(data, {
|
|
259
|
-
Answer: smithyClient.expectString,
|
|
260
|
-
});
|
|
261
|
-
Object.assign(contents, doc);
|
|
262
|
-
return contents;
|
|
263
|
-
};
|
|
264
|
-
const de_CommandError = async (output, context) => {
|
|
265
|
-
const parsedOutput = {
|
|
266
|
-
...output,
|
|
267
|
-
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
268
|
-
};
|
|
269
|
-
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
270
|
-
switch (errorCode) {
|
|
271
|
-
case "ClientLimitExceededException":
|
|
272
|
-
case "com.amazonaws.kinesisvideosignaling#ClientLimitExceededException":
|
|
273
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput);
|
|
274
|
-
case "InvalidArgumentException":
|
|
275
|
-
case "com.amazonaws.kinesisvideosignaling#InvalidArgumentException":
|
|
276
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput);
|
|
277
|
-
case "InvalidClientException":
|
|
278
|
-
case "com.amazonaws.kinesisvideosignaling#InvalidClientException":
|
|
279
|
-
throw await de_InvalidClientExceptionRes(parsedOutput);
|
|
280
|
-
case "NotAuthorizedException":
|
|
281
|
-
case "com.amazonaws.kinesisvideosignaling#NotAuthorizedException":
|
|
282
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput);
|
|
283
|
-
case "ResourceNotFoundException":
|
|
284
|
-
case "com.amazonaws.kinesisvideosignaling#ResourceNotFoundException":
|
|
285
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
286
|
-
case "SessionExpiredException":
|
|
287
|
-
case "com.amazonaws.kinesisvideosignaling#SessionExpiredException":
|
|
288
|
-
throw await de_SessionExpiredExceptionRes(parsedOutput);
|
|
289
|
-
default:
|
|
290
|
-
const parsedBody = parsedOutput.body;
|
|
291
|
-
return throwDefaultError({
|
|
292
|
-
output,
|
|
293
|
-
parsedBody,
|
|
294
|
-
errorCode,
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
|
-
const throwDefaultError = smithyClient.withBaseException(KinesisVideoSignalingServiceException);
|
|
299
|
-
const de_ClientLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
300
|
-
const contents = smithyClient.map({});
|
|
301
|
-
const data = parsedOutput.body;
|
|
302
|
-
const doc = smithyClient.take(data, {
|
|
303
|
-
Message: smithyClient.expectString,
|
|
304
|
-
});
|
|
305
|
-
Object.assign(contents, doc);
|
|
306
|
-
const exception = new ClientLimitExceededException({
|
|
307
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
308
|
-
...contents,
|
|
309
|
-
});
|
|
310
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
311
|
-
};
|
|
312
|
-
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
313
|
-
const contents = smithyClient.map({});
|
|
314
|
-
const data = parsedOutput.body;
|
|
315
|
-
const doc = smithyClient.take(data, {
|
|
316
|
-
Message: smithyClient.expectString,
|
|
317
|
-
});
|
|
318
|
-
Object.assign(contents, doc);
|
|
319
|
-
const exception = new InvalidArgumentException({
|
|
320
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
321
|
-
...contents,
|
|
322
|
-
});
|
|
323
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
324
|
-
};
|
|
325
|
-
const de_InvalidClientExceptionRes = async (parsedOutput, context) => {
|
|
326
|
-
const contents = smithyClient.map({});
|
|
327
|
-
const data = parsedOutput.body;
|
|
328
|
-
const doc = smithyClient.take(data, {
|
|
329
|
-
message: smithyClient.expectString,
|
|
330
|
-
});
|
|
331
|
-
Object.assign(contents, doc);
|
|
332
|
-
const exception = new InvalidClientException({
|
|
333
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
334
|
-
...contents,
|
|
335
|
-
});
|
|
336
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
337
|
-
};
|
|
338
|
-
const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
|
|
339
|
-
const contents = smithyClient.map({});
|
|
340
|
-
const data = parsedOutput.body;
|
|
341
|
-
const doc = smithyClient.take(data, {
|
|
342
|
-
Message: smithyClient.expectString,
|
|
343
|
-
});
|
|
344
|
-
Object.assign(contents, doc);
|
|
345
|
-
const exception = new NotAuthorizedException({
|
|
346
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
347
|
-
...contents,
|
|
348
|
-
});
|
|
349
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
350
|
-
};
|
|
351
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
352
|
-
const contents = smithyClient.map({});
|
|
353
|
-
const data = parsedOutput.body;
|
|
354
|
-
const doc = smithyClient.take(data, {
|
|
355
|
-
Message: smithyClient.expectString,
|
|
356
|
-
});
|
|
357
|
-
Object.assign(contents, doc);
|
|
358
|
-
const exception = new ResourceNotFoundException({
|
|
359
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
360
|
-
...contents,
|
|
361
|
-
});
|
|
362
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
363
|
-
};
|
|
364
|
-
const de_SessionExpiredExceptionRes = async (parsedOutput, context) => {
|
|
365
|
-
const contents = smithyClient.map({});
|
|
366
|
-
const data = parsedOutput.body;
|
|
367
|
-
const doc = smithyClient.take(data, {
|
|
368
|
-
message: smithyClient.expectString,
|
|
369
|
-
});
|
|
370
|
-
Object.assign(contents, doc);
|
|
371
|
-
const exception = new SessionExpiredException({
|
|
372
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
373
|
-
...contents,
|
|
374
|
-
});
|
|
375
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
376
203
|
};
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
204
|
+
|
|
205
|
+
const _A = "Answer";
|
|
206
|
+
const _CARN = "ChannelARN";
|
|
207
|
+
const _CI = "ClientId";
|
|
208
|
+
const _CLEE = "ClientLimitExceededException";
|
|
209
|
+
const _GISC = "GetIceServerConfig";
|
|
210
|
+
const _GISCR = "GetIceServerConfigRequest";
|
|
211
|
+
const _GISCRe = "GetIceServerConfigResponse";
|
|
212
|
+
const _IAE = "InvalidArgumentException";
|
|
213
|
+
const _ICE = "InvalidClientException";
|
|
214
|
+
const _IS = "IceServer";
|
|
215
|
+
const _ISL = "IceServerList";
|
|
216
|
+
const _M = "Message";
|
|
217
|
+
const _MP = "MessagePayload";
|
|
218
|
+
const _NAE = "NotAuthorizedException";
|
|
219
|
+
const _P = "Password";
|
|
220
|
+
const _RNFE = "ResourceNotFoundException";
|
|
221
|
+
const _S = "Service";
|
|
222
|
+
const _SAOTM = "SendAlexaOfferToMaster";
|
|
223
|
+
const _SAOTMR = "SendAlexaOfferToMasterRequest";
|
|
224
|
+
const _SAOTMRe = "SendAlexaOfferToMasterResponse";
|
|
225
|
+
const _SCI = "SenderClientId";
|
|
226
|
+
const _SEE = "SessionExpiredException";
|
|
227
|
+
const _T = "Ttl";
|
|
228
|
+
const _U = "Username";
|
|
229
|
+
const _Ur = "Uris";
|
|
230
|
+
const _c = "client";
|
|
231
|
+
const _e = "error";
|
|
232
|
+
const _h = "http";
|
|
233
|
+
const _hE = "httpError";
|
|
234
|
+
const _m = "message";
|
|
235
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.kinesisvideosignaling";
|
|
236
|
+
const n0 = "com.amazonaws.kinesisvideosignaling";
|
|
237
|
+
var ClientLimitExceededException = [
|
|
238
|
+
-3,
|
|
239
|
+
n0,
|
|
240
|
+
_CLEE,
|
|
241
|
+
{
|
|
242
|
+
[_e]: _c,
|
|
243
|
+
[_hE]: 400,
|
|
244
|
+
},
|
|
245
|
+
[_M],
|
|
246
|
+
[0],
|
|
247
|
+
];
|
|
248
|
+
schema.TypeRegistry.for(n0).registerError(ClientLimitExceededException, ClientLimitExceededException$1);
|
|
249
|
+
var GetIceServerConfigRequest = [3, n0, _GISCR, 0, [_CARN, _CI, _S, _U], [0, 0, 0, 0]];
|
|
250
|
+
var GetIceServerConfigResponse = [3, n0, _GISCRe, 0, [_ISL], [() => IceServerList]];
|
|
251
|
+
var IceServer = [3, n0, _IS, 0, [_Ur, _U, _P, _T], [64 | 0, 0, 0, 1]];
|
|
252
|
+
var InvalidArgumentException = [
|
|
253
|
+
-3,
|
|
254
|
+
n0,
|
|
255
|
+
_IAE,
|
|
256
|
+
{
|
|
257
|
+
[_e]: _c,
|
|
258
|
+
[_hE]: 400,
|
|
259
|
+
},
|
|
260
|
+
[_M],
|
|
261
|
+
[0],
|
|
262
|
+
];
|
|
263
|
+
schema.TypeRegistry.for(n0).registerError(InvalidArgumentException, InvalidArgumentException$1);
|
|
264
|
+
var InvalidClientException = [
|
|
265
|
+
-3,
|
|
266
|
+
n0,
|
|
267
|
+
_ICE,
|
|
268
|
+
{
|
|
269
|
+
[_e]: _c,
|
|
270
|
+
[_hE]: 400,
|
|
271
|
+
},
|
|
272
|
+
[_m],
|
|
273
|
+
[0],
|
|
274
|
+
];
|
|
275
|
+
schema.TypeRegistry.for(n0).registerError(InvalidClientException, InvalidClientException$1);
|
|
276
|
+
var NotAuthorizedException = [
|
|
277
|
+
-3,
|
|
278
|
+
n0,
|
|
279
|
+
_NAE,
|
|
280
|
+
{
|
|
281
|
+
[_e]: _c,
|
|
282
|
+
[_hE]: 401,
|
|
283
|
+
},
|
|
284
|
+
[_M],
|
|
285
|
+
[0],
|
|
286
|
+
];
|
|
287
|
+
schema.TypeRegistry.for(n0).registerError(NotAuthorizedException, NotAuthorizedException$1);
|
|
288
|
+
var ResourceNotFoundException = [
|
|
289
|
+
-3,
|
|
290
|
+
n0,
|
|
291
|
+
_RNFE,
|
|
292
|
+
{
|
|
293
|
+
[_e]: _c,
|
|
294
|
+
[_hE]: 404,
|
|
295
|
+
},
|
|
296
|
+
[_M],
|
|
297
|
+
[0],
|
|
298
|
+
];
|
|
299
|
+
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
|
|
300
|
+
var SendAlexaOfferToMasterRequest = [3, n0, _SAOTMR, 0, [_CARN, _SCI, _MP], [0, 0, 0]];
|
|
301
|
+
var SendAlexaOfferToMasterResponse = [3, n0, _SAOTMRe, 0, [_A], [0]];
|
|
302
|
+
var SessionExpiredException = [
|
|
303
|
+
-3,
|
|
304
|
+
n0,
|
|
305
|
+
_SEE,
|
|
306
|
+
{
|
|
307
|
+
[_e]: _c,
|
|
308
|
+
[_hE]: 400,
|
|
309
|
+
},
|
|
310
|
+
[_m],
|
|
311
|
+
[0],
|
|
312
|
+
];
|
|
313
|
+
schema.TypeRegistry.for(n0).registerError(SessionExpiredException, SessionExpiredException$1);
|
|
314
|
+
var KinesisVideoSignalingServiceException = [
|
|
315
|
+
-3,
|
|
316
|
+
_s,
|
|
317
|
+
"KinesisVideoSignalingServiceException",
|
|
318
|
+
0,
|
|
319
|
+
[],
|
|
320
|
+
[],
|
|
321
|
+
];
|
|
322
|
+
schema.TypeRegistry.for(_s).registerError(KinesisVideoSignalingServiceException, KinesisVideoSignalingServiceException$1);
|
|
323
|
+
var IceServerList = [1, n0, _ISL, 0, () => IceServer];
|
|
324
|
+
var GetIceServerConfig = [
|
|
325
|
+
9,
|
|
326
|
+
n0,
|
|
327
|
+
_GISC,
|
|
328
|
+
{
|
|
329
|
+
[_h]: ["POST", "/v1/get-ice-server-config", 200],
|
|
330
|
+
},
|
|
331
|
+
() => GetIceServerConfigRequest,
|
|
332
|
+
() => GetIceServerConfigResponse,
|
|
333
|
+
];
|
|
334
|
+
var SendAlexaOfferToMaster = [
|
|
335
|
+
9,
|
|
336
|
+
n0,
|
|
337
|
+
_SAOTM,
|
|
338
|
+
{
|
|
339
|
+
[_h]: ["POST", "/v1/send-alexa-offer-to-master", 200],
|
|
340
|
+
},
|
|
341
|
+
() => SendAlexaOfferToMasterRequest,
|
|
342
|
+
() => SendAlexaOfferToMasterResponse,
|
|
343
|
+
];
|
|
383
344
|
|
|
384
345
|
class GetIceServerConfigCommand extends smithyClient.Command
|
|
385
346
|
.classBuilder()
|
|
386
347
|
.ep(commonParams)
|
|
387
348
|
.m(function (Command, cs, config, o) {
|
|
388
|
-
return [
|
|
389
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
390
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
391
|
-
];
|
|
349
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
392
350
|
})
|
|
393
351
|
.s("AWSAcuitySignalingService", "GetIceServerConfig", {})
|
|
394
352
|
.n("KinesisVideoSignalingClient", "GetIceServerConfigCommand")
|
|
395
|
-
.
|
|
396
|
-
.ser(se_GetIceServerConfigCommand)
|
|
397
|
-
.de(de_GetIceServerConfigCommand)
|
|
353
|
+
.sc(GetIceServerConfig)
|
|
398
354
|
.build() {
|
|
399
355
|
}
|
|
400
356
|
|
|
@@ -402,16 +358,11 @@ class SendAlexaOfferToMasterCommand extends smithyClient.Command
|
|
|
402
358
|
.classBuilder()
|
|
403
359
|
.ep(commonParams)
|
|
404
360
|
.m(function (Command, cs, config, o) {
|
|
405
|
-
return [
|
|
406
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
407
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
408
|
-
];
|
|
361
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
409
362
|
})
|
|
410
363
|
.s("AWSAcuitySignalingService", "SendAlexaOfferToMaster", {})
|
|
411
364
|
.n("KinesisVideoSignalingClient", "SendAlexaOfferToMasterCommand")
|
|
412
|
-
.
|
|
413
|
-
.ser(se_SendAlexaOfferToMasterCommand)
|
|
414
|
-
.de(de_SendAlexaOfferToMasterCommand)
|
|
365
|
+
.sc(SendAlexaOfferToMaster)
|
|
415
366
|
.build() {
|
|
416
367
|
}
|
|
417
368
|
|
|
@@ -431,15 +382,15 @@ Object.defineProperty(exports, "__Client", {
|
|
|
431
382
|
enumerable: true,
|
|
432
383
|
get: function () { return smithyClient.Client; }
|
|
433
384
|
});
|
|
434
|
-
exports.ClientLimitExceededException = ClientLimitExceededException;
|
|
385
|
+
exports.ClientLimitExceededException = ClientLimitExceededException$1;
|
|
435
386
|
exports.GetIceServerConfigCommand = GetIceServerConfigCommand;
|
|
436
|
-
exports.InvalidArgumentException = InvalidArgumentException;
|
|
437
|
-
exports.InvalidClientException = InvalidClientException;
|
|
387
|
+
exports.InvalidArgumentException = InvalidArgumentException$1;
|
|
388
|
+
exports.InvalidClientException = InvalidClientException$1;
|
|
438
389
|
exports.KinesisVideoSignaling = KinesisVideoSignaling;
|
|
439
390
|
exports.KinesisVideoSignalingClient = KinesisVideoSignalingClient;
|
|
440
|
-
exports.KinesisVideoSignalingServiceException = KinesisVideoSignalingServiceException;
|
|
441
|
-
exports.NotAuthorizedException = NotAuthorizedException;
|
|
442
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
391
|
+
exports.KinesisVideoSignalingServiceException = KinesisVideoSignalingServiceException$1;
|
|
392
|
+
exports.NotAuthorizedException = NotAuthorizedException$1;
|
|
393
|
+
exports.ResourceNotFoundException = ResourceNotFoundException$1;
|
|
443
394
|
exports.SendAlexaOfferToMasterCommand = SendAlexaOfferToMasterCommand;
|
|
444
395
|
exports.Service = Service;
|
|
445
|
-
exports.SessionExpiredException = SessionExpiredException;
|
|
396
|
+
exports.SessionExpiredException = SessionExpiredException$1;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const url_parser_1 = require("@smithy/url-parser");
|
|
7
8
|
const util_base64_1 = require("@smithy/util-base64");
|
|
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
|
|
|
25
26
|
},
|
|
26
27
|
],
|
|
27
28
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
29
|
+
protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.kinesisvideosignaling" }),
|
|
28
30
|
serviceId: config?.serviceId ?? "Kinesis Video Signaling",
|
|
29
31
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
32
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getOmitRetryHeadersPlugin, getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
@@ -28,6 +29,7 @@ export class KinesisVideoSignalingClient extends __Client {
|
|
|
28
29
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
29
30
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
30
31
|
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
34
|
this.middlewareStack.use(getOmitRetryHeadersPlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { GetIceServerConfig } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class GetIceServerConfigCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSAcuitySignalingService", "GetIceServerConfig", {})
|
|
17
13
|
.n("KinesisVideoSignalingClient", "GetIceServerConfigCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_GetIceServerConfigCommand)
|
|
20
|
-
.de(de_GetIceServerConfigCommand)
|
|
14
|
+
.sc(GetIceServerConfig)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { SendAlexaOfferToMaster } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class SendAlexaOfferToMasterCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSAcuitySignalingService", "SendAlexaOfferToMaster", {})
|
|
17
13
|
.n("KinesisVideoSignalingClient", "SendAlexaOfferToMasterCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_SendAlexaOfferToMasterCommand)
|
|
20
|
-
.de(de_SendAlexaOfferToMasterCommand)
|
|
14
|
+
.sc(SendAlexaOfferToMaster)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.kinesisvideosignaling" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "Kinesis Video Signaling",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
const _A = "Answer";
|
|
2
|
+
const _CARN = "ChannelARN";
|
|
3
|
+
const _CI = "ClientId";
|
|
4
|
+
const _CLEE = "ClientLimitExceededException";
|
|
5
|
+
const _GISC = "GetIceServerConfig";
|
|
6
|
+
const _GISCR = "GetIceServerConfigRequest";
|
|
7
|
+
const _GISCRe = "GetIceServerConfigResponse";
|
|
8
|
+
const _IAE = "InvalidArgumentException";
|
|
9
|
+
const _ICE = "InvalidClientException";
|
|
10
|
+
const _IS = "IceServer";
|
|
11
|
+
const _ISL = "IceServerList";
|
|
12
|
+
const _M = "Message";
|
|
13
|
+
const _MP = "MessagePayload";
|
|
14
|
+
const _NAE = "NotAuthorizedException";
|
|
15
|
+
const _P = "Password";
|
|
16
|
+
const _RNFE = "ResourceNotFoundException";
|
|
17
|
+
const _S = "Service";
|
|
18
|
+
const _SAOTM = "SendAlexaOfferToMaster";
|
|
19
|
+
const _SAOTMR = "SendAlexaOfferToMasterRequest";
|
|
20
|
+
const _SAOTMRe = "SendAlexaOfferToMasterResponse";
|
|
21
|
+
const _SCI = "SenderClientId";
|
|
22
|
+
const _SEE = "SessionExpiredException";
|
|
23
|
+
const _T = "Ttl";
|
|
24
|
+
const _U = "Username";
|
|
25
|
+
const _Ur = "Uris";
|
|
26
|
+
const _c = "client";
|
|
27
|
+
const _e = "error";
|
|
28
|
+
const _h = "http";
|
|
29
|
+
const _hE = "httpError";
|
|
30
|
+
const _m = "message";
|
|
31
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.kinesisvideosignaling";
|
|
32
|
+
const n0 = "com.amazonaws.kinesisvideosignaling";
|
|
33
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
34
|
+
import { ClientLimitExceededException as __ClientLimitExceededException, InvalidArgumentException as __InvalidArgumentException, InvalidClientException as __InvalidClientException, NotAuthorizedException as __NotAuthorizedException, ResourceNotFoundException as __ResourceNotFoundException, SessionExpiredException as __SessionExpiredException, } from "../models/index";
|
|
35
|
+
import { KinesisVideoSignalingServiceException as __KinesisVideoSignalingServiceException } from "../models/KinesisVideoSignalingServiceException";
|
|
36
|
+
export var ClientLimitExceededException = [
|
|
37
|
+
-3,
|
|
38
|
+
n0,
|
|
39
|
+
_CLEE,
|
|
40
|
+
{
|
|
41
|
+
[_e]: _c,
|
|
42
|
+
[_hE]: 400,
|
|
43
|
+
},
|
|
44
|
+
[_M],
|
|
45
|
+
[0],
|
|
46
|
+
];
|
|
47
|
+
TypeRegistry.for(n0).registerError(ClientLimitExceededException, __ClientLimitExceededException);
|
|
48
|
+
export var GetIceServerConfigRequest = [3, n0, _GISCR, 0, [_CARN, _CI, _S, _U], [0, 0, 0, 0]];
|
|
49
|
+
export var GetIceServerConfigResponse = [3, n0, _GISCRe, 0, [_ISL], [() => IceServerList]];
|
|
50
|
+
export var IceServer = [3, n0, _IS, 0, [_Ur, _U, _P, _T], [64 | 0, 0, 0, 1]];
|
|
51
|
+
export var InvalidArgumentException = [
|
|
52
|
+
-3,
|
|
53
|
+
n0,
|
|
54
|
+
_IAE,
|
|
55
|
+
{
|
|
56
|
+
[_e]: _c,
|
|
57
|
+
[_hE]: 400,
|
|
58
|
+
},
|
|
59
|
+
[_M],
|
|
60
|
+
[0],
|
|
61
|
+
];
|
|
62
|
+
TypeRegistry.for(n0).registerError(InvalidArgumentException, __InvalidArgumentException);
|
|
63
|
+
export var InvalidClientException = [
|
|
64
|
+
-3,
|
|
65
|
+
n0,
|
|
66
|
+
_ICE,
|
|
67
|
+
{
|
|
68
|
+
[_e]: _c,
|
|
69
|
+
[_hE]: 400,
|
|
70
|
+
},
|
|
71
|
+
[_m],
|
|
72
|
+
[0],
|
|
73
|
+
];
|
|
74
|
+
TypeRegistry.for(n0).registerError(InvalidClientException, __InvalidClientException);
|
|
75
|
+
export var NotAuthorizedException = [
|
|
76
|
+
-3,
|
|
77
|
+
n0,
|
|
78
|
+
_NAE,
|
|
79
|
+
{
|
|
80
|
+
[_e]: _c,
|
|
81
|
+
[_hE]: 401,
|
|
82
|
+
},
|
|
83
|
+
[_M],
|
|
84
|
+
[0],
|
|
85
|
+
];
|
|
86
|
+
TypeRegistry.for(n0).registerError(NotAuthorizedException, __NotAuthorizedException);
|
|
87
|
+
export var ResourceNotFoundException = [
|
|
88
|
+
-3,
|
|
89
|
+
n0,
|
|
90
|
+
_RNFE,
|
|
91
|
+
{
|
|
92
|
+
[_e]: _c,
|
|
93
|
+
[_hE]: 404,
|
|
94
|
+
},
|
|
95
|
+
[_M],
|
|
96
|
+
[0],
|
|
97
|
+
];
|
|
98
|
+
TypeRegistry.for(n0).registerError(ResourceNotFoundException, __ResourceNotFoundException);
|
|
99
|
+
export var SendAlexaOfferToMasterRequest = [3, n0, _SAOTMR, 0, [_CARN, _SCI, _MP], [0, 0, 0]];
|
|
100
|
+
export var SendAlexaOfferToMasterResponse = [3, n0, _SAOTMRe, 0, [_A], [0]];
|
|
101
|
+
export var SessionExpiredException = [
|
|
102
|
+
-3,
|
|
103
|
+
n0,
|
|
104
|
+
_SEE,
|
|
105
|
+
{
|
|
106
|
+
[_e]: _c,
|
|
107
|
+
[_hE]: 400,
|
|
108
|
+
},
|
|
109
|
+
[_m],
|
|
110
|
+
[0],
|
|
111
|
+
];
|
|
112
|
+
TypeRegistry.for(n0).registerError(SessionExpiredException, __SessionExpiredException);
|
|
113
|
+
export var __Unit = "unit";
|
|
114
|
+
export var KinesisVideoSignalingServiceException = [
|
|
115
|
+
-3,
|
|
116
|
+
_s,
|
|
117
|
+
"KinesisVideoSignalingServiceException",
|
|
118
|
+
0,
|
|
119
|
+
[],
|
|
120
|
+
[],
|
|
121
|
+
];
|
|
122
|
+
TypeRegistry.for(_s).registerError(KinesisVideoSignalingServiceException, __KinesisVideoSignalingServiceException);
|
|
123
|
+
export var IceServerList = [1, n0, _ISL, 0, () => IceServer];
|
|
124
|
+
export var Uris = 64 | 0;
|
|
125
|
+
export var GetIceServerConfig = [
|
|
126
|
+
9,
|
|
127
|
+
n0,
|
|
128
|
+
_GISC,
|
|
129
|
+
{
|
|
130
|
+
[_h]: ["POST", "/v1/get-ice-server-config", 200],
|
|
131
|
+
},
|
|
132
|
+
() => GetIceServerConfigRequest,
|
|
133
|
+
() => GetIceServerConfigResponse,
|
|
134
|
+
];
|
|
135
|
+
export var SendAlexaOfferToMaster = [
|
|
136
|
+
9,
|
|
137
|
+
n0,
|
|
138
|
+
_SAOTM,
|
|
139
|
+
{
|
|
140
|
+
[_h]: ["POST", "/v1/send-alexa-offer-to-master", 200],
|
|
141
|
+
},
|
|
142
|
+
() => SendAlexaOfferToMasterRequest,
|
|
143
|
+
() => SendAlexaOfferToMasterResponse,
|
|
144
|
+
];
|
|
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
|
|
|
5
5
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
6
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
|
-
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { GetIceServerConfigCommandInput, GetIceServerConfigCommandOutput } from "./commands/GetIceServerConfigCommand";
|
|
11
11
|
import { SendAlexaOfferToMasterCommandInput, SendAlexaOfferToMasterCommandOutput } from "./commands/SendAlexaOfferToMasterCommand";
|
|
@@ -143,6 +143,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
143
143
|
* Optional extensions
|
|
144
144
|
*/
|
|
145
145
|
extensions?: RuntimeExtension[];
|
|
146
|
+
/**
|
|
147
|
+
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
|
|
148
|
+
* may be overridden. A default will always be set by the client.
|
|
149
|
+
* Available options depend on the service's supported protocols and will not be validated by
|
|
150
|
+
* the client.
|
|
151
|
+
* @alpha
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
146
155
|
/**
|
|
147
156
|
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
148
157
|
*/
|
|
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: KinesisVideoSignalingClientConfi
|
|
|
29
29
|
profile?: string;
|
|
30
30
|
logger: import("@smithy/types").Logger;
|
|
31
31
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
32
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
32
33
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
33
34
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
34
35
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: KinesisVideoSignalingClientConfi
|
|
|
31
31
|
profile?: string;
|
|
32
32
|
logger: import("@smithy/types").Logger;
|
|
33
33
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
34
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
34
35
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
35
36
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
36
37
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: KinesisVideoSignalingClientConfi
|
|
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
29
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
30
31
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
31
32
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
32
33
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: KinesisVideoSignalingClientConfi
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").KinesisVideoSignalingHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
17
18
|
serviceId: string;
|
|
18
19
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
20
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
+
export declare var ClientLimitExceededException: StaticErrorSchema;
|
|
3
|
+
export declare var GetIceServerConfigRequest: StaticStructureSchema;
|
|
4
|
+
export declare var GetIceServerConfigResponse: StaticStructureSchema;
|
|
5
|
+
export declare var IceServer: StaticStructureSchema;
|
|
6
|
+
export declare var InvalidArgumentException: StaticErrorSchema;
|
|
7
|
+
export declare var InvalidClientException: StaticErrorSchema;
|
|
8
|
+
export declare var NotAuthorizedException: StaticErrorSchema;
|
|
9
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
10
|
+
export declare var SendAlexaOfferToMasterRequest: StaticStructureSchema;
|
|
11
|
+
export declare var SendAlexaOfferToMasterResponse: StaticStructureSchema;
|
|
12
|
+
export declare var SessionExpiredException: StaticErrorSchema;
|
|
13
|
+
export declare var __Unit: "unit";
|
|
14
|
+
export declare var KinesisVideoSignalingServiceException: StaticErrorSchema;
|
|
15
|
+
export declare var IceServerList: StaticListSchema;
|
|
16
|
+
export declare var Uris: number;
|
|
17
|
+
export declare var GetIceServerConfig: StaticOperationSchema;
|
|
18
|
+
export declare var SendAlexaOfferToMaster: StaticOperationSchema;
|
|
@@ -30,10 +30,13 @@ import {
|
|
|
30
30
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
31
31
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
32
32
|
ChecksumConstructor as __ChecksumConstructor,
|
|
33
|
+
ClientProtocol,
|
|
33
34
|
Decoder as __Decoder,
|
|
34
35
|
Encoder as __Encoder,
|
|
35
36
|
HashConstructor as __HashConstructor,
|
|
36
37
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
38
|
+
HttpRequest,
|
|
39
|
+
HttpResponse,
|
|
37
40
|
Logger as __Logger,
|
|
38
41
|
Provider as __Provider,
|
|
39
42
|
Provider,
|
|
@@ -90,6 +93,7 @@ export interface ClientDefaults
|
|
|
90
93
|
retryMode?: string | __Provider<string>;
|
|
91
94
|
logger?: __Logger;
|
|
92
95
|
extensions?: RuntimeExtension[];
|
|
96
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
93
97
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
94
98
|
}
|
|
95
99
|
export type KinesisVideoSignalingClientConfigType = Partial<
|
|
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
|
|
|
40
40
|
profile?: string;
|
|
41
41
|
logger: import("@smithy/types").Logger;
|
|
42
42
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
43
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
44
|
+
import("@smithy/types").HttpRequest,
|
|
45
|
+
import("@smithy/types").HttpResponse
|
|
46
|
+
>;
|
|
43
47
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
44
48
|
userAgentAppId?:
|
|
45
49
|
| string
|
|
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
|
|
|
40
40
|
profile?: string;
|
|
41
41
|
logger: import("@smithy/types").Logger;
|
|
42
42
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
43
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
44
|
+
import("@smithy/types").HttpRequest,
|
|
45
|
+
import("@smithy/types").HttpResponse
|
|
46
|
+
>;
|
|
43
47
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
44
48
|
retryStrategy?:
|
|
45
49
|
| import("@smithy/types").RetryStrategy
|
|
@@ -39,6 +39,10 @@ export declare const getRuntimeConfig: (
|
|
|
39
39
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
40
40
|
logger: import("@smithy/types").Logger;
|
|
41
41
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
42
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
43
|
+
import("@smithy/types").HttpRequest,
|
|
44
|
+
import("@smithy/types").HttpResponse
|
|
45
|
+
>;
|
|
42
46
|
defaultsMode:
|
|
43
47
|
| import("@smithy/smithy-client").DefaultsMode
|
|
44
48
|
| import("@smithy/types").Provider<
|
|
@@ -16,6 +16,10 @@ export declare const getRuntimeConfig: (
|
|
|
16
16
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").KinesisVideoSignalingHttpAuthSchemeProvider;
|
|
17
17
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
18
18
|
logger: import("@smithy/types").Logger;
|
|
19
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
20
|
+
import("@smithy/types").HttpRequest,
|
|
21
|
+
import("@smithy/types").HttpResponse
|
|
22
|
+
>;
|
|
19
23
|
serviceId: string;
|
|
20
24
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
25
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticOperationSchema,
|
|
5
|
+
StaticStructureSchema,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export declare var ClientLimitExceededException: StaticErrorSchema;
|
|
8
|
+
export declare var GetIceServerConfigRequest: StaticStructureSchema;
|
|
9
|
+
export declare var GetIceServerConfigResponse: StaticStructureSchema;
|
|
10
|
+
export declare var IceServer: StaticStructureSchema;
|
|
11
|
+
export declare var InvalidArgumentException: StaticErrorSchema;
|
|
12
|
+
export declare var InvalidClientException: StaticErrorSchema;
|
|
13
|
+
export declare var NotAuthorizedException: StaticErrorSchema;
|
|
14
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
15
|
+
export declare var SendAlexaOfferToMasterRequest: StaticStructureSchema;
|
|
16
|
+
export declare var SendAlexaOfferToMasterResponse: StaticStructureSchema;
|
|
17
|
+
export declare var SessionExpiredException: StaticErrorSchema;
|
|
18
|
+
export declare var __Unit: "unit";
|
|
19
|
+
export declare var KinesisVideoSignalingServiceException: StaticErrorSchema;
|
|
20
|
+
export declare var IceServerList: StaticListSchema;
|
|
21
|
+
export declare var Uris: number;
|
|
22
|
+
export declare var GetIceServerConfig: StaticOperationSchema;
|
|
23
|
+
export declare var SendAlexaOfferToMaster: StaticOperationSchema;
|
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.929.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",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.928.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.929.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { KinesisVideoSignalingServiceException as __BaseException } from "../models/KinesisVideoSignalingServiceException";
|
|
5
|
-
import { ClientLimitExceededException, InvalidArgumentException, InvalidClientException, NotAuthorizedException, ResourceNotFoundException, SessionExpiredException, } from "../models/models_0";
|
|
6
|
-
export const se_GetIceServerConfigCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/v1/get-ice-server-config");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
ChannelARN: [],
|
|
15
|
-
ClientId: [],
|
|
16
|
-
Service: [],
|
|
17
|
-
Username: [],
|
|
18
|
-
}));
|
|
19
|
-
b.m("POST").h(headers).b(body);
|
|
20
|
-
return b.build();
|
|
21
|
-
};
|
|
22
|
-
export const se_SendAlexaOfferToMasterCommand = async (input, context) => {
|
|
23
|
-
const b = rb(input, context);
|
|
24
|
-
const headers = {
|
|
25
|
-
"content-type": "application/json",
|
|
26
|
-
};
|
|
27
|
-
b.bp("/v1/send-alexa-offer-to-master");
|
|
28
|
-
let body;
|
|
29
|
-
body = JSON.stringify(take(input, {
|
|
30
|
-
ChannelARN: [],
|
|
31
|
-
MessagePayload: [],
|
|
32
|
-
SenderClientId: [],
|
|
33
|
-
}));
|
|
34
|
-
b.m("POST").h(headers).b(body);
|
|
35
|
-
return b.build();
|
|
36
|
-
};
|
|
37
|
-
export const de_GetIceServerConfigCommand = async (output, context) => {
|
|
38
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
39
|
-
return de_CommandError(output, context);
|
|
40
|
-
}
|
|
41
|
-
const contents = map({
|
|
42
|
-
$metadata: deserializeMetadata(output),
|
|
43
|
-
});
|
|
44
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
45
|
-
const doc = take(data, {
|
|
46
|
-
IceServerList: _json,
|
|
47
|
-
});
|
|
48
|
-
Object.assign(contents, doc);
|
|
49
|
-
return contents;
|
|
50
|
-
};
|
|
51
|
-
export const de_SendAlexaOfferToMasterCommand = async (output, context) => {
|
|
52
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
53
|
-
return de_CommandError(output, context);
|
|
54
|
-
}
|
|
55
|
-
const contents = map({
|
|
56
|
-
$metadata: deserializeMetadata(output),
|
|
57
|
-
});
|
|
58
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
59
|
-
const doc = take(data, {
|
|
60
|
-
Answer: __expectString,
|
|
61
|
-
});
|
|
62
|
-
Object.assign(contents, doc);
|
|
63
|
-
return contents;
|
|
64
|
-
};
|
|
65
|
-
const de_CommandError = async (output, context) => {
|
|
66
|
-
const parsedOutput = {
|
|
67
|
-
...output,
|
|
68
|
-
body: await parseErrorBody(output.body, context),
|
|
69
|
-
};
|
|
70
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
71
|
-
switch (errorCode) {
|
|
72
|
-
case "ClientLimitExceededException":
|
|
73
|
-
case "com.amazonaws.kinesisvideosignaling#ClientLimitExceededException":
|
|
74
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
75
|
-
case "InvalidArgumentException":
|
|
76
|
-
case "com.amazonaws.kinesisvideosignaling#InvalidArgumentException":
|
|
77
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
78
|
-
case "InvalidClientException":
|
|
79
|
-
case "com.amazonaws.kinesisvideosignaling#InvalidClientException":
|
|
80
|
-
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
81
|
-
case "NotAuthorizedException":
|
|
82
|
-
case "com.amazonaws.kinesisvideosignaling#NotAuthorizedException":
|
|
83
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
84
|
-
case "ResourceNotFoundException":
|
|
85
|
-
case "com.amazonaws.kinesisvideosignaling#ResourceNotFoundException":
|
|
86
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
87
|
-
case "SessionExpiredException":
|
|
88
|
-
case "com.amazonaws.kinesisvideosignaling#SessionExpiredException":
|
|
89
|
-
throw await de_SessionExpiredExceptionRes(parsedOutput, context);
|
|
90
|
-
default:
|
|
91
|
-
const parsedBody = parsedOutput.body;
|
|
92
|
-
return throwDefaultError({
|
|
93
|
-
output,
|
|
94
|
-
parsedBody,
|
|
95
|
-
errorCode,
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
100
|
-
const de_ClientLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
101
|
-
const contents = map({});
|
|
102
|
-
const data = parsedOutput.body;
|
|
103
|
-
const doc = take(data, {
|
|
104
|
-
Message: __expectString,
|
|
105
|
-
});
|
|
106
|
-
Object.assign(contents, doc);
|
|
107
|
-
const exception = new ClientLimitExceededException({
|
|
108
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
109
|
-
...contents,
|
|
110
|
-
});
|
|
111
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
112
|
-
};
|
|
113
|
-
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
114
|
-
const contents = map({});
|
|
115
|
-
const data = parsedOutput.body;
|
|
116
|
-
const doc = take(data, {
|
|
117
|
-
Message: __expectString,
|
|
118
|
-
});
|
|
119
|
-
Object.assign(contents, doc);
|
|
120
|
-
const exception = new InvalidArgumentException({
|
|
121
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
122
|
-
...contents,
|
|
123
|
-
});
|
|
124
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
125
|
-
};
|
|
126
|
-
const de_InvalidClientExceptionRes = async (parsedOutput, context) => {
|
|
127
|
-
const contents = map({});
|
|
128
|
-
const data = parsedOutput.body;
|
|
129
|
-
const doc = take(data, {
|
|
130
|
-
message: __expectString,
|
|
131
|
-
});
|
|
132
|
-
Object.assign(contents, doc);
|
|
133
|
-
const exception = new InvalidClientException({
|
|
134
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
135
|
-
...contents,
|
|
136
|
-
});
|
|
137
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
138
|
-
};
|
|
139
|
-
const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
|
|
140
|
-
const contents = map({});
|
|
141
|
-
const data = parsedOutput.body;
|
|
142
|
-
const doc = take(data, {
|
|
143
|
-
Message: __expectString,
|
|
144
|
-
});
|
|
145
|
-
Object.assign(contents, doc);
|
|
146
|
-
const exception = new NotAuthorizedException({
|
|
147
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
148
|
-
...contents,
|
|
149
|
-
});
|
|
150
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
151
|
-
};
|
|
152
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
153
|
-
const contents = map({});
|
|
154
|
-
const data = parsedOutput.body;
|
|
155
|
-
const doc = take(data, {
|
|
156
|
-
Message: __expectString,
|
|
157
|
-
});
|
|
158
|
-
Object.assign(contents, doc);
|
|
159
|
-
const exception = new ResourceNotFoundException({
|
|
160
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
161
|
-
...contents,
|
|
162
|
-
});
|
|
163
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
164
|
-
};
|
|
165
|
-
const de_SessionExpiredExceptionRes = async (parsedOutput, context) => {
|
|
166
|
-
const contents = map({});
|
|
167
|
-
const data = parsedOutput.body;
|
|
168
|
-
const doc = take(data, {
|
|
169
|
-
message: __expectString,
|
|
170
|
-
});
|
|
171
|
-
Object.assign(contents, doc);
|
|
172
|
-
const exception = new SessionExpiredException({
|
|
173
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
174
|
-
...contents,
|
|
175
|
-
});
|
|
176
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
177
|
-
};
|
|
178
|
-
const deserializeMetadata = (output) => ({
|
|
179
|
-
httpStatusCode: output.statusCode,
|
|
180
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
181
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
182
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
183
|
-
});
|
|
184
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { GetIceServerConfigCommandInput, GetIceServerConfigCommandOutput } from "../commands/GetIceServerConfigCommand";
|
|
4
|
-
import { SendAlexaOfferToMasterCommandInput, SendAlexaOfferToMasterCommandOutput } from "../commands/SendAlexaOfferToMasterCommand";
|
|
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>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HttpRequest as __HttpRequest,
|
|
3
|
-
HttpResponse as __HttpResponse,
|
|
4
|
-
} from "@smithy/protocol-http";
|
|
5
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
6
|
-
import {
|
|
7
|
-
GetIceServerConfigCommandInput,
|
|
8
|
-
GetIceServerConfigCommandOutput,
|
|
9
|
-
} from "../commands/GetIceServerConfigCommand";
|
|
10
|
-
import {
|
|
11
|
-
SendAlexaOfferToMasterCommandInput,
|
|
12
|
-
SendAlexaOfferToMasterCommandOutput,
|
|
13
|
-
} from "../commands/SendAlexaOfferToMasterCommand";
|
|
14
|
-
export declare const se_GetIceServerConfigCommand: (
|
|
15
|
-
input: GetIceServerConfigCommandInput,
|
|
16
|
-
context: __SerdeContext
|
|
17
|
-
) => Promise<__HttpRequest>;
|
|
18
|
-
export declare const se_SendAlexaOfferToMasterCommand: (
|
|
19
|
-
input: SendAlexaOfferToMasterCommandInput,
|
|
20
|
-
context: __SerdeContext
|
|
21
|
-
) => Promise<__HttpRequest>;
|
|
22
|
-
export declare const de_GetIceServerConfigCommand: (
|
|
23
|
-
output: __HttpResponse,
|
|
24
|
-
context: __SerdeContext
|
|
25
|
-
) => Promise<GetIceServerConfigCommandOutput>;
|
|
26
|
-
export declare const de_SendAlexaOfferToMasterCommand: (
|
|
27
|
-
output: __HttpResponse,
|
|
28
|
-
context: __SerdeContext
|
|
29
|
-
) => Promise<SendAlexaOfferToMasterCommandOutput>;
|