@whereby.com/assistant-sdk 0.0.0-canary-20251002113535 → 0.0.0-canary-20251007140529

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.
package/dist/index.d.cts CHANGED
@@ -1,10 +1,9 @@
1
1
  import * as wrtc from '@roamhq/wrtc';
2
2
  import wrtc__default from '@roamhq/wrtc';
3
3
  import * as _whereby_com_core from '@whereby.com/core';
4
- import { RoomConnectionClient, RemoteParticipantState, ChatMessage } from '@whereby.com/core';
4
+ import { RoomConnectionClient, LocalMediaClient } from '@whereby.com/core';
5
5
  export { RemoteParticipantState } from '@whereby.com/core';
6
6
  import EventEmitter, { EventEmitter as EventEmitter$1 } from 'events';
7
- import { PassThrough } from 'stream';
8
7
 
9
8
  declare global {
10
9
  interface MediaStream extends wrtc.MediaStream {
@@ -92,7 +91,49 @@ type WherebyWebhookTriggers = Partial<{
92
91
  [Type in keyof WherebyWebhookTriggerTypes]: (data: WherebyWebhookTriggerTypes[Type]) => Promise<boolean> | boolean;
93
92
  }>;
94
93
 
95
- declare const AUDIO_STREAM_READY = "AUDIO_STREAM_READY";
94
+ declare const RTCVideoSink: {
95
+ new (track: MediaStreamTrack): wrtc__default.nonstandard.RTCVideoSink;
96
+ prototype: wrtc__default.nonstandard.RTCVideoSink;
97
+ };
98
+ declare const RTCVideoSource: {
99
+ new (init?: wrtc__default.nonstandard.RTCVideoSourceInit): wrtc__default.nonstandard.RTCVideoSource;
100
+ prototype: wrtc__default.nonstandard.RTCVideoSource;
101
+ };
102
+ declare class VideoSource extends RTCVideoSource {
103
+ }
104
+ declare class VideoSink extends RTCVideoSink {
105
+ private _sink;
106
+ constructor(track: MediaStreamTrack);
107
+ subscribe(cb: (d: {
108
+ width: number;
109
+ height: number;
110
+ data: Uint8ClampedArray;
111
+ rotation: number;
112
+ }) => void): () => void;
113
+ }
114
+
115
+ declare const RTCAudioSink: {
116
+ new (track: MediaStreamTrack): wrtc__default.nonstandard.RTCAudioSink;
117
+ prototype: wrtc__default.nonstandard.RTCAudioSink;
118
+ };
119
+ declare const RTCAudioSource: {
120
+ new (): wrtc__default.nonstandard.RTCAudioSource;
121
+ prototype: wrtc__default.nonstandard.RTCAudioSource;
122
+ };
123
+ declare class AudioSource extends RTCAudioSource {
124
+ }
125
+ declare class AudioSink extends RTCAudioSink {
126
+ private _sink;
127
+ constructor(track: MediaStreamTrack);
128
+ subscribe(cb: (d: {
129
+ samples: Int16Array;
130
+ sampleRate: number;
131
+ channelCount: number;
132
+ bitsPerSample: number;
133
+ numberOfFrames?: number;
134
+ }) => void): () => void;
135
+ }
136
+
96
137
  declare const ASSISTANT_JOINED_ROOM = "ASSISTANT_JOINED_ROOM";
97
138
  declare const ASSISTANT_LEFT_ROOM = "ASSISTANT_LEFT_ROOM";
98
139
  declare const PARTICIPANT_VIDEO_TRACK_ADDED = "PARTICIPANT_VIDEO_TRACK_ADDED";
@@ -106,69 +147,51 @@ type AssistantEvents = {
106
147
  [ASSISTANT_LEFT_ROOM]: [{
107
148
  roomUrl: string;
108
149
  }];
109
- [AUDIO_STREAM_READY]: [{
110
- stream: MediaStream;
111
- track: MediaStreamTrack;
112
- }];
113
150
  [PARTICIPANT_VIDEO_TRACK_ADDED]: [{
114
151
  participantId: string;
115
- stream: MediaStream;
116
- track: MediaStreamTrack;
152
+ trackId: string;
153
+ data: VideoSink;
117
154
  }];
118
155
  [PARTICIPANT_VIDEO_TRACK_REMOVED]: [{
119
156
  participantId: string;
120
- stream: MediaStream;
121
- track: MediaStreamTrack;
157
+ trackId: string;
122
158
  }];
123
159
  [PARTICIPANT_AUDIO_TRACK_ADDED]: [{
124
160
  participantId: string;
125
- stream: MediaStream;
126
- track: MediaStreamTrack;
161
+ trackId: string;
162
+ data: AudioSink;
127
163
  }];
128
164
  [PARTICIPANT_AUDIO_TRACK_REMOVED]: [{
129
165
  participantId: string;
130
- stream: MediaStream;
131
- track: MediaStreamTrack;
166
+ trackId: string;
132
167
  }];
133
168
  };
134
169
 
135
170
  type AssistantOptions = {
136
171
  assistantKey: string;
137
- startCombinedAudioStream?: boolean;
138
- startLocalMedia?: boolean;
139
172
  };
140
173
  declare class Assistant extends EventEmitter<AssistantEvents> {
141
174
  private assistantKey;
142
175
  private client;
143
176
  private roomConnection;
177
+ private localAudioSource;
178
+ private localVideoSource;
144
179
  private localMedia;
145
- private mediaStream;
146
- private audioSource;
147
- private combinedStream;
180
+ private combinedAudioSink;
148
181
  private remoteMediaTracks;
149
182
  private roomUrl;
150
183
  private stateSubscriptions;
151
- constructor({ assistantKey, startCombinedAudioStream, startLocalMedia }: AssistantOptions);
184
+ constructor({ assistantKey }: AssistantOptions);
152
185
  private handleConnectionStatusChange;
153
186
  private handleRemoteParticipantsTracksChange;
154
187
  joinRoom(roomUrl: string): Promise<_whereby_com_core.RoomJoinedSuccess>;
155
- startLocalMedia(): void;
156
- getLocalMediaStream(): MediaStream | null;
157
- getLocalAudioSource(): wrtc__default.nonstandard.RTCAudioSource | null;
158
188
  getRoomConnection(): RoomConnectionClient;
159
- getCombinedAudioStream(): MediaStream | null;
160
- getRemoteParticipants(): RemoteParticipantState[];
161
- startCloudRecording(): void;
162
- stopCloudRecording(): void;
163
- sendChatMessage(message: string): void;
164
- spotlightParticipant(participantId: string): void;
165
- removeSpotlight(participantId: string): void;
166
- requestAudioEnable(participantId: string, enable: boolean): void;
167
- requestVideoEnable(participantId: string, enable: boolean): void;
168
- acceptWaitingParticipant(participantId: string): void;
169
- rejectWaitingParticipant(participantId: string): void;
170
- subscribeToRemoteParticipants(callback: (participants: RemoteParticipantState[]) => void): () => void;
171
- subscribeToChatMessages(callback: (messages: ChatMessage[]) => void): () => void;
189
+ startLocalMedia(): void;
190
+ stopLocalMedia(): void;
191
+ getLocalAudioSource(): AudioSource | null;
192
+ getLocalVideoSource(): VideoSource | null;
193
+ getLocalMedia(): LocalMediaClient;
194
+ getCombinedAudioSink(): AudioSink | null;
172
195
  }
173
196
 
174
197
  interface TriggerOptions {
@@ -182,20 +205,5 @@ declare class Trigger extends EventEmitter$1<TriggerEvents> {
182
205
  start(): void;
183
206
  }
184
207
 
185
- declare class AudioSource extends PassThrough {
186
- constructor();
187
- }
188
- declare class AudioSink extends wrtc__default.nonstandard.RTCAudioSink {
189
- private _sink;
190
- constructor(track: MediaStreamTrack);
191
- subscribe(cb: (d: {
192
- samples: Int16Array;
193
- sampleRate: number;
194
- channelCount: number;
195
- bitsPerSample: number;
196
- numberOfFrames?: number;
197
- }) => void): () => void;
198
- }
199
-
200
- export { ASSISTANT_JOINED_ROOM, ASSISTANT_LEFT_ROOM, AUDIO_STREAM_READY, Assistant, AudioSink, AudioSource, PARTICIPANT_AUDIO_TRACK_ADDED, PARTICIPANT_AUDIO_TRACK_REMOVED, PARTICIPANT_VIDEO_TRACK_ADDED, PARTICIPANT_VIDEO_TRACK_REMOVED, TRIGGER_EVENT_SUCCESS, Trigger };
208
+ export { ASSISTANT_JOINED_ROOM, ASSISTANT_LEFT_ROOM, Assistant, AudioSink, AudioSource, PARTICIPANT_AUDIO_TRACK_ADDED, PARTICIPANT_AUDIO_TRACK_REMOVED, PARTICIPANT_VIDEO_TRACK_ADDED, PARTICIPANT_VIDEO_TRACK_REMOVED, TRIGGER_EVENT_SUCCESS, Trigger };
201
209
  export type { AssistantEvents };
package/dist/index.d.mts CHANGED
@@ -1,10 +1,9 @@
1
1
  import * as wrtc from '@roamhq/wrtc';
2
2
  import wrtc__default from '@roamhq/wrtc';
3
3
  import * as _whereby_com_core from '@whereby.com/core';
4
- import { RoomConnectionClient, RemoteParticipantState, ChatMessage } from '@whereby.com/core';
4
+ import { RoomConnectionClient, LocalMediaClient } from '@whereby.com/core';
5
5
  export { RemoteParticipantState } from '@whereby.com/core';
6
6
  import EventEmitter, { EventEmitter as EventEmitter$1 } from 'events';
7
- import { PassThrough } from 'stream';
8
7
 
9
8
  declare global {
10
9
  interface MediaStream extends wrtc.MediaStream {
@@ -92,7 +91,49 @@ type WherebyWebhookTriggers = Partial<{
92
91
  [Type in keyof WherebyWebhookTriggerTypes]: (data: WherebyWebhookTriggerTypes[Type]) => Promise<boolean> | boolean;
93
92
  }>;
94
93
 
95
- declare const AUDIO_STREAM_READY = "AUDIO_STREAM_READY";
94
+ declare const RTCVideoSink: {
95
+ new (track: MediaStreamTrack): wrtc__default.nonstandard.RTCVideoSink;
96
+ prototype: wrtc__default.nonstandard.RTCVideoSink;
97
+ };
98
+ declare const RTCVideoSource: {
99
+ new (init?: wrtc__default.nonstandard.RTCVideoSourceInit): wrtc__default.nonstandard.RTCVideoSource;
100
+ prototype: wrtc__default.nonstandard.RTCVideoSource;
101
+ };
102
+ declare class VideoSource extends RTCVideoSource {
103
+ }
104
+ declare class VideoSink extends RTCVideoSink {
105
+ private _sink;
106
+ constructor(track: MediaStreamTrack);
107
+ subscribe(cb: (d: {
108
+ width: number;
109
+ height: number;
110
+ data: Uint8ClampedArray;
111
+ rotation: number;
112
+ }) => void): () => void;
113
+ }
114
+
115
+ declare const RTCAudioSink: {
116
+ new (track: MediaStreamTrack): wrtc__default.nonstandard.RTCAudioSink;
117
+ prototype: wrtc__default.nonstandard.RTCAudioSink;
118
+ };
119
+ declare const RTCAudioSource: {
120
+ new (): wrtc__default.nonstandard.RTCAudioSource;
121
+ prototype: wrtc__default.nonstandard.RTCAudioSource;
122
+ };
123
+ declare class AudioSource extends RTCAudioSource {
124
+ }
125
+ declare class AudioSink extends RTCAudioSink {
126
+ private _sink;
127
+ constructor(track: MediaStreamTrack);
128
+ subscribe(cb: (d: {
129
+ samples: Int16Array;
130
+ sampleRate: number;
131
+ channelCount: number;
132
+ bitsPerSample: number;
133
+ numberOfFrames?: number;
134
+ }) => void): () => void;
135
+ }
136
+
96
137
  declare const ASSISTANT_JOINED_ROOM = "ASSISTANT_JOINED_ROOM";
97
138
  declare const ASSISTANT_LEFT_ROOM = "ASSISTANT_LEFT_ROOM";
98
139
  declare const PARTICIPANT_VIDEO_TRACK_ADDED = "PARTICIPANT_VIDEO_TRACK_ADDED";
@@ -106,69 +147,51 @@ type AssistantEvents = {
106
147
  [ASSISTANT_LEFT_ROOM]: [{
107
148
  roomUrl: string;
108
149
  }];
109
- [AUDIO_STREAM_READY]: [{
110
- stream: MediaStream;
111
- track: MediaStreamTrack;
112
- }];
113
150
  [PARTICIPANT_VIDEO_TRACK_ADDED]: [{
114
151
  participantId: string;
115
- stream: MediaStream;
116
- track: MediaStreamTrack;
152
+ trackId: string;
153
+ data: VideoSink;
117
154
  }];
118
155
  [PARTICIPANT_VIDEO_TRACK_REMOVED]: [{
119
156
  participantId: string;
120
- stream: MediaStream;
121
- track: MediaStreamTrack;
157
+ trackId: string;
122
158
  }];
123
159
  [PARTICIPANT_AUDIO_TRACK_ADDED]: [{
124
160
  participantId: string;
125
- stream: MediaStream;
126
- track: MediaStreamTrack;
161
+ trackId: string;
162
+ data: AudioSink;
127
163
  }];
128
164
  [PARTICIPANT_AUDIO_TRACK_REMOVED]: [{
129
165
  participantId: string;
130
- stream: MediaStream;
131
- track: MediaStreamTrack;
166
+ trackId: string;
132
167
  }];
133
168
  };
134
169
 
135
170
  type AssistantOptions = {
136
171
  assistantKey: string;
137
- startCombinedAudioStream?: boolean;
138
- startLocalMedia?: boolean;
139
172
  };
140
173
  declare class Assistant extends EventEmitter<AssistantEvents> {
141
174
  private assistantKey;
142
175
  private client;
143
176
  private roomConnection;
177
+ private localAudioSource;
178
+ private localVideoSource;
144
179
  private localMedia;
145
- private mediaStream;
146
- private audioSource;
147
- private combinedStream;
180
+ private combinedAudioSink;
148
181
  private remoteMediaTracks;
149
182
  private roomUrl;
150
183
  private stateSubscriptions;
151
- constructor({ assistantKey, startCombinedAudioStream, startLocalMedia }: AssistantOptions);
184
+ constructor({ assistantKey }: AssistantOptions);
152
185
  private handleConnectionStatusChange;
153
186
  private handleRemoteParticipantsTracksChange;
154
187
  joinRoom(roomUrl: string): Promise<_whereby_com_core.RoomJoinedSuccess>;
155
- startLocalMedia(): void;
156
- getLocalMediaStream(): MediaStream | null;
157
- getLocalAudioSource(): wrtc__default.nonstandard.RTCAudioSource | null;
158
188
  getRoomConnection(): RoomConnectionClient;
159
- getCombinedAudioStream(): MediaStream | null;
160
- getRemoteParticipants(): RemoteParticipantState[];
161
- startCloudRecording(): void;
162
- stopCloudRecording(): void;
163
- sendChatMessage(message: string): void;
164
- spotlightParticipant(participantId: string): void;
165
- removeSpotlight(participantId: string): void;
166
- requestAudioEnable(participantId: string, enable: boolean): void;
167
- requestVideoEnable(participantId: string, enable: boolean): void;
168
- acceptWaitingParticipant(participantId: string): void;
169
- rejectWaitingParticipant(participantId: string): void;
170
- subscribeToRemoteParticipants(callback: (participants: RemoteParticipantState[]) => void): () => void;
171
- subscribeToChatMessages(callback: (messages: ChatMessage[]) => void): () => void;
189
+ startLocalMedia(): void;
190
+ stopLocalMedia(): void;
191
+ getLocalAudioSource(): AudioSource | null;
192
+ getLocalVideoSource(): VideoSource | null;
193
+ getLocalMedia(): LocalMediaClient;
194
+ getCombinedAudioSink(): AudioSink | null;
172
195
  }
173
196
 
174
197
  interface TriggerOptions {
@@ -182,20 +205,5 @@ declare class Trigger extends EventEmitter$1<TriggerEvents> {
182
205
  start(): void;
183
206
  }
184
207
 
185
- declare class AudioSource extends PassThrough {
186
- constructor();
187
- }
188
- declare class AudioSink extends wrtc__default.nonstandard.RTCAudioSink {
189
- private _sink;
190
- constructor(track: MediaStreamTrack);
191
- subscribe(cb: (d: {
192
- samples: Int16Array;
193
- sampleRate: number;
194
- channelCount: number;
195
- bitsPerSample: number;
196
- numberOfFrames?: number;
197
- }) => void): () => void;
198
- }
199
-
200
- export { ASSISTANT_JOINED_ROOM, ASSISTANT_LEFT_ROOM, AUDIO_STREAM_READY, Assistant, AudioSink, AudioSource, PARTICIPANT_AUDIO_TRACK_ADDED, PARTICIPANT_AUDIO_TRACK_REMOVED, PARTICIPANT_VIDEO_TRACK_ADDED, PARTICIPANT_VIDEO_TRACK_REMOVED, TRIGGER_EVENT_SUCCESS, Trigger };
208
+ export { ASSISTANT_JOINED_ROOM, ASSISTANT_LEFT_ROOM, Assistant, AudioSink, AudioSource, PARTICIPANT_AUDIO_TRACK_ADDED, PARTICIPANT_AUDIO_TRACK_REMOVED, PARTICIPANT_VIDEO_TRACK_ADDED, PARTICIPANT_VIDEO_TRACK_REMOVED, TRIGGER_EVENT_SUCCESS, Trigger };
201
209
  export type { AssistantEvents };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,9 @@
1
1
  import * as wrtc from '@roamhq/wrtc';
2
2
  import wrtc__default from '@roamhq/wrtc';
3
3
  import * as _whereby_com_core from '@whereby.com/core';
4
- import { RoomConnectionClient, RemoteParticipantState, ChatMessage } from '@whereby.com/core';
4
+ import { RoomConnectionClient, LocalMediaClient } from '@whereby.com/core';
5
5
  export { RemoteParticipantState } from '@whereby.com/core';
6
6
  import EventEmitter, { EventEmitter as EventEmitter$1 } from 'events';
7
- import { PassThrough } from 'stream';
8
7
 
9
8
  declare global {
10
9
  interface MediaStream extends wrtc.MediaStream {
@@ -92,7 +91,49 @@ type WherebyWebhookTriggers = Partial<{
92
91
  [Type in keyof WherebyWebhookTriggerTypes]: (data: WherebyWebhookTriggerTypes[Type]) => Promise<boolean> | boolean;
93
92
  }>;
94
93
 
95
- declare const AUDIO_STREAM_READY = "AUDIO_STREAM_READY";
94
+ declare const RTCVideoSink: {
95
+ new (track: MediaStreamTrack): wrtc__default.nonstandard.RTCVideoSink;
96
+ prototype: wrtc__default.nonstandard.RTCVideoSink;
97
+ };
98
+ declare const RTCVideoSource: {
99
+ new (init?: wrtc__default.nonstandard.RTCVideoSourceInit): wrtc__default.nonstandard.RTCVideoSource;
100
+ prototype: wrtc__default.nonstandard.RTCVideoSource;
101
+ };
102
+ declare class VideoSource extends RTCVideoSource {
103
+ }
104
+ declare class VideoSink extends RTCVideoSink {
105
+ private _sink;
106
+ constructor(track: MediaStreamTrack);
107
+ subscribe(cb: (d: {
108
+ width: number;
109
+ height: number;
110
+ data: Uint8ClampedArray;
111
+ rotation: number;
112
+ }) => void): () => void;
113
+ }
114
+
115
+ declare const RTCAudioSink: {
116
+ new (track: MediaStreamTrack): wrtc__default.nonstandard.RTCAudioSink;
117
+ prototype: wrtc__default.nonstandard.RTCAudioSink;
118
+ };
119
+ declare const RTCAudioSource: {
120
+ new (): wrtc__default.nonstandard.RTCAudioSource;
121
+ prototype: wrtc__default.nonstandard.RTCAudioSource;
122
+ };
123
+ declare class AudioSource extends RTCAudioSource {
124
+ }
125
+ declare class AudioSink extends RTCAudioSink {
126
+ private _sink;
127
+ constructor(track: MediaStreamTrack);
128
+ subscribe(cb: (d: {
129
+ samples: Int16Array;
130
+ sampleRate: number;
131
+ channelCount: number;
132
+ bitsPerSample: number;
133
+ numberOfFrames?: number;
134
+ }) => void): () => void;
135
+ }
136
+
96
137
  declare const ASSISTANT_JOINED_ROOM = "ASSISTANT_JOINED_ROOM";
97
138
  declare const ASSISTANT_LEFT_ROOM = "ASSISTANT_LEFT_ROOM";
98
139
  declare const PARTICIPANT_VIDEO_TRACK_ADDED = "PARTICIPANT_VIDEO_TRACK_ADDED";
@@ -106,69 +147,51 @@ type AssistantEvents = {
106
147
  [ASSISTANT_LEFT_ROOM]: [{
107
148
  roomUrl: string;
108
149
  }];
109
- [AUDIO_STREAM_READY]: [{
110
- stream: MediaStream;
111
- track: MediaStreamTrack;
112
- }];
113
150
  [PARTICIPANT_VIDEO_TRACK_ADDED]: [{
114
151
  participantId: string;
115
- stream: MediaStream;
116
- track: MediaStreamTrack;
152
+ trackId: string;
153
+ data: VideoSink;
117
154
  }];
118
155
  [PARTICIPANT_VIDEO_TRACK_REMOVED]: [{
119
156
  participantId: string;
120
- stream: MediaStream;
121
- track: MediaStreamTrack;
157
+ trackId: string;
122
158
  }];
123
159
  [PARTICIPANT_AUDIO_TRACK_ADDED]: [{
124
160
  participantId: string;
125
- stream: MediaStream;
126
- track: MediaStreamTrack;
161
+ trackId: string;
162
+ data: AudioSink;
127
163
  }];
128
164
  [PARTICIPANT_AUDIO_TRACK_REMOVED]: [{
129
165
  participantId: string;
130
- stream: MediaStream;
131
- track: MediaStreamTrack;
166
+ trackId: string;
132
167
  }];
133
168
  };
134
169
 
135
170
  type AssistantOptions = {
136
171
  assistantKey: string;
137
- startCombinedAudioStream?: boolean;
138
- startLocalMedia?: boolean;
139
172
  };
140
173
  declare class Assistant extends EventEmitter<AssistantEvents> {
141
174
  private assistantKey;
142
175
  private client;
143
176
  private roomConnection;
177
+ private localAudioSource;
178
+ private localVideoSource;
144
179
  private localMedia;
145
- private mediaStream;
146
- private audioSource;
147
- private combinedStream;
180
+ private combinedAudioSink;
148
181
  private remoteMediaTracks;
149
182
  private roomUrl;
150
183
  private stateSubscriptions;
151
- constructor({ assistantKey, startCombinedAudioStream, startLocalMedia }: AssistantOptions);
184
+ constructor({ assistantKey }: AssistantOptions);
152
185
  private handleConnectionStatusChange;
153
186
  private handleRemoteParticipantsTracksChange;
154
187
  joinRoom(roomUrl: string): Promise<_whereby_com_core.RoomJoinedSuccess>;
155
- startLocalMedia(): void;
156
- getLocalMediaStream(): MediaStream | null;
157
- getLocalAudioSource(): wrtc__default.nonstandard.RTCAudioSource | null;
158
188
  getRoomConnection(): RoomConnectionClient;
159
- getCombinedAudioStream(): MediaStream | null;
160
- getRemoteParticipants(): RemoteParticipantState[];
161
- startCloudRecording(): void;
162
- stopCloudRecording(): void;
163
- sendChatMessage(message: string): void;
164
- spotlightParticipant(participantId: string): void;
165
- removeSpotlight(participantId: string): void;
166
- requestAudioEnable(participantId: string, enable: boolean): void;
167
- requestVideoEnable(participantId: string, enable: boolean): void;
168
- acceptWaitingParticipant(participantId: string): void;
169
- rejectWaitingParticipant(participantId: string): void;
170
- subscribeToRemoteParticipants(callback: (participants: RemoteParticipantState[]) => void): () => void;
171
- subscribeToChatMessages(callback: (messages: ChatMessage[]) => void): () => void;
189
+ startLocalMedia(): void;
190
+ stopLocalMedia(): void;
191
+ getLocalAudioSource(): AudioSource | null;
192
+ getLocalVideoSource(): VideoSource | null;
193
+ getLocalMedia(): LocalMediaClient;
194
+ getCombinedAudioSink(): AudioSink | null;
172
195
  }
173
196
 
174
197
  interface TriggerOptions {
@@ -182,20 +205,5 @@ declare class Trigger extends EventEmitter$1<TriggerEvents> {
182
205
  start(): void;
183
206
  }
184
207
 
185
- declare class AudioSource extends PassThrough {
186
- constructor();
187
- }
188
- declare class AudioSink extends wrtc__default.nonstandard.RTCAudioSink {
189
- private _sink;
190
- constructor(track: MediaStreamTrack);
191
- subscribe(cb: (d: {
192
- samples: Int16Array;
193
- sampleRate: number;
194
- channelCount: number;
195
- bitsPerSample: number;
196
- numberOfFrames?: number;
197
- }) => void): () => void;
198
- }
199
-
200
- export { ASSISTANT_JOINED_ROOM, ASSISTANT_LEFT_ROOM, AUDIO_STREAM_READY, Assistant, AudioSink, AudioSource, PARTICIPANT_AUDIO_TRACK_ADDED, PARTICIPANT_AUDIO_TRACK_REMOVED, PARTICIPANT_VIDEO_TRACK_ADDED, PARTICIPANT_VIDEO_TRACK_REMOVED, TRIGGER_EVENT_SUCCESS, Trigger };
208
+ export { ASSISTANT_JOINED_ROOM, ASSISTANT_LEFT_ROOM, Assistant, AudioSink, AudioSource, PARTICIPANT_AUDIO_TRACK_ADDED, PARTICIPANT_AUDIO_TRACK_REMOVED, PARTICIPANT_VIDEO_TRACK_ADDED, PARTICIPANT_VIDEO_TRACK_REMOVED, TRIGGER_EVENT_SUCCESS, Trigger };
201
209
  export type { AssistantEvents };