@tmsoft/webphone 1.1.19 → 1.1.20

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.d.ts CHANGED
@@ -11,6 +11,7 @@ declare const __VLS_component: DefineComponent<WebphoneProps, {}, {}, {}, {}, Co
11
11
  backRingerRef: HTMLAudioElement;
12
12
  viewerRef: HTMLVideoElement;
13
13
  selfViewerRef: HTMLVideoElement;
14
+ transcriptRef: HTMLDivElement;
14
15
  }, HTMLDivElement>;
15
16
 
16
17
  declare function __VLS_template(): {
@@ -24,6 +25,7 @@ declare function __VLS_template(): {
24
25
  backRingerRef: HTMLAudioElement;
25
26
  viewerRef: HTMLVideoElement;
26
27
  selfViewerRef: HTMLVideoElement;
28
+ transcriptRef: HTMLDivElement;
27
29
  };
28
30
  rootEl: HTMLDivElement;
29
31
  };
@@ -46,6 +48,16 @@ declare interface WebphoneProps {
46
48
  image?: string;
47
49
  to?: string;
48
50
  callback?: (event: MouseEvent) => void;
51
+ /**
52
+ * (Opcional) Endpoint backend que devuelve el token efímero para OpenAI Realtime.
53
+ * Si se provee, se asigna a window.__WEBPHONE_TRANSCRIPTION_TOKEN_URL__ automáticamente.
54
+ */
55
+ transcriptionTokenUrl?: string;
56
+ /**
57
+ * (Opcional) API key para solicitar el token efímero al endpoint indicado en `transcriptionTokenUrl`.
58
+ * Se envía en el header `api-key`.
59
+ */
60
+ transcriptionTokenApiKey?: string;
49
61
  }
50
62
 
51
63
  export { }