9 Commits

Author SHA1 Message Date
ecio 85003a467a docs: adiciona leiame 2026-06-21 01:23:12 -03:00
ecio 2fd0877b89 style: hide info title in swagger UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 17:44:27 -03:00
ecio d3273b0cad fix: adapt topbar logo for swagger-ui-dist 5.32.6
v5.x renders logo as inline SVG (not <img>); topbar link no longer
has .link class. Hide SVG via CSS, inject img element via JS fixLogo().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 17:41:39 -03:00
ecio 7be7822d92 fix: replace logo via JS img.src instead of CSS content: url()
content: url() on <img> is unreliable in modern Chrome; setting src
directly in JS is the approach that works in whatsapp-api.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 17:31:07 -03:00
ecio 238bbba7bf feat: apply same Swagger UI template as whatsapp-api
Logo, header (CoreGuard / WhatsAPI Oficial), search filter,
auth gate, PT-BR button labels and footer — identical to whatsapp-api.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 17:24:35 -03:00
ecio b96d37ab11 feat: add pre-generated swagger.json; remove from .gitignore
swagger-autogen is a devDep not present in the Docker image.
Committing the generated file keeps the container self-contained.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 17:19:05 -03:00
ecio b8734cd653 fix: join whatsapp-sys network for internal service communication
Adds whatsapp-sys-net (external) so whatsapp-sys containers can reach
whatsapp-api-oficial via http://whatsapp-api-oficial:3001 without DNS.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 17:09:28 -03:00
ecio c5bfda5918 fix: simplify docker-compose to non-Swarm mode (match whatsapp-api pattern)
Remove external network and Swarm deploy labels; use expose + service-level
Traefik labels like the existing whatsapp-api container.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 17:00:07 -03:00
ecio 995f211288 feat: projeto whatsapp-api-oficial — wrapper Meta Cloud API
API Node.js/Express que encapsula a Meta Cloud API (Graph API v21.0):
- POST /account/configure/:accountId — salva credenciais WABA no SQLite
- GET  /account/status/:accountId   — verifica credenciais via Meta API
- POST /message/send/:accountId     — envia texto, template ou mídia
- GET  /templates/:accountId        — lista templates aprovados da WABA
- GET  /webhooks/meta               — verificação de token (Meta handshake)
- POST /webhooks/meta               — recebe eventos Meta e repassa ao sys
- Dockerfile + docker-compose.yml com Traefik (apimsgoficial.neuralsys.com.br)
- Swagger em /api-docs com autenticação por x-api-key

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 16:49:24 -03:00