@opencxh/domain 1.32.0 → 1.34.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.
@@ -29,10 +29,7 @@ export interface ITransportProvider {
29
29
  readonly id: string;
30
30
  subscribeSessions(callback: (sessions: Session[]) => void): () => void;
31
31
  subscribeAccounts(callback: (accounts: CommsAccount[]) => void): () => void;
32
- subscribeStreams(callback: (data: {
33
- sessionId: string;
34
- stream: MediaStream;
35
- }) => void): () => void;
32
+ subscribeStreams(callback: (data: RemoteStreamEvent) => void): () => void;
36
33
  registerAccount(orgId: string, userId: string, config: any): Promise<CommsAccount>;
37
34
  unregisterAccount(accountId: string): Promise<void>;
38
35
  /**
@@ -178,6 +175,7 @@ export interface RemoteStreamEvent {
178
175
  sessionId: string;
179
176
  streamId: string;
180
177
  stream: MediaStream | null;
178
+ speaker?: 'local' | 'remote';
181
179
  label?: string;
182
180
  }
183
181
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/domain",
3
- "version": "1.32.0",
3
+ "version": "1.34.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",