{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/live-earnings-com/json-schema/live-earnings-com-report-schema.json",
  "title": "Report",
  "description": "Post-call report: runtime, turn counts, latency, and the transcript\nby phase. `call` + `stats` + `latency` + `transcripts_by_phase` are\nalways populated for an ended call.\n",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/live-earnings-com-openapi.yaml#/components/schemas/Report",
  "type": "object",
  "required": [
    "call",
    "stats",
    "latency",
    "transcripts_by_phase"
  ],
  "properties": {
    "call": {
      "type": "object",
      "required": [
        "slug",
        "ticker",
        "fiscal_period",
        "status"
      ],
      "properties": {
        "slug": {
          "type": "string"
        },
        "ticker": {
          "type": "string"
        },
        "fiscal_period": {
          "type": "string"
        },
        "press_release_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "scheduled_start": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "status": {
          "type": "string",
          "enum": [
            "scheduled",
            "live",
            "ended",
            "cancelled"
          ]
        }
      }
    },
    "stats": {
      "type": "object",
      "required": [
        "total_turns"
      ],
      "properties": {
        "total_runtime_sec": {
          "type": [
            "number",
            "null"
          ]
        },
        "total_turns": {
          "type": "integer",
          "description": "Every turn of the call, counted once, including turns nobody named."
        }
      }
    },
    "latency": {
      "type": "object",
      "description": "Wall-clock metrics across the event stream. `null` fields\nmean too few events to compute (< 2 events for span; <\nsamples threshold for percentiles).\n",
      "required": [
        "samples"
      ],
      "properties": {
        "span_sec": {
          "type": [
            "number",
            "null"
          ],
          "description": "Time from earliest event to latest event."
        },
        "median_inter_event_sec": {
          "type": [
            "number",
            "null"
          ]
        },
        "p95_inter_event_sec": {
          "type": [
            "number",
            "null"
          ]
        },
        "worst_inter_event_sec": {
          "type": [
            "number",
            "null"
          ]
        },
        "samples": {
          "type": "integer"
        }
      }
    },
    "transcripts_by_phase": {
      "type": "array",
      "description": "Every turn of the call, once, segmented by call phase in\nchronological order. `speaker` is the name in force after all\ncorrections (an operator's correction wins over the model's);\na turn nobody named has speaker `unknown`. Use `seq` (the turn's\nfirst appearance) to anchor back to the live event log; use\n`elapsed_sec` for relative timing within the call.\n",
      "items": {
        "type": "object",
        "required": [
          "phase",
          "turns"
        ],
        "properties": {
          "phase": {
            "$ref": "#/$defs/Phase"
          },
          "turns": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "seq",
                "speaker",
                "text",
                "elapsed_sec"
              ],
              "properties": {
                "seq": {
                  "type": "integer"
                },
                "speaker": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "elapsed_sec": {
                  "type": "number"
                }
              }
            }
          }
        }
      }
    }
  },
  "$defs": {
    "Phase": {
      "type": "string",
      "description": "A section of the call. Sections follow the call forward (opening, IR\nintroduction, prepared remarks, `qa`, `closing`), but the CEO's and\nCFO's prepared remarks (`ceo_remarks`, `cfo_remarks`) come in EITHER\norder — most calls are CEO-first — so `ceo_remarks` → `cfo_remarks` is\na normal transition.\n",
      "enum": [
        "unknown",
        "operator_opening",
        "ir_intro",
        "cfo_remarks",
        "ceo_remarks",
        "qa",
        "closing"
      ]
    }
  }
}