{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fxmacrodata/json-schema/fxmacrodata-press-releases-response-schema.json",
  "title": "PressReleasesResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fxmacrodata-press-releases-api-openapi.yml#/components/schemas/PressReleasesResponse",
  "properties": {
    "currency": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Currency"
    },
    "source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source"
    },
    "source_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Url"
    },
    "limit": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Limit"
    },
    "offset": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Offset"
    },
    "count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Count"
    },
    "pagination": {
      "anyOf": [
        {
          "$ref": "#/$defs/PaginationInfo"
        },
        {
          "type": "null"
        }
      ]
    },
    "data": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/PressRelease"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Data"
    }
  },
  "type": "object",
  "$defs": {
    "PaginationInfo": {
      "properties": {
        "limit": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Limit"
        },
        "offset": {
          "type": "integer",
          "title": "Offset"
        },
        "returned_count": {
          "type": "integer",
          "title": "Returned Count"
        },
        "total_count": {
          "type": "integer",
          "title": "Total Count"
        },
        "has_more": {
          "type": "boolean",
          "title": "Has More"
        },
        "next_offset": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Offset"
        },
        "page_includes_latest_available": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Page Includes Latest Available"
        }
      },
      "type": "object",
      "required": [
        "offset",
        "returned_count",
        "total_count",
        "has_more"
      ],
      "title": "PaginationInfo",
      "description": "Offset pagination state for a single page of results."
    },
    "PressRelease": {
      "properties": {
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Date"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "topics": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Topics"
        },
        "summary": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Summary"
        },
        "category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Category"
        },
        "rate_path": {
          "anyOf": [
            {
              "$ref": "#/$defs/PressReleaseRatePath"
            },
            {
              "type": "null"
            }
          ]
        },
        "relevance": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Relevance"
        },
        "sentiment": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sentiment"
        },
        "ai_summary": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ai Summary",
          "description": "Model-generated one-to-two sentence FX/macro takeaway. Not an official statement."
        },
        "ai_stance": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ai Stance",
          "description": "Model-assessed stance: `hawkish`, `dovish` or `neutral`."
        },
        "ai_stance_score": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ai Stance Score",
          "description": "Model-assessed stance in [-1, 1]; positive is hawkish."
        },
        "ai_next_meeting_action": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ai Next Meeting Action",
          "description": "Model-assessed next policy action: `hike`, `cut` or `hold`."
        },
        "ai_next_meeting_probability": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ai Next Meeting Probability",
          "description": "Model-assessed probability in [0, 1] of `ai_next_meeting_action` at the next meeting."
        },
        "ai_rationale": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ai Rationale",
          "description": "Model-generated one-sentence justification for the stance."
        }
      },
      "type": "object",
      "title": "PressRelease"
    },
    "PressReleaseRatePath": {
      "properties": {
        "label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Label"
        },
        "score": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Score"
        },
        "matches": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/RatePathMatch"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Matches"
        },
        "raw_score": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Raw Score"
        },
        "confidence": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Confidence"
        },
        "bias_action": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bias Action"
        }
      },
      "type": "object",
      "title": "PressReleaseRatePath",
      "description": "Rate-path bias inferred from the release text."
    },
    "RatePathMatch": {
      "properties": {
        "phrase": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Phrase"
        },
        "weight": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Weight"
        }
      },
      "type": "object",
      "title": "RatePathMatch",
      "description": "One scoring phrase found in the release and its weight.\n\nAt most 20 per release. ``phrase`` is an entry from the hawkish/dovish\nscoring vocabulary, not an excerpt of the release; positive weights are\nhawkish, negative weights dovish."
    }
  }
}