{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentline-nz/json-schema/agentline-nz-call-schema.json",
  "title": "Call",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/agentline-nz-api-openapi.json#/components/schemas/Call",
  "type": "object",
  "required": [
    "id",
    "direction",
    "from",
    "to",
    "status",
    "durationSeconds",
    "transcript",
    "hasRecording",
    "createdAt"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "direction": {
      "type": "string",
      "enum": [
        "in",
        "out"
      ]
    },
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "durationSeconds": {
      "type": [
        "integer",
        "null"
      ]
    },
    "transcript": {
      "type": [
        "string",
        "null"
      ]
    },
    "hasRecording": {
      "type": "boolean"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}