@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.
@@ -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-UeXWrNlF.js";
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 {
@@ -3,6 +3,7 @@ export interface AnalyticsOptions {
3
3
  agentId: string;
4
4
  isEnabled?: boolean;
5
5
  distinctId?: string;
6
+ mixpanelAdditionalProperties?: Record<string, any>;
6
7
  }
7
8
  export interface Analytics {
8
9
  token: string;
@@ -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
  */
@@ -35,6 +35,7 @@ export interface ICreateStreamRequestResponse extends StickyRequest {
35
35
  ice_servers: IceServer[];
36
36
  fluent?: boolean;
37
37
  interrupt_enabled?: boolean;
38
+ triggers_enabled?: boolean;
38
39
  }
39
40
  export interface IceCandidate {
40
41
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@d-id/client-sdk",
3
3
  "private": false,
4
- "version": "1.1.11-staging.41",
4
+ "version": "1.1.11-staging.43",
5
5
  "type": "module",
6
6
  "description": "d-id client sdk",
7
7
  "repository": {