{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/samva-dev/json-schema/samva-dev-agent-version-page-schema.json",
  "title": "AgentVersionPage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/samva-dev-agents-api-openapi.yml#/components/schemas/AgentVersionPage",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AgentVersionSummary"
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "items",
    "nextCursor"
  ],
  "additionalProperties": false,
  "$defs": {
    "AgentId": {
      "type": "string",
      "pattern": "^agt_[0-9a-hjkmnp-tv-z]{16,24}$",
      "x-samva-brand": "AgentId"
    },
    "AgentVersionSummary": {
      "type": "object",
      "properties": {
        "agentId": {
          "$ref": "#/$defs/AgentId"
        },
        "version": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "publishedAt": {
          "type": "string"
        }
      },
      "required": [
        "agentId",
        "version",
        "publishedAt"
      ],
      "additionalProperties": false
    }
  }
}