realtime-avatar 0.33.0 → 0.34.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.
@@ -2,7 +2,7 @@ import * as livekit_client from 'livekit-client';
2
2
  import { ConnectionQuality, Room, Participant, Track, DisconnectReason, SendTextOptions } from 'livekit-client';
3
3
  import { TrackReferenceOrPlaceholder, useTranscriptions, useConnectionState, LiveKitRoomProps } from '@livekit/components-react';
4
4
  import { CSSProperties, ReactNode, ReactElement } from 'react';
5
- import { b as MicrophoneProblem } from './playout-delay-CtRZdtsj.js';
5
+ import { h as MicrophoneProblem, e as CorrelatedAudioObserver } from './playout-delay-BzoM1BMN.js';
6
6
  import { z } from 'zod';
7
7
 
8
8
  declare function useAvatarCamera({ allowed, active }: {
@@ -1399,6 +1399,49 @@ type CallMediaSinks = Partial<Readonly<{
1399
1399
  registerMediaControls: (controls: CallMediaControls | null) => void;
1400
1400
  }>>;
1401
1401
 
1402
+ declare const externalPerformanceFrameSchema: z.ZodObject<{
1403
+ session_id: z.ZodString;
1404
+ generation_id: z.ZodString;
1405
+ kind: z.ZodLiteral<"external_performance">;
1406
+ version: z.ZodLiteral<1>;
1407
+ status: z.ZodUnion<readonly [z.ZodEnum<{
1408
+ accepted: "accepted";
1409
+ dropped: "dropped";
1410
+ cancelled: "cancelled";
1411
+ audio_released: "audio_released";
1412
+ }>, z.ZodString]>;
1413
+ audible_checkpoint: z.ZodLiteral<"unavailable">;
1414
+ audio_mapping: z.ZodLiteral<"unavailable">;
1415
+ }, z.core.$strip>;
1416
+ type ExternalPerformanceFrame = z.infer<typeof externalPerformanceFrameSchema>;
1417
+
1418
+ /** What a player may take from these frames: admission and cancellation, never playout timing. */
1419
+ declare const EXTERNAL_PERFORMANCE_TIMING: Readonly<{
1420
+ readonly receiverPlayout: "unsupported";
1421
+ readonly audibleCheckpoint: "unavailable";
1422
+ readonly audioMapping: "unavailable";
1423
+ }>;
1424
+ /**
1425
+ * Why every pending generation is void. `connection_lost` pauses observation: after the call
1426
+ * reconnects, frames resume for generations first seen since, never the earlier ones. `ended`
1427
+ * and `binding_changed` (the grant was replaced, or observation was turned off) are final.
1428
+ */
1429
+ type ExternalPerformanceInvalidation = "connection_lost" | "ended" | "binding_changed";
1430
+ /**
1431
+ * The statuses whose transitions this SDK knows: the enum arm of the contract's open `status`.
1432
+ * A status a newer worker adds still parses, and the observer skips it rather than guessing.
1433
+ */
1434
+ declare const KNOWN_EXTERNAL_PERFORMANCE_STATUSES: readonly ("accepted" | "dropped" | "cancelled" | "audio_released")[];
1435
+ type KnownExternalPerformanceStatus = (typeof KNOWN_EXTERNAL_PERFORMANCE_STATUSES)[number];
1436
+ /** What `onFrame` receives: a contract frame whose status is one this SDK knows. */
1437
+ type ObservedExternalPerformanceFrame = ExternalPerformanceFrame & {
1438
+ status: KnownExternalPerformanceStatus;
1439
+ };
1440
+ type ExternalPerformanceObserver = {
1441
+ onFrame: (frame: ObservedExternalPerformanceFrame) => void;
1442
+ onInvalidated: (reason: ExternalPerformanceInvalidation) => void;
1443
+ };
1444
+
1402
1445
  /**
1403
1446
  * Wired up by CONSUMERS, not by this package. Nothing inside the carry calls it — checked
1404
1447
  * 2026-08-26 by searching for `pendingTurn` and `replay`, which appear nowhere else here. The
@@ -1593,8 +1636,24 @@ type UseSessionLifecycleInput<T extends LLMProvider = LLMProvider> = {
1593
1636
  * product-facing value — gate any UI that shows it (e.g. behind an admin flag).
1594
1637
  */
1595
1638
  onBehaviorChange?: (snapshot: BehaviorSnapshot) => void;
1639
+ /**
1640
+ * For a call minted with `llm.performance: "v1"`: the worker's admission and cancellation of
1641
+ * each generation, from the bound agent only. Not a playout clock — see
1642
+ * `EXTERNAL_PERFORMANCE_TIMING`. A connection loss invalidates every pending generation;
1643
+ * after the same call reconnects, only generations first seen since are reported.
1644
+ */
1645
+ externalPerformance?: ExternalPerformanceObserver;
1596
1646
  };
1597
1647
  type SessionLifecycleApi = {
1648
+ /** Inbound `rta.lifecycle` frames, set when `onBehaviorChange` or `externalPerformance` is. */
1649
+ onLifecycleData?: (frame: unknown) => void;
1650
+ /** Set when `externalPerformance` is: lets the room bridge void pending work on a room event. */
1651
+ invalidateExternalPerformance?: (reason: ExternalPerformanceInvalidation) => void;
1652
+ /**
1653
+ * Set when `externalPerformance` is: the room bridge resumes a connection-lost pause from the
1654
+ * same room events and agent identity that paused it, so no batched render can strand it.
1655
+ */
1656
+ resumeExternalPerformance?: () => void;
1598
1657
  phase: SessionLifecyclePhase;
1599
1658
  /** The held grant for RealtimeAvatarLiveKitRoom (null until connecting+). */
1600
1659
  grant: LiveKitSessionGrant | null;
@@ -1670,6 +1729,8 @@ declare function useSessionLifecycle<T extends LLMProvider = LLMProvider>(input:
1670
1729
  * `useRealtimeSession`.
1671
1730
  */
1672
1731
  type RealtimeSessionRoomSinks = Partial<{
1732
+ /** Browser-only correlated PCM playback; omission leaves ordinary media unchanged. */
1733
+ correlatedAudio: CorrelatedAudioObserver;
1673
1734
  /** Inbound `rta.lifecycle` data frames (DataReceived on the lifecycle topic). */
1674
1735
  onLifecycleData: (frame: unknown) => void;
1675
1736
  /** Publisher for client→worker frames (request_graceful_close / extend). */
@@ -1713,7 +1774,7 @@ type SessionLifecycleRoomBridgeProps = {
1713
1774
  * Decides whether a missing microphone track is a problem or simply not wanted.
1714
1775
  */
1715
1776
  microphone?: boolean;
1716
- lifecycle: Pick<SessionLifecycleApi, "onConnectionStateChange" | "setAgentPresent" | "registerLeaveRoom" | "markActivity"> & Partial<Pick<SessionLifecycleApi, "grant">> & RealtimeSessionRoomSinks;
1777
+ lifecycle: Pick<SessionLifecycleApi, "onConnectionStateChange" | "setAgentPresent" | "registerLeaveRoom" | "markActivity"> & Partial<Pick<SessionLifecycleApi, "grant" | "invalidateExternalPerformance" | "resumeExternalPerformance">> & RealtimeSessionRoomSinks;
1717
1778
  };
1718
1779
  /**
1719
1780
  * Wire the in-room LiveKit facts into a {@link useSessionLifecycle} instance:
@@ -1891,6 +1952,8 @@ type VoiceError = {
1891
1952
  * billing/GPU safety). The app wires only the NARRATIVE callbacks + copy.
1892
1953
  */
1893
1954
  type UseRealtimeSessionInput<T extends LLMProvider = LLMProvider> = UseSessionLifecycleInput<T> & {
1955
+ /** Browser-only PCM player. With this observer, do not render RoomAudioRenderer. */
1956
+ correlatedAudio?: CorrelatedAudioObserver;
1894
1957
  /** Echoed by the app on its own events; the SDK never inspects it. */
1895
1958
  clientMetadata?: Record<string, unknown>;
1896
1959
  /**
@@ -1950,6 +2013,7 @@ type UseRealtimeSessionInput<T extends LLMProvider = LLMProvider> = UseSessionLi
1950
2013
  * are filled by {@link SessionLifecycleRoomBridge} — the app just mounts the bridge.
1951
2014
  */
1952
2015
  type RealtimeSessionApi = SessionLifecycleApi & {
2016
+ correlatedAudio?: CorrelatedAudioObserver;
1953
2017
  /** Live turn micro-state, mapped from `useVoiceAssistant().state`. */
1954
2018
  turn: TurnState;
1955
2019
  /** The three DISTINCT clocks (session/idle/credit), never conflated. */
@@ -2153,4 +2217,4 @@ interface ProxyClientOptions {
2153
2217
  }
2154
2218
  declare function createProxyClient(options: ProxyClientOptions): AvatarSessionClient;
2155
2219
 
2156
- export { type LiveKitSessionRequest as $, type AvatarVideoFit as A, type BehaviorSnapshot as B, type CallTranscript as C, DEFAULT_APPROACHING_END_LEAD_SECONDS as D, type EndReason as E, FISH_DELIVERY_MODELS as F, type FishTtsModel as G, type FreezeReadingFn as H, type Governor as I, type GovernorAction as J, type GovernorConfig as K, type LiveKitSessionGrant as L, type GovernorSignal as M, type GovernorState as N, type GraceWindowClosedEvent as O, type GraceWindowOpenEvent as P, type GraceWindowState as Q, type IdleWarningEvent as R, type InboundRtpCursor as S, type InboundRtpReading as T, type KnownBehaviorState as U, type LLMProvider as V, type LLMSelection as W, type LiveKitAvatarGrantState as X, type LiveKitAvatarGrantStatus as Y, type LiveKitCapacityState as Z, type LiveKitConnectionStatus as _, AdaptivePlayoutController as a, AvatarVideoSurface as a$, type LiveKitSessionStartResult as a0, MAX_RECONNECT_ATTEMPTS as a1, MAX_SESSION_INSTRUCTIONS_CHARS as a2, type ProxyClientOptions as a3, type QualityCap as a4, RECONNECT_BACKOFF_MS as a5, type RealtimeAvatarRequestOptions as a6, type RealtimeSessionApi as a7, type RealtimeSessionMedia as a8, type RealtimeSessionRoomSinks as a9, type VoiceSpec as aA, type VoiceSpecInput as aB, capacityErrorFromBusy as aC, capacityStateFromGrant as aD, createProxyClient as aE, fishTtsModelSchema as aF, isNativeLiveTrackSubscribed as aG, knownBehaviorStates as aH, mapTurnState as aI, readInboundRtp as aJ, sessionBehaviorSchema as aK, sessionClipSchema as aL, splitCallTranscript as aM, useAvatarAdaptivePlayoutDelay as aN, useAvatarCamera as aO, useAvatarPlayoutDelay as aP, useAvatarQualityGovernor as aQ, useCallTranscript as aR, useLiveKitAvatarGrant as aS, useLiveTrackProducing as aT, useMicLease as aU, useRealtimeSession as aV, useReleaseMicLeaseOnTrackEnded as aW, useSessionLifecycle as aX, type CallMicrophone as aY, type CallAudioPlayback as aZ, type CallMicrophoneProblem as a_, type ReconnectPolicy as aa, type ReconnectingEvent as ab, type RecoveryState as ac, type RetryStep as ad, type SendTurnOptions as ae, type SessionBehavior as af, type SessionClip as ag, type SessionClocks as ah, type SessionEndReason as ai, type SessionLifecycleApi as aj, type SessionLifecyclePhase as ak, type SessionLifecyclePhaseKind as al, SessionLifecycleRoomBridge as am, type SessionLifecycleRoomBridgeProps as an, type SessionReadinessFailure as ao, type SurfaceLayers as ap, type TranscriptSender as aq, type TranscriptSenderOptions as ar, type TurnState as as, type TurnTimeoutEvent as at, type UseAvatarQualityGovernorInput as au, type UseLiveKitAvatarGrantInput as av, type UseRealtimeSessionInput as aw, type UseSessionLifecycleInput as ax, type VoiceError as ay, type VoiceErrorCode as az, type AdaptivePlayoutDecision as b, type AvatarVideoSurfaceProps as b0, type LivePlaybackKeeper as b1, MIC_LEASE_ENDED_TIMEOUT_MS as b2, type MicLease as b3, NETWORK_QUALITY_POLICY as b4, type NetworkQualityStatus as b5, type PlayableVideoElement as b6, RealtimeAvatarCapacityError as b7, RealtimeAvatarLiveKitRoom as b8, type RealtimeAvatarLiveKitRoomProps as b9, shouldReplayPendingTurn as ba, type AdaptivePlayoutOptions as c, type AdaptivePlayoutSample as d, type ApproachingEndEvent as e, type ApproachingEndReason as f, type AvatarConnectionDetails as g, type AvatarSessionClient as h, type CallTranscriptSegment as i, type CartesiaTtsModel as j, type ClipResult as k, type ClosingTurnResult as l, type CreditsLowEvent as m, DEFAULT_CREDITS_LOW_LEAD_SECONDS as n, DEFAULT_FISH_TTS_MODEL as o, DEFAULT_GOVERNOR_CONFIG as p, DEFAULT_GRACE_CEILING_SECONDS as q, DEFAULT_GRACE_WINDOW_LEAD_SECONDS as r, DEFAULT_IDLE_SECONDS as s, DEFAULT_IDLE_WARN_LEAD_SECONDS as t, DEFAULT_READY_TIMEOUT_SECONDS as u, DEFAULT_TURN_TIMEOUT_SECONDS as v, type DeclaredInputSource as w, type EndedEvent as x, type ExtendResult as y, type FishDelivery as z };
2220
+ export { type LLMProvider as $, type AvatarVideoFit as A, type BehaviorSnapshot as B, type CallTranscript as C, DEFAULT_APPROACHING_END_LEAD_SECONDS as D, EXTERNAL_PERFORMANCE_TIMING as E, type ExternalPerformanceFrame as F, type ExternalPerformanceInvalidation as G, type ExternalPerformanceObserver as H, FISH_DELIVERY_MODELS as I, type FishDelivery as J, type FishTtsModel as K, type LiveKitSessionGrant as L, type FreezeReadingFn as M, type Governor as N, type GovernorAction as O, type GovernorConfig as P, type GovernorSignal as Q, type GovernorState as R, type GraceWindowClosedEvent as S, type GraceWindowOpenEvent as T, type GraceWindowState as U, type IdleWarningEvent as V, type InboundRtpCursor as W, type InboundRtpReading as X, KNOWN_EXTERNAL_PERFORMANCE_STATUSES as Y, type KnownBehaviorState as Z, type KnownExternalPerformanceStatus as _, AdaptivePlayoutController as a, useMicLease as a$, type LLMSelection as a0, type LiveKitAvatarGrantState as a1, type LiveKitAvatarGrantStatus as a2, type LiveKitCapacityState as a3, type LiveKitConnectionStatus as a4, type LiveKitSessionRequest as a5, type LiveKitSessionStartResult as a6, MAX_RECONNECT_ATTEMPTS as a7, MAX_SESSION_INSTRUCTIONS_CHARS as a8, type ObservedExternalPerformanceFrame as a9, type TurnTimeoutEvent as aA, type UseAvatarQualityGovernorInput as aB, type UseLiveKitAvatarGrantInput as aC, type UseRealtimeSessionInput as aD, type UseSessionLifecycleInput as aE, type VoiceError as aF, type VoiceErrorCode as aG, type VoiceSpec as aH, type VoiceSpecInput as aI, capacityErrorFromBusy as aJ, capacityStateFromGrant as aK, createProxyClient as aL, fishTtsModelSchema as aM, isNativeLiveTrackSubscribed as aN, knownBehaviorStates as aO, mapTurnState as aP, readInboundRtp as aQ, sessionBehaviorSchema as aR, sessionClipSchema as aS, splitCallTranscript as aT, useAvatarAdaptivePlayoutDelay as aU, useAvatarCamera as aV, useAvatarPlayoutDelay as aW, useAvatarQualityGovernor as aX, useCallTranscript as aY, useLiveKitAvatarGrant as aZ, useLiveTrackProducing as a_, type ProxyClientOptions as aa, type QualityCap as ab, RECONNECT_BACKOFF_MS as ac, type RealtimeAvatarRequestOptions as ad, type RealtimeSessionApi as ae, type RealtimeSessionMedia as af, type RealtimeSessionRoomSinks as ag, type ReconnectPolicy as ah, type ReconnectingEvent as ai, type RecoveryState as aj, type RetryStep as ak, type SendTurnOptions as al, type SessionBehavior as am, type SessionClip as an, type SessionClocks as ao, type SessionEndReason as ap, type SessionLifecycleApi as aq, type SessionLifecyclePhase as ar, type SessionLifecyclePhaseKind as as, SessionLifecycleRoomBridge as at, type SessionLifecycleRoomBridgeProps as au, type SessionReadinessFailure as av, type SurfaceLayers as aw, type TranscriptSender as ax, type TranscriptSenderOptions as ay, type TurnState as az, type AdaptivePlayoutDecision as b, useRealtimeSession as b0, useReleaseMicLeaseOnTrackEnded as b1, useSessionLifecycle as b2, type CallMicrophone as b3, type CallAudioPlayback as b4, type CallMicrophoneProblem as b5, AvatarVideoSurface as b6, type AvatarVideoSurfaceProps as b7, type LivePlaybackKeeper as b8, MIC_LEASE_ENDED_TIMEOUT_MS as b9, type MicLease as ba, NETWORK_QUALITY_POLICY as bb, type NetworkQualityStatus as bc, type PlayableVideoElement as bd, RealtimeAvatarCapacityError as be, RealtimeAvatarLiveKitRoom as bf, type RealtimeAvatarLiveKitRoomProps as bg, shouldReplayPendingTurn as bh, type AdaptivePlayoutOptions as c, type AdaptivePlayoutSample as d, type ApproachingEndEvent as e, type ApproachingEndReason as f, type AvatarConnectionDetails as g, type AvatarSessionClient as h, type CallTranscriptSegment as i, type CartesiaTtsModel as j, type ClipResult as k, type ClosingTurnResult as l, type CreditsLowEvent as m, DEFAULT_CREDITS_LOW_LEAD_SECONDS as n, DEFAULT_FISH_TTS_MODEL as o, DEFAULT_GOVERNOR_CONFIG as p, DEFAULT_GRACE_CEILING_SECONDS as q, DEFAULT_GRACE_WINDOW_LEAD_SECONDS as r, DEFAULT_IDLE_SECONDS as s, DEFAULT_IDLE_WARN_LEAD_SECONDS as t, DEFAULT_READY_TIMEOUT_SECONDS as u, DEFAULT_TURN_TIMEOUT_SECONDS as v, type DeclaredInputSource as w, type EndReason as x, type EndedEvent as y, type ExtendResult as z };
@@ -1,13 +1,13 @@
1
1
  import { LiveKitRoomProps } from '@livekit/react-native';
2
2
  export { AudioSession, VideoTrack, VideoTrackProps, registerGlobals } from '@livekit/react-native';
3
- import { L as LiveKitSessionGrant, A as AvatarVideoFit } from './proxy-client-DJhYiiKX.js';
4
- export { a as AdaptivePlayoutController, b as AdaptivePlayoutDecision, c as AdaptivePlayoutOptions, d as AdaptivePlayoutSample, e as ApproachingEndEvent, f as ApproachingEndReason, g as AvatarConnectionDetails, h as AvatarSessionClient, B as BehaviorSnapshot, C as CallTranscript, i as CallTranscriptSegment, j as CartesiaTtsModel, k as ClipResult, l as ClosingTurnResult, m as CreditsLowEvent, D as DEFAULT_APPROACHING_END_LEAD_SECONDS, n as DEFAULT_CREDITS_LOW_LEAD_SECONDS, o as DEFAULT_FISH_TTS_MODEL, p as DEFAULT_GOVERNOR_CONFIG, q as DEFAULT_GRACE_CEILING_SECONDS, r as DEFAULT_GRACE_WINDOW_LEAD_SECONDS, s as DEFAULT_IDLE_SECONDS, t as DEFAULT_IDLE_WARN_LEAD_SECONDS, u as DEFAULT_READY_TIMEOUT_SECONDS, v as DEFAULT_TURN_TIMEOUT_SECONDS, w as DeclaredInputSource, E as EndReason, x as EndedEvent, y as ExtendResult, F as FISH_DELIVERY_MODELS, z as FishDelivery, G as FishTtsModel, H as FreezeReadingFn, I as Governor, J as GovernorAction, K as GovernorConfig, M as GovernorSignal, N as GovernorState, O as GraceWindowClosedEvent, P as GraceWindowOpenEvent, Q as GraceWindowState, R as IdleWarningEvent, S as InboundRtpCursor, T as InboundRtpReading, U as KnownBehaviorState, V as LLMProvider, W as LLMSelection, X as LiveKitAvatarGrantState, Y as LiveKitAvatarGrantStatus, Z as LiveKitCapacityState, _ as LiveKitConnectionStatus, $ as LiveKitSessionRequest, a0 as LiveKitSessionStartResult, a1 as MAX_RECONNECT_ATTEMPTS, a2 as MAX_SESSION_INSTRUCTIONS_CHARS, a3 as ProxyClientOptions, a4 as QualityCap, a5 as RECONNECT_BACKOFF_MS, a6 as RealtimeAvatarRequestOptions, a7 as RealtimeSessionApi, a8 as RealtimeSessionMedia, a9 as RealtimeSessionRoomSinks, aa as ReconnectPolicy, ab as ReconnectingEvent, ac as RecoveryState, ad as RetryStep, ae as SendTurnOptions, af as SessionBehavior, ag as SessionClip, ah as SessionClocks, ai as SessionEndReason, aj as SessionLifecycleApi, ak as SessionLifecyclePhase, al as SessionLifecyclePhaseKind, am as SessionLifecycleRoomBridge, an as SessionLifecycleRoomBridgeProps, ao as SessionReadinessFailure, ap as SurfaceLayers, aq as TranscriptSender, ar as TranscriptSenderOptions, as as TurnState, at as TurnTimeoutEvent, au as UseAvatarQualityGovernorInput, av as UseLiveKitAvatarGrantInput, aw as UseRealtimeSessionInput, ax as UseSessionLifecycleInput, ay as VoiceError, az as VoiceErrorCode, aA as VoiceSpec, aB as VoiceSpecInput, aC as capacityErrorFromBusy, aD as capacityStateFromGrant, aE as createProxyClient, aF as fishTtsModelSchema, aG as isNativeLiveTrackSubscribed, aH as knownBehaviorStates, aI as mapTurnState, aJ as readInboundRtp, aK as sessionBehaviorSchema, aL as sessionClipSchema, aM as splitCallTranscript, aN as useAvatarAdaptivePlayoutDelay, aO as useAvatarCamera, aP as useAvatarPlayoutDelay, aQ as useAvatarQualityGovernor, aR as useCallTranscript, aS as useLiveKitAvatarGrant, aT as useLiveTrackProducing, aU as useMicLease, aV as useRealtimeSession, aW as useReleaseMicLeaseOnTrackEnded, aX as useSessionLifecycle } from './proxy-client-DJhYiiKX.js';
3
+ import { L as LiveKitSessionGrant, A as AvatarVideoFit } from './proxy-client-CiTOjkg8.js';
4
+ export { a as AdaptivePlayoutController, b as AdaptivePlayoutDecision, c as AdaptivePlayoutOptions, d as AdaptivePlayoutSample, e as ApproachingEndEvent, f as ApproachingEndReason, g as AvatarConnectionDetails, h as AvatarSessionClient, B as BehaviorSnapshot, C as CallTranscript, i as CallTranscriptSegment, j as CartesiaTtsModel, k as ClipResult, l as ClosingTurnResult, m as CreditsLowEvent, D as DEFAULT_APPROACHING_END_LEAD_SECONDS, n as DEFAULT_CREDITS_LOW_LEAD_SECONDS, o as DEFAULT_FISH_TTS_MODEL, p as DEFAULT_GOVERNOR_CONFIG, q as DEFAULT_GRACE_CEILING_SECONDS, r as DEFAULT_GRACE_WINDOW_LEAD_SECONDS, s as DEFAULT_IDLE_SECONDS, t as DEFAULT_IDLE_WARN_LEAD_SECONDS, u as DEFAULT_READY_TIMEOUT_SECONDS, v as DEFAULT_TURN_TIMEOUT_SECONDS, w as DeclaredInputSource, E as EXTERNAL_PERFORMANCE_TIMING, x as EndReason, y as EndedEvent, z as ExtendResult, F as ExternalPerformanceFrame, G as ExternalPerformanceInvalidation, H as ExternalPerformanceObserver, I as FISH_DELIVERY_MODELS, J as FishDelivery, K as FishTtsModel, M as FreezeReadingFn, N as Governor, O as GovernorAction, P as GovernorConfig, Q as GovernorSignal, R as GovernorState, S as GraceWindowClosedEvent, T as GraceWindowOpenEvent, U as GraceWindowState, V as IdleWarningEvent, W as InboundRtpCursor, X as InboundRtpReading, Y as KNOWN_EXTERNAL_PERFORMANCE_STATUSES, Z as KnownBehaviorState, _ as KnownExternalPerformanceStatus, $ as LLMProvider, a0 as LLMSelection, a1 as LiveKitAvatarGrantState, a2 as LiveKitAvatarGrantStatus, a3 as LiveKitCapacityState, a4 as LiveKitConnectionStatus, a5 as LiveKitSessionRequest, a6 as LiveKitSessionStartResult, a7 as MAX_RECONNECT_ATTEMPTS, a8 as MAX_SESSION_INSTRUCTIONS_CHARS, a9 as ObservedExternalPerformanceFrame, aa as ProxyClientOptions, ab as QualityCap, ac as RECONNECT_BACKOFF_MS, ad as RealtimeAvatarRequestOptions, ae as RealtimeSessionApi, af as RealtimeSessionMedia, ag as RealtimeSessionRoomSinks, ah as ReconnectPolicy, ai as ReconnectingEvent, aj as RecoveryState, ak as RetryStep, al as SendTurnOptions, am as SessionBehavior, an as SessionClip, ao as SessionClocks, ap as SessionEndReason, aq as SessionLifecycleApi, ar as SessionLifecyclePhase, as as SessionLifecyclePhaseKind, at as SessionLifecycleRoomBridge, au as SessionLifecycleRoomBridgeProps, av as SessionReadinessFailure, aw as SurfaceLayers, ax as TranscriptSender, ay as TranscriptSenderOptions, az as TurnState, aA as TurnTimeoutEvent, aB as UseAvatarQualityGovernorInput, aC as UseLiveKitAvatarGrantInput, aD as UseRealtimeSessionInput, aE as UseSessionLifecycleInput, aF as VoiceError, aG as VoiceErrorCode, aH as VoiceSpec, aI as VoiceSpecInput, aJ as capacityErrorFromBusy, aK as capacityStateFromGrant, aL as createProxyClient, aM as fishTtsModelSchema, aN as isNativeLiveTrackSubscribed, aO as knownBehaviorStates, aP as mapTurnState, aQ as readInboundRtp, aR as sessionBehaviorSchema, aS as sessionClipSchema, aT as splitCallTranscript, aU as useAvatarAdaptivePlayoutDelay, aV as useAvatarCamera, aW as useAvatarPlayoutDelay, aX as useAvatarQualityGovernor, aY as useCallTranscript, aZ as useLiveKitAvatarGrant, a_ as useLiveTrackProducing, a$ as useMicLease, b0 as useRealtimeSession, b1 as useReleaseMicLeaseOnTrackEnded, b2 as useSessionLifecycle } from './proxy-client-CiTOjkg8.js';
5
5
  import { Room } from 'livekit-client';
6
6
  export { DisconnectReason, RemoteAudioTrack, RemoteTrack, RemoteVideoTrack, Room, RoomEvent, SendTextOptions, Track } from 'livekit-client';
7
7
  import { ReactNode, ReactElement } from 'react';
8
8
  import { StyleProp, ViewStyle } from 'react-native';
9
9
  export { useChat, useConnectionState, useLocalParticipant, useRoomContext, useTrackToggle, useTranscriptions, useVoiceAssistant } from '@livekit/components-react';
10
- export { D as DEFAULT_AVATAR_PLAYOUT_DELAY_SECONDS } from './playout-delay-CtRZdtsj.js';
10
+ export { D as DEFAULT_AVATAR_PLAYOUT_DELAY_SECONDS } from './playout-delay-BzoM1BMN.js';
11
11
  import 'zod';
12
12
 
13
13
  type RealtimeAvatarLiveKitRoomProps = Omit<LiveKitRoomProps, "serverUrl" | "token" | "connect" | "audio" | "video" | "options"> & {