@aws-sdk/client-rekognitionstreaming 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 +368 -504
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/RekognitionStreamingClient.js +2 -0
- package/dist-es/commands/StartFaceLivenessSessionCommand.js +2 -7
- package/dist-es/models/models_0.js +0 -36
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +354 -0
- package/dist-types/RekognitionStreamingClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -16
- 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 +37 -0
- package/dist-types/ts3.4/RekognitionStreamingClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -12
- 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 +42 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -448
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -11
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -20
package/dist-cjs/index.js
CHANGED
|
@@ -8,6 +8,7 @@ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
|
8
8
|
var middlewareWebsocket = require('@aws-sdk/middleware-websocket');
|
|
9
9
|
var configResolver = require('@smithy/config-resolver');
|
|
10
10
|
var core = require('@smithy/core');
|
|
11
|
+
var schema = require('@smithy/core/schema');
|
|
11
12
|
var eventstreamSerdeConfigResolver = require('@smithy/eventstream-serde-config-resolver');
|
|
12
13
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
13
14
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
@@ -17,8 +18,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
17
18
|
var runtimeConfig = require('./runtimeConfig');
|
|
18
19
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
19
20
|
var protocolHttp = require('@smithy/protocol-http');
|
|
20
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
21
|
-
var core$1 = require('@aws-sdk/core');
|
|
22
21
|
|
|
23
22
|
const resolveClientEndpointParameters = (options) => {
|
|
24
23
|
return Object.assign(options, {
|
|
@@ -97,6 +96,7 @@ class RekognitionStreamingClient extends smithyClient.Client {
|
|
|
97
96
|
const _config_10 = middlewareWebsocket.resolveWebSocketConfig(_config_9);
|
|
98
97
|
const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
|
|
99
98
|
this.config = _config_11;
|
|
99
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
100
100
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
101
101
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
102
102
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -116,14 +116,14 @@ class RekognitionStreamingClient extends smithyClient.Client {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
class RekognitionStreamingServiceException extends smithyClient.ServiceException {
|
|
119
|
+
let RekognitionStreamingServiceException$1 = class RekognitionStreamingServiceException extends smithyClient.ServiceException {
|
|
120
120
|
constructor(options) {
|
|
121
121
|
super(options);
|
|
122
122
|
Object.setPrototypeOf(this, RekognitionStreamingServiceException.prototype);
|
|
123
123
|
}
|
|
124
|
-
}
|
|
124
|
+
};
|
|
125
125
|
|
|
126
|
-
class AccessDeniedException extends RekognitionStreamingServiceException {
|
|
126
|
+
let AccessDeniedException$1 = class AccessDeniedException extends RekognitionStreamingServiceException$1 {
|
|
127
127
|
name = "AccessDeniedException";
|
|
128
128
|
$fault = "client";
|
|
129
129
|
Message;
|
|
@@ -138,7 +138,7 @@ class AccessDeniedException extends RekognitionStreamingServiceException {
|
|
|
138
138
|
this.Message = opts.Message;
|
|
139
139
|
this.Code = opts.Code;
|
|
140
140
|
}
|
|
141
|
-
}
|
|
141
|
+
};
|
|
142
142
|
const ChallengeType = {
|
|
143
143
|
FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge",
|
|
144
144
|
FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge",
|
|
@@ -156,7 +156,7 @@ exports.ClientChallenge = void 0;
|
|
|
156
156
|
const LightChallengeType = {
|
|
157
157
|
SEQUENTIAL: "SEQUENTIAL",
|
|
158
158
|
};
|
|
159
|
-
class InternalServerException extends RekognitionStreamingServiceException {
|
|
159
|
+
let InternalServerException$1 = class InternalServerException extends RekognitionStreamingServiceException$1 {
|
|
160
160
|
name = "InternalServerException";
|
|
161
161
|
$fault = "server";
|
|
162
162
|
Message;
|
|
@@ -171,7 +171,7 @@ class InternalServerException extends RekognitionStreamingServiceException {
|
|
|
171
171
|
this.Message = opts.Message;
|
|
172
172
|
this.Code = opts.Code;
|
|
173
173
|
}
|
|
174
|
-
}
|
|
174
|
+
};
|
|
175
175
|
exports.LivenessRequestStream = void 0;
|
|
176
176
|
(function (LivenessRequestStream) {
|
|
177
177
|
LivenessRequestStream.visit = (value, visitor) => {
|
|
@@ -192,7 +192,7 @@ exports.ServerChallenge = void 0;
|
|
|
192
192
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
193
193
|
};
|
|
194
194
|
})(exports.ServerChallenge || (exports.ServerChallenge = {}));
|
|
195
|
-
class ServiceQuotaExceededException extends RekognitionStreamingServiceException {
|
|
195
|
+
let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends RekognitionStreamingServiceException$1 {
|
|
196
196
|
name = "ServiceQuotaExceededException";
|
|
197
197
|
$fault = "client";
|
|
198
198
|
Message;
|
|
@@ -207,8 +207,8 @@ class ServiceQuotaExceededException extends RekognitionStreamingServiceException
|
|
|
207
207
|
this.Message = opts.Message;
|
|
208
208
|
this.Code = opts.Code;
|
|
209
209
|
}
|
|
210
|
-
}
|
|
211
|
-
class ServiceUnavailableException extends RekognitionStreamingServiceException {
|
|
210
|
+
};
|
|
211
|
+
let ServiceUnavailableException$1 = class ServiceUnavailableException extends RekognitionStreamingServiceException$1 {
|
|
212
212
|
name = "ServiceUnavailableException";
|
|
213
213
|
$fault = "server";
|
|
214
214
|
Message;
|
|
@@ -223,8 +223,8 @@ class ServiceUnavailableException extends RekognitionStreamingServiceException {
|
|
|
223
223
|
this.Message = opts.Message;
|
|
224
224
|
this.Code = opts.Code;
|
|
225
225
|
}
|
|
226
|
-
}
|
|
227
|
-
class ThrottlingException extends RekognitionStreamingServiceException {
|
|
226
|
+
};
|
|
227
|
+
let ThrottlingException$1 = class ThrottlingException extends RekognitionStreamingServiceException$1 {
|
|
228
228
|
name = "ThrottlingException";
|
|
229
229
|
$fault = "client";
|
|
230
230
|
Message;
|
|
@@ -239,8 +239,8 @@ class ThrottlingException extends RekognitionStreamingServiceException {
|
|
|
239
239
|
this.Message = opts.Message;
|
|
240
240
|
this.Code = opts.Code;
|
|
241
241
|
}
|
|
242
|
-
}
|
|
243
|
-
class ValidationException extends RekognitionStreamingServiceException {
|
|
242
|
+
};
|
|
243
|
+
let ValidationException$1 = class ValidationException extends RekognitionStreamingServiceException$1 {
|
|
244
244
|
name = "ValidationException";
|
|
245
245
|
$fault = "client";
|
|
246
246
|
Message;
|
|
@@ -255,7 +255,7 @@ class ValidationException extends RekognitionStreamingServiceException {
|
|
|
255
255
|
this.Message = opts.Message;
|
|
256
256
|
this.Code = opts.Code;
|
|
257
257
|
}
|
|
258
|
-
}
|
|
258
|
+
};
|
|
259
259
|
exports.LivenessResponseStream = void 0;
|
|
260
260
|
(function (LivenessResponseStream) {
|
|
261
261
|
LivenessResponseStream.visit = (value, visitor) => {
|
|
@@ -278,7 +278,7 @@ exports.LivenessResponseStream = void 0;
|
|
|
278
278
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
279
279
|
};
|
|
280
280
|
})(exports.LivenessResponseStream || (exports.LivenessResponseStream = {}));
|
|
281
|
-
class SessionNotFoundException extends RekognitionStreamingServiceException {
|
|
281
|
+
let SessionNotFoundException$1 = class SessionNotFoundException extends RekognitionStreamingServiceException$1 {
|
|
282
282
|
name = "SessionNotFoundException";
|
|
283
283
|
$fault = "client";
|
|
284
284
|
Message;
|
|
@@ -293,493 +293,363 @@ class SessionNotFoundException extends RekognitionStreamingServiceException {
|
|
|
293
293
|
this.Message = opts.Message;
|
|
294
294
|
this.Code = opts.Code;
|
|
295
295
|
}
|
|
296
|
-
}
|
|
297
|
-
const LivenessRequestStreamFilterSensitiveLog = (obj) => {
|
|
298
|
-
if (obj.VideoEvent !== undefined)
|
|
299
|
-
return { VideoEvent: obj.VideoEvent };
|
|
300
|
-
if (obj.ClientSessionInformationEvent !== undefined)
|
|
301
|
-
return { ClientSessionInformationEvent: obj.ClientSessionInformationEvent };
|
|
302
|
-
if (obj.$unknown !== undefined)
|
|
303
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
304
296
|
};
|
|
305
|
-
const LivenessResponseStreamFilterSensitiveLog = (obj) => {
|
|
306
|
-
if (obj.ServerSessionInformationEvent !== undefined)
|
|
307
|
-
return { ServerSessionInformationEvent: obj.ServerSessionInformationEvent };
|
|
308
|
-
if (obj.DisconnectionEvent !== undefined)
|
|
309
|
-
return { DisconnectionEvent: obj.DisconnectionEvent };
|
|
310
|
-
if (obj.ChallengeEvent !== undefined)
|
|
311
|
-
return { ChallengeEvent: obj.ChallengeEvent };
|
|
312
|
-
if (obj.ValidationException !== undefined)
|
|
313
|
-
return { ValidationException: obj.ValidationException };
|
|
314
|
-
if (obj.InternalServerException !== undefined)
|
|
315
|
-
return { InternalServerException: obj.InternalServerException };
|
|
316
|
-
if (obj.ThrottlingException !== undefined)
|
|
317
|
-
return { ThrottlingException: obj.ThrottlingException };
|
|
318
|
-
if (obj.ServiceQuotaExceededException !== undefined)
|
|
319
|
-
return { ServiceQuotaExceededException: obj.ServiceQuotaExceededException };
|
|
320
|
-
if (obj.ServiceUnavailableException !== undefined)
|
|
321
|
-
return { ServiceUnavailableException: obj.ServiceUnavailableException };
|
|
322
|
-
if (obj.$unknown !== undefined)
|
|
323
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
324
|
-
};
|
|
325
|
-
const StartFaceLivenessSessionRequestFilterSensitiveLog = (obj) => ({
|
|
326
|
-
...obj,
|
|
327
|
-
...(obj.LivenessRequestStream && { LivenessRequestStream: "STREAMING_CONTENT" }),
|
|
328
|
-
});
|
|
329
|
-
const StartFaceLivenessSessionResponseFilterSensitiveLog = (obj) => ({
|
|
330
|
-
...obj,
|
|
331
|
-
...(obj.LivenessResponseStream && { LivenessResponseStream: "STREAMING_CONTENT" }),
|
|
332
|
-
});
|
|
333
297
|
|
|
334
|
-
const
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
b.m("POST").h(headers).b(body);
|
|
349
|
-
return b.build();
|
|
350
|
-
};
|
|
351
|
-
const de_StartFaceLivenessSessionCommand = async (output, context) => {
|
|
352
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
353
|
-
return de_CommandError(output, context);
|
|
354
|
-
}
|
|
355
|
-
const contents = smithyClient.map({
|
|
356
|
-
$metadata: deserializeMetadata(output),
|
|
357
|
-
[_SI]: [, output.headers[_xarslsi]],
|
|
358
|
-
});
|
|
359
|
-
const data = output.body;
|
|
360
|
-
contents.LivenessResponseStream = de_LivenessResponseStream(data, context);
|
|
361
|
-
return contents;
|
|
362
|
-
};
|
|
363
|
-
const de_CommandError = async (output, context) => {
|
|
364
|
-
const parsedOutput = {
|
|
365
|
-
...output,
|
|
366
|
-
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
367
|
-
};
|
|
368
|
-
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
369
|
-
switch (errorCode) {
|
|
370
|
-
case "AccessDeniedException":
|
|
371
|
-
case "com.amazonaws.rekognitionstreaming#AccessDeniedException":
|
|
372
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
373
|
-
case "InternalServerException":
|
|
374
|
-
case "com.amazonaws.rekognitionstreaming#InternalServerException":
|
|
375
|
-
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
376
|
-
case "ServiceQuotaExceededException":
|
|
377
|
-
case "com.amazonaws.rekognitionstreaming#ServiceQuotaExceededException":
|
|
378
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
379
|
-
case "ServiceUnavailableException":
|
|
380
|
-
case "com.amazonaws.rekognitionstreaming#ServiceUnavailableException":
|
|
381
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput);
|
|
382
|
-
case "SessionNotFoundException":
|
|
383
|
-
case "com.amazonaws.rekognitionstreaming#SessionNotFoundException":
|
|
384
|
-
throw await de_SessionNotFoundExceptionRes(parsedOutput);
|
|
385
|
-
case "ThrottlingException":
|
|
386
|
-
case "com.amazonaws.rekognitionstreaming#ThrottlingException":
|
|
387
|
-
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
388
|
-
case "ValidationException":
|
|
389
|
-
case "com.amazonaws.rekognitionstreaming#ValidationException":
|
|
390
|
-
throw await de_ValidationExceptionRes(parsedOutput);
|
|
391
|
-
default:
|
|
392
|
-
const parsedBody = parsedOutput.body;
|
|
393
|
-
return throwDefaultError({
|
|
394
|
-
output,
|
|
395
|
-
parsedBody,
|
|
396
|
-
errorCode,
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
};
|
|
400
|
-
const throwDefaultError = smithyClient.withBaseException(RekognitionStreamingServiceException);
|
|
401
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
402
|
-
const contents = smithyClient.map({});
|
|
403
|
-
const data = parsedOutput.body;
|
|
404
|
-
const doc = smithyClient.take(data, {
|
|
405
|
-
Code: smithyClient.expectString,
|
|
406
|
-
Message: smithyClient.expectString,
|
|
407
|
-
});
|
|
408
|
-
Object.assign(contents, doc);
|
|
409
|
-
const exception = new AccessDeniedException({
|
|
410
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
411
|
-
...contents,
|
|
412
|
-
});
|
|
413
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
414
|
-
};
|
|
415
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
416
|
-
const contents = smithyClient.map({});
|
|
417
|
-
const data = parsedOutput.body;
|
|
418
|
-
const doc = smithyClient.take(data, {
|
|
419
|
-
Code: smithyClient.expectString,
|
|
420
|
-
Message: smithyClient.expectString,
|
|
421
|
-
});
|
|
422
|
-
Object.assign(contents, doc);
|
|
423
|
-
const exception = new InternalServerException({
|
|
424
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
425
|
-
...contents,
|
|
426
|
-
});
|
|
427
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
428
|
-
};
|
|
429
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
430
|
-
const contents = smithyClient.map({});
|
|
431
|
-
const data = parsedOutput.body;
|
|
432
|
-
const doc = smithyClient.take(data, {
|
|
433
|
-
Code: smithyClient.expectString,
|
|
434
|
-
Message: smithyClient.expectString,
|
|
435
|
-
});
|
|
436
|
-
Object.assign(contents, doc);
|
|
437
|
-
const exception = new ServiceQuotaExceededException({
|
|
438
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
439
|
-
...contents,
|
|
440
|
-
});
|
|
441
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
442
|
-
};
|
|
443
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
444
|
-
const contents = smithyClient.map({});
|
|
445
|
-
const data = parsedOutput.body;
|
|
446
|
-
const doc = smithyClient.take(data, {
|
|
447
|
-
Code: smithyClient.expectString,
|
|
448
|
-
Message: smithyClient.expectString,
|
|
449
|
-
});
|
|
450
|
-
Object.assign(contents, doc);
|
|
451
|
-
const exception = new ServiceUnavailableException({
|
|
452
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
453
|
-
...contents,
|
|
454
|
-
});
|
|
455
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
456
|
-
};
|
|
457
|
-
const de_SessionNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
458
|
-
const contents = smithyClient.map({});
|
|
459
|
-
const data = parsedOutput.body;
|
|
460
|
-
const doc = smithyClient.take(data, {
|
|
461
|
-
Code: smithyClient.expectString,
|
|
462
|
-
Message: smithyClient.expectString,
|
|
463
|
-
});
|
|
464
|
-
Object.assign(contents, doc);
|
|
465
|
-
const exception = new SessionNotFoundException({
|
|
466
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
467
|
-
...contents,
|
|
468
|
-
});
|
|
469
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
470
|
-
};
|
|
471
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
472
|
-
const contents = smithyClient.map({});
|
|
473
|
-
const data = parsedOutput.body;
|
|
474
|
-
const doc = smithyClient.take(data, {
|
|
475
|
-
Code: smithyClient.expectString,
|
|
476
|
-
Message: smithyClient.expectString,
|
|
477
|
-
});
|
|
478
|
-
Object.assign(contents, doc);
|
|
479
|
-
const exception = new ThrottlingException({
|
|
480
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
481
|
-
...contents,
|
|
482
|
-
});
|
|
483
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
484
|
-
};
|
|
485
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
486
|
-
const contents = smithyClient.map({});
|
|
487
|
-
const data = parsedOutput.body;
|
|
488
|
-
const doc = smithyClient.take(data, {
|
|
489
|
-
Code: smithyClient.expectString,
|
|
490
|
-
Message: smithyClient.expectString,
|
|
491
|
-
});
|
|
492
|
-
Object.assign(contents, doc);
|
|
493
|
-
const exception = new ValidationException({
|
|
494
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
495
|
-
...contents,
|
|
496
|
-
});
|
|
497
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
498
|
-
};
|
|
499
|
-
const se_LivenessRequestStream = (input, context) => {
|
|
500
|
-
const eventMarshallingVisitor = (event) => exports.LivenessRequestStream.visit(event, {
|
|
501
|
-
VideoEvent: (value) => se_VideoEvent_event(value, context),
|
|
502
|
-
ClientSessionInformationEvent: (value) => se_ClientSessionInformationEvent_event(value, context),
|
|
503
|
-
_: (value) => value,
|
|
504
|
-
});
|
|
505
|
-
return context.eventStreamMarshaller.serialize(input, eventMarshallingVisitor);
|
|
506
|
-
};
|
|
507
|
-
const se_ClientSessionInformationEvent_event = (input, context) => {
|
|
508
|
-
const headers = {
|
|
509
|
-
":event-type": { type: "string", value: "ClientSessionInformationEvent" },
|
|
510
|
-
":message-type": { type: "string", value: "event" },
|
|
511
|
-
":content-type": { type: "string", value: "application/json" },
|
|
512
|
-
};
|
|
513
|
-
let body = new Uint8Array();
|
|
514
|
-
body = se_ClientSessionInformationEvent(input);
|
|
515
|
-
body = context.utf8Decoder(JSON.stringify(body));
|
|
516
|
-
return { headers, body };
|
|
517
|
-
};
|
|
518
|
-
const se_VideoEvent_event = (input, context) => {
|
|
519
|
-
const headers = {
|
|
520
|
-
":event-type": { type: "string", value: "VideoEvent" },
|
|
521
|
-
":message-type": { type: "string", value: "event" },
|
|
522
|
-
":content-type": { type: "string", value: "application/json" },
|
|
523
|
-
};
|
|
524
|
-
let body = new Uint8Array();
|
|
525
|
-
body = se_VideoEvent(input, context);
|
|
526
|
-
body = context.utf8Decoder(JSON.stringify(body));
|
|
527
|
-
return { headers, body };
|
|
528
|
-
};
|
|
529
|
-
const de_LivenessResponseStream = (output, context) => {
|
|
530
|
-
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
531
|
-
if (event["ServerSessionInformationEvent"] != null) {
|
|
532
|
-
return {
|
|
533
|
-
ServerSessionInformationEvent: await de_ServerSessionInformationEvent_event(event["ServerSessionInformationEvent"], context),
|
|
534
|
-
};
|
|
535
|
-
}
|
|
536
|
-
if (event["DisconnectionEvent"] != null) {
|
|
537
|
-
return {
|
|
538
|
-
DisconnectionEvent: await de_DisconnectionEvent_event(event["DisconnectionEvent"], context),
|
|
539
|
-
};
|
|
540
|
-
}
|
|
541
|
-
if (event["ChallengeEvent"] != null) {
|
|
542
|
-
return {
|
|
543
|
-
ChallengeEvent: await de_ChallengeEvent_event(event["ChallengeEvent"], context),
|
|
544
|
-
};
|
|
545
|
-
}
|
|
546
|
-
if (event["ValidationException"] != null) {
|
|
547
|
-
return {
|
|
548
|
-
ValidationException: await de_ValidationException_event(event["ValidationException"], context),
|
|
549
|
-
};
|
|
550
|
-
}
|
|
551
|
-
if (event["InternalServerException"] != null) {
|
|
552
|
-
return {
|
|
553
|
-
InternalServerException: await de_InternalServerException_event(event["InternalServerException"], context),
|
|
554
|
-
};
|
|
555
|
-
}
|
|
556
|
-
if (event["ThrottlingException"] != null) {
|
|
557
|
-
return {
|
|
558
|
-
ThrottlingException: await de_ThrottlingException_event(event["ThrottlingException"], context),
|
|
559
|
-
};
|
|
560
|
-
}
|
|
561
|
-
if (event["ServiceQuotaExceededException"] != null) {
|
|
562
|
-
return {
|
|
563
|
-
ServiceQuotaExceededException: await de_ServiceQuotaExceededException_event(event["ServiceQuotaExceededException"], context),
|
|
564
|
-
};
|
|
565
|
-
}
|
|
566
|
-
if (event["ServiceUnavailableException"] != null) {
|
|
567
|
-
return {
|
|
568
|
-
ServiceUnavailableException: await de_ServiceUnavailableException_event(event["ServiceUnavailableException"], context),
|
|
569
|
-
};
|
|
570
|
-
}
|
|
571
|
-
return { $unknown: event };
|
|
572
|
-
});
|
|
573
|
-
};
|
|
574
|
-
const de_ChallengeEvent_event = async (output, context) => {
|
|
575
|
-
const contents = {};
|
|
576
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
577
|
-
Object.assign(contents, smithyClient._json(data));
|
|
578
|
-
return contents;
|
|
579
|
-
};
|
|
580
|
-
const de_DisconnectionEvent_event = async (output, context) => {
|
|
581
|
-
const contents = {};
|
|
582
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
583
|
-
Object.assign(contents, smithyClient._json(data));
|
|
584
|
-
return contents;
|
|
585
|
-
};
|
|
586
|
-
const de_InternalServerException_event = async (output, context) => {
|
|
587
|
-
const parsedOutput = {
|
|
588
|
-
...output,
|
|
589
|
-
body: await core$1.parseJsonBody(output.body, context),
|
|
590
|
-
};
|
|
591
|
-
return de_InternalServerExceptionRes(parsedOutput);
|
|
592
|
-
};
|
|
593
|
-
const de_ServerSessionInformationEvent_event = async (output, context) => {
|
|
594
|
-
const contents = {};
|
|
595
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
596
|
-
Object.assign(contents, de_ServerSessionInformationEvent(data));
|
|
597
|
-
return contents;
|
|
598
|
-
};
|
|
599
|
-
const de_ServiceQuotaExceededException_event = async (output, context) => {
|
|
600
|
-
const parsedOutput = {
|
|
601
|
-
...output,
|
|
602
|
-
body: await core$1.parseJsonBody(output.body, context),
|
|
603
|
-
};
|
|
604
|
-
return de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
605
|
-
};
|
|
606
|
-
const de_ServiceUnavailableException_event = async (output, context) => {
|
|
607
|
-
const parsedOutput = {
|
|
608
|
-
...output,
|
|
609
|
-
body: await core$1.parseJsonBody(output.body, context),
|
|
610
|
-
};
|
|
611
|
-
return de_ServiceUnavailableExceptionRes(parsedOutput);
|
|
612
|
-
};
|
|
613
|
-
const de_ThrottlingException_event = async (output, context) => {
|
|
614
|
-
const parsedOutput = {
|
|
615
|
-
...output,
|
|
616
|
-
body: await core$1.parseJsonBody(output.body, context),
|
|
617
|
-
};
|
|
618
|
-
return de_ThrottlingExceptionRes(parsedOutput);
|
|
619
|
-
};
|
|
620
|
-
const de_ValidationException_event = async (output, context) => {
|
|
621
|
-
const parsedOutput = {
|
|
622
|
-
...output,
|
|
623
|
-
body: await core$1.parseJsonBody(output.body, context),
|
|
624
|
-
};
|
|
625
|
-
return de_ValidationExceptionRes(parsedOutput);
|
|
626
|
-
};
|
|
627
|
-
const se_BoundingBox = (input, context) => {
|
|
628
|
-
return smithyClient.take(input, {
|
|
629
|
-
Height: smithyClient.serializeFloat,
|
|
630
|
-
Left: smithyClient.serializeFloat,
|
|
631
|
-
Top: smithyClient.serializeFloat,
|
|
632
|
-
Width: smithyClient.serializeFloat,
|
|
633
|
-
});
|
|
634
|
-
};
|
|
635
|
-
const se_ClientChallenge = (input, context) => {
|
|
636
|
-
return exports.ClientChallenge.visit(input, {
|
|
637
|
-
FaceMovementAndLightChallenge: (value) => ({
|
|
638
|
-
FaceMovementAndLightChallenge: se_FaceMovementAndLightClientChallenge(value),
|
|
639
|
-
}),
|
|
640
|
-
FaceMovementChallenge: (value) => ({ FaceMovementChallenge: se_FaceMovementClientChallenge(value) }),
|
|
641
|
-
_: (name, value) => ({ [name]: value }),
|
|
642
|
-
});
|
|
643
|
-
};
|
|
644
|
-
const se_ClientSessionInformationEvent = (input, context) => {
|
|
645
|
-
return smithyClient.take(input, {
|
|
646
|
-
Challenge: (_) => se_ClientChallenge(_),
|
|
647
|
-
});
|
|
648
|
-
};
|
|
649
|
-
const se_FaceMovementAndLightClientChallenge = (input, context) => {
|
|
650
|
-
return smithyClient.take(input, {
|
|
651
|
-
ChallengeId: [],
|
|
652
|
-
ColorDisplayed: smithyClient._json,
|
|
653
|
-
InitialFace: (_) => se_InitialFace(_),
|
|
654
|
-
TargetFace: (_) => se_TargetFace(_),
|
|
655
|
-
VideoEndTimestamp: [],
|
|
656
|
-
VideoStartTimestamp: [],
|
|
657
|
-
});
|
|
658
|
-
};
|
|
659
|
-
const se_FaceMovementClientChallenge = (input, context) => {
|
|
660
|
-
return smithyClient.take(input, {
|
|
661
|
-
ChallengeId: [],
|
|
662
|
-
InitialFace: (_) => se_InitialFace(_),
|
|
663
|
-
TargetFace: (_) => se_TargetFace(_),
|
|
664
|
-
VideoEndTimestamp: [],
|
|
665
|
-
VideoStartTimestamp: [],
|
|
666
|
-
});
|
|
667
|
-
};
|
|
668
|
-
const se_InitialFace = (input, context) => {
|
|
669
|
-
return smithyClient.take(input, {
|
|
670
|
-
BoundingBox: (_) => se_BoundingBox(_),
|
|
671
|
-
InitialFaceDetectedTimestamp: [],
|
|
672
|
-
});
|
|
673
|
-
};
|
|
674
|
-
const se_TargetFace = (input, context) => {
|
|
675
|
-
return smithyClient.take(input, {
|
|
676
|
-
BoundingBox: (_) => se_BoundingBox(_),
|
|
677
|
-
FaceDetectedInTargetPositionEndTimestamp: [],
|
|
678
|
-
FaceDetectedInTargetPositionStartTimestamp: [],
|
|
679
|
-
});
|
|
680
|
-
};
|
|
681
|
-
const se_VideoEvent = (input, context) => {
|
|
682
|
-
return smithyClient.take(input, {
|
|
683
|
-
TimestampMillis: [],
|
|
684
|
-
VideoChunk: context.base64Encoder,
|
|
685
|
-
});
|
|
686
|
-
};
|
|
687
|
-
const de_ChallengeConfig = (output, context) => {
|
|
688
|
-
return smithyClient.take(output, {
|
|
689
|
-
BlazeFaceDetectionThreshold: smithyClient.limitedParseFloat32,
|
|
690
|
-
FaceDistanceThreshold: smithyClient.limitedParseFloat32,
|
|
691
|
-
FaceDistanceThresholdMax: smithyClient.limitedParseFloat32,
|
|
692
|
-
FaceDistanceThresholdMin: smithyClient.limitedParseFloat32,
|
|
693
|
-
FaceIouHeightThreshold: smithyClient.limitedParseFloat32,
|
|
694
|
-
FaceIouWidthThreshold: smithyClient.limitedParseFloat32,
|
|
695
|
-
OvalFitTimeout: smithyClient.expectInt32,
|
|
696
|
-
OvalHeightWidthRatio: smithyClient.limitedParseFloat32,
|
|
697
|
-
OvalIouHeightThreshold: smithyClient.limitedParseFloat32,
|
|
698
|
-
OvalIouThreshold: smithyClient.limitedParseFloat32,
|
|
699
|
-
OvalIouWidthThreshold: smithyClient.limitedParseFloat32,
|
|
700
|
-
});
|
|
701
|
-
};
|
|
702
|
-
const de_ColorSequence = (output, context) => {
|
|
703
|
-
return smithyClient.take(output, {
|
|
704
|
-
DownscrollDuration: smithyClient.limitedParseFloat32,
|
|
705
|
-
FlatDisplayDuration: smithyClient.limitedParseFloat32,
|
|
706
|
-
FreshnessColor: smithyClient._json,
|
|
707
|
-
});
|
|
708
|
-
};
|
|
709
|
-
const de_ColorSequences = (output, context) => {
|
|
710
|
-
const retVal = (output || [])
|
|
711
|
-
.filter((e) => e != null)
|
|
712
|
-
.map((entry) => {
|
|
713
|
-
return de_ColorSequence(entry);
|
|
714
|
-
});
|
|
715
|
-
return retVal;
|
|
716
|
-
};
|
|
717
|
-
const de_FaceMovementAndLightServerChallenge = (output, context) => {
|
|
718
|
-
return smithyClient.take(output, {
|
|
719
|
-
ChallengeConfig: (_) => de_ChallengeConfig(_),
|
|
720
|
-
ColorSequences: (_) => de_ColorSequences(_),
|
|
721
|
-
LightChallengeType: smithyClient.expectString,
|
|
722
|
-
OvalParameters: (_) => de_OvalParameters(_),
|
|
723
|
-
});
|
|
724
|
-
};
|
|
725
|
-
const de_FaceMovementServerChallenge = (output, context) => {
|
|
726
|
-
return smithyClient.take(output, {
|
|
727
|
-
ChallengeConfig: (_) => de_ChallengeConfig(_),
|
|
728
|
-
OvalParameters: (_) => de_OvalParameters(_),
|
|
729
|
-
});
|
|
730
|
-
};
|
|
731
|
-
const de_OvalParameters = (output, context) => {
|
|
732
|
-
return smithyClient.take(output, {
|
|
733
|
-
CenterX: smithyClient.limitedParseFloat32,
|
|
734
|
-
CenterY: smithyClient.limitedParseFloat32,
|
|
735
|
-
Height: smithyClient.limitedParseFloat32,
|
|
736
|
-
Width: smithyClient.limitedParseFloat32,
|
|
737
|
-
});
|
|
738
|
-
};
|
|
739
|
-
const de_ServerChallenge = (output, context) => {
|
|
740
|
-
if (output.FaceMovementAndLightChallenge != null) {
|
|
741
|
-
return {
|
|
742
|
-
FaceMovementAndLightChallenge: de_FaceMovementAndLightServerChallenge(output.FaceMovementAndLightChallenge),
|
|
743
|
-
};
|
|
744
|
-
}
|
|
745
|
-
if (output.FaceMovementChallenge != null) {
|
|
746
|
-
return {
|
|
747
|
-
FaceMovementChallenge: de_FaceMovementServerChallenge(output.FaceMovementChallenge),
|
|
748
|
-
};
|
|
749
|
-
}
|
|
750
|
-
return { $unknown: Object.entries(output)[0] };
|
|
751
|
-
};
|
|
752
|
-
const de_ServerSessionInformationEvent = (output, context) => {
|
|
753
|
-
return smithyClient.take(output, {
|
|
754
|
-
SessionInformation: (_) => de_SessionInformation(_),
|
|
755
|
-
});
|
|
756
|
-
};
|
|
757
|
-
const de_SessionInformation = (output, context) => {
|
|
758
|
-
return smithyClient.take(output, {
|
|
759
|
-
Challenge: (_) => de_ServerChallenge(core$1.awsExpectUnion(_)),
|
|
760
|
-
});
|
|
761
|
-
};
|
|
762
|
-
const deserializeMetadata = (output) => ({
|
|
763
|
-
httpStatusCode: output.statusCode,
|
|
764
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
765
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
766
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
767
|
-
});
|
|
298
|
+
const _ADE = "AccessDeniedException";
|
|
299
|
+
const _BB = "BoundingBox";
|
|
300
|
+
const _BFDT = "BlazeFaceDetectionThreshold";
|
|
301
|
+
const _C = "Code";
|
|
302
|
+
const _CC = "ChallengeConfig";
|
|
303
|
+
const _CCST = "CurrentColorStartTimestamp";
|
|
304
|
+
const _CCl = "ClientChallenge";
|
|
305
|
+
const _CCu = "CurrentColor";
|
|
306
|
+
const _CD = "ColorDisplayed";
|
|
307
|
+
const _CE = "ChallengeEvent";
|
|
308
|
+
const _CI = "ChallengeId";
|
|
309
|
+
const _CS = "ColorSequence";
|
|
310
|
+
const _CSIE = "ClientSessionInformationEvent";
|
|
311
|
+
const _CSo = "ColorSequences";
|
|
768
312
|
const _CV = "ChallengeVersions";
|
|
769
|
-
const
|
|
313
|
+
const _CX = "CenterX";
|
|
314
|
+
const _CY = "CenterY";
|
|
315
|
+
const _Ch = "Challenge";
|
|
316
|
+
const _DD = "DownscrollDuration";
|
|
317
|
+
const _DE = "DisconnectionEvent";
|
|
318
|
+
const _FC = "FreshnessColor";
|
|
319
|
+
const _FDD = "FlatDisplayDuration";
|
|
320
|
+
const _FDITPET = "FaceDetectedInTargetPositionEndTimestamp";
|
|
321
|
+
const _FDITPST = "FaceDetectedInTargetPositionStartTimestamp";
|
|
322
|
+
const _FDT = "FaceDistanceThreshold";
|
|
323
|
+
const _FDTM = "FaceDistanceThresholdMin";
|
|
324
|
+
const _FDTMa = "FaceDistanceThresholdMax";
|
|
325
|
+
const _FIHT = "FaceIouHeightThreshold";
|
|
326
|
+
const _FIWT = "FaceIouWidthThreshold";
|
|
327
|
+
const _FMALC = "FaceMovementAndLightChallenge";
|
|
328
|
+
const _FMALCC = "FaceMovementAndLightClientChallenge";
|
|
329
|
+
const _FMALSC = "FaceMovementAndLightServerChallenge";
|
|
330
|
+
const _FMC = "FaceMovementChallenge";
|
|
331
|
+
const _FMCC = "FaceMovementClientChallenge";
|
|
332
|
+
const _FMSC = "FaceMovementServerChallenge";
|
|
333
|
+
const _H = "Height";
|
|
334
|
+
const _IF = "InitialFace";
|
|
335
|
+
const _IFDT = "InitialFaceDetectedTimestamp";
|
|
336
|
+
const _ISE = "InternalServerException";
|
|
337
|
+
const _L = "Left";
|
|
338
|
+
const _LCT = "LightChallengeType";
|
|
339
|
+
const _LRS = "LivenessRequestStream";
|
|
340
|
+
const _LRSi = "LivenessResponseStream";
|
|
341
|
+
const _M = "Message";
|
|
342
|
+
const _OFT = "OvalFitTimeout";
|
|
343
|
+
const _OHWR = "OvalHeightWidthRatio";
|
|
344
|
+
const _OIHT = "OvalIouHeightThreshold";
|
|
345
|
+
const _OIT = "OvalIouThreshold";
|
|
346
|
+
const _OIWT = "OvalIouWidthThreshold";
|
|
347
|
+
const _OP = "OvalParameters";
|
|
348
|
+
const _PC = "PreviousColor";
|
|
349
|
+
const _RGB = "RGB";
|
|
350
|
+
const _SC = "ServerChallenge";
|
|
351
|
+
const _SFLS = "StartFaceLivenessSession";
|
|
352
|
+
const _SFLSR = "StartFaceLivenessSessionRequest";
|
|
353
|
+
const _SFLSRt = "StartFaceLivenessSessionResponse";
|
|
354
|
+
const _SI = "SessionInformation";
|
|
355
|
+
const _SIe = "SessionId";
|
|
356
|
+
const _SN = "SequenceNumber";
|
|
357
|
+
const _SNFE = "SessionNotFoundException";
|
|
358
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
359
|
+
const _SSIE = "ServerSessionInformationEvent";
|
|
360
|
+
const _SUE = "ServiceUnavailableException";
|
|
361
|
+
const _T = "Top";
|
|
362
|
+
const _TE = "ThrottlingException";
|
|
363
|
+
const _TF = "TargetFace";
|
|
364
|
+
const _TM = "TimestampMillis";
|
|
365
|
+
const _Ty = "Type";
|
|
366
|
+
const _V = "Version";
|
|
367
|
+
const _VC = "VideoChunk";
|
|
368
|
+
const _VE = "ValidationException";
|
|
369
|
+
const _VET = "VideoEndTimestamp";
|
|
370
|
+
const _VEi = "VideoEvent";
|
|
770
371
|
const _VH = "VideoHeight";
|
|
372
|
+
const _VST = "VideoStartTimestamp";
|
|
771
373
|
const _VW = "VideoWidth";
|
|
374
|
+
const _W = "Width";
|
|
375
|
+
const _c = "client";
|
|
376
|
+
const _e = "error";
|
|
377
|
+
const _h = "http";
|
|
378
|
+
const _hE = "httpError";
|
|
379
|
+
const _hH = "httpHeader";
|
|
380
|
+
const _s = "server";
|
|
381
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.rekognitionstreaming";
|
|
382
|
+
const _st = "streaming";
|
|
772
383
|
const _xarslcv = "x-amz-rekognition-streaming-liveness-challenge-versions";
|
|
773
384
|
const _xarslsi = "x-amz-rekognition-streaming-liveness-session-id";
|
|
774
385
|
const _xarslvh = "x-amz-rekognition-streaming-liveness-video-height";
|
|
775
386
|
const _xarslvw = "x-amz-rekognition-streaming-liveness-video-width";
|
|
387
|
+
const n0 = "com.amazonaws.rekognitionstreaming";
|
|
388
|
+
var AccessDeniedException = [
|
|
389
|
+
-3,
|
|
390
|
+
n0,
|
|
391
|
+
_ADE,
|
|
392
|
+
{
|
|
393
|
+
[_e]: _c,
|
|
394
|
+
[_hE]: 403,
|
|
395
|
+
},
|
|
396
|
+
[_M, _C],
|
|
397
|
+
[0, 0],
|
|
398
|
+
];
|
|
399
|
+
schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
|
|
400
|
+
var BoundingBox = [3, n0, _BB, 0, [_W, _H, _L, _T], [1, 1, 1, 1]];
|
|
401
|
+
var ChallengeConfig = [
|
|
402
|
+
3,
|
|
403
|
+
n0,
|
|
404
|
+
_CC,
|
|
405
|
+
0,
|
|
406
|
+
[_BFDT, _FDTM, _FDT, _FDTMa, _OIT, _OHWR, _OIWT, _OIHT, _FIWT, _FIHT, _OFT],
|
|
407
|
+
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
|
|
408
|
+
];
|
|
409
|
+
var ChallengeEvent = [3, n0, _CE, 0, [_V, _Ty], [0, 0]];
|
|
410
|
+
var ClientSessionInformationEvent = [3, n0, _CSIE, 0, [_Ch], [() => ClientChallenge]];
|
|
411
|
+
var ColorDisplayed = [
|
|
412
|
+
3,
|
|
413
|
+
n0,
|
|
414
|
+
_CD,
|
|
415
|
+
0,
|
|
416
|
+
[_CCu, _PC, _SN, _CCST],
|
|
417
|
+
[() => FreshnessColor, () => FreshnessColor, 1, 1],
|
|
418
|
+
];
|
|
419
|
+
var ColorSequence = [3, n0, _CS, 0, [_FC, _DD, _FDD], [() => FreshnessColor, 1, 1]];
|
|
420
|
+
var DisconnectionEvent = [3, n0, _DE, 0, [_TM], [1]];
|
|
421
|
+
var FaceMovementAndLightClientChallenge = [
|
|
422
|
+
3,
|
|
423
|
+
n0,
|
|
424
|
+
_FMALCC,
|
|
425
|
+
0,
|
|
426
|
+
[_CI, _VST, _VET, _IF, _TF, _CD],
|
|
427
|
+
[0, 1, 1, () => InitialFace, () => TargetFace, () => ColorDisplayed],
|
|
428
|
+
];
|
|
429
|
+
var FaceMovementAndLightServerChallenge = [
|
|
430
|
+
3,
|
|
431
|
+
n0,
|
|
432
|
+
_FMALSC,
|
|
433
|
+
0,
|
|
434
|
+
[_OP, _LCT, _CC, _CSo],
|
|
435
|
+
[() => OvalParameters, 0, () => ChallengeConfig, () => ColorSequences],
|
|
436
|
+
];
|
|
437
|
+
var FaceMovementClientChallenge = [
|
|
438
|
+
3,
|
|
439
|
+
n0,
|
|
440
|
+
_FMCC,
|
|
441
|
+
0,
|
|
442
|
+
[_CI, _VST, _VET, _IF, _TF],
|
|
443
|
+
[0, 1, 1, () => InitialFace, () => TargetFace],
|
|
444
|
+
];
|
|
445
|
+
var FaceMovementServerChallenge = [
|
|
446
|
+
3,
|
|
447
|
+
n0,
|
|
448
|
+
_FMSC,
|
|
449
|
+
0,
|
|
450
|
+
[_OP, _CC],
|
|
451
|
+
[() => OvalParameters, () => ChallengeConfig],
|
|
452
|
+
];
|
|
453
|
+
var FreshnessColor = [3, n0, _FC, 0, [_RGB], [64 | 1]];
|
|
454
|
+
var InitialFace = [3, n0, _IF, 0, [_BB, _IFDT], [() => BoundingBox, 1]];
|
|
455
|
+
var InternalServerException = [
|
|
456
|
+
-3,
|
|
457
|
+
n0,
|
|
458
|
+
_ISE,
|
|
459
|
+
{
|
|
460
|
+
[_e]: _s,
|
|
461
|
+
[_hE]: 500,
|
|
462
|
+
},
|
|
463
|
+
[_M, _C],
|
|
464
|
+
[0, 0],
|
|
465
|
+
];
|
|
466
|
+
schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
|
|
467
|
+
var OvalParameters = [3, n0, _OP, 0, [_W, _H, _CX, _CY], [1, 1, 1, 1]];
|
|
468
|
+
var ServerSessionInformationEvent = [3, n0, _SSIE, 0, [_SI], [() => SessionInformation]];
|
|
469
|
+
var ServiceQuotaExceededException = [
|
|
470
|
+
-3,
|
|
471
|
+
n0,
|
|
472
|
+
_SQEE,
|
|
473
|
+
{
|
|
474
|
+
[_e]: _c,
|
|
475
|
+
[_hE]: 429,
|
|
476
|
+
},
|
|
477
|
+
[_M, _C],
|
|
478
|
+
[0, 0],
|
|
479
|
+
];
|
|
480
|
+
schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
|
|
481
|
+
var ServiceUnavailableException = [
|
|
482
|
+
-3,
|
|
483
|
+
n0,
|
|
484
|
+
_SUE,
|
|
485
|
+
{
|
|
486
|
+
[_e]: _s,
|
|
487
|
+
[_hE]: 503,
|
|
488
|
+
},
|
|
489
|
+
[_M, _C],
|
|
490
|
+
[0, 0],
|
|
491
|
+
];
|
|
492
|
+
schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException, ServiceUnavailableException$1);
|
|
493
|
+
var SessionInformation = [3, n0, _SI, 0, [_Ch], [() => ServerChallenge]];
|
|
494
|
+
var SessionNotFoundException = [
|
|
495
|
+
-3,
|
|
496
|
+
n0,
|
|
497
|
+
_SNFE,
|
|
498
|
+
{
|
|
499
|
+
[_e]: _c,
|
|
500
|
+
[_hE]: 400,
|
|
501
|
+
},
|
|
502
|
+
[_M, _C],
|
|
503
|
+
[0, 0],
|
|
504
|
+
];
|
|
505
|
+
schema.TypeRegistry.for(n0).registerError(SessionNotFoundException, SessionNotFoundException$1);
|
|
506
|
+
var StartFaceLivenessSessionRequest = [
|
|
507
|
+
3,
|
|
508
|
+
n0,
|
|
509
|
+
_SFLSR,
|
|
510
|
+
0,
|
|
511
|
+
[_SIe, _VW, _VH, _CV, _LRS],
|
|
512
|
+
[
|
|
513
|
+
[
|
|
514
|
+
0,
|
|
515
|
+
{
|
|
516
|
+
[_hH]: _xarslsi,
|
|
517
|
+
},
|
|
518
|
+
],
|
|
519
|
+
[
|
|
520
|
+
0,
|
|
521
|
+
{
|
|
522
|
+
[_hH]: _xarslvw,
|
|
523
|
+
},
|
|
524
|
+
],
|
|
525
|
+
[
|
|
526
|
+
0,
|
|
527
|
+
{
|
|
528
|
+
[_hH]: _xarslvh,
|
|
529
|
+
},
|
|
530
|
+
],
|
|
531
|
+
[
|
|
532
|
+
0,
|
|
533
|
+
{
|
|
534
|
+
[_hH]: _xarslcv,
|
|
535
|
+
},
|
|
536
|
+
],
|
|
537
|
+
[() => LivenessRequestStream, 16],
|
|
538
|
+
],
|
|
539
|
+
];
|
|
540
|
+
var StartFaceLivenessSessionResponse = [
|
|
541
|
+
3,
|
|
542
|
+
n0,
|
|
543
|
+
_SFLSRt,
|
|
544
|
+
0,
|
|
545
|
+
[_SIe, _LRSi],
|
|
546
|
+
[
|
|
547
|
+
[
|
|
548
|
+
0,
|
|
549
|
+
{
|
|
550
|
+
[_hH]: _xarslsi,
|
|
551
|
+
},
|
|
552
|
+
],
|
|
553
|
+
[() => LivenessResponseStream, 16],
|
|
554
|
+
],
|
|
555
|
+
];
|
|
556
|
+
var TargetFace = [3, n0, _TF, 0, [_BB, _FDITPST, _FDITPET], [() => BoundingBox, 1, 1]];
|
|
557
|
+
var ThrottlingException = [
|
|
558
|
+
-3,
|
|
559
|
+
n0,
|
|
560
|
+
_TE,
|
|
561
|
+
{
|
|
562
|
+
[_e]: _c,
|
|
563
|
+
[_hE]: 429,
|
|
564
|
+
},
|
|
565
|
+
[_M, _C],
|
|
566
|
+
[0, 0],
|
|
567
|
+
];
|
|
568
|
+
schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
|
|
569
|
+
var ValidationException = [
|
|
570
|
+
-3,
|
|
571
|
+
n0,
|
|
572
|
+
_VE,
|
|
573
|
+
{
|
|
574
|
+
[_e]: _c,
|
|
575
|
+
[_hE]: 400,
|
|
576
|
+
},
|
|
577
|
+
[_M, _C],
|
|
578
|
+
[0, 0],
|
|
579
|
+
];
|
|
580
|
+
schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
|
|
581
|
+
var VideoEvent = [3, n0, _VEi, 0, [_VC, _TM], [21, 1]];
|
|
582
|
+
var RekognitionStreamingServiceException = [
|
|
583
|
+
-3,
|
|
584
|
+
_sm,
|
|
585
|
+
"RekognitionStreamingServiceException",
|
|
586
|
+
0,
|
|
587
|
+
[],
|
|
588
|
+
[],
|
|
589
|
+
];
|
|
590
|
+
schema.TypeRegistry.for(_sm).registerError(RekognitionStreamingServiceException, RekognitionStreamingServiceException$1);
|
|
591
|
+
var ColorSequences = [1, n0, _CSo, 0, () => ColorSequence];
|
|
592
|
+
var ClientChallenge = [
|
|
593
|
+
3,
|
|
594
|
+
n0,
|
|
595
|
+
_CCl,
|
|
596
|
+
0,
|
|
597
|
+
[_FMALC, _FMC],
|
|
598
|
+
[() => FaceMovementAndLightClientChallenge, () => FaceMovementClientChallenge],
|
|
599
|
+
];
|
|
600
|
+
var LivenessRequestStream = [
|
|
601
|
+
3,
|
|
602
|
+
n0,
|
|
603
|
+
_LRS,
|
|
604
|
+
{
|
|
605
|
+
[_st]: 1,
|
|
606
|
+
},
|
|
607
|
+
[_VEi, _CSIE],
|
|
608
|
+
[() => VideoEvent, () => ClientSessionInformationEvent],
|
|
609
|
+
];
|
|
610
|
+
var LivenessResponseStream = [
|
|
611
|
+
3,
|
|
612
|
+
n0,
|
|
613
|
+
_LRSi,
|
|
614
|
+
{
|
|
615
|
+
[_st]: 1,
|
|
616
|
+
},
|
|
617
|
+
[_SSIE, _DE, _CE, _VE, _ISE, _TE, _SQEE, _SUE],
|
|
618
|
+
[
|
|
619
|
+
() => ServerSessionInformationEvent,
|
|
620
|
+
() => DisconnectionEvent,
|
|
621
|
+
() => ChallengeEvent,
|
|
622
|
+
[() => ValidationException, 0],
|
|
623
|
+
[() => InternalServerException, 0],
|
|
624
|
+
[() => ThrottlingException, 0],
|
|
625
|
+
[() => ServiceQuotaExceededException, 0],
|
|
626
|
+
[() => ServiceUnavailableException, 0],
|
|
627
|
+
],
|
|
628
|
+
];
|
|
629
|
+
var ServerChallenge = [
|
|
630
|
+
3,
|
|
631
|
+
n0,
|
|
632
|
+
_SC,
|
|
633
|
+
0,
|
|
634
|
+
[_FMALC, _FMC],
|
|
635
|
+
[() => FaceMovementAndLightServerChallenge, () => FaceMovementServerChallenge],
|
|
636
|
+
];
|
|
637
|
+
var StartFaceLivenessSession = [
|
|
638
|
+
9,
|
|
639
|
+
n0,
|
|
640
|
+
_SFLS,
|
|
641
|
+
{
|
|
642
|
+
[_h]: ["POST", "/start-face-liveness-session", 200],
|
|
643
|
+
},
|
|
644
|
+
() => StartFaceLivenessSessionRequest,
|
|
645
|
+
() => StartFaceLivenessSessionResponse,
|
|
646
|
+
];
|
|
776
647
|
|
|
777
648
|
class StartFaceLivenessSessionCommand extends smithyClient.Command
|
|
778
649
|
.classBuilder()
|
|
779
650
|
.ep(commonParams)
|
|
780
651
|
.m(function (Command, cs, config, o) {
|
|
781
652
|
return [
|
|
782
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
783
653
|
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
784
654
|
middlewareEventstream.getEventStreamPlugin(config),
|
|
785
655
|
middlewareWebsocket.getWebSocketPlugin(config, {
|
|
@@ -794,9 +664,7 @@ class StartFaceLivenessSessionCommand extends smithyClient.Command
|
|
|
794
664
|
},
|
|
795
665
|
})
|
|
796
666
|
.n("RekognitionStreamingClient", "StartFaceLivenessSessionCommand")
|
|
797
|
-
.
|
|
798
|
-
.ser(se_StartFaceLivenessSessionCommand)
|
|
799
|
-
.de(de_StartFaceLivenessSessionCommand)
|
|
667
|
+
.sc(StartFaceLivenessSession)
|
|
800
668
|
.build() {
|
|
801
669
|
}
|
|
802
670
|
|
|
@@ -815,20 +683,16 @@ Object.defineProperty(exports, "__Client", {
|
|
|
815
683
|
enumerable: true,
|
|
816
684
|
get: function () { return smithyClient.Client; }
|
|
817
685
|
});
|
|
818
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
686
|
+
exports.AccessDeniedException = AccessDeniedException$1;
|
|
819
687
|
exports.ChallengeType = ChallengeType;
|
|
820
|
-
exports.InternalServerException = InternalServerException;
|
|
688
|
+
exports.InternalServerException = InternalServerException$1;
|
|
821
689
|
exports.LightChallengeType = LightChallengeType;
|
|
822
|
-
exports.LivenessRequestStreamFilterSensitiveLog = LivenessRequestStreamFilterSensitiveLog;
|
|
823
|
-
exports.LivenessResponseStreamFilterSensitiveLog = LivenessResponseStreamFilterSensitiveLog;
|
|
824
690
|
exports.RekognitionStreaming = RekognitionStreaming;
|
|
825
691
|
exports.RekognitionStreamingClient = RekognitionStreamingClient;
|
|
826
|
-
exports.RekognitionStreamingServiceException = RekognitionStreamingServiceException;
|
|
827
|
-
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
828
|
-
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
829
|
-
exports.SessionNotFoundException = SessionNotFoundException;
|
|
692
|
+
exports.RekognitionStreamingServiceException = RekognitionStreamingServiceException$1;
|
|
693
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
|
|
694
|
+
exports.ServiceUnavailableException = ServiceUnavailableException$1;
|
|
695
|
+
exports.SessionNotFoundException = SessionNotFoundException$1;
|
|
830
696
|
exports.StartFaceLivenessSessionCommand = StartFaceLivenessSessionCommand;
|
|
831
|
-
exports.
|
|
832
|
-
exports.
|
|
833
|
-
exports.ThrottlingException = ThrottlingException;
|
|
834
|
-
exports.ValidationException = ValidationException;
|
|
697
|
+
exports.ThrottlingException = ThrottlingException$1;
|
|
698
|
+
exports.ValidationException = ValidationException$1;
|