@aws-sdk/client-rekognitionstreaming 3.395.0 → 3.398.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.
@@ -353,6 +353,7 @@ const de_ChallengeConfig = (output, context) => {
353
353
  FaceDistanceThresholdMin: smithy_client_1.limitedParseFloat32,
354
354
  FaceIouHeightThreshold: smithy_client_1.limitedParseFloat32,
355
355
  FaceIouWidthThreshold: smithy_client_1.limitedParseFloat32,
356
+ OvalFitTimeout: smithy_client_1.expectInt32,
356
357
  OvalHeightWidthRatio: smithy_client_1.limitedParseFloat32,
357
358
  OvalIouHeightThreshold: smithy_client_1.limitedParseFloat32,
358
359
  OvalIouThreshold: smithy_client_1.limitedParseFloat32,
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveRuntimeExtensions = void 0;
4
- const types_1 = require("@smithy/types");
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const asPartial = (t) => t;
6
6
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
- const clientConfiguration = {
8
- ...asPartial((0, types_1.getDefaultClientConfiguration)(runtimeConfig)),
7
+ const extensionConfiguration = {
8
+ ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
9
9
  };
10
- extensions.forEach((extension) => extension.configureClient(clientConfiguration));
10
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
11
11
  return {
12
12
  ...runtimeConfig,
13
- ...(0, types_1.resolveDefaultRuntimeConfig)(clientConfiguration),
13
+ ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
14
14
  };
15
15
  };
16
16
  exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectString as __expectString, expectUnion as __expectUnion, limitedParseFloat32 as __limitedParseFloat32, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectString as __expectString, expectUnion as __expectUnion, limitedParseFloat32 as __limitedParseFloat32, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { AccessDeniedException, ClientChallenge, InternalServerException, LivenessRequestStream, ServiceQuotaExceededException, ServiceUnavailableException, SessionNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
4
4
  import { RekognitionStreamingServiceException as __BaseException } from "../models/RekognitionStreamingServiceException";
5
5
  export const se_StartFaceLivenessSessionCommand = async (input, context) => {
@@ -348,6 +348,7 @@ const de_ChallengeConfig = (output, context) => {
348
348
  FaceDistanceThresholdMin: __limitedParseFloat32,
349
349
  FaceIouHeightThreshold: __limitedParseFloat32,
350
350
  FaceIouWidthThreshold: __limitedParseFloat32,
351
+ OvalFitTimeout: __expectInt32,
351
352
  OvalHeightWidthRatio: __limitedParseFloat32,
352
353
  OvalIouHeightThreshold: __limitedParseFloat32,
353
354
  OvalIouThreshold: __limitedParseFloat32,
@@ -1,12 +1,12 @@
1
- import { getDefaultClientConfiguration, resolveDefaultRuntimeConfig } from "@smithy/types";
1
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
2
2
  const asPartial = (t) => t;
3
3
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
4
- const clientConfiguration = {
5
- ...asPartial(getDefaultClientConfiguration(runtimeConfig)),
4
+ const extensionConfiguration = {
5
+ ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
6
6
  };
7
- extensions.forEach((extension) => extension.configureClient(clientConfiguration));
7
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
8
8
  return {
9
9
  ...runtimeConfig,
10
- ...resolveDefaultRuntimeConfig(clientConfiguration),
10
+ ...resolveDefaultRuntimeConfig(extensionConfiguration),
11
11
  };
12
12
  };
@@ -32,6 +32,8 @@ export interface StartFaceLivenessSessionCommandOutput extends StartFaceLiveness
32
32
  * <p>The maximum video size for Face Liveness is 10 MB. Face Liveness throws a
33
33
  * <code>ValidationException</code> if the video does not match the necessary formatting and
34
34
  * size parameters. </p>
35
+ * <p>StartFaceLivenessSession supports the websockets and <a href="https://aws.amazon.com/sdk-for-javascript/">the AWS SDK
36
+ * for JavaScript</a>.</p>
35
37
  * @example
36
38
  * Use a bare-bones client and the command you need to make an API call.
37
39
  * ```javascript
@@ -119,6 +121,7 @@ export interface StartFaceLivenessSessionCommandOutput extends StartFaceLiveness
119
121
  * // OvalIouHeightThreshold: Number("float"),
120
122
  * // FaceIouWidthThreshold: Number("float"),
121
123
  * // FaceIouHeightThreshold: Number("float"),
124
+ * // OvalFitTimeout: Number("int"),
122
125
  * // },
123
126
  * // ColorSequences: [ // ColorSequences // required
124
127
  * // { // ColorSequence
@@ -0,0 +1,6 @@
1
+ import { DefaultExtensionConfiguration } from "@smithy/types";
2
+ /**
3
+ * @internal
4
+ */
5
+ export interface RekognitionStreamingExtensionConfiguration extends DefaultExtensionConfiguration {
6
+ }
@@ -102,6 +102,11 @@ export interface ChallengeConfig {
102
102
  * <p> Threshold for height during face IOU (Intersection over Union) match.</p>
103
103
  */
104
104
  FaceIouHeightThreshold?: number;
105
+ /**
106
+ * @public
107
+ * <p>Timeout limit in which the end-users need to fit in the oval, in miliseconds.</p>
108
+ */
109
+ OvalFitTimeout?: number;
105
110
  }
106
111
  /**
107
112
  * @public
@@ -1,9 +1,9 @@
1
- import { RekognitionStreamingClientConfiguration } from "./clientConfiguration";
1
+ import { RekognitionStreamingExtensionConfiguration } from "./extensionConfiguration";
2
2
  /**
3
3
  * @public
4
4
  */
5
5
  export interface RuntimeExtension {
6
- configureClient(clientConfiguration: RekognitionStreamingClientConfiguration): void;
6
+ configure(clientConfiguration: RekognitionStreamingExtensionConfiguration): void;
7
7
  }
8
8
  /**
9
9
  * @public
@@ -0,0 +1,3 @@
1
+ import { DefaultExtensionConfiguration } from "@smithy/types";
2
+ export interface RekognitionStreamingExtensionConfiguration
3
+ extends DefaultExtensionConfiguration {}
@@ -26,6 +26,7 @@ export interface ChallengeConfig {
26
26
  OvalIouHeightThreshold?: number;
27
27
  FaceIouWidthThreshold?: number;
28
28
  FaceIouHeightThreshold?: number;
29
+ OvalFitTimeout?: number;
29
30
  }
30
31
  export interface FreshnessColor {
31
32
  RGB: number[] | undefined;
@@ -1,7 +1,7 @@
1
- import { RekognitionStreamingClientConfiguration } from "./clientConfiguration";
1
+ import { RekognitionStreamingExtensionConfiguration } from "./extensionConfiguration";
2
2
  export interface RuntimeExtension {
3
- configureClient(
4
- clientConfiguration: RekognitionStreamingClientConfiguration
3
+ configure(
4
+ clientConfiguration: RekognitionStreamingExtensionConfiguration
5
5
  ): void;
6
6
  }
7
7
  export interface RuntimeExtensionsConfig {
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.395.0",
4
+ "version": "3.398.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,43 +21,43 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.395.0",
25
- "@aws-sdk/credential-provider-node": "3.395.0",
26
- "@aws-sdk/eventstream-handler-node": "3.391.0",
27
- "@aws-sdk/middleware-eventstream": "3.391.0",
28
- "@aws-sdk/middleware-host-header": "3.391.0",
29
- "@aws-sdk/middleware-logger": "3.391.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.391.0",
31
- "@aws-sdk/middleware-signing": "3.391.0",
32
- "@aws-sdk/middleware-user-agent": "3.391.0",
33
- "@aws-sdk/middleware-websocket": "3.391.0",
34
- "@aws-sdk/types": "3.391.0",
35
- "@aws-sdk/util-endpoints": "3.391.0",
36
- "@aws-sdk/util-user-agent-browser": "3.391.0",
37
- "@aws-sdk/util-user-agent-node": "3.391.0",
38
- "@smithy/config-resolver": "^2.0.3",
39
- "@smithy/eventstream-serde-browser": "^2.0.3",
40
- "@smithy/eventstream-serde-config-resolver": "^2.0.3",
41
- "@smithy/eventstream-serde-node": "^2.0.3",
42
- "@smithy/fetch-http-handler": "^2.0.3",
43
- "@smithy/hash-node": "^2.0.3",
44
- "@smithy/invalid-dependency": "^2.0.3",
45
- "@smithy/middleware-content-length": "^2.0.3",
46
- "@smithy/middleware-endpoint": "^2.0.3",
47
- "@smithy/middleware-retry": "^2.0.3",
48
- "@smithy/middleware-serde": "^2.0.3",
24
+ "@aws-sdk/client-sts": "3.398.0",
25
+ "@aws-sdk/credential-provider-node": "3.398.0",
26
+ "@aws-sdk/eventstream-handler-node": "3.398.0",
27
+ "@aws-sdk/middleware-eventstream": "3.398.0",
28
+ "@aws-sdk/middleware-host-header": "3.398.0",
29
+ "@aws-sdk/middleware-logger": "3.398.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.398.0",
31
+ "@aws-sdk/middleware-signing": "3.398.0",
32
+ "@aws-sdk/middleware-user-agent": "3.398.0",
33
+ "@aws-sdk/middleware-websocket": "3.398.0",
34
+ "@aws-sdk/types": "3.398.0",
35
+ "@aws-sdk/util-endpoints": "3.398.0",
36
+ "@aws-sdk/util-user-agent-browser": "3.398.0",
37
+ "@aws-sdk/util-user-agent-node": "3.398.0",
38
+ "@smithy/config-resolver": "^2.0.5",
39
+ "@smithy/eventstream-serde-browser": "^2.0.5",
40
+ "@smithy/eventstream-serde-config-resolver": "^2.0.5",
41
+ "@smithy/eventstream-serde-node": "^2.0.5",
42
+ "@smithy/fetch-http-handler": "^2.0.5",
43
+ "@smithy/hash-node": "^2.0.5",
44
+ "@smithy/invalid-dependency": "^2.0.5",
45
+ "@smithy/middleware-content-length": "^2.0.5",
46
+ "@smithy/middleware-endpoint": "^2.0.5",
47
+ "@smithy/middleware-retry": "^2.0.5",
48
+ "@smithy/middleware-serde": "^2.0.5",
49
49
  "@smithy/middleware-stack": "^2.0.0",
50
- "@smithy/node-config-provider": "^2.0.3",
51
- "@smithy/node-http-handler": "^2.0.3",
52
- "@smithy/protocol-http": "^2.0.3",
53
- "@smithy/smithy-client": "^2.0.3",
54
- "@smithy/types": "^2.2.0",
55
- "@smithy/url-parser": "^2.0.3",
50
+ "@smithy/node-config-provider": "^2.0.5",
51
+ "@smithy/node-http-handler": "^2.0.5",
52
+ "@smithy/protocol-http": "^2.0.5",
53
+ "@smithy/smithy-client": "^2.0.5",
54
+ "@smithy/types": "^2.2.2",
55
+ "@smithy/url-parser": "^2.0.5",
56
56
  "@smithy/util-base64": "^2.0.0",
57
57
  "@smithy/util-body-length-browser": "^2.0.0",
58
- "@smithy/util-body-length-node": "^2.0.0",
59
- "@smithy/util-defaults-mode-browser": "^2.0.3",
60
- "@smithy/util-defaults-mode-node": "^2.0.3",
58
+ "@smithy/util-body-length-node": "^2.1.0",
59
+ "@smithy/util-defaults-mode-browser": "^2.0.5",
60
+ "@smithy/util-defaults-mode-node": "^2.0.5",
61
61
  "@smithy/util-retry": "^2.0.0",
62
62
  "@smithy/util-utf8": "^2.0.0",
63
63
  "tslib": "^2.5.0"
@@ -1,6 +0,0 @@
1
- import { DefaultClientConfiguration } from "@smithy/types";
2
- /**
3
- * @internal
4
- */
5
- export interface RekognitionStreamingClientConfiguration extends DefaultClientConfiguration {
6
- }
@@ -1,3 +0,0 @@
1
- import { DefaultClientConfiguration } from "@smithy/types";
2
- export interface RekognitionStreamingClientConfiguration
3
- extends DefaultClientConfiguration {}