{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crevio-co/json-schema/crevio-co-list-response-call-schema.json",
  "title": "ListResponse_Call",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crevio-co-calls-api-openapi.yml#/components/schemas/ListResponse_Call",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "list"
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Call"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "url"
  ],
  "$defs": {
    "Call": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "object": {
          "type": "string"
        },
        "direction": {
          "type": "string",
          "enum": [
            "inbound",
            "outbound"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "scheduled",
            "ringing",
            "in_progress",
            "ended",
            "failed"
          ]
        },
        "to_number": {
          "type": [
            "string",
            "null"
          ]
        },
        "from_number": {
          "type": [
            "string",
            "null"
          ]
        },
        "objective": {
          "type": [
            "string",
            "null"
          ]
        },
        "summary": {
          "type": [
            "string",
            "null"
          ]
        },
        "transcript": {
          "type": [
            "string",
            "null"
          ]
        },
        "recording_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "ended_reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "duration_seconds": {
          "type": [
            "integer",
            "null"
          ]
        },
        "credits_charged": {
          "type": [
            "integer",
            "null"
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "customer": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "object",
        "direction",
        "status",
        "to_number",
        "from_number",
        "objective",
        "summary",
        "transcript",
        "recording_url",
        "ended_reason",
        "duration_seconds",
        "credits_charged",
        "created_at",
        "updated_at",
        "customer"
      ]
    }
  }
}