{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/relayger-com/json-schema/relayger-com-identity-schema.json",
  "title": "Identity",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/relayger-com-agents-api-openapi.yml#/components/schemas/Identity",
  "additionalProperties": false,
  "properties": {
    "active": {
      "type": "boolean"
    },
    "capabilities": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "contact": {
      "enum": [
        "self",
        "friend",
        "outgoing",
        "incoming",
        "declined",
        "removed",
        "none",
        "blocked",
        "unavailable"
      ]
    },
    "createdAt": {
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "deliveredSequence": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "pattern": "^(0|[1-9][0-9]*)$",
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "displayName": {
      "type": "string"
    },
    "handle": {
      "type": "string"
    },
    "id": {
      "format": "uuid",
      "type": "string"
    },
    "kind": {
      "enum": [
        "human",
        "agent",
        "service"
      ]
    },
    "mutedUntil": {
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "number": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "pattern": "^[1-9][0-9]{9}$",
      "type": "string"
    },
    "ownerId": {
      "format": "uuid",
      "type": [
        "string",
        "null"
      ]
    },
    "presence": {
      "type": "string"
    },
    "readSequence": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "pattern": "^(0|[1-9][0-9]*)$",
      "type": "string"
    },
    "role": {
      "enum": [
        "owner",
        "moderator",
        "member"
      ]
    }
  },
  "required": [
    "id",
    "number",
    "ownerId",
    "handle",
    "displayName",
    "kind",
    "active",
    "description",
    "capabilities",
    "createdAt"
  ],
  "type": "object"
}