@whereby.com/assistant-sdk 0.0.0-canary-20250908163456 → 0.0.0-canary-20250911141956

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.cjs CHANGED
@@ -404,10 +404,7 @@ class AudioMixer extends EventEmitter.EventEmitter {
404
404
  }
405
405
 
406
406
  class Assistant extends EventEmitter {
407
- constructor({ assistantKey, startCombinedAudioStream, startLocalMedia } = {
408
- startCombinedAudioStream: false,
409
- startLocalMedia: false,
410
- }) {
407
+ constructor({ assistantKey, startCombinedAudioStream = false, startLocalMedia = false }) {
411
408
  super();
412
409
  this.mediaStream = null;
413
410
  this.audioSource = null;
@@ -451,7 +448,6 @@ class Assistant extends EventEmitter {
451
448
  roomUrl,
452
449
  isNodeSdk: true,
453
450
  assistantKey: this.assistantKey,
454
- isAssistant: true,
455
451
  });
456
452
  this.roomConnection.joinRoom();
457
453
  });
package/dist/index.d.cts CHANGED
@@ -13,19 +13,19 @@ type AssistantEvents = {
13
13
  };
14
14
 
15
15
  type AssistantOptions = {
16
- assistantKey?: string;
17
- startCombinedAudioStream: boolean;
16
+ assistantKey: string;
17
+ startCombinedAudioStream?: boolean;
18
18
  startLocalMedia?: boolean;
19
19
  };
20
20
  declare class Assistant extends EventEmitter<AssistantEvents> {
21
- private assistantKey?;
21
+ private assistantKey;
22
22
  private client;
23
23
  private roomConnection;
24
24
  private localMedia;
25
25
  private mediaStream;
26
26
  private audioSource;
27
27
  private combinedStream;
28
- constructor({ assistantKey, startCombinedAudioStream, startLocalMedia }?: AssistantOptions);
28
+ constructor({ assistantKey, startCombinedAudioStream, startLocalMedia }: AssistantOptions);
29
29
  joinRoom(roomUrl: string): Promise<void>;
30
30
  startLocalMedia(): void;
31
31
  getLocalMediaStream(): MediaStream | null;
@@ -66,7 +66,7 @@ interface WherebyWebhookDataClient {
66
66
  metadata: string | null;
67
67
  externalId: string | null;
68
68
  }
69
- type WherebyRoleName = "owner" | "member" | "host" | "visitor" | "granted_visitor" | "viewer" | "granted_viewer" | "recorder" | "streamer" | "captioner";
69
+ type WherebyRoleName = "owner" | "member" | "host" | "visitor" | "granted_visitor" | "viewer" | "granted_viewer" | "recorder" | "streamer" | "captioner" | "assistant";
70
70
  interface WherebyWebhookDataClientJoinLeave {
71
71
  roleName: WherebyRoleName;
72
72
  numClients: number;
@@ -105,14 +105,14 @@ type WherebyWebhookTriggers = Partial<{
105
105
  interface TriggerOptions {
106
106
  webhookTriggers: WherebyWebhookTriggers;
107
107
  port?: number;
108
- assistantKey?: string;
108
+ assistantKey: string;
109
109
  startCombinedAudioStream?: boolean;
110
110
  startLocalMedia?: boolean;
111
111
  }
112
112
  declare class Trigger extends EventEmitter$1<TriggerEvents> {
113
113
  private webhookTriggers;
114
114
  private port;
115
- private assistantKey?;
115
+ private assistantKey;
116
116
  private startCombinedAudioStream;
117
117
  private startLocalMedia;
118
118
  constructor({ webhookTriggers, port, assistantKey, startCombinedAudioStream, startLocalMedia, }: TriggerOptions);
package/dist/index.d.mts CHANGED
@@ -13,19 +13,19 @@ type AssistantEvents = {
13
13
  };
14
14
 
15
15
  type AssistantOptions = {
16
- assistantKey?: string;
17
- startCombinedAudioStream: boolean;
16
+ assistantKey: string;
17
+ startCombinedAudioStream?: boolean;
18
18
  startLocalMedia?: boolean;
19
19
  };
20
20
  declare class Assistant extends EventEmitter<AssistantEvents> {
21
- private assistantKey?;
21
+ private assistantKey;
22
22
  private client;
23
23
  private roomConnection;
24
24
  private localMedia;
25
25
  private mediaStream;
26
26
  private audioSource;
27
27
  private combinedStream;
28
- constructor({ assistantKey, startCombinedAudioStream, startLocalMedia }?: AssistantOptions);
28
+ constructor({ assistantKey, startCombinedAudioStream, startLocalMedia }: AssistantOptions);
29
29
  joinRoom(roomUrl: string): Promise<void>;
30
30
  startLocalMedia(): void;
31
31
  getLocalMediaStream(): MediaStream | null;
@@ -66,7 +66,7 @@ interface WherebyWebhookDataClient {
66
66
  metadata: string | null;
67
67
  externalId: string | null;
68
68
  }
69
- type WherebyRoleName = "owner" | "member" | "host" | "visitor" | "granted_visitor" | "viewer" | "granted_viewer" | "recorder" | "streamer" | "captioner";
69
+ type WherebyRoleName = "owner" | "member" | "host" | "visitor" | "granted_visitor" | "viewer" | "granted_viewer" | "recorder" | "streamer" | "captioner" | "assistant";
70
70
  interface WherebyWebhookDataClientJoinLeave {
71
71
  roleName: WherebyRoleName;
72
72
  numClients: number;
@@ -105,14 +105,14 @@ type WherebyWebhookTriggers = Partial<{
105
105
  interface TriggerOptions {
106
106
  webhookTriggers: WherebyWebhookTriggers;
107
107
  port?: number;
108
- assistantKey?: string;
108
+ assistantKey: string;
109
109
  startCombinedAudioStream?: boolean;
110
110
  startLocalMedia?: boolean;
111
111
  }
112
112
  declare class Trigger extends EventEmitter$1<TriggerEvents> {
113
113
  private webhookTriggers;
114
114
  private port;
115
- private assistantKey?;
115
+ private assistantKey;
116
116
  private startCombinedAudioStream;
117
117
  private startLocalMedia;
118
118
  constructor({ webhookTriggers, port, assistantKey, startCombinedAudioStream, startLocalMedia, }: TriggerOptions);
package/dist/index.d.ts CHANGED
@@ -13,19 +13,19 @@ type AssistantEvents = {
13
13
  };
14
14
 
15
15
  type AssistantOptions = {
16
- assistantKey?: string;
17
- startCombinedAudioStream: boolean;
16
+ assistantKey: string;
17
+ startCombinedAudioStream?: boolean;
18
18
  startLocalMedia?: boolean;
19
19
  };
20
20
  declare class Assistant extends EventEmitter<AssistantEvents> {
21
- private assistantKey?;
21
+ private assistantKey;
22
22
  private client;
23
23
  private roomConnection;
24
24
  private localMedia;
25
25
  private mediaStream;
26
26
  private audioSource;
27
27
  private combinedStream;
28
- constructor({ assistantKey, startCombinedAudioStream, startLocalMedia }?: AssistantOptions);
28
+ constructor({ assistantKey, startCombinedAudioStream, startLocalMedia }: AssistantOptions);
29
29
  joinRoom(roomUrl: string): Promise<void>;
30
30
  startLocalMedia(): void;
31
31
  getLocalMediaStream(): MediaStream | null;
@@ -66,7 +66,7 @@ interface WherebyWebhookDataClient {
66
66
  metadata: string | null;
67
67
  externalId: string | null;
68
68
  }
69
- type WherebyRoleName = "owner" | "member" | "host" | "visitor" | "granted_visitor" | "viewer" | "granted_viewer" | "recorder" | "streamer" | "captioner";
69
+ type WherebyRoleName = "owner" | "member" | "host" | "visitor" | "granted_visitor" | "viewer" | "granted_viewer" | "recorder" | "streamer" | "captioner" | "assistant";
70
70
  interface WherebyWebhookDataClientJoinLeave {
71
71
  roleName: WherebyRoleName;
72
72
  numClients: number;
@@ -105,14 +105,14 @@ type WherebyWebhookTriggers = Partial<{
105
105
  interface TriggerOptions {
106
106
  webhookTriggers: WherebyWebhookTriggers;
107
107
  port?: number;
108
- assistantKey?: string;
108
+ assistantKey: string;
109
109
  startCombinedAudioStream?: boolean;
110
110
  startLocalMedia?: boolean;
111
111
  }
112
112
  declare class Trigger extends EventEmitter$1<TriggerEvents> {
113
113
  private webhookTriggers;
114
114
  private port;
115
- private assistantKey?;
115
+ private assistantKey;
116
116
  private startCombinedAudioStream;
117
117
  private startLocalMedia;
118
118
  constructor({ webhookTriggers, port, assistantKey, startCombinedAudioStream, startLocalMedia, }: TriggerOptions);
package/dist/index.mjs CHANGED
@@ -402,10 +402,7 @@ class AudioMixer extends EventEmitter {
402
402
  }
403
403
 
404
404
  class Assistant extends EventEmitter$1 {
405
- constructor({ assistantKey, startCombinedAudioStream, startLocalMedia } = {
406
- startCombinedAudioStream: false,
407
- startLocalMedia: false,
408
- }) {
405
+ constructor({ assistantKey, startCombinedAudioStream = false, startLocalMedia = false }) {
409
406
  super();
410
407
  this.mediaStream = null;
411
408
  this.audioSource = null;
@@ -449,7 +446,6 @@ class Assistant extends EventEmitter$1 {
449
446
  roomUrl,
450
447
  isNodeSdk: true,
451
448
  assistantKey: this.assistantKey,
452
- isAssistant: true,
453
449
  });
454
450
  this.roomConnection.joinRoom();
455
451
  });
@@ -402,10 +402,7 @@ class AudioMixer extends EventEmitter {
402
402
  }
403
403
 
404
404
  class Assistant extends EventEmitter$1 {
405
- constructor({ assistantKey, startCombinedAudioStream, startLocalMedia } = {
406
- startCombinedAudioStream: false,
407
- startLocalMedia: false,
408
- }) {
405
+ constructor({ assistantKey, startCombinedAudioStream = false, startLocalMedia = false }) {
409
406
  super();
410
407
  this.mediaStream = null;
411
408
  this.audioSource = null;
@@ -449,7 +446,6 @@ class Assistant extends EventEmitter$1 {
449
446
  roomUrl,
450
447
  isNodeSdk: true,
451
448
  assistantKey: this.assistantKey,
452
- isAssistant: true,
453
449
  });
454
450
  this.roomConnection.joinRoom();
455
451
  });
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-20250908163456",
5
+ "version": "0.0.0-canary-20250911141956",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "dist",
@@ -60,7 +60,7 @@
60
60
  "@roamhq/wrtc": "github:whereby/node-webrtc#patch/rtc_audio_source",
61
61
  "uuid": "^11.0.3",
62
62
  "ws": "^8.18.0",
63
- "@whereby.com/core": "0.0.0-canary-20250908163456"
63
+ "@whereby.com/core": "0.0.0-canary-20250911141956"
64
64
  },
65
65
  "prettier": "@whereby.com/prettier-config",
66
66
  "scripts": {