Browser recording: events to blocks (#4195)

This commit is contained in:
Jonathan Dobson
2025-12-04 12:04:38 -05:00
committed by GitHub
parent bc8b20a742
commit b30f3b09c8
23 changed files with 1788 additions and 100 deletions

View File

@@ -1,5 +1,7 @@
from pydantic import BaseModel, Field
from skyvern.client.types.workflow_definition_yaml_blocks_item import WorkflowDefinitionYamlBlocksItem
from skyvern.client.types.workflow_definition_yaml_parameters_item import WorkflowDefinitionYamlParametersItem_Workflow
from skyvern.schemas.docs.doc_strings import PROXY_LOCATION_DOC_STRING
from skyvern.schemas.runs import ProxyLocation
@@ -19,3 +21,25 @@ class CreateBrowserSessionRequest(BaseModel):
default=None,
description=PROXY_LOCATION_DOC_STRING,
)
class ProcessBrowserSessionRecordingRequest(BaseModel):
compressed_chunks: list[str] = Field(
default=[],
description="List of base64 encoded and compressed (gzip) event strings representing the browser session recording.",
)
workflow_permanent_id: str = Field(
default="no-such-wpid",
description="Permanent ID of the workflow associated with the browser session recording.",
)
class ProcessBrowserSessionRecordingResponse(BaseModel):
blocks: list[WorkflowDefinitionYamlBlocksItem] = Field(
default=[],
description="List of workflow blocks generated from the processed browser session recording.",
)
parameters: list[WorkflowDefinitionYamlParametersItem_Workflow] = Field(
default=[],
description="List of workflow parameters generated from the processed browser session recording.",
)