@voxket-ai/voxket-live 1.1.62 → 1.1.64
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/dist/components/common/welcome.d.ts +2 -2
- package/dist/components/modalities/chat/chat-view.d.ts +2 -1
- package/dist/components/widget.d.ts +3 -2
- package/dist/core/client.d.ts +4 -4
- package/dist/core/connection-manager.d.ts +3 -3
- package/dist/core/ui-renderer.d.ts +3 -2
- package/dist/index.cjs +107 -107
- package/dist/index.css +1 -1
- package/dist/index.js +16394 -16367
- package/dist/types/core.d.ts +6 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ThemeType } from '../../styles';
|
|
3
|
-
import {
|
|
3
|
+
import { ModalityValue } from '../../types/core';
|
|
4
4
|
interface WelcomeProps {
|
|
5
5
|
disabled: boolean;
|
|
6
6
|
onStartCall: () => void;
|
|
@@ -15,7 +15,7 @@ interface WelcomeProps {
|
|
|
15
15
|
title?: string;
|
|
16
16
|
subTitle?: string;
|
|
17
17
|
theme?: ThemeType;
|
|
18
|
-
modalities?:
|
|
18
|
+
modalities?: ModalityValue[];
|
|
19
19
|
}
|
|
20
20
|
export declare const Welcome: React.ForwardRefExoticComponent<WelcomeProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
21
|
export {};
|
|
@@ -10,6 +10,7 @@ interface ChatViewProps {
|
|
|
10
10
|
onEndChat?: () => void;
|
|
11
11
|
showTimer?: boolean;
|
|
12
12
|
isTranscriptionMode?: boolean;
|
|
13
|
+
showToolExecMessage?: boolean;
|
|
13
14
|
}
|
|
14
|
-
export declare function ChatView({ client, theme, onBack, disabled, displayType, onEndChat, showTimer, isTranscriptionMode, }: ChatViewProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function ChatView({ client, theme, onBack, disabled, displayType, onEndChat, showTimer, isTranscriptionMode, showToolExecMessage, }: ChatViewProps): import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ThemeType } from '../styles';
|
|
2
2
|
import { VoxketClient } from '../core/client';
|
|
3
|
-
import {
|
|
3
|
+
import { VoxketError, ModalityValue } from '../types/core';
|
|
4
4
|
export type DisplayType = 'fullscreen' | 'widget' | 'popup';
|
|
5
5
|
export type PopupPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
6
6
|
export interface VoxketWidgetProps {
|
|
@@ -31,8 +31,9 @@ export interface VoxketWidgetProps {
|
|
|
31
31
|
enableSessionLogging?: boolean;
|
|
32
32
|
onSessionLogsUpdate?: (logs: any[]) => void;
|
|
33
33
|
onSessionMetricsUpdate?: (metrics: any) => void;
|
|
34
|
-
modalities?:
|
|
34
|
+
modalities?: ModalityValue[];
|
|
35
35
|
displayType?: DisplayType;
|
|
36
|
+
showToolExecMessage?: boolean;
|
|
36
37
|
popupPosition?: PopupPosition;
|
|
37
38
|
popupTriggerText?: string;
|
|
38
39
|
onPopupToggle?: (isOpen: boolean) => void;
|
package/dist/core/client.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { Room, ConnectionState } from 'livekit-client';
|
|
|
2
2
|
import { VoxketEventEmitter } from './event-emitter';
|
|
3
3
|
import { PluginManager } from '../plugins/plugin-system';
|
|
4
4
|
import { RenderUIOptions } from './ui-renderer';
|
|
5
|
-
import { VoxketConfig, SessionConfig, VoxketSession, VoxketEvents, SessionState, SessionMetrics, AgentInfo, ParticipantInfo, ChatMessage, TranscriptionSegment,
|
|
5
|
+
import { VoxketConfig, SessionConfig, VoxketSession, VoxketEvents, SessionState, SessionMetrics, AgentInfo, ParticipantInfo, ChatMessage, TranscriptionSegment, ModalityValue, VoxketError } from '../types/core';
|
|
6
6
|
import { VoxketInteractiveView, ViewPresentationMode, InteractiveUIState, RpcEvents } from '../types/rpc';
|
|
7
7
|
export interface VoxketClientConfig extends VoxketConfig {
|
|
8
8
|
agentId?: string;
|
|
9
9
|
participantName?: string;
|
|
10
|
-
modalities?:
|
|
10
|
+
modalities?: ModalityValue[];
|
|
11
11
|
participantMetadata?: Record<string, any>;
|
|
12
12
|
onConnected?: () => void;
|
|
13
13
|
onDisconnected?: (reason?: string) => void;
|
|
@@ -54,7 +54,7 @@ export declare class VoxketClient extends VoxketEventEmitter<VoxketEvents & RpcE
|
|
|
54
54
|
* Setup RPC event forwarding from RpcManager
|
|
55
55
|
*/
|
|
56
56
|
private setupRpcEventForwarding;
|
|
57
|
-
connect(agentId?: string, participantName?: string, modalities?:
|
|
57
|
+
connect(agentId?: string, participantName?: string, modalities?: ModalityValue[], participantMetadata?: Record<string, any>): Promise<{
|
|
58
58
|
serverUrl: string;
|
|
59
59
|
participantToken: string;
|
|
60
60
|
voxketSessionId: string;
|
|
@@ -64,7 +64,7 @@ export declare class VoxketClient extends VoxketEventEmitter<VoxketEvents & RpcE
|
|
|
64
64
|
createSession(config: SessionConfig): Promise<VoxketSession>;
|
|
65
65
|
startSession(agentId?: string, options?: {
|
|
66
66
|
participantName?: string;
|
|
67
|
-
modalities?:
|
|
67
|
+
modalities?: ModalityValue[];
|
|
68
68
|
metadata?: Record<string, any>;
|
|
69
69
|
participantMetadata?: Record<string, any>;
|
|
70
70
|
}): Promise<VoxketSession>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Room, ConnectionState } from 'livekit-client';
|
|
2
2
|
import { VoxketEventEmitter } from './event-emitter';
|
|
3
|
-
import { VoxketEvents, AgentInfo, ParticipantInfo,
|
|
3
|
+
import { VoxketEvents, AgentInfo, ParticipantInfo, ModalityValue } from '../types/core';
|
|
4
4
|
export interface ConnectionConfig {
|
|
5
5
|
baseUrl: string;
|
|
6
6
|
appId?: string;
|
|
@@ -36,7 +36,7 @@ export declare class ConnectionManager {
|
|
|
36
36
|
/**
|
|
37
37
|
* Fetch connection details from the server
|
|
38
38
|
*/
|
|
39
|
-
fetchConnectionDetails(agentId: string, participantName: string, modalities:
|
|
39
|
+
fetchConnectionDetails(agentId: string, participantName: string, modalities: ModalityValue[], participantMetadata?: Record<string, any>): Promise<{
|
|
40
40
|
serverUrl: string;
|
|
41
41
|
participantToken: string;
|
|
42
42
|
voxketSessionId: string;
|
|
@@ -45,7 +45,7 @@ export declare class ConnectionManager {
|
|
|
45
45
|
/**
|
|
46
46
|
* Connect to the room
|
|
47
47
|
*/
|
|
48
|
-
connect(agentId: string, participantName: string, modalities:
|
|
48
|
+
connect(agentId: string, participantName: string, modalities: ModalityValue[], participantMetadata?: Record<string, any>): Promise<{
|
|
49
49
|
serverUrl: string;
|
|
50
50
|
participantToken: string;
|
|
51
51
|
voxketSessionId: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { DisplayType, PopupPosition } from '../components/widget';
|
|
3
3
|
import { WidgetTheme } from '../styles';
|
|
4
|
-
import {
|
|
4
|
+
import { ModalityValue, VoxketConfig } from '../types/core';
|
|
5
5
|
export interface RenderUIOptions {
|
|
6
6
|
target?: string | HTMLElement;
|
|
7
|
-
modality?:
|
|
7
|
+
modality?: ModalityValue[];
|
|
8
8
|
theme?: WidgetTheme | 'dark' | 'light' | 'vox';
|
|
9
9
|
component?: 'widget' | 'session' | 'chat-only' | 'voice-only';
|
|
10
10
|
className?: string;
|
|
@@ -14,6 +14,7 @@ export interface RenderUIOptions {
|
|
|
14
14
|
popupBgColor?: string;
|
|
15
15
|
participantName?: string;
|
|
16
16
|
displayType?: DisplayType;
|
|
17
|
+
showToolExecMessage?: boolean;
|
|
17
18
|
popupTriggerBgColor?: string;
|
|
18
19
|
popupPosition?: PopupPosition;
|
|
19
20
|
popupTriggerText?: string;
|