@axonkit/client-sdk-js 0.1.1 → 0.2.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.
package/dist/Room.d.ts CHANGED
@@ -4,7 +4,7 @@ import { RemoteParticipant } from './participant/RemoteParticipant';
4
4
  import { Participant } from './participant/Participant';
5
5
  import { LocalTrackPublication } from './participant/LocalTrackPublication';
6
6
  import type { RemoteTrackPublication } from './participant/RemoteTrackPublication';
7
- import { RoomState, DisconnectReason, StreamState, type RoomInfo, type ServerInfo, type GroupInfo, ConnectionQuality } from './protocol/types';
7
+ import { ConnectionState, DisconnectReason, StreamState, type ServerInfo, type GroupInfo, ConnectionQuality } from './protocol/types';
8
8
  import type { RoomOptions, RoomConnectOptions } from './room/options';
9
9
  import { Track } from './track/Track';
10
10
  import { RoomEvent } from './events';
@@ -14,12 +14,12 @@ export type RoomEvents = {
14
14
  [RoomEvent.Disconnected]: (reason?: DisconnectReason) => void;
15
15
  [RoomEvent.Reconnecting]: () => void;
16
16
  [RoomEvent.Reconnected]: () => void;
17
- [RoomEvent.ConnectionStateChanged]: (state: RoomState) => void;
17
+ [RoomEvent.ConnectionStateChanged]: (state: ConnectionState) => void;
18
18
  [RoomEvent.SignalReconnecting]: () => void;
19
19
  [RoomEvent.MediaDevicesChanged]: () => void;
20
20
  [RoomEvent.MediaDevicesError]: (error: Error) => void;
21
- [RoomEvent.ParticipantJoined]: (participant: RemoteParticipant) => void;
22
- [RoomEvent.ParticipantLeft]: (participant: RemoteParticipant, reason?: string) => void;
21
+ [RoomEvent.ParticipantConnected]: (participant: RemoteParticipant) => void;
22
+ [RoomEvent.ParticipantDisconnected]: (participant: RemoteParticipant, reason?: DisconnectReason) => void;
23
23
  [RoomEvent.ParticipantUpdated]: (participant: RemoteParticipant) => void;
24
24
  [RoomEvent.ParticipantMetadataChanged]: (prevMetadata: string | undefined, participant: Participant) => void;
25
25
  [RoomEvent.ParticipantNameChanged]: (name: string, participant: Participant) => void;
@@ -35,11 +35,15 @@ export type RoomEvents = {
35
35
  [RoomEvent.LocalTrackUnpublished]: (publication: LocalTrackPublication, participant: LocalParticipant) => void;
36
36
  [RoomEvent.LocalAudioSilenceDetected]: () => void;
37
37
  [RoomEvent.ActiveSpeakersChanged]: (speakers: Participant[]) => void;
38
- [RoomEvent.RoomUpdated]: (room: RoomInfo) => void;
39
- [RoomEvent.DataReceived]: (data: ArrayBuffer, participant?: RemoteParticipant) => void;
38
+ [RoomEvent.RoomMetadataChanged]: (metadata: string | undefined) => void;
39
+ [RoomEvent.DataReceived]: (payload: Uint8Array, participant?: RemoteParticipant) => void;
40
40
  [RoomEvent.ConnectionQualityChanged]: (quality: ConnectionQuality, participant: Participant) => void;
41
41
  [RoomEvent.AudioPlaybackStatusChanged]: (canPlayback: boolean) => void;
42
42
  [RoomEvent.VideoPlaybackStatusChanged]: (canPlayback: boolean) => void;
43
+ [RoomEvent.SignalConnected]: () => void;
44
+ [RoomEvent.ActiveDeviceChanged]: (kind: MediaDeviceKind, deviceId: string) => void;
45
+ [RoomEvent.RecordingStatusChanged]: (recording: boolean) => void;
46
+ [RoomEvent.ParticipantPermissionsChanged]: (prevPermissions: import('./protocol/types').ParticipantPermission | undefined, participant: Participant) => void;
43
47
  [RoomEvent.ChatMessage]: (message: Message, participant?: Participant) => void;
44
48
  [RoomEvent.MessageDeleted]: (ids: string[], type?: string) => void;
45
49
  [RoomEvent.StateUpdated]: (key: string, value: string, participantSid?: string, participantIdentity?: string) => void;
@@ -88,7 +92,7 @@ export declare class Room extends TypedEmitter<RoomEvents> {
88
92
  private _lastMessageTimestamp;
89
93
  private _connectOptions;
90
94
  constructor(options?: RoomOptions);
91
- get state(): RoomState;
95
+ get state(): ConnectionState;
92
96
  get name(): string;
93
97
  get sid(): string;
94
98
  get serverInfo(): ServerInfo | undefined;