{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/substructure/main/json-schema/substructure-get-response-schema.json",
  "title": "GetResponse",
  "x-generated": "2026-10-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/substructure-openapi-generated.yml#/components/schemas/GetResponse",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "session_id": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "seq": {
            "type": "integer"
          },
          "first_event_at": {
            "type": "string",
            "format": "date-time"
          },
          "last_event_at": {
            "type": "string",
            "format": "date-time"
          },
          "wake_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "top_level": {
            "type": "boolean"
          },
          "agent_id": {
            "type": "string"
          },
          "cost": {
            "type": "string"
          },
          "subagent_cost": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "turn_id": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}