@skippr/live-agent-sdk 0.66.0 → 0.68.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.
- package/README.md +1 -2
- package/dist/esm/lib-exports.js +506 -358
- package/dist/skippr-sdk.css +1 -1
- package/dist/skippr-sdk.js +143 -143
- package/dist/types/components/PausedCountdown.d.ts +4 -0
- package/dist/types/context/LiveAgentContext.d.ts +2 -2
- package/dist/types/hooks/useSession.d.ts +1 -0
- package/dist/types/hooks/useSessionHold.d.ts +13 -0
- package/dist/types/lib/constants.d.ts +1 -0
- package/package.json +1 -1
|
@@ -92,8 +92,7 @@ export interface LiveAgentPublicValue {
|
|
|
92
92
|
autoFocusChat: boolean;
|
|
93
93
|
captureMode: CaptureMode;
|
|
94
94
|
agentControls?: AgentControls | undefined;
|
|
95
|
-
|
|
96
|
-
availableModules: Module[];
|
|
95
|
+
displayModules: Module[];
|
|
97
96
|
activeModule: Module | null;
|
|
98
97
|
isLoadingModules: boolean;
|
|
99
98
|
modulesError: string | null;
|
|
@@ -101,6 +100,7 @@ export interface LiveAgentPublicValue {
|
|
|
101
100
|
selectModule: (id: string) => void;
|
|
102
101
|
}
|
|
103
102
|
export interface LiveAgentContextValue extends LiveAgentPublicValue {
|
|
103
|
+
pauseTimeoutSeconds: number | null;
|
|
104
104
|
usesHostAuth: boolean;
|
|
105
105
|
authFailed: boolean;
|
|
106
106
|
connection: {
|
|
@@ -33,6 +33,7 @@ export declare function useSession({ captureMode, authToken, appKey, getUserToke
|
|
|
33
33
|
disconnect: () => Promise<void>;
|
|
34
34
|
isPaused: boolean;
|
|
35
35
|
isPausing: boolean;
|
|
36
|
+
pauseTimeoutSeconds: number | null;
|
|
36
37
|
historyMessages: Message[];
|
|
37
38
|
pendingScreenStream: MediaStream | null;
|
|
38
39
|
bearerToken: string | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const FALLBACK_PAUSE_TIMEOUT_SECONDS = 120;
|
|
2
|
+
export interface UseSessionHoldOptions {
|
|
3
|
+
pauseSession: () => Promise<void>;
|
|
4
|
+
pauseTimeoutSeconds: number | null;
|
|
5
|
+
}
|
|
6
|
+
export interface UseSessionHoldValue {
|
|
7
|
+
isHeld: boolean;
|
|
8
|
+
countdown: number;
|
|
9
|
+
toggle: () => void;
|
|
10
|
+
}
|
|
11
|
+
/** Owns the user's in-session pause/resume: mutes the mic, signals the worker to stop listening,
|
|
12
|
+
* and ends the session if the hold outlasts the countdown. */
|
|
13
|
+
export declare function useSessionHold({ pauseSession, pauseTimeoutSeconds, }: UseSessionHoldOptions): UseSessionHoldValue;
|
|
@@ -8,5 +8,6 @@ export declare const HIGHLIGHT_TOPIC = "skippr.highlight";
|
|
|
8
8
|
export declare const PAGE_ACTIONS_TOPIC = "skippr.page-actions";
|
|
9
9
|
export declare const TEXT_MODE_TOPIC = "skippr.text-mode";
|
|
10
10
|
export declare const ACTION_CONTROL_TOPIC = "skippr.action-control";
|
|
11
|
+
export declare const SESSION_HOLD_TOPIC = "skippr.session-hold";
|
|
11
12
|
export declare const PLAN_ATTR = "skippr.action-plan";
|
|
12
13
|
export declare const NAME_MAX_CHARS = 80;
|