@jambonz/sdk 0.4.1 → 0.5.0

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,5 @@
1
- import { b as CreateCallRequest, L as ListCallsFilter, a as CallInfo, C as CallCount, U as UpdateCallRequest, Q as QueueInfo } from '../rest-Df1VLNZC.cjs';
2
- import { A as ActionHook, Q as Verb } from '../verbs-BYiwiHSD.cjs';
1
+ import { b as CreateCallRequest, L as ListCallsFilter, a as CallInfo, C as CallCount, U as UpdateCallRequest, Q as QueueInfo } from '../rest-D3Unbjte.cjs';
2
+ import { A as ActionHook, W as Verb } from '../verbs-HsqTs4eS.cjs';
3
3
 
4
4
  /**
5
5
  * JambonzClient — REST API client for the jambonz platform.
@@ -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-DKlu9UVB.js';
2
- import { A as ActionHook, Q as Verb } from '../verbs-BYiwiHSD.js';
1
+ import { b as CreateCallRequest, L as ListCallsFilter, a as CallInfo, C as CallCount, U as UpdateCallRequest, Q as QueueInfo } from '../rest-be5erqBB.js';
2
+ import { A as ActionHook, W as Verb } from '../verbs-HsqTs4eS.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 AgentLlm, d as AgentLlmOptions, e as AgentVerb, f as AlertVerb, g as Amd, h as AmdTimers, i as AnswerVerb, j as Auth, B as BidirectionalAudio, C as ConferenceVerb, k as ConfigVerb, D as DequeueVerb, l as DialVerb, m as DtmfVerb, n as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, o as ListenVerb, p as LlmMessage, q as LlmTool, r as LlmToolOpenAIWrapped, s as LlmToolOutputData, t as LlmVerb, M as McpServerConfig, u as MessageVerb, P as PauseVerb, v as PlayVerb, R as Recognizer, w as RedirectVerb, S as SayVerb, x as SipDeclineVerb, y as SipReferVerb, z as SipRequestVerb, I as StreamVerb, K as Synthesizer, T as TagVerb, N as Target, O as TranscribeVerb, V as Vad, Q as Verb, U as VerbName } from './verbs-BYiwiHSD.cjs';
1
+ export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AgentLlm, d as AgentLlmOptions, e as AgentVerb, f as AlertVerb, g as Amd, h as AmdTimers, i as AnswerVerb, j as Auth, B as BidirectionalAudio, C as ConferenceVerb, k as ConfigVerb, D as DequeueVerb, l as DialVerb, m as DtmfVerb, n as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LLM_VENDORS, o as LeaveVerb, p as ListenVerb, q as LlmMessage, r as LlmTool, s as LlmToolOpenAIWrapped, t as LlmToolOutputData, u as LlmVendor, v as LlmVerb, M as McpServerConfig, w as MessageVerb, P as PauseVerb, x as PlayVerb, R as Recognizer, y as RedirectVerb, S as SayVerb, z as SipDeclineVerb, I as SipReferVerb, K as SipRequestVerb, N as StreamVerb, O as Synthesizer, T as TagVerb, Q as Target, U as TranscribeVerb, V as Vad, W as Verb, X as VerbName } from './verbs-HsqTs4eS.cjs';
2
2
  export { A as AgentEvent, a as AgentEventType, b as AgentLlmResponseEvent, c as AgentPreflightMetrics, d as AgentTurnEndEvent, e as AgentTurnLatency, f as AgentUserInterruptionEvent, g as AgentUserTranscriptEvent, C as CallSession, T as TtsStreamingEvent, h as TtsStreamingEventType, W as WsMessage, i as WsMessageType, j as WsResponse } from './session-DKaSRkIo.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-Df1VLNZC.cjs';
5
- export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-B4aBXaIU.cjs';
4
+ export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from './rest-D3Unbjte.cjs';
5
+ export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-GhfG5K1Y.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 AgentLlm, d as AgentLlmOptions, e as AgentVerb, f as AlertVerb, g as Amd, h as AmdTimers, i as AnswerVerb, j as Auth, B as BidirectionalAudio, C as ConferenceVerb, k as ConfigVerb, D as DequeueVerb, l as DialVerb, m as DtmfVerb, n as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, o as ListenVerb, p as LlmMessage, q as LlmTool, r as LlmToolOpenAIWrapped, s as LlmToolOutputData, t as LlmVerb, M as McpServerConfig, u as MessageVerb, P as PauseVerb, v as PlayVerb, R as Recognizer, w as RedirectVerb, S as SayVerb, x as SipDeclineVerb, y as SipReferVerb, z as SipRequestVerb, I as StreamVerb, K as Synthesizer, T as TagVerb, N as Target, O as TranscribeVerb, V as Vad, Q as Verb, U as VerbName } from './verbs-BYiwiHSD.js';
1
+ export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AgentLlm, d as AgentLlmOptions, e as AgentVerb, f as AlertVerb, g as Amd, h as AmdTimers, i as AnswerVerb, j as Auth, B as BidirectionalAudio, C as ConferenceVerb, k as ConfigVerb, D as DequeueVerb, l as DialVerb, m as DtmfVerb, n as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LLM_VENDORS, o as LeaveVerb, p as ListenVerb, q as LlmMessage, r as LlmTool, s as LlmToolOpenAIWrapped, t as LlmToolOutputData, u as LlmVendor, v as LlmVerb, M as McpServerConfig, w as MessageVerb, P as PauseVerb, x as PlayVerb, R as Recognizer, y as RedirectVerb, S as SayVerb, z as SipDeclineVerb, I as SipReferVerb, K as SipRequestVerb, N as StreamVerb, O as Synthesizer, T as TagVerb, Q as Target, U as TranscribeVerb, V as Vad, W as Verb, X as VerbName } from './verbs-HsqTs4eS.js';
2
2
  export { A as AgentEvent, a as AgentEventType, b as AgentLlmResponseEvent, c as AgentPreflightMetrics, d as AgentTurnEndEvent, e as AgentTurnLatency, f as AgentUserInterruptionEvent, g as AgentUserTranscriptEvent, C as CallSession, T as TtsStreamingEvent, h as TtsStreamingEventType, W as WsMessage, i as WsMessageType, j as WsResponse } from './session-DKaSRkIo.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-DKlu9UVB.js';
5
- export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-DKu3DFcy.js';
4
+ export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from './rest-be5erqBB.js';
5
+ export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-giGAEMxh.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';
@@ -1,4 +1,4 @@
1
- import { A as ActionHook, Q as Verb } from './verbs-BYiwiHSD.cjs';
1
+ import { A as ActionHook, W as Verb } from './verbs-HsqTs4eS.cjs';
2
2
 
3
3
  /**
4
4
  * Types for the jambonz REST API client.
@@ -1,4 +1,4 @@
1
- import { A as ActionHook, Q as Verb } from './verbs-BYiwiHSD.js';
1
+ import { A as ActionHook, W as Verb } from './verbs-HsqTs4eS.js';
2
2
 
3
3
  /**
4
4
  * Types for the jambonz REST API client.
@@ -1,4 +1,20 @@
1
1
  'use strict';
2
2
 
3
+ // src/types/llm-vendors.generated.ts
4
+ var LLM_VENDORS = [
5
+ "openai",
6
+ "anthropic",
7
+ "google",
8
+ "vertex-gemini",
9
+ "vertex-openai",
10
+ "bedrock",
11
+ "deepseek",
12
+ "baseten",
13
+ "azure-openai",
14
+ "groq",
15
+ "huggingface"
16
+ ];
17
+
18
+ exports.LLM_VENDORS = LLM_VENDORS;
3
19
  //# sourceMappingURL=index.cjs.map
4
20
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
1
+ {"version":3,"sources":["../../src/types/llm-vendors.generated.ts"],"names":[],"mappings":";;;AAQO,IAAM,WAAA,GAAc;AAAA,EACzB,QAAA;AAAA,EACA,WAAA;AAAA,EACA,QAAA;AAAA,EACA,eAAA;AAAA,EACA,eAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,SAAA;AAAA,EACA,cAAA;AAAA,EACA,MAAA;AAAA,EACA;AACF","file":"index.cjs","sourcesContent":["// AUTO-GENERATED — DO NOT EDIT BY HAND.\n// Source of truth: @jambonz/schema@0.3.8 verbs/agent.schema.json (llm.vendor.enum)\n// Regenerate with: npm run gen:types\n//\n// This file derives the LLM vendor list from the JSON schema so the SDK's\n// types never drift from the schema when a new vendor is added.\n\n/** Supported LLM vendors for the agent verb, derived from the schema enum. */\nexport const LLM_VENDORS = [\n 'openai',\n 'anthropic',\n 'google',\n 'vertex-gemini',\n 'vertex-openai',\n 'bedrock',\n 'deepseek',\n 'baseten',\n 'azure-openai',\n 'groq',\n 'huggingface',\n] as const;\n\n/** Union of LLM vendor ids accepted by the agent verb's `llm.vendor`. */\nexport type LlmVendor = (typeof LLM_VENDORS)[number];\n"]}
@@ -1,4 +1,4 @@
1
- export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AgentLlm, d as AgentLlmOptions, e as AgentVerb, f as AlertVerb, g as Amd, h as AmdTimers, i as AnswerVerb, j as Auth, B as BidirectionalAudio, C as ConferenceVerb, k as ConfigVerb, D as DequeueVerb, l as DialVerb, m as DtmfVerb, n as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, o as ListenVerb, p as LlmMessage, q as LlmTool, r as LlmToolOpenAIWrapped, s as LlmToolOutputData, t as LlmVerb, M as McpServerConfig, u as MessageVerb, P as PauseVerb, v as PlayVerb, R as Recognizer, w as RedirectVerb, S as SayVerb, x as SipDeclineVerb, y as SipReferVerb, z as SipRequestVerb, I as StreamVerb, K as Synthesizer, T as TagVerb, N as Target, O as TranscribeVerb, V as Vad, Q as Verb, U as VerbName } from '../verbs-BYiwiHSD.cjs';
1
+ export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AgentLlm, d as AgentLlmOptions, e as AgentVerb, f as AlertVerb, g as Amd, h as AmdTimers, i as AnswerVerb, j as Auth, B as BidirectionalAudio, C as ConferenceVerb, k as ConfigVerb, D as DequeueVerb, l as DialVerb, m as DtmfVerb, n as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LLM_VENDORS, o as LeaveVerb, p as ListenVerb, q as LlmMessage, r as LlmTool, s as LlmToolOpenAIWrapped, t as LlmToolOutputData, u as LlmVendor, v as LlmVerb, M as McpServerConfig, w as MessageVerb, P as PauseVerb, x as PlayVerb, R as Recognizer, y as RedirectVerb, S as SayVerb, z as SipDeclineVerb, I as SipReferVerb, K as SipRequestVerb, N as StreamVerb, O as Synthesizer, T as TagVerb, Q as Target, U as TranscribeVerb, V as Vad, W as Verb, X as VerbName } from '../verbs-HsqTs4eS.cjs';
2
2
  export { A as AgentEvent, a as AgentEventType, b as AgentLlmResponseEvent, c as AgentPreflightMetrics, d as AgentTurnEndEvent, e as AgentTurnLatency, f as AgentUserInterruptionEvent, g as AgentUserTranscriptEvent, C as CallSession, T as TtsStreamingEvent, h as TtsStreamingEventType, W as WsMessage, i as WsMessageType, j as WsResponse } from '../session-DKaSRkIo.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-Df1VLNZC.cjs';
4
+ export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from '../rest-D3Unbjte.cjs';
@@ -1,4 +1,4 @@
1
- export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AgentLlm, d as AgentLlmOptions, e as AgentVerb, f as AlertVerb, g as Amd, h as AmdTimers, i as AnswerVerb, j as Auth, B as BidirectionalAudio, C as ConferenceVerb, k as ConfigVerb, D as DequeueVerb, l as DialVerb, m as DtmfVerb, n as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LeaveVerb, o as ListenVerb, p as LlmMessage, q as LlmTool, r as LlmToolOpenAIWrapped, s as LlmToolOutputData, t as LlmVerb, M as McpServerConfig, u as MessageVerb, P as PauseVerb, v as PlayVerb, R as Recognizer, w as RedirectVerb, S as SayVerb, x as SipDeclineVerb, y as SipReferVerb, z as SipRequestVerb, I as StreamVerb, K as Synthesizer, T as TagVerb, N as Target, O as TranscribeVerb, V as Vad, Q as Verb, U as VerbName } from '../verbs-BYiwiHSD.js';
1
+ export { A as ActionHook, a as ActionHookDelayAction, b as ActionHookObject, c as AgentLlm, d as AgentLlmOptions, e as AgentVerb, f as AlertVerb, g as Amd, h as AmdTimers, i as AnswerVerb, j as Auth, B as BidirectionalAudio, C as ConferenceVerb, k as ConfigVerb, D as DequeueVerb, l as DialVerb, m as DtmfVerb, n as DubVerb, E as EnqueueVerb, F as FillerNoise, G as GatherVerb, H as HangupVerb, J as JambonzApp, L as LLM_VENDORS, o as LeaveVerb, p as ListenVerb, q as LlmMessage, r as LlmTool, s as LlmToolOpenAIWrapped, t as LlmToolOutputData, u as LlmVendor, v as LlmVerb, M as McpServerConfig, w as MessageVerb, P as PauseVerb, x as PlayVerb, R as Recognizer, y as RedirectVerb, S as SayVerb, z as SipDeclineVerb, I as SipReferVerb, K as SipRequestVerb, N as StreamVerb, O as Synthesizer, T as TagVerb, Q as Target, U as TranscribeVerb, V as Vad, W as Verb, X as VerbName } from '../verbs-HsqTs4eS.js';
2
2
  export { A as AgentEvent, a as AgentEventType, b as AgentLlmResponseEvent, c as AgentPreflightMetrics, d as AgentTurnEndEvent, e as AgentTurnLatency, f as AgentUserInterruptionEvent, g as AgentUserTranscriptEvent, C as CallSession, T as TtsStreamingEvent, h as TtsStreamingEventType, W as WsMessage, i as WsMessageType, j as WsResponse } from '../session-DKaSRkIo.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-DKlu9UVB.js';
4
+ export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from '../rest-be5erqBB.js';
@@ -1,3 +1,18 @@
1
+ // src/types/llm-vendors.generated.ts
2
+ var LLM_VENDORS = [
3
+ "openai",
4
+ "anthropic",
5
+ "google",
6
+ "vertex-gemini",
7
+ "vertex-openai",
8
+ "bedrock",
9
+ "deepseek",
10
+ "baseten",
11
+ "azure-openai",
12
+ "groq",
13
+ "huggingface"
14
+ ];
1
15
 
16
+ export { LLM_VENDORS };
2
17
  //# sourceMappingURL=index.js.map
3
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
1
+ {"version":3,"sources":["../../src/types/llm-vendors.generated.ts"],"names":[],"mappings":";AAQO,IAAM,WAAA,GAAc;AAAA,EACzB,QAAA;AAAA,EACA,WAAA;AAAA,EACA,QAAA;AAAA,EACA,eAAA;AAAA,EACA,eAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,SAAA;AAAA,EACA,cAAA;AAAA,EACA,MAAA;AAAA,EACA;AACF","file":"index.js","sourcesContent":["// AUTO-GENERATED — DO NOT EDIT BY HAND.\n// Source of truth: @jambonz/schema@0.3.8 verbs/agent.schema.json (llm.vendor.enum)\n// Regenerate with: npm run gen:types\n//\n// This file derives the LLM vendor list from the JSON schema so the SDK's\n// types never drift from the schema when a new vendor is added.\n\n/** Supported LLM vendors for the agent verb, derived from the schema enum. */\nexport const LLM_VENDORS = [\n 'openai',\n 'anthropic',\n 'google',\n 'vertex-gemini',\n 'vertex-openai',\n 'bedrock',\n 'deepseek',\n 'baseten',\n 'azure-openai',\n 'groq',\n 'huggingface',\n] as const;\n\n/** Union of LLM vendor ids accepted by the agent verb's `llm.vendor`. */\nexport type LlmVendor = (typeof LLM_VENDORS)[number];\n"]}
@@ -1,4 +1,4 @@
1
- import { Q as Verb, S as SayVerb, v as PlayVerb, G as GatherVerb, t as LlmVerb, W as S2sVerb, X as LlmBaseOptions, Y as DialogflowVerb, e as AgentVerb, o as ListenVerb, I as StreamVerb, O as TranscribeVerb, l as DialVerb, C as ConferenceVerb, E as EnqueueVerb, D as DequeueVerb, H as HangupVerb, w as RedirectVerb, P as PauseVerb, L as LeaveVerb, x as SipDeclineVerb, z as SipRequestVerb, y as SipReferVerb, k as ConfigVerb, i as AnswerVerb, f as AlertVerb, T as TagVerb, m as DtmfVerb, n as DubVerb, u as MessageVerb } from './verbs-BYiwiHSD.cjs';
1
+ import { W as Verb, S as SayVerb, x as PlayVerb, G as GatherVerb, v as LlmVerb, Y as S2sVerb, Z as LlmBaseOptions, _ as DialogflowVerb, e as AgentVerb, p as ListenVerb, N as StreamVerb, U as TranscribeVerb, l as DialVerb, C as ConferenceVerb, E as EnqueueVerb, D as DequeueVerb, H as HangupVerb, y as RedirectVerb, P as PauseVerb, o as LeaveVerb, z as SipDeclineVerb, K as SipRequestVerb, I as SipReferVerb, k as ConfigVerb, i as AnswerVerb, f as AlertVerb, T as TagVerb, m as DtmfVerb, n as DubVerb, w as MessageVerb } from './verbs-HsqTs4eS.cjs';
2
2
 
3
3
  /**
4
4
  * Schema-based validation using AJV.
@@ -1,4 +1,4 @@
1
- import { Q as Verb, S as SayVerb, v as PlayVerb, G as GatherVerb, t as LlmVerb, W as S2sVerb, X as LlmBaseOptions, Y as DialogflowVerb, e as AgentVerb, o as ListenVerb, I as StreamVerb, O as TranscribeVerb, l as DialVerb, C as ConferenceVerb, E as EnqueueVerb, D as DequeueVerb, H as HangupVerb, w as RedirectVerb, P as PauseVerb, L as LeaveVerb, x as SipDeclineVerb, z as SipRequestVerb, y as SipReferVerb, k as ConfigVerb, i as AnswerVerb, f as AlertVerb, T as TagVerb, m as DtmfVerb, n as DubVerb, u as MessageVerb } from './verbs-BYiwiHSD.js';
1
+ import { W as Verb, S as SayVerb, x as PlayVerb, G as GatherVerb, v as LlmVerb, Y as S2sVerb, Z as LlmBaseOptions, _ as DialogflowVerb, e as AgentVerb, p as ListenVerb, N as StreamVerb, U as TranscribeVerb, l as DialVerb, C as ConferenceVerb, E as EnqueueVerb, D as DequeueVerb, H as HangupVerb, y as RedirectVerb, P as PauseVerb, o as LeaveVerb, z as SipDeclineVerb, K as SipRequestVerb, I as SipReferVerb, k as ConfigVerb, i as AnswerVerb, f as AlertVerb, T as TagVerb, m as DtmfVerb, n as DubVerb, w as MessageVerb } from './verbs-HsqTs4eS.js';
2
2
 
3
3
  /**
4
4
  * Schema-based validation using AJV.
@@ -251,6 +251,11 @@ interface Amd {
251
251
  recognizer?: Recognizer;
252
252
  }
253
253
 
254
+ /** Supported LLM vendors for the agent verb, derived from the schema enum. */
255
+ declare const LLM_VENDORS: readonly ["openai", "anthropic", "google", "vertex-gemini", "vertex-openai", "bedrock", "deepseek", "baseten", "azure-openai", "groq", "huggingface"];
256
+ /** Union of LLM vendor ids accepted by the agent verb's `llm.vendor`. */
257
+ type LlmVendor = (typeof LLM_VENDORS)[number];
258
+
254
259
  /**
255
260
  * Verb types for all 26 jambonz verbs.
256
261
  * These map 1:1 to the JSON schemas in schema/verbs/.
@@ -379,7 +384,8 @@ interface AgentLlmOptions {
379
384
  }
380
385
  /** `llm` block on the agent verb. */
381
386
  interface AgentLlm {
382
- vendor: 'openai' | 'anthropic' | 'google' | 'vertex-gemini' | 'vertex-openai' | 'bedrock' | 'deepseek';
387
+ /** LLM vendor. Derived from the @jambonz/schema agent verb enum — see llm-vendors.generated.ts. */
388
+ vendor: LlmVendor;
383
389
  model: string;
384
390
  label?: string;
385
391
  auth?: {
@@ -518,6 +524,19 @@ interface AgentVerb {
518
524
  eventHook?: ActionHook;
519
525
  /** Webhook when the LLM requests a tool/function call. */
520
526
  toolHook?: ActionHook;
527
+ /** Configuration for playing filler audio while tool calls are in progress. Prevents silence during long-running tool executions. */
528
+ toolFiller?: false | {
529
+ /** Filler mode. 'audio' plays a looping audio file. 'backchannel' uses TTS to speak short phrases. */
530
+ type: 'audio' | 'backchannel';
531
+ /** Seconds to wait after tool invocation before playing filler. Default: 2. */
532
+ startDelaySecs?: number;
533
+ /** Audio file URL (for type='audio'). Should be loopable. */
534
+ url?: string;
535
+ /** Free-form style hint for LLM-generated phrases (for type='backchannel'). */
536
+ style?: string;
537
+ /** Seconds from tool invocation before generating a longer explanatory response (for type='backchannel'). Default: 10. */
538
+ escalationSecs?: number;
539
+ };
521
540
  /** Whether the LLM generates an initial greeting before the user speaks. Default: true. */
522
541
  greeting?: boolean;
523
542
  /** Speculatively prompt the LLM on final transcript before Krisp end-of-turn. Default: false. */
@@ -948,4 +967,4 @@ type JambonzApp = Verb[];
948
967
  /** All valid verb names. */
949
968
  type VerbName = Verb['verb'];
950
969
 
951
- export type { ActionHook as A, BidirectionalAudio as B, ConferenceVerb as C, DequeueVerb as D, EnqueueVerb as E, FillerNoise as F, GatherVerb as G, HangupVerb as H, StreamVerb as I, JambonzApp as J, Synthesizer as K, LeaveVerb as L, McpServerConfig as M, Target as N, TranscribeVerb as O, PauseVerb as P, Verb as Q, Recognizer as R, SayVerb as S, TagVerb as T, VerbName as U, Vad as V, S2sVerb as W, LlmBaseOptions as X, DialogflowVerb as Y, ActionHookDelayAction as a, ActionHookObject as b, AgentLlm as c, AgentLlmOptions as d, AgentVerb as e, AlertVerb as f, Amd as g, AmdTimers as h, AnswerVerb as i, Auth as j, ConfigVerb as k, DialVerb as l, DtmfVerb as m, DubVerb as n, ListenVerb as o, LlmMessage as p, LlmTool as q, LlmToolOpenAIWrapped as r, LlmToolOutputData as s, LlmVerb as t, MessageVerb as u, PlayVerb as v, RedirectVerb as w, SipDeclineVerb as x, SipReferVerb as y, SipRequestVerb as z };
970
+ export { type ActionHook as A, type BidirectionalAudio as B, type ConferenceVerb as C, type DequeueVerb as D, type EnqueueVerb as E, type FillerNoise as F, type GatherVerb as G, type HangupVerb as H, type SipReferVerb as I, type JambonzApp as J, type SipRequestVerb as K, LLM_VENDORS as L, type McpServerConfig as M, type StreamVerb as N, type Synthesizer as O, type PauseVerb as P, type Target as Q, type Recognizer as R, type SayVerb as S, type TagVerb as T, type TranscribeVerb as U, type Vad as V, type Verb as W, type VerbName as X, type S2sVerb as Y, type LlmBaseOptions as Z, type DialogflowVerb as _, type ActionHookDelayAction as a, type ActionHookObject as b, type AgentLlm as c, type AgentLlmOptions as d, type AgentVerb as e, type AlertVerb as f, type Amd as g, type AmdTimers as h, type AnswerVerb as i, type Auth as j, type ConfigVerb as k, type DialVerb as l, type DtmfVerb as m, type DubVerb as n, type LeaveVerb as o, type ListenVerb as p, type LlmMessage as q, type LlmTool as r, type LlmToolOpenAIWrapped as s, type LlmToolOutputData as t, type LlmVendor as u, type LlmVerb as v, type MessageVerb as w, type PlayVerb as x, type RedirectVerb as y, type SipDeclineVerb as z };
@@ -251,6 +251,11 @@ interface Amd {
251
251
  recognizer?: Recognizer;
252
252
  }
253
253
 
254
+ /** Supported LLM vendors for the agent verb, derived from the schema enum. */
255
+ declare const LLM_VENDORS: readonly ["openai", "anthropic", "google", "vertex-gemini", "vertex-openai", "bedrock", "deepseek", "baseten", "azure-openai", "groq", "huggingface"];
256
+ /** Union of LLM vendor ids accepted by the agent verb's `llm.vendor`. */
257
+ type LlmVendor = (typeof LLM_VENDORS)[number];
258
+
254
259
  /**
255
260
  * Verb types for all 26 jambonz verbs.
256
261
  * These map 1:1 to the JSON schemas in schema/verbs/.
@@ -379,7 +384,8 @@ interface AgentLlmOptions {
379
384
  }
380
385
  /** `llm` block on the agent verb. */
381
386
  interface AgentLlm {
382
- vendor: 'openai' | 'anthropic' | 'google' | 'vertex-gemini' | 'vertex-openai' | 'bedrock' | 'deepseek';
387
+ /** LLM vendor. Derived from the @jambonz/schema agent verb enum — see llm-vendors.generated.ts. */
388
+ vendor: LlmVendor;
383
389
  model: string;
384
390
  label?: string;
385
391
  auth?: {
@@ -518,6 +524,19 @@ interface AgentVerb {
518
524
  eventHook?: ActionHook;
519
525
  /** Webhook when the LLM requests a tool/function call. */
520
526
  toolHook?: ActionHook;
527
+ /** Configuration for playing filler audio while tool calls are in progress. Prevents silence during long-running tool executions. */
528
+ toolFiller?: false | {
529
+ /** Filler mode. 'audio' plays a looping audio file. 'backchannel' uses TTS to speak short phrases. */
530
+ type: 'audio' | 'backchannel';
531
+ /** Seconds to wait after tool invocation before playing filler. Default: 2. */
532
+ startDelaySecs?: number;
533
+ /** Audio file URL (for type='audio'). Should be loopable. */
534
+ url?: string;
535
+ /** Free-form style hint for LLM-generated phrases (for type='backchannel'). */
536
+ style?: string;
537
+ /** Seconds from tool invocation before generating a longer explanatory response (for type='backchannel'). Default: 10. */
538
+ escalationSecs?: number;
539
+ };
521
540
  /** Whether the LLM generates an initial greeting before the user speaks. Default: true. */
522
541
  greeting?: boolean;
523
542
  /** Speculatively prompt the LLM on final transcript before Krisp end-of-turn. Default: false. */
@@ -948,4 +967,4 @@ type JambonzApp = Verb[];
948
967
  /** All valid verb names. */
949
968
  type VerbName = Verb['verb'];
950
969
 
951
- export type { ActionHook as A, BidirectionalAudio as B, ConferenceVerb as C, DequeueVerb as D, EnqueueVerb as E, FillerNoise as F, GatherVerb as G, HangupVerb as H, StreamVerb as I, JambonzApp as J, Synthesizer as K, LeaveVerb as L, McpServerConfig as M, Target as N, TranscribeVerb as O, PauseVerb as P, Verb as Q, Recognizer as R, SayVerb as S, TagVerb as T, VerbName as U, Vad as V, S2sVerb as W, LlmBaseOptions as X, DialogflowVerb as Y, ActionHookDelayAction as a, ActionHookObject as b, AgentLlm as c, AgentLlmOptions as d, AgentVerb as e, AlertVerb as f, Amd as g, AmdTimers as h, AnswerVerb as i, Auth as j, ConfigVerb as k, DialVerb as l, DtmfVerb as m, DubVerb as n, ListenVerb as o, LlmMessage as p, LlmTool as q, LlmToolOpenAIWrapped as r, LlmToolOutputData as s, LlmVerb as t, MessageVerb as u, PlayVerb as v, RedirectVerb as w, SipDeclineVerb as x, SipReferVerb as y, SipRequestVerb as z };
970
+ export { type ActionHook as A, type BidirectionalAudio as B, type ConferenceVerb as C, type DequeueVerb as D, type EnqueueVerb as E, type FillerNoise as F, type GatherVerb as G, type HangupVerb as H, type SipReferVerb as I, type JambonzApp as J, type SipRequestVerb as K, LLM_VENDORS as L, type McpServerConfig as M, type StreamVerb as N, type Synthesizer as O, type PauseVerb as P, type Target as Q, type Recognizer as R, type SayVerb as S, type TagVerb as T, type TranscribeVerb as U, type Vad as V, type Verb as W, type VerbName as X, type S2sVerb as Y, type LlmBaseOptions as Z, type DialogflowVerb as _, type ActionHookDelayAction as a, type ActionHookObject as b, type AgentLlm as c, type AgentLlmOptions as d, type AgentVerb as e, type AlertVerb as f, type Amd as g, type AmdTimers as h, type AnswerVerb as i, type Auth as j, type ConfigVerb as k, type DialVerb as l, type DtmfVerb as m, type DubVerb as n, type LeaveVerb as o, type ListenVerb as p, type LlmMessage as q, type LlmTool as r, type LlmToolOpenAIWrapped as s, type LlmToolOutputData as t, type LlmVendor as u, type LlmVerb as v, type MessageVerb as w, type PlayVerb as x, type RedirectVerb as y, type SipDeclineVerb as z };
@@ -1,5 +1,5 @@
1
- import { b as VerbBuilder, c as VerbBuilderOptions } from '../verb-builder-B4aBXaIU.cjs';
2
- import { J as JambonzApp } from '../verbs-BYiwiHSD.cjs';
1
+ import { b as VerbBuilder, c as VerbBuilderOptions } from '../verb-builder-GhfG5K1Y.cjs';
2
+ import { J as JambonzApp } from '../verbs-HsqTs4eS.cjs';
3
3
  import { IncomingMessage, ServerResponse } from 'http';
4
4
  import { a as EnvVarSchema } from '../common-BSJZX7WO.cjs';
5
5
 
@@ -1,5 +1,5 @@
1
- import { b as VerbBuilder, c as VerbBuilderOptions } from '../verb-builder-DKu3DFcy.js';
2
- import { J as JambonzApp } from '../verbs-BYiwiHSD.js';
1
+ import { b as VerbBuilder, c as VerbBuilderOptions } from '../verb-builder-giGAEMxh.js';
2
+ import { J as JambonzApp } from '../verbs-HsqTs4eS.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-DKaSRkIo.cjs';
6
- import { Q as Verb, s as LlmToolOutputData } from '../verbs-BYiwiHSD.cjs';
7
- import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-B4aBXaIU.cjs';
6
+ import { W as Verb, t as LlmToolOutputData } from '../verbs-HsqTs4eS.cjs';
7
+ import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-GhfG5K1Y.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-DKaSRkIo.js';
6
- import { Q as Verb, s as LlmToolOutputData } from '../verbs-BYiwiHSD.js';
7
- import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-DKu3DFcy.js';
6
+ import { W as Verb, t as LlmToolOutputData } from '../verbs-HsqTs4eS.js';
7
+ import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-giGAEMxh.js';
8
8
 
9
9
  /**
10
10
  * WebSocket Session — represents a single call over a persistent WebSocket connection.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jambonz/sdk",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "jambonz SDK for building voice applications — optimized for AI agents",
5
5
  "author": "Dave Horton",
6
6
  "license": "MIT",
@@ -82,10 +82,13 @@
82
82
  "examples"
83
83
  ],
84
84
  "scripts": {
85
+ "gen:types": "node scripts/gen-llm-vendors.mjs",
86
+ "prebuild": "npm run gen:types",
85
87
  "build": "tsup",
86
88
  "dev": "tsup --watch",
87
89
  "test": "vitest run",
88
90
  "test:watch": "vitest",
91
+ "pretypecheck": "npm run gen:types",
89
92
  "typecheck": "tsc --noEmit",
90
93
  "lint": "eslint src/",
91
94
  "docs": "typedoc",
@@ -95,7 +98,7 @@
95
98
  "postpublish": "npm run clean-docs"
96
99
  },
97
100
  "dependencies": {
98
- "@jambonz/schema": "^0.3.5",
101
+ "@jambonz/schema": "^0.3.8",
99
102
  "ajv": "^8.17.1",
100
103
  "ws": "^8.18.0"
101
104
  },