@aws-sdk/client-rekognitionstreaming 3.315.0 → 3.316.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,22 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RekognitionStreaming = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const StartFaceLivenessSessionCommand_1 = require("./commands/StartFaceLivenessSessionCommand");
5
6
  const RekognitionStreamingClient_1 = require("./RekognitionStreamingClient");
7
+ const commands = {
8
+ StartFaceLivenessSessionCommand: StartFaceLivenessSessionCommand_1.StartFaceLivenessSessionCommand,
9
+ };
6
10
  class RekognitionStreaming extends RekognitionStreamingClient_1.RekognitionStreamingClient {
7
- startFaceLivenessSession(args, optionsOrCb, cb) {
8
- const command = new StartFaceLivenessSessionCommand_1.StartFaceLivenessSessionCommand(args);
9
- if (typeof optionsOrCb === "function") {
10
- this.send(command, optionsOrCb);
11
- }
12
- else if (typeof cb === "function") {
13
- if (typeof optionsOrCb !== "object")
14
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
15
- this.send(command, optionsOrCb || {}, cb);
16
- }
17
- else {
18
- return this.send(command, optionsOrCb);
19
- }
20
- }
21
11
  }
22
12
  exports.RekognitionStreaming = RekognitionStreaming;
13
+ (0, smithy_client_1.createAggregatedClient)(commands, RekognitionStreaming);
@@ -1,18 +1,9 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { StartFaceLivenessSessionCommand, } from "./commands/StartFaceLivenessSessionCommand";
2
3
  import { RekognitionStreamingClient } from "./RekognitionStreamingClient";
4
+ const commands = {
5
+ StartFaceLivenessSessionCommand,
6
+ };
3
7
  export class RekognitionStreaming extends RekognitionStreamingClient {
4
- startFaceLivenessSession(args, optionsOrCb, cb) {
5
- const command = new StartFaceLivenessSessionCommand(args);
6
- if (typeof optionsOrCb === "function") {
7
- this.send(command, optionsOrCb);
8
- }
9
- else if (typeof cb === "function") {
10
- if (typeof optionsOrCb !== "object")
11
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
12
- this.send(command, optionsOrCb || {}, cb);
13
- }
14
- else {
15
- return this.send(command, optionsOrCb);
16
- }
17
- }
18
8
  }
9
+ createAggregatedClient(commands, RekognitionStreaming);
@@ -1,6 +1,14 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { StartFaceLivenessSessionCommandInput, StartFaceLivenessSessionCommandOutput } from "./commands/StartFaceLivenessSessionCommand";
3
3
  import { RekognitionStreamingClient } from "./RekognitionStreamingClient";
4
+ export interface RekognitionStreaming {
5
+ /**
6
+ * @see {@link StartFaceLivenessSessionCommand}
7
+ */
8
+ startFaceLivenessSession(args: StartFaceLivenessSessionCommandInput, options?: __HttpHandlerOptions): Promise<StartFaceLivenessSessionCommandOutput>;
9
+ startFaceLivenessSession(args: StartFaceLivenessSessionCommandInput, cb: (err: any, data?: StartFaceLivenessSessionCommandOutput) => void): void;
10
+ startFaceLivenessSession(args: StartFaceLivenessSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartFaceLivenessSessionCommandOutput) => void): void;
11
+ }
4
12
  /**
5
13
  * @public
6
14
  * <p>A real-time video processing service based on Rekognition. This section documents the API
@@ -26,20 +34,5 @@ import { RekognitionStreamingClient } from "./RekognitionStreamingClient";
26
34
  * </li>
27
35
  * </ul>
28
36
  */
29
- export declare class RekognitionStreaming extends RekognitionStreamingClient {
30
- /**
31
- * @public
32
- * <p>Starts a Face Liveness video stream and liveness detection process for a given
33
- * session.</p>
34
- * <p>Requires <code>sessionId</code>, <code>ChallengeVersions</code>, <code>VideoWidth</code>,
35
- * <code>VideoHeight</code> and a <code>RequestEventStream</code> as input. The event stream
36
- * contains information about different events for the session, including the challenge
37
- * information used for verification. </p>
38
- * <p>The maximum video size for Face Liveness is 10 MB. Face Liveness throws a
39
- * <code>ValidationException</code> if the video does not match the necessary formatting and
40
- * size parameters. </p>
41
- */
42
- startFaceLivenessSession(args: StartFaceLivenessSessionCommandInput, options?: __HttpHandlerOptions): Promise<StartFaceLivenessSessionCommandOutput>;
43
- startFaceLivenessSession(args: StartFaceLivenessSessionCommandInput, cb: (err: any, data?: StartFaceLivenessSessionCommandOutput) => void): void;
44
- startFaceLivenessSession(args: StartFaceLivenessSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartFaceLivenessSessionCommandOutput) => void): void;
37
+ export declare class RekognitionStreaming extends RekognitionStreamingClient implements RekognitionStreaming {
45
38
  }
@@ -4,7 +4,7 @@ import {
4
4
  StartFaceLivenessSessionCommandOutput,
5
5
  } from "./commands/StartFaceLivenessSessionCommand";
6
6
  import { RekognitionStreamingClient } from "./RekognitionStreamingClient";
7
- export declare class RekognitionStreaming extends RekognitionStreamingClient {
7
+ export interface RekognitionStreaming {
8
8
  startFaceLivenessSession(
9
9
  args: StartFaceLivenessSessionCommandInput,
10
10
  options?: __HttpHandlerOptions
@@ -19,3 +19,6 @@ export declare class RekognitionStreaming extends RekognitionStreamingClient {
19
19
  cb: (err: any, data?: StartFaceLivenessSessionCommandOutput) => void
20
20
  ): void;
21
21
  }
22
+ export declare class RekognitionStreaming
23
+ extends RekognitionStreamingClient
24
+ implements RekognitionStreaming {}
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.315.0",
4
+ "version": "3.316.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,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "2.0.0",
23
23
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/eventstream-handler-node": "3.310.0",
28
28
  "@aws-sdk/eventstream-serde-browser": "3.310.0",
29
29
  "@aws-sdk/eventstream-serde-config-resolver": "3.310.0",
@@ -46,14 +46,14 @@
46
46
  "@aws-sdk/node-config-provider": "3.310.0",
47
47
  "@aws-sdk/node-http-handler": "3.310.0",
48
48
  "@aws-sdk/protocol-http": "3.310.0",
49
- "@aws-sdk/smithy-client": "3.315.0",
49
+ "@aws-sdk/smithy-client": "3.316.0",
50
50
  "@aws-sdk/types": "3.310.0",
51
51
  "@aws-sdk/url-parser": "3.310.0",
52
52
  "@aws-sdk/util-base64": "3.310.0",
53
53
  "@aws-sdk/util-body-length-browser": "3.310.0",
54
54
  "@aws-sdk/util-body-length-node": "3.310.0",
55
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
56
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
55
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
56
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
57
57
  "@aws-sdk/util-endpoints": "3.310.0",
58
58
  "@aws-sdk/util-retry": "3.310.0",
59
59
  "@aws-sdk/util-user-agent-browser": "3.310.0",