feat: marca Uriel Jareth Consulting, API segura para agentes, aprobacion humana y webhooks HMAC

This commit is contained in:
urieljareth
2026-11-25 00:55:18 -06:00
parent 75180b0fe4
commit 0d4f19f35d
111 changed files with 7167 additions and 1272 deletions
+3 -3
View File
@@ -6,14 +6,14 @@ from asyncpg import Connection
from app.dependencies import get_db
from app.models.configuracion import ConfigUpdate, ConfigResponse, ALLOWED_CONFIG_KEYS
from app.models.common import ErrorResponse, OkResponse
from app.auth import require_auth
from app.auth import require_staff_human
router = APIRouter(prefix="/configuracion", tags=["Configuración"])
@router.get("", response_model=ConfigResponse)
async def get_configuracion(
_auth: dict = Depends(require_auth),
_auth: dict = Depends(require_staff_human),
db: Connection = Depends(get_db),
):
rows = await db.fetch("SELECT clave, valor FROM Configuracion")
@@ -24,7 +24,7 @@ async def get_configuracion(
@router.put("", response_model=OkResponse, responses={400: {"model": ErrorResponse}})
async def update_configuracion(
body: ConfigUpdate,
_auth: dict = Depends(require_auth),
_auth: dict = Depends(require_staff_human),
db: Connection = Depends(get_db),
):
allowed = body.get_allowed()