@vanira/sdk 0.0.19 → 0.0.21

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.
@@ -16,7 +16,7 @@ export declare class ChatService {
16
16
  static listenForAdminReplies(inboxId: string, sender: string, onMessage: (content: string) => void): {
17
17
  close: () => void;
18
18
  };
19
- static createCall(agentId: string, clientId: string | null, prospectId: string | null, widgetMode: string): Promise<{
19
+ static createCall(agentId: string, _clientId: string | null, prospectId: string | null, _widgetMode: string, pkKey?: string): Promise<{
20
20
  callId: string;
21
21
  workerUrl: string;
22
22
  }>;
@@ -1,5 +1,5 @@
1
1
  import { WidgetConfig } from '../../types';
2
2
 
3
3
  export declare class ConfigService {
4
- static fetchWidgetConfig(widgetId: string): Promise<WidgetConfig>;
4
+ static fetchWidgetConfig(widgetId: string, pkKey?: string): Promise<WidgetConfig>;
5
5
  }
package/dist/types.d.ts CHANGED
@@ -1,9 +1,5 @@
1
- export interface TTSProvider {
2
- root_name: string;
3
- provider_country?: string;
4
- }
5
1
  export interface TTSVoice {
6
- provider: TTSProvider;
2
+ tts_provider: string;
7
3
  }
8
4
  export interface Agent {
9
5
  tts_voice?: TTSVoice;
@@ -3,6 +3,7 @@ export declare class VaniraWidget extends HTMLElement {
3
3
  private provider;
4
4
  private widgetId;
5
5
  private agentId;
6
+ private pkKey;
6
7
  private serverUrl;
7
8
  private position;
8
9
  private primaryColor;
@@ -21,6 +21,7 @@ export declare class VaniraInternalProvider extends AbstractWidgetProvider {
21
21
  private prospectId;
22
22
  private chatId;
23
23
  private widgetId;
24
+ private pkKey;
24
25
  private primaryColor;
25
26
  private secondaryColor;
26
27
  private gradient;