@vivix-ai/ivi-frontend-sdk 0.3.9 → 0.3.11
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 +44 -0
- package/dist/index.cjs +501 -63
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -3
- package/dist/index.d.ts +37 -3
- package/dist/index.js +501 -63
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReceiveSessionSourceReadyPayload, IviStream, IviConversationItem, IviRealtimeSessionConfig, IviStageComposition, IviTrack, IviSourceAsset, ReceiveSessionSourceFailedPayload, IviConversationItemContent, ReceiveSessionEndedEvent, ParsedIviEvent, IviRealtimeResponseCreateParams, ReceiveConversationItemAddedEvent, ReceiveConversationItemDoneEvent, ReceiveResponseCreatedEvent, IviClient, IviClientConfig } from '@vivix-ai/ivi-sdk-ts';
|
|
2
|
+
import { Tracer, Context, Attributes, Span } from '@opentelemetry/api';
|
|
2
3
|
import { LiveKitBrowserTransportConfig } from '@vivix-ai/ivi-sdk-ts/transports/livekit-browser';
|
|
3
4
|
import { WebSocketTransportConfig } from '@vivix-ai/ivi-sdk-ts/transports/websocket';
|
|
4
5
|
import { ReactNode, CSSProperties, ReactElement, VideoHTMLAttributes, ImgHTMLAttributes } from 'react';
|
|
@@ -9,6 +10,27 @@ type IviSourcePlayback = NonNullable<ReceiveSessionSourceReadyPayload["playback"
|
|
|
9
10
|
type IviSourcePlaybackTrtc = NonNullable<IviSourcePlayback["trtc"]>;
|
|
10
11
|
type IviStreamStatus = IviStream["status"];
|
|
11
12
|
|
|
13
|
+
interface IviFrontendTelemetryOptions {
|
|
14
|
+
/**
|
|
15
|
+
* OpenTelemetry tracer。未传入时使用全局 `trace.getTracer("@vivix-ai/ivi-frontend-sdk")`。
|
|
16
|
+
*
|
|
17
|
+
* SDK 只依赖 `@opentelemetry/api`,不会内置 exporter/provider;未配置 provider 时这些 span 会是 no-op。
|
|
18
|
+
*/
|
|
19
|
+
tracer?: Tracer;
|
|
20
|
+
/**
|
|
21
|
+
* 外部调用链的父 context。通常由业务点击、建会话或上层 SDK span 内传入 `context.active()`。
|
|
22
|
+
*/
|
|
23
|
+
context?: Context;
|
|
24
|
+
/**
|
|
25
|
+
* 追加到每个 frontend SDK span 上的低基数字段。不要放 token、密钥、完整 payload 或用户文本。
|
|
26
|
+
*/
|
|
27
|
+
attributes?: Attributes;
|
|
28
|
+
}
|
|
29
|
+
interface IviTelemetrySpanHandle {
|
|
30
|
+
span: Span;
|
|
31
|
+
context: Context;
|
|
32
|
+
}
|
|
33
|
+
|
|
12
34
|
type IviRuntimeStatus = "idle" | "connecting" | "syncing" | "running" | "stopped";
|
|
13
35
|
interface IviRuntimeState {
|
|
14
36
|
status: IviRuntimeStatus;
|
|
@@ -146,6 +168,10 @@ interface IviRuntimeCoordinatorConfig {
|
|
|
146
168
|
* TRTC SDK AIDenoiser 降噪配置。默认开启;传 false 可关闭。
|
|
147
169
|
*/
|
|
148
170
|
trtcAIDenoiser?: boolean | IviRuntimeTrtcAIDenoiserOptions;
|
|
171
|
+
/**
|
|
172
|
+
* OpenTelemetry 埋点配置;SDK 只创建 span,不负责配置 provider/exporter。
|
|
173
|
+
*/
|
|
174
|
+
telemetry?: IviFrontendTelemetryOptions;
|
|
149
175
|
}
|
|
150
176
|
/**
|
|
151
177
|
* 用户输入触发回复链路配置。
|
|
@@ -221,10 +247,11 @@ declare class TrtcSourceManager {
|
|
|
221
247
|
private readonly onLog?;
|
|
222
248
|
private readonly onTrtcEvent?;
|
|
223
249
|
private readonly aiDenoiser?;
|
|
250
|
+
private readonly telemetry?;
|
|
224
251
|
private readonly sessions;
|
|
225
252
|
private readonly sourceSessionKeys;
|
|
226
253
|
private readonly listeners;
|
|
227
|
-
constructor(onLog?: IviRuntimeLogCallback | undefined, onTrtcEvent?: IviRuntimeTrtcEventListener | undefined, aiDenoiser?: (boolean | IviRuntimeTrtcAIDenoiserOptions) | undefined);
|
|
254
|
+
constructor(onLog?: IviRuntimeLogCallback | undefined, onTrtcEvent?: IviRuntimeTrtcEventListener | undefined, aiDenoiser?: (boolean | IviRuntimeTrtcAIDenoiserOptions) | undefined, telemetry?: IviFrontendTelemetryOptions | undefined);
|
|
228
255
|
/**
|
|
229
256
|
* 将 runtime 当前 sources 与 TRTC 会话池对齐:
|
|
230
257
|
* - 对 ready + trtc 的 source 进行 upsert(必要时建立连接)
|
|
@@ -284,6 +311,8 @@ declare class TrtcSourceManager {
|
|
|
284
311
|
*/
|
|
285
312
|
private applyAudioPolicy;
|
|
286
313
|
private applyAIDenoiserPolicy;
|
|
314
|
+
private endRemoteVideoAvailableWait;
|
|
315
|
+
private failRemoteVideoAvailableWait;
|
|
287
316
|
/**
|
|
288
317
|
* 销毁单个 source 会话:
|
|
289
318
|
* 解绑事件、停止远端视频、退出房间并销毁客户端。
|
|
@@ -341,9 +370,10 @@ type LivekitSourceListener = (snapshot: LivekitSourceSnapshot) => void;
|
|
|
341
370
|
declare class LivekitSourceManager {
|
|
342
371
|
private readonly onLog?;
|
|
343
372
|
private readonly onRemoteVideoAvailable?;
|
|
373
|
+
private readonly telemetry?;
|
|
344
374
|
private readonly sessions;
|
|
345
375
|
private readonly listeners;
|
|
346
|
-
constructor(onLog?: IviRuntimeLogCallback | undefined, onRemoteVideoAvailable?: ((sourceId: string) => void) | undefined);
|
|
376
|
+
constructor(onLog?: IviRuntimeLogCallback | undefined, onRemoteVideoAvailable?: ((sourceId: string) => void) | undefined, telemetry?: IviFrontendTelemetryOptions | undefined);
|
|
347
377
|
/**
|
|
348
378
|
* 与 runtime 当前 sources 对齐:
|
|
349
379
|
* - 对 ready + livekit 的 source 进行 upsert(必要时建立连接);
|
|
@@ -471,6 +501,7 @@ declare class IviRuntimeCoordinator {
|
|
|
471
501
|
*/
|
|
472
502
|
stop(): void;
|
|
473
503
|
getState(): IviRuntimeState;
|
|
504
|
+
getTelemetryOptions(): IviRuntimeCoordinatorConfig["telemetry"];
|
|
474
505
|
onStateChange(listener: (state: IviRuntimeState) => void): () => void;
|
|
475
506
|
onEvent(listener: IviRuntimeEventListener): () => void;
|
|
476
507
|
onTrtcEvent(listener: IviRuntimeTrtcEventListener): () => void;
|
|
@@ -591,6 +622,7 @@ interface IviCreateIVISessionHttpOptions {
|
|
|
591
622
|
fetch?: typeof fetch;
|
|
592
623
|
credentials?: RequestCredentials;
|
|
593
624
|
signal?: AbortSignal;
|
|
625
|
+
telemetry?: IviFrontendTelemetryOptions;
|
|
594
626
|
}
|
|
595
627
|
interface IviPrebuiltPlayback {
|
|
596
628
|
sourceId: string;
|
|
@@ -626,6 +658,7 @@ interface IviRuntimeFromSessionOptions {
|
|
|
626
658
|
clientConfig?: Omit<IviClientConfig, "transport">;
|
|
627
659
|
runtimeConfig?: IviRuntimeCoordinatorConfig;
|
|
628
660
|
websocket?: IviRuntimeWebSocketOptions;
|
|
661
|
+
telemetry?: IviFrontendTelemetryOptions;
|
|
629
662
|
}
|
|
630
663
|
interface IviSessionRuntime {
|
|
631
664
|
session: IviCreateIVISessionResult;
|
|
@@ -650,6 +683,7 @@ declare function normalizeCreateIVISessionResponse(responseBody: unknown, reques
|
|
|
650
683
|
type IviFrontendClientConfig = IviClientConfig;
|
|
651
684
|
interface IviFrontendSdkConfig {
|
|
652
685
|
http?: IviCreateIVISessionHttpOptions;
|
|
686
|
+
telemetry?: IviFrontendTelemetryOptions;
|
|
653
687
|
}
|
|
654
688
|
declare class IviFrontendSdk {
|
|
655
689
|
private readonly config;
|
|
@@ -952,4 +986,4 @@ declare function useIviSessionRuntime(config: UseIviSessionRuntimeConfig): UseIv
|
|
|
952
986
|
|
|
953
987
|
declare function useIviStageView(): IviStageViewContextValue;
|
|
954
988
|
|
|
955
|
-
export { DEFAULT_HIDE_COMPLETED_SUBTITLE_AFTER_MS, EMPTY_RUNTIME_STATE, IVILivekitPlayer, type IVILivekitPlayerProps, IVIStageView, type IVIStageViewProps, IVISubtitleOverlay, type IVISubtitleOverlayProps, type IVISubtitleOverlayStyle, IVITrackSlot, type IVITrackSlotProps, IVITrtcPlayer, type IVITrtcPlayerProps, type IviCompletedSubtitleDecision, type IviCompletedSubtitleDecisionResult, IviCreateIVISessionError, type IviCreateIVISessionHttpOptions, type IviCreateIVISessionPrebuiltCharacter, type IviCreateIVISessionPrebuiltStream, type IviCreateIVISessionRequest, type IviCreateIVISessionResult, type IviCreateIVISessionRuntimeOptions, type IviCreateSessionStreamType, type IviFrontendClientConfig, IviFrontendSdk, type IviFrontendSdkConfig, type IviManagedRuntimeConfig, type IviManagedRuntimeLogCallback, type IviManagedRuntimeLogEntry, type IviManagedRuntimeLogLevel, type IviManagedRuntimeLogSource, type IviPrebuiltPlayback, type IviRuntimeBootstrapSource, type IviRuntimeBootstrapViewState, type IviRuntimeConversationItem, type IviRuntimeConversationLifecycle, type IviRuntimeConversationStatus, IviRuntimeCoordinator, type IviRuntimeCoordinatorConfig, IviRuntimeDispatcher, type IviRuntimeDispatcherConfig, type IviRuntimeEventListener, type IviRuntimeFromSessionOptions, type IviRuntimeLogCallback, type IviRuntimeLogEntry, type IviRuntimeLogLevel, type IviRuntimeSource, type IviRuntimeSourceOrigin, type IviRuntimeSourcePreloadState, type IviRuntimeState, type IviRuntimeStatus, type IviRuntimeStream, type IviRuntimeTrtcAIDenoiserMode, type IviRuntimeTrtcAIDenoiserOptions, type IviRuntimeTrtcEvent, type IviRuntimeTrtcEventListener, type IviRuntimeTrtcEventType, type IviRuntimeUserTextToResponseCallbacks, type IviRuntimeUserTextToResponseOptions, type IviRuntimeUserTextToResponseResult, type IviRuntimeWebSocketOptions, type IviSessionRuntime, type IviSessionRuntimeHookStatus, type IviSourcePlaybackLivekit, type IviSourcePlaybackLivekitDescriptor, type IviStageSlotBinding, type IviStageViewContextValue, type IviSubtitleCompletedContext, type IviSubtitleCompletedHandler, type IviSubtitleCompletedReason, type IviSubtitleItem, type IviSubtitleRole, type IviSubtitleSource, type IviUseSubtitlesOptions, LivekitSourceManager, TrtcSourceManager, type UseIviSessionRuntimeConfig, type UseIviSessionRuntimeResult, createIVISession, createIVISessionRuntime, createRuntimeFromSession, isLivekitSourcePlayback, isReadyLivekitRuntimeSource, isSameLivekitConfig, normalizeCreateIVISessionResponse, toCpCreateIVISessionRequestBody, useIviSessionRuntime, useIviStageView, useIviSubtitles, useManagedIviRuntime, useRuntimeState };
|
|
989
|
+
export { DEFAULT_HIDE_COMPLETED_SUBTITLE_AFTER_MS, EMPTY_RUNTIME_STATE, IVILivekitPlayer, type IVILivekitPlayerProps, IVIStageView, type IVIStageViewProps, IVISubtitleOverlay, type IVISubtitleOverlayProps, type IVISubtitleOverlayStyle, IVITrackSlot, type IVITrackSlotProps, IVITrtcPlayer, type IVITrtcPlayerProps, type IviCompletedSubtitleDecision, type IviCompletedSubtitleDecisionResult, IviCreateIVISessionError, type IviCreateIVISessionHttpOptions, type IviCreateIVISessionPrebuiltCharacter, type IviCreateIVISessionPrebuiltStream, type IviCreateIVISessionRequest, type IviCreateIVISessionResult, type IviCreateIVISessionRuntimeOptions, type IviCreateSessionStreamType, type IviFrontendClientConfig, IviFrontendSdk, type IviFrontendSdkConfig, type IviFrontendTelemetryOptions, type IviManagedRuntimeConfig, type IviManagedRuntimeLogCallback, type IviManagedRuntimeLogEntry, type IviManagedRuntimeLogLevel, type IviManagedRuntimeLogSource, type IviPrebuiltPlayback, type IviRuntimeBootstrapSource, type IviRuntimeBootstrapViewState, type IviRuntimeConversationItem, type IviRuntimeConversationLifecycle, type IviRuntimeConversationStatus, IviRuntimeCoordinator, type IviRuntimeCoordinatorConfig, IviRuntimeDispatcher, type IviRuntimeDispatcherConfig, type IviRuntimeEventListener, type IviRuntimeFromSessionOptions, type IviRuntimeLogCallback, type IviRuntimeLogEntry, type IviRuntimeLogLevel, type IviRuntimeSource, type IviRuntimeSourceOrigin, type IviRuntimeSourcePreloadState, type IviRuntimeState, type IviRuntimeStatus, type IviRuntimeStream, type IviRuntimeTrtcAIDenoiserMode, type IviRuntimeTrtcAIDenoiserOptions, type IviRuntimeTrtcEvent, type IviRuntimeTrtcEventListener, type IviRuntimeTrtcEventType, type IviRuntimeUserTextToResponseCallbacks, type IviRuntimeUserTextToResponseOptions, type IviRuntimeUserTextToResponseResult, type IviRuntimeWebSocketOptions, type IviSessionRuntime, type IviSessionRuntimeHookStatus, type IviSourcePlaybackLivekit, type IviSourcePlaybackLivekitDescriptor, type IviStageSlotBinding, type IviStageViewContextValue, type IviSubtitleCompletedContext, type IviSubtitleCompletedHandler, type IviSubtitleCompletedReason, type IviSubtitleItem, type IviSubtitleRole, type IviSubtitleSource, type IviTelemetrySpanHandle, type IviUseSubtitlesOptions, LivekitSourceManager, TrtcSourceManager, type UseIviSessionRuntimeConfig, type UseIviSessionRuntimeResult, createIVISession, createIVISessionRuntime, createRuntimeFromSession, isLivekitSourcePlayback, isReadyLivekitRuntimeSource, isSameLivekitConfig, normalizeCreateIVISessionResponse, toCpCreateIVISessionRequestBody, useIviSessionRuntime, useIviStageView, useIviSubtitles, useManagedIviRuntime, useRuntimeState };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReceiveSessionSourceReadyPayload, IviStream, IviConversationItem, IviRealtimeSessionConfig, IviStageComposition, IviTrack, IviSourceAsset, ReceiveSessionSourceFailedPayload, IviConversationItemContent, ReceiveSessionEndedEvent, ParsedIviEvent, IviRealtimeResponseCreateParams, ReceiveConversationItemAddedEvent, ReceiveConversationItemDoneEvent, ReceiveResponseCreatedEvent, IviClient, IviClientConfig } from '@vivix-ai/ivi-sdk-ts';
|
|
2
|
+
import { Tracer, Context, Attributes, Span } from '@opentelemetry/api';
|
|
2
3
|
import { LiveKitBrowserTransportConfig } from '@vivix-ai/ivi-sdk-ts/transports/livekit-browser';
|
|
3
4
|
import { WebSocketTransportConfig } from '@vivix-ai/ivi-sdk-ts/transports/websocket';
|
|
4
5
|
import { ReactNode, CSSProperties, ReactElement, VideoHTMLAttributes, ImgHTMLAttributes } from 'react';
|
|
@@ -9,6 +10,27 @@ type IviSourcePlayback = NonNullable<ReceiveSessionSourceReadyPayload["playback"
|
|
|
9
10
|
type IviSourcePlaybackTrtc = NonNullable<IviSourcePlayback["trtc"]>;
|
|
10
11
|
type IviStreamStatus = IviStream["status"];
|
|
11
12
|
|
|
13
|
+
interface IviFrontendTelemetryOptions {
|
|
14
|
+
/**
|
|
15
|
+
* OpenTelemetry tracer。未传入时使用全局 `trace.getTracer("@vivix-ai/ivi-frontend-sdk")`。
|
|
16
|
+
*
|
|
17
|
+
* SDK 只依赖 `@opentelemetry/api`,不会内置 exporter/provider;未配置 provider 时这些 span 会是 no-op。
|
|
18
|
+
*/
|
|
19
|
+
tracer?: Tracer;
|
|
20
|
+
/**
|
|
21
|
+
* 外部调用链的父 context。通常由业务点击、建会话或上层 SDK span 内传入 `context.active()`。
|
|
22
|
+
*/
|
|
23
|
+
context?: Context;
|
|
24
|
+
/**
|
|
25
|
+
* 追加到每个 frontend SDK span 上的低基数字段。不要放 token、密钥、完整 payload 或用户文本。
|
|
26
|
+
*/
|
|
27
|
+
attributes?: Attributes;
|
|
28
|
+
}
|
|
29
|
+
interface IviTelemetrySpanHandle {
|
|
30
|
+
span: Span;
|
|
31
|
+
context: Context;
|
|
32
|
+
}
|
|
33
|
+
|
|
12
34
|
type IviRuntimeStatus = "idle" | "connecting" | "syncing" | "running" | "stopped";
|
|
13
35
|
interface IviRuntimeState {
|
|
14
36
|
status: IviRuntimeStatus;
|
|
@@ -146,6 +168,10 @@ interface IviRuntimeCoordinatorConfig {
|
|
|
146
168
|
* TRTC SDK AIDenoiser 降噪配置。默认开启;传 false 可关闭。
|
|
147
169
|
*/
|
|
148
170
|
trtcAIDenoiser?: boolean | IviRuntimeTrtcAIDenoiserOptions;
|
|
171
|
+
/**
|
|
172
|
+
* OpenTelemetry 埋点配置;SDK 只创建 span,不负责配置 provider/exporter。
|
|
173
|
+
*/
|
|
174
|
+
telemetry?: IviFrontendTelemetryOptions;
|
|
149
175
|
}
|
|
150
176
|
/**
|
|
151
177
|
* 用户输入触发回复链路配置。
|
|
@@ -221,10 +247,11 @@ declare class TrtcSourceManager {
|
|
|
221
247
|
private readonly onLog?;
|
|
222
248
|
private readonly onTrtcEvent?;
|
|
223
249
|
private readonly aiDenoiser?;
|
|
250
|
+
private readonly telemetry?;
|
|
224
251
|
private readonly sessions;
|
|
225
252
|
private readonly sourceSessionKeys;
|
|
226
253
|
private readonly listeners;
|
|
227
|
-
constructor(onLog?: IviRuntimeLogCallback | undefined, onTrtcEvent?: IviRuntimeTrtcEventListener | undefined, aiDenoiser?: (boolean | IviRuntimeTrtcAIDenoiserOptions) | undefined);
|
|
254
|
+
constructor(onLog?: IviRuntimeLogCallback | undefined, onTrtcEvent?: IviRuntimeTrtcEventListener | undefined, aiDenoiser?: (boolean | IviRuntimeTrtcAIDenoiserOptions) | undefined, telemetry?: IviFrontendTelemetryOptions | undefined);
|
|
228
255
|
/**
|
|
229
256
|
* 将 runtime 当前 sources 与 TRTC 会话池对齐:
|
|
230
257
|
* - 对 ready + trtc 的 source 进行 upsert(必要时建立连接)
|
|
@@ -284,6 +311,8 @@ declare class TrtcSourceManager {
|
|
|
284
311
|
*/
|
|
285
312
|
private applyAudioPolicy;
|
|
286
313
|
private applyAIDenoiserPolicy;
|
|
314
|
+
private endRemoteVideoAvailableWait;
|
|
315
|
+
private failRemoteVideoAvailableWait;
|
|
287
316
|
/**
|
|
288
317
|
* 销毁单个 source 会话:
|
|
289
318
|
* 解绑事件、停止远端视频、退出房间并销毁客户端。
|
|
@@ -341,9 +370,10 @@ type LivekitSourceListener = (snapshot: LivekitSourceSnapshot) => void;
|
|
|
341
370
|
declare class LivekitSourceManager {
|
|
342
371
|
private readonly onLog?;
|
|
343
372
|
private readonly onRemoteVideoAvailable?;
|
|
373
|
+
private readonly telemetry?;
|
|
344
374
|
private readonly sessions;
|
|
345
375
|
private readonly listeners;
|
|
346
|
-
constructor(onLog?: IviRuntimeLogCallback | undefined, onRemoteVideoAvailable?: ((sourceId: string) => void) | undefined);
|
|
376
|
+
constructor(onLog?: IviRuntimeLogCallback | undefined, onRemoteVideoAvailable?: ((sourceId: string) => void) | undefined, telemetry?: IviFrontendTelemetryOptions | undefined);
|
|
347
377
|
/**
|
|
348
378
|
* 与 runtime 当前 sources 对齐:
|
|
349
379
|
* - 对 ready + livekit 的 source 进行 upsert(必要时建立连接);
|
|
@@ -471,6 +501,7 @@ declare class IviRuntimeCoordinator {
|
|
|
471
501
|
*/
|
|
472
502
|
stop(): void;
|
|
473
503
|
getState(): IviRuntimeState;
|
|
504
|
+
getTelemetryOptions(): IviRuntimeCoordinatorConfig["telemetry"];
|
|
474
505
|
onStateChange(listener: (state: IviRuntimeState) => void): () => void;
|
|
475
506
|
onEvent(listener: IviRuntimeEventListener): () => void;
|
|
476
507
|
onTrtcEvent(listener: IviRuntimeTrtcEventListener): () => void;
|
|
@@ -591,6 +622,7 @@ interface IviCreateIVISessionHttpOptions {
|
|
|
591
622
|
fetch?: typeof fetch;
|
|
592
623
|
credentials?: RequestCredentials;
|
|
593
624
|
signal?: AbortSignal;
|
|
625
|
+
telemetry?: IviFrontendTelemetryOptions;
|
|
594
626
|
}
|
|
595
627
|
interface IviPrebuiltPlayback {
|
|
596
628
|
sourceId: string;
|
|
@@ -626,6 +658,7 @@ interface IviRuntimeFromSessionOptions {
|
|
|
626
658
|
clientConfig?: Omit<IviClientConfig, "transport">;
|
|
627
659
|
runtimeConfig?: IviRuntimeCoordinatorConfig;
|
|
628
660
|
websocket?: IviRuntimeWebSocketOptions;
|
|
661
|
+
telemetry?: IviFrontendTelemetryOptions;
|
|
629
662
|
}
|
|
630
663
|
interface IviSessionRuntime {
|
|
631
664
|
session: IviCreateIVISessionResult;
|
|
@@ -650,6 +683,7 @@ declare function normalizeCreateIVISessionResponse(responseBody: unknown, reques
|
|
|
650
683
|
type IviFrontendClientConfig = IviClientConfig;
|
|
651
684
|
interface IviFrontendSdkConfig {
|
|
652
685
|
http?: IviCreateIVISessionHttpOptions;
|
|
686
|
+
telemetry?: IviFrontendTelemetryOptions;
|
|
653
687
|
}
|
|
654
688
|
declare class IviFrontendSdk {
|
|
655
689
|
private readonly config;
|
|
@@ -952,4 +986,4 @@ declare function useIviSessionRuntime(config: UseIviSessionRuntimeConfig): UseIv
|
|
|
952
986
|
|
|
953
987
|
declare function useIviStageView(): IviStageViewContextValue;
|
|
954
988
|
|
|
955
|
-
export { DEFAULT_HIDE_COMPLETED_SUBTITLE_AFTER_MS, EMPTY_RUNTIME_STATE, IVILivekitPlayer, type IVILivekitPlayerProps, IVIStageView, type IVIStageViewProps, IVISubtitleOverlay, type IVISubtitleOverlayProps, type IVISubtitleOverlayStyle, IVITrackSlot, type IVITrackSlotProps, IVITrtcPlayer, type IVITrtcPlayerProps, type IviCompletedSubtitleDecision, type IviCompletedSubtitleDecisionResult, IviCreateIVISessionError, type IviCreateIVISessionHttpOptions, type IviCreateIVISessionPrebuiltCharacter, type IviCreateIVISessionPrebuiltStream, type IviCreateIVISessionRequest, type IviCreateIVISessionResult, type IviCreateIVISessionRuntimeOptions, type IviCreateSessionStreamType, type IviFrontendClientConfig, IviFrontendSdk, type IviFrontendSdkConfig, type IviManagedRuntimeConfig, type IviManagedRuntimeLogCallback, type IviManagedRuntimeLogEntry, type IviManagedRuntimeLogLevel, type IviManagedRuntimeLogSource, type IviPrebuiltPlayback, type IviRuntimeBootstrapSource, type IviRuntimeBootstrapViewState, type IviRuntimeConversationItem, type IviRuntimeConversationLifecycle, type IviRuntimeConversationStatus, IviRuntimeCoordinator, type IviRuntimeCoordinatorConfig, IviRuntimeDispatcher, type IviRuntimeDispatcherConfig, type IviRuntimeEventListener, type IviRuntimeFromSessionOptions, type IviRuntimeLogCallback, type IviRuntimeLogEntry, type IviRuntimeLogLevel, type IviRuntimeSource, type IviRuntimeSourceOrigin, type IviRuntimeSourcePreloadState, type IviRuntimeState, type IviRuntimeStatus, type IviRuntimeStream, type IviRuntimeTrtcAIDenoiserMode, type IviRuntimeTrtcAIDenoiserOptions, type IviRuntimeTrtcEvent, type IviRuntimeTrtcEventListener, type IviRuntimeTrtcEventType, type IviRuntimeUserTextToResponseCallbacks, type IviRuntimeUserTextToResponseOptions, type IviRuntimeUserTextToResponseResult, type IviRuntimeWebSocketOptions, type IviSessionRuntime, type IviSessionRuntimeHookStatus, type IviSourcePlaybackLivekit, type IviSourcePlaybackLivekitDescriptor, type IviStageSlotBinding, type IviStageViewContextValue, type IviSubtitleCompletedContext, type IviSubtitleCompletedHandler, type IviSubtitleCompletedReason, type IviSubtitleItem, type IviSubtitleRole, type IviSubtitleSource, type IviUseSubtitlesOptions, LivekitSourceManager, TrtcSourceManager, type UseIviSessionRuntimeConfig, type UseIviSessionRuntimeResult, createIVISession, createIVISessionRuntime, createRuntimeFromSession, isLivekitSourcePlayback, isReadyLivekitRuntimeSource, isSameLivekitConfig, normalizeCreateIVISessionResponse, toCpCreateIVISessionRequestBody, useIviSessionRuntime, useIviStageView, useIviSubtitles, useManagedIviRuntime, useRuntimeState };
|
|
989
|
+
export { DEFAULT_HIDE_COMPLETED_SUBTITLE_AFTER_MS, EMPTY_RUNTIME_STATE, IVILivekitPlayer, type IVILivekitPlayerProps, IVIStageView, type IVIStageViewProps, IVISubtitleOverlay, type IVISubtitleOverlayProps, type IVISubtitleOverlayStyle, IVITrackSlot, type IVITrackSlotProps, IVITrtcPlayer, type IVITrtcPlayerProps, type IviCompletedSubtitleDecision, type IviCompletedSubtitleDecisionResult, IviCreateIVISessionError, type IviCreateIVISessionHttpOptions, type IviCreateIVISessionPrebuiltCharacter, type IviCreateIVISessionPrebuiltStream, type IviCreateIVISessionRequest, type IviCreateIVISessionResult, type IviCreateIVISessionRuntimeOptions, type IviCreateSessionStreamType, type IviFrontendClientConfig, IviFrontendSdk, type IviFrontendSdkConfig, type IviFrontendTelemetryOptions, type IviManagedRuntimeConfig, type IviManagedRuntimeLogCallback, type IviManagedRuntimeLogEntry, type IviManagedRuntimeLogLevel, type IviManagedRuntimeLogSource, type IviPrebuiltPlayback, type IviRuntimeBootstrapSource, type IviRuntimeBootstrapViewState, type IviRuntimeConversationItem, type IviRuntimeConversationLifecycle, type IviRuntimeConversationStatus, IviRuntimeCoordinator, type IviRuntimeCoordinatorConfig, IviRuntimeDispatcher, type IviRuntimeDispatcherConfig, type IviRuntimeEventListener, type IviRuntimeFromSessionOptions, type IviRuntimeLogCallback, type IviRuntimeLogEntry, type IviRuntimeLogLevel, type IviRuntimeSource, type IviRuntimeSourceOrigin, type IviRuntimeSourcePreloadState, type IviRuntimeState, type IviRuntimeStatus, type IviRuntimeStream, type IviRuntimeTrtcAIDenoiserMode, type IviRuntimeTrtcAIDenoiserOptions, type IviRuntimeTrtcEvent, type IviRuntimeTrtcEventListener, type IviRuntimeTrtcEventType, type IviRuntimeUserTextToResponseCallbacks, type IviRuntimeUserTextToResponseOptions, type IviRuntimeUserTextToResponseResult, type IviRuntimeWebSocketOptions, type IviSessionRuntime, type IviSessionRuntimeHookStatus, type IviSourcePlaybackLivekit, type IviSourcePlaybackLivekitDescriptor, type IviStageSlotBinding, type IviStageViewContextValue, type IviSubtitleCompletedContext, type IviSubtitleCompletedHandler, type IviSubtitleCompletedReason, type IviSubtitleItem, type IviSubtitleRole, type IviSubtitleSource, type IviTelemetrySpanHandle, type IviUseSubtitlesOptions, LivekitSourceManager, TrtcSourceManager, type UseIviSessionRuntimeConfig, type UseIviSessionRuntimeResult, createIVISession, createIVISessionRuntime, createRuntimeFromSession, isLivekitSourcePlayback, isReadyLivekitRuntimeSource, isSameLivekitConfig, normalizeCreateIVISessionResponse, toCpCreateIVISessionRequestBody, useIviSessionRuntime, useIviStageView, useIviSubtitles, useManagedIviRuntime, useRuntimeState };
|