From ec959ab8513dd3a9facb0f347f603b8e72602cbf Mon Sep 17 00:00:00 2001 From: Fabiano Eger Date: Thu, 23 Jul 2026 22:23:22 -0300 Subject: [PATCH] fix(sql): restrict list fields typing to the projection allowlist (cherry picked from commit 776f367ef993d1740d3987badfc3aacda7d16b2a) --- src/tagoio_sdk/modules/Resources/SQL_Types.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/tagoio_sdk/modules/Resources/SQL_Types.py b/src/tagoio_sdk/modules/Resources/SQL_Types.py index e6dfb93..ad54014 100644 --- a/src/tagoio_sdk/modules/Resources/SQL_Types.py +++ b/src/tagoio_sdk/modules/Resources/SQL_Types.py @@ -66,20 +66,14 @@ class SQLFilter(TypedDict, total=False): class SQLQuery(Query): + # ? List projection allowlist: other row fields come from info() only. fields: Optional[ List[ Literal[ "id", "name", - "description", - "query", - "params", - "cache_enabled", - "cache_ttl_seconds", - "rate_limit_rpm", - "active", "tags", - "version", + "active", "created_at", "updated_at", ]