@formant/data-sdk 0.0.93 → 0.0.96

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.
@@ -1,4 +1,4 @@
1
- import { IRtcConnectConfiguration, RtcClient } from "@formant/realtime-sdk";
1
+ import { IRtcConnectConfiguration, IRtcStreamPayload, RtcClient } from "@formant/realtime-sdk";
2
2
  import { DataChannel } from "./DataChannel";
3
3
  import { CaptureStream } from "./CaptureStream";
4
4
  import { Manipulator } from "./Manipulator";
@@ -46,7 +46,7 @@ export declare type RealtimeMessage = {
46
46
  streamType: string;
47
47
  };
48
48
  };
49
- payload: any;
49
+ payload: IRtcStreamPayload;
50
50
  };
51
51
  export declare type RealtimeListener = (peerId: string, message: RealtimeMessage) => void;
52
52
  export declare type RealtimeVideoStream = {
@@ -96,7 +96,7 @@ export declare class Device implements IRealtimeDevice {
96
96
  stopRealtimeConnection(): Promise<void>;
97
97
  isInRealtimeSession(): Promise<boolean>;
98
98
  getAvailableCommands(): Promise<Command[]>;
99
- sendCommand(name: string, data?: string, time?: Date, metadata?: {}): Promise<any>;
99
+ sendCommand(name: string, data?: string, time?: Date, metadata?: {}): Promise<void>;
100
100
  createCustomDataChannel(channelName: string, rtcConfig?: RTCDataChannelInit): Promise<DataChannel>;
101
101
  createCustomRequestDataChannel(channelName: string, timeout?: number): TextRequestDataChannel;
102
102
  createCustomBinaryRequestDataChannel(channelName: string, timeout?: number): BinaryRequestDataChannel;
@@ -1,4 +1,6 @@
1
1
  export declare class KeyValue {
2
2
  static set(key: string, value: string): Promise<void>;
3
3
  static get(key: string): Promise<string>;
4
+ static list(): Promise<string[]>;
5
+ static delete(key: string): Promise<void>;
4
6
  }
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "require": "./dist/data-sdk.umd.js"
19
19
  }
20
20
  },
21
- "version": "0.0.93",
21
+ "version": "0.0.96",
22
22
  "scripts": {
23
23
  "dev": "vite --port 9146",
24
24
  "build": "tsc && vite build",