{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nessflow-com/json-schema/nessflow-com-search-console-schema.json",
  "title": "SearchConsole",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nessflow-com-openapi.json#/components/schemas/SearchConsole",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "project_id",
    "status",
    "property",
    "performance",
    "indexation"
  ],
  "properties": {
    "project_id": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "unconfigured",
        "pending",
        "ready"
      ]
    },
    "property": {
      "type": [
        "string",
        "null"
      ]
    },
    "performance": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "period",
        "totals",
        "daily"
      ],
      "properties": {
        "period": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "preset",
            "from",
            "to"
          ],
          "properties": {
            "preset": {
              "type": "string"
            },
            "from": {
              "type": "string",
              "format": "date"
            },
            "to": {
              "type": "string",
              "format": "date"
            }
          }
        },
        "totals": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "clicks",
            "impressions",
            "ctr_percent",
            "average_position"
          ],
          "properties": {
            "clicks": {
              "type": "integer"
            },
            "impressions": {
              "type": "integer"
            },
            "ctr_percent": {
              "type": "number"
            },
            "average_position": {
              "type": [
                "number",
                "null"
              ]
            }
          }
        },
        "daily": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "date",
              "clicks",
              "impressions",
              "average_position"
            ],
            "properties": {
              "date": {
                "type": "string",
                "format": "date"
              },
              "clicks": {
                "type": "integer"
              },
              "impressions": {
                "type": "integer"
              },
              "average_position": {
                "type": [
                  "number",
                  "null"
                ]
              }
            }
          }
        }
      }
    },
    "indexation": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "inspected",
        "indexed",
        "excluded",
        "canonical_conflicts",
        "last_inspected_at"
      ],
      "properties": {
        "inspected": {
          "type": "integer"
        },
        "indexed": {
          "type": "integer"
        },
        "excluded": {
          "type": "integer"
        },
        "canonical_conflicts": {
          "type": "integer"
        },
        "last_inspected_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}