{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/luniumpay-com/json-schema/luniumpay-com-agent-registration-schema.json",
  "title": "AgentRegistration",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/luniumpay-com-mesh-identity-api-openapi.yml#/components/schemas/AgentRegistration",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 80
    },
    "description": {
      "type": "string"
    },
    "contact": {
      "type": "string"
    },
    "agent_card_url": {
      "type": "string"
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "referral_token": {
      "type": "string",
      "description": "Attestation assinada por quem indicou. E o UNICO jeito de ter linhagem: `referred_by` declarado pelo cliente e recusado, porque vale dinheiro."
    }
  }
}