@d-id/client-sdk 1.1.15-staging.65 → 1.1.15-staging.68
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-BjgMVt64.js +1339 -0
- package/dist/index.js +9 -10
- package/dist/index.umd.cjs +5 -5
- package/dist/{livekit-manager-BH8L3k_e.js → livekit-manager-BiidFdau.js} +1 -1
- package/dist/src/api/agents.d.ts +1 -1
- package/dist/src/api/apiClient.d.ts +1 -1
- package/dist/src/auth/get-auth-header.d.ts +2 -2
- package/dist/src/auth/get-auth-header.test.d.ts +1 -0
- package/dist/src/services/agent-manager/connect-to-manager.test.d.ts +1 -0
- package/dist/src/services/agent-manager/index.d.ts +1 -2
- package/dist/src/services/agent-manager/index.test.d.ts +1 -0
- package/dist/src/services/analytics/mixpanel.d.ts +1 -1
- package/dist/src/services/socket-manager/index.d.ts +1 -1
- package/dist/src/services/streaming-manager/advanced.test.d.ts +5 -0
- package/dist/src/services/streaming-manager/business-flows.test.d.ts +5 -0
- package/dist/src/services/streaming-manager/disconnect.test.d.ts +5 -0
- package/dist/src/services/streaming-manager/edge-cases.test.d.ts +5 -0
- package/dist/src/services/streaming-manager/factory.test.d.ts +1 -0
- package/dist/src/services/streaming-manager/webrtc-core.test.d.ts +5 -0
- package/dist/src/services/streaming-manager/webrtc-utils.test.d.ts +5 -0
- package/dist/src/types/entities/agents/manager.d.ts +1 -4
- package/dist/src/types/stream/stream.d.ts +0 -1
- package/package.json +1 -1
- package/dist/index-Cp8BAOdx.js +0 -1337
|
@@ -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 $, A as T, 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 $, A as T, f as q, T as J } from "./index-BjgMVt64.js";
|
|
2
2
|
function Q(u, p, h, i) {
|
|
3
3
|
const w = x(u, `${p}/v2/agents/${h}`, i);
|
|
4
4
|
return {
|
package/dist/src/api/agents.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Agent, AgentPayload, Auth, Chat, ChatPayload, ChatResponse, RatingEntity, RatingPayload, STTTokenResponse } from '../types/index';
|
|
2
2
|
import { RequestOptions } from './apiClient';
|
|
3
3
|
|
|
4
|
-
export declare function createAgentsApi(auth: Auth, host?: string, onError?: (error: Error, errorData: object) => void): {
|
|
4
|
+
export declare function createAgentsApi(auth: Auth, host?: string, onError?: (error: Error, errorData: object) => void, externalId?: string): {
|
|
5
5
|
create(payload: AgentPayload, options?: RequestOptions): Promise<Agent>;
|
|
6
6
|
getAgents(tag?: string, options?: RequestOptions): Promise<Agent[]>;
|
|
7
7
|
getById(id: string, options?: RequestOptions): Promise<Agent>;
|
|
@@ -3,7 +3,7 @@ import { Auth } from '../types/auth';
|
|
|
3
3
|
export type RequestOptions = RequestInit & {
|
|
4
4
|
skipErrorHandler?: boolean;
|
|
5
5
|
};
|
|
6
|
-
export declare function createClient(auth: Auth, host?: string, onError?: (error: Error, errorData: object) => void): {
|
|
6
|
+
export declare function createClient(auth: Auth, host?: string, onError?: (error: Error, errorData: object) => void, externalId?: string): {
|
|
7
7
|
get<T = any>(url: string, options?: RequestOptions): Promise<T>;
|
|
8
8
|
post<T = any>(url: string, body?: any, options?: RequestOptions): Promise<T>;
|
|
9
9
|
delete<T = any>(url: string, body?: any, options?: RequestOptions): Promise<T>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Auth } from '../types/auth';
|
|
2
2
|
|
|
3
|
-
export declare function getExternalId(): string;
|
|
4
|
-
export declare function getAuthHeader(auth: Auth): string;
|
|
3
|
+
export declare function getExternalId(externalId?: string): string;
|
|
4
|
+
export declare function getAuthHeader(auth: Auth, externalId?: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AgentManager, AgentManagerOptions, Chat, ChatMode, CreateStreamOptions, Message } from '../../types';
|
|
2
2
|
import { SocketManager } from '../socket-manager';
|
|
3
3
|
import { StreamingManager } from '../streaming-manager';
|
|
4
4
|
|
|
@@ -22,4 +22,3 @@ export interface AgentManagerItems {
|
|
|
22
22
|
* const agentManager = await createAgentManager('id-agent123', { auth: { type: 'key', clientKey: '123', externalId: '123' } });
|
|
23
23
|
*/
|
|
24
24
|
export declare function createAgentManager(agent: string, options: AgentManagerOptions): Promise<AgentManager>;
|
|
25
|
-
export declare function getAgent(agentId: string, auth: Auth, baseURL?: string): Promise<Agent>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -9,4 +9,4 @@ export interface SocketManager {
|
|
|
9
9
|
export declare function createSocketManager(auth: Auth, host: string, callbacks: {
|
|
10
10
|
onMessage: ChatProgressCallback;
|
|
11
11
|
onError?: (error: Error) => void;
|
|
12
|
-
}): Promise<SocketManager>;
|
|
12
|
+
}, externalId?: string): Promise<SocketManager>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -134,10 +134,7 @@ export interface AgentManagerOptions {
|
|
|
134
134
|
enableAnalitics?: boolean;
|
|
135
135
|
mixpanelKey?: string;
|
|
136
136
|
mixpanelAdditionalProperties?: Record<string, any>;
|
|
137
|
-
|
|
138
|
-
* Unique ID of agent user used in analytics. Pass it to override the default way to get distinctId
|
|
139
|
-
*/
|
|
140
|
-
distinctId?: string;
|
|
137
|
+
externalId?: string;
|
|
141
138
|
streamOptions?: StreamOptions;
|
|
142
139
|
initialMessages?: Message[];
|
|
143
140
|
persistentChat?: boolean;
|