@d-id/client-sdk 1.1.24 → 1.1.26-staging.116

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,5 +1,6 @@
1
- import { CreateStreamOptions, StreamType } from '../../types';
1
+ import { CreateSessionV2Options, CreateStreamOptions, StreamType } from '../../types';
2
2
  import { StreamingManager } from '../streaming-manager';
3
3
 
4
4
  export declare function validateInterrupt(streamingManager: StreamingManager<CreateStreamOptions> | undefined, streamType: StreamType | undefined, videoId: string | null): void;
5
5
  export declare function sendInterrupt(streamingManager: StreamingManager<CreateStreamOptions>, videoId: string): Promise<void>;
6
+ export declare function sendInterruptV2(streamingManager: StreamingManager<CreateSessionV2Options>): Promise<void>;
@@ -1,6 +1,15 @@
1
1
  import { CreateSessionV2Options, CreateStreamOptions, StreamingManagerOptions } from '../../types';
2
2
  import { StreamingManager } from './common';
3
3
 
4
+ export declare enum DataChannelTopic {
5
+ Chat = "lk.chat",
6
+ Speak = "did.speak",
7
+ Interrupt = "did.interrupt"
8
+ }
4
9
  export declare function handleInitError(error: unknown, log: (message?: any, ...optionalParams: any[]) => void, callbacks: StreamingManagerOptions['callbacks'], markInitialConnectionDone: () => void): void;
5
- export declare function createLiveKitStreamingManager<T extends CreateSessionV2Options>(agentId: string, sessionOptions: CreateSessionV2Options, options: StreamingManagerOptions): Promise<StreamingManager<T>>;
6
- export type LiveKitStreamingManager<T extends CreateStreamOptions> = StreamingManager<T>;
10
+ export declare function createLiveKitStreamingManager<T extends CreateSessionV2Options>(agentId: string, sessionOptions: CreateSessionV2Options, options: StreamingManagerOptions): Promise<StreamingManager<T> & {
11
+ reconnect(): Promise<void>;
12
+ }>;
13
+ export type LiveKitStreamingManager<T extends CreateStreamOptions> = StreamingManager<T> & {
14
+ reconnect(): Promise<void>;
15
+ };
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.24",
4
+ "version": "1.1.26-staging.116",
5
5
  "type": "module",
6
6
  "description": "d-id client sdk",
7
7
  "repository": {