{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/samva-dev/json-schema/samva-dev-extension-version-page-schema.json",
  "title": "ExtensionVersionPage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/samva-dev-extensions-api-openapi.yml#/components/schemas/ExtensionVersionPage",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ExtensionVersionSummary"
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "items",
    "nextCursor"
  ],
  "additionalProperties": false,
  "$defs": {
    "ExtensionBundle": {
      "type": "object",
      "properties": {
        "sha256": {
          "type": "string"
        },
        "sizeBytes": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "sha256",
        "sizeBytes"
      ],
      "additionalProperties": false
    },
    "ExtensionVersionId": {
      "type": "string",
      "pattern": "^extver_[0-9a-hjkmnp-tv-z]{16,24}$",
      "x-samva-brand": "ExtensionVersionId"
    },
    "ExtensionVersionSummary": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/ExtensionVersionId"
        },
        "version": {
          "type": "string"
        },
        "runtime": {
          "type": "string",
          "enum": [
            "hosted",
            "webhook"
          ]
        },
        "bundle": {
          "anyOf": [
            {
              "$ref": "#/$defs/ExtensionBundle"
            },
            {
              "type": "null"
            }
          ]
        },
        "publishedAt": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "version",
        "runtime",
        "bundle",
        "publishedAt"
      ],
      "additionalProperties": false
    }
  }
}