feat: servicios WhatsApp, Bitácora WebControl, SQLite v4, UI y store listing

This commit is contained in:
Pablinux
2026-11-22 17:40:46 -05:00
parent 7ffb8d3c52
commit 4aaae043fe
47 changed files with 2552 additions and 361 deletions
+15
View File
@@ -71,6 +71,21 @@ class ApiAuthService {
return apiKey != null && apiKey.isNotEmpty;
}
// Establece credenciales manuales para API_CENTINEL_SECURITY (útil en onboarding y pruebas)
Future<void> setCentinelCredentials({required String apiKey, required String tenant}) async {
final prefs = await SharedPreferences.getInstance();
await prefs.setString(_keyApiKey, apiKey);
await prefs.setString(_keyTenant, tenant);
}
// Precarga las credenciales oficiales de prueba confirmadas por Agente api-centinel-security
Future<void> usarCredencialesPruebaCentinel() async {
await setCentinelCredentials(
apiKey: 'admin-api-key-centinel-2026',
tenant: 'security_db',
);
}
// ── Headers para API_CENTINEL_SECURITY ─────────────────────────────────────
/// Devuelve los headers necesarios para llamar a api.telcotronics.com.
/// Retorna `null` si no hay credenciales guardadas.