mirror of
https://github.com/jambonz/verb-specifications.git
synced 2026-03-26 13:59:02 +00:00
Compare commits
30 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1cc7dae926 | ||
|
|
8c50bf8764 | ||
|
|
e2bffbe0a8 | ||
|
|
4b79b1408b | ||
|
|
900d517b8a | ||
|
|
104ca00a3d | ||
|
|
7b3dd92c18 | ||
|
|
43a2805ea8 | ||
|
|
f9e6755d8d | ||
|
|
264640bbc7 | ||
|
|
71d31952d6 | ||
|
|
6a80506a81 | ||
|
|
85b1c3a2f9 | ||
|
|
f59137ebad | ||
|
|
7b80ba6fd5 | ||
|
|
216e6954af | ||
|
|
027cce284d | ||
|
|
9a8194b360 | ||
|
|
0bcfa783b7 | ||
|
|
9a3fb68fe7 | ||
|
|
f2ea3f3913 | ||
|
|
6a75a8b98a | ||
|
|
2af0fd4415 | ||
|
|
46688934bc | ||
|
|
afce20a206 | ||
|
|
e80679fd07 | ||
|
|
aa86d0b3e6 | ||
|
|
60f4bcd97a | ||
|
|
cb8b51da4a | ||
|
|
d9fd63850b |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@jambonz/verb-specifications",
|
||||
"version": "0.0.78",
|
||||
"version": "0.0.92",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@jambonz/verb-specifications",
|
||||
"version": "0.0.78",
|
||||
"version": "0.0.92",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"debug": "^4.3.4",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@jambonz/verb-specifications",
|
||||
"version": "0.0.78",
|
||||
"version": "0.0.92",
|
||||
"description": "Jambonz Verb Specification Utilities",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
158
specs.json
158
specs.json
@@ -34,6 +34,7 @@
|
||||
"id": "string",
|
||||
"referTo": "string",
|
||||
"referredBy": "string",
|
||||
"referredByDisplayName": "string",
|
||||
"headers": "object",
|
||||
"actionHook": "object|string",
|
||||
"eventHook": "object|string"
|
||||
@@ -48,6 +49,7 @@
|
||||
"synthesizer": "#synthesizer",
|
||||
"recognizer": "#recognizer",
|
||||
"bargeIn": "#bargeIn",
|
||||
"ttsStream": "#ttsStream",
|
||||
"record": "#recordOptions",
|
||||
"listen": "#listenOptions",
|
||||
"transcribe": "#transcribeOptions",
|
||||
@@ -59,7 +61,9 @@
|
||||
"actionHookDelayAction": "#actionHookDelayAction",
|
||||
"sipRequestWithinDialogHook": "object|string",
|
||||
"boostAudioSignal": "number|string",
|
||||
"vad":"#vad"
|
||||
"vad":"#vad",
|
||||
"referHook": "object|string",
|
||||
"earlyMedia": "boolean"
|
||||
},
|
||||
"required": []
|
||||
},
|
||||
@@ -95,6 +99,15 @@
|
||||
"enable"
|
||||
]
|
||||
},
|
||||
"ttsStream": {
|
||||
"properties": {
|
||||
"enable": "boolean",
|
||||
"synthesizer": "#synthesizer"
|
||||
},
|
||||
"required": [
|
||||
"enable"
|
||||
]
|
||||
},
|
||||
"bargeIn": {
|
||||
"properties": {
|
||||
"enable": "boolean",
|
||||
@@ -199,13 +212,14 @@
|
||||
"properties": {
|
||||
"id": "string",
|
||||
"text": "string|array",
|
||||
"stream": "boolean",
|
||||
"loop": "number|string",
|
||||
"synthesizer": "#synthesizer",
|
||||
"earlyMedia": "boolean",
|
||||
"disableTtsCache": "boolean"
|
||||
"disableTtsCache": "boolean",
|
||||
"closeStreamOnEmpty": "boolean"
|
||||
},
|
||||
"required": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
"gather": {
|
||||
@@ -272,6 +286,7 @@
|
||||
"dtmfHook": "object|string",
|
||||
"headers": "object",
|
||||
"anchorMedia": "boolean",
|
||||
"exitMediaPath": "boolean",
|
||||
"boostAudioSignal": "number|string",
|
||||
"listen": "#listen",
|
||||
"target": ["#target"],
|
||||
@@ -302,7 +317,7 @@
|
||||
"lang": "string",
|
||||
"actionHook": "object|string",
|
||||
"eventHook": "object|string",
|
||||
"events": "[string]",
|
||||
"events": "array",
|
||||
"welcomeEvent": "string",
|
||||
"welcomeEventParams": "object",
|
||||
"noInputTimeout": "number",
|
||||
@@ -310,7 +325,8 @@
|
||||
"passDtmfAsTextInput": "boolean",
|
||||
"thinkingMusic": "string",
|
||||
"tts": "#synthesizer",
|
||||
"bargein": "boolean"
|
||||
"bargein": "boolean",
|
||||
"queryInput": "#queryInput"
|
||||
},
|
||||
"required": [
|
||||
"project",
|
||||
@@ -318,6 +334,16 @@
|
||||
"lang"
|
||||
]
|
||||
},
|
||||
"queryInput": {
|
||||
"properties": {
|
||||
"text": "string",
|
||||
"intent": "string",
|
||||
"event": "string",
|
||||
"dtmf": "string"
|
||||
},
|
||||
"required": [
|
||||
]
|
||||
},
|
||||
"dtmf": {
|
||||
"properties": {
|
||||
"id": "string",
|
||||
@@ -380,6 +406,26 @@
|
||||
"url"
|
||||
]
|
||||
},
|
||||
"llm": {
|
||||
"properties": {
|
||||
"id": "string",
|
||||
"vendor": "string",
|
||||
"model": "string",
|
||||
"auth": "object",
|
||||
"connectOptions": "object",
|
||||
"actionHook": "object|string",
|
||||
"eventHook": "object|string",
|
||||
"toolHook": "object|string",
|
||||
"events": "array",
|
||||
"llmOptions": "object"
|
||||
},
|
||||
"required": [
|
||||
"vendor",
|
||||
"model",
|
||||
"auth",
|
||||
"llmOptions"
|
||||
]
|
||||
},
|
||||
"message": {
|
||||
"properties": {
|
||||
"id": "string",
|
||||
@@ -473,7 +519,8 @@
|
||||
"amd": "#amd",
|
||||
"dual_streams": "boolean",
|
||||
"sipRequestWithinDialogHook": "string",
|
||||
"referHook": "object|string"
|
||||
"referHook": "object|string",
|
||||
"timeLimit": "number"
|
||||
},
|
||||
"required": [
|
||||
"call_hook",
|
||||
@@ -494,6 +541,7 @@
|
||||
"properties": {
|
||||
"id": "string",
|
||||
"transcriptionHook": "string",
|
||||
"translationHook": "string",
|
||||
"recognizer": "#recognizer",
|
||||
"earlyMedia": "boolean",
|
||||
"channel": "number"
|
||||
@@ -654,7 +702,8 @@
|
||||
"assemblyAiOptions": "#assemblyAiOptions",
|
||||
"googleOptions": "#googleOptions",
|
||||
"customOptions": "#customOptions",
|
||||
"verbioOptions": "#verbioOptions"
|
||||
"verbioOptions": "#verbioOptions",
|
||||
"speechmaticsOptions": "#speechmaticsOptions"
|
||||
},
|
||||
"required": [
|
||||
"vendor"
|
||||
@@ -800,7 +849,8 @@
|
||||
"utteranceEndMs": "number",
|
||||
"shortUtterance": "boolean",
|
||||
"vadTurnoff": "number",
|
||||
"tag": "string"
|
||||
"tag": "string",
|
||||
"fillerWords" : "boolean"
|
||||
}
|
||||
},
|
||||
"sonioxOptions": {
|
||||
@@ -831,6 +881,95 @@
|
||||
"required": [
|
||||
]
|
||||
},
|
||||
"speechmaticsOptions": {
|
||||
"properties": {
|
||||
"transcription_config": "#sm_transcriptionConfig",
|
||||
"translation_config": "#sm_translationConfig",
|
||||
"audio_events_config_config": "#sm_audioEventsConfig"
|
||||
},
|
||||
"required": [
|
||||
]
|
||||
},
|
||||
"sm_transcriptionConfig": {
|
||||
"properties": {
|
||||
"language": "string",
|
||||
"additional_vocab": "array",
|
||||
"diarization": "string",
|
||||
"speaker_diarization_config": "#sm_speakerDiarizationConfig",
|
||||
"enable_partials": "boolean",
|
||||
"max_delay": "number",
|
||||
"max_delay_mode": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fixed",
|
||||
"flexible"
|
||||
]
|
||||
},
|
||||
"output_locale": "string",
|
||||
"punctuation_overrides": "#sm_puctuationOverrides",
|
||||
"operating_point": "string",
|
||||
"enable_entities": "boolean",
|
||||
"audio_filtering_config": "#sm_audioFilteringConfig",
|
||||
"transcript_filtering_config": "#sm_transcriptFilteringConfig"
|
||||
},
|
||||
"required": [
|
||||
]
|
||||
},
|
||||
"sm_speakerDiarizationConfig": {
|
||||
"properties": {
|
||||
"speaker_sensitivity": "number",
|
||||
"max_speakers": "number"
|
||||
},
|
||||
"required": [
|
||||
]
|
||||
},
|
||||
"sm_puctuationOverrides": {
|
||||
"properties": {
|
||||
"permitted_marks": "array",
|
||||
"sensitivity": "number"
|
||||
},
|
||||
"required": [
|
||||
]
|
||||
},
|
||||
"sm_audioFilteringConfig": {
|
||||
"properties": {
|
||||
"volume_threshold": "number"
|
||||
},
|
||||
"required": [
|
||||
"volume_threshold"
|
||||
]
|
||||
},
|
||||
"sm_transcriptFilteringConfig": {
|
||||
"properties": {
|
||||
"remove_disfluencies": "boolean"
|
||||
},
|
||||
"required": [
|
||||
"remove_disfluencies"
|
||||
]
|
||||
},
|
||||
"sm_translationConfig": {
|
||||
"properties": {
|
||||
"target_languages": "array",
|
||||
"enable_partials": "boolean"
|
||||
},
|
||||
"required": [
|
||||
"target_languages"
|
||||
]
|
||||
},
|
||||
"sm_audioEventsConfig": {
|
||||
"properties": {
|
||||
"types": {
|
||||
"type": "array",
|
||||
"enum": [
|
||||
"applause",
|
||||
"music",
|
||||
"laughter"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
]
|
||||
},
|
||||
"sonioxStorage": {
|
||||
"properties": {
|
||||
"id": "string",
|
||||
@@ -1002,7 +1141,8 @@
|
||||
"noResponseTimeout": "number",
|
||||
"noResponseGiveUpTimeout": "number",
|
||||
"retries": "number",
|
||||
"actions": "array"
|
||||
"actions": "array",
|
||||
"giveUpActions": "array"
|
||||
}
|
||||
},
|
||||
"bidirectionalAudio" : {
|
||||
|
||||
@@ -81,6 +81,16 @@ test("validate correct verbs", async (t) => {
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"verb": "config",
|
||||
"referHook": "https://referhook.com"
|
||||
},
|
||||
{
|
||||
"verb": "config",
|
||||
"referHook": {
|
||||
"url": "https://referhook.com"
|
||||
}
|
||||
},
|
||||
{
|
||||
"verb": "config",
|
||||
"recognizer": {
|
||||
@@ -129,6 +139,7 @@ test("validate correct verbs", async (t) => {
|
||||
"callerName": "Tom",
|
||||
"answerOnBridge": true,
|
||||
"dtmfCapture": ["*2", "*3"],
|
||||
"timeLimit": 10,
|
||||
"dtmfHook": {
|
||||
"url": "/dtmf",
|
||||
"method": "GET"
|
||||
@@ -430,6 +441,12 @@ test("validate correct verbs", async (t) => {
|
||||
"referTo": "+15083084809",
|
||||
"actionHook": "/action"
|
||||
},
|
||||
{
|
||||
"verb": "sip:refer",
|
||||
"referTo": "+15083084809",
|
||||
"referredByDisplayName": "Alice",
|
||||
"actionHook": "/action"
|
||||
},
|
||||
{
|
||||
"verb": "tag",
|
||||
"data": {
|
||||
@@ -502,7 +519,8 @@ test("validate correct verbs", async (t) => {
|
||||
"actionHook": "/answeringMachineDetection",
|
||||
|
||||
},
|
||||
"dual_streams": true
|
||||
"dual_streams": true,
|
||||
"timeLimit" : 10
|
||||
}
|
||||
];
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user