{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "call.recording.ready.json", "title": "call.recording.ready", "type": "object", "required": ["event_type", "call_id", "payload"], "properties": { "event_type": { "const": "recording.ready" }, "call_id": { "type": "string", "minLength": 1 }, "interaction_id": { "type": ["string", "null"] }, "payload": { "type": "object", "required": ["source_path"], "properties": { "source_path": { "type": "string", "minLength": 1 }, "file_name": { "type": ["string", "null"] }, "mime_type": { "type": ["string", "null"] }, "duration_seconds": { "type": ["integer", "null"], "minimum": 0 }, "recorded_at": { "type": ["string", "null"] } }, "additionalProperties": true } }, "additionalProperties": true }