@aws-sdk/client-rekognitionstreaming 3.928.0 → 3.930.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.
@@ -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 { StartFaceLivenessSessionRequestFilterSensitiveLog, StartFaceLivenessSessionResponseFilterSensitiveLog, } from "../models/models_0";
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
- .f(StartFaceLivenessSessionRequestFilterSensitiveLog, StartFaceLivenessSessionResponseFilterSensitiveLog)
31
- .ser(se_StartFaceLivenessSessionCommand)
32
- .de(de_StartFaceLivenessSessionCommand)
27
+ .sc(StartFaceLivenessSession)
33
28
  .build() {
34
29
  }
@@ -19,16 +19,6 @@ export const ChallengeType = {
19
19
  FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge",
20
20
  FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge",
21
21
  };
22
- export var ClientChallenge;
23
- (function (ClientChallenge) {
24
- ClientChallenge.visit = (value, visitor) => {
25
- if (value.FaceMovementAndLightChallenge !== undefined)
26
- return visitor.FaceMovementAndLightChallenge(value.FaceMovementAndLightChallenge);
27
- if (value.FaceMovementChallenge !== undefined)
28
- return visitor.FaceMovementChallenge(value.FaceMovementChallenge);
29
- return visitor._(value.$unknown[0], value.$unknown[1]);
30
- };
31
- })(ClientChallenge || (ClientChallenge = {}));
32
22
  export const LightChallengeType = {
33
23
  SEQUENTIAL: "SEQUENTIAL",
34
24
  };
@@ -48,26 +38,6 @@ export class InternalServerException extends __BaseException {
48
38
  this.Code = opts.Code;
49
39
  }
50
40
  }
51
- export var LivenessRequestStream;
52
- (function (LivenessRequestStream) {
53
- LivenessRequestStream.visit = (value, visitor) => {
54
- if (value.VideoEvent !== undefined)
55
- return visitor.VideoEvent(value.VideoEvent);
56
- if (value.ClientSessionInformationEvent !== undefined)
57
- return visitor.ClientSessionInformationEvent(value.ClientSessionInformationEvent);
58
- return visitor._(value.$unknown[0], value.$unknown[1]);
59
- };
60
- })(LivenessRequestStream || (LivenessRequestStream = {}));
61
- export var ServerChallenge;
62
- (function (ServerChallenge) {
63
- ServerChallenge.visit = (value, visitor) => {
64
- if (value.FaceMovementAndLightChallenge !== undefined)
65
- return visitor.FaceMovementAndLightChallenge(value.FaceMovementAndLightChallenge);
66
- if (value.FaceMovementChallenge !== undefined)
67
- return visitor.FaceMovementChallenge(value.FaceMovementChallenge);
68
- return visitor._(value.$unknown[0], value.$unknown[1]);
69
- };
70
- })(ServerChallenge || (ServerChallenge = {}));
71
41
  export class ServiceQuotaExceededException extends __BaseException {
72
42
  name = "ServiceQuotaExceededException";
73
43
  $fault = "client";
@@ -132,28 +102,6 @@ export class ValidationException extends __BaseException {
132
102
  this.Code = opts.Code;
133
103
  }
134
104
  }
135
- export var LivenessResponseStream;
136
- (function (LivenessResponseStream) {
137
- LivenessResponseStream.visit = (value, visitor) => {
138
- if (value.ServerSessionInformationEvent !== undefined)
139
- return visitor.ServerSessionInformationEvent(value.ServerSessionInformationEvent);
140
- if (value.DisconnectionEvent !== undefined)
141
- return visitor.DisconnectionEvent(value.DisconnectionEvent);
142
- if (value.ChallengeEvent !== undefined)
143
- return visitor.ChallengeEvent(value.ChallengeEvent);
144
- if (value.ValidationException !== undefined)
145
- return visitor.ValidationException(value.ValidationException);
146
- if (value.InternalServerException !== undefined)
147
- return visitor.InternalServerException(value.InternalServerException);
148
- if (value.ThrottlingException !== undefined)
149
- return visitor.ThrottlingException(value.ThrottlingException);
150
- if (value.ServiceQuotaExceededException !== undefined)
151
- return visitor.ServiceQuotaExceededException(value.ServiceQuotaExceededException);
152
- if (value.ServiceUnavailableException !== undefined)
153
- return visitor.ServiceUnavailableException(value.ServiceUnavailableException);
154
- return visitor._(value.$unknown[0], value.$unknown[1]);
155
- };
156
- })(LivenessResponseStream || (LivenessResponseStream = {}));
157
105
  export class SessionNotFoundException extends __BaseException {
158
106
  name = "SessionNotFoundException";
159
107
  $fault = "client";
@@ -170,39 +118,3 @@ export class SessionNotFoundException extends __BaseException {
170
118
  this.Code = opts.Code;
171
119
  }
172
120
  }
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
  */
@@ -301,12 +301,15 @@ export declare namespace ClientChallenge {
301
301
  FaceMovementChallenge?: never;
302
302
  $unknown: [string, any];
303
303
  }
304
+ /**
305
+ * @deprecated unused in schema-serde mode.
306
+ *
307
+ */
304
308
  interface Visitor<T> {
305
309
  FaceMovementAndLightChallenge: (value: FaceMovementAndLightClientChallenge) => T;
306
310
  FaceMovementChallenge: (value: FaceMovementClientChallenge) => T;
307
311
  _: (name: string, value: any) => T;
308
312
  }
309
- const visit: <T>(value: ClientChallenge, visitor: Visitor<T>) => T;
310
313
  }
311
314
  /**
312
315
  * <p>Any information that the client needs to send for the streaming session. For face movement challenge,
@@ -497,12 +500,15 @@ export declare namespace LivenessRequestStream {
497
500
  ClientSessionInformationEvent?: never;
498
501
  $unknown: [string, any];
499
502
  }
503
+ /**
504
+ * @deprecated unused in schema-serde mode.
505
+ *
506
+ */
500
507
  interface Visitor<T> {
501
508
  VideoEvent: (value: VideoEvent) => T;
502
509
  ClientSessionInformationEvent: (value: ClientSessionInformationEvent) => T;
503
510
  _: (name: string, value: any) => T;
504
511
  }
505
- const visit: <T>(value: LivenessRequestStream, visitor: Visitor<T>) => T;
506
512
  }
507
513
  /**
508
514
  * <p>Information on the challenge sent by the server.</p>
@@ -535,12 +541,15 @@ export declare namespace ServerChallenge {
535
541
  FaceMovementChallenge?: never;
536
542
  $unknown: [string, any];
537
543
  }
544
+ /**
545
+ * @deprecated unused in schema-serde mode.
546
+ *
547
+ */
538
548
  interface Visitor<T> {
539
549
  FaceMovementAndLightChallenge: (value: FaceMovementAndLightServerChallenge) => T;
540
550
  FaceMovementChallenge: (value: FaceMovementServerChallenge) => T;
541
551
  _: (name: string, value: any) => T;
542
552
  }
543
- const visit: <T>(value: ServerChallenge, visitor: Visitor<T>) => T;
544
553
  }
545
554
  /**
546
555
  * <p>Information required for the streaming session.</p>
@@ -764,6 +773,10 @@ export declare namespace LivenessResponseStream {
764
773
  ServiceUnavailableException?: never;
765
774
  $unknown: [string, any];
766
775
  }
776
+ /**
777
+ * @deprecated unused in schema-serde mode.
778
+ *
779
+ */
767
780
  interface Visitor<T> {
768
781
  ServerSessionInformationEvent: (value: ServerSessionInformationEvent) => T;
769
782
  DisconnectionEvent: (value: DisconnectionEvent) => T;
@@ -775,7 +788,6 @@ export declare namespace LivenessResponseStream {
775
788
  ServiceUnavailableException: (value: ServiceUnavailableException) => T;
776
789
  _: (name: string, value: any) => T;
777
790
  }
778
- const visit: <T>(value: LivenessResponseStream, visitor: Visitor<T>) => T;
779
791
  }
780
792
  /**
781
793
  * <p>Occurs when the given <code>sessionId</code> is not found.</p>
@@ -839,19 +851,3 @@ export interface StartFaceLivenessSessionResponse {
839
851
  */
840
852
  LivenessResponseStream?: AsyncIterable<LivenessResponseStream> | undefined;
841
853
  }
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;