@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,56 @@
|
|
|
1
|
+
import { IDatabaseTableQuery, IValueType, ValueTypeOmitId } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* The key-value database table connector interface.
|
|
4
|
+
* @category Key-Value Database
|
|
5
|
+
*/
|
|
6
|
+
export interface IKeyValueDatabaseTableConnector<T extends IValueType> {
|
|
7
|
+
/**
|
|
8
|
+
* Get the value for a key.
|
|
9
|
+
* @param key The key to get the value for.
|
|
10
|
+
* @returns A promise that resolves with the value for the key, or undefined if the key was not found.
|
|
11
|
+
*/
|
|
12
|
+
get(key: string): Promise<T | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* Set the value for a key.
|
|
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}.
|
|
17
|
+
*/
|
|
18
|
+
set(key: string, value: ValueTypeOmitId<T>): Promise<T>;
|
|
19
|
+
/**
|
|
20
|
+
* Add a value to the database.
|
|
21
|
+
* @param value The value to add. It must be a {@link SupportedIndexTypes}.
|
|
22
|
+
* @returns A promise that resolves with the value added.
|
|
23
|
+
*/
|
|
24
|
+
add(value: ValueTypeOmitId<T>): Promise<T>;
|
|
25
|
+
/**
|
|
26
|
+
* Delete a key.
|
|
27
|
+
* @param key The key to delete.
|
|
28
|
+
* @returns A promise that resolves when the key has been deleted.
|
|
29
|
+
*/
|
|
30
|
+
delete(key: string): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Clear the database.
|
|
33
|
+
* Fires a {@link IDatabaseTableEvent} for each key deleted.
|
|
34
|
+
* @returns A promise that resolves when the database has been cleared.
|
|
35
|
+
*/
|
|
36
|
+
clear(): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Get all the values matching the query in the database.
|
|
39
|
+
* @param query The query to use to filter the values.
|
|
40
|
+
* If no query is provided, all the values in the database are returned.
|
|
41
|
+
* @returns A promise that resolves with all the values matching the query.
|
|
42
|
+
*/
|
|
43
|
+
list(query?: IDatabaseTableQuery): Promise<T[]>;
|
|
44
|
+
/**
|
|
45
|
+
* Count the number of keys matching the query in the database.
|
|
46
|
+
* @param query The query to use to filter the keys.
|
|
47
|
+
* If no query is provided, all the keys in the database are counted.
|
|
48
|
+
* @returns A promise that resolves with the number of keys matching the query.
|
|
49
|
+
*/
|
|
50
|
+
count(query?: IDatabaseTableQuery): Promise<number>;
|
|
51
|
+
/**
|
|
52
|
+
* Calculate the size of the table.
|
|
53
|
+
* @returns A promise that resolves with the size of the table in bytes.
|
|
54
|
+
*/
|
|
55
|
+
calculateSize(): Promise<number>;
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IDatabaseLayout, ITableBuilder } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* The layout builder interface for the {@link IKeyValueDatabase}.
|
|
4
|
+
* @category Key-Value Database
|
|
5
|
+
*/
|
|
6
|
+
export interface ILayoutBuilder {
|
|
7
|
+
/**
|
|
8
|
+
* Adds a table to the layout.
|
|
9
|
+
* @param name The name of the table.
|
|
10
|
+
* @returns A table builder.
|
|
11
|
+
*/
|
|
12
|
+
table(name: string): ITableBuilder;
|
|
13
|
+
/**
|
|
14
|
+
* Gets the layout.
|
|
15
|
+
* @returns The layout: {@link IDatabaseLayout}.
|
|
16
|
+
*/
|
|
17
|
+
getLayout(): IDatabaseLayout;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { IDatabaseTableQuery, IDatabaseTableQueryWhereValue, IDatabaseTableQueryWhereValues, IDatabaseTableQueryWhereBetween } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* The Query Builder interface for building queries for the {@link IDatabaseTable}.
|
|
4
|
+
* @category Key-Value Database
|
|
5
|
+
*/
|
|
6
|
+
export interface IQueryBuilder {
|
|
7
|
+
/**
|
|
8
|
+
* Gets the query.
|
|
9
|
+
* @returns The query: {@link IDatabaseTableQuery}.
|
|
10
|
+
*/
|
|
11
|
+
getQuery(): IDatabaseTableQuery;
|
|
12
|
+
/**
|
|
13
|
+
* @overload A where clause with basic operators and a single value.
|
|
14
|
+
* @param operator A basic operator.
|
|
15
|
+
* @param value A single value.
|
|
16
|
+
* @returns A QueryBuilder instance with a where clause added.
|
|
17
|
+
*/
|
|
18
|
+
where(operator: IDatabaseTableQueryWhereValue['operator'], value: IDatabaseTableQueryWhereValue['value']): IQueryBuilder;
|
|
19
|
+
/**
|
|
20
|
+
* @overload A where clause with 'in' or 'not-in' the given values.
|
|
21
|
+
* @param operator An 'in' or 'not-in' operator.
|
|
22
|
+
* @param value An array of values.
|
|
23
|
+
* @returns A QueryBuilder instance with a where clause added.
|
|
24
|
+
*/
|
|
25
|
+
where(operator: IDatabaseTableQueryWhereValues['operator'], value: IDatabaseTableQueryWhereValues['value']): IQueryBuilder;
|
|
26
|
+
/**
|
|
27
|
+
* @overload A where clause with 'between' the given values.
|
|
28
|
+
* @param operator A 'between' operator.
|
|
29
|
+
* @param value An array of two values.
|
|
30
|
+
* @returns A QueryBuilder instance with a where clause added.
|
|
31
|
+
*/
|
|
32
|
+
where(operator: IDatabaseTableQueryWhereBetween['operator'], value: IDatabaseTableQueryWhereBetween['value']): IQueryBuilder;
|
|
33
|
+
/**
|
|
34
|
+
* Adds an order by clause to the query.
|
|
35
|
+
* @param order The order for the order by clause, either 'asc' or 'desc'.
|
|
36
|
+
* @returns A QueryBuilder instance with an order by clause added.
|
|
37
|
+
* @throws an SDKClientError with the code `SDKClientErrorCodes.QueryBuilderInvalidArgument` if the order is not 'asc' or 'desc'.
|
|
38
|
+
*/
|
|
39
|
+
orderBy(order: 'asc' | 'desc'): IQueryBuilder;
|
|
40
|
+
/**
|
|
41
|
+
* Adds a limit to the query.
|
|
42
|
+
* @param limit The limit for the query.
|
|
43
|
+
* @returns A QueryBuilder instance with a limit added.
|
|
44
|
+
* @throws an SDKClientError with the code `SDKClientErrorCodes.QueryBuilderInvalidArgument` if the limit is not a positive number.
|
|
45
|
+
*/
|
|
46
|
+
limit(limit: number): IQueryBuilder;
|
|
47
|
+
/**
|
|
48
|
+
* Adds an offset to the query.
|
|
49
|
+
* @param offset The offset for the query.
|
|
50
|
+
* @returns A QueryBuilder instance with an offset added.
|
|
51
|
+
* @throws an SDKClientError with the code `SDKClientErrorCodes.QueryBuilderInvalidArgument` and a descriptive message if the offset is not a positive number.
|
|
52
|
+
*/
|
|
53
|
+
offset(offset: number): IQueryBuilder;
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A table builder for the {@link IKeyValueDatabase}.
|
|
3
|
+
* @category Key-Value Database
|
|
4
|
+
*/
|
|
5
|
+
export interface ITableBuilder {
|
|
6
|
+
/**
|
|
7
|
+
* Adds an index to the table.
|
|
8
|
+
* @param name The name of the index.
|
|
9
|
+
* @returns The table builder.
|
|
10
|
+
*/
|
|
11
|
+
index(name: string): ITableBuilder;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { DatabaseEvent, IDatabaseEvent } from './DatabaseEvent';
|
|
2
|
+
export { IDatabaseLayout } from './DatabaseLayout';
|
|
3
|
+
export { IDatabaseTable } from './DatabaseTable';
|
|
4
|
+
export { IDatabaseTableAction } from './DatabaseTableAction';
|
|
5
|
+
export { IDatabaseTableEvent } from './DatabaseTableEvent';
|
|
6
|
+
export { IDatabaseTableIndex } from './DatabaseTableIndex';
|
|
7
|
+
export { IDatabaseTableLayout } from './DatabaseTableLayout';
|
|
8
|
+
export { IDatabaseTableQuery } from './DatabaseTableQuery';
|
|
9
|
+
export { IDatabaseTableQueryWhereBetween } from './DatabaseTableQueryWhereBetween';
|
|
10
|
+
export { IDatabaseTableQueryWhereValue } from './DatabaseTableQueryWhereValue';
|
|
11
|
+
export { IDatabaseTableQueryWhereValues } from './DatabaseTableQueryWhereValues';
|
|
12
|
+
export { IKeyValueDatabase } from './KeyValueDatabase';
|
|
13
|
+
export { IKeyValueDatabaseConnector } from './KeyValueDatabaseConnector';
|
|
14
|
+
export { KeyValueDatabaseConnectorConstructor } from './KeyValueDatabaseConnectorConstructor';
|
|
15
|
+
export { IKeyValueDatabaseTableConnector } from './KeyValueDatabaseTableConnector';
|
|
16
|
+
export { ILayoutBuilder } from './LayoutBuilder';
|
|
17
|
+
export { IQueryBuilder } from './QueryBuilder';
|
|
18
|
+
export { SupportedIndexType } from './SupportedIndexType';
|
|
19
|
+
export { ITableBuilder } from './TableBuilder';
|
|
20
|
+
export { IValueType } from './ValueType';
|
|
21
|
+
export { ValueTypeOmitId } from './ValueTypeOmitId';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DatabaseEvent } from './DatabaseEvent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IMediaStream, MediaStreamTransformer } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* The dynamic media stream interface.
|
|
4
|
+
* @category Media Stream
|
|
5
|
+
*/
|
|
6
|
+
export interface IDynamicMediaStream extends IMediaStream {
|
|
7
|
+
/**
|
|
8
|
+
* Set the transformations to apply to the stream.
|
|
9
|
+
* @param transformations The transformations to apply to the stream.
|
|
10
|
+
*/
|
|
11
|
+
setTransformations(transformations: MediaStreamTransformer[]): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IDynamicMediaStream, ILocalMediaStream, MediaTrackKind } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* The local dynamic media stream interface.
|
|
4
|
+
* @category Media Stream
|
|
5
|
+
*/
|
|
6
|
+
export interface ILocalDynamicMediaStream extends ILocalMediaStream, IDynamicMediaStream {
|
|
7
|
+
/**
|
|
8
|
+
* Add a track to the stream. This will replace any existing track of the same kind.
|
|
9
|
+
* @param track The track to add.
|
|
10
|
+
*/
|
|
11
|
+
addTrack(track: MediaStreamTrack): void;
|
|
12
|
+
/**
|
|
13
|
+
* Remove a track from the stream.
|
|
14
|
+
* @param param The track or kind of track to remove.
|
|
15
|
+
* @returns The removed track or null if the track was not found.
|
|
16
|
+
*/
|
|
17
|
+
removeTrack(param: MediaStreamTrack | MediaTrackKind): MediaStreamTrack | null;
|
|
18
|
+
/**
|
|
19
|
+
* Replace the track with same kind as the new track in the stream.
|
|
20
|
+
* @param track The track to replace.
|
|
21
|
+
*/
|
|
22
|
+
replaceTrack(track: MediaStreamTrack): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IMediaStream, MediaStreamPriority } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* The local media stream interface.
|
|
4
|
+
* @category Media Stream
|
|
5
|
+
*/
|
|
6
|
+
export interface ILocalMediaStream extends IMediaStream {
|
|
7
|
+
/**
|
|
8
|
+
* Set the priority of the stream.
|
|
9
|
+
* @param priority The priority of the stream.
|
|
10
|
+
*/
|
|
11
|
+
setPriority(priority: MediaStreamPriority): void;
|
|
12
|
+
/**
|
|
13
|
+
* Unpublish the stream.
|
|
14
|
+
*/
|
|
15
|
+
unpublish(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IStream } from '../core/stream';
|
|
2
|
+
/**
|
|
3
|
+
* The media stream interface.
|
|
4
|
+
* @category Core
|
|
5
|
+
*/
|
|
6
|
+
export interface IMediaStream extends IStream {
|
|
7
|
+
/**
|
|
8
|
+
* Get the label of the stream.
|
|
9
|
+
* @returns The label of the stream.
|
|
10
|
+
*/
|
|
11
|
+
getLabel(): string;
|
|
12
|
+
/**
|
|
13
|
+
* Get the media stream.
|
|
14
|
+
* @returns The media stream.
|
|
15
|
+
*/
|
|
16
|
+
getMediaStream(): MediaStream;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The priority of a media stream. Higher priority streams will be prioritized over lower priority streams for quality of experience.
|
|
3
|
+
* @category Media Stream
|
|
4
|
+
*/
|
|
5
|
+
export declare enum MediaStreamPriority {
|
|
6
|
+
/**
|
|
7
|
+
* The highest priority.
|
|
8
|
+
*/
|
|
9
|
+
High = 1,
|
|
10
|
+
/**
|
|
11
|
+
* The default priority.
|
|
12
|
+
*/
|
|
13
|
+
Default = 2,
|
|
14
|
+
/**
|
|
15
|
+
* The lowest priority.
|
|
16
|
+
*/
|
|
17
|
+
Low = 3
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The priority of a media stream. Higher priority streams will be prioritized over lower priority streams for quality of experience.
|
|
3
|
+
* @category Media Stream
|
|
4
|
+
*/
|
|
5
|
+
export var MediaStreamPriority;
|
|
6
|
+
(function (MediaStreamPriority) {
|
|
7
|
+
/**
|
|
8
|
+
* The highest priority.
|
|
9
|
+
*/
|
|
10
|
+
MediaStreamPriority[MediaStreamPriority["High"] = 1] = "High";
|
|
11
|
+
/**
|
|
12
|
+
* The default priority.
|
|
13
|
+
*/
|
|
14
|
+
MediaStreamPriority[MediaStreamPriority["Default"] = 2] = "Default";
|
|
15
|
+
/**
|
|
16
|
+
* The lowest priority.
|
|
17
|
+
*/
|
|
18
|
+
MediaStreamPriority[MediaStreamPriority["Low"] = 3] = "Low";
|
|
19
|
+
})(MediaStreamPriority || (MediaStreamPriority = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The media stream transformer. Used to transform the media stream before it is sent.
|
|
3
|
+
* @param imageData The image data to transform.
|
|
4
|
+
* @returns The transformed image data.
|
|
5
|
+
* @category Media Stream
|
|
6
|
+
*/
|
|
7
|
+
export type MediaStreamTransformer = (imageData: ImageData) => ImageData;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AudioSubscriptionParams, VideoSubscriptionParams } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* The subscription parameters for a media stream.
|
|
4
|
+
* @category Media Stream
|
|
5
|
+
*/
|
|
6
|
+
export type MediaSubscriptionParams = {
|
|
7
|
+
/**
|
|
8
|
+
* The video subscription parameters.
|
|
9
|
+
*/
|
|
10
|
+
video?: VideoSubscriptionParams | boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The audio subscription parameters.
|
|
13
|
+
*/
|
|
14
|
+
audio?: AudioSubscriptionParams | boolean;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IMediaStream, MediaTrackKind, MediaSubscriptionParams } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* The unsubscribe callback.
|
|
4
|
+
* @category Media Stream
|
|
5
|
+
*/
|
|
6
|
+
export type Unsubscribe = () => void;
|
|
7
|
+
/**
|
|
8
|
+
* The remote media stream interface.
|
|
9
|
+
* @category Media Stream
|
|
10
|
+
*/
|
|
11
|
+
export interface IRemoteMediaStream extends IMediaStream {
|
|
12
|
+
/**
|
|
13
|
+
* Get the available track kinds.
|
|
14
|
+
* @returns The available track kinds.
|
|
15
|
+
*/
|
|
16
|
+
getAvailableTrackKinds(): MediaTrackKind[];
|
|
17
|
+
/**
|
|
18
|
+
* Subscribe to track kinds of the stream. Passing no track kinds will subscribe to all available track kinds.
|
|
19
|
+
* @param params The subscription parameters.
|
|
20
|
+
* @throws {@link SDKClientErrorCodes.SubscriptionRequestInProgress} if the subscription is already in progress.
|
|
21
|
+
* @throws {@link SDKClientErrorCodes.RemoteMediaStreamInvalidSubscriptionParams} if the subscription parameters are invalid.
|
|
22
|
+
*/
|
|
23
|
+
subscribe(params?: MediaSubscriptionParams): void;
|
|
24
|
+
/**
|
|
25
|
+
* Update the subscription parameters.
|
|
26
|
+
* @param params The subscription parameters.
|
|
27
|
+
* @throws {@link SDKClientErrorCodes.RemoteMediaStreamInvalidSubscriptionParams} if the subscription parameters are invalid.
|
|
28
|
+
*/
|
|
29
|
+
update(params: MediaSubscriptionParams): void;
|
|
30
|
+
/**
|
|
31
|
+
* Unsubscribe from track kinds of the stream. Passing no track kinds will unsubscribe from all subscribed track kinds.
|
|
32
|
+
* @param trackKinds The track kinds to unsubscribe from.
|
|
33
|
+
*/
|
|
34
|
+
unsubscribe(trackKinds?: MediaTrackKind | MediaTrackKind[]): void;
|
|
35
|
+
/**
|
|
36
|
+
* Subscribe to when the provider of the stream changes.
|
|
37
|
+
* @param callback The callback to invoke when the provider changes.
|
|
38
|
+
*/
|
|
39
|
+
onProviderChanged(callback: (providerId: string | undefined) => void): Unsubscribe;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Resolution } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* The subscription parameters for a video track.
|
|
4
|
+
* @category Media Stream
|
|
5
|
+
*/
|
|
6
|
+
export type VideoSubscriptionParams = {
|
|
7
|
+
/**
|
|
8
|
+
* The maximum resolution for the video track.
|
|
9
|
+
*/
|
|
10
|
+
maxResolution?: Resolution;
|
|
11
|
+
/**
|
|
12
|
+
* The HTML element to render the video track to.
|
|
13
|
+
*/
|
|
14
|
+
renderElement?: HTMLVideoElement;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { AudioSubscriptionParams } from './AudioSubscriptionParams';
|
|
2
|
+
export { IDynamicMediaStream } from './DynamicMediaStream';
|
|
3
|
+
export { isValidMediaSubscriptionParams } from './isValidMediaSubscriptionParams';
|
|
4
|
+
export { ILocalDynamicMediaStream } from './LocalDynamicMediaStream';
|
|
5
|
+
export { ILocalMediaStream } from './LocalMediaStream';
|
|
6
|
+
export { IMediaStream } from './MediaStream';
|
|
7
|
+
export { MediaStreamPriority } from './MediaStreamPriority';
|
|
8
|
+
export { MediaStreamSource } from './MediaStreamSource';
|
|
9
|
+
export { MediaStreamTransformer } from './MediaStreamTransformer';
|
|
10
|
+
export { MediaSubscriptionParams } from './MediaSubscriptionParams';
|
|
11
|
+
export { MediaTrackKind } from './MediaTrackKind';
|
|
12
|
+
export { IRemoteMediaStream } from './RemoteMediaStream';
|
|
13
|
+
export { Resolution } from './Resolution';
|
|
14
|
+
export { TrackSubscriptionParams } from './TrackSubscriptionParams';
|
|
15
|
+
export { VideoSubscriptionParams } from './VideoSubscriptionParams';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MediaSubscriptionParams } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* A function that validates media subscription parameters.
|
|
4
|
+
* @param params The media subscription parameters to validate.
|
|
5
|
+
* @returns True if the media subscription parameters are valid.
|
|
6
|
+
* @category Media Stream
|
|
7
|
+
*/
|
|
8
|
+
export declare function isValidMediaSubscriptionParams(params: unknown): params is MediaSubscriptionParams;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A function that validates media subscription parameters.
|
|
3
|
+
* @param params The media subscription parameters to validate.
|
|
4
|
+
* @returns True if the media subscription parameters are valid.
|
|
5
|
+
* @category Media Stream
|
|
6
|
+
*/
|
|
7
|
+
export function isValidMediaSubscriptionParams(params) {
|
|
8
|
+
if (!params) {
|
|
9
|
+
throw new Error('Invalid params');
|
|
10
|
+
}
|
|
11
|
+
if (typeof params !== 'object') {
|
|
12
|
+
throw new Error('Invalid params');
|
|
13
|
+
}
|
|
14
|
+
const paramsObj = params;
|
|
15
|
+
if (paramsObj.video && typeof paramsObj.video !== 'boolean') {
|
|
16
|
+
if (paramsObj.video.maxResolution) {
|
|
17
|
+
if (typeof paramsObj.video.maxResolution.width !== 'number' || typeof paramsObj.video.maxResolution.height !== 'number') {
|
|
18
|
+
throw new Error('Invalid resolution');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
if (paramsObj.video.renderElement) {
|
|
22
|
+
if (!(paramsObj.video.renderElement instanceof HTMLVideoElement)) {
|
|
23
|
+
throw new Error('Invalid render element');
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ObjectKind } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* The file descriptor interface.
|
|
4
|
+
* @category Object Storage
|
|
5
|
+
*/
|
|
6
|
+
export interface IFileDescriptor {
|
|
7
|
+
/**
|
|
8
|
+
* The object kind.
|
|
9
|
+
*/
|
|
10
|
+
kind: ObjectKind.File;
|
|
11
|
+
/**
|
|
12
|
+
* The name of the file.
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* The type of the file.
|
|
17
|
+
*/
|
|
18
|
+
type: string;
|
|
19
|
+
/**
|
|
20
|
+
* The size of the file.
|
|
21
|
+
*/
|
|
22
|
+
size: number;
|
|
23
|
+
/**
|
|
24
|
+
* The path of the file.
|
|
25
|
+
*/
|
|
26
|
+
path: string;
|
|
27
|
+
/**
|
|
28
|
+
* The path name of the file (a combination of the path and the name).
|
|
29
|
+
*/
|
|
30
|
+
pathName: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PayloadAction } from '.';
|
|
2
|
+
/**
|
|
3
|
+
* The file payload interface.
|
|
4
|
+
* @category Object Storage
|
|
5
|
+
*/
|
|
6
|
+
export interface IFilePayload {
|
|
7
|
+
/**
|
|
8
|
+
* The file store payload action.
|
|
9
|
+
*/
|
|
10
|
+
action: PayloadAction.File;
|
|
11
|
+
/**
|
|
12
|
+
* The file to publish.
|
|
13
|
+
*/
|
|
14
|
+
file: File;
|
|
15
|
+
/**
|
|
16
|
+
* The path of the file.
|
|
17
|
+
*/
|
|
18
|
+
path?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|