@aws-sdk/client-kinesis-video-webrtc-storage 3.236.0 → 3.237.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,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.KinesisVideoWebRTCStorage = void 0;
4
- const JoinStorageSessionAsViewerCommand_1 = require("./commands/JoinStorageSessionAsViewerCommand");
5
4
  const JoinStorageSessionCommand_1 = require("./commands/JoinStorageSessionCommand");
6
5
  const KinesisVideoWebRTCStorageClient_1 = require("./KinesisVideoWebRTCStorageClient");
7
6
  class KinesisVideoWebRTCStorage extends KinesisVideoWebRTCStorageClient_1.KinesisVideoWebRTCStorageClient {
@@ -19,19 +18,5 @@ class KinesisVideoWebRTCStorage extends KinesisVideoWebRTCStorageClient_1.Kinesi
19
18
  return this.send(command, optionsOrCb);
20
19
  }
21
20
  }
22
- joinStorageSessionAsViewer(args, optionsOrCb, cb) {
23
- const command = new JoinStorageSessionAsViewerCommand_1.JoinStorageSessionAsViewerCommand(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
21
  }
37
22
  exports.KinesisVideoWebRTCStorage = KinesisVideoWebRTCStorage;
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./JoinStorageSessionAsViewerCommand"), exports);
5
4
  tslib_1.__exportStar(require("./JoinStorageSessionCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JoinStorageSessionAsViewerInputFilterSensitiveLog = exports.JoinStorageSessionInputFilterSensitiveLog = exports.ResourceNotFoundException = exports.InvalidArgumentException = exports.ClientLimitExceededException = exports.AccessDeniedException = void 0;
3
+ exports.JoinStorageSessionInputFilterSensitiveLog = exports.ResourceNotFoundException = exports.InvalidArgumentException = exports.ClientLimitExceededException = exports.AccessDeniedException = void 0;
4
4
  const KinesisVideoWebRTCStorageServiceException_1 = require("./KinesisVideoWebRTCStorageServiceException");
5
5
  class AccessDeniedException extends KinesisVideoWebRTCStorageServiceException_1.KinesisVideoWebRTCStorageServiceException {
6
6
  constructor(opts) {
@@ -58,7 +58,3 @@ const JoinStorageSessionInputFilterSensitiveLog = (obj) => ({
58
58
  ...obj,
59
59
  });
60
60
  exports.JoinStorageSessionInputFilterSensitiveLog = JoinStorageSessionInputFilterSensitiveLog;
61
- const JoinStorageSessionAsViewerInputFilterSensitiveLog = (obj) => ({
62
- ...obj,
63
- });
64
- exports.JoinStorageSessionAsViewerInputFilterSensitiveLog = JoinStorageSessionAsViewerInputFilterSensitiveLog;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1JoinStorageSessionAsViewerCommand = exports.deserializeAws_restJson1JoinStorageSessionCommand = exports.serializeAws_restJson1JoinStorageSessionAsViewerCommand = exports.serializeAws_restJson1JoinStorageSessionCommand = void 0;
3
+ exports.deserializeAws_restJson1JoinStorageSessionCommand = exports.serializeAws_restJson1JoinStorageSessionCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const KinesisVideoWebRTCStorageServiceException_1 = require("../models/KinesisVideoWebRTCStorageServiceException");
@@ -26,28 +26,6 @@ const serializeAws_restJson1JoinStorageSessionCommand = async (input, context) =
26
26
  });
27
27
  };
28
28
  exports.serializeAws_restJson1JoinStorageSessionCommand = serializeAws_restJson1JoinStorageSessionCommand;
29
- const serializeAws_restJson1JoinStorageSessionAsViewerCommand = async (input, context) => {
30
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
31
- const headers = {
32
- "content-type": "application/json",
33
- };
34
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/joinStorageSessionAsViewer";
35
- let body;
36
- body = JSON.stringify({
37
- ...(input.channelArn != null && { channelArn: input.channelArn }),
38
- ...(input.clientId != null && { clientId: input.clientId }),
39
- });
40
- return new protocol_http_1.HttpRequest({
41
- protocol,
42
- hostname,
43
- port,
44
- method: "POST",
45
- headers,
46
- path: resolvedPath,
47
- body,
48
- });
49
- };
50
- exports.serializeAws_restJson1JoinStorageSessionAsViewerCommand = serializeAws_restJson1JoinStorageSessionAsViewerCommand;
51
29
  const deserializeAws_restJson1JoinStorageSessionCommand = async (output, context) => {
52
30
  if (output.statusCode !== 200 && output.statusCode >= 300) {
53
31
  return deserializeAws_restJson1JoinStorageSessionCommandError(output, context);
@@ -88,46 +66,6 @@ const deserializeAws_restJson1JoinStorageSessionCommandError = async (output, co
88
66
  });
89
67
  }
90
68
  };
91
- const deserializeAws_restJson1JoinStorageSessionAsViewerCommand = async (output, context) => {
92
- if (output.statusCode !== 200 && output.statusCode >= 300) {
93
- return deserializeAws_restJson1JoinStorageSessionAsViewerCommandError(output, context);
94
- }
95
- const contents = map({
96
- $metadata: deserializeMetadata(output),
97
- });
98
- await collectBody(output.body, context);
99
- return contents;
100
- };
101
- exports.deserializeAws_restJson1JoinStorageSessionAsViewerCommand = deserializeAws_restJson1JoinStorageSessionAsViewerCommand;
102
- const deserializeAws_restJson1JoinStorageSessionAsViewerCommandError = async (output, context) => {
103
- const parsedOutput = {
104
- ...output,
105
- body: await parseErrorBody(output.body, context),
106
- };
107
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
108
- switch (errorCode) {
109
- case "AccessDeniedException":
110
- case "com.amazonaws.kinesisvideowebrtcstorage#AccessDeniedException":
111
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
112
- case "ClientLimitExceededException":
113
- case "com.amazonaws.kinesisvideowebrtcstorage#ClientLimitExceededException":
114
- throw await deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context);
115
- case "InvalidArgumentException":
116
- case "com.amazonaws.kinesisvideowebrtcstorage#InvalidArgumentException":
117
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
118
- case "ResourceNotFoundException":
119
- case "com.amazonaws.kinesisvideowebrtcstorage#ResourceNotFoundException":
120
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
121
- default:
122
- const parsedBody = parsedOutput.body;
123
- (0, smithy_client_1.throwDefaultError)({
124
- output,
125
- parsedBody,
126
- exceptionCtor: KinesisVideoWebRTCStorageServiceException_1.KinesisVideoWebRTCStorageServiceException,
127
- errorCode,
128
- });
129
- }
130
- };
131
69
  const map = smithy_client_1.map;
132
70
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
133
71
  const contents = map({});
@@ -1,4 +1,3 @@
1
- import { JoinStorageSessionAsViewerCommand, } from "./commands/JoinStorageSessionAsViewerCommand";
2
1
  import { JoinStorageSessionCommand, } from "./commands/JoinStorageSessionCommand";
3
2
  import { KinesisVideoWebRTCStorageClient } from "./KinesisVideoWebRTCStorageClient";
4
3
  export class KinesisVideoWebRTCStorage extends KinesisVideoWebRTCStorageClient {
@@ -16,18 +15,4 @@ export class KinesisVideoWebRTCStorage extends KinesisVideoWebRTCStorageClient {
16
15
  return this.send(command, optionsOrCb);
17
16
  }
18
17
  }
19
- joinStorageSessionAsViewer(args, optionsOrCb, cb) {
20
- const command = new JoinStorageSessionAsViewerCommand(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
18
  }
@@ -1,2 +1 @@
1
- export * from "./JoinStorageSessionAsViewerCommand";
2
1
  export * from "./JoinStorageSessionCommand";
@@ -50,6 +50,3 @@ export class ResourceNotFoundException extends __BaseException {
50
50
  export const JoinStorageSessionInputFilterSensitiveLog = (obj) => ({
51
51
  ...obj,
52
52
  });
53
- export const JoinStorageSessionAsViewerInputFilterSensitiveLog = (obj) => ({
54
- ...obj,
55
- });
@@ -22,27 +22,6 @@ export const serializeAws_restJson1JoinStorageSessionCommand = async (input, con
22
22
  body,
23
23
  });
24
24
  };
25
- export const serializeAws_restJson1JoinStorageSessionAsViewerCommand = async (input, context) => {
26
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
- const headers = {
28
- "content-type": "application/json",
29
- };
30
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/joinStorageSessionAsViewer";
31
- let body;
32
- body = JSON.stringify({
33
- ...(input.channelArn != null && { channelArn: input.channelArn }),
34
- ...(input.clientId != null && { clientId: input.clientId }),
35
- });
36
- return new __HttpRequest({
37
- protocol,
38
- hostname,
39
- port,
40
- method: "POST",
41
- headers,
42
- path: resolvedPath,
43
- body,
44
- });
45
- };
46
25
  export const deserializeAws_restJson1JoinStorageSessionCommand = async (output, context) => {
47
26
  if (output.statusCode !== 200 && output.statusCode >= 300) {
48
27
  return deserializeAws_restJson1JoinStorageSessionCommandError(output, context);
@@ -82,45 +61,6 @@ const deserializeAws_restJson1JoinStorageSessionCommandError = async (output, co
82
61
  });
83
62
  }
84
63
  };
85
- export const deserializeAws_restJson1JoinStorageSessionAsViewerCommand = async (output, context) => {
86
- if (output.statusCode !== 200 && output.statusCode >= 300) {
87
- return deserializeAws_restJson1JoinStorageSessionAsViewerCommandError(output, context);
88
- }
89
- const contents = map({
90
- $metadata: deserializeMetadata(output),
91
- });
92
- await collectBody(output.body, context);
93
- return contents;
94
- };
95
- const deserializeAws_restJson1JoinStorageSessionAsViewerCommandError = async (output, context) => {
96
- const parsedOutput = {
97
- ...output,
98
- body: await parseErrorBody(output.body, context),
99
- };
100
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
101
- switch (errorCode) {
102
- case "AccessDeniedException":
103
- case "com.amazonaws.kinesisvideowebrtcstorage#AccessDeniedException":
104
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
105
- case "ClientLimitExceededException":
106
- case "com.amazonaws.kinesisvideowebrtcstorage#ClientLimitExceededException":
107
- throw await deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context);
108
- case "InvalidArgumentException":
109
- case "com.amazonaws.kinesisvideowebrtcstorage#InvalidArgumentException":
110
- throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
111
- case "ResourceNotFoundException":
112
- case "com.amazonaws.kinesisvideowebrtcstorage#ResourceNotFoundException":
113
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
114
- default:
115
- const parsedBody = parsedOutput.body;
116
- throwDefaultError({
117
- output,
118
- parsedBody,
119
- exceptionCtor: __BaseException,
120
- errorCode,
121
- });
122
- }
123
- };
124
64
  const map = __map;
125
65
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
126
66
  const contents = map({});
@@ -1,5 +1,4 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
- import { JoinStorageSessionAsViewerCommandInput, JoinStorageSessionAsViewerCommandOutput } from "./commands/JoinStorageSessionAsViewerCommand";
3
2
  import { JoinStorageSessionCommandInput, JoinStorageSessionCommandOutput } from "./commands/JoinStorageSessionCommand";
4
3
  import { KinesisVideoWebRTCStorageClient } from "./KinesisVideoWebRTCStorageClient";
5
4
  /**
@@ -34,27 +33,4 @@ export declare class KinesisVideoWebRTCStorage extends KinesisVideoWebRTCStorage
34
33
  joinStorageSession(args: JoinStorageSessionCommandInput, options?: __HttpHandlerOptions): Promise<JoinStorageSessionCommandOutput>;
35
34
  joinStorageSession(args: JoinStorageSessionCommandInput, cb: (err: any, data?: JoinStorageSessionCommandOutput) => void): void;
36
35
  joinStorageSession(args: JoinStorageSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: JoinStorageSessionCommandOutput) => void): void;
37
- /**
38
- * <p>
39
- * Join the ongoing one way-video and/or multi-way audio WebRTC session as
40
- * a viewer for an input channel. If there’s
41
- * no existing session for the channel, create a new streaming session and provide
42
- * the Amazon Resource Name (ARN) of the signaling channel (<code>channelArn</code>)
43
- * and client id (<code>clientId</code>).
44
- * </p>
45
- * <p>Currently for <code>SINGLE_MASTER</code> type, a video producing device
46
- * is able to ingest both audio and video media into a stream, while viewers
47
- * can only ingest audio. Both a video producing device and viewers can join
48
- * a session first and wait for other participants. While participants are having peer to peer conversations through webRTC,
49
- * the ingested media session will be stored into the Kinesis Video Stream.
50
- * Multiple viewers are able to playback real-time media.
51
- * </p>
52
- * <p>Customers can also use existing Kinesis Video Streams features like
53
- * <code>HLS</code> or <code>DASH</code> playback, Image generation, and more
54
- * with ingested WebRTC media. If there’s an existing session with the same
55
- * <code>clientId</code> that's found in the join session request, the new request takes precedence.</p>
56
- */
57
- joinStorageSessionAsViewer(args: JoinStorageSessionAsViewerCommandInput, options?: __HttpHandlerOptions): Promise<JoinStorageSessionAsViewerCommandOutput>;
58
- joinStorageSessionAsViewer(args: JoinStorageSessionAsViewerCommandInput, cb: (err: any, data?: JoinStorageSessionAsViewerCommandOutput) => void): void;
59
- joinStorageSessionAsViewer(args: JoinStorageSessionAsViewerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: JoinStorageSessionAsViewerCommandOutput) => void): void;
60
36
  }
@@ -7,11 +7,10 @@ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middlewa
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
8
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
9
  import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
- import { JoinStorageSessionAsViewerCommandInput, JoinStorageSessionAsViewerCommandOutput } from "./commands/JoinStorageSessionAsViewerCommand";
11
10
  import { JoinStorageSessionCommandInput, JoinStorageSessionCommandOutput } from "./commands/JoinStorageSessionCommand";
12
11
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
13
- export declare type ServiceInputTypes = JoinStorageSessionAsViewerCommandInput | JoinStorageSessionCommandInput;
14
- export declare type ServiceOutputTypes = JoinStorageSessionAsViewerCommandOutput | JoinStorageSessionCommandOutput;
12
+ export declare type ServiceInputTypes = JoinStorageSessionCommandInput;
13
+ export declare type ServiceOutputTypes = JoinStorageSessionCommandOutput;
15
14
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
16
15
  /**
17
16
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -1,2 +1 @@
1
- export * from "./JoinStorageSessionAsViewerCommand";
2
1
  export * from "./JoinStorageSessionCommand";
@@ -1,16 +1,7 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { KinesisVideoWebRTCStorageServiceException as __BaseException } from "./KinesisVideoWebRTCStorageServiceException";
3
3
  /**
4
- * <ol>
5
- * <li>
6
- * <p>You do not have required permissions to perform this operation</p>
7
- * </li>
8
- * </ol>
9
- * <ol>
10
- * <li>
11
- * <p>The <code>AccessDeniedException</code> can be thrown for operation access as well as tokens or resource access</p>
12
- * </li>
13
- * </ol>
4
+ * <p>You do not have required permissions to perform this operation.</p>
14
5
  */
15
6
  export declare class AccessDeniedException extends __BaseException {
16
7
  readonly name: "AccessDeniedException";
@@ -34,16 +25,7 @@ export declare class ClientLimitExceededException extends __BaseException {
34
25
  constructor(opts: __ExceptionOptionType<ClientLimitExceededException, __BaseException>);
35
26
  }
36
27
  /**
37
- * <ol>
38
- * <li>
39
- * <p>The value for this input parameter is invalid.</p>
40
- * </li>
41
- * </ol>
42
- * <ol>
43
- * <li>
44
- * <p>Additional details may <b>not</b>be returned.</p>
45
- * </li>
46
- * </ol>
28
+ * <p>The value for this input parameter is invalid.</p>
47
29
  */
48
30
  export declare class InvalidArgumentException extends __BaseException {
49
31
  readonly name: "InvalidArgumentException";
@@ -62,16 +44,7 @@ export interface JoinStorageSessionInput {
62
44
  channelArn: string | undefined;
63
45
  }
64
46
  /**
65
- * <ol>
66
- * <li>
67
- * <p>The specified resource is not found</p>
68
- * </li>
69
- * </ol>
70
- * <ol>
71
- * <li>
72
- * <p>You have not specified a channel in this API call.</p>
73
- * </li>
74
- * </ol>
47
+ * <p>The specified resource is not found.</p>
75
48
  */
76
49
  export declare class ResourceNotFoundException extends __BaseException {
77
50
  readonly name: "ResourceNotFoundException";
@@ -81,25 +54,7 @@ export declare class ResourceNotFoundException extends __BaseException {
81
54
  */
82
55
  constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
83
56
  }
84
- export interface JoinStorageSessionAsViewerInput {
85
- /**
86
- * <p>
87
- * The Amazon Resource Name (ARN) of the signaling channel.
88
- * </p>
89
- */
90
- channelArn: string | undefined;
91
- /**
92
- * <p>
93
- * The unique identifier for the sender client.
94
- * </p>
95
- */
96
- clientId: string | undefined;
97
- }
98
57
  /**
99
58
  * @internal
100
59
  */
101
60
  export declare const JoinStorageSessionInputFilterSensitiveLog: (obj: JoinStorageSessionInput) => any;
102
- /**
103
- * @internal
104
- */
105
- export declare const JoinStorageSessionAsViewerInputFilterSensitiveLog: (obj: JoinStorageSessionAsViewerInput) => any;
@@ -1,8 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
2
  import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
- import { JoinStorageSessionAsViewerCommandInput, JoinStorageSessionAsViewerCommandOutput } from "../commands/JoinStorageSessionAsViewerCommand";
4
3
  import { JoinStorageSessionCommandInput, JoinStorageSessionCommandOutput } from "../commands/JoinStorageSessionCommand";
5
4
  export declare const serializeAws_restJson1JoinStorageSessionCommand: (input: JoinStorageSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
6
- export declare const serializeAws_restJson1JoinStorageSessionAsViewerCommand: (input: JoinStorageSessionAsViewerCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
7
5
  export declare const deserializeAws_restJson1JoinStorageSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<JoinStorageSessionCommandOutput>;
8
- export declare const deserializeAws_restJson1JoinStorageSessionAsViewerCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<JoinStorageSessionAsViewerCommandOutput>;
@@ -26,7 +26,7 @@ export declare const getRuntimeConfig: (config: KinesisVideoWebRTCStorageClientC
26
26
  disableHostPrefix: boolean;
27
27
  logger: import("@aws-sdk/types").Logger;
28
28
  serviceId: string;
29
- endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
29
+ endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
30
30
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
31
  logger?: import("@aws-sdk/types").Logger | undefined;
32
32
  }) => import("@aws-sdk/types").EndpointV2;
@@ -26,7 +26,7 @@ export declare const getRuntimeConfig: (config: KinesisVideoWebRTCStorageClientC
26
26
  disableHostPrefix: boolean;
27
27
  logger: import("@aws-sdk/types").Logger;
28
28
  serviceId: string;
29
- endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
29
+ endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
30
30
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
31
  logger?: import("@aws-sdk/types").Logger | undefined;
32
32
  }) => import("@aws-sdk/types").EndpointV2;
@@ -1,8 +1,4 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
- import {
3
- JoinStorageSessionAsViewerCommandInput,
4
- JoinStorageSessionAsViewerCommandOutput,
5
- } from "./commands/JoinStorageSessionAsViewerCommand";
6
2
  import {
7
3
  JoinStorageSessionCommandInput,
8
4
  JoinStorageSessionCommandOutput,
@@ -22,17 +18,4 @@ export declare class KinesisVideoWebRTCStorage extends KinesisVideoWebRTCStorage
22
18
  options: __HttpHandlerOptions,
23
19
  cb: (err: any, data?: JoinStorageSessionCommandOutput) => void
24
20
  ): void;
25
- joinStorageSessionAsViewer(
26
- args: JoinStorageSessionAsViewerCommandInput,
27
- options?: __HttpHandlerOptions
28
- ): Promise<JoinStorageSessionAsViewerCommandOutput>;
29
- joinStorageSessionAsViewer(
30
- args: JoinStorageSessionAsViewerCommandInput,
31
- cb: (err: any, data?: JoinStorageSessionAsViewerCommandOutput) => void
32
- ): void;
33
- joinStorageSessionAsViewer(
34
- args: JoinStorageSessionAsViewerCommandInput,
35
- options: __HttpHandlerOptions,
36
- cb: (err: any, data?: JoinStorageSessionAsViewerCommandOutput) => void
37
- ): void;
38
21
  }
@@ -43,10 +43,6 @@ import {
43
43
  UrlParser as __UrlParser,
44
44
  UserAgent as __UserAgent,
45
45
  } from "@aws-sdk/types";
46
- import {
47
- JoinStorageSessionAsViewerCommandInput,
48
- JoinStorageSessionAsViewerCommandOutput,
49
- } from "./commands/JoinStorageSessionAsViewerCommand";
50
46
  import {
51
47
  JoinStorageSessionCommandInput,
52
48
  JoinStorageSessionCommandOutput,
@@ -56,12 +52,8 @@ import {
56
52
  ClientResolvedEndpointParameters,
57
53
  EndpointParameters,
58
54
  } from "./endpoint/EndpointParameters";
59
- export declare type ServiceInputTypes =
60
- | JoinStorageSessionAsViewerCommandInput
61
- | JoinStorageSessionCommandInput;
62
- export declare type ServiceOutputTypes =
63
- | JoinStorageSessionAsViewerCommandOutput
64
- | JoinStorageSessionCommandOutput;
55
+ export declare type ServiceInputTypes = JoinStorageSessionCommandInput;
56
+ export declare type ServiceOutputTypes = JoinStorageSessionCommandOutput;
65
57
  export interface ClientDefaults
66
58
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
67
59
  requestHandler?: __HttpHandler;
@@ -1,2 +1 @@
1
- export * from "./JoinStorageSessionAsViewerCommand";
2
1
  export * from "./JoinStorageSessionCommand";
@@ -31,13 +31,6 @@ export declare class ResourceNotFoundException extends __BaseException {
31
31
  opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
32
32
  );
33
33
  }
34
- export interface JoinStorageSessionAsViewerInput {
35
- channelArn: string | undefined;
36
- clientId: string | undefined;
37
- }
38
34
  export declare const JoinStorageSessionInputFilterSensitiveLog: (
39
35
  obj: JoinStorageSessionInput
40
36
  ) => any;
41
- export declare const JoinStorageSessionAsViewerInputFilterSensitiveLog: (
42
- obj: JoinStorageSessionAsViewerInput
43
- ) => any;
@@ -3,10 +3,6 @@ import {
3
3
  HttpResponse as __HttpResponse,
4
4
  } from "@aws-sdk/protocol-http";
5
5
  import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
6
- import {
7
- JoinStorageSessionAsViewerCommandInput,
8
- JoinStorageSessionAsViewerCommandOutput,
9
- } from "../commands/JoinStorageSessionAsViewerCommand";
10
6
  import {
11
7
  JoinStorageSessionCommandInput,
12
8
  JoinStorageSessionCommandOutput,
@@ -15,15 +11,7 @@ export declare const serializeAws_restJson1JoinStorageSessionCommand: (
15
11
  input: JoinStorageSessionCommandInput,
16
12
  context: __SerdeContext
17
13
  ) => Promise<__HttpRequest>;
18
- export declare const serializeAws_restJson1JoinStorageSessionAsViewerCommand: (
19
- input: JoinStorageSessionAsViewerCommandInput,
20
- context: __SerdeContext
21
- ) => Promise<__HttpRequest>;
22
14
  export declare const deserializeAws_restJson1JoinStorageSessionCommand: (
23
15
  output: __HttpResponse,
24
16
  context: __SerdeContext
25
17
  ) => Promise<JoinStorageSessionCommandOutput>;
26
- export declare const deserializeAws_restJson1JoinStorageSessionAsViewerCommand: (
27
- output: __HttpResponse,
28
- context: __SerdeContext
29
- ) => Promise<JoinStorageSessionAsViewerCommandOutput>;
@@ -48,9 +48,9 @@ export declare const getRuntimeConfig: (
48
48
  ) &
49
49
  (
50
50
  | string
51
+ | import("@aws-sdk/types").Provider<string>
51
52
  | import("@aws-sdk/types").Endpoint
52
53
  | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
53
- | import("@aws-sdk/types").Provider<string>
54
54
  | import("@aws-sdk/types").EndpointV2
55
55
  | import("@aws-sdk/types").Provider<
56
56
  import("@aws-sdk/types").EndpointV2
@@ -48,9 +48,9 @@ export declare const getRuntimeConfig: (
48
48
  ) &
49
49
  (
50
50
  | string
51
+ | import("@aws-sdk/types").Provider<string>
51
52
  | import("@aws-sdk/types").Endpoint
52
53
  | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
53
- | import("@aws-sdk/types").Provider<string>
54
54
  | import("@aws-sdk/types").EndpointV2
55
55
  | import("@aws-sdk/types").Provider<
56
56
  import("@aws-sdk/types").EndpointV2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kinesis-video-webrtc-storage",
3
3
  "description": "AWS SDK for JavaScript Kinesis Video Webrtc Storage Client for Node.js, Browser and React Native",
4
- "version": "3.236.0",
4
+ "version": "3.237.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",
@@ -1,46 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JoinStorageSessionAsViewerCommand = void 0;
4
- const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
- const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
- const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_0_1 = require("../models/models_0");
8
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
- class JoinStorageSessionAsViewerCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
- static getEndpointParameterInstructions() {
15
- return {
16
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
- Endpoint: { type: "builtInParams", name: "endpoint" },
18
- Region: { type: "builtInParams", name: "region" },
19
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
- };
21
- }
22
- resolveMiddleware(clientStack, configuration, options) {
23
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, JoinStorageSessionAsViewerCommand.getEndpointParameterInstructions()));
25
- const stack = clientStack.concat(this.middlewareStack);
26
- const { logger } = configuration;
27
- const clientName = "KinesisVideoWebRTCStorageClient";
28
- const commandName = "JoinStorageSessionAsViewerCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: models_0_1.JoinStorageSessionAsViewerInputFilterSensitiveLog,
34
- outputFilterSensitiveLog: (output) => output,
35
- };
36
- const { requestHandler } = configuration;
37
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
- }
39
- serialize(input, context) {
40
- return (0, Aws_restJson1_1.serializeAws_restJson1JoinStorageSessionAsViewerCommand)(input, context);
41
- }
42
- deserialize(output, context) {
43
- return (0, Aws_restJson1_1.deserializeAws_restJson1JoinStorageSessionAsViewerCommand)(output, context);
44
- }
45
- }
46
- exports.JoinStorageSessionAsViewerCommand = JoinStorageSessionAsViewerCommand;
@@ -1,42 +0,0 @@
1
- import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { JoinStorageSessionAsViewerInputFilterSensitiveLog } from "../models/models_0";
5
- import { deserializeAws_restJson1JoinStorageSessionAsViewerCommand, serializeAws_restJson1JoinStorageSessionAsViewerCommand, } from "../protocols/Aws_restJson1";
6
- export class JoinStorageSessionAsViewerCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- resolveMiddleware(clientStack, configuration, options) {
20
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
- this.middlewareStack.use(getEndpointPlugin(configuration, JoinStorageSessionAsViewerCommand.getEndpointParameterInstructions()));
22
- const stack = clientStack.concat(this.middlewareStack);
23
- const { logger } = configuration;
24
- const clientName = "KinesisVideoWebRTCStorageClient";
25
- const commandName = "JoinStorageSessionAsViewerCommand";
26
- const handlerExecutionContext = {
27
- logger,
28
- clientName,
29
- commandName,
30
- inputFilterSensitiveLog: JoinStorageSessionAsViewerInputFilterSensitiveLog,
31
- outputFilterSensitiveLog: (output) => output,
32
- };
33
- const { requestHandler } = configuration;
34
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
- }
36
- serialize(input, context) {
37
- return serializeAws_restJson1JoinStorageSessionAsViewerCommand(input, context);
38
- }
39
- deserialize(output, context) {
40
- return deserializeAws_restJson1JoinStorageSessionAsViewerCommand(output, context);
41
- }
42
- }
@@ -1,54 +0,0 @@
1
- import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
- import { Command as $Command } from "@aws-sdk/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
- import { KinesisVideoWebRTCStorageClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KinesisVideoWebRTCStorageClient";
5
- import { JoinStorageSessionAsViewerInput } from "../models/models_0";
6
- export interface JoinStorageSessionAsViewerCommandInput extends JoinStorageSessionAsViewerInput {
7
- }
8
- export interface JoinStorageSessionAsViewerCommandOutput extends __MetadataBearer {
9
- }
10
- /**
11
- * <p>
12
- * Join the ongoing one way-video and/or multi-way audio WebRTC session as
13
- * a viewer for an input channel. If there’s
14
- * no existing session for the channel, create a new streaming session and provide
15
- * the Amazon Resource Name (ARN) of the signaling channel (<code>channelArn</code>)
16
- * and client id (<code>clientId</code>).
17
- * </p>
18
- * <p>Currently for <code>SINGLE_MASTER</code> type, a video producing device
19
- * is able to ingest both audio and video media into a stream, while viewers
20
- * can only ingest audio. Both a video producing device and viewers can join
21
- * a session first and wait for other participants. While participants are having peer to peer conversations through webRTC,
22
- * the ingested media session will be stored into the Kinesis Video Stream.
23
- * Multiple viewers are able to playback real-time media.
24
- * </p>
25
- * <p>Customers can also use existing Kinesis Video Streams features like
26
- * <code>HLS</code> or <code>DASH</code> playback, Image generation, and more
27
- * with ingested WebRTC media. If there’s an existing session with the same
28
- * <code>clientId</code> that's found in the join session request, the new request takes precedence.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { KinesisVideoWebRTCStorageClient, JoinStorageSessionAsViewerCommand } from "@aws-sdk/client-kinesis-video-webrtc-storage"; // ES Modules import
33
- * // const { KinesisVideoWebRTCStorageClient, JoinStorageSessionAsViewerCommand } = require("@aws-sdk/client-kinesis-video-webrtc-storage"); // CommonJS import
34
- * const client = new KinesisVideoWebRTCStorageClient(config);
35
- * const command = new JoinStorageSessionAsViewerCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link JoinStorageSessionAsViewerCommandInput} for command's `input` shape.
40
- * @see {@link JoinStorageSessionAsViewerCommandOutput} for command's `response` shape.
41
- * @see {@link KinesisVideoWebRTCStorageClientResolvedConfig | config} for KinesisVideoWebRTCStorageClient's `config` shape.
42
- *
43
- */
44
- export declare class JoinStorageSessionAsViewerCommand extends $Command<JoinStorageSessionAsViewerCommandInput, JoinStorageSessionAsViewerCommandOutput, KinesisVideoWebRTCStorageClientResolvedConfig> {
45
- readonly input: JoinStorageSessionAsViewerCommandInput;
46
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
47
- constructor(input: JoinStorageSessionAsViewerCommandInput);
48
- /**
49
- * @internal
50
- */
51
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KinesisVideoWebRTCStorageClientResolvedConfig, options?: __HttpHandlerOptions): Handler<JoinStorageSessionAsViewerCommandInput, JoinStorageSessionAsViewerCommandOutput>;
52
- private serialize;
53
- private deserialize;
54
- }
@@ -1,37 +0,0 @@
1
- import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
- import { Command as $Command } from "@aws-sdk/smithy-client";
3
- import {
4
- Handler,
5
- HttpHandlerOptions as __HttpHandlerOptions,
6
- MetadataBearer as __MetadataBearer,
7
- MiddlewareStack,
8
- } from "@aws-sdk/types";
9
- import {
10
- KinesisVideoWebRTCStorageClientResolvedConfig,
11
- ServiceInputTypes,
12
- ServiceOutputTypes,
13
- } from "../KinesisVideoWebRTCStorageClient";
14
- import { JoinStorageSessionAsViewerInput } from "../models/models_0";
15
- export interface JoinStorageSessionAsViewerCommandInput
16
- extends JoinStorageSessionAsViewerInput {}
17
- export interface JoinStorageSessionAsViewerCommandOutput
18
- extends __MetadataBearer {}
19
- export declare class JoinStorageSessionAsViewerCommand extends $Command<
20
- JoinStorageSessionAsViewerCommandInput,
21
- JoinStorageSessionAsViewerCommandOutput,
22
- KinesisVideoWebRTCStorageClientResolvedConfig
23
- > {
24
- readonly input: JoinStorageSessionAsViewerCommandInput;
25
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
26
- constructor(input: JoinStorageSessionAsViewerCommandInput);
27
- resolveMiddleware(
28
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
29
- configuration: KinesisVideoWebRTCStorageClientResolvedConfig,
30
- options?: __HttpHandlerOptions
31
- ): Handler<
32
- JoinStorageSessionAsViewerCommandInput,
33
- JoinStorageSessionAsViewerCommandOutput
34
- >;
35
- private serialize;
36
- private deserialize;
37
- }