realtime-avatar 0.32.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 }: {
@@ -48,6 +48,14 @@ declare const fishTtsModelSchema: z.ZodUnion<readonly [z.ZodEnum<{
48
48
  }>]>;
49
49
  type FishTtsModel$1 = z.infer<typeof fishTtsModelSchema>;
50
50
  declare const DEFAULT_FISH_TTS_MODEL: "s2.1-pro";
51
+ declare const fishDeliverySchema: z.ZodUnion<readonly [z.ZodEnum<{
52
+ whisper: "whisper";
53
+ }>, z.ZodNull]>;
54
+ type FishDelivery = NonNullable<z.infer<typeof fishDeliverySchema>>;
55
+ /** The models each delivery can be heard on, from the platform's `x-fish-delivery-models`. */
56
+ declare const FISH_DELIVERY_MODELS: {
57
+ readonly whisper: readonly ["drama-3"];
58
+ };
51
59
 
52
60
  /**
53
61
  * Wire schemas for the public Realtime Avatar API.
@@ -120,6 +128,9 @@ declare const voiceSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
120
128
  speed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
121
129
  emotion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
130
  language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
+ delivery: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
132
+ whisper: "whisper";
133
+ }>, z.ZodNull]>>;
123
134
  }, z.core.$strict>], "provider">;
124
135
  declare const sessionClipSchema: z.ZodObject<{
125
136
  clip_id: z.ZodString;
@@ -228,6 +239,9 @@ declare const liveKitSessionRequestSchema: z.ZodObject<{
228
239
  speed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
229
240
  emotion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
241
  language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
+ delivery: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
243
+ whisper: "whisper";
244
+ }>, z.ZodNull]>>;
231
245
  }, z.core.$strict>], "provider">>>;
232
246
  voiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
247
  clipLibrary: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1385,6 +1399,49 @@ type CallMediaSinks = Partial<Readonly<{
1385
1399
  registerMediaControls: (controls: CallMediaControls | null) => void;
1386
1400
  }>>;
1387
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
+
1388
1445
  /**
1389
1446
  * Wired up by CONSUMERS, not by this package. Nothing inside the carry calls it — checked
1390
1447
  * 2026-08-26 by searching for `pendingTurn` and `replay`, which appear nowhere else here. The
@@ -1579,8 +1636,24 @@ type UseSessionLifecycleInput<T extends LLMProvider = LLMProvider> = {
1579
1636
  * product-facing value — gate any UI that shows it (e.g. behind an admin flag).
1580
1637
  */
1581
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;
1582
1646
  };
1583
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;
1584
1657
  phase: SessionLifecyclePhase;
1585
1658
  /** The held grant for RealtimeAvatarLiveKitRoom (null until connecting+). */
1586
1659
  grant: LiveKitSessionGrant | null;
@@ -1656,6 +1729,8 @@ declare function useSessionLifecycle<T extends LLMProvider = LLMProvider>(input:
1656
1729
  * `useRealtimeSession`.
1657
1730
  */
1658
1731
  type RealtimeSessionRoomSinks = Partial<{
1732
+ /** Browser-only correlated PCM playback; omission leaves ordinary media unchanged. */
1733
+ correlatedAudio: CorrelatedAudioObserver;
1659
1734
  /** Inbound `rta.lifecycle` data frames (DataReceived on the lifecycle topic). */
1660
1735
  onLifecycleData: (frame: unknown) => void;
1661
1736
  /** Publisher for client→worker frames (request_graceful_close / extend). */
@@ -1699,7 +1774,7 @@ type SessionLifecycleRoomBridgeProps = {
1699
1774
  * Decides whether a missing microphone track is a problem or simply not wanted.
1700
1775
  */
1701
1776
  microphone?: boolean;
1702
- 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;
1703
1778
  };
1704
1779
  /**
1705
1780
  * Wire the in-room LiveKit facts into a {@link useSessionLifecycle} instance:
@@ -1877,6 +1952,8 @@ type VoiceError = {
1877
1952
  * billing/GPU safety). The app wires only the NARRATIVE callbacks + copy.
1878
1953
  */
1879
1954
  type UseRealtimeSessionInput<T extends LLMProvider = LLMProvider> = UseSessionLifecycleInput<T> & {
1955
+ /** Browser-only PCM player. With this observer, do not render RoomAudioRenderer. */
1956
+ correlatedAudio?: CorrelatedAudioObserver;
1880
1957
  /** Echoed by the app on its own events; the SDK never inspects it. */
1881
1958
  clientMetadata?: Record<string, unknown>;
1882
1959
  /**
@@ -1936,6 +2013,7 @@ type UseRealtimeSessionInput<T extends LLMProvider = LLMProvider> = UseSessionLi
1936
2013
  * are filled by {@link SessionLifecycleRoomBridge} — the app just mounts the bridge.
1937
2014
  */
1938
2015
  type RealtimeSessionApi = SessionLifecycleApi & {
2016
+ correlatedAudio?: CorrelatedAudioObserver;
1939
2017
  /** Live turn micro-state, mapped from `useVoiceAssistant().state`. */
1940
2018
  turn: TurnState;
1941
2019
  /** The three DISTINCT clocks (session/idle/credit), never conflated. */
@@ -2139,4 +2217,4 @@ interface ProxyClientOptions {
2139
2217
  }
2140
2218
  declare function createProxyClient(options: ProxyClientOptions): AvatarSessionClient;
2141
2219
 
2142
- export { MAX_RECONNECT_ATTEMPTS as $, type AvatarVideoFit as A, type BehaviorSnapshot as B, type CallTranscript as C, DEFAULT_APPROACHING_END_LEAD_SECONDS as D, type EndReason as E, type FishTtsModel as F, type Governor as G, type GovernorAction as H, type GovernorConfig as I, type GovernorSignal as J, type GovernorState as K, type LiveKitSessionGrant as L, type GraceWindowClosedEvent as M, type GraceWindowOpenEvent as N, type GraceWindowState as O, type IdleWarningEvent as P, type InboundRtpCursor as Q, type InboundRtpReading as R, type KnownBehaviorState as S, type LLMProvider as T, type LLMSelection as U, type LiveKitAvatarGrantState as V, type LiveKitAvatarGrantStatus as W, type LiveKitCapacityState as X, type LiveKitConnectionStatus as Y, type LiveKitSessionRequest as Z, type LiveKitSessionStartResult as _, AdaptivePlayoutController as a, type LivePlaybackKeeper as a$, MAX_SESSION_INSTRUCTIONS_CHARS as a0, type ProxyClientOptions as a1, type QualityCap as a2, RECONNECT_BACKOFF_MS as a3, type RealtimeAvatarRequestOptions as a4, type RealtimeSessionApi as a5, type RealtimeSessionMedia as a6, type RealtimeSessionRoomSinks as a7, type ReconnectPolicy as a8, type ReconnectingEvent as a9, capacityErrorFromBusy as aA, capacityStateFromGrant as aB, createProxyClient as aC, fishTtsModelSchema as aD, isNativeLiveTrackSubscribed as aE, knownBehaviorStates as aF, mapTurnState as aG, readInboundRtp as aH, sessionBehaviorSchema as aI, sessionClipSchema as aJ, splitCallTranscript as aK, useAvatarAdaptivePlayoutDelay as aL, useAvatarCamera as aM, useAvatarPlayoutDelay as aN, useAvatarQualityGovernor as aO, useCallTranscript as aP, useLiveKitAvatarGrant as aQ, useLiveTrackProducing as aR, useMicLease as aS, useRealtimeSession as aT, useReleaseMicLeaseOnTrackEnded as aU, useSessionLifecycle as aV, type CallMicrophone as aW, type CallAudioPlayback as aX, type CallMicrophoneProblem as aY, AvatarVideoSurface as aZ, type AvatarVideoSurfaceProps as a_, type RecoveryState as aa, type RetryStep as ab, type SendTurnOptions as ac, type SessionBehavior as ad, type SessionClip as ae, type SessionClocks as af, type SessionEndReason as ag, type SessionLifecycleApi as ah, type SessionLifecyclePhase as ai, type SessionLifecyclePhaseKind as aj, SessionLifecycleRoomBridge as ak, type SessionLifecycleRoomBridgeProps as al, type SessionReadinessFailure as am, type SurfaceLayers as an, type TranscriptSender as ao, type TranscriptSenderOptions as ap, type TurnState as aq, type TurnTimeoutEvent as ar, type UseAvatarQualityGovernorInput as as, type UseLiveKitAvatarGrantInput as at, type UseRealtimeSessionInput as au, type UseSessionLifecycleInput as av, type VoiceError as aw, type VoiceErrorCode as ax, type VoiceSpec as ay, type VoiceSpecInput as az, type AdaptivePlayoutDecision as b, MIC_LEASE_ENDED_TIMEOUT_MS as b0, type MicLease as b1, NETWORK_QUALITY_POLICY as b2, type NetworkQualityStatus as b3, type PlayableVideoElement as b4, RealtimeAvatarCapacityError as b5, RealtimeAvatarLiveKitRoom as b6, type RealtimeAvatarLiveKitRoomProps as b7, shouldReplayPendingTurn as b8, 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 FreezeReadingFn 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-BlaFxR6S.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 FishTtsModel, z as FreezeReadingFn, G as Governor, H as GovernorAction, I as GovernorConfig, J as GovernorSignal, K as GovernorState, M as GraceWindowClosedEvent, N as GraceWindowOpenEvent, O as GraceWindowState, P as IdleWarningEvent, Q as InboundRtpCursor, R as InboundRtpReading, S as KnownBehaviorState, T as LLMProvider, U as LLMSelection, V as LiveKitAvatarGrantState, W as LiveKitAvatarGrantStatus, X as LiveKitCapacityState, Y as LiveKitConnectionStatus, Z as LiveKitSessionRequest, _ as LiveKitSessionStartResult, $ as MAX_RECONNECT_ATTEMPTS, a0 as MAX_SESSION_INSTRUCTIONS_CHARS, a1 as ProxyClientOptions, a2 as QualityCap, a3 as RECONNECT_BACKOFF_MS, a4 as RealtimeAvatarRequestOptions, a5 as RealtimeSessionApi, a6 as RealtimeSessionMedia, a7 as RealtimeSessionRoomSinks, a8 as ReconnectPolicy, a9 as ReconnectingEvent, aa as RecoveryState, ab as RetryStep, ac as SendTurnOptions, ad as SessionBehavior, ae as SessionClip, af as SessionClocks, ag as SessionEndReason, ah as SessionLifecycleApi, ai as SessionLifecyclePhase, aj as SessionLifecyclePhaseKind, ak as SessionLifecycleRoomBridge, al as SessionLifecycleRoomBridgeProps, am as SessionReadinessFailure, an as SurfaceLayers, ao as TranscriptSender, ap as TranscriptSenderOptions, aq as TurnState, ar as TurnTimeoutEvent, as as UseAvatarQualityGovernorInput, at as UseLiveKitAvatarGrantInput, au as UseRealtimeSessionInput, av as UseSessionLifecycleInput, aw as VoiceError, ax as VoiceErrorCode, ay as VoiceSpec, az as VoiceSpecInput, aA as capacityErrorFromBusy, aB as capacityStateFromGrant, aC as createProxyClient, aD as fishTtsModelSchema, aE as isNativeLiveTrackSubscribed, aF as knownBehaviorStates, aG as mapTurnState, aH as readInboundRtp, aI as sessionBehaviorSchema, aJ as sessionClipSchema, aK as splitCallTranscript, aL as useAvatarAdaptivePlayoutDelay, aM as useAvatarCamera, aN as useAvatarPlayoutDelay, aO as useAvatarQualityGovernor, aP as useCallTranscript, aQ as useLiveKitAvatarGrant, aR as useLiveTrackProducing, aS as useMicLease, aT as useRealtimeSession, aU as useReleaseMicLeaseOnTrackEnded, aV as useSessionLifecycle } from './proxy-client-BlaFxR6S.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"> & {