{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grepr/json-schema/grepr-transcript-turns-list-schema.json",
  "title": "TranscriptTurnsList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grepr-chats-api-openapi.yml#/components/schemas/TranscriptTurnsList",
  "properties": {
    "hasMore": {
      "type": "boolean"
    },
    "turns": {
      "items": {
        "$ref": "#/$defs/TranscriptTurn"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "TranscriptMessage": {
      "properties": {
        "durationNanos": {
          "format": "int64",
          "type": "integer"
        },
        "id": {
          "type": "string"
        },
        "role": {
          "enum": [
            "SYSTEM",
            "TRIGGER_SIGNAL",
            "USER",
            "ASSISTANT",
            "TOOL_RESULT",
            "KNOWN_ISSUES"
          ],
          "type": "string"
        },
        "startedAt": {
          "format": "date-time",
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "timestamp": {
          "format": "date-time",
          "type": "string"
        },
        "toolCallId": {
          "type": "string"
        },
        "toolCalls": {
          "items": {
            "$ref": "#/$defs/TranscriptToolCall"
          },
          "type": "array"
        },
        "toolName": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "TranscriptToolCall": {
      "properties": {
        "argumentsJson": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "TranscriptTurn": {
      "properties": {
        "messages": {
          "items": {
            "$ref": "#/$defs/TranscriptMessage"
          },
          "type": "array"
        },
        "seq": {
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    }
  }
}