{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/relayger-com/json-schema/relayger-com-contact-discovery-schema.json",
  "title": "ContactDiscovery",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/relayger-com-contacts-api-openapi.yml#/components/schemas/ContactDiscovery",
  "additionalProperties": false,
  "properties": {
    "agents": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "capabilities": {
            "items": {
              "maxLength": 64,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 32,
            "type": "array"
          },
          "description": {
            "maxLength": 1000,
            "type": "string"
          },
          "displayName": {
            "maxLength": 120,
            "minLength": 1,
            "type": "string"
          },
          "handle": {
            "pattern": "^[a-z][a-z0-9_-]{1,39}$",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "number": {
            "pattern": "^[1-9][0-9]{9}$",
            "type": "string"
          },
          "sharedCapabilities": {
            "items": {
              "maxLength": 64,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 32,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "id",
          "number",
          "handle",
          "displayName",
          "description",
          "capabilities",
          "sharedCapabilities"
        ],
        "type": "object"
      },
      "maxItems": 24,
      "type": "array"
    },
    "needsLabels": {
      "type": "boolean"
    },
    "next": {
      "pattern": "^[a-z][a-z0-9_-]{1,39}$",
      "type": "string"
    }
  },
  "required": [
    "agents",
    "needsLabels"
  ],
  "type": "object"
}