@voice-ai-labs/web-sdk 0.9.1 → 0.9.2
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 +15 -1
- package/dist/client/analytics.d.ts +18 -1
- package/dist/client/analytics.d.ts.map +1 -1
- package/dist/client/analytics.js +19 -0
- package/dist/client/analytics.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +19 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +9 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27791,6 +27791,7 @@ class AgentClient extends BaseClient {
|
|
|
27791
27791
|
* Provides methods for:
|
|
27792
27792
|
* - Getting call history with filters
|
|
27793
27793
|
* - Getting transcript URLs
|
|
27794
|
+
* - Getting recording status and URLs
|
|
27794
27795
|
* - Getting agent stats summary
|
|
27795
27796
|
*/
|
|
27796
27797
|
/**
|
|
@@ -27860,6 +27861,24 @@ class AnalyticsClient extends BaseClient {
|
|
|
27860
27861
|
async getTranscriptUrl(callId) {
|
|
27861
27862
|
return this.get(`/agent/call-history/${callId}/transcript`);
|
|
27862
27863
|
}
|
|
27864
|
+
/**
|
|
27865
|
+
* Get recording status or download URL for a call
|
|
27866
|
+
*
|
|
27867
|
+
* @param callId - The call identifier
|
|
27868
|
+
* @returns Object with recording status and optional URL
|
|
27869
|
+
*
|
|
27870
|
+
* @example
|
|
27871
|
+
* ```typescript
|
|
27872
|
+
* const recording = await client.analytics.getRecordingUrl("call_12345");
|
|
27873
|
+
*
|
|
27874
|
+
* if (recording.status === 'ready' && recording.url) {
|
|
27875
|
+
* window.open(recording.url, '_blank');
|
|
27876
|
+
* }
|
|
27877
|
+
* ```
|
|
27878
|
+
*/
|
|
27879
|
+
async getRecordingUrl(callId) {
|
|
27880
|
+
return this.get(`/agent/call-history/${callId}/recording`);
|
|
27881
|
+
}
|
|
27863
27882
|
/**
|
|
27864
27883
|
* Get agent stats summary
|
|
27865
27884
|
*
|