@jambonz/sdk 0.1.14 → 0.1.17
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 +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/{rest-DEEB3QK9.d.ts → rest-Ca2Zw6QX.d.ts} +1 -1
- package/dist/{rest-Q_HBbPz4.d.cts → rest-HNzc9abq.d.cts} +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{verb-builder-CmrtErY7.d.ts → verb-builder-BvWA5lVf.d.ts} +1 -1
- package/dist/{verb-builder-CciZHUjo.d.cts → verb-builder-CZ3oXfC7.d.cts} +1 -1
- package/dist/{verbs-B_lYU2RS.d.cts → verbs-pPRZK2ME.d.cts} +10 -8
- package/dist/{verbs-B_lYU2RS.d.ts → verbs-pPRZK2ME.d.ts} +10 -8
- package/dist/webhook/index.d.cts +2 -2
- package/dist/webhook/index.d.ts +2 -2
- package/dist/websocket/index.d.cts +2 -2
- package/dist/websocket/index.d.ts +2 -2
- package/package.json +1 -1
- package/schema/verbs/pipeline.schema.json +81 -28
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-HNzc9abq.cjs';
|
|
2
|
+
import { A as ActionHook, y as Verb } from '../verbs-pPRZK2ME.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-Ca2Zw6QX.js';
|
|
2
|
+
import { A as ActionHook, y as Verb } from '../verbs-pPRZK2ME.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-
|
|
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-pPRZK2ME.cjs';
|
|
2
2
|
export { C as CallSession, T as TtsStreamingEvent, a as TtsStreamingEventType, W as WsMessage, b as WsMessageType, c as WsResponse } from './session-DHc6G_9y.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-HNzc9abq.cjs';
|
|
5
|
+
export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-CZ3oXfC7.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-
|
|
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-pPRZK2ME.js';
|
|
2
2
|
export { C as CallSession, T as TtsStreamingEvent, a as TtsStreamingEventType, W as WsMessage, b as WsMessageType, c as WsResponse } from './session-DHc6G_9y.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-Ca2Zw6QX.js';
|
|
5
|
+
export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-BvWA5lVf.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';
|
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-
|
|
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-pPRZK2ME.cjs';
|
|
2
2
|
export { C as CallSession, T as TtsStreamingEvent, a as TtsStreamingEventType, W as WsMessage, b as WsMessageType, c as WsResponse } from '../session-DHc6G_9y.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-HNzc9abq.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-
|
|
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-pPRZK2ME.js';
|
|
2
2
|
export { C as CallSession, T as TtsStreamingEvent, a as TtsStreamingEventType, W as WsMessage, b as WsMessageType, c as WsResponse } from '../session-DHc6G_9y.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-Ca2Zw6QX.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-pPRZK2ME.js';
|
|
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-pPRZK2ME.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Schema-based validation using AJV.
|
|
@@ -444,18 +444,20 @@ interface PipelineVerb {
|
|
|
444
444
|
stt: Recognizer;
|
|
445
445
|
/** TTS configuration. */
|
|
446
446
|
tts: Synthesizer;
|
|
447
|
-
/**
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
turnDetection?: {
|
|
451
|
-
vendor: string;
|
|
447
|
+
/** Turn detection strategy. String shorthand ('stt' or 'krisp') or object with tunable params. */
|
|
448
|
+
turnDetection?: 'stt' | 'krisp' | {
|
|
449
|
+
mode: 'krisp';
|
|
452
450
|
threshold?: number;
|
|
453
|
-
|
|
451
|
+
model?: string;
|
|
452
|
+
};
|
|
453
|
+
/** Barge-in configuration — controls user interruption of assistant speech. */
|
|
454
|
+
bargeIn?: {
|
|
455
|
+
enable?: boolean;
|
|
456
|
+
minSpeechDuration?: number;
|
|
457
|
+
sticky?: boolean;
|
|
454
458
|
};
|
|
455
459
|
/** LLM configuration. */
|
|
456
460
|
llm: Record<string, unknown>;
|
|
457
|
-
/** Pre-establish LLM connection before call starts. */
|
|
458
|
-
preflightLlm?: boolean;
|
|
459
461
|
/** Webhook when pipeline ends. */
|
|
460
462
|
actionHook?: ActionHook;
|
|
461
463
|
/** Webhook for pipeline events. */
|
|
@@ -444,18 +444,20 @@ interface PipelineVerb {
|
|
|
444
444
|
stt: Recognizer;
|
|
445
445
|
/** TTS configuration. */
|
|
446
446
|
tts: Synthesizer;
|
|
447
|
-
/**
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
turnDetection?: {
|
|
451
|
-
vendor: string;
|
|
447
|
+
/** Turn detection strategy. String shorthand ('stt' or 'krisp') or object with tunable params. */
|
|
448
|
+
turnDetection?: 'stt' | 'krisp' | {
|
|
449
|
+
mode: 'krisp';
|
|
452
450
|
threshold?: number;
|
|
453
|
-
|
|
451
|
+
model?: string;
|
|
452
|
+
};
|
|
453
|
+
/** Barge-in configuration — controls user interruption of assistant speech. */
|
|
454
|
+
bargeIn?: {
|
|
455
|
+
enable?: boolean;
|
|
456
|
+
minSpeechDuration?: number;
|
|
457
|
+
sticky?: boolean;
|
|
454
458
|
};
|
|
455
459
|
/** LLM configuration. */
|
|
456
460
|
llm: Record<string, unknown>;
|
|
457
|
-
/** Pre-establish LLM connection before call starts. */
|
|
458
|
-
preflightLlm?: boolean;
|
|
459
461
|
/** Webhook when pipeline ends. */
|
|
460
462
|
actionHook?: ActionHook;
|
|
461
463
|
/** Webhook for pipeline events. */
|
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-CZ3oXfC7.cjs';
|
|
2
|
+
import { J as JambonzApp } from '../verbs-pPRZK2ME.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-BvWA5lVf.js';
|
|
2
|
+
import { J as JambonzApp } from '../verbs-pPRZK2ME.js';
|
|
3
3
|
import { IncomingMessage, ServerResponse } from 'http';
|
|
4
4
|
import { a as EnvVarSchema } from '../common-BSJZX7WO.js';
|
|
5
5
|
|
|
@@ -3,8 +3,8 @@ import { L as Logger, a as EnvVarSchema } from '../common-BSJZX7WO.cjs';
|
|
|
3
3
|
import { EventEmitter } from 'events';
|
|
4
4
|
import { WebSocket } from 'ws';
|
|
5
5
|
import { C as CallSession, W as WsMessage } from '../session-DHc6G_9y.cjs';
|
|
6
|
-
import { y as Verb } from '../verbs-
|
|
7
|
-
import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-
|
|
6
|
+
import { y as Verb } from '../verbs-pPRZK2ME.cjs';
|
|
7
|
+
import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-CZ3oXfC7.cjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* WebSocket Session — represents a single call over a persistent WebSocket connection.
|
|
@@ -3,8 +3,8 @@ import { L as Logger, a as EnvVarSchema } from '../common-BSJZX7WO.js';
|
|
|
3
3
|
import { EventEmitter } from 'events';
|
|
4
4
|
import { WebSocket } from 'ws';
|
|
5
5
|
import { C as CallSession, W as WsMessage } from '../session-DHc6G_9y.js';
|
|
6
|
-
import { y as Verb } from '../verbs-
|
|
7
|
-
import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-
|
|
6
|
+
import { y as Verb } from '../verbs-pPRZK2ME.js';
|
|
7
|
+
import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-BvWA5lVf.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* WebSocket Session — represents a single call over a persistent WebSocket connection.
|
package/package.json
CHANGED
|
@@ -21,43 +21,68 @@
|
|
|
21
21
|
"$ref": "../components/synthesizer",
|
|
22
22
|
"description": "Text-to-speech configuration for the pipeline."
|
|
23
23
|
},
|
|
24
|
-
"vad": {
|
|
25
|
-
"$ref": "../components/vad",
|
|
26
|
-
"description": "Voice activity detection configuration for the pipeline."
|
|
27
|
-
},
|
|
28
24
|
"turnDetection": {
|
|
25
|
+
"oneOf": [
|
|
26
|
+
{
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": ["stt", "krisp"],
|
|
29
|
+
"description": "Turn detection strategy shorthand. 'stt' uses the STT vendor's native signals (silence-based for most vendors; acoustic+semantic for deepgramflux, assemblyai, speechmatics). 'krisp' uses the Krisp acoustic end-of-turn model with default settings."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "object",
|
|
33
|
+
"description": "Turn detection configuration with tunable parameters.",
|
|
34
|
+
"properties": {
|
|
35
|
+
"mode": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": ["krisp"],
|
|
38
|
+
"description": "Turn detection mode. Currently only 'krisp' supports object-form tuning."
|
|
39
|
+
},
|
|
40
|
+
"threshold": {
|
|
41
|
+
"type": "number",
|
|
42
|
+
"minimum": 0,
|
|
43
|
+
"maximum": 1,
|
|
44
|
+
"description": "Krisp end-of-turn confidence threshold (0.0–1.0). Lower values trigger earlier turn transitions. Default: 0.5"
|
|
45
|
+
},
|
|
46
|
+
"model": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "Optional Krisp model name override."
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": ["mode"],
|
|
52
|
+
"additionalProperties": false
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"default": "stt",
|
|
56
|
+
"description": "Turn detection strategy. Controls when the pipeline decides the user has finished speaking. STT vendors with native turn-taking (deepgramflux, assemblyai, speechmatics) always use their built-in detection regardless of this setting."
|
|
57
|
+
},
|
|
58
|
+
"bargeIn": {
|
|
29
59
|
"type": "object",
|
|
30
|
-
"description": "
|
|
60
|
+
"description": "Controls whether and how the user can interrupt the assistant while it is speaking.",
|
|
31
61
|
"properties": {
|
|
32
|
-
"
|
|
33
|
-
"type": "
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
],
|
|
37
|
-
"description": "The turn detection vendor."
|
|
62
|
+
"enable": {
|
|
63
|
+
"type": "boolean",
|
|
64
|
+
"description": "Allow the user to interrupt the assistant while it is speaking. Default: true.",
|
|
65
|
+
"default": true
|
|
38
66
|
},
|
|
39
|
-
"
|
|
67
|
+
"minSpeechDuration": {
|
|
40
68
|
"type": "number",
|
|
41
|
-
"
|
|
69
|
+
"minimum": 0,
|
|
70
|
+
"description": "Seconds of detected speech required before confirming an interruption. Prevents brief noises from cutting off the assistant. Default: 0.5",
|
|
71
|
+
"default": 0.5
|
|
42
72
|
},
|
|
43
|
-
"
|
|
44
|
-
"type": "
|
|
45
|
-
"description": "
|
|
73
|
+
"sticky": {
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"description": "If true, once the user interrupts the assistant does not resume speaking. Default: false.",
|
|
76
|
+
"default": false
|
|
46
77
|
}
|
|
47
78
|
},
|
|
48
|
-
"
|
|
49
|
-
"vendor"
|
|
50
|
-
]
|
|
79
|
+
"additionalProperties": false
|
|
51
80
|
},
|
|
52
81
|
"llm": {
|
|
53
82
|
"type": "object",
|
|
54
83
|
"description": "LLM configuration for the pipeline. See the 'llm' verb schema for details.",
|
|
55
84
|
"additionalProperties": true
|
|
56
85
|
},
|
|
57
|
-
"preflightLlm": {
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"description": "If true, establish the LLM connection before the call starts to reduce latency on the first interaction."
|
|
60
|
-
},
|
|
61
86
|
"actionHook": {
|
|
62
87
|
"$ref": "../components/actionHook",
|
|
63
88
|
"description": "A webhook invoked when the pipeline ends."
|
|
@@ -72,9 +97,7 @@
|
|
|
72
97
|
}
|
|
73
98
|
},
|
|
74
99
|
"required": [
|
|
75
|
-
"
|
|
76
|
-
"llm",
|
|
77
|
-
"tts"
|
|
100
|
+
"llm"
|
|
78
101
|
],
|
|
79
102
|
"examples": [
|
|
80
103
|
{
|
|
@@ -99,9 +122,39 @@
|
|
|
99
122
|
]
|
|
100
123
|
}
|
|
101
124
|
},
|
|
125
|
+
"turnDetection": "stt",
|
|
126
|
+
"actionHook": "/pipeline-complete"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"verb": "pipeline",
|
|
130
|
+
"stt": {
|
|
131
|
+
"vendor": "deepgram",
|
|
132
|
+
"language": "en-US"
|
|
133
|
+
},
|
|
134
|
+
"tts": {
|
|
135
|
+
"vendor": "cartesia",
|
|
136
|
+
"voice": "sonic-english"
|
|
137
|
+
},
|
|
138
|
+
"llm": {
|
|
139
|
+
"vendor": "anthropic",
|
|
140
|
+
"model": "claude-opus-4-6",
|
|
141
|
+
"llmOptions": {
|
|
142
|
+
"messages": [
|
|
143
|
+
{
|
|
144
|
+
"role": "user",
|
|
145
|
+
"content": "You are a helpful voice assistant."
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
},
|
|
102
150
|
"turnDetection": {
|
|
103
|
-
"
|
|
104
|
-
"threshold": 0.
|
|
151
|
+
"mode": "krisp",
|
|
152
|
+
"threshold": 0.3
|
|
153
|
+
},
|
|
154
|
+
"bargeIn": {
|
|
155
|
+
"enable": true,
|
|
156
|
+
"minSpeechDuration": 0.3,
|
|
157
|
+
"sticky": false
|
|
105
158
|
},
|
|
106
159
|
"actionHook": "/pipeline-complete"
|
|
107
160
|
}
|