@aws-sdk/client-rekognitionstreaming 3.825.0 → 3.826.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const q = "required", r = "fn", s = "argv", t = "ref";
5
- const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://streaming-rekognition-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://streaming-rekognition-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://streaming-rekognition.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://streaming-rekognition.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
+ const s = "required", t = "fn", u = "argv", v = "ref";
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://streaming-rekognition-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://streaming-rekognition-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://streaming-rekognition.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://streaming-rekognition.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
7
7
  exports.ruleSet = _data;
package/dist-cjs/index.js CHANGED
@@ -23,6 +23,7 @@ var index_exports = {};
23
23
  __export(index_exports, {
24
24
  $Command: () => import_smithy_client.Command,
25
25
  AccessDeniedException: () => AccessDeniedException,
26
+ ChallengeType: () => ChallengeType,
26
27
  ClientChallenge: () => ClientChallenge,
27
28
  InternalServerException: () => InternalServerException,
28
29
  LightChallengeType: () => LightChallengeType,
@@ -241,11 +242,16 @@ var AccessDeniedException = class _AccessDeniedException extends RekognitionStre
241
242
  this.Code = opts.Code;
242
243
  }
243
244
  };
245
+ var ChallengeType = {
246
+ FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge",
247
+ FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge"
248
+ };
244
249
  var ClientChallenge;
245
250
  ((ClientChallenge2) => {
246
251
  ClientChallenge2.visit = /* @__PURE__ */ __name((value, visitor) => {
247
252
  if (value.FaceMovementAndLightChallenge !== void 0)
248
253
  return visitor.FaceMovementAndLightChallenge(value.FaceMovementAndLightChallenge);
254
+ if (value.FaceMovementChallenge !== void 0) return visitor.FaceMovementChallenge(value.FaceMovementChallenge);
249
255
  return visitor._(value.$unknown[0], value.$unknown[1]);
250
256
  }, "visit");
251
257
  })(ClientChallenge || (ClientChallenge = {}));
@@ -288,6 +294,7 @@ var ServerChallenge;
288
294
  ServerChallenge3.visit = /* @__PURE__ */ __name((value, visitor) => {
289
295
  if (value.FaceMovementAndLightChallenge !== void 0)
290
296
  return visitor.FaceMovementAndLightChallenge(value.FaceMovementAndLightChallenge);
297
+ if (value.FaceMovementChallenge !== void 0) return visitor.FaceMovementChallenge(value.FaceMovementChallenge);
291
298
  return visitor._(value.$unknown[0], value.$unknown[1]);
292
299
  }, "visit");
293
300
  })(ServerChallenge || (ServerChallenge = {}));
@@ -385,6 +392,7 @@ var LivenessResponseStream;
385
392
  if (value.ServerSessionInformationEvent !== void 0)
386
393
  return visitor.ServerSessionInformationEvent(value.ServerSessionInformationEvent);
387
394
  if (value.DisconnectionEvent !== void 0) return visitor.DisconnectionEvent(value.DisconnectionEvent);
395
+ if (value.ChallengeEvent !== void 0) return visitor.ChallengeEvent(value.ChallengeEvent);
388
396
  if (value.ValidationException !== void 0) return visitor.ValidationException(value.ValidationException);
389
397
  if (value.InternalServerException !== void 0)
390
398
  return visitor.InternalServerException(value.InternalServerException);
@@ -428,6 +436,7 @@ var LivenessResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
428
436
  if (obj.ServerSessionInformationEvent !== void 0)
429
437
  return { ServerSessionInformationEvent: obj.ServerSessionInformationEvent };
430
438
  if (obj.DisconnectionEvent !== void 0) return { DisconnectionEvent: obj.DisconnectionEvent };
439
+ if (obj.ChallengeEvent !== void 0) return { ChallengeEvent: obj.ChallengeEvent };
431
440
  if (obj.ValidationException !== void 0) return { ValidationException: obj.ValidationException };
432
441
  if (obj.InternalServerException !== void 0) return { InternalServerException: obj.InternalServerException };
433
442
  if (obj.ThrottlingException !== void 0) return { ThrottlingException: obj.ThrottlingException };
@@ -660,6 +669,11 @@ var de_LivenessResponseStream = /* @__PURE__ */ __name((output, context) => {
660
669
  DisconnectionEvent: await de_DisconnectionEvent_event(event["DisconnectionEvent"], context)
661
670
  };
662
671
  }
672
+ if (event["ChallengeEvent"] != null) {
673
+ return {
674
+ ChallengeEvent: await de_ChallengeEvent_event(event["ChallengeEvent"], context)
675
+ };
676
+ }
663
677
  if (event["ValidationException"] != null) {
664
678
  return {
665
679
  ValidationException: await de_ValidationException_event(event["ValidationException"], context)
@@ -694,6 +708,12 @@ var de_LivenessResponseStream = /* @__PURE__ */ __name((output, context) => {
694
708
  return { $unknown: output };
695
709
  });
696
710
  }, "de_LivenessResponseStream");
711
+ var de_ChallengeEvent_event = /* @__PURE__ */ __name(async (output, context) => {
712
+ const contents = {};
713
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
714
+ Object.assign(contents, (0, import_smithy_client._json)(data));
715
+ return contents;
716
+ }, "de_ChallengeEvent_event");
697
717
  var de_DisconnectionEvent_event = /* @__PURE__ */ __name(async (output, context) => {
698
718
  const contents = {};
699
719
  const data = await (0, import_core2.parseJsonBody)(output.body, context);
@@ -754,6 +774,7 @@ var se_ClientChallenge = /* @__PURE__ */ __name((input, context) => {
754
774
  FaceMovementAndLightChallenge: /* @__PURE__ */ __name((value) => ({
755
775
  FaceMovementAndLightChallenge: se_FaceMovementAndLightClientChallenge(value, context)
756
776
  }), "FaceMovementAndLightChallenge"),
777
+ FaceMovementChallenge: /* @__PURE__ */ __name((value) => ({ FaceMovementChallenge: se_FaceMovementClientChallenge(value, context) }), "FaceMovementChallenge"),
757
778
  _: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
758
779
  });
759
780
  }, "se_ClientChallenge");
@@ -772,6 +793,15 @@ var se_FaceMovementAndLightClientChallenge = /* @__PURE__ */ __name((input, cont
772
793
  VideoStartTimestamp: []
773
794
  });
774
795
  }, "se_FaceMovementAndLightClientChallenge");
796
+ var se_FaceMovementClientChallenge = /* @__PURE__ */ __name((input, context) => {
797
+ return (0, import_smithy_client.take)(input, {
798
+ ChallengeId: [],
799
+ InitialFace: /* @__PURE__ */ __name((_) => se_InitialFace(_, context), "InitialFace"),
800
+ TargetFace: /* @__PURE__ */ __name((_) => se_TargetFace(_, context), "TargetFace"),
801
+ VideoEndTimestamp: [],
802
+ VideoStartTimestamp: []
803
+ });
804
+ }, "se_FaceMovementClientChallenge");
775
805
  var se_InitialFace = /* @__PURE__ */ __name((input, context) => {
776
806
  return (0, import_smithy_client.take)(input, {
777
807
  BoundingBox: /* @__PURE__ */ __name((_) => se_BoundingBox(_, context), "BoundingBox"),
@@ -827,6 +857,12 @@ var de_FaceMovementAndLightServerChallenge = /* @__PURE__ */ __name((output, con
827
857
  OvalParameters: /* @__PURE__ */ __name((_) => de_OvalParameters(_, context), "OvalParameters")
828
858
  });
829
859
  }, "de_FaceMovementAndLightServerChallenge");
860
+ var de_FaceMovementServerChallenge = /* @__PURE__ */ __name((output, context) => {
861
+ return (0, import_smithy_client.take)(output, {
862
+ ChallengeConfig: /* @__PURE__ */ __name((_) => de_ChallengeConfig(_, context), "ChallengeConfig"),
863
+ OvalParameters: /* @__PURE__ */ __name((_) => de_OvalParameters(_, context), "OvalParameters")
864
+ });
865
+ }, "de_FaceMovementServerChallenge");
830
866
  var de_OvalParameters = /* @__PURE__ */ __name((output, context) => {
831
867
  return (0, import_smithy_client.take)(output, {
832
868
  CenterX: import_smithy_client.limitedParseFloat32,
@@ -844,6 +880,11 @@ var de_ServerChallenge = /* @__PURE__ */ __name((output, context) => {
844
880
  )
845
881
  };
846
882
  }
883
+ if (output.FaceMovementChallenge != null) {
884
+ return {
885
+ FaceMovementChallenge: de_FaceMovementServerChallenge(output.FaceMovementChallenge, context)
886
+ };
887
+ }
847
888
  return { $unknown: Object.entries(output)[0] };
848
889
  }, "de_ServerChallenge");
849
890
  var de_ServerSessionInformationEvent = /* @__PURE__ */ __name((output, context) => {
@@ -915,6 +956,7 @@ var RekognitionStreaming = class extends RekognitionStreamingClient {
915
956
  $Command,
916
957
  StartFaceLivenessSessionCommand,
917
958
  AccessDeniedException,
959
+ ChallengeType,
918
960
  ClientChallenge,
919
961
  LightChallengeType,
920
962
  InternalServerException,
@@ -1,4 +1,4 @@
1
- const q = "required", r = "fn", s = "argv", t = "ref";
2
- const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://streaming-rekognition-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://streaming-rekognition-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://streaming-rekognition.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://streaming-rekognition.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
1
+ const s = "required", t = "fn", u = "argv", v = "ref";
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://streaming-rekognition-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://streaming-rekognition-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://streaming-rekognition.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://streaming-rekognition.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
4
4
  export const ruleSet = _data;
@@ -15,11 +15,17 @@ export class AccessDeniedException extends __BaseException {
15
15
  this.Code = opts.Code;
16
16
  }
17
17
  }
18
+ export const ChallengeType = {
19
+ FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge",
20
+ FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge",
21
+ };
18
22
  export var ClientChallenge;
19
23
  (function (ClientChallenge) {
20
24
  ClientChallenge.visit = (value, visitor) => {
21
25
  if (value.FaceMovementAndLightChallenge !== undefined)
22
26
  return visitor.FaceMovementAndLightChallenge(value.FaceMovementAndLightChallenge);
27
+ if (value.FaceMovementChallenge !== undefined)
28
+ return visitor.FaceMovementChallenge(value.FaceMovementChallenge);
23
29
  return visitor._(value.$unknown[0], value.$unknown[1]);
24
30
  };
25
31
  })(ClientChallenge || (ClientChallenge = {}));
@@ -57,6 +63,8 @@ export var ServerChallenge;
57
63
  ServerChallenge.visit = (value, visitor) => {
58
64
  if (value.FaceMovementAndLightChallenge !== undefined)
59
65
  return visitor.FaceMovementAndLightChallenge(value.FaceMovementAndLightChallenge);
66
+ if (value.FaceMovementChallenge !== undefined)
67
+ return visitor.FaceMovementChallenge(value.FaceMovementChallenge);
60
68
  return visitor._(value.$unknown[0], value.$unknown[1]);
61
69
  };
62
70
  })(ServerChallenge || (ServerChallenge = {}));
@@ -131,6 +139,8 @@ export var LivenessResponseStream;
131
139
  return visitor.ServerSessionInformationEvent(value.ServerSessionInformationEvent);
132
140
  if (value.DisconnectionEvent !== undefined)
133
141
  return visitor.DisconnectionEvent(value.DisconnectionEvent);
142
+ if (value.ChallengeEvent !== undefined)
143
+ return visitor.ChallengeEvent(value.ChallengeEvent);
134
144
  if (value.ValidationException !== undefined)
135
145
  return visitor.ValidationException(value.ValidationException);
136
146
  if (value.InternalServerException !== undefined)
@@ -173,6 +183,8 @@ export const LivenessResponseStreamFilterSensitiveLog = (obj) => {
173
183
  return { ServerSessionInformationEvent: obj.ServerSessionInformationEvent };
174
184
  if (obj.DisconnectionEvent !== undefined)
175
185
  return { DisconnectionEvent: obj.DisconnectionEvent };
186
+ if (obj.ChallengeEvent !== undefined)
187
+ return { ChallengeEvent: obj.ChallengeEvent };
176
188
  if (obj.ValidationException !== undefined)
177
189
  return { ValidationException: obj.ValidationException };
178
190
  if (obj.InternalServerException !== undefined)
@@ -210,6 +210,11 @@ const de_LivenessResponseStream = (output, context) => {
210
210
  DisconnectionEvent: await de_DisconnectionEvent_event(event["DisconnectionEvent"], context),
211
211
  };
212
212
  }
213
+ if (event["ChallengeEvent"] != null) {
214
+ return {
215
+ ChallengeEvent: await de_ChallengeEvent_event(event["ChallengeEvent"], context),
216
+ };
217
+ }
213
218
  if (event["ValidationException"] != null) {
214
219
  return {
215
220
  ValidationException: await de_ValidationException_event(event["ValidationException"], context),
@@ -238,6 +243,12 @@ const de_LivenessResponseStream = (output, context) => {
238
243
  return { $unknown: output };
239
244
  });
240
245
  };
246
+ const de_ChallengeEvent_event = async (output, context) => {
247
+ const contents = {};
248
+ const data = await parseBody(output.body, context);
249
+ Object.assign(contents, _json(data));
250
+ return contents;
251
+ };
241
252
  const de_DisconnectionEvent_event = async (output, context) => {
242
253
  const contents = {};
243
254
  const data = await parseBody(output.body, context);
@@ -298,6 +309,7 @@ const se_ClientChallenge = (input, context) => {
298
309
  FaceMovementAndLightChallenge: (value) => ({
299
310
  FaceMovementAndLightChallenge: se_FaceMovementAndLightClientChallenge(value, context),
300
311
  }),
312
+ FaceMovementChallenge: (value) => ({ FaceMovementChallenge: se_FaceMovementClientChallenge(value, context) }),
301
313
  _: (name, value) => ({ [name]: value }),
302
314
  });
303
315
  };
@@ -316,6 +328,15 @@ const se_FaceMovementAndLightClientChallenge = (input, context) => {
316
328
  VideoStartTimestamp: [],
317
329
  });
318
330
  };
331
+ const se_FaceMovementClientChallenge = (input, context) => {
332
+ return take(input, {
333
+ ChallengeId: [],
334
+ InitialFace: (_) => se_InitialFace(_, context),
335
+ TargetFace: (_) => se_TargetFace(_, context),
336
+ VideoEndTimestamp: [],
337
+ VideoStartTimestamp: [],
338
+ });
339
+ };
319
340
  const se_InitialFace = (input, context) => {
320
341
  return take(input, {
321
342
  BoundingBox: (_) => se_BoundingBox(_, context),
@@ -373,6 +394,12 @@ const de_FaceMovementAndLightServerChallenge = (output, context) => {
373
394
  OvalParameters: (_) => de_OvalParameters(_, context),
374
395
  });
375
396
  };
397
+ const de_FaceMovementServerChallenge = (output, context) => {
398
+ return take(output, {
399
+ ChallengeConfig: (_) => de_ChallengeConfig(_, context),
400
+ OvalParameters: (_) => de_OvalParameters(_, context),
401
+ });
402
+ };
376
403
  const de_OvalParameters = (output, context) => {
377
404
  return take(output, {
378
405
  CenterX: __limitedParseFloat32,
@@ -387,6 +414,11 @@ const de_ServerChallenge = (output, context) => {
387
414
  FaceMovementAndLightChallenge: de_FaceMovementAndLightServerChallenge(output.FaceMovementAndLightChallenge, context),
388
415
  };
389
416
  }
417
+ if (output.FaceMovementChallenge != null) {
418
+ return {
419
+ FaceMovementChallenge: de_FaceMovementServerChallenge(output.FaceMovementChallenge, context),
420
+ };
421
+ }
390
422
  return { $unknown: Object.entries(output)[0] };
391
423
  };
392
424
  const de_ServerSessionInformationEvent = (output, context) => {
@@ -36,8 +36,6 @@ declare const StartFaceLivenessSessionCommand_base: {
36
36
  * <p>The maximum video size for Face Liveness is 10 MB. Face Liveness throws a
37
37
  * <code>ValidationException</code> if the video does not match the necessary formatting and
38
38
  * size parameters. </p>
39
- * <p>StartFaceLivenessSession supports the websockets and <a href="https://aws.amazon.com/sdk-for-javascript/">the AWS SDK
40
- * for JavaScript</a>.</p>
41
39
  * @example
42
40
  * Use a bare-bones client and the command you need to make an API call.
43
41
  * ```javascript
@@ -94,6 +92,30 @@ declare const StartFaceLivenessSessionCommand_base: {
94
92
  * CurrentColorStartTimestamp: Number("long"), // required
95
93
  * },
96
94
  * },
95
+ * FaceMovementChallenge: { // FaceMovementClientChallenge
96
+ * ChallengeId: "STRING_VALUE", // required
97
+ * VideoStartTimestamp: Number("long"),
98
+ * VideoEndTimestamp: Number("long"),
99
+ * InitialFace: {
100
+ * BoundingBox: {
101
+ * Width: Number("float"), // required
102
+ * Height: Number("float"), // required
103
+ * Left: Number("float"), // required
104
+ * Top: Number("float"), // required
105
+ * },
106
+ * InitialFaceDetectedTimestamp: Number("long"), // required
107
+ * },
108
+ * TargetFace: {
109
+ * BoundingBox: {
110
+ * Width: Number("float"), // required
111
+ * Height: Number("float"), // required
112
+ * Left: Number("float"), // required
113
+ * Top: Number("float"), // required
114
+ * },
115
+ * FaceDetectedInTargetPositionStartTimestamp: Number("long"), // required
116
+ * FaceDetectedInTargetPositionEndTimestamp: Number("long"), // required
117
+ * },
118
+ * },
97
119
  * },
98
120
  * },
99
121
  * },
@@ -139,12 +161,37 @@ declare const StartFaceLivenessSessionCommand_base: {
139
161
  * // },
140
162
  * // ],
141
163
  * // },
164
+ * // FaceMovementChallenge: { // FaceMovementServerChallenge
165
+ * // OvalParameters: {
166
+ * // Width: Number("float"), // required
167
+ * // Height: Number("float"), // required
168
+ * // CenterX: Number("float"), // required
169
+ * // CenterY: Number("float"), // required
170
+ * // },
171
+ * // ChallengeConfig: {
172
+ * // BlazeFaceDetectionThreshold: Number("float"),
173
+ * // FaceDistanceThresholdMin: Number("float"),
174
+ * // FaceDistanceThreshold: Number("float"),
175
+ * // FaceDistanceThresholdMax: Number("float"),
176
+ * // OvalIouThreshold: Number("float"),
177
+ * // OvalHeightWidthRatio: Number("float"),
178
+ * // OvalIouWidthThreshold: Number("float"),
179
+ * // OvalIouHeightThreshold: Number("float"),
180
+ * // FaceIouWidthThreshold: Number("float"),
181
+ * // FaceIouHeightThreshold: Number("float"),
182
+ * // OvalFitTimeout: Number("int"),
183
+ * // },
184
+ * // },
142
185
  * // },
143
186
  * // },
144
187
  * // },
145
188
  * // DisconnectionEvent: { // DisconnectionEvent
146
189
  * // TimestampMillis: Number("long"), // required
147
190
  * // },
191
+ * // ChallengeEvent: { // ChallengeEvent
192
+ * // Version: "STRING_VALUE", // required
193
+ * // Type: "FaceMovementAndLightChallenge" || "FaceMovementChallenge", // required
194
+ * // },
148
195
  * // ValidationException: { // ValidationException
149
196
  * // Message: "STRING_VALUE",
150
197
  * // Code: "STRING_VALUE",
@@ -102,12 +102,27 @@ export interface ChallengeConfig {
102
102
  * @public
103
103
  */
104
104
  FaceIouHeightThreshold?: number | undefined;
105
- /**
106
- * <p>Timeout limit in which the end-users need to fit in the oval, in miliseconds.</p>
107
- * @public
108
- */
109
105
  OvalFitTimeout?: number | undefined;
110
106
  }
107
+ /**
108
+ * @public
109
+ * @enum
110
+ */
111
+ export declare const ChallengeType: {
112
+ readonly FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge";
113
+ readonly FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge";
114
+ };
115
+ /**
116
+ * @public
117
+ */
118
+ export type ChallengeType = (typeof ChallengeType)[keyof typeof ChallengeType];
119
+ /**
120
+ * @public
121
+ */
122
+ export interface ChallengeEvent {
123
+ Version: string | undefined;
124
+ Type: ChallengeType | undefined;
125
+ }
111
126
  /**
112
127
  * <p>Represents the colors to be flashed to the end user, each color represented in RGB values.</p>
113
128
  * @public
@@ -231,12 +246,35 @@ export interface FaceMovementAndLightClientChallenge {
231
246
  */
232
247
  ColorDisplayed?: ColorDisplayed | undefined;
233
248
  }
249
+ /**
250
+ * @public
251
+ */
252
+ export interface FaceMovementClientChallenge {
253
+ ChallengeId: string | undefined;
254
+ VideoStartTimestamp?: number | undefined;
255
+ VideoEndTimestamp?: number | undefined;
256
+ /**
257
+ * <p> Contains bounding box of initial face position of the user on the device screen.
258
+ * Contains an epoch timestamp of when the user was detected in this position. Used for Face
259
+ * Liveness detection.</p>
260
+ * @public
261
+ */
262
+ InitialFace?: InitialFace | undefined;
263
+ /**
264
+ * <p>Contains bounding box of face position of the user on the device screen at target
265
+ * location constructed for the challenge. This is generated using the random offsets provided by
266
+ * the server to the client at session start. Also contains start and end epoch timestamp of when
267
+ * the user was detected in this position.</p>
268
+ * @public
269
+ */
270
+ TargetFace?: TargetFace | undefined;
271
+ }
234
272
  /**
235
273
  * <p>Object containing information for Face Liveness challenges performed at the client
236
274
  * side.</p>
237
275
  * @public
238
276
  */
239
- export type ClientChallenge = ClientChallenge.FaceMovementAndLightChallengeMember | ClientChallenge.$UnknownMember;
277
+ export type ClientChallenge = ClientChallenge.FaceMovementAndLightChallengeMember | ClientChallenge.FaceMovementChallengeMember | ClientChallenge.$UnknownMember;
240
278
  /**
241
279
  * @public
242
280
  */
@@ -247,6 +285,12 @@ export declare namespace ClientChallenge {
247
285
  */
248
286
  interface FaceMovementAndLightChallengeMember {
249
287
  FaceMovementAndLightChallenge: FaceMovementAndLightClientChallenge;
288
+ FaceMovementChallenge?: never;
289
+ $unknown?: never;
290
+ }
291
+ interface FaceMovementChallengeMember {
292
+ FaceMovementAndLightChallenge?: never;
293
+ FaceMovementChallenge: FaceMovementClientChallenge;
250
294
  $unknown?: never;
251
295
  }
252
296
  /**
@@ -254,10 +298,12 @@ export declare namespace ClientChallenge {
254
298
  */
255
299
  interface $UnknownMember {
256
300
  FaceMovementAndLightChallenge?: never;
301
+ FaceMovementChallenge?: never;
257
302
  $unknown: [string, any];
258
303
  }
259
304
  interface Visitor<T> {
260
305
  FaceMovementAndLightChallenge: (value: FaceMovementAndLightClientChallenge) => T;
306
+ FaceMovementChallenge: (value: FaceMovementClientChallenge) => T;
261
307
  _: (name: string, value: any) => T;
262
308
  }
263
309
  const visit: <T>(value: ClientChallenge, visitor: Visitor<T>) => T;
@@ -371,6 +417,21 @@ export interface FaceMovementAndLightServerChallenge {
371
417
  */
372
418
  ColorSequences: ColorSequence[] | undefined;
373
419
  }
420
+ /**
421
+ * @public
422
+ */
423
+ export interface FaceMovementServerChallenge {
424
+ /**
425
+ * <p>Oval parameters need for oval display to complete oval match challenge.</p>
426
+ * @public
427
+ */
428
+ OvalParameters: OvalParameters | undefined;
429
+ /**
430
+ * <p>Configuration options for Face Liveness challenges performed at the client side. </p>
431
+ * @public
432
+ */
433
+ ChallengeConfig: ChallengeConfig | undefined;
434
+ }
374
435
  /**
375
436
  * <p>Unexpected error during processing of request.</p>
376
437
  * @public
@@ -447,7 +508,7 @@ export declare namespace LivenessRequestStream {
447
508
  * <p>Information on the challenge sent by the server.</p>
448
509
  * @public
449
510
  */
450
- export type ServerChallenge = ServerChallenge.FaceMovementAndLightChallengeMember | ServerChallenge.$UnknownMember;
511
+ export type ServerChallenge = ServerChallenge.FaceMovementAndLightChallengeMember | ServerChallenge.FaceMovementChallengeMember | ServerChallenge.$UnknownMember;
451
512
  /**
452
513
  * @public
453
514
  */
@@ -458,6 +519,12 @@ export declare namespace ServerChallenge {
458
519
  */
459
520
  interface FaceMovementAndLightChallengeMember {
460
521
  FaceMovementAndLightChallenge: FaceMovementAndLightServerChallenge;
522
+ FaceMovementChallenge?: never;
523
+ $unknown?: never;
524
+ }
525
+ interface FaceMovementChallengeMember {
526
+ FaceMovementAndLightChallenge?: never;
527
+ FaceMovementChallenge: FaceMovementServerChallenge;
461
528
  $unknown?: never;
462
529
  }
463
530
  /**
@@ -465,10 +532,12 @@ export declare namespace ServerChallenge {
465
532
  */
466
533
  interface $UnknownMember {
467
534
  FaceMovementAndLightChallenge?: never;
535
+ FaceMovementChallenge?: never;
468
536
  $unknown: [string, any];
469
537
  }
470
538
  interface Visitor<T> {
471
539
  FaceMovementAndLightChallenge: (value: FaceMovementAndLightServerChallenge) => T;
540
+ FaceMovementChallenge: (value: FaceMovementServerChallenge) => T;
472
541
  _: (name: string, value: any) => T;
473
542
  }
474
543
  const visit: <T>(value: ServerChallenge, visitor: Visitor<T>) => T;
@@ -560,7 +629,7 @@ export declare class ValidationException extends __BaseException {
560
629
  * <p>Contains information event details and exception information for a Face Liveness verification response stream.</p>
561
630
  * @public
562
631
  */
563
- export type LivenessResponseStream = LivenessResponseStream.DisconnectionEventMember | LivenessResponseStream.InternalServerExceptionMember | LivenessResponseStream.ServerSessionInformationEventMember | LivenessResponseStream.ServiceQuotaExceededExceptionMember | LivenessResponseStream.ServiceUnavailableExceptionMember | LivenessResponseStream.ThrottlingExceptionMember | LivenessResponseStream.ValidationExceptionMember | LivenessResponseStream.$UnknownMember;
632
+ export type LivenessResponseStream = LivenessResponseStream.ChallengeEventMember | LivenessResponseStream.DisconnectionEventMember | LivenessResponseStream.InternalServerExceptionMember | LivenessResponseStream.ServerSessionInformationEventMember | LivenessResponseStream.ServiceQuotaExceededExceptionMember | LivenessResponseStream.ServiceUnavailableExceptionMember | LivenessResponseStream.ThrottlingExceptionMember | LivenessResponseStream.ValidationExceptionMember | LivenessResponseStream.$UnknownMember;
564
633
  /**
565
634
  * @public
566
635
  */
@@ -572,6 +641,7 @@ export declare namespace LivenessResponseStream {
572
641
  interface ServerSessionInformationEventMember {
573
642
  ServerSessionInformationEvent: ServerSessionInformationEvent;
574
643
  DisconnectionEvent?: never;
644
+ ChallengeEvent?: never;
575
645
  ValidationException?: never;
576
646
  InternalServerException?: never;
577
647
  ThrottlingException?: never;
@@ -586,6 +656,18 @@ export declare namespace LivenessResponseStream {
586
656
  interface DisconnectionEventMember {
587
657
  ServerSessionInformationEvent?: never;
588
658
  DisconnectionEvent: DisconnectionEvent;
659
+ ChallengeEvent?: never;
660
+ ValidationException?: never;
661
+ InternalServerException?: never;
662
+ ThrottlingException?: never;
663
+ ServiceQuotaExceededException?: never;
664
+ ServiceUnavailableException?: never;
665
+ $unknown?: never;
666
+ }
667
+ interface ChallengeEventMember {
668
+ ServerSessionInformationEvent?: never;
669
+ DisconnectionEvent?: never;
670
+ ChallengeEvent: ChallengeEvent;
589
671
  ValidationException?: never;
590
672
  InternalServerException?: never;
591
673
  ThrottlingException?: never;
@@ -600,6 +682,7 @@ export declare namespace LivenessResponseStream {
600
682
  interface ValidationExceptionMember {
601
683
  ServerSessionInformationEvent?: never;
602
684
  DisconnectionEvent?: never;
685
+ ChallengeEvent?: never;
603
686
  ValidationException: ValidationException;
604
687
  InternalServerException?: never;
605
688
  ThrottlingException?: never;
@@ -614,6 +697,7 @@ export declare namespace LivenessResponseStream {
614
697
  interface InternalServerExceptionMember {
615
698
  ServerSessionInformationEvent?: never;
616
699
  DisconnectionEvent?: never;
700
+ ChallengeEvent?: never;
617
701
  ValidationException?: never;
618
702
  InternalServerException: InternalServerException;
619
703
  ThrottlingException?: never;
@@ -628,6 +712,7 @@ export declare namespace LivenessResponseStream {
628
712
  interface ThrottlingExceptionMember {
629
713
  ServerSessionInformationEvent?: never;
630
714
  DisconnectionEvent?: never;
715
+ ChallengeEvent?: never;
631
716
  ValidationException?: never;
632
717
  InternalServerException?: never;
633
718
  ThrottlingException: ThrottlingException;
@@ -642,6 +727,7 @@ export declare namespace LivenessResponseStream {
642
727
  interface ServiceQuotaExceededExceptionMember {
643
728
  ServerSessionInformationEvent?: never;
644
729
  DisconnectionEvent?: never;
730
+ ChallengeEvent?: never;
645
731
  ValidationException?: never;
646
732
  InternalServerException?: never;
647
733
  ThrottlingException?: never;
@@ -656,6 +742,7 @@ export declare namespace LivenessResponseStream {
656
742
  interface ServiceUnavailableExceptionMember {
657
743
  ServerSessionInformationEvent?: never;
658
744
  DisconnectionEvent?: never;
745
+ ChallengeEvent?: never;
659
746
  ValidationException?: never;
660
747
  InternalServerException?: never;
661
748
  ThrottlingException?: never;
@@ -669,6 +756,7 @@ export declare namespace LivenessResponseStream {
669
756
  interface $UnknownMember {
670
757
  ServerSessionInformationEvent?: never;
671
758
  DisconnectionEvent?: never;
759
+ ChallengeEvent?: never;
672
760
  ValidationException?: never;
673
761
  InternalServerException?: never;
674
762
  ThrottlingException?: never;
@@ -679,6 +767,7 @@ export declare namespace LivenessResponseStream {
679
767
  interface Visitor<T> {
680
768
  ServerSessionInformationEvent: (value: ServerSessionInformationEvent) => T;
681
769
  DisconnectionEvent: (value: DisconnectionEvent) => T;
770
+ ChallengeEvent: (value: ChallengeEvent) => T;
682
771
  ValidationException: (value: ValidationException) => T;
683
772
  InternalServerException: (value: InternalServerException) => T;
684
773
  ThrottlingException: (value: ThrottlingException) => T;
@@ -28,6 +28,15 @@ export interface ChallengeConfig {
28
28
  FaceIouHeightThreshold?: number | undefined;
29
29
  OvalFitTimeout?: number | undefined;
30
30
  }
31
+ export declare const ChallengeType: {
32
+ readonly FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge";
33
+ readonly FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge";
34
+ };
35
+ export type ChallengeType = (typeof ChallengeType)[keyof typeof ChallengeType];
36
+ export interface ChallengeEvent {
37
+ Version: string | undefined;
38
+ Type: ChallengeType | undefined;
39
+ }
31
40
  export interface FreshnessColor {
32
41
  RGB: number[] | undefined;
33
42
  }
@@ -54,22 +63,38 @@ export interface FaceMovementAndLightClientChallenge {
54
63
  TargetFace?: TargetFace | undefined;
55
64
  ColorDisplayed?: ColorDisplayed | undefined;
56
65
  }
66
+ export interface FaceMovementClientChallenge {
67
+ ChallengeId: string | undefined;
68
+ VideoStartTimestamp?: number | undefined;
69
+ VideoEndTimestamp?: number | undefined;
70
+ InitialFace?: InitialFace | undefined;
71
+ TargetFace?: TargetFace | undefined;
72
+ }
57
73
  export type ClientChallenge =
58
74
  | ClientChallenge.FaceMovementAndLightChallengeMember
75
+ | ClientChallenge.FaceMovementChallengeMember
59
76
  | ClientChallenge.$UnknownMember;
60
77
  export declare namespace ClientChallenge {
61
78
  interface FaceMovementAndLightChallengeMember {
62
79
  FaceMovementAndLightChallenge: FaceMovementAndLightClientChallenge;
80
+ FaceMovementChallenge?: never;
81
+ $unknown?: never;
82
+ }
83
+ interface FaceMovementChallengeMember {
84
+ FaceMovementAndLightChallenge?: never;
85
+ FaceMovementChallenge: FaceMovementClientChallenge;
63
86
  $unknown?: never;
64
87
  }
65
88
  interface $UnknownMember {
66
89
  FaceMovementAndLightChallenge?: never;
90
+ FaceMovementChallenge?: never;
67
91
  $unknown: [string, any];
68
92
  }
69
93
  interface Visitor<T> {
70
94
  FaceMovementAndLightChallenge: (
71
95
  value: FaceMovementAndLightClientChallenge
72
96
  ) => T;
97
+ FaceMovementChallenge: (value: FaceMovementClientChallenge) => T;
73
98
  _: (name: string, value: any) => T;
74
99
  }
75
100
  const visit: <T>(value: ClientChallenge, visitor: Visitor<T>) => T;
@@ -102,6 +127,10 @@ export interface FaceMovementAndLightServerChallenge {
102
127
  ChallengeConfig: ChallengeConfig | undefined;
103
128
  ColorSequences: ColorSequence[] | undefined;
104
129
  }
130
+ export interface FaceMovementServerChallenge {
131
+ OvalParameters: OvalParameters | undefined;
132
+ ChallengeConfig: ChallengeConfig | undefined;
133
+ }
105
134
  export declare class InternalServerException extends __BaseException {
106
135
  readonly name: "InternalServerException";
107
136
  readonly $fault: "server";
@@ -144,20 +173,29 @@ export declare namespace LivenessRequestStream {
144
173
  }
145
174
  export type ServerChallenge =
146
175
  | ServerChallenge.FaceMovementAndLightChallengeMember
176
+ | ServerChallenge.FaceMovementChallengeMember
147
177
  | ServerChallenge.$UnknownMember;
148
178
  export declare namespace ServerChallenge {
149
179
  interface FaceMovementAndLightChallengeMember {
150
180
  FaceMovementAndLightChallenge: FaceMovementAndLightServerChallenge;
181
+ FaceMovementChallenge?: never;
182
+ $unknown?: never;
183
+ }
184
+ interface FaceMovementChallengeMember {
185
+ FaceMovementAndLightChallenge?: never;
186
+ FaceMovementChallenge: FaceMovementServerChallenge;
151
187
  $unknown?: never;
152
188
  }
153
189
  interface $UnknownMember {
154
190
  FaceMovementAndLightChallenge?: never;
191
+ FaceMovementChallenge?: never;
155
192
  $unknown: [string, any];
156
193
  }
157
194
  interface Visitor<T> {
158
195
  FaceMovementAndLightChallenge: (
159
196
  value: FaceMovementAndLightServerChallenge
160
197
  ) => T;
198
+ FaceMovementChallenge: (value: FaceMovementServerChallenge) => T;
161
199
  _: (name: string, value: any) => T;
162
200
  }
163
201
  const visit: <T>(value: ServerChallenge, visitor: Visitor<T>) => T;
@@ -205,6 +243,7 @@ export declare class ValidationException extends __BaseException {
205
243
  );
206
244
  }
207
245
  export type LivenessResponseStream =
246
+ | LivenessResponseStream.ChallengeEventMember
208
247
  | LivenessResponseStream.DisconnectionEventMember
209
248
  | LivenessResponseStream.InternalServerExceptionMember
210
249
  | LivenessResponseStream.ServerSessionInformationEventMember
@@ -217,6 +256,7 @@ export declare namespace LivenessResponseStream {
217
256
  interface ServerSessionInformationEventMember {
218
257
  ServerSessionInformationEvent: ServerSessionInformationEvent;
219
258
  DisconnectionEvent?: never;
259
+ ChallengeEvent?: never;
220
260
  ValidationException?: never;
221
261
  InternalServerException?: never;
222
262
  ThrottlingException?: never;
@@ -227,6 +267,18 @@ export declare namespace LivenessResponseStream {
227
267
  interface DisconnectionEventMember {
228
268
  ServerSessionInformationEvent?: never;
229
269
  DisconnectionEvent: DisconnectionEvent;
270
+ ChallengeEvent?: never;
271
+ ValidationException?: never;
272
+ InternalServerException?: never;
273
+ ThrottlingException?: never;
274
+ ServiceQuotaExceededException?: never;
275
+ ServiceUnavailableException?: never;
276
+ $unknown?: never;
277
+ }
278
+ interface ChallengeEventMember {
279
+ ServerSessionInformationEvent?: never;
280
+ DisconnectionEvent?: never;
281
+ ChallengeEvent: ChallengeEvent;
230
282
  ValidationException?: never;
231
283
  InternalServerException?: never;
232
284
  ThrottlingException?: never;
@@ -237,6 +289,7 @@ export declare namespace LivenessResponseStream {
237
289
  interface ValidationExceptionMember {
238
290
  ServerSessionInformationEvent?: never;
239
291
  DisconnectionEvent?: never;
292
+ ChallengeEvent?: never;
240
293
  ValidationException: ValidationException;
241
294
  InternalServerException?: never;
242
295
  ThrottlingException?: never;
@@ -247,6 +300,7 @@ export declare namespace LivenessResponseStream {
247
300
  interface InternalServerExceptionMember {
248
301
  ServerSessionInformationEvent?: never;
249
302
  DisconnectionEvent?: never;
303
+ ChallengeEvent?: never;
250
304
  ValidationException?: never;
251
305
  InternalServerException: InternalServerException;
252
306
  ThrottlingException?: never;
@@ -257,6 +311,7 @@ export declare namespace LivenessResponseStream {
257
311
  interface ThrottlingExceptionMember {
258
312
  ServerSessionInformationEvent?: never;
259
313
  DisconnectionEvent?: never;
314
+ ChallengeEvent?: never;
260
315
  ValidationException?: never;
261
316
  InternalServerException?: never;
262
317
  ThrottlingException: ThrottlingException;
@@ -267,6 +322,7 @@ export declare namespace LivenessResponseStream {
267
322
  interface ServiceQuotaExceededExceptionMember {
268
323
  ServerSessionInformationEvent?: never;
269
324
  DisconnectionEvent?: never;
325
+ ChallengeEvent?: never;
270
326
  ValidationException?: never;
271
327
  InternalServerException?: never;
272
328
  ThrottlingException?: never;
@@ -277,6 +333,7 @@ export declare namespace LivenessResponseStream {
277
333
  interface ServiceUnavailableExceptionMember {
278
334
  ServerSessionInformationEvent?: never;
279
335
  DisconnectionEvent?: never;
336
+ ChallengeEvent?: never;
280
337
  ValidationException?: never;
281
338
  InternalServerException?: never;
282
339
  ThrottlingException?: never;
@@ -287,6 +344,7 @@ export declare namespace LivenessResponseStream {
287
344
  interface $UnknownMember {
288
345
  ServerSessionInformationEvent?: never;
289
346
  DisconnectionEvent?: never;
347
+ ChallengeEvent?: never;
290
348
  ValidationException?: never;
291
349
  InternalServerException?: never;
292
350
  ThrottlingException?: never;
@@ -297,6 +355,7 @@ export declare namespace LivenessResponseStream {
297
355
  interface Visitor<T> {
298
356
  ServerSessionInformationEvent: (value: ServerSessionInformationEvent) => T;
299
357
  DisconnectionEvent: (value: DisconnectionEvent) => T;
358
+ ChallengeEvent: (value: ChallengeEvent) => T;
300
359
  ValidationException: (value: ValidationException) => T;
301
360
  InternalServerException: (value: InternalServerException) => T;
302
361
  ThrottlingException: (value: ThrottlingException) => T;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rekognitionstreaming",
3
3
  "description": "AWS SDK for JavaScript Rekognitionstreaming Client for Node.js, Browser and React Native",
4
- "version": "3.825.0",
4
+ "version": "3.826.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-rekognitionstreaming",
@@ -20,22 +20,22 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.825.0",
24
- "@aws-sdk/credential-provider-node": "3.825.0",
23
+ "@aws-sdk/core": "3.826.0",
24
+ "@aws-sdk/credential-provider-node": "3.826.0",
25
25
  "@aws-sdk/eventstream-handler-node": "3.821.0",
26
26
  "@aws-sdk/middleware-eventstream": "3.821.0",
27
27
  "@aws-sdk/middleware-host-header": "3.821.0",
28
28
  "@aws-sdk/middleware-logger": "3.821.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.821.0",
30
- "@aws-sdk/middleware-user-agent": "3.825.0",
30
+ "@aws-sdk/middleware-user-agent": "3.826.0",
31
31
  "@aws-sdk/middleware-websocket": "3.821.0",
32
32
  "@aws-sdk/region-config-resolver": "3.821.0",
33
33
  "@aws-sdk/types": "3.821.0",
34
34
  "@aws-sdk/util-endpoints": "3.821.0",
35
35
  "@aws-sdk/util-user-agent-browser": "3.821.0",
36
- "@aws-sdk/util-user-agent-node": "3.825.0",
36
+ "@aws-sdk/util-user-agent-node": "3.826.0",
37
37
  "@smithy/config-resolver": "^4.1.4",
38
- "@smithy/core": "^3.5.2",
38
+ "@smithy/core": "^3.5.3",
39
39
  "@smithy/eventstream-serde-browser": "^4.0.4",
40
40
  "@smithy/eventstream-serde-config-resolver": "^4.1.2",
41
41
  "@smithy/eventstream-serde-node": "^4.0.4",
@@ -43,21 +43,21 @@
43
43
  "@smithy/hash-node": "^4.0.4",
44
44
  "@smithy/invalid-dependency": "^4.0.4",
45
45
  "@smithy/middleware-content-length": "^4.0.4",
46
- "@smithy/middleware-endpoint": "^4.1.10",
47
- "@smithy/middleware-retry": "^4.1.11",
46
+ "@smithy/middleware-endpoint": "^4.1.11",
47
+ "@smithy/middleware-retry": "^4.1.12",
48
48
  "@smithy/middleware-serde": "^4.0.8",
49
49
  "@smithy/middleware-stack": "^4.0.4",
50
50
  "@smithy/node-config-provider": "^4.1.3",
51
51
  "@smithy/node-http-handler": "^4.0.6",
52
52
  "@smithy/protocol-http": "^5.1.2",
53
- "@smithy/smithy-client": "^4.4.2",
53
+ "@smithy/smithy-client": "^4.4.3",
54
54
  "@smithy/types": "^4.3.1",
55
55
  "@smithy/url-parser": "^4.0.4",
56
56
  "@smithy/util-base64": "^4.0.0",
57
57
  "@smithy/util-body-length-browser": "^4.0.0",
58
58
  "@smithy/util-body-length-node": "^4.0.0",
59
- "@smithy/util-defaults-mode-browser": "^4.0.18",
60
- "@smithy/util-defaults-mode-node": "^4.0.18",
59
+ "@smithy/util-defaults-mode-browser": "^4.0.19",
60
+ "@smithy/util-defaults-mode-node": "^4.0.19",
61
61
  "@smithy/util-endpoints": "^3.0.6",
62
62
  "@smithy/util-middleware": "^4.0.4",
63
63
  "@smithy/util-retry": "^4.0.5",