@d-id/client-sdk 1.1.0-beta.3 → 1.1.0-beta.5

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,7 +1,7 @@
1
1
  import { StreamingManager } from '../streaming-manager';
2
2
  import { Agent, AgentManagerOptions, AgentsAPI, Chat, CreateStreamOptions } from '../../types';
3
3
  import { Analytics } from '../analytics/mixpanel';
4
- export declare function initializeStreamAndChat(agent: Agent, options: AgentManagerOptions, agentsApi: AgentsAPI, analytics: Analytics, chat?: Chat, greeting?: string): Promise<{
4
+ export declare function initializeStreamAndChat(agent: Agent, options: AgentManagerOptions, agentsApi: AgentsAPI, analytics: Analytics, chat?: Chat): Promise<{
5
5
  chat?: Chat;
6
6
  streamingManager?: StreamingManager<CreateStreamOptions>;
7
7
  }>;
@@ -1,3 +1,2 @@
1
- import { Agent, Message } from '../../types';
2
- export declare function getGreetings(agent: Agent): string;
3
- export declare function getInitialMessages(content: string, initialMessages?: Message[]): Message[];
1
+ import { Message } from '../../types';
2
+ export declare function getInitialMessages(initialMessages?: Message[]): Message[];
@@ -1,4 +1,4 @@
1
1
  /// <reference types="node" />
2
- import { StreamingState, ConnectivityState } from '../../../types';
2
+ import { ConnectivityState, StreamingState } from '../../../types';
3
3
  import { VideoRTCStatsReport } from './report';
4
- export declare function pollStats(peerConnection: RTCPeerConnection, getIsConnected: () => boolean, onConnected: () => void, onVideoStateChange?: (state: StreamingState, statsReport?: VideoRTCStatsReport) => void, onConnectivityStateChange?: (state: ConnectivityState) => void, warmup?: boolean, shouldWaitForGreeting?: boolean): NodeJS.Timeout;
4
+ export declare function pollStats(peerConnection: RTCPeerConnection, getIsConnected: () => boolean, onConnected: () => void, onVideoStateChange?: (state: StreamingState, statsReport?: VideoRTCStatsReport) => void, onConnectivityStateChange?: (state: ConnectivityState) => void, warmup?: boolean): NodeJS.Timeout;
@@ -112,10 +112,10 @@ interface StreamOptions {
112
112
  */
113
113
  outputResolution?: number;
114
114
  /**
115
- * Whether to stream greeting video on the connection.
116
- * Not supported for premium presenters.
115
+ * Whether to request fluent stream.
116
+ * @default false
117
117
  */
118
- streamGreeting?: boolean;
118
+ fluent?: boolean;
119
119
  }
120
120
  export interface AgentManagerOptions {
121
121
  auth: Auth;
@@ -143,7 +143,7 @@ export interface AgentManager {
143
143
  /**
144
144
  * Get the current stream type of the agent
145
145
  */
146
- getStreamType: () => StreamType;
146
+ getStreamType: () => StreamType | undefined;
147
147
  /**
148
148
  * Array of starter messages that will be sent to the agent when the chat starts
149
149
  */
@@ -57,11 +57,11 @@ export interface ManagerCallbacks {
57
57
  export type ManagerCallbackKeys = keyof ManagerCallbacks;
58
58
  export interface TalkStreamOptions extends CreateTalkStreamRequest {
59
59
  videoType: VideoType.Talk;
60
- stream_greeting?: string;
60
+ fluent?: boolean;
61
61
  }
62
62
  export interface ClipStreamOptions extends CreateClipStreamRequest {
63
63
  videoType: VideoType.Clip;
64
- stream_greeting?: string;
64
+ fluent?: boolean;
65
65
  }
66
66
  export type CreateStreamOptions = TalkStreamOptions | ClipStreamOptions;
67
67
  export type PayloadType<T> = T extends TalkStreamOptions ? SendTalkStreamPayload : T extends ClipStreamOptions ? SendClipStreamPayload : never;
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.0-beta.3",
4
+ "version": "1.1.0-beta.5",
5
5
  "type": "module",
6
6
  "description": "d-id client sdk",
7
7
  "repository": {
@@ -45,4 +45,4 @@
45
45
  "vite": "^5.1.4",
46
46
  "vite-plugin-dts": "^3.7.3"
47
47
  }
48
- }
48
+ }