{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/notepad-page/json-schema/notepad-page-recall-hit-schema.json",
  "title": "RecallHit",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/notepad-page-openapi.json#/components/schemas/RecallHit",
  "type": "object",
  "required": [
    "id",
    "score",
    "slug",
    "url",
    "title",
    "shareMode"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "score": {
      "type": "number"
    },
    "matchedTokens": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "slug": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "title": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "topics": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "keywords": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "purpose": {
      "type": [
        "string",
        "null"
      ]
    },
    "project": {
      "type": [
        "string",
        "null"
      ]
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "relatedTo": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "supersedes": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 200
              }
            },
            "derivedFrom": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 200
              }
            }
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "shareMode": {
      "type": "string",
      "enum": [
        "private",
        "link",
        "public"
      ]
    },
    "pinned": {
      "type": "boolean"
    },
    "lastActivityAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}