@aws-sdk/client-rekognitionstreaming 3.927.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 +5 -5
- 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
|
@@ -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.rekognitionstreaming" }),
|
|
28
30
|
serviceId: config?.serviceId ?? "RekognitionStreaming",
|
|
29
31
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
32
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
@@ -6,6 +6,7 @@ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware
|
|
|
6
6
|
import { resolveWebSocketConfig } from "@aws-sdk/middleware-websocket";
|
|
7
7
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
8
8
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
9
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
9
10
|
import { resolveEventStreamSerdeConfig, } from "@smithy/eventstream-serde-config-resolver";
|
|
10
11
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
11
12
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
@@ -34,6 +35,7 @@ export class RekognitionStreamingClient extends __Client {
|
|
|
34
35
|
const _config_10 = resolveWebSocketConfig(_config_9);
|
|
35
36
|
const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
|
|
36
37
|
this.config = _config_11;
|
|
38
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
37
39
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
38
40
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
39
41
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
|
|
2
2
|
import { getWebSocketPlugin } from "@aws-sdk/middleware-websocket";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
4
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
5
4
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
6
5
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
7
|
-
import {
|
|
8
|
-
import { de_StartFaceLivenessSessionCommand, se_StartFaceLivenessSessionCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
import { StartFaceLivenessSession } from "../schemas/schemas_0";
|
|
9
7
|
export { $Command };
|
|
10
8
|
export class StartFaceLivenessSessionCommand extends $Command
|
|
11
9
|
.classBuilder()
|
|
12
10
|
.ep(commonParams)
|
|
13
11
|
.m(function (Command, cs, config, o) {
|
|
14
12
|
return [
|
|
15
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
13
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
14
|
getEventStreamPlugin(config),
|
|
18
15
|
getWebSocketPlugin(config, {
|
|
@@ -27,8 +24,6 @@ export class StartFaceLivenessSessionCommand extends $Command
|
|
|
27
24
|
},
|
|
28
25
|
})
|
|
29
26
|
.n("RekognitionStreamingClient", "StartFaceLivenessSessionCommand")
|
|
30
|
-
.
|
|
31
|
-
.ser(se_StartFaceLivenessSessionCommand)
|
|
32
|
-
.de(de_StartFaceLivenessSessionCommand)
|
|
27
|
+
.sc(StartFaceLivenessSession)
|
|
33
28
|
.build() {
|
|
34
29
|
}
|
|
@@ -170,39 +170,3 @@ export class SessionNotFoundException extends __BaseException {
|
|
|
170
170
|
this.Code = opts.Code;
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
export const LivenessRequestStreamFilterSensitiveLog = (obj) => {
|
|
174
|
-
if (obj.VideoEvent !== undefined)
|
|
175
|
-
return { VideoEvent: obj.VideoEvent };
|
|
176
|
-
if (obj.ClientSessionInformationEvent !== undefined)
|
|
177
|
-
return { ClientSessionInformationEvent: obj.ClientSessionInformationEvent };
|
|
178
|
-
if (obj.$unknown !== undefined)
|
|
179
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
180
|
-
};
|
|
181
|
-
export const LivenessResponseStreamFilterSensitiveLog = (obj) => {
|
|
182
|
-
if (obj.ServerSessionInformationEvent !== undefined)
|
|
183
|
-
return { ServerSessionInformationEvent: obj.ServerSessionInformationEvent };
|
|
184
|
-
if (obj.DisconnectionEvent !== undefined)
|
|
185
|
-
return { DisconnectionEvent: obj.DisconnectionEvent };
|
|
186
|
-
if (obj.ChallengeEvent !== undefined)
|
|
187
|
-
return { ChallengeEvent: obj.ChallengeEvent };
|
|
188
|
-
if (obj.ValidationException !== undefined)
|
|
189
|
-
return { ValidationException: obj.ValidationException };
|
|
190
|
-
if (obj.InternalServerException !== undefined)
|
|
191
|
-
return { InternalServerException: obj.InternalServerException };
|
|
192
|
-
if (obj.ThrottlingException !== undefined)
|
|
193
|
-
return { ThrottlingException: obj.ThrottlingException };
|
|
194
|
-
if (obj.ServiceQuotaExceededException !== undefined)
|
|
195
|
-
return { ServiceQuotaExceededException: obj.ServiceQuotaExceededException };
|
|
196
|
-
if (obj.ServiceUnavailableException !== undefined)
|
|
197
|
-
return { ServiceUnavailableException: obj.ServiceUnavailableException };
|
|
198
|
-
if (obj.$unknown !== undefined)
|
|
199
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
200
|
-
};
|
|
201
|
-
export const StartFaceLivenessSessionRequestFilterSensitiveLog = (obj) => ({
|
|
202
|
-
...obj,
|
|
203
|
-
...(obj.LivenessRequestStream && { LivenessRequestStream: "STREAMING_CONTENT" }),
|
|
204
|
-
});
|
|
205
|
-
export const StartFaceLivenessSessionResponseFilterSensitiveLog = (obj) => ({
|
|
206
|
-
...obj,
|
|
207
|
-
...(obj.LivenessResponseStream && { LivenessResponseStream: "STREAMING_CONTENT" }),
|
|
208
|
-
});
|
|
@@ -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.rekognitionstreaming" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "RekognitionStreaming",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
const _ADE = "AccessDeniedException";
|
|
2
|
+
const _BB = "BoundingBox";
|
|
3
|
+
const _BFDT = "BlazeFaceDetectionThreshold";
|
|
4
|
+
const _C = "Code";
|
|
5
|
+
const _CC = "ChallengeConfig";
|
|
6
|
+
const _CCST = "CurrentColorStartTimestamp";
|
|
7
|
+
const _CCl = "ClientChallenge";
|
|
8
|
+
const _CCu = "CurrentColor";
|
|
9
|
+
const _CD = "ColorDisplayed";
|
|
10
|
+
const _CE = "ChallengeEvent";
|
|
11
|
+
const _CI = "ChallengeId";
|
|
12
|
+
const _CS = "ColorSequence";
|
|
13
|
+
const _CSIE = "ClientSessionInformationEvent";
|
|
14
|
+
const _CSo = "ColorSequences";
|
|
15
|
+
const _CV = "ChallengeVersions";
|
|
16
|
+
const _CX = "CenterX";
|
|
17
|
+
const _CY = "CenterY";
|
|
18
|
+
const _Ch = "Challenge";
|
|
19
|
+
const _DD = "DownscrollDuration";
|
|
20
|
+
const _DE = "DisconnectionEvent";
|
|
21
|
+
const _FC = "FreshnessColor";
|
|
22
|
+
const _FDD = "FlatDisplayDuration";
|
|
23
|
+
const _FDITPET = "FaceDetectedInTargetPositionEndTimestamp";
|
|
24
|
+
const _FDITPST = "FaceDetectedInTargetPositionStartTimestamp";
|
|
25
|
+
const _FDT = "FaceDistanceThreshold";
|
|
26
|
+
const _FDTM = "FaceDistanceThresholdMin";
|
|
27
|
+
const _FDTMa = "FaceDistanceThresholdMax";
|
|
28
|
+
const _FIHT = "FaceIouHeightThreshold";
|
|
29
|
+
const _FIWT = "FaceIouWidthThreshold";
|
|
30
|
+
const _FMALC = "FaceMovementAndLightChallenge";
|
|
31
|
+
const _FMALCC = "FaceMovementAndLightClientChallenge";
|
|
32
|
+
const _FMALSC = "FaceMovementAndLightServerChallenge";
|
|
33
|
+
const _FMC = "FaceMovementChallenge";
|
|
34
|
+
const _FMCC = "FaceMovementClientChallenge";
|
|
35
|
+
const _FMSC = "FaceMovementServerChallenge";
|
|
36
|
+
const _H = "Height";
|
|
37
|
+
const _IF = "InitialFace";
|
|
38
|
+
const _IFDT = "InitialFaceDetectedTimestamp";
|
|
39
|
+
const _ISE = "InternalServerException";
|
|
40
|
+
const _L = "Left";
|
|
41
|
+
const _LCT = "LightChallengeType";
|
|
42
|
+
const _LRS = "LivenessRequestStream";
|
|
43
|
+
const _LRSi = "LivenessResponseStream";
|
|
44
|
+
const _M = "Message";
|
|
45
|
+
const _OFT = "OvalFitTimeout";
|
|
46
|
+
const _OHWR = "OvalHeightWidthRatio";
|
|
47
|
+
const _OIHT = "OvalIouHeightThreshold";
|
|
48
|
+
const _OIT = "OvalIouThreshold";
|
|
49
|
+
const _OIWT = "OvalIouWidthThreshold";
|
|
50
|
+
const _OP = "OvalParameters";
|
|
51
|
+
const _PC = "PreviousColor";
|
|
52
|
+
const _RGB = "RGB";
|
|
53
|
+
const _SC = "ServerChallenge";
|
|
54
|
+
const _SFLS = "StartFaceLivenessSession";
|
|
55
|
+
const _SFLSR = "StartFaceLivenessSessionRequest";
|
|
56
|
+
const _SFLSRt = "StartFaceLivenessSessionResponse";
|
|
57
|
+
const _SI = "SessionInformation";
|
|
58
|
+
const _SIe = "SessionId";
|
|
59
|
+
const _SN = "SequenceNumber";
|
|
60
|
+
const _SNFE = "SessionNotFoundException";
|
|
61
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
62
|
+
const _SSIE = "ServerSessionInformationEvent";
|
|
63
|
+
const _SUE = "ServiceUnavailableException";
|
|
64
|
+
const _T = "Top";
|
|
65
|
+
const _TE = "ThrottlingException";
|
|
66
|
+
const _TF = "TargetFace";
|
|
67
|
+
const _TM = "TimestampMillis";
|
|
68
|
+
const _Ty = "Type";
|
|
69
|
+
const _V = "Version";
|
|
70
|
+
const _VC = "VideoChunk";
|
|
71
|
+
const _VE = "ValidationException";
|
|
72
|
+
const _VET = "VideoEndTimestamp";
|
|
73
|
+
const _VEi = "VideoEvent";
|
|
74
|
+
const _VH = "VideoHeight";
|
|
75
|
+
const _VST = "VideoStartTimestamp";
|
|
76
|
+
const _VW = "VideoWidth";
|
|
77
|
+
const _W = "Width";
|
|
78
|
+
const _c = "client";
|
|
79
|
+
const _e = "error";
|
|
80
|
+
const _h = "http";
|
|
81
|
+
const _hE = "httpError";
|
|
82
|
+
const _hH = "httpHeader";
|
|
83
|
+
const _s = "server";
|
|
84
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.rekognitionstreaming";
|
|
85
|
+
const _st = "streaming";
|
|
86
|
+
const _xarslcv = "x-amz-rekognition-streaming-liveness-challenge-versions";
|
|
87
|
+
const _xarslsi = "x-amz-rekognition-streaming-liveness-session-id";
|
|
88
|
+
const _xarslvh = "x-amz-rekognition-streaming-liveness-video-height";
|
|
89
|
+
const _xarslvw = "x-amz-rekognition-streaming-liveness-video-width";
|
|
90
|
+
const n0 = "com.amazonaws.rekognitionstreaming";
|
|
91
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
92
|
+
import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ServiceUnavailableException as __ServiceUnavailableException, SessionNotFoundException as __SessionNotFoundException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/index";
|
|
93
|
+
import { RekognitionStreamingServiceException as __RekognitionStreamingServiceException } from "../models/RekognitionStreamingServiceException";
|
|
94
|
+
export var AccessDeniedException = [
|
|
95
|
+
-3,
|
|
96
|
+
n0,
|
|
97
|
+
_ADE,
|
|
98
|
+
{
|
|
99
|
+
[_e]: _c,
|
|
100
|
+
[_hE]: 403,
|
|
101
|
+
},
|
|
102
|
+
[_M, _C],
|
|
103
|
+
[0, 0],
|
|
104
|
+
];
|
|
105
|
+
TypeRegistry.for(n0).registerError(AccessDeniedException, __AccessDeniedException);
|
|
106
|
+
export var BoundingBox = [3, n0, _BB, 0, [_W, _H, _L, _T], [1, 1, 1, 1]];
|
|
107
|
+
export var ChallengeConfig = [
|
|
108
|
+
3,
|
|
109
|
+
n0,
|
|
110
|
+
_CC,
|
|
111
|
+
0,
|
|
112
|
+
[_BFDT, _FDTM, _FDT, _FDTMa, _OIT, _OHWR, _OIWT, _OIHT, _FIWT, _FIHT, _OFT],
|
|
113
|
+
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
|
|
114
|
+
];
|
|
115
|
+
export var ChallengeEvent = [3, n0, _CE, 0, [_V, _Ty], [0, 0]];
|
|
116
|
+
export var ClientSessionInformationEvent = [3, n0, _CSIE, 0, [_Ch], [() => ClientChallenge]];
|
|
117
|
+
export var ColorDisplayed = [
|
|
118
|
+
3,
|
|
119
|
+
n0,
|
|
120
|
+
_CD,
|
|
121
|
+
0,
|
|
122
|
+
[_CCu, _PC, _SN, _CCST],
|
|
123
|
+
[() => FreshnessColor, () => FreshnessColor, 1, 1],
|
|
124
|
+
];
|
|
125
|
+
export var ColorSequence = [3, n0, _CS, 0, [_FC, _DD, _FDD], [() => FreshnessColor, 1, 1]];
|
|
126
|
+
export var DisconnectionEvent = [3, n0, _DE, 0, [_TM], [1]];
|
|
127
|
+
export var FaceMovementAndLightClientChallenge = [
|
|
128
|
+
3,
|
|
129
|
+
n0,
|
|
130
|
+
_FMALCC,
|
|
131
|
+
0,
|
|
132
|
+
[_CI, _VST, _VET, _IF, _TF, _CD],
|
|
133
|
+
[0, 1, 1, () => InitialFace, () => TargetFace, () => ColorDisplayed],
|
|
134
|
+
];
|
|
135
|
+
export var FaceMovementAndLightServerChallenge = [
|
|
136
|
+
3,
|
|
137
|
+
n0,
|
|
138
|
+
_FMALSC,
|
|
139
|
+
0,
|
|
140
|
+
[_OP, _LCT, _CC, _CSo],
|
|
141
|
+
[() => OvalParameters, 0, () => ChallengeConfig, () => ColorSequences],
|
|
142
|
+
];
|
|
143
|
+
export var FaceMovementClientChallenge = [
|
|
144
|
+
3,
|
|
145
|
+
n0,
|
|
146
|
+
_FMCC,
|
|
147
|
+
0,
|
|
148
|
+
[_CI, _VST, _VET, _IF, _TF],
|
|
149
|
+
[0, 1, 1, () => InitialFace, () => TargetFace],
|
|
150
|
+
];
|
|
151
|
+
export var FaceMovementServerChallenge = [
|
|
152
|
+
3,
|
|
153
|
+
n0,
|
|
154
|
+
_FMSC,
|
|
155
|
+
0,
|
|
156
|
+
[_OP, _CC],
|
|
157
|
+
[() => OvalParameters, () => ChallengeConfig],
|
|
158
|
+
];
|
|
159
|
+
export var FreshnessColor = [3, n0, _FC, 0, [_RGB], [64 | 1]];
|
|
160
|
+
export var InitialFace = [3, n0, _IF, 0, [_BB, _IFDT], [() => BoundingBox, 1]];
|
|
161
|
+
export var InternalServerException = [
|
|
162
|
+
-3,
|
|
163
|
+
n0,
|
|
164
|
+
_ISE,
|
|
165
|
+
{
|
|
166
|
+
[_e]: _s,
|
|
167
|
+
[_hE]: 500,
|
|
168
|
+
},
|
|
169
|
+
[_M, _C],
|
|
170
|
+
[0, 0],
|
|
171
|
+
];
|
|
172
|
+
TypeRegistry.for(n0).registerError(InternalServerException, __InternalServerException);
|
|
173
|
+
export var OvalParameters = [3, n0, _OP, 0, [_W, _H, _CX, _CY], [1, 1, 1, 1]];
|
|
174
|
+
export var ServerSessionInformationEvent = [3, n0, _SSIE, 0, [_SI], [() => SessionInformation]];
|
|
175
|
+
export var ServiceQuotaExceededException = [
|
|
176
|
+
-3,
|
|
177
|
+
n0,
|
|
178
|
+
_SQEE,
|
|
179
|
+
{
|
|
180
|
+
[_e]: _c,
|
|
181
|
+
[_hE]: 429,
|
|
182
|
+
},
|
|
183
|
+
[_M, _C],
|
|
184
|
+
[0, 0],
|
|
185
|
+
];
|
|
186
|
+
TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, __ServiceQuotaExceededException);
|
|
187
|
+
export var ServiceUnavailableException = [
|
|
188
|
+
-3,
|
|
189
|
+
n0,
|
|
190
|
+
_SUE,
|
|
191
|
+
{
|
|
192
|
+
[_e]: _s,
|
|
193
|
+
[_hE]: 503,
|
|
194
|
+
},
|
|
195
|
+
[_M, _C],
|
|
196
|
+
[0, 0],
|
|
197
|
+
];
|
|
198
|
+
TypeRegistry.for(n0).registerError(ServiceUnavailableException, __ServiceUnavailableException);
|
|
199
|
+
export var SessionInformation = [3, n0, _SI, 0, [_Ch], [() => ServerChallenge]];
|
|
200
|
+
export var SessionNotFoundException = [
|
|
201
|
+
-3,
|
|
202
|
+
n0,
|
|
203
|
+
_SNFE,
|
|
204
|
+
{
|
|
205
|
+
[_e]: _c,
|
|
206
|
+
[_hE]: 400,
|
|
207
|
+
},
|
|
208
|
+
[_M, _C],
|
|
209
|
+
[0, 0],
|
|
210
|
+
];
|
|
211
|
+
TypeRegistry.for(n0).registerError(SessionNotFoundException, __SessionNotFoundException);
|
|
212
|
+
export var StartFaceLivenessSessionRequest = [
|
|
213
|
+
3,
|
|
214
|
+
n0,
|
|
215
|
+
_SFLSR,
|
|
216
|
+
0,
|
|
217
|
+
[_SIe, _VW, _VH, _CV, _LRS],
|
|
218
|
+
[
|
|
219
|
+
[
|
|
220
|
+
0,
|
|
221
|
+
{
|
|
222
|
+
[_hH]: _xarslsi,
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
[
|
|
226
|
+
0,
|
|
227
|
+
{
|
|
228
|
+
[_hH]: _xarslvw,
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
[
|
|
232
|
+
0,
|
|
233
|
+
{
|
|
234
|
+
[_hH]: _xarslvh,
|
|
235
|
+
},
|
|
236
|
+
],
|
|
237
|
+
[
|
|
238
|
+
0,
|
|
239
|
+
{
|
|
240
|
+
[_hH]: _xarslcv,
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
[() => LivenessRequestStream, 16],
|
|
244
|
+
],
|
|
245
|
+
];
|
|
246
|
+
export var StartFaceLivenessSessionResponse = [
|
|
247
|
+
3,
|
|
248
|
+
n0,
|
|
249
|
+
_SFLSRt,
|
|
250
|
+
0,
|
|
251
|
+
[_SIe, _LRSi],
|
|
252
|
+
[
|
|
253
|
+
[
|
|
254
|
+
0,
|
|
255
|
+
{
|
|
256
|
+
[_hH]: _xarslsi,
|
|
257
|
+
},
|
|
258
|
+
],
|
|
259
|
+
[() => LivenessResponseStream, 16],
|
|
260
|
+
],
|
|
261
|
+
];
|
|
262
|
+
export var TargetFace = [3, n0, _TF, 0, [_BB, _FDITPST, _FDITPET], [() => BoundingBox, 1, 1]];
|
|
263
|
+
export var ThrottlingException = [
|
|
264
|
+
-3,
|
|
265
|
+
n0,
|
|
266
|
+
_TE,
|
|
267
|
+
{
|
|
268
|
+
[_e]: _c,
|
|
269
|
+
[_hE]: 429,
|
|
270
|
+
},
|
|
271
|
+
[_M, _C],
|
|
272
|
+
[0, 0],
|
|
273
|
+
];
|
|
274
|
+
TypeRegistry.for(n0).registerError(ThrottlingException, __ThrottlingException);
|
|
275
|
+
export var ValidationException = [
|
|
276
|
+
-3,
|
|
277
|
+
n0,
|
|
278
|
+
_VE,
|
|
279
|
+
{
|
|
280
|
+
[_e]: _c,
|
|
281
|
+
[_hE]: 400,
|
|
282
|
+
},
|
|
283
|
+
[_M, _C],
|
|
284
|
+
[0, 0],
|
|
285
|
+
];
|
|
286
|
+
TypeRegistry.for(n0).registerError(ValidationException, __ValidationException);
|
|
287
|
+
export var VideoEvent = [3, n0, _VEi, 0, [_VC, _TM], [21, 1]];
|
|
288
|
+
export var __Unit = "unit";
|
|
289
|
+
export var RekognitionStreamingServiceException = [
|
|
290
|
+
-3,
|
|
291
|
+
_sm,
|
|
292
|
+
"RekognitionStreamingServiceException",
|
|
293
|
+
0,
|
|
294
|
+
[],
|
|
295
|
+
[],
|
|
296
|
+
];
|
|
297
|
+
TypeRegistry.for(_sm).registerError(RekognitionStreamingServiceException, __RekognitionStreamingServiceException);
|
|
298
|
+
export var ColorComponentList = 64 | 1;
|
|
299
|
+
export var ColorSequences = [1, n0, _CSo, 0, () => ColorSequence];
|
|
300
|
+
export var ClientChallenge = [
|
|
301
|
+
3,
|
|
302
|
+
n0,
|
|
303
|
+
_CCl,
|
|
304
|
+
0,
|
|
305
|
+
[_FMALC, _FMC],
|
|
306
|
+
[() => FaceMovementAndLightClientChallenge, () => FaceMovementClientChallenge],
|
|
307
|
+
];
|
|
308
|
+
export var LivenessRequestStream = [
|
|
309
|
+
3,
|
|
310
|
+
n0,
|
|
311
|
+
_LRS,
|
|
312
|
+
{
|
|
313
|
+
[_st]: 1,
|
|
314
|
+
},
|
|
315
|
+
[_VEi, _CSIE],
|
|
316
|
+
[() => VideoEvent, () => ClientSessionInformationEvent],
|
|
317
|
+
];
|
|
318
|
+
export var LivenessResponseStream = [
|
|
319
|
+
3,
|
|
320
|
+
n0,
|
|
321
|
+
_LRSi,
|
|
322
|
+
{
|
|
323
|
+
[_st]: 1,
|
|
324
|
+
},
|
|
325
|
+
[_SSIE, _DE, _CE, _VE, _ISE, _TE, _SQEE, _SUE],
|
|
326
|
+
[
|
|
327
|
+
() => ServerSessionInformationEvent,
|
|
328
|
+
() => DisconnectionEvent,
|
|
329
|
+
() => ChallengeEvent,
|
|
330
|
+
[() => ValidationException, 0],
|
|
331
|
+
[() => InternalServerException, 0],
|
|
332
|
+
[() => ThrottlingException, 0],
|
|
333
|
+
[() => ServiceQuotaExceededException, 0],
|
|
334
|
+
[() => ServiceUnavailableException, 0],
|
|
335
|
+
],
|
|
336
|
+
];
|
|
337
|
+
export var ServerChallenge = [
|
|
338
|
+
3,
|
|
339
|
+
n0,
|
|
340
|
+
_SC,
|
|
341
|
+
0,
|
|
342
|
+
[_FMALC, _FMC],
|
|
343
|
+
[() => FaceMovementAndLightServerChallenge, () => FaceMovementServerChallenge],
|
|
344
|
+
];
|
|
345
|
+
export var StartFaceLivenessSession = [
|
|
346
|
+
9,
|
|
347
|
+
n0,
|
|
348
|
+
_SFLS,
|
|
349
|
+
{
|
|
350
|
+
[_h]: ["POST", "/start-face-liveness-session", 200],
|
|
351
|
+
},
|
|
352
|
+
() => StartFaceLivenessSessionRequest,
|
|
353
|
+
() => StartFaceLivenessSessionResponse,
|
|
354
|
+
];
|
|
@@ -9,7 +9,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
|
|
|
9
9
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
10
10
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
11
11
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
12
|
-
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, 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 "@smithy/types";
|
|
12
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, 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";
|
|
13
13
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
14
14
|
import { StartFaceLivenessSessionCommandInput, StartFaceLivenessSessionCommandOutput } from "./commands/StartFaceLivenessSessionCommand";
|
|
15
15
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
@@ -146,6 +146,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
146
146
|
* Optional extensions
|
|
147
147
|
*/
|
|
148
148
|
extensions?: RuntimeExtension[];
|
|
149
|
+
/**
|
|
150
|
+
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
|
|
151
|
+
* may be overridden. A default will always be set by the client.
|
|
152
|
+
* Available options depend on the service's supported protocols and will not be validated by
|
|
153
|
+
* the client.
|
|
154
|
+
* @alpha
|
|
155
|
+
*
|
|
156
|
+
*/
|
|
157
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
149
158
|
/**
|
|
150
159
|
* The function that provides necessary utilities for generating and parsing event stream
|
|
151
160
|
*/
|
|
@@ -839,19 +839,3 @@ export interface StartFaceLivenessSessionResponse {
|
|
|
839
839
|
*/
|
|
840
840
|
LivenessResponseStream?: AsyncIterable<LivenessResponseStream> | undefined;
|
|
841
841
|
}
|
|
842
|
-
/**
|
|
843
|
-
* @internal
|
|
844
|
-
*/
|
|
845
|
-
export declare const LivenessRequestStreamFilterSensitiveLog: (obj: LivenessRequestStream) => any;
|
|
846
|
-
/**
|
|
847
|
-
* @internal
|
|
848
|
-
*/
|
|
849
|
-
export declare const LivenessResponseStreamFilterSensitiveLog: (obj: LivenessResponseStream) => any;
|
|
850
|
-
/**
|
|
851
|
-
* @internal
|
|
852
|
-
*/
|
|
853
|
-
export declare const StartFaceLivenessSessionRequestFilterSensitiveLog: (obj: StartFaceLivenessSessionRequest) => any;
|
|
854
|
-
/**
|
|
855
|
-
* @internal
|
|
856
|
-
*/
|
|
857
|
-
export declare const StartFaceLivenessSessionResponseFilterSensitiveLog: (obj: StartFaceLivenessSessionResponse) => any;
|
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: RekognitionStreamingClientConfig
|
|
|
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
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
36
37
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
@@ -33,6 +33,7 @@ export declare const getRuntimeConfig: (config: RekognitionStreamingClientConfig
|
|
|
33
33
|
profile?: string;
|
|
34
34
|
logger: import("@smithy/types").Logger;
|
|
35
35
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
36
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
36
37
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
37
38
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
38
39
|
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;
|
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: RekognitionStreamingClientConfig
|
|
|
31
31
|
retryMode: string | import("@smithy/types").Provider<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
|
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
|
|
35
36
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
36
37
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: RekognitionStreamingClientConfig
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").RekognitionStreamingHttpAuthSchemeProvider;
|
|
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,37 @@
|
|
|
1
|
+
import { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
+
export declare var AccessDeniedException: StaticErrorSchema;
|
|
3
|
+
export declare var BoundingBox: StaticStructureSchema;
|
|
4
|
+
export declare var ChallengeConfig: StaticStructureSchema;
|
|
5
|
+
export declare var ChallengeEvent: StaticStructureSchema;
|
|
6
|
+
export declare var ClientSessionInformationEvent: StaticStructureSchema;
|
|
7
|
+
export declare var ColorDisplayed: StaticStructureSchema;
|
|
8
|
+
export declare var ColorSequence: StaticStructureSchema;
|
|
9
|
+
export declare var DisconnectionEvent: StaticStructureSchema;
|
|
10
|
+
export declare var FaceMovementAndLightClientChallenge: StaticStructureSchema;
|
|
11
|
+
export declare var FaceMovementAndLightServerChallenge: StaticStructureSchema;
|
|
12
|
+
export declare var FaceMovementClientChallenge: StaticStructureSchema;
|
|
13
|
+
export declare var FaceMovementServerChallenge: StaticStructureSchema;
|
|
14
|
+
export declare var FreshnessColor: StaticStructureSchema;
|
|
15
|
+
export declare var InitialFace: StaticStructureSchema;
|
|
16
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
17
|
+
export declare var OvalParameters: StaticStructureSchema;
|
|
18
|
+
export declare var ServerSessionInformationEvent: StaticStructureSchema;
|
|
19
|
+
export declare var ServiceQuotaExceededException: StaticErrorSchema;
|
|
20
|
+
export declare var ServiceUnavailableException: StaticErrorSchema;
|
|
21
|
+
export declare var SessionInformation: StaticStructureSchema;
|
|
22
|
+
export declare var SessionNotFoundException: StaticErrorSchema;
|
|
23
|
+
export declare var StartFaceLivenessSessionRequest: StaticStructureSchema;
|
|
24
|
+
export declare var StartFaceLivenessSessionResponse: StaticStructureSchema;
|
|
25
|
+
export declare var TargetFace: StaticStructureSchema;
|
|
26
|
+
export declare var ThrottlingException: StaticErrorSchema;
|
|
27
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
28
|
+
export declare var VideoEvent: StaticStructureSchema;
|
|
29
|
+
export declare var __Unit: "unit";
|
|
30
|
+
export declare var RekognitionStreamingServiceException: StaticErrorSchema;
|
|
31
|
+
export declare var ColorComponentList: number;
|
|
32
|
+
export declare var ColorSequences: StaticListSchema;
|
|
33
|
+
export declare var ClientChallenge: StaticStructureSchema;
|
|
34
|
+
export declare var LivenessRequestStream: StaticStructureSchema;
|
|
35
|
+
export declare var LivenessResponseStream: StaticStructureSchema;
|
|
36
|
+
export declare var ServerChallenge: StaticStructureSchema;
|
|
37
|
+
export declare var StartFaceLivenessSession: StaticOperationSchema;
|
|
@@ -43,11 +43,14 @@ import {
|
|
|
43
43
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
44
44
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
45
45
|
ChecksumConstructor as __ChecksumConstructor,
|
|
46
|
+
ClientProtocol,
|
|
46
47
|
Decoder as __Decoder,
|
|
47
48
|
Encoder as __Encoder,
|
|
48
49
|
EventStreamSerdeProvider as __EventStreamSerdeProvider,
|
|
49
50
|
HashConstructor as __HashConstructor,
|
|
50
51
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
52
|
+
HttpRequest,
|
|
53
|
+
HttpResponse,
|
|
51
54
|
Logger as __Logger,
|
|
52
55
|
Provider as __Provider,
|
|
53
56
|
Provider,
|
|
@@ -96,6 +99,7 @@ export interface ClientDefaults
|
|
|
96
99
|
retryMode?: string | __Provider<string>;
|
|
97
100
|
logger?: __Logger;
|
|
98
101
|
extensions?: RuntimeExtension[];
|
|
102
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
99
103
|
eventStreamSerdeProvider?: __EventStreamSerdeProvider;
|
|
100
104
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
101
105
|
eventStreamPayloadHandlerProvider?: __EventStreamPayloadHandlerProvider;
|
|
@@ -385,15 +385,3 @@ export interface StartFaceLivenessSessionResponse {
|
|
|
385
385
|
SessionId: string | undefined;
|
|
386
386
|
LivenessResponseStream?: AsyncIterable<LivenessResponseStream> | undefined;
|
|
387
387
|
}
|
|
388
|
-
export declare const LivenessRequestStreamFilterSensitiveLog: (
|
|
389
|
-
obj: LivenessRequestStream
|
|
390
|
-
) => any;
|
|
391
|
-
export declare const LivenessResponseStreamFilterSensitiveLog: (
|
|
392
|
-
obj: LivenessResponseStream
|
|
393
|
-
) => any;
|
|
394
|
-
export declare const StartFaceLivenessSessionRequestFilterSensitiveLog: (
|
|
395
|
-
obj: StartFaceLivenessSessionRequest
|
|
396
|
-
) => any;
|
|
397
|
-
export declare const StartFaceLivenessSessionResponseFilterSensitiveLog: (
|
|
398
|
-
obj: StartFaceLivenessSessionResponse
|
|
399
|
-
) => any;
|
|
@@ -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
|
|
@@ -42,6 +42,10 @@ export declare const getRuntimeConfig: (
|
|
|
42
42
|
profile?: string;
|
|
43
43
|
logger: import("@smithy/types").Logger;
|
|
44
44
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
45
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
46
|
+
import("@smithy/types").HttpRequest,
|
|
47
|
+
import("@smithy/types").HttpResponse
|
|
48
|
+
>;
|
|
45
49
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
46
50
|
retryStrategy?:
|
|
47
51
|
| import("@smithy/types").RetryStrategy
|
|
@@ -52,6 +52,10 @@ export declare const getRuntimeConfig: (
|
|
|
52
52
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
53
53
|
logger: import("@smithy/types").Logger;
|
|
54
54
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
55
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
56
|
+
import("@smithy/types").HttpRequest,
|
|
57
|
+
import("@smithy/types").HttpResponse
|
|
58
|
+
>;
|
|
55
59
|
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
|
|
56
60
|
defaultsMode:
|
|
57
61
|
| import("@smithy/smithy-client").DefaultsMode
|