@jambonz/schema 0.1.2 → 0.1.4

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.4",
4
4
  "description": "JSON Schema definitions and validation for jambonz verb applications",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -69,16 +69,19 @@
69
69
  "additionalProperties": true
70
70
  },
71
71
  "listen": {
72
- "$ref": "listen",
73
- "description": "Nested listen verb session-level audio streaming configuration."
72
+ "type": "object",
73
+ "description": "Session-level audio streaming configuration defaults. Properties match the listen verb but no fields are required here.",
74
+ "additionalProperties": true
74
75
  },
75
76
  "stream": {
76
- "$ref": "stream",
77
- "description": "Nested stream verb — session-level audio streaming configuration. Alias for 'listen'."
77
+ "type": "object",
78
+ "description": "Session-level audio streaming configuration defaults. Alias for 'listen'.",
79
+ "additionalProperties": true
78
80
  },
79
81
  "transcribe": {
80
- "$ref": "transcribe",
81
- "description": "Nested transcribe verb — session-level real-time transcription configuration."
82
+ "type": "object",
83
+ "description": "Session-level transcription configuration defaults.",
84
+ "additionalProperties": true
82
85
  },
83
86
  "amd": {
84
87
  "$ref": "../components/amd",
@@ -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",