@aws-sdk/client-kinesis-video-signaling 3.315.0 → 3.319.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,37 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.KinesisVideoSignaling = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const GetIceServerConfigCommand_1 = require("./commands/GetIceServerConfigCommand");
5
6
  const SendAlexaOfferToMasterCommand_1 = require("./commands/SendAlexaOfferToMasterCommand");
6
7
  const KinesisVideoSignalingClient_1 = require("./KinesisVideoSignalingClient");
8
+ const commands = {
9
+ GetIceServerConfigCommand: GetIceServerConfigCommand_1.GetIceServerConfigCommand,
10
+ SendAlexaOfferToMasterCommand: SendAlexaOfferToMasterCommand_1.SendAlexaOfferToMasterCommand,
11
+ };
7
12
  class KinesisVideoSignaling extends KinesisVideoSignalingClient_1.KinesisVideoSignalingClient {
8
- getIceServerConfig(args, optionsOrCb, cb) {
9
- const command = new GetIceServerConfigCommand_1.GetIceServerConfigCommand(args);
10
- if (typeof optionsOrCb === "function") {
11
- this.send(command, optionsOrCb);
12
- }
13
- else if (typeof cb === "function") {
14
- if (typeof optionsOrCb !== "object")
15
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
16
- this.send(command, optionsOrCb || {}, cb);
17
- }
18
- else {
19
- return this.send(command, optionsOrCb);
20
- }
21
- }
22
- sendAlexaOfferToMaster(args, optionsOrCb, cb) {
23
- const command = new SendAlexaOfferToMasterCommand_1.SendAlexaOfferToMasterCommand(args);
24
- if (typeof optionsOrCb === "function") {
25
- this.send(command, optionsOrCb);
26
- }
27
- else if (typeof cb === "function") {
28
- if (typeof optionsOrCb !== "object")
29
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
30
- this.send(command, optionsOrCb || {}, cb);
31
- }
32
- else {
33
- return this.send(command, optionsOrCb);
34
- }
35
- }
36
13
  }
37
14
  exports.KinesisVideoSignaling = KinesisVideoSignaling;
15
+ (0, smithy_client_1.createAggregatedClient)(commands, KinesisVideoSignaling);
@@ -1,33 +1,11 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { GetIceServerConfigCommand, } from "./commands/GetIceServerConfigCommand";
2
3
  import { SendAlexaOfferToMasterCommand, } from "./commands/SendAlexaOfferToMasterCommand";
3
4
  import { KinesisVideoSignalingClient } from "./KinesisVideoSignalingClient";
5
+ const commands = {
6
+ GetIceServerConfigCommand,
7
+ SendAlexaOfferToMasterCommand,
8
+ };
4
9
  export class KinesisVideoSignaling extends KinesisVideoSignalingClient {
5
- getIceServerConfig(args, optionsOrCb, cb) {
6
- const command = new GetIceServerConfigCommand(args);
7
- if (typeof optionsOrCb === "function") {
8
- this.send(command, optionsOrCb);
9
- }
10
- else if (typeof cb === "function") {
11
- if (typeof optionsOrCb !== "object")
12
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
13
- this.send(command, optionsOrCb || {}, cb);
14
- }
15
- else {
16
- return this.send(command, optionsOrCb);
17
- }
18
- }
19
- sendAlexaOfferToMaster(args, optionsOrCb, cb) {
20
- const command = new SendAlexaOfferToMasterCommand(args);
21
- if (typeof optionsOrCb === "function") {
22
- this.send(command, optionsOrCb);
23
- }
24
- else if (typeof cb === "function") {
25
- if (typeof optionsOrCb !== "object")
26
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
27
- this.send(command, optionsOrCb || {}, cb);
28
- }
29
- else {
30
- return this.send(command, optionsOrCb);
31
- }
32
- }
33
10
  }
11
+ createAggregatedClient(commands, KinesisVideoSignaling);
@@ -2,43 +2,25 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { GetIceServerConfigCommandInput, GetIceServerConfigCommandOutput } from "./commands/GetIceServerConfigCommand";
3
3
  import { SendAlexaOfferToMasterCommandInput, SendAlexaOfferToMasterCommandOutput } from "./commands/SendAlexaOfferToMasterCommand";
4
4
  import { KinesisVideoSignalingClient } from "./KinesisVideoSignalingClient";
5
- /**
6
- * @public
7
- * <p>Kinesis Video Streams Signaling Service is a intermediate service that establishes a
8
- * communication channel for discovering peers, transmitting offers and answers in order to
9
- * establish peer-to-peer connection in webRTC technology.</p>
10
- */
11
- export declare class KinesisVideoSignaling extends KinesisVideoSignalingClient {
5
+ export interface KinesisVideoSignaling {
12
6
  /**
13
- * @public
14
- * <p>Gets the Interactive Connectivity Establishment (ICE) server configuration
15
- * information, including URIs, username, and password which can be used to configure the
16
- * WebRTC connection. The ICE component uses this configuration information to setup the
17
- * WebRTC connection, including authenticating with the Traversal Using Relays around NAT
18
- * (TURN) relay server. </p>
19
- * <p>TURN is a protocol that is used to improve the connectivity of peer-to-peer
20
- * applications. By providing a cloud-based relay service, TURN ensures that a connection
21
- * can be established even when one or more peers are incapable of a direct peer-to-peer
22
- * connection. For more information, see <a href="https://tools.ietf.org/html/draft-uberti-rtcweb-turn-rest-00">A REST API For
23
- * Access To TURN Services</a>.</p>
24
- * <p> You can invoke this API to establish a fallback mechanism in case either of the peers
25
- * is unable to establish a direct peer-to-peer connection over a signaling channel. You
26
- * must specify either a signaling channel ARN or the client ID in order to invoke this
27
- * API.</p>
7
+ * @see {@link GetIceServerConfigCommand}
28
8
  */
29
9
  getIceServerConfig(args: GetIceServerConfigCommandInput, options?: __HttpHandlerOptions): Promise<GetIceServerConfigCommandOutput>;
30
10
  getIceServerConfig(args: GetIceServerConfigCommandInput, cb: (err: any, data?: GetIceServerConfigCommandOutput) => void): void;
31
11
  getIceServerConfig(args: GetIceServerConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIceServerConfigCommandOutput) => void): void;
32
12
  /**
33
- * @public
34
- * <p>This API allows you to connect WebRTC-enabled devices with Alexa display devices. When
35
- * invoked, it sends the Alexa Session Description Protocol (SDP) offer to the master peer.
36
- * The offer is delivered as soon as the master is connected to the specified signaling
37
- * channel. This API returns the SDP answer from the connected master. If the master is not
38
- * connected to the signaling channel, redelivery requests are made until the message
39
- * expires.</p>
13
+ * @see {@link SendAlexaOfferToMasterCommand}
40
14
  */
41
15
  sendAlexaOfferToMaster(args: SendAlexaOfferToMasterCommandInput, options?: __HttpHandlerOptions): Promise<SendAlexaOfferToMasterCommandOutput>;
42
16
  sendAlexaOfferToMaster(args: SendAlexaOfferToMasterCommandInput, cb: (err: any, data?: SendAlexaOfferToMasterCommandOutput) => void): void;
43
17
  sendAlexaOfferToMaster(args: SendAlexaOfferToMasterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendAlexaOfferToMasterCommandOutput) => void): void;
44
18
  }
19
+ /**
20
+ * @public
21
+ * <p>Kinesis Video Streams Signaling Service is a intermediate service that establishes a
22
+ * communication channel for discovering peers, transmitting offers and answers in order to
23
+ * establish peer-to-peer connection in webRTC technology.</p>
24
+ */
25
+ export declare class KinesisVideoSignaling extends KinesisVideoSignalingClient implements KinesisVideoSignaling {
26
+ }
@@ -8,7 +8,7 @@ import {
8
8
  SendAlexaOfferToMasterCommandOutput,
9
9
  } from "./commands/SendAlexaOfferToMasterCommand";
10
10
  import { KinesisVideoSignalingClient } from "./KinesisVideoSignalingClient";
11
- export declare class KinesisVideoSignaling extends KinesisVideoSignalingClient {
11
+ export interface KinesisVideoSignaling {
12
12
  getIceServerConfig(
13
13
  args: GetIceServerConfigCommandInput,
14
14
  options?: __HttpHandlerOptions
@@ -36,3 +36,6 @@ export declare class KinesisVideoSignaling extends KinesisVideoSignalingClient {
36
36
  cb: (err: any, data?: SendAlexaOfferToMasterCommandOutput) => void
37
37
  ): void;
38
38
  }
39
+ export declare class KinesisVideoSignaling
40
+ extends KinesisVideoSignalingClient
41
+ implements KinesisVideoSignaling {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kinesis-video-signaling",
3
3
  "description": "AWS SDK for JavaScript Kinesis Video Signaling Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.319.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": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.319.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.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",