@aws-sdk/client-rekognitionstreaming 3.305.0 → 3.306.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/README.md +0 -8
- package/dist-cjs/RekognitionStreaming.js +0 -15
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +20 -12
- package/dist-cjs/protocols/Aws_restJson1.js +56 -85
- package/dist-es/RekognitionStreaming.js +0 -15
- package/dist-es/commands/index.js +0 -1
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +18 -9
- package/dist-es/protocols/Aws_restJson1.js +56 -83
- package/dist-types/RekognitionStreaming.d.ts +0 -7
- package/dist-types/RekognitionStreamingClient.d.ts +2 -3
- package/dist-types/commands/index.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +55 -37
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -3
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/RekognitionStreaming.d.ts +0 -17
- package/dist-types/ts3.4/RekognitionStreamingClient.d.ts +2 -10
- package/dist-types/ts3.4/commands/index.d.ts +0 -1
- package/dist-types/ts3.4/models/models_0.d.ts +48 -25
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -12
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/package.json +35 -35
- package/dist-cjs/commands/StartStreamingLivenessSessionCommand.js +0 -50
- package/dist-es/commands/StartStreamingLivenessSessionCommand.js +0 -46
- package/dist-types/commands/StartStreamingLivenessSessionCommand.d.ts +0 -39
- package/dist-types/ts3.4/commands/StartStreamingLivenessSessionCommand.d.ts +0 -41
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectString as __expectString, expectUnion as __expectUnion, limitedParseFloat32 as __limitedParseFloat32, map as __map, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
|
-
import { AccessDeniedException, ClientChallenge, InternalServerException, LivenessRequestStream, ServiceQuotaExceededException, SessionNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
3
|
+
import { AccessDeniedException, ClientChallenge, InternalServerException, LivenessRequestStream, ServiceQuotaExceededException, ServiceUnavailableException, SessionNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { RekognitionStreamingServiceException as __BaseException } from "../models/RekognitionStreamingServiceException";
|
|
5
5
|
export const serializeAws_restJson1StartFaceLivenessSessionCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = map({}, isSerializableHeaderValue, {
|
|
8
8
|
"x-amz-rekognition-streaming-liveness-session-id": input.SessionId,
|
|
9
|
-
"x-amz-rekognition-streaming-liveness-
|
|
9
|
+
"x-amz-rekognition-streaming-liveness-video-width": input.VideoWidth,
|
|
10
|
+
"x-amz-rekognition-streaming-liveness-video-height": input.VideoHeight,
|
|
11
|
+
"x-amz-rekognition-streaming-liveness-challenge-versions": input.ChallengeVersions,
|
|
10
12
|
});
|
|
11
13
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-face-liveness-session";
|
|
12
14
|
let body;
|
|
@@ -23,27 +25,6 @@ export const serializeAws_restJson1StartFaceLivenessSessionCommand = async (inpu
|
|
|
23
25
|
body,
|
|
24
26
|
});
|
|
25
27
|
};
|
|
26
|
-
export const serializeAws_restJson1StartStreamingLivenessSessionCommand = async (input, context) => {
|
|
27
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
28
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
29
|
-
"x-amz-rekognition-streaming-liveness-session-id": input.SessionId,
|
|
30
|
-
"x-amz-rekognition-streaming-liveness-client-sdk-version": input.ClientSDKVersion,
|
|
31
|
-
});
|
|
32
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-streaming-liveness-session";
|
|
33
|
-
let body;
|
|
34
|
-
if (input.LivenessRequestStream !== undefined) {
|
|
35
|
-
body = serializeAws_restJson1LivenessRequestStream(input.LivenessRequestStream, context);
|
|
36
|
-
}
|
|
37
|
-
return new __HttpRequest({
|
|
38
|
-
protocol,
|
|
39
|
-
hostname,
|
|
40
|
-
port,
|
|
41
|
-
method: "POST",
|
|
42
|
-
headers,
|
|
43
|
-
path: resolvedPath,
|
|
44
|
-
body,
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
28
|
export const deserializeAws_restJson1StartFaceLivenessSessionCommand = async (output, context) => {
|
|
48
29
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
49
30
|
return deserializeAws_restJson1StartFaceLivenessSessionCommandError(output, context);
|
|
@@ -72,53 +53,9 @@ const deserializeAws_restJson1StartFaceLivenessSessionCommandError = async (outp
|
|
|
72
53
|
case "ServiceQuotaExceededException":
|
|
73
54
|
case "com.amazonaws.rekognitionstreaming#ServiceQuotaExceededException":
|
|
74
55
|
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
75
|
-
case "
|
|
76
|
-
case "com.amazonaws.rekognitionstreaming#
|
|
77
|
-
throw await
|
|
78
|
-
case "ThrottlingException":
|
|
79
|
-
case "com.amazonaws.rekognitionstreaming#ThrottlingException":
|
|
80
|
-
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
81
|
-
case "ValidationException":
|
|
82
|
-
case "com.amazonaws.rekognitionstreaming#ValidationException":
|
|
83
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
84
|
-
default:
|
|
85
|
-
const parsedBody = parsedOutput.body;
|
|
86
|
-
throwDefaultError({
|
|
87
|
-
output,
|
|
88
|
-
parsedBody,
|
|
89
|
-
exceptionCtor: __BaseException,
|
|
90
|
-
errorCode,
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
export const deserializeAws_restJson1StartStreamingLivenessSessionCommand = async (output, context) => {
|
|
95
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
96
|
-
return deserializeAws_restJson1StartStreamingLivenessSessionCommandError(output, context);
|
|
97
|
-
}
|
|
98
|
-
const contents = map({
|
|
99
|
-
$metadata: deserializeMetadata(output),
|
|
100
|
-
SessionId: [, output.headers["x-amz-rekognition-streaming-liveness-session-id"]],
|
|
101
|
-
});
|
|
102
|
-
const data = output.body;
|
|
103
|
-
contents.LivenessResponseStream = deserializeAws_restJson1LivenessResponseStream(data, context);
|
|
104
|
-
return contents;
|
|
105
|
-
};
|
|
106
|
-
const deserializeAws_restJson1StartStreamingLivenessSessionCommandError = async (output, context) => {
|
|
107
|
-
const parsedOutput = {
|
|
108
|
-
...output,
|
|
109
|
-
body: await parseErrorBody(output.body, context),
|
|
110
|
-
};
|
|
111
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
112
|
-
switch (errorCode) {
|
|
113
|
-
case "AccessDeniedException":
|
|
114
|
-
case "com.amazonaws.rekognitionstreaming#AccessDeniedException":
|
|
115
|
-
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
116
|
-
case "InternalServerException":
|
|
117
|
-
case "com.amazonaws.rekognitionstreaming#InternalServerException":
|
|
118
|
-
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
119
|
-
case "ServiceQuotaExceededException":
|
|
120
|
-
case "com.amazonaws.rekognitionstreaming#ServiceQuotaExceededException":
|
|
121
|
-
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
56
|
+
case "ServiceUnavailableException":
|
|
57
|
+
case "com.amazonaws.rekognitionstreaming#ServiceUnavailableException":
|
|
58
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
122
59
|
case "SessionNotFoundException":
|
|
123
60
|
case "com.amazonaws.rekognitionstreaming#SessionNotFoundException":
|
|
124
61
|
throw await deserializeAws_restJson1SessionNotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -184,6 +121,21 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
184
121
|
});
|
|
185
122
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
186
123
|
};
|
|
124
|
+
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
125
|
+
const contents = map({});
|
|
126
|
+
const data = parsedOutput.body;
|
|
127
|
+
if (data.Code != null) {
|
|
128
|
+
contents.Code = __expectString(data.Code);
|
|
129
|
+
}
|
|
130
|
+
if (data.Message != null) {
|
|
131
|
+
contents.Message = __expectString(data.Message);
|
|
132
|
+
}
|
|
133
|
+
const exception = new ServiceUnavailableException({
|
|
134
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
135
|
+
...contents,
|
|
136
|
+
});
|
|
137
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
138
|
+
};
|
|
187
139
|
const deserializeAws_restJson1SessionNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
188
140
|
const contents = map({});
|
|
189
141
|
const data = parsedOutput.body;
|
|
@@ -291,6 +243,11 @@ const deserializeAws_restJson1LivenessResponseStream = (output, context) => {
|
|
|
291
243
|
ServiceQuotaExceededException: await deserializeAws_restJson1ServiceQuotaExceededException_event(event["ServiceQuotaExceededException"], context),
|
|
292
244
|
};
|
|
293
245
|
}
|
|
246
|
+
if (event["ServiceUnavailableException"] != null) {
|
|
247
|
+
return {
|
|
248
|
+
ServiceUnavailableException: await deserializeAws_restJson1ServiceUnavailableException_event(event["ServiceUnavailableException"], context),
|
|
249
|
+
};
|
|
250
|
+
}
|
|
294
251
|
return { $unknown: output };
|
|
295
252
|
});
|
|
296
253
|
};
|
|
@@ -320,6 +277,13 @@ const deserializeAws_restJson1ServiceQuotaExceededException_event = async (outpu
|
|
|
320
277
|
};
|
|
321
278
|
return deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
322
279
|
};
|
|
280
|
+
const deserializeAws_restJson1ServiceUnavailableException_event = async (output, context) => {
|
|
281
|
+
const parsedOutput = {
|
|
282
|
+
...output,
|
|
283
|
+
body: await parseBody(output.body, context),
|
|
284
|
+
};
|
|
285
|
+
return deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
286
|
+
};
|
|
323
287
|
const deserializeAws_restJson1ThrottlingException_event = async (output, context) => {
|
|
324
288
|
const parsedOutput = {
|
|
325
289
|
...output,
|
|
@@ -353,9 +317,6 @@ const serializeAws_restJson1ClientChallenge = (input, context) => {
|
|
|
353
317
|
const serializeAws_restJson1ClientSessionInformationEvent = (input, context) => {
|
|
354
318
|
return {
|
|
355
319
|
...(input.Challenge != null && { Challenge: serializeAws_restJson1ClientChallenge(input.Challenge, context) }),
|
|
356
|
-
...(input.DeviceInformation != null && {
|
|
357
|
-
DeviceInformation: serializeAws_restJson1DeviceInformation(input.DeviceInformation, context),
|
|
358
|
-
}),
|
|
359
320
|
};
|
|
360
321
|
};
|
|
361
322
|
const serializeAws_restJson1ColorComponentList = (input, context) => {
|
|
@@ -377,13 +338,6 @@ const serializeAws_restJson1ColorDisplayed = (input, context) => {
|
|
|
377
338
|
...(input.SequenceNumber != null && { SequenceNumber: input.SequenceNumber }),
|
|
378
339
|
};
|
|
379
340
|
};
|
|
380
|
-
const serializeAws_restJson1DeviceInformation = (input, context) => {
|
|
381
|
-
return {
|
|
382
|
-
...(input.ClientSDKVersion != null && { ClientSDKVersion: input.ClientSDKVersion }),
|
|
383
|
-
...(input.VideoHeight != null && { VideoHeight: __serializeFloat(input.VideoHeight) }),
|
|
384
|
-
...(input.VideoWidth != null && { VideoWidth: __serializeFloat(input.VideoWidth) }),
|
|
385
|
-
};
|
|
386
|
-
};
|
|
387
341
|
const serializeAws_restJson1FaceMovementAndLightClientChallenge = (input, context) => {
|
|
388
342
|
return {
|
|
389
343
|
...(input.ChallengeId != null && { ChallengeId: input.ChallengeId }),
|
|
@@ -392,6 +346,7 @@ const serializeAws_restJson1FaceMovementAndLightClientChallenge = (input, contex
|
|
|
392
346
|
}),
|
|
393
347
|
...(input.InitialFace != null && { InitialFace: serializeAws_restJson1InitialFace(input.InitialFace, context) }),
|
|
394
348
|
...(input.TargetFace != null && { TargetFace: serializeAws_restJson1TargetFace(input.TargetFace, context) }),
|
|
349
|
+
...(input.VideoEndTimestamp != null && { VideoEndTimestamp: input.VideoEndTimestamp }),
|
|
395
350
|
...(input.VideoStartTimestamp != null && { VideoStartTimestamp: input.VideoStartTimestamp }),
|
|
396
351
|
};
|
|
397
352
|
};
|
|
@@ -425,6 +380,20 @@ const serializeAws_restJson1VideoEvent = (input, context) => {
|
|
|
425
380
|
...(input.VideoChunk != null && { VideoChunk: context.base64Encoder(input.VideoChunk) }),
|
|
426
381
|
};
|
|
427
382
|
};
|
|
383
|
+
const deserializeAws_restJson1ChallengeConfig = (output, context) => {
|
|
384
|
+
return {
|
|
385
|
+
BlazeFaceDetectionThreshold: __limitedParseFloat32(output.BlazeFaceDetectionThreshold),
|
|
386
|
+
FaceDistanceThreshold: __limitedParseFloat32(output.FaceDistanceThreshold),
|
|
387
|
+
FaceDistanceThresholdMax: __limitedParseFloat32(output.FaceDistanceThresholdMax),
|
|
388
|
+
FaceDistanceThresholdMin: __limitedParseFloat32(output.FaceDistanceThresholdMin),
|
|
389
|
+
FaceIouHeightThreshold: __limitedParseFloat32(output.FaceIouHeightThreshold),
|
|
390
|
+
FaceIouWidthThreshold: __limitedParseFloat32(output.FaceIouWidthThreshold),
|
|
391
|
+
OvalHeightWidthRatio: __limitedParseFloat32(output.OvalHeightWidthRatio),
|
|
392
|
+
OvalIouHeightThreshold: __limitedParseFloat32(output.OvalIouHeightThreshold),
|
|
393
|
+
OvalIouThreshold: __limitedParseFloat32(output.OvalIouThreshold),
|
|
394
|
+
OvalIouWidthThreshold: __limitedParseFloat32(output.OvalIouWidthThreshold),
|
|
395
|
+
};
|
|
396
|
+
};
|
|
428
397
|
const deserializeAws_restJson1ColorComponentList = (output, context) => {
|
|
429
398
|
const retVal = (output || [])
|
|
430
399
|
.filter((e) => e != null)
|
|
@@ -463,12 +432,15 @@ const deserializeAws_restJson1DisconnectionEvent = (output, context) => {
|
|
|
463
432
|
};
|
|
464
433
|
const deserializeAws_restJson1FaceMovementAndLightServerChallenge = (output, context) => {
|
|
465
434
|
return {
|
|
435
|
+
ChallengeConfig: output.ChallengeConfig != null
|
|
436
|
+
? deserializeAws_restJson1ChallengeConfig(output.ChallengeConfig, context)
|
|
437
|
+
: undefined,
|
|
466
438
|
ColorSequences: output.ColorSequences != null
|
|
467
439
|
? deserializeAws_restJson1ColorSequences(output.ColorSequences, context)
|
|
468
440
|
: undefined,
|
|
469
441
|
LightChallengeType: __expectString(output.LightChallengeType),
|
|
470
|
-
|
|
471
|
-
?
|
|
442
|
+
OvalParameters: output.OvalParameters != null
|
|
443
|
+
? deserializeAws_restJson1OvalParameters(output.OvalParameters, context)
|
|
472
444
|
: undefined,
|
|
473
445
|
};
|
|
474
446
|
};
|
|
@@ -477,10 +449,11 @@ const deserializeAws_restJson1FreshnessColor = (output, context) => {
|
|
|
477
449
|
RGB: output.RGB != null ? deserializeAws_restJson1ColorComponentList(output.RGB, context) : undefined,
|
|
478
450
|
};
|
|
479
451
|
};
|
|
480
|
-
const
|
|
452
|
+
const deserializeAws_restJson1OvalParameters = (output, context) => {
|
|
481
453
|
return {
|
|
482
454
|
CenterX: __limitedParseFloat32(output.CenterX),
|
|
483
455
|
CenterY: __limitedParseFloat32(output.CenterY),
|
|
456
|
+
Height: __limitedParseFloat32(output.Height),
|
|
484
457
|
Width: __limitedParseFloat32(output.Width),
|
|
485
458
|
};
|
|
486
459
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
2
|
import { StartFaceLivenessSessionCommandInput, StartFaceLivenessSessionCommandOutput } from "./commands/StartFaceLivenessSessionCommand";
|
|
3
|
-
import { StartStreamingLivenessSessionCommandInput, StartStreamingLivenessSessionCommandOutput } from "./commands/StartStreamingLivenessSessionCommand";
|
|
4
3
|
import { RekognitionStreamingClient } from "./RekognitionStreamingClient";
|
|
5
4
|
/**
|
|
6
5
|
* @public
|
|
@@ -12,10 +11,4 @@ export declare class RekognitionStreaming extends RekognitionStreamingClient {
|
|
|
12
11
|
startFaceLivenessSession(args: StartFaceLivenessSessionCommandInput, options?: __HttpHandlerOptions): Promise<StartFaceLivenessSessionCommandOutput>;
|
|
13
12
|
startFaceLivenessSession(args: StartFaceLivenessSessionCommandInput, cb: (err: any, data?: StartFaceLivenessSessionCommandOutput) => void): void;
|
|
14
13
|
startFaceLivenessSession(args: StartFaceLivenessSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartFaceLivenessSessionCommandOutput) => void): void;
|
|
15
|
-
/**
|
|
16
|
-
* @public
|
|
17
|
-
*/
|
|
18
|
-
startStreamingLivenessSession(args: StartStreamingLivenessSessionCommandInput, options?: __HttpHandlerOptions): Promise<StartStreamingLivenessSessionCommandOutput>;
|
|
19
|
-
startStreamingLivenessSession(args: StartStreamingLivenessSessionCommandInput, cb: (err: any, data?: StartStreamingLivenessSessionCommandOutput) => void): void;
|
|
20
|
-
startStreamingLivenessSession(args: StartStreamingLivenessSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartStreamingLivenessSessionCommandOutput) => void): void;
|
|
21
14
|
}
|
|
@@ -11,16 +11,15 @@ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
|
11
11
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
12
12
|
import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
13
13
|
import { StartFaceLivenessSessionCommandInput, StartFaceLivenessSessionCommandOutput } from "./commands/StartFaceLivenessSessionCommand";
|
|
14
|
-
import { StartStreamingLivenessSessionCommandInput, StartStreamingLivenessSessionCommandOutput } from "./commands/StartStreamingLivenessSessionCommand";
|
|
15
14
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
16
15
|
/**
|
|
17
16
|
* @public
|
|
18
17
|
*/
|
|
19
|
-
export type ServiceInputTypes = StartFaceLivenessSessionCommandInput
|
|
18
|
+
export type ServiceInputTypes = StartFaceLivenessSessionCommandInput;
|
|
20
19
|
/**
|
|
21
20
|
* @public
|
|
22
21
|
*/
|
|
23
|
-
export type ServiceOutputTypes = StartFaceLivenessSessionCommandOutput
|
|
22
|
+
export type ServiceOutputTypes = StartFaceLivenessSessionCommandOutput;
|
|
24
23
|
/**
|
|
25
24
|
* @public
|
|
26
25
|
*/
|
|
@@ -22,6 +22,21 @@ export interface BoundingBox {
|
|
|
22
22
|
Left: number | undefined;
|
|
23
23
|
Top: number | undefined;
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export interface ChallengeConfig {
|
|
29
|
+
BlazeFaceDetectionThreshold?: number;
|
|
30
|
+
FaceDistanceThresholdMin?: number;
|
|
31
|
+
FaceDistanceThreshold?: number;
|
|
32
|
+
FaceDistanceThresholdMax?: number;
|
|
33
|
+
OvalIouThreshold?: number;
|
|
34
|
+
OvalHeightWidthRatio?: number;
|
|
35
|
+
OvalIouWidthThreshold?: number;
|
|
36
|
+
OvalIouHeightThreshold?: number;
|
|
37
|
+
FaceIouWidthThreshold?: number;
|
|
38
|
+
FaceIouHeightThreshold?: number;
|
|
39
|
+
}
|
|
25
40
|
/**
|
|
26
41
|
* @public
|
|
27
42
|
*/
|
|
@@ -58,6 +73,7 @@ export interface TargetFace {
|
|
|
58
73
|
export interface FaceMovementAndLightClientChallenge {
|
|
59
74
|
ChallengeId: string | undefined;
|
|
60
75
|
VideoStartTimestamp?: number;
|
|
76
|
+
VideoEndTimestamp?: number;
|
|
61
77
|
InitialFace?: InitialFace;
|
|
62
78
|
TargetFace?: TargetFace;
|
|
63
79
|
ColorDisplayed?: ColorDisplayed;
|
|
@@ -84,19 +100,10 @@ export declare namespace ClientChallenge {
|
|
|
84
100
|
}
|
|
85
101
|
const visit: <T>(value: ClientChallenge, visitor: Visitor<T>) => T;
|
|
86
102
|
}
|
|
87
|
-
/**
|
|
88
|
-
* @public
|
|
89
|
-
*/
|
|
90
|
-
export interface DeviceInformation {
|
|
91
|
-
VideoHeight: number | undefined;
|
|
92
|
-
VideoWidth: number | undefined;
|
|
93
|
-
ClientSDKVersion: string | undefined;
|
|
94
|
-
}
|
|
95
103
|
/**
|
|
96
104
|
* @public
|
|
97
105
|
*/
|
|
98
106
|
export interface ClientSessionInformationEvent {
|
|
99
|
-
DeviceInformation: DeviceInformation | undefined;
|
|
100
107
|
Challenge: ClientChallenge | undefined;
|
|
101
108
|
}
|
|
102
109
|
/**
|
|
@@ -119,7 +126,6 @@ export interface DisconnectionEvent {
|
|
|
119
126
|
*/
|
|
120
127
|
export declare const LightChallengeType: {
|
|
121
128
|
readonly SEQUENTIAL: "SEQUENTIAL";
|
|
122
|
-
readonly SIMULTANEOUS: "SIMULTANEOUS";
|
|
123
129
|
};
|
|
124
130
|
/**
|
|
125
131
|
* @public
|
|
@@ -128,8 +134,9 @@ export type LightChallengeType = (typeof LightChallengeType)[keyof typeof LightC
|
|
|
128
134
|
/**
|
|
129
135
|
* @public
|
|
130
136
|
*/
|
|
131
|
-
export interface
|
|
137
|
+
export interface OvalParameters {
|
|
132
138
|
Width: number | undefined;
|
|
139
|
+
Height: number | undefined;
|
|
133
140
|
CenterX: number | undefined;
|
|
134
141
|
CenterY: number | undefined;
|
|
135
142
|
}
|
|
@@ -137,8 +144,9 @@ export interface OvalScaleFactors {
|
|
|
137
144
|
* @public
|
|
138
145
|
*/
|
|
139
146
|
export interface FaceMovementAndLightServerChallenge {
|
|
140
|
-
|
|
147
|
+
OvalParameters: OvalParameters | undefined;
|
|
141
148
|
LightChallengeType: LightChallengeType | string | undefined;
|
|
149
|
+
ChallengeConfig: ChallengeConfig | undefined;
|
|
142
150
|
ColorSequences: ColorSequence[] | undefined;
|
|
143
151
|
}
|
|
144
152
|
/**
|
|
@@ -238,6 +246,19 @@ export declare class ServiceQuotaExceededException extends __BaseException {
|
|
|
238
246
|
*/
|
|
239
247
|
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
240
248
|
}
|
|
249
|
+
/**
|
|
250
|
+
* @public
|
|
251
|
+
*/
|
|
252
|
+
export declare class ServiceUnavailableException extends __BaseException {
|
|
253
|
+
readonly name: "ServiceUnavailableException";
|
|
254
|
+
readonly $fault: "server";
|
|
255
|
+
Message?: string;
|
|
256
|
+
Code?: string;
|
|
257
|
+
/**
|
|
258
|
+
* @internal
|
|
259
|
+
*/
|
|
260
|
+
constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
|
|
261
|
+
}
|
|
241
262
|
/**
|
|
242
263
|
* @public
|
|
243
264
|
*/
|
|
@@ -267,7 +288,7 @@ export declare class ValidationException extends __BaseException {
|
|
|
267
288
|
/**
|
|
268
289
|
* @public
|
|
269
290
|
*/
|
|
270
|
-
export type LivenessResponseStream = LivenessResponseStream.DisconnectionEventMember | LivenessResponseStream.InternalServerExceptionMember | LivenessResponseStream.ServerSessionInformationEventMember | LivenessResponseStream.ServiceQuotaExceededExceptionMember | LivenessResponseStream.ThrottlingExceptionMember | LivenessResponseStream.ValidationExceptionMember | LivenessResponseStream.$UnknownMember;
|
|
291
|
+
export type LivenessResponseStream = LivenessResponseStream.DisconnectionEventMember | LivenessResponseStream.InternalServerExceptionMember | LivenessResponseStream.ServerSessionInformationEventMember | LivenessResponseStream.ServiceQuotaExceededExceptionMember | LivenessResponseStream.ServiceUnavailableExceptionMember | LivenessResponseStream.ThrottlingExceptionMember | LivenessResponseStream.ValidationExceptionMember | LivenessResponseStream.$UnknownMember;
|
|
271
292
|
/**
|
|
272
293
|
* @public
|
|
273
294
|
*/
|
|
@@ -279,6 +300,7 @@ export declare namespace LivenessResponseStream {
|
|
|
279
300
|
InternalServerException?: never;
|
|
280
301
|
ThrottlingException?: never;
|
|
281
302
|
ServiceQuotaExceededException?: never;
|
|
303
|
+
ServiceUnavailableException?: never;
|
|
282
304
|
$unknown?: never;
|
|
283
305
|
}
|
|
284
306
|
interface DisconnectionEventMember {
|
|
@@ -288,6 +310,7 @@ export declare namespace LivenessResponseStream {
|
|
|
288
310
|
InternalServerException?: never;
|
|
289
311
|
ThrottlingException?: never;
|
|
290
312
|
ServiceQuotaExceededException?: never;
|
|
313
|
+
ServiceUnavailableException?: never;
|
|
291
314
|
$unknown?: never;
|
|
292
315
|
}
|
|
293
316
|
interface ValidationExceptionMember {
|
|
@@ -297,6 +320,7 @@ export declare namespace LivenessResponseStream {
|
|
|
297
320
|
InternalServerException?: never;
|
|
298
321
|
ThrottlingException?: never;
|
|
299
322
|
ServiceQuotaExceededException?: never;
|
|
323
|
+
ServiceUnavailableException?: never;
|
|
300
324
|
$unknown?: never;
|
|
301
325
|
}
|
|
302
326
|
interface InternalServerExceptionMember {
|
|
@@ -306,6 +330,7 @@ export declare namespace LivenessResponseStream {
|
|
|
306
330
|
InternalServerException: InternalServerException;
|
|
307
331
|
ThrottlingException?: never;
|
|
308
332
|
ServiceQuotaExceededException?: never;
|
|
333
|
+
ServiceUnavailableException?: never;
|
|
309
334
|
$unknown?: never;
|
|
310
335
|
}
|
|
311
336
|
interface ThrottlingExceptionMember {
|
|
@@ -315,6 +340,7 @@ export declare namespace LivenessResponseStream {
|
|
|
315
340
|
InternalServerException?: never;
|
|
316
341
|
ThrottlingException: ThrottlingException;
|
|
317
342
|
ServiceQuotaExceededException?: never;
|
|
343
|
+
ServiceUnavailableException?: never;
|
|
318
344
|
$unknown?: never;
|
|
319
345
|
}
|
|
320
346
|
interface ServiceQuotaExceededExceptionMember {
|
|
@@ -324,6 +350,17 @@ export declare namespace LivenessResponseStream {
|
|
|
324
350
|
InternalServerException?: never;
|
|
325
351
|
ThrottlingException?: never;
|
|
326
352
|
ServiceQuotaExceededException: ServiceQuotaExceededException;
|
|
353
|
+
ServiceUnavailableException?: never;
|
|
354
|
+
$unknown?: never;
|
|
355
|
+
}
|
|
356
|
+
interface ServiceUnavailableExceptionMember {
|
|
357
|
+
ServerSessionInformationEvent?: never;
|
|
358
|
+
DisconnectionEvent?: never;
|
|
359
|
+
ValidationException?: never;
|
|
360
|
+
InternalServerException?: never;
|
|
361
|
+
ThrottlingException?: never;
|
|
362
|
+
ServiceQuotaExceededException?: never;
|
|
363
|
+
ServiceUnavailableException: ServiceUnavailableException;
|
|
327
364
|
$unknown?: never;
|
|
328
365
|
}
|
|
329
366
|
interface $UnknownMember {
|
|
@@ -333,6 +370,7 @@ export declare namespace LivenessResponseStream {
|
|
|
333
370
|
InternalServerException?: never;
|
|
334
371
|
ThrottlingException?: never;
|
|
335
372
|
ServiceQuotaExceededException?: never;
|
|
373
|
+
ServiceUnavailableException?: never;
|
|
336
374
|
$unknown: [string, any];
|
|
337
375
|
}
|
|
338
376
|
interface Visitor<T> {
|
|
@@ -342,6 +380,7 @@ export declare namespace LivenessResponseStream {
|
|
|
342
380
|
InternalServerException: (value: InternalServerException) => T;
|
|
343
381
|
ThrottlingException: (value: ThrottlingException) => T;
|
|
344
382
|
ServiceQuotaExceededException: (value: ServiceQuotaExceededException) => T;
|
|
383
|
+
ServiceUnavailableException: (value: ServiceUnavailableException) => T;
|
|
345
384
|
_: (name: string, value: any) => T;
|
|
346
385
|
}
|
|
347
386
|
const visit: <T>(value: LivenessResponseStream, visitor: Visitor<T>) => T;
|
|
@@ -364,7 +403,9 @@ export declare class SessionNotFoundException extends __BaseException {
|
|
|
364
403
|
*/
|
|
365
404
|
export interface StartFaceLivenessSessionRequest {
|
|
366
405
|
SessionId: string | undefined;
|
|
367
|
-
|
|
406
|
+
VideoWidth: string | undefined;
|
|
407
|
+
VideoHeight: string | undefined;
|
|
408
|
+
ChallengeVersions?: string;
|
|
368
409
|
LivenessRequestStream?: AsyncIterable<LivenessRequestStream>;
|
|
369
410
|
}
|
|
370
411
|
/**
|
|
@@ -374,21 +415,6 @@ export interface StartFaceLivenessSessionResponse {
|
|
|
374
415
|
SessionId: string | undefined;
|
|
375
416
|
LivenessResponseStream?: AsyncIterable<LivenessResponseStream>;
|
|
376
417
|
}
|
|
377
|
-
/**
|
|
378
|
-
* @public
|
|
379
|
-
*/
|
|
380
|
-
export interface StartStreamingLivenessSessionRequest {
|
|
381
|
-
SessionId: string | undefined;
|
|
382
|
-
ClientSDKVersion: string | undefined;
|
|
383
|
-
LivenessRequestStream?: AsyncIterable<LivenessRequestStream>;
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* @public
|
|
387
|
-
*/
|
|
388
|
-
export interface StartStreamingLivenessSessionResponse {
|
|
389
|
-
SessionId: string | undefined;
|
|
390
|
-
LivenessResponseStream?: AsyncIterable<LivenessResponseStream>;
|
|
391
|
-
}
|
|
392
418
|
/**
|
|
393
419
|
* @internal
|
|
394
420
|
*/
|
|
@@ -405,11 +431,3 @@ export declare const StartFaceLivenessSessionRequestFilterSensitiveLog: (obj: St
|
|
|
405
431
|
* @internal
|
|
406
432
|
*/
|
|
407
433
|
export declare const StartFaceLivenessSessionResponseFilterSensitiveLog: (obj: StartFaceLivenessSessionResponse) => any;
|
|
408
|
-
/**
|
|
409
|
-
* @internal
|
|
410
|
-
*/
|
|
411
|
-
export declare const StartStreamingLivenessSessionRequestFilterSensitiveLog: (obj: StartStreamingLivenessSessionRequest) => any;
|
|
412
|
-
/**
|
|
413
|
-
* @internal
|
|
414
|
-
*/
|
|
415
|
-
export declare const StartStreamingLivenessSessionResponseFilterSensitiveLog: (obj: StartStreamingLivenessSessionResponse) => any;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { EventStreamSerdeContext as __EventStreamSerdeContext, SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
3
|
import { StartFaceLivenessSessionCommandInput, StartFaceLivenessSessionCommandOutput } from "../commands/StartFaceLivenessSessionCommand";
|
|
4
|
-
import { StartStreamingLivenessSessionCommandInput, StartStreamingLivenessSessionCommandOutput } from "../commands/StartStreamingLivenessSessionCommand";
|
|
5
4
|
export declare const serializeAws_restJson1StartFaceLivenessSessionCommand: (input: StartFaceLivenessSessionCommandInput, context: __SerdeContext & __EventStreamSerdeContext) => Promise<__HttpRequest>;
|
|
6
|
-
export declare const serializeAws_restJson1StartStreamingLivenessSessionCommand: (input: StartStreamingLivenessSessionCommandInput, context: __SerdeContext & __EventStreamSerdeContext) => Promise<__HttpRequest>;
|
|
7
5
|
export declare const deserializeAws_restJson1StartFaceLivenessSessionCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<StartFaceLivenessSessionCommandOutput>;
|
|
8
|
-
export declare const deserializeAws_restJson1StartStreamingLivenessSessionCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<StartStreamingLivenessSessionCommandOutput>;
|
|
@@ -28,7 +28,7 @@ export declare const getRuntimeConfig: (config: RekognitionStreamingClientConfig
|
|
|
28
28
|
disableHostPrefix: boolean;
|
|
29
29
|
serviceId: string;
|
|
30
30
|
logger: import("@aws-sdk/types").Logger;
|
|
31
|
-
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").
|
|
31
|
+
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
|
|
32
32
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
33
33
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
34
34
|
}) => import("@aws-sdk/types").EndpointV2;
|
|
@@ -28,7 +28,7 @@ export declare const getRuntimeConfig: (config: RekognitionStreamingClientConfig
|
|
|
28
28
|
disableHostPrefix: boolean;
|
|
29
29
|
serviceId: string;
|
|
30
30
|
logger: import("@aws-sdk/types").Logger;
|
|
31
|
-
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").
|
|
31
|
+
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
|
|
32
32
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
33
33
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
34
34
|
}) => import("@aws-sdk/types").EndpointV2;
|
|
@@ -3,10 +3,6 @@ import {
|
|
|
3
3
|
StartFaceLivenessSessionCommandInput,
|
|
4
4
|
StartFaceLivenessSessionCommandOutput,
|
|
5
5
|
} from "./commands/StartFaceLivenessSessionCommand";
|
|
6
|
-
import {
|
|
7
|
-
StartStreamingLivenessSessionCommandInput,
|
|
8
|
-
StartStreamingLivenessSessionCommandOutput,
|
|
9
|
-
} from "./commands/StartStreamingLivenessSessionCommand";
|
|
10
6
|
import { RekognitionStreamingClient } from "./RekognitionStreamingClient";
|
|
11
7
|
export declare class RekognitionStreaming extends RekognitionStreamingClient {
|
|
12
8
|
startFaceLivenessSession(
|
|
@@ -22,17 +18,4 @@ export declare class RekognitionStreaming extends RekognitionStreamingClient {
|
|
|
22
18
|
options: __HttpHandlerOptions,
|
|
23
19
|
cb: (err: any, data?: StartFaceLivenessSessionCommandOutput) => void
|
|
24
20
|
): void;
|
|
25
|
-
startStreamingLivenessSession(
|
|
26
|
-
args: StartStreamingLivenessSessionCommandInput,
|
|
27
|
-
options?: __HttpHandlerOptions
|
|
28
|
-
): Promise<StartStreamingLivenessSessionCommandOutput>;
|
|
29
|
-
startStreamingLivenessSession(
|
|
30
|
-
args: StartStreamingLivenessSessionCommandInput,
|
|
31
|
-
cb: (err: any, data?: StartStreamingLivenessSessionCommandOutput) => void
|
|
32
|
-
): void;
|
|
33
|
-
startStreamingLivenessSession(
|
|
34
|
-
args: StartStreamingLivenessSessionCommandInput,
|
|
35
|
-
options: __HttpHandlerOptions,
|
|
36
|
-
cb: (err: any, data?: StartStreamingLivenessSessionCommandOutput) => void
|
|
37
|
-
): void;
|
|
38
21
|
}
|
|
@@ -62,21 +62,13 @@ import {
|
|
|
62
62
|
StartFaceLivenessSessionCommandInput,
|
|
63
63
|
StartFaceLivenessSessionCommandOutput,
|
|
64
64
|
} from "./commands/StartFaceLivenessSessionCommand";
|
|
65
|
-
import {
|
|
66
|
-
StartStreamingLivenessSessionCommandInput,
|
|
67
|
-
StartStreamingLivenessSessionCommandOutput,
|
|
68
|
-
} from "./commands/StartStreamingLivenessSessionCommand";
|
|
69
65
|
import {
|
|
70
66
|
ClientInputEndpointParameters,
|
|
71
67
|
ClientResolvedEndpointParameters,
|
|
72
68
|
EndpointParameters,
|
|
73
69
|
} from "./endpoint/EndpointParameters";
|
|
74
|
-
export type ServiceInputTypes =
|
|
75
|
-
|
|
76
|
-
| StartStreamingLivenessSessionCommandInput;
|
|
77
|
-
export type ServiceOutputTypes =
|
|
78
|
-
| StartFaceLivenessSessionCommandOutput
|
|
79
|
-
| StartStreamingLivenessSessionCommandOutput;
|
|
70
|
+
export type ServiceInputTypes = StartFaceLivenessSessionCommandInput;
|
|
71
|
+
export type ServiceOutputTypes = StartFaceLivenessSessionCommandOutput;
|
|
80
72
|
export interface ClientDefaults
|
|
81
73
|
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
82
74
|
requestHandler?: __HttpHandler;
|