{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ultralayer-ai/json-schema/ultralayer-ai-wire-item-schema.json",
  "title": "WireItem",
  "description": "A wire item.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ultralayer-ai-openapi.json#/components/schemas/WireItem",
  "properties": {
    "wire_id": {
      "type": "integer",
      "title": "Wire Id",
      "description": "Primary key of the wire row."
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "title": "Timestamp",
      "description": "Canonical system time when this item was put on the wire."
    },
    "source_timestamp": {
      "type": "string",
      "format": "date-time",
      "title": "Source Timestamp",
      "description": "Source last-update time."
    },
    "headline": {
      "type": "string",
      "title": "Headline",
      "description": "Ultralayer-generated headline."
    },
    "publisher": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Publisher",
      "description": "Normalized publisher/source label, when known."
    },
    "url": {
      "type": "string",
      "title": "Url",
      "description": "Link to the original item."
    },
    "content_type": {
      "type": "string",
      "enum": [
        "news",
        "analysis",
        "opinion",
        "press_release",
        "data_release"
      ],
      "title": "Content Type",
      "description": "Kind of item."
    },
    "categories": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Categories",
      "description": "Multi-label event/theme tags."
    },
    "recency": {
      "type": "string",
      "enum": [
        "realtime",
        "report_of_past",
        "report_of_future"
      ],
      "title": "Recency",
      "description": "Whether the item is about now, the past, or the future."
    },
    "source_relationship": {
      "type": "string",
      "enum": [
        "first_party",
        "reporting",
        "second_hand"
      ],
      "title": "Source Relationship",
      "description": "How close the source is to the information."
    },
    "factuality": {
      "type": "string",
      "enum": [
        "confirmed",
        "reported",
        "rumor",
        "speculation",
        "forecast"
      ],
      "title": "Factuality",
      "description": "Epistemic status of the item's core claim."
    },
    "novelty": {
      "type": "string",
      "enum": [
        "new",
        "update",
        "duplicate",
        "correction"
      ],
      "title": "Novelty",
      "description": "Story-lifecycle label relative to prior wire items."
    },
    "prior_wire_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Prior Wire Id",
      "description": "Matched earlier wire item for update|duplicate|correction; null for new."
    },
    "trustworthiness_score": {
      "type": "number",
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Trustworthiness Score",
      "description": "0..1 source credibility score."
    },
    "importance_score": {
      "type": "number",
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Importance Score",
      "description": "0..1 market-importance score."
    },
    "about": {
      "$ref": "#/$defs/WireAbout",
      "description": "Market-level scope dimensions (sectors, industries, countries, asset_classes)."
    },
    "entities": {
      "items": {
        "$ref": "#/$defs/WireEntityDetail"
      },
      "type": "array",
      "title": "Entities",
      "description": "Grounded entities with per-entity relevance and sentiment."
    }
  },
  "type": "object",
  "required": [
    "wire_id",
    "timestamp",
    "source_timestamp",
    "headline",
    "publisher",
    "url",
    "content_type",
    "categories",
    "recency",
    "source_relationship",
    "factuality",
    "novelty",
    "prior_wire_id",
    "trustworthiness_score",
    "importance_score",
    "about",
    "entities"
  ],
  "$defs": {
    "WireAbout": {
      "properties": {
        "sectors": {
          "items": {
            "type": "string",
            "enum": [
              "communication_services",
              "consumer_discretionary",
              "consumer_staples",
              "energy",
              "financials",
              "health_care",
              "industrials",
              "information_technology",
              "materials",
              "real_estate",
              "utilities"
            ]
          },
          "type": "array",
          "title": "Sectors",
          "description": "GICS-style sectors this item is about."
        },
        "industries": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Industries",
          "description": "Free-form industry labels this item is about."
        },
        "countries": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Countries",
          "description": "Lowercase country codes this item is about."
        },
        "asset_classes": {
          "items": {
            "type": "string",
            "enum": [
              "equities",
              "fixed_income",
              "currencies",
              "commodities",
              "crypto",
              "real_estate"
            ]
          },
          "type": "array",
          "title": "Asset Classes",
          "description": "Asset classes this item is about."
        }
      },
      "type": "object",
      "title": "WireAbout",
      "description": "Market-level scope dimensions for a wire item. May be inferred, not only explicitly named."
    },
    "WireEntityDetail": {
      "properties": {
        "entity_id": {
          "type": "integer",
          "title": "Entity Id",
          "description": "Stable Ultralayer entity id."
        },
        "canonical_name": {
          "type": "string",
          "title": "Canonical Name",
          "description": "Canonical entity name."
        },
        "identifiers": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Identifiers",
          "description": "Document-grounded lexical references to this entity in the item text."
        },
        "entity_type": {
          "type": "string",
          "title": "Entity Type",
          "description": "Entity type label (e.g. COMPANY, PERSON)."
        },
        "relevance": {
          "type": "string",
          "enum": [
            "primary",
            "significant",
            "contextual",
            "incidental"
          ],
          "title": "Relevance",
          "description": "How central the entity is to the item."
        },
        "sentiment": {
          "type": "number",
          "maximum": 1.0,
          "minimum": -1.0,
          "title": "Sentiment",
          "description": "-1..1 directional market implication of this item for this entity."
        }
      },
      "type": "object",
      "required": [
        "entity_id",
        "canonical_name",
        "entity_type",
        "relevance",
        "sentiment"
      ],
      "title": "WireEntityDetail",
      "description": "One grounded entity on a wire item, with per-entity relevance and sentiment."
    }
  }
}