{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ploti-ai/json-schema/ploti-ai-request-status-headline-schema.json",
  "title": "RequestStatus.Headline",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/ploti-ai-v1-openapi.json#/components/schemas/RequestStatus.Headline",
  "type": "object",
  "properties": {
    "sentenceKey": {
      "type": "string",
      "enum": [
        "not_found",
        "paid_source",
        "outside_coverage",
        "withdrawn",
        "paused",
        "ready",
        "needs_you",
        "our_problem",
        "stalled",
        "quality_issue",
        "checking",
        "publisher",
        "parts",
        "supporting",
        "first_results",
        "searching_again",
        "building",
        "collecting",
        "searching",
        "research_checking",
        "research_report_ready",
        "research_gathering",
        "research_researching",
        "research_writing",
        "research_complete",
        "research_no_data",
        "research_failed",
        "research_held"
      ],
      "description": "Where the request is, as a machine key: searching, collecting, building, first_results, ready, needs_you, publisher, parts, not_found, paid_source, outside_coverage, withdrawn and the others in the status catalog."
    },
    "sentence": {
      "type": "string",
      "description": "The same, in one sentence for the user."
    },
    "step": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ],
      "description": "0 to 5 on the ladder found a source, collected, built, quality checked, ready (5 once everything is done); null once a request ended without data. It never goes back."
    },
    "tone": {
      "type": "string",
      "enum": [
        "working",
        "waiting",
        "late",
        "needs_you",
        "done",
        "ended"
      ],
      "description": "working, waiting (on something outside Ploti), late, needs_you (the user's answer is needed), done or ended."
    }
  },
  "required": [
    "sentenceKey",
    "sentence",
    "step",
    "tone"
  ],
  "additionalProperties": false
}