From 8c111de6a9a4c2ce06fbb795b146dc0caea867dd Mon Sep 17 00:00:00 2001 From: Charles Yao Date: Wed, 26 Nov 2025 01:13:35 -0600 Subject: [PATCH 1/3] ECO-184: add new dsl field to tool node, ready for enduser auth --- api/core/workflow/nodes/tool/entities.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/core/workflow/nodes/tool/entities.py b/api/core/workflow/nodes/tool/entities.py index c1cfbb1edc..bf7b56e147 100644 --- a/api/core/workflow/nodes/tool/entities.py +++ b/api/core/workflow/nodes/tool/entities.py @@ -16,6 +16,7 @@ class ToolEntity(BaseModel): tool_configurations: dict[str, Any] credential_id: str | None = None plugin_unique_identifier: str | None = None # redundancy + auth_type: Literal["workspace", "end_user"] = "workspace" # OAuth authentication level @field_validator("tool_configurations", mode="before") @classmethod From ac8136cca40aca7075e32645b0513afc293aff89 Mon Sep 17 00:00:00 2001 From: Charles Yao Date: Wed, 26 Nov 2025 01:13:57 -0600 Subject: [PATCH 2/3] ECO-184: add new dsl field to tool node, ready for enduser auth --- api/models/tools.py | 1 - 1 file changed, 1 deletion(-) diff --git a/api/models/tools.py b/api/models/tools.py index 54c56d6a20..d1fea1e2b5 100644 --- a/api/models/tools.py +++ b/api/models/tools.py @@ -13,7 +13,6 @@ from core.plugin.entities.plugin_daemon import CredentialType from core.tools.entities.common_entities import I18nObject from core.tools.entities.tool_bundle import ApiToolBundle from core.tools.entities.tool_entities import ApiProviderSchemaType, WorkflowToolParameterConfiguration -from libs.uuid_utils import uuidv7 from .base import TypeBase from .engine import db From 31109735a383d93783e9dfed3b6496594c81c675 Mon Sep 17 00:00:00 2001 From: Charles Yao Date: Wed, 26 Nov 2025 01:31:10 -0600 Subject: [PATCH 3/3] fix: add dependency --- api/models/tools.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/models/tools.py b/api/models/tools.py index 894dab02a6..0ef261e90b 100644 --- a/api/models/tools.py +++ b/api/models/tools.py @@ -13,6 +13,7 @@ from core.plugin.entities.plugin_daemon import CredentialType from core.tools.entities.common_entities import I18nObject from core.tools.entities.tool_bundle import ApiToolBundle from core.tools.entities.tool_entities import ApiProviderSchemaType, WorkflowToolParameterConfiguration +from libs.uuid_utils import uuidv7 from .base import TypeBase from .engine import db