livekit-client 2.3.2 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/dist/livekit-client.e2ee.worker.js +1 -1
  2. package/dist/livekit-client.e2ee.worker.js.map +1 -1
  3. package/dist/livekit-client.e2ee.worker.mjs +8 -6
  4. package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
  5. package/dist/livekit-client.esm.mjs +268 -45
  6. package/dist/livekit-client.esm.mjs.map +1 -1
  7. package/dist/livekit-client.umd.js +1 -1
  8. package/dist/livekit-client.umd.js.map +1 -1
  9. package/dist/src/api/SignalClient.d.ts +5 -2
  10. package/dist/src/api/SignalClient.d.ts.map +1 -1
  11. package/dist/src/connectionHelper/checks/reconnect.d.ts.map +1 -1
  12. package/dist/src/e2ee/errors.d.ts +2 -1
  13. package/dist/src/e2ee/errors.d.ts.map +1 -1
  14. package/dist/src/e2ee/index.d.ts +1 -0
  15. package/dist/src/e2ee/index.d.ts.map +1 -1
  16. package/dist/src/e2ee/worker/FrameCryptor.d.ts.map +1 -1
  17. package/dist/src/logger.d.ts.map +1 -1
  18. package/dist/src/room/RTCEngine.d.ts +2 -1
  19. package/dist/src/room/RTCEngine.d.ts.map +1 -1
  20. package/dist/src/room/Room.d.ts +2 -0
  21. package/dist/src/room/Room.d.ts.map +1 -1
  22. package/dist/src/room/errors.d.ts +5 -0
  23. package/dist/src/room/errors.d.ts.map +1 -1
  24. package/dist/src/room/events.d.ts +15 -2
  25. package/dist/src/room/events.d.ts.map +1 -1
  26. package/dist/src/room/participant/LocalParticipant.d.ts +14 -6
  27. package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
  28. package/dist/src/room/participant/Participant.d.ts +8 -0
  29. package/dist/src/room/participant/Participant.d.ts.map +1 -1
  30. package/dist/src/room/timers.d.ts +4 -4
  31. package/dist/src/room/timers.d.ts.map +1 -1
  32. package/dist/src/room/track/utils.d.ts +1 -0
  33. package/dist/src/room/track/utils.d.ts.map +1 -1
  34. package/dist/ts4.2/src/api/SignalClient.d.ts +5 -2
  35. package/dist/ts4.2/src/e2ee/errors.d.ts +2 -1
  36. package/dist/ts4.2/src/e2ee/index.d.ts +1 -0
  37. package/dist/ts4.2/src/room/RTCEngine.d.ts +2 -1
  38. package/dist/ts4.2/src/room/Room.d.ts +2 -0
  39. package/dist/ts4.2/src/room/errors.d.ts +5 -0
  40. package/dist/ts4.2/src/room/events.d.ts +15 -2
  41. package/dist/ts4.2/src/room/participant/LocalParticipant.d.ts +14 -6
  42. package/dist/ts4.2/src/room/participant/Participant.d.ts +8 -0
  43. package/dist/ts4.2/src/room/timers.d.ts +4 -4
  44. package/dist/ts4.2/src/room/track/utils.d.ts +1 -0
  45. package/package.json +2 -2
  46. package/src/api/SignalClient.ts +24 -2
  47. package/src/connectionHelper/checks/reconnect.ts +6 -3
  48. package/src/e2ee/errors.ts +8 -1
  49. package/src/e2ee/index.ts +1 -0
  50. package/src/e2ee/worker/FrameCryptor.ts +15 -3
  51. package/src/logger.ts +4 -3
  52. package/src/room/DeviceManager.ts +1 -1
  53. package/src/room/RTCEngine.ts +3 -0
  54. package/src/room/Room.ts +25 -3
  55. package/src/room/errors.ts +11 -0
  56. package/src/room/events.ts +15 -0
  57. package/src/room/participant/LocalParticipant.ts +92 -10
  58. package/src/room/participant/Participant.ts +23 -0
  59. package/src/room/track/utils.test.ts +35 -1
  60. package/src/room/track/utils.ts +22 -0
@@ -1,4 +1,4 @@
1
- import { AddTrackRequest, AudioTrackFeature, ConnectionQualityUpdate, JoinResponse, LeaveRequest, ParticipantInfo, ReconnectReason, ReconnectResponse, Room, SessionDescription, SignalRequest, SignalTarget, SimulateScenario, SpeakerInfo, StreamStateUpdate, SubscribedQualityUpdate, SubscriptionPermissionUpdate, SubscriptionResponse, SyncState, TrackPermission, TrackPublishedResponse, TrackUnpublishedResponse, UpdateSubscription, UpdateTrackSettings, VideoLayer } from '@livekit/protocol';
1
+ import { AddTrackRequest, AudioTrackFeature, ConnectionQualityUpdate, ErrorResponse, JoinResponse, LeaveRequest, ParticipantInfo, ReconnectReason, ReconnectResponse, Room, SessionDescription, SignalRequest, SignalTarget, SimulateScenario, SpeakerInfo, StreamStateUpdate, SubscribedQualityUpdate, SubscriptionPermissionUpdate, SubscriptionResponse, SyncState, TrackPermission, TrackPublishedResponse, TrackUnpublishedResponse, UpdateSubscription, UpdateTrackSettings, VideoLayer } from '@livekit/protocol';
2
2
  import type { LoggerOptions } from '../room/types';
3
3
  import { AsyncQueue } from '../utils/AsyncQueue';
4
4
  interface ConnectOpts extends SignalOptions {
@@ -51,11 +51,13 @@ export declare class SignalClient {
51
51
  onLocalTrackUnpublished?: (res: TrackUnpublishedResponse) => void;
52
52
  onTokenRefresh?: (token: string) => void;
53
53
  onLeave?: (leave: LeaveRequest) => void;
54
+ onErrorResponse?: (error: ErrorResponse) => void;
54
55
  connectOptions?: ConnectOpts;
55
56
  ws?: WebSocket;
56
57
  get currentState(): SignalConnectionState;
57
58
  get isDisconnected(): boolean;
58
59
  private get isEstablishingConnection();
60
+ private getNextRequestId;
59
61
  private options?;
60
62
  private pingTimeout;
61
63
  private pingTimeoutDuration;
@@ -66,6 +68,7 @@ export declare class SignalClient {
66
68
  private connectionLock;
67
69
  private log;
68
70
  private loggerContextCb?;
71
+ private _requestId;
69
72
  constructor(useJSON?: boolean, loggerOptions?: LoggerOptions);
70
73
  private get logContext();
71
74
  join(url: string, token: string, opts: SignalOptions, abortSignal?: AbortSignal): Promise<JoinResponse>;
@@ -79,7 +82,7 @@ export declare class SignalClient {
79
82
  sendIceCandidate(candidate: RTCIceCandidateInit, target: SignalTarget): Promise<void>;
80
83
  sendMuteTrack(trackSid: string, muted: boolean): Promise<void>;
81
84
  sendAddTrack(req: AddTrackRequest): Promise<void>;
82
- sendUpdateLocalMetadata(metadata: string, name: string): Promise<void>;
85
+ sendUpdateLocalMetadata(metadata: string, name: string, attributes?: Record<string, string>): Promise<number>;
83
86
  sendUpdateTrackSettings(settings: UpdateTrackSettings): void;
84
87
  sendUpdateSubscription(sub: UpdateSubscription): Promise<void>;
85
88
  sendSyncState(sync: SyncState): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"SignalClient.d.ts","sourceRoot":"","sources":["../../../src/api/SignalClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,iBAAiB,EAEjB,uBAAuB,EAEvB,YAAY,EACZ,YAAY,EAGZ,eAAe,EAEf,eAAe,EACf,iBAAiB,EACjB,IAAI,EACJ,kBAAkB,EAClB,aAAa,EAEb,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,uBAAuB,EAEvB,4BAA4B,EAC5B,oBAAoB,EACpB,SAAS,EACT,eAAe,EACf,sBAAsB,EACtB,wBAAwB,EAIxB,kBAAkB,EAClB,mBAAmB,EAEnB,UAAU,EAEX,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,UAAU,WAAY,SAAQ,aAAa;IACzC,eAAe;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAGD,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,KAAK,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;AAmB9C,oBAAY,qBAAqB;IAC/B,UAAU,IAAA;IACV,SAAS,IAAA;IACT,YAAY,IAAA;IACZ,aAAa,IAAA;IACb,YAAY,IAAA;CACb;AAED,gBAAgB;AAChB,qBAAa,YAAY;IACvB,YAAY,EAAE,UAAU,CAAC;I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E,MAAM,WAAW,CAAC;AAEpC,qBAAa,cAAe,SAAQ,OAAO;IACzC,IAAI,WAAW,IAAI,MAAM,CAExB;IAEK,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAmC/B"}
1
+ {"version":3,"file":"reconnect.d.ts","sourceRoot":"","sources":["../../../../src/connectionHelper/checks/reconnect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,qBAAa,cAAe,SAAQ,OAAO;IACzC,IAAI,WAAW,IAAI,MAAM,CAExB;IAEK,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAsC/B"}
@@ -6,6 +6,7 @@ export declare enum CryptorErrorReason {
6
6
  }
7
7
  export declare class CryptorError extends LivekitError {
8
8
  reason: CryptorErrorReason;
9
- constructor(message?: string, reason?: CryptorErrorReason);
9
+ participantIdentity?: string;
10
+ constructor(message?: string, reason?: CryptorErrorReason, participantIdentity?: string);
10
11
  }
11
12
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/e2ee/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,oBAAY,kBAAkB;IAC5B,UAAU,IAAI;IACd,UAAU,IAAI;IACd,aAAa,IAAI;CAClB;AAED,qBAAa,YAAa,SAAQ,YAAY;IAC5C,MAAM,EAAE,kBAAkB,CAAC;gBAEf,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,GAAE,kBAAqD;CAI5F"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/e2ee/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,oBAAY,kBAAkB;IAC5B,UAAU,IAAI;IACd,UAAU,IAAI;IACd,aAAa,IAAI;CAClB;AAED,qBAAa,YAAa,SAAQ,YAAY;IAC5C,MAAM,EAAE,kBAAkB,CAAC;IAE3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;gBAG3B,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,GAAE,kBAAqD,EAC7D,mBAAmB,CAAC,EAAE,MAAM;CAM/B"}
@@ -2,4 +2,5 @@ export * from './KeyProvider';
2
2
  export * from './utils';
3
3
  export * from './types';
4
4
  export * from './events';
5
+ export * from './errors';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/e2ee/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/e2ee/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FrameCryptor.d.ts","sourceRoot":"","sources":["../../../../src/e2ee/worker/FrameCryptor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AAEnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAG3D,OAAO,EAAE,gBAAgB,EAAgB,MAAM,WAAW,CAAC;AAC3D,OAAO,KAAK,EAAwB,kBAAkB,EAAU,MAAM,UAAU,CAAC;AAEjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGrE,eAAO,MAAM,oBAAoB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAa,CAAC;AAEpE,MAAM,WAAW,uBAAuB;IACtC,KAAK,IAAI,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAAC;CACxC;AAED,MA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E,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,eAAe,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,YAAY,KAAK,IAAI,CAAC;IACnD,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,YAAY,KAAK,IAAI,CAAC;IAC5C,QAAQ,EAAE,MAAM,MAAM,CAAC;CACxB,CAAC;wBAO8B,gBAAgB;AAAhD,wBAAiD;AAEjD;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAGnB,gBAAgB,CAClC;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,CAAC,EAAE,WAAW,QAQrF;AAED,MAAM,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;AAEpF;;;GAGG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,gBAAgB,QAsBjF;AAED,eAAO,MAAM,YAAY,EAA+B,gBAAgB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type AddTrackRequest, type ConnectionQualityUpdate, DataPacket, DataPacket_Kind, DisconnectReason, type JoinResponse, ParticipantInfo, Room as RoomModel, SpeakerInfo, type StreamStateUpdate, SubscribedQualityUpdate, type SubscriptionPermissionUpdate, type SubscriptionResponse, TrackInfo, TrackUnpublishedResponse, Transcription } from '@livekit/protocol';
1
+ import { type AddTrackRequest, type ConnectionQualityUpdate, DataPacket, DataPacket_Kind, DisconnectReason, ErrorResponse, type JoinResponse, ParticipantInfo, Room as RoomModel, SpeakerInfo, type StreamStateUpdate, SubscribedQualityUpdate, type SubscriptionPermissionUpdate, type SubscriptionResponse, TrackInfo, TrackUnpublishedResponse, Transcription } from '@livekit/protocol';
2
2
  import type TypedEventEmitter from 'typed-emitter';
3
3
  import type { SignalOptions } from '../api/SignalClient';
4
4
  import { SignalClient } from '../api/SignalClient';
@@ -155,6 +155,7 @@ export type EngineEventCallbacks = {
155
155
  localTrackUnpublished: (unpublishedResponse: TrackUnpublishedResponse) => void;
156
156
  remoteMute: (trackSid: string, muted: boolean) => void;
157
157
  offline: () => void;
158
+ signalRequestError: (error: ErrorResponse) => void;
158
159
  };
159
160
  export {};
160
161
  //# sourceMappingURL=RTCEngine.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RTCEngine.d.ts","sourceRoot":"","sources":["../../../src/room/RTCEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EAGpB,KAAK,uBAAuB,EAE5B,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,KAAK,YAAY,EAGjB,eAAe,EAGf,IAAI,IAAI,SAAS,EAEjB,WAAW,EACX,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EAEzB,SAAS,EAET,wBAAwB,EACxB,aAAa,EAGd,MAAM,mBAAmB,CAAC;AAG3B,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EACL,YAAY,EAGb,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,WAAyB,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAoB,MAAM,sBAAsB,CAAC;AAE5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAW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;IAC7E,gBAAgB;IAChB,gBAAgB,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC/D,iBAAiB,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAC7D,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IACvE,iBAAiB,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;IACtD,UAAU,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACtC,uBAAuB,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACnE,eAAe,EAAE,CAAC,cAAc,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IACzD,kBAAkB,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACxD,iBAAiB,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACxD,4BAA4B,EAAE,CAAC,MAAM,EAAE,4BAA4B,KAAK,IAAI,CAAC;IAC7E,uBAAuB,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACnE,qBAAqB,EAAE,CAAC,mBAAmB,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAC/E,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACvD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;CACpD,CAAC"}
@@ -204,6 +204,7 @@ declare class Room extends Room_base {
204
204
  private emitWhenConnected;
205
205
  private onLocalParticipantMetadataChanged;
206
206
  private onLocalParticipantNameChanged;
207
+ private onLocalAttributesChanged;
207
208
  private onLocalTrackMuted;
208
209
  private onLocalTrackUnmuted;
209
210
  private onTrackProcessorUpdate;
@@ -244,6 +245,7 @@ export type RoomEventCallbacks = {
244
245
  participantMetadataChanged: (metadata: string | undefined, participant: RemoteParticipant | LocalParticipant) => void;
245
246
  participantNameChanged: (name: string, participant: RemoteParticipant | LocalParticipant) => void;
246
247
  participantPermissionsChanged: (prevPermissions: ParticipantPermission | undefined, participant: RemoteParticipant | LocalParticipant) => void;
248
+ participantAttributesChanged: (changedAttributes: Record<string, string>, participant: RemoteParticipant | LocalParticipant) => void;
247
249
  activeSpeakersChanged: (speakers: Array<Participant>) => void;
248
250
  roomMetadataChanged: (metadata: string) => void;
249
251
  dataReceived: (payload: Uint8Array, participant?: RemoteParticipant, kind?: DataPacket_Kind, topic?: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../src/room/Room.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EACf,gBAAgB,EAMhB,qBAAqB,EAIrB,OAAO,EAGP,iBAAiB,EAOjB,oBAAoB,IAAI,yBAAyB,EAGlD,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,gBAAgB,CAAC;AAIxB,OAAO,KAAK,EAEV,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACZ,MAAM,YAAY,CAAC;AAGpB,OAAO,SAAS,MAAM,aAAa,CAAC;AAWpC,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAC9D,OAAO,KAAK,WAAW,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;AAGhE,OAAO,qBAAqB,MAAM,+BAA+B,CAAC;AAElE,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,sBAAsB,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MA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CAAkC,EAAE,CAClC,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,gBAAgB,CAAC,gBAAgB,EACzC,WAAW,EAAE,iBAAiB,KAC3B,IAAI,CAAC;IACV,8BAA8B,EAAE,CAC9B,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,gBAAgB,CAAC,kBAAkB,EAC3C,WAAW,EAAE,iBAAiB,KAC3B,IAAI,CAAC;IACV,oBAAoB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,oBAAoB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,sBAAsB,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACrD,kCAAkC,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5F,eAAe,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACxC,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IACvE,mBAAmB,EAAE,CAAC,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACxE,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { ErrorResponse_Reason } from '@livekit/protocol';
1
2
  export declare class LivekitError extends Error {
2
3
  code: number;
3
4
  constructor(code: number, message?: string);
@@ -32,6 +33,10 @@ export declare class NegotiationError extends LivekitError {
32
33
  export declare class PublishDataError extends LivekitError {
33
34
  constructor(message?: string);
34
35
  }
36
+ export declare class SignalRequestError extends LivekitError {
37
+ reason: ErrorResponse_Reason;
38
+ constructor(message: string, reason?: ErrorResponse_Reason);
39
+ }
35
40
  export declare enum MediaDeviceFailure {
36
41
  PermissionDenied = "PermissionDenied",
37
42
  NotFound = "NotFound",
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/room/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAa,SAAQ,KAAK;IACrC,IAAI,EAAE,MAAM,CAAC;gBAED,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAI3C;AAED,0BAAkB,qBAAqB;IACrC,UAAU,IAAA;IACV,iBAAiB,IAAA;IACjB,aAAa,IAAA;IACb,SAAS,IAAA;IACT,YAAY,IAAA;CACb;AAED,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,qBAAqB,CAAC;gBAEnB,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,qBAAqB,EAAE,MAAM,CAAC,EAAE,MAAM;CAK9E;AAED,qBAAa,sBAAuB,SAAQ,YAAY;gBAC1C,OAAO,CAAC,EAAE,MAAM;CAG7B;AAED,qBAAa,iBAAkB,SAAQ,YAAY;gBACrC,OAAO,CAAC,EAAE,MAAM;CAG7B;AAED,qBAAa,iBAAkB,SAAQ,YAAY;gBACrC,OAAO,CAAC,EAAE,MAAM;CAG7B;AAED,qBAAa,yBAA0B,SAAQ,YAAY;gBAC7C,OAAO,CAAC,EAAE,MAAM;CAG7B;AAED,qBAAa,gBAAiB,SAAQ,YAAY;gBACpC,OAAO,CAAC,EAAE,MAAM;CAG7B;AAED,qBAAa,gBAAiB,SAAQ,YAAY;gBACpC,OAAO,CAAC,EAAE,MAAM;CAG7B;AAED,oBAAY,kBAAkB;IAE5B,gBAAgB,qBAAqB;IAErC,QAAQ,aAAa;IAErB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;CAChB;AAED,yBAAiB,kBAAkB,CAAC;IAClC,SAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,kBAAkB,GAAG,SAAS,CAarE;CACF"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/room/errors.ts"],"names":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,CAAC,KAAK,EAAE,GAAG,GAAG,kBAAkB,GAAG,SAAS,CAarE;CACF"}
@@ -162,6 +162,12 @@ export declare enum RoomEvent {
162
162
  *
163
163
  */
164
164
  ParticipantNameChanged = "participantNameChanged",
165
+ /**
166
+ * Participant attributes is an app-specific key value state to be pushed to
167
+ * all users.
168
+ * When a participant's attributes changed, this event will be emitted with the changed attributes and the participant
169
+ */
170
+ ParticipantAttributesChanged = "participantAttributesChanged",
165
171
  /**
166
172
  * Room metadata is a simple way for app-specific state to be pushed to
167
173
  * all users.
@@ -430,7 +436,13 @@ export declare enum ParticipantEvent {
430
436
  */
431
437
  ParticipantPermissionsChanged = "participantPermissionsChanged",
432
438
  /** @internal */
433
- PCTrackAdded = "pcTrackAdded"
439
+ PCTrackAdded = "pcTrackAdded",
440
+ /**
441
+ * Participant attributes is an app-specific key value state to be pushed to
442
+ * all users.
443
+ * When a participant's attributes changed, this event will be emitted with the changed attributes
444
+ */
445
+ AttributesChanged = "attributesChanged"
434
446
  }
435
447
  /** @internal */
436
448
  export declare enum EngineEvent {
@@ -459,7 +471,8 @@ export declare enum EngineEvent {
459
471
  RemoteMute = "remoteMute",
460
472
  SubscribedQualityUpdate = "subscribedQualityUpdate",
461
473
  LocalTrackUnpublished = "localTrackUnpublished",
462
- Offline = "offline"
474
+ Offline = "offline",
475
+ SignalRequestError = "signalRequestError"
463
476
  }
464
477
  export declare enum TrackEvent {
465
478
  Message = "message",
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/room/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,oBAAY,SAAS;IACnB;;OAEG;IACH,SAAS,cAAc;IAEvB;;;OAGG;IACH,YAAY,iBAAiB;IAE7B;;;;OAIG;IACH,kBAAkB,uBAAuB;IAEzC;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;;;;;;;;;OAUG;IACH,YAAY,iBAAiB;IAE7B;;;;OAIG;IACH,sBAAsB,2BAA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B,yBAAyB;IAC7C,gBAAgB;IAChB,mBAAmB,wBAAwB;IAC3C,gBAAgB;IAChB,eAAe,oBAAoB;IACnC,gBAAgB;IAChB,eAAe,oBAAoB;IACnC;;;OAGG;IACH,cAAc,mBAAmB;IACjC;;;OAGG;IACH,eAAe,oBAAoB;IACnC;;;OAGG;IACH,6BAA6B,kCAAkC;IAC/D;;OAEG;IACH,yBAAyB,8BAA8B;IACvD;;OAEG;IACH,kBAAkB,uBAAuB;IACzC;;OAEG;IACH,oBAAoB,yBAAyB;IAE7C;;OAEG;IACH,uBAAuB,4BAA4B;IAEnD;;OAEG;IACH,qBAAqB,0BAA0B;IAE/C;;OAEG;IACH,cAAc,mBAAmB;CAClC"}
@@ -26,6 +26,7 @@ export default class LocalParticipant extends Participant {
26
26
  private roomOptions;
27
27
  private encryptionType;
28
28
  private reconnectFuture?;
29
+ private pendingSignalRequests;
29
30
  /** @internal */
30
31
  constructor(sid: string, identity: string, engine: RTCEngine, options: InternalRoomOptions);
31
32
  get lastCameraError(): Error | undefined;
@@ -40,22 +41,29 @@ export default class LocalParticipant extends Participant {
40
41
  private handleReconnecting;
41
42
  private handleReconnected;
42
43
  private handleDisconnected;
44
+ private handleSignalRequestError;
43
45
  /**
44
46
  * Sets and updates the metadata of the local participant.
45
- * The change does not take immediate effect.
46
- * If successful, a `ParticipantEvent.MetadataChanged` event will be emitted on the local participant.
47
47
  * Note: this requires `canUpdateOwnMetadata` permission.
48
+ * method will throw if the user doesn't have the required permissions
48
49
  * @param metadata
49
50
  */
50
- setMetadata(metadata: string): void;
51
+ setMetadata(metadata: string): Promise<void>;
51
52
  /**
52
53
  * Sets and updates the name of the local participant.
53
- * The change does not take immediate effect.
54
- * If successful, a `ParticipantEvent.ParticipantNameChanged` event will be emitted on the local participant.
55
54
  * Note: this requires `canUpdateOwnMetadata` permission.
55
+ * method will throw if the user doesn't have the required permissions
56
56
  * @param metadata
57
57
  */
58
- setName(name: string): void;
58
+ setName(name: string): Promise<void>;
59
+ /**
60
+ * Set or update participant attributes. It will make updates only to keys that
61
+ * are present in `attributes`, and will not override others.
62
+ * Note: this requires `canUpdateOwnMetadata` permission.
63
+ * @param attributes attributes to update
64
+ */
65
+ setAttributes(attributes: Record<string, string>): Promise<void>;
66
+ private requestMetadataUpdate;
59
67
  /**
60
68
  * Enable or disable a participant's camera track.
61
69
  *
@@ -1 +1 @@
1
- {"version":3,"file":"LocalParticipant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/LocalParticipant.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,eAAe,EACf,qBAAqB,EAKtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAK1C,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,qBAAqB,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAU1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAWnD,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAS/E,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACvD,sBAAsB,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAE3D,sBAAsB,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAE3D,+CAA+C;IAC/C,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAEtD,gBAAgB;IAChB,MAAM,EAAE,SAAS,CAAC;IAElB,gBAA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C,sBAAsB,CAM5B;IAEF,OAAO,CAAC,oBAAoB,CAU1B;IAEF,OAAO,CAAC,6BAA6B,CA6BnC;IAEF,OAAO,CAAC,2BAA2B,CAUjC;IAEF,OAAO,CAAC,gBAAgB,CAyDtB;IAEF,OAAO,CAAC,sBAAsB;CAuB/B"}
@@ -38,6 +38,7 @@ export default class Participant extends Participant_base {
38
38
  name?: string;
39
39
  /** client metadata, opaque to livekit */
40
40
  metadata?: string;
41
+ private _attributes;
41
42
  lastSpokeAt?: Date | undefined;
42
43
  permissions?: ParticipantPermission;
43
44
  protected _kind: ParticipantKind;
@@ -51,6 +52,8 @@ export default class Participant extends Participant_base {
51
52
  get isEncrypted(): boolean;
52
53
  get isAgent(): boolean;
53
54
  get kind(): ParticipantKind;
55
+ /** participant attributes, similar to metadata, but as a key/value map */
56
+ get attributes(): Readonly<Record<string, string>>;
54
57
  /** @internal */
55
58
  constructor(sid: string, identity: string, name?: string, metadata?: string, loggerOptions?: LoggerOptions, kind?: ParticipantKind);
56
59
  getTrackPublications(): TrackPublication[];
@@ -77,6 +80,10 @@ export default class Participant extends Participant_base {
77
80
  **/
78
81
  private _setMetadata;
79
82
  private _setName;
83
+ /**
84
+ * Updates metadata from server
85
+ **/
86
+ private _setAttributes;
80
87
  /** @internal */
81
88
  setPermissions(permissions: ParticipantPermission): boolean;
82
89
  /** @internal */
@@ -112,5 +119,6 @@ export type ParticipantEventCallbacks = {
112
119
  audioStreamAcquired: () => void;
113
120
  participantPermissionsChanged: (prevPermissions?: ParticipantPermission) => void;
114
121
  trackSubscriptionStatusChanged: (publication: RemoteTrackPublication, status: TrackPublication.SubscriptionStatus) => void;
122
+ attributesChanged: (changedAttributes: Record<string, string>) => void;
115
123
  };
116
124
  //# sourceMappingURL=Participant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Participant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/Participant.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf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,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,qBAAqB,EAAE,CACrB,aAAa,EAAE,oBAAoB,EAAE,EACrC,WAAW,CAAC,EAAE,gBAAgB,KAC3B,IAAI,CAAC;IACV,iBAAiB,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,wBAAwB,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACzE,uBAAuB,EAAE,CACvB,WAAW,EAAE,sBAAsB,EACnC,WAAW,EAAE,KAAK,CAAC,WAAW,KAC3B,IAAI,CAAC;IACV,kCAAkC,EAAE,CAClC,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,gBAAgB,CAAC,gBAAgB,KACtC,IAAI,CAAC;IACV,iBAAiB,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1C,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,6BAA6B,EAAE,CAAC,eAAe,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjF,8BAA8B,EAAE,CAC9B,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,gBAAgB,CAAC,kBAAkB,KACxC,IAAI,CAAC;IACV,iBAAiB,EAAE,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;CACxE,CAAC"}
@@ -4,9 +4,9 @@
4
4
  * that the timer fires on time.
5
5
  */
6
6
  export default class CriticalTimers {
7
- static setTimeout: (handler: TimerHandler, timeout?: number | undefined, ...arguments: any[]) => number;
8
- static setInterval: (handler: TimerHandler, timeout?: number | undefined, ...arguments: any[]) => number;
9
- static clearTimeout: (id: number | undefined) => void;
10
- static clearInterval: (id: number | undefined) => void;
7
+ static setTimeout: (callback: (args: void) => void, ms?: number | undefined) => NodeJS.Timeout;
8
+ static setInterval: (callback: (args: void) => void, ms?: number | undefined) => NodeJS.Timeout;
9
+ static clearTimeout: (timeoutId: string | number | NodeJS.Timeout | undefined) => void;
10
+ static clearInterval: (intervalId: string | number | NodeJS.Timeout | undefined) => void;
11
11
  }
12
12
  //# sourceMappingURL=timers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"timers.d.ts","sourceRoot":"","sources":["../../../src/room/timers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,cAAc;IAEjC,MAAM,CAAC,UAAU,uFAAmE;IAGpF,MAAM,CAAC,WAAW,uFAAqE;IAEvF,MAAM,CAAC,YAAY,mCAAuE;IAE1F,MAAM,CAAC,aAAa,mCAAyE;CAC9F"}
1
+ {"version":3,"file":"timers.d.ts","sourceRoot":"","sources":["../../../src/room/timers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,cAAc;IAEjC,MAAM,CAAC,UAAU,8EAAmE;IAGpF,MAAM,CAAC,WAAW,8EAAqE;IAEvF,MAAM,CAAC,YAAY,oEAAuE;IAE1F,MAAM,CAAC,aAAa,qEAAyE;CAC9F"}
@@ -30,4 +30,5 @@ export declare function mimeTypeToVideoCodecString(mimeType: string): "vp8" | "h
30
30
  export declare function getTrackPublicationInfo<T extends TrackPublication>(tracks: T[]): TrackPublishedResponse[];
31
31
  export declare function getLogContextFromTrack(track: Track | TrackPublication): Record<string, unknown>;
32
32
  export declare function supportsSynchronizationSources(): boolean;
33
+ export declare function diffAttributes(oldValues: Record<string, string> | undefined, newValues: Record<string, string> | undefined): Record<string, string>;
33
34
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/room/track/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAG3D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AA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,8BAA8B,IAAI,OAAO,CAExD;AAED,wBAAgB,cAAc,CAC5B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,EAC7C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,0BAkB9C"}
@@ -1,4 +1,4 @@
1
- import { AddTrackRequest, AudioTrackFeature, ConnectionQualityUpdate, JoinResponse, LeaveRequest, ParticipantInfo, ReconnectReason, ReconnectResponse, Room, SessionDescription, SignalRequest, SignalTarget, SimulateScenario, SpeakerInfo, StreamStateUpdate, SubscribedQualityUpdate, SubscriptionPermissionUpdate, SubscriptionResponse, SyncState, TrackPermission, TrackPublishedResponse, TrackUnpublishedResponse, UpdateSubscription, UpdateTrackSettings, VideoLayer } from '@livekit/protocol';
1
+ import { AddTrackRequest, AudioTrackFeature, ConnectionQualityUpdate, ErrorResponse, JoinResponse, LeaveRequest, ParticipantInfo, ReconnectReason, ReconnectResponse, Room, SessionDescription, SignalRequest, SignalTarget, SimulateScenario, SpeakerInfo, StreamStateUpdate, SubscribedQualityUpdate, SubscriptionPermissionUpdate, SubscriptionResponse, SyncState, TrackPermission, TrackPublishedResponse, TrackUnpublishedResponse, UpdateSubscription, UpdateTrackSettings, VideoLayer } from '@livekit/protocol';
2
2
  import type { LoggerOptions } from '../room/types';
3
3
  import { AsyncQueue } from '../utils/AsyncQueue';
4
4
  interface ConnectOpts extends SignalOptions {
@@ -51,11 +51,13 @@ export declare class SignalClient {
51
51
  onLocalTrackUnpublished?: (res: TrackUnpublishedResponse) => void;
52
52
  onTokenRefresh?: (token: string) => void;
53
53
  onLeave?: (leave: LeaveRequest) => void;
54
+ onErrorResponse?: (error: ErrorResponse) => void;
54
55
  connectOptions?: ConnectOpts;
55
56
  ws?: WebSocket;
56
57
  get currentState(): SignalConnectionState;
57
58
  get isDisconnected(): boolean;
58
59
  private get isEstablishingConnection();
60
+ private getNextRequestId;
59
61
  private options?;
60
62
  private pingTimeout;
61
63
  private pingTimeoutDuration;
@@ -66,6 +68,7 @@ export declare class SignalClient {
66
68
  private connectionLock;
67
69
  private log;
68
70
  private loggerContextCb?;
71
+ private _requestId;
69
72
  constructor(useJSON?: boolean, loggerOptions?: LoggerOptions);
70
73
  private get logContext();
71
74
  join(url: string, token: string, opts: SignalOptions, abortSignal?: AbortSignal): Promise<JoinResponse>;
@@ -79,7 +82,7 @@ export declare class SignalClient {
79
82
  sendIceCandidate(candidate: RTCIceCandidateInit, target: SignalTarget): Promise<void>;
80
83
  sendMuteTrack(trackSid: string, muted: boolean): Promise<void>;
81
84
  sendAddTrack(req: AddTrackRequest): Promise<void>;
82
- sendUpdateLocalMetadata(metadata: string, name: string): Promise<void>;
85
+ sendUpdateLocalMetadata(metadata: string, name: string, attributes?: Record<string, string>): Promise<number>;
83
86
  sendUpdateTrackSettings(settings: UpdateTrackSettings): void;
84
87
  sendUpdateSubscription(sub: UpdateSubscription): Promise<void>;
85
88
  sendSyncState(sync: SyncState): Promise<void>;
@@ -6,6 +6,7 @@ export declare enum CryptorErrorReason {
6
6
  }
7
7
  export declare class CryptorError extends LivekitError {
8
8
  reason: CryptorErrorReason;
9
- constructor(message?: string, reason?: CryptorErrorReason);
9
+ participantIdentity?: string;
10
+ constructor(message?: string, reason?: CryptorErrorReason, participantIdentity?: string);
10
11
  }
11
12
  //# sourceMappingURL=errors.d.ts.map
@@ -2,4 +2,5 @@ export * from './KeyProvider';
2
2
  export * from './utils';
3
3
  export * from './types';
4
4
  export * from './events';
5
+ export * from './errors';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type { AddTrackRequest, ConnectionQualityUpdate, JoinResponse, StreamStateUpdate, SubscriptionPermissionUpdate, SubscriptionResponse } from '@livekit/protocol';
2
- import { DataPacket, DataPacket_Kind, DisconnectReason, ParticipantInfo, Room as RoomModel, SpeakerInfo, SubscribedQualityUpdate, TrackInfo, TrackUnpublishedResponse, Transcription } from '@livekit/protocol';
2
+ import { DataPacket, DataPacket_Kind, DisconnectReason, ErrorResponse, ParticipantInfo, Room as RoomModel, SpeakerInfo, SubscribedQualityUpdate, TrackInfo, TrackUnpublishedResponse, Transcription } from '@livekit/protocol';
3
3
  import type TypedEventEmitter from 'typed-emitter';
4
4
  import type { SignalOptions } from '../api/SignalClient';
5
5
  import { SignalClient } from '../api/SignalClient';
@@ -156,6 +156,7 @@ export type EngineEventCallbacks = {
156
156
  localTrackUnpublished: (unpublishedResponse: TrackUnpublishedResponse) => void;
157
157
  remoteMute: (trackSid: string, muted: boolean) => void;
158
158
  offline: () => void;
159
+ signalRequestError: (error: ErrorResponse) => void;
159
160
  };
160
161
  export {};
161
162
  //# sourceMappingURL=RTCEngine.d.ts.map
@@ -204,6 +204,7 @@ declare class Room extends Room_base {
204
204
  private emitWhenConnected;
205
205
  private onLocalParticipantMetadataChanged;
206
206
  private onLocalParticipantNameChanged;
207
+ private onLocalAttributesChanged;
207
208
  private onLocalTrackMuted;
208
209
  private onLocalTrackUnmuted;
209
210
  private onTrackProcessorUpdate;
@@ -244,6 +245,7 @@ export type RoomEventCallbacks = {
244
245
  participantMetadataChanged: (metadata: string | undefined, participant: RemoteParticipant | LocalParticipant) => void;
245
246
  participantNameChanged: (name: string, participant: RemoteParticipant | LocalParticipant) => void;
246
247
  participantPermissionsChanged: (prevPermissions: ParticipantPermission | undefined, participant: RemoteParticipant | LocalParticipant) => void;
248
+ participantAttributesChanged: (changedAttributes: Record<string, string>, participant: RemoteParticipant | LocalParticipant) => void;
247
249
  activeSpeakersChanged: (speakers: Array<Participant>) => void;
248
250
  roomMetadataChanged: (metadata: string) => void;
249
251
  dataReceived: (payload: Uint8Array, participant?: RemoteParticipant, kind?: DataPacket_Kind, topic?: string) => void;
@@ -1,3 +1,4 @@
1
+ import { ErrorResponse_Reason } from '@livekit/protocol';
1
2
  export declare class LivekitError extends Error {
2
3
  code: number;
3
4
  constructor(code: number, message?: string);
@@ -32,6 +33,10 @@ export declare class NegotiationError extends LivekitError {
32
33
  export declare class PublishDataError extends LivekitError {
33
34
  constructor(message?: string);
34
35
  }
36
+ export declare class SignalRequestError extends LivekitError {
37
+ reason: ErrorResponse_Reason;
38
+ constructor(message: string, reason?: ErrorResponse_Reason);
39
+ }
35
40
  export declare enum MediaDeviceFailure {
36
41
  PermissionDenied = "PermissionDenied",
37
42
  NotFound = "NotFound",
@@ -162,6 +162,12 @@ export declare enum RoomEvent {
162
162
  *
163
163
  */
164
164
  ParticipantNameChanged = "participantNameChanged",
165
+ /**
166
+ * Participant attributes is an app-specific key value state to be pushed to
167
+ * all users.
168
+ * When a participant's attributes changed, this event will be emitted with the changed attributes and the participant
169
+ */
170
+ ParticipantAttributesChanged = "participantAttributesChanged",
165
171
  /**
166
172
  * Room metadata is a simple way for app-specific state to be pushed to
167
173
  * all users.
@@ -430,7 +436,13 @@ export declare enum ParticipantEvent {
430
436
  */
431
437
  ParticipantPermissionsChanged = "participantPermissionsChanged",
432
438
  /** @internal */
433
- PCTrackAdded = "pcTrackAdded"
439
+ PCTrackAdded = "pcTrackAdded",
440
+ /**
441
+ * Participant attributes is an app-specific key value state to be pushed to
442
+ * all users.
443
+ * When a participant's attributes changed, this event will be emitted with the changed attributes
444
+ */
445
+ AttributesChanged = "attributesChanged"
434
446
  }
435
447
  /** @internal */
436
448
  export declare enum EngineEvent {
@@ -459,7 +471,8 @@ export declare enum EngineEvent {
459
471
  RemoteMute = "remoteMute",
460
472
  SubscribedQualityUpdate = "subscribedQualityUpdate",
461
473
  LocalTrackUnpublished = "localTrackUnpublished",
462
- Offline = "offline"
474
+ Offline = "offline",
475
+ SignalRequestError = "signalRequestError"
463
476
  }
464
477
  export declare enum TrackEvent {
465
478
  Message = "message",