@whereby.com/assistant-sdk 0.0.0-canary-20250912142319 → 0.0.0-canary-20250912144626

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,9 +1,41 @@
1
+ import * as wrtc from '@roamhq/wrtc';
2
+ import wrtc__default from '@roamhq/wrtc';
1
3
  import { RoomConnectionClient, RemoteParticipantState, ChatMessage } from '@whereby.com/core';
2
4
  export { RemoteParticipantState } from '@whereby.com/core';
3
- import wrtc from '@roamhq/wrtc';
4
5
  import EventEmitter, { EventEmitter as EventEmitter$1 } from 'events';
5
6
  import { PassThrough } from 'stream';
6
7
 
8
+ declare global {
9
+ interface MediaStream extends wrtc.MediaStream {
10
+ }
11
+ interface MediaStreamTrack extends wrtc.MediaStreamTrack {
12
+ }
13
+ interface RTCDataChannel extends wrtc.RTCDataChannel {
14
+ }
15
+ interface RTCDataChannelEvent extends wrtc.RTCDataChannelEvent {
16
+ }
17
+ interface RTCDtlsTransport extends wrtc.RTCDtlsTransport {
18
+ }
19
+ interface RTCIceCandidate extends wrtc.RTCIceCandidate {
20
+ }
21
+ interface RTCIceTransport extends wrtc.RTCIceTransport {
22
+ }
23
+ interface RTCPeerConnection extends wrtc.RTCPeerConnection {
24
+ }
25
+ interface RTCPeerConnectionIceEvent extends wrtc.RTCPeerConnectionIceEvent {
26
+ }
27
+ interface RTCRtpReceiver extends wrtc.RTCRtpReceiver {
28
+ }
29
+ interface RTCRtpSender extends wrtc.RTCRtpSender {
30
+ }
31
+ interface RTCRtpTransceiver extends wrtc.RTCRtpTransceiver {
32
+ }
33
+ interface RTCSctpTransport extends wrtc.RTCSctpTransport {
34
+ }
35
+ interface RTCSessionDescription extends wrtc.RTCSessionDescription {
36
+ }
37
+ }
38
+
7
39
  declare const AUDIO_STREAM_READY = "AUDIO_STREAM_READY";
8
40
  type AssistantEvents = {
9
41
  [AUDIO_STREAM_READY]: [{
@@ -29,7 +61,7 @@ declare class Assistant extends EventEmitter<AssistantEvents> {
29
61
  joinRoom(roomUrl: string): Promise<void>;
30
62
  startLocalMedia(): void;
31
63
  getLocalMediaStream(): MediaStream | null;
32
- getLocalAudioSource(): wrtc.nonstandard.RTCAudioSource | null;
64
+ getLocalAudioSource(): wrtc__default.nonstandard.RTCAudioSource | null;
33
65
  getRoomConnection(): RoomConnectionClient;
34
66
  getCombinedAudioStream(): MediaStream | null;
35
67
  getRemoteParticipants(): RemoteParticipantState[];
@@ -122,7 +154,7 @@ declare class Trigger extends EventEmitter$1<TriggerEvents> {
122
154
  declare class AudioSource extends PassThrough {
123
155
  constructor();
124
156
  }
125
- declare class AudioSink extends wrtc.nonstandard.RTCAudioSink {
157
+ declare class AudioSink extends wrtc__default.nonstandard.RTCAudioSink {
126
158
  private _sink;
127
159
  constructor(track: MediaStreamTrack);
128
160
  subscribe(cb: (d: {
package/dist/index.d.mts CHANGED
@@ -1,9 +1,41 @@
1
+ import * as wrtc from '@roamhq/wrtc';
2
+ import wrtc__default from '@roamhq/wrtc';
1
3
  import { RoomConnectionClient, RemoteParticipantState, ChatMessage } from '@whereby.com/core';
2
4
  export { RemoteParticipantState } from '@whereby.com/core';
3
- import wrtc from '@roamhq/wrtc';
4
5
  import EventEmitter, { EventEmitter as EventEmitter$1 } from 'events';
5
6
  import { PassThrough } from 'stream';
6
7
 
8
+ declare global {
9
+ interface MediaStream extends wrtc.MediaStream {
10
+ }
11
+ interface MediaStreamTrack extends wrtc.MediaStreamTrack {
12
+ }
13
+ interface RTCDataChannel extends wrtc.RTCDataChannel {
14
+ }
15
+ interface RTCDataChannelEvent extends wrtc.RTCDataChannelEvent {
16
+ }
17
+ interface RTCDtlsTransport extends wrtc.RTCDtlsTransport {
18
+ }
19
+ interface RTCIceCandidate extends wrtc.RTCIceCandidate {
20
+ }
21
+ interface RTCIceTransport extends wrtc.RTCIceTransport {
22
+ }
23
+ interface RTCPeerConnection extends wrtc.RTCPeerConnection {
24
+ }
25
+ interface RTCPeerConnectionIceEvent extends wrtc.RTCPeerConnectionIceEvent {
26
+ }
27
+ interface RTCRtpReceiver extends wrtc.RTCRtpReceiver {
28
+ }
29
+ interface RTCRtpSender extends wrtc.RTCRtpSender {
30
+ }
31
+ interface RTCRtpTransceiver extends wrtc.RTCRtpTransceiver {
32
+ }
33
+ interface RTCSctpTransport extends wrtc.RTCSctpTransport {
34
+ }
35
+ interface RTCSessionDescription extends wrtc.RTCSessionDescription {
36
+ }
37
+ }
38
+
7
39
  declare const AUDIO_STREAM_READY = "AUDIO_STREAM_READY";
8
40
  type AssistantEvents = {
9
41
  [AUDIO_STREAM_READY]: [{
@@ -29,7 +61,7 @@ declare class Assistant extends EventEmitter<AssistantEvents> {
29
61
  joinRoom(roomUrl: string): Promise<void>;
30
62
  startLocalMedia(): void;
31
63
  getLocalMediaStream(): MediaStream | null;
32
- getLocalAudioSource(): wrtc.nonstandard.RTCAudioSource | null;
64
+ getLocalAudioSource(): wrtc__default.nonstandard.RTCAudioSource | null;
33
65
  getRoomConnection(): RoomConnectionClient;
34
66
  getCombinedAudioStream(): MediaStream | null;
35
67
  getRemoteParticipants(): RemoteParticipantState[];
@@ -122,7 +154,7 @@ declare class Trigger extends EventEmitter$1<TriggerEvents> {
122
154
  declare class AudioSource extends PassThrough {
123
155
  constructor();
124
156
  }
125
- declare class AudioSink extends wrtc.nonstandard.RTCAudioSink {
157
+ declare class AudioSink extends wrtc__default.nonstandard.RTCAudioSink {
126
158
  private _sink;
127
159
  constructor(track: MediaStreamTrack);
128
160
  subscribe(cb: (d: {
package/dist/index.d.ts CHANGED
@@ -1,9 +1,41 @@
1
+ import * as wrtc from '@roamhq/wrtc';
2
+ import wrtc__default from '@roamhq/wrtc';
1
3
  import { RoomConnectionClient, RemoteParticipantState, ChatMessage } from '@whereby.com/core';
2
4
  export { RemoteParticipantState } from '@whereby.com/core';
3
- import wrtc from '@roamhq/wrtc';
4
5
  import EventEmitter, { EventEmitter as EventEmitter$1 } from 'events';
5
6
  import { PassThrough } from 'stream';
6
7
 
8
+ declare global {
9
+ interface MediaStream extends wrtc.MediaStream {
10
+ }
11
+ interface MediaStreamTrack extends wrtc.MediaStreamTrack {
12
+ }
13
+ interface RTCDataChannel extends wrtc.RTCDataChannel {
14
+ }
15
+ interface RTCDataChannelEvent extends wrtc.RTCDataChannelEvent {
16
+ }
17
+ interface RTCDtlsTransport extends wrtc.RTCDtlsTransport {
18
+ }
19
+ interface RTCIceCandidate extends wrtc.RTCIceCandidate {
20
+ }
21
+ interface RTCIceTransport extends wrtc.RTCIceTransport {
22
+ }
23
+ interface RTCPeerConnection extends wrtc.RTCPeerConnection {
24
+ }
25
+ interface RTCPeerConnectionIceEvent extends wrtc.RTCPeerConnectionIceEvent {
26
+ }
27
+ interface RTCRtpReceiver extends wrtc.RTCRtpReceiver {
28
+ }
29
+ interface RTCRtpSender extends wrtc.RTCRtpSender {
30
+ }
31
+ interface RTCRtpTransceiver extends wrtc.RTCRtpTransceiver {
32
+ }
33
+ interface RTCSctpTransport extends wrtc.RTCSctpTransport {
34
+ }
35
+ interface RTCSessionDescription extends wrtc.RTCSessionDescription {
36
+ }
37
+ }
38
+
7
39
  declare const AUDIO_STREAM_READY = "AUDIO_STREAM_READY";
8
40
  type AssistantEvents = {
9
41
  [AUDIO_STREAM_READY]: [{
@@ -29,7 +61,7 @@ declare class Assistant extends EventEmitter<AssistantEvents> {
29
61
  joinRoom(roomUrl: string): Promise<void>;
30
62
  startLocalMedia(): void;
31
63
  getLocalMediaStream(): MediaStream | null;
32
- getLocalAudioSource(): wrtc.nonstandard.RTCAudioSource | null;
64
+ getLocalAudioSource(): wrtc__default.nonstandard.RTCAudioSource | null;
33
65
  getRoomConnection(): RoomConnectionClient;
34
66
  getCombinedAudioStream(): MediaStream | null;
35
67
  getRemoteParticipants(): RemoteParticipantState[];
@@ -122,7 +154,7 @@ declare class Trigger extends EventEmitter$1<TriggerEvents> {
122
154
  declare class AudioSource extends PassThrough {
123
155
  constructor();
124
156
  }
125
- declare class AudioSink extends wrtc.nonstandard.RTCAudioSink {
157
+ declare class AudioSink extends wrtc__default.nonstandard.RTCAudioSink {
126
158
  private _sink;
127
159
  constructor(track: MediaStreamTrack);
128
160
  subscribe(cb: (d: {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@whereby.com/assistant-sdk",
3
3
  "description": "Assistant SDK for whereby.com",
4
4
  "author": "Whereby AS",
5
- "version": "0.0.0-canary-20250912142319",
5
+ "version": "0.0.0-canary-20250912144626",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "dist",
@@ -63,7 +63,7 @@
63
63
  "dotenv": "^16.4.5",
64
64
  "uuid": "^11.0.3",
65
65
  "ws": "^8.18.0",
66
- "@whereby.com/core": "0.0.0-canary-20250912142319"
66
+ "@whereby.com/core": "0.0.0-canary-20250912144626"
67
67
  },
68
68
  "prettier": "@whereby.com/prettier-config",
69
69
  "scripts": {