@jambonz/sdk 0.8.3 → 0.9.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-C1bMbs6-.cjs';
2
- import { A as ActionHook, $ as Verb } from '../verbs-Bq-MRFKt.cjs';
1
+ import { b as CreateCallRequest, L as ListCallsFilter, a as CallInfo, C as CallCount, U as UpdateCallRequest, Q as QueueInfo } from '../rest-D1QKhJ9w.cjs';
2
+ import { A as ActionHook, _ as Verb } from '../verbs-D3M5wzwF.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-arm-pIoj.js';
2
- import { A as ActionHook, $ as Verb } from '../verbs-Bq-MRFKt.js';
1
+ import { b as CreateCallRequest, L as ListCallsFilter, a as CallInfo, C as CallCount, U as UpdateCallRequest, Q as QueueInfo } from '../rest-CFV1CPqf.js';
2
+ import { A as ActionHook, _ as Verb } from '../verbs-D3M5wzwF.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 Handoff, o as HangupVerb, J as JambonzApp, L as LLM_VENDORS, p as LeaveVerb, q as ListenVerb, r as LlmMessage, s as LlmTool, t as LlmToolOpenAIWrapped, u as LlmToolOutputData, v as LlmVendor, w as LlmVerb, M as McpServerConfig, x as MessageVerb, P as PauseVerb, y as PlayVerb, R as Recognizer, z as RedirectVerb, S as SayVerb, I as SipDeclineVerb, K as SipReferVerb, N as SipRequestVerb, O as StreamVerb, Q as Synthesizer, T as TagVerb, U as Target, V as TranscribeVerb, W as TransferConfirm, X as TransferDisposition, Y as TransferOptions, Z as TransferVerb, _ as Vad, $ as Verb, a0 as VerbName } from './verbs-Bq-MRFKt.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 Handoff, o as HangupVerb, J as JambonzApp, L 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 TransferConfirm, W as TransferDisposition, X as TransferOptions, Y as TransferVerb, Z as Vad, _ as Verb, $ as VerbName } from './verbs-D3M5wzwF.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-C1bMbs6-.cjs';
5
- export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-DpeNsmyP.cjs';
4
+ export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from './rest-D1QKhJ9w.cjs';
5
+ export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-BOAclVFC.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 Handoff, o as HangupVerb, J as JambonzApp, L as LLM_VENDORS, p as LeaveVerb, q as ListenVerb, r as LlmMessage, s as LlmTool, t as LlmToolOpenAIWrapped, u as LlmToolOutputData, v as LlmVendor, w as LlmVerb, M as McpServerConfig, x as MessageVerb, P as PauseVerb, y as PlayVerb, R as Recognizer, z as RedirectVerb, S as SayVerb, I as SipDeclineVerb, K as SipReferVerb, N as SipRequestVerb, O as StreamVerb, Q as Synthesizer, T as TagVerb, U as Target, V as TranscribeVerb, W as TransferConfirm, X as TransferDisposition, Y as TransferOptions, Z as TransferVerb, _ as Vad, $ as Verb, a0 as VerbName } from './verbs-Bq-MRFKt.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 Handoff, o as HangupVerb, J as JambonzApp, L 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 TransferConfirm, W as TransferDisposition, X as TransferOptions, Y as TransferVerb, Z as Vad, _ as Verb, $ as VerbName } from './verbs-D3M5wzwF.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-arm-pIoj.js';
5
- export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-BcM7Cth-.js';
4
+ export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from './rest-CFV1CPqf.js';
5
+ export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-CL8zS_z0.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, $ as Verb, S as SayVerb, Z as TransferVerb } from './verbs-Bq-MRFKt.js';
1
+ import { A as ActionHook, _ as Verb, S as SayVerb, Y as TransferVerb } from './verbs-D3M5wzwF.js';
2
2
 
3
3
  /**
4
4
  * Types for the jambonz REST API client.
@@ -1,4 +1,4 @@
1
- import { A as ActionHook, $ as Verb, S as SayVerb, Z as TransferVerb } from './verbs-Bq-MRFKt.cjs';
1
+ import { A as ActionHook, _ as Verb, S as SayVerb, Y as TransferVerb } from './verbs-D3M5wzwF.cjs';
2
2
 
3
3
  /**
4
4
  * Types for the jambonz REST API client.
@@ -1,22 +1,4 @@
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
- "moonshot",
17
- "zai"
18
- ];
19
-
20
- exports.LLM_VENDORS = LLM_VENDORS;
21
3
  //# sourceMappingURL=index.cjs.map
22
4
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
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,aAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF","file":"index.cjs","sourcesContent":["// AUTO-GENERATED — DO NOT EDIT BY HAND.\n// Source of truth: @jambonz/schema@0.3.19 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 'moonshot',\n 'zai',\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
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.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 Handoff, o as HangupVerb, J as JambonzApp, L as LLM_VENDORS, p as LeaveVerb, q as ListenVerb, r as LlmMessage, s as LlmTool, t as LlmToolOpenAIWrapped, u as LlmToolOutputData, v as LlmVendor, w as LlmVerb, M as McpServerConfig, x as MessageVerb, P as PauseVerb, y as PlayVerb, R as Recognizer, z as RedirectVerb, S as SayVerb, I as SipDeclineVerb, K as SipReferVerb, N as SipRequestVerb, O as StreamVerb, Q as Synthesizer, T as TagVerb, U as Target, V as TranscribeVerb, W as TransferConfirm, X as TransferDisposition, Y as TransferOptions, Z as TransferVerb, _ as Vad, $ as Verb, a0 as VerbName } from '../verbs-Bq-MRFKt.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 Handoff, o as HangupVerb, J as JambonzApp, L 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 TransferConfirm, W as TransferDisposition, X as TransferOptions, Y as TransferVerb, Z as Vad, _ as Verb, $ as VerbName } from '../verbs-D3M5wzwF.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-C1bMbs6-.cjs';
4
+ export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from '../rest-D1QKhJ9w.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 Handoff, o as HangupVerb, J as JambonzApp, L as LLM_VENDORS, p as LeaveVerb, q as ListenVerb, r as LlmMessage, s as LlmTool, t as LlmToolOpenAIWrapped, u as LlmToolOutputData, v as LlmVendor, w as LlmVerb, M as McpServerConfig, x as MessageVerb, P as PauseVerb, y as PlayVerb, R as Recognizer, z as RedirectVerb, S as SayVerb, I as SipDeclineVerb, K as SipReferVerb, N as SipRequestVerb, O as StreamVerb, Q as Synthesizer, T as TagVerb, U as Target, V as TranscribeVerb, W as TransferConfirm, X as TransferDisposition, Y as TransferOptions, Z as TransferVerb, _ as Vad, $ as Verb, a0 as VerbName } from '../verbs-Bq-MRFKt.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 Handoff, o as HangupVerb, J as JambonzApp, L 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 TransferConfirm, W as TransferDisposition, X as TransferOptions, Y as TransferVerb, Z as Vad, _ as Verb, $ as VerbName } from '../verbs-D3M5wzwF.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-arm-pIoj.js';
4
+ export { C as CallCount, a as CallInfo, b as CreateCallRequest, L as ListCallsFilter, Q as QueueInfo, U as UpdateCallRequest } from '../rest-CFV1CPqf.js';
@@ -1,20 +1,3 @@
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
- "moonshot",
15
- "zai"
16
- ];
17
1
 
18
- export { LLM_VENDORS };
19
2
  //# sourceMappingURL=index.js.map
20
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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,aAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF","file":"index.js","sourcesContent":["// AUTO-GENERATED — DO NOT EDIT BY HAND.\n// Source of truth: @jambonz/schema@0.3.19 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 'moonshot',\n 'zai',\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
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -1,4 +1,4 @@
1
- import { $ as Verb, S as SayVerb, y as PlayVerb, G as GatherVerb, w as LlmVerb, a1 as S2sVerb, a2 as LlmBaseOptions, a3 as DialogflowVerb, e as AgentVerb, q as ListenVerb, O as StreamVerb, V as TranscribeVerb, l as DialVerb, C as ConferenceVerb, a4 as RoomVerb, E as EnqueueVerb, D as DequeueVerb, o as HangupVerb, z as RedirectVerb, P as PauseVerb, p as LeaveVerb, I as SipDeclineVerb, N as SipRequestVerb, K as SipReferVerb, Z as TransferVerb, k as ConfigVerb, i as AnswerVerb, f as AlertVerb, T as TagVerb, m as DtmfVerb, n as DubVerb, x as MessageVerb } from './verbs-Bq-MRFKt.cjs';
1
+ import { _ as Verb, S as SayVerb, x as PlayVerb, G as GatherVerb, v as LlmVerb, a0 as S2sVerb, a1 as LlmBaseOptions, a2 as DialogflowVerb, e as AgentVerb, p as ListenVerb, N as StreamVerb, U as TranscribeVerb, l as DialVerb, C as ConferenceVerb, a3 as RoomVerb, E as EnqueueVerb, D as DequeueVerb, o as HangupVerb, y as RedirectVerb, P as PauseVerb, L as LeaveVerb, z as SipDeclineVerb, K as SipRequestVerb, I as SipReferVerb, Y as TransferVerb, k as ConfigVerb, i as AnswerVerb, f as AlertVerb, T as TagVerb, m as DtmfVerb, n as DubVerb, w as MessageVerb } from './verbs-D3M5wzwF.cjs';
2
2
 
3
3
  /**
4
4
  * Schema-based validation using AJV.
@@ -1,4 +1,4 @@
1
- import { $ as Verb, S as SayVerb, y as PlayVerb, G as GatherVerb, w as LlmVerb, a1 as S2sVerb, a2 as LlmBaseOptions, a3 as DialogflowVerb, e as AgentVerb, q as ListenVerb, O as StreamVerb, V as TranscribeVerb, l as DialVerb, C as ConferenceVerb, a4 as RoomVerb, E as EnqueueVerb, D as DequeueVerb, o as HangupVerb, z as RedirectVerb, P as PauseVerb, p as LeaveVerb, I as SipDeclineVerb, N as SipRequestVerb, K as SipReferVerb, Z as TransferVerb, k as ConfigVerb, i as AnswerVerb, f as AlertVerb, T as TagVerb, m as DtmfVerb, n as DubVerb, x as MessageVerb } from './verbs-Bq-MRFKt.js';
1
+ import { _ as Verb, S as SayVerb, x as PlayVerb, G as GatherVerb, v as LlmVerb, a0 as S2sVerb, a1 as LlmBaseOptions, a2 as DialogflowVerb, e as AgentVerb, p as ListenVerb, N as StreamVerb, U as TranscribeVerb, l as DialVerb, C as ConferenceVerb, a3 as RoomVerb, E as EnqueueVerb, D as DequeueVerb, o as HangupVerb, y as RedirectVerb, P as PauseVerb, L as LeaveVerb, z as SipDeclineVerb, K as SipRequestVerb, I as SipReferVerb, Y as TransferVerb, k as ConfigVerb, i as AnswerVerb, f as AlertVerb, T as TagVerb, m as DtmfVerb, n as DubVerb, w as MessageVerb } from './verbs-D3M5wzwF.js';
2
2
 
3
3
  /**
4
4
  * Schema-based validation using AJV.
@@ -134,6 +134,7 @@ interface Recognizer {
134
134
  assemblyAiOptions?: Record<string, unknown>;
135
135
  speechmaticsOptions?: Record<string, unknown>;
136
136
  openaiOptions?: Record<string, unknown>;
137
+ xaiOptions?: Record<string, unknown>;
137
138
  houndifyOptions?: Record<string, unknown>;
138
139
  gladiaOptions?: Record<string, unknown>;
139
140
  elevenlabsOptions?: Record<string, unknown>;
@@ -251,17 +252,19 @@ interface Amd {
251
252
  recognizer?: Recognizer;
252
253
  }
253
254
 
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", "moonshot", "zai"];
256
- /** Union of LLM vendor ids accepted by the agent verb's `llm.vendor`. */
257
- type LlmVendor = (typeof LLM_VENDORS)[number];
258
-
259
255
  /**
260
256
  * Verb types for all 26 jambonz verbs.
261
257
  * These map 1:1 to the JSON schemas in schema/verbs/.
262
258
  * The Verb discriminated union uses the 'verb' literal as the discriminator.
263
259
  */
264
260
 
261
+ /**
262
+ * LLM vendor id for the agent verb's `llm.vendor`. Free-form by design: the
263
+ * schema deliberately has no vendor enum so new LLMs can be added without a
264
+ * schema release; the server validates the vendor against its registered
265
+ * `@jambonz/llm` adapters at runtime.
266
+ */
267
+ type LlmVendor = string;
265
268
  interface SayVerb {
266
269
  verb: 'say';
267
270
  id?: string;
@@ -384,9 +387,10 @@ interface AgentLlmOptions {
384
387
  }
385
388
  /** `llm` block on the agent verb. */
386
389
  interface AgentLlm {
387
- /** LLM vendor. Derived from the @jambonz/schema agent verb enum — see llm-vendors.generated.ts. */
388
- vendor: LlmVendor;
389
- model: string;
390
+ /** LLM vendor. Optional: falls back to the application's default LLM vendor when omitted. */
391
+ vendor?: LlmVendor;
392
+ /** Model id. Optional: falls back to the application's default LLM model when omitted. */
393
+ model?: string;
390
394
  label?: string;
391
395
  auth?: {
392
396
  apiKey?: string;
@@ -534,8 +538,8 @@ interface AgentVerb {
534
538
  minSpeechDuration?: number;
535
539
  sticky?: boolean;
536
540
  };
537
- /** LLM configuration. */
538
- llm: AgentLlm;
541
+ /** LLM configuration. Optional: when omitted, the agent uses the application's default LLM (like stt/tts). */
542
+ llm?: AgentLlm;
539
543
  /** Webhook when agent ends. */
540
544
  actionHook?: ActionHook;
541
545
  /** Webhook for agent events. */
@@ -692,6 +696,8 @@ interface DialVerb {
692
696
  referHook?: ActionHook;
693
697
  /** Audio URL for ringback tone replacement. */
694
698
  dialMusic?: string;
699
+ /** Request SRTP (encrypted media) on the outbound call. 'sdes' negotiates keys via SDES crypto attributes (used with sips:/TLS targets); 'dtls' via DTLS-SRTP. Applies to SIP URI targets. */
700
+ srtpEncryption?: 'sdes' | 'dtls';
695
701
  /** DTMF capture patterns during bridged call. */
696
702
  dtmfCapture?: Record<string, unknown>;
697
703
  /** Webhook for captured DTMF patterns. */
@@ -1088,4 +1094,4 @@ type JambonzApp = Verb[];
1088
1094
  /** All valid verb names. */
1089
1095
  type VerbName = Verb['verb'];
1090
1096
 
1091
- export { type Verb as $, 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 Handoff as H, type SipDeclineVerb as I, type JambonzApp as J, type SipReferVerb as K, LLM_VENDORS as L, type McpServerConfig as M, type SipRequestVerb as N, type StreamVerb as O, type PauseVerb as P, type Synthesizer as Q, type Recognizer as R, type SayVerb as S, type TagVerb as T, type Target as U, type TranscribeVerb as V, type TransferConfirm as W, type TransferDisposition as X, type TransferOptions as Y, type TransferVerb as Z, type Vad as _, type ActionHookDelayAction as a, type VerbName as a0, type S2sVerb as a1, type LlmBaseOptions as a2, type DialogflowVerb as a3, type RoomVerb as a4, 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 HangupVerb as o, type LeaveVerb as p, type ListenVerb as q, type LlmMessage as r, type LlmTool as s, type LlmToolOpenAIWrapped as t, type LlmToolOutputData as u, type LlmVendor as v, type LlmVerb as w, type MessageVerb as x, type PlayVerb as y, type RedirectVerb as z };
1097
+ export type { VerbName as $, ActionHook as A, BidirectionalAudio as B, ConferenceVerb as C, DequeueVerb as D, EnqueueVerb as E, FillerNoise as F, GatherVerb as G, Handoff as H, SipReferVerb as I, JambonzApp as J, SipRequestVerb as K, LeaveVerb as L, McpServerConfig as M, StreamVerb as N, Synthesizer as O, PauseVerb as P, Target as Q, Recognizer as R, SayVerb as S, TagVerb as T, TranscribeVerb as U, TransferConfirm as V, TransferDisposition as W, TransferOptions as X, TransferVerb as Y, Vad as Z, Verb as _, ActionHookDelayAction as a, S2sVerb as a0, LlmBaseOptions as a1, DialogflowVerb as a2, RoomVerb as a3, 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, HangupVerb as o, ListenVerb as p, LlmMessage as q, LlmTool as r, LlmToolOpenAIWrapped as s, LlmToolOutputData as t, LlmVendor as u, LlmVerb as v, MessageVerb as w, PlayVerb as x, RedirectVerb as y, SipDeclineVerb as z };
@@ -134,6 +134,7 @@ interface Recognizer {
134
134
  assemblyAiOptions?: Record<string, unknown>;
135
135
  speechmaticsOptions?: Record<string, unknown>;
136
136
  openaiOptions?: Record<string, unknown>;
137
+ xaiOptions?: Record<string, unknown>;
137
138
  houndifyOptions?: Record<string, unknown>;
138
139
  gladiaOptions?: Record<string, unknown>;
139
140
  elevenlabsOptions?: Record<string, unknown>;
@@ -251,17 +252,19 @@ interface Amd {
251
252
  recognizer?: Recognizer;
252
253
  }
253
254
 
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", "moonshot", "zai"];
256
- /** Union of LLM vendor ids accepted by the agent verb's `llm.vendor`. */
257
- type LlmVendor = (typeof LLM_VENDORS)[number];
258
-
259
255
  /**
260
256
  * Verb types for all 26 jambonz verbs.
261
257
  * These map 1:1 to the JSON schemas in schema/verbs/.
262
258
  * The Verb discriminated union uses the 'verb' literal as the discriminator.
263
259
  */
264
260
 
261
+ /**
262
+ * LLM vendor id for the agent verb's `llm.vendor`. Free-form by design: the
263
+ * schema deliberately has no vendor enum so new LLMs can be added without a
264
+ * schema release; the server validates the vendor against its registered
265
+ * `@jambonz/llm` adapters at runtime.
266
+ */
267
+ type LlmVendor = string;
265
268
  interface SayVerb {
266
269
  verb: 'say';
267
270
  id?: string;
@@ -384,9 +387,10 @@ interface AgentLlmOptions {
384
387
  }
385
388
  /** `llm` block on the agent verb. */
386
389
  interface AgentLlm {
387
- /** LLM vendor. Derived from the @jambonz/schema agent verb enum — see llm-vendors.generated.ts. */
388
- vendor: LlmVendor;
389
- model: string;
390
+ /** LLM vendor. Optional: falls back to the application's default LLM vendor when omitted. */
391
+ vendor?: LlmVendor;
392
+ /** Model id. Optional: falls back to the application's default LLM model when omitted. */
393
+ model?: string;
390
394
  label?: string;
391
395
  auth?: {
392
396
  apiKey?: string;
@@ -534,8 +538,8 @@ interface AgentVerb {
534
538
  minSpeechDuration?: number;
535
539
  sticky?: boolean;
536
540
  };
537
- /** LLM configuration. */
538
- llm: AgentLlm;
541
+ /** LLM configuration. Optional: when omitted, the agent uses the application's default LLM (like stt/tts). */
542
+ llm?: AgentLlm;
539
543
  /** Webhook when agent ends. */
540
544
  actionHook?: ActionHook;
541
545
  /** Webhook for agent events. */
@@ -692,6 +696,8 @@ interface DialVerb {
692
696
  referHook?: ActionHook;
693
697
  /** Audio URL for ringback tone replacement. */
694
698
  dialMusic?: string;
699
+ /** Request SRTP (encrypted media) on the outbound call. 'sdes' negotiates keys via SDES crypto attributes (used with sips:/TLS targets); 'dtls' via DTLS-SRTP. Applies to SIP URI targets. */
700
+ srtpEncryption?: 'sdes' | 'dtls';
695
701
  /** DTMF capture patterns during bridged call. */
696
702
  dtmfCapture?: Record<string, unknown>;
697
703
  /** Webhook for captured DTMF patterns. */
@@ -1088,4 +1094,4 @@ type JambonzApp = Verb[];
1088
1094
  /** All valid verb names. */
1089
1095
  type VerbName = Verb['verb'];
1090
1096
 
1091
- export { type Verb as $, 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 Handoff as H, type SipDeclineVerb as I, type JambonzApp as J, type SipReferVerb as K, LLM_VENDORS as L, type McpServerConfig as M, type SipRequestVerb as N, type StreamVerb as O, type PauseVerb as P, type Synthesizer as Q, type Recognizer as R, type SayVerb as S, type TagVerb as T, type Target as U, type TranscribeVerb as V, type TransferConfirm as W, type TransferDisposition as X, type TransferOptions as Y, type TransferVerb as Z, type Vad as _, type ActionHookDelayAction as a, type VerbName as a0, type S2sVerb as a1, type LlmBaseOptions as a2, type DialogflowVerb as a3, type RoomVerb as a4, 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 HangupVerb as o, type LeaveVerb as p, type ListenVerb as q, type LlmMessage as r, type LlmTool as s, type LlmToolOpenAIWrapped as t, type LlmToolOutputData as u, type LlmVendor as v, type LlmVerb as w, type MessageVerb as x, type PlayVerb as y, type RedirectVerb as z };
1097
+ export type { VerbName as $, ActionHook as A, BidirectionalAudio as B, ConferenceVerb as C, DequeueVerb as D, EnqueueVerb as E, FillerNoise as F, GatherVerb as G, Handoff as H, SipReferVerb as I, JambonzApp as J, SipRequestVerb as K, LeaveVerb as L, McpServerConfig as M, StreamVerb as N, Synthesizer as O, PauseVerb as P, Target as Q, Recognizer as R, SayVerb as S, TagVerb as T, TranscribeVerb as U, TransferConfirm as V, TransferDisposition as W, TransferOptions as X, TransferVerb as Y, Vad as Z, Verb as _, ActionHookDelayAction as a, S2sVerb as a0, LlmBaseOptions as a1, DialogflowVerb as a2, RoomVerb as a3, 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, HangupVerb as o, ListenVerb as p, LlmMessage as q, LlmTool as r, LlmToolOpenAIWrapped as s, LlmToolOutputData as t, LlmVendor as u, LlmVerb as v, MessageVerb as w, PlayVerb as x, RedirectVerb as y, SipDeclineVerb as z };
@@ -1,5 +1,5 @@
1
- import { b as VerbBuilder, c as VerbBuilderOptions } from '../verb-builder-DpeNsmyP.cjs';
2
- import { J as JambonzApp } from '../verbs-Bq-MRFKt.cjs';
1
+ import { b as VerbBuilder, c as VerbBuilderOptions } from '../verb-builder-BOAclVFC.cjs';
2
+ import { J as JambonzApp } from '../verbs-D3M5wzwF.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-BcM7Cth-.js';
2
- import { J as JambonzApp } from '../verbs-Bq-MRFKt.js';
1
+ import { b as VerbBuilder, c as VerbBuilderOptions } from '../verb-builder-CL8zS_z0.js';
2
+ import { J as JambonzApp } from '../verbs-D3M5wzwF.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 { $ as Verb, S as SayVerb, u as LlmToolOutputData } from '../verbs-Bq-MRFKt.cjs';
7
- import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-DpeNsmyP.cjs';
6
+ import { _ as Verb, S as SayVerb, t as LlmToolOutputData } from '../verbs-D3M5wzwF.cjs';
7
+ import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-BOAclVFC.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 { $ as Verb, S as SayVerb, u as LlmToolOutputData } from '../verbs-Bq-MRFKt.js';
7
- import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-BcM7Cth-.js';
6
+ import { _ as Verb, S as SayVerb, t as LlmToolOutputData } from '../verbs-D3M5wzwF.js';
7
+ import { c as VerbBuilderOptions, b as VerbBuilder } from '../verb-builder-CL8zS_z0.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.8.3",
3
+ "version": "0.9.0",
4
4
  "description": "jambonz SDK for building voice applications — optimized for AI agents",
5
5
  "author": "Dave Horton",
6
6
  "license": "MIT",
@@ -82,13 +82,10 @@
82
82
  "examples"
83
83
  ],
84
84
  "scripts": {
85
- "gen:types": "node scripts/gen-llm-vendors.mjs",
86
- "prebuild": "npm run gen:types",
87
85
  "build": "tsup",
88
86
  "dev": "tsup --watch",
89
87
  "test": "vitest run",
90
88
  "test:watch": "vitest",
91
- "pretypecheck": "npm run gen:types",
92
89
  "typecheck": "tsc --noEmit",
93
90
  "lint": "eslint src/",
94
91
  "docs": "typedoc",
@@ -98,7 +95,7 @@
98
95
  "postpublish": "npm run clean-docs"
99
96
  },
100
97
  "dependencies": {
101
- "@jambonz/schema": "^0.3.19",
98
+ "@jambonz/schema": "^0.4.0",
102
99
  "ajv": "^8.17.1",
103
100
  "ws": "^8.18.0"
104
101
  },