Skip to content

Automate browser based workflows with AI

chore(deps): bump mcp to 1.28.1 to fix 3 high-severity Dependabot alerts (#7496)

Shuchang Zheng14439528f589
diff --git a/pyproject.toml b/pyproject.toml
index cc34cd58b..efe54d138 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "skyvern"
-version = "1.0.47"
+version = "1.0.46"
description = ""
authors = [{ name = "Skyvern AI", email = "[email protected]" }]
requires-python = ">=3.11,<3.14"
diff --git a/skyvern/client/__init__.py b/skyvern/client/__init__.py
index 536e4d6ff..add7d0b01 100644
--- a/skyvern/client/__init__.py
+++ b/skyvern/client/__init__.py
@@ -54,7 +54,6 @@ if typing.TYPE_CHECKING:
BrowserProfileProxyLocation,
BrowserSessionResponse,
BulkCancelRunsResponse,
- ClearOrganizationAuthTokenResponse,
ClickAction,
ClickActionData,
ClickContext,
@@ -71,8 +70,6 @@ if typing.TYPE_CHECKING:
CodeBlockParametersItem_Onepassword,
CodeBlockParametersItem_Output,
CodeBlockParametersItem_Workflow,
- CodeBlockStep,
- CodeBlockStepYaml,
CodeBlockYaml,
ConditionalBlock,
ConditionalBlockYaml,
@@ -101,35 +98,12 @@ if typing.TYPE_CHECKING:
CredentialParameterYaml,
CredentialResponse,
CredentialResponseCredential,
- CredentialResponseProxyLocation,
CredentialTypeOutput,
CredentialVaultType,
- CreditCardBillingAddress,
CreditCardCredentialResponse,
- CustomLlm,
- CustomLlmConfig,
- CustomLlmListResponse,
- CustomLlmProvider,
- CustomLlmResponse,
DeleteScheduleResponse,
DownloadToS3Block,
DownloadToS3BlockYaml,
- EmailInboxBlock,
- EmailInboxBlockEmailClient,
- EmailInboxBlockParametersItem,
- EmailInboxBlockParametersItem_AwsSecret,
- EmailInboxBlockParametersItem_AzureSecret,
- EmailInboxBlockParametersItem_AzureVaultCredential,
- EmailInboxBlockParametersItem_BitwardenCreditCardData,
- EmailInboxBlockParametersItem_BitwardenLoginCredential,
- EmailInboxBlockParametersItem_BitwardenSensitiveInformation,
- EmailInboxBlockParametersItem_Context,
- EmailInboxBlockParametersItem_Credential,
- EmailInboxBlockParametersItem_Onepassword,
- EmailInboxBlockParametersItem_Output,
- EmailInboxBlockParametersItem_Workflow,
- EmailInboxBlockYaml,
- EmailInboxBlockYamlEmailClient,
Extensions,
ExtractAction,
ExtractActionData,
@@ -182,7 +156,6 @@ if typing.TYPE_CHECKING:
ForLoopBlockLoopBlocksItem_Code,
ForLoopBlockLoopBlocksItem_Conditional,
ForLoopBlockLoopBlocksItem_DownloadToS3,
- ForLoopBlockLoopBlocksItem_EmailInbox,
ForLoopBlockLoopBlocksItem_Extraction,
ForLoopBlockLoopBlocksItem_FileDownload,
ForLoopBlockLoopBlocksItem_FileUpload,
@@ -195,11 +168,9 @@ if typing.TYPE_CHECKING:
ForLoopBlockLoopBlocksItem_HumanInteraction,
ForLoopBlockLoopBlocksItem_Login,
ForLoopBlockLoopBlocksItem_Navigation,
- ForLoopBlockLoopBlocksItem_PdfFill,
ForLoopBlockLoopBlocksItem_PdfParser,
ForLoopBlockLoopBlocksItem_PrintPage,
ForLoopBlockLoopBlocksItem_SendEmail,
- ForLoopBlockLoopBlocksItem_SplitPdf,
ForLoopBlockLoopBlocksItem_Task,
ForLoopBlockLoopBlocksItem_TaskV2,
ForLoopBlockLoopBlocksItem_TextPrompt,
@@ -227,7 +198,6 @@ if typing.TYPE_CHECKING:
ForLoopBlockYamlLoopBlocksItem_Code,
ForLoopBlockYamlLoopBlocksItem_Conditional,
ForLoopBlockYamlLoopBlocksItem_DownloadToS3,
- ForLoopBlockYamlLoopBlocksItem_EmailInbox,
ForLoopBlockYamlLoopBlocksItem_Extraction,
ForLoopBlockYamlLoopBlocksItem_FileDownload,
ForLoopBlockYamlLoopBlocksItem_FileUpload,
@@ -240,11 +210,9 @@ if typing.TYPE_CHECKING:
ForLoopBlockYamlLoopBlocksItem_HumanInteraction,
ForLoopBlockYamlLoopBlocksItem_Login,
ForLoopBlockYamlLoopBlocksItem_Navigation,
- ForLoopBlockYamlLoopBlocksItem_PdfFill,
ForLoopBlockYamlLoopBlocksItem_PdfParser,
ForLoopBlockYamlLoopBlocksItem_PrintPage,
ForLoopBlockYamlLoopBlocksItem_SendEmail,
- ForLoopBlockYamlLoopBlocksItem_SplitPdf,
ForLoopBlockYamlLoopBlocksItem_Task,
ForLoopBlockYamlLoopBlocksItem_TaskV2,
ForLoopBlockYamlLoopBlocksItem_TextPrompt,
@@ -367,22 +335,6 @@ if typing.TYPE_CHECKING:
OutputParameter,
OutputParameterYaml,
PasswordCredentialResponse,
- PdfFillBlock,
- PdfFillBlockParametersItem,
- PdfFillBlockParametersItem_AwsSecret,
- PdfFillBlockParametersItem_AzureSecret,
- PdfFillBlockParametersItem_AzureVaultCredential,
- PdfFillBlockParametersItem_BitwardenCreditCardData,
- PdfFillBlockParametersItem_BitwardenLoginCredential,
- PdfFillBlockParametersItem_BitwardenSensitiveInformation,
- PdfFillBlockParametersItem_Context,
- PdfFillBlockParametersItem_Credential,
- PdfFillBlockParametersItem_Onepassword,
- PdfFillBlockParametersItem_Output,
- PdfFillBlockParametersItem_Workflow,
- PdfFillBlockPayload,
- PdfFillBlockYaml,
- PdfFillBlockYamlPayload,
PdfFormat,
PdfParserBlock,
PdfParserBlockYaml,
@@ -418,10 +370,6 @@ if typing.TYPE_CHECKING:
RunSdkActionRequestAction_Validate,
RunSdkActionResponse,
RunStatus,
- RunTagHistoryResponse,
- RunTagsBatchResponse,
- RunTagsResponse,
- RunType,
RunWebhookReplayResponse,
Script,
ScriptFileCreate,
@@ -435,21 +383,6 @@ if typing.TYPE_CHECKING:
SendEmailBlockYaml,
SkyvernForgeSdkSchemasCredentialsCredentialType,
SkyvernSchemasCredentialTypeCredentialType,
- SplitPdfBlock,
- SplitPdfBlockParametersItem,
- SplitPdfBlockParametersItem_AwsSecret,
- SplitPdfBlockParametersItem_AzureSecret,
- SplitPdfBlockParametersItem_AzureVaultCredential,
- SplitPdfBlockParametersItem_BitwardenCreditCardData,
- SplitPdfBlockParametersItem_BitwardenLoginCredential,
- SplitPdfBlockParametersItem_BitwardenSensitiveInformation,
- SplitPdfBlockParametersItem_Context,
- SplitPdfBlockParametersItem_Credential,
- SplitPdfBlockParametersItem_Onepassword,
- SplitPdfBlockParametersItem_Output,
- SplitPdfBlockParametersItem_Workflow,
- SplitPdfBlockYaml,
- TagApplyRequest,
TagDeleteInput,
TagHistoryItem,
TagHistoryResponse,
@@ -458,9 +391,6 @@ if typing.TYPE_CHECKING:
TagKey,
TagKeyDeleteResponse,
TagResponse,
- TagValue,
- TagValueDeleteResponse,
- TagValueRenameResponse,
TagsResponse,
TaskBlock,
TaskBlockDataSchema,
@@ -570,7 +500,6 @@ if typing.TYPE_CHECKING:
WhileLoopBlockLoopBlocksItem_Code,
WhileLoopBlockLoopBlocksItem_Conditional,
WhileLoopBlockLoopBlocksItem_DownloadToS3,
- WhileLoopBlockLoopBlocksItem_EmailInbox,
WhileLoopBlockLoopBlocksItem_Extraction,
WhileLoopBlockLoopBlocksItem_FileDownload,
WhileLoopBlockLoopBlocksItem_FileUpload,
@@ -583,11 +512,9 @@ if typing.TYPE_CHECKING:
WhileLoopBlockLoopBlocksItem_HumanInteraction,
WhileLoopBlockLoopBlocksItem_Login,
WhileLoopBlockLoopBlocksItem_Navigation,
- WhileLoopBlockLoopBlocksItem_PdfFill,
WhileLoopBlockLoopBlocksItem_PdfParser,
WhileLoopBlockLoopBlocksItem_PrintPage,
WhileLoopBlockLoopBlocksItem_SendEmail,
- WhileLoopBlockLoopBlocksItem_SplitPdf,
WhileLoopBlockLoopBlocksItem_Task,
WhileLoopBlockLoopBlocksItem_TaskV2,
WhileLoopBlockLoopBlocksItem_TextPrompt,
@@ -602,7 +529,6 @@ if typing.TYPE_CHECKING:
WhileLoopBlockYamlLoopBlocksItem_Code,
WhileLoopBlockYamlLoopBlocksItem_Conditional,
WhileLoopBlockYamlLoopBlocksItem_DownloadToS3,
- WhileLoopBlockYamlLoopBlocksItem_EmailInbox,
WhileLoopBlockYamlLoopBlocksItem_Extraction,
WhileLoopBlockYamlLoopBlocksItem_FileDownload,
WhileLoopBlockYamlLoopBlocksItem_FileUpload,
@@ -615,11 +541,9 @@ if typing.TYPE_CHECKING:
WhileLoopBlockYamlLoopBlocksItem_HumanInteraction,
WhileLoopBlockYamlLoopBlocksItem_Login,
WhileLoopBlockYamlLoopBlocksItem_Navigation,
- WhileLoopBlockYamlLoopBlocksItem_PdfFill,
WhileLoopBlockYamlLoopBlocksItem_PdfParser,
WhileLoopBlockYamlLoopBlocksItem_PrintPage,
WhileLoopBlockYamlLoopBlocksItem_SendEmail,
- WhileLoopBlockYamlLoopBlocksItem_SplitPdf,
WhileLoopBlockYamlLoopBlocksItem_Task,
WhileLoopBlockYamlLoopBlocksItem_TaskV2,
WhileLoopBlockYamlLoopBlocksItem_TextPrompt,
@@ -637,7 +561,6 @@ if typing.TYPE_CHECKING:
WorkflowDefinitionBlocksItem_Code,
WorkflowDefinitionBlocksItem_Conditional,
WorkflowDefinitionBlocksItem_DownloadToS3,
- WorkflowDefinitionBlocksItem_EmailInbox,
WorkflowDefinitionBlocksItem_Extraction,
WorkflowDefinitionBlocksItem_FileDownload,
WorkflowDefinitionBlocksItem_FileUpload,
@@ -650,11 +573,9 @@ if typing.TYPE_CHECKING:
WorkflowDefinitionBlocksItem_HumanInteraction,
WorkflowDefinitionBlocksItem_Login,
WorkflowDefinitionBlocksItem_Navigation,
- WorkflowDefinitionBlocksItem_PdfFill,
WorkflowDefinitionBlocksItem_PdfParser,
WorkflowDefinitionBlocksItem_PrintPage,
WorkflowDefinitionBlocksItem_SendEmail,
- WorkflowDefinitionBlocksItem_SplitPdf,
WorkflowDefinitionBlocksItem_Task,
WorkflowDefinitionBlocksItem_TaskV2,
WorkflowDefinitionBlocksItem_TextPrompt,
@@ -681,7 +602,6 @@ if typing.TYPE_CHECKING:
WorkflowDefinitionYamlBlocksItem_Code,
WorkflowDefinitionYamlBlocksItem_Conditional,
WorkflowDefinitionYamlBlocksItem_DownloadToS3,
- WorkflowDefinitionYamlBlocksItem_EmailInbox,
WorkflowDefinitionYamlBlocksItem_Extraction,
WorkflowDefinitionYamlBlocksItem_FileDownload,
WorkflowDefinitionYamlBlocksItem_FileUpload,
@@ -694,11 +614,9 @@ if typing.TYPE_CHECKING:
WorkflowDefinitionYamlBlocksItem_HumanInteraction,
WorkflowDefinitionYamlBlocksItem_Login,
WorkflowDefinitionYamlBlocksItem_Navigation,
- WorkflowDefinitionYamlBlocksItem_PdfFill,
WorkflowDefinitionYamlBlocksItem_PdfParser,
WorkflowDefinitionYamlBlocksItem_PrintPage,
WorkflowDefinitionYamlBlocksItem_SendEmail,
- WorkflowDefinitionYamlBlocksItem_SplitPdf,
WorkflowDefinitionYamlBlocksItem_Task,
WorkflowDefinitionYamlBlocksItem_TaskV2,
WorkflowDefinitionYamlBlocksItem_TextPrompt,
@@ -825,7 +743,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"BrowserProfileProxyLocation": ".types",
"BrowserSessionResponse": ".types",
"BulkCancelRunsResponse": ".types",
- "ClearOrganizationAuthTokenResponse": ".types",
"ClickAction": ".types",
"ClickActionData": ".types",
"ClickContext": ".types",
@@ -842,8 +759,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"CodeBlockParametersItem_Onepassword": ".types",
"CodeBlockParametersItem_Output": ".types",
"CodeBlockParametersItem_Workflow": ".types",
- "CodeBlockStep": ".types",
- "CodeBlockStepYaml": ".types",
"CodeBlockYaml": ".types",
"ConditionalBlock": ".types",
"ConditionalBlockYaml": ".types",
@@ -873,35 +788,12 @@ _dynamic_imports: typing.Dict[str, str] = {
"CredentialParameterYaml": ".types",
"CredentialResponse": ".types",
"CredentialResponseCredential": ".types",
- "CredentialResponseProxyLocation": ".types",
"CredentialTypeOutput": ".types",
"CredentialVaultType": ".types",
- "CreditCardBillingAddress": ".types",
"CreditCardCredentialResponse": ".types",
- "CustomLlm": ".types",
- "CustomLlmConfig": ".types",
- "CustomLlmListResponse": ".types",
- "CustomLlmProvider": ".types",
- "CustomLlmResponse": ".types",
"DeleteScheduleResponse": ".types",
"DownloadToS3Block": ".types",
"DownloadToS3BlockYaml": ".types",
- "EmailInboxBlock": ".types",
- "EmailInboxBlockEmailClient": ".types",
- "EmailInboxBlockParametersItem": ".types",
- "EmailInboxBlockParametersItem_AwsSecret": ".types",
- "EmailInboxBlockParametersItem_AzureSecret": ".types",
- "EmailInboxBlockParametersItem_AzureVaultCredential": ".types",
- "EmailInboxBlockParametersItem_BitwardenCreditCardData": ".types",
- "EmailInboxBlockParametersItem_BitwardenLoginCredential": ".types",
- "EmailInboxBlockParametersItem_BitwardenSensitiveInformation": ".types",
- "EmailInboxBlockParametersItem_Context": ".types",
- "EmailInboxBlockParametersItem_Credential": ".types",
- "EmailInboxBlockParametersItem_Onepassword": ".types",
- "EmailInboxBlockParametersItem_Output": ".types",
- "EmailInboxBlockParametersItem_Workflow": ".types",
- "EmailInboxBlockYaml": ".types",
- "EmailInboxBlockYamlEmailClient": ".types",
"Extensions": ".types",
"ExtractAction": ".types",
"ExtractActionData": ".types",
@@ -954,7 +846,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"ForLoopBlockLoopBlocksItem_Code": ".types",
"ForLoopBlockLoopBlocksItem_Conditional": ".types",
"ForLoopBlockLoopBlocksItem_DownloadToS3": ".types",
- "ForLoopBlockLoopBlocksItem_EmailInbox": ".types",
"ForLoopBlockLoopBlocksItem_Extraction": ".types",
"ForLoopBlockLoopBlocksItem_FileDownload": ".types",
"ForLoopBlockLoopBlocksItem_FileUpload": ".types",
@@ -967,11 +858,9 @@ _dynamic_imports: typing.Dict[str, str] = {
"ForLoopBlockLoopBlocksItem_HumanInteraction": ".types",
"ForLoopBlockLoopBlocksItem_Login": ".types",
"ForLoopBlockLoopBlocksItem_Navigation": ".types",
- "ForLoopBlockLoopBlocksItem_PdfFill": ".types",
"ForLoopBlockLoopBlocksItem_PdfParser": ".types",
"ForLoopBlockLoopBlocksItem_PrintPage": ".types",
"ForLoopBlockLoopBlocksItem_SendEmail": ".types",
- "ForLoopBlockLoopBlocksItem_SplitPdf": ".types",
"ForLoopBlockLoopBlocksItem_Task": ".types",
"ForLoopBlockLoopBlocksItem_TaskV2": ".types",
"ForLoopBlockLoopBlocksItem_TextPrompt": ".types",
@@ -999,7 +888,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"ForLoopBlockYamlLoopBlocksItem_Code": ".types",
"ForLoopBlockYamlLoopBlocksItem_Conditional": ".types",
"ForLoopBlockYamlLoopBlocksItem_DownloadToS3": ".types",
- "ForLoopBlockYamlLoopBlocksItem_EmailInbox": ".types",
"ForLoopBlockYamlLoopBlocksItem_Extraction": ".types",
"ForLoopBlockYamlLoopBlocksItem_FileDownload": ".types",
"ForLoopBlockYamlLoopBlocksItem_FileUpload": ".types",
@@ -1012,11 +900,9 @@ _dynamic_imports: typing.Dict[str, str] = {
"ForLoopBlockYamlLoopBlocksItem_HumanInteraction": ".types",
"ForLoopBlockYamlLoopBlocksItem_Login": ".types",
"ForLoopBlockYamlLoopBlocksItem_Navigation": ".types",
- "ForLoopBlockYamlLoopBlocksItem_PdfFill": ".types",
"ForLoopBlockYamlLoopBlocksItem_PdfParser": ".types",
"ForLoopBlockYamlLoopBlocksItem_PrintPage": ".types",
"ForLoopBlockYamlLoopBlocksItem_SendEmail": ".types",
- "ForLoopBlockYamlLoopBlocksItem_SplitPdf": ".types",
"ForLoopBlockYamlLoopBlocksItem_Task": ".types",
"ForLoopBlockYamlLoopBlocksItem_TaskV2": ".types",
"ForLoopBlockYamlLoopBlocksItem_TextPrompt": ".types",
@@ -1142,22 +1028,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"OutputParameter": ".types",
"OutputParameterYaml": ".types",
"PasswordCredentialResponse": ".types",
- "PdfFillBlock": ".types",
- "PdfFillBlockParametersItem": ".types",
- "PdfFillBlockParametersItem_AwsSecret": ".types",
- "PdfFillBlockParametersItem_AzureSecret": ".types",
- "PdfFillBlockParametersItem_AzureVaultCredential": ".types",
- "PdfFillBlockParametersItem_BitwardenCreditCardData": ".types",
- "PdfFillBlockParametersItem_BitwardenLoginCredential": ".types",
- "PdfFillBlockParametersItem_BitwardenSensitiveInformation": ".types",
- "PdfFillBlockParametersItem_Context": ".types",
- "PdfFillBlockParametersItem_Credential": ".types",
- "PdfFillBlockParametersItem_Onepassword": ".types",
- "PdfFillBlockParametersItem_Output": ".types",
- "PdfFillBlockParametersItem_Workflow": ".types",
- "PdfFillBlockPayload": ".types",
- "PdfFillBlockYaml": ".types",
- "PdfFillBlockYamlPayload": ".types",
"PdfFormat": ".types",
"PdfParserBlock": ".types",
"PdfParserBlockYaml": ".types",
@@ -1194,10 +1064,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"RunSdkActionRequestAction_Validate": ".types",
"RunSdkActionResponse": ".types",
"RunStatus": ".types",
- "RunTagHistoryResponse": ".types",
- "RunTagsBatchResponse": ".types",
- "RunTagsResponse": ".types",
- "RunType": ".types",
"RunWebhookReplayResponse": ".types",
"SchedulesListAllRequestStatus": ".schedules",
"Script": ".types",
@@ -1214,21 +1080,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"SkyvernEnvironment": ".environment",
"SkyvernForgeSdkSchemasCredentialsCredentialType": ".types",
"SkyvernSchemasCredentialTypeCredentialType": ".types",
- "SplitPdfBlock": ".types",
- "SplitPdfBlockParametersItem": ".types",
- "SplitPdfBlockParametersItem_AwsSecret": ".types",
- "SplitPdfBlockParametersItem_AzureSecret": ".types",
- "SplitPdfBlockParametersItem_AzureVaultCredential": ".types",
- "SplitPdfBlockParametersItem_BitwardenCreditCardData": ".types",
- "SplitPdfBlockParametersItem_BitwardenLoginCredential": ".types",
- "SplitPdfBlockParametersItem_BitwardenSensitiveInformation": ".types",
- "SplitPdfBlockParametersItem_Context": ".types",
- "SplitPdfBlockParametersItem_Credential": ".types",
- "SplitPdfBlockParametersItem_Onepassword": ".types",
- "SplitPdfBlockParametersItem_Output": ".types",
- "SplitPdfBlockParametersItem_Workflow": ".types",
- "SplitPdfBlockYaml": ".types",
- "TagApplyRequest": ".types",
"TagDeleteInput": ".types",
"TagHistoryItem": ".types",
"TagHistoryResponse": ".types",
@@ -1237,9 +1088,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"TagKey": ".types",
"TagKeyDeleteResponse": ".types",
"TagResponse": ".types",
- "TagValue": ".types",
- "TagValueDeleteResponse": ".types",
- "TagValueRenameResponse": ".types",
"TagsResponse": ".types",
"TaskBlock": ".types",
"TaskBlockDataSchema": ".types",
@@ -1350,7 +1198,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"WhileLoopBlockLoopBlocksItem_Code": ".types",
"WhileLoopBlockLoopBlocksItem_Conditional": ".types",
"WhileLoopBlockLoopBlocksItem_DownloadToS3": ".types",
- "WhileLoopBlockLoopBlocksItem_EmailInbox": ".types",
"WhileLoopBlockLoopBlocksItem_Extraction": ".types",
"WhileLoopBlockLoopBlocksItem_FileDownload": ".types",
"WhileLoopBlockLoopBlocksItem_FileUpload": ".types",
@@ -1363,11 +1210,9 @@ _dynamic_imports: typing.Dict[str, str] = {
"WhileLoopBlockLoopBlocksItem_HumanInteraction": ".types",
"WhileLoopBlockLoopBlocksItem_Login": ".types",
"WhileLoopBlockLoopBlocksItem_Navigation": ".types",
- "WhileLoopBlockLoopBlocksItem_PdfFill": ".types",
"WhileLoopBlockLoopBlocksItem_PdfParser": ".types",
"WhileLoopBlockLoopBlocksItem_PrintPage": ".types",
"WhileLoopBlockLoopBlocksItem_SendEmail": ".types",
- "WhileLoopBlockLoopBlocksItem_SplitPdf": ".types",
"WhileLoopBlockLoopBlocksItem_Task": ".types",
"WhileLoopBlockLoopBlocksItem_TaskV2": ".types",
"WhileLoopBlockLoopBlocksItem_TextPrompt": ".types",
@@ -1382,7 +1227,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"WhileLoopBlockYamlLoopBlocksItem_Code": ".types",
"WhileLoopBlockYamlLoopBlocksItem_Conditional": ".types",
"WhileLoopBlockYamlLoopBlocksItem_DownloadToS3": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_EmailInbox": ".types",
"WhileLoopBlockYamlLoopBlocksItem_Extraction": ".types",
"WhileLoopBlockYamlLoopBlocksItem_FileDownload": ".types",
"WhileLoopBlockYamlLoopBlocksItem_FileUpload": ".types",
@@ -1395,11 +1239,9 @@ _dynamic_imports: typing.Dict[str, str] = {
"WhileLoopBlockYamlLoopBlocksItem_HumanInteraction": ".types",
"WhileLoopBlockYamlLoopBlocksItem_Login": ".types",
"WhileLoopBlockYamlLoopBlocksItem_Navigation": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_PdfFill": ".types",
"WhileLoopBlockYamlLoopBlocksItem_PdfParser": ".types",
"WhileLoopBlockYamlLoopBlocksItem_PrintPage": ".types",
"WhileLoopBlockYamlLoopBlocksItem_SendEmail": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_SplitPdf": ".types",
"WhileLoopBlockYamlLoopBlocksItem_Task": ".types",
"WhileLoopBlockYamlLoopBlocksItem_TaskV2": ".types",
"WhileLoopBlockYamlLoopBlocksItem_TextPrompt": ".types",
@@ -1417,7 +1259,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"WorkflowDefinitionBlocksItem_Code": ".types",
"WorkflowDefinitionBlocksItem_Conditional": ".types",
"WorkflowDefinitionBlocksItem_DownloadToS3": ".types",
- "WorkflowDefinitionBlocksItem_EmailInbox": ".types",
"WorkflowDefinitionBlocksItem_Extraction": ".types",
"WorkflowDefinitionBlocksItem_FileDownload": ".types",
"WorkflowDefinitionBlocksItem_FileUpload": ".types",
@@ -1430,11 +1271,9 @@ _dynamic_imports: typing.Dict[str, str] = {
"WorkflowDefinitionBlocksItem_HumanInteraction": ".types",
"WorkflowDefinitionBlocksItem_Login": ".types",
"WorkflowDefinitionBlocksItem_Navigation": ".types",
- "WorkflowDefinitionBlocksItem_PdfFill": ".types",
"WorkflowDefinitionBlocksItem_PdfParser": ".types",
"WorkflowDefinitionBlocksItem_PrintPage": ".types",
"WorkflowDefinitionBlocksItem_SendEmail": ".types",
- "WorkflowDefinitionBlocksItem_SplitPdf": ".types",
"WorkflowDefinitionBlocksItem_Task": ".types",
"WorkflowDefinitionBlocksItem_TaskV2": ".types",
"WorkflowDefinitionBlocksItem_TextPrompt": ".types",
@@ -1461,7 +1300,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"WorkflowDefinitionYamlBlocksItem_Code": ".types",
"WorkflowDefinitionYamlBlocksItem_Conditional": ".types",
"WorkflowDefinitionYamlBlocksItem_DownloadToS3": ".types",
- "WorkflowDefinitionYamlBlocksItem_EmailInbox": ".types",
"WorkflowDefinitionYamlBlocksItem_Extraction": ".types",
"WorkflowDefinitionYamlBlocksItem_FileDownload": ".types",
"WorkflowDefinitionYamlBlocksItem_FileUpload": ".types",
@@ -1474,11 +1312,9 @@ _dynamic_imports: typing.Dict[str, str] = {
"WorkflowDefinitionYamlBlocksItem_HumanInteraction": ".types",
"WorkflowDefinitionYamlBlocksItem_Login": ".types",
"WorkflowDefinitionYamlBlocksItem_Navigation": ".types",
- "WorkflowDefinitionYamlBlocksItem_PdfFill": ".types",
"WorkflowDefinitionYamlBlocksItem_PdfParser": ".types",
"WorkflowDefinitionYamlBlocksItem_PrintPage": ".types",
"WorkflowDefinitionYamlBlocksItem_SendEmail": ".types",
- "WorkflowDefinitionYamlBlocksItem_SplitPdf": ".types",
"WorkflowDefinitionYamlBlocksItem_Task": ".types",
"WorkflowDefinitionYamlBlocksItem_TaskV2": ".types",
"WorkflowDefinitionYamlBlocksItem_TextPrompt": ".types",
@@ -1619,7 +1455,6 @@ __all__ = [
"BrowserProfileProxyLocation",
"BrowserSessionResponse",
"BulkCancelRunsResponse",
- "ClearOrganizationAuthTokenResponse",
"ClickAction",
"ClickActionData",
"ClickContext",
@@ -1636,8 +1471,6 @@ __all__ = [
"CodeBlockParametersItem_Onepassword",
"CodeBlockParametersItem_Output",
"CodeBlockParametersItem_Workflow",
- "CodeBlockStep",
- "CodeBlockStepYaml",
"CodeBlockYaml",
"ConditionalBlock",
"ConditionalBlockYaml",
@@ -1667,35 +1500,12 @@ __all__ = [
"CredentialParameterYaml",
"CredentialResponse",
"CredentialResponseCredential",
- "CredentialResponseProxyLocation",
"CredentialTypeOutput",
"CredentialVaultType",
- "CreditCardBillingAddress",
"CreditCardCredentialResponse",
- "CustomLlm",
- "CustomLlmConfig",
- "CustomLlmListResponse",
- "CustomLlmProvider",
- "CustomLlmResponse",
"DeleteScheduleResponse",
"DownloadToS3Block",
"DownloadToS3BlockYaml",
- "EmailInboxBlock",
- "EmailInboxBlockEmailClient",
- "EmailInboxBlockParametersItem",
- "EmailInboxBlockParametersItem_AwsSecret",
- "EmailInboxBlockParametersItem_AzureSecret",
- "EmailInboxBlockParametersItem_AzureVaultCredential",
- "EmailInboxBlockParametersItem_BitwardenCreditCardData",
- "EmailInboxBlockParametersItem_BitwardenLoginCredential",
- "EmailInboxBlockParametersItem_BitwardenSensitiveInformation",
- "EmailInboxBlockParametersItem_Context",
- "EmailInboxBlockParametersItem_Credential",
- "EmailInboxBlockParametersItem_Onepassword",
- "EmailInboxBlockParametersItem_Output",
- "EmailInboxBlockParametersItem_Workflow",
- "EmailInboxBlockYaml",
- "EmailInboxBlockYamlEmailClient",
"Extensions",
"ExtractAction",
"ExtractActionData",
@@ -1748,7 +1558,6 @@ __all__ = [
"ForLoopBlockLoopBlocksItem_Code",
"ForLoopBlockLoopBlocksItem_Conditional",
"ForLoopBlockLoopBlocksItem_DownloadToS3",
- "ForLoopBlockLoopBlocksItem_EmailInbox",
"ForLoopBlockLoopBlocksItem_Extraction",
"ForLoopBlockLoopBlocksItem_FileDownload",
"ForLoopBlockLoopBlocksItem_FileUpload",
@@ -1761,11 +1570,9 @@ __all__ = [
"ForLoopBlockLoopBlocksItem_HumanInteraction",
"ForLoopBlockLoopBlocksItem_Login",
"ForLoopBlockLoopBlocksItem_Navigation",
- "ForLoopBlockLoopBlocksItem_PdfFill",
"ForLoopBlockLoopBlocksItem_PdfParser",
"ForLoopBlockLoopBlocksItem_PrintPage",
"ForLoopBlockLoopBlocksItem_SendEmail",
- "ForLoopBlockLoopBlocksItem_SplitPdf",
"ForLoopBlockLoopBlocksItem_Task",
"ForLoopBlockLoopBlocksItem_TaskV2",
"ForLoopBlockLoopBlocksItem_TextPrompt",
@@ -1793,7 +1600,6 @@ __all__ = [
"ForLoopBlockYamlLoopBlocksItem_Code",
"ForLoopBlockYamlLoopBlocksItem_Conditional",
"ForLoopBlockYamlLoopBlocksItem_DownloadToS3",
- "ForLoopBlockYamlLoopBlocksItem_EmailInbox",
"ForLoopBlockYamlLoopBlocksItem_Extraction",
"ForLoopBlockYamlLoopBlocksItem_FileDownload",
"ForLoopBlockYamlLoopBlocksItem_FileUpload",
@@ -1806,11 +1612,9 @@ __all__ = [
"ForLoopBlockYamlLoopBlocksItem_HumanInteraction",
"ForLoopBlockYamlLoopBlocksItem_Login",
"ForLoopBlockYamlLoopBlocksItem_Navigation",
- "ForLoopBlockYamlLoopBlocksItem_PdfFill",
"ForLoopBlockYamlLoopBlocksItem_PdfParser",
"ForLoopBlockYamlLoopBlocksItem_PrintPage",
"ForLoopBlockYamlLoopBlocksItem_SendEmail",
- "ForLoopBlockYamlLoopBlocksItem_SplitPdf",
"ForLoopBlockYamlLoopBlocksItem_Task",
"ForLoopBlockYamlLoopBlocksItem_TaskV2",
"ForLoopBlockYamlLoopBlocksItem_TextPrompt",
@@ -1936,22 +1740,6 @@ __all__ = [
"OutputParameter",
"OutputParameterYaml",
"PasswordCredentialResponse",
- "PdfFillBlock",
- "PdfFillBlockParametersItem",
- "PdfFillBlockParametersItem_AwsSecret",
- "PdfFillBlockParametersItem_AzureSecret",
- "PdfFillBlockParametersItem_AzureVaultCredential",
- "PdfFillBlockParametersItem_BitwardenCreditCardData",
- "PdfFillBlockParametersItem_BitwardenLoginCredential",
- "PdfFillBlockParametersItem_BitwardenSensitiveInformation",
- "PdfFillBlockParametersItem_Context",
- "PdfFillBlockParametersItem_Credential",
- "PdfFillBlockParametersItem_Onepassword",
- "PdfFillBlockParametersItem_Output",
- "PdfFillBlockParametersItem_Workflow",
- "PdfFillBlockPayload",
- "PdfFillBlockYaml",
- "PdfFillBlockYamlPayload",
"PdfFormat",
"PdfParserBlock",
"PdfParserBlockYaml",
@@ -1988,10 +1776,6 @@ __all__ = [
"RunSdkActionRequestAction_Validate",
"RunSdkActionResponse",
"RunStatus",
- "RunTagHistoryResponse",
- "RunTagsBatchResponse",
- "RunTagsResponse",
- "RunType",
"RunWebhookReplayResponse",
"SchedulesListAllRequestStatus",
"Script",
@@ -2008,21 +1792,6 @@ __all__ = [
"SkyvernEnvironment",
"SkyvernForgeSdkSchemasCredentialsCredentialType",
"SkyvernSchemasCredentialTypeCredentialType",
- "SplitPdfBlock",
- "SplitPdfBlockParametersItem",
- "SplitPdfBlockParametersItem_AwsSecret",
- "SplitPdfBlockParametersItem_AzureSecret",
- "SplitPdfBlockParametersItem_AzureVaultCredential",
- "SplitPdfBlockParametersItem_BitwardenCreditCardData",
- "SplitPdfBlockParametersItem_BitwardenLoginCredential",
- "SplitPdfBlockParametersItem_BitwardenSensitiveInformation",
- "SplitPdfBlockParametersItem_Context",
- "SplitPdfBlockParametersItem_Credential",
- "SplitPdfBlockParametersItem_Onepassword",
- "SplitPdfBlockParametersItem_Output",
- "SplitPdfBlockParametersItem_Workflow",
- "SplitPdfBlockYaml",
- "TagApplyRequest",
"TagDeleteInput",
"TagHistoryItem",
"TagHistoryResponse",
@@ -2031,9 +1800,6 @@ __all__ = [
"TagKey",
"TagKeyDeleteResponse",
"TagResponse",
- "TagValue",
- "TagValueDeleteResponse",
- "TagValueRenameResponse",
"TagsResponse",
"TaskBlock",
"TaskBlockDataSchema",
@@ -2144,7 +1910,6 @@ __all__ = [
"WhileLoopBlockLoopBlocksItem_Code",
"WhileLoopBlockLoopBlocksItem_Conditional",
"WhileLoopBlockLoopBlocksItem_DownloadToS3",
- "WhileLoopBlockLoopBlocksItem_EmailInbox",
"WhileLoopBlockLoopBlocksItem_Extraction",
"WhileLoopBlockLoopBlocksItem_FileDownload",
"WhileLoopBlockLoopBlocksItem_FileUpload",
@@ -2157,11 +1922,9 @@ __all__ = [
"WhileLoopBlockLoopBlocksItem_HumanInteraction",
"WhileLoopBlockLoopBlocksItem_Login",
"WhileLoopBlockLoopBlocksItem_Navigation",
- "WhileLoopBlockLoopBlocksItem_PdfFill",
"WhileLoopBlockLoopBlocksItem_PdfParser",
"WhileLoopBlockLoopBlocksItem_PrintPage",
"WhileLoopBlockLoopBlocksItem_SendEmail",
- "WhileLoopBlockLoopBlocksItem_SplitPdf",
"WhileLoopBlockLoopBlocksItem_Task",
"WhileLoopBlockLoopBlocksItem_TaskV2",
"WhileLoopBlockLoopBlocksItem_TextPrompt",
@@ -2176,7 +1939,6 @@ __all__ = [
"WhileLoopBlockYamlLoopBlocksItem_Code",
"WhileLoopBlockYamlLoopBlocksItem_Conditional",
"WhileLoopBlockYamlLoopBlocksItem_DownloadToS3",
- "WhileLoopBlockYamlLoopBlocksItem_EmailInbox",
"WhileLoopBlockYamlLoopBlocksItem_Extraction",
"WhileLoopBlockYamlLoopBlocksItem_FileDownload",
"WhileLoopBlockYamlLoopBlocksItem_FileUpload",
@@ -2189,11 +1951,9 @@ __all__ = [
"WhileLoopBlockYamlLoopBlocksItem_HumanInteraction",
"WhileLoopBlockYamlLoopBlocksItem_Login",
"WhileLoopBlockYamlLoopBlocksItem_Navigation",
- "WhileLoopBlockYamlLoopBlocksItem_PdfFill",
"WhileLoopBlockYamlLoopBlocksItem_PdfParser",
"WhileLoopBlockYamlLoopBlocksItem_PrintPage",
"WhileLoopBlockYamlLoopBlocksItem_SendEmail",
- "WhileLoopBlockYamlLoopBlocksItem_SplitPdf",
"WhileLoopBlockYamlLoopBlocksItem_Task",
"WhileLoopBlockYamlLoopBlocksItem_TaskV2",
"WhileLoopBlockYamlLoopBlocksItem_TextPrompt",
@@ -2211,7 +1971,6 @@ __all__ = [
"WorkflowDefinitionBlocksItem_Code",
"WorkflowDefinitionBlocksItem_Conditional",
"WorkflowDefinitionBlocksItem_DownloadToS3",
- "WorkflowDefinitionBlocksItem_EmailInbox",
"WorkflowDefinitionBlocksItem_Extraction",
"WorkflowDefinitionBlocksItem_FileDownload",
"WorkflowDefinitionBlocksItem_FileUpload",
@@ -2224,11 +1983,9 @@ __all__ = [
"WorkflowDefinitionBlocksItem_HumanInteraction",
"WorkflowDefinitionBlocksItem_Login",
"WorkflowDefinitionBlocksItem_Navigation",
- "WorkflowDefinitionBlocksItem_PdfFill",
"WorkflowDefinitionBlocksItem_PdfParser",
"WorkflowDefinitionBlocksItem_PrintPage",
"WorkflowDefinitionBlocksItem_SendEmail",
- "WorkflowDefinitionBlocksItem_SplitPdf",
"WorkflowDefinitionBlocksItem_Task",
"WorkflowDefinitionBlocksItem_TaskV2",
"WorkflowDefinitionBlocksItem_TextPrompt",
@@ -2255,7 +2012,6 @@ __all__ = [
"WorkflowDefinitionYamlBlocksItem_Code",
"WorkflowDefinitionYamlBlocksItem_Conditional",
"WorkflowDefinitionYamlBlocksItem_DownloadToS3",
- "WorkflowDefinitionYamlBlocksItem_EmailInbox",
"WorkflowDefinitionYamlBlocksItem_Extraction",
"WorkflowDefinitionYamlBlocksItem_FileDownload",
"WorkflowDefinitionYamlBlocksItem_FileUpload",
@@ -2268,11 +2024,9 @@ __all__ = [
"WorkflowDefinitionYamlBlocksItem_HumanInteraction",
"WorkflowDefinitionYamlBlocksItem_Login",
"WorkflowDefinitionYamlBlocksItem_Navigation",
- "WorkflowDefinitionYamlBlocksItem_PdfFill",
"WorkflowDefinitionYamlBlocksItem_PdfParser",
"WorkflowDefinitionYamlBlocksItem_PrintPage",
"WorkflowDefinitionYamlBlocksItem_SendEmail",
- "WorkflowDefinitionYamlBlocksItem_SplitPdf",
"WorkflowDefinitionYamlBlocksItem_Task",
"WorkflowDefinitionYamlBlocksItem_TaskV2",
"WorkflowDefinitionYamlBlocksItem_TextPrompt",
diff --git a/skyvern/client/client.py b/skyvern/client/client.py
index a76bd2074..ccf9194e2 100644
--- a/skyvern/client/client.py
+++ b/skyvern/client/client.py
@@ -15,7 +15,6 @@ from .types.artifact_type import ArtifactType
from .types.browser_profile import BrowserProfile
from .types.browser_session_response import BrowserSessionResponse
from .types.bulk_cancel_runs_response import BulkCancelRunsResponse
-from .types.clear_organization_auth_token_response import ClearOrganizationAuthTokenResponse
from .types.create_browser_profile_request_proxy_location import CreateBrowserProfileRequestProxyLocation
from .types.create_browser_session_request_proxy_location import CreateBrowserSessionRequestProxyLocation
from .types.create_credential_request_credential import CreateCredentialRequestCredential
@@ -23,9 +22,6 @@ from .types.create_credential_request_proxy_location import CreateCredentialRequ
from .types.create_script_response import CreateScriptResponse
from .types.credential_response import CredentialResponse
from .types.credential_vault_type import CredentialVaultType
-from .types.custom_llm_config import CustomLlmConfig
-from .types.custom_llm_list_response import CustomLlmListResponse
-from .types.custom_llm_response import CustomLlmResponse
from .types.extensions import Extensions
from .types.folder import Folder
from .types.get_run_response import GetRunResponse
@@ -37,10 +33,6 @@ from .types.run_engine import RunEngine
from .types.run_sdk_action_request_action import RunSdkActionRequestAction
from .types.run_sdk_action_response import RunSdkActionResponse
from .types.run_status import RunStatus
-from .types.run_tag_history_response import RunTagHistoryResponse
-from .types.run_tags_batch_response import RunTagsBatchResponse
-from .types.run_tags_response import RunTagsResponse
-from .types.run_type import RunType
from .types.run_webhook_replay_response import RunWebhookReplayResponse
from .types.script import Script
from .types.script_file_create import ScriptFileCreate
@@ -51,9 +43,6 @@ from .types.tag_history_response import TagHistoryResponse
from .types.tag_input import TagInput
from .types.tag_key import TagKey
from .types.tag_key_delete_response import TagKeyDeleteResponse
-from .types.tag_value import TagValue
-from .types.tag_value_delete_response import TagValueDeleteResponse
-from .types.tag_value_rename_response import TagValueRenameResponse
from .types.tags_response import TagsResponse
from .types.task_run_list_item import TaskRunListItem
from .types.task_run_request_input_data_extraction_schema import TaskRunRequestInputDataExtractionSchema
@@ -1052,24 +1041,19 @@ class Skyvern:
)
return _response.data
- def get_run_tags(
- self, workflow_run_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> RunTagsResponse:
+ def list_tag_keys(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[TagKey]:
"""
- Get the current tag state for a workflow run.
+ List all tag keys registered for the organization with their descriptions.
Parameters
----------
- workflow_run_id : str
- Workflow run ID
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- RunTagsResponse
- Successfully retrieved tags
+ typing.List[TagKey]
+ Successfully retrieved tag keys
Examples
--------
@@ -1078,46 +1062,29 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.get_run_tags(
- workflow_run_id="wr_123",
- )
+ client.list_tag_keys()
"""
- _response = self._raw_client.get_run_tags(workflow_run_id, request_options=request_options)
+ _response = self._raw_client.list_tag_keys(request_options=request_options)
return _response.data
- def apply_run_tags(
- self,
- workflow_run_id: str,
- *,
- tags: typing.Optional[typing.Sequence[TagInput]] = OMIT,
- tags_to_delete: typing.Optional[typing.Sequence[TagDeleteInput]] = OMIT,
- colors: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> RunTagsResponse:
+ def delete_tag_key(
+ self, key: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> TagKeyDeleteResponse:
"""
- Atomically apply tag changes to a workflow run. Sets and deletes happen in one transaction; same-key collisions resolve set-wins.
+ Delete a tag key from the organization registry and remove that tag from every workflow that currently has it (cascade). Returns how many workflows the tag was removed from.
Parameters
----------
- workflow_run_id : str
- Workflow run ID
-
- tags : typing.Optional[typing.Sequence[TagInput]]
- Tags to set (overwrite). List of {key?, value} objects.
-
- tags_to_delete : typing.Optional[typing.Sequence[TagDeleteInput]]
- Tags to soft-delete. List of {key?, value?} targets.
-
- colors : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- Optional map of grouped tag key to palette color name for the value being set. Keys absent from this map keep their existing color or receive a random palette color.
+ key : str
+ Tag key to delete
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- RunTagsResponse
- Successfully applied tag changes
+ TagKeyDeleteResponse
+ Successfully deleted tag key
Examples
--------
@@ -1126,36 +1093,38 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.apply_run_tags(
- workflow_run_id="wr_123",
+ client.delete_tag_key(
+ key="env",
)
"""
- _response = self._raw_client.apply_run_tags(
- workflow_run_id, tags=tags, tags_to_delete=tags_to_delete, colors=colors, request_options=request_options
- )
+ _response = self._raw_client.delete_tag_key(key, request_options=request_options)
return _response.data
- def delete_run_tag(
- self, workflow_run_id: str, key: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> RunTagsResponse:
+ def update_tag_key(
+ self,
+ key: str,
+ *,
+ description: typing.Optional[str] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> TagKey:
"""
- Soft-delete a single grouped tag from a workflow run. Writes a DELETE event row.
+ Update the description for a tag key.
Parameters
----------
- workflow_run_id : str
- Workflow run ID
-
key : str
- Tag key to delete
+ Tag key to update
+
+ description : typing.Optional[str]
+ Free-form description (max 500 chars). Pass null to clear.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- RunTagsResponse
- Successfully deleted tag (or no-op if absent)
+ TagKey
+ Successfully updated tag key
Examples
--------
@@ -1164,84 +1133,72 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.delete_run_tag(
- workflow_run_id="wr_123",
- key="env",
+ client.update_tag_key(
+ key="key",
)
"""
- _response = self._raw_client.delete_run_tag(workflow_run_id, key, request_options=request_options)
+ _response = self._raw_client.update_tag_key(key, description=description, request_options=request_options)
return _response.data
- def get_run_tag_history(
+ def batch_get_workflow_tags(
self,
- workflow_run_id: str,
*,
- limit: typing.Optional[int] = None,
- since: typing.Optional[dt.datetime] = None,
- key: typing.Optional[str] = None,
+ workflow_permanent_ids: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> RunTagHistoryResponse:
+ ) -> WorkflowTagsBatchResponse:
"""
- Chronological tag-event log for a workflow run (newest first). Includes SET and DELETE events.
+ Batch fetch current tags for many workflows. Avoids N+1 on the workflows-list page.
Parameters
----------
- workflow_run_id : str
- Workflow run ID
-
- limit : typing.Optional[int]
- Max events to return
-
- since : typing.Optional[dt.datetime]
- Only return events at or after this timestamp
-
- key : typing.Optional[str]
- Filter to events for a single tag key
+ workflow_permanent_ids : typing.Optional[str]
+ Comma-separated workflow permanent IDs
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- RunTagHistoryResponse
- Successfully retrieved tag history
+ WorkflowTagsBatchResponse
+ Successfully retrieved tags
Examples
--------
- import datetime
-
from skyvern import Skyvern
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.get_run_tag_history(
- workflow_run_id="wr_123",
- limit=1,
- since=datetime.datetime.fromisoformat(
- "2024-01-15 09:30:00+00:00",
- ),
- key="key",
+ client.batch_get_workflow_tags(
+ workflow_permanent_ids="workflow_permanent_ids",
)
"""
- _response = self._raw_client.get_run_tag_history(
- workflow_run_id, limit=limit, since=since, key=key, request_options=request_options
+ _response = self._raw_client.batch_get_workflow_tags(
+ workflow_permanent_ids=workflow_permanent_ids, request_options=request_options
)
return _response.data
- def list_tag_keys(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[TagKey]:
+ def batch_get_workflow_tags_post(
+ self,
+ *,
+ workflow_permanent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> WorkflowTagsBatchResponse:
"""
- List all tag keys registered for the organization with their descriptions.
+ Batch fetch current tags for many workflows (POST variant for id lists exceeding URL length).
Parameters
----------
+ workflow_permanent_ids : typing.Optional[typing.Sequence[str]]
+ Workflow permanent IDs to fetch tags for.
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- typing.List[TagKey]
- Successfully retrieved tag keys
+ WorkflowTagsBatchResponse
+ Successfully retrieved tags
Examples
--------
@@ -1250,29 +1207,37 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.list_tag_keys()
+ client.batch_get_workflow_tags_post()
"""
- _response = self._raw_client.list_tag_keys(request_options=request_options)
+ _response = self._raw_client.batch_get_workflow_tags_post(
+ workflow_permanent_ids=workflow_permanent_ids, request_options=request_options
+ )
return _response.data
- def delete_tag_key(
- self, key: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> TagKeyDeleteResponse:
+ def get_run_artifacts(
+ self,
+ run_id: str,
+ *,
+ artifact_type: typing.Optional[typing.Union[ArtifactType, typing.Sequence[ArtifactType]]] = None,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> typing.List[Artifact]:
"""
- Delete a tag key from the organization registry and remove that tag from every workflow that currently has it (cascade). Returns how many workflows the tag was removed from.
+ Get artifacts for a run
Parameters
----------
- key : str
- Tag key to delete
+ run_id : str
+ The id of the task run or the workflow run.
+
+ artifact_type : typing.Optional[typing.Union[ArtifactType, typing.Sequence[ArtifactType]]]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- TagKeyDeleteResponse
- Successfully deleted tag key
+ typing.List[Artifact]
+ Successful Response
Examples
--------
@@ -1281,71 +1246,73 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.delete_tag_key(
- key="env",
+ client.get_run_artifacts(
+ run_id="run_id",
)
"""
- _response = self._raw_client.delete_tag_key(key, request_options=request_options)
+ _response = self._raw_client.get_run_artifacts(
+ run_id, artifact_type=artifact_type, request_options=request_options
+ )
return _response.data
- def update_tag_key(
+ def retry_run_webhook(
self,
- key: str,
+ run_id: str,
*,
- description: typing.Optional[str] = OMIT,
+ request: typing.Optional[RetryRunWebhookRequest] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> TagKey:
+ ) -> RunWebhookReplayResponse:
"""
- Update the description for a tag key.
+ Retry sending the webhook for a run
Parameters
----------
- key : str
- Tag key to update
+ run_id : str
+ The id of the task run or the workflow run.
- description : typing.Optional[str]
- Free-form description (max 500 chars). Pass null to clear.
+ request : typing.Optional[RetryRunWebhookRequest]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- TagKey
- Successfully updated tag key
+ RunWebhookReplayResponse
+ Successful Response
Examples
--------
- from skyvern import Skyvern
+ from skyvern import RetryRunWebhookRequest, Skyvern
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.update_tag_key(
- key="key",
+ client.retry_run_webhook(
+ run_id="tsk_123",
+ request=RetryRunWebhookRequest(),
)
"""
- _response = self._raw_client.update_tag_key(key, description=description, request_options=request_options)
+ _response = self._raw_client.retry_run_webhook(run_id, request=request, request_options=request_options)
return _response.data
- def list_tag_values(
- self, *, key: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None
- ) -> typing.List[TagValue]:
+ def get_run_timeline(
+ self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> typing.List[WorkflowRunTimeline]:
"""
- List the palette color and current workflow usage count for each grouped tag (key, value) for the organization. The frontend joins these onto tags by (key, value); workflow_count is the number of non-deleted workflows carrying the label and powers the per-label usage and delete blast-radius warnings.
+ Get timeline for a run (workflow run or task_v2 run)
Parameters
----------
- key : typing.Optional[str]
- Filter to values for a single tag key
+ run_id : str
+ The id of the workflow run or task_v2 run.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- typing.List[TagValue]
- Successfully retrieved tag values
+ typing.List[WorkflowRunTimeline]
+ Successfully retrieved run timeline
Examples
--------
@@ -1354,34 +1321,26 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.list_tag_values(
- key="key",
+ client.get_run_timeline(
+ run_id="wr_123",
)
"""
- _response = self._raw_client.list_tag_values(key=key, request_options=request_options)
+ _response = self._raw_client.get_run_timeline(run_id, request_options=request_options)
return _response.data
- def delete_tag_value(
- self, key: str, *, value: str, request_options: typing.Optional[RequestOptions] = None
- ) -> TagValueDeleteResponse:
+ def get_version(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.Dict[str, str]:
"""
- Soft-delete a grouped tag (key, value) and remove that label from every workflow carrying it (cascade). The value rides in the body so values containing '/' stay addressable. Returns how many workflows the label was removed from.
+ Returns the current Skyvern server version (git SHA for official builds).
Parameters
----------
- key : str
- Tag key (group)
-
- value : str
- Tag value (label) under the key to soft-delete.
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- TagValueDeleteResponse
- Successfully deleted tag value
+ typing.Dict[str, str]
+ Current server version
Examples
--------
@@ -1390,38 +1349,39 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.delete_tag_value(
- key="env",
- value="value",
- )
+ client.get_version()
"""
- _response = self._raw_client.delete_tag_value(key, value=value, request_options=request_options)
+ _response = self._raw_client.get_version(request_options=request_options)
return _response.data
- def update_tag_value(
- self, key: str, *, value: str, color: str, request_options: typing.Optional[RequestOptions] = None
- ) -> TagValue:
+ def get_runs_v2(
+ self,
+ *,
+ page: typing.Optional[int] = None,
+ page_size: typing.Optional[int] = None,
+ status: typing.Optional[typing.Union[RunStatus, typing.Sequence[RunStatus]]] = None,
+ search_key: typing.Optional[str] = None,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> typing.List[TaskRunListItem]:
"""
- Recolor a grouped tag (key, value). The value is supplied in the body so values containing '/' stay addressable. The new color must be a palette name.
-
Parameters
----------
- key : str
- Tag key (group)
+ page : typing.Optional[int]
+
+ page_size : typing.Optional[int]
- value : str
- Tag value (label) under the key to recolor.
+ status : typing.Optional[typing.Union[RunStatus, typing.Sequence[RunStatus]]]
- color : str
- Palette color name to assign to this (key, value).
+ search_key : typing.Optional[str]
+ Case-insensitive substring search (min 3 chars for trigram index).
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- TagValue
- Successfully recolored tag value
+ typing.List[TaskRunListItem]
+ Successful Response
Examples
--------
@@ -1430,39 +1390,30 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.update_tag_value(
- key="env",
- value="value",
- color="color",
+ client.get_runs_v2(
+ page=1,
+ page_size=1,
+ search_key="search_key",
)
"""
- _response = self._raw_client.update_tag_value(key, value=value, color=color, request_options=request_options)
+ _response = self._raw_client.get_runs_v2(
+ page=page, page_size=page_size, status=status, search_key=search_key, request_options=request_options
+ )
return _response.data
- def rename_tag_value(
- self, key: str, *, value: str, new_value: str, request_options: typing.Optional[RequestOptions] = None
- ) -> TagValueRenameResponse:
+ def upload_file(self, *, file: str, request_options: typing.Optional[RequestOptions] = None) -> UploadFileResponse:
"""
- Rename a grouped tag (key, value) to (key, new_value). The cascade re-tags every workflow carrying the old label; the new label inherits the old color. Both values ride in the body so values containing '/' stay addressable. Rejects with 409 when the new value already exists for the key.
-
Parameters
----------
- key : str
- Tag key (group)
-
- value : str
- Current tag value (label) under the key to rename.
-
- new_value : str
- New tag value (label) to rename it to.
+ file : str
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- TagValueRenameResponse
- Successfully renamed tag value
+ UploadFileResponse
+ Successful Response
Examples
--------
@@ -1471,38 +1422,44 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.rename_tag_value(
- key="env",
- value="value",
- new_value="new_value",
+ client.upload_file(
+ file="file",
)
"""
- _response = self._raw_client.rename_tag_value(
- key, value=value, new_value=new_value, request_options=request_options
- )
+ _response = self._raw_client.upload_file(file=file, request_options=request_options)
return _response.data
- def batch_get_workflow_tags(
+ def list_browser_profiles(
self,
*,
- workflow_permanent_ids: typing.Optional[str] = None,
+ page: typing.Optional[int] = None,
+ page_size: typing.Optional[int] = None,
+ include_deleted: typing.Optional[bool] = None,
+ search_key: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> WorkflowTagsBatchResponse:
+ ) -> typing.List[BrowserProfile]:
"""
- Batch fetch current tags for many workflows. Avoids N+1 on the workflows-list page.
+ Get all browser profiles for the organization
Parameters
----------
- workflow_permanent_ids : typing.Optional[str]
- Comma-separated workflow permanent IDs
+ page : typing.Optional[int]
+
+ page_size : typing.Optional[int]
+
+ include_deleted : typing.Optional[bool]
+ Include deleted browser profiles
+
+ search_key : typing.Optional[str]
+ Case-insensitive substring search across: browser profile name and description. A profile is returned if either field matches.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- WorkflowTagsBatchResponse
- Successfully retrieved tags
+ typing.List[BrowserProfile]
+ Successfully retrieved browser profiles
Examples
--------
@@ -1511,69 +1468,63 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.batch_get_workflow_tags(
- workflow_permanent_ids="workflow_permanent_ids",
+ client.list_browser_profiles(
+ page=1,
+ page_size=1,
+ include_deleted=True,
+ search_key="search_key",
)
"""
- _response = self._raw_client.batch_get_workflow_tags(
- workflow_permanent_ids=workflow_permanent_ids, request_options=request_options
+ _response = self._raw_client.list_browser_profiles(
+ page=page,
+ page_size=page_size,
+ include_deleted=include_deleted,
+ search_key=search_key,
+ request_options=request_options,
)
return _response.data
- def batch_get_workflow_tags_post(
+ def create_browser_profile(
self,
*,
- workflow_permanent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
+ name: str,
+ description: typing.Optional[str] = OMIT,
+ browser_session_id: typing.Optional[str] = OMIT,
+ workflow_run_id: typing.Optional[str] = OMIT,
+ proxy_location: typing.Optional[CreateBrowserProfileRequestProxyLocation] = OMIT,
+ proxy_session_id: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> WorkflowTagsBatchResponse:
+ ) -> BrowserProfile:
"""
- Batch fetch current tags for many workflows (POST variant for id lists exceeding URL length).
+ Create a blank browser profile, or create one from a persistent browser session or workflow run.
Parameters
----------
- workflow_permanent_ids : typing.Optional[typing.Sequence[str]]
- Workflow permanent IDs to fetch tags for.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
+ name : str
+ Name for the browser profile
- Returns
- -------
- WorkflowTagsBatchResponse
- Successfully retrieved tags
+ description : typing.Optional[str]
+ Optional profile description
- Examples
- --------
- from skyvern import Skyvern
+ browser_session_id : typing.Optional[str]
+ Persistent browser session to convert into a profile. Omit for a blank profile.
- client = Skyvern(
- api_key="YOUR_API_KEY",
- )
- client.batch_get_workflow_tags_post()
- """
- _response = self._raw_client.batch_get_workflow_tags_post(
- workflow_permanent_ids=workflow_permanent_ids, request_options=request_options
- )
- return _response.data
+ workflow_run_id : typing.Optional[str]
+ Workflow run whose persisted session should be captured. Omit for a blank profile.
- def batch_get_run_tags(
- self, *, workflow_run_ids: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None
- ) -> RunTagsBatchResponse:
- """
- Batch fetch current tags for many workflow runs. Avoids N+1 on run-list pages.
+ proxy_location : typing.Optional[CreateBrowserProfileRequestProxyLocation]
+ Optional proxy location for this profile's pinned proxy identity.
- Parameters
- ----------
- workflow_run_ids : typing.Optional[str]
- Comma-separated workflow run IDs
+ proxy_session_id : typing.Optional[str]
+ Explicit sticky-session id for this profile's pinned proxy identity.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- RunTagsBatchResponse
- Successfully retrieved tags
+ BrowserProfile
+ Successfully created browser profile
Examples
--------
@@ -1582,36 +1533,39 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.batch_get_run_tags(
- workflow_run_ids="workflow_run_ids",
+ client.create_browser_profile(
+ name="name",
)
"""
- _response = self._raw_client.batch_get_run_tags(
- workflow_run_ids=workflow_run_ids, request_options=request_options
+ _response = self._raw_client.create_browser_profile(
+ name=name,
+ description=description,
+ browser_session_id=browser_session_id,
+ workflow_run_id=workflow_run_id,
+ proxy_location=proxy_location,
+ proxy_session_id=proxy_session_id,
+ request_options=request_options,
)
return _response.data
- def batch_get_run_tags_post(
- self,
- *,
- workflow_run_ids: typing.Optional[typing.Sequence[str]] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> RunTagsBatchResponse:
+ def get_browser_profile(
+ self, profile_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> BrowserProfile:
"""
- Batch fetch current tags for many workflow runs (POST variant for id lists exceeding URL length).
+ Get a specific browser profile by ID
Parameters
----------
- workflow_run_ids : typing.Optional[typing.Sequence[str]]
- Workflow run IDs to fetch tags for.
+ profile_id : str
+ The ID of the browser profile. browser_profile_id starts with `bp_`
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- RunTagsBatchResponse
- Successfully retrieved tags
+ BrowserProfile
+ Successfully retrieved browser profile
Examples
--------
@@ -1620,37 +1574,30 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.batch_get_run_tags_post()
- """
- _response = self._raw_client.batch_get_run_tags_post(
- workflow_run_ids=workflow_run_ids, request_options=request_options
+ client.get_browser_profile(
+ profile_id="bp_123456",
)
+ """
+ _response = self._raw_client.get_browser_profile(profile_id, request_options=request_options)
return _response.data
- def get_run_artifacts(
- self,
- run_id: str,
- *,
- artifact_type: typing.Optional[typing.Union[ArtifactType, typing.Sequence[ArtifactType]]] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> typing.List[Artifact]:
+ def delete_browser_profile(
+ self, profile_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> None:
"""
- Get artifacts for a run
+ Delete a browser profile (soft delete)
Parameters
----------
- run_id : str
- The id of the task run or the workflow run.
-
- artifact_type : typing.Optional[typing.Union[ArtifactType, typing.Sequence[ArtifactType]]]
+ profile_id : str
+ The ID of the browser profile to delete. browser_profile_id starts with `bp_`
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- typing.List[Artifact]
- Successful Response
+ None
Examples
--------
@@ -1659,73 +1606,54 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.get_run_artifacts(
- run_id="run_id",
+ client.delete_browser_profile(
+ profile_id="bp_123456",
)
"""
- _response = self._raw_client.get_run_artifacts(
- run_id, artifact_type=artifact_type, request_options=request_options
- )
+ _response = self._raw_client.delete_browser_profile(profile_id, request_options=request_options)
return _response.data
- def retry_run_webhook(
+ def update_browser_profile(
self,
- run_id: str,
+ profile_id: str,
*,
- request: typing.Optional[RetryRunWebhookRequest] = None,
+ name: typing.Optional[str] = OMIT,
+ description: typing.Optional[str] = OMIT,
+ proxy_location: typing.Optional[UpdateBrowserProfileRequestProxyLocation] = OMIT,
+ proxy_session_id: typing.Optional[str] = OMIT,
+ rotate_proxy_session_id: typing.Optional[bool] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> RunWebhookReplayResponse:
+ ) -> BrowserProfile:
"""
- Retry sending the webhook for a run
+ Update a browser profile's name and/or description
Parameters
----------
- run_id : str
- The id of the task run or the workflow run.
-
- request : typing.Optional[RetryRunWebhookRequest]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
+ profile_id : str
+ The ID of the browser profile to update. browser_profile_id starts with `bp_`
- Returns
- -------
- RunWebhookReplayResponse
- Successful Response
+ name : typing.Optional[str]
+ New name for the browser profile
- Examples
- --------
- from skyvern import RetryRunWebhookRequest, Skyvern
+ description : typing.Optional[str]
+ New description for the browser profile
- client = Skyvern(
- api_key="YOUR_API_KEY",
- )
- client.retry_run_webhook(
- run_id="tsk_123",
- request=RetryRunWebhookRequest(),
- )
- """
- _response = self._raw_client.retry_run_webhook(run_id, request=request, request_options=request_options)
- return _response.data
+ proxy_location : typing.Optional[UpdateBrowserProfileRequestProxyLocation]
+ Optional proxy location for this profile's pinned proxy identity.
- def get_run_timeline(
- self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> typing.List[WorkflowRunTimeline]:
- """
- Get timeline for a run (workflow run or task_v2 run)
+ proxy_session_id : typing.Optional[str]
+ Opaque Skyvern-managed proxy sticky-session id.
- Parameters
- ----------
- run_id : str
- The id of the workflow run or task_v2 run.
+ rotate_proxy_session_id : typing.Optional[bool]
+ Rotate the Skyvern-managed proxy sticky-session id for this profile.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- typing.List[WorkflowRunTimeline]
- Successfully retrieved run timeline
+ BrowserProfile
+ Successfully updated browser profile
Examples
--------
@@ -1734,16 +1662,26 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.get_run_timeline(
- run_id="wr_123",
+ client.update_browser_profile(
+ profile_id="bp_123456",
)
"""
- _response = self._raw_client.get_run_timeline(run_id, request_options=request_options)
+ _response = self._raw_client.update_browser_profile(
+ profile_id,
+ name=name,
+ description=description,
+ proxy_location=proxy_location,
+ proxy_session_id=proxy_session_id,
+ rotate_proxy_session_id=rotate_proxy_session_id,
+ request_options=request_options,
+ )
return _response.data
- def get_version(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.Dict[str, str]:
+ def get_browser_sessions(
+ self, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> typing.List[BrowserSessionResponse]:
"""
- Returns the current Skyvern server version (git SHA for official builds).
+ Get all active browser sessions for the organization
Parameters
----------
@@ -1752,8 +1690,8 @@ class Skyvern:
Returns
-------
- typing.Dict[str, str]
- Current server version
+ typing.List[BrowserSessionResponse]
+ Successfully retrieved all active browser sessions
Examples
--------
@@ -1762,42 +1700,86 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.get_version()
+ client.get_browser_sessions()
"""
- _response = self._raw_client.get_version(request_options=request_options)
+ _response = self._raw_client.get_browser_sessions(request_options=request_options)
return _response.data
- def get_runs_v2(
+ def create_browser_session(
self,
*,
- page: typing.Optional[int] = None,
- page_size: typing.Optional[int] = None,
- status: typing.Optional[typing.Union[RunStatus, typing.Sequence[RunStatus]]] = None,
- search_key: typing.Optional[str] = None,
- run_type: typing.Optional[typing.Union[RunType, typing.Sequence[RunType]]] = None,
+ timeout: typing.Optional[int] = OMIT,
+ proxy_location: typing.Optional[CreateBrowserSessionRequestProxyLocation] = OMIT,
+ extensions: typing.Optional[typing.Sequence[Extensions]] = OMIT,
+ browser_type: typing.Optional[PersistentBrowserType] = OMIT,
+ browser_profile_id: typing.Optional[str] = OMIT,
+ generate_browser_profile: typing.Optional[bool] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> typing.List[TaskRunListItem]:
+ ) -> BrowserSessionResponse:
"""
+ Create a browser session that persists across multiple runs
+
Parameters
----------
- page : typing.Optional[int]
-
- page_size : typing.Optional[int]
-
- status : typing.Optional[typing.Union[RunStatus, typing.Sequence[RunStatus]]]
-
- search_key : typing.Optional[str]
- Case-insensitive substring search (min 3 chars for trigram index).
+ timeout : typing.Optional[int]
+ Timeout in minutes for the session. Timeout is applied after the session is started. Must be between 5 and 1440. Defaults to 60.
- run_type : typing.Optional[typing.Union[RunType, typing.Sequence[RunType]]]
+ proxy_location : typing.Optional[CreateBrowserSessionRequestProxyLocation]
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
+ Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
+
+ Available geotargeting options:
+ - RESIDENTIAL: the default value. Skyvern Cloud uses a random US residential proxy.
+ - RESIDENTIAL_ES: Spain
+ - RESIDENTIAL_IE: Ireland
+ - RESIDENTIAL_GB: United Kingdom
+ - RESIDENTIAL_IN: India
+ - RESIDENTIAL_JP: Japan
+ - RESIDENTIAL_FR: France
+ - RESIDENTIAL_DE: Germany
+ - RESIDENTIAL_NZ: New Zealand
+ - RESIDENTIAL_PH: Philippines
+ - RESIDENTIAL_KR: South Korea
+ - RESIDENTIAL_SA: Saudi Arabia
+ - RESIDENTIAL_ZA: South Africa
+ - RESIDENTIAL_AR: Argentina
+ - RESIDENTIAL_AU: Australia
+ - RESIDENTIAL_BR: Brazil
+ - RESIDENTIAL_TR: Turkey
+ - RESIDENTIAL_CA: Canada
+ - RESIDENTIAL_MX: Mexico
+ - RESIDENTIAL_IT: Italy
+ - RESIDENTIAL_NL: Netherlands
+ - RESIDENTIAL_ISP: ISP proxy
+ - US-CA: California (deprecated, routes through RESIDENTIAL_ISP)
+ - US-NY: New York (deprecated, routes through RESIDENTIAL_ISP)
+ - US-TX: Texas (deprecated, routes through RESIDENTIAL_ISP)
+ - US-FL: Florida (deprecated, routes through RESIDENTIAL_ISP)
+ - US-WA: Washington (deprecated, routes through RESIDENTIAL_ISP)
+ - NONE: No proxy
+
+ For self-hosted deployments, you can pass a custom proxy URL as a dict: {"url": "http://user:[email protected]:8080"}. This routes the browser through your own proxy server and takes precedence over any globally configured proxy pool.
+ Can also be a GeoTarget object for granular city/state targeting: {"country": "US", "subdivision": "CA", "city": "San Francisco"}, or a custom proxy URL dict for self-hosted deployments: {"url": "http://user:[email protected]:8080"}
+
+ extensions : typing.Optional[typing.Sequence[Extensions]]
+ A list of extensions to install in the browser session.
+
+ browser_type : typing.Optional[PersistentBrowserType]
+ The type of browser to use for the session.
+
+ browser_profile_id : typing.Optional[str]
+ ID of a browser profile to load into this session (restores cookies, localStorage, etc.). browser_profile_id starts with `bp_`.
+
+ generate_browser_profile : typing.Optional[bool]
+ When true, the session's browser profile (cookies, localStorage, etc.) is saved to storage when the session ends so it can be turned into a reusable browser profile. Defaults to false to avoid storing profiles for sessions that never need them. Sessions started with a browser_profile_id always persist their profile regardless of this flag.
+
+ request_options : typing.Optional[RequestOptions]
+ Request-specific configuration.
Returns
-------
- typing.List[TaskRunListItem]
- Successful Response
+ BrowserSessionResponse
+ Successfully created browser session
Examples
--------
@@ -1806,35 +1788,37 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.get_runs_v2(
- page=1,
- page_size=1,
- search_key="search_key",
- )
+ client.create_browser_session()
"""
- _response = self._raw_client.get_runs_v2(
- page=page,
- page_size=page_size,
- status=status,
- search_key=search_key,
- run_type=run_type,
+ _response = self._raw_client.create_browser_session(
+ timeout=timeout,
+ proxy_location=proxy_location,
+ extensions=extensions,
+ browser_type=browser_type,
+ browser_profile_id=browser_profile_id,
+ generate_browser_profile=generate_browser_profile,
request_options=request_options,
)
return _response.data
- def upload_file(self, *, file: str, request_options: typing.Optional[RequestOptions] = None) -> UploadFileResponse:
+ def close_browser_session(
+ self, browser_session_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> typing.Optional[typing.Any]:
"""
+ Close a session. Once closed, the session cannot be used again.
+
Parameters
----------
- file : str
+ browser_session_id : str
+ The ID of the browser session to close. completed_at will be set when the browser session is closed. browser_session_id starts with `pbs_`
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- UploadFileResponse
- Successful Response
+ typing.Optional[typing.Any]
+ Successfully closed browser session
Examples
--------
@@ -1843,48 +1827,31 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.upload_file(
- file="file",
+ client.close_browser_session(
+ browser_session_id="pbs_123456",
)
"""
- _response = self._raw_client.upload_file(file=file, request_options=request_options)
+ _response = self._raw_client.close_browser_session(browser_session_id, request_options=request_options)
return _response.data
- def list_browser_profiles(
- self,
- *,
- page: typing.Optional[int] = None,
- page_size: typing.Optional[int] = None,
- include_deleted: typing.Optional[bool] = None,
- search_key: typing.Optional[str] = None,
- managed: typing.Optional[bool] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> typing.List[BrowserProfile]:
+ def get_browser_session(
+ self, browser_session_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> BrowserSessionResponse:
"""
- Get all browser profiles for the organization
+ Get details about a specific browser session, including the browser address for cdp connection.
Parameters
----------
- page : typing.Optional[int]
-
- page_size : typing.Optional[int]
-
- include_deleted : typing.Optional[bool]
- Include deleted browser profiles
-
- search_key : typing.Optional[str]
- Case-insensitive substring search across: browser profile name and description. A profile is returned if either field matches.
-
- managed : typing.Optional[bool]
- Omit to return all profiles; false returns only user-created profiles; true returns only auto-managed profiles.
+ browser_session_id : str
+ The ID of the browser session. browser_session_id starts with `pbs_`
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- typing.List[BrowserProfile]
- Successfully retrieved browser profiles
+ BrowserSessionResponse
+ Successfully retrieved browser session details
Examples
--------
@@ -1893,65 +1860,38 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.list_browser_profiles(
- page=1,
- page_size=1,
- include_deleted=True,
- search_key="search_key",
- managed=True,
+ client.get_browser_session(
+ browser_session_id="pbs_123456",
)
"""
- _response = self._raw_client.list_browser_profiles(
- page=page,
- page_size=page_size,
- include_deleted=include_deleted,
- search_key=search_key,
- managed=managed,
- request_options=request_options,
- )
+ _response = self._raw_client.get_browser_session(browser_session_id, request_options=request_options)
return _response.data
- def create_browser_profile(
+ def update_browser_session(
self,
+ browser_session_id: str,
*,
- name: str,
- description: typing.Optional[str] = OMIT,
- browser_session_id: typing.Optional[str] = OMIT,
- workflow_run_id: typing.Optional[str] = OMIT,
- proxy_location: typing.Optional[CreateBrowserProfileRequestProxyLocation] = OMIT,
- proxy_session_id: typing.Optional[str] = OMIT,
+ generate_browser_profile: bool,
request_options: typing.Optional[RequestOptions] = None,
- ) -> BrowserProfile:
+ ) -> BrowserSessionResponse:
"""
- Create a blank browser profile, or create one from a persistent browser session or workflow run.
+ Update a live browser session. Currently supports toggling generate_browser_profile, which is read when the session ends to decide whether to save its browser profile.
Parameters
----------
- name : str
- Name for the browser profile
-
- description : typing.Optional[str]
- Optional profile description
-
- browser_session_id : typing.Optional[str]
- Persistent browser session to convert into a profile. Omit for a blank profile.
-
- workflow_run_id : typing.Optional[str]
- Workflow run whose persisted session should be captured. Omit for a blank profile.
-
- proxy_location : typing.Optional[CreateBrowserProfileRequestProxyLocation]
- Optional proxy location for this profile's pinned proxy identity.
+ browser_session_id : str
+ The ID of the browser session. browser_session_id starts with `pbs_`
- proxy_session_id : typing.Optional[str]
- Explicit sticky-session id for this profile's pinned proxy identity.
+ generate_browser_profile : bool
+ Enable or disable saving this session's browser profile when it ends. Can be toggled while the session is still alive; the value is read at session teardown.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- BrowserProfile
- Successfully created browser profile
+ BrowserSessionResponse
+ Successfully updated browser session
Examples
--------
@@ -1960,71 +1900,65 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.create_browser_profile(
- name="name",
+ client.update_browser_session(
+ browser_session_id="pbs_123456",
+ generate_browser_profile=True,
)
"""
- _response = self._raw_client.create_browser_profile(
- name=name,
- description=description,
- browser_session_id=browser_session_id,
- workflow_run_id=workflow_run_id,
- proxy_location=proxy_location,
- proxy_session_id=proxy_session_id,
- request_options=request_options,
+ _response = self._raw_client.update_browser_session(
+ browser_session_id, generate_browser_profile=generate_browser_profile, request_options=request_options
)
return _response.data
- def get_browser_profile(
- self, profile_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> BrowserProfile:
+ def send_totp_code(
+ self,
+ *,
+ totp_identifier: str,
+ content: str,
+ task_id: typing.Optional[str] = OMIT,
+ workflow_id: typing.Optional[str] = OMIT,
+ workflow_run_id: typing.Optional[str] = OMIT,
+ source: typing.Optional[str] = OMIT,
+ expired_at: typing.Optional[dt.datetime] = OMIT,
+ type: typing.Optional[OtpType] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> TotpCode:
"""
- Get a specific browser profile by ID
+ Forward a TOTP (2FA, MFA) email or sms message containing the code to Skyvern. This endpoint stores the code in database so that Skyvern can use it while running tasks/workflows.
Parameters
----------
- profile_id : str
- The ID of the browser profile. browser_profile_id starts with `bp_`
+ totp_identifier : str
+ The identifier of the TOTP code. It can be the email address, phone number, or the identifier of the user.
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
+ content : str
+ The content of the TOTP code. It can be the email content that contains the TOTP code, or the sms message that contains the TOTP code. Skyvern will automatically extract the TOTP code from the content.
- Returns
- -------
- BrowserProfile
- Successfully retrieved browser profile
+ task_id : typing.Optional[str]
+ The task_id the totp code is for. It can be the task_id of the task that the TOTP code is for.
- Examples
- --------
- from skyvern import Skyvern
+ workflow_id : typing.Optional[str]
+ The workflow ID the TOTP code is for. It can be the workflow ID of the workflow that the TOTP code is for.
- client = Skyvern(
- api_key="YOUR_API_KEY",
- )
- client.get_browser_profile(
- profile_id="bp_123456",
- )
- """
- _response = self._raw_client.get_browser_profile(profile_id, request_options=request_options)
- return _response.data
+ workflow_run_id : typing.Optional[str]
+ The workflow run id that the TOTP code is for. It can be the workflow run id of the workflow run that the TOTP code is for.
- def delete_browser_profile(
- self, profile_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> None:
- """
- Delete a browser profile (soft delete)
+ source : typing.Optional[str]
+ An optional field. The source of the TOTP code. e.g. email, sms, etc.
- Parameters
- ----------
- profile_id : str
- The ID of the browser profile to delete. browser_profile_id starts with `bp_`
+ expired_at : typing.Optional[dt.datetime]
+ The timestamp when the TOTP code expires
+
+ type : typing.Optional[OtpType]
+ Optional. If provided, forces extraction of this specific OTP type (totp or magic_link). Use this when the content contains multiple OTP types and you want to specify which one to extract.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- None
+ TotpCode
+ Successful Response
Examples
--------
@@ -2033,54 +1967,61 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.delete_browser_profile(
- profile_id="bp_123456",
+ client.send_totp_code(
+ totp_identifier="[email protected]",
+ content="Hello, your verification code is 123456",
)
"""
- _response = self._raw_client.delete_browser_profile(profile_id, request_options=request_options)
+ _response = self._raw_client.send_totp_code(
+ totp_identifier=totp_identifier,
+ content=content,
+ task_id=task_id,
+ workflow_id=workflow_id,
+ workflow_run_id=workflow_run_id,
+ source=source,
+ expired_at=expired_at,
+ type=type,
+ request_options=request_options,
+ )
return _response.data
- def update_browser_profile(
+ def get_credentials(
self,
- profile_id: str,
*,
- name: typing.Optional[str] = OMIT,
- description: typing.Optional[str] = OMIT,
- proxy_location: typing.Optional[UpdateBrowserProfileRequestProxyLocation] = OMIT,
- proxy_session_id: typing.Optional[str] = OMIT,
- rotate_proxy_session_id: typing.Optional[bool] = OMIT,
+ page: typing.Optional[int] = None,
+ page_size: typing.Optional[int] = None,
+ vault_type: typing.Optional[CredentialVaultType] = None,
+ credential_type: typing.Optional[SkyvernForgeSdkSchemasCredentialsCredentialType] = None,
+ search: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> BrowserProfile:
+ ) -> typing.List[CredentialResponse]:
"""
- Update a browser profile's name and/or description
+ Retrieves a paginated list of credentials for the current organization
Parameters
----------
- profile_id : str
- The ID of the browser profile to update. browser_profile_id starts with `bp_`
-
- name : typing.Optional[str]
- New name for the browser profile
+ page : typing.Optional[int]
+ Page number for pagination
- description : typing.Optional[str]
- New description for the browser profile
+ page_size : typing.Optional[int]
+ Number of items per page
- proxy_location : typing.Optional[UpdateBrowserProfileRequestProxyLocation]
- Optional proxy location for this profile's pinned proxy identity.
+ vault_type : typing.Optional[CredentialVaultType]
+ Filter credentials by vault type (e.g. 'skyvern', 'custom', 'bitwarden', 'azure_vault')
- proxy_session_id : typing.Optional[str]
- Opaque Skyvern-managed proxy sticky-session id.
+ credential_type : typing.Optional[SkyvernForgeSdkSchemasCredentialsCredentialType]
+ Filter credentials by type (e.g. 'password', 'credit_card', 'secret')
- rotate_proxy_session_id : typing.Optional[bool]
- Rotate the Skyvern-managed proxy sticky-session id for this profile.
+ search : typing.Optional[str]
+ Case-insensitive search across credential name, username, secret label, and card details
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- BrowserProfile
- Successfully updated browser profile
+ typing.List[CredentialResponse]
+ Successful Response
Examples
--------
@@ -2089,168 +2030,193 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.update_browser_profile(
- profile_id="bp_123456",
+ client.get_credentials(
+ page=1,
+ page_size=10,
+ vault_type="skyvern",
+ credential_type="password",
+ search="search",
)
"""
- _response = self._raw_client.update_browser_profile(
- profile_id,
- name=name,
- description=description,
- proxy_location=proxy_location,
- proxy_session_id=proxy_session_id,
- rotate_proxy_session_id=rotate_proxy_session_id,
+ _response = self._raw_client.get_credentials(
+ page=page,
+ page_size=page_size,
+ vault_type=vault_type,
+ credential_type=credential_type,
+ search=search,
request_options=request_options,
)
return _response.data
- def get_browser_sessions(
- self, *, request_options: typing.Optional[RequestOptions] = None
- ) -> typing.List[BrowserSessionResponse]:
+ def create_credential(
+ self,
+ *,
+ name: str,
+ credential_type: SkyvernForgeSdkSchemasCredentialsCredentialType,
+ credential: CreateCredentialRequestCredential,
+ vault_type: typing.Optional[CredentialVaultType] = OMIT,
+ proxy_location: typing.Optional[CreateCredentialRequestProxyLocation] = OMIT,
+ proxy_session_id: typing.Optional[str] = OMIT,
+ rotate_proxy_session_id: typing.Optional[bool] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> CredentialResponse:
"""
- Get all active browser sessions for the organization
+ Creates a new credential for the current organization
Parameters
----------
+ name : str
+ Name of the credential
+
+ credential_type : SkyvernForgeSdkSchemasCredentialsCredentialType
+ Type of credential to create
+
+ credential : CreateCredentialRequestCredential
+ The credential data to store
+
+ vault_type : typing.Optional[CredentialVaultType]
+ Which vault to store this credential in. If omitted, uses the instance default. Use this to mix Skyvern-hosted and custom credentials within the same organization.
+
+ proxy_location : typing.Optional[CreateCredentialRequestProxyLocation]
+ Optional proxy location for this credential's pinned proxy identity.
+
+ proxy_session_id : typing.Optional[str]
+ Optional advanced reuse key for this credential's pinned proxy identity.
+
+ rotate_proxy_session_id : typing.Optional[bool]
+ Rotate the Skyvern-managed proxy sticky-session id when updating this credential.
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- typing.List[BrowserSessionResponse]
- Successfully retrieved all active browser sessions
+ CredentialResponse
+ Successful Response
Examples
--------
- from skyvern import Skyvern
+ from skyvern import NonEmptyPasswordCredential, Skyvern
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.get_browser_sessions()
+ client.create_credential(
+ name="Amazon Login",
+ credential_type="password",
+ credential=NonEmptyPasswordCredential(
+ password="securepassword123",
+ username="[email protected]",
+ ),
+ )
"""
- _response = self._raw_client.get_browser_sessions(request_options=request_options)
+ _response = self._raw_client.create_credential(
+ name=name,
+ credential_type=credential_type,
+ credential=credential,
+ vault_type=vault_type,
+ proxy_location=proxy_location,
+ proxy_session_id=proxy_session_id,
+ rotate_proxy_session_id=rotate_proxy_session_id,
+ request_options=request_options,
+ )
return _response.data
- def create_browser_session(
+ def update_credential(
self,
+ credential_id: str,
*,
- timeout: typing.Optional[int] = OMIT,
- proxy_location: typing.Optional[CreateBrowserSessionRequestProxyLocation] = OMIT,
+ name: str,
+ credential_type: SkyvernForgeSdkSchemasCredentialsCredentialType,
+ credential: CreateCredentialRequestCredential,
+ vault_type: typing.Optional[CredentialVaultType] = OMIT,
+ proxy_location: typing.Optional[CreateCredentialRequestProxyLocation] = OMIT,
proxy_session_id: typing.Optional[str] = OMIT,
- extensions: typing.Optional[typing.Sequence[Extensions]] = OMIT,
- browser_type: typing.Optional[PersistentBrowserType] = OMIT,
- browser_profile_id: typing.Optional[str] = OMIT,
- generate_browser_profile: typing.Optional[bool] = OMIT,
+ rotate_proxy_session_id: typing.Optional[bool] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> BrowserSessionResponse:
+ ) -> CredentialResponse:
"""
- Create a browser session that persists across multiple runs
+ Overwrites the stored credential data (e.g. username/password) while keeping the same credential_id.
Parameters
----------
- timeout : typing.Optional[int]
- Timeout in minutes for the session. Timeout is applied after the session is started. Must be between 5 and 1440. Defaults to 60.
-
- proxy_location : typing.Optional[CreateBrowserSessionRequestProxyLocation]
-
- Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
+ credential_id : str
+ The unique identifier of the credential to update
- Available geotargeting options:
- - RESIDENTIAL: the default value. Skyvern Cloud uses a random US residential proxy.
- - RESIDENTIAL_ES: Spain
- - RESIDENTIAL_IE: Ireland
- - RESIDENTIAL_GB: United Kingdom
- - RESIDENTIAL_IN: India
- - RESIDENTIAL_JP: Japan
- - RESIDENTIAL_FR: France
- - RESIDENTIAL_DE: Germany
- - RESIDENTIAL_NZ: New Zealand
- - RESIDENTIAL_PH: Philippines
- - RESIDENTIAL_KR: South Korea
- - RESIDENTIAL_SA: Saudi Arabia
- - RESIDENTIAL_ZA: South Africa
- - RESIDENTIAL_AR: Argentina
- - RESIDENTIAL_AU: Australia
- - RESIDENTIAL_BR: Brazil
- - RESIDENTIAL_TR: Turkey
- - RESIDENTIAL_CA: Canada
- - RESIDENTIAL_MX: Mexico
- - RESIDENTIAL_IT: Italy
- - RESIDENTIAL_NL: Netherlands
- - RESIDENTIAL_ISP: ISP proxy
- - US-CA: California (deprecated, routes through RESIDENTIAL_ISP)
- - US-NY: New York (deprecated, routes through RESIDENTIAL_ISP)
- - US-TX: Texas (deprecated, routes through RESIDENTIAL_ISP)
- - US-FL: Florida (deprecated, routes through RESIDENTIAL_ISP)
- - US-WA: Washington (deprecated, routes through RESIDENTIAL_ISP)
- - NONE: No proxy
+ name : str
+ Name of the credential
- For self-hosted deployments, you can pass a custom proxy URL as a dict: {"url": "http://user:[email protected]:8080"}. This routes the browser through your own proxy server and takes precedence over any globally configured proxy pool.
- Can also be a GeoTarget object for granular city/state targeting: {"country": "US", "subdivision": "CA", "city": "San Francisco"}, or a custom proxy URL dict for self-hosted deployments: {"url": "http://user:[email protected]:8080"}
+ credential_type : SkyvernForgeSdkSchemasCredentialsCredentialType
+ Type of credential to create
- proxy_session_id : typing.Optional[str]
- Opaque Skyvern-managed proxy sticky-session id for pinned Residential ISP sessions.
+ credential : CreateCredentialRequestCredential
+ The credential data to store
- extensions : typing.Optional[typing.Sequence[Extensions]]
- A list of extensions to install in the browser session.
+ vault_type : typing.Optional[CredentialVaultType]
+ Which vault to store this credential in. If omitted, uses the instance default. Use this to mix Skyvern-hosted and custom credentials within the same organization.
- browser_type : typing.Optional[PersistentBrowserType]
- The type of browser to use for the session.
+ proxy_location : typing.Optional[CreateCredentialRequestProxyLocation]
+ Optional proxy location for this credential's pinned proxy identity.
- browser_profile_id : typing.Optional[str]
- ID of a browser profile to load into this session (restores cookies, localStorage, etc.). browser_profile_id starts with `bp_`.
+ proxy_session_id : typing.Optional[str]
+ Optional advanced reuse key for this credential's pinned proxy identity.
- generate_browser_profile : typing.Optional[bool]
- When true, the session's browser profile (cookies, localStorage, etc.) is saved to storage when the session ends so it can be turned into a reusable browser profile. Defaults to false to avoid storing profiles for sessions that never need them. Sessions started with a browser_profile_id always persist their profile regardless of this flag.
+ rotate_proxy_session_id : typing.Optional[bool]
+ Rotate the Skyvern-managed proxy sticky-session id when updating this credential.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- BrowserSessionResponse
- Successfully created browser session
+ CredentialResponse
+ Successful Response
Examples
--------
- from skyvern import Skyvern
+ from skyvern import NonEmptyPasswordCredential, Skyvern
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.create_browser_session()
+ client.update_credential(
+ credential_id="cred_1234567890",
+ name="Amazon Login",
+ credential_type="password",
+ credential=NonEmptyPasswordCredential(
+ password="securepassword123",
+ username="[email protected]",
+ ),
+ )
"""
- _response = self._raw_client.create_browser_session(
- timeout=timeout,
+ _response = self._raw_client.update_credential(
+ credential_id,
+ name=name,
+ credential_type=credential_type,
+ credential=credential,
+ vault_type=vault_type,
proxy_location=proxy_location,
proxy_session_id=proxy_session_id,
- extensions=extensions,
- browser_type=browser_type,
- browser_profile_id=browser_profile_id,
- generate_browser_profile=generate_browser_profile,
+ rotate_proxy_session_id=rotate_proxy_session_id,
request_options=request_options,
)
return _response.data
- def close_browser_session(
- self, browser_session_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> typing.Optional[typing.Any]:
+ def delete_credential(self, credential_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
"""
- Close a session. Once closed, the session cannot be used again.
+ Deletes a specific credential by its ID
Parameters
----------
- browser_session_id : str
- The ID of the browser session to close. completed_at will be set when the browser session is closed. browser_session_id starts with `pbs_`
+ credential_id : str
+ The unique identifier of the credential to delete
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- typing.Optional[typing.Any]
- Successfully closed browser session
+ None
Examples
--------
@@ -2259,31 +2225,31 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.close_browser_session(
- browser_session_id="pbs_123456",
+ client.delete_credential(
+ credential_id="cred_1234567890",
)
"""
- _response = self._raw_client.close_browser_session(browser_session_id, request_options=request_options)
+ _response = self._raw_client.delete_credential(credential_id, request_options=request_options)
return _response.data
- def get_browser_session(
- self, browser_session_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> BrowserSessionResponse:
+ def get_credential(
+ self, credential_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> CredentialResponse:
"""
- Get details about a specific browser session, including the browser address for cdp connection.
+ Retrieves a specific credential by its ID
Parameters
----------
- browser_session_id : str
- The ID of the browser session. browser_session_id starts with `pbs_`
+ credential_id : str
+ The unique identifier of the credential
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- BrowserSessionResponse
- Successfully retrieved browser session details
+ CredentialResponse
+ Successful Response
Examples
--------
@@ -2292,104 +2258,120 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.get_browser_session(
- browser_session_id="pbs_123456",
+ client.get_credential(
+ credential_id="cred_1234567890",
)
"""
- _response = self._raw_client.get_browser_session(browser_session_id, request_options=request_options)
+ _response = self._raw_client.get_credential(credential_id, request_options=request_options)
return _response.data
- def update_browser_session(
+ def login(
self,
- browser_session_id: str,
*,
- generate_browser_profile: bool,
+ credential_type: SkyvernSchemasCredentialTypeCredentialType,
+ user_agent: typing.Optional[str] = None,
+ url: typing.Optional[str] = OMIT,
+ webhook_url: typing.Optional[str] = OMIT,
+ proxy_location: typing.Optional[ProxyLocation] = OMIT,
+ totp_identifier: typing.Optional[str] = OMIT,
+ totp_url: typing.Optional[str] = OMIT,
+ browser_session_id: typing.Optional[str] = OMIT,
+ browser_profile_id: typing.Optional[str] = OMIT,
+ browser_address: typing.Optional[str] = OMIT,
+ extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ max_screenshot_scrolling_times: typing.Optional[int] = OMIT,
+ prompt: typing.Optional[str] = OMIT,
+ credential_id: typing.Optional[str] = OMIT,
+ bitwarden_collection_id: typing.Optional[str] = OMIT,
+ bitwarden_item_id: typing.Optional[str] = OMIT,
+ onepassword_vault_id: typing.Optional[str] = OMIT,
+ onepassword_item_id: typing.Optional[str] = OMIT,
+ azure_vault_name: typing.Optional[str] = OMIT,
+ azure_vault_username_key: typing.Optional[str] = OMIT,
+ azure_vault_password_key: typing.Optional[str] = OMIT,
+ azure_vault_totp_secret_key: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> BrowserSessionResponse:
+ ) -> WorkflowRunResponse:
"""
- Update a live browser session. Currently supports toggling generate_browser_profile, which is read when the session ends to decide whether to save its browser profile.
+ Log in to a website using either credential stored in Skyvern, Bitwarden, 1Password, or Azure Vault
Parameters
----------
- browser_session_id : str
- The ID of the browser session. browser_session_id starts with `pbs_`
+ credential_type : SkyvernSchemasCredentialTypeCredentialType
+ Where to get the credential from
- generate_browser_profile : bool
- Enable or disable saving this session's browser profile when it ends. Can be toggled while the session is still alive; the value is read at session teardown.
+ user_agent : typing.Optional[str]
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
+ url : typing.Optional[str]
+ Website URL
- Returns
- -------
- BrowserSessionResponse
- Successfully updated browser session
+ webhook_url : typing.Optional[str]
+ Webhook URL to send status updates
- Examples
- --------
- from skyvern import Skyvern
+ proxy_location : typing.Optional[ProxyLocation]
+ Proxy location to use
- client = Skyvern(
- api_key="YOUR_API_KEY",
- )
- client.update_browser_session(
- browser_session_id="pbs_123456",
- generate_browser_profile=True,
- )
- """
- _response = self._raw_client.update_browser_session(
- browser_session_id, generate_browser_profile=generate_browser_profile, request_options=request_options
- )
- return _response.data
+ totp_identifier : typing.Optional[str]
+ Identifier for TOTP (Time-based One-Time Password) if required
- def send_totp_code(
- self,
- *,
- totp_identifier: str,
- content: str,
- task_id: typing.Optional[str] = OMIT,
- workflow_id: typing.Optional[str] = OMIT,
- workflow_run_id: typing.Optional[str] = OMIT,
- source: typing.Optional[str] = OMIT,
- expired_at: typing.Optional[dt.datetime] = OMIT,
- type: typing.Optional[OtpType] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> TotpCode:
- """
- Forward a TOTP (2FA, MFA) email or sms message containing the code to Skyvern. This endpoint stores the code in database so that Skyvern can use it while running tasks/workflows.
+ totp_url : typing.Optional[str]
+ TOTP URL to fetch one-time passwords
- Parameters
- ----------
- totp_identifier : str
- The identifier of the TOTP code. It can be the email address, phone number, or the identifier of the user.
+ browser_session_id : typing.Optional[str]
+ ID of the browser session to use, which is prefixed by `pbs_` e.g. `pbs_123456`
- content : str
- The content of the TOTP code. It can be the email content that contains the TOTP code, or the sms message that contains the TOTP code. Skyvern will automatically extract the TOTP code from the content.
+ browser_profile_id : typing.Optional[str]
+ ID of a browser profile to reuse for this run
- task_id : typing.Optional[str]
- The task_id the totp code is for. It can be the task_id of the task that the TOTP code is for.
+ browser_address : typing.Optional[str]
+ The CDP address for the task.
- workflow_id : typing.Optional[str]
- The workflow ID the TOTP code is for. It can be the workflow ID of the workflow that the TOTP code is for.
+ extra_http_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ Additional HTTP headers to include in requests
- workflow_run_id : typing.Optional[str]
- The workflow run id that the TOTP code is for. It can be the workflow run id of the workflow run that the TOTP code is for.
+ cdp_connect_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ HTTP headers attached ONLY to the CDP WebSocket handshake when connecting to a remote browser via browser_address. Never forwarded to target websites.
- source : typing.Optional[str]
- An optional field. The source of the TOTP code. e.g. email, sms, etc.
+ max_screenshot_scrolling_times : typing.Optional[int]
+ Maximum number of times to scroll for screenshots
- expired_at : typing.Optional[dt.datetime]
- The timestamp when the TOTP code expires
+ prompt : typing.Optional[str]
+ Login instructions. Skyvern has default prompt/instruction for login if this field is not provided.
- type : typing.Optional[OtpType]
- Optional. If provided, forces extraction of this specific OTP type (totp or magic_link). Use this when the content contains multiple OTP types and you want to specify which one to extract.
+ credential_id : typing.Optional[str]
+ ID of the Skyvern credential to use for login.
+
+ bitwarden_collection_id : typing.Optional[str]
+ Bitwarden collection ID. You can find it in the Bitwarden collection URL. e.g. `https://vault.bitwarden.com/vaults/collection_id/items`
+
+ bitwarden_item_id : typing.Optional[str]
+ Bitwarden item ID
+
+ onepassword_vault_id : typing.Optional[str]
+ 1Password vault ID
+
+ onepassword_item_id : typing.Optional[str]
+ 1Password item ID
+
+ azure_vault_name : typing.Optional[str]
+ Azure Vault Name
+
+ azure_vault_username_key : typing.Optional[str]
+ Azure Vault username key
+
+ azure_vault_password_key : typing.Optional[str]
+ Azure Vault password key
+
+ azure_vault_totp_secret_key : typing.Optional[str]
+ Azure Vault TOTP secret key
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- TotpCode
+ WorkflowRunResponse
Successful Response
Examples
@@ -2399,60 +2381,118 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.send_totp_code(
- totp_identifier="[email protected]",
- content="Hello, your verification code is 123456",
+ client.login(
+ user_agent="x-user-agent",
+ credential_type="skyvern",
)
"""
- _response = self._raw_client.send_totp_code(
+ _response = self._raw_client.login(
+ credential_type=credential_type,
+ user_agent=user_agent,
+ url=url,
+ webhook_url=webhook_url,
+ proxy_location=proxy_location,
totp_identifier=totp_identifier,
- content=content,
- task_id=task_id,
- workflow_id=workflow_id,
- workflow_run_id=workflow_run_id,
- source=source,
- expired_at=expired_at,
- type=type,
+ totp_url=totp_url,
+ browser_session_id=browser_session_id,
+ browser_profile_id=browser_profile_id,
+ browser_address=browser_address,
+ extra_http_headers=extra_http_headers,
+ cdp_connect_headers=cdp_connect_headers,
+ max_screenshot_scrolling_times=max_screenshot_scrolling_times,
+ prompt=prompt,
+ credential_id=credential_id,
+ bitwarden_collection_id=bitwarden_collection_id,
+ bitwarden_item_id=bitwarden_item_id,
+ onepassword_vault_id=onepassword_vault_id,
+ onepassword_item_id=onepassword_item_id,
+ azure_vault_name=azure_vault_name,
+ azure_vault_username_key=azure_vault_username_key,
+ azure_vault_password_key=azure_vault_password_key,
+ azure_vault_totp_secret_key=azure_vault_totp_secret_key,
request_options=request_options,
)
return _response.data
- def get_credentials(
+ def download_files(
self,
*,
- page: typing.Optional[int] = None,
- page_size: typing.Optional[int] = None,
- vault_type: typing.Optional[CredentialVaultType] = None,
- credential_type: typing.Optional[SkyvernForgeSdkSchemasCredentialsCredentialType] = None,
- search: typing.Optional[str] = None,
+ navigation_goal: str,
+ user_agent: typing.Optional[str] = None,
+ url: typing.Optional[str] = OMIT,
+ webhook_url: typing.Optional[str] = OMIT,
+ proxy_location: typing.Optional[ProxyLocation] = OMIT,
+ totp_identifier: typing.Optional[str] = OMIT,
+ totp_url: typing.Optional[str] = OMIT,
+ browser_session_id: typing.Optional[str] = OMIT,
+ browser_profile_id: typing.Optional[str] = OMIT,
+ browser_address: typing.Optional[str] = OMIT,
+ extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ max_screenshot_scrolling_times: typing.Optional[int] = OMIT,
+ download_suffix: typing.Optional[str] = OMIT,
+ download_timeout: typing.Optional[float] = OMIT,
+ max_steps_per_run: typing.Optional[int] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> typing.List[CredentialResponse]:
+ ) -> WorkflowRunResponse:
"""
- Retrieves a paginated list of credentials for the current organization
+ Download a file from a website by navigating and clicking download buttons
Parameters
----------
- page : typing.Optional[int]
- Page number for pagination
+ navigation_goal : str
+ Instructions for navigating to and downloading the file
- page_size : typing.Optional[int]
- Number of items per page
+ user_agent : typing.Optional[str]
- vault_type : typing.Optional[CredentialVaultType]
- Filter credentials by vault type (e.g. 'skyvern', 'custom', 'bitwarden', 'azure_vault')
+ url : typing.Optional[str]
+ Website URL
- credential_type : typing.Optional[SkyvernForgeSdkSchemasCredentialsCredentialType]
- Filter credentials by type (e.g. 'password', 'credit_card', 'secret')
+ webhook_url : typing.Optional[str]
+ Webhook URL to send status updates
- search : typing.Optional[str]
- Case-insensitive search across credential name, username, secret label, and card details
+ proxy_location : typing.Optional[ProxyLocation]
+ Proxy location to use
+
+ totp_identifier : typing.Optional[str]
+ Identifier for TOTP (Time-based One-Time Password) if required
+
+ totp_url : typing.Optional[str]
+ TOTP URL to fetch one-time passwords
+
+ browser_session_id : typing.Optional[str]
+ ID of the browser session to use, which is prefixed by `pbs_` e.g. `pbs_123456`
+
+ browser_profile_id : typing.Optional[str]
+ ID of a browser profile to reuse for this run
+
+ browser_address : typing.Optional[str]
+ The CDP address for the task.
+
+ extra_http_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ Additional HTTP headers to include in requests
+
+ cdp_connect_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ HTTP headers attached ONLY to the CDP WebSocket handshake when connecting to a remote browser via browser_address. Never forwarded to target websites.
+
+ max_screenshot_scrolling_times : typing.Optional[int]
+ Maximum number of times to scroll for screenshots
+
+ download_suffix : typing.Optional[str]
+ Suffix or complete filename for the downloaded file
+
+ download_timeout : typing.Optional[float]
+ Timeout in seconds for the download operation
+
+ max_steps_per_run : typing.Optional[int]
+ Maximum number of steps to execute
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- typing.List[CredentialResponse]
+ WorkflowRunResponse
Successful Response
Examples
@@ -2462,193 +2502,133 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.get_credentials(
- page=1,
- page_size=10,
- vault_type="skyvern",
- credential_type="password",
- search="search",
+ client.download_files(
+ user_agent="x-user-agent",
+ navigation_goal="navigation_goal",
)
"""
- _response = self._raw_client.get_credentials(
- page=page,
- page_size=page_size,
- vault_type=vault_type,
- credential_type=credential_type,
- search=search,
+ _response = self._raw_client.download_files(
+ navigation_goal=navigation_goal,
+ user_agent=user_agent,
+ url=url,
+ webhook_url=webhook_url,
+ proxy_location=proxy_location,
+ totp_identifier=totp_identifier,
+ totp_url=totp_url,
+ browser_session_id=browser_session_id,
+ browser_profile_id=browser_profile_id,
+ browser_address=browser_address,
+ extra_http_headers=extra_http_headers,
+ cdp_connect_headers=cdp_connect_headers,
+ max_screenshot_scrolling_times=max_screenshot_scrolling_times,
+ download_suffix=download_suffix,
+ download_timeout=download_timeout,
+ max_steps_per_run=max_steps_per_run,
request_options=request_options,
)
return _response.data
- def create_credential(
+ def get_scripts(
self,
*,
- name: str,
- credential_type: SkyvernForgeSdkSchemasCredentialsCredentialType,
- credential: CreateCredentialRequestCredential,
- vault_type: typing.Optional[CredentialVaultType] = OMIT,
- proxy_location: typing.Optional[CreateCredentialRequestProxyLocation] = OMIT,
- proxy_session_id: typing.Optional[str] = OMIT,
- rotate_proxy_session_id: typing.Optional[bool] = OMIT,
+ page: typing.Optional[int] = None,
+ page_size: typing.Optional[int] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> CredentialResponse:
+ ) -> typing.List[Script]:
"""
- Creates a new credential for the current organization
+ Retrieves a paginated list of scripts for the current organization
Parameters
----------
- name : str
- Name of the credential
-
- credential_type : SkyvernForgeSdkSchemasCredentialsCredentialType
- Type of credential to create
-
- credential : CreateCredentialRequestCredential
- The credential data to store
-
- vault_type : typing.Optional[CredentialVaultType]
- Which vault to store this credential in. If omitted, uses the instance default. Use this to mix Skyvern-hosted and custom credentials within the same organization.
-
- proxy_location : typing.Optional[CreateCredentialRequestProxyLocation]
- Optional proxy location for this credential's pinned proxy identity.
-
- proxy_session_id : typing.Optional[str]
- Optional advanced reuse key for this credential's pinned proxy identity.
+ page : typing.Optional[int]
+ Page number for pagination
- rotate_proxy_session_id : typing.Optional[bool]
- Rotate the Skyvern-managed proxy sticky-session id when updating this credential.
+ page_size : typing.Optional[int]
+ Number of items per page
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- CredentialResponse
+ typing.List[Script]
Successful Response
Examples
--------
- from skyvern import NonEmptyPasswordCredential, Skyvern
+ from skyvern import Skyvern
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.create_credential(
- name="Amazon Login",
- credential_type="password",
- credential=NonEmptyPasswordCredential(
- password="securepassword123",
- username="[email protected]",
- ),
+ client.get_scripts(
+ page=1,
+ page_size=10,
)
"""
- _response = self._raw_client.create_credential(
- name=name,
- credential_type=credential_type,
- credential=credential,
- vault_type=vault_type,
- proxy_location=proxy_location,
- proxy_session_id=proxy_session_id,
- rotate_proxy_session_id=rotate_proxy_session_id,
- request_options=request_options,
- )
+ _response = self._raw_client.get_scripts(page=page, page_size=page_size, request_options=request_options)
return _response.data
- def update_credential(
+ def create_script(
self,
- credential_id: str,
*,
- name: str,
- credential_type: SkyvernForgeSdkSchemasCredentialsCredentialType,
- credential: CreateCredentialRequestCredential,
- vault_type: typing.Optional[CredentialVaultType] = OMIT,
- proxy_location: typing.Optional[CreateCredentialRequestProxyLocation] = OMIT,
- proxy_session_id: typing.Optional[str] = OMIT,
- rotate_proxy_session_id: typing.Optional[bool] = OMIT,
+ workflow_id: typing.Optional[str] = OMIT,
+ run_id: typing.Optional[str] = OMIT,
+ files: typing.Optional[typing.Sequence[ScriptFileCreate]] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> CredentialResponse:
+ ) -> CreateScriptResponse:
"""
- Overwrites the stored credential data (e.g. username/password) while keeping the same credential_id.
+ Create a new script with optional files and metadata
Parameters
----------
- credential_id : str
- The unique identifier of the credential to update
-
- name : str
- Name of the credential
-
- credential_type : SkyvernForgeSdkSchemasCredentialsCredentialType
- Type of credential to create
-
- credential : CreateCredentialRequestCredential
- The credential data to store
-
- vault_type : typing.Optional[CredentialVaultType]
- Which vault to store this credential in. If omitted, uses the instance default. Use this to mix Skyvern-hosted and custom credentials within the same organization.
-
- proxy_location : typing.Optional[CreateCredentialRequestProxyLocation]
- Optional proxy location for this credential's pinned proxy identity.
+ workflow_id : typing.Optional[str]
+ Associated workflow ID
- proxy_session_id : typing.Optional[str]
- Optional advanced reuse key for this credential's pinned proxy identity.
+ run_id : typing.Optional[str]
+ Associated run ID
- rotate_proxy_session_id : typing.Optional[bool]
- Rotate the Skyvern-managed proxy sticky-session id when updating this credential.
+ files : typing.Optional[typing.Sequence[ScriptFileCreate]]
+ Array of files to include in the script
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- CredentialResponse
+ CreateScriptResponse
Successful Response
Examples
--------
- from skyvern import NonEmptyPasswordCredential, Skyvern
+ from skyvern import Skyvern
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.update_credential(
- credential_id="cred_1234567890",
- name="Amazon Login",
- credential_type="password",
- credential=NonEmptyPasswordCredential(
- password="securepassword123",
- username="[email protected]",
- ),
- )
+ client.create_script()
"""
- _response = self._raw_client.update_credential(
- credential_id,
- name=name,
- credential_type=credential_type,
- credential=credential,
- vault_type=vault_type,
- proxy_location=proxy_location,
- proxy_session_id=proxy_session_id,
- rotate_proxy_session_id=rotate_proxy_session_id,
- request_options=request_options,
+ _response = self._raw_client.create_script(
+ workflow_id=workflow_id, run_id=run_id, files=files, request_options=request_options
)
return _response.data
- def delete_credential(self, credential_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
+ def get_script(self, script_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Script:
"""
- Deletes a specific credential by its ID
+ Retrieves a specific script by its ID
Parameters
----------
- credential_id : str
- The unique identifier of the credential to delete
+ script_id : str
+ The unique identifier of the script
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- None
+ Script
+ Successful Response
Examples
--------
@@ -2657,166 +2637,223 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.delete_credential(
- credential_id="cred_1234567890",
+ client.get_script(
+ script_id="s_abc123",
)
"""
- _response = self._raw_client.delete_credential(credential_id, request_options=request_options)
+ _response = self._raw_client.get_script(script_id, request_options=request_options)
return _response.data
- def get_credential(
- self, credential_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> CredentialResponse:
+ def deploy_script(
+ self,
+ script_id: str,
+ *,
+ files: typing.Sequence[ScriptFileCreate],
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> CreateScriptResponse:
"""
- Retrieves a specific credential by its ID
+ Deploy a script with updated files, creating a new version
Parameters
----------
- credential_id : str
- The unique identifier of the credential
+ script_id : str
+ The unique identifier of the script
+
+ files : typing.Sequence[ScriptFileCreate]
+ Array of files to include in the script
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- CredentialResponse
+ CreateScriptResponse
Successful Response
Examples
--------
- from skyvern import Skyvern
+ from skyvern import ScriptFileCreate, Skyvern
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.get_credential(
- credential_id="cred_1234567890",
- )
- """
- _response = self._raw_client.get_credential(credential_id, request_options=request_options)
- return _response.data
+ client.deploy_script(
+ script_id="s_abc123",
+ files=[
+ ScriptFileCreate(
+ path="src/main.py",
+ content="content",
+ )
+ ],
+ )
+ """
+ _response = self._raw_client.deploy_script(script_id, files=files, request_options=request_options)
+ return _response.data
- def list_custom_llms(self, *, request_options: typing.Optional[RequestOptions] = None) -> CustomLlmListResponse:
+ def run_sdk_action(
+ self,
+ *,
+ url: str,
+ action: RunSdkActionRequestAction,
+ browser_session_id: typing.Optional[str] = OMIT,
+ browser_address: typing.Optional[str] = OMIT,
+ workflow_run_id: typing.Optional[str] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> RunSdkActionResponse:
"""
- List the custom LLM configurations available to the current organization.
+ Execute a single SDK action with the specified parameters
Parameters
----------
+ url : str
+ The URL where the action should be executed
+
+ action : RunSdkActionRequestAction
+ The action to execute with its specific parameters
+
+ browser_session_id : typing.Optional[str]
+ The browser session ID
+
+ browser_address : typing.Optional[str]
+ The browser address
+
+ workflow_run_id : typing.Optional[str]
+ Optional workflow run ID to continue an existing workflow run
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- CustomLlmListResponse
+ RunSdkActionResponse
Successful Response
Examples
--------
- from skyvern import Skyvern
+ from skyvern import RunSdkActionRequestAction_AiAct, Skyvern
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.list_custom_llms()
+ client.run_sdk_action(
+ url="url",
+ action=RunSdkActionRequestAction_AiAct(),
+ )
"""
- _response = self._raw_client.list_custom_llms(request_options=request_options)
+ _response = self._raw_client.run_sdk_action(
+ url=url,
+ action=action,
+ browser_session_id=browser_session_id,
+ browser_address=browser_address,
+ workflow_run_id=workflow_run_id,
+ request_options=request_options,
+ )
return _response.data
- def create_custom_llm(
- self, *, config: CustomLlmConfig, request_options: typing.Optional[RequestOptions] = None
- ) -> CustomLlmResponse:
+ def update_workflow_folder(
+ self,
+ workflow_permanent_id: str,
+ *,
+ folder_id: typing.Optional[str] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> Workflow:
"""
- Create a custom LLM configuration for the current organization.
+ Update a workflow's folder assignment for the latest version
Parameters
----------
- config : CustomLlmConfig
+ workflow_permanent_id : str
+ Workflow permanent ID
+
+ folder_id : typing.Optional[str]
+ Folder ID to assign workflow to. Set to null to remove from folder.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- CustomLlmResponse
- Successful Response
+ Workflow
+ Successfully updated workflow folder
Examples
--------
- from skyvern import CustomLlmConfig, Skyvern
+ from skyvern import Skyvern
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.create_custom_llm(
- config=CustomLlmConfig(
- display_name="display_name",
- provider="openai_compatible",
- model_name="model_name",
- ),
+ client.update_workflow_folder(
+ workflow_permanent_id="wpid_123",
)
"""
- _response = self._raw_client.create_custom_llm(config=config, request_options=request_options)
+ _response = self._raw_client.update_workflow_folder(
+ workflow_permanent_id, folder_id=folder_id, request_options=request_options
+ )
return _response.data
- def update_custom_llm(
- self, custom_llm_id: str, *, config: CustomLlmConfig, request_options: typing.Optional[RequestOptions] = None
- ) -> CustomLlmResponse:
+ def get_workflow_tags(
+ self, workflow_permanent_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> TagsResponse:
"""
- Update a custom LLM configuration for the current organization.
+ Get the current tag state for a workflow.
Parameters
----------
- custom_llm_id : str
- The custom LLM id.
-
- config : CustomLlmConfig
+ workflow_permanent_id : str
+ Workflow permanent ID
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- CustomLlmResponse
- Successful Response
+ TagsResponse
+ Successfully retrieved tags
Examples
--------
- from skyvern import CustomLlmConfig, Skyvern
+ from skyvern import Skyvern
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.update_custom_llm(
- custom_llm_id="custom_llm_id",
- config=CustomLlmConfig(
- display_name="display_name",
- provider="openai_compatible",
- model_name="model_name",
- ),
+ client.get_workflow_tags(
+ workflow_permanent_id="wpid_123",
)
"""
- _response = self._raw_client.update_custom_llm(custom_llm_id, config=config, request_options=request_options)
+ _response = self._raw_client.get_workflow_tags(workflow_permanent_id, request_options=request_options)
return _response.data
- def delete_custom_llm(
- self, custom_llm_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> ClearOrganizationAuthTokenResponse:
+ def apply_workflow_tags(
+ self,
+ workflow_permanent_id: str,
+ *,
+ tags: typing.Optional[typing.Sequence[TagInput]] = OMIT,
+ tags_to_delete: typing.Optional[typing.Sequence[TagDeleteInput]] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> TagsResponse:
"""
- Delete a custom LLM configuration for the current organization.
+ Atomically apply tag changes to a workflow. Sets and deletes happen in one transaction; same-key collisions resolve set-wins.
Parameters
----------
- custom_llm_id : str
- The custom LLM id.
+ workflow_permanent_id : str
+ Workflow permanent ID
+
+ tags : typing.Optional[typing.Sequence[TagInput]]
+ Tags to set (overwrite). List of {key?, value} objects.
+
+ tags_to_delete : typing.Optional[typing.Sequence[TagDeleteInput]]
+ Tags to soft-delete. List of {key?, value?} targets.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- ClearOrganizationAuthTokenResponse
- Successful Response
+ TagsResponse
+ Successfully applied tag changes
Examples
--------
@@ -2825,234 +2862,128 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.delete_custom_llm(
- custom_llm_id="custom_llm_id",
+ client.apply_workflow_tags(
+ workflow_permanent_id="wpid_123",
)
"""
- _response = self._raw_client.delete_custom_llm(custom_llm_id, request_options=request_options)
+ _response = self._raw_client.apply_workflow_tags(
+ workflow_permanent_id, tags=tags, tags_to_delete=tags_to_delete, request_options=request_options
+ )
return _response.data
- def login(
- self,
- *,
- credential_type: SkyvernSchemasCredentialTypeCredentialType,
- user_agent: typing.Optional[str] = None,
- url: typing.Optional[str] = OMIT,
- webhook_url: typing.Optional[str] = OMIT,
- proxy_location: typing.Optional[ProxyLocation] = OMIT,
- totp_identifier: typing.Optional[str] = OMIT,
- totp_url: typing.Optional[str] = OMIT,
- browser_session_id: typing.Optional[str] = OMIT,
- browser_profile_id: typing.Optional[str] = OMIT,
- browser_address: typing.Optional[str] = OMIT,
- extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- max_screenshot_scrolling_times: typing.Optional[int] = OMIT,
- prompt: typing.Optional[str] = OMIT,
- credential_id: typing.Optional[str] = OMIT,
- bitwarden_collection_id: typing.Optional[str] = OMIT,
- bitwarden_item_id: typing.Optional[str] = OMIT,
- onepassword_vault_id: typing.Optional[str] = OMIT,
- onepassword_item_id: typing.Optional[str] = OMIT,
- azure_vault_name: typing.Optional[str] = OMIT,
- azure_vault_username_key: typing.Optional[str] = OMIT,
- azure_vault_password_key: typing.Optional[str] = OMIT,
- azure_vault_totp_secret_key: typing.Optional[str] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> WorkflowRunResponse:
+ def delete_workflow_tag(
+ self, workflow_permanent_id: str, key: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> TagsResponse:
"""
- Log in to a website using either credential stored in Skyvern, Bitwarden, 1Password, or Azure Vault
+ Soft-delete a single tag from a workflow. Writes a DELETE event row.
Parameters
----------
- credential_type : SkyvernSchemasCredentialTypeCredentialType
- Where to get the credential from
-
- user_agent : typing.Optional[str]
-
- url : typing.Optional[str]
- Website URL
-
- webhook_url : typing.Optional[str]
- Webhook URL to send status updates
-
- proxy_location : typing.Optional[ProxyLocation]
- Proxy location to use
-
- totp_identifier : typing.Optional[str]
- Identifier for TOTP (Time-based One-Time Password) if required
-
- totp_url : typing.Optional[str]
- TOTP URL to fetch one-time passwords
-
- browser_session_id : typing.Optional[str]
- ID of the browser session to use, which is prefixed by `pbs_` e.g. `pbs_123456`
-
- browser_profile_id : typing.Optional[str]
- ID of a browser profile to reuse for this run
-
- browser_address : typing.Optional[str]
- The CDP address for the task.
-
- extra_http_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- Additional HTTP headers to include in requests
-
- cdp_connect_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- HTTP headers attached ONLY to the CDP WebSocket handshake when connecting to a remote browser via browser_address. Never forwarded to target websites.
-
- max_screenshot_scrolling_times : typing.Optional[int]
- Maximum number of times to scroll for screenshots
+ workflow_permanent_id : str
+ Workflow permanent ID
- prompt : typing.Optional[str]
- Login instructions. Skyvern has default prompt/instruction for login if this field is not provided.
+ key : str
+ Tag key to delete
- credential_id : typing.Optional[str]
- ID of the Skyvern credential to use for login.
+ request_options : typing.Optional[RequestOptions]
+ Request-specific configuration.
- bitwarden_collection_id : typing.Optional[str]
- Bitwarden collection ID. You can find it in the Bitwarden collection URL. e.g. `https://vault.bitwarden.com/vaults/collection_id/items`
+ Returns
+ -------
+ TagsResponse
+ Successfully deleted tag (or no-op if absent)
- bitwarden_item_id : typing.Optional[str]
- Bitwarden item ID
+ Examples
+ --------
+ from skyvern import Skyvern
- onepassword_vault_id : typing.Optional[str]
- 1Password vault ID
+ client = Skyvern(
+ api_key="YOUR_API_KEY",
+ )
+ client.delete_workflow_tag(
+ workflow_permanent_id="wpid_123",
+ key="env",
+ )
+ """
+ _response = self._raw_client.delete_workflow_tag(workflow_permanent_id, key, request_options=request_options)
+ return _response.data
- onepassword_item_id : typing.Optional[str]
- 1Password item ID
+ def get_workflow_tag_history(
+ self,
+ workflow_permanent_id: str,
+ *,
+ limit: typing.Optional[int] = None,
+ since: typing.Optional[dt.datetime] = None,
+ key: typing.Optional[str] = None,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> TagHistoryResponse:
+ """
+ Chronological tag-event log for a workflow (newest first). Includes SET and DELETE events.
- azure_vault_name : typing.Optional[str]
- Azure Vault Name
+ Parameters
+ ----------
+ workflow_permanent_id : str
+ Workflow permanent ID
- azure_vault_username_key : typing.Optional[str]
- Azure Vault username key
+ limit : typing.Optional[int]
+ Max events to return
- azure_vault_password_key : typing.Optional[str]
- Azure Vault password key
+ since : typing.Optional[dt.datetime]
+ Only return events at or after this timestamp
- azure_vault_totp_secret_key : typing.Optional[str]
- Azure Vault TOTP secret key
+ key : typing.Optional[str]
+ Filter to events for a single tag key
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- WorkflowRunResponse
- Successful Response
+ TagHistoryResponse
+ Successfully retrieved tag history
Examples
--------
+ import datetime
+
from skyvern import Skyvern
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.login(
- user_agent="x-user-agent",
- credential_type="skyvern",
+ client.get_workflow_tag_history(
+ workflow_permanent_id="wpid_123",
+ limit=1,
+ since=datetime.datetime.fromisoformat(
+ "2024-01-15 09:30:00+00:00",
+ ),
+ key="key",
)
"""
- _response = self._raw_client.login(
- credential_type=credential_type,
- user_agent=user_agent,
- url=url,
- webhook_url=webhook_url,
- proxy_location=proxy_location,
- totp_identifier=totp_identifier,
- totp_url=totp_url,
- browser_session_id=browser_session_id,
- browser_profile_id=browser_profile_id,
- browser_address=browser_address,
- extra_http_headers=extra_http_headers,
- cdp_connect_headers=cdp_connect_headers,
- max_screenshot_scrolling_times=max_screenshot_scrolling_times,
- prompt=prompt,
- credential_id=credential_id,
- bitwarden_collection_id=bitwarden_collection_id,
- bitwarden_item_id=bitwarden_item_id,
- onepassword_vault_id=onepassword_vault_id,
- onepassword_item_id=onepassword_item_id,
- azure_vault_name=azure_vault_name,
- azure_vault_username_key=azure_vault_username_key,
- azure_vault_password_key=azure_vault_password_key,
- azure_vault_totp_secret_key=azure_vault_totp_secret_key,
- request_options=request_options,
+ _response = self._raw_client.get_workflow_tag_history(
+ workflow_permanent_id, limit=limit, since=since, key=key, request_options=request_options
)
return _response.data
- def download_files(
+ def retry_workflow_run(
self,
+ workflow_run_id: str,
*,
- navigation_goal: str,
+ max_steps_override: typing.Optional[int] = None,
user_agent: typing.Optional[str] = None,
- url: typing.Optional[str] = OMIT,
- webhook_url: typing.Optional[str] = OMIT,
- proxy_location: typing.Optional[ProxyLocation] = OMIT,
- totp_identifier: typing.Optional[str] = OMIT,
- totp_url: typing.Optional[str] = OMIT,
- browser_session_id: typing.Optional[str] = OMIT,
- browser_profile_id: typing.Optional[str] = OMIT,
- browser_address: typing.Optional[str] = OMIT,
- extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- max_screenshot_scrolling_times: typing.Optional[int] = OMIT,
- download_suffix: typing.Optional[str] = OMIT,
- download_timeout: typing.Optional[float] = OMIT,
- max_steps_per_run: typing.Optional[int] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> WorkflowRunResponse:
"""
- Download a file from a website by navigating and clicking download buttons
+ Retry a workflow run using the original run parameters.
Parameters
----------
- navigation_goal : str
- Instructions for navigating to and downloading the file
-
- user_agent : typing.Optional[str]
-
- url : typing.Optional[str]
- Website URL
-
- webhook_url : typing.Optional[str]
- Webhook URL to send status updates
-
- proxy_location : typing.Optional[ProxyLocation]
- Proxy location to use
-
- totp_identifier : typing.Optional[str]
- Identifier for TOTP (Time-based One-Time Password) if required
-
- totp_url : typing.Optional[str]
- TOTP URL to fetch one-time passwords
-
- browser_session_id : typing.Optional[str]
- ID of the browser session to use, which is prefixed by `pbs_` e.g. `pbs_123456`
-
- browser_profile_id : typing.Optional[str]
- ID of a browser profile to reuse for this run
-
- browser_address : typing.Optional[str]
- The CDP address for the task.
-
- extra_http_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- Additional HTTP headers to include in requests
-
- cdp_connect_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- HTTP headers attached ONLY to the CDP WebSocket handshake when connecting to a remote browser via browser_address. Never forwarded to target websites.
-
- max_screenshot_scrolling_times : typing.Optional[int]
- Maximum number of times to scroll for screenshots
-
- download_suffix : typing.Optional[str]
- Suffix or complete filename for the downloaded file
+ workflow_run_id : str
+ The id of the workflow run to retry.
- download_timeout : typing.Optional[float]
- Timeout in seconds for the download operation
+ max_steps_override : typing.Optional[int]
- max_steps_per_run : typing.Optional[int]
- Maximum number of steps to execute
+ user_agent : typing.Optional[str]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -3060,7 +2991,7 @@ class Skyvern:
Returns
-------
WorkflowRunResponse
- Successful Response
+ Successfully retried workflow run
Examples
--------
@@ -3069,56 +3000,83 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.download_files(
+ client.retry_workflow_run(
+ workflow_run_id="wr_123",
+ max_steps_override=1,
user_agent="x-user-agent",
- navigation_goal="navigation_goal",
)
"""
- _response = self._raw_client.download_files(
- navigation_goal=navigation_goal,
+ _response = self._raw_client.retry_workflow_run(
+ workflow_run_id,
+ max_steps_override=max_steps_override,
user_agent=user_agent,
- url=url,
- webhook_url=webhook_url,
- proxy_location=proxy_location,
- totp_identifier=totp_identifier,
- totp_url=totp_url,
- browser_session_id=browser_session_id,
- browser_profile_id=browser_profile_id,
- browser_address=browser_address,
- extra_http_headers=extra_http_headers,
- cdp_connect_headers=cdp_connect_headers,
- max_screenshot_scrolling_times=max_screenshot_scrolling_times,
- download_suffix=download_suffix,
- download_timeout=download_timeout,
- max_steps_per_run=max_steps_per_run,
request_options=request_options,
)
return _response.data
- def get_scripts(
+ def get_workflow_runs(
self,
*,
page: typing.Optional[int] = None,
page_size: typing.Optional[int] = None,
+ status: typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]] = None,
+ search_key: typing.Optional[str] = None,
+ error_code: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> typing.List[Script]:
+ ) -> typing.List[WorkflowRun]:
"""
- Retrieves a paginated list of scripts for the current organization
+ List workflow runs across all workflows for the current organization.
+
+ Results are paginated and can be filtered by **status**, **search_key**, and **error_code**. All filters are combined with **AND** logic — a run must match every supplied filter to be returned.
+
+ ### search_key
+
+ A case-insensitive substring search that matches against **any** of the following fields:
+
+ | Searched field | Description |
+ |---|---|
+ | `workflow_run_id` | The unique run identifier (e.g. `wr_123…`) |
+ | Parameter **key** | The `key` of any workflow parameter definition associated with the run |
+ | Parameter **description** | The `description` of any workflow parameter definition |
+ | Run parameter **value** | The actual value supplied for any parameter when the run was created |
+ | `extra_http_headers` | Extra HTTP headers attached to the run (searched as raw JSON text) |
+
+ Soft-deleted parameter definitions are excluded from key/description matching. A run is returned if **any** of the fields above contain the search term.
+
+ ### error_code
+
+ An **exact-match** filter against the `error_code` field inside each task's `errors` JSON array. A run matches if **any** of its tasks contains an error object with a matching `error_code` value. Error codes are user-defined strings set during workflow execution (e.g. `INVALID_CREDENTIALS`, `LOGIN_FAILED`, `CAPTCHA_DETECTED`).
+
+ ### Combining filters
+
+ All query parameters use AND logic:
+ - `?status=failed` — only failed runs
+ - `?status=failed&error_code=LOGIN_FAILED` — failed runs **and** have a LOGIN_FAILED error
+ - `?status=failed&error_code=LOGIN_FAILED&search_key=prod_credential` — all three conditions must match
Parameters
----------
page : typing.Optional[int]
- Page number for pagination
+ Page number for pagination.
page_size : typing.Optional[int]
- Number of items per page
+ Number of runs to return per page.
+
+ status : typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]]
+ Filter by one or more run statuses.
+
+ search_key : typing.Optional[str]
+ Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching.
+
+ error_code : typing.Optional[str]
+ Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- typing.List[Script]
+ typing.List[WorkflowRun]
Successful Response
Examples
@@ -3128,42 +3086,72 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.get_scripts(
+ client.get_workflow_runs(
page=1,
- page_size=10,
+ page_size=1,
+ search_key="search_key",
+ error_code="error_code",
)
"""
- _response = self._raw_client.get_scripts(page=page, page_size=page_size, request_options=request_options)
+ _response = self._raw_client.get_workflow_runs(
+ page=page,
+ page_size=page_size,
+ status=status,
+ search_key=search_key,
+ error_code=error_code,
+ request_options=request_options,
+ )
return _response.data
- def create_script(
+ def get_workflow_runs_by_id(
self,
+ workflow_id: str,
*,
- workflow_id: typing.Optional[str] = OMIT,
- run_id: typing.Optional[str] = OMIT,
- files: typing.Optional[typing.Sequence[ScriptFileCreate]] = OMIT,
+ page: typing.Optional[int] = None,
+ page_size: typing.Optional[int] = None,
+ status: typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]] = None,
+ search_key: typing.Optional[str] = None,
+ error_code: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> CreateScriptResponse:
+ ) -> typing.List[WorkflowRun]:
"""
- Create a new script with optional files and metadata
+ List runs for a specific workflow.
+
+ Supports filtering by **status**, **search_key**, and **error_code**. All filters are combined with **AND** logic.
+
+ ### search_key
+
+ Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. Soft-deleted parameter definitions are excluded.
+
+ ### error_code
+
+ Exact-match filter on the `error_code` field inside each task's `errors` JSON array. A run matches if any of its tasks contains an error with a matching `error_code`.
Parameters
----------
- workflow_id : typing.Optional[str]
- Associated workflow ID
+ workflow_id : str
- run_id : typing.Optional[str]
- Associated run ID
+ page : typing.Optional[int]
+ Page number for pagination.
- files : typing.Optional[typing.Sequence[ScriptFileCreate]]
- Array of files to include in the script
+ page_size : typing.Optional[int]
+ Number of runs to return per page.
+
+ status : typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]]
+ Filter by one or more run statuses.
+
+ search_key : typing.Optional[str]
+ Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching.
+
+ error_code : typing.Optional[str]
+ Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- CreateScriptResponse
+ typing.List[WorkflowRun]
Successful Response
Examples
@@ -3173,1487 +3161,369 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.create_script()
- """
- _response = self._raw_client.create_script(
- workflow_id=workflow_id, run_id=run_id, files=files, request_options=request_options
+ client.get_workflow_runs_by_id(
+ workflow_id="workflow_id",
+ page=1,
+ page_size=1,
+ search_key="search_key",
+ error_code="error_code",
)
- return _response.data
-
- def get_script(self, script_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Script:
"""
- Retrieves a specific script by its ID
-
- Parameters
- ----------
- script_id : str
- The unique identifier of the script
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- Script
- Successful Response
-
- Examples
- --------
- from skyvern import Skyvern
-
- client = Skyvern(
- api_key="YOUR_API_KEY",
- )
- client.get_script(
- script_id="s_abc123",
+ _response = self._raw_client.get_workflow_runs_by_id(
+ workflow_id,
+ page=page,
+ page_size=page_size,
+ status=status,
+ search_key=search_key,
+ error_code=error_code,
+ request_options=request_options,
)
- """
- _response = self._raw_client.get_script(script_id, request_options=request_options)
return _response.data
- def deploy_script(
+ def get_workflow(
self,
- script_id: str,
+ workflow_permanent_id: str,
*,
- files: typing.Sequence[ScriptFileCreate],
+ version: typing.Optional[int] = None,
+ template: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> CreateScriptResponse:
+ ) -> Workflow:
"""
- Deploy a script with updated files, creating a new version
-
Parameters
----------
- script_id : str
- The unique identifier of the script
+ workflow_permanent_id : str
- files : typing.Sequence[ScriptFileCreate]
- Array of files to include in the script
+ version : typing.Optional[int]
+
+ template : typing.Optional[bool]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- CreateScriptResponse
+ Workflow
Successful Response
Examples
--------
- from skyvern import ScriptFileCreate, Skyvern
+ from skyvern import Skyvern
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.deploy_script(
- script_id="s_abc123",
- files=[
- ScriptFileCreate(
- path="src/main.py",
- content="content",
- )
- ],
+ client.get_workflow(
+ workflow_permanent_id="workflow_permanent_id",
+ version=1,
+ template=True,
)
"""
- _response = self._raw_client.deploy_script(script_id, files=files, request_options=request_options)
+ _response = self._raw_client.get_workflow(
+ workflow_permanent_id, version=version, template=template, request_options=request_options
+ )
return _response.data
- def run_sdk_action(
+ def get_workflow_versions(
self,
+ workflow_permanent_id: str,
*,
- url: str,
- action: RunSdkActionRequestAction,
- browser_session_id: typing.Optional[str] = OMIT,
- browser_address: typing.Optional[str] = OMIT,
- workflow_run_id: typing.Optional[str] = OMIT,
+ template: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> RunSdkActionResponse:
+ ) -> typing.List[Workflow]:
"""
- Execute a single SDK action with the specified parameters
+ Get all versions of a workflow by its permanent ID.
Parameters
----------
- url : str
- The URL where the action should be executed
-
- action : RunSdkActionRequestAction
- The action to execute with its specific parameters
-
- browser_session_id : typing.Optional[str]
- The browser session ID
-
- browser_address : typing.Optional[str]
- The browser address
+ workflow_permanent_id : str
- workflow_run_id : typing.Optional[str]
- Optional workflow run ID to continue an existing workflow run
+ template : typing.Optional[bool]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- RunSdkActionResponse
+ typing.List[Workflow]
Successful Response
Examples
--------
- from skyvern import RunSdkActionRequestAction_AiAct, Skyvern
+ from skyvern import Skyvern
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.run_sdk_action(
- url="url",
- action=RunSdkActionRequestAction_AiAct(),
+ client.get_workflow_versions(
+ workflow_permanent_id="workflow_permanent_id",
+ template=True,
)
"""
- _response = self._raw_client.run_sdk_action(
- url=url,
- action=action,
- browser_session_id=browser_session_id,
- browser_address=browser_address,
- workflow_run_id=workflow_run_id,
- request_options=request_options,
+ _response = self._raw_client.get_workflow_versions(
+ workflow_permanent_id, template=template, request_options=request_options
)
return _response.data
- def update_workflow_folder(
- self,
- workflow_permanent_id: str,
- *,
- folder_id: typing.Optional[str] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> Workflow:
- """
- Update a workflow's folder assignment for the latest version
+ @property
+ def artifacts(self):
+ if self._artifacts is None:
+ from .artifacts.client import ArtifactsClient # noqa: E402
- Parameters
- ----------
- workflow_permanent_id : str
- Workflow permanent ID
+ self._artifacts = ArtifactsClient(client_wrapper=self._client_wrapper)
+ return self._artifacts
- folder_id : typing.Optional[str]
- Folder ID to assign workflow to. Set to null to remove from folder.
+ @property
+ def scripts(self):
+ if self._scripts is None:
+ from .scripts.client import ScriptsClient # noqa: E402
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
+ self._scripts = ScriptsClient(client_wrapper=self._client_wrapper)
+ return self._scripts
- Returns
- -------
- Workflow
- Successfully updated workflow folder
+ @property
+ def schedules(self):
+ if self._schedules is None:
+ from .schedules.client import SchedulesClient # noqa: E402
- Examples
- --------
- from skyvern import Skyvern
+ self._schedules = SchedulesClient(client_wrapper=self._client_wrapper)
+ return self._schedules
- client = Skyvern(
- api_key="YOUR_API_KEY",
- )
- client.update_workflow_folder(
- workflow_permanent_id="wpid_123",
- )
- """
- _response = self._raw_client.update_workflow_folder(
- workflow_permanent_id, folder_id=folder_id, request_options=request_options
- )
- return _response.data
+ @property
+ def agents(self):
+ if self._agents is None:
+ from .agents.client import AgentsClient # noqa: E402
- def get_workflow_tags(
- self, workflow_permanent_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> TagsResponse:
- """
- Get the current tag state for a workflow.
+ self._agents = AgentsClient(client_wrapper=self._client_wrapper)
+ return self._agents
- Parameters
- ----------
- workflow_permanent_id : str
- Workflow permanent ID
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
+class AsyncSkyvern:
+ """
+ Use this class to access the different functions within the SDK. You can instantiate any number of clients with different configuration that will propagate to these functions.
- Returns
- -------
- TagsResponse
- Successfully retrieved tags
+ Parameters
+ ----------
+ base_url : typing.Optional[str]
+ The base url to use for requests from the client.
- Examples
- --------
- from skyvern import Skyvern
+ environment : SkyvernEnvironment
+ The environment to use for requests from the client. from .environment import SkyvernEnvironment
- client = Skyvern(
- api_key="YOUR_API_KEY",
- )
- client.get_workflow_tags(
- workflow_permanent_id="wpid_123",
- )
- """
- _response = self._raw_client.get_workflow_tags(workflow_permanent_id, request_options=request_options)
- return _response.data
- def apply_workflow_tags(
- self,
- workflow_permanent_id: str,
- *,
- tags: typing.Optional[typing.Sequence[TagInput]] = OMIT,
- tags_to_delete: typing.Optional[typing.Sequence[TagDeleteInput]] = OMIT,
- colors: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> TagsResponse:
- """
- Atomically apply tag changes to a workflow. Sets and deletes happen in one transaction; same-key collisions resolve set-wins.
- Parameters
- ----------
- workflow_permanent_id : str
- Workflow permanent ID
+ Defaults to SkyvernEnvironment.CLOUD
- tags : typing.Optional[typing.Sequence[TagInput]]
- Tags to set (overwrite). List of {key?, value} objects.
- tags_to_delete : typing.Optional[typing.Sequence[TagDeleteInput]]
- Tags to soft-delete. List of {key?, value?} targets.
- colors : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- Optional map of grouped tag key to palette color name for the value being set. Keys absent from this map keep their existing color or receive a random palette color.
+ api_key : typing.Optional[str]
+ headers : typing.Optional[typing.Dict[str, str]]
+ Additional headers to send with every request.
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
+ timeout : typing.Optional[float]
+ The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
- Returns
- -------
- TagsResponse
- Successfully applied tag changes
+ follow_redirects : typing.Optional[bool]
+ Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in.
- Examples
- --------
- from skyvern import Skyvern
+ httpx_client : typing.Optional[httpx.AsyncClient]
+ The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration.
- client = Skyvern(
- api_key="YOUR_API_KEY",
- )
- client.apply_workflow_tags(
- workflow_permanent_id="wpid_123",
- )
- """
- _response = self._raw_client.apply_workflow_tags(
- workflow_permanent_id,
- tags=tags,
- tags_to_delete=tags_to_delete,
- colors=colors,
- request_options=request_options,
- )
- return _response.data
-
- def delete_workflow_tag(
- self, workflow_permanent_id: str, key: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> TagsResponse:
- """
- Soft-delete a single tag from a workflow. Writes a DELETE event row.
-
- Parameters
- ----------
- workflow_permanent_id : str
- Workflow permanent ID
-
- key : str
- Tag key to delete
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- TagsResponse
- Successfully deleted tag (or no-op if absent)
+ Examples
+ --------
+ from skyvern import AsyncSkyvern
- Examples
- --------
- from skyvern import Skyvern
+ client = AsyncSkyvern(
+ api_key="YOUR_API_KEY",
+ )
+ """
- client = Skyvern(
- api_key="YOUR_API_KEY",
+ def __init__(
+ self,
+ *,
+ base_url: typing.Optional[str] = None,
+ environment: SkyvernEnvironment = SkyvernEnvironment.CLOUD,
+ api_key: typing.Optional[str] = None,
+ headers: typing.Optional[typing.Dict[str, str]] = None,
+ timeout: typing.Optional[float] = None,
+ follow_redirects: typing.Optional[bool] = True,
+ httpx_client: typing.Optional[httpx.AsyncClient] = None,
+ ):
+ _defaulted_timeout = (
+ timeout if timeout is not None else 60 if httpx_client is None else httpx_client.timeout.read
)
- client.delete_workflow_tag(
- workflow_permanent_id="wpid_123",
- key="env",
+ self._client_wrapper = AsyncClientWrapper(
+ base_url=_get_base_url(base_url=base_url, environment=environment),
+ api_key=api_key,
+ headers=headers,
+ httpx_client=httpx_client
+ if httpx_client is not None
+ else httpx.AsyncClient(timeout=_defaulted_timeout, follow_redirects=follow_redirects)
+ if follow_redirects is not None
+ else httpx.AsyncClient(timeout=_defaulted_timeout),
+ timeout=_defaulted_timeout,
)
- """
- _response = self._raw_client.delete_workflow_tag(workflow_permanent_id, key, request_options=request_options)
- return _response.data
+ self._raw_client = AsyncRawSkyvern(client_wrapper=self._client_wrapper)
+ self._artifacts: typing.Optional[AsyncArtifactsClient] = None
+ self._scripts: typing.Optional[AsyncScriptsClient] = None
+ self._schedules: typing.Optional[AsyncSchedulesClient] = None
+ self._agents: typing.Optional[AsyncAgentsClient] = None
- def get_workflow_tag_history(
- self,
- workflow_permanent_id: str,
- *,
- limit: typing.Optional[int] = None,
- since: typing.Optional[dt.datetime] = None,
- key: typing.Optional[str] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> TagHistoryResponse:
+ @property
+ def with_raw_response(self) -> AsyncRawSkyvern:
"""
- Chronological tag-event log for a workflow (newest first). Includes SET and DELETE events.
-
- Parameters
- ----------
- workflow_permanent_id : str
- Workflow permanent ID
-
- limit : typing.Optional[int]
- Max events to return
-
- since : typing.Optional[dt.datetime]
- Only return events at or after this timestamp
-
- key : typing.Optional[str]
- Filter to events for a single tag key
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
+ Retrieves a raw implementation of this client that returns raw responses.
Returns
-------
- TagHistoryResponse
- Successfully retrieved tag history
-
- Examples
- --------
- import datetime
-
- from skyvern import Skyvern
-
- client = Skyvern(
- api_key="YOUR_API_KEY",
- )
- client.get_workflow_tag_history(
- workflow_permanent_id="wpid_123",
- limit=1,
- since=datetime.datetime.fromisoformat(
- "2024-01-15 09:30:00+00:00",
- ),
- key="key",
- )
+ AsyncRawSkyvern
"""
- _response = self._raw_client.get_workflow_tag_history(
- workflow_permanent_id, limit=limit, since=since, key=key, request_options=request_options
- )
- return _response.data
+ return self._raw_client
- def retry_workflow_run(
+ async def run_task(
self,
- workflow_run_id: str,
*,
- max_steps_override: typing.Optional[int] = None,
+ prompt: str,
user_agent: typing.Optional[str] = None,
+ url: typing.Optional[str] = OMIT,
+ engine: typing.Optional[RunEngine] = OMIT,
+ title: typing.Optional[str] = OMIT,
+ proxy_location: typing.Optional[TaskRunRequestInputProxyLocation] = OMIT,
+ data_extraction_schema: typing.Optional[TaskRunRequestInputDataExtractionSchema] = OMIT,
+ error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ max_steps: typing.Optional[int] = OMIT,
+ webhook_url: typing.Optional[str] = OMIT,
+ totp_identifier: typing.Optional[str] = OMIT,
+ totp_url: typing.Optional[str] = OMIT,
+ browser_session_id: typing.Optional[str] = OMIT,
+ model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
+ extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ publish_workflow: typing.Optional[bool] = OMIT,
+ include_action_history_in_verification: typing.Optional[bool] = OMIT,
+ max_screenshot_scrolls: typing.Optional[int] = OMIT,
+ browser_address: typing.Optional[str] = OMIT,
+ run_with: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> WorkflowRunResponse:
+ ) -> TaskRunResponse:
"""
- Retry a workflow run using the original run parameters.
+ Run a task
Parameters
----------
- workflow_run_id : str
- The id of the workflow run to retry.
+ prompt : str
- max_steps_override : typing.Optional[int]
+ The goal or task description for Skyvern to accomplish
user_agent : typing.Optional[str]
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- WorkflowRunResponse
- Successfully retried workflow run
-
- Examples
- --------
- from skyvern import Skyvern
-
- client = Skyvern(
- api_key="YOUR_API_KEY",
- )
- client.retry_workflow_run(
- workflow_run_id="wr_123",
- max_steps_override=1,
- user_agent="x-user-agent",
- )
- """
- _response = self._raw_client.retry_workflow_run(
- workflow_run_id,
- max_steps_override=max_steps_override,
- user_agent=user_agent,
- request_options=request_options,
- )
- return _response.data
-
- def get_workflow_runs(
- self,
- *,
- page: typing.Optional[int] = None,
- page_size: typing.Optional[int] = None,
- status: typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]] = None,
- search_key: typing.Optional[str] = None,
- error_code: typing.Optional[str] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> typing.List[WorkflowRun]:
- """
- List workflow runs across all workflows for the current organization.
-
- Results are paginated and can be filtered by **status**, **search_key**, and **error_code**. All filters are combined with **AND** logic — a run must match every supplied filter to be returned.
-
- ### search_key
-
- A case-insensitive substring search that matches against **any** of the following fields:
-
- | Searched field | Description |
- |---|---|
- | `workflow_run_id` | The unique run identifier (e.g. `wr_123…`) |
- | Parameter **key** | The `key` of any workflow parameter definition associated with the run |
- | Parameter **description** | The `description` of any workflow parameter definition |
- | Run parameter **value** | The actual value supplied for any parameter when the run was created |
- | `extra_http_headers` | Extra HTTP headers attached to the run (searched as raw JSON text) |
-
- Soft-deleted parameter definitions are excluded from key/description matching. A run is returned if **any** of the fields above contain the search term.
-
- ### error_code
-
- An **exact-match** filter against the `error_code` field inside each task's `errors` JSON array. A run matches if **any** of its tasks contains an error object with a matching `error_code` value. Error codes are user-defined strings set during workflow execution (e.g. `INVALID_CREDENTIALS`, `LOGIN_FAILED`, `CAPTCHA_DETECTED`).
-
- ### Combining filters
-
- All query parameters use AND logic:
- - `?status=failed` — only failed runs
- - `?status=failed&error_code=LOGIN_FAILED` — failed runs **and** have a LOGIN_FAILED error
- - `?status=failed&error_code=LOGIN_FAILED&search_key=prod_credential` — all three conditions must match
+ url : typing.Optional[str]
- Parameters
- ----------
- page : typing.Optional[int]
- Page number for pagination.
+ The starting URL for the task. If not provided, Skyvern will attempt to determine an appropriate URL
- page_size : typing.Optional[int]
- Number of runs to return per page.
+ engine : typing.Optional[RunEngine]
- status : typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]]
- Filter by one or more run statuses.
+ The engine that powers the agent task. The default value is `skyvern-1.0`, which is good for simple tasks like filling a form, or searching for information on Google. `skyvern-2.0` remains available for existing V2 workflows and explicitly requested V2 task runs. The `openai-cua` engine uses OpenAI's CUA model. The `anthropic-cua` uses Anthropic's Claude Sonnet 3.7 model with the computer use tool.
- search_key : typing.Optional[str]
- Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching.
+ title : typing.Optional[str]
+ The title for the task
- error_code : typing.Optional[str]
- Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution.
+ proxy_location : typing.Optional[TaskRunRequestInputProxyLocation]
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
+ Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
- Returns
- -------
- typing.List[WorkflowRun]
- Successful Response
-
- Examples
- --------
- from skyvern import Skyvern
-
- client = Skyvern(
- api_key="YOUR_API_KEY",
- )
- client.get_workflow_runs(
- page=1,
- page_size=1,
- search_key="search_key",
- error_code="error_code",
- )
- """
- _response = self._raw_client.get_workflow_runs(
- page=page,
- page_size=page_size,
- status=status,
- search_key=search_key,
- error_code=error_code,
- request_options=request_options,
- )
- return _response.data
-
- def get_workflow_runs_by_id(
- self,
- workflow_id: str,
- *,
- page: typing.Optional[int] = None,
- page_size: typing.Optional[int] = None,
- status: typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]] = None,
- search_key: typing.Optional[str] = None,
- error_code: typing.Optional[str] = None,
- created_at_start: typing.Optional[dt.datetime] = None,
- created_at_end: typing.Optional[dt.datetime] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> typing.List[WorkflowRun]:
- """
- List runs for a specific workflow.
-
- Supports filtering by **status**, **search_key**, and **error_code**. All filters are combined with **AND** logic.
-
- ### search_key
-
- Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. Soft-deleted parameter definitions are excluded.
-
- ### error_code
-
- Exact-match filter on the `error_code` field inside each task's `errors` JSON array. A run matches if any of its tasks contains an error with a matching `error_code`.
-
- Parameters
- ----------
- workflow_id : str
-
- page : typing.Optional[int]
- Page number for pagination.
-
- page_size : typing.Optional[int]
- Number of runs to return per page.
-
- status : typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]]
- Filter by one or more run statuses.
-
- search_key : typing.Optional[str]
- Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching.
-
- error_code : typing.Optional[str]
- Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution.
-
- created_at_start : typing.Optional[dt.datetime]
- Only include runs created at or after this UTC timestamp (ISO 8601).
-
- created_at_end : typing.Optional[dt.datetime]
- Only include runs created strictly before this UTC timestamp (ISO 8601).
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- typing.List[WorkflowRun]
- Successful Response
-
- Examples
- --------
- import datetime
-
- from skyvern import Skyvern
-
- client = Skyvern(
- api_key="YOUR_API_KEY",
- )
- client.get_workflow_runs_by_id(
- workflow_id="workflow_id",
- page=1,
- page_size=1,
- search_key="search_key",
- error_code="error_code",
- created_at_start=datetime.datetime.fromisoformat(
- "2024-01-15 09:30:00+00:00",
- ),
- created_at_end=datetime.datetime.fromisoformat(
- "2024-01-15 09:30:00+00:00",
- ),
- )
- """
- _response = self._raw_client.get_workflow_runs_by_id(
- workflow_id,
- page=page,
- page_size=page_size,
- status=status,
- search_key=search_key,
- error_code=error_code,
- created_at_start=created_at_start,
- created_at_end=created_at_end,
- request_options=request_options,
- )
- return _response.data
-
- def get_workflow(
- self,
- workflow_permanent_id: str,
- *,
- version: typing.Optional[int] = None,
- template: typing.Optional[bool] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> Workflow:
- """
- Parameters
- ----------
- workflow_permanent_id : str
-
- version : typing.Optional[int]
-
- template : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- Workflow
- Successful Response
-
- Examples
- --------
- from skyvern import Skyvern
-
- client = Skyvern(
- api_key="YOUR_API_KEY",
- )
- client.get_workflow(
- workflow_permanent_id="workflow_permanent_id",
- version=1,
- template=True,
- )
- """
- _response = self._raw_client.get_workflow(
- workflow_permanent_id, version=version, template=template, request_options=request_options
- )
- return _response.data
-
- def get_workflow_versions(
- self,
- workflow_permanent_id: str,
- *,
- template: typing.Optional[bool] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> typing.List[Workflow]:
- """
- Get all versions of a workflow by its permanent ID.
-
- Parameters
- ----------
- workflow_permanent_id : str
-
- template : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- typing.List[Workflow]
- Successful Response
-
- Examples
- --------
- from skyvern import Skyvern
-
- client = Skyvern(
- api_key="YOUR_API_KEY",
- )
- client.get_workflow_versions(
- workflow_permanent_id="workflow_permanent_id",
- template=True,
- )
- """
- _response = self._raw_client.get_workflow_versions(
- workflow_permanent_id, template=template, request_options=request_options
- )
- return _response.data
-
- @property
- def artifacts(self):
- if self._artifacts is None:
- from .artifacts.client import ArtifactsClient # noqa: E402
-
- self._artifacts = ArtifactsClient(client_wrapper=self._client_wrapper)
- return self._artifacts
-
- @property
- def scripts(self):
- if self._scripts is None:
- from .scripts.client import ScriptsClient # noqa: E402
-
- self._scripts = ScriptsClient(client_wrapper=self._client_wrapper)
- return self._scripts
-
- @property
- def schedules(self):
- if self._schedules is None:
- from .schedules.client import SchedulesClient # noqa: E402
-
- self._schedules = SchedulesClient(client_wrapper=self._client_wrapper)
- return self._schedules
-
- @property
- def agents(self):
- if self._agents is None:
- from .agents.client import AgentsClient # noqa: E402
-
- self._agents = AgentsClient(client_wrapper=self._client_wrapper)
- return self._agents
-
-
-class AsyncSkyvern:
- """
- Use this class to access the different functions within the SDK. You can instantiate any number of clients with different configuration that will propagate to these functions.
-
- Parameters
- ----------
- base_url : typing.Optional[str]
- The base url to use for requests from the client.
-
- environment : SkyvernEnvironment
- The environment to use for requests from the client. from .environment import SkyvernEnvironment
-
-
-
- Defaults to SkyvernEnvironment.CLOUD
-
-
-
- api_key : typing.Optional[str]
- headers : typing.Optional[typing.Dict[str, str]]
- Additional headers to send with every request.
-
- timeout : typing.Optional[float]
- The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
-
- follow_redirects : typing.Optional[bool]
- Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in.
-
- httpx_client : typing.Optional[httpx.AsyncClient]
- The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration.
-
- Examples
- --------
- from skyvern import AsyncSkyvern
-
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
- """
-
- def __init__(
- self,
- *,
- base_url: typing.Optional[str] = None,
- environment: SkyvernEnvironment = SkyvernEnvironment.CLOUD,
- api_key: typing.Optional[str] = None,
- headers: typing.Optional[typing.Dict[str, str]] = None,
- timeout: typing.Optional[float] = None,
- follow_redirects: typing.Optional[bool] = True,
- httpx_client: typing.Optional[httpx.AsyncClient] = None,
- ):
- _defaulted_timeout = (
- timeout if timeout is not None else 60 if httpx_client is None else httpx_client.timeout.read
- )
- self._client_wrapper = AsyncClientWrapper(
- base_url=_get_base_url(base_url=base_url, environment=environment),
- api_key=api_key,
- headers=headers,
- httpx_client=httpx_client
- if httpx_client is not None
- else httpx.AsyncClient(timeout=_defaulted_timeout, follow_redirects=follow_redirects)
- if follow_redirects is not None
- else httpx.AsyncClient(timeout=_defaulted_timeout),
- timeout=_defaulted_timeout,
- )
- self._raw_client = AsyncRawSkyvern(client_wrapper=self._client_wrapper)
- self._artifacts: typing.Optional[AsyncArtifactsClient] = None
- self._scripts: typing.Optional[AsyncScriptsClient] = None
- self._schedules: typing.Optional[AsyncSchedulesClient] = None
- self._agents: typing.Optional[AsyncAgentsClient] = None
-
- @property
- def with_raw_response(self) -> AsyncRawSkyvern:
- """
- Retrieves a raw implementation of this client that returns raw responses.
-
- Returns
- -------
- AsyncRawSkyvern
- """
- return self._raw_client
-
- async def run_task(
- self,
- *,
- prompt: str,
- user_agent: typing.Optional[str] = None,
- url: typing.Optional[str] = OMIT,
- engine: typing.Optional[RunEngine] = OMIT,
- title: typing.Optional[str] = OMIT,
- proxy_location: typing.Optional[TaskRunRequestInputProxyLocation] = OMIT,
- data_extraction_schema: typing.Optional[TaskRunRequestInputDataExtractionSchema] = OMIT,
- error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- max_steps: typing.Optional[int] = OMIT,
- webhook_url: typing.Optional[str] = OMIT,
- totp_identifier: typing.Optional[str] = OMIT,
- totp_url: typing.Optional[str] = OMIT,
- browser_session_id: typing.Optional[str] = OMIT,
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
- extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- publish_workflow: typing.Optional[bool] = OMIT,
- include_action_history_in_verification: typing.Optional[bool] = OMIT,
- max_screenshot_scrolls: typing.Optional[int] = OMIT,
- browser_address: typing.Optional[str] = OMIT,
- run_with: typing.Optional[str] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> TaskRunResponse:
- """
- Run a task
-
- Parameters
- ----------
- prompt : str
-
- The goal or task description for Skyvern to accomplish
-
- user_agent : typing.Optional[str]
-
- url : typing.Optional[str]
-
- The starting URL for the task. If not provided, Skyvern will attempt to determine an appropriate URL
-
- engine : typing.Optional[RunEngine]
-
- The engine that powers the agent task. The default value is `skyvern-1.0`, which is good for simple tasks like filling a form, or searching for information on Google. `skyvern-2.0` remains available for existing V2 workflows and explicitly requested V2 task runs. The `openai-cua` engine uses OpenAI's CUA model. The `anthropic-cua` uses Anthropic's Claude Sonnet 3.7 model with the computer use tool.
-
- title : typing.Optional[str]
- The title for the task
-
- proxy_location : typing.Optional[TaskRunRequestInputProxyLocation]
-
- Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
-
- Available geotargeting options:
- - RESIDENTIAL: the default value. Skyvern Cloud uses a random US residential proxy.
- - RESIDENTIAL_ES: Spain
- - RESIDENTIAL_IE: Ireland
- - RESIDENTIAL_GB: United Kingdom
- - RESIDENTIAL_IN: India
- - RESIDENTIAL_JP: Japan
- - RESIDENTIAL_FR: France
- - RESIDENTIAL_DE: Germany
- - RESIDENTIAL_NZ: New Zealand
- - RESIDENTIAL_PH: Philippines
- - RESIDENTIAL_KR: South Korea
- - RESIDENTIAL_SA: Saudi Arabia
- - RESIDENTIAL_ZA: South Africa
- - RESIDENTIAL_AR: Argentina
- - RESIDENTIAL_AU: Australia
- - RESIDENTIAL_BR: Brazil
- - RESIDENTIAL_TR: Turkey
- - RESIDENTIAL_CA: Canada
- - RESIDENTIAL_MX: Mexico
- - RESIDENTIAL_IT: Italy
- - RESIDENTIAL_NL: Netherlands
- - RESIDENTIAL_ISP: ISP proxy
- - US-CA: California (deprecated, routes through RESIDENTIAL_ISP)
- - US-NY: New York (deprecated, routes through RESIDENTIAL_ISP)
- - US-TX: Texas (deprecated, routes through RESIDENTIAL_ISP)
- - US-FL: Florida (deprecated, routes through RESIDENTIAL_ISP)
- - US-WA: Washington (deprecated, routes through RESIDENTIAL_ISP)
- - NONE: No proxy
-
- For self-hosted deployments, you can pass a custom proxy URL as a dict: {"url": "http://user:[email protected]:8080"}. This routes the browser through your own proxy server and takes precedence over any globally configured proxy pool.
- Can also be a GeoTarget object for granular city/state targeting: {"country": "US", "subdivision": "CA", "city": "San Francisco"}
-
- data_extraction_schema : typing.Optional[TaskRunRequestInputDataExtractionSchema]
-
- The schema for data to be extracted from the webpage. If you're looking for consistent data schema being returned by the agent, it's highly recommended to use https://json-schema.org/.
-
- error_code_mapping : typing.Optional[typing.Dict[str, typing.Optional[str]]]
-
- Custom mapping of error codes to error messages if Skyvern encounters an error.
-
- max_steps : typing.Optional[int]
-
- Maximum number of steps the task can take. Task will fail if it exceeds this number. Cautions: you are charged per step so please set this number to a reasonable value. Contact [email protected] for custom pricing.
-
- webhook_url : typing.Optional[str]
-
- After a run is finished, send an update to this URL. Refer to https://www.skyvern.com/docs/running-tasks/webhooks-faq for more details.
-
- totp_identifier : typing.Optional[str]
-
- Identifier for the TOTP/2FA/MFA code when the code is pushed to Skyvern. Refer to https://www.skyvern.com/docs/credentials/totp#option-3-push-code-to-skyvern for more details.
-
- totp_url : typing.Optional[str]
-
- URL that serves TOTP/2FA/MFA codes for Skyvern to use during the workflow run. Refer to https://www.skyvern.com/docs/credentials/totp#option-2-get-code-from-your-endpoint for more details.
-
- browser_session_id : typing.Optional[str]
-
- Run the task or workflow in the specific Skyvern browser session. Having a browser session can persist the real-time state of the browser, so that the next run can continue from where the previous run left off.
-
- model : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
-
- Optional model configuration.
-
- extra_http_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- The extra HTTP headers for the requests in browser.
-
- cdp_connect_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- HTTP headers attached ONLY to the CDP WebSocket handshake when connecting to a remote browser via browser_address. Use this for browser-provider auth (e.g., x-api-key for Skyvern Cloud, Browserless, or similar). These headers are NEVER forwarded to target websites.
-
- publish_workflow : typing.Optional[bool]
- Deprecated. Whether to publish a `skyvern-2.0` task as a reusable workflow. For backwards compatibility, this routes the request through the legacy `skyvern-2.0` publish path. Prefer creating reusable workflows through the workflow APIs.
-
- include_action_history_in_verification : typing.Optional[bool]
- Whether to include action history when verifying that the task is complete
-
- max_screenshot_scrolls : typing.Optional[int]
- The maximum number of scrolls for the post action screenshot. When it's None or 0, it takes the current viewpoint screenshot.
-
- browser_address : typing.Optional[str]
- The CDP address for the task.
-
- run_with : typing.Optional[str]
- Whether to run the task with agent or code. Null means use the default.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- TaskRunResponse
- Successfully run task
-
- Examples
- --------
- import asyncio
-
- from skyvern import AsyncSkyvern
-
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
-
-
- async def main() -> None:
- await client.run_task(
- user_agent="x-user-agent",
- prompt="Find the top 3 posts on Hacker News.",
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.run_task(
- prompt=prompt,
- user_agent=user_agent,
- url=url,
- engine=engine,
- title=title,
- proxy_location=proxy_location,
- data_extraction_schema=data_extraction_schema,
- error_code_mapping=error_code_mapping,
- max_steps=max_steps,
- webhook_url=webhook_url,
- totp_identifier=totp_identifier,
- totp_url=totp_url,
- browser_session_id=browser_session_id,
- model=model,
- extra_http_headers=extra_http_headers,
- cdp_connect_headers=cdp_connect_headers,
- publish_workflow=publish_workflow,
- include_action_history_in_verification=include_action_history_in_verification,
- max_screenshot_scrolls=max_screenshot_scrolls,
- browser_address=browser_address,
- run_with=run_with,
- request_options=request_options,
- )
- return _response.data
-
- async def run_workflow(
- self,
- *,
- agent_id: str,
- template: typing.Optional[bool] = None,
- max_steps_override: typing.Optional[int] = None,
- user_agent: typing.Optional[str] = None,
- parameters: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
- title: typing.Optional[str] = OMIT,
- proxy_location: typing.Optional[WorkflowRunRequestInputProxyLocation] = OMIT,
- webhook_url: typing.Optional[str] = OMIT,
- totp_url: typing.Optional[str] = OMIT,
- totp_identifier: typing.Optional[str] = OMIT,
- browser_session_id: typing.Optional[str] = OMIT,
- browser_profile_id: typing.Optional[str] = OMIT,
- max_screenshot_scrolls: typing.Optional[int] = OMIT,
- max_elapsed_time_minutes: typing.Optional[int] = OMIT,
- extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- browser_address: typing.Optional[str] = OMIT,
- ai_fallback: typing.Optional[bool] = OMIT,
- run_with: typing.Optional[str] = OMIT,
- run_metadata: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> WorkflowRunResponse:
- """
- Run an agent
-
- Parameters
- ----------
- agent_id : str
- ID of the agent to run. Starts with `wpid_`. `workflow_id` is accepted as an alias.
-
- template : typing.Optional[bool]
-
- max_steps_override : typing.Optional[int]
-
- user_agent : typing.Optional[str]
-
- parameters : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
- Parameters to pass to the workflow
-
- title : typing.Optional[str]
- The title for this workflow run
-
- proxy_location : typing.Optional[WorkflowRunRequestInputProxyLocation]
-
- Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
-
- Available geotargeting options:
- - RESIDENTIAL: the default value. Skyvern Cloud uses a random US residential proxy.
- - RESIDENTIAL_ES: Spain
- - RESIDENTIAL_IE: Ireland
- - RESIDENTIAL_GB: United Kingdom
- - RESIDENTIAL_IN: India
- - RESIDENTIAL_JP: Japan
- - RESIDENTIAL_FR: France
- - RESIDENTIAL_DE: Germany
- - RESIDENTIAL_NZ: New Zealand
- - RESIDENTIAL_PH: Philippines
- - RESIDENTIAL_KR: South Korea
- - RESIDENTIAL_SA: Saudi Arabia
- - RESIDENTIAL_ZA: South Africa
- - RESIDENTIAL_AR: Argentina
- - RESIDENTIAL_AU: Australia
- - RESIDENTIAL_BR: Brazil
- - RESIDENTIAL_TR: Turkey
- - RESIDENTIAL_CA: Canada
- - RESIDENTIAL_MX: Mexico
- - RESIDENTIAL_IT: Italy
- - RESIDENTIAL_NL: Netherlands
- - RESIDENTIAL_ISP: ISP proxy
- - US-CA: California (deprecated, routes through RESIDENTIAL_ISP)
- - US-NY: New York (deprecated, routes through RESIDENTIAL_ISP)
- - US-TX: Texas (deprecated, routes through RESIDENTIAL_ISP)
- - US-FL: Florida (deprecated, routes through RESIDENTIAL_ISP)
- - US-WA: Washington (deprecated, routes through RESIDENTIAL_ISP)
- - NONE: No proxy
-
- For self-hosted deployments, you can pass a custom proxy URL as a dict: {"url": "http://user:[email protected]:8080"}. This routes the browser through your own proxy server and takes precedence over any globally configured proxy pool.
- Can also be a GeoTarget object for granular city/state targeting: {"country": "US", "subdivision": "CA", "city": "San Francisco"}
-
- webhook_url : typing.Optional[str]
- URL to send workflow status updates to after a run is finished. Refer to https://www.skyvern.com/docs/running-tasks/webhooks-faq for webhook questions.
-
- totp_url : typing.Optional[str]
-
- URL that serves TOTP/2FA/MFA codes for Skyvern to use during the workflow run. Refer to https://www.skyvern.com/docs/credentials/totp#option-2-get-code-from-your-endpoint for more details.
-
- totp_identifier : typing.Optional[str]
-
- Identifier for the TOTP/2FA/MFA code when the code is pushed to Skyvern. Refer to https://www.skyvern.com/docs/credentials/totp#option-3-push-code-to-skyvern for more details.
-
- browser_session_id : typing.Optional[str]
- ID of a Skyvern browser session to reuse, having it continue from the current screen state
-
- browser_profile_id : typing.Optional[str]
- ID of a browser profile to reuse for this workflow run
-
- max_screenshot_scrolls : typing.Optional[int]
- The maximum number of scrolls for the post action screenshot. When it's None or 0, it takes the current viewpoint screenshot.
-
- max_elapsed_time_minutes : typing.Optional[int]
- Timeout this workflow run after the configured elapsed runtime in minutes. When omitted, the platform default is 240 minutes. The maximum configurable value is 480 minutes.
-
- extra_http_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- The extra HTTP headers for the requests in browser.
-
- cdp_connect_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- HTTP headers attached ONLY to the CDP WebSocket handshake when connecting to a remote browser via browser_address. Use this for browser-provider auth (e.g., x-api-key for Skyvern Cloud, Browserless, or similar). These headers are NEVER forwarded to target websites.
-
- browser_address : typing.Optional[str]
- The CDP address for the workflow run.
-
- ai_fallback : typing.Optional[bool]
- Whether to fallback to AI if the workflow run fails.
-
- run_with : typing.Optional[str]
- Whether to run the workflow with agent or code. Null inherits from the workflow setting.
-
- run_metadata : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- String key/value metadata to attach to this workflow run for analytics tag filtering.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- WorkflowRunResponse
- Successfully ran agent
-
- Examples
- --------
- import asyncio
-
- from skyvern import AsyncSkyvern
-
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
-
-
- async def main() -> None:
- await client.run_workflow(
- max_steps_override=1,
- user_agent="x-user-agent",
- template=True,
- agent_id="wpid_123",
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.run_workflow(
- agent_id=agent_id,
- template=template,
- max_steps_override=max_steps_override,
- user_agent=user_agent,
- parameters=parameters,
- title=title,
- proxy_location=proxy_location,
- webhook_url=webhook_url,
- totp_url=totp_url,
- totp_identifier=totp_identifier,
- browser_session_id=browser_session_id,
- browser_profile_id=browser_profile_id,
- max_screenshot_scrolls=max_screenshot_scrolls,
- max_elapsed_time_minutes=max_elapsed_time_minutes,
- extra_http_headers=extra_http_headers,
- cdp_connect_headers=cdp_connect_headers,
- browser_address=browser_address,
- ai_fallback=ai_fallback,
- run_with=run_with,
- run_metadata=run_metadata,
- request_options=request_options,
- )
- return _response.data
-
- async def get_run(self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetRunResponse:
- """
- Get run information (task run, workflow run)
-
- Parameters
- ----------
- run_id : str
- The id of the task run or the workflow run.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- GetRunResponse
- Successfully got run
-
- Examples
- --------
- import asyncio
-
- from skyvern import AsyncSkyvern
-
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
-
-
- async def main() -> None:
- await client.get_run(
- run_id="tsk_123",
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.get_run(run_id, request_options=request_options)
- return _response.data
-
- async def cancel_run(
- self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> typing.Optional[typing.Any]:
- """
- Cancel a run (task or workflow)
-
- Parameters
- ----------
- run_id : str
- The id of the task run or the workflow run to cancel.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- typing.Optional[typing.Any]
- Successful Response
-
- Examples
- --------
- import asyncio
-
- from skyvern import AsyncSkyvern
-
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
-
-
- async def main() -> None:
- await client.cancel_run(
- run_id="run_id",
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.cancel_run(run_id, request_options=request_options)
- return _response.data
-
- async def bulk_cancel_runs(
- self, *, run_ids: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None
- ) -> BulkCancelRunsResponse:
- """
- Cancel multiple runs (tasks or workflows) in a single request
-
- Parameters
- ----------
- run_ids : typing.Sequence[str]
- List of run IDs to cancel
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- BulkCancelRunsResponse
- Successful Response
-
- Examples
- --------
- import asyncio
-
- from skyvern import AsyncSkyvern
-
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
-
-
- async def main() -> None:
- await client.bulk_cancel_runs(
- run_ids=["run_ids"],
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.bulk_cancel_runs(run_ids=run_ids, request_options=request_options)
- return _response.data
-
- async def get_workflows(
- self,
- *,
- page: typing.Optional[int] = None,
- page_size: typing.Optional[int] = None,
- only_saved_tasks: typing.Optional[bool] = None,
- only_workflows: typing.Optional[bool] = None,
- only_templates: typing.Optional[bool] = None,
- search_key: typing.Optional[str] = None,
- title: typing.Optional[str] = None,
- folder_id: typing.Optional[str] = None,
- status: typing.Optional[typing.Union[WorkflowStatus, typing.Sequence[WorkflowStatus]]] = None,
- tags: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
- template: typing.Optional[bool] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> typing.List[Workflow]:
- """
- Get all workflows with the latest version for the organization.
-
- Search semantics:
- - If `search_key` is provided, its value is used as a unified search term for
- `workflows.title`, `folders.title`, and workflow parameter metadata (key, description, and default_value for
- `WorkflowParameterModel`).
- - Falls back to deprecated `title` (title-only search) if `search_key` is not provided.
- - Parameter metadata search excludes soft-deleted parameter rows across all parameter tables.
-
- Parameters
- ----------
- page : typing.Optional[int]
-
- page_size : typing.Optional[int]
-
- only_saved_tasks : typing.Optional[bool]
-
- only_workflows : typing.Optional[bool]
-
- only_templates : typing.Optional[bool]
-
- search_key : typing.Optional[str]
- Case-insensitive substring search across: workflow title, folder name, and parameter metadata (key, description, default_value). A workflow is returned if any of these fields match. Soft-deleted parameter definitions are excluded. Takes precedence over the deprecated `title` parameter.
-
- title : typing.Optional[str]
- Deprecated: use search_key instead. Falls back to title-only search if search_key is not provided.
-
- folder_id : typing.Optional[str]
- Filter workflows by folder ID
-
- status : typing.Optional[typing.Union[WorkflowStatus, typing.Sequence[WorkflowStatus]]]
-
- tags : typing.Optional[typing.Union[str, typing.Sequence[str]]]
- Filter by tags. Each term is a label (`production`), a group (`env:*`), or a group:label (`env:prod`). Repeat the param or comma-separate (`?tags=env:prod,env:staging`). AND across distinct terms, OR within a group's labels (`?tags=customer:acme,env:prod,env:staging` -> customer=acme AND env in (prod, staging)). A label term matches the value across any/no group. Matches current tag values only. Not supported with `template=true`.
-
- template : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- typing.List[Workflow]
- Successful Response
+ Available geotargeting options:
+ - RESIDENTIAL: the default value. Skyvern Cloud uses a random US residential proxy.
+ - RESIDENTIAL_ES: Spain
+ - RESIDENTIAL_IE: Ireland
+ - RESIDENTIAL_GB: United Kingdom
+ - RESIDENTIAL_IN: India
+ - RESIDENTIAL_JP: Japan
+ - RESIDENTIAL_FR: France
+ - RESIDENTIAL_DE: Germany
+ - RESIDENTIAL_NZ: New Zealand
+ - RESIDENTIAL_PH: Philippines
+ - RESIDENTIAL_KR: South Korea
+ - RESIDENTIAL_SA: Saudi Arabia
+ - RESIDENTIAL_ZA: South Africa
+ - RESIDENTIAL_AR: Argentina
+ - RESIDENTIAL_AU: Australia
+ - RESIDENTIAL_BR: Brazil
+ - RESIDENTIAL_TR: Turkey
+ - RESIDENTIAL_CA: Canada
+ - RESIDENTIAL_MX: Mexico
+ - RESIDENTIAL_IT: Italy
+ - RESIDENTIAL_NL: Netherlands
+ - RESIDENTIAL_ISP: ISP proxy
+ - US-CA: California (deprecated, routes through RESIDENTIAL_ISP)
+ - US-NY: New York (deprecated, routes through RESIDENTIAL_ISP)
+ - US-TX: Texas (deprecated, routes through RESIDENTIAL_ISP)
+ - US-FL: Florida (deprecated, routes through RESIDENTIAL_ISP)
+ - US-WA: Washington (deprecated, routes through RESIDENTIAL_ISP)
+ - NONE: No proxy
- Examples
- --------
- import asyncio
+ For self-hosted deployments, you can pass a custom proxy URL as a dict: {"url": "http://user:[email protected]:8080"}. This routes the browser through your own proxy server and takes precedence over any globally configured proxy pool.
+ Can also be a GeoTarget object for granular city/state targeting: {"country": "US", "subdivision": "CA", "city": "San Francisco"}
- from skyvern import AsyncSkyvern
+ data_extraction_schema : typing.Optional[TaskRunRequestInputDataExtractionSchema]
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
+ The schema for data to be extracted from the webpage. If you're looking for consistent data schema being returned by the agent, it's highly recommended to use https://json-schema.org/.
+ error_code_mapping : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- async def main() -> None:
- await client.get_workflows(
- page=1,
- page_size=1,
- only_saved_tasks=True,
- only_workflows=True,
- only_templates=True,
- search_key="search_key",
- title="title",
- folder_id="folder_id",
- template=True,
- )
+ Custom mapping of error codes to error messages if Skyvern encounters an error.
+ max_steps : typing.Optional[int]
- asyncio.run(main())
- """
- _response = await self._raw_client.get_workflows(
- page=page,
- page_size=page_size,
- only_saved_tasks=only_saved_tasks,
- only_workflows=only_workflows,
- only_templates=only_templates,
- search_key=search_key,
- title=title,
- folder_id=folder_id,
- status=status,
- tags=tags,
- template=template,
- request_options=request_options,
- )
- return _response.data
+ Maximum number of steps the task can take. Task will fail if it exceeds this number. Cautions: you are charged per step so please set this number to a reasonable value. Contact [email protected] for custom pricing.
- async def create_workflow(
- self,
- *,
- folder_id: typing.Optional[str] = None,
- json_definition: typing.Optional[WorkflowCreateYamlRequest] = OMIT,
- yaml_definition: typing.Optional[str] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> Workflow:
- """
- Create a new agent
+ webhook_url : typing.Optional[str]
- Parameters
- ----------
- folder_id : typing.Optional[str]
- Optional folder ID to assign the workflow to
+ After a run is finished, send an update to this URL. Refer to https://www.skyvern.com/docs/running-tasks/webhooks-faq for more details.
- json_definition : typing.Optional[WorkflowCreateYamlRequest]
- Workflow definition in JSON format
+ totp_identifier : typing.Optional[str]
- yaml_definition : typing.Optional[str]
- Workflow definition in YAML format
+ Identifier for the TOTP/2FA/MFA code when the code is pushed to Skyvern. Refer to https://www.skyvern.com/docs/credentials/totp#option-3-push-code-to-skyvern for more details.
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
+ totp_url : typing.Optional[str]
- Returns
- -------
- Workflow
- Successfully created agent
+ URL that serves TOTP/2FA/MFA codes for Skyvern to use during the workflow run. Refer to https://www.skyvern.com/docs/credentials/totp#option-2-get-code-from-your-endpoint for more details.
- Examples
- --------
- import asyncio
+ browser_session_id : typing.Optional[str]
- from skyvern import AsyncSkyvern
+ Run the task or workflow in the specific Skyvern browser session. Having a browser session can persist the real-time state of the browser, so that the next run can continue from where the previous run left off.
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
+ model : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
+ Optional model configuration.
- async def main() -> None:
- await client.create_workflow(
- folder_id="folder_id",
- )
+ extra_http_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ The extra HTTP headers for the requests in browser.
+ cdp_connect_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ HTTP headers attached ONLY to the CDP WebSocket handshake when connecting to a remote browser via browser_address. Use this for browser-provider auth (e.g., x-api-key for Skyvern Cloud, Browserless, or similar). These headers are NEVER forwarded to target websites.
- asyncio.run(main())
- """
- _response = await self._raw_client.create_workflow(
- folder_id=folder_id,
- json_definition=json_definition,
- yaml_definition=yaml_definition,
- request_options=request_options,
- )
- return _response.data
+ publish_workflow : typing.Optional[bool]
+ Deprecated. Whether to publish a `skyvern-2.0` task as a reusable workflow. For backwards compatibility, this routes the request through the legacy `skyvern-2.0` publish path. Prefer creating reusable workflows through the workflow APIs.
- async def update_workflow(
- self,
- workflow_id: str,
- *,
- json_definition: typing.Optional[WorkflowCreateYamlRequest] = OMIT,
- yaml_definition: typing.Optional[str] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> Workflow:
- """
- Update an agent
+ include_action_history_in_verification : typing.Optional[bool]
+ Whether to include action history when verifying that the task is complete
- Parameters
- ----------
- workflow_id : str
- The ID of the agent to update. Starts with `wpid_`.
+ max_screenshot_scrolls : typing.Optional[int]
+ The maximum number of scrolls for the post action screenshot. When it's None or 0, it takes the current viewpoint screenshot.
- json_definition : typing.Optional[WorkflowCreateYamlRequest]
- Workflow definition in JSON format
+ browser_address : typing.Optional[str]
+ The CDP address for the task.
- yaml_definition : typing.Optional[str]
- Workflow definition in YAML format
+ run_with : typing.Optional[str]
+ Whether to run the task with agent or code. Null means use the default.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- Workflow
- Successfully updated agent
+ TaskRunResponse
+ Successfully run task
Examples
--------
@@ -4667,143 +3537,170 @@ class AsyncSkyvern:
async def main() -> None:
- await client.update_workflow(
- workflow_id="wpid_123",
+ await client.run_task(
+ user_agent="x-user-agent",
+ prompt="Find the top 3 posts on Hacker News.",
)
asyncio.run(main())
"""
- _response = await self._raw_client.update_workflow(
- workflow_id,
- json_definition=json_definition,
- yaml_definition=yaml_definition,
+ _response = await self._raw_client.run_task(
+ prompt=prompt,
+ user_agent=user_agent,
+ url=url,
+ engine=engine,
+ title=title,
+ proxy_location=proxy_location,
+ data_extraction_schema=data_extraction_schema,
+ error_code_mapping=error_code_mapping,
+ max_steps=max_steps,
+ webhook_url=webhook_url,
+ totp_identifier=totp_identifier,
+ totp_url=totp_url,
+ browser_session_id=browser_session_id,
+ model=model,
+ extra_http_headers=extra_http_headers,
+ cdp_connect_headers=cdp_connect_headers,
+ publish_workflow=publish_workflow,
+ include_action_history_in_verification=include_action_history_in_verification,
+ max_screenshot_scrolls=max_screenshot_scrolls,
+ browser_address=browser_address,
+ run_with=run_with,
request_options=request_options,
)
return _response.data
- async def delete_workflow(
- self, workflow_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> typing.Optional[typing.Any]:
+ async def run_workflow(
+ self,
+ *,
+ agent_id: str,
+ template: typing.Optional[bool] = None,
+ max_steps_override: typing.Optional[int] = None,
+ user_agent: typing.Optional[str] = None,
+ parameters: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
+ title: typing.Optional[str] = OMIT,
+ proxy_location: typing.Optional[WorkflowRunRequestInputProxyLocation] = OMIT,
+ webhook_url: typing.Optional[str] = OMIT,
+ totp_url: typing.Optional[str] = OMIT,
+ totp_identifier: typing.Optional[str] = OMIT,
+ browser_session_id: typing.Optional[str] = OMIT,
+ browser_profile_id: typing.Optional[str] = OMIT,
+ max_screenshot_scrolls: typing.Optional[int] = OMIT,
+ max_elapsed_time_minutes: typing.Optional[int] = OMIT,
+ extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ browser_address: typing.Optional[str] = OMIT,
+ ai_fallback: typing.Optional[bool] = OMIT,
+ run_with: typing.Optional[str] = OMIT,
+ run_metadata: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> WorkflowRunResponse:
"""
- Delete an agent
+ Run an agent
Parameters
----------
- workflow_id : str
- The ID of the agent to delete. Starts with `wpid_`.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
+ agent_id : str
+ ID of the agent to run. Starts with `wpid_`. `workflow_id` is accepted as an alias.
- Returns
- -------
- typing.Optional[typing.Any]
- Successfully deleted agent
+ template : typing.Optional[bool]
- Examples
- --------
- import asyncio
+ max_steps_override : typing.Optional[int]
- from skyvern import AsyncSkyvern
+ user_agent : typing.Optional[str]
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
+ parameters : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
+ Parameters to pass to the workflow
+ title : typing.Optional[str]
+ The title for this workflow run
- async def main() -> None:
- await client.delete_workflow(
- workflow_id="wpid_123",
- )
+ proxy_location : typing.Optional[WorkflowRunRequestInputProxyLocation]
+ Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
- asyncio.run(main())
- """
- _response = await self._raw_client.delete_workflow(workflow_id, request_options=request_options)
- return _response.data
+ Available geotargeting options:
+ - RESIDENTIAL: the default value. Skyvern Cloud uses a random US residential proxy.
+ - RESIDENTIAL_ES: Spain
+ - RESIDENTIAL_IE: Ireland
+ - RESIDENTIAL_GB: United Kingdom
+ - RESIDENTIAL_IN: India
+ - RESIDENTIAL_JP: Japan
+ - RESIDENTIAL_FR: France
+ - RESIDENTIAL_DE: Germany
+ - RESIDENTIAL_NZ: New Zealand
+ - RESIDENTIAL_PH: Philippines
+ - RESIDENTIAL_KR: South Korea
+ - RESIDENTIAL_SA: Saudi Arabia
+ - RESIDENTIAL_ZA: South Africa
+ - RESIDENTIAL_AR: Argentina
+ - RESIDENTIAL_AU: Australia
+ - RESIDENTIAL_BR: Brazil
+ - RESIDENTIAL_TR: Turkey
+ - RESIDENTIAL_CA: Canada
+ - RESIDENTIAL_MX: Mexico
+ - RESIDENTIAL_IT: Italy
+ - RESIDENTIAL_NL: Netherlands
+ - RESIDENTIAL_ISP: ISP proxy
+ - US-CA: California (deprecated, routes through RESIDENTIAL_ISP)
+ - US-NY: New York (deprecated, routes through RESIDENTIAL_ISP)
+ - US-TX: Texas (deprecated, routes through RESIDENTIAL_ISP)
+ - US-FL: Florida (deprecated, routes through RESIDENTIAL_ISP)
+ - US-WA: Washington (deprecated, routes through RESIDENTIAL_ISP)
+ - NONE: No proxy
- async def get_folders(
- self,
- *,
- page: typing.Optional[int] = None,
- page_size: typing.Optional[int] = None,
- search: typing.Optional[str] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> typing.List[Folder]:
- """
- Get all folders for the organization
+ For self-hosted deployments, you can pass a custom proxy URL as a dict: {"url": "http://user:[email protected]:8080"}. This routes the browser through your own proxy server and takes precedence over any globally configured proxy pool.
+ Can also be a GeoTarget object for granular city/state targeting: {"country": "US", "subdivision": "CA", "city": "San Francisco"}
- Parameters
- ----------
- page : typing.Optional[int]
- Page number
+ webhook_url : typing.Optional[str]
+ URL to send workflow status updates to after a run is finished. Refer to https://www.skyvern.com/docs/running-tasks/webhooks-faq for webhook questions.
- page_size : typing.Optional[int]
- Number of folders per page
+ totp_url : typing.Optional[str]
- search : typing.Optional[str]
- Search folders by title or description
+ URL that serves TOTP/2FA/MFA codes for Skyvern to use during the workflow run. Refer to https://www.skyvern.com/docs/credentials/totp#option-2-get-code-from-your-endpoint for more details.
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
+ totp_identifier : typing.Optional[str]
- Returns
- -------
- typing.List[Folder]
- Successfully retrieved folders
+ Identifier for the TOTP/2FA/MFA code when the code is pushed to Skyvern. Refer to https://www.skyvern.com/docs/credentials/totp#option-3-push-code-to-skyvern for more details.
- Examples
- --------
- import asyncio
+ browser_session_id : typing.Optional[str]
+ ID of a Skyvern browser session to reuse, having it continue from the current screen state
- from skyvern import AsyncSkyvern
+ browser_profile_id : typing.Optional[str]
+ ID of a browser profile to reuse for this workflow run
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
+ max_screenshot_scrolls : typing.Optional[int]
+ The maximum number of scrolls for the post action screenshot. When it's None or 0, it takes the current viewpoint screenshot.
+ max_elapsed_time_minutes : typing.Optional[int]
+ Timeout this workflow run after the configured elapsed runtime in minutes. When omitted, the platform default is 240 minutes. The maximum configurable value is 480 minutes.
- async def main() -> None:
- await client.get_folders(
- page=1,
- page_size=1,
- search="search",
- )
+ extra_http_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ The extra HTTP headers for the requests in browser.
+ cdp_connect_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ HTTP headers attached ONLY to the CDP WebSocket handshake when connecting to a remote browser via browser_address. Use this for browser-provider auth (e.g., x-api-key for Skyvern Cloud, Browserless, or similar). These headers are NEVER forwarded to target websites.
- asyncio.run(main())
- """
- _response = await self._raw_client.get_folders(
- page=page, page_size=page_size, search=search, request_options=request_options
- )
- return _response.data
+ browser_address : typing.Optional[str]
+ The CDP address for the workflow run.
- async def create_folder(
- self,
- *,
- title: str,
- description: typing.Optional[str] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> Folder:
- """
- Create a new folder to organize workflows
+ ai_fallback : typing.Optional[bool]
+ Whether to fallback to AI if the workflow run fails.
- Parameters
- ----------
- title : str
- Folder title
+ run_with : typing.Optional[str]
+ Whether to run the workflow with agent or code. Null inherits from the workflow setting.
- description : typing.Optional[str]
- Folder description
+ run_metadata : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ String key/value metadata to attach to this workflow run for analytics tag filtering.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- Folder
- Successfully created folder
+ WorkflowRunResponse
+ Successfully ran agent
Examples
--------
@@ -4817,34 +3714,57 @@ class AsyncSkyvern:
async def main() -> None:
- await client.create_folder(
- title="title",
+ await client.run_workflow(
+ max_steps_override=1,
+ user_agent="x-user-agent",
+ template=True,
+ agent_id="wpid_123",
)
asyncio.run(main())
"""
- _response = await self._raw_client.create_folder(
- title=title, description=description, request_options=request_options
+ _response = await self._raw_client.run_workflow(
+ agent_id=agent_id,
+ template=template,
+ max_steps_override=max_steps_override,
+ user_agent=user_agent,
+ parameters=parameters,
+ title=title,
+ proxy_location=proxy_location,
+ webhook_url=webhook_url,
+ totp_url=totp_url,
+ totp_identifier=totp_identifier,
+ browser_session_id=browser_session_id,
+ browser_profile_id=browser_profile_id,
+ max_screenshot_scrolls=max_screenshot_scrolls,
+ max_elapsed_time_minutes=max_elapsed_time_minutes,
+ extra_http_headers=extra_http_headers,
+ cdp_connect_headers=cdp_connect_headers,
+ browser_address=browser_address,
+ ai_fallback=ai_fallback,
+ run_with=run_with,
+ run_metadata=run_metadata,
+ request_options=request_options,
)
return _response.data
- async def get_folder(self, folder_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Folder:
+ async def get_run(self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetRunResponse:
"""
- Get a specific folder by ID
+ Get run information (task run, workflow run)
Parameters
----------
- folder_id : str
- Folder ID
+ run_id : str
+ The id of the task run or the workflow run.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- Folder
- Successfully retrieved folder
+ GetRunResponse
+ Successfully got run
Examples
--------
@@ -4858,45 +3778,34 @@ class AsyncSkyvern:
async def main() -> None:
- await client.get_folder(
- folder_id="fld_123",
+ await client.get_run(
+ run_id="tsk_123",
)
asyncio.run(main())
"""
- _response = await self._raw_client.get_folder(folder_id, request_options=request_options)
+ _response = await self._raw_client.get_run(run_id, request_options=request_options)
return _response.data
- async def update_folder(
- self,
- folder_id: str,
- *,
- title: typing.Optional[str] = OMIT,
- description: typing.Optional[str] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> Folder:
+ async def cancel_run(
+ self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> typing.Optional[typing.Any]:
"""
- Update a folder's title or description
+ Cancel a run (task or workflow)
Parameters
----------
- folder_id : str
- Folder ID
-
- title : typing.Optional[str]
- Folder title
-
- description : typing.Optional[str]
- Folder description
+ run_id : str
+ The id of the task run or the workflow run to cancel.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- Folder
- Successfully updated folder
+ typing.Optional[typing.Any]
+ Successful Response
Examples
--------
@@ -4910,43 +3819,34 @@ class AsyncSkyvern:
async def main() -> None:
- await client.update_folder(
- folder_id="fld_123",
+ await client.cancel_run(
+ run_id="run_id",
)
asyncio.run(main())
"""
- _response = await self._raw_client.update_folder(
- folder_id, title=title, description=description, request_options=request_options
- )
+ _response = await self._raw_client.cancel_run(run_id, request_options=request_options)
return _response.data
- async def delete_folder(
- self,
- folder_id: str,
- *,
- delete_workflows: typing.Optional[bool] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> typing.Dict[str, typing.Optional[typing.Any]]:
+ async def bulk_cancel_runs(
+ self, *, run_ids: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None
+ ) -> BulkCancelRunsResponse:
"""
- Delete a folder. Optionally delete all workflows in the folder.
+ Cancel multiple runs (tasks or workflows) in a single request
Parameters
----------
- folder_id : str
- Folder ID
-
- delete_workflows : typing.Optional[bool]
- If true, also delete all workflows in this folder
+ run_ids : typing.Sequence[str]
+ List of run IDs to cancel
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- typing.Dict[str, typing.Optional[typing.Any]]
- Successfully deleted folder
+ BulkCancelRunsResponse
+ Successful Response
Examples
--------
@@ -4960,93 +3860,77 @@ class AsyncSkyvern:
async def main() -> None:
- await client.delete_folder(
- folder_id="fld_123",
- delete_workflows=True,
+ await client.bulk_cancel_runs(
+ run_ids=["run_ids"],
)
asyncio.run(main())
"""
- _response = await self._raw_client.delete_folder(
- folder_id, delete_workflows=delete_workflows, request_options=request_options
- )
+ _response = await self._raw_client.bulk_cancel_runs(run_ids=run_ids, request_options=request_options)
return _response.data
- async def get_run_tags(
- self, workflow_run_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> RunTagsResponse:
+ async def get_workflows(
+ self,
+ *,
+ page: typing.Optional[int] = None,
+ page_size: typing.Optional[int] = None,
+ only_saved_tasks: typing.Optional[bool] = None,
+ only_workflows: typing.Optional[bool] = None,
+ only_templates: typing.Optional[bool] = None,
+ search_key: typing.Optional[str] = None,
+ title: typing.Optional[str] = None,
+ folder_id: typing.Optional[str] = None,
+ status: typing.Optional[typing.Union[WorkflowStatus, typing.Sequence[WorkflowStatus]]] = None,
+ tags: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
+ template: typing.Optional[bool] = None,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> typing.List[Workflow]:
"""
- Get the current tag state for a workflow run.
+ Get all workflows with the latest version for the organization.
+
+ Search semantics:
+ - If `search_key` is provided, its value is used as a unified search term for
+ `workflows.title`, `folders.title`, and workflow parameter metadata (key, description, and default_value for
+ `WorkflowParameterModel`).
+ - Falls back to deprecated `title` (title-only search) if `search_key` is not provided.
+ - Parameter metadata search excludes soft-deleted parameter rows across all parameter tables.
Parameters
----------
- workflow_run_id : str
- Workflow run ID
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- RunTagsResponse
- Successfully retrieved tags
-
- Examples
- --------
- import asyncio
-
- from skyvern import AsyncSkyvern
+ page : typing.Optional[int]
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
+ page_size : typing.Optional[int]
+ only_saved_tasks : typing.Optional[bool]
- async def main() -> None:
- await client.get_run_tags(
- workflow_run_id="wr_123",
- )
+ only_workflows : typing.Optional[bool]
+ only_templates : typing.Optional[bool]
- asyncio.run(main())
- """
- _response = await self._raw_client.get_run_tags(workflow_run_id, request_options=request_options)
- return _response.data
+ search_key : typing.Optional[str]
+ Case-insensitive substring search across: workflow title, folder name, and parameter metadata (key, description, default_value). A workflow is returned if any of these fields match. Soft-deleted parameter definitions are excluded. Takes precedence over the deprecated `title` parameter.
- async def apply_run_tags(
- self,
- workflow_run_id: str,
- *,
- tags: typing.Optional[typing.Sequence[TagInput]] = OMIT,
- tags_to_delete: typing.Optional[typing.Sequence[TagDeleteInput]] = OMIT,
- colors: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> RunTagsResponse:
- """
- Atomically apply tag changes to a workflow run. Sets and deletes happen in one transaction; same-key collisions resolve set-wins.
+ title : typing.Optional[str]
+ Deprecated: use search_key instead. Falls back to title-only search if search_key is not provided.
- Parameters
- ----------
- workflow_run_id : str
- Workflow run ID
+ folder_id : typing.Optional[str]
+ Filter workflows by folder ID
- tags : typing.Optional[typing.Sequence[TagInput]]
- Tags to set (overwrite). List of {key?, value} objects.
+ status : typing.Optional[typing.Union[WorkflowStatus, typing.Sequence[WorkflowStatus]]]
- tags_to_delete : typing.Optional[typing.Sequence[TagDeleteInput]]
- Tags to soft-delete. List of {key?, value?} targets.
+ tags : typing.Optional[typing.Union[str, typing.Sequence[str]]]
+ Filter by tags. Each term is a label (`production`), a group (`env:*`), or a group:label (`env:prod`). Repeat the param or comma-separate (`?tags=env:prod,env:staging`). AND across distinct terms, OR within a group's labels (`?tags=customer:acme,env:prod,env:staging` -> customer=acme AND env in (prod, staging)). A label term matches the value across any/no group. Matches current tag values only. Not supported with `template=true`.
- colors : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- Optional map of grouped tag key to palette color name for the value being set. Keys absent from this map keep their existing color or receive a random palette color.
+ template : typing.Optional[bool]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- RunTagsResponse
- Successfully applied tag changes
+ typing.List[Workflow]
+ Successful Response
Examples
--------
@@ -5060,39 +3944,66 @@ class AsyncSkyvern:
async def main() -> None:
- await client.apply_run_tags(
- workflow_run_id="wr_123",
+ await client.get_workflows(
+ page=1,
+ page_size=1,
+ only_saved_tasks=True,
+ only_workflows=True,
+ only_templates=True,
+ search_key="search_key",
+ title="title",
+ folder_id="folder_id",
+ template=True,
)
asyncio.run(main())
"""
- _response = await self._raw_client.apply_run_tags(
- workflow_run_id, tags=tags, tags_to_delete=tags_to_delete, colors=colors, request_options=request_options
+ _response = await self._raw_client.get_workflows(
+ page=page,
+ page_size=page_size,
+ only_saved_tasks=only_saved_tasks,
+ only_workflows=only_workflows,
+ only_templates=only_templates,
+ search_key=search_key,
+ title=title,
+ folder_id=folder_id,
+ status=status,
+ tags=tags,
+ template=template,
+ request_options=request_options,
)
return _response.data
- async def delete_run_tag(
- self, workflow_run_id: str, key: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> RunTagsResponse:
+ async def create_workflow(
+ self,
+ *,
+ folder_id: typing.Optional[str] = None,
+ json_definition: typing.Optional[WorkflowCreateYamlRequest] = OMIT,
+ yaml_definition: typing.Optional[str] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> Workflow:
"""
- Soft-delete a single grouped tag from a workflow run. Writes a DELETE event row.
+ Create a new agent
Parameters
----------
- workflow_run_id : str
- Workflow run ID
+ folder_id : typing.Optional[str]
+ Optional folder ID to assign the workflow to
- key : str
- Tag key to delete
+ json_definition : typing.Optional[WorkflowCreateYamlRequest]
+ Workflow definition in JSON format
+
+ yaml_definition : typing.Optional[str]
+ Workflow definition in YAML format
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- RunTagsResponse
- Successfully deleted tag (or no-op if absent)
+ Workflow
+ Successfully created agent
Examples
--------
@@ -5106,55 +4017,54 @@ class AsyncSkyvern:
async def main() -> None:
- await client.delete_run_tag(
- workflow_run_id="wr_123",
- key="env",
+ await client.create_workflow(
+ folder_id="folder_id",
)
asyncio.run(main())
"""
- _response = await self._raw_client.delete_run_tag(workflow_run_id, key, request_options=request_options)
+ _response = await self._raw_client.create_workflow(
+ folder_id=folder_id,
+ json_definition=json_definition,
+ yaml_definition=yaml_definition,
+ request_options=request_options,
+ )
return _response.data
- async def get_run_tag_history(
+ async def update_workflow(
self,
- workflow_run_id: str,
+ workflow_id: str,
*,
- limit: typing.Optional[int] = None,
- since: typing.Optional[dt.datetime] = None,
- key: typing.Optional[str] = None,
+ json_definition: typing.Optional[WorkflowCreateYamlRequest] = OMIT,
+ yaml_definition: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> RunTagHistoryResponse:
+ ) -> Workflow:
"""
- Chronological tag-event log for a workflow run (newest first). Includes SET and DELETE events.
+ Update an agent
Parameters
----------
- workflow_run_id : str
- Workflow run ID
-
- limit : typing.Optional[int]
- Max events to return
+ workflow_id : str
+ The ID of the agent to update. Starts with `wpid_`.
- since : typing.Optional[dt.datetime]
- Only return events at or after this timestamp
+ json_definition : typing.Optional[WorkflowCreateYamlRequest]
+ Workflow definition in JSON format
- key : typing.Optional[str]
- Filter to events for a single tag key
+ yaml_definition : typing.Optional[str]
+ Workflow definition in YAML format
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- RunTagHistoryResponse
- Successfully retrieved tag history
+ Workflow
+ Successfully updated agent
Examples
--------
import asyncio
- import datetime
from skyvern import AsyncSkyvern
@@ -5164,36 +4074,39 @@ class AsyncSkyvern:
async def main() -> None:
- await client.get_run_tag_history(
- workflow_run_id="wr_123",
- limit=1,
- since=datetime.datetime.fromisoformat(
- "2024-01-15 09:30:00+00:00",
- ),
- key="key",
+ await client.update_workflow(
+ workflow_id="wpid_123",
)
asyncio.run(main())
"""
- _response = await self._raw_client.get_run_tag_history(
- workflow_run_id, limit=limit, since=since, key=key, request_options=request_options
+ _response = await self._raw_client.update_workflow(
+ workflow_id,
+ json_definition=json_definition,
+ yaml_definition=yaml_definition,
+ request_options=request_options,
)
return _response.data
- async def list_tag_keys(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[TagKey]:
+ async def delete_workflow(
+ self, workflow_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> typing.Optional[typing.Any]:
"""
- List all tag keys registered for the organization with their descriptions.
+ Delete an agent
Parameters
----------
+ workflow_id : str
+ The ID of the agent to delete. Starts with `wpid_`.
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- typing.List[TagKey]
- Successfully retrieved tag keys
+ typing.Optional[typing.Any]
+ Successfully deleted agent
Examples
--------
@@ -5207,32 +4120,45 @@ class AsyncSkyvern:
async def main() -> None:
- await client.list_tag_keys()
+ await client.delete_workflow(
+ workflow_id="wpid_123",
+ )
asyncio.run(main())
"""
- _response = await self._raw_client.list_tag_keys(request_options=request_options)
+ _response = await self._raw_client.delete_workflow(workflow_id, request_options=request_options)
return _response.data
- async def delete_tag_key(
- self, key: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> TagKeyDeleteResponse:
+ async def get_folders(
+ self,
+ *,
+ page: typing.Optional[int] = None,
+ page_size: typing.Optional[int] = None,
+ search: typing.Optional[str] = None,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> typing.List[Folder]:
"""
- Delete a tag key from the organization registry and remove that tag from every workflow that currently has it (cascade). Returns how many workflows the tag was removed from.
+ Get all folders for the organization
Parameters
----------
- key : str
- Tag key to delete
+ page : typing.Optional[int]
+ Page number
+
+ page_size : typing.Optional[int]
+ Number of folders per page
+
+ search : typing.Optional[str]
+ Search folders by title or description
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- TagKeyDeleteResponse
- Successfully deleted tag key
+ typing.List[Folder]
+ Successfully retrieved folders
Examples
--------
@@ -5246,41 +4172,45 @@ class AsyncSkyvern:
async def main() -> None:
- await client.delete_tag_key(
- key="env",
+ await client.get_folders(
+ page=1,
+ page_size=1,
+ search="search",
)
asyncio.run(main())
"""
- _response = await self._raw_client.delete_tag_key(key, request_options=request_options)
+ _response = await self._raw_client.get_folders(
+ page=page, page_size=page_size, search=search, request_options=request_options
+ )
return _response.data
- async def update_tag_key(
+ async def create_folder(
self,
- key: str,
*,
+ title: str,
description: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> TagKey:
+ ) -> Folder:
"""
- Update the description for a tag key.
+ Create a new folder to organize workflows
Parameters
----------
- key : str
- Tag key to update
+ title : str
+ Folder title
description : typing.Optional[str]
- Free-form description (max 500 chars). Pass null to clear.
+ Folder description
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- TagKey
- Successfully updated tag key
+ Folder
+ Successfully created folder
Examples
--------
@@ -5294,34 +4224,34 @@ class AsyncSkyvern:
async def main() -> None:
- await client.update_tag_key(
- key="key",
+ await client.create_folder(
+ title="title",
)
asyncio.run(main())
"""
- _response = await self._raw_client.update_tag_key(key, description=description, request_options=request_options)
+ _response = await self._raw_client.create_folder(
+ title=title, description=description, request_options=request_options
+ )
return _response.data
- async def list_tag_values(
- self, *, key: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None
- ) -> typing.List[TagValue]:
+ async def get_folder(self, folder_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Folder:
"""
- List the palette color and current workflow usage count for each grouped tag (key, value) for the organization. The frontend joins these onto tags by (key, value); workflow_count is the number of non-deleted workflows carrying the label and powers the per-label usage and delete blast-radius warnings.
+ Get a specific folder by ID
Parameters
----------
- key : typing.Optional[str]
- Filter to values for a single tag key
+ folder_id : str
+ Folder ID
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- typing.List[TagValue]
- Successfully retrieved tag values
+ Folder
+ Successfully retrieved folder
Examples
--------
@@ -5335,37 +4265,45 @@ class AsyncSkyvern:
async def main() -> None:
- await client.list_tag_values(
- key="key",
+ await client.get_folder(
+ folder_id="fld_123",
)
asyncio.run(main())
"""
- _response = await self._raw_client.list_tag_values(key=key, request_options=request_options)
+ _response = await self._raw_client.get_folder(folder_id, request_options=request_options)
return _response.data
- async def delete_tag_value(
- self, key: str, *, value: str, request_options: typing.Optional[RequestOptions] = None
- ) -> TagValueDeleteResponse:
+ async def update_folder(
+ self,
+ folder_id: str,
+ *,
+ title: typing.Optional[str] = OMIT,
+ description: typing.Optional[str] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> Folder:
"""
- Soft-delete a grouped tag (key, value) and remove that label from every workflow carrying it (cascade). The value rides in the body so values containing '/' stay addressable. Returns how many workflows the label was removed from.
+ Update a folder's title or description
Parameters
----------
- key : str
- Tag key (group)
+ folder_id : str
+ Folder ID
+
+ title : typing.Optional[str]
+ Folder title
- value : str
- Tag value (label) under the key to soft-delete.
+ description : typing.Optional[str]
+ Folder description
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- TagValueDeleteResponse
- Successfully deleted tag value
+ Folder
+ Successfully updated folder
Examples
--------
@@ -5379,41 +4317,43 @@ class AsyncSkyvern:
async def main() -> None:
- await client.delete_tag_value(
- key="env",
- value="value",
+ await client.update_folder(
+ folder_id="fld_123",
)
asyncio.run(main())
"""
- _response = await self._raw_client.delete_tag_value(key, value=value, request_options=request_options)
+ _response = await self._raw_client.update_folder(
+ folder_id, title=title, description=description, request_options=request_options
+ )
return _response.data
- async def update_tag_value(
- self, key: str, *, value: str, color: str, request_options: typing.Optional[RequestOptions] = None
- ) -> TagValue:
+ async def delete_folder(
+ self,
+ folder_id: str,
+ *,
+ delete_workflows: typing.Optional[bool] = None,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> typing.Dict[str, typing.Optional[typing.Any]]:
"""
- Recolor a grouped tag (key, value). The value is supplied in the body so values containing '/' stay addressable. The new color must be a palette name.
+ Delete a folder. Optionally delete all workflows in the folder.
Parameters
----------
- key : str
- Tag key (group)
-
- value : str
- Tag value (label) under the key to recolor.
+ folder_id : str
+ Folder ID
- color : str
- Palette color name to assign to this (key, value).
+ delete_workflows : typing.Optional[bool]
+ If true, also delete all workflows in this folder
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- TagValue
- Successfully recolored tag value
+ typing.Dict[str, typing.Optional[typing.Any]]
+ Successfully deleted folder
Examples
--------
@@ -5427,44 +4367,32 @@ class AsyncSkyvern:
async def main() -> None:
- await client.update_tag_value(
- key="env",
- value="value",
- color="color",
+ await client.delete_folder(
+ folder_id="fld_123",
+ delete_workflows=True,
)
asyncio.run(main())
"""
- _response = await self._raw_client.update_tag_value(
- key, value=value, color=color, request_options=request_options
+ _response = await self._raw_client.delete_folder(
+ folder_id, delete_workflows=delete_workflows, request_options=request_options
)
return _response.data
- async def rename_tag_value(
- self, key: str, *, value: str, new_value: str, request_options: typing.Optional[RequestOptions] = None
- ) -> TagValueRenameResponse:
+ async def list_tag_keys(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[TagKey]:
"""
- Rename a grouped tag (key, value) to (key, new_value). The cascade re-tags every workflow carrying the old label; the new label inherits the old color. Both values ride in the body so values containing '/' stay addressable. Rejects with 409 when the new value already exists for the key.
+ List all tag keys registered for the organization with their descriptions.
Parameters
----------
- key : str
- Tag key (group)
-
- value : str
- Current tag value (label) under the key to rename.
-
- new_value : str
- New tag value (label) to rename it to.
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- TagValueRenameResponse
- Successfully renamed tag value
+ typing.List[TagKey]
+ Successfully retrieved tag keys
Examples
--------
@@ -5478,41 +4406,32 @@ class AsyncSkyvern:
async def main() -> None:
- await client.rename_tag_value(
- key="env",
- value="value",
- new_value="new_value",
- )
+ await client.list_tag_keys()
asyncio.run(main())
"""
- _response = await self._raw_client.rename_tag_value(
- key, value=value, new_value=new_value, request_options=request_options
- )
+ _response = await self._raw_client.list_tag_keys(request_options=request_options)
return _response.data
- async def batch_get_workflow_tags(
- self,
- *,
- workflow_permanent_ids: typing.Optional[str] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> WorkflowTagsBatchResponse:
+ async def delete_tag_key(
+ self, key: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> TagKeyDeleteResponse:
"""
- Batch fetch current tags for many workflows. Avoids N+1 on the workflows-list page.
+ Delete a tag key from the organization registry and remove that tag from every workflow that currently has it (cascade). Returns how many workflows the tag was removed from.
Parameters
----------
- workflow_permanent_ids : typing.Optional[str]
- Comma-separated workflow permanent IDs
+ key : str
+ Tag key to delete
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- WorkflowTagsBatchResponse
- Successfully retrieved tags
+ TagKeyDeleteResponse
+ Successfully deleted tag key
Examples
--------
@@ -5526,39 +4445,41 @@ class AsyncSkyvern:
async def main() -> None:
- await client.batch_get_workflow_tags(
- workflow_permanent_ids="workflow_permanent_ids",
+ await client.delete_tag_key(
+ key="env",
)
asyncio.run(main())
"""
- _response = await self._raw_client.batch_get_workflow_tags(
- workflow_permanent_ids=workflow_permanent_ids, request_options=request_options
- )
+ _response = await self._raw_client.delete_tag_key(key, request_options=request_options)
return _response.data
- async def batch_get_workflow_tags_post(
+ async def update_tag_key(
self,
+ key: str,
*,
- workflow_permanent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
+ description: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> WorkflowTagsBatchResponse:
+ ) -> TagKey:
"""
- Batch fetch current tags for many workflows (POST variant for id lists exceeding URL length).
+ Update the description for a tag key.
Parameters
----------
- workflow_permanent_ids : typing.Optional[typing.Sequence[str]]
- Workflow permanent IDs to fetch tags for.
+ key : str
+ Tag key to update
+
+ description : typing.Optional[str]
+ Free-form description (max 500 chars). Pass null to clear.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- WorkflowTagsBatchResponse
- Successfully retrieved tags
+ TagKey
+ Successfully updated tag key
Examples
--------
@@ -5572,33 +4493,36 @@ class AsyncSkyvern:
async def main() -> None:
- await client.batch_get_workflow_tags_post()
+ await client.update_tag_key(
+ key="key",
+ )
asyncio.run(main())
"""
- _response = await self._raw_client.batch_get_workflow_tags_post(
- workflow_permanent_ids=workflow_permanent_ids, request_options=request_options
- )
+ _response = await self._raw_client.update_tag_key(key, description=description, request_options=request_options)
return _response.data
- async def batch_get_run_tags(
- self, *, workflow_run_ids: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None
- ) -> RunTagsBatchResponse:
+ async def batch_get_workflow_tags(
+ self,
+ *,
+ workflow_permanent_ids: typing.Optional[str] = None,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> WorkflowTagsBatchResponse:
"""
- Batch fetch current tags for many workflow runs. Avoids N+1 on run-list pages.
+ Batch fetch current tags for many workflows. Avoids N+1 on the workflows-list page.
Parameters
----------
- workflow_run_ids : typing.Optional[str]
- Comma-separated workflow run IDs
+ workflow_permanent_ids : typing.Optional[str]
+ Comma-separated workflow permanent IDs
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- RunTagsBatchResponse
+ WorkflowTagsBatchResponse
Successfully retrieved tags
Examples
@@ -5613,38 +4537,38 @@ class AsyncSkyvern:
async def main() -> None:
- await client.batch_get_run_tags(
- workflow_run_ids="workflow_run_ids",
+ await client.batch_get_workflow_tags(
+ workflow_permanent_ids="workflow_permanent_ids",
)
asyncio.run(main())
"""
- _response = await self._raw_client.batch_get_run_tags(
- workflow_run_ids=workflow_run_ids, request_options=request_options
+ _response = await self._raw_client.batch_get_workflow_tags(
+ workflow_permanent_ids=workflow_permanent_ids, request_options=request_options
)
return _response.data
- async def batch_get_run_tags_post(
+ async def batch_get_workflow_tags_post(
self,
*,
- workflow_run_ids: typing.Optional[typing.Sequence[str]] = OMIT,
+ workflow_permanent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> RunTagsBatchResponse:
+ ) -> WorkflowTagsBatchResponse:
"""
- Batch fetch current tags for many workflow runs (POST variant for id lists exceeding URL length).
+ Batch fetch current tags for many workflows (POST variant for id lists exceeding URL length).
Parameters
----------
- workflow_run_ids : typing.Optional[typing.Sequence[str]]
- Workflow run IDs to fetch tags for.
+ workflow_permanent_ids : typing.Optional[typing.Sequence[str]]
+ Workflow permanent IDs to fetch tags for.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- RunTagsBatchResponse
+ WorkflowTagsBatchResponse
Successfully retrieved tags
Examples
@@ -5659,13 +4583,13 @@ class AsyncSkyvern:
async def main() -> None:
- await client.batch_get_run_tags_post()
+ await client.batch_get_workflow_tags_post()
asyncio.run(main())
"""
- _response = await self._raw_client.batch_get_run_tags_post(
- workflow_run_ids=workflow_run_ids, request_options=request_options
+ _response = await self._raw_client.batch_get_workflow_tags_post(
+ workflow_permanent_ids=workflow_permanent_ids, request_options=request_options
)
return _response.data
@@ -5848,7 +4772,6 @@ class AsyncSkyvern:
page_size: typing.Optional[int] = None,
status: typing.Optional[typing.Union[RunStatus, typing.Sequence[RunStatus]]] = None,
search_key: typing.Optional[str] = None,
- run_type: typing.Optional[typing.Union[RunType, typing.Sequence[RunType]]] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> typing.List[TaskRunListItem]:
"""
@@ -5863,8 +4786,6 @@ class AsyncSkyvern:
search_key : typing.Optional[str]
Case-insensitive substring search (min 3 chars for trigram index).
- run_type : typing.Optional[typing.Union[RunType, typing.Sequence[RunType]]]
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -5895,12 +4816,7 @@ class AsyncSkyvern:
asyncio.run(main())
"""
_response = await self._raw_client.get_runs_v2(
- page=page,
- page_size=page_size,
- status=status,
- search_key=search_key,
- run_type=run_type,
- request_options=request_options,
+ page=page, page_size=page_size, status=status, search_key=search_key, request_options=request_options
)
return _response.data
@@ -5949,7 +4865,6 @@ class AsyncSkyvern:
page_size: typing.Optional[int] = None,
include_deleted: typing.Optional[bool] = None,
search_key: typing.Optional[str] = None,
- managed: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> typing.List[BrowserProfile]:
"""
@@ -5967,9 +4882,6 @@ class AsyncSkyvern:
search_key : typing.Optional[str]
Case-insensitive substring search across: browser profile name and description. A profile is returned if either field matches.
- managed : typing.Optional[bool]
- Omit to return all profiles; false returns only user-created profiles; true returns only auto-managed profiles.
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -5995,7 +4907,6 @@ class AsyncSkyvern:
page_size=1,
include_deleted=True,
search_key="search_key",
- managed=True,
)
@@ -6006,7 +4917,6 @@ class AsyncSkyvern:
page_size=page_size,
include_deleted=include_deleted,
search_key=search_key,
- managed=managed,
request_options=request_options,
)
return _response.data
@@ -6277,7 +5187,6 @@ class AsyncSkyvern:
*,
timeout: typing.Optional[int] = OMIT,
proxy_location: typing.Optional[CreateBrowserSessionRequestProxyLocation] = OMIT,
- proxy_session_id: typing.Optional[str] = OMIT,
extensions: typing.Optional[typing.Sequence[Extensions]] = OMIT,
browser_type: typing.Optional[PersistentBrowserType] = OMIT,
browser_profile_id: typing.Optional[str] = OMIT,
@@ -6329,9 +5238,6 @@ class AsyncSkyvern:
For self-hosted deployments, you can pass a custom proxy URL as a dict: {"url": "http://user:[email protected]:8080"}. This routes the browser through your own proxy server and takes precedence over any globally configured proxy pool.
Can also be a GeoTarget object for granular city/state targeting: {"country": "US", "subdivision": "CA", "city": "San Francisco"}, or a custom proxy URL dict for self-hosted deployments: {"url": "http://user:[email protected]:8080"}
- proxy_session_id : typing.Optional[str]
- Opaque Skyvern-managed proxy sticky-session id for pinned Residential ISP sessions.
-
extensions : typing.Optional[typing.Sequence[Extensions]]
A list of extensions to install in the browser session.
@@ -6372,7 +5278,6 @@ class AsyncSkyvern:
_response = await self._raw_client.create_browser_session(
timeout=timeout,
proxy_location=proxy_location,
- proxy_session_id=proxy_session_id,
extensions=extensions,
browser_type=browser_type,
browser_profile_id=browser_profile_id,
@@ -6919,177 +5824,6 @@ class AsyncSkyvern:
_response = await self._raw_client.get_credential(credential_id, request_options=request_options)
return _response.data
- async def list_custom_llms(
- self, *, request_options: typing.Optional[RequestOptions] = None
- ) -> CustomLlmListResponse:
- """
- List the custom LLM configurations available to the current organization.
-
- Parameters
- ----------
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- CustomLlmListResponse
- Successful Response
-
- Examples
- --------
- import asyncio
-
- from skyvern import AsyncSkyvern
-
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
-
-
- async def main() -> None:
- await client.list_custom_llms()
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.list_custom_llms(request_options=request_options)
- return _response.data
-
- async def create_custom_llm(
- self, *, config: CustomLlmConfig, request_options: typing.Optional[RequestOptions] = None
- ) -> CustomLlmResponse:
- """
- Create a custom LLM configuration for the current organization.
-
- Parameters
- ----------
- config : CustomLlmConfig
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- CustomLlmResponse
- Successful Response
-
- Examples
- --------
- import asyncio
-
- from skyvern import AsyncSkyvern, CustomLlmConfig
-
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
-
-
- async def main() -> None:
- await client.create_custom_llm(
- config=CustomLlmConfig(
- display_name="display_name",
- provider="openai_compatible",
- model_name="model_name",
- ),
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.create_custom_llm(config=config, request_options=request_options)
- return _response.data
-
- async def update_custom_llm(
- self, custom_llm_id: str, *, config: CustomLlmConfig, request_options: typing.Optional[RequestOptions] = None
- ) -> CustomLlmResponse:
- """
- Update a custom LLM configuration for the current organization.
-
- Parameters
- ----------
- custom_llm_id : str
- The custom LLM id.
-
- config : CustomLlmConfig
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- CustomLlmResponse
- Successful Response
-
- Examples
- --------
- import asyncio
-
- from skyvern import AsyncSkyvern, CustomLlmConfig
-
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
-
-
- async def main() -> None:
- await client.update_custom_llm(
- custom_llm_id="custom_llm_id",
- config=CustomLlmConfig(
- display_name="display_name",
- provider="openai_compatible",
- model_name="model_name",
- ),
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.update_custom_llm(
- custom_llm_id, config=config, request_options=request_options
- )
- return _response.data
-
- async def delete_custom_llm(
- self, custom_llm_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> ClearOrganizationAuthTokenResponse:
- """
- Delete a custom LLM configuration for the current organization.
-
- Parameters
- ----------
- custom_llm_id : str
- The custom LLM id.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- ClearOrganizationAuthTokenResponse
- Successful Response
-
- Examples
- --------
- import asyncio
-
- from skyvern import AsyncSkyvern
-
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
-
-
- async def main() -> None:
- await client.delete_custom_llm(
- custom_llm_id="custom_llm_id",
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.delete_custom_llm(custom_llm_id, request_options=request_options)
- return _response.data
-
async def login(
self,
*,
@@ -7728,7 +6462,6 @@ class AsyncSkyvern:
*,
tags: typing.Optional[typing.Sequence[TagInput]] = OMIT,
tags_to_delete: typing.Optional[typing.Sequence[TagDeleteInput]] = OMIT,
- colors: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> TagsResponse:
"""
@@ -7745,9 +6478,6 @@ class AsyncSkyvern:
tags_to_delete : typing.Optional[typing.Sequence[TagDeleteInput]]
Tags to soft-delete. List of {key?, value?} targets.
- colors : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- Optional map of grouped tag key to palette color name for the value being set. Keys absent from this map keep their existing color or receive a random palette color.
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -7776,11 +6506,7 @@ class AsyncSkyvern:
asyncio.run(main())
"""
_response = await self._raw_client.apply_workflow_tags(
- workflow_permanent_id,
- tags=tags,
- tags_to_delete=tags_to_delete,
- colors=colors,
- request_options=request_options,
+ workflow_permanent_id, tags=tags, tags_to_delete=tags_to_delete, request_options=request_options
)
return _response.data
@@ -8058,8 +6784,6 @@ class AsyncSkyvern:
status: typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]] = None,
search_key: typing.Optional[str] = None,
error_code: typing.Optional[str] = None,
- created_at_start: typing.Optional[dt.datetime] = None,
- created_at_end: typing.Optional[dt.datetime] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> typing.List[WorkflowRun]:
"""
@@ -8094,12 +6818,6 @@ class AsyncSkyvern:
error_code : typing.Optional[str]
Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution.
- created_at_start : typing.Optional[dt.datetime]
- Only include runs created at or after this UTC timestamp (ISO 8601).
-
- created_at_end : typing.Optional[dt.datetime]
- Only include runs created strictly before this UTC timestamp (ISO 8601).
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -8111,7 +6829,6 @@ class AsyncSkyvern:
Examples
--------
import asyncio
- import datetime
from skyvern import AsyncSkyvern
@@ -8127,12 +6844,6 @@ class AsyncSkyvern:
page_size=1,
search_key="search_key",
error_code="error_code",
- created_at_start=datetime.datetime.fromisoformat(
- "2024-01-15 09:30:00+00:00",
- ),
- created_at_end=datetime.datetime.fromisoformat(
- "2024-01-15 09:30:00+00:00",
- ),
)
@@ -8145,8 +6856,6 @@ class AsyncSkyvern:
status=status,
search_key=search_key,
error_code=error_code,
- created_at_start=created_at_start,
- created_at_end=created_at_end,
request_options=request_options,
)
return _response.data
diff --git a/skyvern/client/core/client_wrapper.py b/skyvern/client/core/client_wrapper.py
index 7c02341d1..0e89bf1e6 100644
--- a/skyvern/client/core/client_wrapper.py
+++ b/skyvern/client/core/client_wrapper.py
@@ -22,10 +22,10 @@ class BaseClientWrapper:
def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
- "User-Agent": "skyvern/1.0.47",
+ "User-Agent": "skyvern/1.0.45",
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "skyvern",
- "X-Fern-SDK-Version": "1.0.47",
+ "X-Fern-SDK-Version": "1.0.45",
**(self.get_custom_headers() or {}),
}
if self._api_key is not None:
diff --git a/skyvern/client/raw_client.py b/skyvern/client/raw_client.py
index 2b386f51d..7938c1c57 100644
--- a/skyvern/client/raw_client.py
+++ b/skyvern/client/raw_client.py
@@ -22,7 +22,6 @@ from .types.artifact_type import ArtifactType
from .types.browser_profile import BrowserProfile
from .types.browser_session_response import BrowserSessionResponse
from .types.bulk_cancel_runs_response import BulkCancelRunsResponse
-from .types.clear_organization_auth_token_response import ClearOrganizationAuthTokenResponse
from .types.create_browser_profile_request_proxy_location import CreateBrowserProfileRequestProxyLocation
from .types.create_browser_session_request_proxy_location import CreateBrowserSessionRequestProxyLocation
from .types.create_credential_request_credential import CreateCredentialRequestCredential
@@ -30,9 +29,6 @@ from .types.create_credential_request_proxy_location import CreateCredentialRequ
from .types.create_script_response import CreateScriptResponse
from .types.credential_response import CredentialResponse
from .types.credential_vault_type import CredentialVaultType
-from .types.custom_llm_config import CustomLlmConfig
-from .types.custom_llm_list_response import CustomLlmListResponse
-from .types.custom_llm_response import CustomLlmResponse
from .types.extensions import Extensions
from .types.folder import Folder
from .types.get_run_response import GetRunResponse
@@ -44,10 +40,6 @@ from .types.run_engine import RunEngine
from .types.run_sdk_action_request_action import RunSdkActionRequestAction
from .types.run_sdk_action_response import RunSdkActionResponse
from .types.run_status import RunStatus
-from .types.run_tag_history_response import RunTagHistoryResponse
-from .types.run_tags_batch_response import RunTagsBatchResponse
-from .types.run_tags_response import RunTagsResponse
-from .types.run_type import RunType
from .types.run_webhook_replay_response import RunWebhookReplayResponse
from .types.script import Script
from .types.script_file_create import ScriptFileCreate
@@ -58,9 +50,6 @@ from .types.tag_history_response import TagHistoryResponse
from .types.tag_input import TagInput
from .types.tag_key import TagKey
from .types.tag_key_delete_response import TagKeyDeleteResponse
-from .types.tag_value import TagValue
-from .types.tag_value_delete_response import TagValueDeleteResponse
-from .types.tag_value_rename_response import TagValueRenameResponse
from .types.tags_response import TagsResponse
from .types.task_run_list_item import TaskRunListItem
from .types.task_run_request_input_data_extraction_schema import TaskRunRequestInputDataExtractionSchema
@@ -1338,51 +1327,37 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def get_run_tags(
- self, workflow_run_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[RunTagsResponse]:
+ def list_tag_keys(
+ self, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> HttpResponse[typing.List[TagKey]]:
"""
- Get the current tag state for a workflow run.
+ List all tag keys registered for the organization with their descriptions.
Parameters
----------
- workflow_run_id : str
- Workflow run ID
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[RunTagsResponse]
- Successfully retrieved tags
+ HttpResponse[typing.List[TagKey]]
+ Successfully retrieved tag keys
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/runs/{jsonable_encoder(workflow_run_id)}/tags",
+ "v1/tag-keys",
method="GET",
request_options=request_options,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- RunTagsResponse,
+ typing.List[TagKey],
parse_obj_as(
- type_=RunTagsResponse, # type: ignore
+ type_=typing.List[TagKey], # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -1399,64 +1374,36 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def apply_run_tags(
- self,
- workflow_run_id: str,
- *,
- tags: typing.Optional[typing.Sequence[TagInput]] = OMIT,
- tags_to_delete: typing.Optional[typing.Sequence[TagDeleteInput]] = OMIT,
- colors: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[RunTagsResponse]:
+ def delete_tag_key(
+ self, key: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> HttpResponse[TagKeyDeleteResponse]:
"""
- Atomically apply tag changes to a workflow run. Sets and deletes happen in one transaction; same-key collisions resolve set-wins.
+ Delete a tag key from the organization registry and remove that tag from every workflow that currently has it (cascade). Returns how many workflows the tag was removed from.
Parameters
----------
- workflow_run_id : str
- Workflow run ID
-
- tags : typing.Optional[typing.Sequence[TagInput]]
- Tags to set (overwrite). List of {key?, value} objects.
-
- tags_to_delete : typing.Optional[typing.Sequence[TagDeleteInput]]
- Tags to soft-delete. List of {key?, value?} targets.
-
- colors : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- Optional map of grouped tag key to palette color name for the value being set. Keys absent from this map keep their existing color or receive a random palette color.
+ key : str
+ Tag key to delete
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[RunTagsResponse]
- Successfully applied tag changes
+ HttpResponse[TagKeyDeleteResponse]
+ Successfully deleted tag key
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/runs/{jsonable_encoder(workflow_run_id)}/tags",
- method="POST",
- json={
- "tags": convert_and_respect_annotation_metadata(
- object_=tags, annotation=typing.Sequence[TagInput], direction="write"
- ),
- "tags_to_delete": convert_and_respect_annotation_metadata(
- object_=tags_to_delete, annotation=typing.Sequence[TagDeleteInput], direction="write"
- ),
- "colors": colors,
- },
- headers={
- "content-type": "application/json",
- },
+ f"v1/tag-keys/{jsonable_encoder(key)}",
+ method="DELETE",
request_options=request_options,
- omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- RunTagsResponse,
+ TagKeyDeleteResponse,
parse_obj_as(
- type_=RunTagsResponse, # type: ignore
+ type_=TagKeyDeleteResponse, # type: ignore
object_=_response.json(),
),
)
@@ -1488,39 +1435,50 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def delete_run_tag(
- self, workflow_run_id: str, key: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[RunTagsResponse]:
+ def update_tag_key(
+ self,
+ key: str,
+ *,
+ description: typing.Optional[str] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> HttpResponse[TagKey]:
"""
- Soft-delete a single grouped tag from a workflow run. Writes a DELETE event row.
+ Update the description for a tag key.
Parameters
----------
- workflow_run_id : str
- Workflow run ID
-
key : str
- Tag key to delete
+ Tag key to update
+
+ description : typing.Optional[str]
+ Free-form description (max 500 chars). Pass null to clear.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[RunTagsResponse]
- Successfully deleted tag (or no-op if absent)
+ HttpResponse[TagKey]
+ Successfully updated tag key
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/runs/{jsonable_encoder(workflow_run_id)}/tags/{jsonable_encoder(key)}",
- method="DELETE",
+ f"v1/tag-keys/{jsonable_encoder(key)}",
+ method="PATCH",
+ json={
+ "description": description,
+ },
+ headers={
+ "content-type": "application/json",
+ },
request_options=request_options,
+ omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- RunTagsResponse,
+ TagKey,
parse_obj_as(
- type_=RunTagsResponse, # type: ignore
+ type_=TagKey, # type: ignore
object_=_response.json(),
),
)
@@ -1552,62 +1510,48 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def get_run_tag_history(
+ def batch_get_workflow_tags(
self,
- workflow_run_id: str,
*,
- limit: typing.Optional[int] = None,
- since: typing.Optional[dt.datetime] = None,
- key: typing.Optional[str] = None,
+ workflow_permanent_ids: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[RunTagHistoryResponse]:
+ ) -> HttpResponse[WorkflowTagsBatchResponse]:
"""
- Chronological tag-event log for a workflow run (newest first). Includes SET and DELETE events.
+ Batch fetch current tags for many workflows. Avoids N+1 on the workflows-list page.
Parameters
----------
- workflow_run_id : str
- Workflow run ID
-
- limit : typing.Optional[int]
- Max events to return
-
- since : typing.Optional[dt.datetime]
- Only return events at or after this timestamp
-
- key : typing.Optional[str]
- Filter to events for a single tag key
+ workflow_permanent_ids : typing.Optional[str]
+ Comma-separated workflow permanent IDs
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[RunTagHistoryResponse]
- Successfully retrieved tag history
+ HttpResponse[WorkflowTagsBatchResponse]
+ Successfully retrieved tags
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/runs/{jsonable_encoder(workflow_run_id)}/tags/history",
+ "v1/workflow-tags",
method="GET",
params={
- "limit": limit,
- "since": serialize_datetime(since) if since is not None else None,
- "key": key,
+ "workflow_permanent_ids": workflow_permanent_ids,
},
request_options=request_options,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- RunTagHistoryResponse,
+ WorkflowTagsBatchResponse,
parse_obj_as(
- type_=RunTagHistoryResponse, # type: ignore
+ type_=WorkflowTagsBatchResponse, # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
+ if _response.status_code == 400:
+ raise BadRequestError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -1633,37 +1577,61 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def list_tag_keys(
- self, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[typing.List[TagKey]]:
+ def batch_get_workflow_tags_post(
+ self,
+ *,
+ workflow_permanent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> HttpResponse[WorkflowTagsBatchResponse]:
"""
- List all tag keys registered for the organization with their descriptions.
+ Batch fetch current tags for many workflows (POST variant for id lists exceeding URL length).
Parameters
----------
+ workflow_permanent_ids : typing.Optional[typing.Sequence[str]]
+ Workflow permanent IDs to fetch tags for.
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[typing.List[TagKey]]
- Successfully retrieved tag keys
+ HttpResponse[WorkflowTagsBatchResponse]
+ Successfully retrieved tags
"""
_response = self._client_wrapper.httpx_client.request(
- "v1/tag-keys",
- method="GET",
+ "v1/workflow-tags",
+ method="POST",
+ json={
+ "workflow_permanent_ids": workflow_permanent_ids,
+ },
+ headers={
+ "content-type": "application/json",
+ },
request_options=request_options,
+ omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- typing.List[TagKey],
+ WorkflowTagsBatchResponse,
parse_obj_as(
- type_=typing.List[TagKey], # type: ignore
+ type_=WorkflowTagsBatchResponse, # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
+ if _response.status_code == 400:
+ raise BadRequestError(
+ headers=dict(_response.headers),
+ body=typing.cast(
+ typing.Optional[typing.Any],
+ parse_obj_as(
+ type_=typing.Optional[typing.Any], # type: ignore
+ object_=_response.json(),
+ ),
+ ),
+ )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -1680,51 +1648,49 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def delete_tag_key(
- self, key: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[TagKeyDeleteResponse]:
+ def get_run_artifacts(
+ self,
+ run_id: str,
+ *,
+ artifact_type: typing.Optional[typing.Union[ArtifactType, typing.Sequence[ArtifactType]]] = None,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> HttpResponse[typing.List[Artifact]]:
"""
- Delete a tag key from the organization registry and remove that tag from every workflow that currently has it (cascade). Returns how many workflows the tag was removed from.
+ Get artifacts for a run
Parameters
----------
- key : str
- Tag key to delete
+ run_id : str
+ The id of the task run or the workflow run.
+
+ artifact_type : typing.Optional[typing.Union[ArtifactType, typing.Sequence[ArtifactType]]]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[TagKeyDeleteResponse]
- Successfully deleted tag key
+ HttpResponse[typing.List[Artifact]]
+ Successful Response
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/tag-keys/{jsonable_encoder(key)}",
- method="DELETE",
+ f"v1/runs/{jsonable_encoder(run_id)}/artifacts",
+ method="GET",
+ params={
+ "artifact_type": artifact_type,
+ },
request_options=request_options,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- TagKeyDeleteResponse,
+ typing.List[Artifact],
parse_obj_as(
- type_=TagKeyDeleteResponse, # type: ignore
+ type_=typing.List[Artifact], # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -1741,38 +1707,37 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def update_tag_key(
+ def retry_run_webhook(
self,
- key: str,
+ run_id: str,
*,
- description: typing.Optional[str] = OMIT,
+ request: typing.Optional[RetryRunWebhookRequest] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[TagKey]:
+ ) -> HttpResponse[RunWebhookReplayResponse]:
"""
- Update the description for a tag key.
+ Retry sending the webhook for a run
Parameters
----------
- key : str
- Tag key to update
+ run_id : str
+ The id of the task run or the workflow run.
- description : typing.Optional[str]
- Free-form description (max 500 chars). Pass null to clear.
+ request : typing.Optional[RetryRunWebhookRequest]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[TagKey]
- Successfully updated tag key
+ HttpResponse[RunWebhookReplayResponse]
+ Successful Response
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/tag-keys/{jsonable_encoder(key)}",
- method="PATCH",
- json={
- "description": description,
- },
+ f"v1/runs/{jsonable_encoder(run_id)}/retry_webhook",
+ method="POST",
+ json=convert_and_respect_annotation_metadata(
+ object_=request, annotation=RetryRunWebhookRequest, direction="write"
+ ),
headers={
"content-type": "application/json",
},
@@ -1782,26 +1747,15 @@ class RawSkyvern:
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- TagKey,
+ RunWebhookReplayResponse,
parse_obj_as(
- type_=TagKey, # type: ignore
+ type_=RunWebhookReplayResponse, # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 422:
- raise UnprocessableEntityError(
+ if _response.status_code == 422:
+ raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -1816,45 +1770,42 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def list_tag_values(
- self, *, key: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[typing.List[TagValue]]:
+ def get_run_timeline(
+ self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> HttpResponse[typing.List[WorkflowRunTimeline]]:
"""
- List the palette color and current workflow usage count for each grouped tag (key, value) for the organization. The frontend joins these onto tags by (key, value); workflow_count is the number of non-deleted workflows carrying the label and powers the per-label usage and delete blast-radius warnings.
+ Get timeline for a run (workflow run or task_v2 run)
Parameters
----------
- key : typing.Optional[str]
- Filter to values for a single tag key
+ run_id : str
+ The id of the workflow run or task_v2 run.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[typing.List[TagValue]]
- Successfully retrieved tag values
+ HttpResponse[typing.List[WorkflowRunTimeline]]
+ Successfully retrieved run timeline
"""
_response = self._client_wrapper.httpx_client.request(
- "v1/tag-values",
+ f"v1/runs/{jsonable_encoder(run_id)}/timeline",
method="GET",
- params={
- "key": key,
- },
request_options=request_options,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- typing.List[TagValue],
+ typing.List[WorkflowRunTimeline],
parse_obj_as(
- type_=typing.List[TagValue], # type: ignore
+ type_=typing.List[WorkflowRunTimeline], # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
+ if _response.status_code == 400:
+ raise BadRequestError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -1864,55 +1815,6 @@ class RawSkyvern:
),
),
)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def delete_tag_value(
- self, key: str, *, value: str, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[TagValueDeleteResponse]:
- """
- Soft-delete a grouped tag (key, value) and remove that label from every workflow carrying it (cascade). The value rides in the body so values containing '/' stay addressable. Returns how many workflows the label was removed from.
-
- Parameters
- ----------
- key : str
- Tag key (group)
-
- value : str
- Tag value (label) under the key to soft-delete.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[TagValueDeleteResponse]
- Successfully deleted tag value
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/tag-values/{jsonable_encoder(key)}",
- method="DELETE",
- json={
- "value": value,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- TagValueDeleteResponse,
- parse_obj_as(
- type_=TagValueDeleteResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
if _response.status_code == 404:
raise NotFoundError(
headers=dict(_response.headers),
@@ -1940,151 +1842,92 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def update_tag_value(
- self, key: str, *, value: str, color: str, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[TagValue]:
+ def get_version(
+ self, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> HttpResponse[typing.Dict[str, str]]:
"""
- Recolor a grouped tag (key, value). The value is supplied in the body so values containing '/' stay addressable. The new color must be a palette name.
+ Returns the current Skyvern server version (git SHA for official builds).
Parameters
----------
- key : str
- Tag key (group)
-
- value : str
- Tag value (label) under the key to recolor.
-
- color : str
- Palette color name to assign to this (key, value).
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[TagValue]
- Successfully recolored tag value
+ HttpResponse[typing.Dict[str, str]]
+ Current server version
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/tag-values/{jsonable_encoder(key)}",
- method="PATCH",
- json={
- "value": value,
- "color": color,
- },
- headers={
- "content-type": "application/json",
- },
+ "v1/version",
+ method="GET",
request_options=request_options,
- omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- TagValue,
+ typing.Dict[str, str],
parse_obj_as(
- type_=TagValue, # type: ignore
+ type_=typing.Dict[str, str], # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
_response_json = _response.json()
except JSONDecodeError:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def rename_tag_value(
- self, key: str, *, value: str, new_value: str, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[TagValueRenameResponse]:
+ def get_runs_v2(
+ self,
+ *,
+ page: typing.Optional[int] = None,
+ page_size: typing.Optional[int] = None,
+ status: typing.Optional[typing.Union[RunStatus, typing.Sequence[RunStatus]]] = None,
+ search_key: typing.Optional[str] = None,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> HttpResponse[typing.List[TaskRunListItem]]:
"""
- Rename a grouped tag (key, value) to (key, new_value). The cascade re-tags every workflow carrying the old label; the new label inherits the old color. Both values ride in the body so values containing '/' stay addressable. Rejects with 409 when the new value already exists for the key.
-
Parameters
----------
- key : str
- Tag key (group)
+ page : typing.Optional[int]
+
+ page_size : typing.Optional[int]
- value : str
- Current tag value (label) under the key to rename.
+ status : typing.Optional[typing.Union[RunStatus, typing.Sequence[RunStatus]]]
- new_value : str
- New tag value (label) to rename it to.
+ search_key : typing.Optional[str]
+ Case-insensitive substring search (min 3 chars for trigram index).
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[TagValueRenameResponse]
- Successfully renamed tag value
+ HttpResponse[typing.List[TaskRunListItem]]
+ Successful Response
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/tag-values/{jsonable_encoder(key)}/rename",
- method="PATCH",
- json={
- "value": value,
- "new_value": new_value,
- },
- headers={
- "content-type": "application/json",
+ "v1/runs",
+ method="GET",
+ params={
+ "page": page,
+ "page_size": page_size,
+ "status": status,
+ "search_key": search_key,
},
request_options=request_options,
- omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- TagValueRenameResponse,
+ typing.List[TaskRunListItem],
parse_obj_as(
- type_=TagValueRenameResponse, # type: ignore
+ type_=typing.List[TaskRunListItem], # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 409:
- raise ConflictError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -2101,57 +1944,43 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def batch_get_workflow_tags(
- self,
- *,
- workflow_permanent_ids: typing.Optional[str] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[WorkflowTagsBatchResponse]:
+ def upload_file(
+ self, *, file: str, request_options: typing.Optional[RequestOptions] = None
+ ) -> HttpResponse[UploadFileResponse]:
"""
- Batch fetch current tags for many workflows. Avoids N+1 on the workflows-list page.
-
Parameters
----------
- workflow_permanent_ids : typing.Optional[str]
- Comma-separated workflow permanent IDs
+ file : str
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[WorkflowTagsBatchResponse]
- Successfully retrieved tags
+ HttpResponse[UploadFileResponse]
+ Successful Response
"""
_response = self._client_wrapper.httpx_client.request(
- "v1/workflow-tags",
- method="GET",
- params={
- "workflow_permanent_ids": workflow_permanent_ids,
+ "v1/upload_file",
+ method="POST",
+ data={
+ "file": file,
},
+ files={},
request_options=request_options,
+ omit=OMIT,
+ force_multipart=True,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- WorkflowTagsBatchResponse,
+ UploadFileResponse,
parse_obj_as(
- type_=WorkflowTagsBatchResponse, # type: ignore
+ type_=UploadFileResponse, # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 400:
- raise BadRequestError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -2168,63 +1997,61 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def batch_get_workflow_tags_post(
+ def list_browser_profiles(
self,
*,
- workflow_permanent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
+ page: typing.Optional[int] = None,
+ page_size: typing.Optional[int] = None,
+ include_deleted: typing.Optional[bool] = None,
+ search_key: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[WorkflowTagsBatchResponse]:
+ ) -> HttpResponse[typing.List[BrowserProfile]]:
"""
- Batch fetch current tags for many workflows (POST variant for id lists exceeding URL length).
+ Get all browser profiles for the organization
Parameters
----------
- workflow_permanent_ids : typing.Optional[typing.Sequence[str]]
- Workflow permanent IDs to fetch tags for.
+ page : typing.Optional[int]
+
+ page_size : typing.Optional[int]
+
+ include_deleted : typing.Optional[bool]
+ Include deleted browser profiles
+
+ search_key : typing.Optional[str]
+ Case-insensitive substring search across: browser profile name and description. A profile is returned if either field matches.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[WorkflowTagsBatchResponse]
- Successfully retrieved tags
+ HttpResponse[typing.List[BrowserProfile]]
+ Successfully retrieved browser profiles
"""
_response = self._client_wrapper.httpx_client.request(
- "v1/workflow-tags",
- method="POST",
- json={
- "workflow_permanent_ids": workflow_permanent_ids,
- },
- headers={
- "content-type": "application/json",
+ "v1/browser_profiles",
+ method="GET",
+ params={
+ "page": page,
+ "page_size": page_size,
+ "include_deleted": include_deleted,
+ "search_key": search_key,
},
request_options=request_options,
- omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- WorkflowTagsBatchResponse,
+ typing.List[BrowserProfile],
parse_obj_as(
- type_=WorkflowTagsBatchResponse, # type: ignore
+ type_=typing.List[BrowserProfile], # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 400:
- raise BadRequestError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 422:
- raise UnprocessableEntityError(
+ if _response.status_code == 422:
+ raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -2239,39 +2066,73 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def batch_get_run_tags(
- self, *, workflow_run_ids: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[RunTagsBatchResponse]:
+ def create_browser_profile(
+ self,
+ *,
+ name: str,
+ description: typing.Optional[str] = OMIT,
+ browser_session_id: typing.Optional[str] = OMIT,
+ workflow_run_id: typing.Optional[str] = OMIT,
+ proxy_location: typing.Optional[CreateBrowserProfileRequestProxyLocation] = OMIT,
+ proxy_session_id: typing.Optional[str] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> HttpResponse[BrowserProfile]:
"""
- Batch fetch current tags for many workflow runs. Avoids N+1 on run-list pages.
+ Create a blank browser profile, or create one from a persistent browser session or workflow run.
Parameters
----------
- workflow_run_ids : typing.Optional[str]
- Comma-separated workflow run IDs
+ name : str
+ Name for the browser profile
+
+ description : typing.Optional[str]
+ Optional profile description
+
+ browser_session_id : typing.Optional[str]
+ Persistent browser session to convert into a profile. Omit for a blank profile.
+
+ workflow_run_id : typing.Optional[str]
+ Workflow run whose persisted session should be captured. Omit for a blank profile.
+
+ proxy_location : typing.Optional[CreateBrowserProfileRequestProxyLocation]
+ Optional proxy location for this profile's pinned proxy identity.
+
+ proxy_session_id : typing.Optional[str]
+ Explicit sticky-session id for this profile's pinned proxy identity.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[RunTagsBatchResponse]
- Successfully retrieved tags
+ HttpResponse[BrowserProfile]
+ Successfully created browser profile
"""
_response = self._client_wrapper.httpx_client.request(
- "v1/run-tags",
- method="GET",
- params={
- "workflow_run_ids": workflow_run_ids,
+ "v1/browser_profiles",
+ method="POST",
+ json={
+ "name": name,
+ "description": description,
+ "browser_session_id": browser_session_id,
+ "workflow_run_id": workflow_run_id,
+ "proxy_location": convert_and_respect_annotation_metadata(
+ object_=proxy_location, annotation=CreateBrowserProfileRequestProxyLocation, direction="write"
+ ),
+ "proxy_session_id": proxy_session_id,
+ },
+ headers={
+ "content-type": "application/json",
},
request_options=request_options,
+ omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- RunTagsBatchResponse,
+ BrowserProfile,
parse_obj_as(
- type_=RunTagsBatchResponse, # type: ignore
+ type_=BrowserProfile, # type: ignore
object_=_response.json(),
),
)
@@ -2287,6 +2148,17 @@ class RawSkyvern:
),
),
)
+ if _response.status_code == 409:
+ raise ConflictError(
+ headers=dict(_response.headers),
+ body=typing.cast(
+ typing.Optional[typing.Any],
+ parse_obj_as(
+ type_=typing.Optional[typing.Any], # type: ignore
+ object_=_response.json(),
+ ),
+ ),
+ )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -2303,52 +2175,42 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def batch_get_run_tags_post(
- self,
- *,
- workflow_run_ids: typing.Optional[typing.Sequence[str]] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[RunTagsBatchResponse]:
+ def get_browser_profile(
+ self, profile_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> HttpResponse[BrowserProfile]:
"""
- Batch fetch current tags for many workflow runs (POST variant for id lists exceeding URL length).
+ Get a specific browser profile by ID
Parameters
----------
- workflow_run_ids : typing.Optional[typing.Sequence[str]]
- Workflow run IDs to fetch tags for.
+ profile_id : str
+ The ID of the browser profile. browser_profile_id starts with `bp_`
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[RunTagsBatchResponse]
- Successfully retrieved tags
+ HttpResponse[BrowserProfile]
+ Successfully retrieved browser profile
"""
_response = self._client_wrapper.httpx_client.request(
- "v1/run-tags",
- method="POST",
- json={
- "workflow_run_ids": workflow_run_ids,
- },
- headers={
- "content-type": "application/json",
- },
+ f"v1/browser_profiles/{jsonable_encoder(profile_id)}",
+ method="GET",
request_options=request_options,
- omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- RunTagsBatchResponse,
+ BrowserProfile,
parse_obj_as(
- type_=RunTagsBatchResponse, # type: ignore
+ type_=BrowserProfile, # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 400:
- raise BadRequestError(
+ if _response.status_code == 404:
+ raise NotFoundError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -2374,49 +2236,43 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def get_run_artifacts(
- self,
- run_id: str,
- *,
- artifact_type: typing.Optional[typing.Union[ArtifactType, typing.Sequence[ArtifactType]]] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[typing.List[Artifact]]:
+ def delete_browser_profile(
+ self, profile_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> HttpResponse[None]:
"""
- Get artifacts for a run
+ Delete a browser profile (soft delete)
Parameters
----------
- run_id : str
- The id of the task run or the workflow run.
-
- artifact_type : typing.Optional[typing.Union[ArtifactType, typing.Sequence[ArtifactType]]]
+ profile_id : str
+ The ID of the browser profile to delete. browser_profile_id starts with `bp_`
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[typing.List[Artifact]]
- Successful Response
+ HttpResponse[None]
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/runs/{jsonable_encoder(run_id)}/artifacts",
- method="GET",
- params={
- "artifact_type": artifact_type,
- },
+ f"v1/browser_profiles/{jsonable_encoder(profile_id)}",
+ method="DELETE",
request_options=request_options,
)
try:
if 200 <= _response.status_code < 300:
- _data = typing.cast(
- typing.List[Artifact],
- parse_obj_as(
- type_=typing.List[Artifact], # type: ignore
- object_=_response.json(),
+ return HttpResponse(response=_response, data=None)
+ if _response.status_code == 404:
+ raise NotFoundError(
+ headers=dict(_response.headers),
+ body=typing.cast(
+ typing.Optional[typing.Any],
+ parse_obj_as(
+ type_=typing.Optional[typing.Any], # type: ignore
+ object_=_response.json(),
+ ),
),
)
- return HttpResponse(response=_response, data=_data)
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -2433,37 +2289,60 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def retry_run_webhook(
+ def update_browser_profile(
self,
- run_id: str,
+ profile_id: str,
*,
- request: typing.Optional[RetryRunWebhookRequest] = None,
+ name: typing.Optional[str] = OMIT,
+ description: typing.Optional[str] = OMIT,
+ proxy_location: typing.Optional[UpdateBrowserProfileRequestProxyLocation] = OMIT,
+ proxy_session_id: typing.Optional[str] = OMIT,
+ rotate_proxy_session_id: typing.Optional[bool] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[RunWebhookReplayResponse]:
+ ) -> HttpResponse[BrowserProfile]:
"""
- Retry sending the webhook for a run
+ Update a browser profile's name and/or description
Parameters
----------
- run_id : str
- The id of the task run or the workflow run.
+ profile_id : str
+ The ID of the browser profile to update. browser_profile_id starts with `bp_`
- request : typing.Optional[RetryRunWebhookRequest]
+ name : typing.Optional[str]
+ New name for the browser profile
+
+ description : typing.Optional[str]
+ New description for the browser profile
+
+ proxy_location : typing.Optional[UpdateBrowserProfileRequestProxyLocation]
+ Optional proxy location for this profile's pinned proxy identity.
+
+ proxy_session_id : typing.Optional[str]
+ Opaque Skyvern-managed proxy sticky-session id.
+
+ rotate_proxy_session_id : typing.Optional[bool]
+ Rotate the Skyvern-managed proxy sticky-session id for this profile.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[RunWebhookReplayResponse]
- Successful Response
+ HttpResponse[BrowserProfile]
+ Successfully updated browser profile
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/runs/{jsonable_encoder(run_id)}/retry_webhook",
- method="POST",
- json=convert_and_respect_annotation_metadata(
- object_=request, annotation=RetryRunWebhookRequest, direction="write"
- ),
+ f"v1/browser_profiles/{jsonable_encoder(profile_id)}",
+ method="PATCH",
+ json={
+ "name": name,
+ "description": description,
+ "proxy_location": convert_and_respect_annotation_metadata(
+ object_=proxy_location, annotation=UpdateBrowserProfileRequestProxyLocation, direction="write"
+ ),
+ "proxy_session_id": proxy_session_id,
+ "rotate_proxy_session_id": rotate_proxy_session_id,
+ },
headers={
"content-type": "application/json",
},
@@ -2473,13 +2352,35 @@ class RawSkyvern:
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- RunWebhookReplayResponse,
+ BrowserProfile,
parse_obj_as(
- type_=RunWebhookReplayResponse, # type: ignore
+ type_=BrowserProfile, # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
+ if _response.status_code == 404:
+ raise NotFoundError(
+ headers=dict(_response.headers),
+ body=typing.cast(
+ typing.Optional[typing.Any],
+ parse_obj_as(
+ type_=typing.Optional[typing.Any], # type: ignore
+ object_=_response.json(),
+ ),
+ ),
+ )
+ if _response.status_code == 409:
+ raise ConflictError(
+ headers=dict(_response.headers),
+ body=typing.cast(
+ typing.Optional[typing.Any],
+ parse_obj_as(
+ type_=typing.Optional[typing.Any], # type: ignore
+ object_=_response.json(),
+ ),
+ ),
+ )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -2496,42 +2397,39 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def get_run_timeline(
- self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[typing.List[WorkflowRunTimeline]]:
+ def get_browser_sessions(
+ self, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> HttpResponse[typing.List[BrowserSessionResponse]]:
"""
- Get timeline for a run (workflow run or task_v2 run)
+ Get all active browser sessions for the organization
Parameters
----------
- run_id : str
- The id of the workflow run or task_v2 run.
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[typing.List[WorkflowRunTimeline]]
- Successfully retrieved run timeline
+ HttpResponse[typing.List[BrowserSessionResponse]]
+ Successfully retrieved all active browser sessions
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/runs/{jsonable_encoder(run_id)}/timeline",
+ "v1/browser_sessions",
method="GET",
request_options=request_options,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- typing.List[WorkflowRunTimeline],
+ typing.List[BrowserSessionResponse],
parse_obj_as(
- type_=typing.List[WorkflowRunTimeline], # type: ignore
+ type_=typing.List[BrowserSessionResponse], # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 400:
- raise BadRequestError(
+ if _response.status_code == 403:
+ raise ForbiddenError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -2541,8 +2439,8 @@ class RawSkyvern:
),
),
)
- if _response.status_code == 404:
- raise NotFoundError(
+ if _response.status_code == 422:
+ raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -2552,112 +2450,138 @@ class RawSkyvern:
),
),
)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def get_version(
- self, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[typing.Dict[str, str]]:
- """
- Returns the current Skyvern server version (git SHA for official builds).
-
- Parameters
- ----------
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[typing.Dict[str, str]]
- Current server version
- """
- _response = self._client_wrapper.httpx_client.request(
- "v1/version",
- method="GET",
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- typing.Dict[str, str],
- parse_obj_as(
- type_=typing.Dict[str, str], # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
_response_json = _response.json()
except JSONDecodeError:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def get_runs_v2(
+ def create_browser_session(
self,
*,
- page: typing.Optional[int] = None,
- page_size: typing.Optional[int] = None,
- status: typing.Optional[typing.Union[RunStatus, typing.Sequence[RunStatus]]] = None,
- search_key: typing.Optional[str] = None,
- run_type: typing.Optional[typing.Union[RunType, typing.Sequence[RunType]]] = None,
+ timeout: typing.Optional[int] = OMIT,
+ proxy_location: typing.Optional[CreateBrowserSessionRequestProxyLocation] = OMIT,
+ extensions: typing.Optional[typing.Sequence[Extensions]] = OMIT,
+ browser_type: typing.Optional[PersistentBrowserType] = OMIT,
+ browser_profile_id: typing.Optional[str] = OMIT,
+ generate_browser_profile: typing.Optional[bool] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[typing.List[TaskRunListItem]]:
+ ) -> HttpResponse[BrowserSessionResponse]:
"""
+ Create a browser session that persists across multiple runs
+
Parameters
----------
- page : typing.Optional[int]
+ timeout : typing.Optional[int]
+ Timeout in minutes for the session. Timeout is applied after the session is started. Must be between 5 and 1440. Defaults to 60.
- page_size : typing.Optional[int]
+ proxy_location : typing.Optional[CreateBrowserSessionRequestProxyLocation]
- status : typing.Optional[typing.Union[RunStatus, typing.Sequence[RunStatus]]]
+ Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
- search_key : typing.Optional[str]
- Case-insensitive substring search (min 3 chars for trigram index).
+ Available geotargeting options:
+ - RESIDENTIAL: the default value. Skyvern Cloud uses a random US residential proxy.
+ - RESIDENTIAL_ES: Spain
+ - RESIDENTIAL_IE: Ireland
+ - RESIDENTIAL_GB: United Kingdom
+ - RESIDENTIAL_IN: India
+ - RESIDENTIAL_JP: Japan
+ - RESIDENTIAL_FR: France
+ - RESIDENTIAL_DE: Germany
+ - RESIDENTIAL_NZ: New Zealand
+ - RESIDENTIAL_PH: Philippines
+ - RESIDENTIAL_KR: South Korea
+ - RESIDENTIAL_SA: Saudi Arabia
+ - RESIDENTIAL_ZA: South Africa
+ - RESIDENTIAL_AR: Argentina
+ - RESIDENTIAL_AU: Australia
+ - RESIDENTIAL_BR: Brazil
+ - RESIDENTIAL_TR: Turkey
+ - RESIDENTIAL_CA: Canada
+ - RESIDENTIAL_MX: Mexico
+ - RESIDENTIAL_IT: Italy
+ - RESIDENTIAL_NL: Netherlands
+ - RESIDENTIAL_ISP: ISP proxy
+ - US-CA: California (deprecated, routes through RESIDENTIAL_ISP)
+ - US-NY: New York (deprecated, routes through RESIDENTIAL_ISP)
+ - US-TX: Texas (deprecated, routes through RESIDENTIAL_ISP)
+ - US-FL: Florida (deprecated, routes through RESIDENTIAL_ISP)
+ - US-WA: Washington (deprecated, routes through RESIDENTIAL_ISP)
+ - NONE: No proxy
+
+ For self-hosted deployments, you can pass a custom proxy URL as a dict: {"url": "http://user:[email protected]:8080"}. This routes the browser through your own proxy server and takes precedence over any globally configured proxy pool.
+ Can also be a GeoTarget object for granular city/state targeting: {"country": "US", "subdivision": "CA", "city": "San Francisco"}, or a custom proxy URL dict for self-hosted deployments: {"url": "http://user:[email protected]:8080"}
+
+ extensions : typing.Optional[typing.Sequence[Extensions]]
+ A list of extensions to install in the browser session.
+
+ browser_type : typing.Optional[PersistentBrowserType]
+ The type of browser to use for the session.
+
+ browser_profile_id : typing.Optional[str]
+ ID of a browser profile to load into this session (restores cookies, localStorage, etc.). browser_profile_id starts with `bp_`.
- run_type : typing.Optional[typing.Union[RunType, typing.Sequence[RunType]]]
+ generate_browser_profile : typing.Optional[bool]
+ When true, the session's browser profile (cookies, localStorage, etc.) is saved to storage when the session ends so it can be turned into a reusable browser profile. Defaults to false to avoid storing profiles for sessions that never need them. Sessions started with a browser_profile_id always persist their profile regardless of this flag.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[typing.List[TaskRunListItem]]
- Successful Response
+ HttpResponse[BrowserSessionResponse]
+ Successfully created browser session
"""
_response = self._client_wrapper.httpx_client.request(
- "v1/runs",
- method="GET",
- params={
- "page": page,
- "page_size": page_size,
- "status": status,
- "search_key": search_key,
- "run_type": run_type,
+ "v1/browser_sessions",
+ method="POST",
+ json={
+ "timeout": timeout,
+ "proxy_location": convert_and_respect_annotation_metadata(
+ object_=proxy_location, annotation=CreateBrowserSessionRequestProxyLocation, direction="write"
+ ),
+ "extensions": extensions,
+ "browser_type": browser_type,
+ "browser_profile_id": browser_profile_id,
+ "generate_browser_profile": generate_browser_profile,
+ },
+ headers={
+ "content-type": "application/json",
},
request_options=request_options,
+ omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- typing.List[TaskRunListItem],
+ BrowserSessionResponse,
parse_obj_as(
- type_=typing.List[TaskRunListItem], # type: ignore
+ type_=BrowserSessionResponse, # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
+ if _response.status_code == 403:
+ raise ForbiddenError(
+ headers=dict(_response.headers),
+ body=typing.cast(
+ typing.Optional[typing.Any],
+ parse_obj_as(
+ type_=typing.Optional[typing.Any], # type: ignore
+ object_=_response.json(),
+ ),
+ ),
+ )
+ if _response.status_code == 404:
+ raise NotFoundError(
+ headers=dict(_response.headers),
+ body=typing.cast(
+ typing.Optional[typing.Any],
+ parse_obj_as(
+ type_=typing.Optional[typing.Any], # type: ignore
+ object_=_response.json(),
+ ),
+ ),
+ )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -2674,43 +2598,53 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def upload_file(
- self, *, file: str, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[UploadFileResponse]:
+ def close_browser_session(
+ self, browser_session_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> HttpResponse[typing.Optional[typing.Any]]:
"""
+ Close a session. Once closed, the session cannot be used again.
+
Parameters
----------
- file : str
+ browser_session_id : str
+ The ID of the browser session to close. completed_at will be set when the browser session is closed. browser_session_id starts with `pbs_`
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[UploadFileResponse]
- Successful Response
+ HttpResponse[typing.Optional[typing.Any]]
+ Successfully closed browser session
"""
_response = self._client_wrapper.httpx_client.request(
- "v1/upload_file",
+ f"v1/browser_sessions/{jsonable_encoder(browser_session_id)}/close",
method="POST",
- data={
- "file": file,
- },
- files={},
request_options=request_options,
- omit=OMIT,
- force_multipart=True,
)
try:
+ if _response is None or not _response.text.strip():
+ return HttpResponse(response=_response, data=None)
if 200 <= _response.status_code < 300:
_data = typing.cast(
- UploadFileResponse,
+ typing.Optional[typing.Any],
parse_obj_as(
- type_=UploadFileResponse, # type: ignore
+ type_=typing.Optional[typing.Any], # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
+ if _response.status_code == 403:
+ raise ForbiddenError(
+ headers=dict(_response.headers),
+ body=typing.cast(
+ typing.Optional[typing.Any],
+ parse_obj_as(
+ type_=typing.Optional[typing.Any], # type: ignore
+ object_=_response.json(),
+ ),
+ ),
+ )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -2727,66 +2661,42 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def list_browser_profiles(
- self,
- *,
- page: typing.Optional[int] = None,
- page_size: typing.Optional[int] = None,
- include_deleted: typing.Optional[bool] = None,
- search_key: typing.Optional[str] = None,
- managed: typing.Optional[bool] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[typing.List[BrowserProfile]]:
+ def get_browser_session(
+ self, browser_session_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> HttpResponse[BrowserSessionResponse]:
"""
- Get all browser profiles for the organization
+ Get details about a specific browser session, including the browser address for cdp connection.
Parameters
----------
- page : typing.Optional[int]
-
- page_size : typing.Optional[int]
-
- include_deleted : typing.Optional[bool]
- Include deleted browser profiles
-
- search_key : typing.Optional[str]
- Case-insensitive substring search across: browser profile name and description. A profile is returned if either field matches.
-
- managed : typing.Optional[bool]
- Omit to return all profiles; false returns only user-created profiles; true returns only auto-managed profiles.
+ browser_session_id : str
+ The ID of the browser session. browser_session_id starts with `pbs_`
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[typing.List[BrowserProfile]]
- Successfully retrieved browser profiles
+ HttpResponse[BrowserSessionResponse]
+ Successfully retrieved browser session details
"""
_response = self._client_wrapper.httpx_client.request(
- "v1/browser_profiles",
+ f"v1/browser_sessions/{jsonable_encoder(browser_session_id)}",
method="GET",
- params={
- "page": page,
- "page_size": page_size,
- "include_deleted": include_deleted,
- "search_key": search_key,
- "managed": managed,
- },
request_options=request_options,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- typing.List[BrowserProfile],
+ BrowserSessionResponse,
parse_obj_as(
- type_=typing.List[BrowserProfile], # type: ignore
+ type_=BrowserSessionResponse, # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
+ if _response.status_code == 403:
+ raise ForbiddenError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -2796,65 +2706,64 @@ class RawSkyvern:
),
),
)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def create_browser_profile(
- self,
+ if _response.status_code == 404:
+ raise NotFoundError(
+ headers=dict(_response.headers),
+ body=typing.cast(
+ typing.Optional[typing.Any],
+ parse_obj_as(
+ type_=typing.Optional[typing.Any], # type: ignore
+ object_=_response.json(),
+ ),
+ ),
+ )
+ if _response.status_code == 422:
+ raise UnprocessableEntityError(
+ headers=dict(_response.headers),
+ body=typing.cast(
+ typing.Optional[typing.Any],
+ parse_obj_as(
+ type_=typing.Optional[typing.Any], # type: ignore
+ object_=_response.json(),
+ ),
+ ),
+ )
+ _response_json = _response.json()
+ except JSONDecodeError:
+ raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
+ raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
+
+ def update_browser_session(
+ self,
+ browser_session_id: str,
*,
- name: str,
- description: typing.Optional[str] = OMIT,
- browser_session_id: typing.Optional[str] = OMIT,
- workflow_run_id: typing.Optional[str] = OMIT,
- proxy_location: typing.Optional[CreateBrowserProfileRequestProxyLocation] = OMIT,
- proxy_session_id: typing.Optional[str] = OMIT,
+ generate_browser_profile: bool,
request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[BrowserProfile]:
+ ) -> HttpResponse[BrowserSessionResponse]:
"""
- Create a blank browser profile, or create one from a persistent browser session or workflow run.
+ Update a live browser session. Currently supports toggling generate_browser_profile, which is read when the session ends to decide whether to save its browser profile.
Parameters
----------
- name : str
- Name for the browser profile
-
- description : typing.Optional[str]
- Optional profile description
-
- browser_session_id : typing.Optional[str]
- Persistent browser session to convert into a profile. Omit for a blank profile.
-
- workflow_run_id : typing.Optional[str]
- Workflow run whose persisted session should be captured. Omit for a blank profile.
-
- proxy_location : typing.Optional[CreateBrowserProfileRequestProxyLocation]
- Optional proxy location for this profile's pinned proxy identity.
+ browser_session_id : str
+ The ID of the browser session. browser_session_id starts with `pbs_`
- proxy_session_id : typing.Optional[str]
- Explicit sticky-session id for this profile's pinned proxy identity.
+ generate_browser_profile : bool
+ Enable or disable saving this session's browser profile when it ends. Can be toggled while the session is still alive; the value is read at session teardown.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[BrowserProfile]
- Successfully created browser profile
+ HttpResponse[BrowserSessionResponse]
+ Successfully updated browser session
"""
_response = self._client_wrapper.httpx_client.request(
- "v1/browser_profiles",
- method="POST",
+ f"v1/browser_sessions/{jsonable_encoder(browser_session_id)}",
+ method="PATCH",
json={
- "name": name,
- "description": description,
- "browser_session_id": browser_session_id,
- "workflow_run_id": workflow_run_id,
- "proxy_location": convert_and_respect_annotation_metadata(
- object_=proxy_location, annotation=CreateBrowserProfileRequestProxyLocation, direction="write"
- ),
- "proxy_session_id": proxy_session_id,
+ "generate_browser_profile": generate_browser_profile,
},
headers={
"content-type": "application/json",
@@ -2865,15 +2774,26 @@ class RawSkyvern:
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- BrowserProfile,
+ BrowserSessionResponse,
parse_obj_as(
- type_=BrowserProfile, # type: ignore
+ type_=BrowserSessionResponse, # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 400:
- raise BadRequestError(
+ if _response.status_code == 403:
+ raise ForbiddenError(
+ headers=dict(_response.headers),
+ body=typing.cast(
+ typing.Optional[typing.Any],
+ parse_obj_as(
+ type_=typing.Optional[typing.Any], # type: ignore
+ object_=_response.json(),
+ ),
+ ),
+ )
+ if _response.status_code == 404:
+ raise NotFoundError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -2910,51 +2830,85 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def get_browser_profile(
- self, profile_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[BrowserProfile]:
+ def send_totp_code(
+ self,
+ *,
+ totp_identifier: str,
+ content: str,
+ task_id: typing.Optional[str] = OMIT,
+ workflow_id: typing.Optional[str] = OMIT,
+ workflow_run_id: typing.Optional[str] = OMIT,
+ source: typing.Optional[str] = OMIT,
+ expired_at: typing.Optional[dt.datetime] = OMIT,
+ type: typing.Optional[OtpType] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> HttpResponse[TotpCode]:
"""
- Get a specific browser profile by ID
+ Forward a TOTP (2FA, MFA) email or sms message containing the code to Skyvern. This endpoint stores the code in database so that Skyvern can use it while running tasks/workflows.
Parameters
----------
- profile_id : str
- The ID of the browser profile. browser_profile_id starts with `bp_`
+ totp_identifier : str
+ The identifier of the TOTP code. It can be the email address, phone number, or the identifier of the user.
+
+ content : str
+ The content of the TOTP code. It can be the email content that contains the TOTP code, or the sms message that contains the TOTP code. Skyvern will automatically extract the TOTP code from the content.
+
+ task_id : typing.Optional[str]
+ The task_id the totp code is for. It can be the task_id of the task that the TOTP code is for.
+
+ workflow_id : typing.Optional[str]
+ The workflow ID the TOTP code is for. It can be the workflow ID of the workflow that the TOTP code is for.
+
+ workflow_run_id : typing.Optional[str]
+ The workflow run id that the TOTP code is for. It can be the workflow run id of the workflow run that the TOTP code is for.
+
+ source : typing.Optional[str]
+ An optional field. The source of the TOTP code. e.g. email, sms, etc.
+
+ expired_at : typing.Optional[dt.datetime]
+ The timestamp when the TOTP code expires
+
+ type : typing.Optional[OtpType]
+ Optional. If provided, forces extraction of this specific OTP type (totp or magic_link). Use this when the content contains multiple OTP types and you want to specify which one to extract.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[BrowserProfile]
- Successfully retrieved browser profile
+ HttpResponse[TotpCode]
+ Successful Response
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/browser_profiles/{jsonable_encoder(profile_id)}",
- method="GET",
+ "v1/credentials/totp",
+ method="POST",
+ json={
+ "totp_identifier": totp_identifier,
+ "task_id": task_id,
+ "workflow_id": workflow_id,
+ "workflow_run_id": workflow_run_id,
+ "source": source,
+ "content": content,
+ "expired_at": expired_at,
+ "type": type,
+ },
+ headers={
+ "content-type": "application/json",
+ },
request_options=request_options,
+ omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- BrowserProfile,
+ TotpCode,
parse_obj_as(
- type_=BrowserProfile, # type: ignore
+ type_=TotpCode, # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -2971,43 +2925,66 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def delete_browser_profile(
- self, profile_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[None]:
+ def get_credentials(
+ self,
+ *,
+ page: typing.Optional[int] = None,
+ page_size: typing.Optional[int] = None,
+ vault_type: typing.Optional[CredentialVaultType] = None,
+ credential_type: typing.Optional[SkyvernForgeSdkSchemasCredentialsCredentialType] = None,
+ search: typing.Optional[str] = None,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> HttpResponse[typing.List[CredentialResponse]]:
"""
- Delete a browser profile (soft delete)
+ Retrieves a paginated list of credentials for the current organization
Parameters
----------
- profile_id : str
- The ID of the browser profile to delete. browser_profile_id starts with `bp_`
+ page : typing.Optional[int]
+ Page number for pagination
+
+ page_size : typing.Optional[int]
+ Number of items per page
+
+ vault_type : typing.Optional[CredentialVaultType]
+ Filter credentials by vault type (e.g. 'skyvern', 'custom', 'bitwarden', 'azure_vault')
+
+ credential_type : typing.Optional[SkyvernForgeSdkSchemasCredentialsCredentialType]
+ Filter credentials by type (e.g. 'password', 'credit_card', 'secret')
+
+ search : typing.Optional[str]
+ Case-insensitive search across credential name, username, secret label, and card details
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[None]
+ HttpResponse[typing.List[CredentialResponse]]
+ Successful Response
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/browser_profiles/{jsonable_encoder(profile_id)}",
- method="DELETE",
+ "v1/credentials",
+ method="GET",
+ params={
+ "page": page,
+ "page_size": page_size,
+ "vault_type": vault_type,
+ "credential_type": credential_type,
+ "search": search,
+ },
request_options=request_options,
)
try:
if 200 <= _response.status_code < 300:
- return HttpResponse(response=_response, data=None)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
+ _data = typing.cast(
+ typing.List[CredentialResponse],
+ parse_obj_as(
+ type_=typing.List[CredentialResponse], # type: ignore
+ object_=_response.json(),
),
)
+ return HttpResponse(response=_response, data=_data)
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -3024,56 +3001,64 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def update_browser_profile(
+ def create_credential(
self,
- profile_id: str,
*,
- name: typing.Optional[str] = OMIT,
- description: typing.Optional[str] = OMIT,
- proxy_location: typing.Optional[UpdateBrowserProfileRequestProxyLocation] = OMIT,
+ name: str,
+ credential_type: SkyvernForgeSdkSchemasCredentialsCredentialType,
+ credential: CreateCredentialRequestCredential,
+ vault_type: typing.Optional[CredentialVaultType] = OMIT,
+ proxy_location: typing.Optional[CreateCredentialRequestProxyLocation] = OMIT,
proxy_session_id: typing.Optional[str] = OMIT,
rotate_proxy_session_id: typing.Optional[bool] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[BrowserProfile]:
+ ) -> HttpResponse[CredentialResponse]:
"""
- Update a browser profile's name and/or description
+ Creates a new credential for the current organization
Parameters
----------
- profile_id : str
- The ID of the browser profile to update. browser_profile_id starts with `bp_`
-
- name : typing.Optional[str]
- New name for the browser profile
+ name : str
+ Name of the credential
- description : typing.Optional[str]
- New description for the browser profile
+ credential_type : SkyvernForgeSdkSchemasCredentialsCredentialType
+ Type of credential to create
- proxy_location : typing.Optional[UpdateBrowserProfileRequestProxyLocation]
- Optional proxy location for this profile's pinned proxy identity.
+ credential : CreateCredentialRequestCredential
+ The credential data to store
+
+ vault_type : typing.Optional[CredentialVaultType]
+ Which vault to store this credential in. If omitted, uses the instance default. Use this to mix Skyvern-hosted and custom credentials within the same organization.
+
+ proxy_location : typing.Optional[CreateCredentialRequestProxyLocation]
+ Optional proxy location for this credential's pinned proxy identity.
proxy_session_id : typing.Optional[str]
- Opaque Skyvern-managed proxy sticky-session id.
+ Optional advanced reuse key for this credential's pinned proxy identity.
rotate_proxy_session_id : typing.Optional[bool]
- Rotate the Skyvern-managed proxy sticky-session id for this profile.
+ Rotate the Skyvern-managed proxy sticky-session id when updating this credential.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[BrowserProfile]
- Successfully updated browser profile
+ HttpResponse[CredentialResponse]
+ Successful Response
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/browser_profiles/{jsonable_encoder(profile_id)}",
- method="PATCH",
+ "v1/credentials",
+ method="POST",
json={
"name": name,
- "description": description,
+ "credential_type": credential_type,
+ "credential": convert_and_respect_annotation_metadata(
+ object_=credential, annotation=CreateCredentialRequestCredential, direction="write"
+ ),
+ "vault_type": vault_type,
"proxy_location": convert_and_respect_annotation_metadata(
- object_=proxy_location, annotation=UpdateBrowserProfileRequestProxyLocation, direction="write"
+ object_=proxy_location, annotation=CreateCredentialRequestProxyLocation, direction="write"
),
"proxy_session_id": proxy_session_id,
"rotate_proxy_session_id": rotate_proxy_session_id,
@@ -3087,15 +3072,15 @@ class RawSkyvern:
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- BrowserProfile,
+ CredentialResponse,
parse_obj_as(
- type_=BrowserProfile, # type: ignore
+ type_=CredentialResponse, # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
+ if _response.status_code == 422:
+ raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -3105,8 +3090,95 @@ class RawSkyvern:
),
),
)
- if _response.status_code == 409:
- raise ConflictError(
+ _response_json = _response.json()
+ except JSONDecodeError:
+ raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
+ raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
+
+ def update_credential(
+ self,
+ credential_id: str,
+ *,
+ name: str,
+ credential_type: SkyvernForgeSdkSchemasCredentialsCredentialType,
+ credential: CreateCredentialRequestCredential,
+ vault_type: typing.Optional[CredentialVaultType] = OMIT,
+ proxy_location: typing.Optional[CreateCredentialRequestProxyLocation] = OMIT,
+ proxy_session_id: typing.Optional[str] = OMIT,
+ rotate_proxy_session_id: typing.Optional[bool] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> HttpResponse[CredentialResponse]:
+ """
+ Overwrites the stored credential data (e.g. username/password) while keeping the same credential_id.
+
+ Parameters
+ ----------
+ credential_id : str
+ The unique identifier of the credential to update
+
+ name : str
+ Name of the credential
+
+ credential_type : SkyvernForgeSdkSchemasCredentialsCredentialType
+ Type of credential to create
+
+ credential : CreateCredentialRequestCredential
+ The credential data to store
+
+ vault_type : typing.Optional[CredentialVaultType]
+ Which vault to store this credential in. If omitted, uses the instance default. Use this to mix Skyvern-hosted and custom credentials within the same organization.
+
+ proxy_location : typing.Optional[CreateCredentialRequestProxyLocation]
+ Optional proxy location for this credential's pinned proxy identity.
+
+ proxy_session_id : typing.Optional[str]
+ Optional advanced reuse key for this credential's pinned proxy identity.
+
+ rotate_proxy_session_id : typing.Optional[bool]
+ Rotate the Skyvern-managed proxy sticky-session id when updating this credential.
+
+ request_options : typing.Optional[RequestOptions]
+ Request-specific configuration.
+
+ Returns
+ -------
+ HttpResponse[CredentialResponse]
+ Successful Response
+ """
+ _response = self._client_wrapper.httpx_client.request(
+ f"v1/credentials/{jsonable_encoder(credential_id)}/update",
+ method="POST",
+ json={
+ "name": name,
+ "credential_type": credential_type,
+ "credential": convert_and_respect_annotation_metadata(
+ object_=credential, annotation=CreateCredentialRequestCredential, direction="write"
+ ),
+ "vault_type": vault_type,
+ "proxy_location": convert_and_respect_annotation_metadata(
+ object_=proxy_location, annotation=CreateCredentialRequestProxyLocation, direction="write"
+ ),
+ "proxy_session_id": proxy_session_id,
+ "rotate_proxy_session_id": rotate_proxy_session_id,
+ },
+ headers={
+ "content-type": "application/json",
+ },
+ request_options=request_options,
+ omit=OMIT,
+ )
+ try:
+ if 200 <= _response.status_code < 300:
+ _data = typing.cast(
+ CredentialResponse,
+ parse_obj_as(
+ type_=CredentialResponse, # type: ignore
+ object_=_response.json(),
+ ),
+ )
+ return HttpResponse(response=_response, data=_data)
+ if _response.status_code == 422:
+ raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -3116,6 +3188,37 @@ class RawSkyvern:
),
),
)
+ _response_json = _response.json()
+ except JSONDecodeError:
+ raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
+ raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
+
+ def delete_credential(
+ self, credential_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> HttpResponse[None]:
+ """
+ Deletes a specific credential by its ID
+
+ Parameters
+ ----------
+ credential_id : str
+ The unique identifier of the credential to delete
+
+ request_options : typing.Optional[RequestOptions]
+ Request-specific configuration.
+
+ Returns
+ -------
+ HttpResponse[None]
+ """
+ _response = self._client_wrapper.httpx_client.request(
+ f"v1/credentials/{jsonable_encoder(credential_id)}/delete",
+ method="POST",
+ request_options=request_options,
+ )
+ try:
+ if 200 <= _response.status_code < 300:
+ return HttpResponse(response=_response, data=None)
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -3132,48 +3235,40 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def get_browser_sessions(
- self, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[typing.List[BrowserSessionResponse]]:
+ def get_credential(
+ self, credential_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> HttpResponse[CredentialResponse]:
"""
- Get all active browser sessions for the organization
+ Retrieves a specific credential by its ID
Parameters
----------
+ credential_id : str
+ The unique identifier of the credential
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[typing.List[BrowserSessionResponse]]
- Successfully retrieved all active browser sessions
+ HttpResponse[CredentialResponse]
+ Successful Response
"""
_response = self._client_wrapper.httpx_client.request(
- "v1/browser_sessions",
+ f"v1/credentials/{jsonable_encoder(credential_id)}",
method="GET",
request_options=request_options,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- typing.List[BrowserSessionResponse],
+ CredentialResponse,
parse_obj_as(
- type_=typing.List[BrowserSessionResponse], # type: ignore
+ type_=CredentialResponse, # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 403:
- raise ForbiddenError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -3190,102 +3285,145 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def create_browser_session(
+ def login(
self,
*,
- timeout: typing.Optional[int] = OMIT,
- proxy_location: typing.Optional[CreateBrowserSessionRequestProxyLocation] = OMIT,
- proxy_session_id: typing.Optional[str] = OMIT,
- extensions: typing.Optional[typing.Sequence[Extensions]] = OMIT,
- browser_type: typing.Optional[PersistentBrowserType] = OMIT,
+ credential_type: SkyvernSchemasCredentialTypeCredentialType,
+ user_agent: typing.Optional[str] = None,
+ url: typing.Optional[str] = OMIT,
+ webhook_url: typing.Optional[str] = OMIT,
+ proxy_location: typing.Optional[ProxyLocation] = OMIT,
+ totp_identifier: typing.Optional[str] = OMIT,
+ totp_url: typing.Optional[str] = OMIT,
+ browser_session_id: typing.Optional[str] = OMIT,
browser_profile_id: typing.Optional[str] = OMIT,
- generate_browser_profile: typing.Optional[bool] = OMIT,
+ browser_address: typing.Optional[str] = OMIT,
+ extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ max_screenshot_scrolling_times: typing.Optional[int] = OMIT,
+ prompt: typing.Optional[str] = OMIT,
+ credential_id: typing.Optional[str] = OMIT,
+ bitwarden_collection_id: typing.Optional[str] = OMIT,
+ bitwarden_item_id: typing.Optional[str] = OMIT,
+ onepassword_vault_id: typing.Optional[str] = OMIT,
+ onepassword_item_id: typing.Optional[str] = OMIT,
+ azure_vault_name: typing.Optional[str] = OMIT,
+ azure_vault_username_key: typing.Optional[str] = OMIT,
+ azure_vault_password_key: typing.Optional[str] = OMIT,
+ azure_vault_totp_secret_key: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[BrowserSessionResponse]:
+ ) -> HttpResponse[WorkflowRunResponse]:
"""
- Create a browser session that persists across multiple runs
+ Log in to a website using either credential stored in Skyvern, Bitwarden, 1Password, or Azure Vault
Parameters
----------
- timeout : typing.Optional[int]
- Timeout in minutes for the session. Timeout is applied after the session is started. Must be between 5 and 1440. Defaults to 60.
+ credential_type : SkyvernSchemasCredentialTypeCredentialType
+ Where to get the credential from
- proxy_location : typing.Optional[CreateBrowserSessionRequestProxyLocation]
+ user_agent : typing.Optional[str]
- Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
+ url : typing.Optional[str]
+ Website URL
- Available geotargeting options:
- - RESIDENTIAL: the default value. Skyvern Cloud uses a random US residential proxy.
- - RESIDENTIAL_ES: Spain
- - RESIDENTIAL_IE: Ireland
- - RESIDENTIAL_GB: United Kingdom
- - RESIDENTIAL_IN: India
- - RESIDENTIAL_JP: Japan
- - RESIDENTIAL_FR: France
- - RESIDENTIAL_DE: Germany
- - RESIDENTIAL_NZ: New Zealand
- - RESIDENTIAL_PH: Philippines
- - RESIDENTIAL_KR: South Korea
- - RESIDENTIAL_SA: Saudi Arabia
- - RESIDENTIAL_ZA: South Africa
- - RESIDENTIAL_AR: Argentina
- - RESIDENTIAL_AU: Australia
- - RESIDENTIAL_BR: Brazil
- - RESIDENTIAL_TR: Turkey
- - RESIDENTIAL_CA: Canada
- - RESIDENTIAL_MX: Mexico
- - RESIDENTIAL_IT: Italy
- - RESIDENTIAL_NL: Netherlands
- - RESIDENTIAL_ISP: ISP proxy
- - US-CA: California (deprecated, routes through RESIDENTIAL_ISP)
- - US-NY: New York (deprecated, routes through RESIDENTIAL_ISP)
- - US-TX: Texas (deprecated, routes through RESIDENTIAL_ISP)
- - US-FL: Florida (deprecated, routes through RESIDENTIAL_ISP)
- - US-WA: Washington (deprecated, routes through RESIDENTIAL_ISP)
- - NONE: No proxy
+ webhook_url : typing.Optional[str]
+ Webhook URL to send status updates
- For self-hosted deployments, you can pass a custom proxy URL as a dict: {"url": "http://user:[email protected]:8080"}. This routes the browser through your own proxy server and takes precedence over any globally configured proxy pool.
- Can also be a GeoTarget object for granular city/state targeting: {"country": "US", "subdivision": "CA", "city": "San Francisco"}, or a custom proxy URL dict for self-hosted deployments: {"url": "http://user:[email protected]:8080"}
+ proxy_location : typing.Optional[ProxyLocation]
+ Proxy location to use
- proxy_session_id : typing.Optional[str]
- Opaque Skyvern-managed proxy sticky-session id for pinned Residential ISP sessions.
+ totp_identifier : typing.Optional[str]
+ Identifier for TOTP (Time-based One-Time Password) if required
- extensions : typing.Optional[typing.Sequence[Extensions]]
- A list of extensions to install in the browser session.
+ totp_url : typing.Optional[str]
+ TOTP URL to fetch one-time passwords
- browser_type : typing.Optional[PersistentBrowserType]
- The type of browser to use for the session.
+ browser_session_id : typing.Optional[str]
+ ID of the browser session to use, which is prefixed by `pbs_` e.g. `pbs_123456`
browser_profile_id : typing.Optional[str]
- ID of a browser profile to load into this session (restores cookies, localStorage, etc.). browser_profile_id starts with `bp_`.
+ ID of a browser profile to reuse for this run
- generate_browser_profile : typing.Optional[bool]
- When true, the session's browser profile (cookies, localStorage, etc.) is saved to storage when the session ends so it can be turned into a reusable browser profile. Defaults to false to avoid storing profiles for sessions that never need them. Sessions started with a browser_profile_id always persist their profile regardless of this flag.
+ browser_address : typing.Optional[str]
+ The CDP address for the task.
+
+ extra_http_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ Additional HTTP headers to include in requests
+
+ cdp_connect_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ HTTP headers attached ONLY to the CDP WebSocket handshake when connecting to a remote browser via browser_address. Never forwarded to target websites.
+
+ max_screenshot_scrolling_times : typing.Optional[int]
+ Maximum number of times to scroll for screenshots
+
+ prompt : typing.Optional[str]
+ Login instructions. Skyvern has default prompt/instruction for login if this field is not provided.
+
+ credential_id : typing.Optional[str]
+ ID of the Skyvern credential to use for login.
+
+ bitwarden_collection_id : typing.Optional[str]
+ Bitwarden collection ID. You can find it in the Bitwarden collection URL. e.g. `https://vault.bitwarden.com/vaults/collection_id/items`
+
+ bitwarden_item_id : typing.Optional[str]
+ Bitwarden item ID
+
+ onepassword_vault_id : typing.Optional[str]
+ 1Password vault ID
+
+ onepassword_item_id : typing.Optional[str]
+ 1Password item ID
+
+ azure_vault_name : typing.Optional[str]
+ Azure Vault Name
+
+ azure_vault_username_key : typing.Optional[str]
+ Azure Vault username key
+
+ azure_vault_password_key : typing.Optional[str]
+ Azure Vault password key
+
+ azure_vault_totp_secret_key : typing.Optional[str]
+ Azure Vault TOTP secret key
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[BrowserSessionResponse]
- Successfully created browser session
+ HttpResponse[WorkflowRunResponse]
+ Successful Response
"""
_response = self._client_wrapper.httpx_client.request(
- "v1/browser_sessions",
+ "v1/run/tasks/login",
method="POST",
json={
- "timeout": timeout,
- "proxy_location": convert_and_respect_annotation_metadata(
- object_=proxy_location, annotation=CreateBrowserSessionRequestProxyLocation, direction="write"
- ),
- "proxy_session_id": proxy_session_id,
- "extensions": extensions,
- "browser_type": browser_type,
+ "url": url,
+ "webhook_url": webhook_url,
+ "proxy_location": proxy_location,
+ "totp_identifier": totp_identifier,
+ "totp_url": totp_url,
+ "browser_session_id": browser_session_id,
"browser_profile_id": browser_profile_id,
- "generate_browser_profile": generate_browser_profile,
+ "browser_address": browser_address,
+ "extra_http_headers": extra_http_headers,
+ "cdp_connect_headers": cdp_connect_headers,
+ "max_screenshot_scrolling_times": max_screenshot_scrolling_times,
+ "credential_type": credential_type,
+ "prompt": prompt,
+ "credential_id": credential_id,
+ "bitwarden_collection_id": bitwarden_collection_id,
+ "bitwarden_item_id": bitwarden_item_id,
+ "onepassword_vault_id": onepassword_vault_id,
+ "onepassword_item_id": onepassword_item_id,
+ "azure_vault_name": azure_vault_name,
+ "azure_vault_username_key": azure_vault_username_key,
+ "azure_vault_password_key": azure_vault_password_key,
+ "azure_vault_totp_secret_key": azure_vault_totp_secret_key,
},
headers={
"content-type": "application/json",
+ "x-user-agent": str(user_agent) if user_agent is not None else None,
},
request_options=request_options,
omit=OMIT,
@@ -3293,35 +3431,13 @@ class RawSkyvern:
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- BrowserSessionResponse,
+ WorkflowRunResponse,
parse_obj_as(
- type_=BrowserSessionResponse, # type: ignore
+ type_=WorkflowRunResponse, # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 403:
- raise ForbiddenError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -3338,66 +3454,126 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def close_browser_session(
- self, browser_session_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[typing.Optional[typing.Any]]:
+ def download_files(
+ self,
+ *,
+ navigation_goal: str,
+ user_agent: typing.Optional[str] = None,
+ url: typing.Optional[str] = OMIT,
+ webhook_url: typing.Optional[str] = OMIT,
+ proxy_location: typing.Optional[ProxyLocation] = OMIT,
+ totp_identifier: typing.Optional[str] = OMIT,
+ totp_url: typing.Optional[str] = OMIT,
+ browser_session_id: typing.Optional[str] = OMIT,
+ browser_profile_id: typing.Optional[str] = OMIT,
+ browser_address: typing.Optional[str] = OMIT,
+ extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ max_screenshot_scrolling_times: typing.Optional[int] = OMIT,
+ download_suffix: typing.Optional[str] = OMIT,
+ download_timeout: typing.Optional[float] = OMIT,
+ max_steps_per_run: typing.Optional[int] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> HttpResponse[WorkflowRunResponse]:
"""
- Close a session. Once closed, the session cannot be used again.
+ Download a file from a website by navigating and clicking download buttons
Parameters
----------
- browser_session_id : str
- The ID of the browser session to close. completed_at will be set when the browser session is closed. browser_session_id starts with `pbs_`
+ navigation_goal : str
+ Instructions for navigating to and downloading the file
+
+ user_agent : typing.Optional[str]
+
+ url : typing.Optional[str]
+ Website URL
+
+ webhook_url : typing.Optional[str]
+ Webhook URL to send status updates
+
+ proxy_location : typing.Optional[ProxyLocation]
+ Proxy location to use
+
+ totp_identifier : typing.Optional[str]
+ Identifier for TOTP (Time-based One-Time Password) if required
+
+ totp_url : typing.Optional[str]
+ TOTP URL to fetch one-time passwords
+
+ browser_session_id : typing.Optional[str]
+ ID of the browser session to use, which is prefixed by `pbs_` e.g. `pbs_123456`
+
+ browser_profile_id : typing.Optional[str]
+ ID of a browser profile to reuse for this run
+
+ browser_address : typing.Optional[str]
+ The CDP address for the task.
+
+ extra_http_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ Additional HTTP headers to include in requests
+
+ cdp_connect_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ HTTP headers attached ONLY to the CDP WebSocket handshake when connecting to a remote browser via browser_address. Never forwarded to target websites.
+
+ max_screenshot_scrolling_times : typing.Optional[int]
+ Maximum number of times to scroll for screenshots
+
+ download_suffix : typing.Optional[str]
+ Suffix or complete filename for the downloaded file
+
+ download_timeout : typing.Optional[float]
+ Timeout in seconds for the download operation
+
+ max_steps_per_run : typing.Optional[int]
+ Maximum number of steps to execute
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[typing.Optional[typing.Any]]
- Successfully closed browser session
+ HttpResponse[WorkflowRunResponse]
+ Successful Response
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/browser_sessions/{jsonable_encoder(browser_session_id)}/close",
+ "v1/run/tasks/download_files",
method="POST",
+ json={
+ "url": url,
+ "webhook_url": webhook_url,
+ "proxy_location": proxy_location,
+ "totp_identifier": totp_identifier,
+ "totp_url": totp_url,
+ "browser_session_id": browser_session_id,
+ "browser_profile_id": browser_profile_id,
+ "browser_address": browser_address,
+ "extra_http_headers": extra_http_headers,
+ "cdp_connect_headers": cdp_connect_headers,
+ "max_screenshot_scrolling_times": max_screenshot_scrolling_times,
+ "navigation_goal": navigation_goal,
+ "download_suffix": download_suffix,
+ "download_timeout": download_timeout,
+ "max_steps_per_run": max_steps_per_run,
+ },
+ headers={
+ "content-type": "application/json",
+ "x-user-agent": str(user_agent) if user_agent is not None else None,
+ },
request_options=request_options,
+ omit=OMIT,
)
try:
- if _response is None or not _response.text.strip():
- return HttpResponse(response=_response, data=None)
if 200 <= _response.status_code < 300:
_data = typing.cast(
- typing.Optional[typing.Any],
+ WorkflowRunResponse,
parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
+ type_=WorkflowRunResponse, # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 403:
- raise ForbiddenError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 422:
- raise UnprocessableEntityError(
+ if _response.status_code == 422:
+ raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -3412,62 +3588,51 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def get_browser_session(
- self, browser_session_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[BrowserSessionResponse]:
+ def get_scripts(
+ self,
+ *,
+ page: typing.Optional[int] = None,
+ page_size: typing.Optional[int] = None,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> HttpResponse[typing.List[Script]]:
"""
- Get details about a specific browser session, including the browser address for cdp connection.
+ Retrieves a paginated list of scripts for the current organization
Parameters
----------
- browser_session_id : str
- The ID of the browser session. browser_session_id starts with `pbs_`
+ page : typing.Optional[int]
+ Page number for pagination
+
+ page_size : typing.Optional[int]
+ Number of items per page
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[BrowserSessionResponse]
- Successfully retrieved browser session details
+ HttpResponse[typing.List[Script]]
+ Successful Response
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/browser_sessions/{jsonable_encoder(browser_session_id)}",
+ "v1/scripts",
method="GET",
+ params={
+ "page": page,
+ "page_size": page_size,
+ },
request_options=request_options,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- BrowserSessionResponse,
+ typing.List[Script],
parse_obj_as(
- type_=BrowserSessionResponse, # type: ignore
+ type_=typing.List[Script], # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 403:
- raise ForbiddenError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -3484,37 +3649,45 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def update_browser_session(
+ def create_script(
self,
- browser_session_id: str,
*,
- generate_browser_profile: bool,
+ workflow_id: typing.Optional[str] = OMIT,
+ run_id: typing.Optional[str] = OMIT,
+ files: typing.Optional[typing.Sequence[ScriptFileCreate]] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[BrowserSessionResponse]:
+ ) -> HttpResponse[CreateScriptResponse]:
"""
- Update a live browser session. Currently supports toggling generate_browser_profile, which is read when the session ends to decide whether to save its browser profile.
+ Create a new script with optional files and metadata
Parameters
----------
- browser_session_id : str
- The ID of the browser session. browser_session_id starts with `pbs_`
+ workflow_id : typing.Optional[str]
+ Associated workflow ID
- generate_browser_profile : bool
- Enable or disable saving this session's browser profile when it ends. Can be toggled while the session is still alive; the value is read at session teardown.
+ run_id : typing.Optional[str]
+ Associated run ID
+
+ files : typing.Optional[typing.Sequence[ScriptFileCreate]]
+ Array of files to include in the script
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[BrowserSessionResponse]
- Successfully updated browser session
+ HttpResponse[CreateScriptResponse]
+ Successful Response
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/browser_sessions/{jsonable_encoder(browser_session_id)}",
- method="PATCH",
+ "v1/scripts",
+ method="POST",
json={
- "generate_browser_profile": generate_browser_profile,
+ "workflow_id": workflow_id,
+ "run_id": run_id,
+ "files": convert_and_respect_annotation_metadata(
+ object_=files, annotation=typing.Sequence[ScriptFileCreate], direction="write"
+ ),
},
headers={
"content-type": "application/json",
@@ -3525,26 +3698,15 @@ class RawSkyvern:
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- BrowserSessionResponse,
+ CreateScriptResponse,
parse_obj_as(
- type_=BrowserSessionResponse, # type: ignore
+ type_=CreateScriptResponse, # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 403:
- raise ForbiddenError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 404:
- raise NotFoundError(
+ if _response.status_code == 422:
+ raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -3554,17 +3716,45 @@ class RawSkyvern:
),
),
)
- if _response.status_code == 409:
- raise ConflictError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
+ _response_json = _response.json()
+ except JSONDecodeError:
+ raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
+ raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
+
+ def get_script(
+ self, script_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> HttpResponse[Script]:
+ """
+ Retrieves a specific script by its ID
+
+ Parameters
+ ----------
+ script_id : str
+ The unique identifier of the script
+
+ request_options : typing.Optional[RequestOptions]
+ Request-specific configuration.
+
+ Returns
+ -------
+ HttpResponse[Script]
+ Successful Response
+ """
+ _response = self._client_wrapper.httpx_client.request(
+ f"v1/scripts/{jsonable_encoder(script_id)}",
+ method="GET",
+ request_options=request_options,
+ )
+ try:
+ if 200 <= _response.status_code < 300:
+ _data = typing.cast(
+ Script,
+ parse_obj_as(
+ type_=Script, # type: ignore
+ object_=_response.json(),
),
)
+ return HttpResponse(response=_response, data=_data)
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -3581,68 +3771,39 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def send_totp_code(
+ def deploy_script(
self,
+ script_id: str,
*,
- totp_identifier: str,
- content: str,
- task_id: typing.Optional[str] = OMIT,
- workflow_id: typing.Optional[str] = OMIT,
- workflow_run_id: typing.Optional[str] = OMIT,
- source: typing.Optional[str] = OMIT,
- expired_at: typing.Optional[dt.datetime] = OMIT,
- type: typing.Optional[OtpType] = OMIT,
+ files: typing.Sequence[ScriptFileCreate],
request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[TotpCode]:
+ ) -> HttpResponse[CreateScriptResponse]:
"""
- Forward a TOTP (2FA, MFA) email or sms message containing the code to Skyvern. This endpoint stores the code in database so that Skyvern can use it while running tasks/workflows.
+ Deploy a script with updated files, creating a new version
Parameters
----------
- totp_identifier : str
- The identifier of the TOTP code. It can be the email address, phone number, or the identifier of the user.
-
- content : str
- The content of the TOTP code. It can be the email content that contains the TOTP code, or the sms message that contains the TOTP code. Skyvern will automatically extract the TOTP code from the content.
-
- task_id : typing.Optional[str]
- The task_id the totp code is for. It can be the task_id of the task that the TOTP code is for.
-
- workflow_id : typing.Optional[str]
- The workflow ID the TOTP code is for. It can be the workflow ID of the workflow that the TOTP code is for.
-
- workflow_run_id : typing.Optional[str]
- The workflow run id that the TOTP code is for. It can be the workflow run id of the workflow run that the TOTP code is for.
-
- source : typing.Optional[str]
- An optional field. The source of the TOTP code. e.g. email, sms, etc.
-
- expired_at : typing.Optional[dt.datetime]
- The timestamp when the TOTP code expires
+ script_id : str
+ The unique identifier of the script
- type : typing.Optional[OtpType]
- Optional. If provided, forces extraction of this specific OTP type (totp or magic_link). Use this when the content contains multiple OTP types and you want to specify which one to extract.
+ files : typing.Sequence[ScriptFileCreate]
+ Array of files to include in the script
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[TotpCode]
+ HttpResponse[CreateScriptResponse]
Successful Response
"""
_response = self._client_wrapper.httpx_client.request(
- "v1/credentials/totp",
+ f"v1/scripts/{jsonable_encoder(script_id)}/deploy",
method="POST",
json={
- "totp_identifier": totp_identifier,
- "task_id": task_id,
- "workflow_id": workflow_id,
- "workflow_run_id": workflow_run_id,
- "source": source,
- "content": content,
- "expired_at": expired_at,
- "type": type,
+ "files": convert_and_respect_annotation_metadata(
+ object_=files, annotation=typing.Sequence[ScriptFileCreate], direction="write"
+ ),
},
headers={
"content-type": "application/json",
@@ -3653,9 +3814,9 @@ class RawSkyvern:
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- TotpCode,
+ CreateScriptResponse,
parse_obj_as(
- type_=TotpCode, # type: ignore
+ type_=CreateScriptResponse, # type: ignore
object_=_response.json(),
),
)
@@ -3676,62 +3837,68 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def get_credentials(
+ def run_sdk_action(
self,
*,
- page: typing.Optional[int] = None,
- page_size: typing.Optional[int] = None,
- vault_type: typing.Optional[CredentialVaultType] = None,
- credential_type: typing.Optional[SkyvernForgeSdkSchemasCredentialsCredentialType] = None,
- search: typing.Optional[str] = None,
+ url: str,
+ action: RunSdkActionRequestAction,
+ browser_session_id: typing.Optional[str] = OMIT,
+ browser_address: typing.Optional[str] = OMIT,
+ workflow_run_id: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[typing.List[CredentialResponse]]:
+ ) -> HttpResponse[RunSdkActionResponse]:
"""
- Retrieves a paginated list of credentials for the current organization
+ Execute a single SDK action with the specified parameters
Parameters
----------
- page : typing.Optional[int]
- Page number for pagination
+ url : str
+ The URL where the action should be executed
- page_size : typing.Optional[int]
- Number of items per page
+ action : RunSdkActionRequestAction
+ The action to execute with its specific parameters
- vault_type : typing.Optional[CredentialVaultType]
- Filter credentials by vault type (e.g. 'skyvern', 'custom', 'bitwarden', 'azure_vault')
+ browser_session_id : typing.Optional[str]
+ The browser session ID
- credential_type : typing.Optional[SkyvernForgeSdkSchemasCredentialsCredentialType]
- Filter credentials by type (e.g. 'password', 'credit_card', 'secret')
+ browser_address : typing.Optional[str]
+ The browser address
- search : typing.Optional[str]
- Case-insensitive search across credential name, username, secret label, and card details
+ workflow_run_id : typing.Optional[str]
+ Optional workflow run ID to continue an existing workflow run
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[typing.List[CredentialResponse]]
+ HttpResponse[RunSdkActionResponse]
Successful Response
"""
_response = self._client_wrapper.httpx_client.request(
- "v1/credentials",
- method="GET",
- params={
- "page": page,
- "page_size": page_size,
- "vault_type": vault_type,
- "credential_type": credential_type,
- "search": search,
+ "v1/sdk/run_action",
+ method="POST",
+ json={
+ "url": url,
+ "browser_session_id": browser_session_id,
+ "browser_address": browser_address,
+ "workflow_run_id": workflow_run_id,
+ "action": convert_and_respect_annotation_metadata(
+ object_=action, annotation=RunSdkActionRequestAction, direction="write"
+ ),
+ },
+ headers={
+ "content-type": "application/json",
},
request_options=request_options,
+ omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- typing.List[CredentialResponse],
+ RunSdkActionResponse,
parse_obj_as(
- type_=typing.List[CredentialResponse], # type: ignore
+ type_=RunSdkActionResponse, # type: ignore
object_=_response.json(),
),
)
@@ -3752,67 +3919,37 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def create_credential(
+ def update_workflow_folder(
self,
+ workflow_permanent_id: str,
*,
- name: str,
- credential_type: SkyvernForgeSdkSchemasCredentialsCredentialType,
- credential: CreateCredentialRequestCredential,
- vault_type: typing.Optional[CredentialVaultType] = OMIT,
- proxy_location: typing.Optional[CreateCredentialRequestProxyLocation] = OMIT,
- proxy_session_id: typing.Optional[str] = OMIT,
- rotate_proxy_session_id: typing.Optional[bool] = OMIT,
+ folder_id: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[CredentialResponse]:
+ ) -> HttpResponse[Workflow]:
"""
- Creates a new credential for the current organization
+ Update a workflow's folder assignment for the latest version
Parameters
----------
- name : str
- Name of the credential
-
- credential_type : SkyvernForgeSdkSchemasCredentialsCredentialType
- Type of credential to create
-
- credential : CreateCredentialRequestCredential
- The credential data to store
-
- vault_type : typing.Optional[CredentialVaultType]
- Which vault to store this credential in. If omitted, uses the instance default. Use this to mix Skyvern-hosted and custom credentials within the same organization.
-
- proxy_location : typing.Optional[CreateCredentialRequestProxyLocation]
- Optional proxy location for this credential's pinned proxy identity.
-
- proxy_session_id : typing.Optional[str]
- Optional advanced reuse key for this credential's pinned proxy identity.
+ workflow_permanent_id : str
+ Workflow permanent ID
- rotate_proxy_session_id : typing.Optional[bool]
- Rotate the Skyvern-managed proxy sticky-session id when updating this credential.
+ folder_id : typing.Optional[str]
+ Folder ID to assign workflow to. Set to null to remove from folder.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[CredentialResponse]
- Successful Response
+ HttpResponse[Workflow]
+ Successfully updated workflow folder
"""
_response = self._client_wrapper.httpx_client.request(
- "v1/credentials",
- method="POST",
+ f"v1/agents/{jsonable_encoder(workflow_permanent_id)}/folder",
+ method="PUT",
json={
- "name": name,
- "credential_type": credential_type,
- "credential": convert_and_respect_annotation_metadata(
- object_=credential, annotation=CreateCredentialRequestCredential, direction="write"
- ),
- "vault_type": vault_type,
- "proxy_location": convert_and_respect_annotation_metadata(
- object_=proxy_location, annotation=CreateCredentialRequestProxyLocation, direction="write"
- ),
- "proxy_session_id": proxy_session_id,
- "rotate_proxy_session_id": rotate_proxy_session_id,
+ "folder_id": folder_id,
},
headers={
"content-type": "application/json",
@@ -3823,15 +3960,15 @@ class RawSkyvern:
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- CredentialResponse,
+ Workflow,
parse_obj_as(
- type_=CredentialResponse, # type: ignore
+ type_=Workflow, # type: ignore
object_=_response.json(),
),
)
return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
+ if _response.status_code == 400:
+ raise BadRequestError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -3841,95 +3978,8 @@ class RawSkyvern:
),
),
)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def update_credential(
- self,
- credential_id: str,
- *,
- name: str,
- credential_type: SkyvernForgeSdkSchemasCredentialsCredentialType,
- credential: CreateCredentialRequestCredential,
- vault_type: typing.Optional[CredentialVaultType] = OMIT,
- proxy_location: typing.Optional[CreateCredentialRequestProxyLocation] = OMIT,
- proxy_session_id: typing.Optional[str] = OMIT,
- rotate_proxy_session_id: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[CredentialResponse]:
- """
- Overwrites the stored credential data (e.g. username/password) while keeping the same credential_id.
-
- Parameters
- ----------
- credential_id : str
- The unique identifier of the credential to update
-
- name : str
- Name of the credential
-
- credential_type : SkyvernForgeSdkSchemasCredentialsCredentialType
- Type of credential to create
-
- credential : CreateCredentialRequestCredential
- The credential data to store
-
- vault_type : typing.Optional[CredentialVaultType]
- Which vault to store this credential in. If omitted, uses the instance default. Use this to mix Skyvern-hosted and custom credentials within the same organization.
-
- proxy_location : typing.Optional[CreateCredentialRequestProxyLocation]
- Optional proxy location for this credential's pinned proxy identity.
-
- proxy_session_id : typing.Optional[str]
- Optional advanced reuse key for this credential's pinned proxy identity.
-
- rotate_proxy_session_id : typing.Optional[bool]
- Rotate the Skyvern-managed proxy sticky-session id when updating this credential.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[CredentialResponse]
- Successful Response
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/credentials/{jsonable_encoder(credential_id)}/update",
- method="POST",
- json={
- "name": name,
- "credential_type": credential_type,
- "credential": convert_and_respect_annotation_metadata(
- object_=credential, annotation=CreateCredentialRequestCredential, direction="write"
- ),
- "vault_type": vault_type,
- "proxy_location": convert_and_respect_annotation_metadata(
- object_=proxy_location, annotation=CreateCredentialRequestProxyLocation, direction="write"
- ),
- "proxy_session_id": proxy_session_id,
- "rotate_proxy_session_id": rotate_proxy_session_id,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- CredentialResponse,
- parse_obj_as(
- type_=CredentialResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
+ if _response.status_code == 404:
+ raise NotFoundError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -3939,37 +3989,6 @@ class RawSkyvern:
),
),
)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def delete_credential(
- self, credential_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[None]:
- """
- Deletes a specific credential by its ID
-
- Parameters
- ----------
- credential_id : str
- The unique identifier of the credential to delete
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[None]
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/credentials/{jsonable_encoder(credential_id)}/delete",
- method="POST",
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- return HttpResponse(response=_response, data=None)
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -3986,2080 +4005,110 @@ class RawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- def get_credential(
- self, credential_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[CredentialResponse]:
- """
- Retrieves a specific credential by its ID
-
- Parameters
- ----------
- credential_id : str
- The unique identifier of the credential
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[CredentialResponse]
- Successful Response
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/credentials/{jsonable_encoder(credential_id)}",
- method="GET",
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- CredentialResponse,
- parse_obj_as(
- type_=CredentialResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def list_custom_llms(
- self, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[CustomLlmListResponse]:
- """
- List the custom LLM configurations available to the current organization.
-
- Parameters
- ----------
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[CustomLlmListResponse]
- Successful Response
- """
- _response = self._client_wrapper.httpx_client.request(
- "v1/custom-llms",
- method="GET",
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- CustomLlmListResponse,
- parse_obj_as(
- type_=CustomLlmListResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def create_custom_llm(
- self, *, config: CustomLlmConfig, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[CustomLlmResponse]:
- """
- Create a custom LLM configuration for the current organization.
-
- Parameters
- ----------
- config : CustomLlmConfig
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[CustomLlmResponse]
- Successful Response
- """
- _response = self._client_wrapper.httpx_client.request(
- "v1/custom-llms",
- method="POST",
- json={
- "config": convert_and_respect_annotation_metadata(
- object_=config, annotation=CustomLlmConfig, direction="write"
- ),
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- CustomLlmResponse,
- parse_obj_as(
- type_=CustomLlmResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def update_custom_llm(
- self, custom_llm_id: str, *, config: CustomLlmConfig, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[CustomLlmResponse]:
- """
- Update a custom LLM configuration for the current organization.
-
- Parameters
- ----------
- custom_llm_id : str
- The custom LLM id.
-
- config : CustomLlmConfig
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[CustomLlmResponse]
- Successful Response
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/custom-llms/{jsonable_encoder(custom_llm_id)}",
- method="PUT",
- json={
- "config": convert_and_respect_annotation_metadata(
- object_=config, annotation=CustomLlmConfig, direction="write"
- ),
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- CustomLlmResponse,
- parse_obj_as(
- type_=CustomLlmResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def delete_custom_llm(
- self, custom_llm_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[ClearOrganizationAuthTokenResponse]:
- """
- Delete a custom LLM configuration for the current organization.
-
- Parameters
- ----------
- custom_llm_id : str
- The custom LLM id.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[ClearOrganizationAuthTokenResponse]
- Successful Response
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/custom-llms/{jsonable_encoder(custom_llm_id)}",
- method="DELETE",
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- ClearOrganizationAuthTokenResponse,
- parse_obj_as(
- type_=ClearOrganizationAuthTokenResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def login(
- self,
- *,
- credential_type: SkyvernSchemasCredentialTypeCredentialType,
- user_agent: typing.Optional[str] = None,
- url: typing.Optional[str] = OMIT,
- webhook_url: typing.Optional[str] = OMIT,
- proxy_location: typing.Optional[ProxyLocation] = OMIT,
- totp_identifier: typing.Optional[str] = OMIT,
- totp_url: typing.Optional[str] = OMIT,
- browser_session_id: typing.Optional[str] = OMIT,
- browser_profile_id: typing.Optional[str] = OMIT,
- browser_address: typing.Optional[str] = OMIT,
- extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- max_screenshot_scrolling_times: typing.Optional[int] = OMIT,
- prompt: typing.Optional[str] = OMIT,
- credential_id: typing.Optional[str] = OMIT,
- bitwarden_collection_id: typing.Optional[str] = OMIT,
- bitwarden_item_id: typing.Optional[str] = OMIT,
- onepassword_vault_id: typing.Optional[str] = OMIT,
- onepassword_item_id: typing.Optional[str] = OMIT,
- azure_vault_name: typing.Optional[str] = OMIT,
- azure_vault_username_key: typing.Optional[str] = OMIT,
- azure_vault_password_key: typing.Optional[str] = OMIT,
- azure_vault_totp_secret_key: typing.Optional[str] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[WorkflowRunResponse]:
- """
- Log in to a website using either credential stored in Skyvern, Bitwarden, 1Password, or Azure Vault
-
- Parameters
- ----------
- credential_type : SkyvernSchemasCredentialTypeCredentialType
- Where to get the credential from
-
- user_agent : typing.Optional[str]
-
- url : typing.Optional[str]
- Website URL
-
- webhook_url : typing.Optional[str]
- Webhook URL to send status updates
-
- proxy_location : typing.Optional[ProxyLocation]
- Proxy location to use
-
- totp_identifier : typing.Optional[str]
- Identifier for TOTP (Time-based One-Time Password) if required
-
- totp_url : typing.Optional[str]
- TOTP URL to fetch one-time passwords
-
- browser_session_id : typing.Optional[str]
- ID of the browser session to use, which is prefixed by `pbs_` e.g. `pbs_123456`
-
- browser_profile_id : typing.Optional[str]
- ID of a browser profile to reuse for this run
-
- browser_address : typing.Optional[str]
- The CDP address for the task.
-
- extra_http_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- Additional HTTP headers to include in requests
-
- cdp_connect_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- HTTP headers attached ONLY to the CDP WebSocket handshake when connecting to a remote browser via browser_address. Never forwarded to target websites.
-
- max_screenshot_scrolling_times : typing.Optional[int]
- Maximum number of times to scroll for screenshots
-
- prompt : typing.Optional[str]
- Login instructions. Skyvern has default prompt/instruction for login if this field is not provided.
-
- credential_id : typing.Optional[str]
- ID of the Skyvern credential to use for login.
-
- bitwarden_collection_id : typing.Optional[str]
- Bitwarden collection ID. You can find it in the Bitwarden collection URL. e.g. `https://vault.bitwarden.com/vaults/collection_id/items`
-
- bitwarden_item_id : typing.Optional[str]
- Bitwarden item ID
-
- onepassword_vault_id : typing.Optional[str]
- 1Password vault ID
-
- onepassword_item_id : typing.Optional[str]
- 1Password item ID
-
- azure_vault_name : typing.Optional[str]
- Azure Vault Name
-
- azure_vault_username_key : typing.Optional[str]
- Azure Vault username key
-
- azure_vault_password_key : typing.Optional[str]
- Azure Vault password key
-
- azure_vault_totp_secret_key : typing.Optional[str]
- Azure Vault TOTP secret key
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[WorkflowRunResponse]
- Successful Response
- """
- _response = self._client_wrapper.httpx_client.request(
- "v1/run/tasks/login",
- method="POST",
- json={
- "url": url,
- "webhook_url": webhook_url,
- "proxy_location": proxy_location,
- "totp_identifier": totp_identifier,
- "totp_url": totp_url,
- "browser_session_id": browser_session_id,
- "browser_profile_id": browser_profile_id,
- "browser_address": browser_address,
- "extra_http_headers": extra_http_headers,
- "cdp_connect_headers": cdp_connect_headers,
- "max_screenshot_scrolling_times": max_screenshot_scrolling_times,
- "credential_type": credential_type,
- "prompt": prompt,
- "credential_id": credential_id,
- "bitwarden_collection_id": bitwarden_collection_id,
- "bitwarden_item_id": bitwarden_item_id,
- "onepassword_vault_id": onepassword_vault_id,
- "onepassword_item_id": onepassword_item_id,
- "azure_vault_name": azure_vault_name,
- "azure_vault_username_key": azure_vault_username_key,
- "azure_vault_password_key": azure_vault_password_key,
- "azure_vault_totp_secret_key": azure_vault_totp_secret_key,
- },
- headers={
- "content-type": "application/json",
- "x-user-agent": str(user_agent) if user_agent is not None else None,
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- WorkflowRunResponse,
- parse_obj_as(
- type_=WorkflowRunResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def download_files(
- self,
- *,
- navigation_goal: str,
- user_agent: typing.Optional[str] = None,
- url: typing.Optional[str] = OMIT,
- webhook_url: typing.Optional[str] = OMIT,
- proxy_location: typing.Optional[ProxyLocation] = OMIT,
- totp_identifier: typing.Optional[str] = OMIT,
- totp_url: typing.Optional[str] = OMIT,
- browser_session_id: typing.Optional[str] = OMIT,
- browser_profile_id: typing.Optional[str] = OMIT,
- browser_address: typing.Optional[str] = OMIT,
- extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- max_screenshot_scrolling_times: typing.Optional[int] = OMIT,
- download_suffix: typing.Optional[str] = OMIT,
- download_timeout: typing.Optional[float] = OMIT,
- max_steps_per_run: typing.Optional[int] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[WorkflowRunResponse]:
- """
- Download a file from a website by navigating and clicking download buttons
-
- Parameters
- ----------
- navigation_goal : str
- Instructions for navigating to and downloading the file
-
- user_agent : typing.Optional[str]
-
- url : typing.Optional[str]
- Website URL
-
- webhook_url : typing.Optional[str]
- Webhook URL to send status updates
-
- proxy_location : typing.Optional[ProxyLocation]
- Proxy location to use
-
- totp_identifier : typing.Optional[str]
- Identifier for TOTP (Time-based One-Time Password) if required
-
- totp_url : typing.Optional[str]
- TOTP URL to fetch one-time passwords
-
- browser_session_id : typing.Optional[str]
- ID of the browser session to use, which is prefixed by `pbs_` e.g. `pbs_123456`
-
- browser_profile_id : typing.Optional[str]
- ID of a browser profile to reuse for this run
-
- browser_address : typing.Optional[str]
- The CDP address for the task.
-
- extra_http_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- Additional HTTP headers to include in requests
-
- cdp_connect_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- HTTP headers attached ONLY to the CDP WebSocket handshake when connecting to a remote browser via browser_address. Never forwarded to target websites.
-
- max_screenshot_scrolling_times : typing.Optional[int]
- Maximum number of times to scroll for screenshots
-
- download_suffix : typing.Optional[str]
- Suffix or complete filename for the downloaded file
-
- download_timeout : typing.Optional[float]
- Timeout in seconds for the download operation
-
- max_steps_per_run : typing.Optional[int]
- Maximum number of steps to execute
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[WorkflowRunResponse]
- Successful Response
- """
- _response = self._client_wrapper.httpx_client.request(
- "v1/run/tasks/download_files",
- method="POST",
- json={
- "url": url,
- "webhook_url": webhook_url,
- "proxy_location": proxy_location,
- "totp_identifier": totp_identifier,
- "totp_url": totp_url,
- "browser_session_id": browser_session_id,
- "browser_profile_id": browser_profile_id,
- "browser_address": browser_address,
- "extra_http_headers": extra_http_headers,
- "cdp_connect_headers": cdp_connect_headers,
- "max_screenshot_scrolling_times": max_screenshot_scrolling_times,
- "navigation_goal": navigation_goal,
- "download_suffix": download_suffix,
- "download_timeout": download_timeout,
- "max_steps_per_run": max_steps_per_run,
- },
- headers={
- "content-type": "application/json",
- "x-user-agent": str(user_agent) if user_agent is not None else None,
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- WorkflowRunResponse,
- parse_obj_as(
- type_=WorkflowRunResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def get_scripts(
- self,
- *,
- page: typing.Optional[int] = None,
- page_size: typing.Optional[int] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[typing.List[Script]]:
- """
- Retrieves a paginated list of scripts for the current organization
-
- Parameters
- ----------
- page : typing.Optional[int]
- Page number for pagination
-
- page_size : typing.Optional[int]
- Number of items per page
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[typing.List[Script]]
- Successful Response
- """
- _response = self._client_wrapper.httpx_client.request(
- "v1/scripts",
- method="GET",
- params={
- "page": page,
- "page_size": page_size,
- },
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- typing.List[Script],
- parse_obj_as(
- type_=typing.List[Script], # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def create_script(
- self,
- *,
- workflow_id: typing.Optional[str] = OMIT,
- run_id: typing.Optional[str] = OMIT,
- files: typing.Optional[typing.Sequence[ScriptFileCreate]] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[CreateScriptResponse]:
- """
- Create a new script with optional files and metadata
-
- Parameters
- ----------
- workflow_id : typing.Optional[str]
- Associated workflow ID
-
- run_id : typing.Optional[str]
- Associated run ID
-
- files : typing.Optional[typing.Sequence[ScriptFileCreate]]
- Array of files to include in the script
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[CreateScriptResponse]
- Successful Response
- """
- _response = self._client_wrapper.httpx_client.request(
- "v1/scripts",
- method="POST",
- json={
- "workflow_id": workflow_id,
- "run_id": run_id,
- "files": convert_and_respect_annotation_metadata(
- object_=files, annotation=typing.Sequence[ScriptFileCreate], direction="write"
- ),
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- CreateScriptResponse,
- parse_obj_as(
- type_=CreateScriptResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def get_script(
- self, script_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[Script]:
- """
- Retrieves a specific script by its ID
-
- Parameters
- ----------
- script_id : str
- The unique identifier of the script
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[Script]
- Successful Response
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/scripts/{jsonable_encoder(script_id)}",
- method="GET",
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- Script,
- parse_obj_as(
- type_=Script, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def deploy_script(
- self,
- script_id: str,
- *,
- files: typing.Sequence[ScriptFileCreate],
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[CreateScriptResponse]:
- """
- Deploy a script with updated files, creating a new version
-
- Parameters
- ----------
- script_id : str
- The unique identifier of the script
-
- files : typing.Sequence[ScriptFileCreate]
- Array of files to include in the script
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[CreateScriptResponse]
- Successful Response
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/scripts/{jsonable_encoder(script_id)}/deploy",
- method="POST",
- json={
- "files": convert_and_respect_annotation_metadata(
- object_=files, annotation=typing.Sequence[ScriptFileCreate], direction="write"
- ),
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- CreateScriptResponse,
- parse_obj_as(
- type_=CreateScriptResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def run_sdk_action(
- self,
- *,
- url: str,
- action: RunSdkActionRequestAction,
- browser_session_id: typing.Optional[str] = OMIT,
- browser_address: typing.Optional[str] = OMIT,
- workflow_run_id: typing.Optional[str] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[RunSdkActionResponse]:
- """
- Execute a single SDK action with the specified parameters
-
- Parameters
- ----------
- url : str
- The URL where the action should be executed
-
- action : RunSdkActionRequestAction
- The action to execute with its specific parameters
-
- browser_session_id : typing.Optional[str]
- The browser session ID
-
- browser_address : typing.Optional[str]
- The browser address
-
- workflow_run_id : typing.Optional[str]
- Optional workflow run ID to continue an existing workflow run
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[RunSdkActionResponse]
- Successful Response
- """
- _response = self._client_wrapper.httpx_client.request(
- "v1/sdk/run_action",
- method="POST",
- json={
- "url": url,
- "browser_session_id": browser_session_id,
- "browser_address": browser_address,
- "workflow_run_id": workflow_run_id,
- "action": convert_and_respect_annotation_metadata(
- object_=action, annotation=RunSdkActionRequestAction, direction="write"
- ),
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- RunSdkActionResponse,
- parse_obj_as(
- type_=RunSdkActionResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def update_workflow_folder(
- self,
- workflow_permanent_id: str,
- *,
- folder_id: typing.Optional[str] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[Workflow]:
- """
- Update a workflow's folder assignment for the latest version
-
- Parameters
- ----------
- workflow_permanent_id : str
- Workflow permanent ID
-
- folder_id : typing.Optional[str]
- Folder ID to assign workflow to. Set to null to remove from folder.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[Workflow]
- Successfully updated workflow folder
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/agents/{jsonable_encoder(workflow_permanent_id)}/folder",
- method="PUT",
- json={
- "folder_id": folder_id,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- Workflow,
- parse_obj_as(
- type_=Workflow, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 400:
- raise BadRequestError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def get_workflow_tags(
- self, workflow_permanent_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[TagsResponse]:
- """
- Get the current tag state for a workflow.
-
- Parameters
- ----------
- workflow_permanent_id : str
- Workflow permanent ID
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[TagsResponse]
- Successfully retrieved tags
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/agents/{jsonable_encoder(workflow_permanent_id)}/tags",
- method="GET",
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- TagsResponse,
- parse_obj_as(
- type_=TagsResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def apply_workflow_tags(
- self,
- workflow_permanent_id: str,
- *,
- tags: typing.Optional[typing.Sequence[TagInput]] = OMIT,
- tags_to_delete: typing.Optional[typing.Sequence[TagDeleteInput]] = OMIT,
- colors: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[TagsResponse]:
- """
- Atomically apply tag changes to a workflow. Sets and deletes happen in one transaction; same-key collisions resolve set-wins.
-
- Parameters
- ----------
- workflow_permanent_id : str
- Workflow permanent ID
-
- tags : typing.Optional[typing.Sequence[TagInput]]
- Tags to set (overwrite). List of {key?, value} objects.
-
- tags_to_delete : typing.Optional[typing.Sequence[TagDeleteInput]]
- Tags to soft-delete. List of {key?, value?} targets.
-
- colors : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- Optional map of grouped tag key to palette color name for the value being set. Keys absent from this map keep their existing color or receive a random palette color.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[TagsResponse]
- Successfully applied tag changes
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/agents/{jsonable_encoder(workflow_permanent_id)}/tags",
- method="POST",
- json={
- "tags": convert_and_respect_annotation_metadata(
- object_=tags, annotation=typing.Sequence[TagInput], direction="write"
- ),
- "tags_to_delete": convert_and_respect_annotation_metadata(
- object_=tags_to_delete, annotation=typing.Sequence[TagDeleteInput], direction="write"
- ),
- "colors": colors,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- TagsResponse,
- parse_obj_as(
- type_=TagsResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def delete_workflow_tag(
- self, workflow_permanent_id: str, key: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[TagsResponse]:
- """
- Soft-delete a single tag from a workflow. Writes a DELETE event row.
-
- Parameters
- ----------
- workflow_permanent_id : str
- Workflow permanent ID
-
- key : str
- Tag key to delete
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[TagsResponse]
- Successfully deleted tag (or no-op if absent)
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/agents/{jsonable_encoder(workflow_permanent_id)}/tags/{jsonable_encoder(key)}",
- method="DELETE",
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- TagsResponse,
- parse_obj_as(
- type_=TagsResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def get_workflow_tag_history(
- self,
- workflow_permanent_id: str,
- *,
- limit: typing.Optional[int] = None,
- since: typing.Optional[dt.datetime] = None,
- key: typing.Optional[str] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[TagHistoryResponse]:
- """
- Chronological tag-event log for a workflow (newest first). Includes SET and DELETE events.
-
- Parameters
- ----------
- workflow_permanent_id : str
- Workflow permanent ID
-
- limit : typing.Optional[int]
- Max events to return
-
- since : typing.Optional[dt.datetime]
- Only return events at or after this timestamp
-
- key : typing.Optional[str]
- Filter to events for a single tag key
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[TagHistoryResponse]
- Successfully retrieved tag history
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/agents/{jsonable_encoder(workflow_permanent_id)}/tags/history",
- method="GET",
- params={
- "limit": limit,
- "since": serialize_datetime(since) if since is not None else None,
- "key": key,
- },
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- TagHistoryResponse,
- parse_obj_as(
- type_=TagHistoryResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def retry_workflow_run(
- self,
- workflow_run_id: str,
- *,
- max_steps_override: typing.Optional[int] = None,
- user_agent: typing.Optional[str] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[WorkflowRunResponse]:
- """
- Retry a workflow run using the original run parameters.
-
- Parameters
- ----------
- workflow_run_id : str
- The id of the workflow run to retry.
-
- max_steps_override : typing.Optional[int]
-
- user_agent : typing.Optional[str]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[WorkflowRunResponse]
- Successfully retried workflow run
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/agents/runs/{jsonable_encoder(workflow_run_id)}/retry",
- method="POST",
- headers={
- "x-max-steps-override": str(max_steps_override) if max_steps_override is not None else None,
- "x-user-agent": str(user_agent) if user_agent is not None else None,
- },
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- WorkflowRunResponse,
- parse_obj_as(
- type_=WorkflowRunResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 400:
- raise BadRequestError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def get_workflow_runs(
- self,
- *,
- page: typing.Optional[int] = None,
- page_size: typing.Optional[int] = None,
- status: typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]] = None,
- search_key: typing.Optional[str] = None,
- error_code: typing.Optional[str] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[typing.List[WorkflowRun]]:
- """
- List workflow runs across all workflows for the current organization.
-
- Results are paginated and can be filtered by **status**, **search_key**, and **error_code**. All filters are combined with **AND** logic — a run must match every supplied filter to be returned.
-
- ### search_key
-
- A case-insensitive substring search that matches against **any** of the following fields:
-
- | Searched field | Description |
- |---|---|
- | `workflow_run_id` | The unique run identifier (e.g. `wr_123…`) |
- | Parameter **key** | The `key` of any workflow parameter definition associated with the run |
- | Parameter **description** | The `description` of any workflow parameter definition |
- | Run parameter **value** | The actual value supplied for any parameter when the run was created |
- | `extra_http_headers` | Extra HTTP headers attached to the run (searched as raw JSON text) |
-
- Soft-deleted parameter definitions are excluded from key/description matching. A run is returned if **any** of the fields above contain the search term.
-
- ### error_code
-
- An **exact-match** filter against the `error_code` field inside each task's `errors` JSON array. A run matches if **any** of its tasks contains an error object with a matching `error_code` value. Error codes are user-defined strings set during workflow execution (e.g. `INVALID_CREDENTIALS`, `LOGIN_FAILED`, `CAPTCHA_DETECTED`).
-
- ### Combining filters
-
- All query parameters use AND logic:
- - `?status=failed` — only failed runs
- - `?status=failed&error_code=LOGIN_FAILED` — failed runs **and** have a LOGIN_FAILED error
- - `?status=failed&error_code=LOGIN_FAILED&search_key=prod_credential` — all three conditions must match
-
- Parameters
- ----------
- page : typing.Optional[int]
- Page number for pagination.
-
- page_size : typing.Optional[int]
- Number of runs to return per page.
-
- status : typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]]
- Filter by one or more run statuses.
-
- search_key : typing.Optional[str]
- Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching.
-
- error_code : typing.Optional[str]
- Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[typing.List[WorkflowRun]]
- Successful Response
- """
- _response = self._client_wrapper.httpx_client.request(
- "v1/agents/runs",
- method="GET",
- params={
- "page": page,
- "page_size": page_size,
- "status": status,
- "search_key": search_key,
- "error_code": error_code,
- },
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- typing.List[WorkflowRun],
- parse_obj_as(
- type_=typing.List[WorkflowRun], # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def get_workflow_runs_by_id(
- self,
- workflow_id: str,
- *,
- page: typing.Optional[int] = None,
- page_size: typing.Optional[int] = None,
- status: typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]] = None,
- search_key: typing.Optional[str] = None,
- error_code: typing.Optional[str] = None,
- created_at_start: typing.Optional[dt.datetime] = None,
- created_at_end: typing.Optional[dt.datetime] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[typing.List[WorkflowRun]]:
- """
- List runs for a specific workflow.
-
- Supports filtering by **status**, **search_key**, and **error_code**. All filters are combined with **AND** logic.
-
- ### search_key
-
- Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. Soft-deleted parameter definitions are excluded.
-
- ### error_code
-
- Exact-match filter on the `error_code` field inside each task's `errors` JSON array. A run matches if any of its tasks contains an error with a matching `error_code`.
-
- Parameters
- ----------
- workflow_id : str
-
- page : typing.Optional[int]
- Page number for pagination.
-
- page_size : typing.Optional[int]
- Number of runs to return per page.
-
- status : typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]]
- Filter by one or more run statuses.
-
- search_key : typing.Optional[str]
- Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching.
-
- error_code : typing.Optional[str]
- Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution.
-
- created_at_start : typing.Optional[dt.datetime]
- Only include runs created at or after this UTC timestamp (ISO 8601).
-
- created_at_end : typing.Optional[dt.datetime]
- Only include runs created strictly before this UTC timestamp (ISO 8601).
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[typing.List[WorkflowRun]]
- Successful Response
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/agents/{jsonable_encoder(workflow_id)}/runs",
- method="GET",
- params={
- "page": page,
- "page_size": page_size,
- "status": status,
- "search_key": search_key,
- "error_code": error_code,
- "created_at_start": serialize_datetime(created_at_start) if created_at_start is not None else None,
- "created_at_end": serialize_datetime(created_at_end) if created_at_end is not None else None,
- },
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- typing.List[WorkflowRun],
- parse_obj_as(
- type_=typing.List[WorkflowRun], # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def get_workflow(
- self,
- workflow_permanent_id: str,
- *,
- version: typing.Optional[int] = None,
- template: typing.Optional[bool] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[Workflow]:
- """
- Parameters
- ----------
- workflow_permanent_id : str
-
- version : typing.Optional[int]
-
- template : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[Workflow]
- Successful Response
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/agents/{jsonable_encoder(workflow_permanent_id)}",
- method="GET",
- params={
- "version": version,
- "template": template,
- },
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- Workflow,
- parse_obj_as(
- type_=Workflow, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- def get_workflow_versions(
- self,
- workflow_permanent_id: str,
- *,
- template: typing.Optional[bool] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[typing.List[Workflow]]:
- """
- Get all versions of a workflow by its permanent ID.
-
- Parameters
- ----------
- workflow_permanent_id : str
-
- template : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[typing.List[Workflow]]
- Successful Response
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/agents/{jsonable_encoder(workflow_permanent_id)}/versions",
- method="GET",
- params={
- "template": template,
- },
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- typing.List[Workflow],
- parse_obj_as(
- type_=typing.List[Workflow], # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
-
-class AsyncRawSkyvern:
- def __init__(self, *, client_wrapper: AsyncClientWrapper):
- self._client_wrapper = client_wrapper
-
- async def run_task(
- self,
- *,
- prompt: str,
- user_agent: typing.Optional[str] = None,
- url: typing.Optional[str] = OMIT,
- engine: typing.Optional[RunEngine] = OMIT,
- title: typing.Optional[str] = OMIT,
- proxy_location: typing.Optional[TaskRunRequestInputProxyLocation] = OMIT,
- data_extraction_schema: typing.Optional[TaskRunRequestInputDataExtractionSchema] = OMIT,
- error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- max_steps: typing.Optional[int] = OMIT,
- webhook_url: typing.Optional[str] = OMIT,
- totp_identifier: typing.Optional[str] = OMIT,
- totp_url: typing.Optional[str] = OMIT,
- browser_session_id: typing.Optional[str] = OMIT,
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
- extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- publish_workflow: typing.Optional[bool] = OMIT,
- include_action_history_in_verification: typing.Optional[bool] = OMIT,
- max_screenshot_scrolls: typing.Optional[int] = OMIT,
- browser_address: typing.Optional[str] = OMIT,
- run_with: typing.Optional[str] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[TaskRunResponse]:
- """
- Run a task
-
- Parameters
- ----------
- prompt : str
-
- The goal or task description for Skyvern to accomplish
-
- user_agent : typing.Optional[str]
-
- url : typing.Optional[str]
-
- The starting URL for the task. If not provided, Skyvern will attempt to determine an appropriate URL
-
- engine : typing.Optional[RunEngine]
-
- The engine that powers the agent task. The default value is `skyvern-1.0`, which is good for simple tasks like filling a form, or searching for information on Google. `skyvern-2.0` remains available for existing V2 workflows and explicitly requested V2 task runs. The `openai-cua` engine uses OpenAI's CUA model. The `anthropic-cua` uses Anthropic's Claude Sonnet 3.7 model with the computer use tool.
-
- title : typing.Optional[str]
- The title for the task
-
- proxy_location : typing.Optional[TaskRunRequestInputProxyLocation]
-
- Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
-
- Available geotargeting options:
- - RESIDENTIAL: the default value. Skyvern Cloud uses a random US residential proxy.
- - RESIDENTIAL_ES: Spain
- - RESIDENTIAL_IE: Ireland
- - RESIDENTIAL_GB: United Kingdom
- - RESIDENTIAL_IN: India
- - RESIDENTIAL_JP: Japan
- - RESIDENTIAL_FR: France
- - RESIDENTIAL_DE: Germany
- - RESIDENTIAL_NZ: New Zealand
- - RESIDENTIAL_PH: Philippines
- - RESIDENTIAL_KR: South Korea
- - RESIDENTIAL_SA: Saudi Arabia
- - RESIDENTIAL_ZA: South Africa
- - RESIDENTIAL_AR: Argentina
- - RESIDENTIAL_AU: Australia
- - RESIDENTIAL_BR: Brazil
- - RESIDENTIAL_TR: Turkey
- - RESIDENTIAL_CA: Canada
- - RESIDENTIAL_MX: Mexico
- - RESIDENTIAL_IT: Italy
- - RESIDENTIAL_NL: Netherlands
- - RESIDENTIAL_ISP: ISP proxy
- - US-CA: California (deprecated, routes through RESIDENTIAL_ISP)
- - US-NY: New York (deprecated, routes through RESIDENTIAL_ISP)
- - US-TX: Texas (deprecated, routes through RESIDENTIAL_ISP)
- - US-FL: Florida (deprecated, routes through RESIDENTIAL_ISP)
- - US-WA: Washington (deprecated, routes through RESIDENTIAL_ISP)
- - NONE: No proxy
-
- For self-hosted deployments, you can pass a custom proxy URL as a dict: {"url": "http://user:[email protected]:8080"}. This routes the browser through your own proxy server and takes precedence over any globally configured proxy pool.
- Can also be a GeoTarget object for granular city/state targeting: {"country": "US", "subdivision": "CA", "city": "San Francisco"}
-
- data_extraction_schema : typing.Optional[TaskRunRequestInputDataExtractionSchema]
-
- The schema for data to be extracted from the webpage. If you're looking for consistent data schema being returned by the agent, it's highly recommended to use https://json-schema.org/.
-
- error_code_mapping : typing.Optional[typing.Dict[str, typing.Optional[str]]]
-
- Custom mapping of error codes to error messages if Skyvern encounters an error.
-
- max_steps : typing.Optional[int]
-
- Maximum number of steps the task can take. Task will fail if it exceeds this number. Cautions: you are charged per step so please set this number to a reasonable value. Contact [email protected] for custom pricing.
-
- webhook_url : typing.Optional[str]
-
- After a run is finished, send an update to this URL. Refer to https://www.skyvern.com/docs/running-tasks/webhooks-faq for more details.
-
- totp_identifier : typing.Optional[str]
-
- Identifier for the TOTP/2FA/MFA code when the code is pushed to Skyvern. Refer to https://www.skyvern.com/docs/credentials/totp#option-3-push-code-to-skyvern for more details.
-
- totp_url : typing.Optional[str]
-
- URL that serves TOTP/2FA/MFA codes for Skyvern to use during the workflow run. Refer to https://www.skyvern.com/docs/credentials/totp#option-2-get-code-from-your-endpoint for more details.
-
- browser_session_id : typing.Optional[str]
-
- Run the task or workflow in the specific Skyvern browser session. Having a browser session can persist the real-time state of the browser, so that the next run can continue from where the previous run left off.
-
- model : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
-
- Optional model configuration.
-
- extra_http_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- The extra HTTP headers for the requests in browser.
-
- cdp_connect_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- HTTP headers attached ONLY to the CDP WebSocket handshake when connecting to a remote browser via browser_address. Use this for browser-provider auth (e.g., x-api-key for Skyvern Cloud, Browserless, or similar). These headers are NEVER forwarded to target websites.
-
- publish_workflow : typing.Optional[bool]
- Deprecated. Whether to publish a `skyvern-2.0` task as a reusable workflow. For backwards compatibility, this routes the request through the legacy `skyvern-2.0` publish path. Prefer creating reusable workflows through the workflow APIs.
-
- include_action_history_in_verification : typing.Optional[bool]
- Whether to include action history when verifying that the task is complete
-
- max_screenshot_scrolls : typing.Optional[int]
- The maximum number of scrolls for the post action screenshot. When it's None or 0, it takes the current viewpoint screenshot.
-
- browser_address : typing.Optional[str]
- The CDP address for the task.
-
- run_with : typing.Optional[str]
- Whether to run the task with agent or code. Null means use the default.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- AsyncHttpResponse[TaskRunResponse]
- Successfully run task
- """
- _response = await self._client_wrapper.httpx_client.request(
- "v1/run/tasks",
- method="POST",
- json={
- "prompt": prompt,
- "url": url,
- "engine": engine,
- "title": title,
- "proxy_location": convert_and_respect_annotation_metadata(
- object_=proxy_location, annotation=TaskRunRequestInputProxyLocation, direction="write"
- ),
- "data_extraction_schema": convert_and_respect_annotation_metadata(
- object_=data_extraction_schema,
- annotation=TaskRunRequestInputDataExtractionSchema,
- direction="write",
- ),
- "error_code_mapping": error_code_mapping,
- "max_steps": max_steps,
- "webhook_url": webhook_url,
- "totp_identifier": totp_identifier,
- "totp_url": totp_url,
- "browser_session_id": browser_session_id,
- "model": model,
- "extra_http_headers": extra_http_headers,
- "cdp_connect_headers": cdp_connect_headers,
- "publish_workflow": publish_workflow,
- "include_action_history_in_verification": include_action_history_in_verification,
- "max_screenshot_scrolls": max_screenshot_scrolls,
- "browser_address": browser_address,
- "run_with": run_with,
- },
- headers={
- "content-type": "application/json",
- "x-user-agent": str(user_agent) if user_agent is not None else None,
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- TaskRunResponse,
- parse_obj_as(
- type_=TaskRunResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 400:
- raise BadRequestError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- async def run_workflow(
- self,
- *,
- agent_id: str,
- template: typing.Optional[bool] = None,
- max_steps_override: typing.Optional[int] = None,
- user_agent: typing.Optional[str] = None,
- parameters: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
- title: typing.Optional[str] = OMIT,
- proxy_location: typing.Optional[WorkflowRunRequestInputProxyLocation] = OMIT,
- webhook_url: typing.Optional[str] = OMIT,
- totp_url: typing.Optional[str] = OMIT,
- totp_identifier: typing.Optional[str] = OMIT,
- browser_session_id: typing.Optional[str] = OMIT,
- browser_profile_id: typing.Optional[str] = OMIT,
- max_screenshot_scrolls: typing.Optional[int] = OMIT,
- max_elapsed_time_minutes: typing.Optional[int] = OMIT,
- extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- browser_address: typing.Optional[str] = OMIT,
- ai_fallback: typing.Optional[bool] = OMIT,
- run_with: typing.Optional[str] = OMIT,
- run_metadata: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[WorkflowRunResponse]:
- """
- Run an agent
-
- Parameters
- ----------
- agent_id : str
- ID of the agent to run. Starts with `wpid_`. `workflow_id` is accepted as an alias.
-
- template : typing.Optional[bool]
-
- max_steps_override : typing.Optional[int]
-
- user_agent : typing.Optional[str]
-
- parameters : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
- Parameters to pass to the workflow
-
- title : typing.Optional[str]
- The title for this workflow run
-
- proxy_location : typing.Optional[WorkflowRunRequestInputProxyLocation]
-
- Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
-
- Available geotargeting options:
- - RESIDENTIAL: the default value. Skyvern Cloud uses a random US residential proxy.
- - RESIDENTIAL_ES: Spain
- - RESIDENTIAL_IE: Ireland
- - RESIDENTIAL_GB: United Kingdom
- - RESIDENTIAL_IN: India
- - RESIDENTIAL_JP: Japan
- - RESIDENTIAL_FR: France
- - RESIDENTIAL_DE: Germany
- - RESIDENTIAL_NZ: New Zealand
- - RESIDENTIAL_PH: Philippines
- - RESIDENTIAL_KR: South Korea
- - RESIDENTIAL_SA: Saudi Arabia
- - RESIDENTIAL_ZA: South Africa
- - RESIDENTIAL_AR: Argentina
- - RESIDENTIAL_AU: Australia
- - RESIDENTIAL_BR: Brazil
- - RESIDENTIAL_TR: Turkey
- - RESIDENTIAL_CA: Canada
- - RESIDENTIAL_MX: Mexico
- - RESIDENTIAL_IT: Italy
- - RESIDENTIAL_NL: Netherlands
- - RESIDENTIAL_ISP: ISP proxy
- - US-CA: California (deprecated, routes through RESIDENTIAL_ISP)
- - US-NY: New York (deprecated, routes through RESIDENTIAL_ISP)
- - US-TX: Texas (deprecated, routes through RESIDENTIAL_ISP)
- - US-FL: Florida (deprecated, routes through RESIDENTIAL_ISP)
- - US-WA: Washington (deprecated, routes through RESIDENTIAL_ISP)
- - NONE: No proxy
-
- For self-hosted deployments, you can pass a custom proxy URL as a dict: {"url": "http://user:[email protected]:8080"}. This routes the browser through your own proxy server and takes precedence over any globally configured proxy pool.
- Can also be a GeoTarget object for granular city/state targeting: {"country": "US", "subdivision": "CA", "city": "San Francisco"}
-
- webhook_url : typing.Optional[str]
- URL to send workflow status updates to after a run is finished. Refer to https://www.skyvern.com/docs/running-tasks/webhooks-faq for webhook questions.
-
- totp_url : typing.Optional[str]
-
- URL that serves TOTP/2FA/MFA codes for Skyvern to use during the workflow run. Refer to https://www.skyvern.com/docs/credentials/totp#option-2-get-code-from-your-endpoint for more details.
-
- totp_identifier : typing.Optional[str]
-
- Identifier for the TOTP/2FA/MFA code when the code is pushed to Skyvern. Refer to https://www.skyvern.com/docs/credentials/totp#option-3-push-code-to-skyvern for more details.
-
- browser_session_id : typing.Optional[str]
- ID of a Skyvern browser session to reuse, having it continue from the current screen state
-
- browser_profile_id : typing.Optional[str]
- ID of a browser profile to reuse for this workflow run
-
- max_screenshot_scrolls : typing.Optional[int]
- The maximum number of scrolls for the post action screenshot. When it's None or 0, it takes the current viewpoint screenshot.
+ def get_workflow_tags(
+ self, workflow_permanent_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> HttpResponse[TagsResponse]:
+ """
+ Get the current tag state for a workflow.
- max_elapsed_time_minutes : typing.Optional[int]
- Timeout this workflow run after the configured elapsed runtime in minutes. When omitted, the platform default is 240 minutes. The maximum configurable value is 480 minutes.
+ Parameters
+ ----------
+ workflow_permanent_id : str
+ Workflow permanent ID
- extra_http_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- The extra HTTP headers for the requests in browser.
+ request_options : typing.Optional[RequestOptions]
+ Request-specific configuration.
- cdp_connect_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- HTTP headers attached ONLY to the CDP WebSocket handshake when connecting to a remote browser via browser_address. Use this for browser-provider auth (e.g., x-api-key for Skyvern Cloud, Browserless, or similar). These headers are NEVER forwarded to target websites.
+ Returns
+ -------
+ HttpResponse[TagsResponse]
+ Successfully retrieved tags
+ """
+ _response = self._client_wrapper.httpx_client.request(
+ f"v1/agents/{jsonable_encoder(workflow_permanent_id)}/tags",
+ method="GET",
+ request_options=request_options,
+ )
+ try:
+ if 200 <= _response.status_code < 300:
+ _data = typing.cast(
+ TagsResponse,
+ parse_obj_as(
+ type_=TagsResponse, # type: ignore
+ object_=_response.json(),
+ ),
+ )
+ return HttpResponse(response=_response, data=_data)
+ if _response.status_code == 404:
+ raise NotFoundError(
+ headers=dict(_response.headers),
+ body=typing.cast(
+ typing.Optional[typing.Any],
+ parse_obj_as(
+ type_=typing.Optional[typing.Any], # type: ignore
+ object_=_response.json(),
+ ),
+ ),
+ )
+ if _response.status_code == 422:
+ raise UnprocessableEntityError(
+ headers=dict(_response.headers),
+ body=typing.cast(
+ typing.Optional[typing.Any],
+ parse_obj_as(
+ type_=typing.Optional[typing.Any], # type: ignore
+ object_=_response.json(),
+ ),
+ ),
+ )
+ _response_json = _response.json()
+ except JSONDecodeError:
+ raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
+ raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- browser_address : typing.Optional[str]
- The CDP address for the workflow run.
+ def apply_workflow_tags(
+ self,
+ workflow_permanent_id: str,
+ *,
+ tags: typing.Optional[typing.Sequence[TagInput]] = OMIT,
+ tags_to_delete: typing.Optional[typing.Sequence[TagDeleteInput]] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> HttpResponse[TagsResponse]:
+ """
+ Atomically apply tag changes to a workflow. Sets and deletes happen in one transaction; same-key collisions resolve set-wins.
- ai_fallback : typing.Optional[bool]
- Whether to fallback to AI if the workflow run fails.
+ Parameters
+ ----------
+ workflow_permanent_id : str
+ Workflow permanent ID
- run_with : typing.Optional[str]
- Whether to run the workflow with agent or code. Null inherits from the workflow setting.
+ tags : typing.Optional[typing.Sequence[TagInput]]
+ Tags to set (overwrite). List of {key?, value} objects.
- run_metadata : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- String key/value metadata to attach to this workflow run for analytics tag filtering.
+ tags_to_delete : typing.Optional[typing.Sequence[TagDeleteInput]]
+ Tags to soft-delete. List of {key?, value?} targets.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[WorkflowRunResponse]
- Successfully ran agent
+ HttpResponse[TagsResponse]
+ Successfully applied tag changes
"""
- _response = await self._client_wrapper.httpx_client.request(
- "v1/run/agents",
+ _response = self._client_wrapper.httpx_client.request(
+ f"v1/agents/{jsonable_encoder(workflow_permanent_id)}/tags",
method="POST",
- params={
- "template": template,
- },
json={
- "agent_id": agent_id,
- "parameters": parameters,
- "title": title,
- "proxy_location": convert_and_respect_annotation_metadata(
- object_=proxy_location, annotation=WorkflowRunRequestInputProxyLocation, direction="write"
+ "tags": convert_and_respect_annotation_metadata(
+ object_=tags, annotation=typing.Sequence[TagInput], direction="write"
+ ),
+ "tags_to_delete": convert_and_respect_annotation_metadata(
+ object_=tags_to_delete, annotation=typing.Sequence[TagDeleteInput], direction="write"
),
- "webhook_url": webhook_url,
- "totp_url": totp_url,
- "totp_identifier": totp_identifier,
- "browser_session_id": browser_session_id,
- "browser_profile_id": browser_profile_id,
- "max_screenshot_scrolls": max_screenshot_scrolls,
- "max_elapsed_time_minutes": max_elapsed_time_minutes,
- "extra_http_headers": extra_http_headers,
- "cdp_connect_headers": cdp_connect_headers,
- "browser_address": browser_address,
- "ai_fallback": ai_fallback,
- "run_with": run_with,
- "run_metadata": run_metadata,
},
headers={
"content-type": "application/json",
- "x-max-steps-override": str(max_steps_override) if max_steps_override is not None else None,
- "x-user-agent": str(user_agent) if user_agent is not None else None,
},
request_options=request_options,
omit=OMIT,
@@ -6067,15 +4116,15 @@ class AsyncRawSkyvern:
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- WorkflowRunResponse,
+ TagsResponse,
parse_obj_as(
- type_=WorkflowRunResponse, # type: ignore
+ type_=TagsResponse, # type: ignore
object_=_response.json(),
),
)
- return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 400:
- raise BadRequestError(
+ return HttpResponse(response=_response, data=_data)
+ if _response.status_code == 404:
+ raise NotFoundError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -6101,40 +4150,43 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def get_run(
- self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[GetRunResponse]:
+ def delete_workflow_tag(
+ self, workflow_permanent_id: str, key: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> HttpResponse[TagsResponse]:
"""
- Get run information (task run, workflow run)
+ Soft-delete a single tag from a workflow. Writes a DELETE event row.
Parameters
----------
- run_id : str
- The id of the task run or the workflow run.
+ workflow_permanent_id : str
+ Workflow permanent ID
+
+ key : str
+ Tag key to delete
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[GetRunResponse]
- Successfully got run
+ HttpResponse[TagsResponse]
+ Successfully deleted tag (or no-op if absent)
"""
- _response = await self._client_wrapper.httpx_client.request(
- f"v1/runs/{jsonable_encoder(run_id)}",
- method="GET",
+ _response = self._client_wrapper.httpx_client.request(
+ f"v1/agents/{jsonable_encoder(workflow_permanent_id)}/tags/{jsonable_encoder(key)}",
+ method="DELETE",
request_options=request_options,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- GetRunResponse,
+ TagsResponse,
parse_obj_as(
- type_=GetRunResponse, # type: ignore
+ type_=TagsResponse, # type: ignore
object_=_response.json(),
),
)
- return AsyncHttpResponse(response=_response, data=_data)
+ return HttpResponse(response=_response, data=_data)
if _response.status_code == 404:
raise NotFoundError(
headers=dict(_response.headers),
@@ -6162,42 +4214,71 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def cancel_run(
- self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[typing.Optional[typing.Any]]:
+ def get_workflow_tag_history(
+ self,
+ workflow_permanent_id: str,
+ *,
+ limit: typing.Optional[int] = None,
+ since: typing.Optional[dt.datetime] = None,
+ key: typing.Optional[str] = None,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> HttpResponse[TagHistoryResponse]:
"""
- Cancel a run (task or workflow)
+ Chronological tag-event log for a workflow (newest first). Includes SET and DELETE events.
Parameters
----------
- run_id : str
- The id of the task run or the workflow run to cancel.
+ workflow_permanent_id : str
+ Workflow permanent ID
+
+ limit : typing.Optional[int]
+ Max events to return
+
+ since : typing.Optional[dt.datetime]
+ Only return events at or after this timestamp
+
+ key : typing.Optional[str]
+ Filter to events for a single tag key
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[typing.Optional[typing.Any]]
- Successful Response
+ HttpResponse[TagHistoryResponse]
+ Successfully retrieved tag history
"""
- _response = await self._client_wrapper.httpx_client.request(
- f"v1/runs/{jsonable_encoder(run_id)}/cancel",
- method="POST",
+ _response = self._client_wrapper.httpx_client.request(
+ f"v1/agents/{jsonable_encoder(workflow_permanent_id)}/tags/history",
+ method="GET",
+ params={
+ "limit": limit,
+ "since": serialize_datetime(since) if since is not None else None,
+ "key": key,
+ },
request_options=request_options,
)
try:
- if _response is None or not _response.text.strip():
- return AsyncHttpResponse(response=_response, data=None)
if 200 <= _response.status_code < 300:
_data = typing.cast(
- typing.Optional[typing.Any],
+ TagHistoryResponse,
parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
+ type_=TagHistoryResponse, # type: ignore
object_=_response.json(),
),
)
- return AsyncHttpResponse(response=_response, data=_data)
+ return HttpResponse(response=_response, data=_data)
+ if _response.status_code == 404:
+ raise NotFoundError(
+ headers=dict(_response.headers),
+ body=typing.cast(
+ typing.Optional[typing.Any],
+ parse_obj_as(
+ type_=typing.Optional[typing.Any], # type: ignore
+ object_=_response.json(),
+ ),
+ ),
+ )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -6214,47 +4295,75 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def bulk_cancel_runs(
- self, *, run_ids: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[BulkCancelRunsResponse]:
+ def retry_workflow_run(
+ self,
+ workflow_run_id: str,
+ *,
+ max_steps_override: typing.Optional[int] = None,
+ user_agent: typing.Optional[str] = None,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> HttpResponse[WorkflowRunResponse]:
"""
- Cancel multiple runs (tasks or workflows) in a single request
+ Retry a workflow run using the original run parameters.
Parameters
----------
- run_ids : typing.Sequence[str]
- List of run IDs to cancel
+ workflow_run_id : str
+ The id of the workflow run to retry.
+
+ max_steps_override : typing.Optional[int]
+
+ user_agent : typing.Optional[str]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[BulkCancelRunsResponse]
- Successful Response
+ HttpResponse[WorkflowRunResponse]
+ Successfully retried workflow run
"""
- _response = await self._client_wrapper.httpx_client.request(
- "v1/runs/cancel",
- method="POST",
- json={
- "run_ids": run_ids,
- },
+ _response = self._client_wrapper.httpx_client.request(
+ f"v1/agents/runs/{jsonable_encoder(workflow_run_id)}/retry",
+ method="POST",
headers={
- "content-type": "application/json",
+ "x-max-steps-override": str(max_steps_override) if max_steps_override is not None else None,
+ "x-user-agent": str(user_agent) if user_agent is not None else None,
},
request_options=request_options,
- omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- BulkCancelRunsResponse,
+ WorkflowRunResponse,
parse_obj_as(
- type_=BulkCancelRunsResponse, # type: ignore
+ type_=WorkflowRunResponse, # type: ignore
object_=_response.json(),
),
)
- return AsyncHttpResponse(response=_response, data=_data)
+ return HttpResponse(response=_response, data=_data)
+ if _response.status_code == 400:
+ raise BadRequestError(
+ headers=dict(_response.headers),
+ body=typing.cast(
+ typing.Optional[typing.Any],
+ parse_obj_as(
+ type_=typing.Optional[typing.Any], # type: ignore
+ object_=_response.json(),
+ ),
+ ),
+ )
+ if _response.status_code == 404:
+ raise NotFoundError(
+ headers=dict(_response.headers),
+ body=typing.cast(
+ typing.Optional[typing.Any],
+ parse_obj_as(
+ type_=typing.Optional[typing.Any], # type: ignore
+ object_=_response.json(),
+ ),
+ ),
+ )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -6271,96 +4380,93 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def get_workflows(
+ def get_workflow_runs(
self,
*,
page: typing.Optional[int] = None,
page_size: typing.Optional[int] = None,
- only_saved_tasks: typing.Optional[bool] = None,
- only_workflows: typing.Optional[bool] = None,
- only_templates: typing.Optional[bool] = None,
+ status: typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]] = None,
search_key: typing.Optional[str] = None,
- title: typing.Optional[str] = None,
- folder_id: typing.Optional[str] = None,
- status: typing.Optional[typing.Union[WorkflowStatus, typing.Sequence[WorkflowStatus]]] = None,
- tags: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
- template: typing.Optional[bool] = None,
+ error_code: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[typing.List[Workflow]]:
+ ) -> HttpResponse[typing.List[WorkflowRun]]:
"""
- Get all workflows with the latest version for the organization.
+ List workflow runs across all workflows for the current organization.
- Search semantics:
- - If `search_key` is provided, its value is used as a unified search term for
- `workflows.title`, `folders.title`, and workflow parameter metadata (key, description, and default_value for
- `WorkflowParameterModel`).
- - Falls back to deprecated `title` (title-only search) if `search_key` is not provided.
- - Parameter metadata search excludes soft-deleted parameter rows across all parameter tables.
+ Results are paginated and can be filtered by **status**, **search_key**, and **error_code**. All filters are combined with **AND** logic — a run must match every supplied filter to be returned.
- Parameters
- ----------
- page : typing.Optional[int]
+ ### search_key
- page_size : typing.Optional[int]
+ A case-insensitive substring search that matches against **any** of the following fields:
- only_saved_tasks : typing.Optional[bool]
+ | Searched field | Description |
+ |---|---|
+ | `workflow_run_id` | The unique run identifier (e.g. `wr_123…`) |
+ | Parameter **key** | The `key` of any workflow parameter definition associated with the run |
+ | Parameter **description** | The `description` of any workflow parameter definition |
+ | Run parameter **value** | The actual value supplied for any parameter when the run was created |
+ | `extra_http_headers` | Extra HTTP headers attached to the run (searched as raw JSON text) |
- only_workflows : typing.Optional[bool]
+ Soft-deleted parameter definitions are excluded from key/description matching. A run is returned if **any** of the fields above contain the search term.
- only_templates : typing.Optional[bool]
+ ### error_code
- search_key : typing.Optional[str]
- Case-insensitive substring search across: workflow title, folder name, and parameter metadata (key, description, default_value). A workflow is returned if any of these fields match. Soft-deleted parameter definitions are excluded. Takes precedence over the deprecated `title` parameter.
+ An **exact-match** filter against the `error_code` field inside each task's `errors` JSON array. A run matches if **any** of its tasks contains an error object with a matching `error_code` value. Error codes are user-defined strings set during workflow execution (e.g. `INVALID_CREDENTIALS`, `LOGIN_FAILED`, `CAPTCHA_DETECTED`).
- title : typing.Optional[str]
- Deprecated: use search_key instead. Falls back to title-only search if search_key is not provided.
+ ### Combining filters
- folder_id : typing.Optional[str]
- Filter workflows by folder ID
+ All query parameters use AND logic:
+ - `?status=failed` — only failed runs
+ - `?status=failed&error_code=LOGIN_FAILED` — failed runs **and** have a LOGIN_FAILED error
+ - `?status=failed&error_code=LOGIN_FAILED&search_key=prod_credential` — all three conditions must match
- status : typing.Optional[typing.Union[WorkflowStatus, typing.Sequence[WorkflowStatus]]]
+ Parameters
+ ----------
+ page : typing.Optional[int]
+ Page number for pagination.
- tags : typing.Optional[typing.Union[str, typing.Sequence[str]]]
- Filter by tags. Each term is a label (`production`), a group (`env:*`), or a group:label (`env:prod`). Repeat the param or comma-separate (`?tags=env:prod,env:staging`). AND across distinct terms, OR within a group's labels (`?tags=customer:acme,env:prod,env:staging` -> customer=acme AND env in (prod, staging)). A label term matches the value across any/no group. Matches current tag values only. Not supported with `template=true`.
+ page_size : typing.Optional[int]
+ Number of runs to return per page.
- template : typing.Optional[bool]
+ status : typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]]
+ Filter by one or more run statuses.
+
+ search_key : typing.Optional[str]
+ Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching.
+
+ error_code : typing.Optional[str]
+ Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[typing.List[Workflow]]
+ HttpResponse[typing.List[WorkflowRun]]
Successful Response
"""
- _response = await self._client_wrapper.httpx_client.request(
- "v1/agents",
+ _response = self._client_wrapper.httpx_client.request(
+ "v1/agents/runs",
method="GET",
params={
"page": page,
"page_size": page_size,
- "only_saved_tasks": only_saved_tasks,
- "only_workflows": only_workflows,
- "only_templates": only_templates,
- "search_key": search_key,
- "title": title,
- "folder_id": folder_id,
"status": status,
- "tags": tags,
- "template": template,
+ "search_key": search_key,
+ "error_code": error_code,
},
request_options=request_options,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- typing.List[Workflow],
+ typing.List[WorkflowRun],
parse_obj_as(
- type_=typing.List[Workflow], # type: ignore
+ type_=typing.List[WorkflowRun], # type: ignore
object_=_response.json(),
),
)
- return AsyncHttpResponse(response=_response, data=_data)
+ return HttpResponse(response=_response, data=_data)
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -6377,135 +4483,79 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def create_workflow(
+ def get_workflow_runs_by_id(
self,
+ workflow_id: str,
*,
- folder_id: typing.Optional[str] = None,
- json_definition: typing.Optional[WorkflowCreateYamlRequest] = OMIT,
- yaml_definition: typing.Optional[str] = OMIT,
+ page: typing.Optional[int] = None,
+ page_size: typing.Optional[int] = None,
+ status: typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]] = None,
+ search_key: typing.Optional[str] = None,
+ error_code: typing.Optional[str] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[Workflow]:
+ ) -> HttpResponse[typing.List[WorkflowRun]]:
"""
- Create a new agent
-
- Parameters
- ----------
- folder_id : typing.Optional[str]
- Optional folder ID to assign the workflow to
+ List runs for a specific workflow.
- json_definition : typing.Optional[WorkflowCreateYamlRequest]
- Workflow definition in JSON format
+ Supports filtering by **status**, **search_key**, and **error_code**. All filters are combined with **AND** logic.
- yaml_definition : typing.Optional[str]
- Workflow definition in YAML format
+ ### search_key
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
+ Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. Soft-deleted parameter definitions are excluded.
- Returns
- -------
- AsyncHttpResponse[Workflow]
- Successfully created agent
- """
- _response = await self._client_wrapper.httpx_client.request(
- "v1/agents",
- method="POST",
- params={
- "folder_id": folder_id,
- },
- json={
- "json_definition": convert_and_respect_annotation_metadata(
- object_=json_definition, annotation=WorkflowCreateYamlRequest, direction="write"
- ),
- "yaml_definition": yaml_definition,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- Workflow,
- parse_obj_as(
- type_=Workflow, # type: ignore
- object_=_response.json(),
- ),
- )
- return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
+ ### error_code
- async def update_workflow(
- self,
- workflow_id: str,
- *,
- json_definition: typing.Optional[WorkflowCreateYamlRequest] = OMIT,
- yaml_definition: typing.Optional[str] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[Workflow]:
- """
- Update an agent
+ Exact-match filter on the `error_code` field inside each task's `errors` JSON array. A run matches if any of its tasks contains an error with a matching `error_code`.
Parameters
----------
workflow_id : str
- The ID of the agent to update. Starts with `wpid_`.
- json_definition : typing.Optional[WorkflowCreateYamlRequest]
- Workflow definition in JSON format
+ page : typing.Optional[int]
+ Page number for pagination.
- yaml_definition : typing.Optional[str]
- Workflow definition in YAML format
+ page_size : typing.Optional[int]
+ Number of runs to return per page.
+
+ status : typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]]
+ Filter by one or more run statuses.
+
+ search_key : typing.Optional[str]
+ Case-insensitive substring search across: workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers. A run is returned if any of these fields match. Soft-deleted parameter definitions are excluded from key/description matching.
+
+ error_code : typing.Optional[str]
+ Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[Workflow]
- Successfully updated agent
+ HttpResponse[typing.List[WorkflowRun]]
+ Successful Response
"""
- _response = await self._client_wrapper.httpx_client.request(
- f"v1/agents/{jsonable_encoder(workflow_id)}",
- method="POST",
- json={
- "json_definition": convert_and_respect_annotation_metadata(
- object_=json_definition, annotation=WorkflowCreateYamlRequest, direction="write"
- ),
- "yaml_definition": yaml_definition,
- },
- headers={
- "content-type": "application/json",
+ _response = self._client_wrapper.httpx_client.request(
+ f"v1/agents/{jsonable_encoder(workflow_id)}/runs",
+ method="GET",
+ params={
+ "page": page,
+ "page_size": page_size,
+ "status": status,
+ "search_key": search_key,
+ "error_code": error_code,
},
request_options=request_options,
- omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- Workflow,
+ typing.List[WorkflowRun],
parse_obj_as(
- type_=Workflow, # type: ignore
+ type_=typing.List[WorkflowRun], # type: ignore
object_=_response.json(),
),
)
- return AsyncHttpResponse(response=_response, data=_data)
+ return HttpResponse(response=_response, data=_data)
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -6522,42 +4572,50 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def delete_workflow(
- self, workflow_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[typing.Optional[typing.Any]]:
+ def get_workflow(
+ self,
+ workflow_permanent_id: str,
+ *,
+ version: typing.Optional[int] = None,
+ template: typing.Optional[bool] = None,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> HttpResponse[Workflow]:
"""
- Delete an agent
-
Parameters
----------
- workflow_id : str
- The ID of the agent to delete. Starts with `wpid_`.
+ workflow_permanent_id : str
+
+ version : typing.Optional[int]
+
+ template : typing.Optional[bool]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[typing.Optional[typing.Any]]
- Successfully deleted agent
+ HttpResponse[Workflow]
+ Successful Response
"""
- _response = await self._client_wrapper.httpx_client.request(
- f"v1/agents/{jsonable_encoder(workflow_id)}/delete",
- method="POST",
+ _response = self._client_wrapper.httpx_client.request(
+ f"v1/agents/{jsonable_encoder(workflow_permanent_id)}",
+ method="GET",
+ params={
+ "version": version,
+ "template": template,
+ },
request_options=request_options,
)
try:
- if _response is None or not _response.text.strip():
- return AsyncHttpResponse(response=_response, data=None)
if 200 <= _response.status_code < 300:
_data = typing.cast(
- typing.Optional[typing.Any],
+ Workflow,
parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
+ type_=Workflow, # type: ignore
object_=_response.json(),
),
)
- return AsyncHttpResponse(response=_response, data=_data)
+ return HttpResponse(response=_response, data=_data)
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -6574,56 +4632,48 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def get_folders(
+ def get_workflow_versions(
self,
+ workflow_permanent_id: str,
*,
- page: typing.Optional[int] = None,
- page_size: typing.Optional[int] = None,
- search: typing.Optional[str] = None,
+ template: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[typing.List[Folder]]:
+ ) -> HttpResponse[typing.List[Workflow]]:
"""
- Get all folders for the organization
+ Get all versions of a workflow by its permanent ID.
Parameters
----------
- page : typing.Optional[int]
- Page number
-
- page_size : typing.Optional[int]
- Number of folders per page
+ workflow_permanent_id : str
- search : typing.Optional[str]
- Search folders by title or description
+ template : typing.Optional[bool]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[typing.List[Folder]]
- Successfully retrieved folders
+ HttpResponse[typing.List[Workflow]]
+ Successful Response
"""
- _response = await self._client_wrapper.httpx_client.request(
- "v1/folders",
+ _response = self._client_wrapper.httpx_client.request(
+ f"v1/agents/{jsonable_encoder(workflow_permanent_id)}/versions",
method="GET",
params={
- "page": page,
- "page_size": page_size,
- "search": search,
+ "template": template,
},
request_options=request_options,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- typing.List[Folder],
+ typing.List[Workflow],
parse_obj_as(
- type_=typing.List[Folder], # type: ignore
+ type_=typing.List[Workflow], # type: ignore
object_=_response.json(),
),
)
- return AsyncHttpResponse(response=_response, data=_data)
+ return HttpResponse(response=_response, data=_data)
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -6640,41 +4690,191 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def create_folder(
+
+class AsyncRawSkyvern:
+ def __init__(self, *, client_wrapper: AsyncClientWrapper):
+ self._client_wrapper = client_wrapper
+
+ async def run_task(
self,
*,
- title: str,
- description: typing.Optional[str] = OMIT,
+ prompt: str,
+ user_agent: typing.Optional[str] = None,
+ url: typing.Optional[str] = OMIT,
+ engine: typing.Optional[RunEngine] = OMIT,
+ title: typing.Optional[str] = OMIT,
+ proxy_location: typing.Optional[TaskRunRequestInputProxyLocation] = OMIT,
+ data_extraction_schema: typing.Optional[TaskRunRequestInputDataExtractionSchema] = OMIT,
+ error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ max_steps: typing.Optional[int] = OMIT,
+ webhook_url: typing.Optional[str] = OMIT,
+ totp_identifier: typing.Optional[str] = OMIT,
+ totp_url: typing.Optional[str] = OMIT,
+ browser_session_id: typing.Optional[str] = OMIT,
+ model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
+ extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ publish_workflow: typing.Optional[bool] = OMIT,
+ include_action_history_in_verification: typing.Optional[bool] = OMIT,
+ max_screenshot_scrolls: typing.Optional[int] = OMIT,
+ browser_address: typing.Optional[str] = OMIT,
+ run_with: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[Folder]:
+ ) -> AsyncHttpResponse[TaskRunResponse]:
"""
- Create a new folder to organize workflows
+ Run a task
Parameters
----------
- title : str
- Folder title
+ prompt : str
- description : typing.Optional[str]
- Folder description
+ The goal or task description for Skyvern to accomplish
+
+ user_agent : typing.Optional[str]
+
+ url : typing.Optional[str]
+
+ The starting URL for the task. If not provided, Skyvern will attempt to determine an appropriate URL
+
+ engine : typing.Optional[RunEngine]
+
+ The engine that powers the agent task. The default value is `skyvern-1.0`, which is good for simple tasks like filling a form, or searching for information on Google. `skyvern-2.0` remains available for existing V2 workflows and explicitly requested V2 task runs. The `openai-cua` engine uses OpenAI's CUA model. The `anthropic-cua` uses Anthropic's Claude Sonnet 3.7 model with the computer use tool.
+
+ title : typing.Optional[str]
+ The title for the task
+
+ proxy_location : typing.Optional[TaskRunRequestInputProxyLocation]
+
+ Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
+
+ Available geotargeting options:
+ - RESIDENTIAL: the default value. Skyvern Cloud uses a random US residential proxy.
+ - RESIDENTIAL_ES: Spain
+ - RESIDENTIAL_IE: Ireland
+ - RESIDENTIAL_GB: United Kingdom
+ - RESIDENTIAL_IN: India
+ - RESIDENTIAL_JP: Japan
+ - RESIDENTIAL_FR: France
+ - RESIDENTIAL_DE: Germany
+ - RESIDENTIAL_NZ: New Zealand
+ - RESIDENTIAL_PH: Philippines
+ - RESIDENTIAL_KR: South Korea
+ - RESIDENTIAL_SA: Saudi Arabia
+ - RESIDENTIAL_ZA: South Africa
+ - RESIDENTIAL_AR: Argentina
+ - RESIDENTIAL_AU: Australia
+ - RESIDENTIAL_BR: Brazil
+ - RESIDENTIAL_TR: Turkey
+ - RESIDENTIAL_CA: Canada
+ - RESIDENTIAL_MX: Mexico
+ - RESIDENTIAL_IT: Italy
+ - RESIDENTIAL_NL: Netherlands
+ - RESIDENTIAL_ISP: ISP proxy
+ - US-CA: California (deprecated, routes through RESIDENTIAL_ISP)
+ - US-NY: New York (deprecated, routes through RESIDENTIAL_ISP)
+ - US-TX: Texas (deprecated, routes through RESIDENTIAL_ISP)
+ - US-FL: Florida (deprecated, routes through RESIDENTIAL_ISP)
+ - US-WA: Washington (deprecated, routes through RESIDENTIAL_ISP)
+ - NONE: No proxy
+
+ For self-hosted deployments, you can pass a custom proxy URL as a dict: {"url": "http://user:[email protected]:8080"}. This routes the browser through your own proxy server and takes precedence over any globally configured proxy pool.
+ Can also be a GeoTarget object for granular city/state targeting: {"country": "US", "subdivision": "CA", "city": "San Francisco"}
+
+ data_extraction_schema : typing.Optional[TaskRunRequestInputDataExtractionSchema]
+
+ The schema for data to be extracted from the webpage. If you're looking for consistent data schema being returned by the agent, it's highly recommended to use https://json-schema.org/.
+
+ error_code_mapping : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+
+ Custom mapping of error codes to error messages if Skyvern encounters an error.
+
+ max_steps : typing.Optional[int]
+
+ Maximum number of steps the task can take. Task will fail if it exceeds this number. Cautions: you are charged per step so please set this number to a reasonable value. Contact [email protected] for custom pricing.
+
+ webhook_url : typing.Optional[str]
+
+ After a run is finished, send an update to this URL. Refer to https://www.skyvern.com/docs/running-tasks/webhooks-faq for more details.
+
+ totp_identifier : typing.Optional[str]
+
+ Identifier for the TOTP/2FA/MFA code when the code is pushed to Skyvern. Refer to https://www.skyvern.com/docs/credentials/totp#option-3-push-code-to-skyvern for more details.
+
+ totp_url : typing.Optional[str]
+
+ URL that serves TOTP/2FA/MFA codes for Skyvern to use during the workflow run. Refer to https://www.skyvern.com/docs/credentials/totp#option-2-get-code-from-your-endpoint for more details.
+
+ browser_session_id : typing.Optional[str]
+
+ Run the task or workflow in the specific Skyvern browser session. Having a browser session can persist the real-time state of the browser, so that the next run can continue from where the previous run left off.
+
+ model : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
+
+ Optional model configuration.
+
+ extra_http_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ The extra HTTP headers for the requests in browser.
+
+ cdp_connect_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ HTTP headers attached ONLY to the CDP WebSocket handshake when connecting to a remote browser via browser_address. Use this for browser-provider auth (e.g., x-api-key for Skyvern Cloud, Browserless, or similar). These headers are NEVER forwarded to target websites.
+
+ publish_workflow : typing.Optional[bool]
+ Deprecated. Whether to publish a `skyvern-2.0` task as a reusable workflow. For backwards compatibility, this routes the request through the legacy `skyvern-2.0` publish path. Prefer creating reusable workflows through the workflow APIs.
+
+ include_action_history_in_verification : typing.Optional[bool]
+ Whether to include action history when verifying that the task is complete
+
+ max_screenshot_scrolls : typing.Optional[int]
+ The maximum number of scrolls for the post action screenshot. When it's None or 0, it takes the current viewpoint screenshot.
+
+ browser_address : typing.Optional[str]
+ The CDP address for the task.
+
+ run_with : typing.Optional[str]
+ Whether to run the task with agent or code. Null means use the default.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[Folder]
- Successfully created folder
+ AsyncHttpResponse[TaskRunResponse]
+ Successfully run task
"""
_response = await self._client_wrapper.httpx_client.request(
- "v1/folders",
+ "v1/run/tasks",
method="POST",
json={
+ "prompt": prompt,
+ "url": url,
+ "engine": engine,
"title": title,
- "description": description,
+ "proxy_location": convert_and_respect_annotation_metadata(
+ object_=proxy_location, annotation=TaskRunRequestInputProxyLocation, direction="write"
+ ),
+ "data_extraction_schema": convert_and_respect_annotation_metadata(
+ object_=data_extraction_schema,
+ annotation=TaskRunRequestInputDataExtractionSchema,
+ direction="write",
+ ),
+ "error_code_mapping": error_code_mapping,
+ "max_steps": max_steps,
+ "webhook_url": webhook_url,
+ "totp_identifier": totp_identifier,
+ "totp_url": totp_url,
+ "browser_session_id": browser_session_id,
+ "model": model,
+ "extra_http_headers": extra_http_headers,
+ "cdp_connect_headers": cdp_connect_headers,
+ "publish_workflow": publish_workflow,
+ "include_action_history_in_verification": include_action_history_in_verification,
+ "max_screenshot_scrolls": max_screenshot_scrolls,
+ "browser_address": browser_address,
+ "run_with": run_with,
},
headers={
"content-type": "application/json",
+ "x-user-agent": str(user_agent) if user_agent is not None else None,
},
request_options=request_options,
omit=OMIT,
@@ -6682,9 +4882,9 @@ class AsyncRawSkyvern:
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- Folder,
+ TaskRunResponse,
parse_obj_as(
- type_=Folder, # type: ignore
+ type_=TaskRunResponse, # type: ignore
object_=_response.json(),
),
)
@@ -6716,42 +4916,184 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def get_folder(
- self, folder_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[Folder]:
+ async def run_workflow(
+ self,
+ *,
+ agent_id: str,
+ template: typing.Optional[bool] = None,
+ max_steps_override: typing.Optional[int] = None,
+ user_agent: typing.Optional[str] = None,
+ parameters: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
+ title: typing.Optional[str] = OMIT,
+ proxy_location: typing.Optional[WorkflowRunRequestInputProxyLocation] = OMIT,
+ webhook_url: typing.Optional[str] = OMIT,
+ totp_url: typing.Optional[str] = OMIT,
+ totp_identifier: typing.Optional[str] = OMIT,
+ browser_session_id: typing.Optional[str] = OMIT,
+ browser_profile_id: typing.Optional[str] = OMIT,
+ max_screenshot_scrolls: typing.Optional[int] = OMIT,
+ max_elapsed_time_minutes: typing.Optional[int] = OMIT,
+ extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ browser_address: typing.Optional[str] = OMIT,
+ ai_fallback: typing.Optional[bool] = OMIT,
+ run_with: typing.Optional[str] = OMIT,
+ run_metadata: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> AsyncHttpResponse[WorkflowRunResponse]:
"""
- Get a specific folder by ID
+ Run an agent
Parameters
----------
- folder_id : str
- Folder ID
+ agent_id : str
+ ID of the agent to run. Starts with `wpid_`. `workflow_id` is accepted as an alias.
+
+ template : typing.Optional[bool]
+
+ max_steps_override : typing.Optional[int]
+
+ user_agent : typing.Optional[str]
+
+ parameters : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
+ Parameters to pass to the workflow
+
+ title : typing.Optional[str]
+ The title for this workflow run
+
+ proxy_location : typing.Optional[WorkflowRunRequestInputProxyLocation]
+
+ Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
+
+ Available geotargeting options:
+ - RESIDENTIAL: the default value. Skyvern Cloud uses a random US residential proxy.
+ - RESIDENTIAL_ES: Spain
+ - RESIDENTIAL_IE: Ireland
+ - RESIDENTIAL_GB: United Kingdom
+ - RESIDENTIAL_IN: India
+ - RESIDENTIAL_JP: Japan
+ - RESIDENTIAL_FR: France
+ - RESIDENTIAL_DE: Germany
+ - RESIDENTIAL_NZ: New Zealand
+ - RESIDENTIAL_PH: Philippines
+ - RESIDENTIAL_KR: South Korea
+ - RESIDENTIAL_SA: Saudi Arabia
+ - RESIDENTIAL_ZA: South Africa
+ - RESIDENTIAL_AR: Argentina
+ - RESIDENTIAL_AU: Australia
+ - RESIDENTIAL_BR: Brazil
+ - RESIDENTIAL_TR: Turkey
+ - RESIDENTIAL_CA: Canada
+ - RESIDENTIAL_MX: Mexico
+ - RESIDENTIAL_IT: Italy
+ - RESIDENTIAL_NL: Netherlands
+ - RESIDENTIAL_ISP: ISP proxy
+ - US-CA: California (deprecated, routes through RESIDENTIAL_ISP)
+ - US-NY: New York (deprecated, routes through RESIDENTIAL_ISP)
+ - US-TX: Texas (deprecated, routes through RESIDENTIAL_ISP)
+ - US-FL: Florida (deprecated, routes through RESIDENTIAL_ISP)
+ - US-WA: Washington (deprecated, routes through RESIDENTIAL_ISP)
+ - NONE: No proxy
+
+ For self-hosted deployments, you can pass a custom proxy URL as a dict: {"url": "http://user:[email protected]:8080"}. This routes the browser through your own proxy server and takes precedence over any globally configured proxy pool.
+ Can also be a GeoTarget object for granular city/state targeting: {"country": "US", "subdivision": "CA", "city": "San Francisco"}
+
+ webhook_url : typing.Optional[str]
+ URL to send workflow status updates to after a run is finished. Refer to https://www.skyvern.com/docs/running-tasks/webhooks-faq for webhook questions.
+
+ totp_url : typing.Optional[str]
+
+ URL that serves TOTP/2FA/MFA codes for Skyvern to use during the workflow run. Refer to https://www.skyvern.com/docs/credentials/totp#option-2-get-code-from-your-endpoint for more details.
+
+ totp_identifier : typing.Optional[str]
+
+ Identifier for the TOTP/2FA/MFA code when the code is pushed to Skyvern. Refer to https://www.skyvern.com/docs/credentials/totp#option-3-push-code-to-skyvern for more details.
+
+ browser_session_id : typing.Optional[str]
+ ID of a Skyvern browser session to reuse, having it continue from the current screen state
+
+ browser_profile_id : typing.Optional[str]
+ ID of a browser profile to reuse for this workflow run
+
+ max_screenshot_scrolls : typing.Optional[int]
+ The maximum number of scrolls for the post action screenshot. When it's None or 0, it takes the current viewpoint screenshot.
+
+ max_elapsed_time_minutes : typing.Optional[int]
+ Timeout this workflow run after the configured elapsed runtime in minutes. When omitted, the platform default is 240 minutes. The maximum configurable value is 480 minutes.
+
+ extra_http_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ The extra HTTP headers for the requests in browser.
+
+ cdp_connect_headers : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ HTTP headers attached ONLY to the CDP WebSocket handshake when connecting to a remote browser via browser_address. Use this for browser-provider auth (e.g., x-api-key for Skyvern Cloud, Browserless, or similar). These headers are NEVER forwarded to target websites.
+
+ browser_address : typing.Optional[str]
+ The CDP address for the workflow run.
+
+ ai_fallback : typing.Optional[bool]
+ Whether to fallback to AI if the workflow run fails.
+
+ run_with : typing.Optional[str]
+ Whether to run the workflow with agent or code. Null inherits from the workflow setting.
+
+ run_metadata : typing.Optional[typing.Dict[str, typing.Optional[str]]]
+ String key/value metadata to attach to this workflow run for analytics tag filtering.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[Folder]
- Successfully retrieved folder
+ AsyncHttpResponse[WorkflowRunResponse]
+ Successfully ran agent
"""
_response = await self._client_wrapper.httpx_client.request(
- f"v1/folders/{jsonable_encoder(folder_id)}",
- method="GET",
+ "v1/run/agents",
+ method="POST",
+ params={
+ "template": template,
+ },
+ json={
+ "agent_id": agent_id,
+ "parameters": parameters,
+ "title": title,
+ "proxy_location": convert_and_respect_annotation_metadata(
+ object_=proxy_location, annotation=WorkflowRunRequestInputProxyLocation, direction="write"
+ ),
+ "webhook_url": webhook_url,
+ "totp_url": totp_url,
+ "totp_identifier": totp_identifier,
+ "browser_session_id": browser_session_id,
+ "browser_profile_id": browser_profile_id,
+ "max_screenshot_scrolls": max_screenshot_scrolls,
+ "max_elapsed_time_minutes": max_elapsed_time_minutes,
+ "extra_http_headers": extra_http_headers,
+ "cdp_connect_headers": cdp_connect_headers,
+ "browser_address": browser_address,
+ "ai_fallback": ai_fallback,
+ "run_with": run_with,
+ "run_metadata": run_metadata,
+ },
+ headers={
+ "content-type": "application/json",
+ "x-max-steps-override": str(max_steps_override) if max_steps_override is not None else None,
+ "x-user-agent": str(user_agent) if user_agent is not None else None,
+ },
request_options=request_options,
+ omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- Folder,
+ WorkflowRunResponse,
parse_obj_as(
- type_=Folder, # type: ignore
+ type_=WorkflowRunResponse, # type: ignore
object_=_response.json(),
),
)
return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
+ if _response.status_code == 400:
+ raise BadRequestError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -6777,55 +5119,36 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def update_folder(
- self,
- folder_id: str,
- *,
- title: typing.Optional[str] = OMIT,
- description: typing.Optional[str] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[Folder]:
+ async def get_run(
+ self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> AsyncHttpResponse[GetRunResponse]:
"""
- Update a folder's title or description
+ Get run information (task run, workflow run)
Parameters
----------
- folder_id : str
- Folder ID
-
- title : typing.Optional[str]
- Folder title
-
- description : typing.Optional[str]
- Folder description
+ run_id : str
+ The id of the task run or the workflow run.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[Folder]
- Successfully updated folder
+ AsyncHttpResponse[GetRunResponse]
+ Successfully got run
"""
_response = await self._client_wrapper.httpx_client.request(
- f"v1/folders/{jsonable_encoder(folder_id)}",
- method="PUT",
- json={
- "title": title,
- "description": description,
- },
- headers={
- "content-type": "application/json",
- },
+ f"v1/runs/{jsonable_encoder(run_id)}",
+ method="GET",
request_options=request_options,
- omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- Folder,
+ GetRunResponse,
parse_obj_as(
- type_=Folder, # type: ignore
+ type_=GetRunResponse, # type: ignore
object_=_response.json(),
),
)
@@ -6857,61 +5180,42 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def delete_folder(
- self,
- folder_id: str,
- *,
- delete_workflows: typing.Optional[bool] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]:
+ async def cancel_run(
+ self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> AsyncHttpResponse[typing.Optional[typing.Any]]:
"""
- Delete a folder. Optionally delete all workflows in the folder.
+ Cancel a run (task or workflow)
Parameters
----------
- folder_id : str
- Folder ID
-
- delete_workflows : typing.Optional[bool]
- If true, also delete all workflows in this folder
+ run_id : str
+ The id of the task run or the workflow run to cancel.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]
- Successfully deleted folder
+ AsyncHttpResponse[typing.Optional[typing.Any]]
+ Successful Response
"""
_response = await self._client_wrapper.httpx_client.request(
- f"v1/folders/{jsonable_encoder(folder_id)}",
- method="DELETE",
- params={
- "delete_workflows": delete_workflows,
- },
+ f"v1/runs/{jsonable_encoder(run_id)}/cancel",
+ method="POST",
request_options=request_options,
)
try:
+ if _response is None or not _response.text.strip():
+ return AsyncHttpResponse(response=_response, data=None)
if 200 <= _response.status_code < 300:
_data = typing.cast(
- typing.Dict[str, typing.Optional[typing.Any]],
+ typing.Optional[typing.Any],
parse_obj_as(
- type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
+ type_=typing.Optional[typing.Any], # type: ignore
object_=_response.json(),
),
)
return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -6928,51 +5232,47 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def get_run_tags(
- self, workflow_run_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[RunTagsResponse]:
+ async def bulk_cancel_runs(
+ self, *, run_ids: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None
+ ) -> AsyncHttpResponse[BulkCancelRunsResponse]:
"""
- Get the current tag state for a workflow run.
+ Cancel multiple runs (tasks or workflows) in a single request
Parameters
----------
- workflow_run_id : str
- Workflow run ID
+ run_ids : typing.Sequence[str]
+ List of run IDs to cancel
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[RunTagsResponse]
- Successfully retrieved tags
+ AsyncHttpResponse[BulkCancelRunsResponse]
+ Successful Response
"""
_response = await self._client_wrapper.httpx_client.request(
- f"v1/runs/{jsonable_encoder(workflow_run_id)}/tags",
- method="GET",
+ "v1/runs/cancel",
+ method="POST",
+ json={
+ "run_ids": run_ids,
+ },
+ headers={
+ "content-type": "application/json",
+ },
request_options=request_options,
+ omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- RunTagsResponse,
+ BulkCancelRunsResponse,
parse_obj_as(
- type_=RunTagsResponse, # type: ignore
+ type_=BulkCancelRunsResponse, # type: ignore
object_=_response.json(),
),
)
return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -6989,79 +5289,96 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def apply_run_tags(
+ async def get_workflows(
self,
- workflow_run_id: str,
*,
- tags: typing.Optional[typing.Sequence[TagInput]] = OMIT,
- tags_to_delete: typing.Optional[typing.Sequence[TagDeleteInput]] = OMIT,
- colors: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
+ page: typing.Optional[int] = None,
+ page_size: typing.Optional[int] = None,
+ only_saved_tasks: typing.Optional[bool] = None,
+ only_workflows: typing.Optional[bool] = None,
+ only_templates: typing.Optional[bool] = None,
+ search_key: typing.Optional[str] = None,
+ title: typing.Optional[str] = None,
+ folder_id: typing.Optional[str] = None,
+ status: typing.Optional[typing.Union[WorkflowStatus, typing.Sequence[WorkflowStatus]]] = None,
+ tags: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
+ template: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[RunTagsResponse]:
+ ) -> AsyncHttpResponse[typing.List[Workflow]]:
"""
- Atomically apply tag changes to a workflow run. Sets and deletes happen in one transaction; same-key collisions resolve set-wins.
+ Get all workflows with the latest version for the organization.
+
+ Search semantics:
+ - If `search_key` is provided, its value is used as a unified search term for
+ `workflows.title`, `folders.title`, and workflow parameter metadata (key, description, and default_value for
+ `WorkflowParameterModel`).
+ - Falls back to deprecated `title` (title-only search) if `search_key` is not provided.
+ - Parameter metadata search excludes soft-deleted parameter rows across all parameter tables.
Parameters
----------
- workflow_run_id : str
- Workflow run ID
+ page : typing.Optional[int]
- tags : typing.Optional[typing.Sequence[TagInput]]
- Tags to set (overwrite). List of {key?, value} objects.
+ page_size : typing.Optional[int]
- tags_to_delete : typing.Optional[typing.Sequence[TagDeleteInput]]
- Tags to soft-delete. List of {key?, value?} targets.
+ only_saved_tasks : typing.Optional[bool]
+
+ only_workflows : typing.Optional[bool]
+
+ only_templates : typing.Optional[bool]
+
+ search_key : typing.Optional[str]
+ Case-insensitive substring search across: workflow title, folder name, and parameter metadata (key, description, default_value). A workflow is returned if any of these fields match. Soft-deleted parameter definitions are excluded. Takes precedence over the deprecated `title` parameter.
+
+ title : typing.Optional[str]
+ Deprecated: use search_key instead. Falls back to title-only search if search_key is not provided.
+
+ folder_id : typing.Optional[str]
+ Filter workflows by folder ID
+
+ status : typing.Optional[typing.Union[WorkflowStatus, typing.Sequence[WorkflowStatus]]]
+
+ tags : typing.Optional[typing.Union[str, typing.Sequence[str]]]
+ Filter by tags. Each term is a label (`production`), a group (`env:*`), or a group:label (`env:prod`). Repeat the param or comma-separate (`?tags=env:prod,env:staging`). AND across distinct terms, OR within a group's labels (`?tags=customer:acme,env:prod,env:staging` -> customer=acme AND env in (prod, staging)). A label term matches the value across any/no group. Matches current tag values only. Not supported with `template=true`.
- colors : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- Optional map of grouped tag key to palette color name for the value being set. Keys absent from this map keep their existing color or receive a random palette color.
+ template : typing.Optional[bool]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[RunTagsResponse]
- Successfully applied tag changes
+ AsyncHttpResponse[typing.List[Workflow]]
+ Successful Response
"""
_response = await self._client_wrapper.httpx_client.request(
- f"v1/runs/{jsonable_encoder(workflow_run_id)}/tags",
- method="POST",
- json={
- "tags": convert_and_respect_annotation_metadata(
- object_=tags, annotation=typing.Sequence[TagInput], direction="write"
- ),
- "tags_to_delete": convert_and_respect_annotation_metadata(
- object_=tags_to_delete, annotation=typing.Sequence[TagDeleteInput], direction="write"
- ),
- "colors": colors,
- },
- headers={
- "content-type": "application/json",
+ "v1/agents",
+ method="GET",
+ params={
+ "page": page,
+ "page_size": page_size,
+ "only_saved_tasks": only_saved_tasks,
+ "only_workflows": only_workflows,
+ "only_templates": only_templates,
+ "search_key": search_key,
+ "title": title,
+ "folder_id": folder_id,
+ "status": status,
+ "tags": tags,
+ "template": template,
},
request_options=request_options,
- omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- RunTagsResponse,
+ typing.List[Workflow],
parse_obj_as(
- type_=RunTagsResponse, # type: ignore
+ type_=typing.List[Workflow], # type: ignore
object_=_response.json(),
),
)
return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -7078,54 +5395,64 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def delete_run_tag(
- self, workflow_run_id: str, key: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[RunTagsResponse]:
+ async def create_workflow(
+ self,
+ *,
+ folder_id: typing.Optional[str] = None,
+ json_definition: typing.Optional[WorkflowCreateYamlRequest] = OMIT,
+ yaml_definition: typing.Optional[str] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> AsyncHttpResponse[Workflow]:
"""
- Soft-delete a single grouped tag from a workflow run. Writes a DELETE event row.
+ Create a new agent
Parameters
----------
- workflow_run_id : str
- Workflow run ID
+ folder_id : typing.Optional[str]
+ Optional folder ID to assign the workflow to
- key : str
- Tag key to delete
+ json_definition : typing.Optional[WorkflowCreateYamlRequest]
+ Workflow definition in JSON format
+
+ yaml_definition : typing.Optional[str]
+ Workflow definition in YAML format
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[RunTagsResponse]
- Successfully deleted tag (or no-op if absent)
+ AsyncHttpResponse[Workflow]
+ Successfully created agent
"""
_response = await self._client_wrapper.httpx_client.request(
- f"v1/runs/{jsonable_encoder(workflow_run_id)}/tags/{jsonable_encoder(key)}",
- method="DELETE",
+ "v1/agents",
+ method="POST",
+ params={
+ "folder_id": folder_id,
+ },
+ json={
+ "json_definition": convert_and_respect_annotation_metadata(
+ object_=json_definition, annotation=WorkflowCreateYamlRequest, direction="write"
+ ),
+ "yaml_definition": yaml_definition,
+ },
+ headers={
+ "content-type": "application/json",
+ },
request_options=request_options,
+ omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- RunTagsResponse,
+ Workflow,
parse_obj_as(
- type_=RunTagsResponse, # type: ignore
+ type_=Workflow, # type: ignore
object_=_response.json(),
),
)
return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -7142,71 +5469,61 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def get_run_tag_history(
+ async def update_workflow(
self,
- workflow_run_id: str,
+ workflow_id: str,
*,
- limit: typing.Optional[int] = None,
- since: typing.Optional[dt.datetime] = None,
- key: typing.Optional[str] = None,
+ json_definition: typing.Optional[WorkflowCreateYamlRequest] = OMIT,
+ yaml_definition: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[RunTagHistoryResponse]:
+ ) -> AsyncHttpResponse[Workflow]:
"""
- Chronological tag-event log for a workflow run (newest first). Includes SET and DELETE events.
+ Update an agent
Parameters
----------
- workflow_run_id : str
- Workflow run ID
-
- limit : typing.Optional[int]
- Max events to return
+ workflow_id : str
+ The ID of the agent to update. Starts with `wpid_`.
- since : typing.Optional[dt.datetime]
- Only return events at or after this timestamp
+ json_definition : typing.Optional[WorkflowCreateYamlRequest]
+ Workflow definition in JSON format
- key : typing.Optional[str]
- Filter to events for a single tag key
+ yaml_definition : typing.Optional[str]
+ Workflow definition in YAML format
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[RunTagHistoryResponse]
- Successfully retrieved tag history
+ AsyncHttpResponse[Workflow]
+ Successfully updated agent
"""
_response = await self._client_wrapper.httpx_client.request(
- f"v1/runs/{jsonable_encoder(workflow_run_id)}/tags/history",
- method="GET",
- params={
- "limit": limit,
- "since": serialize_datetime(since) if since is not None else None,
- "key": key,
+ f"v1/agents/{jsonable_encoder(workflow_id)}",
+ method="POST",
+ json={
+ "json_definition": convert_and_respect_annotation_metadata(
+ object_=json_definition, annotation=WorkflowCreateYamlRequest, direction="write"
+ ),
+ "yaml_definition": yaml_definition,
+ },
+ headers={
+ "content-type": "application/json",
},
request_options=request_options,
+ omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- RunTagHistoryResponse,
+ Workflow,
parse_obj_as(
- type_=RunTagHistoryResponse, # type: ignore
+ type_=Workflow, # type: ignore
object_=_response.json(),
),
)
return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -7223,33 +5540,38 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def list_tag_keys(
- self, *, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[typing.List[TagKey]]:
+ async def delete_workflow(
+ self, workflow_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> AsyncHttpResponse[typing.Optional[typing.Any]]:
"""
- List all tag keys registered for the organization with their descriptions.
+ Delete an agent
Parameters
----------
+ workflow_id : str
+ The ID of the agent to delete. Starts with `wpid_`.
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[typing.List[TagKey]]
- Successfully retrieved tag keys
+ AsyncHttpResponse[typing.Optional[typing.Any]]
+ Successfully deleted agent
"""
_response = await self._client_wrapper.httpx_client.request(
- "v1/tag-keys",
- method="GET",
+ f"v1/agents/{jsonable_encoder(workflow_id)}/delete",
+ method="POST",
request_options=request_options,
)
try:
+ if _response is None or not _response.text.strip():
+ return AsyncHttpResponse(response=_response, data=None)
if 200 <= _response.status_code < 300:
_data = typing.cast(
- typing.List[TagKey],
+ typing.Optional[typing.Any],
parse_obj_as(
- type_=typing.List[TagKey], # type: ignore
+ type_=typing.Optional[typing.Any], # type: ignore
object_=_response.json(),
),
)
@@ -7270,51 +5592,56 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def delete_tag_key(
- self, key: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[TagKeyDeleteResponse]:
+ async def get_folders(
+ self,
+ *,
+ page: typing.Optional[int] = None,
+ page_size: typing.Optional[int] = None,
+ search: typing.Optional[str] = None,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> AsyncHttpResponse[typing.List[Folder]]:
"""
- Delete a tag key from the organization registry and remove that tag from every workflow that currently has it (cascade). Returns how many workflows the tag was removed from.
+ Get all folders for the organization
Parameters
----------
- key : str
- Tag key to delete
+ page : typing.Optional[int]
+ Page number
+
+ page_size : typing.Optional[int]
+ Number of folders per page
+
+ search : typing.Optional[str]
+ Search folders by title or description
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[TagKeyDeleteResponse]
- Successfully deleted tag key
+ AsyncHttpResponse[typing.List[Folder]]
+ Successfully retrieved folders
"""
_response = await self._client_wrapper.httpx_client.request(
- f"v1/tag-keys/{jsonable_encoder(key)}",
- method="DELETE",
+ "v1/folders",
+ method="GET",
+ params={
+ "page": page,
+ "page_size": page_size,
+ "search": search,
+ },
request_options=request_options,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- TagKeyDeleteResponse,
+ typing.List[Folder],
parse_obj_as(
- type_=TagKeyDeleteResponse, # type: ignore
+ type_=typing.List[Folder], # type: ignore
object_=_response.json(),
),
)
return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -7331,36 +5658,37 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def update_tag_key(
+ async def create_folder(
self,
- key: str,
*,
+ title: str,
description: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[TagKey]:
+ ) -> AsyncHttpResponse[Folder]:
"""
- Update the description for a tag key.
+ Create a new folder to organize workflows
Parameters
----------
- key : str
- Tag key to update
+ title : str
+ Folder title
description : typing.Optional[str]
- Free-form description (max 500 chars). Pass null to clear.
+ Folder description
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[TagKey]
- Successfully updated tag key
+ AsyncHttpResponse[Folder]
+ Successfully created folder
"""
_response = await self._client_wrapper.httpx_client.request(
- f"v1/tag-keys/{jsonable_encoder(key)}",
- method="PATCH",
+ "v1/folders",
+ method="POST",
json={
+ "title": title,
"description": description,
},
headers={
@@ -7372,15 +5700,15 @@ class AsyncRawSkyvern:
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- TagKey,
+ Folder,
parse_obj_as(
- type_=TagKey, # type: ignore
+ type_=Folder, # type: ignore
object_=_response.json(),
),
)
return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
+ if _response.status_code == 400:
+ raise BadRequestError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -7406,43 +5734,51 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def list_tag_values(
- self, *, key: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[typing.List[TagValue]]:
+ async def get_folder(
+ self, folder_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> AsyncHttpResponse[Folder]:
"""
- List the palette color and current workflow usage count for each grouped tag (key, value) for the organization. The frontend joins these onto tags by (key, value); workflow_count is the number of non-deleted workflows carrying the label and powers the per-label usage and delete blast-radius warnings.
+ Get a specific folder by ID
Parameters
----------
- key : typing.Optional[str]
- Filter to values for a single tag key
+ folder_id : str
+ Folder ID
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[typing.List[TagValue]]
- Successfully retrieved tag values
+ AsyncHttpResponse[Folder]
+ Successfully retrieved folder
"""
_response = await self._client_wrapper.httpx_client.request(
- "v1/tag-values",
+ f"v1/folders/{jsonable_encoder(folder_id)}",
method="GET",
- params={
- "key": key,
- },
request_options=request_options,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- typing.List[TagValue],
+ Folder,
parse_obj_as(
- type_=typing.List[TagValue], # type: ignore
+ type_=Folder, # type: ignore
object_=_response.json(),
),
)
return AsyncHttpResponse(response=_response, data=_data)
+ if _response.status_code == 404:
+ raise NotFoundError(
+ headers=dict(_response.headers),
+ body=typing.cast(
+ typing.Optional[typing.Any],
+ parse_obj_as(
+ type_=typing.Optional[typing.Any], # type: ignore
+ object_=_response.json(),
+ ),
+ ),
+ )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -7459,33 +5795,42 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def delete_tag_value(
- self, key: str, *, value: str, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[TagValueDeleteResponse]:
+ async def update_folder(
+ self,
+ folder_id: str,
+ *,
+ title: typing.Optional[str] = OMIT,
+ description: typing.Optional[str] = OMIT,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> AsyncHttpResponse[Folder]:
"""
- Soft-delete a grouped tag (key, value) and remove that label from every workflow carrying it (cascade). The value rides in the body so values containing '/' stay addressable. Returns how many workflows the label was removed from.
+ Update a folder's title or description
Parameters
----------
- key : str
- Tag key (group)
+ folder_id : str
+ Folder ID
+
+ title : typing.Optional[str]
+ Folder title
- value : str
- Tag value (label) under the key to soft-delete.
+ description : typing.Optional[str]
+ Folder description
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[TagValueDeleteResponse]
- Successfully deleted tag value
+ AsyncHttpResponse[Folder]
+ Successfully updated folder
"""
_response = await self._client_wrapper.httpx_client.request(
- f"v1/tag-values/{jsonable_encoder(key)}",
- method="DELETE",
+ f"v1/folders/{jsonable_encoder(folder_id)}",
+ method="PUT",
json={
- "value": value,
+ "title": title,
+ "description": description,
},
headers={
"content-type": "application/json",
@@ -7496,9 +5841,9 @@ class AsyncRawSkyvern:
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- TagValueDeleteResponse,
+ Folder,
parse_obj_as(
- type_=TagValueDeleteResponse, # type: ignore
+ type_=Folder, # type: ignore
object_=_response.json(),
),
)
@@ -7530,50 +5875,46 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def update_tag_value(
- self, key: str, *, value: str, color: str, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[TagValue]:
+ async def delete_folder(
+ self,
+ folder_id: str,
+ *,
+ delete_workflows: typing.Optional[bool] = None,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> AsyncHttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]:
"""
- Recolor a grouped tag (key, value). The value is supplied in the body so values containing '/' stay addressable. The new color must be a palette name.
+ Delete a folder. Optionally delete all workflows in the folder.
Parameters
----------
- key : str
- Tag key (group)
-
- value : str
- Tag value (label) under the key to recolor.
+ folder_id : str
+ Folder ID
- color : str
- Palette color name to assign to this (key, value).
+ delete_workflows : typing.Optional[bool]
+ If true, also delete all workflows in this folder
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[TagValue]
- Successfully recolored tag value
+ AsyncHttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]
+ Successfully deleted folder
"""
_response = await self._client_wrapper.httpx_client.request(
- f"v1/tag-values/{jsonable_encoder(key)}",
- method="PATCH",
- json={
- "value": value,
- "color": color,
- },
- headers={
- "content-type": "application/json",
+ f"v1/folders/{jsonable_encoder(folder_id)}",
+ method="DELETE",
+ params={
+ "delete_workflows": delete_workflows,
},
request_options=request_options,
- omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- TagValue,
+ typing.Dict[str, typing.Optional[typing.Any]],
parse_obj_as(
- type_=TagValue, # type: ignore
+ type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
object_=_response.json(),
),
)
@@ -7605,76 +5946,37 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def rename_tag_value(
- self, key: str, *, value: str, new_value: str, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[TagValueRenameResponse]:
+ async def list_tag_keys(
+ self, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> AsyncHttpResponse[typing.List[TagKey]]:
"""
- Rename a grouped tag (key, value) to (key, new_value). The cascade re-tags every workflow carrying the old label; the new label inherits the old color. Both values ride in the body so values containing '/' stay addressable. Rejects with 409 when the new value already exists for the key.
+ List all tag keys registered for the organization with their descriptions.
Parameters
----------
- key : str
- Tag key (group)
-
- value : str
- Current tag value (label) under the key to rename.
-
- new_value : str
- New tag value (label) to rename it to.
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[TagValueRenameResponse]
- Successfully renamed tag value
+ AsyncHttpResponse[typing.List[TagKey]]
+ Successfully retrieved tag keys
"""
_response = await self._client_wrapper.httpx_client.request(
- f"v1/tag-values/{jsonable_encoder(key)}/rename",
- method="PATCH",
- json={
- "value": value,
- "new_value": new_value,
- },
- headers={
- "content-type": "application/json",
- },
+ "v1/tag-keys",
+ method="GET",
request_options=request_options,
- omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- TagValueRenameResponse,
+ typing.List[TagKey],
parse_obj_as(
- type_=TagValueRenameResponse, # type: ignore
+ type_=typing.List[TagKey], # type: ignore
object_=_response.json(),
),
)
return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- if _response.status_code == 409:
- raise ConflictError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -7691,48 +5993,42 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def batch_get_workflow_tags(
- self,
- *,
- workflow_permanent_ids: typing.Optional[str] = None,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[WorkflowTagsBatchResponse]:
+ async def delete_tag_key(
+ self, key: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> AsyncHttpResponse[TagKeyDeleteResponse]:
"""
- Batch fetch current tags for many workflows. Avoids N+1 on the workflows-list page.
+ Delete a tag key from the organization registry and remove that tag from every workflow that currently has it (cascade). Returns how many workflows the tag was removed from.
Parameters
----------
- workflow_permanent_ids : typing.Optional[str]
- Comma-separated workflow permanent IDs
+ key : str
+ Tag key to delete
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[WorkflowTagsBatchResponse]
- Successfully retrieved tags
+ AsyncHttpResponse[TagKeyDeleteResponse]
+ Successfully deleted tag key
"""
_response = await self._client_wrapper.httpx_client.request(
- "v1/workflow-tags",
- method="GET",
- params={
- "workflow_permanent_ids": workflow_permanent_ids,
- },
+ f"v1/tag-keys/{jsonable_encoder(key)}",
+ method="DELETE",
request_options=request_options,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- WorkflowTagsBatchResponse,
+ TagKeyDeleteResponse,
parse_obj_as(
- type_=WorkflowTagsBatchResponse, # type: ignore
+ type_=TagKeyDeleteResponse, # type: ignore
object_=_response.json(),
),
)
return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 400:
- raise BadRequestError(
+ if _response.status_code == 404:
+ raise NotFoundError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -7758,33 +6054,37 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def batch_get_workflow_tags_post(
+ async def update_tag_key(
self,
+ key: str,
*,
- workflow_permanent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
+ description: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[WorkflowTagsBatchResponse]:
+ ) -> AsyncHttpResponse[TagKey]:
"""
- Batch fetch current tags for many workflows (POST variant for id lists exceeding URL length).
+ Update the description for a tag key.
Parameters
----------
- workflow_permanent_ids : typing.Optional[typing.Sequence[str]]
- Workflow permanent IDs to fetch tags for.
+ key : str
+ Tag key to update
+
+ description : typing.Optional[str]
+ Free-form description (max 500 chars). Pass null to clear.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[WorkflowTagsBatchResponse]
- Successfully retrieved tags
+ AsyncHttpResponse[TagKey]
+ Successfully updated tag key
"""
_response = await self._client_wrapper.httpx_client.request(
- "v1/workflow-tags",
- method="POST",
+ f"v1/tag-keys/{jsonable_encoder(key)}",
+ method="PATCH",
json={
- "workflow_permanent_ids": workflow_permanent_ids,
+ "description": description,
},
headers={
"content-type": "application/json",
@@ -7795,15 +6095,15 @@ class AsyncRawSkyvern:
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- WorkflowTagsBatchResponse,
+ TagKey,
parse_obj_as(
- type_=WorkflowTagsBatchResponse, # type: ignore
+ type_=TagKey, # type: ignore
object_=_response.json(),
),
)
return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 400:
- raise BadRequestError(
+ if _response.status_code == 404:
+ raise NotFoundError(
headers=dict(_response.headers),
body=typing.cast(
typing.Optional[typing.Any],
@@ -7829,39 +6129,42 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def batch_get_run_tags(
- self, *, workflow_run_ids: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[RunTagsBatchResponse]:
+ async def batch_get_workflow_tags(
+ self,
+ *,
+ workflow_permanent_ids: typing.Optional[str] = None,
+ request_options: typing.Optional[RequestOptions] = None,
+ ) -> AsyncHttpResponse[WorkflowTagsBatchResponse]:
"""
- Batch fetch current tags for many workflow runs. Avoids N+1 on run-list pages.
+ Batch fetch current tags for many workflows. Avoids N+1 on the workflows-list page.
Parameters
----------
- workflow_run_ids : typing.Optional[str]
- Comma-separated workflow run IDs
+ workflow_permanent_ids : typing.Optional[str]
+ Comma-separated workflow permanent IDs
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[RunTagsBatchResponse]
+ AsyncHttpResponse[WorkflowTagsBatchResponse]
Successfully retrieved tags
"""
_response = await self._client_wrapper.httpx_client.request(
- "v1/run-tags",
+ "v1/workflow-tags",
method="GET",
params={
- "workflow_run_ids": workflow_run_ids,
+ "workflow_permanent_ids": workflow_permanent_ids,
},
request_options=request_options,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- RunTagsBatchResponse,
+ WorkflowTagsBatchResponse,
parse_obj_as(
- type_=RunTagsBatchResponse, # type: ignore
+ type_=WorkflowTagsBatchResponse, # type: ignore
object_=_response.json(),
),
)
@@ -7893,33 +6196,33 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def batch_get_run_tags_post(
+ async def batch_get_workflow_tags_post(
self,
*,
- workflow_run_ids: typing.Optional[typing.Sequence[str]] = OMIT,
+ workflow_permanent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[RunTagsBatchResponse]:
+ ) -> AsyncHttpResponse[WorkflowTagsBatchResponse]:
"""
- Batch fetch current tags for many workflow runs (POST variant for id lists exceeding URL length).
+ Batch fetch current tags for many workflows (POST variant for id lists exceeding URL length).
Parameters
----------
- workflow_run_ids : typing.Optional[typing.Sequence[str]]
- Workflow run IDs to fetch tags for.
+ workflow_permanent_ids : typing.Optional[typing.Sequence[str]]
+ Workflow permanent IDs to fetch tags for.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[RunTagsBatchResponse]
+ AsyncHttpResponse[WorkflowTagsBatchResponse]
Successfully retrieved tags
"""
_response = await self._client_wrapper.httpx_client.request(
- "v1/run-tags",
+ "v1/workflow-tags",
method="POST",
json={
- "workflow_run_ids": workflow_run_ids,
+ "workflow_permanent_ids": workflow_permanent_ids,
},
headers={
"content-type": "application/json",
@@ -7930,9 +6233,9 @@ class AsyncRawSkyvern:
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- RunTagsBatchResponse,
+ WorkflowTagsBatchResponse,
parse_obj_as(
- type_=RunTagsBatchResponse, # type: ignore
+ type_=WorkflowTagsBatchResponse, # type: ignore
object_=_response.json(),
),
)
@@ -8201,7 +6504,6 @@ class AsyncRawSkyvern:
page_size: typing.Optional[int] = None,
status: typing.Optional[typing.Union[RunStatus, typing.Sequence[RunStatus]]] = None,
search_key: typing.Optional[str] = None,
- run_type: typing.Optional[typing.Union[RunType, typing.Sequence[RunType]]] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[typing.List[TaskRunListItem]]:
"""
@@ -8216,8 +6518,6 @@ class AsyncRawSkyvern:
search_key : typing.Optional[str]
Case-insensitive substring search (min 3 chars for trigram index).
- run_type : typing.Optional[typing.Union[RunType, typing.Sequence[RunType]]]
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -8234,7 +6534,6 @@ class AsyncRawSkyvern:
"page_size": page_size,
"status": status,
"search_key": search_key,
- "run_type": run_type,
},
request_options=request_options,
)
@@ -8324,7 +6623,6 @@ class AsyncRawSkyvern:
page_size: typing.Optional[int] = None,
include_deleted: typing.Optional[bool] = None,
search_key: typing.Optional[str] = None,
- managed: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[typing.List[BrowserProfile]]:
"""
@@ -8342,9 +6640,6 @@ class AsyncRawSkyvern:
search_key : typing.Optional[str]
Case-insensitive substring search across: browser profile name and description. A profile is returned if either field matches.
- managed : typing.Optional[bool]
- Omit to return all profiles; false returns only user-created profiles; true returns only auto-managed profiles.
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -8361,7 +6656,6 @@ class AsyncRawSkyvern:
"page_size": page_size,
"include_deleted": include_deleted,
"search_key": search_key,
- "managed": managed,
},
request_options=request_options,
)
@@ -8785,7 +7079,6 @@ class AsyncRawSkyvern:
*,
timeout: typing.Optional[int] = OMIT,
proxy_location: typing.Optional[CreateBrowserSessionRequestProxyLocation] = OMIT,
- proxy_session_id: typing.Optional[str] = OMIT,
extensions: typing.Optional[typing.Sequence[Extensions]] = OMIT,
browser_type: typing.Optional[PersistentBrowserType] = OMIT,
browser_profile_id: typing.Optional[str] = OMIT,
@@ -8837,9 +7130,6 @@ class AsyncRawSkyvern:
For self-hosted deployments, you can pass a custom proxy URL as a dict: {"url": "http://user:[email protected]:8080"}. This routes the browser through your own proxy server and takes precedence over any globally configured proxy pool.
Can also be a GeoTarget object for granular city/state targeting: {"country": "US", "subdivision": "CA", "city": "San Francisco"}, or a custom proxy URL dict for self-hosted deployments: {"url": "http://user:[email protected]:8080"}
- proxy_session_id : typing.Optional[str]
- Opaque Skyvern-managed proxy sticky-session id for pinned Residential ISP sessions.
-
extensions : typing.Optional[typing.Sequence[Extensions]]
A list of extensions to install in the browser session.
@@ -8868,7 +7158,6 @@ class AsyncRawSkyvern:
"proxy_location": convert_and_respect_annotation_metadata(
object_=proxy_location, annotation=CreateBrowserSessionRequestProxyLocation, direction="write"
),
- "proxy_session_id": proxy_session_id,
"extensions": extensions,
"browser_type": browser_type,
"browser_profile_id": browser_profile_id,
@@ -8975,17 +7264,6 @@ class AsyncRawSkyvern:
),
),
)
- if _response.status_code == 404:
- raise NotFoundError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
if _response.status_code == 422:
raise UnprocessableEntityError(
headers=dict(_response.headers),
@@ -9626,222 +7904,6 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
- async def list_custom_llms(
- self, *, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[CustomLlmListResponse]:
- """
- List the custom LLM configurations available to the current organization.
-
- Parameters
- ----------
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- AsyncHttpResponse[CustomLlmListResponse]
- Successful Response
- """
- _response = await self._client_wrapper.httpx_client.request(
- "v1/custom-llms",
- method="GET",
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- CustomLlmListResponse,
- parse_obj_as(
- type_=CustomLlmListResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- async def create_custom_llm(
- self, *, config: CustomLlmConfig, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[CustomLlmResponse]:
- """
- Create a custom LLM configuration for the current organization.
-
- Parameters
- ----------
- config : CustomLlmConfig
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- AsyncHttpResponse[CustomLlmResponse]
- Successful Response
- """
- _response = await self._client_wrapper.httpx_client.request(
- "v1/custom-llms",
- method="POST",
- json={
- "config": convert_and_respect_annotation_metadata(
- object_=config, annotation=CustomLlmConfig, direction="write"
- ),
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- CustomLlmResponse,
- parse_obj_as(
- type_=CustomLlmResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- async def update_custom_llm(
- self, custom_llm_id: str, *, config: CustomLlmConfig, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[CustomLlmResponse]:
- """
- Update a custom LLM configuration for the current organization.
-
- Parameters
- ----------
- custom_llm_id : str
- The custom LLM id.
-
- config : CustomLlmConfig
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- AsyncHttpResponse[CustomLlmResponse]
- Successful Response
- """
- _response = await self._client_wrapper.httpx_client.request(
- f"v1/custom-llms/{jsonable_encoder(custom_llm_id)}",
- method="PUT",
- json={
- "config": convert_and_respect_annotation_metadata(
- object_=config, annotation=CustomLlmConfig, direction="write"
- ),
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- CustomLlmResponse,
- parse_obj_as(
- type_=CustomLlmResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
- async def delete_custom_llm(
- self, custom_llm_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[ClearOrganizationAuthTokenResponse]:
- """
- Delete a custom LLM configuration for the current organization.
-
- Parameters
- ----------
- custom_llm_id : str
- The custom LLM id.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- AsyncHttpResponse[ClearOrganizationAuthTokenResponse]
- Successful Response
- """
- _response = await self._client_wrapper.httpx_client.request(
- f"v1/custom-llms/{jsonable_encoder(custom_llm_id)}",
- method="DELETE",
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- ClearOrganizationAuthTokenResponse,
- parse_obj_as(
- type_=ClearOrganizationAuthTokenResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return AsyncHttpResponse(response=_response, data=_data)
- if _response.status_code == 422:
- raise UnprocessableEntityError(
- headers=dict(_response.headers),
- body=typing.cast(
- typing.Optional[typing.Any],
- parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
- object_=_response.json(),
- ),
- ),
- )
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
- raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
-
async def login(
self,
*,
@@ -10629,7 +8691,6 @@ class AsyncRawSkyvern:
*,
tags: typing.Optional[typing.Sequence[TagInput]] = OMIT,
tags_to_delete: typing.Optional[typing.Sequence[TagDeleteInput]] = OMIT,
- colors: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[TagsResponse]:
"""
@@ -10646,9 +8707,6 @@ class AsyncRawSkyvern:
tags_to_delete : typing.Optional[typing.Sequence[TagDeleteInput]]
Tags to soft-delete. List of {key?, value?} targets.
- colors : typing.Optional[typing.Dict[str, typing.Optional[str]]]
- Optional map of grouped tag key to palette color name for the value being set. Keys absent from this map keep their existing color or receive a random palette color.
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -10667,7 +8725,6 @@ class AsyncRawSkyvern:
"tags_to_delete": convert_and_respect_annotation_metadata(
object_=tags_to_delete, annotation=typing.Sequence[TagDeleteInput], direction="write"
),
- "colors": colors,
},
headers={
"content-type": "application/json",
@@ -11054,8 +9111,6 @@ class AsyncRawSkyvern:
status: typing.Optional[typing.Union[WorkflowRunStatus, typing.Sequence[WorkflowRunStatus]]] = None,
search_key: typing.Optional[str] = None,
error_code: typing.Optional[str] = None,
- created_at_start: typing.Optional[dt.datetime] = None,
- created_at_end: typing.Optional[dt.datetime] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[typing.List[WorkflowRun]]:
"""
@@ -11090,12 +9145,6 @@ class AsyncRawSkyvern:
error_code : typing.Optional[str]
Exact-match filter on the error_code field inside each task's errors JSON array. A run matches if any of its tasks contains an error with a matching error_code. Error codes are user-defined strings set during workflow execution.
- created_at_start : typing.Optional[dt.datetime]
- Only include runs created at or after this UTC timestamp (ISO 8601).
-
- created_at_end : typing.Optional[dt.datetime]
- Only include runs created strictly before this UTC timestamp (ISO 8601).
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -11113,8 +9162,6 @@ class AsyncRawSkyvern:
"status": status,
"search_key": search_key,
"error_code": error_code,
- "created_at_start": serialize_datetime(created_at_start) if created_at_start is not None else None,
- "created_at_end": serialize_datetime(created_at_end) if created_at_end is not None else None,
},
request_options=request_options,
)
diff --git a/skyvern/client/types/__init__.py b/skyvern/client/types/__init__.py
index 68752a4ab..ae34a4694 100644
--- a/skyvern/client/types/__init__.py
+++ b/skyvern/client/types/__init__.py
@@ -57,7 +57,6 @@ if typing.TYPE_CHECKING:
from .browser_profile_proxy_location import BrowserProfileProxyLocation
from .browser_session_response import BrowserSessionResponse
from .bulk_cancel_runs_response import BulkCancelRunsResponse
- from .clear_organization_auth_token_response import ClearOrganizationAuthTokenResponse
from .click_action import ClickAction
from .click_action_data import ClickActionData
from .click_context import ClickContext
@@ -76,8 +75,6 @@ if typing.TYPE_CHECKING:
CodeBlockParametersItem_Output,
CodeBlockParametersItem_Workflow,
)
- from .code_block_step import CodeBlockStep
- from .code_block_step_yaml import CodeBlockStepYaml
from .code_block_yaml import CodeBlockYaml
from .conditional_block import ConditionalBlock
from .conditional_block_yaml import ConditionalBlockYaml
@@ -108,37 +105,12 @@ if typing.TYPE_CHECKING:
from .credential_parameter_yaml import CredentialParameterYaml
from .credential_response import CredentialResponse
from .credential_response_credential import CredentialResponseCredential
- from .credential_response_proxy_location import CredentialResponseProxyLocation
from .credential_type_output import CredentialTypeOutput
from .credential_vault_type import CredentialVaultType
- from .credit_card_billing_address import CreditCardBillingAddress
from .credit_card_credential_response import CreditCardCredentialResponse
- from .custom_llm import CustomLlm
- from .custom_llm_config import CustomLlmConfig
- from .custom_llm_list_response import CustomLlmListResponse
- from .custom_llm_provider import CustomLlmProvider
- from .custom_llm_response import CustomLlmResponse
from .delete_schedule_response import DeleteScheduleResponse
from .download_to_s3block import DownloadToS3Block
from .download_to_s3block_yaml import DownloadToS3BlockYaml
- from .email_inbox_block import EmailInboxBlock
- from .email_inbox_block_email_client import EmailInboxBlockEmailClient
- from .email_inbox_block_parameters_item import (
- EmailInboxBlockParametersItem,
- EmailInboxBlockParametersItem_AwsSecret,
- EmailInboxBlockParametersItem_AzureSecret,
- EmailInboxBlockParametersItem_AzureVaultCredential,
- EmailInboxBlockParametersItem_BitwardenCreditCardData,
- EmailInboxBlockParametersItem_BitwardenLoginCredential,
- EmailInboxBlockParametersItem_BitwardenSensitiveInformation,
- EmailInboxBlockParametersItem_Context,
- EmailInboxBlockParametersItem_Credential,
- EmailInboxBlockParametersItem_Onepassword,
- EmailInboxBlockParametersItem_Output,
- EmailInboxBlockParametersItem_Workflow,
- )
- from .email_inbox_block_yaml import EmailInboxBlockYaml
- from .email_inbox_block_yaml_email_client import EmailInboxBlockYamlEmailClient
from .extensions import Extensions
from .extract_action import ExtractAction
from .extract_action_data import ExtractActionData
@@ -196,7 +168,6 @@ if typing.TYPE_CHECKING:
ForLoopBlockLoopBlocksItem_Code,
ForLoopBlockLoopBlocksItem_Conditional,
ForLoopBlockLoopBlocksItem_DownloadToS3,
- ForLoopBlockLoopBlocksItem_EmailInbox,
ForLoopBlockLoopBlocksItem_Extraction,
ForLoopBlockLoopBlocksItem_FileDownload,
ForLoopBlockLoopBlocksItem_FileUpload,
@@ -209,11 +180,9 @@ if typing.TYPE_CHECKING:
ForLoopBlockLoopBlocksItem_HumanInteraction,
ForLoopBlockLoopBlocksItem_Login,
ForLoopBlockLoopBlocksItem_Navigation,
- ForLoopBlockLoopBlocksItem_PdfFill,
ForLoopBlockLoopBlocksItem_PdfParser,
ForLoopBlockLoopBlocksItem_PrintPage,
ForLoopBlockLoopBlocksItem_SendEmail,
- ForLoopBlockLoopBlocksItem_SplitPdf,
ForLoopBlockLoopBlocksItem_Task,
ForLoopBlockLoopBlocksItem_TaskV2,
ForLoopBlockLoopBlocksItem_TextPrompt,
@@ -245,7 +214,6 @@ if typing.TYPE_CHECKING:
ForLoopBlockYamlLoopBlocksItem_Code,
ForLoopBlockYamlLoopBlocksItem_Conditional,
ForLoopBlockYamlLoopBlocksItem_DownloadToS3,
- ForLoopBlockYamlLoopBlocksItem_EmailInbox,
ForLoopBlockYamlLoopBlocksItem_Extraction,
ForLoopBlockYamlLoopBlocksItem_FileDownload,
ForLoopBlockYamlLoopBlocksItem_FileUpload,
@@ -258,11 +226,9 @@ if typing.TYPE_CHECKING:
ForLoopBlockYamlLoopBlocksItem_HumanInteraction,
ForLoopBlockYamlLoopBlocksItem_Login,
ForLoopBlockYamlLoopBlocksItem_Navigation,
- ForLoopBlockYamlLoopBlocksItem_PdfFill,
ForLoopBlockYamlLoopBlocksItem_PdfParser,
ForLoopBlockYamlLoopBlocksItem_PrintPage,
ForLoopBlockYamlLoopBlocksItem_SendEmail,
- ForLoopBlockYamlLoopBlocksItem_SplitPdf,
ForLoopBlockYamlLoopBlocksItem_Task,
ForLoopBlockYamlLoopBlocksItem_TaskV2,
ForLoopBlockYamlLoopBlocksItem_TextPrompt,
@@ -400,24 +366,6 @@ if typing.TYPE_CHECKING:
from .output_parameter import OutputParameter
from .output_parameter_yaml import OutputParameterYaml
from .password_credential_response import PasswordCredentialResponse
- from .pdf_fill_block import PdfFillBlock
- from .pdf_fill_block_parameters_item import (
- PdfFillBlockParametersItem,
- PdfFillBlockParametersItem_AwsSecret,
- PdfFillBlockParametersItem_AzureSecret,
- PdfFillBlockParametersItem_AzureVaultCredential,
- PdfFillBlockParametersItem_BitwardenCreditCardData,
- PdfFillBlockParametersItem_BitwardenLoginCredential,
- PdfFillBlockParametersItem_BitwardenSensitiveInformation,
- PdfFillBlockParametersItem_Context,
- PdfFillBlockParametersItem_Credential,
- PdfFillBlockParametersItem_Onepassword,
- PdfFillBlockParametersItem_Output,
- PdfFillBlockParametersItem_Workflow,
- )
- from .pdf_fill_block_payload import PdfFillBlockPayload
- from .pdf_fill_block_yaml import PdfFillBlockYaml
- from .pdf_fill_block_yaml_payload import PdfFillBlockYamlPayload
from .pdf_format import PdfFormat
from .pdf_parser_block import PdfParserBlock
from .pdf_parser_block_yaml import PdfParserBlockYaml
@@ -457,10 +405,6 @@ if typing.TYPE_CHECKING:
)
from .run_sdk_action_response import RunSdkActionResponse
from .run_status import RunStatus
- from .run_tag_history_response import RunTagHistoryResponse
- from .run_tags_batch_response import RunTagsBatchResponse
- from .run_tags_response import RunTagsResponse
- from .run_type import RunType
from .run_webhook_replay_response import RunWebhookReplayResponse
from .script import Script
from .script_file_create import ScriptFileCreate
@@ -474,23 +418,6 @@ if typing.TYPE_CHECKING:
from .send_email_block_yaml import SendEmailBlockYaml
from .skyvern_forge_sdk_schemas_credentials_credential_type import SkyvernForgeSdkSchemasCredentialsCredentialType
from .skyvern_schemas_credential_type_credential_type import SkyvernSchemasCredentialTypeCredentialType
- from .split_pdf_block import SplitPdfBlock
- from .split_pdf_block_parameters_item import (
- SplitPdfBlockParametersItem,
- SplitPdfBlockParametersItem_AwsSecret,
- SplitPdfBlockParametersItem_AzureSecret,
- SplitPdfBlockParametersItem_AzureVaultCredential,
- SplitPdfBlockParametersItem_BitwardenCreditCardData,
- SplitPdfBlockParametersItem_BitwardenLoginCredential,
- SplitPdfBlockParametersItem_BitwardenSensitiveInformation,
- SplitPdfBlockParametersItem_Context,
- SplitPdfBlockParametersItem_Credential,
- SplitPdfBlockParametersItem_Onepassword,
- SplitPdfBlockParametersItem_Output,
- SplitPdfBlockParametersItem_Workflow,
- )
- from .split_pdf_block_yaml import SplitPdfBlockYaml
- from .tag_apply_request import TagApplyRequest
from .tag_delete_input import TagDeleteInput
from .tag_history_item import TagHistoryItem
from .tag_history_response import TagHistoryResponse
@@ -499,9 +426,6 @@ if typing.TYPE_CHECKING:
from .tag_key import TagKey
from .tag_key_delete_response import TagKeyDeleteResponse
from .tag_response import TagResponse
- from .tag_value import TagValue
- from .tag_value_delete_response import TagValueDeleteResponse
- from .tag_value_rename_response import TagValueRenameResponse
from .tags_response import TagsResponse
from .task_block import TaskBlock
from .task_block_data_schema import TaskBlockDataSchema
@@ -624,7 +548,6 @@ if typing.TYPE_CHECKING:
WhileLoopBlockLoopBlocksItem_Code,
WhileLoopBlockLoopBlocksItem_Conditional,
WhileLoopBlockLoopBlocksItem_DownloadToS3,
- WhileLoopBlockLoopBlocksItem_EmailInbox,
WhileLoopBlockLoopBlocksItem_Extraction,
WhileLoopBlockLoopBlocksItem_FileDownload,
WhileLoopBlockLoopBlocksItem_FileUpload,
@@ -637,11 +560,9 @@ if typing.TYPE_CHECKING:
WhileLoopBlockLoopBlocksItem_HumanInteraction,
WhileLoopBlockLoopBlocksItem_Login,
WhileLoopBlockLoopBlocksItem_Navigation,
- WhileLoopBlockLoopBlocksItem_PdfFill,
WhileLoopBlockLoopBlocksItem_PdfParser,
WhileLoopBlockLoopBlocksItem_PrintPage,
WhileLoopBlockLoopBlocksItem_SendEmail,
- WhileLoopBlockLoopBlocksItem_SplitPdf,
WhileLoopBlockLoopBlocksItem_Task,
WhileLoopBlockLoopBlocksItem_TaskV2,
WhileLoopBlockLoopBlocksItem_TextPrompt,
@@ -658,7 +579,6 @@ if typing.TYPE_CHECKING:
WhileLoopBlockYamlLoopBlocksItem_Code,
WhileLoopBlockYamlLoopBlocksItem_Conditional,
WhileLoopBlockYamlLoopBlocksItem_DownloadToS3,
- WhileLoopBlockYamlLoopBlocksItem_EmailInbox,
WhileLoopBlockYamlLoopBlocksItem_Extraction,
WhileLoopBlockYamlLoopBlocksItem_FileDownload,
WhileLoopBlockYamlLoopBlocksItem_FileUpload,
@@ -671,11 +591,9 @@ if typing.TYPE_CHECKING:
WhileLoopBlockYamlLoopBlocksItem_HumanInteraction,
WhileLoopBlockYamlLoopBlocksItem_Login,
WhileLoopBlockYamlLoopBlocksItem_Navigation,
- WhileLoopBlockYamlLoopBlocksItem_PdfFill,
WhileLoopBlockYamlLoopBlocksItem_PdfParser,
WhileLoopBlockYamlLoopBlocksItem_PrintPage,
WhileLoopBlockYamlLoopBlocksItem_SendEmail,
- WhileLoopBlockYamlLoopBlocksItem_SplitPdf,
WhileLoopBlockYamlLoopBlocksItem_Task,
WhileLoopBlockYamlLoopBlocksItem_TaskV2,
WhileLoopBlockYamlLoopBlocksItem_TextPrompt,
@@ -695,7 +613,6 @@ if typing.TYPE_CHECKING:
WorkflowDefinitionBlocksItem_Code,
WorkflowDefinitionBlocksItem_Conditional,
WorkflowDefinitionBlocksItem_DownloadToS3,
- WorkflowDefinitionBlocksItem_EmailInbox,
WorkflowDefinitionBlocksItem_Extraction,
WorkflowDefinitionBlocksItem_FileDownload,
WorkflowDefinitionBlocksItem_FileUpload,
@@ -708,11 +625,9 @@ if typing.TYPE_CHECKING:
WorkflowDefinitionBlocksItem_HumanInteraction,
WorkflowDefinitionBlocksItem_Login,
WorkflowDefinitionBlocksItem_Navigation,
- WorkflowDefinitionBlocksItem_PdfFill,
WorkflowDefinitionBlocksItem_PdfParser,
WorkflowDefinitionBlocksItem_PrintPage,
WorkflowDefinitionBlocksItem_SendEmail,
- WorkflowDefinitionBlocksItem_SplitPdf,
WorkflowDefinitionBlocksItem_Task,
WorkflowDefinitionBlocksItem_TaskV2,
WorkflowDefinitionBlocksItem_TextPrompt,
@@ -743,7 +658,6 @@ if typing.TYPE_CHECKING:
WorkflowDefinitionYamlBlocksItem_Code,
WorkflowDefinitionYamlBlocksItem_Conditional,
WorkflowDefinitionYamlBlocksItem_DownloadToS3,
- WorkflowDefinitionYamlBlocksItem_EmailInbox,
WorkflowDefinitionYamlBlocksItem_Extraction,
WorkflowDefinitionYamlBlocksItem_FileDownload,
WorkflowDefinitionYamlBlocksItem_FileUpload,
@@ -756,11 +670,9 @@ if typing.TYPE_CHECKING:
WorkflowDefinitionYamlBlocksItem_HumanInteraction,
WorkflowDefinitionYamlBlocksItem_Login,
WorkflowDefinitionYamlBlocksItem_Navigation,
- WorkflowDefinitionYamlBlocksItem_PdfFill,
WorkflowDefinitionYamlBlocksItem_PdfParser,
WorkflowDefinitionYamlBlocksItem_PrintPage,
WorkflowDefinitionYamlBlocksItem_SendEmail,
- WorkflowDefinitionYamlBlocksItem_SplitPdf,
WorkflowDefinitionYamlBlocksItem_Task,
WorkflowDefinitionYamlBlocksItem_TaskV2,
WorkflowDefinitionYamlBlocksItem_TextPrompt,
@@ -875,7 +787,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"BrowserProfileProxyLocation": ".browser_profile_proxy_location",
"BrowserSessionResponse": ".browser_session_response",
"BulkCancelRunsResponse": ".bulk_cancel_runs_response",
- "ClearOrganizationAuthTokenResponse": ".clear_organization_auth_token_response",
"ClickAction": ".click_action",
"ClickActionData": ".click_action_data",
"ClickContext": ".click_context",
@@ -892,8 +803,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"CodeBlockParametersItem_Onepassword": ".code_block_parameters_item",
"CodeBlockParametersItem_Output": ".code_block_parameters_item",
"CodeBlockParametersItem_Workflow": ".code_block_parameters_item",
- "CodeBlockStep": ".code_block_step",
- "CodeBlockStepYaml": ".code_block_step_yaml",
"CodeBlockYaml": ".code_block_yaml",
"ConditionalBlock": ".conditional_block",
"ConditionalBlockYaml": ".conditional_block_yaml",
@@ -922,35 +831,12 @@ _dynamic_imports: typing.Dict[str, str] = {
"CredentialParameterYaml": ".credential_parameter_yaml",
"CredentialResponse": ".credential_response",
"CredentialResponseCredential": ".credential_response_credential",
- "CredentialResponseProxyLocation": ".credential_response_proxy_location",
"CredentialTypeOutput": ".credential_type_output",
"CredentialVaultType": ".credential_vault_type",
- "CreditCardBillingAddress": ".credit_card_billing_address",
"CreditCardCredentialResponse": ".credit_card_credential_response",
- "CustomLlm": ".custom_llm",
- "CustomLlmConfig": ".custom_llm_config",
- "CustomLlmListResponse": ".custom_llm_list_response",
- "CustomLlmProvider": ".custom_llm_provider",
- "CustomLlmResponse": ".custom_llm_response",
"DeleteScheduleResponse": ".delete_schedule_response",
"DownloadToS3Block": ".download_to_s3block",
"DownloadToS3BlockYaml": ".download_to_s3block_yaml",
- "EmailInboxBlock": ".email_inbox_block",
- "EmailInboxBlockEmailClient": ".email_inbox_block_email_client",
- "EmailInboxBlockParametersItem": ".email_inbox_block_parameters_item",
- "EmailInboxBlockParametersItem_AwsSecret": ".email_inbox_block_parameters_item",
- "EmailInboxBlockParametersItem_AzureSecret": ".email_inbox_block_parameters_item",
- "EmailInboxBlockParametersItem_AzureVaultCredential": ".email_inbox_block_parameters_item",
- "EmailInboxBlockParametersItem_BitwardenCreditCardData": ".email_inbox_block_parameters_item",
- "EmailInboxBlockParametersItem_BitwardenLoginCredential": ".email_inbox_block_parameters_item",
- "EmailInboxBlockParametersItem_BitwardenSensitiveInformation": ".email_inbox_block_parameters_item",
- "EmailInboxBlockParametersItem_Context": ".email_inbox_block_parameters_item",
- "EmailInboxBlockParametersItem_Credential": ".email_inbox_block_parameters_item",
- "EmailInboxBlockParametersItem_Onepassword": ".email_inbox_block_parameters_item",
- "EmailInboxBlockParametersItem_Output": ".email_inbox_block_parameters_item",
- "EmailInboxBlockParametersItem_Workflow": ".email_inbox_block_parameters_item",
- "EmailInboxBlockYaml": ".email_inbox_block_yaml",
- "EmailInboxBlockYamlEmailClient": ".email_inbox_block_yaml_email_client",
"Extensions": ".extensions",
"ExtractAction": ".extract_action",
"ExtractActionData": ".extract_action_data",
@@ -1003,7 +889,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"ForLoopBlockLoopBlocksItem_Code": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_Conditional": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_DownloadToS3": ".for_loop_block_loop_blocks_item",
- "ForLoopBlockLoopBlocksItem_EmailInbox": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_Extraction": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_FileDownload": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_FileUpload": ".for_loop_block_loop_blocks_item",
@@ -1016,11 +901,9 @@ _dynamic_imports: typing.Dict[str, str] = {
"ForLoopBlockLoopBlocksItem_HumanInteraction": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_Login": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_Navigation": ".for_loop_block_loop_blocks_item",
- "ForLoopBlockLoopBlocksItem_PdfFill": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_PdfParser": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_PrintPage": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_SendEmail": ".for_loop_block_loop_blocks_item",
- "ForLoopBlockLoopBlocksItem_SplitPdf": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_Task": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_TaskV2": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_TextPrompt": ".for_loop_block_loop_blocks_item",
@@ -1048,7 +931,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"ForLoopBlockYamlLoopBlocksItem_Code": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_Conditional": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_DownloadToS3": ".for_loop_block_yaml_loop_blocks_item",
- "ForLoopBlockYamlLoopBlocksItem_EmailInbox": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_Extraction": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_FileDownload": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_FileUpload": ".for_loop_block_yaml_loop_blocks_item",
@@ -1061,11 +943,9 @@ _dynamic_imports: typing.Dict[str, str] = {
"ForLoopBlockYamlLoopBlocksItem_HumanInteraction": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_Login": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_Navigation": ".for_loop_block_yaml_loop_blocks_item",
- "ForLoopBlockYamlLoopBlocksItem_PdfFill": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_PdfParser": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_PrintPage": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_SendEmail": ".for_loop_block_yaml_loop_blocks_item",
- "ForLoopBlockYamlLoopBlocksItem_SplitPdf": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_Task": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_TaskV2": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_TextPrompt": ".for_loop_block_yaml_loop_blocks_item",
@@ -1188,22 +1068,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"OutputParameter": ".output_parameter",
"OutputParameterYaml": ".output_parameter_yaml",
"PasswordCredentialResponse": ".password_credential_response",
- "PdfFillBlock": ".pdf_fill_block",
- "PdfFillBlockParametersItem": ".pdf_fill_block_parameters_item",
- "PdfFillBlockParametersItem_AwsSecret": ".pdf_fill_block_parameters_item",
- "PdfFillBlockParametersItem_AzureSecret": ".pdf_fill_block_parameters_item",
- "PdfFillBlockParametersItem_AzureVaultCredential": ".pdf_fill_block_parameters_item",
- "PdfFillBlockParametersItem_BitwardenCreditCardData": ".pdf_fill_block_parameters_item",
- "PdfFillBlockParametersItem_BitwardenLoginCredential": ".pdf_fill_block_parameters_item",
- "PdfFillBlockParametersItem_BitwardenSensitiveInformation": ".pdf_fill_block_parameters_item",
- "PdfFillBlockParametersItem_Context": ".pdf_fill_block_parameters_item",
- "PdfFillBlockParametersItem_Credential": ".pdf_fill_block_parameters_item",
- "PdfFillBlockParametersItem_Onepassword": ".pdf_fill_block_parameters_item",
- "PdfFillBlockParametersItem_Output": ".pdf_fill_block_parameters_item",
- "PdfFillBlockParametersItem_Workflow": ".pdf_fill_block_parameters_item",
- "PdfFillBlockPayload": ".pdf_fill_block_payload",
- "PdfFillBlockYaml": ".pdf_fill_block_yaml",
- "PdfFillBlockYamlPayload": ".pdf_fill_block_yaml_payload",
"PdfFormat": ".pdf_format",
"PdfParserBlock": ".pdf_parser_block",
"PdfParserBlockYaml": ".pdf_parser_block_yaml",
@@ -1239,10 +1103,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"RunSdkActionRequestAction_Validate": ".run_sdk_action_request_action",
"RunSdkActionResponse": ".run_sdk_action_response",
"RunStatus": ".run_status",
- "RunTagHistoryResponse": ".run_tag_history_response",
- "RunTagsBatchResponse": ".run_tags_batch_response",
- "RunTagsResponse": ".run_tags_response",
- "RunType": ".run_type",
"RunWebhookReplayResponse": ".run_webhook_replay_response",
"Script": ".script",
"ScriptFileCreate": ".script_file_create",
@@ -1256,21 +1116,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"SendEmailBlockYaml": ".send_email_block_yaml",
"SkyvernForgeSdkSchemasCredentialsCredentialType": ".skyvern_forge_sdk_schemas_credentials_credential_type",
"SkyvernSchemasCredentialTypeCredentialType": ".skyvern_schemas_credential_type_credential_type",
- "SplitPdfBlock": ".split_pdf_block",
- "SplitPdfBlockParametersItem": ".split_pdf_block_parameters_item",
- "SplitPdfBlockParametersItem_AwsSecret": ".split_pdf_block_parameters_item",
- "SplitPdfBlockParametersItem_AzureSecret": ".split_pdf_block_parameters_item",
- "SplitPdfBlockParametersItem_AzureVaultCredential": ".split_pdf_block_parameters_item",
- "SplitPdfBlockParametersItem_BitwardenCreditCardData": ".split_pdf_block_parameters_item",
- "SplitPdfBlockParametersItem_BitwardenLoginCredential": ".split_pdf_block_parameters_item",
- "SplitPdfBlockParametersItem_BitwardenSensitiveInformation": ".split_pdf_block_parameters_item",
- "SplitPdfBlockParametersItem_Context": ".split_pdf_block_parameters_item",
- "SplitPdfBlockParametersItem_Credential": ".split_pdf_block_parameters_item",
- "SplitPdfBlockParametersItem_Onepassword": ".split_pdf_block_parameters_item",
- "SplitPdfBlockParametersItem_Output": ".split_pdf_block_parameters_item",
- "SplitPdfBlockParametersItem_Workflow": ".split_pdf_block_parameters_item",
- "SplitPdfBlockYaml": ".split_pdf_block_yaml",
- "TagApplyRequest": ".tag_apply_request",
"TagDeleteInput": ".tag_delete_input",
"TagHistoryItem": ".tag_history_item",
"TagHistoryResponse": ".tag_history_response",
@@ -1279,9 +1124,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"TagKey": ".tag_key",
"TagKeyDeleteResponse": ".tag_key_delete_response",
"TagResponse": ".tag_response",
- "TagValue": ".tag_value",
- "TagValueDeleteResponse": ".tag_value_delete_response",
- "TagValueRenameResponse": ".tag_value_rename_response",
"TagsResponse": ".tags_response",
"TaskBlock": ".task_block",
"TaskBlockDataSchema": ".task_block_data_schema",
@@ -1391,7 +1233,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"WhileLoopBlockLoopBlocksItem_Code": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_Conditional": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_DownloadToS3": ".while_loop_block_loop_blocks_item",
- "WhileLoopBlockLoopBlocksItem_EmailInbox": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_Extraction": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_FileDownload": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_FileUpload": ".while_loop_block_loop_blocks_item",
@@ -1404,11 +1245,9 @@ _dynamic_imports: typing.Dict[str, str] = {
"WhileLoopBlockLoopBlocksItem_HumanInteraction": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_Login": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_Navigation": ".while_loop_block_loop_blocks_item",
- "WhileLoopBlockLoopBlocksItem_PdfFill": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_PdfParser": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_PrintPage": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_SendEmail": ".while_loop_block_loop_blocks_item",
- "WhileLoopBlockLoopBlocksItem_SplitPdf": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_Task": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_TaskV2": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_TextPrompt": ".while_loop_block_loop_blocks_item",
@@ -1423,7 +1262,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"WhileLoopBlockYamlLoopBlocksItem_Code": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_Conditional": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_DownloadToS3": ".while_loop_block_yaml_loop_blocks_item",
- "WhileLoopBlockYamlLoopBlocksItem_EmailInbox": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_Extraction": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_FileDownload": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_FileUpload": ".while_loop_block_yaml_loop_blocks_item",
@@ -1436,11 +1274,9 @@ _dynamic_imports: typing.Dict[str, str] = {
"WhileLoopBlockYamlLoopBlocksItem_HumanInteraction": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_Login": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_Navigation": ".while_loop_block_yaml_loop_blocks_item",
- "WhileLoopBlockYamlLoopBlocksItem_PdfFill": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_PdfParser": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_PrintPage": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_SendEmail": ".while_loop_block_yaml_loop_blocks_item",
- "WhileLoopBlockYamlLoopBlocksItem_SplitPdf": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_Task": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_TaskV2": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_TextPrompt": ".while_loop_block_yaml_loop_blocks_item",
@@ -1458,7 +1294,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"WorkflowDefinitionBlocksItem_Code": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_Conditional": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_DownloadToS3": ".workflow_definition_blocks_item",
- "WorkflowDefinitionBlocksItem_EmailInbox": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_Extraction": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_FileDownload": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_FileUpload": ".workflow_definition_blocks_item",
@@ -1471,11 +1306,9 @@ _dynamic_imports: typing.Dict[str, str] = {
"WorkflowDefinitionBlocksItem_HumanInteraction": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_Login": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_Navigation": ".workflow_definition_blocks_item",
- "WorkflowDefinitionBlocksItem_PdfFill": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_PdfParser": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_PrintPage": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_SendEmail": ".workflow_definition_blocks_item",
- "WorkflowDefinitionBlocksItem_SplitPdf": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_Task": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_TaskV2": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_TextPrompt": ".workflow_definition_blocks_item",
@@ -1502,7 +1335,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"WorkflowDefinitionYamlBlocksItem_Code": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_Conditional": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_DownloadToS3": ".workflow_definition_yaml_blocks_item",
- "WorkflowDefinitionYamlBlocksItem_EmailInbox": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_Extraction": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_FileDownload": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_FileUpload": ".workflow_definition_yaml_blocks_item",
@@ -1515,11 +1347,9 @@ _dynamic_imports: typing.Dict[str, str] = {
"WorkflowDefinitionYamlBlocksItem_HumanInteraction": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_Login": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_Navigation": ".workflow_definition_yaml_blocks_item",
- "WorkflowDefinitionYamlBlocksItem_PdfFill": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_PdfParser": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_PrintPage": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_SendEmail": ".workflow_definition_yaml_blocks_item",
- "WorkflowDefinitionYamlBlocksItem_SplitPdf": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_Task": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_TaskV2": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_TextPrompt": ".workflow_definition_yaml_blocks_item",
@@ -1653,7 +1483,6 @@ __all__ = [
"BrowserProfileProxyLocation",
"BrowserSessionResponse",
"BulkCancelRunsResponse",
- "ClearOrganizationAuthTokenResponse",
"ClickAction",
"ClickActionData",
"ClickContext",
@@ -1670,8 +1499,6 @@ __all__ = [
"CodeBlockParametersItem_Onepassword",
"CodeBlockParametersItem_Output",
"CodeBlockParametersItem_Workflow",
- "CodeBlockStep",
- "CodeBlockStepYaml",
"CodeBlockYaml",
"ConditionalBlock",
"ConditionalBlockYaml",
@@ -1700,35 +1527,12 @@ __all__ = [
"CredentialParameterYaml",
"CredentialResponse",
"CredentialResponseCredential",
- "CredentialResponseProxyLocation",
"CredentialTypeOutput",
"CredentialVaultType",
- "CreditCardBillingAddress",
"CreditCardCredentialResponse",
- "CustomLlm",
- "CustomLlmConfig",
- "CustomLlmListResponse",
- "CustomLlmProvider",
- "CustomLlmResponse",
"DeleteScheduleResponse",
"DownloadToS3Block",
"DownloadToS3BlockYaml",
- "EmailInboxBlock",
- "EmailInboxBlockEmailClient",
- "EmailInboxBlockParametersItem",
- "EmailInboxBlockParametersItem_AwsSecret",
- "EmailInboxBlockParametersItem_AzureSecret",
- "EmailInboxBlockParametersItem_AzureVaultCredential",
- "EmailInboxBlockParametersItem_BitwardenCreditCardData",
- "EmailInboxBlockParametersItem_BitwardenLoginCredential",
- "EmailInboxBlockParametersItem_BitwardenSensitiveInformation",
- "EmailInboxBlockParametersItem_Context",
- "EmailInboxBlockParametersItem_Credential",
- "EmailInboxBlockParametersItem_Onepassword",
- "EmailInboxBlockParametersItem_Output",
- "EmailInboxBlockParametersItem_Workflow",
- "EmailInboxBlockYaml",
- "EmailInboxBlockYamlEmailClient",
"Extensions",
"ExtractAction",
"ExtractActionData",
@@ -1781,7 +1585,6 @@ __all__ = [
"ForLoopBlockLoopBlocksItem_Code",
"ForLoopBlockLoopBlocksItem_Conditional",
"ForLoopBlockLoopBlocksItem_DownloadToS3",
- "ForLoopBlockLoopBlocksItem_EmailInbox",
"ForLoopBlockLoopBlocksItem_Extraction",
"ForLoopBlockLoopBlocksItem_FileDownload",
"ForLoopBlockLoopBlocksItem_FileUpload",
@@ -1794,11 +1597,9 @@ __all__ = [
"ForLoopBlockLoopBlocksItem_HumanInteraction",
"ForLoopBlockLoopBlocksItem_Login",
"ForLoopBlockLoopBlocksItem_Navigation",
- "ForLoopBlockLoopBlocksItem_PdfFill",
"ForLoopBlockLoopBlocksItem_PdfParser",
"ForLoopBlockLoopBlocksItem_PrintPage",
"ForLoopBlockLoopBlocksItem_SendEmail",
- "ForLoopBlockLoopBlocksItem_SplitPdf",
"ForLoopBlockLoopBlocksItem_Task",
"ForLoopBlockLoopBlocksItem_TaskV2",
"ForLoopBlockLoopBlocksItem_TextPrompt",
@@ -1826,7 +1627,6 @@ __all__ = [
"ForLoopBlockYamlLoopBlocksItem_Code",
"ForLoopBlockYamlLoopBlocksItem_Conditional",
"ForLoopBlockYamlLoopBlocksItem_DownloadToS3",
- "ForLoopBlockYamlLoopBlocksItem_EmailInbox",
"ForLoopBlockYamlLoopBlocksItem_Extraction",
"ForLoopBlockYamlLoopBlocksItem_FileDownload",
"ForLoopBlockYamlLoopBlocksItem_FileUpload",
@@ -1839,11 +1639,9 @@ __all__ = [
"ForLoopBlockYamlLoopBlocksItem_HumanInteraction",
"ForLoopBlockYamlLoopBlocksItem_Login",
"ForLoopBlockYamlLoopBlocksItem_Navigation",
- "ForLoopBlockYamlLoopBlocksItem_PdfFill",
"ForLoopBlockYamlLoopBlocksItem_PdfParser",
"ForLoopBlockYamlLoopBlocksItem_PrintPage",
"ForLoopBlockYamlLoopBlocksItem_SendEmail",
- "ForLoopBlockYamlLoopBlocksItem_SplitPdf",
"ForLoopBlockYamlLoopBlocksItem_Task",
"ForLoopBlockYamlLoopBlocksItem_TaskV2",
"ForLoopBlockYamlLoopBlocksItem_TextPrompt",
@@ -1966,22 +1764,6 @@ __all__ = [
"OutputParameter",
"OutputParameterYaml",
"PasswordCredentialResponse",
- "PdfFillBlock",
- "PdfFillBlockParametersItem",
- "PdfFillBlockParametersItem_AwsSecret",
- "PdfFillBlockParametersItem_AzureSecret",
- "PdfFillBlockParametersItem_AzureVaultCredential",
- "PdfFillBlockParametersItem_BitwardenCreditCardData",
- "PdfFillBlockParametersItem_BitwardenLoginCredential",
- "PdfFillBlockParametersItem_BitwardenSensitiveInformation",
- "PdfFillBlockParametersItem_Context",
- "PdfFillBlockParametersItem_Credential",
- "PdfFillBlockParametersItem_Onepassword",
- "PdfFillBlockParametersItem_Output",
- "PdfFillBlockParametersItem_Workflow",
- "PdfFillBlockPayload",
- "PdfFillBlockYaml",
- "PdfFillBlockYamlPayload",
"PdfFormat",
"PdfParserBlock",
"PdfParserBlockYaml",
@@ -2017,10 +1799,6 @@ __all__ = [
"RunSdkActionRequestAction_Validate",
"RunSdkActionResponse",
"RunStatus",
- "RunTagHistoryResponse",
- "RunTagsBatchResponse",
- "RunTagsResponse",
- "RunType",
"RunWebhookReplayResponse",
"Script",
"ScriptFileCreate",
@@ -2034,21 +1812,6 @@ __all__ = [
"SendEmailBlockYaml",
"SkyvernForgeSdkSchemasCredentialsCredentialType",
"SkyvernSchemasCredentialTypeCredentialType",
- "SplitPdfBlock",
- "SplitPdfBlockParametersItem",
- "SplitPdfBlockParametersItem_AwsSecret",
- "SplitPdfBlockParametersItem_AzureSecret",
- "SplitPdfBlockParametersItem_AzureVaultCredential",
- "SplitPdfBlockParametersItem_BitwardenCreditCardData",
- "SplitPdfBlockParametersItem_BitwardenLoginCredential",
- "SplitPdfBlockParametersItem_BitwardenSensitiveInformation",
- "SplitPdfBlockParametersItem_Context",
- "SplitPdfBlockParametersItem_Credential",
- "SplitPdfBlockParametersItem_Onepassword",
- "SplitPdfBlockParametersItem_Output",
- "SplitPdfBlockParametersItem_Workflow",
- "SplitPdfBlockYaml",
- "TagApplyRequest",
"TagDeleteInput",
"TagHistoryItem",
"TagHistoryResponse",
@@ -2057,9 +1820,6 @@ __all__ = [
"TagKey",
"TagKeyDeleteResponse",
"TagResponse",
- "TagValue",
- "TagValueDeleteResponse",
- "TagValueRenameResponse",
"TagsResponse",
"TaskBlock",
"TaskBlockDataSchema",
@@ -2169,7 +1929,6 @@ __all__ = [
"WhileLoopBlockLoopBlocksItem_Code",
"WhileLoopBlockLoopBlocksItem_Conditional",
"WhileLoopBlockLoopBlocksItem_DownloadToS3",
- "WhileLoopBlockLoopBlocksItem_EmailInbox",
"WhileLoopBlockLoopBlocksItem_Extraction",
"WhileLoopBlockLoopBlocksItem_FileDownload",
"WhileLoopBlockLoopBlocksItem_FileUpload",
@@ -2182,11 +1941,9 @@ __all__ = [
"WhileLoopBlockLoopBlocksItem_HumanInteraction",
"WhileLoopBlockLoopBlocksItem_Login",
"WhileLoopBlockLoopBlocksItem_Navigation",
- "WhileLoopBlockLoopBlocksItem_PdfFill",
"WhileLoopBlockLoopBlocksItem_PdfParser",
"WhileLoopBlockLoopBlocksItem_PrintPage",
"WhileLoopBlockLoopBlocksItem_SendEmail",
- "WhileLoopBlockLoopBlocksItem_SplitPdf",
"WhileLoopBlockLoopBlocksItem_Task",
"WhileLoopBlockLoopBlocksItem_TaskV2",
"WhileLoopBlockLoopBlocksItem_TextPrompt",
@@ -2201,7 +1958,6 @@ __all__ = [
"WhileLoopBlockYamlLoopBlocksItem_Code",
"WhileLoopBlockYamlLoopBlocksItem_Conditional",
"WhileLoopBlockYamlLoopBlocksItem_DownloadToS3",
- "WhileLoopBlockYamlLoopBlocksItem_EmailInbox",
"WhileLoopBlockYamlLoopBlocksItem_Extraction",
"WhileLoopBlockYamlLoopBlocksItem_FileDownload",
"WhileLoopBlockYamlLoopBlocksItem_FileUpload",
@@ -2214,11 +1970,9 @@ __all__ = [
"WhileLoopBlockYamlLoopBlocksItem_HumanInteraction",
"WhileLoopBlockYamlLoopBlocksItem_Login",
"WhileLoopBlockYamlLoopBlocksItem_Navigation",
- "WhileLoopBlockYamlLoopBlocksItem_PdfFill",
"WhileLoopBlockYamlLoopBlocksItem_PdfParser",
"WhileLoopBlockYamlLoopBlocksItem_PrintPage",
"WhileLoopBlockYamlLoopBlocksItem_SendEmail",
- "WhileLoopBlockYamlLoopBlocksItem_SplitPdf",
"WhileLoopBlockYamlLoopBlocksItem_Task",
"WhileLoopBlockYamlLoopBlocksItem_TaskV2",
"WhileLoopBlockYamlLoopBlocksItem_TextPrompt",
@@ -2236,7 +1990,6 @@ __all__ = [
"WorkflowDefinitionBlocksItem_Code",
"WorkflowDefinitionBlocksItem_Conditional",
"WorkflowDefinitionBlocksItem_DownloadToS3",
- "WorkflowDefinitionBlocksItem_EmailInbox",
"WorkflowDefinitionBlocksItem_Extraction",
"WorkflowDefinitionBlocksItem_FileDownload",
"WorkflowDefinitionBlocksItem_FileUpload",
@@ -2249,11 +2002,9 @@ __all__ = [
"WorkflowDefinitionBlocksItem_HumanInteraction",
"WorkflowDefinitionBlocksItem_Login",
"WorkflowDefinitionBlocksItem_Navigation",
- "WorkflowDefinitionBlocksItem_PdfFill",
"WorkflowDefinitionBlocksItem_PdfParser",
"WorkflowDefinitionBlocksItem_PrintPage",
"WorkflowDefinitionBlocksItem_SendEmail",
- "WorkflowDefinitionBlocksItem_SplitPdf",
"WorkflowDefinitionBlocksItem_Task",
"WorkflowDefinitionBlocksItem_TaskV2",
"WorkflowDefinitionBlocksItem_TextPrompt",
@@ -2280,7 +2031,6 @@ __all__ = [
"WorkflowDefinitionYamlBlocksItem_Code",
"WorkflowDefinitionYamlBlocksItem_Conditional",
"WorkflowDefinitionYamlBlocksItem_DownloadToS3",
- "WorkflowDefinitionYamlBlocksItem_EmailInbox",
"WorkflowDefinitionYamlBlocksItem_Extraction",
"WorkflowDefinitionYamlBlocksItem_FileDownload",
"WorkflowDefinitionYamlBlocksItem_FileUpload",
@@ -2293,11 +2043,9 @@ __all__ = [
"WorkflowDefinitionYamlBlocksItem_HumanInteraction",
"WorkflowDefinitionYamlBlocksItem_Login",
"WorkflowDefinitionYamlBlocksItem_Navigation",
- "WorkflowDefinitionYamlBlocksItem_PdfFill",
"WorkflowDefinitionYamlBlocksItem_PdfParser",
"WorkflowDefinitionYamlBlocksItem_PrintPage",
"WorkflowDefinitionYamlBlocksItem_SendEmail",
- "WorkflowDefinitionYamlBlocksItem_SplitPdf",
"WorkflowDefinitionYamlBlocksItem_Task",
"WorkflowDefinitionYamlBlocksItem_TaskV2",
"WorkflowDefinitionYamlBlocksItem_TextPrompt",
diff --git a/skyvern/client/types/action_block_parameters_item.py b/skyvern/client/types/action_block_parameters_item.py
index 3009ac670..d2662830e 100644
--- a/skyvern/client/types/action_block_parameters_item.py
+++ b/skyvern/client/types/action_block_parameters_item.py
@@ -183,8 +183,6 @@ class ActionBlockParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/block_type.py b/skyvern/client/types/block_type.py
index aeb0d83c5..8aacc37a1 100644
--- a/skyvern/client/types/block_type.py
+++ b/skyvern/client/types/block_type.py
@@ -31,9 +31,6 @@ BlockType = typing.Union[
"workflow_trigger",
"google_sheets_read",
"google_sheets_write",
- "pdf_fill",
- "split_pdf",
- "email_inbox",
],
typing.Any,
]
diff --git a/skyvern/client/types/clear_organization_auth_token_response.py b/skyvern/client/types/clear_organization_auth_token_response.py
deleted file mode 100644
index 2d37d1eeb..000000000
--- a/skyvern/client/types/clear_organization_auth_token_response.py
+++ /dev/null
@@ -1,26 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-
-
-class ClearOrganizationAuthTokenResponse(UniversalBaseModel):
- """
- Response model for clearing an organization auth token.
- """
-
- success: bool = pydantic.Field()
- """
- Whether the token was cleared successfully
- """
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/code_block.py b/skyvern/client/types/code_block.py
index 7c1294d0b..ca9857bb6 100644
--- a/skyvern/client/types/code_block.py
+++ b/skyvern/client/types/code_block.py
@@ -7,7 +7,6 @@ import typing
import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel, update_forward_refs
from .code_block_parameters_item import CodeBlockParametersItem
-from .code_block_step import CodeBlockStep
from .output_parameter import OutputParameter
@@ -30,8 +29,6 @@ class CodeBlock(UniversalBaseModel):
next_loop_on_failure: typing.Optional[bool] = None
code: str
parameters: typing.Optional[typing.List[CodeBlockParametersItem]] = None
- prompt: typing.Optional[str] = None
- steps: typing.Optional[typing.List[CodeBlockStep]] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
diff --git a/skyvern/client/types/code_block_parameters_item.py b/skyvern/client/types/code_block_parameters_item.py
index 56f97a9f5..9124c170b 100644
--- a/skyvern/client/types/code_block_parameters_item.py
+++ b/skyvern/client/types/code_block_parameters_item.py
@@ -183,8 +183,6 @@ class CodeBlockParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/code_block_step.py b/skyvern/client/types/code_block_step.py
deleted file mode 100644
index 43bd300b2..000000000
--- a/skyvern/client/types/code_block_step.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-from .action_type import ActionType
-
-
-class CodeBlockStep(UniversalBaseModel):
- title: typing.Optional[str] = None
- description: typing.Optional[str] = None
- action_type: typing.Optional[ActionType] = None
- line_start: typing.Optional[int] = None
- line_end: typing.Optional[int] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/code_block_step_yaml.py b/skyvern/client/types/code_block_step_yaml.py
deleted file mode 100644
index cfb742c29..000000000
--- a/skyvern/client/types/code_block_step_yaml.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-
-
-class CodeBlockStepYaml(UniversalBaseModel):
- title: typing.Optional[str] = None
- description: typing.Optional[str] = None
- action_type: typing.Optional[str] = None
- line_start: typing.Optional[int] = None
- line_end: typing.Optional[int] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/code_block_yaml.py b/skyvern/client/types/code_block_yaml.py
index b6d7f2f52..0cea41310 100644
--- a/skyvern/client/types/code_block_yaml.py
+++ b/skyvern/client/types/code_block_yaml.py
@@ -4,7 +4,6 @@ import typing
import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-from .code_block_step_yaml import CodeBlockStepYaml
class CodeBlockYaml(UniversalBaseModel):
@@ -24,8 +23,6 @@ class CodeBlockYaml(UniversalBaseModel):
next_loop_on_failure: typing.Optional[bool] = None
code: str
parameter_keys: typing.Optional[typing.List[str]] = None
- prompt: typing.Optional[str] = None
- steps: typing.Optional[typing.List[CodeBlockStepYaml]] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
diff --git a/skyvern/client/types/context_parameter_source.py b/skyvern/client/types/context_parameter_source.py
index bf629f7d1..3240a6b82 100644
--- a/skyvern/client/types/context_parameter_source.py
+++ b/skyvern/client/types/context_parameter_source.py
@@ -246,8 +246,6 @@ class ContextParameterSource_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/credential_parameter.py b/skyvern/client/types/credential_parameter.py
index e06bb2d75..6d4705bdf 100644
--- a/skyvern/client/types/credential_parameter.py
+++ b/skyvern/client/types/credential_parameter.py
@@ -13,8 +13,6 @@ class CredentialParameter(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/credential_parameter_yaml.py b/skyvern/client/types/credential_parameter_yaml.py
index bc5ca5ecf..aa8a22e10 100644
--- a/skyvern/client/types/credential_parameter_yaml.py
+++ b/skyvern/client/types/credential_parameter_yaml.py
@@ -10,8 +10,6 @@ class CredentialParameterYaml(UniversalBaseModel):
key: str
description: typing.Optional[str] = None
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
diff --git a/skyvern/client/types/credential_response.py b/skyvern/client/types/credential_response.py
index 6e534b482..ceeb22370 100644
--- a/skyvern/client/types/credential_response.py
+++ b/skyvern/client/types/credential_response.py
@@ -5,7 +5,6 @@ import typing
import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .credential_response_credential import CredentialResponseCredential
-from .credential_response_proxy_location import CredentialResponseProxyLocation
from .credential_type_output import CredentialTypeOutput
from .credential_vault_type import CredentialVaultType
@@ -65,16 +64,6 @@ class CredentialResponse(UniversalBaseModel):
ID of the credential folder this credential belongs to, if any
"""
- proxy_location: typing.Optional[CredentialResponseProxyLocation] = pydantic.Field(default=None)
- """
- Optional proxy location used for the credential's pinned proxy identity.
- """
-
- proxy_session_id: typing.Optional[str] = pydantic.Field(default=None)
- """
- Opaque Skyvern-managed proxy sticky-session id.
- """
-
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:
diff --git a/skyvern/client/types/credential_response_proxy_location.py b/skyvern/client/types/credential_response_proxy_location.py
deleted file mode 100644
index 8856473ba..000000000
--- a/skyvern/client/types/credential_response_proxy_location.py
+++ /dev/null
@@ -1,8 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-from .geo_target import GeoTarget
-from .proxy_location import ProxyLocation
-
-CredentialResponseProxyLocation = typing.Union[ProxyLocation, GeoTarget, typing.Dict[str, typing.Optional[typing.Any]]]
diff --git a/skyvern/client/types/credit_card_billing_address.py b/skyvern/client/types/credit_card_billing_address.py
deleted file mode 100644
index 0e10b245e..000000000
--- a/skyvern/client/types/credit_card_billing_address.py
+++ /dev/null
@@ -1,61 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-
-
-class CreditCardBillingAddress(UniversalBaseModel):
- """
- Optional billing address fields associated with a credit card credential.
- """
-
- line1: typing.Optional[str] = pydantic.Field(default=None)
- """
- Billing address line 1
- """
-
- line2: typing.Optional[str] = pydantic.Field(default=None)
- """
- Billing address line 2
- """
-
- city: typing.Optional[str] = pydantic.Field(default=None)
- """
- Billing city
- """
-
- state: typing.Optional[str] = pydantic.Field(default=None)
- """
- Billing state or region
- """
-
- state_code: typing.Optional[str] = pydantic.Field(default=None)
- """
- Billing state or region code
- """
-
- postal_code: typing.Optional[str] = pydantic.Field(default=None)
- """
- Billing postal code
- """
-
- country: typing.Optional[str] = pydantic.Field(default=None)
- """
- Billing country
- """
-
- country_code: typing.Optional[str] = pydantic.Field(default=None)
- """
- ISO 3166-1 alpha-2 billing country code
- """
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/credit_card_credential_response.py b/skyvern/client/types/credit_card_credential_response.py
index 3b812074b..33c487039 100644
--- a/skyvern/client/types/credit_card_credential_response.py
+++ b/skyvern/client/types/credit_card_credential_response.py
@@ -10,8 +10,7 @@ class CreditCardCredentialResponse(UniversalBaseModel):
"""
Response model for credit card credentials — non-sensitive fields only.
- SECURITY: Must NEVER include full card number, CVV, expiration date, card holder name,
- billing fields, or metadata.
+ SECURITY: Must NEVER include full card number, CVV, expiration date, or card holder name.
"""
last_four: str = pydantic.Field()
diff --git a/skyvern/client/types/custom_llm.py b/skyvern/client/types/custom_llm.py
deleted file mode 100644
index 02623127d..000000000
--- a/skyvern/client/types/custom_llm.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-from .custom_llm_config import CustomLlmConfig
-
-
-class CustomLlm(UniversalBaseModel):
- id: str
- organization_id: str
- config: CustomLlmConfig
- created_at: str
- modified_at: str
- valid: bool
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/custom_llm_config.py b/skyvern/client/types/custom_llm_config.py
deleted file mode 100644
index b6fe4ad14..000000000
--- a/skyvern/client/types/custom_llm_config.py
+++ /dev/null
@@ -1,30 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-from .custom_llm_provider import CustomLlmProvider
-
-
-class CustomLlmConfig(UniversalBaseModel):
- display_name: str
- provider: CustomLlmProvider
- model_name: str
- api_base: typing.Optional[str] = None
- api_key: typing.Optional[str] = None
- api_version: typing.Optional[str] = None
- supports_vision: typing.Optional[bool] = None
- add_assistant_prefix: typing.Optional[bool] = None
- max_completion_tokens: typing.Optional[int] = None
- temperature: typing.Optional[float] = None
- reasoning_effort: typing.Optional[str] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/custom_llm_list_response.py b/skyvern/client/types/custom_llm_list_response.py
deleted file mode 100644
index f634764e0..000000000
--- a/skyvern/client/types/custom_llm_list_response.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-from .custom_llm import CustomLlm
-
-
-class CustomLlmListResponse(UniversalBaseModel):
- custom_llms: typing.List[CustomLlm]
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/custom_llm_provider.py b/skyvern/client/types/custom_llm_provider.py
deleted file mode 100644
index a87d7fb3f..000000000
--- a/skyvern/client/types/custom_llm_provider.py
+++ /dev/null
@@ -1,5 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-CustomLlmProvider = typing.Union[typing.Literal["openai_compatible", "ollama", "openrouter"], typing.Any]
diff --git a/skyvern/client/types/custom_llm_response.py b/skyvern/client/types/custom_llm_response.py
deleted file mode 100644
index 91bd9cf78..000000000
--- a/skyvern/client/types/custom_llm_response.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-from .custom_llm import CustomLlm
-
-
-class CustomLlmResponse(UniversalBaseModel):
- custom_llm: CustomLlm
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/email_inbox_block.py b/skyvern/client/types/email_inbox_block.py
deleted file mode 100644
index 5e301ae5e..000000000
--- a/skyvern/client/types/email_inbox_block.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-from __future__ import annotations
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel, update_forward_refs
-from .email_inbox_block_email_client import EmailInboxBlockEmailClient
-from .email_inbox_block_parameters_item import EmailInboxBlockParametersItem
-from .output_parameter import OutputParameter
-
-
-class EmailInboxBlock(UniversalBaseModel):
- label: str = pydantic.Field()
- """
- Author-facing identifier for a block; unique within a workflow.
- """
-
- next_block_label: typing.Optional[str] = pydantic.Field(default=None)
- """
- Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted.
- """
-
- output_parameter: OutputParameter
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- disable_cache: typing.Optional[bool] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- email_client: EmailInboxBlockEmailClient
- credential_id: typing.Optional[str] = None
- folder: typing.Optional[str] = None
- prompt: typing.Optional[str] = None
- sender: typing.Optional[str] = None
- subject: typing.Optional[str] = None
- newer_than_days: typing.Optional[int] = None
- max_results: typing.Optional[int] = None
- include_body: typing.Optional[bool] = None
- parameters: typing.Optional[typing.List[EmailInboxBlockParametersItem]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-from .context_parameter import ContextParameter # noqa: E402, F401, I001
-
-update_forward_refs(EmailInboxBlock)
diff --git a/skyvern/client/types/email_inbox_block_email_client.py b/skyvern/client/types/email_inbox_block_email_client.py
deleted file mode 100644
index 01b84354a..000000000
--- a/skyvern/client/types/email_inbox_block_email_client.py
+++ /dev/null
@@ -1,5 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-EmailInboxBlockEmailClient = typing.Union[typing.Literal["gmail", "outlook"], typing.Any]
diff --git a/skyvern/client/types/email_inbox_block_parameters_item.py b/skyvern/client/types/email_inbox_block_parameters_item.py
deleted file mode 100644
index 0ff3c324b..000000000
--- a/skyvern/client/types/email_inbox_block_parameters_item.py
+++ /dev/null
@@ -1,279 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-from __future__ import annotations
-
-import datetime as dt
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel, update_forward_refs
-from .context_parameter_value import ContextParameterValue
-from .workflow_parameter_default_value import WorkflowParameterDefaultValue
-from .workflow_parameter_type import WorkflowParameterType
-
-
-class EmailInboxBlockParametersItem_AwsSecret(UniversalBaseModel):
- parameter_type: typing.Literal["aws_secret"] = "aws_secret"
- key: str
- description: typing.Optional[str] = None
- aws_secret_parameter_id: str
- workflow_id: str
- aws_key: str
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class EmailInboxBlockParametersItem_AzureSecret(UniversalBaseModel):
- parameter_type: typing.Literal["azure_secret"] = "azure_secret"
- key: str
- description: typing.Optional[str] = None
- azure_secret_parameter_id: str
- workflow_id: str
- azure_key: str
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class EmailInboxBlockParametersItem_AzureVaultCredential(UniversalBaseModel):
- parameter_type: typing.Literal["azure_vault_credential"] = "azure_vault_credential"
- key: str
- description: typing.Optional[str] = None
- azure_vault_credential_parameter_id: str
- workflow_id: str
- vault_name: str
- username_key: str
- password_key: str
- totp_secret_key: typing.Optional[str] = None
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class EmailInboxBlockParametersItem_BitwardenCreditCardData(UniversalBaseModel):
- parameter_type: typing.Literal["bitwarden_credit_card_data"] = "bitwarden_credit_card_data"
- key: str
- description: typing.Optional[str] = None
- bitwarden_credit_card_data_parameter_id: str
- workflow_id: str
- bitwarden_client_id_aws_secret_key: str
- bitwarden_client_secret_aws_secret_key: str
- bitwarden_master_password_aws_secret_key: str
- bitwarden_collection_id: str
- bitwarden_item_id: str
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class EmailInboxBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel):
- parameter_type: typing.Literal["bitwarden_login_credential"] = "bitwarden_login_credential"
- key: str
- description: typing.Optional[str] = None
- bitwarden_login_credential_parameter_id: str
- workflow_id: str
- bitwarden_client_id_aws_secret_key: str
- bitwarden_client_secret_aws_secret_key: str
- bitwarden_master_password_aws_secret_key: str
- url_parameter_key: typing.Optional[str] = None
- bitwarden_collection_id: typing.Optional[str] = None
- bitwarden_item_id: typing.Optional[str] = None
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class EmailInboxBlockParametersItem_BitwardenSensitiveInformation(UniversalBaseModel):
- parameter_type: typing.Literal["bitwarden_sensitive_information"] = "bitwarden_sensitive_information"
- key: str
- description: typing.Optional[str] = None
- bitwarden_sensitive_information_parameter_id: str
- workflow_id: str
- bitwarden_client_id_aws_secret_key: str
- bitwarden_client_secret_aws_secret_key: str
- bitwarden_master_password_aws_secret_key: str
- bitwarden_collection_id: str
- bitwarden_identity_key: str
- bitwarden_identity_fields: typing.List[str]
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class EmailInboxBlockParametersItem_Context(UniversalBaseModel):
- parameter_type: typing.Literal["context"] = "context"
- key: str
- description: typing.Optional[str] = None
- source: "ContextParameterSource"
- value: typing.Optional[ContextParameterValue] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-from .context_parameter import ContextParameter # noqa: E402, F401, I001
-from .context_parameter_source import ContextParameterSource # noqa: E402, F401, I001
-
-
-class EmailInboxBlockParametersItem_Credential(UniversalBaseModel):
- parameter_type: typing.Literal["credential"] = "credential"
- key: str
- description: typing.Optional[str] = None
- credential_parameter_id: str
- workflow_id: str
- credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class EmailInboxBlockParametersItem_Onepassword(UniversalBaseModel):
- parameter_type: typing.Literal["onepassword"] = "onepassword"
- key: str
- description: typing.Optional[str] = None
- onepassword_credential_parameter_id: str
- workflow_id: str
- vault_id: str
- item_id: str
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class EmailInboxBlockParametersItem_Output(UniversalBaseModel):
- parameter_type: typing.Literal["output"] = "output"
- key: str
- description: typing.Optional[str] = None
- output_parameter_id: str
- workflow_id: str
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class EmailInboxBlockParametersItem_Workflow(UniversalBaseModel):
- parameter_type: typing.Literal["workflow"] = "workflow"
- key: str
- description: typing.Optional[str] = None
- workflow_parameter_id: str
- workflow_parameter_type: WorkflowParameterType
- workflow_id: str
- default_value: typing.Optional[WorkflowParameterDefaultValue] = None
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-EmailInboxBlockParametersItem = typing.Union[
- EmailInboxBlockParametersItem_AwsSecret,
- EmailInboxBlockParametersItem_AzureSecret,
- EmailInboxBlockParametersItem_AzureVaultCredential,
- EmailInboxBlockParametersItem_BitwardenCreditCardData,
- EmailInboxBlockParametersItem_BitwardenLoginCredential,
- EmailInboxBlockParametersItem_BitwardenSensitiveInformation,
- EmailInboxBlockParametersItem_Context,
- EmailInboxBlockParametersItem_Credential,
- EmailInboxBlockParametersItem_Onepassword,
- EmailInboxBlockParametersItem_Output,
- EmailInboxBlockParametersItem_Workflow,
-]
-update_forward_refs(EmailInboxBlockParametersItem_Context)
diff --git a/skyvern/client/types/email_inbox_block_yaml.py b/skyvern/client/types/email_inbox_block_yaml.py
deleted file mode 100644
index bb5f958b2..000000000
--- a/skyvern/client/types/email_inbox_block_yaml.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-from .email_inbox_block_yaml_email_client import EmailInboxBlockYamlEmailClient
-
-
-class EmailInboxBlockYaml(UniversalBaseModel):
- label: str = pydantic.Field()
- """
- Author-facing identifier; must be unique per workflow.
- """
-
- next_block_label: typing.Optional[str] = pydantic.Field(default=None)
- """
- Optional pointer to the label of the next block. When omitted, it will default to sequential order. See [[s-4bnl]].
- """
-
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- email_client: EmailInboxBlockYamlEmailClient
- credential_id: typing.Optional[str] = None
- folder: typing.Optional[str] = None
- prompt: typing.Optional[str] = None
- sender: typing.Optional[str] = None
- subject: typing.Optional[str] = None
- newer_than_days: typing.Optional[int] = None
- max_results: typing.Optional[int] = None
- include_body: typing.Optional[bool] = None
- parameter_keys: typing.Optional[typing.List[str]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/email_inbox_block_yaml_email_client.py b/skyvern/client/types/email_inbox_block_yaml_email_client.py
deleted file mode 100644
index 2df4bef1a..000000000
--- a/skyvern/client/types/email_inbox_block_yaml_email_client.py
+++ /dev/null
@@ -1,5 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-EmailInboxBlockYamlEmailClient = typing.Union[typing.Literal["gmail", "outlook"], typing.Any]
diff --git a/skyvern/client/types/extraction_block_parameters_item.py b/skyvern/client/types/extraction_block_parameters_item.py
index a0c6d5ed2..437380f4a 100644
--- a/skyvern/client/types/extraction_block_parameters_item.py
+++ b/skyvern/client/types/extraction_block_parameters_item.py
@@ -183,8 +183,6 @@ class ExtractionBlockParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/file_download_block_parameters_item.py b/skyvern/client/types/file_download_block_parameters_item.py
index bab25d011..07e4b0425 100644
--- a/skyvern/client/types/file_download_block_parameters_item.py
+++ b/skyvern/client/types/file_download_block_parameters_item.py
@@ -183,8 +183,6 @@ class FileDownloadBlockParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/file_type.py b/skyvern/client/types/file_type.py
index 6575b7e3a..619ce5455 100644
--- a/skyvern/client/types/file_type.py
+++ b/skyvern/client/types/file_type.py
@@ -2,4 +2,4 @@
import typing
-FileType = typing.Union[typing.Literal["auto_detect", "csv", "excel", "pdf", "image", "docx", "zip"], typing.Any]
+FileType = typing.Union[typing.Literal["auto_detect", "csv", "excel", "pdf", "image", "docx"], typing.Any]
diff --git a/skyvern/client/types/file_upload_block.py b/skyvern/client/types/file_upload_block.py
index 9cc020147..79a16e8cc 100644
--- a/skyvern/client/types/file_upload_block.py
+++ b/skyvern/client/types/file_upload_block.py
@@ -45,16 +45,8 @@ class FileUploadBlock(UniversalBaseModel):
sftp_private_key_passphrase: typing.Optional[str] = None
sftp_remote_path: typing.Optional[str] = None
sftp_host_key: typing.Optional[str] = None
- prompt: typing.Optional[str] = pydantic.Field(default=None)
- """
- Optional natural-language control over which downloaded files are uploaded; empty means upload all.
- """
-
+ prompt: typing.Optional[str] = None
path: typing.Optional[str] = None
- continue_on_empty: typing.Optional[bool] = pydantic.Field(default=None)
- """
- When the run download directory has no files, allow the empty upload only after confirming no registered, browser-session, or alternate candidate downloads exist (False, default). Set True to always allow an empty upload.
- """
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
diff --git a/skyvern/client/types/file_upload_block_yaml.py b/skyvern/client/types/file_upload_block_yaml.py
index e03b20255..fe6d4efb1 100644
--- a/skyvern/client/types/file_upload_block_yaml.py
+++ b/skyvern/client/types/file_upload_block_yaml.py
@@ -43,11 +43,7 @@ class FileUploadBlockYaml(UniversalBaseModel):
sftp_private_key_passphrase: typing.Optional[str] = None
sftp_remote_path: typing.Optional[str] = None
sftp_host_key: typing.Optional[str] = None
- prompt: typing.Optional[str] = pydantic.Field(default=None)
- """
- Optional natural-language control over which downloaded files are uploaded; empty means upload all.
- """
-
+ prompt: typing.Optional[str] = None
path: typing.Optional[str] = None
if IS_PYDANTIC_V2:
diff --git a/skyvern/client/types/for_loop_block_loop_blocks_item.py b/skyvern/client/types/for_loop_block_loop_blocks_item.py
index 86d8d112f..ff67f4bda 100644
--- a/skyvern/client/types/for_loop_block_loop_blocks_item.py
+++ b/skyvern/client/types/for_loop_block_loop_blocks_item.py
@@ -14,9 +14,6 @@ from .ai_fallback_mode import AiFallbackMode
from .aws_secret_parameter import AwsSecretParameter
from .branch_condition import BranchCondition
from .code_block_parameters_item import CodeBlockParametersItem
-from .code_block_step import CodeBlockStep
-from .email_inbox_block_email_client import EmailInboxBlockEmailClient
-from .email_inbox_block_parameters_item import EmailInboxBlockParametersItem
from .extraction_block_data_schema import ExtractionBlockDataSchema
from .extraction_block_parameters_item import ExtractionBlockParametersItem
from .file_download_block_data_schema import FileDownloadBlockDataSchema
@@ -36,11 +33,8 @@ from .login_block_parameters_item import LoginBlockParametersItem
from .navigation_block_data_schema import NavigationBlockDataSchema
from .navigation_block_parameters_item import NavigationBlockParametersItem
from .output_parameter import OutputParameter
-from .pdf_fill_block_parameters_item import PdfFillBlockParametersItem
-from .pdf_fill_block_payload import PdfFillBlockPayload
from .print_page_block_parameters_item import PrintPageBlockParametersItem
from .run_engine import RunEngine
-from .split_pdf_block_parameters_item import SplitPdfBlockParametersItem
from .task_block_data_schema import TaskBlockDataSchema
from .task_block_parameters_item import TaskBlockParametersItem
from .text_prompt_block_parameters_item import TextPromptBlockParametersItem
@@ -109,8 +103,6 @@ class ForLoopBlockLoopBlocksItem_Code(UniversalBaseModel):
next_loop_on_failure: typing.Optional[bool] = None
code: str
parameters: typing.Optional[typing.List[CodeBlockParametersItem]] = None
- prompt: typing.Optional[str] = None
- steps: typing.Optional[typing.List[CodeBlockStep]] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -166,37 +158,6 @@ class ForLoopBlockLoopBlocksItem_DownloadToS3(UniversalBaseModel):
extra = pydantic.Extra.allow
-class ForLoopBlockLoopBlocksItem_EmailInbox(UniversalBaseModel):
- block_type: typing.Literal["email_inbox"] = "email_inbox"
- label: str
- next_block_label: typing.Optional[str] = None
- output_parameter: OutputParameter
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- disable_cache: typing.Optional[bool] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- email_client: EmailInboxBlockEmailClient
- credential_id: typing.Optional[str] = None
- folder: typing.Optional[str] = None
- prompt: typing.Optional[str] = None
- sender: typing.Optional[str] = None
- subject: typing.Optional[str] = None
- newer_than_days: typing.Optional[int] = None
- max_results: typing.Optional[int] = None
- include_body: typing.Optional[bool] = None
- parameters: typing.Optional[typing.List[EmailInboxBlockParametersItem]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
class ForLoopBlockLoopBlocksItem_Extraction(UniversalBaseModel):
block_type: typing.Literal["extraction"] = "extraction"
label: str
@@ -301,17 +262,7 @@ class ForLoopBlockLoopBlocksItem_FileUpload(UniversalBaseModel):
azure_blob_container_name: typing.Optional[str] = None
google_credential_id: typing.Optional[str] = None
google_drive_folder_id: typing.Optional[str] = None
- sftp_host: typing.Optional[str] = None
- sftp_port: typing.Optional[int] = None
- sftp_username: typing.Optional[str] = None
- sftp_password: typing.Optional[str] = None
- sftp_private_key: typing.Optional[str] = None
- sftp_private_key_passphrase: typing.Optional[str] = None
- sftp_remote_path: typing.Optional[str] = None
- sftp_host_key: typing.Optional[str] = None
- prompt: typing.Optional[str] = None
path: typing.Optional[str] = None
- continue_on_empty: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -491,7 +442,6 @@ class ForLoopBlockLoopBlocksItem_HttpRequest(UniversalBaseModel):
follow_redirects: typing.Optional[bool] = None
download_filename: typing.Optional[str] = None
save_response_as_file: typing.Optional[bool] = None
- secret_response_paths: typing.Optional[typing.List[str]] = None
parameters: typing.Optional[typing.List[HttpRequestBlockParametersItem]] = None
if IS_PYDANTIC_V2:
@@ -639,32 +589,6 @@ class ForLoopBlockLoopBlocksItem_Navigation(UniversalBaseModel):
extra = pydantic.Extra.allow
-class ForLoopBlockLoopBlocksItem_PdfFill(UniversalBaseModel):
- block_type: typing.Literal["pdf_fill"] = "pdf_fill"
- label: str
- next_block_label: typing.Optional[str] = None
- output_parameter: OutputParameter
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- disable_cache: typing.Optional[bool] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- file_url: str
- prompt: str
- payload: typing.Optional[PdfFillBlockPayload] = None
- llm_key: typing.Optional[str] = None
- parameters: typing.Optional[typing.List[PdfFillBlockParametersItem]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
class ForLoopBlockLoopBlocksItem_PdfParser(UniversalBaseModel):
block_type: typing.Literal["pdf_parser"] = "pdf_parser"
label: str
@@ -745,31 +669,6 @@ class ForLoopBlockLoopBlocksItem_SendEmail(UniversalBaseModel):
extra = pydantic.Extra.allow
-class ForLoopBlockLoopBlocksItem_SplitPdf(UniversalBaseModel):
- block_type: typing.Literal["split_pdf"] = "split_pdf"
- label: str
- next_block_label: typing.Optional[str] = None
- output_parameter: OutputParameter
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- disable_cache: typing.Optional[bool] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- file_url: str
- prompt: str
- llm_key: typing.Optional[str] = None
- parameters: typing.Optional[typing.List[SplitPdfBlockParametersItem]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
class ForLoopBlockLoopBlocksItem_Task(UniversalBaseModel):
block_type: typing.Literal["task"] = "task"
label: str
@@ -917,7 +816,6 @@ class ForLoopBlockLoopBlocksItem_Validation(UniversalBaseModel):
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
include_extracted_text: typing.Optional[bool] = None
- without_page_information: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -1013,7 +911,6 @@ ForLoopBlockLoopBlocksItem = typing.Union[
ForLoopBlockLoopBlocksItem_Code,
ForLoopBlockLoopBlocksItem_Conditional,
ForLoopBlockLoopBlocksItem_DownloadToS3,
- ForLoopBlockLoopBlocksItem_EmailInbox,
ForLoopBlockLoopBlocksItem_Extraction,
ForLoopBlockLoopBlocksItem_FileDownload,
ForLoopBlockLoopBlocksItem_FileUpload,
@@ -1026,11 +923,9 @@ ForLoopBlockLoopBlocksItem = typing.Union[
ForLoopBlockLoopBlocksItem_HumanInteraction,
ForLoopBlockLoopBlocksItem_Login,
ForLoopBlockLoopBlocksItem_Navigation,
- ForLoopBlockLoopBlocksItem_PdfFill,
ForLoopBlockLoopBlocksItem_PdfParser,
ForLoopBlockLoopBlocksItem_PrintPage,
ForLoopBlockLoopBlocksItem_SendEmail,
- ForLoopBlockLoopBlocksItem_SplitPdf,
ForLoopBlockLoopBlocksItem_Task,
ForLoopBlockLoopBlocksItem_TaskV2,
ForLoopBlockLoopBlocksItem_TextPrompt,
@@ -1044,7 +939,6 @@ from .while_loop_block_loop_blocks_item import WhileLoopBlockLoopBlocksItem # n
update_forward_refs(ForLoopBlockLoopBlocksItem_Action)
update_forward_refs(ForLoopBlockLoopBlocksItem_Code)
-update_forward_refs(ForLoopBlockLoopBlocksItem_EmailInbox)
update_forward_refs(ForLoopBlockLoopBlocksItem_Extraction)
update_forward_refs(ForLoopBlockLoopBlocksItem_FileDownload)
update_forward_refs(ForLoopBlockLoopBlocksItem_ForLoop)
@@ -1055,9 +949,7 @@ update_forward_refs(ForLoopBlockLoopBlocksItem_HttpRequest)
update_forward_refs(ForLoopBlockLoopBlocksItem_HumanInteraction)
update_forward_refs(ForLoopBlockLoopBlocksItem_Login)
update_forward_refs(ForLoopBlockLoopBlocksItem_Navigation)
-update_forward_refs(ForLoopBlockLoopBlocksItem_PdfFill)
update_forward_refs(ForLoopBlockLoopBlocksItem_PrintPage)
-update_forward_refs(ForLoopBlockLoopBlocksItem_SplitPdf)
update_forward_refs(ForLoopBlockLoopBlocksItem_Task)
update_forward_refs(ForLoopBlockLoopBlocksItem_TextPrompt)
update_forward_refs(ForLoopBlockLoopBlocksItem_Validation)
diff --git a/skyvern/client/types/for_loop_block_loop_over.py b/skyvern/client/types/for_loop_block_loop_over.py
index 65c6cd0d0..8da93d7d1 100644
--- a/skyvern/client/types/for_loop_block_loop_over.py
+++ b/skyvern/client/types/for_loop_block_loop_over.py
@@ -183,8 +183,6 @@ class ForLoopBlockLoopOver_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/for_loop_block_yaml_loop_blocks_item.py b/skyvern/client/types/for_loop_block_yaml_loop_blocks_item.py
index 4eaf9e12b..428623ff4 100644
--- a/skyvern/client/types/for_loop_block_yaml_loop_blocks_item.py
+++ b/skyvern/client/types/for_loop_block_yaml_loop_blocks_item.py
@@ -11,14 +11,11 @@ from ..core.serialization import FieldMetadata
from .ai_fallback_mode import AiFallbackMode
from .branch_condition_yaml import BranchConditionYaml
from .branch_criteria_yaml import BranchCriteriaYaml
-from .code_block_step_yaml import CodeBlockStepYaml
-from .email_inbox_block_yaml_email_client import EmailInboxBlockYamlEmailClient
from .extraction_block_yaml_data_schema import ExtractionBlockYamlDataSchema
from .file_storage_type import FileStorageType
from .file_type import FileType
from .for_loop_block_yaml_data_schema import ForLoopBlockYamlDataSchema
from .google_sheets_write_block_yaml_write_mode import GoogleSheetsWriteBlockYamlWriteMode
-from .pdf_fill_block_yaml_payload import PdfFillBlockYamlPayload
from .pdf_format import PdfFormat
from .run_engine import RunEngine
from .task_block_yaml_data_schema import TaskBlockYamlDataSchema
@@ -121,8 +118,6 @@ class ForLoopBlockYamlLoopBlocksItem_Code(UniversalBaseModel):
next_loop_on_failure: typing.Optional[bool] = None
code: str
parameter_keys: typing.Optional[typing.List[str]] = None
- prompt: typing.Optional[str] = None
- steps: typing.Optional[typing.List[CodeBlockStepYaml]] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -216,15 +211,6 @@ class ForLoopBlockYamlLoopBlocksItem_FileUpload(UniversalBaseModel):
azure_folder_path: typing.Optional[str] = None
google_credential_id: typing.Optional[str] = None
google_drive_folder_id: typing.Optional[str] = None
- sftp_host: typing.Optional[str] = None
- sftp_port: typing.Optional[int] = None
- sftp_username: typing.Optional[str] = None
- sftp_password: typing.Optional[str] = None
- sftp_private_key: typing.Optional[str] = None
- sftp_private_key_passphrase: typing.Optional[str] = None
- sftp_remote_path: typing.Optional[str] = None
- sftp_host_key: typing.Optional[str] = None
- prompt: typing.Optional[str] = None
path: typing.Optional[str] = None
if IS_PYDANTIC_V2:
@@ -300,7 +286,6 @@ class ForLoopBlockYamlLoopBlocksItem_Validation(UniversalBaseModel):
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
parameter_keys: typing.Optional[typing.List[str]] = None
disable_cache: typing.Optional[bool] = None
- without_page_information: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -606,7 +591,6 @@ class ForLoopBlockYamlLoopBlocksItem_HttpRequest(UniversalBaseModel):
follow_redirects: typing.Optional[bool] = None
download_filename: typing.Optional[str] = None
save_response_as_file: typing.Optional[bool] = None
- secret_response_paths: typing.Optional[typing.List[str]] = None
parameter_keys: typing.Optional[typing.List[str]] = None
if IS_PYDANTIC_V2:
@@ -664,53 +648,6 @@ class ForLoopBlockYamlLoopBlocksItem_PrintPage(UniversalBaseModel):
extra = pydantic.Extra.allow
-class ForLoopBlockYamlLoopBlocksItem_PdfFill(UniversalBaseModel):
- block_type: typing.Literal["pdf_fill"] = "pdf_fill"
- label: str
- next_block_label: typing.Optional[str] = None
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- file_url: str
- prompt: str
- payload: typing.Optional[PdfFillBlockYamlPayload] = None
- llm_key: typing.Optional[str] = None
- parameter_keys: typing.Optional[typing.List[str]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class ForLoopBlockYamlLoopBlocksItem_SplitPdf(UniversalBaseModel):
- block_type: typing.Literal["split_pdf"] = "split_pdf"
- label: str
- next_block_label: typing.Optional[str] = None
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- file_url: str
- prompt: str
- llm_key: typing.Optional[str] = None
- parameter_keys: typing.Optional[typing.List[str]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
class ForLoopBlockYamlLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):
block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"
label: str
@@ -761,35 +698,6 @@ class ForLoopBlockYamlLoopBlocksItem_GoogleSheetsRead(UniversalBaseModel):
extra = pydantic.Extra.allow
-class ForLoopBlockYamlLoopBlocksItem_EmailInbox(UniversalBaseModel):
- block_type: typing.Literal["email_inbox"] = "email_inbox"
- label: str
- next_block_label: typing.Optional[str] = None
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- email_client: EmailInboxBlockYamlEmailClient
- credential_id: typing.Optional[str] = None
- folder: typing.Optional[str] = None
- prompt: typing.Optional[str] = None
- sender: typing.Optional[str] = None
- subject: typing.Optional[str] = None
- newer_than_days: typing.Optional[int] = None
- max_results: typing.Optional[int] = None
- include_body: typing.Optional[bool] = None
- parameter_keys: typing.Optional[typing.List[str]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
class ForLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite(UniversalBaseModel):
block_type: typing.Literal["google_sheets_write"] = "google_sheets_write"
label: str
@@ -843,11 +751,8 @@ ForLoopBlockYamlLoopBlocksItem = typing.Union[
ForLoopBlockYamlLoopBlocksItem_HttpRequest,
ForLoopBlockYamlLoopBlocksItem_Conditional,
ForLoopBlockYamlLoopBlocksItem_PrintPage,
- ForLoopBlockYamlLoopBlocksItem_PdfFill,
- ForLoopBlockYamlLoopBlocksItem_SplitPdf,
ForLoopBlockYamlLoopBlocksItem_WorkflowTrigger,
ForLoopBlockYamlLoopBlocksItem_GoogleSheetsRead,
- ForLoopBlockYamlLoopBlocksItem_EmailInbox,
ForLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite,
]
from .while_loop_block_yaml_loop_blocks_item import WhileLoopBlockYamlLoopBlocksItem # noqa: E402, F401, I001
diff --git a/skyvern/client/types/google_sheets_read_block_parameters_item.py b/skyvern/client/types/google_sheets_read_block_parameters_item.py
index b429dd264..d06af1366 100644
--- a/skyvern/client/types/google_sheets_read_block_parameters_item.py
+++ b/skyvern/client/types/google_sheets_read_block_parameters_item.py
@@ -183,8 +183,6 @@ class GoogleSheetsReadBlockParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/google_sheets_write_block_parameters_item.py b/skyvern/client/types/google_sheets_write_block_parameters_item.py
index 221ee13c9..0497c61a0 100644
--- a/skyvern/client/types/google_sheets_write_block_parameters_item.py
+++ b/skyvern/client/types/google_sheets_write_block_parameters_item.py
@@ -183,8 +183,6 @@ class GoogleSheetsWriteBlockParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/http_request_block.py b/skyvern/client/types/http_request_block.py
index f9fa26d4c..4fc1e6e8f 100644
--- a/skyvern/client/types/http_request_block.py
+++ b/skyvern/client/types/http_request_block.py
@@ -36,7 +36,6 @@ class HttpRequestBlock(UniversalBaseModel):
follow_redirects: typing.Optional[bool] = None
download_filename: typing.Optional[str] = None
save_response_as_file: typing.Optional[bool] = None
- secret_response_paths: typing.Optional[typing.List[str]] = None
parameters: typing.Optional[typing.List[HttpRequestBlockParametersItem]] = None
if IS_PYDANTIC_V2:
diff --git a/skyvern/client/types/http_request_block_parameters_item.py b/skyvern/client/types/http_request_block_parameters_item.py
index 9e74ba7ad..aa6bec5e6 100644
--- a/skyvern/client/types/http_request_block_parameters_item.py
+++ b/skyvern/client/types/http_request_block_parameters_item.py
@@ -183,8 +183,6 @@ class HttpRequestBlockParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/http_request_block_yaml.py b/skyvern/client/types/http_request_block_yaml.py
index 93af114f4..b2bd6ae15 100644
--- a/skyvern/client/types/http_request_block_yaml.py
+++ b/skyvern/client/types/http_request_block_yaml.py
@@ -30,7 +30,6 @@ class HttpRequestBlockYaml(UniversalBaseModel):
follow_redirects: typing.Optional[bool] = None
download_filename: typing.Optional[str] = None
save_response_as_file: typing.Optional[bool] = None
- secret_response_paths: typing.Optional[typing.List[str]] = None
parameter_keys: typing.Optional[typing.List[str]] = None
if IS_PYDANTIC_V2:
diff --git a/skyvern/client/types/human_interaction_block_parameters_item.py b/skyvern/client/types/human_interaction_block_parameters_item.py
index 55ff237cb..f9e760ff0 100644
--- a/skyvern/client/types/human_interaction_block_parameters_item.py
+++ b/skyvern/client/types/human_interaction_block_parameters_item.py
@@ -183,8 +183,6 @@ class HumanInteractionBlockParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/login_block_parameters_item.py b/skyvern/client/types/login_block_parameters_item.py
index 5159dbde7..37f026ceb 100644
--- a/skyvern/client/types/login_block_parameters_item.py
+++ b/skyvern/client/types/login_block_parameters_item.py
@@ -183,8 +183,6 @@ class LoginBlockParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/navigation_block_parameters_item.py b/skyvern/client/types/navigation_block_parameters_item.py
index bf07f06dc..ebd7d01ad 100644
--- a/skyvern/client/types/navigation_block_parameters_item.py
+++ b/skyvern/client/types/navigation_block_parameters_item.py
@@ -183,8 +183,6 @@ class NavigationBlockParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/non_empty_credit_card_credential.py b/skyvern/client/types/non_empty_credit_card_credential.py
index 44b9e4147..6f8ee4c95 100644
--- a/skyvern/client/types/non_empty_credit_card_credential.py
+++ b/skyvern/client/types/non_empty_credit_card_credential.py
@@ -4,7 +4,6 @@ import typing
import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-from .credit_card_billing_address import CreditCardBillingAddress
class NonEmptyCreditCardCredential(UniversalBaseModel):
@@ -42,26 +41,6 @@ class NonEmptyCreditCardCredential(UniversalBaseModel):
The name of the card holder (must not be empty)
"""
- billing_address: typing.Optional[CreditCardBillingAddress] = pydantic.Field(default=None)
- """
- Optional billing address associated with the card
- """
-
- billing_email: typing.Optional[str] = pydantic.Field(default=None)
- """
- Optional billing email address
- """
-
- billing_phone: typing.Optional[str] = pydantic.Field(default=None)
- """
- Optional billing phone number
- """
-
- metadata: typing.Optional[typing.Dict[str, typing.Optional[str]]] = pydantic.Field(default=None)
- """
- Optional additional credit card metadata fields
- """
-
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:
diff --git a/skyvern/client/types/pdf_fill_block.py b/skyvern/client/types/pdf_fill_block.py
deleted file mode 100644
index bbc281067..000000000
--- a/skyvern/client/types/pdf_fill_block.py
+++ /dev/null
@@ -1,49 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-from __future__ import annotations
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel, update_forward_refs
-from .output_parameter import OutputParameter
-from .pdf_fill_block_parameters_item import PdfFillBlockParametersItem
-from .pdf_fill_block_payload import PdfFillBlockPayload
-
-
-class PdfFillBlock(UniversalBaseModel):
- label: str = pydantic.Field()
- """
- Author-facing identifier for a block; unique within a workflow.
- """
-
- next_block_label: typing.Optional[str] = pydantic.Field(default=None)
- """
- Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted.
- """
-
- output_parameter: OutputParameter
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- disable_cache: typing.Optional[bool] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- file_url: str
- prompt: str
- payload: typing.Optional[PdfFillBlockPayload] = None
- llm_key: typing.Optional[str] = None
- parameters: typing.Optional[typing.List[PdfFillBlockParametersItem]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-from .context_parameter import ContextParameter # noqa: E402, F401, I001
-
-update_forward_refs(PdfFillBlock)
diff --git a/skyvern/client/types/pdf_fill_block_parameters_item.py b/skyvern/client/types/pdf_fill_block_parameters_item.py
deleted file mode 100644
index 341525b84..000000000
--- a/skyvern/client/types/pdf_fill_block_parameters_item.py
+++ /dev/null
@@ -1,279 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-from __future__ import annotations
-
-import datetime as dt
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel, update_forward_refs
-from .context_parameter_value import ContextParameterValue
-from .workflow_parameter_default_value import WorkflowParameterDefaultValue
-from .workflow_parameter_type import WorkflowParameterType
-
-
-class PdfFillBlockParametersItem_AwsSecret(UniversalBaseModel):
- parameter_type: typing.Literal["aws_secret"] = "aws_secret"
- key: str
- description: typing.Optional[str] = None
- aws_secret_parameter_id: str
- workflow_id: str
- aws_key: str
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class PdfFillBlockParametersItem_AzureSecret(UniversalBaseModel):
- parameter_type: typing.Literal["azure_secret"] = "azure_secret"
- key: str
- description: typing.Optional[str] = None
- azure_secret_parameter_id: str
- workflow_id: str
- azure_key: str
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class PdfFillBlockParametersItem_AzureVaultCredential(UniversalBaseModel):
- parameter_type: typing.Literal["azure_vault_credential"] = "azure_vault_credential"
- key: str
- description: typing.Optional[str] = None
- azure_vault_credential_parameter_id: str
- workflow_id: str
- vault_name: str
- username_key: str
- password_key: str
- totp_secret_key: typing.Optional[str] = None
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class PdfFillBlockParametersItem_BitwardenCreditCardData(UniversalBaseModel):
- parameter_type: typing.Literal["bitwarden_credit_card_data"] = "bitwarden_credit_card_data"
- key: str
- description: typing.Optional[str] = None
- bitwarden_credit_card_data_parameter_id: str
- workflow_id: str
- bitwarden_client_id_aws_secret_key: str
- bitwarden_client_secret_aws_secret_key: str
- bitwarden_master_password_aws_secret_key: str
- bitwarden_collection_id: str
- bitwarden_item_id: str
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class PdfFillBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel):
- parameter_type: typing.Literal["bitwarden_login_credential"] = "bitwarden_login_credential"
- key: str
- description: typing.Optional[str] = None
- bitwarden_login_credential_parameter_id: str
- workflow_id: str
- bitwarden_client_id_aws_secret_key: str
- bitwarden_client_secret_aws_secret_key: str
- bitwarden_master_password_aws_secret_key: str
- url_parameter_key: typing.Optional[str] = None
- bitwarden_collection_id: typing.Optional[str] = None
- bitwarden_item_id: typing.Optional[str] = None
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class PdfFillBlockParametersItem_BitwardenSensitiveInformation(UniversalBaseModel):
- parameter_type: typing.Literal["bitwarden_sensitive_information"] = "bitwarden_sensitive_information"
- key: str
- description: typing.Optional[str] = None
- bitwarden_sensitive_information_parameter_id: str
- workflow_id: str
- bitwarden_client_id_aws_secret_key: str
- bitwarden_client_secret_aws_secret_key: str
- bitwarden_master_password_aws_secret_key: str
- bitwarden_collection_id: str
- bitwarden_identity_key: str
- bitwarden_identity_fields: typing.List[str]
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class PdfFillBlockParametersItem_Context(UniversalBaseModel):
- parameter_type: typing.Literal["context"] = "context"
- key: str
- description: typing.Optional[str] = None
- source: "ContextParameterSource"
- value: typing.Optional[ContextParameterValue] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-from .context_parameter import ContextParameter # noqa: E402, F401, I001
-from .context_parameter_source import ContextParameterSource # noqa: E402, F401, I001
-
-
-class PdfFillBlockParametersItem_Credential(UniversalBaseModel):
- parameter_type: typing.Literal["credential"] = "credential"
- key: str
- description: typing.Optional[str] = None
- credential_parameter_id: str
- workflow_id: str
- credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class PdfFillBlockParametersItem_Onepassword(UniversalBaseModel):
- parameter_type: typing.Literal["onepassword"] = "onepassword"
- key: str
- description: typing.Optional[str] = None
- onepassword_credential_parameter_id: str
- workflow_id: str
- vault_id: str
- item_id: str
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class PdfFillBlockParametersItem_Output(UniversalBaseModel):
- parameter_type: typing.Literal["output"] = "output"
- key: str
- description: typing.Optional[str] = None
- output_parameter_id: str
- workflow_id: str
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class PdfFillBlockParametersItem_Workflow(UniversalBaseModel):
- parameter_type: typing.Literal["workflow"] = "workflow"
- key: str
- description: typing.Optional[str] = None
- workflow_parameter_id: str
- workflow_parameter_type: WorkflowParameterType
- workflow_id: str
- default_value: typing.Optional[WorkflowParameterDefaultValue] = None
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-PdfFillBlockParametersItem = typing.Union[
- PdfFillBlockParametersItem_AwsSecret,
- PdfFillBlockParametersItem_AzureSecret,
- PdfFillBlockParametersItem_AzureVaultCredential,
- PdfFillBlockParametersItem_BitwardenCreditCardData,
- PdfFillBlockParametersItem_BitwardenLoginCredential,
- PdfFillBlockParametersItem_BitwardenSensitiveInformation,
- PdfFillBlockParametersItem_Context,
- PdfFillBlockParametersItem_Credential,
- PdfFillBlockParametersItem_Onepassword,
- PdfFillBlockParametersItem_Output,
- PdfFillBlockParametersItem_Workflow,
-]
-update_forward_refs(PdfFillBlockParametersItem_Context)
diff --git a/skyvern/client/types/pdf_fill_block_payload.py b/skyvern/client/types/pdf_fill_block_payload.py
deleted file mode 100644
index 8c8f5acdd..000000000
--- a/skyvern/client/types/pdf_fill_block_payload.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-PdfFillBlockPayload = typing.Union[
- typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str
-]
diff --git a/skyvern/client/types/pdf_fill_block_yaml.py b/skyvern/client/types/pdf_fill_block_yaml.py
deleted file mode 100644
index 385ba3b14..000000000
--- a/skyvern/client/types/pdf_fill_block_yaml.py
+++ /dev/null
@@ -1,38 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-from .pdf_fill_block_yaml_payload import PdfFillBlockYamlPayload
-
-
-class PdfFillBlockYaml(UniversalBaseModel):
- label: str = pydantic.Field()
- """
- Author-facing identifier; must be unique per workflow.
- """
-
- next_block_label: typing.Optional[str] = pydantic.Field(default=None)
- """
- Optional pointer to the label of the next block. When omitted, it will default to sequential order. See [[s-4bnl]].
- """
-
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- file_url: str
- prompt: str
- payload: typing.Optional[PdfFillBlockYamlPayload] = None
- llm_key: typing.Optional[str] = None
- parameter_keys: typing.Optional[typing.List[str]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/pdf_fill_block_yaml_payload.py b/skyvern/client/types/pdf_fill_block_yaml_payload.py
deleted file mode 100644
index 4bc2a4fd9..000000000
--- a/skyvern/client/types/pdf_fill_block_yaml_payload.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-PdfFillBlockYamlPayload = typing.Union[
- typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str
-]
diff --git a/skyvern/client/types/print_page_block_parameters_item.py b/skyvern/client/types/print_page_block_parameters_item.py
index d1a279baa..4b50e99c2 100644
--- a/skyvern/client/types/print_page_block_parameters_item.py
+++ b/skyvern/client/types/print_page_block_parameters_item.py
@@ -183,8 +183,6 @@ class PrintPageBlockParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/run_tag_history_response.py b/skyvern/client/types/run_tag_history_response.py
deleted file mode 100644
index 7222c3224..000000000
--- a/skyvern/client/types/run_tag_history_response.py
+++ /dev/null
@@ -1,21 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-from .tag_history_item import TagHistoryItem
-
-
-class RunTagHistoryResponse(UniversalBaseModel):
- workflow_run_id: str
- events: typing.List[TagHistoryItem]
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/run_tags_batch_response.py b/skyvern/client/types/run_tags_batch_response.py
deleted file mode 100644
index 8e02ac9ab..000000000
--- a/skyvern/client/types/run_tags_batch_response.py
+++ /dev/null
@@ -1,28 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-from .tag_item import TagItem
-
-
-class RunTagsBatchResponse(UniversalBaseModel):
- """
- Response for the run-tags batch endpoint.
-
- Runs with no tags are present with an empty list so the frontend can
- distinguish "fetched, none set" from "not fetched" without a second call.
- Runs outside the caller's org are silently absent (no leakage).
- """
-
- run_tags: typing.Dict[str, typing.List[TagItem]]
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/run_tags_response.py b/skyvern/client/types/run_tags_response.py
deleted file mode 100644
index fb43dbb50..000000000
--- a/skyvern/client/types/run_tags_response.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-from .tag_response import TagResponse
-
-
-class RunTagsResponse(UniversalBaseModel):
- """
- Current tags for a workflow run.
- """
-
- workflow_run_id: str
- tags: typing.List[TagResponse]
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/run_type.py b/skyvern/client/types/run_type.py
deleted file mode 100644
index 29b8f40cb..000000000
--- a/skyvern/client/types/run_type.py
+++ /dev/null
@@ -1,8 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-RunType = typing.Union[
- typing.Literal["task_v1", "task_v2", "workflow_run", "openai_cua", "anthropic_cua", "ui_tars", "yutori_navigator"],
- typing.Any,
-]
diff --git a/skyvern/client/types/split_pdf_block.py b/skyvern/client/types/split_pdf_block.py
deleted file mode 100644
index 6516bf098..000000000
--- a/skyvern/client/types/split_pdf_block.py
+++ /dev/null
@@ -1,47 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-from __future__ import annotations
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel, update_forward_refs
-from .output_parameter import OutputParameter
-from .split_pdf_block_parameters_item import SplitPdfBlockParametersItem
-
-
-class SplitPdfBlock(UniversalBaseModel):
- label: str = pydantic.Field()
- """
- Author-facing identifier for a block; unique within a workflow.
- """
-
- next_block_label: typing.Optional[str] = pydantic.Field(default=None)
- """
- Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted.
- """
-
- output_parameter: OutputParameter
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- disable_cache: typing.Optional[bool] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- file_url: str
- prompt: str
- llm_key: typing.Optional[str] = None
- parameters: typing.Optional[typing.List[SplitPdfBlockParametersItem]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-from .context_parameter import ContextParameter # noqa: E402, F401, I001
-
-update_forward_refs(SplitPdfBlock)
diff --git a/skyvern/client/types/split_pdf_block_parameters_item.py b/skyvern/client/types/split_pdf_block_parameters_item.py
deleted file mode 100644
index eb61be434..000000000
--- a/skyvern/client/types/split_pdf_block_parameters_item.py
+++ /dev/null
@@ -1,279 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-from __future__ import annotations
-
-import datetime as dt
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel, update_forward_refs
-from .context_parameter_value import ContextParameterValue
-from .workflow_parameter_default_value import WorkflowParameterDefaultValue
-from .workflow_parameter_type import WorkflowParameterType
-
-
-class SplitPdfBlockParametersItem_AwsSecret(UniversalBaseModel):
- parameter_type: typing.Literal["aws_secret"] = "aws_secret"
- key: str
- description: typing.Optional[str] = None
- aws_secret_parameter_id: str
- workflow_id: str
- aws_key: str
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class SplitPdfBlockParametersItem_AzureSecret(UniversalBaseModel):
- parameter_type: typing.Literal["azure_secret"] = "azure_secret"
- key: str
- description: typing.Optional[str] = None
- azure_secret_parameter_id: str
- workflow_id: str
- azure_key: str
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class SplitPdfBlockParametersItem_AzureVaultCredential(UniversalBaseModel):
- parameter_type: typing.Literal["azure_vault_credential"] = "azure_vault_credential"
- key: str
- description: typing.Optional[str] = None
- azure_vault_credential_parameter_id: str
- workflow_id: str
- vault_name: str
- username_key: str
- password_key: str
- totp_secret_key: typing.Optional[str] = None
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class SplitPdfBlockParametersItem_BitwardenCreditCardData(UniversalBaseModel):
- parameter_type: typing.Literal["bitwarden_credit_card_data"] = "bitwarden_credit_card_data"
- key: str
- description: typing.Optional[str] = None
- bitwarden_credit_card_data_parameter_id: str
- workflow_id: str
- bitwarden_client_id_aws_secret_key: str
- bitwarden_client_secret_aws_secret_key: str
- bitwarden_master_password_aws_secret_key: str
- bitwarden_collection_id: str
- bitwarden_item_id: str
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class SplitPdfBlockParametersItem_BitwardenLoginCredential(UniversalBaseModel):
- parameter_type: typing.Literal["bitwarden_login_credential"] = "bitwarden_login_credential"
- key: str
- description: typing.Optional[str] = None
- bitwarden_login_credential_parameter_id: str
- workflow_id: str
- bitwarden_client_id_aws_secret_key: str
- bitwarden_client_secret_aws_secret_key: str
- bitwarden_master_password_aws_secret_key: str
- url_parameter_key: typing.Optional[str] = None
- bitwarden_collection_id: typing.Optional[str] = None
- bitwarden_item_id: typing.Optional[str] = None
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class SplitPdfBlockParametersItem_BitwardenSensitiveInformation(UniversalBaseModel):
- parameter_type: typing.Literal["bitwarden_sensitive_information"] = "bitwarden_sensitive_information"
- key: str
- description: typing.Optional[str] = None
- bitwarden_sensitive_information_parameter_id: str
- workflow_id: str
- bitwarden_client_id_aws_secret_key: str
- bitwarden_client_secret_aws_secret_key: str
- bitwarden_master_password_aws_secret_key: str
- bitwarden_collection_id: str
- bitwarden_identity_key: str
- bitwarden_identity_fields: typing.List[str]
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class SplitPdfBlockParametersItem_Context(UniversalBaseModel):
- parameter_type: typing.Literal["context"] = "context"
- key: str
- description: typing.Optional[str] = None
- source: "ContextParameterSource"
- value: typing.Optional[ContextParameterValue] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-from .context_parameter import ContextParameter # noqa: E402, F401, I001
-from .context_parameter_source import ContextParameterSource # noqa: E402, F401, I001
-
-
-class SplitPdfBlockParametersItem_Credential(UniversalBaseModel):
- parameter_type: typing.Literal["credential"] = "credential"
- key: str
- description: typing.Optional[str] = None
- credential_parameter_id: str
- workflow_id: str
- credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class SplitPdfBlockParametersItem_Onepassword(UniversalBaseModel):
- parameter_type: typing.Literal["onepassword"] = "onepassword"
- key: str
- description: typing.Optional[str] = None
- onepassword_credential_parameter_id: str
- workflow_id: str
- vault_id: str
- item_id: str
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class SplitPdfBlockParametersItem_Output(UniversalBaseModel):
- parameter_type: typing.Literal["output"] = "output"
- key: str
- description: typing.Optional[str] = None
- output_parameter_id: str
- workflow_id: str
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class SplitPdfBlockParametersItem_Workflow(UniversalBaseModel):
- parameter_type: typing.Literal["workflow"] = "workflow"
- key: str
- description: typing.Optional[str] = None
- workflow_parameter_id: str
- workflow_parameter_type: WorkflowParameterType
- workflow_id: str
- default_value: typing.Optional[WorkflowParameterDefaultValue] = None
- created_at: dt.datetime
- modified_at: dt.datetime
- deleted_at: typing.Optional[dt.datetime] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-SplitPdfBlockParametersItem = typing.Union[
- SplitPdfBlockParametersItem_AwsSecret,
- SplitPdfBlockParametersItem_AzureSecret,
- SplitPdfBlockParametersItem_AzureVaultCredential,
- SplitPdfBlockParametersItem_BitwardenCreditCardData,
- SplitPdfBlockParametersItem_BitwardenLoginCredential,
- SplitPdfBlockParametersItem_BitwardenSensitiveInformation,
- SplitPdfBlockParametersItem_Context,
- SplitPdfBlockParametersItem_Credential,
- SplitPdfBlockParametersItem_Onepassword,
- SplitPdfBlockParametersItem_Output,
- SplitPdfBlockParametersItem_Workflow,
-]
-update_forward_refs(SplitPdfBlockParametersItem_Context)
diff --git a/skyvern/client/types/split_pdf_block_yaml.py b/skyvern/client/types/split_pdf_block_yaml.py
deleted file mode 100644
index e6495a2e8..000000000
--- a/skyvern/client/types/split_pdf_block_yaml.py
+++ /dev/null
@@ -1,36 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-
-
-class SplitPdfBlockYaml(UniversalBaseModel):
- label: str = pydantic.Field()
- """
- Author-facing identifier; must be unique per workflow.
- """
-
- next_block_label: typing.Optional[str] = pydantic.Field(default=None)
- """
- Optional pointer to the label of the next block. When omitted, it will default to sequential order. See [[s-4bnl]].
- """
-
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- file_url: str
- prompt: str
- llm_key: typing.Optional[str] = None
- parameter_keys: typing.Optional[typing.List[str]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/tag_apply_request.py b/skyvern/client/types/tag_apply_request.py
deleted file mode 100644
index 6929fd54b..000000000
--- a/skyvern/client/types/tag_apply_request.py
+++ /dev/null
@@ -1,39 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-from .tag_delete_input import TagDeleteInput
-from .tag_input import TagInput
-
-
-class TagApplyRequest(UniversalBaseModel):
- """
- Body for ``POST /v1/workflows/{wpid}/tags``. Either field may be empty (both
- empty is a no-op). On a same-identity collision, set wins over delete.
- """
-
- tags: typing.Optional[typing.List[TagInput]] = pydantic.Field(default=None)
- """
- Tags to set (overwrite). List of {key?, value} objects.
- """
-
- tags_to_delete: typing.Optional[typing.List[TagDeleteInput]] = pydantic.Field(default=None)
- """
- Tags to soft-delete. List of {key?, value?} targets.
- """
-
- colors: typing.Optional[typing.Dict[str, typing.Optional[str]]] = pydantic.Field(default=None)
- """
- Optional map of grouped tag key to palette color name for the value being set. Keys absent from this map keep their existing color or receive a random palette color.
- """
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/tag_key_delete_response.py b/skyvern/client/types/tag_key_delete_response.py
index 1f8453eb4..92717e45b 100644
--- a/skyvern/client/types/tag_key_delete_response.py
+++ b/skyvern/client/types/tag_key_delete_response.py
@@ -13,8 +13,6 @@ class TagKeyDeleteResponse(UniversalBaseModel):
key: str
removed_from_workflow_count: int
- removed_from_run_count: typing.Optional[int] = None
- removed_count: typing.Optional[int] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
diff --git a/skyvern/client/types/tag_value.py b/skyvern/client/types/tag_value.py
deleted file mode 100644
index 88215208c..000000000
--- a/skyvern/client/types/tag_value.py
+++ /dev/null
@@ -1,30 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-
-
-class TagValue(UniversalBaseModel):
- """
- Tag-value color registry entry: the palette color assigned to a grouped
- (key, value) pair.
- """
-
- key: str
- value: str
- color: str
- workflow_count: typing.Optional[int] = pydantic.Field(default=None)
- """
- Number of non-deleted workflows currently carrying this (key, value) label.
- """
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/tag_value_delete_response.py b/skyvern/client/types/tag_value_delete_response.py
deleted file mode 100644
index 0100d7088..000000000
--- a/skyvern/client/types/tag_value_delete_response.py
+++ /dev/null
@@ -1,27 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-
-
-class TagValueDeleteResponse(UniversalBaseModel):
- """
- Response for ``DELETE /v1/tag-values/{key}``.
- """
-
- key: str
- value: str
- removed_from_workflow_count: int
- removed_from_run_count: typing.Optional[int] = None
- removed_count: typing.Optional[int] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/tag_value_rename_response.py b/skyvern/client/types/tag_value_rename_response.py
deleted file mode 100644
index 93bdddde9..000000000
--- a/skyvern/client/types/tag_value_rename_response.py
+++ /dev/null
@@ -1,27 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-import pydantic
-from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-
-
-class TagValueRenameResponse(UniversalBaseModel):
- """
- Response for ``PATCH /v1/tag-values/{key}/rename``: the renamed label with its
- carried-over color and the number of workflows re-tagged.
- """
-
- key: str
- value: str
- color: str
- renamed_workflow_count: int
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
diff --git a/skyvern/client/types/task_block_parameters_item.py b/skyvern/client/types/task_block_parameters_item.py
index 8584652d8..63ca5a120 100644
--- a/skyvern/client/types/task_block_parameters_item.py
+++ b/skyvern/client/types/task_block_parameters_item.py
@@ -183,8 +183,6 @@ class TaskBlockParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/text_prompt_block_parameters_item.py b/skyvern/client/types/text_prompt_block_parameters_item.py
index acda20725..e8bcf29d4 100644
--- a/skyvern/client/types/text_prompt_block_parameters_item.py
+++ b/skyvern/client/types/text_prompt_block_parameters_item.py
@@ -183,8 +183,6 @@ class TextPromptBlockParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/url_block_parameters_item.py b/skyvern/client/types/url_block_parameters_item.py
index 10b1be6ce..0ca3a0680 100644
--- a/skyvern/client/types/url_block_parameters_item.py
+++ b/skyvern/client/types/url_block_parameters_item.py
@@ -183,8 +183,6 @@ class UrlBlockParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/validation_block.py b/skyvern/client/types/validation_block.py
index aeb8a00ad..8b9869c65 100644
--- a/skyvern/client/types/validation_block.py
+++ b/skyvern/client/types/validation_block.py
@@ -50,7 +50,6 @@ class ValidationBlock(UniversalBaseModel):
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
include_extracted_text: typing.Optional[bool] = None
- without_page_information: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
diff --git a/skyvern/client/types/validation_block_parameters_item.py b/skyvern/client/types/validation_block_parameters_item.py
index 778de767d..05b929df4 100644
--- a/skyvern/client/types/validation_block_parameters_item.py
+++ b/skyvern/client/types/validation_block_parameters_item.py
@@ -183,8 +183,6 @@ class ValidationBlockParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/validation_block_yaml.py b/skyvern/client/types/validation_block_yaml.py
index 877a8fa46..ff9ba78a4 100644
--- a/skyvern/client/types/validation_block_yaml.py
+++ b/skyvern/client/types/validation_block_yaml.py
@@ -26,7 +26,6 @@ class ValidationBlockYaml(UniversalBaseModel):
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
parameter_keys: typing.Optional[typing.List[str]] = None
disable_cache: typing.Optional[bool] = None
- without_page_information: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
diff --git a/skyvern/client/types/wait_block_parameters_item.py b/skyvern/client/types/wait_block_parameters_item.py
index b50694eb7..9529dba88 100644
--- a/skyvern/client/types/wait_block_parameters_item.py
+++ b/skyvern/client/types/wait_block_parameters_item.py
@@ -183,8 +183,6 @@ class WaitBlockParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/while_loop_block_loop_blocks_item.py b/skyvern/client/types/while_loop_block_loop_blocks_item.py
index 786dcf93a..af7560111 100644
--- a/skyvern/client/types/while_loop_block_loop_blocks_item.py
+++ b/skyvern/client/types/while_loop_block_loop_blocks_item.py
@@ -14,9 +14,6 @@ from .ai_fallback_mode import AiFallbackMode
from .aws_secret_parameter import AwsSecretParameter
from .branch_condition import BranchCondition
from .code_block_parameters_item import CodeBlockParametersItem
-from .code_block_step import CodeBlockStep
-from .email_inbox_block_email_client import EmailInboxBlockEmailClient
-from .email_inbox_block_parameters_item import EmailInboxBlockParametersItem
from .extraction_block_data_schema import ExtractionBlockDataSchema
from .extraction_block_parameters_item import ExtractionBlockParametersItem
from .file_download_block_data_schema import FileDownloadBlockDataSchema
@@ -36,11 +33,8 @@ from .login_block_parameters_item import LoginBlockParametersItem
from .navigation_block_data_schema import NavigationBlockDataSchema
from .navigation_block_parameters_item import NavigationBlockParametersItem
from .output_parameter import OutputParameter
-from .pdf_fill_block_parameters_item import PdfFillBlockParametersItem
-from .pdf_fill_block_payload import PdfFillBlockPayload
from .print_page_block_parameters_item import PrintPageBlockParametersItem
from .run_engine import RunEngine
-from .split_pdf_block_parameters_item import SplitPdfBlockParametersItem
from .task_block_data_schema import TaskBlockDataSchema
from .task_block_parameters_item import TaskBlockParametersItem
from .text_prompt_block_parameters_item import TextPromptBlockParametersItem
@@ -109,8 +103,6 @@ class WhileLoopBlockLoopBlocksItem_Code(UniversalBaseModel):
next_loop_on_failure: typing.Optional[bool] = None
code: str
parameters: typing.Optional[typing.List[CodeBlockParametersItem]] = None
- prompt: typing.Optional[str] = None
- steps: typing.Optional[typing.List[CodeBlockStep]] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -166,37 +158,6 @@ class WhileLoopBlockLoopBlocksItem_DownloadToS3(UniversalBaseModel):
extra = pydantic.Extra.allow
-class WhileLoopBlockLoopBlocksItem_EmailInbox(UniversalBaseModel):
- block_type: typing.Literal["email_inbox"] = "email_inbox"
- label: str
- next_block_label: typing.Optional[str] = None
- output_parameter: OutputParameter
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- disable_cache: typing.Optional[bool] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- email_client: EmailInboxBlockEmailClient
- credential_id: typing.Optional[str] = None
- folder: typing.Optional[str] = None
- prompt: typing.Optional[str] = None
- sender: typing.Optional[str] = None
- subject: typing.Optional[str] = None
- newer_than_days: typing.Optional[int] = None
- max_results: typing.Optional[int] = None
- include_body: typing.Optional[bool] = None
- parameters: typing.Optional[typing.List[EmailInboxBlockParametersItem]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
class WhileLoopBlockLoopBlocksItem_Extraction(UniversalBaseModel):
block_type: typing.Literal["extraction"] = "extraction"
label: str
@@ -301,17 +262,7 @@ class WhileLoopBlockLoopBlocksItem_FileUpload(UniversalBaseModel):
azure_blob_container_name: typing.Optional[str] = None
google_credential_id: typing.Optional[str] = None
google_drive_folder_id: typing.Optional[str] = None
- sftp_host: typing.Optional[str] = None
- sftp_port: typing.Optional[int] = None
- sftp_username: typing.Optional[str] = None
- sftp_password: typing.Optional[str] = None
- sftp_private_key: typing.Optional[str] = None
- sftp_private_key_passphrase: typing.Optional[str] = None
- sftp_remote_path: typing.Optional[str] = None
- sftp_host_key: typing.Optional[str] = None
- prompt: typing.Optional[str] = None
path: typing.Optional[str] = None
- continue_on_empty: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -491,7 +442,6 @@ class WhileLoopBlockLoopBlocksItem_HttpRequest(UniversalBaseModel):
follow_redirects: typing.Optional[bool] = None
download_filename: typing.Optional[str] = None
save_response_as_file: typing.Optional[bool] = None
- secret_response_paths: typing.Optional[typing.List[str]] = None
parameters: typing.Optional[typing.List[HttpRequestBlockParametersItem]] = None
if IS_PYDANTIC_V2:
@@ -639,32 +589,6 @@ class WhileLoopBlockLoopBlocksItem_Navigation(UniversalBaseModel):
extra = pydantic.Extra.allow
-class WhileLoopBlockLoopBlocksItem_PdfFill(UniversalBaseModel):
- block_type: typing.Literal["pdf_fill"] = "pdf_fill"
- label: str
- next_block_label: typing.Optional[str] = None
- output_parameter: OutputParameter
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- disable_cache: typing.Optional[bool] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- file_url: str
- prompt: str
- payload: typing.Optional[PdfFillBlockPayload] = None
- llm_key: typing.Optional[str] = None
- parameters: typing.Optional[typing.List[PdfFillBlockParametersItem]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
class WhileLoopBlockLoopBlocksItem_PdfParser(UniversalBaseModel):
block_type: typing.Literal["pdf_parser"] = "pdf_parser"
label: str
@@ -745,31 +669,6 @@ class WhileLoopBlockLoopBlocksItem_SendEmail(UniversalBaseModel):
extra = pydantic.Extra.allow
-class WhileLoopBlockLoopBlocksItem_SplitPdf(UniversalBaseModel):
- block_type: typing.Literal["split_pdf"] = "split_pdf"
- label: str
- next_block_label: typing.Optional[str] = None
- output_parameter: OutputParameter
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- disable_cache: typing.Optional[bool] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- file_url: str
- prompt: str
- llm_key: typing.Optional[str] = None
- parameters: typing.Optional[typing.List[SplitPdfBlockParametersItem]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
class WhileLoopBlockLoopBlocksItem_Task(UniversalBaseModel):
block_type: typing.Literal["task"] = "task"
label: str
@@ -917,7 +816,6 @@ class WhileLoopBlockLoopBlocksItem_Validation(UniversalBaseModel):
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
include_extracted_text: typing.Optional[bool] = None
- without_page_information: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -1013,7 +911,6 @@ WhileLoopBlockLoopBlocksItem = typing.Union[
WhileLoopBlockLoopBlocksItem_Code,
WhileLoopBlockLoopBlocksItem_Conditional,
WhileLoopBlockLoopBlocksItem_DownloadToS3,
- WhileLoopBlockLoopBlocksItem_EmailInbox,
WhileLoopBlockLoopBlocksItem_Extraction,
WhileLoopBlockLoopBlocksItem_FileDownload,
WhileLoopBlockLoopBlocksItem_FileUpload,
@@ -1026,11 +923,9 @@ WhileLoopBlockLoopBlocksItem = typing.Union[
WhileLoopBlockLoopBlocksItem_HumanInteraction,
WhileLoopBlockLoopBlocksItem_Login,
WhileLoopBlockLoopBlocksItem_Navigation,
- WhileLoopBlockLoopBlocksItem_PdfFill,
WhileLoopBlockLoopBlocksItem_PdfParser,
WhileLoopBlockLoopBlocksItem_PrintPage,
WhileLoopBlockLoopBlocksItem_SendEmail,
- WhileLoopBlockLoopBlocksItem_SplitPdf,
WhileLoopBlockLoopBlocksItem_Task,
WhileLoopBlockLoopBlocksItem_TaskV2,
WhileLoopBlockLoopBlocksItem_TextPrompt,
@@ -1044,7 +939,6 @@ from .for_loop_block_loop_blocks_item import ForLoopBlockLoopBlocksItem # noqa:
update_forward_refs(WhileLoopBlockLoopBlocksItem_Action)
update_forward_refs(WhileLoopBlockLoopBlocksItem_Code)
-update_forward_refs(WhileLoopBlockLoopBlocksItem_EmailInbox)
update_forward_refs(WhileLoopBlockLoopBlocksItem_Extraction)
update_forward_refs(WhileLoopBlockLoopBlocksItem_FileDownload)
update_forward_refs(WhileLoopBlockLoopBlocksItem_ForLoop)
@@ -1055,9 +949,7 @@ update_forward_refs(WhileLoopBlockLoopBlocksItem_HttpRequest)
update_forward_refs(WhileLoopBlockLoopBlocksItem_HumanInteraction)
update_forward_refs(WhileLoopBlockLoopBlocksItem_Login)
update_forward_refs(WhileLoopBlockLoopBlocksItem_Navigation)
-update_forward_refs(WhileLoopBlockLoopBlocksItem_PdfFill)
update_forward_refs(WhileLoopBlockLoopBlocksItem_PrintPage)
-update_forward_refs(WhileLoopBlockLoopBlocksItem_SplitPdf)
update_forward_refs(WhileLoopBlockLoopBlocksItem_Task)
update_forward_refs(WhileLoopBlockLoopBlocksItem_TextPrompt)
update_forward_refs(WhileLoopBlockLoopBlocksItem_Validation)
diff --git a/skyvern/client/types/while_loop_block_yaml_loop_blocks_item.py b/skyvern/client/types/while_loop_block_yaml_loop_blocks_item.py
index aa16928cb..19604a1fc 100644
--- a/skyvern/client/types/while_loop_block_yaml_loop_blocks_item.py
+++ b/skyvern/client/types/while_loop_block_yaml_loop_blocks_item.py
@@ -11,14 +11,11 @@ from ..core.serialization import FieldMetadata
from .ai_fallback_mode import AiFallbackMode
from .branch_condition_yaml import BranchConditionYaml
from .branch_criteria_yaml import BranchCriteriaYaml
-from .code_block_step_yaml import CodeBlockStepYaml
-from .email_inbox_block_yaml_email_client import EmailInboxBlockYamlEmailClient
from .extraction_block_yaml_data_schema import ExtractionBlockYamlDataSchema
from .file_storage_type import FileStorageType
from .file_type import FileType
from .for_loop_block_yaml_data_schema import ForLoopBlockYamlDataSchema
from .google_sheets_write_block_yaml_write_mode import GoogleSheetsWriteBlockYamlWriteMode
-from .pdf_fill_block_yaml_payload import PdfFillBlockYamlPayload
from .pdf_format import PdfFormat
from .run_engine import RunEngine
from .task_block_yaml_data_schema import TaskBlockYamlDataSchema
@@ -121,8 +118,6 @@ class WhileLoopBlockYamlLoopBlocksItem_Code(UniversalBaseModel):
next_loop_on_failure: typing.Optional[bool] = None
code: str
parameter_keys: typing.Optional[typing.List[str]] = None
- prompt: typing.Optional[str] = None
- steps: typing.Optional[typing.List[CodeBlockStepYaml]] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -216,15 +211,6 @@ class WhileLoopBlockYamlLoopBlocksItem_FileUpload(UniversalBaseModel):
azure_folder_path: typing.Optional[str] = None
google_credential_id: typing.Optional[str] = None
google_drive_folder_id: typing.Optional[str] = None
- sftp_host: typing.Optional[str] = None
- sftp_port: typing.Optional[int] = None
- sftp_username: typing.Optional[str] = None
- sftp_password: typing.Optional[str] = None
- sftp_private_key: typing.Optional[str] = None
- sftp_private_key_passphrase: typing.Optional[str] = None
- sftp_remote_path: typing.Optional[str] = None
- sftp_host_key: typing.Optional[str] = None
- prompt: typing.Optional[str] = None
path: typing.Optional[str] = None
if IS_PYDANTIC_V2:
@@ -300,7 +286,6 @@ class WhileLoopBlockYamlLoopBlocksItem_Validation(UniversalBaseModel):
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
parameter_keys: typing.Optional[typing.List[str]] = None
disable_cache: typing.Optional[bool] = None
- without_page_information: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -606,7 +591,6 @@ class WhileLoopBlockYamlLoopBlocksItem_HttpRequest(UniversalBaseModel):
follow_redirects: typing.Optional[bool] = None
download_filename: typing.Optional[str] = None
save_response_as_file: typing.Optional[bool] = None
- secret_response_paths: typing.Optional[typing.List[str]] = None
parameter_keys: typing.Optional[typing.List[str]] = None
if IS_PYDANTIC_V2:
@@ -664,53 +648,6 @@ class WhileLoopBlockYamlLoopBlocksItem_PrintPage(UniversalBaseModel):
extra = pydantic.Extra.allow
-class WhileLoopBlockYamlLoopBlocksItem_PdfFill(UniversalBaseModel):
- block_type: typing.Literal["pdf_fill"] = "pdf_fill"
- label: str
- next_block_label: typing.Optional[str] = None
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- file_url: str
- prompt: str
- payload: typing.Optional[PdfFillBlockYamlPayload] = None
- llm_key: typing.Optional[str] = None
- parameter_keys: typing.Optional[typing.List[str]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
-class WhileLoopBlockYamlLoopBlocksItem_SplitPdf(UniversalBaseModel):
- block_type: typing.Literal["split_pdf"] = "split_pdf"
- label: str
- next_block_label: typing.Optional[str] = None
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- file_url: str
- prompt: str
- llm_key: typing.Optional[str] = None
- parameter_keys: typing.Optional[typing.List[str]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
class WhileLoopBlockYamlLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):
block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"
label: str
@@ -761,35 +698,6 @@ class WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsRead(UniversalBaseModel):
extra = pydantic.Extra.allow
-class WhileLoopBlockYamlLoopBlocksItem_EmailInbox(UniversalBaseModel):
- block_type: typing.Literal["email_inbox"] = "email_inbox"
- label: str
- next_block_label: typing.Optional[str] = None
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- email_client: EmailInboxBlockYamlEmailClient
- credential_id: typing.Optional[str] = None
- folder: typing.Optional[str] = None
- prompt: typing.Optional[str] = None
- sender: typing.Optional[str] = None
- subject: typing.Optional[str] = None
- newer_than_days: typing.Optional[int] = None
- max_results: typing.Optional[int] = None
- include_body: typing.Optional[bool] = None
- parameter_keys: typing.Optional[typing.List[str]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
class WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite(UniversalBaseModel):
block_type: typing.Literal["google_sheets_write"] = "google_sheets_write"
label: str
@@ -843,11 +751,8 @@ WhileLoopBlockYamlLoopBlocksItem = typing.Union[
WhileLoopBlockYamlLoopBlocksItem_HttpRequest,
WhileLoopBlockYamlLoopBlocksItem_Conditional,
WhileLoopBlockYamlLoopBlocksItem_PrintPage,
- WhileLoopBlockYamlLoopBlocksItem_PdfFill,
- WhileLoopBlockYamlLoopBlocksItem_SplitPdf,
WhileLoopBlockYamlLoopBlocksItem_WorkflowTrigger,
WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsRead,
- WhileLoopBlockYamlLoopBlocksItem_EmailInbox,
WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite,
]
from .for_loop_block_yaml_loop_blocks_item import ForLoopBlockYamlLoopBlocksItem # noqa: E402, F401, I001
diff --git a/skyvern/client/types/workflow.py b/skyvern/client/types/workflow.py
index 7c262cebb..607fbc0bc 100644
--- a/skyvern/client/types/workflow.py
+++ b/skyvern/client/types/workflow.py
@@ -29,7 +29,6 @@ class Workflow(UniversalBaseModel):
persist_browser_session: typing.Optional[bool] = None
pin_saved_session_ip: typing.Optional[bool] = None
browser_profile_id: typing.Optional[str] = None
- browser_profile_key: typing.Optional[str] = None
model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
status: typing.Optional[WorkflowStatus] = None
max_screenshot_scrolls: typing.Optional[int] = None
@@ -40,7 +39,6 @@ class Workflow(UniversalBaseModel):
ai_fallback: typing.Optional[bool] = None
cache_key: typing.Optional[str] = None
adaptive_caching: typing.Optional[bool] = None
- enable_self_healing: typing.Optional[bool] = None
code_version: typing.Optional[int] = None
generate_script_on_terminal: typing.Optional[bool] = None
run_sequentially: typing.Optional[bool] = None
@@ -49,7 +47,6 @@ class Workflow(UniversalBaseModel):
import_error: typing.Optional[str] = None
created_by: typing.Optional[str] = None
edited_by: typing.Optional[str] = None
- copilot_authored: typing.Optional[bool] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/workflow_create_yaml_request.py b/skyvern/client/types/workflow_create_yaml_request.py
index 95e0b042e..91c2cba64 100644
--- a/skyvern/client/types/workflow_create_yaml_request.py
+++ b/skyvern/client/types/workflow_create_yaml_request.py
@@ -21,7 +21,6 @@ class WorkflowCreateYamlRequest(UniversalBaseModel):
persist_browser_session: typing.Optional[bool] = None
pin_saved_session_ip: typing.Optional[bool] = None
browser_profile_id: typing.Optional[str] = None
- browser_profile_key: typing.Optional[str] = None
model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
workflow_definition: WorkflowDefinitionYaml
is_saved_task: typing.Optional[bool] = None
@@ -34,7 +33,6 @@ class WorkflowCreateYamlRequest(UniversalBaseModel):
ai_fallback: typing.Optional[bool] = None
cache_key: typing.Optional[str] = None
adaptive_caching: typing.Optional[bool] = None
- enable_self_healing: typing.Optional[bool] = None
code_version: typing.Optional[int] = None
generate_script_on_terminal: typing.Optional[bool] = None
run_sequentially: typing.Optional[bool] = None
diff --git a/skyvern/client/types/workflow_definition_blocks_item.py b/skyvern/client/types/workflow_definition_blocks_item.py
index e0d034a5b..795384696 100644
--- a/skyvern/client/types/workflow_definition_blocks_item.py
+++ b/skyvern/client/types/workflow_definition_blocks_item.py
@@ -14,9 +14,6 @@ from .ai_fallback_mode import AiFallbackMode
from .aws_secret_parameter import AwsSecretParameter
from .branch_condition import BranchCondition
from .code_block_parameters_item import CodeBlockParametersItem
-from .code_block_step import CodeBlockStep
-from .email_inbox_block_email_client import EmailInboxBlockEmailClient
-from .email_inbox_block_parameters_item import EmailInboxBlockParametersItem
from .extraction_block_data_schema import ExtractionBlockDataSchema
from .extraction_block_parameters_item import ExtractionBlockParametersItem
from .file_download_block_data_schema import FileDownloadBlockDataSchema
@@ -36,11 +33,8 @@ from .login_block_parameters_item import LoginBlockParametersItem
from .navigation_block_data_schema import NavigationBlockDataSchema
from .navigation_block_parameters_item import NavigationBlockParametersItem
from .output_parameter import OutputParameter
-from .pdf_fill_block_parameters_item import PdfFillBlockParametersItem
-from .pdf_fill_block_payload import PdfFillBlockPayload
from .print_page_block_parameters_item import PrintPageBlockParametersItem
from .run_engine import RunEngine
-from .split_pdf_block_parameters_item import SplitPdfBlockParametersItem
from .task_block_data_schema import TaskBlockDataSchema
from .task_block_parameters_item import TaskBlockParametersItem
from .text_prompt_block_parameters_item import TextPromptBlockParametersItem
@@ -109,8 +103,6 @@ class WorkflowDefinitionBlocksItem_Code(UniversalBaseModel):
next_loop_on_failure: typing.Optional[bool] = None
code: str
parameters: typing.Optional[typing.List[CodeBlockParametersItem]] = None
- prompt: typing.Optional[str] = None
- steps: typing.Optional[typing.List[CodeBlockStep]] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -166,37 +158,6 @@ class WorkflowDefinitionBlocksItem_DownloadToS3(UniversalBaseModel):
extra = pydantic.Extra.allow
-class WorkflowDefinitionBlocksItem_EmailInbox(UniversalBaseModel):
- block_type: typing.Literal["email_inbox"] = "email_inbox"
- label: str
- next_block_label: typing.Optional[str] = None
- output_parameter: OutputParameter
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- disable_cache: typing.Optional[bool] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- email_client: EmailInboxBlockEmailClient
- credential_id: typing.Optional[str] = None
- folder: typing.Optional[str] = None
- prompt: typing.Optional[str] = None
- sender: typing.Optional[str] = None
- subject: typing.Optional[str] = None
- newer_than_days: typing.Optional[int] = None
- max_results: typing.Optional[int] = None
- include_body: typing.Optional[bool] = None
- parameters: typing.Optional[typing.List[EmailInboxBlockParametersItem]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
class WorkflowDefinitionBlocksItem_Extraction(UniversalBaseModel):
block_type: typing.Literal["extraction"] = "extraction"
label: str
@@ -301,17 +262,7 @@ class WorkflowDefinitionBlocksItem_FileUpload(UniversalBaseModel):
azure_blob_container_name: typing.Optional[str] = None
google_credential_id: typing.Optional[str] = None
google_drive_folder_id: typing.Optional[str] = None
- sftp_host: typing.Optional[str] = None
- sftp_port: typing.Optional[int] = None
- sftp_username: typing.Optional[str] = None
- sftp_password: typing.Optional[str] = None
- sftp_private_key: typing.Optional[str] = None
- sftp_private_key_passphrase: typing.Optional[str] = None
- sftp_remote_path: typing.Optional[str] = None
- sftp_host_key: typing.Optional[str] = None
- prompt: typing.Optional[str] = None
path: typing.Optional[str] = None
- continue_on_empty: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -494,7 +445,6 @@ class WorkflowDefinitionBlocksItem_HttpRequest(UniversalBaseModel):
follow_redirects: typing.Optional[bool] = None
download_filename: typing.Optional[str] = None
save_response_as_file: typing.Optional[bool] = None
- secret_response_paths: typing.Optional[typing.List[str]] = None
parameters: typing.Optional[typing.List[HttpRequestBlockParametersItem]] = None
if IS_PYDANTIC_V2:
@@ -642,32 +592,6 @@ class WorkflowDefinitionBlocksItem_Navigation(UniversalBaseModel):
extra = pydantic.Extra.allow
-class WorkflowDefinitionBlocksItem_PdfFill(UniversalBaseModel):
- block_type: typing.Literal["pdf_fill"] = "pdf_fill"
- label: str
- next_block_label: typing.Optional[str] = None
- output_parameter: OutputParameter
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- disable_cache: typing.Optional[bool] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- file_url: str
- prompt: str
- payload: typing.Optional[PdfFillBlockPayload] = None
- llm_key: typing.Optional[str] = None
- parameters: typing.Optional[typing.List[PdfFillBlockParametersItem]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
class WorkflowDefinitionBlocksItem_PdfParser(UniversalBaseModel):
block_type: typing.Literal["pdf_parser"] = "pdf_parser"
label: str
@@ -748,31 +672,6 @@ class WorkflowDefinitionBlocksItem_SendEmail(UniversalBaseModel):
extra = pydantic.Extra.allow
-class WorkflowDefinitionBlocksItem_SplitPdf(UniversalBaseModel):
- block_type: typing.Literal["split_pdf"] = "split_pdf"
- label: str
- next_block_label: typing.Optional[str] = None
- output_parameter: OutputParameter
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- disable_cache: typing.Optional[bool] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- file_url: str
- prompt: str
- llm_key: typing.Optional[str] = None
- parameters: typing.Optional[typing.List[SplitPdfBlockParametersItem]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
class WorkflowDefinitionBlocksItem_Task(UniversalBaseModel):
block_type: typing.Literal["task"] = "task"
label: str
@@ -920,7 +819,6 @@ class WorkflowDefinitionBlocksItem_Validation(UniversalBaseModel):
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
include_extracted_text: typing.Optional[bool] = None
- without_page_information: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -1017,7 +915,6 @@ WorkflowDefinitionBlocksItem = typing.Union[
WorkflowDefinitionBlocksItem_Code,
WorkflowDefinitionBlocksItem_Conditional,
WorkflowDefinitionBlocksItem_DownloadToS3,
- WorkflowDefinitionBlocksItem_EmailInbox,
WorkflowDefinitionBlocksItem_Extraction,
WorkflowDefinitionBlocksItem_FileDownload,
WorkflowDefinitionBlocksItem_FileUpload,
@@ -1030,11 +927,9 @@ WorkflowDefinitionBlocksItem = typing.Union[
WorkflowDefinitionBlocksItem_HumanInteraction,
WorkflowDefinitionBlocksItem_Login,
WorkflowDefinitionBlocksItem_Navigation,
- WorkflowDefinitionBlocksItem_PdfFill,
WorkflowDefinitionBlocksItem_PdfParser,
WorkflowDefinitionBlocksItem_PrintPage,
WorkflowDefinitionBlocksItem_SendEmail,
- WorkflowDefinitionBlocksItem_SplitPdf,
WorkflowDefinitionBlocksItem_Task,
WorkflowDefinitionBlocksItem_TaskV2,
WorkflowDefinitionBlocksItem_TextPrompt,
@@ -1046,7 +941,6 @@ WorkflowDefinitionBlocksItem = typing.Union[
]
update_forward_refs(WorkflowDefinitionBlocksItem_Action)
update_forward_refs(WorkflowDefinitionBlocksItem_Code)
-update_forward_refs(WorkflowDefinitionBlocksItem_EmailInbox)
update_forward_refs(WorkflowDefinitionBlocksItem_Extraction)
update_forward_refs(WorkflowDefinitionBlocksItem_FileDownload)
update_forward_refs(WorkflowDefinitionBlocksItem_ForLoop)
@@ -1057,9 +951,7 @@ update_forward_refs(WorkflowDefinitionBlocksItem_HttpRequest)
update_forward_refs(WorkflowDefinitionBlocksItem_HumanInteraction)
update_forward_refs(WorkflowDefinitionBlocksItem_Login)
update_forward_refs(WorkflowDefinitionBlocksItem_Navigation)
-update_forward_refs(WorkflowDefinitionBlocksItem_PdfFill)
update_forward_refs(WorkflowDefinitionBlocksItem_PrintPage)
-update_forward_refs(WorkflowDefinitionBlocksItem_SplitPdf)
update_forward_refs(WorkflowDefinitionBlocksItem_Task)
update_forward_refs(WorkflowDefinitionBlocksItem_TextPrompt)
update_forward_refs(WorkflowDefinitionBlocksItem_Validation)
diff --git a/skyvern/client/types/workflow_definition_parameters_item.py b/skyvern/client/types/workflow_definition_parameters_item.py
index 527152aca..a2cf40f66 100644
--- a/skyvern/client/types/workflow_definition_parameters_item.py
+++ b/skyvern/client/types/workflow_definition_parameters_item.py
@@ -183,8 +183,6 @@ class WorkflowDefinitionParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/workflow_definition_yaml_blocks_item.py b/skyvern/client/types/workflow_definition_yaml_blocks_item.py
index 0bb983812..19a3b6065 100644
--- a/skyvern/client/types/workflow_definition_yaml_blocks_item.py
+++ b/skyvern/client/types/workflow_definition_yaml_blocks_item.py
@@ -11,14 +11,11 @@ from ..core.serialization import FieldMetadata
from .ai_fallback_mode import AiFallbackMode
from .branch_condition_yaml import BranchConditionYaml
from .branch_criteria_yaml import BranchCriteriaYaml
-from .code_block_step_yaml import CodeBlockStepYaml
-from .email_inbox_block_yaml_email_client import EmailInboxBlockYamlEmailClient
from .extraction_block_yaml_data_schema import ExtractionBlockYamlDataSchema
from .file_storage_type import FileStorageType
from .file_type import FileType
from .for_loop_block_yaml_data_schema import ForLoopBlockYamlDataSchema
from .google_sheets_write_block_yaml_write_mode import GoogleSheetsWriteBlockYamlWriteMode
-from .pdf_fill_block_yaml_payload import PdfFillBlockYamlPayload
from .pdf_format import PdfFormat
from .run_engine import RunEngine
from .task_block_yaml_data_schema import TaskBlockYamlDataSchema
@@ -67,8 +64,6 @@ class WorkflowDefinitionYamlBlocksItem_Code(UniversalBaseModel):
next_loop_on_failure: typing.Optional[bool] = None
code: str
parameter_keys: typing.Optional[typing.List[str]] = None
- prompt: typing.Optional[str] = None
- steps: typing.Optional[typing.List[CodeBlockStepYaml]] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -120,35 +115,6 @@ class WorkflowDefinitionYamlBlocksItem_DownloadToS3(UniversalBaseModel):
extra = pydantic.Extra.allow
-class WorkflowDefinitionYamlBlocksItem_EmailInbox(UniversalBaseModel):
- block_type: typing.Literal["email_inbox"] = "email_inbox"
- label: str
- next_block_label: typing.Optional[str] = None
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- email_client: EmailInboxBlockYamlEmailClient
- credential_id: typing.Optional[str] = None
- folder: typing.Optional[str] = None
- prompt: typing.Optional[str] = None
- sender: typing.Optional[str] = None
- subject: typing.Optional[str] = None
- newer_than_days: typing.Optional[int] = None
- max_results: typing.Optional[int] = None
- include_body: typing.Optional[bool] = None
- parameter_keys: typing.Optional[typing.List[str]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
class WorkflowDefinitionYamlBlocksItem_Extraction(UniversalBaseModel):
block_type: typing.Literal["extraction"] = "extraction"
label: str
@@ -228,15 +194,6 @@ class WorkflowDefinitionYamlBlocksItem_FileUpload(UniversalBaseModel):
azure_folder_path: typing.Optional[str] = None
google_credential_id: typing.Optional[str] = None
google_drive_folder_id: typing.Optional[str] = None
- sftp_host: typing.Optional[str] = None
- sftp_port: typing.Optional[int] = None
- sftp_username: typing.Optional[str] = None
- sftp_password: typing.Optional[str] = None
- sftp_private_key: typing.Optional[str] = None
- sftp_private_key_passphrase: typing.Optional[str] = None
- sftp_remote_path: typing.Optional[str] = None
- sftp_host_key: typing.Optional[str] = None
- prompt: typing.Optional[str] = None
path: typing.Optional[str] = None
if IS_PYDANTIC_V2:
@@ -388,7 +345,6 @@ class WorkflowDefinitionYamlBlocksItem_HttpRequest(UniversalBaseModel):
follow_redirects: typing.Optional[bool] = None
download_filename: typing.Optional[str] = None
save_response_as_file: typing.Optional[bool] = None
- secret_response_paths: typing.Optional[typing.List[str]] = None
parameter_keys: typing.Optional[typing.List[str]] = None
if IS_PYDANTIC_V2:
@@ -498,30 +454,6 @@ class WorkflowDefinitionYamlBlocksItem_Navigation(UniversalBaseModel):
extra = pydantic.Extra.allow
-class WorkflowDefinitionYamlBlocksItem_PdfFill(UniversalBaseModel):
- block_type: typing.Literal["pdf_fill"] = "pdf_fill"
- label: str
- next_block_label: typing.Optional[str] = None
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- file_url: str
- prompt: str
- payload: typing.Optional[PdfFillBlockYamlPayload] = None
- llm_key: typing.Optional[str] = None
- parameter_keys: typing.Optional[typing.List[str]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
class WorkflowDefinitionYamlBlocksItem_PdfParser(UniversalBaseModel):
block_type: typing.Literal["pdf_parser"] = "pdf_parser"
label: str
@@ -596,29 +528,6 @@ class WorkflowDefinitionYamlBlocksItem_SendEmail(UniversalBaseModel):
extra = pydantic.Extra.allow
-class WorkflowDefinitionYamlBlocksItem_SplitPdf(UniversalBaseModel):
- block_type: typing.Literal["split_pdf"] = "split_pdf"
- label: str
- next_block_label: typing.Optional[str] = None
- continue_on_failure: typing.Optional[bool] = None
- model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- ignore_workflow_system_prompt: typing.Optional[bool] = None
- next_loop_on_failure: typing.Optional[bool] = None
- file_url: str
- prompt: str
- llm_key: typing.Optional[str] = None
- parameter_keys: typing.Optional[typing.List[str]] = None
-
- if IS_PYDANTIC_V2:
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
- else:
-
- class Config:
- frozen = True
- smart_union = True
- extra = pydantic.Extra.allow
-
-
class WorkflowDefinitionYamlBlocksItem_Task(UniversalBaseModel):
block_type: typing.Literal["task"] = "task"
label: str
@@ -739,7 +648,6 @@ class WorkflowDefinitionYamlBlocksItem_Validation(UniversalBaseModel):
error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
parameter_keys: typing.Optional[typing.List[str]] = None
disable_cache: typing.Optional[bool] = None
- without_page_information: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -827,7 +735,6 @@ WorkflowDefinitionYamlBlocksItem = typing.Union[
WorkflowDefinitionYamlBlocksItem_Code,
WorkflowDefinitionYamlBlocksItem_Conditional,
WorkflowDefinitionYamlBlocksItem_DownloadToS3,
- WorkflowDefinitionYamlBlocksItem_EmailInbox,
WorkflowDefinitionYamlBlocksItem_Extraction,
WorkflowDefinitionYamlBlocksItem_FileDownload,
WorkflowDefinitionYamlBlocksItem_FileUpload,
@@ -840,11 +747,9 @@ WorkflowDefinitionYamlBlocksItem = typing.Union[
WorkflowDefinitionYamlBlocksItem_HumanInteraction,
WorkflowDefinitionYamlBlocksItem_Login,
WorkflowDefinitionYamlBlocksItem_Navigation,
- WorkflowDefinitionYamlBlocksItem_PdfFill,
WorkflowDefinitionYamlBlocksItem_PdfParser,
WorkflowDefinitionYamlBlocksItem_PrintPage,
WorkflowDefinitionYamlBlocksItem_SendEmail,
- WorkflowDefinitionYamlBlocksItem_SplitPdf,
WorkflowDefinitionYamlBlocksItem_Task,
WorkflowDefinitionYamlBlocksItem_TaskV2,
WorkflowDefinitionYamlBlocksItem_TextPrompt,
diff --git a/skyvern/client/types/workflow_definition_yaml_parameters_item.py b/skyvern/client/types/workflow_definition_yaml_parameters_item.py
index 2363b0275..35603ba6d 100644
--- a/skyvern/client/types/workflow_definition_yaml_parameters_item.py
+++ b/skyvern/client/types/workflow_definition_yaml_parameters_item.py
@@ -128,8 +128,6 @@ class WorkflowDefinitionYamlParametersItem_Credential(UniversalBaseModel):
key: str
description: typing.Optional[str] = None
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
diff --git a/skyvern/client/types/workflow_run_block.py b/skyvern/client/types/workflow_run_block.py
index efeeb32d6..22d32371b 100644
--- a/skyvern/client/types/workflow_run_block.py
+++ b/skyvern/client/types/workflow_run_block.py
@@ -50,7 +50,6 @@ class WorkflowRunBlock(UniversalBaseModel):
attachments: typing.Optional[typing.List[str]] = None
subject: typing.Optional[str] = None
body: typing.Optional[str] = None
- prompt: typing.Optional[str] = None
instructions: typing.Optional[str] = None
positive_descriptor: typing.Optional[str] = None
negative_descriptor: typing.Optional[str] = None
@@ -59,7 +58,6 @@ class WorkflowRunBlock(UniversalBaseModel):
executed_branch_result: typing.Optional[bool] = None
executed_branch_next_block: typing.Optional[str] = None
script_run: typing.Optional[ScriptRunResponse] = None
- downloaded_file_count: typing.Optional[int] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
diff --git a/skyvern/client/types/workflow_trigger_block_parameters_item.py b/skyvern/client/types/workflow_trigger_block_parameters_item.py
index 1eef7f270..73d1ff539 100644
--- a/skyvern/client/types/workflow_trigger_block_parameters_item.py
+++ b/skyvern/client/types/workflow_trigger_block_parameters_item.py
@@ -183,8 +183,6 @@ class WorkflowTriggerBlockParametersItem_Credential(UniversalBaseModel):
credential_parameter_id: str
workflow_id: str
credential_id: str
- credential_ids: typing.Optional[typing.List[str]] = None
- selection_strategy: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
diff --git a/tests/unit/test_mcp_block_type_parity.py b/tests/unit/test_mcp_block_type_parity.py
index 7f54a23ad..99d8bb925 100644
--- a/tests/unit/test_mcp_block_type_parity.py
+++ b/tests/unit/test_mcp_block_type_parity.py
@@ -95,9 +95,27 @@ class BlockDriftEntry:
# the vendored Fern SDK. Run `fern generate` using the Skyvern Cloud-only
# runbook to resync, then remove the entry here.
_KNOWN_DRIFT_ALLOWLIST: tuple[BlockDriftEntry, ...] = (
- # Empty: pdf_fill (SKY-10944), split_pdf (SKY-12071), and email_inbox
- # (SKY-12068) were resolved by the Fern SDK regen in the 1.0.47 bump — all
- # three now appear in both WorkflowDefinition(Yaml)BlocksItem unions.
+ BlockDriftEntry(
+ block_type="pdf_fill",
+ ticket="SKY-10944",
+ owner="@suchintan",
+ added_at=date(2026, 6, 11),
+ notes="Fern SDK regen happens via CI post-deploy",
+ ),
+ BlockDriftEntry(
+ block_type="split_pdf",
+ ticket="SKY-12071",
+ owner="@suchintan",
+ added_at=date(2026, 7, 8),
+ notes="Fern SDK regen happens via CI post-deploy",
+ ),
+ BlockDriftEntry(
+ block_type="email_inbox",
+ ticket="SKY-12068",
+ owner="@suchintan",
+ added_at=date(2026, 7, 8),
+ notes="Fern SDK regen happens via CI post-deploy",
+ ),
)
diff --git a/uv.lock b/uv.lock
index d4eba5a96..5bdd4aac9 100644
--- a/uv.lock
+++ b/uv.lock
@@ -2969,7 +2969,7 @@ wheels = [
[[package]]
name = "mcp"
-version = "1.27.0"
+version = "1.28.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "anyio" },
@@ -2987,9 +2987,9 @@ dependencies = [
{ name = "typing-inspection" },
{ name = "uvicorn", marker = "sys_platform != 'emscripten'" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/8b/eb/c0cfc62075dc6e1ec1c64d352ae09ac051d9334311ed226f1f425312848a/mcp-1.27.0.tar.gz", hash = "sha256:d3dc35a7eec0d458c1da4976a48f982097ddaab87e278c5511d5a4a56e852b83", size = 607509, upload-time = "2026-04-02T14:48:08.88Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/6e/77/9450b8f251a13affb6281997d0523c4615f8a8b35d0b21ff30db3a5aac9d/mcp-1.28.1.tar.gz", hash = "sha256:d51e36a5f5644faea4f85ea649bfffa6bc6c26770d42798ad6a3de3d2ba69683", size = 638501, upload-time = "2026-06-26T12:57:29.093Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/9c/46/f6b4ad632c67ef35209a66127e4bddc95759649dd595f71f13fba11bdf9a/mcp-1.27.0-py3-none-any.whl", hash = "sha256:5ce1fa81614958e267b21fb2aa34e0aea8e2c6ede60d52aba45fd47246b4d741", size = 215967, upload-time = "2026-04-02T14:48:07.24Z" },
+ { url = "https://files.pythonhosted.org/packages/e2/5e/d118fce19f87a2e7d8101c35c8ae0ec289098a4df0ff244cec23e415aca0/mcp-1.28.1-py3-none-any.whl", hash = "sha256:2726bca5e7193f61c5dde8b12500a6de2d9acf6d1a1c0be9e8c2e706437991df", size = 222620, upload-time = "2026-06-26T12:57:27.218Z" },
]
[[package]]
@@ -5797,7 +5797,7 @@ wheels = [
[[package]]
name = "skyvern"
-version = "1.0.47"
+version = "1.0.46"
source = { editable = "." }
dependencies = [
{ name = "cachetools" },