{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/luniumpay-com/json-schema/luniumpay-com-production-activation-schema.json",
  "title": "ProductionActivation",
  "description": "Ativacao AUTOMATICA. `activated_by` e sempre `policy` — nunca `operator`.",
  "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/ProductionActivation",
  "type": "object",
  "properties": {
    "status": {
      "type": "string"
    },
    "agent_id": {
      "type": "string"
    },
    "environment": {
      "type": "string"
    },
    "activated_at": {
      "type": "string",
      "format": "date-time"
    },
    "activated_by": {
      "type": "string"
    },
    "api_key": {
      "type": "string",
      "description": "Credencial de producao (`lun_live_*`), uma vez so."
    },
    "settlement": {
      "type": "object"
    },
    "mandate": {
      "$ref": "#/$defs/Mandate"
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "Mandate": {
      "type": "object",
      "description": "Politica que a propria chave se impoe. So APERTA os limites, nunca amplia — por isso o agente pode defini-la sozinho: o pior que faz e se limitar. Obrigatorio antes de producao.",
      "properties": {
        "max_por_operacao_cents": {
          "type": "integer"
        },
        "max_diario_cents": {
          "type": "integer"
        },
        "contrapartes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Chaves PIX autorizadas. Vazio = sem restricao."
        }
      }
    }
  }
}