@d-id/client-sdk 2.0.6 → 2.0.7
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 +10 -0
- package/dist/{index-BLArKcFJ.js → index-DeKPoqBL.js} +2391 -2381
- package/dist/index.js +17 -16
- package/dist/index.umd.cjs +5 -5
- package/dist/{livekit-manager-BPAUUVXy.js → livekit-manager-D7YZEQiJ.js} +156 -193
- package/dist/src/services/streaming-manager/advanced.test.d.ts +0 -4
- package/dist/src/services/streaming-manager/common.d.ts +8 -20
- package/dist/src/services/streaming-manager/edge-cases.test.d.ts +0 -4
- package/dist/src/services/streaming-manager/livekit-manager.d.ts +0 -6
- package/dist/src/services/streaming-manager/webrtc-core.test.d.ts +0 -4
- package/dist/src/types/entities/agents/agent.d.ts +5 -0
- package/dist/src/types/entities/agents/manager.d.ts +8 -1
- package/dist/src/types/entities/knowledge/document.d.ts +13 -3
- package/dist/src/types/stream/data-channel.d.ts +16 -0
- package/dist/src/types/stream/stream.d.ts +15 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -171,6 +171,16 @@ The `agentManager` object created during initialization has several built-in met
|
|
|
171
171
|
await agentManager.unpublishMicrophoneStream();
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
+
- **`agentManager.sendDataChannelMessage(topic, payload)`**
|
|
175
|
+
**Supported only with Expressive (V4) agents.**
|
|
176
|
+
Method to send a JSON payload to the agent over a data-channel topic. `PublicDataChannelTopic` is exported from the package root and lists every topic this method accepts.
|
|
177
|
+
|
|
178
|
+
```javascript
|
|
179
|
+
import { PublicDataChannelTopic } from '@d-id/client-sdk';
|
|
180
|
+
|
|
181
|
+
await agentManager.sendDataChannelMessage(PublicDataChannelTopic.Presentation, { type: 'navigate', slide: 3 });
|
|
182
|
+
```
|
|
183
|
+
|
|
174
184
|
### ➤ ✴️ Callback Functions
|
|
175
185
|
|
|
176
186
|
Callback functions enable you to manage various events throughout the SDK lifecycle. Each function is linked to one or more methods within the built-in `agentManager` and triggers automatically to handle specific events efficiently
|