@d-id/client-sdk 1.1.11-staging.41 → 1.1.11-staging.43
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/dist/{index-UeXWrNlF.js → index-BHt2AhLb.js} +345 -335
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +5 -5
- package/dist/{livekit-manager-6i5Rpchn.js → livekit-manager-DZ_BAT5P.js} +3 -2
- package/dist/src/services/analytics/mixpanel.d.ts +1 -0
- package/dist/src/services/streaming-manager/common.d.ts +4 -0
- package/dist/src/types/entities/agents/manager.d.ts +5 -0
- package/dist/src/types/stream/rtc.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as x, a as N, S as O, C as g, b as U, d as P, e as V, A as w, f as q, T as J } from "./index-
|
|
1
|
+
import { c as x, a as N, S as O, C as g, b as U, d as P, e as V, A as w, f as q, T as J } from "./index-BHt2AhLb.js";
|
|
2
2
|
function Q(u, T, h, i) {
|
|
3
3
|
const p = x(u, `${T}/v2/agents/${h}`, i);
|
|
4
4
|
return {
|
|
@@ -114,7 +114,8 @@ async function H(u, T, h) {
|
|
|
114
114
|
sessionId: A,
|
|
115
115
|
streamId: f,
|
|
116
116
|
streamType: L,
|
|
117
|
-
interruptAvailable: !0
|
|
117
|
+
interruptAvailable: !0,
|
|
118
|
+
triggersAvailable: !1
|
|
118
119
|
};
|
|
119
120
|
}
|
|
120
121
|
export {
|
|
@@ -36,4 +36,8 @@ export type StreamingManager<T extends CreateStreamOptions> = {
|
|
|
36
36
|
* Whether interrupt functionality is available for this stream
|
|
37
37
|
*/
|
|
38
38
|
interruptAvailable: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Whether triggers functionality is available for this stream
|
|
41
|
+
*/
|
|
42
|
+
triggersAvailable: boolean;
|
|
39
43
|
};
|
|
@@ -133,6 +133,7 @@ export interface AgentManagerOptions {
|
|
|
133
133
|
debug?: boolean;
|
|
134
134
|
enableAnalitics?: boolean;
|
|
135
135
|
mixpanelKey?: string;
|
|
136
|
+
mixpanelAdditionalProperties?: Record<string, any>;
|
|
136
137
|
/**
|
|
137
138
|
* Unique ID of agent user used in analytics. Pass it to override the default way to get distinctId
|
|
138
139
|
*/
|
|
@@ -155,6 +156,10 @@ export interface AgentManager {
|
|
|
155
156
|
* Get if the stream supports interrupt
|
|
156
157
|
*/
|
|
157
158
|
getIsInterruptAvailable: () => boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Get if the stream supports triggers
|
|
161
|
+
*/
|
|
162
|
+
getIsTriggersAvailable: () => boolean;
|
|
158
163
|
/**
|
|
159
164
|
* Array of starter messages that will be sent to the agent when the chat starts
|
|
160
165
|
*/
|