realtime-avatar 0.27.0 → 0.27.2
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/README.md +36 -1
- package/dist/{chunk-SUKZ77GL.js → chunk-SP5SYYSS.js} +1 -1
- package/dist/{chunk-NMJQEGYW.js → chunk-YR5NJTEO.js} +8 -3
- package/dist/express.d.ts +2 -2
- package/dist/express.js +2 -2
- package/dist/hono.d.ts +2 -2
- package/dist/hono.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/nextjs.d.ts +2 -2
- package/dist/nextjs.js +2 -2
- package/dist/{proxy-client-D75TLU5X.d.ts → proxy-client-DW_EOvmE.d.ts} +27 -5
- package/dist/react-native.d.ts +2 -2
- package/dist/react-native.js +168 -36
- package/dist/react.d.ts +2 -2
- package/dist/react.js +168 -36
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -1
- package/dist/tanstack-start.d.ts +2 -2
- package/dist/tanstack-start.js +2 -2
- package/dist/{types-JtCwa0Ip.d.ts → types-BH9O5leB.d.ts} +1 -1
- package/dist/{types-6MUqx800.d.ts → types-D_s7ff7w.d.ts} +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -220,9 +220,22 @@ the top of that file with the reason for each: two are gaps in the contract itse
|
|
|
220
220
|
query parameters for `GET /v1/usage/sessions`, and the transcript webhook body is not in it at
|
|
221
221
|
all), and the `video` policy types are deliberately not one-to-one with the wire.
|
|
222
222
|
|
|
223
|
+
`contentPolicy: "minor-sexual-content-v1"` is an optional **server-owned** call policy,
|
|
224
|
+
serialized as `content_policy`. Omission sends no policy field and preserves existing behavior.
|
|
225
|
+
Unknown values, `null`, and disable values are refused before the request is sent. Set it in
|
|
226
|
+
`startCall` or a proxy `session` callback, never from browser input: the proxy strips both
|
|
227
|
+
`contentPolicy` and `content_policy` from incoming client bodies.
|
|
228
|
+
|
|
229
|
+
Pre-release contract provenance: this field was generated with
|
|
230
|
+
`node scripts/generate-clip-schema.mjs --sync <absolute sibling realtime-policy-platform root>`
|
|
231
|
+
from `packages/realtime-avatar-contracts/openapi/realtime-avatar.openapi.json`, then
|
|
232
|
+
`npm run spec:types`. The checked-in snapshot is that reviewed platform artifact, not the
|
|
233
|
+
older deployed spec. **Before release, deploy the platform and regenerate with `npm run spec`
|
|
234
|
+
against its deployed OpenAPI, then run `npm run check`.** Do not hand-edit the generated enum.
|
|
235
|
+
|
|
223
236
|
```ts
|
|
224
237
|
// calls
|
|
225
|
-
rta.startCall({ avatarId, mode?, instructions?, context?, maxSeconds?, video?, recording?, connectionHistory?, transcript?, metadata?, llm? })
|
|
238
|
+
rta.startCall({ avatarId, mode?, instructions?, context?, maxSeconds?, video?, recording?, connectionHistory?, contentPolicy?, transcript?, metadata?, llm? })
|
|
226
239
|
rta.endCall(sessionId, { reason? }) // free an abandoned call's slot; idempotent, never throws
|
|
227
240
|
rta.leaveQueue(queueTicketId, { reason? }) // give up a queued call's place in line; idempotent, never throws
|
|
228
241
|
|
|
@@ -353,6 +366,28 @@ a last line first.
|
|
|
353
366
|
On the lower-level hooks, `reconnect()` redials (a double tap mints once), and so does setting
|
|
354
367
|
`active` to false and back. `reset()` does not undo an end.
|
|
355
368
|
|
|
369
|
+
### Waiting for the character
|
|
370
|
+
|
|
371
|
+
Joining the room is not enough to start a conversation: the character's agent must also
|
|
372
|
+
arrive. The shared React and React Native lifecycle allows at most 30 seconds from the first
|
|
373
|
+
held grant to that readiness, including automatic retries and signaling reconnects. The
|
|
374
|
+
existing connect watchdog (12 seconds by default) also recovers a connected room whose agent
|
|
375
|
+
never arrives. A transport connection alone does not reset the retry count or buy more time.
|
|
376
|
+
|
|
377
|
+
When the budget or retry count runs out, the SDK releases the session, leaves the room and
|
|
378
|
+
ends with `phase.reason: "error"` / `onEnded({ reason: "failed" })`. The optional `phase.code`
|
|
379
|
+
distinguishes `agent_timeout` from `connection_timeout`; these are client observations, not
|
|
380
|
+
HTTP status codes. `agent_timeout` means at least one room connected but the call never became
|
|
381
|
+
ready; retries may also have transport delays. `connection_timeout` means no room connected.
|
|
382
|
+
While connecting, `phase.waitingFor` distinguishes `agent` from `transport`.
|
|
383
|
+
No automatic mint follows that failure; `reconnect()` starts a fresh budget. A call that
|
|
384
|
+
already reached live keeps LiveKit's normal recovery of its existing room.
|
|
385
|
+
|
|
386
|
+
On `useRealtimeSession` or `useSessionLifecycle`, `readyTimeoutSeconds` changes the total
|
|
387
|
+
budget (positive, default 30). `connectWatchdogSeconds` changes the per-attempt wait; disabling
|
|
388
|
+
that watchdog with zero still leaves the total budget in force. Neither setting fabricates
|
|
389
|
+
media readiness or changes the application's first-video-frame gate.
|
|
390
|
+
|
|
356
391
|
### Optional connection details
|
|
357
392
|
|
|
358
393
|
`AvatarCall` provides call status, actions and end reasons for your default UI. To show
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sessionModeSchema, liveKitSessionReleaseReasonSchema, RealtimeAvatar, ROUTE_TIMEOUT_MS, isQueued, RealtimeAvatarHttpError, RealtimeAvatarError } from './chunk-
|
|
1
|
+
import { sessionModeSchema, liveKitSessionReleaseReasonSchema, RealtimeAvatar, ROUTE_TIMEOUT_MS, isQueued, RealtimeAvatarHttpError, RealtimeAvatarError } from './chunk-YR5NJTEO.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
// ../http-client/src/generated/error-semantics.ts
|
|
@@ -328,6 +328,8 @@ function transcriptionToWire(input) {
|
|
|
328
328
|
...options.customVocabulary !== void 0 ? { custom_vocabulary: options.customVocabulary } : {}
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
+
var schema03 = z.enum(["minor-sexual-content-v1"]);
|
|
332
|
+
var contentPolicySchema = schema03;
|
|
331
333
|
|
|
332
334
|
// ../client/src/wire.ts
|
|
333
335
|
var DEFAULT_AVATAR_ID = "maria";
|
|
@@ -494,7 +496,8 @@ z.object({
|
|
|
494
496
|
support_edits: sessionSupportEditsSchema.optional(),
|
|
495
497
|
transcript_webhook: transcriptWebhookSchema.optional(),
|
|
496
498
|
client_metadata: clientMetadataSchema.optional(),
|
|
497
|
-
connection_history: z.boolean().optional()
|
|
499
|
+
connection_history: z.boolean().optional(),
|
|
500
|
+
content_policy: contentPolicySchema.optional()
|
|
498
501
|
}).strict().superRefine((value, ctx) => {
|
|
499
502
|
if (value.support_edits && value.render_backend === "generative") {
|
|
500
503
|
ctx.addIssue({
|
|
@@ -562,7 +565,8 @@ z.object({
|
|
|
562
565
|
supportEdits: sessionSupportEditsSchema.optional(),
|
|
563
566
|
transcriptWebhook: transcriptWebhookSchema.optional(),
|
|
564
567
|
clientMetadata: clientMetadataSchema.optional(),
|
|
565
|
-
connectionHistory: z.boolean().optional()
|
|
568
|
+
connectionHistory: z.boolean().optional(),
|
|
569
|
+
contentPolicy: contentPolicySchema.optional()
|
|
566
570
|
}).strict();
|
|
567
571
|
var liveKitSessionGrantSchema = z.object({
|
|
568
572
|
recording: recordingArtifactSchema.optional(),
|
|
@@ -665,7 +669,7 @@ var liveKitSessionReleaseReasonSchema = z.enum([
|
|
|
665
669
|
|
|
666
670
|
// ../http-client/src/client.ts
|
|
667
671
|
var DEFAULT_BASE_URL = "https://realtimeavatar.ai/api/v1";
|
|
668
|
-
var SDK_VERSION = "0.27.
|
|
672
|
+
var SDK_VERSION = "0.27.2";
|
|
669
673
|
var RealtimeAvatar = class {
|
|
670
674
|
#apiKey;
|
|
671
675
|
#baseUrl;
|
|
@@ -716,6 +720,7 @@ var RealtimeAvatar = class {
|
|
|
716
720
|
if (options.metadata !== void 0) body.client_metadata = options.metadata;
|
|
717
721
|
if (options.recording !== void 0) body.recording = recordingModeSchema.parse(options.recording);
|
|
718
722
|
if (options.connectionHistory !== void 0) body.connection_history = options.connectionHistory;
|
|
723
|
+
if (options.contentPolicy !== void 0) body.content_policy = contentPolicySchema.parse(options.contentPolicy);
|
|
719
724
|
if (options.clientTools) body.capabilities = ["client_tools"];
|
|
720
725
|
if (options.llm !== void 0) {
|
|
721
726
|
const { backend, model, baseUrl, token } = options.llm;
|
package/dist/express.d.ts
CHANGED
package/dist/express.js
CHANGED
package/dist/hono.d.ts
CHANGED
package/dist/hono.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as CallPolicy, C as CallMode, S as StartCallResult, E as EndCallOptions, A as Avatar, b as AvatarUpdate, c as AvatarSourceSwap, d as ClipLibraryDeclaration, e as ClipLibraryUpdate, L as LoopRedirect, f as ClipLibrary, g as AssetKind, h as Asset, i as ListSessionsOptions, U as UsageSessionPage, j as UsageSession, k as ListRecordingsQuery, l as ListRecordingsResponse, R as RecordingArtifact, m as RecordingAccessResponse, n as CreditBalance, T as TranscriptPayload } from './types-
|
|
2
|
-
export { o as AvatarClip, p as CallConnection, q as CallQueued, r as ClipDeclaration, s as ClipLibraryPlan, t as ClipSource, u as ContextMessage, v as EndCallReason, w as ExternalLlm, x as RecordingArtifactStatus, y as RecordingMode, V as VideoPolicy, z as isQueued, B as listRecordingsResponseSchema, D as recordingAccessResponseSchema, F as recordingArtifactSchema, G as recordingModeSchema } from './types-
|
|
1
|
+
import { a as CallPolicy, C as CallMode, S as StartCallResult, E as EndCallOptions, A as Avatar, b as AvatarUpdate, c as AvatarSourceSwap, d as ClipLibraryDeclaration, e as ClipLibraryUpdate, L as LoopRedirect, f as ClipLibrary, g as AssetKind, h as Asset, i as ListSessionsOptions, U as UsageSessionPage, j as UsageSession, k as ListRecordingsQuery, l as ListRecordingsResponse, R as RecordingArtifact, m as RecordingAccessResponse, n as CreditBalance, T as TranscriptPayload } from './types-D_s7ff7w.js';
|
|
2
|
+
export { o as AvatarClip, p as CallConnection, q as CallQueued, r as ClipDeclaration, s as ClipLibraryPlan, t as ClipSource, u as ContextMessage, v as EndCallReason, w as ExternalLlm, x as RecordingArtifactStatus, y as RecordingMode, V as VideoPolicy, z as isQueued, B as listRecordingsResponseSchema, D as recordingAccessResponseSchema, F as recordingArtifactSchema, G as recordingModeSchema } from './types-D_s7ff7w.js';
|
|
3
3
|
import { ConnectionHistoryResponse } from './connection-history.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, clipLibraryDeclarationSchema, isQueued, listRecordingsResponseSchema, recordingAccessResponseSchema, recordingArtifactSchema, recordingModeSchema, verifyTranscript } from './chunk-
|
|
1
|
+
export { RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, clipLibraryDeclarationSchema, isQueued, listRecordingsResponseSchema, recordingAccessResponseSchema, recordingArtifactSchema, recordingModeSchema, verifyTranscript } from './chunk-YR5NJTEO.js';
|
|
2
2
|
import './chunk-MCIXU6XP.js';
|
package/dist/nextjs.d.ts
CHANGED
package/dist/nextjs.js
CHANGED
|
@@ -242,6 +242,9 @@ declare const liveKitSessionRequestSchema: z.ZodObject<{
|
|
|
242
242
|
}, z.core.$strict>>;
|
|
243
243
|
clientMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
244
244
|
connectionHistory: z.ZodOptional<z.ZodBoolean>;
|
|
245
|
+
contentPolicy: z.ZodOptional<z.ZodEnum<{
|
|
246
|
+
"minor-sexual-content-v1": "minor-sexual-content-v1";
|
|
247
|
+
}>>;
|
|
245
248
|
}, z.core.$strict>;
|
|
246
249
|
declare const liveKitSessionGrantSchema: z.ZodObject<{
|
|
247
250
|
recording: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1370,6 +1373,9 @@ type ReconnectPolicy = {
|
|
|
1370
1373
|
* {@link SessionLifecycleApi.reconnect}.
|
|
1371
1374
|
*/
|
|
1372
1375
|
type SessionEndReason = "idle" | "disconnected" | "error" | "user";
|
|
1376
|
+
/** Client-observed readiness failure, not an HTTP/provider error code. `agent_timeout` means
|
|
1377
|
+
* at least one room connected without reaching agent readiness; retries may also have transport delays. */
|
|
1378
|
+
type SessionReadinessFailure = "agent_timeout" | "connection_timeout";
|
|
1373
1379
|
type SessionLifecyclePhase = {
|
|
1374
1380
|
kind: "idle";
|
|
1375
1381
|
} | {
|
|
@@ -1380,6 +1386,7 @@ type SessionLifecyclePhase = {
|
|
|
1380
1386
|
} | {
|
|
1381
1387
|
kind: "connecting";
|
|
1382
1388
|
grant: LiveKitSessionGrant;
|
|
1389
|
+
waitingFor?: "transport" | "agent";
|
|
1383
1390
|
} | {
|
|
1384
1391
|
kind: "live";
|
|
1385
1392
|
} | {
|
|
@@ -1392,9 +1399,11 @@ type SessionLifecyclePhase = {
|
|
|
1392
1399
|
attempt: number;
|
|
1393
1400
|
/** Native LiveKit recovery keeps the same grant; fresh-grant recovery re-mints. */
|
|
1394
1401
|
strategy: "in-place" | "fresh-grant";
|
|
1402
|
+
reason?: SessionReadinessFailure;
|
|
1395
1403
|
} | {
|
|
1396
1404
|
kind: "ended";
|
|
1397
1405
|
reason?: SessionEndReason;
|
|
1406
|
+
code?: SessionReadinessFailure;
|
|
1398
1407
|
};
|
|
1399
1408
|
type SessionLifecyclePhaseKind = SessionLifecyclePhase["kind"];
|
|
1400
1409
|
/**
|
|
@@ -1409,14 +1418,18 @@ type RecoveryState = {
|
|
|
1409
1418
|
} | {
|
|
1410
1419
|
kind: "refreshing";
|
|
1411
1420
|
attempt: number;
|
|
1421
|
+
reason?: SessionReadinessFailure;
|
|
1412
1422
|
} | {
|
|
1413
1423
|
kind: "reconnecting";
|
|
1414
1424
|
attempt: number;
|
|
1425
|
+
reason?: SessionReadinessFailure;
|
|
1415
1426
|
} | {
|
|
1416
1427
|
kind: "failed";
|
|
1428
|
+
reason?: SessionReadinessFailure;
|
|
1417
1429
|
} | {
|
|
1418
1430
|
kind: "ended";
|
|
1419
1431
|
reason?: SessionEndReason;
|
|
1432
|
+
code?: SessionReadinessFailure;
|
|
1420
1433
|
};
|
|
1421
1434
|
/**
|
|
1422
1435
|
* The CLIENT-OWNED idle budget (seconds): how long "quiet" before the client-
|
|
@@ -1466,8 +1479,8 @@ type UseSessionLifecycleInput<T extends LLMProvider = LLMProvider> = {
|
|
|
1466
1479
|
/** Auto-reconnect give-up bound. Default {@link MAX_RECONNECT_ATTEMPTS}. */
|
|
1467
1480
|
maxReconnectAttempts?: number;
|
|
1468
1481
|
/**
|
|
1469
|
-
*
|
|
1470
|
-
* (seconds). Default {@link DEFAULT_CONNECT_WATCHDOG_SECONDS}.
|
|
1482
|
+
* Per-attempt wait for the room connection, then for its first agent, before giving the
|
|
1483
|
+
* slot back (seconds). Default {@link DEFAULT_CONNECT_WATCHDOG_SECONDS}.
|
|
1471
1484
|
*
|
|
1472
1485
|
* A grant that never reaches a live room is invisible to every other timer here:
|
|
1473
1486
|
* the idle clock only runs once connected, and LiveKit reports no disconnect for
|
|
@@ -1476,9 +1489,16 @@ type UseSessionLifecycleInput<T extends LLMProvider = LLMProvider> = {
|
|
|
1476
1489
|
* the caller's only slot, so their retry is refused by a call they never saw.
|
|
1477
1490
|
* Measured in prod: 8 of 12 never-connected sessions held for 76-81s.
|
|
1478
1491
|
*
|
|
1479
|
-
* Set 0 to disable
|
|
1492
|
+
* Set 0 to disable per-attempt recovery; the total readiness budget still applies.
|
|
1480
1493
|
*/
|
|
1481
1494
|
connectWatchdogSeconds?: number;
|
|
1495
|
+
/**
|
|
1496
|
+
* Total pre-live readiness budget from the first held grant, including automatic retries.
|
|
1497
|
+
* A transport connection alone never resets it. Default {@link DEFAULT_READY_TIMEOUT_SECONDS}.
|
|
1498
|
+
* Non-positive/non-finite overrides use the default. Explicit reconnect starts a new budget.
|
|
1499
|
+
* The existing connect watchdog also bounds each connected room's wait for its first agent.
|
|
1500
|
+
*/
|
|
1501
|
+
readyTimeoutSeconds?: number;
|
|
1482
1502
|
/** Forwarded to {@link useLiveKitAvatarGrant}. Defaults true (queue auto-retry). */
|
|
1483
1503
|
autoRetryBusy?: boolean;
|
|
1484
1504
|
requestOptions?: UseLiveKitAvatarGrantInput<T>["requestOptions"];
|
|
@@ -1499,7 +1519,7 @@ type SessionLifecycleApi = {
|
|
|
1499
1519
|
grant: LiveKitSessionGrant | null;
|
|
1500
1520
|
/** The underlying capacity signal (queue position/size, error) — unchanged. */
|
|
1501
1521
|
capacity: LiveKitCapacityState;
|
|
1502
|
-
/** The DOM recovery contract: auto-reconnect attempts since the last
|
|
1522
|
+
/** The DOM recovery contract: auto-reconnect attempts since the last room + agent readiness. */
|
|
1503
1523
|
attempt: number;
|
|
1504
1524
|
/**
|
|
1505
1525
|
* ms until the CLIENT-ENFORCED idle end, or null when not connected/live. Drives
|
|
@@ -1558,6 +1578,8 @@ type SessionLifecycleApi = {
|
|
|
1558
1578
|
/** Reset to idle (mode/avatar change). Does not undo {@link end}: an ended call stays ended. */
|
|
1559
1579
|
reset: () => void;
|
|
1560
1580
|
};
|
|
1581
|
+
/** Maximum automatic startup wait across grants; successful room + agent readiness ends it. */
|
|
1582
|
+
declare const DEFAULT_READY_TIMEOUT_SECONDS = 30;
|
|
1561
1583
|
declare function useSessionLifecycle<T extends LLMProvider = LLMProvider>(input: UseSessionLifecycleInput<T>): SessionLifecycleApi;
|
|
1562
1584
|
/**
|
|
1563
1585
|
* The optional realtime-session sinks the bridge ALSO fills when given the richer
|
|
@@ -2026,4 +2048,4 @@ interface ProxyClientOptions {
|
|
|
2026
2048
|
}
|
|
2027
2049
|
declare function createProxyClient(options: ProxyClientOptions): AvatarSessionClient;
|
|
2028
2050
|
|
|
2029
|
-
export {
|
|
2051
|
+
export { MAX_SESSION_INSTRUCTIONS_CHARS 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 GovernorConfig as H, type GovernorSignal as I, type GovernorState as J, type GraceWindowClosedEvent as K, type LiveKitSessionGrant as L, type GraceWindowOpenEvent as M, type GraceWindowState as N, type IdleWarningEvent as O, type InboundRtpCursor as P, type InboundRtpReading as Q, type KnownBehaviorState as R, type LLMProvider as S, type LLMSelection as T, type LiveKitAvatarGrantState as U, type LiveKitAvatarGrantStatus as V, type LiveKitCapacityState as W, type LiveKitConnectionStatus as X, type LiveKitSessionRequest as Y, type LiveKitSessionStartResult as Z, MAX_RECONNECT_ATTEMPTS as _, AdaptivePlayoutController as a, type NetworkQualityStatus as a$, type ProxyClientOptions as a0, type QualityCap as a1, RECONNECT_BACKOFF_MS as a2, type RealtimeAvatarRequestOptions as a3, type RealtimeSessionApi as a4, type RealtimeSessionMedia as a5, type RealtimeSessionRoomSinks as a6, type ReconnectPolicy as a7, type ReconnectingEvent as a8, type RecoveryState as a9, isNativeLiveTrackSubscribed as aA, knownBehaviorStates as aB, mapTurnState as aC, readInboundRtp as aD, sessionBehaviorSchema as aE, sessionClipSchema as aF, splitCallTranscript as aG, useAvatarAdaptivePlayoutDelay as aH, useAvatarCamera as aI, useAvatarPlayoutDelay as aJ, useAvatarQualityGovernor as aK, useCallTranscript as aL, useLiveKitAvatarGrant as aM, useLiveTrackProducing as aN, useMicLease as aO, useRealtimeSession as aP, useReleaseMicLeaseOnTrackEnded as aQ, useSessionLifecycle as aR, type CallMicrophone as aS, type CallAudioPlayback as aT, type CallMicrophoneProblem as aU, AvatarVideoSurface as aV, type AvatarVideoSurfaceProps as aW, type LivePlaybackKeeper as aX, MIC_LEASE_ENDED_TIMEOUT_MS as aY, type MicLease as aZ, NETWORK_QUALITY_POLICY as a_, type RetryStep as aa, type SendTurnOptions as ab, type SessionBehavior as ac, type SessionClip as ad, type SessionClocks as ae, type SessionEndReason as af, type SessionLifecycleApi as ag, type SessionLifecyclePhase as ah, type SessionLifecyclePhaseKind as ai, SessionLifecycleRoomBridge as aj, type SessionLifecycleRoomBridgeProps as ak, type SessionReadinessFailure as al, type SurfaceLayers as am, type TranscriptSender as an, type TranscriptSenderOptions as ao, type TurnState as ap, type TurnTimeoutEvent as aq, type UseAvatarQualityGovernorInput as ar, type UseLiveKitAvatarGrantInput as as, type UseRealtimeSessionInput as at, type UseSessionLifecycleInput as au, type VoiceSpec as av, type VoiceSpecInput as aw, capacityErrorFromBusy as ax, capacityStateFromGrant as ay, createProxyClient as az, type AdaptivePlayoutDecision as b, type PlayableVideoElement as b0, RealtimeAvatarCapacityError as b1, RealtimeAvatarLiveKitRoom as b2, type RealtimeAvatarLiveKitRoomProps as b3, shouldReplayPendingTurn as b4, 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_GOVERNOR_CONFIG as o, DEFAULT_GRACE_CEILING_SECONDS as p, DEFAULT_GRACE_WINDOW_LEAD_SECONDS as q, DEFAULT_IDLE_SECONDS as r, DEFAULT_IDLE_WARN_LEAD_SECONDS as s, DEFAULT_READY_TIMEOUT_SECONDS as t, DEFAULT_TURN_TIMEOUT_SECONDS as u, type DeclaredInputSource as v, type EndedEvent as w, type ExtendResult as x, type FreezeReadingFn as y, type GovernorAction as z };
|
package/dist/react-native.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
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_GOVERNOR_CONFIG, p as DEFAULT_GRACE_CEILING_SECONDS, q as DEFAULT_GRACE_WINDOW_LEAD_SECONDS, r as DEFAULT_IDLE_SECONDS, s as DEFAULT_IDLE_WARN_LEAD_SECONDS, t as
|
|
3
|
+
import { L as LiveKitSessionGrant, A as AvatarVideoFit } from './proxy-client-DW_EOvmE.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_GOVERNOR_CONFIG, p as DEFAULT_GRACE_CEILING_SECONDS, q as DEFAULT_GRACE_WINDOW_LEAD_SECONDS, r as DEFAULT_IDLE_SECONDS, s as DEFAULT_IDLE_WARN_LEAD_SECONDS, t as DEFAULT_READY_TIMEOUT_SECONDS, u as DEFAULT_TURN_TIMEOUT_SECONDS, v as DeclaredInputSource, E as EndReason, w as EndedEvent, x as ExtendResult, F as FishTtsModel, y as FreezeReadingFn, G as Governor, z as GovernorAction, H as GovernorConfig, I as GovernorSignal, J as GovernorState, K as GraceWindowClosedEvent, M as GraceWindowOpenEvent, N as GraceWindowState, O as IdleWarningEvent, P as InboundRtpCursor, Q as InboundRtpReading, R as KnownBehaviorState, S as LLMProvider, T as LLMSelection, U as LiveKitAvatarGrantState, V as LiveKitAvatarGrantStatus, W as LiveKitCapacityState, X as LiveKitConnectionStatus, Y as LiveKitSessionRequest, Z as LiveKitSessionStartResult, _ as MAX_RECONNECT_ATTEMPTS, $ as MAX_SESSION_INSTRUCTIONS_CHARS, a0 as ProxyClientOptions, a1 as QualityCap, a2 as RECONNECT_BACKOFF_MS, a3 as RealtimeAvatarRequestOptions, a4 as RealtimeSessionApi, a5 as RealtimeSessionMedia, a6 as RealtimeSessionRoomSinks, a7 as ReconnectPolicy, a8 as ReconnectingEvent, a9 as RecoveryState, aa as RetryStep, ab as SendTurnOptions, ac as SessionBehavior, ad as SessionClip, ae as SessionClocks, af as SessionEndReason, ag as SessionLifecycleApi, ah as SessionLifecyclePhase, ai as SessionLifecyclePhaseKind, aj as SessionLifecycleRoomBridge, ak as SessionLifecycleRoomBridgeProps, al as SessionReadinessFailure, am as SurfaceLayers, an as TranscriptSender, ao as TranscriptSenderOptions, ap as TurnState, aq as TurnTimeoutEvent, ar as UseAvatarQualityGovernorInput, as as UseLiveKitAvatarGrantInput, at as UseRealtimeSessionInput, au as UseSessionLifecycleInput, av as VoiceSpec, aw as VoiceSpecInput, ax as capacityErrorFromBusy, ay as capacityStateFromGrant, az as createProxyClient, aA as isNativeLiveTrackSubscribed, aB as knownBehaviorStates, aC as mapTurnState, aD as readInboundRtp, aE as sessionBehaviorSchema, aF as sessionClipSchema, aG as splitCallTranscript, aH as useAvatarAdaptivePlayoutDelay, aI as useAvatarCamera, aJ as useAvatarPlayoutDelay, aK as useAvatarQualityGovernor, aL as useCallTranscript, aM as useLiveKitAvatarGrant, aN as useLiveTrackProducing, aO as useMicLease, aP as useRealtimeSession, aQ as useReleaseMicLeaseOnTrackEnded, aR as useSessionLifecycle } from './proxy-client-DW_EOvmE.js';
|
|
5
5
|
import { ReactNode, ReactElement } from 'react';
|
|
6
6
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
7
7
|
export { useChat, useConnectionState, useLocalParticipant, useRoomContext, useTrackToggle, useTranscriptions, useVoiceAssistant } from '@livekit/components-react';
|