@@ -11,6 +11,7 @@ import { ConnectionQuality } from 'livekit-client';
1111import { ConnectionState } from ' livekit-client' ;
1212import { DataPacket_Kind } from ' livekit-client' ;
1313import { DataPublishOptions } from ' livekit-client' ;
14+ import { Encryption_Type } from ' livekit-client' ;
1415import { LocalAudioTrack } from ' livekit-client' ;
1516import { LocalParticipant } from ' livekit-client' ;
1617import { LocalVideoTrack } from ' livekit-client' ;
@@ -114,7 +115,7 @@ export function createChatObserver(room: Room): Observable<[message: ChatMessage
114115export function createConnectionQualityObserver(participant : Participant ): Observable <ConnectionQuality >;
115116
116117// @public (undocumented)
117- export function createDataObserver(room : Room ): Observable <[payload : Uint8Array <ArrayBufferLike >, participant ? : RemoteParticipant | undefined , kind ? : DataPacket_Kind | undefined , topic ? : string | undefined ]>;
118+ export function createDataObserver(room : Room ): Observable <[payload : Uint8Array <ArrayBufferLike >, participant ? : RemoteParticipant | undefined , kind ? : DataPacket_Kind | undefined , topic ? : string | undefined , encryptionType ? : Encryption_Type | undefined ]>;
118119
119120// @public (undocumented)
120121export const createDefaultGrammar: () => {
@@ -320,6 +321,20 @@ export function observeRoomEvents(room: Room, ...events: RoomEvent[]): Observabl
320321// @public (undocumented)
321322export function observeTrackEvents(track : TrackPublication , ... events : TrackEvent_2 []): Observable <TrackPublication >;
322323
324+ // @public
325+ export enum ParticipantAgentAttributes {
326+ // (undocumented)
327+ AgentState = " lk.agent.state" ,
328+ // (undocumented)
329+ PublishOnBehalf = " lk.publish_on_behalf" ,
330+ // (undocumented)
331+ TranscribedTrackId = " lk.transcribed_track_id" ,
332+ // (undocumented)
333+ TranscriptionFinal = " lk.transcription_final" ,
334+ // (undocumented)
335+ TranscriptionSegmentId = " lk.segment_id"
336+ }
337+
323338// @public (undocumented)
324339export function participantAttributesObserver(participant : Participant ): Observable <{
325340 changed: Readonly <Record <string , string >>;
@@ -410,26 +425,39 @@ export const PIN_DEFAULT_STATE: PinState;
410425// @public (undocumented)
411426export type PinState = TrackReferenceOrPlaceholder [];
412427
428+ // Warning: (ae-forgotten-export) The symbol "ReceivedMessageWithType" needs to be exported by the entry point index.d.ts
429+ //
413430// @public (undocumented)
414- export interface ReceivedChatMessage extends ChatMessage {
415- // (undocumented)
416- attributes? : Record <string , string >;
417- // (undocumented)
431+ export type ReceivedAgentTranscriptionMessage = ReceivedMessageWithType <' agentTranscript' , {
432+ message: string ;
433+ }>;
434+
435+ // @public (undocumented)
436+ export type ReceivedChatMessage = ReceivedMessageWithType <' chatMessage' , ChatMessage & {
418437 from? : Participant ;
419- }
438+ attributes? : Record <string , string >;
439+ }>;
420440
421441// @public (undocumented)
422442export interface ReceivedDataMessage <T extends string | undefined = string > extends BaseDataMessage <T > {
423443 // (undocumented)
424444 from? : Participant ;
425445}
426446
447+ // @public (undocumented)
448+ export type ReceivedMessage = ReceivedUserTranscriptionMessage | ReceivedAgentTranscriptionMessage | ReceivedChatMessage ;
449+
427450// @public (undocumented)
428451export type ReceivedTranscriptionSegment = TranscriptionSegment & {
429452 receivedAtMediaTimestamp: number ;
430453 receivedAt: number ;
431454};
432455
456+ // @public (undocumented)
457+ export type ReceivedUserTranscriptionMessage = ReceivedMessageWithType <' userTranscript' , {
458+ message: string ;
459+ }>;
460+
433461// @public (undocumented)
434462export function recordingStatusObservable(room : Room ): Observable <boolean >;
435463
@@ -479,6 +507,9 @@ export function selectGridLayout(layoutDefinitions: GridLayoutDefinition[], part
479507// @public
480508export function sendMessage(localParticipant : LocalParticipant , payload : Uint8Array , options ? : DataPublishOptions ): Promise <void >;
481509
510+ // @public (undocumented)
511+ export type SentMessage = ChatMessage ;
512+
482513// @public (undocumented)
483514export function setDifference<T >(setA : Set <T >, setB : Set <T >): Set <T >;
484515
0 commit comments