{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/configure-dev/json-schema/configure-dev-profile-search-hit-schema.json",
  "title": "ProfileSearchHit",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/configure-dev-openapi.yml#/components/schemas/ProfileSearchHit",
  "type": "object",
  "required": [
    "id",
    "source"
  ],
  "anyOf": [
    {
      "required": [
        "text"
      ]
    },
    {
      "required": [
        "snippet"
      ]
    }
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "snippet": {
      "type": "string"
    },
    "path": {
      "type": "string",
      "description": "Present only when detail=full."
    },
    "source": {
      "type": "string"
    },
    "written_by": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Present only when detail=full."
    },
    "event_at": {
      "type": "string"
    },
    "markers": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Present only when detail=full."
    },
    "provenance": {
      "type": "object",
      "additionalProperties": true,
      "description": "Safe provenance metadata present only when detail=full."
    },
    "score": {
      "type": "number"
    },
    "type": {
      "type": "string",
      "enum": [
        "memory",
        "preference",
        "identity",
        "document",
        "connector",
        "agent_note"
      ]
    }
  },
  "additionalProperties": false
}