Browser recording: events to blocks (#4195)
This commit is contained in:
@@ -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.",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user