@crewdle/web-sdk-types 1.0.3 → 1.0.5
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/dist/core/cluster/ClusterEvents.d.ts +4 -0
- package/dist/core/connection/PeerConnectionConnector.d.ts +1 -1
- package/dist/core/connection/PeerConnectionDataChannelConnector.d.ts +1 -1
- package/dist/core/node/agent/AgentCredentials.d.ts +4 -0
- package/dist/core/sdk/LoggingConnector.d.ts +1 -1
- package/dist/core/sdk/SDK.d.ts +5 -1
- package/dist/key-value-database/KeyValueDatabaseConnector.d.ts +1 -1
- package/dist/key-value-database/KeyValueDatabaseTableConnector.d.ts +3 -3
- package/dist/object-storage/ObjectStoreConnector.d.ts +1 -1
- package/package.json +1 -1
|
@@ -49,6 +49,10 @@ export interface IClusterEvents {
|
|
|
49
49
|
* @param payload The node event payload.
|
|
50
50
|
*/
|
|
51
51
|
'cluster-disconnect': (payload: INodeEventPayload) => void;
|
|
52
|
+
/**
|
|
53
|
+
* @event cluster-leave - Event fired when the current node leaves the cluster.
|
|
54
|
+
*/
|
|
55
|
+
'cluster-leave': () => void;
|
|
52
56
|
/**
|
|
53
57
|
* @event local-media-stream-track-fail - Event fired when a local media stream track fails.
|
|
54
58
|
* @param payload The local media stream track fail event payload.
|
|
@@ -2,7 +2,7 @@ import { MediaStreamPriority } from '../../media-stream';
|
|
|
2
2
|
import { IPeerConnectionDataChannelConnector, IPeerConnectionDataChannelEvent, IPeerConnectionHandshakeCandidate, IPeerConnectionHandshakeCandidateEvent, IPeerConnectionOfferOptions, IPeerConnectionSender, IPeerConnectionSenderMap, IPeerConnectionSessionDescription, IPeerConnectionTrackEvent, PeerConnectionStatsReport } from '.';
|
|
3
3
|
/**
|
|
4
4
|
* The peer connection connector interface - used to establish a connection between two peers.
|
|
5
|
-
* @category
|
|
5
|
+
* @category Connector
|
|
6
6
|
*/
|
|
7
7
|
export interface IPeerConnectionConnector {
|
|
8
8
|
/**
|
package/dist/core/sdk/SDK.d.ts
CHANGED
|
@@ -6,6 +6,10 @@ import { IAuthUser, IUserCredentials } from '../node/user';
|
|
|
6
6
|
* @category Core
|
|
7
7
|
*/
|
|
8
8
|
export interface ISDK {
|
|
9
|
+
/**
|
|
10
|
+
* Close the SDK.
|
|
11
|
+
*/
|
|
12
|
+
close(): Promise<void>;
|
|
9
13
|
/**
|
|
10
14
|
* Authenticate a user.
|
|
11
15
|
* @param credentials The credentials to authenticate the user with.
|
|
@@ -14,7 +18,7 @@ export interface ISDK {
|
|
|
14
18
|
authenticateUser(credentials: IUserCredentials): Promise<IAuthUser>;
|
|
15
19
|
/**
|
|
16
20
|
* Authenticate an agent.
|
|
17
|
-
* @param
|
|
21
|
+
* @param credentials The credentials to authenticate the agent with.
|
|
18
22
|
* @returns A promise that resolves with the authenticated agent.
|
|
19
23
|
*/
|
|
20
24
|
authenticateAgent(credentials: IAgentCredentials): Promise<IAuthAgent>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IDatabaseTableQuery, IValueType, ValueTypeOmitId } from '.';
|
|
2
2
|
/**
|
|
3
3
|
* The key-value database table connector interface.
|
|
4
|
-
* @category
|
|
4
|
+
* @category Connector
|
|
5
5
|
*/
|
|
6
6
|
export interface IKeyValueDatabaseTableConnector<T extends IValueType> {
|
|
7
7
|
/**
|
|
@@ -13,12 +13,12 @@ export interface IKeyValueDatabaseTableConnector<T extends IValueType> {
|
|
|
13
13
|
/**
|
|
14
14
|
* Set the value for a key.
|
|
15
15
|
* @param key The key to set the value for.
|
|
16
|
-
* @param value The value to set for the key. It must be a {@link
|
|
16
|
+
* @param value The value to set for the key. It must be a {@link SupportedIndexType}.
|
|
17
17
|
*/
|
|
18
18
|
set(key: string, value: ValueTypeOmitId<T>): Promise<T>;
|
|
19
19
|
/**
|
|
20
20
|
* Add a value to the database.
|
|
21
|
-
* @param value The value to add. It must be a {@link
|
|
21
|
+
* @param value The value to add. It must be a {@link SupportedIndexType}.
|
|
22
22
|
* @returns A promise that resolves with the value added.
|
|
23
23
|
*/
|
|
24
24
|
add(value: ValueTypeOmitId<T>): Promise<T>;
|