From 2bee7a57eba8f358a502d69e08c7b54f77119362 Mon Sep 17 00:00:00 2001 From: "roeai-release-bot[bot]" <238390229+roeai-release-bot[bot]@users.noreply.github.com> Date: Sat, 14 Nov 2026 10:08:52 +0000 Subject: [PATCH] Release v1.1.24 --- .roe-main-release-version | 2 +- README.md | 2 +- openapi/openapi.yml | 120 ++++++++++++++++-- pyproject.toml | 2 +- .../api/agents/agents_run_async_many.py | 20 +-- src/roe/_generated/models/__init__.py | 4 + .../models/agent_run_async_many_request.py | 12 ++ .../_generated/models/auth_methods_enum.py | 9 ++ src/roe/_generated/models/connection.py | 81 ++++++++++++ src/roe/_generated/models/connection_list.py | 89 +++++++++++++ .../_generated/models/connector_metadata.py | 31 +++++ src/roe/_generated/models/health_enum.py | 12 ++ .../_generated/models/workflow_definition.py | 29 +++-- .../models/workflow_definition_request.py | 29 +++-- uv.lock | 2 +- 15 files changed, 406 insertions(+), 38 deletions(-) create mode 100644 src/roe/_generated/models/auth_methods_enum.py create mode 100644 src/roe/_generated/models/health_enum.py diff --git a/.roe-main-release-version b/.roe-main-release-version index b598ce3..0156c0d 100644 --- a/.roe-main-release-version +++ b/.roe-main-release-version @@ -1 +1 @@ -1-1-5 +1-1-6 diff --git a/README.md b/README.md index 5db4bfd..af8a792 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A Python SDK for the [Roe](https://www.roe-ai.com/) API. -> **v1.1.23** - SDK operation coverage is synchronized across Python, +> **v1.1.24** - SDK operation coverage is synchronized across Python, > TypeScript, and Go. See `SDK_EXAMPLES.md` for copy-ready examples and > use cases. diff --git a/openapi/openapi.yml b/openapi/openapi.yml index 539cf44..7fbd199 100644 --- a/openapi/openapi.yml +++ b/openapi/openapi.yml @@ -2008,8 +2008,9 @@ paths: description: 'Execute an agent with multiple inputs asynchronously and return job IDs for tracking results. Job `metadata` is not supported on this endpoint: any `metadata` key — top-level or inside an `inputs` item — is silently ignored - and the jobs are created with empty metadata. Use the single-run endpoints - to attach metadata to a job.' + and the jobs are created without user metadata. Use the single-run endpoints + to attach metadata to a job. Set `max_concurrent_jobs` to cap how many of + the jobs run at once.' summary: Run agent asynchronously with multiple inputs parameters: - in: path @@ -5354,6 +5355,13 @@ components: items: $ref: '#/components/schemas/AgentExecutionRequest' description: List of agent execution requests to process + max_concurrent_jobs: + type: integer + minimum: 1 + description: Optional cap on how many of these jobs run at once. The rest + wait as pending and start as running jobs finish. Unset = no cap beyond + the organization's concurrent job limit. An input that matches a job already + in progress reuses that job, which keeps the cap it was started with. required: - inputs AgentStep: @@ -5594,6 +5602,16 @@ components: - id - steps type: object + AuthMethodsEnum: + enum: + - browser_sign_in + - provider_consent + - manual + type: string + description: |- + * `browser_sign_in` - browser_sign_in + * `provider_consent` - provider_consent + * `manual` - manual BaseAgent: type: object description: Serializer for BaseAgent (agent config) @@ -5826,6 +5844,25 @@ components: readOnly: true status: $ref: '#/components/schemas/StatusEnum' + health: + allOf: + - $ref: '#/components/schemas/HealthEnum' + readOnly: true + last_verified_at: + type: + - string + - 'null' + format: date-time + readOnly: true + credentials_expire_at: + type: + - string + - 'null' + format: date-time + readOnly: true + account_label: + type: string + readOnly: true lifecycle: $ref: '#/components/schemas/LifecycleEnum' created_at: @@ -5837,15 +5874,19 @@ components: format: date-time readOnly: true required: + - account_label - auth_config - browser_session_expires_at - connector_display_name - connector_type - created_at - credentials_configured + - credentials_expire_at - dynamic_input_test_disabled_reason - dynamic_inputs + - health - id + - last_verified_at - name - organization - updated_at @@ -5935,8 +5976,31 @@ components: readOnly: true status: $ref: '#/components/schemas/StatusEnum' + health: + allOf: + - $ref: '#/components/schemas/HealthEnum' + readOnly: true + last_verified_at: + type: + - string + - 'null' + format: date-time + readOnly: true + credentials_expire_at: + type: + - string + - 'null' + format: date-time + readOnly: true + account_label: + type: string + readOnly: true lifecycle: $ref: '#/components/schemas/LifecycleEnum' + setup_count: + type: integer + readOnly: true + description: How many setups agents can attach from this connection. created_at: type: string format: date-time @@ -5946,15 +6010,20 @@ components: format: date-time readOnly: true required: + - account_label - connector_display_name - connector_type - created_at - credentials_configured + - credentials_expire_at - dynamic_input_test_disabled_reason - dynamic_inputs + - health - id + - last_verified_at - name - organization + - setup_count - updated_at - user ConnectionStep: @@ -6065,7 +6134,17 @@ components: oneOf: - $ref: '#/components/schemas/ConnectorBrowserSession' - type: 'null' + auth_methods: + type: array + items: + $ref: '#/components/schemas/AuthMethodsEnum' + description: How people give this connector credentials, default first. + test_proves_credentials: + type: boolean + description: Whether a passing connection test proves the credentials work, + rather than only that the service answered. required: + - auth_methods - auth_schema - browser_session - category @@ -6078,6 +6157,7 @@ components: - icon - id - supports_delivery + - test_proves_credentials ConnectorTypeEnum: enum: - snowflake @@ -6601,6 +6681,22 @@ components: - run_id - sse_endpoint - workflow_id + HealthEnum: + enum: + - connecting + - expired + - needs_attention + - failed + - connected + - unknown + type: string + description: |- + * `connecting` - Connecting + * `expired` - Expired + * `needs_attention` - Needs attention + * `failed` - Failed + * `connected` - Connected + * `unknown` - Unknown IfBlock: additionalProperties: false properties: @@ -8431,12 +8527,14 @@ components: minItems: 1 type: array result: - maxLength: 200 - pattern: ^[A-Za-z_]\w*$ - type: string + anyOf: + - maxLength: 200 + pattern: ^[A-Za-z_]\w*$ + type: string + - type: 'null' + default: null required: - steps - - result type: object WorkflowDefinitionRequest: additionalProperties: false @@ -8474,12 +8572,14 @@ components: minItems: 1 type: array result: - maxLength: 200 - pattern: ^[A-Za-z_]\w*$ - type: string + anyOf: + - maxLength: 200 + pattern: ^[A-Za-z_]\w*$ + type: string + - type: 'null' + default: null required: - steps - - result type: object WorkflowDetail: type: object diff --git a/pyproject.toml b/pyproject.toml index 52bdfa1..7c31898 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "roe-ai" -version = "1.1.23" +version = "1.1.24" authors = [ { name = "Roe", email = "founders@roe-ai.com" }, ] diff --git a/src/roe/_generated/api/agents/agents_run_async_many.py b/src/roe/_generated/api/agents/agents_run_async_many.py index 1936818..bdd05f5 100644 --- a/src/roe/_generated/api/agents/agents_run_async_many.py +++ b/src/roe/_generated/api/agents/agents_run_async_many.py @@ -150,8 +150,9 @@ def sync_detailed( Execute an agent with multiple inputs asynchronously and return job IDs for tracking results. Job `metadata` is not supported on this endpoint: any `metadata` key — top-level or inside an `inputs` - item — is silently ignored and the jobs are created with empty metadata. Use the single-run - endpoints to attach metadata to a job. + item — is silently ignored and the jobs are created without user metadata. Use the single-run + endpoints to attach metadata to a job. Set `max_concurrent_jobs` to cap how many of the jobs run at + once. Args: agent_id (UUID): @@ -192,8 +193,9 @@ def sync( Execute an agent with multiple inputs asynchronously and return job IDs for tracking results. Job `metadata` is not supported on this endpoint: any `metadata` key — top-level or inside an `inputs` - item — is silently ignored and the jobs are created with empty metadata. Use the single-run - endpoints to attach metadata to a job. + item — is silently ignored and the jobs are created without user metadata. Use the single-run + endpoints to attach metadata to a job. Set `max_concurrent_jobs` to cap how many of the jobs run at + once. Args: agent_id (UUID): @@ -229,8 +231,9 @@ async def asyncio_detailed( Execute an agent with multiple inputs asynchronously and return job IDs for tracking results. Job `metadata` is not supported on this endpoint: any `metadata` key — top-level or inside an `inputs` - item — is silently ignored and the jobs are created with empty metadata. Use the single-run - endpoints to attach metadata to a job. + item — is silently ignored and the jobs are created without user metadata. Use the single-run + endpoints to attach metadata to a job. Set `max_concurrent_jobs` to cap how many of the jobs run at + once. Args: agent_id (UUID): @@ -271,8 +274,9 @@ async def asyncio( Execute an agent with multiple inputs asynchronously and return job IDs for tracking results. Job `metadata` is not supported on this endpoint: any `metadata` key — top-level or inside an `inputs` - item — is silently ignored and the jobs are created with empty metadata. Use the single-run - endpoints to attach metadata to a job. + item — is silently ignored and the jobs are created without user metadata. Use the single-run + endpoints to attach metadata to a job. Set `max_concurrent_jobs` to cap how many of the jobs run at + once. Args: agent_id (UUID): diff --git a/src/roe/_generated/models/__init__.py b/src/roe/_generated/models/__init__.py index d75218a..8562681 100644 --- a/src/roe/_generated/models/__init__.py +++ b/src/roe/_generated/models/__init__.py @@ -49,6 +49,7 @@ from .agents_versions_create_response_400 import AgentsVersionsCreateResponse400 from .api_error_response import ApiErrorResponse from .approval_block import ApprovalBlock +from .auth_methods_enum import AuthMethodsEnum from .base_agent import BaseAgent from .base_agent_create_request import BaseAgentCreateRequest from .base_agent_update_request import BaseAgentUpdateRequest @@ -107,6 +108,7 @@ from .gate_kind import GateKind from .generate_skill_set_version_request import GenerateSkillSetVersionRequest from .generate_skill_set_version_response import GenerateSkillSetVersionResponse +from .health_enum import HealthEnum from .if_block import IfBlock from .input_field import InputField from .job_input import JobInput @@ -288,6 +290,7 @@ "AgentVersionUpdateRequest", "ApiErrorResponse", "ApprovalBlock", + "AuthMethodsEnum", "BaseAgent", "BaseAgentCreateRequest", "BaseAgentUpdateRequest", @@ -346,6 +349,7 @@ "GateKind", "GenerateSkillSetVersionRequest", "GenerateSkillSetVersionResponse", + "HealthEnum", "IfBlock", "InputField", "JobInput", diff --git a/src/roe/_generated/models/agent_run_async_many_request.py b/src/roe/_generated/models/agent_run_async_many_request.py index 4594435..f5d106b 100644 --- a/src/roe/_generated/models/agent_run_async_many_request.py +++ b/src/roe/_generated/models/agent_run_async_many_request.py @@ -8,6 +8,7 @@ from ..types import UNSET, Unset +from ..types import UNSET, Unset from typing import cast if TYPE_CHECKING: @@ -27,9 +28,13 @@ class AgentRunAsyncManyRequest: Attributes: inputs (list[AgentExecutionRequest]): List of agent execution requests to process + max_concurrent_jobs (int | Unset): Optional cap on how many of these jobs run at once. The rest wait as pending + and start as running jobs finish. Unset = no cap beyond the organization's concurrent job limit. An input that + matches a job already in progress reuses that job, which keeps the cap it was started with. """ inputs: list[AgentExecutionRequest] + max_concurrent_jobs: int | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) @@ -45,12 +50,16 @@ def to_dict(self) -> dict[str, Any]: + max_concurrent_jobs = self.max_concurrent_jobs + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) field_dict.update({ "inputs": inputs, }) + if max_concurrent_jobs is not UNSET: + field_dict["max_concurrent_jobs"] = max_concurrent_jobs return field_dict @@ -70,8 +79,11 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: inputs.append(inputs_item) + max_concurrent_jobs = d.pop("max_concurrent_jobs", UNSET) + agent_run_async_many_request = cls( inputs=inputs, + max_concurrent_jobs=max_concurrent_jobs, ) diff --git a/src/roe/_generated/models/auth_methods_enum.py b/src/roe/_generated/models/auth_methods_enum.py new file mode 100644 index 0000000..5794962 --- /dev/null +++ b/src/roe/_generated/models/auth_methods_enum.py @@ -0,0 +1,9 @@ +from enum import Enum + +class AuthMethodsEnum(str, Enum): + BROWSER_SIGN_IN = "browser_sign_in" + MANUAL = "manual" + PROVIDER_CONSENT = "provider_consent" + + def __str__(self) -> str: + return str(self.value) diff --git a/src/roe/_generated/models/connection.py b/src/roe/_generated/models/connection.py index 9578955..ef428f9 100644 --- a/src/roe/_generated/models/connection.py +++ b/src/roe/_generated/models/connection.py @@ -8,6 +8,7 @@ from ..types import UNSET, Unset +from ..models.health_enum import HealthEnum from ..models.lifecycle_enum import LifecycleEnum from ..models.status_enum import StatusEnum from ..types import UNSET, Unset @@ -47,6 +48,15 @@ class Connection: dynamic_input_test_disabled_reason (None | str): auth_config (ConnectionAuthConfig): browser_session_expires_at (datetime.datetime | None): + health (HealthEnum): * `connecting` - Connecting + * `expired` - Expired + * `needs_attention` - Needs attention + * `failed` - Failed + * `connected` - Connected + * `unknown` - Unknown + last_verified_at (datetime.datetime | None): + credentials_expire_at (datetime.datetime | None): + account_label (str): created_at (datetime.datetime): updated_at (datetime.datetime): description (str | Unset): @@ -69,6 +79,10 @@ class Connection: dynamic_input_test_disabled_reason: None | str auth_config: ConnectionAuthConfig browser_session_expires_at: datetime.datetime | None + health: HealthEnum + last_verified_at: datetime.datetime | None + credentials_expire_at: datetime.datetime | None + account_label: str created_at: datetime.datetime updated_at: datetime.datetime description: str | Unset = UNSET @@ -112,6 +126,22 @@ def to_dict(self) -> dict[str, Any]: else: browser_session_expires_at = self.browser_session_expires_at + health = self.health.value + + last_verified_at: None | str + if isinstance(self.last_verified_at, datetime.datetime): + last_verified_at = self.last_verified_at.isoformat() + else: + last_verified_at = self.last_verified_at + + credentials_expire_at: None | str + if isinstance(self.credentials_expire_at, datetime.datetime): + credentials_expire_at = self.credentials_expire_at.isoformat() + else: + credentials_expire_at = self.credentials_expire_at + + account_label = self.account_label + created_at = self.created_at.isoformat() updated_at = self.updated_at.isoformat() @@ -145,6 +175,10 @@ def to_dict(self) -> dict[str, Any]: "dynamic_input_test_disabled_reason": dynamic_input_test_disabled_reason, "auth_config": auth_config, "browser_session_expires_at": browser_session_expires_at, + "health": health, + "last_verified_at": last_verified_at, + "credentials_expire_at": credentials_expire_at, + "account_label": account_label, "created_at": created_at, "updated_at": updated_at, }) @@ -228,6 +262,49 @@ def _parse_browser_session_expires_at(data: object) -> datetime.datetime | None: browser_session_expires_at = _parse_browser_session_expires_at(d.pop("browser_session_expires_at")) + health = HealthEnum(d.pop("health")) + + + + + def _parse_last_verified_at(data: object) -> datetime.datetime | None: + if data is None: + return data + try: + if not isinstance(data, str): + raise TypeError() + last_verified_at_type_0 = isoparse(data) + + + + return last_verified_at_type_0 + except (TypeError, ValueError, AttributeError, KeyError): + pass + return cast(datetime.datetime | None, data) + + last_verified_at = _parse_last_verified_at(d.pop("last_verified_at")) + + + def _parse_credentials_expire_at(data: object) -> datetime.datetime | None: + if data is None: + return data + try: + if not isinstance(data, str): + raise TypeError() + credentials_expire_at_type_0 = isoparse(data) + + + + return credentials_expire_at_type_0 + except (TypeError, ValueError, AttributeError, KeyError): + pass + return cast(datetime.datetime | None, data) + + credentials_expire_at = _parse_credentials_expire_at(d.pop("credentials_expire_at")) + + + account_label = d.pop("account_label") + created_at = isoparse(d.pop("created_at")) @@ -274,6 +351,10 @@ def _parse_browser_session_expires_at(data: object) -> datetime.datetime | None: dynamic_input_test_disabled_reason=dynamic_input_test_disabled_reason, auth_config=auth_config, browser_session_expires_at=browser_session_expires_at, + health=health, + last_verified_at=last_verified_at, + credentials_expire_at=credentials_expire_at, + account_label=account_label, created_at=created_at, updated_at=updated_at, description=description, diff --git a/src/roe/_generated/models/connection_list.py b/src/roe/_generated/models/connection_list.py index d045a2f..b0d0224 100644 --- a/src/roe/_generated/models/connection_list.py +++ b/src/roe/_generated/models/connection_list.py @@ -8,6 +8,7 @@ from ..types import UNSET, Unset +from ..models.health_enum import HealthEnum from ..models.lifecycle_enum import LifecycleEnum from ..models.status_enum import StatusEnum from ..types import UNSET, Unset @@ -42,6 +43,16 @@ class ConnectionList: credentials_configured (bool): dynamic_inputs (ConnectionListDynamicInputs): dynamic_input_test_disabled_reason (None | str): + health (HealthEnum): * `connecting` - Connecting + * `expired` - Expired + * `needs_attention` - Needs attention + * `failed` - Failed + * `connected` - Connected + * `unknown` - Unknown + last_verified_at (datetime.datetime | None): + credentials_expire_at (datetime.datetime | None): + account_label (str): + setup_count (int): How many setups agents can attach from this connection. created_at (datetime.datetime): updated_at (datetime.datetime): description (str | Unset): @@ -62,6 +73,11 @@ class ConnectionList: credentials_configured: bool dynamic_inputs: ConnectionListDynamicInputs dynamic_input_test_disabled_reason: None | str + health: HealthEnum + last_verified_at: datetime.datetime | None + credentials_expire_at: datetime.datetime | None + account_label: str + setup_count: int created_at: datetime.datetime updated_at: datetime.datetime description: str | Unset = UNSET @@ -96,6 +112,24 @@ def to_dict(self) -> dict[str, Any]: dynamic_input_test_disabled_reason: None | str dynamic_input_test_disabled_reason = self.dynamic_input_test_disabled_reason + health = self.health.value + + last_verified_at: None | str + if isinstance(self.last_verified_at, datetime.datetime): + last_verified_at = self.last_verified_at.isoformat() + else: + last_verified_at = self.last_verified_at + + credentials_expire_at: None | str + if isinstance(self.credentials_expire_at, datetime.datetime): + credentials_expire_at = self.credentials_expire_at.isoformat() + else: + credentials_expire_at = self.credentials_expire_at + + account_label = self.account_label + + setup_count = self.setup_count + created_at = self.created_at.isoformat() updated_at = self.updated_at.isoformat() @@ -127,6 +161,11 @@ def to_dict(self) -> dict[str, Any]: "credentials_configured": credentials_configured, "dynamic_inputs": dynamic_inputs, "dynamic_input_test_disabled_reason": dynamic_input_test_disabled_reason, + "health": health, + "last_verified_at": last_verified_at, + "credentials_expire_at": credentials_expire_at, + "account_label": account_label, + "setup_count": setup_count, "created_at": created_at, "updated_at": updated_at, }) @@ -186,6 +225,51 @@ def _parse_dynamic_input_test_disabled_reason(data: object) -> None | str: dynamic_input_test_disabled_reason = _parse_dynamic_input_test_disabled_reason(d.pop("dynamic_input_test_disabled_reason")) + health = HealthEnum(d.pop("health")) + + + + + def _parse_last_verified_at(data: object) -> datetime.datetime | None: + if data is None: + return data + try: + if not isinstance(data, str): + raise TypeError() + last_verified_at_type_0 = isoparse(data) + + + + return last_verified_at_type_0 + except (TypeError, ValueError, AttributeError, KeyError): + pass + return cast(datetime.datetime | None, data) + + last_verified_at = _parse_last_verified_at(d.pop("last_verified_at")) + + + def _parse_credentials_expire_at(data: object) -> datetime.datetime | None: + if data is None: + return data + try: + if not isinstance(data, str): + raise TypeError() + credentials_expire_at_type_0 = isoparse(data) + + + + return credentials_expire_at_type_0 + except (TypeError, ValueError, AttributeError, KeyError): + pass + return cast(datetime.datetime | None, data) + + credentials_expire_at = _parse_credentials_expire_at(d.pop("credentials_expire_at")) + + + account_label = d.pop("account_label") + + setup_count = d.pop("setup_count") + created_at = isoparse(d.pop("created_at")) @@ -230,6 +314,11 @@ def _parse_dynamic_input_test_disabled_reason(data: object) -> None | str: credentials_configured=credentials_configured, dynamic_inputs=dynamic_inputs, dynamic_input_test_disabled_reason=dynamic_input_test_disabled_reason, + health=health, + last_verified_at=last_verified_at, + credentials_expire_at=credentials_expire_at, + account_label=account_label, + setup_count=setup_count, created_at=created_at, updated_at=updated_at, description=description, diff --git a/src/roe/_generated/models/connector_metadata.py b/src/roe/_generated/models/connector_metadata.py index a43acdc..ac4fd97 100644 --- a/src/roe/_generated/models/connector_metadata.py +++ b/src/roe/_generated/models/connector_metadata.py @@ -8,6 +8,7 @@ from ..types import UNSET, Unset +from ..models.auth_methods_enum import AuthMethodsEnum from typing import cast if TYPE_CHECKING: @@ -39,6 +40,9 @@ class ConnectorMetadata: dynamic_input_fields (ConnectorMetadataDynamicInputFields): dynamic_input_test_fields (list[str]): browser_session (ConnectorBrowserSession | None): + auth_methods (list[AuthMethodsEnum]): How people give this connector credentials, default first. + test_proves_credentials (bool): Whether a passing connection test proves the credentials work, rather than only + that the service answered. """ id: str @@ -53,6 +57,8 @@ class ConnectorMetadata: dynamic_input_fields: ConnectorMetadataDynamicInputFields dynamic_input_test_fields: list[str] browser_session: ConnectorBrowserSession | None + auth_methods: list[AuthMethodsEnum] + test_proves_credentials: bool additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) @@ -93,6 +99,15 @@ def to_dict(self) -> dict[str, Any]: else: browser_session = self.browser_session + auth_methods = [] + for auth_methods_item_data in self.auth_methods: + auth_methods_item = auth_methods_item_data.value + auth_methods.append(auth_methods_item) + + + + test_proves_credentials = self.test_proves_credentials + field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) @@ -109,6 +124,8 @@ def to_dict(self) -> dict[str, Any]: "dynamic_input_fields": dynamic_input_fields, "dynamic_input_test_fields": dynamic_input_test_fields, "browser_session": browser_session, + "auth_methods": auth_methods, + "test_proves_credentials": test_proves_credentials, }) return field_dict @@ -170,6 +187,18 @@ def _parse_browser_session(data: object) -> ConnectorBrowserSession | None: browser_session = _parse_browser_session(d.pop("browser_session")) + auth_methods = [] + _auth_methods = d.pop("auth_methods") + for auth_methods_item_data in (_auth_methods): + auth_methods_item = AuthMethodsEnum(auth_methods_item_data) + + + + auth_methods.append(auth_methods_item) + + + test_proves_credentials = d.pop("test_proves_credentials") + connector_metadata = cls( id=id, display_name=display_name, @@ -183,6 +212,8 @@ def _parse_browser_session(data: object) -> ConnectorBrowserSession | None: dynamic_input_fields=dynamic_input_fields, dynamic_input_test_fields=dynamic_input_test_fields, browser_session=browser_session, + auth_methods=auth_methods, + test_proves_credentials=test_proves_credentials, ) diff --git a/src/roe/_generated/models/health_enum.py b/src/roe/_generated/models/health_enum.py new file mode 100644 index 0000000..bdfd9e1 --- /dev/null +++ b/src/roe/_generated/models/health_enum.py @@ -0,0 +1,12 @@ +from enum import Enum + +class HealthEnum(str, Enum): + CONNECTED = "connected" + CONNECTING = "connecting" + EXPIRED = "expired" + FAILED = "failed" + NEEDS_ATTENTION = "needs_attention" + UNKNOWN = "unknown" + + def __str__(self) -> str: + return str(self.value) diff --git a/src/roe/_generated/models/workflow_definition.py b/src/roe/_generated/models/workflow_definition.py index 2e16651..44424a3 100644 --- a/src/roe/_generated/models/workflow_definition.py +++ b/src/roe/_generated/models/workflow_definition.py @@ -37,15 +37,15 @@ class WorkflowDefinition: Attributes: steps (list[AgentStep | ApprovalBlock | ConnectionStep | EditFieldsStep | ForEachBlock | IfBlock | MergeStep | ParallelBlock]): - result (str): format_version (Literal[2] | Unset): Default: 2. inputs (list[InputField] | Unset): + result (None | str | Unset): """ steps: list[AgentStep | ApprovalBlock | ConnectionStep | EditFieldsStep | ForEachBlock | IfBlock | MergeStep | ParallelBlock] - result: str format_version: Literal[2] | Unset = 2 inputs: list[InputField] | Unset = UNSET + result: None | str | Unset = UNSET @@ -85,8 +85,6 @@ def to_dict(self) -> dict[str, Any]: - result = self.result - format_version = self.format_version inputs: list[dict[str, Any]] | Unset = UNSET @@ -98,17 +96,24 @@ def to_dict(self) -> dict[str, Any]: + result: None | str | Unset + if isinstance(self.result, Unset): + result = UNSET + else: + result = self.result + field_dict: dict[str, Any] = {} field_dict.update({ "steps": steps, - "result": result, }) if format_version is not UNSET: field_dict["format_version"] = format_version if inputs is not UNSET: field_dict["inputs"] = inputs + if result is not UNSET: + field_dict["result"] = result return field_dict @@ -213,8 +218,6 @@ def _parse_steps_item(data: object) -> AgentStep | ApprovalBlock | ConnectionSte steps.append(steps_item) - result = d.pop("result") - format_version = cast(Literal[2] | Unset , d.pop("format_version", UNSET)) if format_version != 2and not isinstance(format_version, Unset): raise ValueError(f"format_version must match const 2, got '{format_version}'") @@ -231,11 +234,21 @@ def _parse_steps_item(data: object) -> AgentStep | ApprovalBlock | ConnectionSte inputs.append(inputs_item) + def _parse_result(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + result = _parse_result(d.pop("result", UNSET)) + + workflow_definition = cls( steps=steps, - result=result, format_version=format_version, inputs=inputs, + result=result, ) return workflow_definition diff --git a/src/roe/_generated/models/workflow_definition_request.py b/src/roe/_generated/models/workflow_definition_request.py index 0e7610e..ca1bc8c 100644 --- a/src/roe/_generated/models/workflow_definition_request.py +++ b/src/roe/_generated/models/workflow_definition_request.py @@ -37,15 +37,15 @@ class WorkflowDefinitionRequest: Attributes: steps (list[AgentStep | ApprovalBlock | ConnectionStep | EditFieldsStep | ForEachBlock | IfBlock | MergeStep | ParallelBlock]): - result (str): format_version (Literal[2] | Unset): Default: 2. inputs (list[InputField] | Unset): + result (None | str | Unset): """ steps: list[AgentStep | ApprovalBlock | ConnectionStep | EditFieldsStep | ForEachBlock | IfBlock | MergeStep | ParallelBlock] - result: str format_version: Literal[2] | Unset = 2 inputs: list[InputField] | Unset = UNSET + result: None | str | Unset = UNSET @@ -85,8 +85,6 @@ def to_dict(self) -> dict[str, Any]: - result = self.result - format_version = self.format_version inputs: list[dict[str, Any]] | Unset = UNSET @@ -98,17 +96,24 @@ def to_dict(self) -> dict[str, Any]: + result: None | str | Unset + if isinstance(self.result, Unset): + result = UNSET + else: + result = self.result + field_dict: dict[str, Any] = {} field_dict.update({ "steps": steps, - "result": result, }) if format_version is not UNSET: field_dict["format_version"] = format_version if inputs is not UNSET: field_dict["inputs"] = inputs + if result is not UNSET: + field_dict["result"] = result return field_dict @@ -213,8 +218,6 @@ def _parse_steps_item(data: object) -> AgentStep | ApprovalBlock | ConnectionSte steps.append(steps_item) - result = d.pop("result") - format_version = cast(Literal[2] | Unset , d.pop("format_version", UNSET)) if format_version != 2and not isinstance(format_version, Unset): raise ValueError(f"format_version must match const 2, got '{format_version}'") @@ -231,11 +234,21 @@ def _parse_steps_item(data: object) -> AgentStep | ApprovalBlock | ConnectionSte inputs.append(inputs_item) + def _parse_result(data: object) -> None | str | Unset: + if data is None: + return data + if isinstance(data, Unset): + return data + return cast(None | str | Unset, data) + + result = _parse_result(d.pop("result", UNSET)) + + workflow_definition_request = cls( steps=steps, - result=result, format_version=format_version, inputs=inputs, + result=result, ) return workflow_definition_request diff --git a/uv.lock b/uv.lock index 80f41d1..43d0ef2 100644 --- a/uv.lock +++ b/uv.lock @@ -454,7 +454,7 @@ wheels = [ [[package]] name = "roe-ai" -version = "1.1.23" +version = "1.1.24" source = { editable = "." } dependencies = [ { name = "attrs" },