{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://jambonz.org/schema/callbacks/conference-status",
  "title": "Conference StatusHook Payload",
  "description": "Payload sent to the conference statusHook when a conference event occurs.",
  "allOf": [
    { "$ref": "base" }
  ],
  "type": "object",
  "properties": {
    "event": {
      "type": "string",
      "enum": ["start", "end", "join", "leave", "start-talking", "stop-talking"],
      "description": "The conference event that occurred."
    },
    "conference_sid": { "type": "string", "description": "Conference identifier (format: conf:<account_sid>:<conference_name>)." },
    "friendly_name": { "type": "string", "description": "The conference name as specified in the conference verb." },
    "duration": { "type": "number", "description": "Time in seconds since the conference started." },
    "members": { "type": "integer", "description": "Current number of participants in the conference." },
    "time": { "type": "string", "format": "date-time", "description": "ISO 8601 timestamp of when the event occurred." }
  },
  "required": ["event", "conference_sid"],
  "additionalProperties": true
}
