{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/commentary-dev/json-schema/commentary-dev-project-agentlist-project-activity-output-schema.json",
  "title": "ProjectAgentlistProjectActivityOutput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/commentary-dev-projects-api-openapi.yml#/components/schemas/ProjectAgentlistProjectActivityOutput",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "data": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProjectAgentActivity"
          },
          "maxItems": 100,
          "minItems": 0
        },
        "nextCursor": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096,
          "pattern": "^[^\\s]+$"
        },
        "hasMore": {
          "type": "boolean"
        },
        "outcome": {
          "type": "string",
          "enum": [
            "events",
            "idle",
            "timeout",
            "canceled"
          ]
        }
      },
      "required": [
        "items",
        "nextCursor",
        "hasMore",
        "outcome"
      ]
    },
    "idempotencyReplayed": {
      "type": "boolean"
    }
  },
  "required": [
    "data"
  ],
  "$defs": {
    "ProjectAgentActivity": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "eventType": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "occurredAt": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"
        },
        "resource": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "type": {
              "type": "string",
              "maxLength": 80
            },
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            }
          },
          "required": [
            "type",
            "id"
          ]
        },
        "aggregateVersion": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "retrievalUrl": {
          "type": "string",
          "maxLength": 2048
        },
        "change": {
          "type": "string",
          "maxLength": 200
        }
      },
      "required": [
        "id",
        "eventType",
        "occurredAt",
        "resource",
        "aggregateVersion",
        "retrievalUrl",
        "change"
      ]
    }
  }
}