add error_code_mapping and extracted_information_schema to task v2 (#1950)

This commit is contained in:
Shuchang Zheng
2025-03-18 11:53:54 -07:00
committed by GitHub
parent e4a986d286
commit 39162ded9b
5 changed files with 44 additions and 2 deletions

View File

@@ -41,6 +41,8 @@ class TaskV2(BaseModel):
totp_identifier: str | None = None
proxy_location: ProxyLocation | None = None
webhook_callback_url: str | None = None
extracted_information_schema: dict | list | str | None = None
error_code_mapping: dict | None = None
created_at: datetime
modified_at: datetime
@@ -117,6 +119,8 @@ class TaskV2Request(BaseModel):
totp_identifier: str | None = None
proxy_location: ProxyLocation | None = None
publish_workflow: bool = False
extracted_information_schema: dict | list | str | None = None
error_code_mapping: dict[str, str] | None = None
@field_validator("url", "webhook_callback_url", "totp_verification_url")
@classmethod