UNPKG

7.46 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class KinesisVideoSignalingChannels extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: KinesisVideoSignalingChannels.Types.ClientConfiguration)
13 config: Config & KinesisVideoSignalingChannels.Types.ClientConfiguration;
14 /**
15 * Gets the Interactive Connectivity Establishment (ICE) server configuration information, including URIs, username, and password which can be used to configure the WebRTC connection. The ICE component uses this configuration information to setup the WebRTC connection, including authenticating with the Traversal Using Relays around NAT (TURN) relay server. TURN is a protocol that is used to improve the connectivity of peer-to-peer applications. By providing a cloud-based relay service, TURN ensures that a connection can be established even when one or more peers are incapable of a direct peer-to-peer connection. For more information, see A REST API For Access To TURN Services. You can invoke this API to establish a fallback mechanism in case either of the peers is unable to establish a direct peer-to-peer connection over a signaling channel. You must specify either a signaling channel ARN or the client ID in order to invoke this API.
16 */
17 getIceServerConfig(params: KinesisVideoSignalingChannels.Types.GetIceServerConfigRequest, callback?: (err: AWSError, data: KinesisVideoSignalingChannels.Types.GetIceServerConfigResponse) => void): Request<KinesisVideoSignalingChannels.Types.GetIceServerConfigResponse, AWSError>;
18 /**
19 * Gets the Interactive Connectivity Establishment (ICE) server configuration information, including URIs, username, and password which can be used to configure the WebRTC connection. The ICE component uses this configuration information to setup the WebRTC connection, including authenticating with the Traversal Using Relays around NAT (TURN) relay server. TURN is a protocol that is used to improve the connectivity of peer-to-peer applications. By providing a cloud-based relay service, TURN ensures that a connection can be established even when one or more peers are incapable of a direct peer-to-peer connection. For more information, see A REST API For Access To TURN Services. You can invoke this API to establish a fallback mechanism in case either of the peers is unable to establish a direct peer-to-peer connection over a signaling channel. You must specify either a signaling channel ARN or the client ID in order to invoke this API.
20 */
21 getIceServerConfig(callback?: (err: AWSError, data: KinesisVideoSignalingChannels.Types.GetIceServerConfigResponse) => void): Request<KinesisVideoSignalingChannels.Types.GetIceServerConfigResponse, AWSError>;
22 /**
23 * This API allows you to connect WebRTC-enabled devices with Alexa display devices. When invoked, it sends the Alexa Session Description Protocol (SDP) offer to the master peer. The offer is delivered as soon as the master is connected to the specified signaling channel. This API returns the SDP answer from the connected master. If the master is not connected to the signaling channel, redelivery requests are made until the message expires.
24 */
25 sendAlexaOfferToMaster(params: KinesisVideoSignalingChannels.Types.SendAlexaOfferToMasterRequest, callback?: (err: AWSError, data: KinesisVideoSignalingChannels.Types.SendAlexaOfferToMasterResponse) => void): Request<KinesisVideoSignalingChannels.Types.SendAlexaOfferToMasterResponse, AWSError>;
26 /**
27 * This API allows you to connect WebRTC-enabled devices with Alexa display devices. When invoked, it sends the Alexa Session Description Protocol (SDP) offer to the master peer. The offer is delivered as soon as the master is connected to the specified signaling channel. This API returns the SDP answer from the connected master. If the master is not connected to the signaling channel, redelivery requests are made until the message expires.
28 */
29 sendAlexaOfferToMaster(callback?: (err: AWSError, data: KinesisVideoSignalingChannels.Types.SendAlexaOfferToMasterResponse) => void): Request<KinesisVideoSignalingChannels.Types.SendAlexaOfferToMasterResponse, AWSError>;
30}
31declare namespace KinesisVideoSignalingChannels {
32 export type Answer = string;
33 export type ClientId = string;
34 export interface GetIceServerConfigRequest {
35 /**
36 * The ARN of the signaling channel to be used for the peer-to-peer connection between configured peers.
37 */
38 ChannelARN: ResourceARN;
39 /**
40 * Unique identifier for the viewer. Must be unique within the signaling channel.
41 */
42 ClientId?: ClientId;
43 /**
44 * Specifies the desired service. Currently, TURN is the only valid value.
45 */
46 Service?: Service;
47 /**
48 * An optional user ID to be associated with the credentials.
49 */
50 Username?: Username;
51 }
52 export interface GetIceServerConfigResponse {
53 /**
54 * The list of ICE server information objects.
55 */
56 IceServerList?: IceServerList;
57 }
58 export interface IceServer {
59 /**
60 * An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris spec. These URIs provide the different addresses and/or protocols that can be used to reach the TURN server.
61 */
62 Uris?: Uris;
63 /**
64 * A username to login to the ICE server.
65 */
66 Username?: Username;
67 /**
68 * A password to login to the ICE server.
69 */
70 Password?: Password;
71 /**
72 * The period of time, in seconds, during which the username and password are valid.
73 */
74 Ttl?: Ttl;
75 }
76 export type IceServerList = IceServer[];
77 export type MessagePayload = string;
78 export type Password = string;
79 export type ResourceARN = string;
80 export interface SendAlexaOfferToMasterRequest {
81 /**
82 * The ARN of the signaling channel by which Alexa and the master peer communicate.
83 */
84 ChannelARN: ResourceARN;
85 /**
86 * The unique identifier for the sender client.
87 */
88 SenderClientId: ClientId;
89 /**
90 * The base64-encoded SDP offer content.
91 */
92 MessagePayload: MessagePayload;
93 }
94 export interface SendAlexaOfferToMasterResponse {
95 /**
96 * The base64-encoded SDP answer content.
97 */
98 Answer?: Answer;
99 }
100 export type Service = "TURN"|string;
101 export type Ttl = number;
102 export type Uri = string;
103 export type Uris = Uri[];
104 export type Username = string;
105 /**
106 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
107 */
108 export type apiVersion = "2019-12-04"|"latest"|string;
109 export interface ClientApiVersions {
110 /**
111 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
112 */
113 apiVersion?: apiVersion;
114 }
115 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
116 /**
117 * Contains interfaces for use with the KinesisVideoSignalingChannels client.
118 */
119 export import Types = KinesisVideoSignalingChannels;
120}
121export = KinesisVideoSignalingChannels;