@d-id/client-sdk 1.1.27 → 1.1.28-staging.129
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,5 +1,5 @@
|
|
|
1
1
|
import { StreamingManager } from '../streaming-manager';
|
|
2
|
-
import { Agent, AgentManagerOptions, AgentsAPI, Chat, ChatProgressCallback, CreateSessionV2Options, CreateStreamOptions } from '../../types';
|
|
2
|
+
import { Agent, AgentManagerOptions, AgentsAPI, Chat, ChatProgressCallback, CreateSessionV2Options, CreateStreamOptions, Interrupt } from '../../types';
|
|
3
3
|
import { Analytics } from '../analytics/mixpanel';
|
|
4
4
|
|
|
5
5
|
type ConnectToManagerOptions = AgentManagerOptions & {
|
|
@@ -7,6 +7,8 @@ type ConnectToManagerOptions = AgentManagerOptions & {
|
|
|
7
7
|
onVideoIdChange?: (videoId: string | null) => void;
|
|
8
8
|
/** Internal callback for livekit-manager data channel events */
|
|
9
9
|
onMessage?: ChatProgressCallback;
|
|
10
|
+
/** Internal callback for when interrupt is detected by streaming manager */
|
|
11
|
+
onInterruptDetected?: (interrupt: Interrupt) => void;
|
|
10
12
|
};
|
|
11
13
|
chatId?: string;
|
|
12
14
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Analytics } from '../../services/analytics/mixpanel';
|
|
2
2
|
import { VideoRTCStatsReport } from '../../services/streaming-manager/stats/report';
|
|
3
3
|
import { Auth } from '../auth';
|
|
4
|
+
import { Interrupt } from '../entities';
|
|
4
5
|
import { ChatProgressCallback } from '../entities/agents/manager';
|
|
5
6
|
import { CreateClipStreamRequest, CreateTalkStreamRequest, SendClipStreamPayload, SendTalkStreamPayload } from './api';
|
|
6
7
|
import { ICreateStreamRequestResponse, IceCandidate, SendStreamPayloadResponse, Status } from './rtc';
|
|
@@ -17,6 +18,7 @@ export declare enum ConnectivityState {
|
|
|
17
18
|
}
|
|
18
19
|
export declare enum AgentActivityState {
|
|
19
20
|
Idle = "IDLE",
|
|
21
|
+
Loading = "LOADING",
|
|
20
22
|
Talking = "TALKING"
|
|
21
23
|
}
|
|
22
24
|
export declare enum StreamEvents {
|
|
@@ -62,6 +64,7 @@ export interface ManagerCallbacks {
|
|
|
62
64
|
agent_id: string;
|
|
63
65
|
}) => void;
|
|
64
66
|
onStreamReady?: () => void;
|
|
67
|
+
onInterruptDetected?: (interrupt: Interrupt) => void;
|
|
65
68
|
}
|
|
66
69
|
export type ManagerCallbackKeys = keyof ManagerCallbacks;
|
|
67
70
|
export interface StreamEndUserData {
|