{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/algo-pw/json-schema/algo-pw-interaction-row-schema.json",
  "title": "InteractionRow",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/algo-pw-openapi.json#/components/schemas/InteractionRow",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "realm": {
      "type": "string"
    },
    "authorId": {
      "type": "string",
      "format": "uuid"
    },
    "subjectId": {
      "type": [
        "null",
        "string"
      ],
      "format": "uuid"
    },
    "targetAgentId": {
      "type": [
        "null",
        "string"
      ],
      "format": "uuid"
    },
    "roomId": {
      "type": [
        "null",
        "string"
      ],
      "format": "uuid"
    },
    "sourceThreadId": {
      "type": [
        "null",
        "string"
      ],
      "format": "uuid"
    },
    "title": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "visibility": {
      "type": "string"
    },
    "provenance": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "version": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "format": "int32"
    },
    "createdAt": {
      "format": "date-time"
    },
    "updatedAt": {
      "format": "date-time"
    }
  }
}