@voxket-ai/voxket-live 1.1.33 → 1.1.35

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.
@@ -1,10 +1,12 @@
1
1
  import { Room, RemoteParticipant, LocalParticipant, ConnectionState } from 'livekit-client';
2
2
  import { VideoTrack } from './video';
3
3
  export interface VoxketConfig {
4
- /** Your Voxket App ID */
5
- appId: string;
6
- /** Your Voxket App Secret */
7
- appSecret: string;
4
+ /** Your Voxket App ID (not required if authToken is provided) */
5
+ appId?: string;
6
+ /** Your Voxket App Secret (not required if authToken is provided) */
7
+ appSecret?: string;
8
+ /** Pre-generated auth token from your backend (recommended for production) */
9
+ authToken?: string;
8
10
  /** Base URL for Voxket API services */
9
11
  baseUrl: string;
10
12
  /** Environment (development, staging, production) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voxket-ai/voxket-live",
3
- "version": "1.1.33",
3
+ "version": "1.1.35",
4
4
  "description": "A React widget for embedding Voxket-powered audio/video/chat experiences.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -1,44 +0,0 @@
1
- declare global {
2
- interface Window {
3
- VoxketWidget: {
4
- init: (config: ShopifyVoxketConfig) => void;
5
- destroy: () => void;
6
- show: () => void;
7
- hide: () => void;
8
- startSession: () => void;
9
- instance: any;
10
- };
11
- }
12
- }
13
- export interface ShopifyVoxketConfig {
14
- agentId: string;
15
- baseUrl: string;
16
- appId: string;
17
- appSecret: string;
18
- participantName?: string;
19
- theme?: 'dark' | 'light' | 'vox' | 'midnight';
20
- displayType?: 'popup' | 'widget' | 'fullscreen';
21
- popupPosition?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
22
- popupTriggerText?: string;
23
- modalities?: Array<'voice' | 'chat' | 'video' | 'screen_share'>;
24
- welcomeTitle?: string;
25
- welcomeSubTitle?: string;
26
- enableSessionLogging?: boolean;
27
- participantMetadata?: Record<string, any>;
28
- popupTriggerLogoUrl?: string;
29
- autoStart?: boolean;
30
- autoStartDelay?: number;
31
- autoStartOnlyIfVisible?: boolean;
32
- onSessionStart?: (sessionId: string) => void;
33
- onSessionEnd?: (metrics: any) => void;
34
- onPopupToggle?: (isOpen: boolean) => void;
35
- }
36
- declare const _default: {
37
- init: (config: ShopifyVoxketConfig) => void;
38
- destroy: () => void;
39
- show: () => void;
40
- hide: () => void;
41
- startSession: () => void;
42
- instance: any;
43
- };
44
- export default _default;