{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/luniumpay-com/json-schema/luniumpay-com-mesh-discovery-schema.json",
  "title": "MeshDiscovery",
  "description": "Documento unico que responde o que um agente pergunta antes de integrar. Gerado da configuracao viva — nao pode divergir do que a API faz.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/luniumpay-com-mesh-discovery-api-openapi.yml#/components/schemas/MeshDiscovery",
  "type": "object",
  "properties": {
    "quem_somos": {
      "type": "object"
    },
    "como_falar_comigo": {
      "type": "object",
      "description": "REST, OpenAPI, MCP, A2A e Mesh."
    },
    "capacidades": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/Capability"
      }
    },
    "como_escolher_capacidade": {
      "type": "object",
      "description": "Indice invertido intencao -> capacidades, mais como filtrar por atributo.",
      "properties": {
        "por_intencao": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "execucao": {
      "type": "object",
      "description": "Por capacidade: endpoint, campos obrigatorios e exemplo pronto."
    },
    "ativos_e_redes": {
      "type": "object"
    },
    "limites": {
      "type": "object"
    },
    "como_comecar": {
      "type": "object"
    },
    "regra_de_seguranca": {
      "type": "object"
    },
    "atribuicao": {
      "type": "object"
    }
  },
  "$defs": {
    "Capability": {
      "type": "object",
      "description": "O que a Lunium faz, descrito por ATRIBUTO e nao por nome interno — para um agente casar a propria intencao sem conhecer nosso vocabulario.",
      "properties": {
        "descricao": {
          "type": "string"
        },
        "intent": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "input_assets": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "input_networks": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "output_currencies": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "payment_rails": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "endpoint": {
          "type": "string"
        },
        "direction": {
          "type": "string"
        },
        "settlement_speed": {
          "type": "string",
          "enum": [
            "seconds",
            "minutes"
          ]
        }
      }
    }
  }
}