@jambonz/schema 0.1.2 → 0.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jambonz/schema",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "JSON Schema definitions and validation for jambonz verb applications",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -59,9 +59,19 @@
59
59
  "description": "URL of an audio file to play to the caller while the outbound call is ringing. Replaces the default ringback tone."
60
60
  },
61
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
62
+ "oneOf": [
63
+ {
64
+ "type": "array",
65
+ "items": { "type": "string" },
66
+ "description": "Array of DTMF patterns to capture on both call legs."
67
+ },
68
+ {
69
+ "type": "object",
70
+ "description": "Per-leg DTMF capture configuration with childCall and/or parentCall arrays.",
71
+ "additionalProperties": true
72
+ }
73
+ ],
74
+ "description": "Configuration for capturing DTMF digits during the bridged call. Can be a simple array of patterns (applied to both legs) or an object with childCall/parentCall arrays."
65
75
  },
66
76
  "dtmfHook": {
67
77
  "$ref": "../components/actionHook",