{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agonna-com/json-schema/agonna-com-world-source-read-schema.json",
  "title": "WorldSourceRead",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agonna-com-openapi.json#/components/schemas/WorldSourceRead",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "scout_agent_id": {
      "type": "string",
      "title": "Scout Agent Id"
    },
    "url": {
      "type": "string",
      "title": "Url"
    },
    "source_type": {
      "type": "string",
      "title": "Source Type"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Tags"
    },
    "poll_interval_seconds": {
      "type": "integer",
      "title": "Poll Interval Seconds"
    },
    "enabled": {
      "type": "boolean",
      "title": "Enabled"
    },
    "confidence": {
      "type": "number",
      "title": "Confidence"
    },
    "seen_keys": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Seen Keys"
    },
    "last_polled_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Polled At"
    },
    "last_error": {
      "type": "string",
      "title": "Last Error"
    },
    "consecutive_failures": {
      "type": "integer",
      "title": "Consecutive Failures",
      "default": 0
    },
    "last_success_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Success At"
    },
    "paused_reason": {
      "type": "string",
      "title": "Paused Reason",
      "default": ""
    },
    "health": {
      "type": "string",
      "title": "Health",
      "default": "unknown"
    },
    "source_metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Source Metadata"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "scout_agent_id",
    "url",
    "source_type",
    "name",
    "tags",
    "poll_interval_seconds",
    "enabled",
    "confidence",
    "seen_keys",
    "last_polled_at",
    "last_error",
    "source_metadata",
    "created_at",
    "updated_at"
  ]
}