@formant/data-sdk 0.0.58 → 0.0.62
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.
|
@@ -15,6 +15,8 @@ export declare class Authentication {
|
|
|
15
15
|
static token: string | undefined;
|
|
16
16
|
static refreshToken: string | undefined;
|
|
17
17
|
static currentUser: User | undefined;
|
|
18
|
+
static currentOrganization: string | undefined;
|
|
19
|
+
static isShareToken: boolean;
|
|
18
20
|
static defaultDeviceId: string | undefined;
|
|
19
21
|
static waitingForAuth: ((result: boolean) => void)[];
|
|
20
22
|
static login(email: string, password: string): Promise<IAuthentication | Error>;
|
|
@@ -76,6 +76,7 @@ export declare class Device {
|
|
|
76
76
|
disableRealtimeTelemetryPriorityIngestion(streamName: string): Promise<void>;
|
|
77
77
|
getRemotePeer(): Promise<import("@formant/realtime-sdk/dist/model/IRtcPeer").IRtcPeer>;
|
|
78
78
|
stopRealtimeConnection(): Promise<void>;
|
|
79
|
+
isInRealtimeSession(): Promise<boolean>;
|
|
79
80
|
getAvailableCommands(): Promise<Command[]>;
|
|
80
81
|
sendCommand(name: string, data?: string, time?: Date, metadata?: {}): Promise<any>;
|
|
81
82
|
createCustomDataChannel(channelName: string, rtcConfig?: RTCDataChannelInit): Promise<DataChannel>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Device } from "./Device";
|
|
2
|
+
import { IRtcPeer } from "@formant/realtime-sdk/dist/model/IRtcPeer";
|
|
2
3
|
export interface User {
|
|
3
4
|
firstName: string;
|
|
4
5
|
lastName: string;
|
|
@@ -23,6 +24,10 @@ export declare class Fleet {
|
|
|
23
24
|
static getDevice(deviceId: string): Promise<Device>;
|
|
24
25
|
static getDevices(): Promise<Device[]>;
|
|
25
26
|
static getOnlineDevices(): Promise<Device[]>;
|
|
27
|
+
static getPeers(): Promise<IRtcPeer[]>;
|
|
28
|
+
static getRealtimeSessions(): Promise<{
|
|
29
|
+
[key in string]: string[];
|
|
30
|
+
}>;
|
|
26
31
|
static getRealtimeDevices(): Promise<Device[]>;
|
|
27
32
|
static getLatestTelemetry(deviceIdOrDeviceIds?: string | string[]): Promise<any>;
|
|
28
33
|
static getTelemetry(deviceIdOrDeviceIds: string | string[], streamNameOrStreamNames: string | string[], start: Date, end: Date, tags?: {
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"require": "./dist/data-sdk.umd.js"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
"version": "0.0.
|
|
21
|
+
"version": "0.0.62",
|
|
22
22
|
"scripts": {
|
|
23
23
|
"dev": "vite --port 9146",
|
|
24
24
|
"build": "tsc && vite build",
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
"types": "./dist/types/data-sdk/src/main.d.ts",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@types/google-protobuf": "^3.15.5",
|
|
37
|
-
"@formant/realtime-sdk": "0.0.
|
|
37
|
+
"@formant/realtime-sdk": "0.0.6"
|
|
38
38
|
}
|
|
39
39
|
}
|