@jambonz/sdk 0.5.1 → 0.7.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.
- package/dist/client/index.d.cts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/index.cjs +23 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -1
- package/dist/{rest-DGC0sb_u.d.ts → rest-B1Gb3E0R.d.cts} +25 -1
- package/dist/{rest-D570okym.d.cts → rest-CoEMXJy6.d.ts} +25 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{verb-builder-CNdBB1t6.d.cts → verb-builder-CwXZO4NY.d.ts} +3 -1
- package/dist/{verb-builder-DF5pnZWH.d.ts → verb-builder-D3TNKZcU.d.cts} +3 -1
- package/dist/{verbs-lEtMeHGd.d.cts → verbs-O_ofvl8T.d.cts} +22 -3
- package/dist/{verbs-lEtMeHGd.d.ts → verbs-O_ofvl8T.d.ts} +22 -3
- package/dist/webhook/index.cjs +4 -0
- package/dist/webhook/index.cjs.map +1 -1
- package/dist/webhook/index.d.cts +2 -2
- package/dist/webhook/index.d.ts +2 -2
- package/dist/webhook/index.js +4 -0
- package/dist/webhook/index.js.map +1 -1
- package/dist/websocket/index.cjs +23 -0
- package/dist/websocket/index.cjs.map +1 -1
- package/dist/websocket/index.d.cts +28 -2
- package/dist/websocket/index.d.ts +28 -2
- package/dist/websocket/index.js +23 -0
- package/dist/websocket/index.js.map +1 -1
- package/package.json +1 -1
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 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-
|
|
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-O_ofvl8T.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-
|
|
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-B1Gb3E0R.cjs';
|
|
5
|
+
export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-D3TNKZcU.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 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-
|
|
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-O_ofvl8T.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-
|
|
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-CoEMXJy6.js';
|
|
5
|
+
export { J as JambonzValidator, V as ValidationError, a as ValidationResult, b as VerbBuilder, c as VerbBuilderOptions, g as getValidator } from './verb-builder-CwXZO4NY.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/index.js
CHANGED
|
@@ -184,6 +184,10 @@ var VerbBuilder = class {
|
|
|
184
184
|
conference(opts) {
|
|
185
185
|
return this.addVerb({ verb: "conference", ...opts });
|
|
186
186
|
}
|
|
187
|
+
/** `room` is a synonym for `conference` — prefer it in new applications. */
|
|
188
|
+
room(opts) {
|
|
189
|
+
return this.addVerb({ verb: "room", ...opts });
|
|
190
|
+
}
|
|
187
191
|
/** Place the caller into a named queue. */
|
|
188
192
|
enqueue(opts) {
|
|
189
193
|
return this.addVerb({ verb: "enqueue", ...opts });
|
|
@@ -685,6 +689,25 @@ var Session = class extends EventEmitter {
|
|
|
685
689
|
injectListenStatus(status, callSid) {
|
|
686
690
|
this.injectCommand("listen:status", { listen_status: status }, callSid);
|
|
687
691
|
}
|
|
692
|
+
/**
|
|
693
|
+
* Speak one-shot TTS into the room (conference) this call is in, so EVERY
|
|
694
|
+
* member hears it. Mirrors the `say` verb; the room is inferred from the
|
|
695
|
+
* call's current conference. `say-start`/`say-done` events are delivered to
|
|
696
|
+
* the conference verb's `statusHook` when listed in its `statusEvents`
|
|
697
|
+
* (include 'say-start','say-done'); the optional `id` is echoed for
|
|
698
|
+
* correlation. (Streaming — `stream:true` — is not yet supported server-side.)
|
|
699
|
+
*/
|
|
700
|
+
injectSay(opts, callSid) {
|
|
701
|
+
this.injectCommand("room:say", opts, callSid);
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* Play a file/tone into the room (conference) this call is in, heard by every
|
|
705
|
+
* member. `play-start`/`play-done` events go to the conference verb's
|
|
706
|
+
* `statusHook` when listed in its `statusEvents`.
|
|
707
|
+
*/
|
|
708
|
+
injectPlay(opts, callSid) {
|
|
709
|
+
this.injectCommand("room:play", opts, callSid);
|
|
710
|
+
}
|
|
688
711
|
/** Control call recording. */
|
|
689
712
|
injectRecord(action, opts, callSid) {
|
|
690
713
|
this.injectCommand("record", { action, ...opts }, callSid);
|