@skippr/live-agent-sdk 0.75.0 → 0.76.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.
@@ -12,6 +12,7 @@ export interface AgentControls {
12
12
  }
13
13
  export interface UiPreferences {
14
14
  animateCursor?: boolean;
15
+ autoStart?: boolean;
15
16
  }
16
17
  export type { AgentMode, SessionStatus };
17
18
  export interface ModuleCurrentSession {
@@ -0,0 +1,11 @@
1
+ import type { Module } from '../context/LiveAgentContext';
2
+ interface UseAutoStartParams {
3
+ availableModules: Module[];
4
+ isSessionLive: boolean;
5
+ bearerToken: string | null;
6
+ selectModule: (id: string, opts?: {
7
+ autoStarted?: boolean;
8
+ }) => void;
9
+ }
10
+ export declare function useAutoStart({ availableModules, isSessionLive, bearerToken, selectModule, }: UseAutoStartParams): void;
11
+ export {};
@@ -20,6 +20,7 @@ export interface StartSessionOptions {
20
20
  agentControls?: AgentControls | undefined;
21
21
  existingSessionId?: string | undefined;
22
22
  adoptionGoalId?: string | undefined;
23
+ autoStarted?: boolean | undefined;
23
24
  }
24
25
  export declare function useSession({ captureMode, authToken, appKey, getUserToken, userToken, onStart, onStartError, onDisconnect, }: UseSessionParams): {
25
26
  connection: LiveKitConnection | null;
@@ -28,7 +29,7 @@ export declare function useSession({ captureMode, authToken, appKey, getUserToke
28
29
  isDisconnecting: boolean;
29
30
  error: string;
30
31
  errorCode: number | null;
31
- startSession: ({ agentId, agentControls, existingSessionId, adoptionGoalId }: StartSessionOptions) => Promise<void>;
32
+ startSession: ({ agentId, agentControls, existingSessionId, adoptionGoalId, autoStarted, }: StartSessionOptions) => Promise<void>;
32
33
  pauseSession: () => Promise<void>;
33
34
  disconnect: () => Promise<void>;
34
35
  isPaused: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skippr/live-agent-sdk",
3
- "version": "0.75.0",
3
+ "version": "0.76.0",
4
4
  "type": "module",
5
5
  "main": "dist/esm/lib-exports.js",
6
6
  "module": "dist/esm/lib-exports.js",