{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stealthstack-ai/json-schema/stealthstack-ai-index-record-schema.json",
  "title": "IndexRecord",
  "description": "See schemas/index-record.schema.json (canonical). Summarized here for codegen.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stealthstack-ai-openapi.yaml#/components/schemas/IndexRecord",
  "type": "object",
  "required": [
    "identifier",
    "displayName",
    "type",
    "kind",
    "source",
    "observed",
    "trust"
  ],
  "properties": {
    "identifier": {
      "type": "string"
    },
    "displayName": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "agent",
        "mcp",
        "skill",
        "catalog",
        "api",
        "registry",
        "other"
      ]
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "description": {
      "type": "string"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "representativeQueries": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "version": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true
    },
    "source": {
      "type": "object",
      "properties": {
        "domain": {
          "type": "string"
        },
        "catalogUrl": {
          "type": "string",
          "format": "uri"
        },
        "via": {
          "type": "string"
        }
      }
    },
    "observed": {
      "type": "object",
      "properties": {
        "firstSeen": {
          "type": "string",
          "format": "date-time"
        },
        "lastSeen": {
          "type": "string",
          "format": "date-time"
        },
        "lastStatus": {
          "type": "integer"
        }
      }
    },
    "trust": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "verified",
            "unverified",
            "failed"
          ]
        },
        "method": {
          "type": "string",
          "enum": [
            "domain-anchor",
            "registry-asserted",
            "none"
          ]
        },
        "authority": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "catalogHost": {
      "type": "object",
      "properties": {
        "identifier": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        }
      }
    },
    "sensitive": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "adult",
          "gambling"
        ]
      },
      "description": "RESERVED, index-derived (never from the crawl record). Labelled records are hidden everywhere, so this member is not served today; it appears only on an index deployed with its sensitive opt-in flag on. A publisher-supplied top-level `sensitive` is never passed through. A client that receives a record carrying it should treat the record as hidden (not show it).\n"
    }
  }
}