@jambonz/sdk 0.1.32 → 0.3.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.cjs +9 -3
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/index.js +9 -3
- package/dist/client/index.js.map +1 -1
- package/dist/index.cjs +55 -99
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +57 -101
- package/dist/index.js.map +1 -1
- package/dist/{rest-B_GQITxM.d.cts → rest-BvOtq44O.d.cts} +3 -3
- package/dist/{rest-DgctQy2b.d.ts → rest-DAAEUWsa.d.ts} +3 -3
- package/dist/{session-DVGHbtan.d.cts → session-DKaSRkIo.d.cts} +19 -19
- package/dist/{session-DVGHbtan.d.ts → session-DKaSRkIo.d.ts} +19 -19
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/{verb-builder-tayDQ0fe.d.ts → verb-builder-CFPD9yWI.d.cts} +4 -4
- package/dist/{verb-builder-BCjmdgUX.d.cts → verb-builder-D5XRbTtu.d.ts} +4 -4
- package/dist/{verbs-B18Kazd9.d.cts → verbs-DKy6nGIH.d.cts} +6 -6
- package/dist/{verbs-B18Kazd9.d.ts → verbs-DKy6nGIH.d.ts} +6 -6
- package/dist/webhook/index.cjs +38 -88
- 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 +40 -90
- package/dist/webhook/index.js.map +1 -1
- package/dist/websocket/index.cjs +46 -96
- package/dist/websocket/index.cjs.map +1 -1
- package/dist/websocket/index.d.cts +7 -7
- package/dist/websocket/index.d.ts +7 -7
- package/dist/websocket/index.js +48 -98
- package/dist/websocket/index.js.map +1 -1
- package/package.json +4 -4
- package/schema/callbacks/amd.schema.json +0 -50
- package/schema/callbacks/base.schema.json +0 -29
- package/schema/callbacks/call-status.schema.json +0 -22
- package/schema/callbacks/conference-status.schema.json +0 -24
- package/schema/callbacks/conference-wait.schema.json +0 -11
- package/schema/callbacks/conference.schema.json +0 -11
- package/schema/callbacks/dequeue.schema.json +0 -19
- package/schema/callbacks/dial-dtmf.schema.json +0 -18
- package/schema/callbacks/dial-hold.schema.json +0 -22
- package/schema/callbacks/dial-refer.schema.json +0 -28
- package/schema/callbacks/dial.schema.json +0 -31
- package/schema/callbacks/enqueue-wait.schema.json +0 -17
- package/schema/callbacks/enqueue.schema.json +0 -27
- package/schema/callbacks/gather-partial.schema.json +0 -54
- package/schema/callbacks/gather.schema.json +0 -60
- package/schema/callbacks/listen.schema.json +0 -21
- package/schema/callbacks/llm.schema.json +0 -30
- package/schema/callbacks/message.schema.json +0 -35
- package/schema/callbacks/pipeline-turn.schema.json +0 -109
- package/schema/callbacks/play.schema.json +0 -36
- package/schema/callbacks/session-new.schema.json +0 -143
- package/schema/callbacks/session-reconnect.schema.json +0 -9
- package/schema/callbacks/session-redirect.schema.json +0 -38
- package/schema/callbacks/sip-refer-event.schema.json +0 -20
- package/schema/callbacks/sip-refer.schema.json +0 -22
- package/schema/callbacks/sip-request.schema.json +0 -27
- package/schema/callbacks/transcribe-translation.schema.json +0 -24
- package/schema/callbacks/transcribe.schema.json +0 -46
- package/schema/callbacks/tts-streaming-event.schema.json +0 -77
- package/schema/callbacks/verb-status.schema.json +0 -57
- package/schema/components/actionHook.schema.json +0 -36
- package/schema/components/actionHookDelayAction.schema.json +0 -37
- package/schema/components/amd.schema.json +0 -68
- package/schema/components/auth.schema.json +0 -18
- package/schema/components/bidirectionalAudio.schema.json +0 -22
- package/schema/components/fillerNoise.schema.json +0 -25
- package/schema/components/llm-base.schema.json +0 -94
- package/schema/components/recognizer-assemblyAiOptions.schema.json +0 -66
- package/schema/components/recognizer-awsOptions.schema.json +0 -52
- package/schema/components/recognizer-azureOptions.schema.json +0 -32
- package/schema/components/recognizer-cobaltOptions.schema.json +0 -34
- package/schema/components/recognizer-customOptions.schema.json +0 -27
- package/schema/components/recognizer-deepgramOptions.schema.json +0 -147
- package/schema/components/recognizer-elevenlabsOptions.schema.json +0 -39
- package/schema/components/recognizer-gladiaOptions.schema.json +0 -8
- package/schema/components/recognizer-googleOptions.schema.json +0 -35
- package/schema/components/recognizer-houndifyOptions.schema.json +0 -53
- package/schema/components/recognizer-ibmOptions.schema.json +0 -54
- package/schema/components/recognizer-nuanceOptions.schema.json +0 -150
- package/schema/components/recognizer-nvidiaOptions.schema.json +0 -39
- package/schema/components/recognizer-openaiOptions.schema.json +0 -59
- package/schema/components/recognizer-sonioxOptions.schema.json +0 -46
- package/schema/components/recognizer-speechmaticsOptions.schema.json +0 -100
- package/schema/components/recognizer-verbioOptions.schema.json +0 -46
- package/schema/components/recognizer.schema.json +0 -216
- package/schema/components/synthesizer.schema.json +0 -82
- package/schema/components/target.schema.json +0 -105
- package/schema/components/vad.schema.json +0 -48
- package/schema/jambonz-app.schema.json +0 -112
- package/schema/verbs/alert.schema.json +0 -34
- package/schema/verbs/answer.schema.json +0 -22
- package/schema/verbs/conference.schema.json +0 -107
- package/schema/verbs/config.schema.json +0 -218
- package/schema/verbs/deepgram_s2s.schema.json +0 -81
- package/schema/verbs/dequeue.schema.json +0 -51
- package/schema/verbs/dial.schema.json +0 -187
- package/schema/verbs/dialogflow.schema.json +0 -148
- package/schema/verbs/dtmf.schema.json +0 -49
- package/schema/verbs/dub.schema.json +0 -103
- package/schema/verbs/elevenlabs_s2s.schema.json +0 -81
- package/schema/verbs/enqueue.schema.json +0 -53
- package/schema/verbs/gather.schema.json +0 -188
- package/schema/verbs/google_s2s.schema.json +0 -42
- package/schema/verbs/hangup.schema.json +0 -36
- package/schema/verbs/leave.schema.json +0 -22
- package/schema/verbs/listen.schema.json +0 -127
- package/schema/verbs/llm.schema.json +0 -44
- package/schema/verbs/message.schema.json +0 -82
- package/schema/verbs/openai_s2s.schema.json +0 -42
- package/schema/verbs/pause.schema.json +0 -36
- package/schema/verbs/pipeline.schema.json +0 -240
- package/schema/verbs/play.schema.json +0 -96
- package/schema/verbs/redirect.schema.json +0 -34
- package/schema/verbs/s2s.schema.json +0 -39
- package/schema/verbs/say.schema.json +0 -107
- package/schema/verbs/sip-decline.schema.json +0 -58
- package/schema/verbs/sip-refer.schema.json +0 -58
- package/schema/verbs/sip-request.schema.json +0 -54
- package/schema/verbs/stream.schema.json +0 -103
- package/schema/verbs/tag.schema.json +0 -41
- package/schema/verbs/transcribe.schema.json +0 -57
- package/schema/verbs/ultravox_s2s.schema.json +0 -41
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://jambonz.org/schema/verbs/conference",
|
|
4
|
-
"minVersion": "0.9.6",
|
|
5
|
-
"title": "Conference",
|
|
6
|
-
"description": "Places the caller into a multi-party conference room. Multiple callers in the same named conference can speak to each other. Supports features like muting, recording, waiting rooms, and participant limits.",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"verb": {
|
|
10
|
-
"const": "conference"
|
|
11
|
-
},
|
|
12
|
-
"id": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "An optional unique identifier for this verb instance."
|
|
15
|
-
},
|
|
16
|
-
"name": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "The name of the conference room. All callers joining the same named conference are connected together.",
|
|
19
|
-
"examples": [
|
|
20
|
-
"team-standup",
|
|
21
|
-
"customer-call-12345"
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
"beep": {
|
|
25
|
-
"type": "boolean",
|
|
26
|
-
"description": "If true, play a beep when participants join or leave."
|
|
27
|
-
},
|
|
28
|
-
"memberTag": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"description": "A tag to identify this participant. Can be used to target specific members for actions like muting or whispering."
|
|
31
|
-
},
|
|
32
|
-
"speakOnlyTo": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"description": "If set, this participant's audio is only heard by the member with the specified memberTag. Creates a private whisper channel."
|
|
35
|
-
},
|
|
36
|
-
"startConferenceOnEnter": {
|
|
37
|
-
"type": "boolean",
|
|
38
|
-
"description": "If true (default), the conference starts when this participant joins. If false, this participant waits silently until a participant with startConferenceOnEnter=true joins."
|
|
39
|
-
},
|
|
40
|
-
"endConferenceOnExit": {
|
|
41
|
-
"type": "boolean",
|
|
42
|
-
"description": "If true, the conference ends for all participants when this participant leaves."
|
|
43
|
-
},
|
|
44
|
-
"endConferenceDuration": {
|
|
45
|
-
"type": "number",
|
|
46
|
-
"description": "Maximum duration of the conference in seconds."
|
|
47
|
-
},
|
|
48
|
-
"maxParticipants": {
|
|
49
|
-
"type": "number",
|
|
50
|
-
"description": "Maximum number of participants allowed in the conference."
|
|
51
|
-
},
|
|
52
|
-
"joinMuted": {
|
|
53
|
-
"type": "boolean",
|
|
54
|
-
"description": "If true, this participant joins the conference muted."
|
|
55
|
-
},
|
|
56
|
-
"actionHook": {
|
|
57
|
-
"$ref": "../components/actionHook",
|
|
58
|
-
"description": "A webhook invoked when this participant leaves the conference."
|
|
59
|
-
},
|
|
60
|
-
"waitHook": {
|
|
61
|
-
"$ref": "../components/actionHook",
|
|
62
|
-
"description": "A webhook invoked while this participant is waiting for the conference to start. Should return verbs to play (e.g. hold music)."
|
|
63
|
-
},
|
|
64
|
-
"statusEvents": {
|
|
65
|
-
"type": "array",
|
|
66
|
-
"items": {
|
|
67
|
-
"type": "string"
|
|
68
|
-
},
|
|
69
|
-
"description": "List of conference events to receive via the statusHook."
|
|
70
|
-
},
|
|
71
|
-
"statusHook": {
|
|
72
|
-
"$ref": "../components/actionHook",
|
|
73
|
-
"description": "A webhook to receive conference status events (joins, leaves, etc.)."
|
|
74
|
-
},
|
|
75
|
-
"enterHook": {
|
|
76
|
-
"$ref": "../components/actionHook",
|
|
77
|
-
"description": "A webhook invoked when this participant first enters the conference."
|
|
78
|
-
},
|
|
79
|
-
"record": {
|
|
80
|
-
"type": "object",
|
|
81
|
-
"description": "Recording configuration for the conference.",
|
|
82
|
-
"additionalProperties": true
|
|
83
|
-
},
|
|
84
|
-
"listen": {
|
|
85
|
-
"type": "object",
|
|
86
|
-
"description": "Audio streaming configuration for the conference.",
|
|
87
|
-
"additionalProperties": true
|
|
88
|
-
},
|
|
89
|
-
"distributeDtmf": {
|
|
90
|
-
"type": "boolean",
|
|
91
|
-
"description": "If true, DTMF events from this participant are distributed to all other participants."
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
"required": [
|
|
95
|
-
"name"
|
|
96
|
-
],
|
|
97
|
-
"examples": [
|
|
98
|
-
{
|
|
99
|
-
"verb": "conference",
|
|
100
|
-
"name": "team-standup",
|
|
101
|
-
"beep": true,
|
|
102
|
-
"startConferenceOnEnter": true,
|
|
103
|
-
"endConferenceOnExit": false,
|
|
104
|
-
"statusHook": "/conference-events"
|
|
105
|
-
}
|
|
106
|
-
]
|
|
107
|
-
}
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://jambonz.org/schema/verbs/config",
|
|
4
|
-
"minVersion": "0.9.6",
|
|
5
|
-
"title": "Config",
|
|
6
|
-
"description": "Sets session-level defaults for the call. Configures default TTS, STT, VAD, recording, streaming, and other session-wide settings. These defaults apply to all subsequent verbs unless overridden at the verb level. Typically the first verb in an application. Can be used multiple times during a call to change settings.",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"verb": {
|
|
10
|
-
"const": "config",
|
|
11
|
-
"description": "The verb name."
|
|
12
|
-
},
|
|
13
|
-
"id": {
|
|
14
|
-
"type": "string",
|
|
15
|
-
"description": "An optional unique identifier for this verb instance."
|
|
16
|
-
},
|
|
17
|
-
"synthesizer": {
|
|
18
|
-
"$ref": "../components/synthesizer",
|
|
19
|
-
"description": "Default TTS configuration for the session."
|
|
20
|
-
},
|
|
21
|
-
"recognizer": {
|
|
22
|
-
"$ref": "../components/recognizer",
|
|
23
|
-
"description": "Default STT configuration for the session."
|
|
24
|
-
},
|
|
25
|
-
"bargeIn": {
|
|
26
|
-
"type": "object",
|
|
27
|
-
"description": "Default barge-in configuration. When enabled, callers can interrupt playing prompts with speech or DTMF.",
|
|
28
|
-
"properties": {
|
|
29
|
-
"enable": {
|
|
30
|
-
"type": "boolean"
|
|
31
|
-
},
|
|
32
|
-
"sticky": {
|
|
33
|
-
"type": "boolean",
|
|
34
|
-
"description": "If true, barge-in settings persist across verbs rather than resetting after each verb."
|
|
35
|
-
},
|
|
36
|
-
"actionHook": {
|
|
37
|
-
"$ref": "../components/actionHook"
|
|
38
|
-
},
|
|
39
|
-
"input": {
|
|
40
|
-
"type": "array",
|
|
41
|
-
"items": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"enum": [
|
|
44
|
-
"speech",
|
|
45
|
-
"digits"
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"minBargeinWordCount": {
|
|
50
|
-
"type": "number"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"ttsStream": {
|
|
55
|
-
"type": "object",
|
|
56
|
-
"description": "Default TTS streaming configuration for the session.",
|
|
57
|
-
"properties": {
|
|
58
|
-
"enable": {
|
|
59
|
-
"type": "boolean"
|
|
60
|
-
},
|
|
61
|
-
"synthesizer": {
|
|
62
|
-
"$ref": "../components/synthesizer"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"record": {
|
|
67
|
-
"type": "object",
|
|
68
|
-
"description": "Session-level call recording configuration.",
|
|
69
|
-
"additionalProperties": true
|
|
70
|
-
},
|
|
71
|
-
"listen": {
|
|
72
|
-
"$ref": "listen",
|
|
73
|
-
"description": "Nested listen verb — session-level audio streaming configuration."
|
|
74
|
-
},
|
|
75
|
-
"stream": {
|
|
76
|
-
"$ref": "stream",
|
|
77
|
-
"description": "Nested stream verb — session-level audio streaming configuration. Alias for 'listen'."
|
|
78
|
-
},
|
|
79
|
-
"transcribe": {
|
|
80
|
-
"$ref": "transcribe",
|
|
81
|
-
"description": "Nested transcribe verb — session-level real-time transcription configuration."
|
|
82
|
-
},
|
|
83
|
-
"amd": {
|
|
84
|
-
"$ref": "../components/amd",
|
|
85
|
-
"description": "Session-level answering machine detection configuration."
|
|
86
|
-
},
|
|
87
|
-
"fillerNoise": {
|
|
88
|
-
"$ref": "../components/fillerNoise",
|
|
89
|
-
"description": "Default filler noise configuration for the session."
|
|
90
|
-
},
|
|
91
|
-
"vad": {
|
|
92
|
-
"$ref": "../components/vad",
|
|
93
|
-
"description": "Default voice activity detection configuration for the session."
|
|
94
|
-
},
|
|
95
|
-
"notifyEvents": {
|
|
96
|
-
"type": "boolean",
|
|
97
|
-
"description": "If true, send call events (e.g. DTMF, call status changes) to the application via the status webhook."
|
|
98
|
-
},
|
|
99
|
-
"notifySttLatency": {
|
|
100
|
-
"type": "boolean",
|
|
101
|
-
"description": "If true, include STT latency measurements in webhook payloads."
|
|
102
|
-
},
|
|
103
|
-
"reset": {
|
|
104
|
-
"oneOf": [
|
|
105
|
-
{
|
|
106
|
-
"type": "string"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"type": "array",
|
|
110
|
-
"items": {
|
|
111
|
-
"type": "string"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
],
|
|
115
|
-
"description": "Reset specific session-level settings to their defaults. Pass a setting name or array of setting names to reset."
|
|
116
|
-
},
|
|
117
|
-
"onHoldMusic": {
|
|
118
|
-
"type": "string",
|
|
119
|
-
"format": "uri",
|
|
120
|
-
"description": "URL of an audio file to play when the call is placed on hold."
|
|
121
|
-
},
|
|
122
|
-
"actionHookDelayAction": {
|
|
123
|
-
"$ref": "../components/actionHookDelayAction",
|
|
124
|
-
"description": "Default configuration for handling slow webhook responses."
|
|
125
|
-
},
|
|
126
|
-
"sipRequestWithinDialogHook": {
|
|
127
|
-
"$ref": "../components/actionHook",
|
|
128
|
-
"description": "A webhook to invoke when a SIP request (e.g. INFO, NOTIFY) is received within the dialog."
|
|
129
|
-
},
|
|
130
|
-
"boostAudioSignal": {
|
|
131
|
-
"oneOf": [
|
|
132
|
-
{
|
|
133
|
-
"type": "number"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"type": "string"
|
|
137
|
-
}
|
|
138
|
-
],
|
|
139
|
-
"description": "Boost (or attenuate) the audio signal in dB for the session."
|
|
140
|
-
},
|
|
141
|
-
"referHook": {
|
|
142
|
-
"$ref": "../components/actionHook",
|
|
143
|
-
"description": "A webhook to invoke when a SIP REFER request is received."
|
|
144
|
-
},
|
|
145
|
-
"earlyMedia": {
|
|
146
|
-
"type": "boolean",
|
|
147
|
-
"description": "If true, allow early media (audio before call answer) for the session."
|
|
148
|
-
},
|
|
149
|
-
"autoStreamTts": {
|
|
150
|
-
"type": "boolean",
|
|
151
|
-
"description": "If true, automatically use streaming TTS for all 'say' verbs in the session."
|
|
152
|
-
},
|
|
153
|
-
"disableTtsCache": {
|
|
154
|
-
"type": "boolean",
|
|
155
|
-
"description": "If true, disable TTS caching for the session."
|
|
156
|
-
},
|
|
157
|
-
"trackTtsPlayout": {
|
|
158
|
-
"type": "boolean",
|
|
159
|
-
"description": "If true, report the actual text spoken via TTS. Requires a TTS vendor that supports alignment data (e.g. ElevenLabs). On each utterance completion or interruption, a tts_spoken event is sent to the '/streaming-event' endpoint with fields: 'text' (string — the text actually spoken) and 'bargein' (boolean — true if the user interrupted before TTS finished). See the tts-streaming-event callback schema for full details."
|
|
160
|
-
},
|
|
161
|
-
"noiseIsolation": {
|
|
162
|
-
"type": "object",
|
|
163
|
-
"description": "Noise isolation configuration to reduce background noise on call audio. Defaults to filtering inbound (caller) audio; can also filter outbound audio via the direction option.",
|
|
164
|
-
"properties": {
|
|
165
|
-
"enable": {
|
|
166
|
-
"type": "boolean"
|
|
167
|
-
},
|
|
168
|
-
"vendor": {
|
|
169
|
-
"type": "string"
|
|
170
|
-
},
|
|
171
|
-
"level": {
|
|
172
|
-
"type": "number"
|
|
173
|
-
},
|
|
174
|
-
"model": {
|
|
175
|
-
"type": "string"
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
"turnTaking": {
|
|
180
|
-
"type": "object",
|
|
181
|
-
"description": "Turn-taking detection configuration for conversational AI applications.",
|
|
182
|
-
"properties": {
|
|
183
|
-
"enable": {
|
|
184
|
-
"type": "boolean"
|
|
185
|
-
},
|
|
186
|
-
"vendor": {
|
|
187
|
-
"type": "string"
|
|
188
|
-
},
|
|
189
|
-
"threshold": {
|
|
190
|
-
"type": "number"
|
|
191
|
-
},
|
|
192
|
-
"model": {
|
|
193
|
-
"type": "string"
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
"required": [],
|
|
199
|
-
"examples": [
|
|
200
|
-
{
|
|
201
|
-
"verb": "config",
|
|
202
|
-
"synthesizer": {
|
|
203
|
-
"vendor": "elevenlabs",
|
|
204
|
-
"voice": "Rachel",
|
|
205
|
-
"language": "en-US"
|
|
206
|
-
},
|
|
207
|
-
"recognizer": {
|
|
208
|
-
"vendor": "deepgram",
|
|
209
|
-
"language": "en-US"
|
|
210
|
-
},
|
|
211
|
-
"fillerNoise": {
|
|
212
|
-
"enable": true,
|
|
213
|
-
"url": "https://example.com/sounds/typing.wav",
|
|
214
|
-
"startDelaySecs": 2
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
]
|
|
218
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://jambonz.org/schema/verbs/deepgram_s2s",
|
|
4
|
-
"minVersion": "10.1.0",
|
|
5
|
-
"title": "Deepgram S2S",
|
|
6
|
-
"description": "Shortcut for 'llm' with vendor automatically set to 'deepgram'. Connects the caller to a Deepgram model for real-time speech-to-speech voice conversation.",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"allOf": [
|
|
9
|
-
{
|
|
10
|
-
"$ref": "../components/llm-base"
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"properties": {
|
|
14
|
-
"verb": {
|
|
15
|
-
"const": "deepgram_s2s",
|
|
16
|
-
"description": "The verb name."
|
|
17
|
-
},
|
|
18
|
-
"vendor": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"const": "deepgram",
|
|
21
|
-
"description": "The LLM vendor (always 'deepgram' for this shortcut)."
|
|
22
|
-
},
|
|
23
|
-
"llmOptions": {
|
|
24
|
-
"type": "object",
|
|
25
|
-
"description": "IMPORTANT: Deepgram does NOT use a 'messages' array. The llmOptions must contain a 'Settings' object with 'agent.think' (LLM provider, model, and prompt) and 'agent.speak' (TTS provider and voice model). The system prompt goes in Settings.agent.think.prompt, NOT in messages.",
|
|
26
|
-
"additionalProperties": true,
|
|
27
|
-
"examples": [
|
|
28
|
-
{
|
|
29
|
-
"Settings": {
|
|
30
|
-
"agent": {
|
|
31
|
-
"think": {
|
|
32
|
-
"provider": {
|
|
33
|
-
"type": "open_ai",
|
|
34
|
-
"model": "gpt-4o"
|
|
35
|
-
},
|
|
36
|
-
"prompt": "You are a helpful voice assistant."
|
|
37
|
-
},
|
|
38
|
-
"speak": {
|
|
39
|
-
"provider": {
|
|
40
|
-
"type": "deepgram",
|
|
41
|
-
"model": "aura-2-thalia-en"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"required": [
|
|
51
|
-
"llmOptions"
|
|
52
|
-
],
|
|
53
|
-
"examples": [
|
|
54
|
-
{
|
|
55
|
-
"verb": "deepgram_s2s",
|
|
56
|
-
"auth": {
|
|
57
|
-
"apiKey": "your-deepgram-api-key"
|
|
58
|
-
},
|
|
59
|
-
"llmOptions": {
|
|
60
|
-
"Settings": {
|
|
61
|
-
"agent": {
|
|
62
|
-
"think": {
|
|
63
|
-
"provider": {
|
|
64
|
-
"type": "open_ai",
|
|
65
|
-
"model": "gpt-4o"
|
|
66
|
-
},
|
|
67
|
-
"prompt": "You are a helpful voice assistant."
|
|
68
|
-
},
|
|
69
|
-
"speak": {
|
|
70
|
-
"provider": {
|
|
71
|
-
"type": "deepgram",
|
|
72
|
-
"model": "aura-2-thalia-en"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"actionHook": "/s2s-complete"
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://jambonz.org/schema/verbs/dequeue",
|
|
4
|
-
"minVersion": "0.9.6",
|
|
5
|
-
"title": "Dequeue",
|
|
6
|
-
"description": "Removes a caller from a named queue and bridges them to the current call. Typically used by an agent or operator call flow to connect with the next waiting caller.",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"verb": {
|
|
10
|
-
"const": "dequeue"
|
|
11
|
-
},
|
|
12
|
-
"id": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "An optional unique identifier for this verb instance."
|
|
15
|
-
},
|
|
16
|
-
"name": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "The name of the queue to dequeue from.",
|
|
19
|
-
"examples": [
|
|
20
|
-
"support",
|
|
21
|
-
"sales"
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
"actionHook": {
|
|
25
|
-
"$ref": "../components/actionHook",
|
|
26
|
-
"description": "A webhook invoked when the dequeued call ends."
|
|
27
|
-
},
|
|
28
|
-
"timeout": {
|
|
29
|
-
"type": "number",
|
|
30
|
-
"description": "Time in seconds to wait for a caller to be available in the queue."
|
|
31
|
-
},
|
|
32
|
-
"beep": {
|
|
33
|
-
"type": "boolean",
|
|
34
|
-
"description": "If true, play a beep when the calls are connected."
|
|
35
|
-
},
|
|
36
|
-
"callSid": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"description": "Dequeue a specific call by its call SID, rather than the next caller in line."
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"required": [
|
|
42
|
-
"name"
|
|
43
|
-
],
|
|
44
|
-
"examples": [
|
|
45
|
-
{
|
|
46
|
-
"verb": "dequeue",
|
|
47
|
-
"name": "support",
|
|
48
|
-
"beep": true
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
}
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://jambonz.org/schema/verbs/dial",
|
|
4
|
-
"minVersion": "0.9.6",
|
|
5
|
-
"title": "Dial",
|
|
6
|
-
"description": "Initiates an outbound call to one or more targets and bridges the caller to the first target that answers. Targets can be phone numbers (PSTN), SIP endpoints, registered users, or Microsoft Teams users. Supports simultaneous ringing, call screening, recording, and DTMF capture during the bridged call.",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"verb": {
|
|
10
|
-
"const": "dial",
|
|
11
|
-
"description": "The verb name."
|
|
12
|
-
},
|
|
13
|
-
"id": {
|
|
14
|
-
"type": "string",
|
|
15
|
-
"description": "An optional unique identifier for this verb instance."
|
|
16
|
-
},
|
|
17
|
-
"target": {
|
|
18
|
-
"type": "array",
|
|
19
|
-
"items": {
|
|
20
|
-
"$ref": "../components/target"
|
|
21
|
-
},
|
|
22
|
-
"description": "One or more call targets to dial. If multiple targets are specified, they are rung simultaneously and the first to answer is connected. The rest are canceled.",
|
|
23
|
-
"minItems": 1
|
|
24
|
-
},
|
|
25
|
-
"actionHook": {
|
|
26
|
-
"$ref": "../components/actionHook",
|
|
27
|
-
"description": "A webhook invoked when the dialed call ends. Receives call disposition details (duration, who hung up, etc.) and should return the next verbs to execute."
|
|
28
|
-
},
|
|
29
|
-
"onHoldHook": {
|
|
30
|
-
"$ref": "../components/actionHook",
|
|
31
|
-
"description": "A webhook invoked when the call is placed on hold. Should return verbs to execute (e.g. play hold music) while the caller is holding."
|
|
32
|
-
},
|
|
33
|
-
"answerOnBridge": {
|
|
34
|
-
"type": "boolean",
|
|
35
|
-
"description": "If true, delay answering the inbound call until the outbound leg is answered. This allows the caller to hear ringing until the target picks up, and avoids billing the caller for unanswered outbound attempts."
|
|
36
|
-
},
|
|
37
|
-
"callerId": {
|
|
38
|
-
"type": "string",
|
|
39
|
-
"description": "The caller ID (phone number) to present on the outbound call. Overrides the default caller ID.",
|
|
40
|
-
"examples": [
|
|
41
|
-
"+15085551212"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"callerName": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"description": "The caller display name to present on the outbound call."
|
|
47
|
-
},
|
|
48
|
-
"confirmHook": {
|
|
49
|
-
"$ref": "../components/actionHook",
|
|
50
|
-
"description": "A webhook invoked when a target answers, before the call is bridged. Used for call screening — the webhook can return verbs (e.g. a 'say' prompt and 'gather') to confirm the callee wants to accept the call."
|
|
51
|
-
},
|
|
52
|
-
"referHook": {
|
|
53
|
-
"$ref": "../components/actionHook",
|
|
54
|
-
"description": "A webhook invoked when a SIP REFER is received on the bridged call. Allows handling call transfers initiated by the far end."
|
|
55
|
-
},
|
|
56
|
-
"dialMusic": {
|
|
57
|
-
"type": "string",
|
|
58
|
-
"format": "uri",
|
|
59
|
-
"description": "URL of an audio file to play to the caller while the outbound call is ringing. Replaces the default ringback tone."
|
|
60
|
-
},
|
|
61
|
-
"dtmfCapture": {
|
|
62
|
-
"type": "object",
|
|
63
|
-
"description": "Configuration for capturing DTMF digits during the bridged call. Keys are DTMF patterns to capture, values are configuration for each.",
|
|
64
|
-
"additionalProperties": true
|
|
65
|
-
},
|
|
66
|
-
"dtmfHook": {
|
|
67
|
-
"$ref": "../components/actionHook",
|
|
68
|
-
"description": "A webhook invoked when a captured DTMF pattern is detected during the bridged call."
|
|
69
|
-
},
|
|
70
|
-
"headers": {
|
|
71
|
-
"type": "object",
|
|
72
|
-
"description": "Custom SIP headers to include on the outbound INVITE.",
|
|
73
|
-
"additionalProperties": {
|
|
74
|
-
"type": "string"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"anchorMedia": {
|
|
78
|
-
"type": "boolean",
|
|
79
|
-
"description": "If true, keep media anchored through the jambonz media server even if a direct media path is possible. Required for features like recording, listen, and DTMF capture during bridged calls."
|
|
80
|
-
},
|
|
81
|
-
"exitMediaPath": {
|
|
82
|
-
"type": "boolean",
|
|
83
|
-
"description": "If true, remove jambonz from the media path after the call is bridged. Reduces latency but disables mid-call features like recording and DTMF capture."
|
|
84
|
-
},
|
|
85
|
-
"boostAudioSignal": {
|
|
86
|
-
"oneOf": [
|
|
87
|
-
{
|
|
88
|
-
"type": "number"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"type": "string"
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
"description": "Boost (or attenuate) the audio signal in dB. Positive values increase volume, negative values decrease it.",
|
|
95
|
-
"examples": [
|
|
96
|
-
6,
|
|
97
|
-
-3
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
"listen": {
|
|
101
|
-
"$ref": "listen",
|
|
102
|
-
"description": "Nested listen verb — streams audio of the bridged call to a websocket endpoint."
|
|
103
|
-
},
|
|
104
|
-
"stream": {
|
|
105
|
-
"$ref": "stream",
|
|
106
|
-
"description": "Nested stream verb — streams audio of the bridged call. Alias for 'listen'."
|
|
107
|
-
},
|
|
108
|
-
"transcribe": {
|
|
109
|
-
"$ref": "transcribe",
|
|
110
|
-
"description": "Nested transcribe verb — enables real-time transcription of the bridged call."
|
|
111
|
-
},
|
|
112
|
-
"timeLimit": {
|
|
113
|
-
"type": "number",
|
|
114
|
-
"description": "Maximum duration in seconds for the bridged call. The call is automatically hung up when this limit is reached.",
|
|
115
|
-
"examples": [
|
|
116
|
-
3600
|
|
117
|
-
]
|
|
118
|
-
},
|
|
119
|
-
"timeout": {
|
|
120
|
-
"type": "number",
|
|
121
|
-
"description": "Time in seconds to wait for the target to answer before giving up.",
|
|
122
|
-
"examples": [
|
|
123
|
-
30,
|
|
124
|
-
60
|
|
125
|
-
]
|
|
126
|
-
},
|
|
127
|
-
"proxy": {
|
|
128
|
-
"type": "string",
|
|
129
|
-
"description": "A SIP proxy to route the outbound call through.",
|
|
130
|
-
"examples": [
|
|
131
|
-
"sip:proxy.example.com"
|
|
132
|
-
]
|
|
133
|
-
},
|
|
134
|
-
"amd": {
|
|
135
|
-
"$ref": "../components/amd",
|
|
136
|
-
"description": "Answering machine detection configuration. When enabled, jambonz attempts to determine whether the call was answered by a human or a machine."
|
|
137
|
-
},
|
|
138
|
-
"dub": {
|
|
139
|
-
"type": "array",
|
|
140
|
-
"items": {
|
|
141
|
-
"$ref": "dub"
|
|
142
|
-
},
|
|
143
|
-
"description": "Nested dub verbs — audio dubbing configuration for mixing additional audio tracks into the bridged call."
|
|
144
|
-
},
|
|
145
|
-
"tag": {
|
|
146
|
-
"type": "object",
|
|
147
|
-
"description": "Arbitrary metadata to attach to this call leg. Included in subsequent webhook invocations and CDRs.",
|
|
148
|
-
"additionalProperties": true
|
|
149
|
-
},
|
|
150
|
-
"forwardPAI": {
|
|
151
|
-
"type": "boolean",
|
|
152
|
-
"description": "If true, forward the P-Asserted-Identity header from the inbound call to the outbound call."
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
"required": [
|
|
156
|
-
"target"
|
|
157
|
-
],
|
|
158
|
-
"examples": [
|
|
159
|
-
{
|
|
160
|
-
"verb": "dial",
|
|
161
|
-
"target": [
|
|
162
|
-
{
|
|
163
|
-
"type": "phone",
|
|
164
|
-
"number": "+15085551212"
|
|
165
|
-
}
|
|
166
|
-
],
|
|
167
|
-
"answerOnBridge": true,
|
|
168
|
-
"timeout": 30,
|
|
169
|
-
"actionHook": "/dial-complete"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"verb": "dial",
|
|
173
|
-
"target": [
|
|
174
|
-
{
|
|
175
|
-
"type": "sip",
|
|
176
|
-
"sipUri": "sip:alice@example.com"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"type": "sip",
|
|
180
|
-
"sipUri": "sip:bob@example.com"
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
|
-
"confirmHook": "/screen-call",
|
|
184
|
-
"timeLimit": 3600
|
|
185
|
-
}
|
|
186
|
-
]
|
|
187
|
-
}
|