{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/writerslogic-com/json-schema/writerslogic-com-declaration-request-schema.json",
  "title": "DeclarationRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/writerslogic-com-declaration-api-openapi.yml#/components/schemas/DeclarationRequest",
  "type": "object",
  "required": [
    "documentHash",
    "titleHash",
    "aiTools"
  ],
  "properties": {
    "documentHash": {
      "type": "string",
      "pattern": "^[0-9a-fA-F]{64}$"
    },
    "titleHash": {
      "type": "string",
      "pattern": "^[0-9a-fA-F]{64}$"
    },
    "aiTools": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "object",
        "required": [
          "name",
          "purpose",
          "extent"
        ],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "purpose": {
            "type": "string",
            "enum": [
              "grammar_check",
              "style_suggestion",
              "content_generation",
              "translation",
              "research",
              "other"
            ]
          },
          "extent": {
            "type": "string",
            "enum": [
              "none",
              "minor_assistance",
              "significant_assistance",
              "primary_generation"
            ]
          }
        }
      }
    },
    "inputModalities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}