$dto->name, 'domain' => $dto->domain, 'webhook' => $dto->webhook_url, 'auth_type' => $dto->auth_type, 'credentials' => $dto->credentials ?? [], 'secret' => encrypt(uuid_create()), ]); } }