sync: 0.7.2 from main (6164dced8d3ab8f9bcce9bf333fb4e8663760ff1)

This commit is contained in:
github-actions[bot] committed 2026-07-03 01:55:33 +00:00
1 parent 0f9ef308d2
commit 9337afc47e
74 files changed
+11173 -4687

No files matched your search

+47 -42
View File
@@ -9,8 +9,8 @@ import (
"net/http"
"os"
"os/signal"
"strings"
"path/filepath"
"strings"
"syscall"
"time"
@@ -21,47 +21,48 @@ import (
"gorm.io/gorm"
_ "modernc.org/sqlite"
call_handler "github.com/EvolutionAPI/evolution-go/pkg/call/handler"
call_service "github.com/EvolutionAPI/evolution-go/pkg/call/service"
chat_handler "github.com/EvolutionAPI/evolution-go/pkg/chat/handler"
chat_service "github.com/EvolutionAPI/evolution-go/pkg/chat/service"
community_handler "github.com/EvolutionAPI/evolution-go/pkg/community/handler"
community_service "github.com/EvolutionAPI/evolution-go/pkg/community/service"
config "github.com/EvolutionAPI/evolution-go/pkg/config"
"github.com/EvolutionAPI/evolution-go/pkg/core"
producer_interfaces "github.com/EvolutionAPI/evolution-go/pkg/events/interfaces"
nats_producer "github.com/EvolutionAPI/evolution-go/pkg/events/nats"
rabbitmq_producer "github.com/EvolutionAPI/evolution-go/pkg/events/rabbitmq"
webhook_producer "github.com/EvolutionAPI/evolution-go/pkg/events/webhook"
websocket_producer "github.com/EvolutionAPI/evolution-go/pkg/events/websocket"
group_handler "github.com/EvolutionAPI/evolution-go/pkg/group/handler"
group_service "github.com/EvolutionAPI/evolution-go/pkg/group/service"
instance_handler "github.com/EvolutionAPI/evolution-go/pkg/instance/handler"
instance_model "github.com/EvolutionAPI/evolution-go/pkg/instance/model"
instance_repository "github.com/EvolutionAPI/evolution-go/pkg/instance/repository"
instance_service "github.com/EvolutionAPI/evolution-go/pkg/instance/service"
label_handler "github.com/EvolutionAPI/evolution-go/pkg/label/handler"
label_model "github.com/EvolutionAPI/evolution-go/pkg/label/model"
label_repository "github.com/EvolutionAPI/evolution-go/pkg/label/repository"
label_service "github.com/EvolutionAPI/evolution-go/pkg/label/service"
logger_wrapper "github.com/EvolutionAPI/evolution-go/pkg/logger"
message_handler "github.com/EvolutionAPI/evolution-go/pkg/message/handler"
message_model "github.com/EvolutionAPI/evolution-go/pkg/message/model"
message_repository "github.com/EvolutionAPI/evolution-go/pkg/message/repository"
message_service "github.com/EvolutionAPI/evolution-go/pkg/message/service"
auth_middleware "github.com/EvolutionAPI/evolution-go/pkg/middleware"
newsletter_handler "github.com/EvolutionAPI/evolution-go/pkg/newsletter/handler"
newsletter_service "github.com/EvolutionAPI/evolution-go/pkg/newsletter/service"
poll_handler "github.com/EvolutionAPI/evolution-go/pkg/poll/handler"
routes "github.com/EvolutionAPI/evolution-go/pkg/routes"
send_handler "github.com/EvolutionAPI/evolution-go/pkg/sendMessage/handler"
send_service "github.com/EvolutionAPI/evolution-go/pkg/sendMessage/service"
server_handler "github.com/EvolutionAPI/evolution-go/pkg/server/handler"
storage_interfaces "github.com/EvolutionAPI/evolution-go/pkg/storage/interfaces"
minio_storage "github.com/EvolutionAPI/evolution-go/pkg/storage/minio"
user_handler "github.com/EvolutionAPI/evolution-go/pkg/user/handler"
user_service "github.com/EvolutionAPI/evolution-go/pkg/user/service"
whatsmeow_service "github.com/EvolutionAPI/evolution-go/pkg/whatsmeow/service"
call_handler "github.com/evolution-foundation/evolution-go/pkg/call/handler"
call_service "github.com/evolution-foundation/evolution-go/pkg/call/service"
chat_handler "github.com/evolution-foundation/evolution-go/pkg/chat/handler"
chat_service "github.com/evolution-foundation/evolution-go/pkg/chat/service"
community_handler "github.com/evolution-foundation/evolution-go/pkg/community/handler"
community_service "github.com/evolution-foundation/evolution-go/pkg/community/service"
config "github.com/evolution-foundation/evolution-go/pkg/config"
"github.com/evolution-foundation/evolution-go/pkg/core"
producer_interfaces "github.com/evolution-foundation/evolution-go/pkg/events/interfaces"
nats_producer "github.com/evolution-foundation/evolution-go/pkg/events/nats"
rabbitmq_producer "github.com/evolution-foundation/evolution-go/pkg/events/rabbitmq"
webhook_producer "github.com/evolution-foundation/evolution-go/pkg/events/webhook"
websocket_producer "github.com/evolution-foundation/evolution-go/pkg/events/websocket"
group_handler "github.com/evolution-foundation/evolution-go/pkg/group/handler"
group_service "github.com/evolution-foundation/evolution-go/pkg/group/service"
instance_handler "github.com/evolution-foundation/evolution-go/pkg/instance/handler"
instance_model "github.com/evolution-foundation/evolution-go/pkg/instance/model"
instance_repository "github.com/evolution-foundation/evolution-go/pkg/instance/repository"
instance_service "github.com/evolution-foundation/evolution-go/pkg/instance/service"
label_handler "github.com/evolution-foundation/evolution-go/pkg/label/handler"
label_model "github.com/evolution-foundation/evolution-go/pkg/label/model"
label_repository "github.com/evolution-foundation/evolution-go/pkg/label/repository"
label_service "github.com/evolution-foundation/evolution-go/pkg/label/service"
logger_wrapper "github.com/evolution-foundation/evolution-go/pkg/logger"
message_handler "github.com/evolution-foundation/evolution-go/pkg/message/handler"
message_model "github.com/evolution-foundation/evolution-go/pkg/message/model"
message_repository "github.com/evolution-foundation/evolution-go/pkg/message/repository"
message_service "github.com/evolution-foundation/evolution-go/pkg/message/service"
auth_middleware "github.com/evolution-foundation/evolution-go/pkg/middleware"
newsletter_handler "github.com/evolution-foundation/evolution-go/pkg/newsletter/handler"
newsletter_service "github.com/evolution-foundation/evolution-go/pkg/newsletter/service"
passkey_handler "github.com/evolution-foundation/evolution-go/pkg/passkey/handler"
poll_handler "github.com/evolution-foundation/evolution-go/pkg/poll/handler"
routes "github.com/evolution-foundation/evolution-go/pkg/routes"
send_handler "github.com/evolution-foundation/evolution-go/pkg/sendMessage/handler"
send_service "github.com/evolution-foundation/evolution-go/pkg/sendMessage/service"
server_handler "github.com/evolution-foundation/evolution-go/pkg/server/handler"
storage_interfaces "github.com/evolution-foundation/evolution-go/pkg/storage/interfaces"
minio_storage "github.com/evolution-foundation/evolution-go/pkg/storage/minio"
user_handler "github.com/evolution-foundation/evolution-go/pkg/user/handler"
user_service "github.com/evolution-foundation/evolution-go/pkg/user/service"
whatsmeow_service "github.com/evolution-foundation/evolution-go/pkg/whatsmeow/service"
amqp "github.com/rabbitmq/amqp091-go"
)
@@ -220,6 +221,10 @@ func setupRouter(db *gorm.DB, authDB *sql.DB, sqliteDB *sql.DB, config *config.C
// License routes (always accessible, even without license)
core.LicenseRoutes(r, runtimeCtx)
// Passkey ceremony routes — PUBLIC (called by the browser extension from the
// web.whatsapp.com origin, gated only by an opaque ephemeral token).
passkey_handler.RegisterRoutes(r, whatsmeowService)
routes.NewRouter(
auth_middleware.NewMiddleware(config, instanceService),
instance_handler.NewInstanceHandler(instanceService, config),