@d-id/client-sdk 1.1.51 → 1.1.52-staging.234

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.
@@ -39,6 +39,18 @@ export type StreamingManager<T extends CreateStreamOptions | CreateSessionV2Opti
39
39
  * supported only for livekit manager
40
40
  */
41
41
  unpublishMicrophoneStream?(): Promise<void>;
42
+ /**
43
+ * Publish a camera video stream to the LiveKit room.
44
+ * Can be called after connection to enable vision.
45
+ * supported only for livekit manager
46
+ */
47
+ publishCameraStream?(stream: MediaStream): Promise<void>;
48
+ /**
49
+ * Unpublish the currently published camera stream.
50
+ * Can be called after connection to disable vision.
51
+ * supported only for livekit manager
52
+ */
53
+ unpublishCameraStream?(): Promise<void>;
42
54
  /**
43
55
  * Session identifier information, should be returned in the body of all streaming requests
44
56
  */
@@ -2,11 +2,14 @@ export interface BearerToken {
2
2
  type: 'bearer';
3
3
  token: string;
4
4
  }
5
- export interface BasicAuth {
5
+ export type BasicAuth = {
6
+ type: 'basic';
7
+ token: string;
8
+ } | {
6
9
  type: 'basic';
7
10
  username: string;
8
11
  password: string;
9
- }
12
+ };
10
13
  export interface ClientKeyAuth {
11
14
  type: 'key';
12
15
  clientKey: string;
@@ -28,12 +28,16 @@ export declare enum AgentStatus {
28
28
  Rejected = "rejected",
29
29
  Ready = "ready"
30
30
  }
31
+ export interface Vision {
32
+ enabled: boolean;
33
+ }
31
34
  export interface Agent {
32
35
  id: string;
33
36
  username?: string;
34
37
  presenter: Presenter;
35
38
  llm?: LLM;
36
39
  knowledge?: Knowledge;
40
+ vision?: Vision;
37
41
  use_case?: string;
38
42
  tags?: string[];
39
43
  chats?: number;
@@ -196,6 +196,18 @@ export interface AgentManager {
196
196
  * supported only for livekit manager
197
197
  */
198
198
  unpublishMicrophoneStream?: () => Promise<void>;
199
+ /**
200
+ * Publish a camera video stream to the LiveKit room.
201
+ * Can be called after connection to enable vision.
202
+ * supported only for livekit manager
203
+ */
204
+ publishCameraStream?: (stream: MediaStream) => Promise<void>;
205
+ /**
206
+ * Unpublish the currently published camera stream.
207
+ * Can be called after connection to disable vision.
208
+ * supported only for livekit manager
209
+ */
210
+ unpublishCameraStream?: () => Promise<void>;
199
211
  /**
200
212
  * Method to send a chat message to existing chat with the agent
201
213
  * @param messages
@@ -27,4 +27,5 @@ export interface ClipPresenter extends BasePresenter {
27
27
  }
28
28
  export interface ExpresivePresenter extends BasePresenter {
29
29
  type: 'expressive';
30
+ presenter_id: string;
30
31
  }
@@ -1,6 +1,9 @@
1
1
  import { Agent } from '../types';
2
2
 
3
3
  type AgentType = 'clip_v2' | Agent['presenter']['type'];
4
+ export type PresenterType = 'v4' | 'v3-pro' | 'v2';
4
5
  export declare const getAgentType: (presenter: Agent["presenter"]) => AgentType;
6
+ export declare const getPresenterType: (presenter: Agent["presenter"]) => PresenterType;
7
+ export declare const getPresenterIdentifier: (presenter: Agent["presenter"]) => string;
5
8
  export declare const isStreamsV2Agent: (type: AgentType) => boolean;
6
9
  export {};
@@ -14,6 +14,8 @@ export declare function getAnalyticsInfo(agent: Agent): {
14
14
  export declare function getAgentInfo(agent: Agent): {
15
15
  from?: string | undefined;
16
16
  agentType: "talk" | "clip" | "expressive" | "clip_v2";
17
+ presenterType: import('./agent').PresenterType;
18
+ presenter: string;
17
19
  owner_id: string;
18
20
  promptVersion: "v1" | "v2" | null | undefined;
19
21
  behavior: {
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.51",
4
+ "version": "1.1.52-staging.234",
5
5
  "type": "module",
6
6
  "description": "d-id client sdk",
7
7
  "repository": {