{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/semantic-visions-s-r-o/json-schema/semantic-visions-s-r-o-summary-search-response-schema.json",
  "title": "SummarySearchResponse",
  "description": "Response model for Summary search endpoint",
  "x-generated": "2026-11-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/semantic-visions-s-r-o-openapi.yml#/components/schemas/SummarySearchResponse",
  "properties": {
    "summaries": {
      "items": {
        "$ref": "#/$defs/Summary"
      },
      "type": "array",
      "title": "Summaries",
      "description": "List of Summaries matching the search criteria"
    },
    "count": {
      "type": "integer",
      "title": "Count",
      "description": "Total number of Summaries matching the search criteria"
    },
    "cursor": {
      "anyOf": [
        {
          "items": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ]
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cursor",
      "description": "Cursor for pagination. Pass this value back unchanged with the same sort_by to retrieve the next page. Includes a UUID tie-breaker, so it is one element longer than sort_by."
    }
  },
  "type": "object",
  "required": [
    "summaries",
    "count",
    "cursor"
  ],
  "$defs": {
    "Summary": {
      "properties": {
        "articles_count": {
          "type": "integer",
          "title": "Articles Count",
          "description": "Number of articles related to this event"
        },
        "categories": {
          "items": {
            "$ref": "#/$defs/SummaryEventCategory"
          },
          "type": "array",
          "title": "Categories",
          "description": "List of event categories"
        },
        "companies": {
          "items": {
            "$ref": "#/$defs/SummaryCompany"
          },
          "type": "array",
          "title": "Companies",
          "description": "List of companies mentioned in the event"
        },
        "constituents_count": {
          "type": "integer",
          "title": "Constituents Count",
          "description": "Number of constituents related to this event"
        },
        "end_time": {
          "type": "integer",
          "title": "End Time",
          "description": "Event end time in milliseconds (Unix timestamp)"
        },
        "end_time_string": {
          "type": "string",
          "title": "End Time String",
          "description": "Event end time as ISO 8601 string"
        },
        "entity_id": {
          "type": "string",
          "title": "Entity Id",
          "description": "Unique identifier for the entity"
        },
        "entity_name": {
          "type": "string",
          "title": "Entity Name",
          "description": "Name of the entity"
        },
        "event_summary": {
          "type": "string",
          "title": "Event Summary",
          "description": "Detailed summary of the event"
        },
        "event_title": {
          "type": "string",
          "title": "Event Title",
          "description": "Title of the event"
        },
        "locations": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Locations",
          "description": "List of locations mentioned in the event"
        },
        "sentiment_label": {
          "type": "string",
          "title": "Sentiment Label",
          "description": "Overall sentiment label (e.g., neutral, positive, negative, very positive)"
        },
        "sentiment_number": {
          "type": "integer",
          "title": "Sentiment Number",
          "description": "Sentiment as a number (-2 to 2)"
        },
        "start_time": {
          "type": "integer",
          "title": "Start Time",
          "description": "Event start time in milliseconds (Unix timestamp)"
        },
        "start_time_string": {
          "type": "string",
          "title": "Start Time String",
          "description": "Event start time as ISO 8601 string"
        },
        "state": {
          "type": "string",
          "title": "State",
          "description": "Current state of the event (e.g., ongoing, ended)"
        },
        "entity_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Entity Type",
          "description": "Type of the entity"
        },
        "summary_id": {
          "type": "string",
          "title": "Summary Id",
          "description": "Summary ID"
        }
      },
      "type": "object",
      "required": [
        "articles_count",
        "categories",
        "constituents_count",
        "end_time",
        "end_time_string",
        "entity_id",
        "entity_name",
        "event_summary",
        "event_title",
        "sentiment_label",
        "sentiment_number",
        "start_time",
        "start_time_string",
        "state",
        "summary_id"
      ],
      "title": "Summary",
      "description": "Single Summary"
    },
    "SummaryCompany": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name",
          "description": "Company name"
        },
        "sentiment": {
          "type": "string",
          "title": "Sentiment",
          "description": "Sentiment associated with the company (e.g., neutral, positive, negative)"
        }
      },
      "type": "object",
      "required": [
        "name",
        "sentiment"
      ],
      "title": "SummaryCompany",
      "description": "Company mentioned in an Summary event"
    },
    "SummaryEventCategory": {
      "properties": {
        "impact_type": {
          "type": "string",
          "title": "Impact Type",
          "description": "Impact type identifier"
        },
        "impact_type_name": {
          "type": "string",
          "title": "Impact Type Name",
          "description": "Human-readable impact type name"
        },
        "event_category": {
          "type": "string",
          "title": "Event Category",
          "description": "Event category identifier"
        },
        "event_category_name": {
          "type": "string",
          "title": "Event Category Name",
          "description": "Human-readable event category name"
        },
        "event_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Event Type",
          "description": "Event type identifier"
        },
        "event_type_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Event Type Name",
          "description": "Human-readable event type name"
        }
      },
      "type": "object",
      "required": [
        "impact_type",
        "impact_type_name",
        "event_category",
        "event_category_name"
      ],
      "title": "SummaryEventCategory",
      "description": "Category information for an Summary event"
    }
  }
}