@crewdle/web-sdk-types 1.0.2 → 1.0.4

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.
@@ -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 Core
5
+ * @category Connector
6
6
  */
7
7
  export interface IPeerConnectionConnector {
8
8
  /**
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * The peer connection data channel connector interface.
3
- * @category Core
3
+ * @category Connector
4
4
  */
5
5
  export interface IPeerConnectionDataChannelConnector {
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  import { LoggingConnectorEvent } from '.';
2
2
  /**
3
3
  * The logging connector interface.
4
- * @category Core
4
+ * @category Connector
5
5
  */
6
6
  export interface ILoggingConnector {
7
7
  /**
@@ -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 agentGroupId The ID of the agent group to authenticate the agent with.
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 { IValueType, IKeyValueDatabaseTableConnector } from '.';
2
2
  /**
3
3
  * The key-value database connector interface.
4
- * @category Key-Value Database
4
+ * @category Connector
5
5
  */
6
6
  export interface IKeyValueDatabaseConnector {
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  import { IDatabaseTableQuery, IValueType, ValueTypeOmitId } from '.';
2
2
  /**
3
3
  * The key-value database table connector interface.
4
- * @category Key-Value Database
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 SupportedIndexTypes}.
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 SupportedIndexTypes}.
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>;
@@ -1,7 +1,7 @@
1
1
  import { ObjectDescriptor, ObjectKind } from '.';
2
2
  /**
3
3
  * The object store connector interface.
4
- * @category Object Storage
4
+ * @category Connector
5
5
  */
6
6
  export interface IObjectStoreConnector {
7
7
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewdle/web-sdk-types",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "The Crewdle Mist Web SDK public types and interfaces",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",