@crewdle/web-sdk-types 1.0.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.
- package/README.md +39 -0
- package/dist/core/cluster/Cluster.d.ts +92 -0
- package/dist/core/cluster/Cluster.js +1 -0
- package/dist/core/cluster/ClusterEventEmitter.d.ts +31 -0
- package/dist/core/cluster/ClusterEventEmitter.js +1 -0
- package/dist/core/cluster/ClusterEventKeys.d.ts +6 -0
- package/dist/core/cluster/ClusterEventKeys.js +1 -0
- package/dist/core/cluster/ClusterEvents.d.ts +60 -0
- package/dist/core/cluster/ClusterEvents.js +1 -0
- package/dist/core/cluster/ClusterOnFunction.d.ts +14 -0
- package/dist/core/cluster/ClusterOnFunction.js +1 -0
- package/dist/core/cluster/event/AgentInfoEventPayload.d.ts +16 -0
- package/dist/core/cluster/event/AgentInfoEventPayload.js +1 -0
- package/dist/core/cluster/event/LocalMediaStreamTrackFailEventPayload.d.ts +15 -0
- package/dist/core/cluster/event/LocalMediaStreamTrackFailEventPayload.js +1 -0
- package/dist/core/cluster/event/NodeEventPayload.d.ts +10 -0
- package/dist/core/cluster/event/NodeEventPayload.js +1 -0
- package/dist/core/cluster/event/PublishMediaStreamEventPayload.d.ts +15 -0
- package/dist/core/cluster/event/PublishMediaStreamEventPayload.js +1 -0
- package/dist/core/cluster/event/UnpublishMediaStreamEventPayload.d.ts +14 -0
- package/dist/core/cluster/event/UnpublishMediaStreamEventPayload.js +1 -0
- package/dist/core/cluster/event/UserInfoEventPayload.d.ts +16 -0
- package/dist/core/cluster/event/UserInfoEventPayload.js +1 -0
- package/dist/core/cluster/event/index.d.ts +6 -0
- package/dist/core/cluster/event/index.js +1 -0
- package/dist/core/cluster/index.d.ts +6 -0
- package/dist/core/cluster/index.js +1 -0
- package/dist/core/connection/PeerConnectionConfiguration.d.ts +11 -0
- package/dist/core/connection/PeerConnectionConfiguration.js +1 -0
- package/dist/core/connection/PeerConnectionConnector.d.ts +136 -0
- package/dist/core/connection/PeerConnectionConnector.js +1 -0
- package/dist/core/connection/PeerConnectionConnectorConstructor.d.ts +6 -0
- package/dist/core/connection/PeerConnectionConnectorConstructor.js +1 -0
- package/dist/core/connection/PeerConnectionDataChannelConnector.d.ts +46 -0
- package/dist/core/connection/PeerConnectionDataChannelConnector.js +1 -0
- package/dist/core/connection/PeerConnectionDataChannelEvent.d.ts +11 -0
- package/dist/core/connection/PeerConnectionDataChannelEvent.js +1 -0
- package/dist/core/connection/PeerConnectionHandshakeCandidate.d.ts +10 -0
- package/dist/core/connection/PeerConnectionHandshakeCandidate.js +1 -0
- package/dist/core/connection/PeerConnectionHandshakeCandidateEvent.d.ts +11 -0
- package/dist/core/connection/PeerConnectionHandshakeCandidateEvent.js +1 -0
- package/dist/core/connection/PeerConnectionHandshakeServer.d.ts +18 -0
- package/dist/core/connection/PeerConnectionHandshakeServer.js +1 -0
- package/dist/core/connection/PeerConnectionOfferOptions.d.ts +10 -0
- package/dist/core/connection/PeerConnectionOfferOptions.js +1 -0
- package/dist/core/connection/PeerConnectionSender.d.ts +11 -0
- package/dist/core/connection/PeerConnectionSender.js +1 -0
- package/dist/core/connection/PeerConnectionSenderMap.d.ts +24 -0
- package/dist/core/connection/PeerConnectionSenderMap.js +1 -0
- package/dist/core/connection/PeerConnectionSessionDescription.d.ts +14 -0
- package/dist/core/connection/PeerConnectionSessionDescription.js +1 -0
- package/dist/core/connection/PeerConnectionStatsReport.d.ts +6 -0
- package/dist/core/connection/PeerConnectionStatsReport.js +1 -0
- package/dist/core/connection/PeerConnectionStatsReportInbound.d.ts +38 -0
- package/dist/core/connection/PeerConnectionStatsReportInbound.js +1 -0
- package/dist/core/connection/PeerConnectionStatsReportOutbound.d.ts +26 -0
- package/dist/core/connection/PeerConnectionStatsReportOutbound.js +1 -0
- package/dist/core/connection/PeerConnectionStatsReportRemoteInbound.d.ts +22 -0
- package/dist/core/connection/PeerConnectionStatsReportRemoteInbound.js +1 -0
- package/dist/core/connection/PeerConnectionStatsReportUnused.d.ts +14 -0
- package/dist/core/connection/PeerConnectionStatsReportUnused.js +1 -0
- package/dist/core/connection/PeerConnectionTrackEvent.d.ts +14 -0
- package/dist/core/connection/PeerConnectionTrackEvent.js +1 -0
- package/dist/core/connection/index.d.ts +18 -0
- package/dist/core/connection/index.js +1 -0
- package/dist/core/index.d.ts +5 -0
- package/dist/core/index.js +5 -0
- package/dist/core/node/AuthNode.d.ts +18 -0
- package/dist/core/node/AuthNode.js +1 -0
- package/dist/core/node/LocalNode.d.ts +7 -0
- package/dist/core/node/LocalNode.js +1 -0
- package/dist/core/node/Node.d.ts +23 -0
- package/dist/core/node/Node.js +1 -0
- package/dist/core/node/NodeMetadata.d.ts +7 -0
- package/dist/core/node/NodeMetadata.js +1 -0
- package/dist/core/node/NodeType.d.ts +14 -0
- package/dist/core/node/NodeType.js +15 -0
- package/dist/core/node/agent/Agent.d.ts +11 -0
- package/dist/core/node/agent/Agent.js +1 -0
- package/dist/core/node/agent/AgentCredentials.d.ts +10 -0
- package/dist/core/node/agent/AgentCredentials.js +1 -0
- package/dist/core/node/agent/AgentMetadata.d.ts +11 -0
- package/dist/core/node/agent/AgentMetadata.js +1 -0
- package/dist/core/node/agent/AuthAgent.d.ts +11 -0
- package/dist/core/node/agent/AuthAgent.js +1 -0
- package/dist/core/node/agent/LocalAgent.d.ts +7 -0
- package/dist/core/node/agent/LocalAgent.js +1 -0
- package/dist/core/node/agent/index.d.ts +5 -0
- package/dist/core/node/agent/index.js +1 -0
- package/dist/core/node/index.d.ts +7 -0
- package/dist/core/node/index.js +3 -0
- package/dist/core/node/user/AuthUser.d.ts +31 -0
- package/dist/core/node/user/AuthUser.js +1 -0
- package/dist/core/node/user/LocalUser.d.ts +17 -0
- package/dist/core/node/user/LocalUser.js +1 -0
- package/dist/core/node/user/User.d.ts +21 -0
- package/dist/core/node/user/User.js +1 -0
- package/dist/core/node/user/UserCredentials.d.ts +18 -0
- package/dist/core/node/user/UserCredentials.js +1 -0
- package/dist/core/node/user/UserMetadata.d.ts +19 -0
- package/dist/core/node/user/UserMetadata.js +1 -0
- package/dist/core/node/user/index.d.ts +5 -0
- package/dist/core/node/user/index.js +1 -0
- package/dist/core/sdk/LoggingConnector.d.ts +25 -0
- package/dist/core/sdk/LoggingConnector.js +1 -0
- package/dist/core/sdk/LoggingConnectorEvent.d.ts +12 -0
- package/dist/core/sdk/LoggingConnectorEvent.js +1 -0
- package/dist/core/sdk/SDK.d.ts +28 -0
- package/dist/core/sdk/SDK.js +1 -0
- package/dist/core/sdk/SDKOptions.d.ts +61 -0
- package/dist/core/sdk/SDKOptions.js +1 -0
- package/dist/core/sdk/index.d.ts +4 -0
- package/dist/core/sdk/index.js +1 -0
- package/dist/core/stream/ContentType.d.ts +30 -0
- package/dist/core/stream/ContentType.js +32 -0
- package/dist/core/stream/DataStream.d.ts +12 -0
- package/dist/core/stream/DataStream.js +1 -0
- package/dist/core/stream/Stream.d.ts +18 -0
- package/dist/core/stream/Stream.js +1 -0
- package/dist/core/stream/index.d.ts +3 -0
- package/dist/core/stream/index.js +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/key-value-database/DatabaseEvent.d.ts +20 -0
- package/dist/key-value-database/DatabaseEvent.js +11 -0
- package/dist/key-value-database/DatabaseLayout.d.ts +27 -0
- package/dist/key-value-database/DatabaseLayout.js +1 -0
- package/dist/key-value-database/DatabaseTable.d.ts +62 -0
- package/dist/key-value-database/DatabaseTable.js +1 -0
- package/dist/key-value-database/DatabaseTableAction.d.ts +5 -0
- package/dist/key-value-database/DatabaseTableAction.js +1 -0
- package/dist/key-value-database/DatabaseTableEvent.d.ts +15 -0
- package/dist/key-value-database/DatabaseTableEvent.js +1 -0
- package/dist/key-value-database/DatabaseTableIndex.d.ts +10 -0
- package/dist/key-value-database/DatabaseTableIndex.js +1 -0
- package/dist/key-value-database/DatabaseTableLayout.d.ts +11 -0
- package/dist/key-value-database/DatabaseTableLayout.js +1 -0
- package/dist/key-value-database/DatabaseTableQuery.d.ts +27 -0
- package/dist/key-value-database/DatabaseTableQuery.js +1 -0
- package/dist/key-value-database/DatabaseTableQueryWhereBetween.d.ts +20 -0
- package/dist/key-value-database/DatabaseTableQueryWhereBetween.js +1 -0
- package/dist/key-value-database/DatabaseTableQueryWhereValue.d.ts +19 -0
- package/dist/key-value-database/DatabaseTableQueryWhereValue.js +1 -0
- package/dist/key-value-database/DatabaseTableQueryWhereValues.d.ts +19 -0
- package/dist/key-value-database/DatabaseTableQueryWhereValues.js +1 -0
- package/dist/key-value-database/KeyValueDatabase.d.ts +35 -0
- package/dist/key-value-database/KeyValueDatabase.js +1 -0
- package/dist/key-value-database/KeyValueDatabaseConnector.d.ts +30 -0
- package/dist/key-value-database/KeyValueDatabaseConnector.js +1 -0
- package/dist/key-value-database/KeyValueDatabaseConnectorConstructor.d.ts +6 -0
- package/dist/key-value-database/KeyValueDatabaseConnectorConstructor.js +1 -0
- package/dist/key-value-database/KeyValueDatabaseTableConnector.d.ts +56 -0
- package/dist/key-value-database/KeyValueDatabaseTableConnector.js +1 -0
- package/dist/key-value-database/LayoutBuilder.d.ts +18 -0
- package/dist/key-value-database/LayoutBuilder.js +1 -0
- package/dist/key-value-database/QueryBuilder.d.ts +54 -0
- package/dist/key-value-database/QueryBuilder.js +1 -0
- package/dist/key-value-database/SupportedIndexType.d.ts +5 -0
- package/dist/key-value-database/SupportedIndexType.js +1 -0
- package/dist/key-value-database/TableBuilder.d.ts +12 -0
- package/dist/key-value-database/TableBuilder.js +1 -0
- package/dist/key-value-database/ValueType.d.ts +11 -0
- package/dist/key-value-database/ValueType.js +1 -0
- package/dist/key-value-database/ValueTypeOmitId.d.ts +6 -0
- package/dist/key-value-database/ValueTypeOmitId.js +1 -0
- package/dist/key-value-database/index.d.ts +21 -0
- package/dist/key-value-database/index.js +1 -0
- package/dist/media-stream/AudioSubscriptionParams.d.ts +5 -0
- package/dist/media-stream/AudioSubscriptionParams.js +1 -0
- package/dist/media-stream/DynamicMediaStream.d.ts +12 -0
- package/dist/media-stream/DynamicMediaStream.js +1 -0
- package/dist/media-stream/LocalDynamicMediaStream.d.ts +23 -0
- package/dist/media-stream/LocalDynamicMediaStream.js +1 -0
- package/dist/media-stream/LocalMediaStream.d.ts +16 -0
- package/dist/media-stream/LocalMediaStream.js +1 -0
- package/dist/media-stream/MediaStream.d.ts +17 -0
- package/dist/media-stream/MediaStream.js +1 -0
- package/dist/media-stream/MediaStreamPriority.d.ts +18 -0
- package/dist/media-stream/MediaStreamPriority.js +19 -0
- package/dist/media-stream/MediaStreamSource.d.ts +5 -0
- package/dist/media-stream/MediaStreamSource.js +1 -0
- package/dist/media-stream/MediaStreamTransformer.d.ts +7 -0
- package/dist/media-stream/MediaStreamTransformer.js +1 -0
- package/dist/media-stream/MediaSubscriptionParams.d.ts +15 -0
- package/dist/media-stream/MediaSubscriptionParams.js +1 -0
- package/dist/media-stream/MediaTrackKind.d.ts +5 -0
- package/dist/media-stream/MediaTrackKind.js +1 -0
- package/dist/media-stream/RemoteMediaStream.d.ts +40 -0
- package/dist/media-stream/RemoteMediaStream.js +1 -0
- package/dist/media-stream/Resolution.d.ts +14 -0
- package/dist/media-stream/Resolution.js +1 -0
- package/dist/media-stream/TrackSubscriptionParams.d.ts +6 -0
- package/dist/media-stream/TrackSubscriptionParams.js +1 -0
- package/dist/media-stream/VideoSubscriptionParams.d.ts +15 -0
- package/dist/media-stream/VideoSubscriptionParams.js +1 -0
- package/dist/media-stream/index.d.ts +15 -0
- package/dist/media-stream/index.js +2 -0
- package/dist/media-stream/isValidMediaSubscriptionParams.d.ts +8 -0
- package/dist/media-stream/isValidMediaSubscriptionParams.js +28 -0
- package/dist/object-storage/FileDescriptor.d.ts +31 -0
- package/dist/object-storage/FileDescriptor.js +1 -0
- package/dist/object-storage/FilePayload.d.ts +19 -0
- package/dist/object-storage/FilePayload.js +1 -0
- package/dist/object-storage/FolderDescriptor.d.ts +27 -0
- package/dist/object-storage/FolderDescriptor.js +1 -0
- package/dist/object-storage/FolderPayload.d.ts +15 -0
- package/dist/object-storage/FolderPayload.js +1 -0
- package/dist/object-storage/MovePayload.d.ts +19 -0
- package/dist/object-storage/MovePayload.js +1 -0
- package/dist/object-storage/ObjectDescriptor.d.ts +6 -0
- package/dist/object-storage/ObjectDescriptor.js +1 -0
- package/dist/object-storage/ObjectKind.d.ts +14 -0
- package/dist/object-storage/ObjectKind.js +15 -0
- package/dist/object-storage/ObjectStoreBucket.d.ts +55 -0
- package/dist/object-storage/ObjectStoreBucket.js +1 -0
- package/dist/object-storage/ObjectStoreConnector.d.ts +49 -0
- package/dist/object-storage/ObjectStoreConnector.js +1 -0
- package/dist/object-storage/ObjectStoreConnectorConstructor.d.ts +6 -0
- package/dist/object-storage/ObjectStoreConnectorConstructor.js +1 -0
- package/dist/object-storage/Payload.d.ts +6 -0
- package/dist/object-storage/Payload.js +1 -0
- package/dist/object-storage/PayloadAction.d.ts +18 -0
- package/dist/object-storage/PayloadAction.js +19 -0
- package/dist/object-storage/event/FileDeleteEvent.d.ts +15 -0
- package/dist/object-storage/event/FileDeleteEvent.js +1 -0
- package/dist/object-storage/event/FileMoveEvent.d.ts +15 -0
- package/dist/object-storage/event/FileMoveEvent.js +1 -0
- package/dist/object-storage/event/FileWriteEvent.d.ts +15 -0
- package/dist/object-storage/event/FileWriteEvent.js +1 -0
- package/dist/object-storage/event/FileWriteEventPayload.d.ts +11 -0
- package/dist/object-storage/event/FileWriteEventPayload.js +1 -0
- package/dist/object-storage/event/FolderCreateEvent.d.ts +15 -0
- package/dist/object-storage/event/FolderCreateEvent.js +1 -0
- package/dist/object-storage/event/FolderCreateEventPayload.d.ts +11 -0
- package/dist/object-storage/event/FolderCreateEventPayload.js +1 -0
- package/dist/object-storage/event/FolderDeleteEvent.d.ts +15 -0
- package/dist/object-storage/event/FolderDeleteEvent.js +1 -0
- package/dist/object-storage/event/FolderMoveEvent.d.ts +15 -0
- package/dist/object-storage/event/FolderMoveEvent.js +1 -0
- package/dist/object-storage/event/ObjectDeleteEventPayload.d.ts +18 -0
- package/dist/object-storage/event/ObjectDeleteEventPayload.js +1 -0
- package/dist/object-storage/event/ObjectMoveEventPayload.d.ts +30 -0
- package/dist/object-storage/event/ObjectMoveEventPayload.js +1 -0
- package/dist/object-storage/event/StorageEvent.d.ts +6 -0
- package/dist/object-storage/event/StorageEvent.js +1 -0
- package/dist/object-storage/event/StorageEventType.d.ts +30 -0
- package/dist/object-storage/event/StorageEventType.js +31 -0
- package/dist/object-storage/event/index.d.ts +12 -0
- package/dist/object-storage/event/index.js +1 -0
- package/dist/object-storage/index.d.ts +13 -0
- package/dist/object-storage/index.js +3 -0
- package/dist/pubsub/PubSubTopic.d.ts +37 -0
- package/dist/pubsub/PubSubTopic.js +1 -0
- package/dist/pubsub/SubscribeFunction.d.ts +14 -0
- package/dist/pubsub/SubscribeFunction.js +1 -0
- package/dist/pubsub/SubscriptionKeys.d.ts +6 -0
- package/dist/pubsub/SubscriptionKeys.js +1 -0
- package/dist/pubsub/Subscriptions.d.ts +18 -0
- package/dist/pubsub/Subscriptions.js +1 -0
- package/dist/pubsub/index.d.ts +4 -0
- package/dist/pubsub/index.js +1 -0
- package/package.json +26 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IPeerConnectionHandshakeCandidate } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* The peer connection handshake candidate event interface.
|
|
4
|
+
* @category Core
|
|
5
|
+
*/
|
|
6
|
+
export interface IPeerConnectionHandshakeCandidateEvent {
|
|
7
|
+
/**
|
|
8
|
+
* The candidate received.
|
|
9
|
+
*/
|
|
10
|
+
readonly candidate: IPeerConnectionHandshakeCandidate | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The peer connection handshake server interface.
|
|
3
|
+
* @category Core
|
|
4
|
+
*/
|
|
5
|
+
export interface IPeerConnectionHandshakeServer {
|
|
6
|
+
/**
|
|
7
|
+
* The credential for the handshake server.
|
|
8
|
+
*/
|
|
9
|
+
credential?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The urls for the handshake server.
|
|
12
|
+
*/
|
|
13
|
+
urls: string | string[];
|
|
14
|
+
/**
|
|
15
|
+
* The username for the handshake server.
|
|
16
|
+
*/
|
|
17
|
+
username?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The peer connection sender interface.
|
|
3
|
+
* @category Core
|
|
4
|
+
*/
|
|
5
|
+
export interface IPeerConnectionSender {
|
|
6
|
+
/**
|
|
7
|
+
* Replaces the current track with a new track.
|
|
8
|
+
* @param track - The track to replace the current track with.
|
|
9
|
+
*/
|
|
10
|
+
replaceTrack(track: MediaStreamTrack): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IPeerConnectionSender } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* The peer connection sender map interface.
|
|
4
|
+
* @category Core
|
|
5
|
+
*/
|
|
6
|
+
export interface IPeerConnectionSenderMap {
|
|
7
|
+
/**
|
|
8
|
+
* The stream associated with the sender.
|
|
9
|
+
*/
|
|
10
|
+
stream: MediaStream;
|
|
11
|
+
/**
|
|
12
|
+
* The tracks associated with the sender.
|
|
13
|
+
*/
|
|
14
|
+
tracks: {
|
|
15
|
+
video?: {
|
|
16
|
+
track?: MediaStreamTrack;
|
|
17
|
+
sender?: IPeerConnectionSender;
|
|
18
|
+
};
|
|
19
|
+
audio?: {
|
|
20
|
+
track?: MediaStreamTrack;
|
|
21
|
+
sender?: IPeerConnectionSender;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The peer connection session description interface.
|
|
3
|
+
* @category Core
|
|
4
|
+
*/
|
|
5
|
+
export interface IPeerConnectionSessionDescription {
|
|
6
|
+
/**
|
|
7
|
+
* The SDP.
|
|
8
|
+
*/
|
|
9
|
+
sdp?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The type of the session description.
|
|
12
|
+
*/
|
|
13
|
+
type: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPeerConnectionStatsReportInbound, IPeerConnectionStatsReportOutbound, IPeerConnectionStatsReportRemoteInbound, IPeerConnectionStatsReportUnused } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* The peer connection stats report type.
|
|
4
|
+
* @category Core
|
|
5
|
+
*/
|
|
6
|
+
export type PeerConnectionStatsReport = IPeerConnectionStatsReportInbound | IPeerConnectionStatsReportOutbound | IPeerConnectionStatsReportRemoteInbound | IPeerConnectionStatsReportUnused;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The peer connection inbound stats report interface.
|
|
3
|
+
* @category Core
|
|
4
|
+
*/
|
|
5
|
+
export interface IPeerConnectionStatsReportInbound {
|
|
6
|
+
/**
|
|
7
|
+
* The type of the report.
|
|
8
|
+
*/
|
|
9
|
+
type: 'inbound-rtp';
|
|
10
|
+
/**
|
|
11
|
+
* The kind of the report.
|
|
12
|
+
*/
|
|
13
|
+
kind: 'audio' | 'video';
|
|
14
|
+
/**
|
|
15
|
+
* The bytes received.
|
|
16
|
+
*/
|
|
17
|
+
bytesReceived: number;
|
|
18
|
+
/**
|
|
19
|
+
* The timestamp.
|
|
20
|
+
*/
|
|
21
|
+
timestamp: number;
|
|
22
|
+
/**
|
|
23
|
+
* The packets received.
|
|
24
|
+
*/
|
|
25
|
+
packetsReceived: number;
|
|
26
|
+
/**
|
|
27
|
+
* The packets lost.
|
|
28
|
+
*/
|
|
29
|
+
packetsLost: number;
|
|
30
|
+
/**
|
|
31
|
+
* The jitter.
|
|
32
|
+
*/
|
|
33
|
+
jitter?: number;
|
|
34
|
+
/**
|
|
35
|
+
* The estimated playout timestamp.
|
|
36
|
+
*/
|
|
37
|
+
estimatedPlayoutTimestamp?: number;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The peer connection outbound stats report interface.
|
|
3
|
+
* @category Core
|
|
4
|
+
*/
|
|
5
|
+
export interface IPeerConnectionStatsReportOutbound {
|
|
6
|
+
/**
|
|
7
|
+
* The type of the report.
|
|
8
|
+
*/
|
|
9
|
+
type: 'outbound-rtp';
|
|
10
|
+
/**
|
|
11
|
+
* The kind of the report.
|
|
12
|
+
*/
|
|
13
|
+
kind: 'audio' | 'video';
|
|
14
|
+
/**
|
|
15
|
+
* The bytes sent.
|
|
16
|
+
*/
|
|
17
|
+
bytesSent: number;
|
|
18
|
+
/**
|
|
19
|
+
* The timestamp.
|
|
20
|
+
*/
|
|
21
|
+
timestamp: number;
|
|
22
|
+
/**
|
|
23
|
+
* The packets sent.
|
|
24
|
+
*/
|
|
25
|
+
packetsSent: number;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The peer connection remote inbound stats report interface.
|
|
3
|
+
* @category Core
|
|
4
|
+
*/
|
|
5
|
+
export interface IPeerConnectionStatsReportRemoteInbound {
|
|
6
|
+
/**
|
|
7
|
+
* The type of the report.
|
|
8
|
+
*/
|
|
9
|
+
type: 'remote-inbound-rtp';
|
|
10
|
+
/**
|
|
11
|
+
* The kind of the report.
|
|
12
|
+
*/
|
|
13
|
+
kind: 'audio' | 'video';
|
|
14
|
+
/**
|
|
15
|
+
* The round trip time.
|
|
16
|
+
*/
|
|
17
|
+
roundTripTime: number;
|
|
18
|
+
/**
|
|
19
|
+
* The jitter.
|
|
20
|
+
*/
|
|
21
|
+
jitter?: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The peer connection unused stats report interface.
|
|
3
|
+
* @category Core
|
|
4
|
+
*/
|
|
5
|
+
export interface IPeerConnectionStatsReportUnused {
|
|
6
|
+
/**
|
|
7
|
+
* The type of the report.
|
|
8
|
+
*/
|
|
9
|
+
type: 'track' | 'media-source' | 'sender' | 'receiver' | 'transport' | 'candidate-pair' | 'local-candidate' | 'remote-candidate';
|
|
10
|
+
/**
|
|
11
|
+
* The kind of the report.
|
|
12
|
+
*/
|
|
13
|
+
kind: 'audio' | 'video';
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The peer connection track event interface.
|
|
3
|
+
* @category Core
|
|
4
|
+
*/
|
|
5
|
+
export interface IPeerConnectionTrackEvent {
|
|
6
|
+
/**
|
|
7
|
+
* The track received.
|
|
8
|
+
*/
|
|
9
|
+
readonly track: MediaStreamTrack;
|
|
10
|
+
/**
|
|
11
|
+
* The streams associated with the track.
|
|
12
|
+
*/
|
|
13
|
+
readonly streams: ReadonlyArray<MediaStream>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { IPeerConnectionConfiguration } from './PeerConnectionConfiguration';
|
|
2
|
+
export { IPeerConnectionConnector } from './PeerConnectionConnector';
|
|
3
|
+
export { PeerConnectionConnectorConstructor } from './PeerConnectionConnectorConstructor';
|
|
4
|
+
export { IPeerConnectionDataChannelConnector } from './PeerConnectionDataChannelConnector';
|
|
5
|
+
export { IPeerConnectionDataChannelEvent } from './PeerConnectionDataChannelEvent';
|
|
6
|
+
export { IPeerConnectionHandshakeCandidate } from './PeerConnectionHandshakeCandidate';
|
|
7
|
+
export { IPeerConnectionHandshakeCandidateEvent } from './PeerConnectionHandshakeCandidateEvent';
|
|
8
|
+
export { IPeerConnectionHandshakeServer } from './PeerConnectionHandshakeServer';
|
|
9
|
+
export { IPeerConnectionOfferOptions } from './PeerConnectionOfferOptions';
|
|
10
|
+
export { IPeerConnectionSender } from './PeerConnectionSender';
|
|
11
|
+
export { IPeerConnectionSenderMap } from './PeerConnectionSenderMap';
|
|
12
|
+
export { IPeerConnectionSessionDescription } from './PeerConnectionSessionDescription';
|
|
13
|
+
export { PeerConnectionStatsReport } from './PeerConnectionStatsReport';
|
|
14
|
+
export { IPeerConnectionStatsReportInbound } from './PeerConnectionStatsReportInbound';
|
|
15
|
+
export { IPeerConnectionStatsReportOutbound } from './PeerConnectionStatsReportOutbound';
|
|
16
|
+
export { IPeerConnectionStatsReportRemoteInbound } from './PeerConnectionStatsReportRemoteInbound';
|
|
17
|
+
export { IPeerConnectionStatsReportUnused } from './PeerConnectionStatsReportUnused';
|
|
18
|
+
export { IPeerConnectionTrackEvent } from './PeerConnectionTrackEvent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IAuthAgent } from './agent';
|
|
2
|
+
import { IAuthUser } from './user';
|
|
3
|
+
/**
|
|
4
|
+
* The authenticated node type.
|
|
5
|
+
* @category Core
|
|
6
|
+
*/
|
|
7
|
+
export type AuthNode = IAuthUser | IAuthAgent;
|
|
8
|
+
/**
|
|
9
|
+
* The authenticated node interface.
|
|
10
|
+
* @category Core
|
|
11
|
+
*/
|
|
12
|
+
export interface IAuthNode {
|
|
13
|
+
/**
|
|
14
|
+
* Get the ID of the node.
|
|
15
|
+
* @returns The ID of the node.
|
|
16
|
+
*/
|
|
17
|
+
getId(): string;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IAgent } from './agent';
|
|
2
|
+
import { IUser } from './user';
|
|
3
|
+
/**
|
|
4
|
+
* The node interface.
|
|
5
|
+
* @category Core
|
|
6
|
+
*/
|
|
7
|
+
export interface INode {
|
|
8
|
+
/**
|
|
9
|
+
* Get the ID of the node.
|
|
10
|
+
* @returns The ID of the node.
|
|
11
|
+
*/
|
|
12
|
+
getId(): string;
|
|
13
|
+
/**
|
|
14
|
+
* Get the remote connections.
|
|
15
|
+
* @returns The remote connections.
|
|
16
|
+
*/
|
|
17
|
+
getRemoteConnections(): Set<string>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The node type.
|
|
21
|
+
* @category Core
|
|
22
|
+
*/
|
|
23
|
+
export type Node = IUser | IAgent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The node type enum.
|
|
3
|
+
* @category Core
|
|
4
|
+
*/
|
|
5
|
+
export var NodeType;
|
|
6
|
+
(function (NodeType) {
|
|
7
|
+
/**
|
|
8
|
+
* The user node type.
|
|
9
|
+
*/
|
|
10
|
+
NodeType["User"] = "user";
|
|
11
|
+
/**
|
|
12
|
+
* The agent node type.
|
|
13
|
+
*/
|
|
14
|
+
NodeType["Agent"] = "agent";
|
|
15
|
+
})(NodeType || (NodeType = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './agent';
|
|
2
|
+
export * from './user';
|
|
3
|
+
export { AuthNode, IAuthNode } from './AuthNode';
|
|
4
|
+
export { LocalNode } from './LocalNode';
|
|
5
|
+
export { INode, Node } from './Node';
|
|
6
|
+
export { NodeMetadata } from './NodeMetadata';
|
|
7
|
+
export { NodeType } from './NodeType';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IAuthNode, NodeType } from '..';
|
|
2
|
+
/**
|
|
3
|
+
* The authenticated user interface.
|
|
4
|
+
* @category Core
|
|
5
|
+
*/
|
|
6
|
+
export interface IAuthUser extends IAuthNode {
|
|
7
|
+
/**
|
|
8
|
+
* The type of the node.
|
|
9
|
+
*/
|
|
10
|
+
type: NodeType.User;
|
|
11
|
+
/**
|
|
12
|
+
* Get the display name of the user.
|
|
13
|
+
* @returns The display name of the user.
|
|
14
|
+
*/
|
|
15
|
+
getDisplayName(): string;
|
|
16
|
+
/**
|
|
17
|
+
* Get the email of the user.
|
|
18
|
+
* @returns The email of the user.
|
|
19
|
+
*/
|
|
20
|
+
getEmail(): string;
|
|
21
|
+
/**
|
|
22
|
+
* Set the display name of the local user.
|
|
23
|
+
* @param displayName The display name to set.
|
|
24
|
+
*/
|
|
25
|
+
setDisplayName(displayName: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* Set the email of the local user.
|
|
28
|
+
* @param email The email to set.
|
|
29
|
+
*/
|
|
30
|
+
setEmail(email: string): void;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IUser } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* The local user interface.
|
|
4
|
+
* @category Core
|
|
5
|
+
*/
|
|
6
|
+
export interface ILocalUser extends IUser {
|
|
7
|
+
/**
|
|
8
|
+
* Set the display name of the local user.
|
|
9
|
+
* @param displayName The display name to set.
|
|
10
|
+
*/
|
|
11
|
+
setDisplayName(displayName: string): void;
|
|
12
|
+
/**
|
|
13
|
+
* Set the email of the local user.
|
|
14
|
+
* @param email The email to set.
|
|
15
|
+
*/
|
|
16
|
+
setEmail(email: string): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { INode, NodeType } from '..';
|
|
2
|
+
/**
|
|
3
|
+
* The user interface.
|
|
4
|
+
* @category Core
|
|
5
|
+
*/
|
|
6
|
+
export interface IUser extends INode {
|
|
7
|
+
/**
|
|
8
|
+
* The type of the node.
|
|
9
|
+
*/
|
|
10
|
+
type: NodeType.User;
|
|
11
|
+
/**
|
|
12
|
+
* Get the display name of the user.
|
|
13
|
+
* @returns The display name of the user.
|
|
14
|
+
*/
|
|
15
|
+
getDisplayName(): string;
|
|
16
|
+
/**
|
|
17
|
+
* Get the email of the user.
|
|
18
|
+
* @returns The email of the user.
|
|
19
|
+
*/
|
|
20
|
+
getEmail(): string;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The user credentials interface.
|
|
3
|
+
* @category Core
|
|
4
|
+
*/
|
|
5
|
+
export interface IUserCredentials {
|
|
6
|
+
/**
|
|
7
|
+
* The user ID.
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The user display name.
|
|
12
|
+
*/
|
|
13
|
+
displayName: string;
|
|
14
|
+
/**
|
|
15
|
+
* The user email.
|
|
16
|
+
*/
|
|
17
|
+
email: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NodeType } from '..';
|
|
2
|
+
/**
|
|
3
|
+
* The user meta data interface.
|
|
4
|
+
* @category Core
|
|
5
|
+
*/
|
|
6
|
+
export interface IUserMetadata {
|
|
7
|
+
/**
|
|
8
|
+
* The type of the node.
|
|
9
|
+
*/
|
|
10
|
+
type: NodeType.User;
|
|
11
|
+
/**
|
|
12
|
+
* The display name of the user.
|
|
13
|
+
*/
|
|
14
|
+
displayName: string;
|
|
15
|
+
/**
|
|
16
|
+
* The email of the user.
|
|
17
|
+
*/
|
|
18
|
+
email: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|