@formant/data-sdk 0.0.1 → 0.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.
@@ -0,0 +1,3 @@
1
+ export declare function defined<T>(value: T | undefined): T;
2
+ export declare function notNull<T>(value: T | null): T;
3
+ export declare function definedAndNotNull<T>(value: T | undefined | null): T;
@@ -3,6 +3,9 @@ export interface ConfigurationDocument {
3
3
  urdfFiles: string[];
4
4
  }
5
5
  export declare type RealtimeListener = (peerId: string, message: any) => void;
6
+ export declare type RealtimeVideoStream = {
7
+ name: string;
8
+ };
6
9
  export declare class Device {
7
10
  private token;
8
11
  id: string;
@@ -18,5 +21,8 @@ export declare class Device {
18
21
  startRealtimeConnection(): Promise<void>;
19
22
  addRealtimeListener(listener: RealtimeListener): void;
20
23
  removeRealtimeListener(listener: RealtimeListener): void;
24
+ getRealtimeVideoStreams(): Promise<RealtimeVideoStream[]>;
25
+ startListeningToRealtimeVideo(stream: RealtimeVideoStream): void;
26
+ stopListeningToRealtimeVideo(stream: RealtimeVideoStream): void;
21
27
  stopRealtimeConnection(): Promise<void>;
22
28
  }
@@ -0,0 +1 @@
1
+ export declare const FORMANT_API_URL = "https://api.formant.io";
@@ -1,4 +1,3 @@
1
1
  export { Fleet } from "./Fleet";
2
2
  export { Authentication } from "./Authentication";
3
3
  export { Device } from "./Device";
4
- export declare const FORMANT_API_URL = "https://api.formant.io";
package/package.json CHANGED
@@ -3,13 +3,13 @@
3
3
  "description": "A library for getting data from Formant",
4
4
  "repository": {
5
5
  "type": "git",
6
- "url": "https://github.com/formantio/web-sdk.git"
6
+ "url": "https://github.com/formantio/toolkit.git"
7
7
  },
8
8
  "files": [
9
9
  "dist"
10
10
  ],
11
11
  "license": "MIT",
12
- "homepage": "https://github.com/formantio/web-sdk",
12
+ "homepage": "https://github.com/formantio/toolkit",
13
13
  "main": "./dist/data-sdk.umd.js",
14
14
  "module": "./dist/data-sdk.es.js",
15
15
  "exports": {
@@ -18,7 +18,7 @@
18
18
  "require": "./dist/data-sdk.umd.js"
19
19
  }
20
20
  },
21
- "version": "0.0.1",
21
+ "version": "0.0.5",
22
22
  "scripts": {
23
23
  "dev": "vite --port 4000",
24
24
  "build": "tsc && vite build",
@@ -27,13 +27,13 @@
27
27
  "docs": "typedoc src/main.ts --theme minimal --out ../../docs/data-sdk/"
28
28
  },
29
29
  "devDependencies": {
30
- "@formant/realtime-sdk": "0.0.3",
31
30
  "typedoc": "^0.21.9",
32
31
  "typescript": "^4.3.2",
33
32
  "vite": "^2.5.4"
34
33
  },
35
- "types": "./dist/types/main.d.ts",
34
+ "types": "./dist/types/data-sdk/src/main.d.ts",
36
35
  "dependencies": {
37
- "@types/google-protobuf": "^3.15.5"
36
+ "@types/google-protobuf": "^3.15.5",
37
+ "@formant/realtime-sdk": "0.0.3"
38
38
  }
39
39
  }