@jambonz/sdk 0.1.22 → 0.1.24
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/client/index.d.cts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/{rest-Bzyv1yYU.d.cts → rest-CQaCWVvC.d.cts} +1 -1
- package/dist/{rest-8k251TFT.d.ts → rest-DzbjthIp.d.ts} +1 -1
- package/dist/{session-DHc6G_9y.d.cts → session-B6KvPS3U.d.cts} +5 -1
- package/dist/{session-DHc6G_9y.d.ts → session-B6KvPS3U.d.ts} +5 -1
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/{verb-builder-APl3-OHv.d.cts → verb-builder-CDtXPHlG.d.cts} +1 -1
- package/dist/{verb-builder-C6wyGbPc.d.ts → verb-builder-Cs3DsBTO.d.ts} +1 -1
- package/dist/{verbs-CzMS9-Cg.d.cts → verbs-B0sjXLLN.d.cts} +2 -0
- package/dist/{verbs-CzMS9-Cg.d.ts → verbs-B0sjXLLN.d.ts} +2 -0
- package/dist/webhook/index.d.cts +2 -2
- package/dist/webhook/index.d.ts +2 -2
- package/dist/websocket/index.d.cts +3 -3
- package/dist/websocket/index.d.ts +3 -3
- package/package.json +1 -1
- package/schema/callbacks/tts-streaming-event.schema.json +77 -0
- package/schema/verbs/config.schema.json +4 -0
package/dist/client/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as CreateCallRequest, L as ListCallsFilter, a as CallInfo, C as CallCount, U as UpdateCallRequest, Q as QueueInfo } from '../rest-
|
|
2
|
-
import { A as ActionHook, y as Verb } from '../verbs-
|
|
1
|
+
import { b as CreateCallRequest, L as ListCallsFilter, a as CallInfo, C as CallCount, U as UpdateCallRequest, Q as QueueInfo } from '../rest-CQaCWVvC.cjs';
|
|
2
|
+
import { A as ActionHook, y as Verb } from '../verbs-B0sjXLLN.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* JambonzClient — REST API client for the jambonz platform.
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as CreateCallRequest, L as ListCallsFilter, a as CallInfo, C as CallCount, U as UpdateCallRequest, Q as QueueInfo } from '../rest-
|
|
2
|
-
import { A as ActionHook, y as Verb } from '../verbs-
|
|
1
|
+
import { b as CreateCallRequest, L as ListCallsFilter, a as CallInfo, C as CallCount, U as UpdateCallRequest, Q as QueueInfo } from '../rest-DzbjthIp.js';
|
|
2
|
+
import { A as ActionHook, y as Verb } from '../verbs-B0sjXLLN.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* JambonzClient — REST API client for the jambonz platform.
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AlertVerb, d as Amd, e as AmdTimers, f as AnswerVerb, g as Auth, B as BidirectionalAudio, C as ConferenceVerb, h as ConfigVerb, D as DequeueVerb, i as DialVerb, j as DtmfVerb, k as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, l as ListenVerb, m as LlmVerb, M as McpServerConfig, n as MessageVerb, P as PauseVerb, o as PipelineVerb, p as PlayVerb, R as Recognizer, q as RedirectVerb, S as SayVerb, r as SipDeclineVerb, s as SipReferVerb, t as SipRequestVerb, u as StreamVerb, v as Synthesizer, T as TagVerb, w as Target, x as TranscribeVerb, V as Vad, y as Verb, z as VerbName } from './verbs-
|
|
2
|
-
export { C as CallSession, T as TtsStreamingEvent, a as TtsStreamingEventType, W as WsMessage, b as WsMessageType, c as WsResponse } from './session-
|
|
1
|
+
export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AlertVerb, d as Amd, e as AmdTimers, f as AnswerVerb, g as Auth, B as BidirectionalAudio, C as ConferenceVerb, h as ConfigVerb, D as DequeueVerb, i as DialVerb, j as DtmfVerb, k as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, l as ListenVerb, m as LlmVerb, M as McpServerConfig, n as MessageVerb, P as PauseVerb, o as PipelineVerb, p as PlayVerb, R as Recognizer, q as RedirectVerb, S as SayVerb, r as SipDeclineVerb, s as SipReferVerb, t as SipRequestVerb, u as StreamVerb, v as Synthesizer, T as TagVerb, w as Target, x as TranscribeVerb, V as Vad, y as Verb, z as VerbName } from './verbs-B0sjXLLN.cjs';
|
|
2
|
+
export { C as CallSession, T as TtsStreamingEvent, a as TtsStreamingEventType, W as WsMessage, b as WsMessageType, c as WsResponse } from './session-B6KvPS3U.cjs';
|
|
3
3
|
export { E as EnvVarDef, a as EnvVarSchema, L as Logger } from './common-BSJZX7WO.cjs';
|
|
4
|
-
export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from './rest-
|
|
5
|
-
export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-
|
|
4
|
+
export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from './rest-CQaCWVvC.cjs';
|
|
5
|
+
export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-CDtXPHlG.cjs';
|
|
6
6
|
export { WebhookResponse, envVarsMiddleware } from './webhook/index.cjs';
|
|
7
7
|
export { AudioClient, AudioClientEvents, AudioStream, AudioStreamEvents, AudioStreamMetadata, EndpointOptions, MakeService, Middleware, PlayAudioOptions, Session, WsClient, WsClientEvents, WsRouter, createEndpoint } from './websocket/index.cjs';
|
|
8
8
|
export { CallsResource, ClientOptions, ConferencesResource, JambonzClient, QueuesResource } from './client/index.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AlertVerb, d as Amd, e as AmdTimers, f as AnswerVerb, g as Auth, B as BidirectionalAudio, C as ConferenceVerb, h as ConfigVerb, D as DequeueVerb, i as DialVerb, j as DtmfVerb, k as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, l as ListenVerb, m as LlmVerb, M as McpServerConfig, n as MessageVerb, P as PauseVerb, o as PipelineVerb, p as PlayVerb, R as Recognizer, q as RedirectVerb, S as SayVerb, r as SipDeclineVerb, s as SipReferVerb, t as SipRequestVerb, u as StreamVerb, v as Synthesizer, T as TagVerb, w as Target, x as TranscribeVerb, V as Vad, y as Verb, z as VerbName } from './verbs-
|
|
2
|
-
export { C as CallSession, T as TtsStreamingEvent, a as TtsStreamingEventType, W as WsMessage, b as WsMessageType, c as WsResponse } from './session-
|
|
1
|
+
export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AlertVerb, d as Amd, e as AmdTimers, f as AnswerVerb, g as Auth, B as BidirectionalAudio, C as ConferenceVerb, h as ConfigVerb, D as DequeueVerb, i as DialVerb, j as DtmfVerb, k as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, l as ListenVerb, m as LlmVerb, M as McpServerConfig, n as MessageVerb, P as PauseVerb, o as PipelineVerb, p as PlayVerb, R as Recognizer, q as RedirectVerb, S as SayVerb, r as SipDeclineVerb, s as SipReferVerb, t as SipRequestVerb, u as StreamVerb, v as Synthesizer, T as TagVerb, w as Target, x as TranscribeVerb, V as Vad, y as Verb, z as VerbName } from './verbs-B0sjXLLN.js';
|
|
2
|
+
export { C as CallSession, T as TtsStreamingEvent, a as TtsStreamingEventType, W as WsMessage, b as WsMessageType, c as WsResponse } from './session-B6KvPS3U.js';
|
|
3
3
|
export { E as EnvVarDef, a as EnvVarSchema, L as Logger } from './common-BSJZX7WO.js';
|
|
4
|
-
export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from './rest-
|
|
5
|
-
export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-
|
|
4
|
+
export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from './rest-DzbjthIp.js';
|
|
5
|
+
export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-Cs3DsBTO.js';
|
|
6
6
|
export { WebhookResponse, envVarsMiddleware } from './webhook/index.js';
|
|
7
7
|
export { AudioClient, AudioClientEvents, AudioStream, AudioStreamEvents, AudioStreamMetadata, EndpointOptions, MakeService, Middleware, PlayAudioOptions, Session, WsClient, WsClientEvents, WsRouter, createEndpoint } from './websocket/index.js';
|
|
8
8
|
export { CallsResource, ClientOptions, ConferencesResource, JambonzClient, QueuesResource } from './client/index.js';
|
|
@@ -84,10 +84,14 @@ interface CallSession {
|
|
|
84
84
|
[key: string]: unknown;
|
|
85
85
|
}
|
|
86
86
|
/** TTS streaming event types sent by jambonz. */
|
|
87
|
-
type TtsStreamingEventType = 'stream_open' | 'stream_paused' | 'stream_resumed' | 'stream_closed' | 'user_interruption';
|
|
87
|
+
type TtsStreamingEventType = 'stream_open' | 'stream_paused' | 'stream_resumed' | 'stream_closed' | 'user_interruption' | 'tts_spoken';
|
|
88
88
|
/** Payload for tts:streaming-event messages. */
|
|
89
89
|
interface TtsStreamingEvent {
|
|
90
90
|
event_type: TtsStreamingEventType;
|
|
91
|
+
/** The actual text spoken via TTS (present for tts_spoken events). */
|
|
92
|
+
text?: string;
|
|
93
|
+
/** Whether the user interrupted the TTS playout (present for tts_spoken events). */
|
|
94
|
+
bargein?: boolean;
|
|
91
95
|
}
|
|
92
96
|
/** WebSocket message types received from jambonz. */
|
|
93
97
|
type WsMessageType = 'session:new' | 'session:adulting' | 'session:reconnect' | 'session:redirect' | 'verb:hook' | 'dial:confirm' | 'call:status' | 'verb:status' | 'llm:event' | 'llm:tool-call' | 'tts:streaming-event' | 'tts:tokens-result' | 'jambonz:error';
|
|
@@ -84,10 +84,14 @@ interface CallSession {
|
|
|
84
84
|
[key: string]: unknown;
|
|
85
85
|
}
|
|
86
86
|
/** TTS streaming event types sent by jambonz. */
|
|
87
|
-
type TtsStreamingEventType = 'stream_open' | 'stream_paused' | 'stream_resumed' | 'stream_closed' | 'user_interruption';
|
|
87
|
+
type TtsStreamingEventType = 'stream_open' | 'stream_paused' | 'stream_resumed' | 'stream_closed' | 'user_interruption' | 'tts_spoken';
|
|
88
88
|
/** Payload for tts:streaming-event messages. */
|
|
89
89
|
interface TtsStreamingEvent {
|
|
90
90
|
event_type: TtsStreamingEventType;
|
|
91
|
+
/** The actual text spoken via TTS (present for tts_spoken events). */
|
|
92
|
+
text?: string;
|
|
93
|
+
/** Whether the user interrupted the TTS playout (present for tts_spoken events). */
|
|
94
|
+
bargein?: boolean;
|
|
91
95
|
}
|
|
92
96
|
/** WebSocket message types received from jambonz. */
|
|
93
97
|
type WsMessageType = 'session:new' | 'session:adulting' | 'session:reconnect' | 'session:redirect' | 'verb:hook' | 'dial:confirm' | 'call:status' | 'verb:status' | 'llm:event' | 'llm:tool-call' | 'tts:streaming-event' | 'tts:tokens-result' | 'jambonz:error';
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AlertVerb, d as Amd, e as AmdTimers, f as AnswerVerb, g as Auth, B as BidirectionalAudio, C as ConferenceVerb, h as ConfigVerb, D as DequeueVerb, i as DialVerb, j as DtmfVerb, k as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, l as ListenVerb, m as LlmVerb, M as McpServerConfig, n as MessageVerb, P as PauseVerb, o as PipelineVerb, p as PlayVerb, R as Recognizer, q as RedirectVerb, S as SayVerb, r as SipDeclineVerb, s as SipReferVerb, t as SipRequestVerb, u as StreamVerb, v as Synthesizer, T as TagVerb, w as Target, x as TranscribeVerb, V as Vad, y as Verb, z as VerbName } from '../verbs-
|
|
2
|
-
export { C as CallSession, T as TtsStreamingEvent, a as TtsStreamingEventType, W as WsMessage, b as WsMessageType, c as WsResponse } from '../session-
|
|
1
|
+
export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AlertVerb, d as Amd, e as AmdTimers, f as AnswerVerb, g as Auth, B as BidirectionalAudio, C as ConferenceVerb, h as ConfigVerb, D as DequeueVerb, i as DialVerb, j as DtmfVerb, k as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, l as ListenVerb, m as LlmVerb, M as McpServerConfig, n as MessageVerb, P as PauseVerb, o as PipelineVerb, p as PlayVerb, R as Recognizer, q as RedirectVerb, S as SayVerb, r as SipDeclineVerb, s as SipReferVerb, t as SipRequestVerb, u as StreamVerb, v as Synthesizer, T as TagVerb, w as Target, x as TranscribeVerb, V as Vad, y as Verb, z as VerbName } from '../verbs-B0sjXLLN.cjs';
|
|
2
|
+
export { C as CallSession, T as TtsStreamingEvent, a as TtsStreamingEventType, W as WsMessage, b as WsMessageType, c as WsResponse } from '../session-B6KvPS3U.cjs';
|
|
3
3
|
export { E as EnvVarDef, a as EnvVarSchema, L as Logger } from '../common-BSJZX7WO.cjs';
|
|
4
|
-
export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from '../rest-
|
|
4
|
+
export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from '../rest-CQaCWVvC.cjs';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AlertVerb, d as Amd, e as AmdTimers, f as AnswerVerb, g as Auth, B as BidirectionalAudio, C as ConferenceVerb, h as ConfigVerb, D as DequeueVerb, i as DialVerb, j as DtmfVerb, k as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, l as ListenVerb, m as LlmVerb, M as McpServerConfig, n as MessageVerb, P as PauseVerb, o as PipelineVerb, p as PlayVerb, R as Recognizer, q as RedirectVerb, S as SayVerb, r as SipDeclineVerb, s as SipReferVerb, t as SipRequestVerb, u as StreamVerb, v as Synthesizer, T as TagVerb, w as Target, x as TranscribeVerb, V as Vad, y as Verb, z as VerbName } from '../verbs-
|
|
2
|
-
export { C as CallSession, T as TtsStreamingEvent, a as TtsStreamingEventType, W as WsMessage, b as WsMessageType, c as WsResponse } from '../session-
|
|
1
|
+
export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AlertVerb, d as Amd, e as AmdTimers, f as AnswerVerb, g as Auth, B as BidirectionalAudio, C as ConferenceVerb, h as ConfigVerb, D as DequeueVerb, i as DialVerb, j as DtmfVerb, k as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, l as ListenVerb, m as LlmVerb, M as McpServerConfig, n as MessageVerb, P as PauseVerb, o as PipelineVerb, p as PlayVerb, R as Recognizer, q as RedirectVerb, S as SayVerb, r as SipDeclineVerb, s as SipReferVerb, t as SipRequestVerb, u as StreamVerb, v as Synthesizer, T as TagVerb, w as Target, x as TranscribeVerb, V as Vad, y as Verb, z as VerbName } from '../verbs-B0sjXLLN.js';
|
|
2
|
+
export { C as CallSession, T as TtsStreamingEvent, a as TtsStreamingEventType, W as WsMessage, b as WsMessageType, c as WsResponse } from '../session-B6KvPS3U.js';
|
|
3
3
|
export { E as EnvVarDef, a as EnvVarSchema, L as Logger } from '../common-BSJZX7WO.js';
|
|
4
|
-
export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from '../rest-
|
|
4
|
+
export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from '../rest-DzbjthIp.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { y as Verb, S as SayVerb, p as PlayVerb, G as GatherVerb, m as LlmVerb, I as S2sVerb, K as LlmBaseOptions, N as DialogflowVerb, o as PipelineVerb, l as ListenVerb, u as StreamVerb, x as TranscribeVerb, i as DialVerb, C as ConferenceVerb, E as EnqueueVerb, D as DequeueVerb, H as HangupVerb, q as RedirectVerb, P as PauseVerb, L as LeaveVerb, r as SipDeclineVerb, t as SipRequestVerb, s as SipReferVerb, h as ConfigVerb, f as AnswerVerb, c as AlertVerb, T as TagVerb, j as DtmfVerb, k as DubVerb, n as MessageVerb } from './verbs-
|
|
1
|
+
import { y as Verb, S as SayVerb, p as PlayVerb, G as GatherVerb, m as LlmVerb, I as S2sVerb, K as LlmBaseOptions, N as DialogflowVerb, o as PipelineVerb, l as ListenVerb, u as StreamVerb, x as TranscribeVerb, i as DialVerb, C as ConferenceVerb, E as EnqueueVerb, D as DequeueVerb, H as HangupVerb, q as RedirectVerb, P as PauseVerb, L as LeaveVerb, r as SipDeclineVerb, t as SipRequestVerb, s as SipReferVerb, h as ConfigVerb, f as AnswerVerb, c as AlertVerb, T as TagVerb, j as DtmfVerb, k as DubVerb, n as MessageVerb } from './verbs-B0sjXLLN.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Schema-based validation using AJV.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { y as Verb, S as SayVerb, p as PlayVerb, G as GatherVerb, m as LlmVerb, I as S2sVerb, K as LlmBaseOptions, N as DialogflowVerb, o as PipelineVerb, l as ListenVerb, u as StreamVerb, x as TranscribeVerb, i as DialVerb, C as ConferenceVerb, E as EnqueueVerb, D as DequeueVerb, H as HangupVerb, q as RedirectVerb, P as PauseVerb, L as LeaveVerb, r as SipDeclineVerb, t as SipRequestVerb, s as SipReferVerb, h as ConfigVerb, f as AnswerVerb, c as AlertVerb, T as TagVerb, j as DtmfVerb, k as DubVerb, n as MessageVerb } from './verbs-
|
|
1
|
+
import { y as Verb, S as SayVerb, p as PlayVerb, G as GatherVerb, m as LlmVerb, I as S2sVerb, K as LlmBaseOptions, N as DialogflowVerb, o as PipelineVerb, l as ListenVerb, u as StreamVerb, x as TranscribeVerb, i as DialVerb, C as ConferenceVerb, E as EnqueueVerb, D as DequeueVerb, H as HangupVerb, q as RedirectVerb, P as PauseVerb, L as LeaveVerb, r as SipDeclineVerb, t as SipRequestVerb, s as SipReferVerb, h as ConfigVerb, f as AnswerVerb, c as AlertVerb, T as TagVerb, j as DtmfVerb, k as DubVerb, n as MessageVerb } from './verbs-B0sjXLLN.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Schema-based validation using AJV.
|
|
@@ -793,6 +793,8 @@ interface ConfigVerb {
|
|
|
793
793
|
autoStreamTts?: boolean;
|
|
794
794
|
/** Disable TTS caching. */
|
|
795
795
|
disableTtsCache?: boolean;
|
|
796
|
+
/** Report actual text spoken via TTS playout. */
|
|
797
|
+
trackTtsPlayout?: boolean;
|
|
796
798
|
/** Noise isolation config. */
|
|
797
799
|
noiseIsolation?: {
|
|
798
800
|
enable?: boolean;
|
|
@@ -793,6 +793,8 @@ interface ConfigVerb {
|
|
|
793
793
|
autoStreamTts?: boolean;
|
|
794
794
|
/** Disable TTS caching. */
|
|
795
795
|
disableTtsCache?: boolean;
|
|
796
|
+
/** Report actual text spoken via TTS playout. */
|
|
797
|
+
trackTtsPlayout?: boolean;
|
|
796
798
|
/** Noise isolation config. */
|
|
797
799
|
noiseIsolation?: {
|
|
798
800
|
enable?: boolean;
|
package/dist/webhook/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as VerbBuilder, c as VerbBuilderOptions } from '../verb-builder-
|
|
2
|
-
import { J as JambonzApp } from '../verbs-
|
|
1
|
+
import { b as VerbBuilder, c as VerbBuilderOptions } from '../verb-builder-CDtXPHlG.cjs';
|
|
2
|
+
import { J as JambonzApp } from '../verbs-B0sjXLLN.cjs';
|
|
3
3
|
import { IncomingMessage, ServerResponse } from 'http';
|
|
4
4
|
import { a as EnvVarSchema } from '../common-BSJZX7WO.cjs';
|
|
5
5
|
|
package/dist/webhook/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as VerbBuilder, c as VerbBuilderOptions } from '../verb-builder-
|
|
2
|
-
import { J as JambonzApp } from '../verbs-
|
|
1
|
+
import { b as VerbBuilder, c as VerbBuilderOptions } from '../verb-builder-Cs3DsBTO.js';
|
|
2
|
+
import { J as JambonzApp } from '../verbs-B0sjXLLN.js';
|
|
3
3
|
import { IncomingMessage, ServerResponse } from 'http';
|
|
4
4
|
import { a as EnvVarSchema } from '../common-BSJZX7WO.js';
|
|
5
5
|
|
|
@@ -2,9 +2,9 @@ import http, { IncomingMessage } from 'http';
|
|
|
2
2
|
import { L as Logger, a as EnvVarSchema } from '../common-BSJZX7WO.cjs';
|
|
3
3
|
import { EventEmitter } from 'events';
|
|
4
4
|
import { WebSocket } from 'ws';
|
|
5
|
-
import { C as CallSession, W as WsMessage } from '../session-
|
|
6
|
-
import { y as Verb } from '../verbs-
|
|
7
|
-
import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-
|
|
5
|
+
import { C as CallSession, W as WsMessage } from '../session-B6KvPS3U.cjs';
|
|
6
|
+
import { y as Verb } from '../verbs-B0sjXLLN.cjs';
|
|
7
|
+
import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-CDtXPHlG.cjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* WebSocket Session — represents a single call over a persistent WebSocket connection.
|
|
@@ -2,9 +2,9 @@ import http, { IncomingMessage } from 'http';
|
|
|
2
2
|
import { L as Logger, a as EnvVarSchema } from '../common-BSJZX7WO.js';
|
|
3
3
|
import { EventEmitter } from 'events';
|
|
4
4
|
import { WebSocket } from 'ws';
|
|
5
|
-
import { C as CallSession, W as WsMessage } from '../session-
|
|
6
|
-
import { y as Verb } from '../verbs-
|
|
7
|
-
import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-
|
|
5
|
+
import { C as CallSession, W as WsMessage } from '../session-B6KvPS3U.js';
|
|
6
|
+
import { y as Verb } from '../verbs-B0sjXLLN.js';
|
|
7
|
+
import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-Cs3DsBTO.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* WebSocket Session — represents a single call over a persistent WebSocket connection.
|
package/package.json
CHANGED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://jambonz.org/schema/callbacks/tts-streaming-event",
|
|
4
|
+
"title": "TTS Streaming Event",
|
|
5
|
+
"description": "Events sent to the '/streaming-event' WebSocket endpoint during TTS streaming. These are sent as 'tts:streaming-event' messages. The tts_spoken event is only sent when trackTtsPlayout is enabled via the config verb.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"oneOf": [
|
|
8
|
+
{
|
|
9
|
+
"properties": {
|
|
10
|
+
"event_type": {
|
|
11
|
+
"const": "stream_open",
|
|
12
|
+
"description": "The TTS streaming connection has been established."
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": ["event_type"],
|
|
16
|
+
"additionalProperties": false
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"properties": {
|
|
20
|
+
"event_type": {
|
|
21
|
+
"const": "stream_closed",
|
|
22
|
+
"description": "The TTS streaming connection has been closed."
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": ["event_type"],
|
|
26
|
+
"additionalProperties": false
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"properties": {
|
|
30
|
+
"event_type": {
|
|
31
|
+
"const": "stream_paused",
|
|
32
|
+
"description": "TTS streaming has been paused."
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": ["event_type"],
|
|
36
|
+
"additionalProperties": false
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"properties": {
|
|
40
|
+
"event_type": {
|
|
41
|
+
"const": "stream_resumed",
|
|
42
|
+
"description": "TTS streaming has been resumed."
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": ["event_type"],
|
|
46
|
+
"additionalProperties": false
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"properties": {
|
|
50
|
+
"event_type": {
|
|
51
|
+
"const": "user_interruption",
|
|
52
|
+
"description": "The user interrupted (barged in) during TTS playout, causing the stream to be cleared."
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": ["event_type"],
|
|
56
|
+
"additionalProperties": false
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"properties": {
|
|
60
|
+
"event_type": {
|
|
61
|
+
"const": "tts_spoken",
|
|
62
|
+
"description": "Reports the actual text that was spoken via TTS. Sent on utterance completion or when the user barges in. Only sent when trackTtsPlayout is enabled via the config verb. Requires a TTS vendor that supports alignment data (e.g. ElevenLabs)."
|
|
63
|
+
},
|
|
64
|
+
"text": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"description": "The text that was actually spoken before completion or interruption."
|
|
67
|
+
},
|
|
68
|
+
"bargein": {
|
|
69
|
+
"type": "boolean",
|
|
70
|
+
"description": "True if the user barged in (interrupted) before the TTS finished speaking. False if the utterance completed normally."
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": ["event_type", "text", "bargein"],
|
|
74
|
+
"additionalProperties": false
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
@@ -154,6 +154,10 @@
|
|
|
154
154
|
"type": "boolean",
|
|
155
155
|
"description": "If true, disable TTS caching for the session."
|
|
156
156
|
},
|
|
157
|
+
"trackTtsPlayout": {
|
|
158
|
+
"type": "boolean",
|
|
159
|
+
"description": "If true, report the actual text spoken via TTS. Requires a TTS vendor that supports alignment data (e.g. ElevenLabs). On each utterance completion or interruption, a tts_spoken event is sent to the '/streaming-event' endpoint with fields: 'text' (string — the text actually spoken) and 'bargein' (boolean — true if the user interrupted before TTS finished). See the tts-streaming-event callback schema for full details."
|
|
160
|
+
},
|
|
157
161
|
"noiseIsolation": {
|
|
158
162
|
"type": "object",
|
|
159
163
|
"description": "Noise isolation configuration to reduce background noise on the caller's audio.",
|