@d-id/client-sdk 1.1.33 → 1.1.34-staging.157

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,8 @@
1
1
  import { ConnectivityState, StreamingState } from '../../../types';
2
2
  import { VideoRTCStatsReport } from './report';
3
3
 
4
- export declare function pollStats(peerConnection: RTCPeerConnection, getIsConnected: () => boolean, onConnected: () => void, onVideoStateChange?: (state: StreamingState, statsReport?: VideoRTCStatsReport) => void, onConnectivityStateChange?: (state: ConnectivityState) => void): NodeJS.Timeout;
4
+ export declare function createVideoStatsMonitor(getStats: () => Promise<RTCStatsReport | undefined>, getIsConnected: () => boolean, onConnected: () => void, onVideoStateChange?: (state: StreamingState, statsReport?: VideoRTCStatsReport) => void, onConnectivityStateChange?: (state: ConnectivityState) => void): {
5
+ start: () => void;
6
+ stop: () => void;
7
+ getReport: () => VideoRTCStatsReport;
8
+ };
@@ -28,6 +28,10 @@ export interface Message {
28
28
  videoId?: string;
29
29
  interrupted?: boolean;
30
30
  transcribed?: boolean;
31
+ sentiment?: {
32
+ id: string;
33
+ name: string;
34
+ };
31
35
  }
32
36
  export interface ChatPayload {
33
37
  messages: Message[];
@@ -1,2 +1,3 @@
1
+ export declare const noop: (..._args: unknown[]) => void;
1
2
  export declare const sleep: (ms: number) => Promise<unknown>;
2
3
  export declare const getRandom: (length?: number) => string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@d-id/client-sdk",
3
3
  "private": false,
4
- "version": "1.1.33",
4
+ "version": "1.1.34-staging.157",
5
5
  "type": "module",
6
6
  "description": "d-id client sdk",
7
7
  "repository": {