@skippr/live-agent-sdk 0.102.0 → 0.103.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.
@@ -90,6 +90,7 @@ export type PendingStart = {
90
90
  export interface LiveAgentPublicValue {
91
91
  isConnected: boolean;
92
92
  isStarting: boolean;
93
+ isExchanging: boolean;
93
94
  isDisconnecting: boolean;
94
95
  isPausing: boolean;
95
96
  error: string;
@@ -137,7 +138,7 @@ export interface LiveAgentPublicValue {
137
138
  isLoadingModules: boolean;
138
139
  modulesError: string | null;
139
140
  refetchModules: () => Promise<void>;
140
- selectModule: (id: string) => void;
141
+ selectModule: (id: string) => Promise<void>;
141
142
  textMode: boolean;
142
143
  }
143
144
  export interface LiveAgentContextValue extends LiveAgentPublicValue {
@@ -7,6 +7,14 @@ export interface ApiSessionMessage {
7
7
  createdAt: string;
8
8
  }
9
9
  export declare function mapApiMessages(messages: ApiSessionMessage[]): Message[];
10
+ export interface SessionLifecycleFlags {
11
+ isConnected: boolean;
12
+ isStarting: boolean;
13
+ isPausing: boolean;
14
+ isDisconnecting: boolean;
15
+ isExchanging: boolean;
16
+ }
17
+ export declare function hasLiveSession(flags: SessionLifecycleFlags): boolean;
10
18
  export declare function getResumableSessionId(currentSession: ModuleCurrentSession | null | undefined, mode: AgentMode | null): string | undefined;
11
19
  export declare function canResumeSession(currentSession: ModuleCurrentSession | null | undefined, mode: AgentMode | null): boolean;
12
20
  export declare function getResumableSession(module: Module | null | undefined): ResumableSession | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skippr/live-agent-sdk",
3
- "version": "0.102.0",
3
+ "version": "0.103.0",
4
4
  "type": "module",
5
5
  "main": "dist/esm/lib-exports.js",
6
6
  "module": "dist/esm/lib-exports.js",