From 9576fa6d6443a6dcf6447eb5755d526c0cdb6a9a Mon Sep 17 00:00:00 2001 From: Shihan Pan Date: Mon, 5 Jan 2026 11:11:25 -0800 Subject: [PATCH] Add support for agentic asset types Added 5 new agentic asset types to workato-api-spec.yaml: - agentic_genie - agentic_skill - data_pipeline - decision_engine_model - agentic_knowledge_base Updated Asset and AssetReference Pydantic models to accept the new types. Fixes DEVP-625 --- .../client/workato_api/models/asset.py | 4 ++-- .../client/workato_api/models/asset_reference.py | 4 ++-- workato-api-spec.yaml | 10 ++++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/workato_platform_cli/client/workato_api/models/asset.py b/src/workato_platform_cli/client/workato_api/models/asset.py index 55b6b34..16f05b5 100644 --- a/src/workato_platform_cli/client/workato_api/models/asset.py +++ b/src/workato_platform_cli/client/workato_api/models/asset.py @@ -42,8 +42,8 @@ class Asset(BaseModel): @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" - if value not in set(['recipe', 'connection', 'lookup_table', 'workato_db_table', 'account_property', 'project_property', 'workato_schema', 'workato_template', 'lcap_app', 'lcap_page', 'custom_adapter', 'topic', 'api_group', 'api_endpoint']): - raise ValueError("must be one of enum values ('recipe', 'connection', 'lookup_table', 'workato_db_table', 'account_property', 'project_property', 'workato_schema', 'workato_template', 'lcap_app', 'lcap_page', 'custom_adapter', 'topic', 'api_group', 'api_endpoint')") + if value not in set(['recipe', 'connection', 'lookup_table', 'workato_db_table', 'account_property', 'project_property', 'workato_schema', 'workato_template', 'lcap_app', 'lcap_page', 'custom_adapter', 'topic', 'api_group', 'api_endpoint', 'agentic_genie', 'agentic_skill', 'data_pipeline', 'decision_engine_model', 'agentic_knowledge_base']): + raise ValueError("must be one of enum values ('recipe', 'connection', 'lookup_table', 'workato_db_table', 'account_property', 'project_property', 'workato_schema', 'workato_template', 'lcap_app', 'lcap_page', 'custom_adapter', 'topic', 'api_group', 'api_endpoint', 'agentic_genie', 'agentic_skill', 'data_pipeline', 'decision_engine_model', 'agentic_knowledge_base')") return value @field_validator('status') diff --git a/src/workato_platform_cli/client/workato_api/models/asset_reference.py b/src/workato_platform_cli/client/workato_api/models/asset_reference.py index e32f57f..dcceea4 100644 --- a/src/workato_platform_cli/client/workato_api/models/asset_reference.py +++ b/src/workato_platform_cli/client/workato_api/models/asset_reference.py @@ -40,8 +40,8 @@ class AssetReference(BaseModel): @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" - if value not in set(['recipe', 'connection', 'lookup_table', 'workato_db_table', 'account_property', 'project_property', 'workato_schema', 'workato_template', 'lcap_app', 'lcap_page', 'custom_adapter', 'topic', 'api_group', 'api_endpoint']): - raise ValueError("must be one of enum values ('recipe', 'connection', 'lookup_table', 'workato_db_table', 'account_property', 'project_property', 'workato_schema', 'workato_template', 'lcap_app', 'lcap_page', 'custom_adapter', 'topic', 'api_group', 'api_endpoint')") + if value not in set(['recipe', 'connection', 'lookup_table', 'workato_db_table', 'account_property', 'project_property', 'workato_schema', 'workato_template', 'lcap_app', 'lcap_page', 'custom_adapter', 'topic', 'api_group', 'api_endpoint', 'agentic_genie', 'agentic_skill', 'data_pipeline', 'decision_engine_model', 'agentic_knowledge_base']): + raise ValueError("must be one of enum values ('recipe', 'connection', 'lookup_table', 'workato_db_table', 'account_property', 'project_property', 'workato_schema', 'workato_template', 'lcap_app', 'lcap_page', 'custom_adapter', 'topic', 'api_group', 'api_endpoint', 'agentic_genie', 'agentic_skill', 'data_pipeline', 'decision_engine_model', 'agentic_knowledge_base')") return value model_config = ConfigDict( diff --git a/workato-api-spec.yaml b/workato-api-spec.yaml index f94b3f3..28360cc 100644 --- a/workato-api-spec.yaml +++ b/workato-api-spec.yaml @@ -1698,6 +1698,11 @@ components: topic, api_group, api_endpoint, + agentic_genie, + agentic_skill, + data_pipeline, + decision_engine_model, + agentic_knowledge_base, ] example: "recipe" version: @@ -1804,6 +1809,11 @@ components: topic, api_group, api_endpoint, + agentic_genie, + agentic_skill, + data_pipeline, + decision_engine_model, + agentic_knowledge_base, ] checked: type: boolean