diff --git a/specs.json b/specs.json index 61ddb32..32c3b98 100644 --- a/specs.json +++ b/specs.json @@ -56,22 +56,10 @@ "reset": "string|array", "onHoldMusic": "string", "actionHookDelayAction": "#actionHookDelayAction", - "sipRequestWithinDialogHook": "object|string", - "dub": "#dub" + "sipRequestWithinDialogHook": "object|string" }, "required": [] }, - "dub": { - "properties": { - "enable": "boolean", - "play": "string", - "say": "object|string", - "adjustVolume": "string" - }, - "required": [ - "enable" - ] - }, "listenOptions": { "properties": { "enable": "boolean", @@ -121,6 +109,24 @@ "enable" ] }, + "dub": { + "properties": { + "id": "string", + "action": { + "type": "string", + "enum": ["addTrack", "removeTrack", "silenceTrack", "playOnTrack", "sayOnTrack"] + }, + "track": "string", + "play": "string", + "say": "string", + "loop": "boolean", + "gain": "number|string" + }, + "required": [ + "action", + "track" + ] + }, "dequeue": { "properties": { "id": "string",