Skip to content

Automate browser based workflows with AI

fix(SKY-10573): give the copilot turn-collapse control its own header lane (#6279)

Andrew Neilsonb63dc2865471
diff --git a/pyproject.toml b/pyproject.toml
index 0e30c6a15..08bd9230f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "skyvern"
-version = "1.0.37"
+version = "1.0.36"
description = ""
authors = [{ name = "Skyvern AI", email = "[email protected]" }]
requires-python = ">=3.11,<3.14"
diff --git a/skyvern-frontend/src/routes/workflows/copilot/NarrativeView.tsx b/skyvern-frontend/src/routes/workflows/copilot/NarrativeView.tsx
index cd024f969..86cd9c3d2 100644
--- a/skyvern-frontend/src/routes/workflows/copilot/NarrativeView.tsx
+++ b/skyvern-frontend/src/routes/workflows/copilot/NarrativeView.tsx
@@ -1,4 +1,4 @@
-import { useEffect, useMemo, useState } from "react";
+import { type ReactNode, useEffect, useMemo, useState } from "react";
import {
ActivityEntry,
@@ -482,6 +482,54 @@ function accentBg(accent: TurnSummary["accent"]): string {
return "border-emerald-400/60 bg-emerald-500/15 text-emerald-300";
}
+interface TurnHeadProps {
+ summary: TurnSummary;
+ expanded: boolean;
+ onClick: () => void;
+ subtitle?: ReactNode;
+}
+
+function TurnHead({ summary, expanded, onClick, subtitle }: TurnHeadProps) {
+ return (
+ <button
+ type="button"
+ onClick={onClick}
+ aria-expanded={expanded}
+ className="flex w-full items-start gap-3 px-3.5 py-3 text-left"
+ >
+ <span
+ className={`flex h-[26px] w-[26px] shrink-0 items-center justify-center rounded-full border text-[12px] font-bold ${accentBg(
+ summary.accent,
+ )}`}
+ aria-hidden="true"
+ >
+ {summary.glyph}
+ </span>
+ <div className="min-w-0 flex-1">
+ <div className="mb-0.5 flex flex-wrap items-baseline gap-x-2 gap-y-0.5">
+ <span className="text-[14px] font-semibold tracking-tight text-slate-100">
+ {summary.headline}
+ </span>
+ {summary.stats.length ? (
+ <span className="text-[11.5px] text-slate-400">
+ {summary.stats.join(" · ")}
+ </span>
+ ) : null}
+ </div>
+ {subtitle}
+ </div>
+ <span
+ className={`mt-1 shrink-0 text-[14px] text-slate-500 transition-transform ${
+ expanded ? "rotate-90" : ""
+ }`}
+ aria-hidden="true"
+ >
+ ›
+ </span>
+ </button>
+ );
+}
+
interface RollupCardProps {
turn: TurnNarrativeState;
summary: TurnSummary;
@@ -497,31 +545,12 @@ function RollupCard({ turn, summary, onExpand }: RollupCardProps) {
return (
<div className="overflow-hidden rounded-xl border border-slate-700/60 bg-slate-elevation2">
- <button
- type="button"
+ <TurnHead
+ summary={summary}
+ expanded={false}
onClick={onExpand}
- className="flex w-full items-start gap-3 px-3.5 py-3 text-left"
- >
- <span
- className={`flex h-[26px] w-[26px] shrink-0 items-center justify-center rounded-full border text-[12px] font-bold ${accentBg(
- summary.accent,
- )}`}
- aria-hidden="true"
- >
- {summary.glyph}
- </span>
- <div className="min-w-0 flex-1">
- <div className="mb-0.5 flex flex-wrap items-baseline gap-x-2 gap-y-0.5">
- <span className="text-[14px] font-semibold tracking-tight text-slate-100">
- {summary.headline}
- </span>
- {summary.stats.length ? (
- <span className="text-[11.5px] text-slate-400">
- {summary.stats.join(" · ")}
- </span>
- ) : null}
- </div>
- {closing ? (
+ subtitle={
+ closing ? (
<div
className={`mt-0.5 text-[12.5px] leading-[1.5] ${
summary.isFail ? "text-rose-200/90" : "text-slate-400"
@@ -529,15 +558,9 @@ function RollupCard({ turn, summary, onExpand }: RollupCardProps) {
>
{summary.isQA ? truncate(closing, 90) : closing}
</div>
- ) : null}
- </div>
- <span
- className="mt-1 shrink-0 text-[14px] text-slate-500"
- aria-hidden="true"
- >
- ›
- </span>
- </button>
+ ) : null
+ }
+ />
{showCommit ? (
<div className="border-t border-white/5 pb-3 pl-[52px] pr-3.5 pt-2.5">
@@ -603,11 +626,17 @@ function RollupCard({ turn, summary, onExpand }: RollupCardProps) {
interface DetailViewProps {
turn: TurnNarrativeState;
+ summary: TurnSummary;
onCollapse: (() => void) | null;
onBlockSelect?: (label: string) => void;
}
-function DetailView({ turn, onCollapse, onBlockSelect }: DetailViewProps) {
+function DetailView({
+ turn,
+ summary,
+ onCollapse,
+ onBlockSelect,
+}: DetailViewProps) {
const hasBlocks = turn.blocks.length > 0;
const designStarted = turn.designStarted;
const designOpen = designStarted && !turn.designEnded;
@@ -622,17 +651,9 @@ function DetailView({ turn, onCollapse, onBlockSelect }: DetailViewProps) {
);
return (
- <div className="relative flex flex-col gap-2.5">
+ <div className="flex flex-col gap-2.5">
{onCollapse ? (
- <button
- type="button"
- className="absolute -top-1 right-0 flex h-6 w-6 -rotate-90 items-center justify-center rounded-md text-[16px] text-slate-400 hover:bg-slate-700/60 hover:text-slate-100"
- onClick={onCollapse}
- aria-label="Collapse turn"
- title="Collapse turn"
- >
- ›
- </button>
+ <TurnHead summary={summary} expanded onClick={onCollapse} />
) : null}
{showDesign ? (
@@ -714,6 +735,7 @@ export function NarrativeView({
return (
<DetailView
turn={turn}
+ summary={summary}
onCollapse={isComplete ? () => setUserRolled(true) : null}
onBlockSelect={onBlockSelect}
/>
diff --git a/skyvern/client/__init__.py b/skyvern/client/__init__.py
index 8d8ce2300..5211c3a5d 100644
--- a/skyvern/client/__init__.py
+++ b/skyvern/client/__init__.py
@@ -25,7 +25,6 @@ if typing.TYPE_CHECKING:
ActionBlockParametersItem_Output,
ActionBlockParametersItem_Workflow,
ActionBlockYaml,
- ActionOutput,
ActionStatus,
ActionType,
Artifact,
@@ -51,7 +50,6 @@ if typing.TYPE_CHECKING:
BranchCriteriaYamlCriteriaType,
BrowserProfile,
BrowserSessionResponse,
- BulkCancelRunsResponse,
ClickAction,
ClickActionData,
ClickContext,
@@ -86,7 +84,6 @@ if typing.TYPE_CHECKING:
ContextParameterSource_Workflow,
ContextParameterValue,
ContextParameterYaml,
- CreateBrowserSessionRequestProxyLocation,
CreateCredentialRequest,
CreateCredentialRequestCredential,
CreateScriptResponse,
@@ -157,8 +154,6 @@ if typing.TYPE_CHECKING:
ForLoopBlockLoopBlocksItem_FileUpload,
ForLoopBlockLoopBlocksItem_FileUrlParser,
ForLoopBlockLoopBlocksItem_ForLoop,
- ForLoopBlockLoopBlocksItem_GoogleSheetsRead,
- ForLoopBlockLoopBlocksItem_GoogleSheetsWrite,
ForLoopBlockLoopBlocksItem_GotoUrl,
ForLoopBlockLoopBlocksItem_HttpRequest,
ForLoopBlockLoopBlocksItem_HumanInteraction,
@@ -173,7 +168,6 @@ if typing.TYPE_CHECKING:
ForLoopBlockLoopBlocksItem_UploadToS3,
ForLoopBlockLoopBlocksItem_Validation,
ForLoopBlockLoopBlocksItem_Wait,
- ForLoopBlockLoopBlocksItem_WhileLoop,
ForLoopBlockLoopBlocksItem_WorkflowTrigger,
ForLoopBlockLoopOver,
ForLoopBlockLoopOver_AwsSecret,
@@ -199,8 +193,6 @@ if typing.TYPE_CHECKING:
ForLoopBlockYamlLoopBlocksItem_FileUpload,
ForLoopBlockYamlLoopBlocksItem_FileUrlParser,
ForLoopBlockYamlLoopBlocksItem_ForLoop,
- ForLoopBlockYamlLoopBlocksItem_GoogleSheetsRead,
- ForLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite,
ForLoopBlockYamlLoopBlocksItem_GotoUrl,
ForLoopBlockYamlLoopBlocksItem_HttpRequest,
ForLoopBlockYamlLoopBlocksItem_HumanInteraction,
@@ -215,7 +207,6 @@ if typing.TYPE_CHECKING:
ForLoopBlockYamlLoopBlocksItem_UploadToS3,
ForLoopBlockYamlLoopBlocksItem_Validation,
ForLoopBlockYamlLoopBlocksItem_Wait,
- ForLoopBlockYamlLoopBlocksItem_WhileLoop,
ForLoopBlockYamlLoopBlocksItem_WorkflowTrigger,
GeoTarget,
GetRunResponse,
@@ -225,37 +216,6 @@ if typing.TYPE_CHECKING:
GetRunResponse_TaskV2,
GetRunResponse_UiTars,
GetRunResponse_WorkflowRun,
- GetRunResponse_YutoriNavigator,
- GoogleSheetsReadBlock,
- GoogleSheetsReadBlockParametersItem,
- GoogleSheetsReadBlockParametersItem_AwsSecret,
- GoogleSheetsReadBlockParametersItem_AzureSecret,
- GoogleSheetsReadBlockParametersItem_AzureVaultCredential,
- GoogleSheetsReadBlockParametersItem_BitwardenCreditCardData,
- GoogleSheetsReadBlockParametersItem_BitwardenLoginCredential,
- GoogleSheetsReadBlockParametersItem_BitwardenSensitiveInformation,
- GoogleSheetsReadBlockParametersItem_Context,
- GoogleSheetsReadBlockParametersItem_Credential,
- GoogleSheetsReadBlockParametersItem_Onepassword,
- GoogleSheetsReadBlockParametersItem_Output,
- GoogleSheetsReadBlockParametersItem_Workflow,
- GoogleSheetsReadBlockYaml,
- GoogleSheetsWriteBlock,
- GoogleSheetsWriteBlockParametersItem,
- GoogleSheetsWriteBlockParametersItem_AwsSecret,
- GoogleSheetsWriteBlockParametersItem_AzureSecret,
- GoogleSheetsWriteBlockParametersItem_AzureVaultCredential,
- GoogleSheetsWriteBlockParametersItem_BitwardenCreditCardData,
- GoogleSheetsWriteBlockParametersItem_BitwardenLoginCredential,
- GoogleSheetsWriteBlockParametersItem_BitwardenSensitiveInformation,
- GoogleSheetsWriteBlockParametersItem_Context,
- GoogleSheetsWriteBlockParametersItem_Credential,
- GoogleSheetsWriteBlockParametersItem_Onepassword,
- GoogleSheetsWriteBlockParametersItem_Output,
- GoogleSheetsWriteBlockParametersItem_Workflow,
- GoogleSheetsWriteBlockWriteMode,
- GoogleSheetsWriteBlockYaml,
- GoogleSheetsWriteBlockYamlWriteMode,
HttpRequestBlock,
HttpRequestBlockParametersItem,
HttpRequestBlockParametersItem_AwsSecret,
@@ -366,7 +326,6 @@ if typing.TYPE_CHECKING:
RunSdkActionRequestAction_Validate,
RunSdkActionResponse,
RunStatus,
- RunWebhookReplayResponse,
Script,
ScriptFileCreate,
ScriptRunResponse,
@@ -378,7 +337,7 @@ if typing.TYPE_CHECKING:
SendEmailBlock,
SendEmailBlockYaml,
SkyvernForgeSdkSchemasCredentialsCredentialType,
- SkyvernSchemasCredentialTypeCredentialType,
+ SkyvernSchemasRunBlocksCredentialType,
TaskBlock,
TaskBlockDataSchema,
TaskBlockParametersItem,
@@ -396,11 +355,9 @@ if typing.TYPE_CHECKING:
TaskBlockYaml,
TaskBlockYamlDataSchema,
TaskRunListItem,
- TaskRunRequestInputDataExtractionSchema,
- TaskRunRequestInputProxyLocation,
- TaskRunRequestOutput,
- TaskRunRequestOutputDataExtractionSchema,
- TaskRunRequestOutputProxyLocation,
+ TaskRunRequest,
+ TaskRunRequestDataExtractionSchema,
+ TaskRunRequestProxyLocation,
TaskRunResponse,
TaskRunResponseOutput,
TaskV2Block,
@@ -477,67 +434,6 @@ if typing.TYPE_CHECKING:
WaitBlockParametersItem_Output,
WaitBlockParametersItem_Workflow,
WaitBlockYaml,
- WhileLoopBlock,
- WhileLoopBlockCondition,
- WhileLoopBlockCondition_Jinja2Template,
- WhileLoopBlockCondition_Prompt,
- WhileLoopBlockLoopBlocksItem,
- WhileLoopBlockLoopBlocksItem_Action,
- WhileLoopBlockLoopBlocksItem_Code,
- WhileLoopBlockLoopBlocksItem_Conditional,
- WhileLoopBlockLoopBlocksItem_DownloadToS3,
- WhileLoopBlockLoopBlocksItem_Extraction,
- WhileLoopBlockLoopBlocksItem_FileDownload,
- WhileLoopBlockLoopBlocksItem_FileUpload,
- WhileLoopBlockLoopBlocksItem_FileUrlParser,
- WhileLoopBlockLoopBlocksItem_ForLoop,
- WhileLoopBlockLoopBlocksItem_GoogleSheetsRead,
- WhileLoopBlockLoopBlocksItem_GoogleSheetsWrite,
- WhileLoopBlockLoopBlocksItem_GotoUrl,
- WhileLoopBlockLoopBlocksItem_HttpRequest,
- WhileLoopBlockLoopBlocksItem_HumanInteraction,
- WhileLoopBlockLoopBlocksItem_Login,
- WhileLoopBlockLoopBlocksItem_Navigation,
- WhileLoopBlockLoopBlocksItem_PdfParser,
- WhileLoopBlockLoopBlocksItem_PrintPage,
- WhileLoopBlockLoopBlocksItem_SendEmail,
- WhileLoopBlockLoopBlocksItem_Task,
- WhileLoopBlockLoopBlocksItem_TaskV2,
- WhileLoopBlockLoopBlocksItem_TextPrompt,
- WhileLoopBlockLoopBlocksItem_UploadToS3,
- WhileLoopBlockLoopBlocksItem_Validation,
- WhileLoopBlockLoopBlocksItem_Wait,
- WhileLoopBlockLoopBlocksItem_WhileLoop,
- WhileLoopBlockLoopBlocksItem_WorkflowTrigger,
- WhileLoopBlockYaml,
- WhileLoopBlockYamlLoopBlocksItem,
- WhileLoopBlockYamlLoopBlocksItem_Action,
- WhileLoopBlockYamlLoopBlocksItem_Code,
- WhileLoopBlockYamlLoopBlocksItem_Conditional,
- WhileLoopBlockYamlLoopBlocksItem_DownloadToS3,
- WhileLoopBlockYamlLoopBlocksItem_Extraction,
- WhileLoopBlockYamlLoopBlocksItem_FileDownload,
- WhileLoopBlockYamlLoopBlocksItem_FileUpload,
- WhileLoopBlockYamlLoopBlocksItem_FileUrlParser,
- WhileLoopBlockYamlLoopBlocksItem_ForLoop,
- WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsRead,
- WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite,
- WhileLoopBlockYamlLoopBlocksItem_GotoUrl,
- WhileLoopBlockYamlLoopBlocksItem_HttpRequest,
- WhileLoopBlockYamlLoopBlocksItem_HumanInteraction,
- WhileLoopBlockYamlLoopBlocksItem_Login,
- WhileLoopBlockYamlLoopBlocksItem_Navigation,
- WhileLoopBlockYamlLoopBlocksItem_PdfParser,
- WhileLoopBlockYamlLoopBlocksItem_PrintPage,
- WhileLoopBlockYamlLoopBlocksItem_SendEmail,
- WhileLoopBlockYamlLoopBlocksItem_Task,
- WhileLoopBlockYamlLoopBlocksItem_TaskV2,
- WhileLoopBlockYamlLoopBlocksItem_TextPrompt,
- WhileLoopBlockYamlLoopBlocksItem_UploadToS3,
- WhileLoopBlockYamlLoopBlocksItem_Validation,
- WhileLoopBlockYamlLoopBlocksItem_Wait,
- WhileLoopBlockYamlLoopBlocksItem_WhileLoop,
- WhileLoopBlockYamlLoopBlocksItem_WorkflowTrigger,
Workflow,
WorkflowCreateYamlRequest,
WorkflowCreateYamlRequestProxyLocation,
@@ -552,8 +448,6 @@ if typing.TYPE_CHECKING:
WorkflowDefinitionBlocksItem_FileUpload,
WorkflowDefinitionBlocksItem_FileUrlParser,
WorkflowDefinitionBlocksItem_ForLoop,
- WorkflowDefinitionBlocksItem_GoogleSheetsRead,
- WorkflowDefinitionBlocksItem_GoogleSheetsWrite,
WorkflowDefinitionBlocksItem_GotoUrl,
WorkflowDefinitionBlocksItem_HttpRequest,
WorkflowDefinitionBlocksItem_HumanInteraction,
@@ -568,7 +462,6 @@ if typing.TYPE_CHECKING:
WorkflowDefinitionBlocksItem_UploadToS3,
WorkflowDefinitionBlocksItem_Validation,
WorkflowDefinitionBlocksItem_Wait,
- WorkflowDefinitionBlocksItem_WhileLoop,
WorkflowDefinitionBlocksItem_WorkflowTrigger,
WorkflowDefinitionParametersItem,
WorkflowDefinitionParametersItem_AwsSecret,
@@ -593,8 +486,6 @@ if typing.TYPE_CHECKING:
WorkflowDefinitionYamlBlocksItem_FileUpload,
WorkflowDefinitionYamlBlocksItem_FileUrlParser,
WorkflowDefinitionYamlBlocksItem_ForLoop,
- WorkflowDefinitionYamlBlocksItem_GoogleSheetsRead,
- WorkflowDefinitionYamlBlocksItem_GoogleSheetsWrite,
WorkflowDefinitionYamlBlocksItem_GotoUrl,
WorkflowDefinitionYamlBlocksItem_HttpRequest,
WorkflowDefinitionYamlBlocksItem_HumanInteraction,
@@ -609,7 +500,6 @@ if typing.TYPE_CHECKING:
WorkflowDefinitionYamlBlocksItem_UploadToS3,
WorkflowDefinitionYamlBlocksItem_Validation,
WorkflowDefinitionYamlBlocksItem_Wait,
- WorkflowDefinitionYamlBlocksItem_WhileLoop,
WorkflowDefinitionYamlBlocksItem_WorkflowTrigger,
WorkflowDefinitionYamlParametersItem,
WorkflowDefinitionYamlParametersItem_AwsSecret,
@@ -635,9 +525,8 @@ if typing.TYPE_CHECKING:
WorkflowRunBlockNavigationPayload,
WorkflowRunBlockOutput,
WorkflowRunProxyLocation,
- WorkflowRunRequestInputProxyLocation,
- WorkflowRunRequestOutput,
- WorkflowRunRequestOutputProxyLocation,
+ WorkflowRunRequest,
+ WorkflowRunRequestProxyLocation,
WorkflowRunResponse,
WorkflowRunResponseOutput,
WorkflowRunStatus,
@@ -664,16 +553,8 @@ if typing.TYPE_CHECKING:
WorkflowTriggerBlockParametersItem_Workflow,
WorkflowTriggerBlockYaml,
)
- from .errors import (
- BadRequestError,
- ConflictError,
- ForbiddenError,
- InternalServerError,
- NotFoundError,
- RangeNotSatisfiableError,
- UnprocessableEntityError,
- )
- from . import artifacts, schedules, scripts, server, workflows
+ from .errors import BadRequestError, ConflictError, ForbiddenError, NotFoundError, UnprocessableEntityError
+ from . import artifacts, schedules, scripts
from .client import AsyncSkyvern, Skyvern
from .environment import SkyvernEnvironment
from .schedules import SchedulesListAllRequestStatus
@@ -697,7 +578,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"ActionBlockParametersItem_Output": ".types",
"ActionBlockParametersItem_Workflow": ".types",
"ActionBlockYaml": ".types",
- "ActionOutput": ".types",
"ActionStatus": ".types",
"ActionType": ".types",
"Artifact": ".types",
@@ -725,7 +605,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"BranchCriteriaYamlCriteriaType": ".types",
"BrowserProfile": ".types",
"BrowserSessionResponse": ".types",
- "BulkCancelRunsResponse": ".types",
"ClickAction": ".types",
"ClickActionData": ".types",
"ClickContext": ".types",
@@ -761,7 +640,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"ContextParameterSource_Workflow": ".types",
"ContextParameterValue": ".types",
"ContextParameterYaml": ".types",
- "CreateBrowserSessionRequestProxyLocation": ".types",
"CreateCredentialRequest": ".types",
"CreateCredentialRequestCredential": ".types",
"CreateScriptResponse": ".types",
@@ -832,8 +710,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"ForLoopBlockLoopBlocksItem_FileUpload": ".types",
"ForLoopBlockLoopBlocksItem_FileUrlParser": ".types",
"ForLoopBlockLoopBlocksItem_ForLoop": ".types",
- "ForLoopBlockLoopBlocksItem_GoogleSheetsRead": ".types",
- "ForLoopBlockLoopBlocksItem_GoogleSheetsWrite": ".types",
"ForLoopBlockLoopBlocksItem_GotoUrl": ".types",
"ForLoopBlockLoopBlocksItem_HttpRequest": ".types",
"ForLoopBlockLoopBlocksItem_HumanInteraction": ".types",
@@ -848,7 +724,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"ForLoopBlockLoopBlocksItem_UploadToS3": ".types",
"ForLoopBlockLoopBlocksItem_Validation": ".types",
"ForLoopBlockLoopBlocksItem_Wait": ".types",
- "ForLoopBlockLoopBlocksItem_WhileLoop": ".types",
"ForLoopBlockLoopBlocksItem_WorkflowTrigger": ".types",
"ForLoopBlockLoopOver": ".types",
"ForLoopBlockLoopOver_AwsSecret": ".types",
@@ -874,8 +749,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"ForLoopBlockYamlLoopBlocksItem_FileUpload": ".types",
"ForLoopBlockYamlLoopBlocksItem_FileUrlParser": ".types",
"ForLoopBlockYamlLoopBlocksItem_ForLoop": ".types",
- "ForLoopBlockYamlLoopBlocksItem_GoogleSheetsRead": ".types",
- "ForLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite": ".types",
"ForLoopBlockYamlLoopBlocksItem_GotoUrl": ".types",
"ForLoopBlockYamlLoopBlocksItem_HttpRequest": ".types",
"ForLoopBlockYamlLoopBlocksItem_HumanInteraction": ".types",
@@ -890,7 +763,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"ForLoopBlockYamlLoopBlocksItem_UploadToS3": ".types",
"ForLoopBlockYamlLoopBlocksItem_Validation": ".types",
"ForLoopBlockYamlLoopBlocksItem_Wait": ".types",
- "ForLoopBlockYamlLoopBlocksItem_WhileLoop": ".types",
"ForLoopBlockYamlLoopBlocksItem_WorkflowTrigger": ".types",
"ForbiddenError": ".errors",
"GeoTarget": ".types",
@@ -901,37 +773,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"GetRunResponse_TaskV2": ".types",
"GetRunResponse_UiTars": ".types",
"GetRunResponse_WorkflowRun": ".types",
- "GetRunResponse_YutoriNavigator": ".types",
- "GoogleSheetsReadBlock": ".types",
- "GoogleSheetsReadBlockParametersItem": ".types",
- "GoogleSheetsReadBlockParametersItem_AwsSecret": ".types",
- "GoogleSheetsReadBlockParametersItem_AzureSecret": ".types",
- "GoogleSheetsReadBlockParametersItem_AzureVaultCredential": ".types",
- "GoogleSheetsReadBlockParametersItem_BitwardenCreditCardData": ".types",
- "GoogleSheetsReadBlockParametersItem_BitwardenLoginCredential": ".types",
- "GoogleSheetsReadBlockParametersItem_BitwardenSensitiveInformation": ".types",
- "GoogleSheetsReadBlockParametersItem_Context": ".types",
- "GoogleSheetsReadBlockParametersItem_Credential": ".types",
- "GoogleSheetsReadBlockParametersItem_Onepassword": ".types",
- "GoogleSheetsReadBlockParametersItem_Output": ".types",
- "GoogleSheetsReadBlockParametersItem_Workflow": ".types",
- "GoogleSheetsReadBlockYaml": ".types",
- "GoogleSheetsWriteBlock": ".types",
- "GoogleSheetsWriteBlockParametersItem": ".types",
- "GoogleSheetsWriteBlockParametersItem_AwsSecret": ".types",
- "GoogleSheetsWriteBlockParametersItem_AzureSecret": ".types",
- "GoogleSheetsWriteBlockParametersItem_AzureVaultCredential": ".types",
- "GoogleSheetsWriteBlockParametersItem_BitwardenCreditCardData": ".types",
- "GoogleSheetsWriteBlockParametersItem_BitwardenLoginCredential": ".types",
- "GoogleSheetsWriteBlockParametersItem_BitwardenSensitiveInformation": ".types",
- "GoogleSheetsWriteBlockParametersItem_Context": ".types",
- "GoogleSheetsWriteBlockParametersItem_Credential": ".types",
- "GoogleSheetsWriteBlockParametersItem_Onepassword": ".types",
- "GoogleSheetsWriteBlockParametersItem_Output": ".types",
- "GoogleSheetsWriteBlockParametersItem_Workflow": ".types",
- "GoogleSheetsWriteBlockWriteMode": ".types",
- "GoogleSheetsWriteBlockYaml": ".types",
- "GoogleSheetsWriteBlockYamlWriteMode": ".types",
"HttpRequestBlock": ".types",
"HttpRequestBlockParametersItem": ".types",
"HttpRequestBlockParametersItem_AwsSecret": ".types",
@@ -965,7 +806,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"InputOrSelectContext": ".types",
"InputTextAction": ".types",
"InputTextActionData": ".types",
- "InternalServerError": ".errors",
"JinjaBranchCriteria": ".types",
"LocateElementAction": ".types",
"LoginBlock": ".types",
@@ -1030,7 +870,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"PromptAction": ".types",
"PromptBranchCriteria": ".types",
"ProxyLocation": ".types",
- "RangeNotSatisfiableError": ".errors",
"RetryRunWebhookRequest": ".types",
"RunEngine": ".types",
"RunSdkActionRequestAction": ".types",
@@ -1045,7 +884,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"RunSdkActionRequestAction_Validate": ".types",
"RunSdkActionResponse": ".types",
"RunStatus": ".types",
- "RunWebhookReplayResponse": ".types",
"SchedulesListAllRequestStatus": ".schedules",
"Script": ".types",
"ScriptFileCreate": ".types",
@@ -1060,7 +898,7 @@ _dynamic_imports: typing.Dict[str, str] = {
"Skyvern": ".client",
"SkyvernEnvironment": ".environment",
"SkyvernForgeSdkSchemasCredentialsCredentialType": ".types",
- "SkyvernSchemasCredentialTypeCredentialType": ".types",
+ "SkyvernSchemasRunBlocksCredentialType": ".types",
"TaskBlock": ".types",
"TaskBlockDataSchema": ".types",
"TaskBlockParametersItem": ".types",
@@ -1078,11 +916,9 @@ _dynamic_imports: typing.Dict[str, str] = {
"TaskBlockYaml": ".types",
"TaskBlockYamlDataSchema": ".types",
"TaskRunListItem": ".types",
- "TaskRunRequestInputDataExtractionSchema": ".types",
- "TaskRunRequestInputProxyLocation": ".types",
- "TaskRunRequestOutput": ".types",
- "TaskRunRequestOutputDataExtractionSchema": ".types",
- "TaskRunRequestOutputProxyLocation": ".types",
+ "TaskRunRequest": ".types",
+ "TaskRunRequestDataExtractionSchema": ".types",
+ "TaskRunRequestProxyLocation": ".types",
"TaskRunResponse": ".types",
"TaskRunResponseOutput": ".types",
"TaskV2Block": ".types",
@@ -1160,67 +996,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"WaitBlockParametersItem_Output": ".types",
"WaitBlockParametersItem_Workflow": ".types",
"WaitBlockYaml": ".types",
- "WhileLoopBlock": ".types",
- "WhileLoopBlockCondition": ".types",
- "WhileLoopBlockCondition_Jinja2Template": ".types",
- "WhileLoopBlockCondition_Prompt": ".types",
- "WhileLoopBlockLoopBlocksItem": ".types",
- "WhileLoopBlockLoopBlocksItem_Action": ".types",
- "WhileLoopBlockLoopBlocksItem_Code": ".types",
- "WhileLoopBlockLoopBlocksItem_Conditional": ".types",
- "WhileLoopBlockLoopBlocksItem_DownloadToS3": ".types",
- "WhileLoopBlockLoopBlocksItem_Extraction": ".types",
- "WhileLoopBlockLoopBlocksItem_FileDownload": ".types",
- "WhileLoopBlockLoopBlocksItem_FileUpload": ".types",
- "WhileLoopBlockLoopBlocksItem_FileUrlParser": ".types",
- "WhileLoopBlockLoopBlocksItem_ForLoop": ".types",
- "WhileLoopBlockLoopBlocksItem_GoogleSheetsRead": ".types",
- "WhileLoopBlockLoopBlocksItem_GoogleSheetsWrite": ".types",
- "WhileLoopBlockLoopBlocksItem_GotoUrl": ".types",
- "WhileLoopBlockLoopBlocksItem_HttpRequest": ".types",
- "WhileLoopBlockLoopBlocksItem_HumanInteraction": ".types",
- "WhileLoopBlockLoopBlocksItem_Login": ".types",
- "WhileLoopBlockLoopBlocksItem_Navigation": ".types",
- "WhileLoopBlockLoopBlocksItem_PdfParser": ".types",
- "WhileLoopBlockLoopBlocksItem_PrintPage": ".types",
- "WhileLoopBlockLoopBlocksItem_SendEmail": ".types",
- "WhileLoopBlockLoopBlocksItem_Task": ".types",
- "WhileLoopBlockLoopBlocksItem_TaskV2": ".types",
- "WhileLoopBlockLoopBlocksItem_TextPrompt": ".types",
- "WhileLoopBlockLoopBlocksItem_UploadToS3": ".types",
- "WhileLoopBlockLoopBlocksItem_Validation": ".types",
- "WhileLoopBlockLoopBlocksItem_Wait": ".types",
- "WhileLoopBlockLoopBlocksItem_WhileLoop": ".types",
- "WhileLoopBlockLoopBlocksItem_WorkflowTrigger": ".types",
- "WhileLoopBlockYaml": ".types",
- "WhileLoopBlockYamlLoopBlocksItem": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_Action": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_Code": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_Conditional": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_DownloadToS3": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_Extraction": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_FileDownload": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_FileUpload": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_FileUrlParser": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_ForLoop": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsRead": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_GotoUrl": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_HttpRequest": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_HumanInteraction": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_Login": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_Navigation": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_PdfParser": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_PrintPage": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_SendEmail": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_Task": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_TaskV2": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_TextPrompt": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_UploadToS3": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_Validation": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_Wait": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_WhileLoop": ".types",
- "WhileLoopBlockYamlLoopBlocksItem_WorkflowTrigger": ".types",
"Workflow": ".types",
"WorkflowCreateYamlRequest": ".types",
"WorkflowCreateYamlRequestProxyLocation": ".types",
@@ -1235,8 +1010,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"WorkflowDefinitionBlocksItem_FileUpload": ".types",
"WorkflowDefinitionBlocksItem_FileUrlParser": ".types",
"WorkflowDefinitionBlocksItem_ForLoop": ".types",
- "WorkflowDefinitionBlocksItem_GoogleSheetsRead": ".types",
- "WorkflowDefinitionBlocksItem_GoogleSheetsWrite": ".types",
"WorkflowDefinitionBlocksItem_GotoUrl": ".types",
"WorkflowDefinitionBlocksItem_HttpRequest": ".types",
"WorkflowDefinitionBlocksItem_HumanInteraction": ".types",
@@ -1251,7 +1024,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"WorkflowDefinitionBlocksItem_UploadToS3": ".types",
"WorkflowDefinitionBlocksItem_Validation": ".types",
"WorkflowDefinitionBlocksItem_Wait": ".types",
- "WorkflowDefinitionBlocksItem_WhileLoop": ".types",
"WorkflowDefinitionBlocksItem_WorkflowTrigger": ".types",
"WorkflowDefinitionParametersItem": ".types",
"WorkflowDefinitionParametersItem_AwsSecret": ".types",
@@ -1276,8 +1048,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"WorkflowDefinitionYamlBlocksItem_FileUpload": ".types",
"WorkflowDefinitionYamlBlocksItem_FileUrlParser": ".types",
"WorkflowDefinitionYamlBlocksItem_ForLoop": ".types",
- "WorkflowDefinitionYamlBlocksItem_GoogleSheetsRead": ".types",
- "WorkflowDefinitionYamlBlocksItem_GoogleSheetsWrite": ".types",
"WorkflowDefinitionYamlBlocksItem_GotoUrl": ".types",
"WorkflowDefinitionYamlBlocksItem_HttpRequest": ".types",
"WorkflowDefinitionYamlBlocksItem_HumanInteraction": ".types",
@@ -1292,7 +1062,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"WorkflowDefinitionYamlBlocksItem_UploadToS3": ".types",
"WorkflowDefinitionYamlBlocksItem_Validation": ".types",
"WorkflowDefinitionYamlBlocksItem_Wait": ".types",
- "WorkflowDefinitionYamlBlocksItem_WhileLoop": ".types",
"WorkflowDefinitionYamlBlocksItem_WorkflowTrigger": ".types",
"WorkflowDefinitionYamlParametersItem": ".types",
"WorkflowDefinitionYamlParametersItem_AwsSecret": ".types",
@@ -1318,9 +1087,8 @@ _dynamic_imports: typing.Dict[str, str] = {
"WorkflowRunBlockNavigationPayload": ".types",
"WorkflowRunBlockOutput": ".types",
"WorkflowRunProxyLocation": ".types",
- "WorkflowRunRequestInputProxyLocation": ".types",
- "WorkflowRunRequestOutput": ".types",
- "WorkflowRunRequestOutputProxyLocation": ".types",
+ "WorkflowRunRequest": ".types",
+ "WorkflowRunRequestProxyLocation": ".types",
"WorkflowRunResponse": ".types",
"WorkflowRunResponseOutput": ".types",
"WorkflowRunStatus": ".types",
@@ -1350,8 +1118,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"artifacts": ".artifacts",
"schedules": ".schedules",
"scripts": ".scripts",
- "server": ".server",
- "workflows": ".workflows",
}
@@ -1395,7 +1161,6 @@ __all__ = [
"ActionBlockParametersItem_Output",
"ActionBlockParametersItem_Workflow",
"ActionBlockYaml",
- "ActionOutput",
"ActionStatus",
"ActionType",
"Artifact",
@@ -1423,7 +1188,6 @@ __all__ = [
"BranchCriteriaYamlCriteriaType",
"BrowserProfile",
"BrowserSessionResponse",
- "BulkCancelRunsResponse",
"ClickAction",
"ClickActionData",
"ClickContext",
@@ -1459,7 +1223,6 @@ __all__ = [
"ContextParameterSource_Workflow",
"ContextParameterValue",
"ContextParameterYaml",
- "CreateBrowserSessionRequestProxyLocation",
"CreateCredentialRequest",
"CreateCredentialRequestCredential",
"CreateScriptResponse",
@@ -1530,8 +1293,6 @@ __all__ = [
"ForLoopBlockLoopBlocksItem_FileUpload",
"ForLoopBlockLoopBlocksItem_FileUrlParser",
"ForLoopBlockLoopBlocksItem_ForLoop",
- "ForLoopBlockLoopBlocksItem_GoogleSheetsRead",
- "ForLoopBlockLoopBlocksItem_GoogleSheetsWrite",
"ForLoopBlockLoopBlocksItem_GotoUrl",
"ForLoopBlockLoopBlocksItem_HttpRequest",
"ForLoopBlockLoopBlocksItem_HumanInteraction",
@@ -1546,7 +1307,6 @@ __all__ = [
"ForLoopBlockLoopBlocksItem_UploadToS3",
"ForLoopBlockLoopBlocksItem_Validation",
"ForLoopBlockLoopBlocksItem_Wait",
- "ForLoopBlockLoopBlocksItem_WhileLoop",
"ForLoopBlockLoopBlocksItem_WorkflowTrigger",
"ForLoopBlockLoopOver",
"ForLoopBlockLoopOver_AwsSecret",
@@ -1572,8 +1332,6 @@ __all__ = [
"ForLoopBlockYamlLoopBlocksItem_FileUpload",
"ForLoopBlockYamlLoopBlocksItem_FileUrlParser",
"ForLoopBlockYamlLoopBlocksItem_ForLoop",
- "ForLoopBlockYamlLoopBlocksItem_GoogleSheetsRead",
- "ForLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite",
"ForLoopBlockYamlLoopBlocksItem_GotoUrl",
"ForLoopBlockYamlLoopBlocksItem_HttpRequest",
"ForLoopBlockYamlLoopBlocksItem_HumanInteraction",
@@ -1588,7 +1346,6 @@ __all__ = [
"ForLoopBlockYamlLoopBlocksItem_UploadToS3",
"ForLoopBlockYamlLoopBlocksItem_Validation",
"ForLoopBlockYamlLoopBlocksItem_Wait",
- "ForLoopBlockYamlLoopBlocksItem_WhileLoop",
"ForLoopBlockYamlLoopBlocksItem_WorkflowTrigger",
"ForbiddenError",
"GeoTarget",
@@ -1599,37 +1356,6 @@ __all__ = [
"GetRunResponse_TaskV2",
"GetRunResponse_UiTars",
"GetRunResponse_WorkflowRun",
- "GetRunResponse_YutoriNavigator",
- "GoogleSheetsReadBlock",
- "GoogleSheetsReadBlockParametersItem",
- "GoogleSheetsReadBlockParametersItem_AwsSecret",
- "GoogleSheetsReadBlockParametersItem_AzureSecret",
- "GoogleSheetsReadBlockParametersItem_AzureVaultCredential",
- "GoogleSheetsReadBlockParametersItem_BitwardenCreditCardData",
- "GoogleSheetsReadBlockParametersItem_BitwardenLoginCredential",
- "GoogleSheetsReadBlockParametersItem_BitwardenSensitiveInformation",
- "GoogleSheetsReadBlockParametersItem_Context",
- "GoogleSheetsReadBlockParametersItem_Credential",
- "GoogleSheetsReadBlockParametersItem_Onepassword",
- "GoogleSheetsReadBlockParametersItem_Output",
- "GoogleSheetsReadBlockParametersItem_Workflow",
- "GoogleSheetsReadBlockYaml",
- "GoogleSheetsWriteBlock",
- "GoogleSheetsWriteBlockParametersItem",
- "GoogleSheetsWriteBlockParametersItem_AwsSecret",
- "GoogleSheetsWriteBlockParametersItem_AzureSecret",
- "GoogleSheetsWriteBlockParametersItem_AzureVaultCredential",
- "GoogleSheetsWriteBlockParametersItem_BitwardenCreditCardData",
- "GoogleSheetsWriteBlockParametersItem_BitwardenLoginCredential",
- "GoogleSheetsWriteBlockParametersItem_BitwardenSensitiveInformation",
- "GoogleSheetsWriteBlockParametersItem_Context",
- "GoogleSheetsWriteBlockParametersItem_Credential",
- "GoogleSheetsWriteBlockParametersItem_Onepassword",
- "GoogleSheetsWriteBlockParametersItem_Output",
- "GoogleSheetsWriteBlockParametersItem_Workflow",
- "GoogleSheetsWriteBlockWriteMode",
- "GoogleSheetsWriteBlockYaml",
- "GoogleSheetsWriteBlockYamlWriteMode",
"HttpRequestBlock",
"HttpRequestBlockParametersItem",
"HttpRequestBlockParametersItem_AwsSecret",
@@ -1663,7 +1389,6 @@ __all__ = [
"InputOrSelectContext",
"InputTextAction",
"InputTextActionData",
- "InternalServerError",
"JinjaBranchCriteria",
"LocateElementAction",
"LoginBlock",
@@ -1728,7 +1453,6 @@ __all__ = [
"PromptAction",
"PromptBranchCriteria",
"ProxyLocation",
- "RangeNotSatisfiableError",
"RetryRunWebhookRequest",
"RunEngine",
"RunSdkActionRequestAction",
@@ -1743,7 +1467,6 @@ __all__ = [
"RunSdkActionRequestAction_Validate",
"RunSdkActionResponse",
"RunStatus",
- "RunWebhookReplayResponse",
"SchedulesListAllRequestStatus",
"Script",
"ScriptFileCreate",
@@ -1758,7 +1481,7 @@ __all__ = [
"Skyvern",
"SkyvernEnvironment",
"SkyvernForgeSdkSchemasCredentialsCredentialType",
- "SkyvernSchemasCredentialTypeCredentialType",
+ "SkyvernSchemasRunBlocksCredentialType",
"TaskBlock",
"TaskBlockDataSchema",
"TaskBlockParametersItem",
@@ -1776,11 +1499,9 @@ __all__ = [
"TaskBlockYaml",
"TaskBlockYamlDataSchema",
"TaskRunListItem",
- "TaskRunRequestInputDataExtractionSchema",
- "TaskRunRequestInputProxyLocation",
- "TaskRunRequestOutput",
- "TaskRunRequestOutputDataExtractionSchema",
- "TaskRunRequestOutputProxyLocation",
+ "TaskRunRequest",
+ "TaskRunRequestDataExtractionSchema",
+ "TaskRunRequestProxyLocation",
"TaskRunResponse",
"TaskRunResponseOutput",
"TaskV2Block",
@@ -1858,67 +1579,6 @@ __all__ = [
"WaitBlockParametersItem_Output",
"WaitBlockParametersItem_Workflow",
"WaitBlockYaml",
- "WhileLoopBlock",
- "WhileLoopBlockCondition",
- "WhileLoopBlockCondition_Jinja2Template",
- "WhileLoopBlockCondition_Prompt",
- "WhileLoopBlockLoopBlocksItem",
- "WhileLoopBlockLoopBlocksItem_Action",
- "WhileLoopBlockLoopBlocksItem_Code",
- "WhileLoopBlockLoopBlocksItem_Conditional",
- "WhileLoopBlockLoopBlocksItem_DownloadToS3",
- "WhileLoopBlockLoopBlocksItem_Extraction",
- "WhileLoopBlockLoopBlocksItem_FileDownload",
- "WhileLoopBlockLoopBlocksItem_FileUpload",
- "WhileLoopBlockLoopBlocksItem_FileUrlParser",
- "WhileLoopBlockLoopBlocksItem_ForLoop",
- "WhileLoopBlockLoopBlocksItem_GoogleSheetsRead",
- "WhileLoopBlockLoopBlocksItem_GoogleSheetsWrite",
- "WhileLoopBlockLoopBlocksItem_GotoUrl",
- "WhileLoopBlockLoopBlocksItem_HttpRequest",
- "WhileLoopBlockLoopBlocksItem_HumanInteraction",
- "WhileLoopBlockLoopBlocksItem_Login",
- "WhileLoopBlockLoopBlocksItem_Navigation",
- "WhileLoopBlockLoopBlocksItem_PdfParser",
- "WhileLoopBlockLoopBlocksItem_PrintPage",
- "WhileLoopBlockLoopBlocksItem_SendEmail",
- "WhileLoopBlockLoopBlocksItem_Task",
- "WhileLoopBlockLoopBlocksItem_TaskV2",
- "WhileLoopBlockLoopBlocksItem_TextPrompt",
- "WhileLoopBlockLoopBlocksItem_UploadToS3",
- "WhileLoopBlockLoopBlocksItem_Validation",
- "WhileLoopBlockLoopBlocksItem_Wait",
- "WhileLoopBlockLoopBlocksItem_WhileLoop",
- "WhileLoopBlockLoopBlocksItem_WorkflowTrigger",
- "WhileLoopBlockYaml",
- "WhileLoopBlockYamlLoopBlocksItem",
- "WhileLoopBlockYamlLoopBlocksItem_Action",
- "WhileLoopBlockYamlLoopBlocksItem_Code",
- "WhileLoopBlockYamlLoopBlocksItem_Conditional",
- "WhileLoopBlockYamlLoopBlocksItem_DownloadToS3",
- "WhileLoopBlockYamlLoopBlocksItem_Extraction",
- "WhileLoopBlockYamlLoopBlocksItem_FileDownload",
- "WhileLoopBlockYamlLoopBlocksItem_FileUpload",
- "WhileLoopBlockYamlLoopBlocksItem_FileUrlParser",
- "WhileLoopBlockYamlLoopBlocksItem_ForLoop",
- "WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsRead",
- "WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite",
- "WhileLoopBlockYamlLoopBlocksItem_GotoUrl",
- "WhileLoopBlockYamlLoopBlocksItem_HttpRequest",
- "WhileLoopBlockYamlLoopBlocksItem_HumanInteraction",
- "WhileLoopBlockYamlLoopBlocksItem_Login",
- "WhileLoopBlockYamlLoopBlocksItem_Navigation",
- "WhileLoopBlockYamlLoopBlocksItem_PdfParser",
- "WhileLoopBlockYamlLoopBlocksItem_PrintPage",
- "WhileLoopBlockYamlLoopBlocksItem_SendEmail",
- "WhileLoopBlockYamlLoopBlocksItem_Task",
- "WhileLoopBlockYamlLoopBlocksItem_TaskV2",
- "WhileLoopBlockYamlLoopBlocksItem_TextPrompt",
- "WhileLoopBlockYamlLoopBlocksItem_UploadToS3",
- "WhileLoopBlockYamlLoopBlocksItem_Validation",
- "WhileLoopBlockYamlLoopBlocksItem_Wait",
- "WhileLoopBlockYamlLoopBlocksItem_WhileLoop",
- "WhileLoopBlockYamlLoopBlocksItem_WorkflowTrigger",
"Workflow",
"WorkflowCreateYamlRequest",
"WorkflowCreateYamlRequestProxyLocation",
@@ -1933,8 +1593,6 @@ __all__ = [
"WorkflowDefinitionBlocksItem_FileUpload",
"WorkflowDefinitionBlocksItem_FileUrlParser",
"WorkflowDefinitionBlocksItem_ForLoop",
- "WorkflowDefinitionBlocksItem_GoogleSheetsRead",
- "WorkflowDefinitionBlocksItem_GoogleSheetsWrite",
"WorkflowDefinitionBlocksItem_GotoUrl",
"WorkflowDefinitionBlocksItem_HttpRequest",
"WorkflowDefinitionBlocksItem_HumanInteraction",
@@ -1949,7 +1607,6 @@ __all__ = [
"WorkflowDefinitionBlocksItem_UploadToS3",
"WorkflowDefinitionBlocksItem_Validation",
"WorkflowDefinitionBlocksItem_Wait",
- "WorkflowDefinitionBlocksItem_WhileLoop",
"WorkflowDefinitionBlocksItem_WorkflowTrigger",
"WorkflowDefinitionParametersItem",
"WorkflowDefinitionParametersItem_AwsSecret",
@@ -1974,8 +1631,6 @@ __all__ = [
"WorkflowDefinitionYamlBlocksItem_FileUpload",
"WorkflowDefinitionYamlBlocksItem_FileUrlParser",
"WorkflowDefinitionYamlBlocksItem_ForLoop",
- "WorkflowDefinitionYamlBlocksItem_GoogleSheetsRead",
- "WorkflowDefinitionYamlBlocksItem_GoogleSheetsWrite",
"WorkflowDefinitionYamlBlocksItem_GotoUrl",
"WorkflowDefinitionYamlBlocksItem_HttpRequest",
"WorkflowDefinitionYamlBlocksItem_HumanInteraction",
@@ -1990,7 +1645,6 @@ __all__ = [
"WorkflowDefinitionYamlBlocksItem_UploadToS3",
"WorkflowDefinitionYamlBlocksItem_Validation",
"WorkflowDefinitionYamlBlocksItem_Wait",
- "WorkflowDefinitionYamlBlocksItem_WhileLoop",
"WorkflowDefinitionYamlBlocksItem_WorkflowTrigger",
"WorkflowDefinitionYamlParametersItem",
"WorkflowDefinitionYamlParametersItem_AwsSecret",
@@ -2016,9 +1670,8 @@ __all__ = [
"WorkflowRunBlockNavigationPayload",
"WorkflowRunBlockOutput",
"WorkflowRunProxyLocation",
- "WorkflowRunRequestInputProxyLocation",
- "WorkflowRunRequestOutput",
- "WorkflowRunRequestOutputProxyLocation",
+ "WorkflowRunRequest",
+ "WorkflowRunRequestProxyLocation",
"WorkflowRunResponse",
"WorkflowRunResponseOutput",
"WorkflowRunStatus",
@@ -2048,6 +1701,4 @@ __all__ = [
"artifacts",
"schedules",
"scripts",
- "server",
- "workflows",
]
diff --git a/skyvern/client/client.py b/skyvern/client/client.py
index 74cadd89a..e61082be9 100644
--- a/skyvern/client/client.py
+++ b/skyvern/client/client.py
@@ -14,8 +14,6 @@ from .types.artifact import Artifact
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.create_browser_session_request_proxy_location import CreateBrowserSessionRequestProxyLocation
from .types.create_credential_request_credential import CreateCredentialRequestCredential
from .types.create_script_response import CreateScriptResponse
from .types.credential_response import CredentialResponse
@@ -31,21 +29,20 @@ 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_webhook_replay_response import RunWebhookReplayResponse
from .types.script import Script
from .types.script_file_create import ScriptFileCreate
from .types.skyvern_forge_sdk_schemas_credentials_credential_type import SkyvernForgeSdkSchemasCredentialsCredentialType
-from .types.skyvern_schemas_credential_type_credential_type import SkyvernSchemasCredentialTypeCredentialType
+from .types.skyvern_schemas_run_blocks_credential_type import SkyvernSchemasRunBlocksCredentialType
from .types.task_run_list_item import TaskRunListItem
-from .types.task_run_request_input_data_extraction_schema import TaskRunRequestInputDataExtractionSchema
-from .types.task_run_request_input_proxy_location import TaskRunRequestInputProxyLocation
+from .types.task_run_request_data_extraction_schema import TaskRunRequestDataExtractionSchema
+from .types.task_run_request_proxy_location import TaskRunRequestProxyLocation
from .types.task_run_response import TaskRunResponse
from .types.totp_code import TotpCode
from .types.upload_file_response import UploadFileResponse
from .types.workflow import Workflow
from .types.workflow_create_yaml_request import WorkflowCreateYamlRequest
from .types.workflow_run import WorkflowRun
-from .types.workflow_run_request_input_proxy_location import WorkflowRunRequestInputProxyLocation
+from .types.workflow_run_request_proxy_location import WorkflowRunRequestProxyLocation
from .types.workflow_run_response import WorkflowRunResponse
from .types.workflow_run_status import WorkflowRunStatus
from .types.workflow_run_timeline import WorkflowRunTimeline
@@ -55,8 +52,6 @@ if typing.TYPE_CHECKING:
from .artifacts.client import ArtifactsClient, AsyncArtifactsClient
from .schedules.client import AsyncSchedulesClient, SchedulesClient
from .scripts.client import AsyncScriptsClient, ScriptsClient
- from .server.client import AsyncServerClient, ServerClient
- from .workflows.client import AsyncWorkflowsClient, WorkflowsClient
# this is used as the default value for optional parameters
OMIT = typing.cast(typing.Any, ...)
@@ -128,8 +123,6 @@ class Skyvern:
)
self._raw_client = RawSkyvern(client_wrapper=self._client_wrapper)
self._artifacts: typing.Optional[ArtifactsClient] = None
- self._server: typing.Optional[ServerClient] = None
- self._workflows: typing.Optional[WorkflowsClient] = None
self._scripts: typing.Optional[ScriptsClient] = None
self._schedules: typing.Optional[SchedulesClient] = None
@@ -152,8 +145,8 @@ class Skyvern:
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,
+ proxy_location: typing.Optional[TaskRunRequestProxyLocation] = OMIT,
+ data_extraction_schema: typing.Optional[TaskRunRequestDataExtractionSchema] = 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,
@@ -162,7 +155,6 @@ class Skyvern:
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,
@@ -192,7 +184,7 @@ class Skyvern:
title : typing.Optional[str]
The title for the task
- proxy_location : typing.Optional[TaskRunRequestInputProxyLocation]
+ proxy_location : typing.Optional[TaskRunRequestProxyLocation]
Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
@@ -208,7 +200,6 @@ class Skyvern:
- 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
@@ -225,11 +216,9 @@ class Skyvern:
- 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]
+ data_extraction_schema : typing.Optional[TaskRunRequestDataExtractionSchema]
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/.
@@ -264,9 +253,6 @@ class Skyvern:
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.
@@ -318,7 +304,6 @@ class Skyvern:
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,
@@ -337,7 +322,7 @@ class Skyvern:
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,
+ proxy_location: typing.Optional[WorkflowRunRequestProxyLocation] = OMIT,
webhook_url: typing.Optional[str] = OMIT,
totp_url: typing.Optional[str] = OMIT,
totp_identifier: typing.Optional[str] = OMIT,
@@ -346,11 +331,10 @@ class Skyvern:
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,
+ run_metadata: typing.Optional[typing.Dict[str, str]] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> WorkflowRunResponse:
"""
@@ -373,7 +357,7 @@ class Skyvern:
title : typing.Optional[str]
The title for this workflow run
- proxy_location : typing.Optional[WorkflowRunRequestInputProxyLocation]
+ proxy_location : typing.Optional[WorkflowRunRequestProxyLocation]
Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
@@ -389,7 +373,6 @@ class Skyvern:
- 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
@@ -406,8 +389,6 @@ class Skyvern:
- 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]
@@ -436,9 +417,6 @@ class Skyvern:
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.
@@ -448,7 +426,7 @@ class Skyvern:
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]]]
+ run_metadata : typing.Optional[typing.Dict[str, str]]
String key/value metadata to attach to this workflow run for analytics tag filtering.
request_options : typing.Optional[RequestOptions]
@@ -489,7 +467,6 @@ class Skyvern:
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,
@@ -498,22 +475,33 @@ class Skyvern:
)
return _response.data
- def get_run(self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetRunResponse:
+ 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,
+ ) -> WorkflowRunResponse:
"""
- Get run information (task run, workflow run)
+ Retry a workflow run using the original run parameters.
Parameters
----------
- run_id : str
- The id of the task run or the workflow run.
+ 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
-------
- GetRunResponse
- Successfully got run
+ WorkflowRunResponse
+ Successfully retried workflow run
Examples
--------
@@ -522,31 +510,34 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.get_run(
- run_id="tsk_123",
+ client.retry_workflow_run(
+ workflow_run_id="wr_123",
)
"""
- _response = self._raw_client.get_run(run_id, request_options=request_options)
+ _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 cancel_run(
- self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> typing.Optional[typing.Any]:
+ def get_run(self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetRunResponse:
"""
- Cancel a run (task or workflow)
+ Get run information (task run, workflow run)
Parameters
----------
run_id : str
- The id of the task run or the workflow run to cancel.
+ The id of the task run or the workflow run.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- typing.Optional[typing.Any]
- Successful Response
+ GetRunResponse
+ Successfully got run
Examples
--------
@@ -555,30 +546,30 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.cancel_run(
- run_id="run_id",
+ client.get_run(
+ run_id="tsk_123",
)
"""
- _response = self._raw_client.cancel_run(run_id, request_options=request_options)
+ _response = self._raw_client.get_run(run_id, request_options=request_options)
return _response.data
- def bulk_cancel_runs(
- self, *, run_ids: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None
- ) -> BulkCancelRunsResponse:
+ def cancel_run(
+ self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> typing.Optional[typing.Any]:
"""
- Cancel multiple runs (tasks or workflows) in a single request
+ Cancel a run (task or workflow)
Parameters
----------
- run_ids : typing.Sequence[str]
- List of run IDs to cancel
+ run_id : str
+ The id of the task run or the workflow run to cancel.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- BulkCancelRunsResponse
+ typing.Optional[typing.Any]
Successful Response
Examples
@@ -588,11 +579,11 @@ class Skyvern:
client = Skyvern(
api_key="YOUR_API_KEY",
)
- client.bulk_cancel_runs(
- run_ids=["run_ids"],
+ client.cancel_run(
+ run_id="run_id",
)
"""
- _response = self._raw_client.bulk_cancel_runs(run_ids=run_ids, request_options=request_options)
+ _response = self._raw_client.cancel_run(run_id, request_options=request_options)
return _response.data
def get_workflows(
@@ -1117,7 +1108,7 @@ class Skyvern:
*,
request: typing.Optional[RetryRunWebhookRequest] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> RunWebhookReplayResponse:
+ ) -> typing.Optional[typing.Any]:
"""
Retry sending the webhook for a run
@@ -1133,7 +1124,7 @@ class Skyvern:
Returns
-------
- RunWebhookReplayResponse
+ typing.Optional[typing.Any]
Successful Response
Examples
@@ -1184,55 +1175,6 @@ class Skyvern:
_response = self._raw_client.get_run_timeline(run_id, request_options=request_options)
return _response.data
- 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,
- ) -> 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
- -------
- 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_runs_v2(
self,
*,
@@ -1383,19 +1325,10 @@ class Skyvern:
"""
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
+ Workflow permanent ID. Workflow ID starts with `wpid_`.
page : typing.Optional[int]
Page number for pagination.
@@ -1407,10 +1340,10 @@ class Skyvern:
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.
+ Case-insensitive substring search across workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers.
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.
+ Exact-match filter on the error_code field inside each task's errors JSON array.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -1419,21 +1352,6 @@ class Skyvern:
-------
typing.List[WorkflowRun]
Successful Response
-
- Examples
- --------
- 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",
- )
"""
_response = self._raw_client.get_workflow_runs_by_id(
workflow_id,
@@ -1559,29 +1477,16 @@ class Skyvern:
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,
- request_options: typing.Optional[RequestOptions] = None,
+ self, *, include_deleted: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None
) -> typing.List[BrowserProfile]:
"""
Get all browser profiles for the organization
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.
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -1598,18 +1503,11 @@ class Skyvern:
api_key="YOUR_API_KEY",
)
client.list_browser_profiles(
- page=1,
- page_size=1,
include_deleted=True,
- search_key="search_key",
)
"""
_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,
+ include_deleted=include_deleted, request_options=request_options
)
return _response.data
@@ -1732,52 +1630,6 @@ class Skyvern:
_response = self._raw_client.delete_browser_profile(profile_id, request_options=request_options)
return _response.data
- def update_browser_profile(
- self,
- profile_id: str,
- *,
- name: typing.Optional[str] = OMIT,
- description: typing.Optional[str] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> BrowserProfile:
- """
- Update a browser profile's name and/or description
-
- 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
-
- description : typing.Optional[str]
- New description for the browser profile
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- BrowserProfile
- Successfully updated browser profile
-
- Examples
- --------
- from skyvern import Skyvern
-
- client = Skyvern(
- api_key="YOUR_API_KEY",
- )
- client.update_browser_profile(
- profile_id="bp_123456",
- )
- """
- _response = self._raw_client.update_browser_profile(
- profile_id, name=name, description=description, request_options=request_options
- )
- return _response.data
-
def get_browser_sessions(
self, *, request_options: typing.Optional[RequestOptions] = None
) -> typing.List[BrowserSessionResponse]:
@@ -1810,7 +1662,7 @@ class Skyvern:
self,
*,
timeout: typing.Optional[int] = OMIT,
- proxy_location: typing.Optional[CreateBrowserSessionRequestProxyLocation] = OMIT,
+ proxy_location: typing.Optional[ProxyLocation] = OMIT,
extensions: typing.Optional[typing.Sequence[Extensions]] = OMIT,
browser_type: typing.Optional[PersistentBrowserType] = OMIT,
browser_profile_id: typing.Optional[str] = OMIT,
@@ -1824,7 +1676,7 @@ class Skyvern:
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]
+ proxy_location : typing.Optional[ProxyLocation]
Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
@@ -1840,7 +1692,6 @@ class Skyvern:
- 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
@@ -1858,9 +1709,6 @@ class Skyvern:
- 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.
@@ -2276,8 +2124,7 @@ class Skyvern:
def login(
self,
*,
- credential_type: SkyvernSchemasCredentialTypeCredentialType,
- user_agent: typing.Optional[str] = None,
+ credential_type: SkyvernSchemasRunBlocksCredentialType,
url: typing.Optional[str] = OMIT,
webhook_url: typing.Optional[str] = OMIT,
proxy_location: typing.Optional[ProxyLocation] = OMIT,
@@ -2287,7 +2134,6 @@ class Skyvern:
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,
@@ -2306,11 +2152,9 @@ class Skyvern:
Parameters
----------
- credential_type : SkyvernSchemasCredentialTypeCredentialType
+ credential_type : SkyvernSchemasRunBlocksCredentialType
Where to get the credential from
- user_agent : typing.Optional[str]
-
url : typing.Optional[str]
Website URL
@@ -2338,9 +2182,6 @@ class Skyvern:
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
@@ -2390,13 +2231,11 @@ class Skyvern:
api_key="YOUR_API_KEY",
)
client.login(
- user_agent="x-user-agent",
credential_type="skyvern",
)
"""
_response = self._raw_client.login(
credential_type=credential_type,
- user_agent=user_agent,
url=url,
webhook_url=webhook_url,
proxy_location=proxy_location,
@@ -2406,7 +2245,6 @@ class Skyvern:
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,
@@ -2426,7 +2264,6 @@ class Skyvern:
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,
@@ -2436,7 +2273,6 @@ class Skyvern:
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,
@@ -2451,8 +2287,6 @@ class Skyvern:
navigation_goal : str
Instructions for navigating to and downloading the file
- user_agent : typing.Optional[str]
-
url : typing.Optional[str]
Website URL
@@ -2480,9 +2314,6 @@ class Skyvern:
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
@@ -2511,13 +2342,11 @@ class Skyvern:
api_key="YOUR_API_KEY",
)
client.download_files(
- user_agent="x-user-agent",
navigation_goal="navigation_goal",
)
"""
_response = self._raw_client.download_files(
navigation_goal=navigation_goal,
- user_agent=user_agent,
url=url,
webhook_url=webhook_url,
proxy_location=proxy_location,
@@ -2527,7 +2356,6 @@ class Skyvern:
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,
@@ -2766,22 +2594,6 @@ class Skyvern:
self._artifacts = ArtifactsClient(client_wrapper=self._client_wrapper)
return self._artifacts
- @property
- def server(self):
- if self._server is None:
- from .server.client import ServerClient # noqa: E402
-
- self._server = ServerClient(client_wrapper=self._client_wrapper)
- return self._server
-
- @property
- def workflows(self):
- if self._workflows is None:
- from .workflows.client import WorkflowsClient # noqa: E402
-
- self._workflows = WorkflowsClient(client_wrapper=self._client_wrapper)
- return self._workflows
-
@property
def scripts(self):
if self._scripts is None:
@@ -2866,8 +2678,6 @@ class AsyncSkyvern:
)
self._raw_client = AsyncRawSkyvern(client_wrapper=self._client_wrapper)
self._artifacts: typing.Optional[AsyncArtifactsClient] = None
- self._server: typing.Optional[AsyncServerClient] = None
- self._workflows: typing.Optional[AsyncWorkflowsClient] = None
self._scripts: typing.Optional[AsyncScriptsClient] = None
self._schedules: typing.Optional[AsyncSchedulesClient] = None
@@ -2890,8 +2700,8 @@ class AsyncSkyvern:
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,
+ proxy_location: typing.Optional[TaskRunRequestProxyLocation] = OMIT,
+ data_extraction_schema: typing.Optional[TaskRunRequestDataExtractionSchema] = 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,
@@ -2900,7 +2710,6 @@ class AsyncSkyvern:
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,
@@ -2930,7 +2739,7 @@ class AsyncSkyvern:
title : typing.Optional[str]
The title for the task
- proxy_location : typing.Optional[TaskRunRequestInputProxyLocation]
+ proxy_location : typing.Optional[TaskRunRequestProxyLocation]
Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
@@ -2946,7 +2755,6 @@ class AsyncSkyvern:
- 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
@@ -2963,11 +2771,9 @@ class AsyncSkyvern:
- 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]
+ data_extraction_schema : typing.Optional[TaskRunRequestDataExtractionSchema]
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/.
@@ -3002,9 +2808,6 @@ class AsyncSkyvern:
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.
@@ -3064,7 +2867,6 @@ class AsyncSkyvern:
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,
@@ -3083,7 +2885,7 @@ class AsyncSkyvern:
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,
+ proxy_location: typing.Optional[WorkflowRunRequestProxyLocation] = OMIT,
webhook_url: typing.Optional[str] = OMIT,
totp_url: typing.Optional[str] = OMIT,
totp_identifier: typing.Optional[str] = OMIT,
@@ -3092,11 +2894,10 @@ class AsyncSkyvern:
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,
+ run_metadata: typing.Optional[typing.Dict[str, str]] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> WorkflowRunResponse:
"""
@@ -3119,7 +2920,7 @@ class AsyncSkyvern:
title : typing.Optional[str]
The title for this workflow run
- proxy_location : typing.Optional[WorkflowRunRequestInputProxyLocation]
+ proxy_location : typing.Optional[WorkflowRunRequestProxyLocation]
Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
@@ -3135,7 +2936,6 @@ class AsyncSkyvern:
- 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
@@ -3152,8 +2952,6 @@ class AsyncSkyvern:
- 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]
@@ -3182,9 +2980,6 @@ class AsyncSkyvern:
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.
@@ -3194,7 +2989,7 @@ class AsyncSkyvern:
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]]]
+ run_metadata : typing.Optional[typing.Dict[str, str]]
String key/value metadata to attach to this workflow run for analytics tag filtering.
request_options : typing.Optional[RequestOptions]
@@ -3243,7 +3038,6 @@ class AsyncSkyvern:
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,
@@ -3252,22 +3046,33 @@ class AsyncSkyvern:
)
return _response.data
- async def get_run(self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetRunResponse:
+ async 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,
+ ) -> WorkflowRunResponse:
"""
- Get run information (task run, workflow run)
+ Retry a workflow run using the original run parameters.
Parameters
----------
- run_id : str
- The id of the task run or the workflow run.
+ 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
-------
- GetRunResponse
- Successfully got run
+ WorkflowRunResponse
+ Successfully retried workflow run
Examples
--------
@@ -3281,34 +3086,37 @@ class AsyncSkyvern:
async def main() -> None:
- await client.get_run(
- run_id="tsk_123",
+ await client.retry_workflow_run(
+ workflow_run_id="wr_123",
)
asyncio.run(main())
"""
- _response = await self._raw_client.get_run(run_id, request_options=request_options)
+ _response = await 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
- async def cancel_run(
- self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> typing.Optional[typing.Any]:
+ async def get_run(self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> GetRunResponse:
"""
- Cancel a run (task or workflow)
+ Get run information (task run, workflow run)
Parameters
----------
run_id : str
- The id of the task run or the workflow run to cancel.
+ The id of the task run or the workflow run.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- typing.Optional[typing.Any]
- Successful Response
+ GetRunResponse
+ Successfully got run
Examples
--------
@@ -3322,33 +3130,33 @@ class AsyncSkyvern:
async def main() -> None:
- await client.cancel_run(
- run_id="run_id",
+ await client.get_run(
+ run_id="tsk_123",
)
asyncio.run(main())
"""
- _response = await self._raw_client.cancel_run(run_id, request_options=request_options)
+ _response = await self._raw_client.get_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:
+ async def cancel_run(
+ self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> typing.Optional[typing.Any]:
"""
- Cancel multiple runs (tasks or workflows) in a single request
+ Cancel a run (task or workflow)
Parameters
----------
- run_ids : typing.Sequence[str]
- List of run IDs to cancel
+ run_id : str
+ The id of the task run or the workflow run to cancel.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- BulkCancelRunsResponse
+ typing.Optional[typing.Any]
Successful Response
Examples
@@ -3363,14 +3171,14 @@ class AsyncSkyvern:
async def main() -> None:
- await client.bulk_cancel_runs(
- run_ids=["run_ids"],
+ await client.cancel_run(
+ run_id="run_id",
)
asyncio.run(main())
"""
- _response = await self._raw_client.bulk_cancel_runs(run_ids=run_ids, request_options=request_options)
+ _response = await self._raw_client.cancel_run(run_id, request_options=request_options)
return _response.data
async def get_workflows(
@@ -3983,7 +3791,7 @@ class AsyncSkyvern:
*,
request: typing.Optional[RetryRunWebhookRequest] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> RunWebhookReplayResponse:
+ ) -> typing.Optional[typing.Any]:
"""
Retry sending the webhook for a run
@@ -3999,7 +3807,7 @@ class AsyncSkyvern:
Returns
-------
- RunWebhookReplayResponse
+ typing.Optional[typing.Any]
Successful Response
Examples
@@ -4066,63 +3874,6 @@ class AsyncSkyvern:
_response = await self._raw_client.get_run_timeline(run_id, request_options=request_options)
return _response.data
- async 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,
- ) -> 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
- -------
- WorkflowRunResponse
- Successfully retried workflow run
-
- Examples
- --------
- import asyncio
-
- from skyvern import AsyncSkyvern
-
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
-
-
- async def main() -> None:
- await client.retry_workflow_run(
- workflow_run_id="wr_123",
- max_steps_override=1,
- user_agent="x-user-agent",
- )
-
-
- asyncio.run(main())
- """
- _response = await 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
-
async def get_runs_v2(
self,
*,
@@ -4289,19 +4040,10 @@ class AsyncSkyvern:
"""
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
+ Workflow permanent ID. Workflow ID starts with `wpid_`.
page : typing.Optional[int]
Page number for pagination.
@@ -4313,10 +4055,10 @@ class AsyncSkyvern:
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.
+ Case-insensitive substring search across workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers.
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.
+ Exact-match filter on the error_code field inside each task's errors JSON array.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -4325,29 +4067,6 @@ class AsyncSkyvern:
-------
typing.List[WorkflowRun]
Successful Response
-
- Examples
- --------
- import asyncio
-
- from skyvern import AsyncSkyvern
-
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
-
-
- async def main() -> None:
- await client.get_workflow_runs_by_id(
- workflow_id="workflow_id",
- page=1,
- page_size=1,
- search_key="search_key",
- error_code="error_code",
- )
-
-
- asyncio.run(main())
"""
_response = await self._raw_client.get_workflow_runs_by_id(
workflow_id,
@@ -4499,29 +4218,16 @@ class AsyncSkyvern:
return _response.data
async 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,
- request_options: typing.Optional[RequestOptions] = None,
+ self, *, include_deleted: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None
) -> typing.List[BrowserProfile]:
"""
Get all browser profiles for the organization
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.
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -4543,21 +4249,14 @@ class AsyncSkyvern:
async def main() -> None:
await client.list_browser_profiles(
- page=1,
- page_size=1,
include_deleted=True,
- search_key="search_key",
)
asyncio.run(main())
"""
_response = await self._raw_client.list_browser_profiles(
- page=page,
- page_size=page_size,
- include_deleted=include_deleted,
- search_key=search_key,
- request_options=request_options,
+ include_deleted=include_deleted, request_options=request_options
)
return _response.data
@@ -4704,60 +4403,6 @@ class AsyncSkyvern:
_response = await self._raw_client.delete_browser_profile(profile_id, request_options=request_options)
return _response.data
- async def update_browser_profile(
- self,
- profile_id: str,
- *,
- name: typing.Optional[str] = OMIT,
- description: typing.Optional[str] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> BrowserProfile:
- """
- Update a browser profile's name and/or description
-
- 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
-
- description : typing.Optional[str]
- New description for the browser profile
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- BrowserProfile
- Successfully updated browser profile
-
- Examples
- --------
- import asyncio
-
- from skyvern import AsyncSkyvern
-
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
-
-
- async def main() -> None:
- await client.update_browser_profile(
- profile_id="bp_123456",
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.update_browser_profile(
- profile_id, name=name, description=description, request_options=request_options
- )
- return _response.data
-
async def get_browser_sessions(
self, *, request_options: typing.Optional[RequestOptions] = None
) -> typing.List[BrowserSessionResponse]:
@@ -4798,7 +4443,7 @@ class AsyncSkyvern:
self,
*,
timeout: typing.Optional[int] = OMIT,
- proxy_location: typing.Optional[CreateBrowserSessionRequestProxyLocation] = OMIT,
+ proxy_location: typing.Optional[ProxyLocation] = OMIT,
extensions: typing.Optional[typing.Sequence[Extensions]] = OMIT,
browser_type: typing.Optional[PersistentBrowserType] = OMIT,
browser_profile_id: typing.Optional[str] = OMIT,
@@ -4812,7 +4457,7 @@ class AsyncSkyvern:
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]
+ proxy_location : typing.Optional[ProxyLocation]
Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
@@ -4828,7 +4473,6 @@ class AsyncSkyvern:
- 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
@@ -4846,9 +4490,6 @@ class AsyncSkyvern:
- 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.
@@ -5338,8 +4979,7 @@ class AsyncSkyvern:
async def login(
self,
*,
- credential_type: SkyvernSchemasCredentialTypeCredentialType,
- user_agent: typing.Optional[str] = None,
+ credential_type: SkyvernSchemasRunBlocksCredentialType,
url: typing.Optional[str] = OMIT,
webhook_url: typing.Optional[str] = OMIT,
proxy_location: typing.Optional[ProxyLocation] = OMIT,
@@ -5349,7 +4989,6 @@ class AsyncSkyvern:
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,
@@ -5368,11 +5007,9 @@ class AsyncSkyvern:
Parameters
----------
- credential_type : SkyvernSchemasCredentialTypeCredentialType
+ credential_type : SkyvernSchemasRunBlocksCredentialType
Where to get the credential from
- user_agent : typing.Optional[str]
-
url : typing.Optional[str]
Website URL
@@ -5400,9 +5037,6 @@ class AsyncSkyvern:
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
@@ -5457,7 +5091,6 @@ class AsyncSkyvern:
async def main() -> None:
await client.login(
- user_agent="x-user-agent",
credential_type="skyvern",
)
@@ -5466,7 +5099,6 @@ class AsyncSkyvern:
"""
_response = await self._raw_client.login(
credential_type=credential_type,
- user_agent=user_agent,
url=url,
webhook_url=webhook_url,
proxy_location=proxy_location,
@@ -5476,7 +5108,6 @@ class AsyncSkyvern:
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,
@@ -5496,7 +5127,6 @@ class AsyncSkyvern:
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,
@@ -5506,7 +5136,6 @@ class AsyncSkyvern:
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,
@@ -5521,8 +5150,6 @@ class AsyncSkyvern:
navigation_goal : str
Instructions for navigating to and downloading the file
- user_agent : typing.Optional[str]
-
url : typing.Optional[str]
Website URL
@@ -5550,9 +5177,6 @@ class AsyncSkyvern:
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
@@ -5586,7 +5210,6 @@ class AsyncSkyvern:
async def main() -> None:
await client.download_files(
- user_agent="x-user-agent",
navigation_goal="navigation_goal",
)
@@ -5595,7 +5218,6 @@ class AsyncSkyvern:
"""
_response = await self._raw_client.download_files(
navigation_goal=navigation_goal,
- user_agent=user_agent,
url=url,
webhook_url=webhook_url,
proxy_location=proxy_location,
@@ -5605,7 +5227,6 @@ class AsyncSkyvern:
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,
@@ -5884,22 +5505,6 @@ class AsyncSkyvern:
self._artifacts = AsyncArtifactsClient(client_wrapper=self._client_wrapper)
return self._artifacts
- @property
- def server(self):
- if self._server is None:
- from .server.client import AsyncServerClient # noqa: E402
-
- self._server = AsyncServerClient(client_wrapper=self._client_wrapper)
- return self._server
-
- @property
- def workflows(self):
- if self._workflows is None:
- from .workflows.client import AsyncWorkflowsClient # noqa: E402
-
- self._workflows = AsyncWorkflowsClient(client_wrapper=self._client_wrapper)
- return self._workflows
-
@property
def scripts(self):
if self._scripts is None:
diff --git a/skyvern/client/core/client_wrapper.py b/skyvern/client/core/client_wrapper.py
index bd630dbf0..37f2cdbcd 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.37",
+ "User-Agent": "skyvern/1.0.34",
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "skyvern",
- "X-Fern-SDK-Version": "1.0.37",
+ "X-Fern-SDK-Version": "1.0.34",
**(self.get_custom_headers() or {}),
}
if self._api_key is not None:
diff --git a/skyvern/client/errors/__init__.py b/skyvern/client/errors/__init__.py
index 4415e0d6b..40b205910 100644
--- a/skyvern/client/errors/__init__.py
+++ b/skyvern/client/errors/__init__.py
@@ -9,17 +9,13 @@ if typing.TYPE_CHECKING:
from .bad_request_error import BadRequestError
from .conflict_error import ConflictError
from .forbidden_error import ForbiddenError
- from .internal_server_error import InternalServerError
from .not_found_error import NotFoundError
- from .range_not_satisfiable_error import RangeNotSatisfiableError
from .unprocessable_entity_error import UnprocessableEntityError
_dynamic_imports: typing.Dict[str, str] = {
"BadRequestError": ".bad_request_error",
"ConflictError": ".conflict_error",
"ForbiddenError": ".forbidden_error",
- "InternalServerError": ".internal_server_error",
"NotFoundError": ".not_found_error",
- "RangeNotSatisfiableError": ".range_not_satisfiable_error",
"UnprocessableEntityError": ".unprocessable_entity_error",
}
@@ -45,12 +41,4 @@ def __dir__():
return sorted(lazy_attrs)
-__all__ = [
- "BadRequestError",
- "ConflictError",
- "ForbiddenError",
- "InternalServerError",
- "NotFoundError",
- "RangeNotSatisfiableError",
- "UnprocessableEntityError",
-]
+__all__ = ["BadRequestError", "ConflictError", "ForbiddenError", "NotFoundError", "UnprocessableEntityError"]
diff --git a/skyvern/client/errors/internal_server_error.py b/skyvern/client/errors/internal_server_error.py
deleted file mode 100644
index 14313ab41..000000000
--- a/skyvern/client/errors/internal_server_error.py
+++ /dev/null
@@ -1,10 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-from ..core.api_error import ApiError
-
-
-class InternalServerError(ApiError):
- def __init__(self, body: typing.Optional[typing.Any], headers: typing.Optional[typing.Dict[str, str]] = None):
- super().__init__(status_code=500, headers=headers, body=body)
diff --git a/skyvern/client/errors/range_not_satisfiable_error.py b/skyvern/client/errors/range_not_satisfiable_error.py
deleted file mode 100644
index 079822df7..000000000
--- a/skyvern/client/errors/range_not_satisfiable_error.py
+++ /dev/null
@@ -1,10 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-from ..core.api_error import ApiError
-
-
-class RangeNotSatisfiableError(ApiError):
- def __init__(self, body: typing.Optional[typing.Any], headers: typing.Optional[typing.Dict[str, str]] = None):
- super().__init__(status_code=416, headers=headers, body=body)
diff --git a/skyvern/client/raw_client.py b/skyvern/client/raw_client.py
index 0757d005b..4b8668351 100644
--- a/skyvern/client/raw_client.py
+++ b/skyvern/client/raw_client.py
@@ -20,8 +20,6 @@ from .types.artifact import Artifact
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.create_browser_session_request_proxy_location import CreateBrowserSessionRequestProxyLocation
from .types.create_credential_request_credential import CreateCredentialRequestCredential
from .types.create_script_response import CreateScriptResponse
from .types.credential_response import CredentialResponse
@@ -37,21 +35,20 @@ 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_webhook_replay_response import RunWebhookReplayResponse
from .types.script import Script
from .types.script_file_create import ScriptFileCreate
from .types.skyvern_forge_sdk_schemas_credentials_credential_type import SkyvernForgeSdkSchemasCredentialsCredentialType
-from .types.skyvern_schemas_credential_type_credential_type import SkyvernSchemasCredentialTypeCredentialType
+from .types.skyvern_schemas_run_blocks_credential_type import SkyvernSchemasRunBlocksCredentialType
from .types.task_run_list_item import TaskRunListItem
-from .types.task_run_request_input_data_extraction_schema import TaskRunRequestInputDataExtractionSchema
-from .types.task_run_request_input_proxy_location import TaskRunRequestInputProxyLocation
+from .types.task_run_request_data_extraction_schema import TaskRunRequestDataExtractionSchema
+from .types.task_run_request_proxy_location import TaskRunRequestProxyLocation
from .types.task_run_response import TaskRunResponse
from .types.totp_code import TotpCode
from .types.upload_file_response import UploadFileResponse
from .types.workflow import Workflow
from .types.workflow_create_yaml_request import WorkflowCreateYamlRequest
from .types.workflow_run import WorkflowRun
-from .types.workflow_run_request_input_proxy_location import WorkflowRunRequestInputProxyLocation
+from .types.workflow_run_request_proxy_location import WorkflowRunRequestProxyLocation
from .types.workflow_run_response import WorkflowRunResponse
from .types.workflow_run_status import WorkflowRunStatus
from .types.workflow_run_timeline import WorkflowRunTimeline
@@ -73,8 +70,8 @@ class RawSkyvern:
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,
+ proxy_location: typing.Optional[TaskRunRequestProxyLocation] = OMIT,
+ data_extraction_schema: typing.Optional[TaskRunRequestDataExtractionSchema] = 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,
@@ -83,7 +80,6 @@ class RawSkyvern:
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,
@@ -113,7 +109,7 @@ class RawSkyvern:
title : typing.Optional[str]
The title for the task
- proxy_location : typing.Optional[TaskRunRequestInputProxyLocation]
+ proxy_location : typing.Optional[TaskRunRequestProxyLocation]
Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
@@ -129,7 +125,6 @@ class RawSkyvern:
- 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
@@ -146,11 +141,9 @@ class RawSkyvern:
- 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]
+ data_extraction_schema : typing.Optional[TaskRunRequestDataExtractionSchema]
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/.
@@ -185,9 +178,6 @@ class RawSkyvern:
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.
@@ -220,12 +210,10 @@ class RawSkyvern:
"engine": engine,
"title": title,
"proxy_location": convert_and_respect_annotation_metadata(
- object_=proxy_location, annotation=TaskRunRequestInputProxyLocation, direction="write"
+ object_=proxy_location, annotation=TaskRunRequestProxyLocation, direction="write"
),
"data_extraction_schema": convert_and_respect_annotation_metadata(
- object_=data_extraction_schema,
- annotation=TaskRunRequestInputDataExtractionSchema,
- direction="write",
+ object_=data_extraction_schema, annotation=TaskRunRequestDataExtractionSchema, direction="write"
),
"error_code_mapping": error_code_mapping,
"max_steps": max_steps,
@@ -235,7 +223,6 @@ class RawSkyvern:
"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,
@@ -295,7 +282,7 @@ class RawSkyvern:
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,
+ proxy_location: typing.Optional[WorkflowRunRequestProxyLocation] = OMIT,
webhook_url: typing.Optional[str] = OMIT,
totp_url: typing.Optional[str] = OMIT,
totp_identifier: typing.Optional[str] = OMIT,
@@ -304,11 +291,10 @@ class RawSkyvern:
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,
+ run_metadata: typing.Optional[typing.Dict[str, str]] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[WorkflowRunResponse]:
"""
@@ -331,7 +317,7 @@ class RawSkyvern:
title : typing.Optional[str]
The title for this workflow run
- proxy_location : typing.Optional[WorkflowRunRequestInputProxyLocation]
+ proxy_location : typing.Optional[WorkflowRunRequestProxyLocation]
Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
@@ -347,7 +333,6 @@ class RawSkyvern:
- 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
@@ -364,8 +349,6 @@ class RawSkyvern:
- 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]
@@ -394,9 +377,6 @@ class RawSkyvern:
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.
@@ -406,7 +386,7 @@ class RawSkyvern:
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]]]
+ run_metadata : typing.Optional[typing.Dict[str, str]]
String key/value metadata to attach to this workflow run for analytics tag filtering.
request_options : typing.Optional[RequestOptions]
@@ -428,7 +408,7 @@ class RawSkyvern:
"parameters": parameters,
"title": title,
"proxy_location": convert_and_respect_annotation_metadata(
- object_=proxy_location, annotation=WorkflowRunRequestInputProxyLocation, direction="write"
+ object_=proxy_location, annotation=WorkflowRunRequestProxyLocation, direction="write"
),
"webhook_url": webhook_url,
"totp_url": totp_url,
@@ -438,7 +418,6 @@ class RawSkyvern:
"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,
@@ -489,40 +468,65 @@ 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(
- self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[GetRunResponse]:
+ 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]:
"""
- Get run information (task run, workflow run)
+ Retry a workflow run using the original run parameters.
Parameters
----------
- run_id : str
- The id of the task run or the workflow run.
+ 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[GetRunResponse]
- Successfully got run
+ HttpResponse[WorkflowRunResponse]
+ Successfully retried workflow run
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/runs/{jsonable_encoder(run_id)}",
- method="GET",
+ f"v1/workflows/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,
+ omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- GetRunResponse,
+ WorkflowRunResponse,
parse_obj_as(
- type_=GetRunResponse, # type: ignore
+ 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),
@@ -550,42 +554,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 cancel_run(
+ def get_run(
self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[typing.Optional[typing.Any]]:
+ ) -> HttpResponse[GetRunResponse]:
"""
- Cancel a run (task or workflow)
+ Get run information (task run, workflow run)
Parameters
----------
run_id : str
- The id of the task run or the workflow run to cancel.
+ The id of the task run or the workflow run.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[typing.Optional[typing.Any]]
- Successful Response
+ HttpResponse[GetRunResponse]
+ Successfully got run
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/runs/{jsonable_encoder(run_id)}/cancel",
- method="POST",
+ f"v1/runs/{jsonable_encoder(run_id)}",
+ method="GET",
request_options=request_options,
)
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],
+ GetRunResponse,
parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
+ type_=GetRunResponse, # 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),
@@ -602,43 +615,38 @@ 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 bulk_cancel_runs(
- self, *, run_ids: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[BulkCancelRunsResponse]:
+ def cancel_run(
+ self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> HttpResponse[typing.Optional[typing.Any]]:
"""
- Cancel multiple runs (tasks or workflows) in a single request
+ Cancel a run (task or workflow)
Parameters
----------
- run_ids : typing.Sequence[str]
- List of run IDs to cancel
+ run_id : str
+ The id of the task run or the workflow run to cancel.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- HttpResponse[BulkCancelRunsResponse]
+ HttpResponse[typing.Optional[typing.Any]]
Successful Response
"""
_response = self._client_wrapper.httpx_client.request(
- "v1/runs/cancel",
+ f"v1/runs/{jsonable_encoder(run_id)}/cancel",
method="POST",
- json={
- "run_ids": run_ids,
- },
- headers={
- "content-type": "application/json",
- },
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(
- BulkCancelRunsResponse,
+ typing.Optional[typing.Any],
parse_obj_as(
- type_=BulkCancelRunsResponse, # type: ignore
+ type_=typing.Optional[typing.Any], # type: ignore
object_=_response.json(),
),
)
@@ -1462,7 +1470,7 @@ class RawSkyvern:
*,
request: typing.Optional[RetryRunWebhookRequest] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[RunWebhookReplayResponse]:
+ ) -> HttpResponse[typing.Optional[typing.Any]]:
"""
Retry sending the webhook for a run
@@ -1478,7 +1486,7 @@ class RawSkyvern:
Returns
-------
- HttpResponse[RunWebhookReplayResponse]
+ HttpResponse[typing.Optional[typing.Any]]
Successful Response
"""
_response = self._client_wrapper.httpx_client.request(
@@ -1494,11 +1502,13 @@ class RawSkyvern:
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(
- RunWebhookReplayResponse,
+ typing.Optional[typing.Any],
parse_obj_as(
- type_=RunWebhookReplayResponse, # type: ignore
+ type_=typing.Optional[typing.Any], # type: ignore
object_=_response.json(),
),
)
@@ -1591,91 +1601,6 @@ 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_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/workflows/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_runs_v2(
self,
*,
@@ -1859,19 +1784,10 @@ class RawSkyvern:
"""
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
+ Workflow permanent ID. Workflow ID starts with `wpid_`.
page : typing.Optional[int]
Page number for pagination.
@@ -1883,10 +1799,10 @@ class RawSkyvern:
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.
+ Case-insensitive substring search across workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers.
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.
+ Exact-match filter on the error_code field inside each task's errors JSON array.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -2106,29 +2022,16 @@ class RawSkyvern:
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,
- request_options: typing.Optional[RequestOptions] = None,
+ self, *, include_deleted: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None
) -> HttpResponse[typing.List[BrowserProfile]]:
"""
Get all browser profiles for the organization
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.
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -2141,10 +2044,7 @@ class RawSkyvern:
"v1/browser_profiles",
method="GET",
params={
- "page": page,
- "page_size": page_size,
"include_deleted": include_deleted,
- "search_key": search_key,
},
request_options=request_options,
)
@@ -2385,97 +2285,6 @@ 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(
- self,
- profile_id: str,
- *,
- name: typing.Optional[str] = OMIT,
- description: typing.Optional[str] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[BrowserProfile]:
- """
- Update a browser profile's name and/or description
-
- 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
-
- description : typing.Optional[str]
- New description for the browser profile
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[BrowserProfile]
- Successfully updated browser profile
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/browser_profiles/{jsonable_encoder(profile_id)}",
- method="PATCH",
- json={
- "name": name,
- "description": description,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- BrowserProfile,
- parse_obj_as(
- 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),
- 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_browser_sessions(
self, *, request_options: typing.Optional[RequestOptions] = None
) -> HttpResponse[typing.List[BrowserSessionResponse]]:
@@ -2538,7 +2347,7 @@ class RawSkyvern:
self,
*,
timeout: typing.Optional[int] = OMIT,
- proxy_location: typing.Optional[CreateBrowserSessionRequestProxyLocation] = OMIT,
+ proxy_location: typing.Optional[ProxyLocation] = OMIT,
extensions: typing.Optional[typing.Sequence[Extensions]] = OMIT,
browser_type: typing.Optional[PersistentBrowserType] = OMIT,
browser_profile_id: typing.Optional[str] = OMIT,
@@ -2552,7 +2361,7 @@ class RawSkyvern:
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]
+ proxy_location : typing.Optional[ProxyLocation]
Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
@@ -2568,7 +2377,6 @@ class RawSkyvern:
- 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
@@ -2586,9 +2394,6 @@ class RawSkyvern:
- 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.
@@ -2611,9 +2416,7 @@ class RawSkyvern:
method="POST",
json={
"timeout": timeout,
- "proxy_location": convert_and_respect_annotation_metadata(
- object_=proxy_location, annotation=CreateBrowserSessionRequestProxyLocation, direction="write"
- ),
+ "proxy_location": proxy_location,
"extensions": extensions,
"browser_type": browser_type,
"browser_profile_id": browser_profile_id,
@@ -3221,8 +3024,7 @@ class RawSkyvern:
def login(
self,
*,
- credential_type: SkyvernSchemasCredentialTypeCredentialType,
- user_agent: typing.Optional[str] = None,
+ credential_type: SkyvernSchemasRunBlocksCredentialType,
url: typing.Optional[str] = OMIT,
webhook_url: typing.Optional[str] = OMIT,
proxy_location: typing.Optional[ProxyLocation] = OMIT,
@@ -3232,7 +3034,6 @@ class RawSkyvern:
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,
@@ -3251,11 +3052,9 @@ class RawSkyvern:
Parameters
----------
- credential_type : SkyvernSchemasCredentialTypeCredentialType
+ credential_type : SkyvernSchemasRunBlocksCredentialType
Where to get the credential from
- user_agent : typing.Optional[str]
-
url : typing.Optional[str]
Website URL
@@ -3283,9 +3082,6 @@ class RawSkyvern:
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
@@ -3340,7 +3136,6 @@ class RawSkyvern:
"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,
@@ -3356,7 +3151,6 @@ class RawSkyvern:
},
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,
@@ -3391,7 +3185,6 @@ class RawSkyvern:
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,
@@ -3401,7 +3194,6 @@ class RawSkyvern:
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,
@@ -3416,8 +3208,6 @@ class RawSkyvern:
navigation_goal : str
Instructions for navigating to and downloading the file
- user_agent : typing.Optional[str]
-
url : typing.Optional[str]
Website URL
@@ -3445,9 +3235,6 @@ class RawSkyvern:
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
@@ -3481,7 +3268,6 @@ class RawSkyvern:
"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,
@@ -3490,7 +3276,6 @@ class RawSkyvern:
},
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,
@@ -3865,8 +3650,8 @@ class AsyncRawSkyvern:
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,
+ proxy_location: typing.Optional[TaskRunRequestProxyLocation] = OMIT,
+ data_extraction_schema: typing.Optional[TaskRunRequestDataExtractionSchema] = 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,
@@ -3875,7 +3660,6 @@ class AsyncRawSkyvern:
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,
@@ -3905,7 +3689,7 @@ class AsyncRawSkyvern:
title : typing.Optional[str]
The title for the task
- proxy_location : typing.Optional[TaskRunRequestInputProxyLocation]
+ proxy_location : typing.Optional[TaskRunRequestProxyLocation]
Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
@@ -3921,7 +3705,6 @@ class AsyncRawSkyvern:
- 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
@@ -3938,11 +3721,9 @@ class AsyncRawSkyvern:
- 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]
+ data_extraction_schema : typing.Optional[TaskRunRequestDataExtractionSchema]
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/.
@@ -3977,9 +3758,6 @@ class AsyncRawSkyvern:
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.
@@ -4012,12 +3790,10 @@ class AsyncRawSkyvern:
"engine": engine,
"title": title,
"proxy_location": convert_and_respect_annotation_metadata(
- object_=proxy_location, annotation=TaskRunRequestInputProxyLocation, direction="write"
+ object_=proxy_location, annotation=TaskRunRequestProxyLocation, direction="write"
),
"data_extraction_schema": convert_and_respect_annotation_metadata(
- object_=data_extraction_schema,
- annotation=TaskRunRequestInputDataExtractionSchema,
- direction="write",
+ object_=data_extraction_schema, annotation=TaskRunRequestDataExtractionSchema, direction="write"
),
"error_code_mapping": error_code_mapping,
"max_steps": max_steps,
@@ -4027,7 +3803,6 @@ class AsyncRawSkyvern:
"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,
@@ -4087,7 +3862,7 @@ class AsyncRawSkyvern:
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,
+ proxy_location: typing.Optional[WorkflowRunRequestProxyLocation] = OMIT,
webhook_url: typing.Optional[str] = OMIT,
totp_url: typing.Optional[str] = OMIT,
totp_identifier: typing.Optional[str] = OMIT,
@@ -4096,11 +3871,10 @@ class AsyncRawSkyvern:
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,
+ run_metadata: typing.Optional[typing.Dict[str, str]] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[WorkflowRunResponse]:
"""
@@ -4123,7 +3897,7 @@ class AsyncRawSkyvern:
title : typing.Optional[str]
The title for this workflow run
- proxy_location : typing.Optional[WorkflowRunRequestInputProxyLocation]
+ proxy_location : typing.Optional[WorkflowRunRequestProxyLocation]
Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
@@ -4139,7 +3913,6 @@ class AsyncRawSkyvern:
- 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
@@ -4156,8 +3929,6 @@ class AsyncRawSkyvern:
- 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]
@@ -4186,9 +3957,6 @@ class AsyncRawSkyvern:
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.
@@ -4198,7 +3966,7 @@ class AsyncRawSkyvern:
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]]]
+ run_metadata : typing.Optional[typing.Dict[str, str]]
String key/value metadata to attach to this workflow run for analytics tag filtering.
request_options : typing.Optional[RequestOptions]
@@ -4220,7 +3988,7 @@ class AsyncRawSkyvern:
"parameters": parameters,
"title": title,
"proxy_location": convert_and_respect_annotation_metadata(
- object_=proxy_location, annotation=WorkflowRunRequestInputProxyLocation, direction="write"
+ object_=proxy_location, annotation=WorkflowRunRequestProxyLocation, direction="write"
),
"webhook_url": webhook_url,
"totp_url": totp_url,
@@ -4230,7 +3998,6 @@ class AsyncRawSkyvern:
"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,
@@ -4281,40 +4048,65 @@ 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]:
+ async 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,
+ ) -> AsyncHttpResponse[WorkflowRunResponse]:
"""
- Get run information (task run, workflow run)
+ Retry a workflow run using the original run parameters.
Parameters
----------
- run_id : str
- The id of the task run or the workflow run.
+ 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[GetRunResponse]
- Successfully got run
+ AsyncHttpResponse[WorkflowRunResponse]
+ Successfully retried workflow run
"""
_response = await self._client_wrapper.httpx_client.request(
- f"v1/runs/{jsonable_encoder(run_id)}",
- method="GET",
+ f"v1/workflows/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,
+ omit=OMIT,
)
try:
if 200 <= _response.status_code < 300:
_data = typing.cast(
- GetRunResponse,
+ WorkflowRunResponse,
parse_obj_as(
- type_=GetRunResponse, # type: ignore
+ type_=WorkflowRunResponse, # 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 == 404:
raise NotFoundError(
headers=dict(_response.headers),
@@ -4342,42 +4134,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 cancel_run(
+ async def get_run(
self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[typing.Optional[typing.Any]]:
+ ) -> AsyncHttpResponse[GetRunResponse]:
"""
- Cancel a run (task or workflow)
+ Get run information (task run, workflow run)
Parameters
----------
run_id : str
- The id of the task run or the workflow run to cancel.
+ The id of the task run or the workflow run.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Returns
-------
- AsyncHttpResponse[typing.Optional[typing.Any]]
- Successful Response
+ AsyncHttpResponse[GetRunResponse]
+ Successfully got run
"""
_response = await self._client_wrapper.httpx_client.request(
- f"v1/runs/{jsonable_encoder(run_id)}/cancel",
- method="POST",
+ f"v1/runs/{jsonable_encoder(run_id)}",
+ method="GET",
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],
+ GetRunResponse,
parse_obj_as(
- type_=typing.Optional[typing.Any], # type: ignore
+ type_=GetRunResponse, # 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),
@@ -4394,43 +4195,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 bulk_cancel_runs(
- self, *, run_ids: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[BulkCancelRunsResponse]:
+ async def cancel_run(
+ self, run_id: str, *, request_options: typing.Optional[RequestOptions] = None
+ ) -> AsyncHttpResponse[typing.Optional[typing.Any]]:
"""
- Cancel multiple runs (tasks or workflows) in a single request
+ Cancel a run (task or workflow)
Parameters
----------
- run_ids : typing.Sequence[str]
- List of run IDs to cancel
+ 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[BulkCancelRunsResponse]
+ AsyncHttpResponse[typing.Optional[typing.Any]]
Successful Response
"""
_response = await self._client_wrapper.httpx_client.request(
- "v1/runs/cancel",
+ f"v1/runs/{jsonable_encoder(run_id)}/cancel",
method="POST",
- json={
- "run_ids": run_ids,
- },
- headers={
- "content-type": "application/json",
- },
request_options=request_options,
- omit=OMIT,
)
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(
- BulkCancelRunsResponse,
+ typing.Optional[typing.Any],
parse_obj_as(
- type_=BulkCancelRunsResponse, # type: ignore
+ type_=typing.Optional[typing.Any], # type: ignore
object_=_response.json(),
),
)
@@ -5254,7 +5050,7 @@ class AsyncRawSkyvern:
*,
request: typing.Optional[RetryRunWebhookRequest] = None,
request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[RunWebhookReplayResponse]:
+ ) -> AsyncHttpResponse[typing.Optional[typing.Any]]:
"""
Retry sending the webhook for a run
@@ -5270,7 +5066,7 @@ class AsyncRawSkyvern:
Returns
-------
- AsyncHttpResponse[RunWebhookReplayResponse]
+ AsyncHttpResponse[typing.Optional[typing.Any]]
Successful Response
"""
_response = await self._client_wrapper.httpx_client.request(
@@ -5286,11 +5082,13 @@ class AsyncRawSkyvern:
omit=OMIT,
)
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(
- RunWebhookReplayResponse,
+ typing.Optional[typing.Any],
parse_obj_as(
- type_=RunWebhookReplayResponse, # type: ignore
+ type_=typing.Optional[typing.Any], # type: ignore
object_=_response.json(),
),
)
@@ -5383,91 +5181,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 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,
- ) -> AsyncHttpResponse[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
- -------
- AsyncHttpResponse[WorkflowRunResponse]
- Successfully retried workflow run
- """
- _response = await self._client_wrapper.httpx_client.request(
- f"v1/workflows/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 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 == 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)
-
async def get_runs_v2(
self,
*,
@@ -5651,19 +5364,10 @@ class AsyncRawSkyvern:
"""
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
+ Workflow permanent ID. Workflow ID starts with `wpid_`.
page : typing.Optional[int]
Page number for pagination.
@@ -5675,10 +5379,10 @@ class AsyncRawSkyvern:
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.
+ Case-insensitive substring search across workflow run ID, parameter key, parameter description, run parameter value, and extra HTTP headers.
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.
+ Exact-match filter on the error_code field inside each task's errors JSON array.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -5898,29 +5602,16 @@ class AsyncRawSkyvern:
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
async 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,
- request_options: typing.Optional[RequestOptions] = None,
+ self, *, include_deleted: typing.Optional[bool] = None, request_options: typing.Optional[RequestOptions] = None
) -> AsyncHttpResponse[typing.List[BrowserProfile]]:
"""
Get all browser profiles for the organization
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.
-
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -5933,10 +5624,7 @@ class AsyncRawSkyvern:
"v1/browser_profiles",
method="GET",
params={
- "page": page,
- "page_size": page_size,
"include_deleted": include_deleted,
- "search_key": search_key,
},
request_options=request_options,
)
@@ -6177,97 +5865,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 update_browser_profile(
- self,
- profile_id: str,
- *,
- name: typing.Optional[str] = OMIT,
- description: typing.Optional[str] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[BrowserProfile]:
- """
- Update a browser profile's name and/or description
-
- 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
-
- description : typing.Optional[str]
- New description for the browser profile
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- AsyncHttpResponse[BrowserProfile]
- Successfully updated browser profile
- """
- _response = await self._client_wrapper.httpx_client.request(
- f"v1/browser_profiles/{jsonable_encoder(profile_id)}",
- method="PATCH",
- json={
- "name": name,
- "description": description,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- BrowserProfile,
- parse_obj_as(
- type_=BrowserProfile, # 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),
- 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 get_browser_sessions(
self, *, request_options: typing.Optional[RequestOptions] = None
) -> AsyncHttpResponse[typing.List[BrowserSessionResponse]]:
@@ -6330,7 +5927,7 @@ class AsyncRawSkyvern:
self,
*,
timeout: typing.Optional[int] = OMIT,
- proxy_location: typing.Optional[CreateBrowserSessionRequestProxyLocation] = OMIT,
+ proxy_location: typing.Optional[ProxyLocation] = OMIT,
extensions: typing.Optional[typing.Sequence[Extensions]] = OMIT,
browser_type: typing.Optional[PersistentBrowserType] = OMIT,
browser_profile_id: typing.Optional[str] = OMIT,
@@ -6344,7 +5941,7 @@ class AsyncRawSkyvern:
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]
+ proxy_location : typing.Optional[ProxyLocation]
Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
@@ -6360,7 +5957,6 @@ class AsyncRawSkyvern:
- 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
@@ -6378,9 +5974,6 @@ class AsyncRawSkyvern:
- 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.
@@ -6403,9 +5996,7 @@ class AsyncRawSkyvern:
method="POST",
json={
"timeout": timeout,
- "proxy_location": convert_and_respect_annotation_metadata(
- object_=proxy_location, annotation=CreateBrowserSessionRequestProxyLocation, direction="write"
- ),
+ "proxy_location": proxy_location,
"extensions": extensions,
"browser_type": browser_type,
"browser_profile_id": browser_profile_id,
@@ -7013,8 +6604,7 @@ class AsyncRawSkyvern:
async def login(
self,
*,
- credential_type: SkyvernSchemasCredentialTypeCredentialType,
- user_agent: typing.Optional[str] = None,
+ credential_type: SkyvernSchemasRunBlocksCredentialType,
url: typing.Optional[str] = OMIT,
webhook_url: typing.Optional[str] = OMIT,
proxy_location: typing.Optional[ProxyLocation] = OMIT,
@@ -7024,7 +6614,6 @@ class AsyncRawSkyvern:
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,
@@ -7043,11 +6632,9 @@ class AsyncRawSkyvern:
Parameters
----------
- credential_type : SkyvernSchemasCredentialTypeCredentialType
+ credential_type : SkyvernSchemasRunBlocksCredentialType
Where to get the credential from
- user_agent : typing.Optional[str]
-
url : typing.Optional[str]
Website URL
@@ -7075,9 +6662,6 @@ class AsyncRawSkyvern:
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
@@ -7132,7 +6716,6 @@ class AsyncRawSkyvern:
"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,
@@ -7148,7 +6731,6 @@ class AsyncRawSkyvern:
},
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,
@@ -7183,7 +6765,6 @@ class AsyncRawSkyvern:
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,
@@ -7193,7 +6774,6 @@ class AsyncRawSkyvern:
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,
@@ -7208,8 +6788,6 @@ class AsyncRawSkyvern:
navigation_goal : str
Instructions for navigating to and downloading the file
- user_agent : typing.Optional[str]
-
url : typing.Optional[str]
Website URL
@@ -7237,9 +6815,6 @@ class AsyncRawSkyvern:
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
@@ -7273,7 +6848,6 @@ class AsyncRawSkyvern:
"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,
@@ -7282,7 +6856,6 @@ class AsyncRawSkyvern:
},
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,
diff --git a/skyvern/client/server/__init__.py b/skyvern/client/server/__init__.py
deleted file mode 100644
index 5cde0202d..000000000
--- a/skyvern/client/server/__init__.py
+++ /dev/null
@@ -1,4 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-# isort: skip_file
-
diff --git a/skyvern/client/server/client.py b/skyvern/client/server/client.py
deleted file mode 100644
index 35ccce241..000000000
--- a/skyvern/client/server/client.py
+++ /dev/null
@@ -1,99 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
-from ..core.request_options import RequestOptions
-from .raw_client import AsyncRawServerClient, RawServerClient
-
-
-class ServerClient:
- def __init__(self, *, client_wrapper: SyncClientWrapper):
- self._raw_client = RawServerClient(client_wrapper=client_wrapper)
-
- @property
- def with_raw_response(self) -> RawServerClient:
- """
- Retrieves a raw implementation of this client that returns raw responses.
-
- Returns
- -------
- RawServerClient
- """
- return self._raw_client
-
- def get_version(self, *, request_options: typing.Optional[RequestOptions] = None) -> 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
- -------
- typing.Dict[str, str]
- Current server version
-
- Examples
- --------
- from skyvern import Skyvern
-
- client = Skyvern(
- api_key="YOUR_API_KEY",
- )
- client.server.get_version()
- """
- _response = self._raw_client.get_version(request_options=request_options)
- return _response.data
-
-
-class AsyncServerClient:
- def __init__(self, *, client_wrapper: AsyncClientWrapper):
- self._raw_client = AsyncRawServerClient(client_wrapper=client_wrapper)
-
- @property
- def with_raw_response(self) -> AsyncRawServerClient:
- """
- Retrieves a raw implementation of this client that returns raw responses.
-
- Returns
- -------
- AsyncRawServerClient
- """
- return self._raw_client
-
- async def get_version(self, *, request_options: typing.Optional[RequestOptions] = None) -> 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
- -------
- typing.Dict[str, str]
- Current server version
-
- Examples
- --------
- import asyncio
-
- from skyvern import AsyncSkyvern
-
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
-
-
- async def main() -> None:
- await client.server.get_version()
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.get_version(request_options=request_options)
- return _response.data
diff --git a/skyvern/client/server/raw_client.py b/skyvern/client/server/raw_client.py
deleted file mode 100644
index 333e6a5ca..000000000
--- a/skyvern/client/server/raw_client.py
+++ /dev/null
@@ -1,92 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-from json.decoder import JSONDecodeError
-
-from ..core.api_error import ApiError
-from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
-from ..core.http_response import AsyncHttpResponse, HttpResponse
-from ..core.pydantic_utilities import parse_obj_as
-from ..core.request_options import RequestOptions
-
-
-class RawServerClient:
- def __init__(self, *, client_wrapper: SyncClientWrapper):
- self._client_wrapper = client_wrapper
-
- 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)
-
-
-class AsyncRawServerClient:
- def __init__(self, *, client_wrapper: AsyncClientWrapper):
- self._client_wrapper = client_wrapper
-
- async def get_version(
- self, *, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[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
- -------
- AsyncHttpResponse[typing.Dict[str, str]]
- Current server version
- """
- _response = await 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 AsyncHttpResponse(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)
diff --git a/skyvern/client/types/__init__.py b/skyvern/client/types/__init__.py
index 2a7111109..38799a4df 100644
--- a/skyvern/client/types/__init__.py
+++ b/skyvern/client/types/__init__.py
@@ -26,7 +26,6 @@ if typing.TYPE_CHECKING:
ActionBlockParametersItem_Workflow,
)
from .action_block_yaml import ActionBlockYaml
- from .action_output import ActionOutput
from .action_status import ActionStatus
from .action_type import ActionType
from .artifact import Artifact
@@ -54,7 +53,6 @@ if typing.TYPE_CHECKING:
from .branch_criteria_yaml_criteria_type import BranchCriteriaYamlCriteriaType
from .browser_profile import BrowserProfile
from .browser_session_response import BrowserSessionResponse
- from .bulk_cancel_runs_response import BulkCancelRunsResponse
from .click_action import ClickAction
from .click_action_data import ClickActionData
from .click_context import ClickContext
@@ -93,7 +91,6 @@ if typing.TYPE_CHECKING:
)
from .context_parameter_value import ContextParameterValue
from .context_parameter_yaml import ContextParameterYaml
- from .create_browser_session_request_proxy_location import CreateBrowserSessionRequestProxyLocation
from .create_credential_request import CreateCredentialRequest
from .create_credential_request_credential import CreateCredentialRequestCredential
from .create_script_response import CreateScriptResponse
@@ -169,8 +166,6 @@ if typing.TYPE_CHECKING:
ForLoopBlockLoopBlocksItem_FileUpload,
ForLoopBlockLoopBlocksItem_FileUrlParser,
ForLoopBlockLoopBlocksItem_ForLoop,
- ForLoopBlockLoopBlocksItem_GoogleSheetsRead,
- ForLoopBlockLoopBlocksItem_GoogleSheetsWrite,
ForLoopBlockLoopBlocksItem_GotoUrl,
ForLoopBlockLoopBlocksItem_HttpRequest,
ForLoopBlockLoopBlocksItem_HumanInteraction,
@@ -215,8 +210,6 @@ if typing.TYPE_CHECKING:
ForLoopBlockYamlLoopBlocksItem_FileUpload,
ForLoopBlockYamlLoopBlocksItem_FileUrlParser,
ForLoopBlockYamlLoopBlocksItem_ForLoop,
- ForLoopBlockYamlLoopBlocksItem_GoogleSheetsRead,
- ForLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite,
ForLoopBlockYamlLoopBlocksItem_GotoUrl,
ForLoopBlockYamlLoopBlocksItem_HttpRequest,
ForLoopBlockYamlLoopBlocksItem_HumanInteraction,
@@ -243,42 +236,7 @@ if typing.TYPE_CHECKING:
GetRunResponse_TaskV2,
GetRunResponse_UiTars,
GetRunResponse_WorkflowRun,
- GetRunResponse_YutoriNavigator,
)
- from .google_sheets_read_block import GoogleSheetsReadBlock
- from .google_sheets_read_block_parameters_item import (
- GoogleSheetsReadBlockParametersItem,
- GoogleSheetsReadBlockParametersItem_AwsSecret,
- GoogleSheetsReadBlockParametersItem_AzureSecret,
- GoogleSheetsReadBlockParametersItem_AzureVaultCredential,
- GoogleSheetsReadBlockParametersItem_BitwardenCreditCardData,
- GoogleSheetsReadBlockParametersItem_BitwardenLoginCredential,
- GoogleSheetsReadBlockParametersItem_BitwardenSensitiveInformation,
- GoogleSheetsReadBlockParametersItem_Context,
- GoogleSheetsReadBlockParametersItem_Credential,
- GoogleSheetsReadBlockParametersItem_Onepassword,
- GoogleSheetsReadBlockParametersItem_Output,
- GoogleSheetsReadBlockParametersItem_Workflow,
- )
- from .google_sheets_read_block_yaml import GoogleSheetsReadBlockYaml
- from .google_sheets_write_block import GoogleSheetsWriteBlock
- from .google_sheets_write_block_parameters_item import (
- GoogleSheetsWriteBlockParametersItem,
- GoogleSheetsWriteBlockParametersItem_AwsSecret,
- GoogleSheetsWriteBlockParametersItem_AzureSecret,
- GoogleSheetsWriteBlockParametersItem_AzureVaultCredential,
- GoogleSheetsWriteBlockParametersItem_BitwardenCreditCardData,
- GoogleSheetsWriteBlockParametersItem_BitwardenLoginCredential,
- GoogleSheetsWriteBlockParametersItem_BitwardenSensitiveInformation,
- GoogleSheetsWriteBlockParametersItem_Context,
- GoogleSheetsWriteBlockParametersItem_Credential,
- GoogleSheetsWriteBlockParametersItem_Onepassword,
- GoogleSheetsWriteBlockParametersItem_Output,
- GoogleSheetsWriteBlockParametersItem_Workflow,
- )
- from .google_sheets_write_block_write_mode import GoogleSheetsWriteBlockWriteMode
- from .google_sheets_write_block_yaml import GoogleSheetsWriteBlockYaml
- from .google_sheets_write_block_yaml_write_mode import GoogleSheetsWriteBlockYamlWriteMode
from .http_request_block import HttpRequestBlock
from .http_request_block_parameters_item import (
HttpRequestBlockParametersItem,
@@ -401,7 +359,6 @@ if typing.TYPE_CHECKING:
)
from .run_sdk_action_response import RunSdkActionResponse
from .run_status import RunStatus
- from .run_webhook_replay_response import RunWebhookReplayResponse
from .script import Script
from .script_file_create import ScriptFileCreate
from .script_run_response import ScriptRunResponse
@@ -413,7 +370,7 @@ if typing.TYPE_CHECKING:
from .send_email_block import SendEmailBlock
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 .skyvern_schemas_run_blocks_credential_type import SkyvernSchemasRunBlocksCredentialType
from .task_block import TaskBlock
from .task_block_data_schema import TaskBlockDataSchema
from .task_block_parameters_item import (
@@ -433,11 +390,9 @@ if typing.TYPE_CHECKING:
from .task_block_yaml import TaskBlockYaml
from .task_block_yaml_data_schema import TaskBlockYamlDataSchema
from .task_run_list_item import TaskRunListItem
- from .task_run_request_input_data_extraction_schema import TaskRunRequestInputDataExtractionSchema
- from .task_run_request_input_proxy_location import TaskRunRequestInputProxyLocation
- from .task_run_request_output import TaskRunRequestOutput
- from .task_run_request_output_data_extraction_schema import TaskRunRequestOutputDataExtractionSchema
- from .task_run_request_output_proxy_location import TaskRunRequestOutputProxyLocation
+ from .task_run_request import TaskRunRequest
+ from .task_run_request_data_extraction_schema import TaskRunRequestDataExtractionSchema
+ from .task_run_request_proxy_location import TaskRunRequestProxyLocation
from .task_run_response import TaskRunResponse
from .task_run_response_output import TaskRunResponseOutput
from .task_v2block import TaskV2Block
@@ -539,8 +494,6 @@ if typing.TYPE_CHECKING:
WhileLoopBlockLoopBlocksItem_FileUpload,
WhileLoopBlockLoopBlocksItem_FileUrlParser,
WhileLoopBlockLoopBlocksItem_ForLoop,
- WhileLoopBlockLoopBlocksItem_GoogleSheetsRead,
- WhileLoopBlockLoopBlocksItem_GoogleSheetsWrite,
WhileLoopBlockLoopBlocksItem_GotoUrl,
WhileLoopBlockLoopBlocksItem_HttpRequest,
WhileLoopBlockLoopBlocksItem_HumanInteraction,
@@ -570,8 +523,6 @@ if typing.TYPE_CHECKING:
WhileLoopBlockYamlLoopBlocksItem_FileUpload,
WhileLoopBlockYamlLoopBlocksItem_FileUrlParser,
WhileLoopBlockYamlLoopBlocksItem_ForLoop,
- WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsRead,
- WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite,
WhileLoopBlockYamlLoopBlocksItem_GotoUrl,
WhileLoopBlockYamlLoopBlocksItem_HttpRequest,
WhileLoopBlockYamlLoopBlocksItem_HumanInteraction,
@@ -604,8 +555,6 @@ if typing.TYPE_CHECKING:
WorkflowDefinitionBlocksItem_FileUpload,
WorkflowDefinitionBlocksItem_FileUrlParser,
WorkflowDefinitionBlocksItem_ForLoop,
- WorkflowDefinitionBlocksItem_GoogleSheetsRead,
- WorkflowDefinitionBlocksItem_GoogleSheetsWrite,
WorkflowDefinitionBlocksItem_GotoUrl,
WorkflowDefinitionBlocksItem_HttpRequest,
WorkflowDefinitionBlocksItem_HumanInteraction,
@@ -649,8 +598,6 @@ if typing.TYPE_CHECKING:
WorkflowDefinitionYamlBlocksItem_FileUpload,
WorkflowDefinitionYamlBlocksItem_FileUrlParser,
WorkflowDefinitionYamlBlocksItem_ForLoop,
- WorkflowDefinitionYamlBlocksItem_GoogleSheetsRead,
- WorkflowDefinitionYamlBlocksItem_GoogleSheetsWrite,
WorkflowDefinitionYamlBlocksItem_GotoUrl,
WorkflowDefinitionYamlBlocksItem_HttpRequest,
WorkflowDefinitionYamlBlocksItem_HumanInteraction,
@@ -694,9 +641,8 @@ if typing.TYPE_CHECKING:
from .workflow_run_block_navigation_payload import WorkflowRunBlockNavigationPayload
from .workflow_run_block_output import WorkflowRunBlockOutput
from .workflow_run_proxy_location import WorkflowRunProxyLocation
- from .workflow_run_request_input_proxy_location import WorkflowRunRequestInputProxyLocation
- from .workflow_run_request_output import WorkflowRunRequestOutput
- from .workflow_run_request_output_proxy_location import WorkflowRunRequestOutputProxyLocation
+ from .workflow_run_request import WorkflowRunRequest
+ from .workflow_run_request_proxy_location import WorkflowRunRequestProxyLocation
from .workflow_run_response import WorkflowRunResponse
from .workflow_run_response_output import WorkflowRunResponseOutput
from .workflow_run_status import WorkflowRunStatus
@@ -743,7 +689,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"ActionBlockParametersItem_Output": ".action_block_parameters_item",
"ActionBlockParametersItem_Workflow": ".action_block_parameters_item",
"ActionBlockYaml": ".action_block_yaml",
- "ActionOutput": ".action_output",
"ActionStatus": ".action_status",
"ActionType": ".action_type",
"Artifact": ".artifact",
@@ -769,7 +714,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"BranchCriteriaYamlCriteriaType": ".branch_criteria_yaml_criteria_type",
"BrowserProfile": ".browser_profile",
"BrowserSessionResponse": ".browser_session_response",
- "BulkCancelRunsResponse": ".bulk_cancel_runs_response",
"ClickAction": ".click_action",
"ClickActionData": ".click_action_data",
"ClickContext": ".click_context",
@@ -804,7 +748,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"ContextParameterSource_Workflow": ".context_parameter_source",
"ContextParameterValue": ".context_parameter_value",
"ContextParameterYaml": ".context_parameter_yaml",
- "CreateBrowserSessionRequestProxyLocation": ".create_browser_session_request_proxy_location",
"CreateCredentialRequest": ".create_credential_request",
"CreateCredentialRequestCredential": ".create_credential_request_credential",
"CreateScriptResponse": ".create_script_response",
@@ -875,8 +818,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"ForLoopBlockLoopBlocksItem_FileUpload": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_FileUrlParser": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_ForLoop": ".for_loop_block_loop_blocks_item",
- "ForLoopBlockLoopBlocksItem_GoogleSheetsRead": ".for_loop_block_loop_blocks_item",
- "ForLoopBlockLoopBlocksItem_GoogleSheetsWrite": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_GotoUrl": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_HttpRequest": ".for_loop_block_loop_blocks_item",
"ForLoopBlockLoopBlocksItem_HumanInteraction": ".for_loop_block_loop_blocks_item",
@@ -917,8 +858,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"ForLoopBlockYamlLoopBlocksItem_FileUpload": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_FileUrlParser": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_ForLoop": ".for_loop_block_yaml_loop_blocks_item",
- "ForLoopBlockYamlLoopBlocksItem_GoogleSheetsRead": ".for_loop_block_yaml_loop_blocks_item",
- "ForLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_GotoUrl": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_HttpRequest": ".for_loop_block_yaml_loop_blocks_item",
"ForLoopBlockYamlLoopBlocksItem_HumanInteraction": ".for_loop_block_yaml_loop_blocks_item",
@@ -943,37 +882,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"GetRunResponse_TaskV2": ".get_run_response",
"GetRunResponse_UiTars": ".get_run_response",
"GetRunResponse_WorkflowRun": ".get_run_response",
- "GetRunResponse_YutoriNavigator": ".get_run_response",
- "GoogleSheetsReadBlock": ".google_sheets_read_block",
- "GoogleSheetsReadBlockParametersItem": ".google_sheets_read_block_parameters_item",
- "GoogleSheetsReadBlockParametersItem_AwsSecret": ".google_sheets_read_block_parameters_item",
- "GoogleSheetsReadBlockParametersItem_AzureSecret": ".google_sheets_read_block_parameters_item",
- "GoogleSheetsReadBlockParametersItem_AzureVaultCredential": ".google_sheets_read_block_parameters_item",
- "GoogleSheetsReadBlockParametersItem_BitwardenCreditCardData": ".google_sheets_read_block_parameters_item",
- "GoogleSheetsReadBlockParametersItem_BitwardenLoginCredential": ".google_sheets_read_block_parameters_item",
- "GoogleSheetsReadBlockParametersItem_BitwardenSensitiveInformation": ".google_sheets_read_block_parameters_item",
- "GoogleSheetsReadBlockParametersItem_Context": ".google_sheets_read_block_parameters_item",
- "GoogleSheetsReadBlockParametersItem_Credential": ".google_sheets_read_block_parameters_item",
- "GoogleSheetsReadBlockParametersItem_Onepassword": ".google_sheets_read_block_parameters_item",
- "GoogleSheetsReadBlockParametersItem_Output": ".google_sheets_read_block_parameters_item",
- "GoogleSheetsReadBlockParametersItem_Workflow": ".google_sheets_read_block_parameters_item",
- "GoogleSheetsReadBlockYaml": ".google_sheets_read_block_yaml",
- "GoogleSheetsWriteBlock": ".google_sheets_write_block",
- "GoogleSheetsWriteBlockParametersItem": ".google_sheets_write_block_parameters_item",
- "GoogleSheetsWriteBlockParametersItem_AwsSecret": ".google_sheets_write_block_parameters_item",
- "GoogleSheetsWriteBlockParametersItem_AzureSecret": ".google_sheets_write_block_parameters_item",
- "GoogleSheetsWriteBlockParametersItem_AzureVaultCredential": ".google_sheets_write_block_parameters_item",
- "GoogleSheetsWriteBlockParametersItem_BitwardenCreditCardData": ".google_sheets_write_block_parameters_item",
- "GoogleSheetsWriteBlockParametersItem_BitwardenLoginCredential": ".google_sheets_write_block_parameters_item",
- "GoogleSheetsWriteBlockParametersItem_BitwardenSensitiveInformation": ".google_sheets_write_block_parameters_item",
- "GoogleSheetsWriteBlockParametersItem_Context": ".google_sheets_write_block_parameters_item",
- "GoogleSheetsWriteBlockParametersItem_Credential": ".google_sheets_write_block_parameters_item",
- "GoogleSheetsWriteBlockParametersItem_Onepassword": ".google_sheets_write_block_parameters_item",
- "GoogleSheetsWriteBlockParametersItem_Output": ".google_sheets_write_block_parameters_item",
- "GoogleSheetsWriteBlockParametersItem_Workflow": ".google_sheets_write_block_parameters_item",
- "GoogleSheetsWriteBlockWriteMode": ".google_sheets_write_block_write_mode",
- "GoogleSheetsWriteBlockYaml": ".google_sheets_write_block_yaml",
- "GoogleSheetsWriteBlockYamlWriteMode": ".google_sheets_write_block_yaml_write_mode",
"HttpRequestBlock": ".http_request_block",
"HttpRequestBlockParametersItem": ".http_request_block_parameters_item",
"HttpRequestBlockParametersItem_AwsSecret": ".http_request_block_parameters_item",
@@ -1084,7 +992,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"RunSdkActionRequestAction_Validate": ".run_sdk_action_request_action",
"RunSdkActionResponse": ".run_sdk_action_response",
"RunStatus": ".run_status",
- "RunWebhookReplayResponse": ".run_webhook_replay_response",
"Script": ".script",
"ScriptFileCreate": ".script_file_create",
"ScriptRunResponse": ".script_run_response",
@@ -1096,7 +1003,7 @@ _dynamic_imports: typing.Dict[str, str] = {
"SendEmailBlock": ".send_email_block",
"SendEmailBlockYaml": ".send_email_block_yaml",
"SkyvernForgeSdkSchemasCredentialsCredentialType": ".skyvern_forge_sdk_schemas_credentials_credential_type",
- "SkyvernSchemasCredentialTypeCredentialType": ".skyvern_schemas_credential_type_credential_type",
+ "SkyvernSchemasRunBlocksCredentialType": ".skyvern_schemas_run_blocks_credential_type",
"TaskBlock": ".task_block",
"TaskBlockDataSchema": ".task_block_data_schema",
"TaskBlockParametersItem": ".task_block_parameters_item",
@@ -1114,11 +1021,9 @@ _dynamic_imports: typing.Dict[str, str] = {
"TaskBlockYaml": ".task_block_yaml",
"TaskBlockYamlDataSchema": ".task_block_yaml_data_schema",
"TaskRunListItem": ".task_run_list_item",
- "TaskRunRequestInputDataExtractionSchema": ".task_run_request_input_data_extraction_schema",
- "TaskRunRequestInputProxyLocation": ".task_run_request_input_proxy_location",
- "TaskRunRequestOutput": ".task_run_request_output",
- "TaskRunRequestOutputDataExtractionSchema": ".task_run_request_output_data_extraction_schema",
- "TaskRunRequestOutputProxyLocation": ".task_run_request_output_proxy_location",
+ "TaskRunRequest": ".task_run_request",
+ "TaskRunRequestDataExtractionSchema": ".task_run_request_data_extraction_schema",
+ "TaskRunRequestProxyLocation": ".task_run_request_proxy_location",
"TaskRunResponse": ".task_run_response",
"TaskRunResponseOutput": ".task_run_response_output",
"TaskV2Block": ".task_v2block",
@@ -1209,8 +1114,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"WhileLoopBlockLoopBlocksItem_FileUpload": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_FileUrlParser": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_ForLoop": ".while_loop_block_loop_blocks_item",
- "WhileLoopBlockLoopBlocksItem_GoogleSheetsRead": ".while_loop_block_loop_blocks_item",
- "WhileLoopBlockLoopBlocksItem_GoogleSheetsWrite": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_GotoUrl": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_HttpRequest": ".while_loop_block_loop_blocks_item",
"WhileLoopBlockLoopBlocksItem_HumanInteraction": ".while_loop_block_loop_blocks_item",
@@ -1238,8 +1141,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"WhileLoopBlockYamlLoopBlocksItem_FileUpload": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_FileUrlParser": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_ForLoop": ".while_loop_block_yaml_loop_blocks_item",
- "WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsRead": ".while_loop_block_yaml_loop_blocks_item",
- "WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_GotoUrl": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_HttpRequest": ".while_loop_block_yaml_loop_blocks_item",
"WhileLoopBlockYamlLoopBlocksItem_HumanInteraction": ".while_loop_block_yaml_loop_blocks_item",
@@ -1270,8 +1171,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"WorkflowDefinitionBlocksItem_FileUpload": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_FileUrlParser": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_ForLoop": ".workflow_definition_blocks_item",
- "WorkflowDefinitionBlocksItem_GoogleSheetsRead": ".workflow_definition_blocks_item",
- "WorkflowDefinitionBlocksItem_GoogleSheetsWrite": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_GotoUrl": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_HttpRequest": ".workflow_definition_blocks_item",
"WorkflowDefinitionBlocksItem_HumanInteraction": ".workflow_definition_blocks_item",
@@ -1311,8 +1210,6 @@ _dynamic_imports: typing.Dict[str, str] = {
"WorkflowDefinitionYamlBlocksItem_FileUpload": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_FileUrlParser": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_ForLoop": ".workflow_definition_yaml_blocks_item",
- "WorkflowDefinitionYamlBlocksItem_GoogleSheetsRead": ".workflow_definition_yaml_blocks_item",
- "WorkflowDefinitionYamlBlocksItem_GoogleSheetsWrite": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_GotoUrl": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_HttpRequest": ".workflow_definition_yaml_blocks_item",
"WorkflowDefinitionYamlBlocksItem_HumanInteraction": ".workflow_definition_yaml_blocks_item",
@@ -1353,9 +1250,8 @@ _dynamic_imports: typing.Dict[str, str] = {
"WorkflowRunBlockNavigationPayload": ".workflow_run_block_navigation_payload",
"WorkflowRunBlockOutput": ".workflow_run_block_output",
"WorkflowRunProxyLocation": ".workflow_run_proxy_location",
- "WorkflowRunRequestInputProxyLocation": ".workflow_run_request_input_proxy_location",
- "WorkflowRunRequestOutput": ".workflow_run_request_output",
- "WorkflowRunRequestOutputProxyLocation": ".workflow_run_request_output_proxy_location",
+ "WorkflowRunRequest": ".workflow_run_request",
+ "WorkflowRunRequestProxyLocation": ".workflow_run_request_proxy_location",
"WorkflowRunResponse": ".workflow_run_response",
"WorkflowRunResponseOutput": ".workflow_run_response_output",
"WorkflowRunStatus": ".workflow_run_status",
@@ -1424,7 +1320,6 @@ __all__ = [
"ActionBlockParametersItem_Output",
"ActionBlockParametersItem_Workflow",
"ActionBlockYaml",
- "ActionOutput",
"ActionStatus",
"ActionType",
"Artifact",
@@ -1450,7 +1345,6 @@ __all__ = [
"BranchCriteriaYamlCriteriaType",
"BrowserProfile",
"BrowserSessionResponse",
- "BulkCancelRunsResponse",
"ClickAction",
"ClickActionData",
"ClickContext",
@@ -1485,7 +1379,6 @@ __all__ = [
"ContextParameterSource_Workflow",
"ContextParameterValue",
"ContextParameterYaml",
- "CreateBrowserSessionRequestProxyLocation",
"CreateCredentialRequest",
"CreateCredentialRequestCredential",
"CreateScriptResponse",
@@ -1556,8 +1449,6 @@ __all__ = [
"ForLoopBlockLoopBlocksItem_FileUpload",
"ForLoopBlockLoopBlocksItem_FileUrlParser",
"ForLoopBlockLoopBlocksItem_ForLoop",
- "ForLoopBlockLoopBlocksItem_GoogleSheetsRead",
- "ForLoopBlockLoopBlocksItem_GoogleSheetsWrite",
"ForLoopBlockLoopBlocksItem_GotoUrl",
"ForLoopBlockLoopBlocksItem_HttpRequest",
"ForLoopBlockLoopBlocksItem_HumanInteraction",
@@ -1598,8 +1489,6 @@ __all__ = [
"ForLoopBlockYamlLoopBlocksItem_FileUpload",
"ForLoopBlockYamlLoopBlocksItem_FileUrlParser",
"ForLoopBlockYamlLoopBlocksItem_ForLoop",
- "ForLoopBlockYamlLoopBlocksItem_GoogleSheetsRead",
- "ForLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite",
"ForLoopBlockYamlLoopBlocksItem_GotoUrl",
"ForLoopBlockYamlLoopBlocksItem_HttpRequest",
"ForLoopBlockYamlLoopBlocksItem_HumanInteraction",
@@ -1624,37 +1513,6 @@ __all__ = [
"GetRunResponse_TaskV2",
"GetRunResponse_UiTars",
"GetRunResponse_WorkflowRun",
- "GetRunResponse_YutoriNavigator",
- "GoogleSheetsReadBlock",
- "GoogleSheetsReadBlockParametersItem",
- "GoogleSheetsReadBlockParametersItem_AwsSecret",
- "GoogleSheetsReadBlockParametersItem_AzureSecret",
- "GoogleSheetsReadBlockParametersItem_AzureVaultCredential",
- "GoogleSheetsReadBlockParametersItem_BitwardenCreditCardData",
- "GoogleSheetsReadBlockParametersItem_BitwardenLoginCredential",
- "GoogleSheetsReadBlockParametersItem_BitwardenSensitiveInformation",
- "GoogleSheetsReadBlockParametersItem_Context",
- "GoogleSheetsReadBlockParametersItem_Credential",
- "GoogleSheetsReadBlockParametersItem_Onepassword",
- "GoogleSheetsReadBlockParametersItem_Output",
- "GoogleSheetsReadBlockParametersItem_Workflow",
- "GoogleSheetsReadBlockYaml",
- "GoogleSheetsWriteBlock",
- "GoogleSheetsWriteBlockParametersItem",
- "GoogleSheetsWriteBlockParametersItem_AwsSecret",
- "GoogleSheetsWriteBlockParametersItem_AzureSecret",
- "GoogleSheetsWriteBlockParametersItem_AzureVaultCredential",
- "GoogleSheetsWriteBlockParametersItem_BitwardenCreditCardData",
- "GoogleSheetsWriteBlockParametersItem_BitwardenLoginCredential",
- "GoogleSheetsWriteBlockParametersItem_BitwardenSensitiveInformation",
- "GoogleSheetsWriteBlockParametersItem_Context",
- "GoogleSheetsWriteBlockParametersItem_Credential",
- "GoogleSheetsWriteBlockParametersItem_Onepassword",
- "GoogleSheetsWriteBlockParametersItem_Output",
- "GoogleSheetsWriteBlockParametersItem_Workflow",
- "GoogleSheetsWriteBlockWriteMode",
- "GoogleSheetsWriteBlockYaml",
- "GoogleSheetsWriteBlockYamlWriteMode",
"HttpRequestBlock",
"HttpRequestBlockParametersItem",
"HttpRequestBlockParametersItem_AwsSecret",
@@ -1765,7 +1623,6 @@ __all__ = [
"RunSdkActionRequestAction_Validate",
"RunSdkActionResponse",
"RunStatus",
- "RunWebhookReplayResponse",
"Script",
"ScriptFileCreate",
"ScriptRunResponse",
@@ -1777,7 +1634,7 @@ __all__ = [
"SendEmailBlock",
"SendEmailBlockYaml",
"SkyvernForgeSdkSchemasCredentialsCredentialType",
- "SkyvernSchemasCredentialTypeCredentialType",
+ "SkyvernSchemasRunBlocksCredentialType",
"TaskBlock",
"TaskBlockDataSchema",
"TaskBlockParametersItem",
@@ -1795,11 +1652,9 @@ __all__ = [
"TaskBlockYaml",
"TaskBlockYamlDataSchema",
"TaskRunListItem",
- "TaskRunRequestInputDataExtractionSchema",
- "TaskRunRequestInputProxyLocation",
- "TaskRunRequestOutput",
- "TaskRunRequestOutputDataExtractionSchema",
- "TaskRunRequestOutputProxyLocation",
+ "TaskRunRequest",
+ "TaskRunRequestDataExtractionSchema",
+ "TaskRunRequestProxyLocation",
"TaskRunResponse",
"TaskRunResponseOutput",
"TaskV2Block",
@@ -1890,8 +1745,6 @@ __all__ = [
"WhileLoopBlockLoopBlocksItem_FileUpload",
"WhileLoopBlockLoopBlocksItem_FileUrlParser",
"WhileLoopBlockLoopBlocksItem_ForLoop",
- "WhileLoopBlockLoopBlocksItem_GoogleSheetsRead",
- "WhileLoopBlockLoopBlocksItem_GoogleSheetsWrite",
"WhileLoopBlockLoopBlocksItem_GotoUrl",
"WhileLoopBlockLoopBlocksItem_HttpRequest",
"WhileLoopBlockLoopBlocksItem_HumanInteraction",
@@ -1919,8 +1772,6 @@ __all__ = [
"WhileLoopBlockYamlLoopBlocksItem_FileUpload",
"WhileLoopBlockYamlLoopBlocksItem_FileUrlParser",
"WhileLoopBlockYamlLoopBlocksItem_ForLoop",
- "WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsRead",
- "WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite",
"WhileLoopBlockYamlLoopBlocksItem_GotoUrl",
"WhileLoopBlockYamlLoopBlocksItem_HttpRequest",
"WhileLoopBlockYamlLoopBlocksItem_HumanInteraction",
@@ -1951,8 +1802,6 @@ __all__ = [
"WorkflowDefinitionBlocksItem_FileUpload",
"WorkflowDefinitionBlocksItem_FileUrlParser",
"WorkflowDefinitionBlocksItem_ForLoop",
- "WorkflowDefinitionBlocksItem_GoogleSheetsRead",
- "WorkflowDefinitionBlocksItem_GoogleSheetsWrite",
"WorkflowDefinitionBlocksItem_GotoUrl",
"WorkflowDefinitionBlocksItem_HttpRequest",
"WorkflowDefinitionBlocksItem_HumanInteraction",
@@ -1992,8 +1841,6 @@ __all__ = [
"WorkflowDefinitionYamlBlocksItem_FileUpload",
"WorkflowDefinitionYamlBlocksItem_FileUrlParser",
"WorkflowDefinitionYamlBlocksItem_ForLoop",
- "WorkflowDefinitionYamlBlocksItem_GoogleSheetsRead",
- "WorkflowDefinitionYamlBlocksItem_GoogleSheetsWrite",
"WorkflowDefinitionYamlBlocksItem_GotoUrl",
"WorkflowDefinitionYamlBlocksItem_HttpRequest",
"WorkflowDefinitionYamlBlocksItem_HumanInteraction",
@@ -2034,9 +1881,8 @@ __all__ = [
"WorkflowRunBlockNavigationPayload",
"WorkflowRunBlockOutput",
"WorkflowRunProxyLocation",
- "WorkflowRunRequestInputProxyLocation",
- "WorkflowRunRequestOutput",
- "WorkflowRunRequestOutputProxyLocation",
+ "WorkflowRunRequest",
+ "WorkflowRunRequestProxyLocation",
"WorkflowRunResponse",
"WorkflowRunResponseOutput",
"WorkflowRunStatus",
diff --git a/skyvern/client/types/action.py b/skyvern/client/types/action.py
index 9a95043af..1611652eb 100644
--- a/skyvern/client/types/action.py
+++ b/skyvern/client/types/action.py
@@ -5,7 +5,6 @@ import typing
import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-from .action_output import ActionOutput
from .action_status import ActionStatus
from .action_type import ActionType
from .click_context import ClickContext
@@ -37,9 +36,7 @@ class Action(UniversalBaseModel):
tool_call_id: typing.Optional[str] = None
xpath: typing.Optional[str] = None
errors: typing.Optional[typing.List[UserDefinedError]] = None
- terminal_user_errors: typing.Optional[bool] = None
data_extraction_goal: typing.Optional[str] = None
- output: typing.Optional[ActionOutput] = None
file_name: typing.Optional[str] = None
file_url: typing.Optional[str] = None
download: typing.Optional[bool] = None
diff --git a/skyvern/client/types/action_block.py b/skyvern/client/types/action_block.py
index aa9b30d0a..139876d8c 100644
--- a/skyvern/client/types/action_block.py
+++ b/skyvern/client/types/action_block.py
@@ -27,7 +27,6 @@ class ActionBlock(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -49,7 +48,6 @@ class ActionBlock(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: 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/action_block_yaml.py b/skyvern/client/types/action_block_yaml.py
index dd3abd85c..1e0d31456 100644
--- a/skyvern/client/types/action_block_yaml.py
+++ b/skyvern/client/types/action_block_yaml.py
@@ -20,7 +20,6 @@ class ActionBlockYaml(UniversalBaseModel):
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
url: typing.Optional[str] = None
title: typing.Optional[str] = None
diff --git a/skyvern/client/types/action_type.py b/skyvern/client/types/action_type.py
index 7fe706d12..1a37282c9 100644
--- a/skyvern/client/types/action_type.py
+++ b/skyvern/client/types/action_type.py
@@ -21,14 +21,11 @@ ActionType = typing.Union[
"extract",
"verification_code",
"goto_url",
- "go_back",
- "go_forward",
"scroll",
"keypress",
"move",
"drag",
"left_mouse",
- "execute_js",
],
typing.Any,
]
diff --git a/skyvern/client/types/artifact.py b/skyvern/client/types/artifact.py
index f34d6e66c..55481168b 100644
--- a/skyvern/client/types/artifact.py
+++ b/skyvern/client/types/artifact.py
@@ -22,19 +22,15 @@ class Artifact(UniversalBaseModel):
artifact_type: ArtifactType
uri: str
bundle_key: typing.Optional[str] = None
- checksum: typing.Optional[str] = None
- file_size: typing.Optional[int] = None
task_id: typing.Optional[str] = None
step_id: typing.Optional[str] = None
workflow_run_id: typing.Optional[str] = None
workflow_run_block_id: typing.Optional[str] = None
run_id: typing.Optional[str] = None
- browser_session_id: typing.Optional[str] = None
observer_cruise_id: typing.Optional[str] = None
observer_thought_id: typing.Optional[str] = None
ai_suggestion_id: typing.Optional[str] = None
signed_url: typing.Optional[str] = None
- archived: typing.Optional[bool] = None
organization_id: str
if IS_PYDANTIC_V2:
diff --git a/skyvern/client/types/artifact_type.py b/skyvern/client/types/artifact_type.py
index c9e599864..781381086 100644
--- a/skyvern/client/types/artifact_type.py
+++ b/skyvern/client/types/artifact_type.py
@@ -33,7 +33,6 @@ ArtifactType = typing.Union[
"pdf",
"step_archive",
"task_archive",
- "download",
],
typing.Any,
]
diff --git a/skyvern/client/types/block_type.py b/skyvern/client/types/block_type.py
index 8aacc37a1..18d6f30cc 100644
--- a/skyvern/client/types/block_type.py
+++ b/skyvern/client/types/block_type.py
@@ -29,8 +29,6 @@ BlockType = typing.Union[
"human_interaction",
"print_page",
"workflow_trigger",
- "google_sheets_read",
- "google_sheets_write",
],
typing.Any,
]
diff --git a/skyvern/client/types/browser_profile.py b/skyvern/client/types/browser_profile.py
index 3e9bc7e39..cce682751 100644
--- a/skyvern/client/types/browser_profile.py
+++ b/skyvern/client/types/browser_profile.py
@@ -12,7 +12,6 @@ class BrowserProfile(UniversalBaseModel):
organization_id: str
name: str
description: typing.Optional[str] = None
- source_browser_type: 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/bulk_cancel_runs_response.py b/skyvern/client/types/bulk_cancel_runs_response.py
deleted file mode 100644
index bd80ca4e3..000000000
--- a/skyvern/client/types/bulk_cancel_runs_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 BulkCancelRunsResponse(UniversalBaseModel):
- cancelled: typing.List[str] = pydantic.Field()
- """
- Run IDs that were successfully cancelled
- """
-
- failed: typing.List[str] = pydantic.Field()
- """
- Run IDs that could not be cancelled
- """
-
- 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 ca9857bb6..0615ccb5d 100644
--- a/skyvern/client/types/code_block.py
+++ b/skyvern/client/types/code_block.py
@@ -25,7 +25,6 @@ class CodeBlock(UniversalBaseModel):
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
code: str
parameters: typing.Optional[typing.List[CodeBlockParametersItem]] = None
diff --git a/skyvern/client/types/code_block_yaml.py b/skyvern/client/types/code_block_yaml.py
index 0cea41310..1860b5e19 100644
--- a/skyvern/client/types/code_block_yaml.py
+++ b/skyvern/client/types/code_block_yaml.py
@@ -19,7 +19,6 @@ class CodeBlockYaml(UniversalBaseModel):
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
code: str
parameter_keys: typing.Optional[typing.List[str]] = None
diff --git a/skyvern/client/types/conditional_block.py b/skyvern/client/types/conditional_block.py
index 77b62b8d2..4d663e9b1 100644
--- a/skyvern/client/types/conditional_block.py
+++ b/skyvern/client/types/conditional_block.py
@@ -27,7 +27,6 @@ class ConditionalBlock(UniversalBaseModel):
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
branch_conditions: typing.Optional[typing.List[BranchCondition]] = None
diff --git a/skyvern/client/types/conditional_block_yaml.py b/skyvern/client/types/conditional_block_yaml.py
index 934eaaf35..95caaae49 100644
--- a/skyvern/client/types/conditional_block_yaml.py
+++ b/skyvern/client/types/conditional_block_yaml.py
@@ -20,7 +20,6 @@ class ConditionalBlockYaml(UniversalBaseModel):
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
branch_conditions: typing.Optional[typing.List[BranchConditionYaml]] = None
diff --git a/skyvern/client/types/create_browser_session_request_proxy_location.py b/skyvern/client/types/create_browser_session_request_proxy_location.py
deleted file mode 100644
index 1324c3528..000000000
--- a/skyvern/client/types/create_browser_session_request_proxy_location.py
+++ /dev/null
@@ -1,10 +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
-
-CreateBrowserSessionRequestProxyLocation = typing.Union[
- ProxyLocation, GeoTarget, typing.Dict[str, typing.Optional[typing.Any]]
-]
diff --git a/skyvern/client/types/download_to_s3block.py b/skyvern/client/types/download_to_s3block.py
index 82d7adbbf..5b0a74ba5 100644
--- a/skyvern/client/types/download_to_s3block.py
+++ b/skyvern/client/types/download_to_s3block.py
@@ -22,7 +22,6 @@ class DownloadToS3Block(UniversalBaseModel):
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
url: str
diff --git a/skyvern/client/types/download_to_s3block_yaml.py b/skyvern/client/types/download_to_s3block_yaml.py
index ae9e05454..8b8335772 100644
--- a/skyvern/client/types/download_to_s3block_yaml.py
+++ b/skyvern/client/types/download_to_s3block_yaml.py
@@ -19,7 +19,6 @@ class DownloadToS3BlockYaml(UniversalBaseModel):
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
url: str
diff --git a/skyvern/client/types/extraction_block.py b/skyvern/client/types/extraction_block.py
index adb7accd1..1405ec78d 100644
--- a/skyvern/client/types/extraction_block.py
+++ b/skyvern/client/types/extraction_block.py
@@ -27,7 +27,6 @@ class ExtractionBlock(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -49,7 +48,6 @@ class ExtractionBlock(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: 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/extraction_block_yaml.py b/skyvern/client/types/extraction_block_yaml.py
index 869ed755c..3e98e42b7 100644
--- a/skyvern/client/types/extraction_block_yaml.py
+++ b/skyvern/client/types/extraction_block_yaml.py
@@ -21,7 +21,6 @@ class ExtractionBlockYaml(UniversalBaseModel):
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
data_extraction_goal: str
url: typing.Optional[str] = None
diff --git a/skyvern/client/types/file_download_block.py b/skyvern/client/types/file_download_block.py
index ea33b918f..ae327e355 100644
--- a/skyvern/client/types/file_download_block.py
+++ b/skyvern/client/types/file_download_block.py
@@ -27,7 +27,6 @@ class FileDownloadBlock(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -49,7 +48,6 @@ class FileDownloadBlock(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: 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/file_download_block_yaml.py b/skyvern/client/types/file_download_block_yaml.py
index 0341cc7d7..3c2a6b914 100644
--- a/skyvern/client/types/file_download_block_yaml.py
+++ b/skyvern/client/types/file_download_block_yaml.py
@@ -20,7 +20,6 @@ class FileDownloadBlockYaml(UniversalBaseModel):
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
navigation_goal: str
url: typing.Optional[str] = None
diff --git a/skyvern/client/types/file_info.py b/skyvern/client/types/file_info.py
index c693138f2..6495fad8a 100644
--- a/skyvern/client/types/file_info.py
+++ b/skyvern/client/types/file_info.py
@@ -27,21 +27,11 @@ class FileInfo(UniversalBaseModel):
Original filename
"""
- file_size: typing.Optional[int] = pydantic.Field(default=None)
- """
- Size of the file in bytes
- """
-
modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
"""
Modified time of the file
"""
- artifact_id: typing.Optional[str] = pydantic.Field(default=None)
- """
- Artifact row id for refresh-on-read
- """
-
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/file_parser_block.py b/skyvern/client/types/file_parser_block.py
index 63e6afd34..e43bf501f 100644
--- a/skyvern/client/types/file_parser_block.py
+++ b/skyvern/client/types/file_parser_block.py
@@ -23,7 +23,6 @@ class FileParserBlock(UniversalBaseModel):
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
file_type: typing.Optional[FileType] = None
diff --git a/skyvern/client/types/file_parser_block_yaml.py b/skyvern/client/types/file_parser_block_yaml.py
index 66c8b55c0..fea8c7a9c 100644
--- a/skyvern/client/types/file_parser_block_yaml.py
+++ b/skyvern/client/types/file_parser_block_yaml.py
@@ -20,10 +20,9 @@ class FileParserBlockYaml(UniversalBaseModel):
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
- file_type: typing.Optional[FileType] = None
+ file_type: FileType
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
if IS_PYDANTIC_V2:
diff --git a/skyvern/client/types/file_upload_block.py b/skyvern/client/types/file_upload_block.py
index 540d093aa..521b93a23 100644
--- a/skyvern/client/types/file_upload_block.py
+++ b/skyvern/client/types/file_upload_block.py
@@ -25,7 +25,6 @@ class FileUploadBlock(UniversalBaseModel):
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
storage_type: typing.Optional[FileStorageType] = None
s3bucket: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="s3_bucket")] = None
diff --git a/skyvern/client/types/file_upload_block_yaml.py b/skyvern/client/types/file_upload_block_yaml.py
index d2976511b..670bab192 100644
--- a/skyvern/client/types/file_upload_block_yaml.py
+++ b/skyvern/client/types/file_upload_block_yaml.py
@@ -22,7 +22,6 @@ class FileUploadBlockYaml(UniversalBaseModel):
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
storage_type: typing.Optional[FileStorageType] = None
s3bucket: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="s3_bucket")] = None
diff --git a/skyvern/client/types/for_loop_block.py b/skyvern/client/types/for_loop_block.py
index c0a2300b1..30c2f5cc1 100644
--- a/skyvern/client/types/for_loop_block.py
+++ b/skyvern/client/types/for_loop_block.py
@@ -26,7 +26,6 @@ class ForLoopBlock(UniversalBaseModel):
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
loop_blocks: typing.List["ForLoopBlockLoopBlocksItem"]
loop_over: typing.Optional[ForLoopBlockLoopOver] = None
@@ -45,15 +44,6 @@ class ForLoopBlock(UniversalBaseModel):
from .context_parameter import ContextParameter # noqa: E402, F401, I001
-
-# Manual patch: Fern v4.31.1 emits bottom-cross-imports that deadlock at module
-# load (for_loop ↔ while_loop ↔ *_loop_blocks_item). Catch the mid-load
-# ImportError; the symmetric *_loop_blocks_item module back-resolves once both
-# unions are fully defined. Reapply on every regen — see fern_build_python_sdk.sh.
-try:
- from .while_loop_block import WhileLoopBlock # noqa: E402, F401, I001
- from .for_loop_block_loop_blocks_item import ForLoopBlockLoopBlocksItem # noqa: E402, F401, I001
-except ImportError:
- pass
+from .for_loop_block_loop_blocks_item import ForLoopBlockLoopBlocksItem # noqa: E402, F401, I001
update_forward_refs(ForLoopBlock)
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 af4e94f33..4d64a8050 100644
--- a/skyvern/client/types/for_loop_block_loop_blocks_item.py
+++ b/skyvern/client/types/for_loop_block_loop_blocks_item.py
@@ -21,9 +21,6 @@ from .file_storage_type import FileStorageType
from .file_type import FileType
from .for_loop_block_data_schema import ForLoopBlockDataSchema
from .for_loop_block_loop_over import ForLoopBlockLoopOver
-from .google_sheets_read_block_parameters_item import GoogleSheetsReadBlockParametersItem
-from .google_sheets_write_block_parameters_item import GoogleSheetsWriteBlockParametersItem
-from .google_sheets_write_block_write_mode import GoogleSheetsWriteBlockWriteMode
from .http_request_block_parameters_item import HttpRequestBlockParametersItem
from .human_interaction_block_data_schema import HumanInteractionBlockDataSchema
from .human_interaction_block_parameters_item import HumanInteractionBlockParametersItem
@@ -54,7 +51,6 @@ class ForLoopBlockLoopBlocksItem_Action(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -76,7 +72,6 @@ class ForLoopBlockLoopBlocksItem_Action(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -96,7 +91,6 @@ class ForLoopBlockLoopBlocksItem_Code(UniversalBaseModel):
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
code: str
parameters: typing.Optional[typing.List[CodeBlockParametersItem]] = None
@@ -119,7 +113,6 @@ class ForLoopBlockLoopBlocksItem_Conditional(UniversalBaseModel):
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
branch_conditions: typing.Optional[typing.List[BranchCondition]] = None
@@ -141,7 +134,6 @@ class ForLoopBlockLoopBlocksItem_DownloadToS3(UniversalBaseModel):
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
url: str
@@ -163,7 +155,6 @@ class ForLoopBlockLoopBlocksItem_Extraction(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -185,7 +176,6 @@ class ForLoopBlockLoopBlocksItem_Extraction(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -205,7 +195,6 @@ class ForLoopBlockLoopBlocksItem_FileDownload(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -227,7 +216,6 @@ class ForLoopBlockLoopBlocksItem_FileDownload(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -247,7 +235,6 @@ class ForLoopBlockLoopBlocksItem_FileUpload(UniversalBaseModel):
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
storage_type: typing.Optional[FileStorageType] = None
s3bucket: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="s3_bucket")] = None
@@ -277,7 +264,6 @@ class ForLoopBlockLoopBlocksItem_FileUrlParser(UniversalBaseModel):
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
file_type: typing.Optional[FileType] = None
@@ -301,7 +287,6 @@ class ForLoopBlockLoopBlocksItem_ForLoop(UniversalBaseModel):
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
loop_blocks: typing.List["ForLoopBlockLoopBlocksItem"]
loop_over: typing.Optional[ForLoopBlockLoopOver] = None
@@ -319,61 +304,7 @@ class ForLoopBlockLoopBlocksItem_ForLoop(UniversalBaseModel):
extra = pydantic.Extra.allow
-class ForLoopBlockLoopBlocksItem_GoogleSheetsRead(UniversalBaseModel):
- block_type: typing.Literal["google_sheets_read"] = "google_sheets_read"
- 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
- spreadsheet_url: str
- sheet_name: typing.Optional[str] = None
- range: typing.Optional[str] = None
- credential_id: typing.Optional[str] = None
- has_header_row: typing.Optional[bool] = None
- parameters: typing.Optional[typing.List[GoogleSheetsReadBlockParametersItem]] = 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_GoogleSheetsWrite(UniversalBaseModel):
- block_type: typing.Literal["google_sheets_write"] = "google_sheets_write"
- 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
- spreadsheet_url: str
- sheet_name: typing.Optional[str] = None
- range: typing.Optional[str] = None
- credential_id: typing.Optional[str] = None
- write_mode: typing.Optional[GoogleSheetsWriteBlockWriteMode] = None
- values: typing.Optional[str] = None
- column_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
- create_sheet_if_missing: typing.Optional[bool] = None
- parameters: typing.Optional[typing.List[GoogleSheetsWriteBlockParametersItem]] = 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 .for_loop_block import ForLoopBlock # noqa: E402, F401, I001
class ForLoopBlockLoopBlocksItem_GotoUrl(UniversalBaseModel):
@@ -384,7 +315,6 @@ class ForLoopBlockLoopBlocksItem_GotoUrl(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: str
@@ -406,7 +336,6 @@ class ForLoopBlockLoopBlocksItem_GotoUrl(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -426,7 +355,6 @@ class ForLoopBlockLoopBlocksItem_HttpRequest(UniversalBaseModel):
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
method: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -457,7 +385,6 @@ class ForLoopBlockLoopBlocksItem_HumanInteraction(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -479,7 +406,6 @@ class ForLoopBlockLoopBlocksItem_HumanInteraction(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
instructions: typing.Optional[str] = None
positive_descriptor: typing.Optional[str] = None
negative_descriptor: typing.Optional[str] = None
@@ -507,7 +433,6 @@ class ForLoopBlockLoopBlocksItem_Login(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -529,7 +454,6 @@ class ForLoopBlockLoopBlocksItem_Login(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -549,7 +473,6 @@ class ForLoopBlockLoopBlocksItem_Navigation(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -571,7 +494,6 @@ class ForLoopBlockLoopBlocksItem_Navigation(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -591,7 +513,6 @@ class ForLoopBlockLoopBlocksItem_PdfParser(UniversalBaseModel):
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
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
@@ -614,7 +535,6 @@ class ForLoopBlockLoopBlocksItem_PrintPage(UniversalBaseModel):
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
include_timestamp: typing.Optional[bool] = None
custom_filename: typing.Optional[str] = None
@@ -641,7 +561,6 @@ class ForLoopBlockLoopBlocksItem_SendEmail(UniversalBaseModel):
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
smtp_host: AwsSecretParameter
smtp_port: AwsSecretParameter
@@ -671,7 +590,6 @@ class ForLoopBlockLoopBlocksItem_Task(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -693,7 +611,6 @@ class ForLoopBlockLoopBlocksItem_Task(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -713,7 +630,6 @@ class ForLoopBlockLoopBlocksItem_TaskV2(UniversalBaseModel):
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
prompt: str
url: typing.Optional[str] = None
@@ -740,7 +656,6 @@ class ForLoopBlockLoopBlocksItem_TextPrompt(UniversalBaseModel):
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
llm_key: typing.Optional[str] = None
prompt: str
@@ -765,7 +680,6 @@ class ForLoopBlockLoopBlocksItem_UploadToS3(UniversalBaseModel):
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
path: typing.Optional[str] = None
@@ -787,7 +701,6 @@ class ForLoopBlockLoopBlocksItem_Validation(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -809,7 +722,6 @@ class ForLoopBlockLoopBlocksItem_Validation(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -829,7 +741,6 @@ class ForLoopBlockLoopBlocksItem_Wait(UniversalBaseModel):
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
wait_sec: int
parameters: typing.Optional[typing.List[WaitBlockParametersItem]] = None
@@ -844,18 +755,21 @@ class ForLoopBlockLoopBlocksItem_Wait(UniversalBaseModel):
extra = pydantic.Extra.allow
-class ForLoopBlockLoopBlocksItem_WhileLoop(UniversalBaseModel):
- block_type: typing.Literal["while_loop"] = "while_loop"
+class ForLoopBlockLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):
+ block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"
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
- loop_blocks: typing.List["WhileLoopBlockLoopBlocksItem"]
- condition: WhileLoopBlockCondition
+ workflow_permanent_id: str
+ payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
+ wait_for_completion: typing.Optional[bool] = None
+ browser_session_id: typing.Optional[str] = None
+ use_parent_browser_session: typing.Optional[bool] = None
+ parameters: typing.Optional[typing.List[WorkflowTriggerBlockParametersItem]] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -867,26 +781,17 @@ class ForLoopBlockLoopBlocksItem_WhileLoop(UniversalBaseModel):
extra = pydantic.Extra.allow
-from .for_loop_block import ForLoopBlock # noqa: E402, F401, I001
-from .while_loop_block import WhileLoopBlock # noqa: E402, F401, I001
-
-
-class ForLoopBlockLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):
- block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"
+class ForLoopBlockLoopBlocksItem_WhileLoop(UniversalBaseModel):
+ block_type: typing.Literal["while_loop"] = "while_loop"
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
- workflow_permanent_id: str
- payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- wait_for_completion: typing.Optional[bool] = None
- browser_session_id: typing.Optional[str] = None
- use_parent_browser_session: typing.Optional[bool] = None
- parameters: typing.Optional[typing.List[WorkflowTriggerBlockParametersItem]] = None
+ loop_blocks: typing.List["ForLoopBlockLoopBlocksItem"]
+ condition: WhileLoopBlockCondition
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -910,8 +815,6 @@ ForLoopBlockLoopBlocksItem = typing.Union[
ForLoopBlockLoopBlocksItem_FileUpload,
ForLoopBlockLoopBlocksItem_FileUrlParser,
ForLoopBlockLoopBlocksItem_ForLoop,
- ForLoopBlockLoopBlocksItem_GoogleSheetsRead,
- ForLoopBlockLoopBlocksItem_GoogleSheetsWrite,
ForLoopBlockLoopBlocksItem_GotoUrl,
ForLoopBlockLoopBlocksItem_HttpRequest,
ForLoopBlockLoopBlocksItem_HumanInteraction,
@@ -929,69 +832,20 @@ ForLoopBlockLoopBlocksItem = typing.Union[
ForLoopBlockLoopBlocksItem_WhileLoop,
ForLoopBlockLoopBlocksItem_WorkflowTrigger,
]
-# Manual patch: see for_loop_block.py header note. The cross-import below fails
-# when this module is loaded mid-chain via while_loop_block_loop_blocks_item.
-# The other side back-resolves us once it finishes loading.
-try:
- from .while_loop_block_loop_blocks_item import WhileLoopBlockLoopBlocksItem # noqa: E402, F401, I001
-except ImportError:
- pass
-else:
- for _cls in (
- ForLoopBlockLoopBlocksItem_Action,
- ForLoopBlockLoopBlocksItem_Code,
- ForLoopBlockLoopBlocksItem_Extraction,
- ForLoopBlockLoopBlocksItem_FileDownload,
- ForLoopBlockLoopBlocksItem_ForLoop,
- ForLoopBlockLoopBlocksItem_GoogleSheetsRead,
- ForLoopBlockLoopBlocksItem_GoogleSheetsWrite,
- ForLoopBlockLoopBlocksItem_GotoUrl,
- ForLoopBlockLoopBlocksItem_HttpRequest,
- ForLoopBlockLoopBlocksItem_HumanInteraction,
- ForLoopBlockLoopBlocksItem_Login,
- ForLoopBlockLoopBlocksItem_Navigation,
- ForLoopBlockLoopBlocksItem_PrintPage,
- ForLoopBlockLoopBlocksItem_Task,
- ForLoopBlockLoopBlocksItem_TextPrompt,
- ForLoopBlockLoopBlocksItem_Validation,
- ForLoopBlockLoopBlocksItem_Wait,
- ForLoopBlockLoopBlocksItem_WhileLoop,
- ForLoopBlockLoopBlocksItem_WorkflowTrigger,
- ):
- update_forward_refs(_cls)
- # Back-resolve everything that couldn't resolve mid-chain:
- # 1. while_loop_block_loop_blocks_item variants (need our ForLoopBlockLoopBlocksItem)
- from . import while_loop_block_loop_blocks_item as _wllb
- _wllb.ForLoopBlockLoopBlocksItem = ForLoopBlockLoopBlocksItem # type: ignore[attr-defined]
- for _cls in (
- _wllb.WhileLoopBlockLoopBlocksItem_Action,
- _wllb.WhileLoopBlockLoopBlocksItem_Code,
- _wllb.WhileLoopBlockLoopBlocksItem_Extraction,
- _wllb.WhileLoopBlockLoopBlocksItem_FileDownload,
- _wllb.WhileLoopBlockLoopBlocksItem_ForLoop,
- _wllb.WhileLoopBlockLoopBlocksItem_GoogleSheetsRead,
- _wllb.WhileLoopBlockLoopBlocksItem_GoogleSheetsWrite,
- _wllb.WhileLoopBlockLoopBlocksItem_GotoUrl,
- _wllb.WhileLoopBlockLoopBlocksItem_HttpRequest,
- _wllb.WhileLoopBlockLoopBlocksItem_HumanInteraction,
- _wllb.WhileLoopBlockLoopBlocksItem_Login,
- _wllb.WhileLoopBlockLoopBlocksItem_Navigation,
- _wllb.WhileLoopBlockLoopBlocksItem_PrintPage,
- _wllb.WhileLoopBlockLoopBlocksItem_Task,
- _wllb.WhileLoopBlockLoopBlocksItem_TextPrompt,
- _wllb.WhileLoopBlockLoopBlocksItem_Validation,
- _wllb.WhileLoopBlockLoopBlocksItem_Wait,
- _wllb.WhileLoopBlockLoopBlocksItem_WhileLoop,
- _wllb.WhileLoopBlockLoopBlocksItem_WorkflowTrigger,
- ):
- update_forward_refs(_cls)
- # 2. for_loop_block.ForLoopBlock (needs our ForLoopBlockLoopBlocksItem in its globals)
- from . import for_loop_block as _flb
- _flb.ForLoopBlockLoopBlocksItem = ForLoopBlockLoopBlocksItem # type: ignore[attr-defined]
- _flb.WhileLoopBlockLoopBlocksItem = WhileLoopBlockLoopBlocksItem # type: ignore[attr-defined]
- update_forward_refs(_flb.ForLoopBlock)
- # 3. while_loop_block.WhileLoopBlock
- from . import while_loop_block as _wlb
- _wlb.ForLoopBlockLoopBlocksItem = ForLoopBlockLoopBlocksItem # type: ignore[attr-defined]
- _wlb.WhileLoopBlockLoopBlocksItem = WhileLoopBlockLoopBlocksItem # type: ignore[attr-defined]
- update_forward_refs(_wlb.WhileLoopBlock)
+update_forward_refs(ForLoopBlockLoopBlocksItem_Action)
+update_forward_refs(ForLoopBlockLoopBlocksItem_Code)
+update_forward_refs(ForLoopBlockLoopBlocksItem_Extraction)
+update_forward_refs(ForLoopBlockLoopBlocksItem_FileDownload)
+update_forward_refs(ForLoopBlockLoopBlocksItem_ForLoop)
+update_forward_refs(ForLoopBlockLoopBlocksItem_GotoUrl)
+update_forward_refs(ForLoopBlockLoopBlocksItem_HttpRequest)
+update_forward_refs(ForLoopBlockLoopBlocksItem_HumanInteraction)
+update_forward_refs(ForLoopBlockLoopBlocksItem_Login)
+update_forward_refs(ForLoopBlockLoopBlocksItem_Navigation)
+update_forward_refs(ForLoopBlockLoopBlocksItem_PrintPage)
+update_forward_refs(ForLoopBlockLoopBlocksItem_Task)
+update_forward_refs(ForLoopBlockLoopBlocksItem_TextPrompt)
+update_forward_refs(ForLoopBlockLoopBlocksItem_Validation)
+update_forward_refs(ForLoopBlockLoopBlocksItem_Wait)
+update_forward_refs(ForLoopBlockLoopBlocksItem_WhileLoop)
+update_forward_refs(ForLoopBlockLoopBlocksItem_WorkflowTrigger)
diff --git a/skyvern/client/types/for_loop_block_yaml.py b/skyvern/client/types/for_loop_block_yaml.py
index 4cf687393..807562283 100644
--- a/skyvern/client/types/for_loop_block_yaml.py
+++ b/skyvern/client/types/for_loop_block_yaml.py
@@ -22,7 +22,6 @@ class ForLoopBlockYaml(UniversalBaseModel):
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
loop_blocks: typing.List["ForLoopBlockYamlLoopBlocksItem"]
loop_over_parameter_key: typing.Optional[str] = None
@@ -40,12 +39,6 @@ class ForLoopBlockYaml(UniversalBaseModel):
extra = pydantic.Extra.allow
-# Manual patch: Fern v4.31.1 emits bottom-cross-imports that deadlock at module
-# load. See for_loop_block.py for the explanation.
-try:
- from .while_loop_block_yaml import WhileLoopBlockYaml # noqa: E402, F401, I001
- from .for_loop_block_yaml_loop_blocks_item import ForLoopBlockYamlLoopBlocksItem # noqa: E402, F401, I001
-except ImportError:
- pass
+from .for_loop_block_yaml_loop_blocks_item import ForLoopBlockYamlLoopBlocksItem # noqa: E402, F401, I001
update_forward_refs(ForLoopBlockYaml)
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 85a9036fe..7a87b74ec 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
@@ -14,7 +14,6 @@ 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_format import PdfFormat
from .run_engine import RunEngine
from .task_block_yaml_data_schema import TaskBlockYamlDataSchema
@@ -26,7 +25,6 @@ class ForLoopBlockYamlLoopBlocksItem_Task(UniversalBaseModel):
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
url: typing.Optional[str] = None
title: typing.Optional[str] = None
@@ -64,7 +62,6 @@ class ForLoopBlockYamlLoopBlocksItem_ForLoop(UniversalBaseModel):
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
loop_blocks: typing.List["ForLoopBlockYamlLoopBlocksItem"]
loop_over_parameter_key: typing.Optional[str] = None
@@ -82,29 +79,7 @@ class ForLoopBlockYamlLoopBlocksItem_ForLoop(UniversalBaseModel):
extra = pydantic.Extra.allow
-class ForLoopBlockYamlLoopBlocksItem_WhileLoop(UniversalBaseModel):
- block_type: typing.Literal["while_loop"] = "while_loop"
- 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
- loop_blocks: typing.List["WhileLoopBlockYamlLoopBlocksItem"]
- condition: BranchCriteriaYaml
-
- 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 .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001
-from .while_loop_block_yaml import WhileLoopBlockYaml # noqa: E402, F401, I001
class ForLoopBlockYamlLoopBlocksItem_Code(UniversalBaseModel):
@@ -113,7 +88,6 @@ class ForLoopBlockYamlLoopBlocksItem_Code(UniversalBaseModel):
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
code: str
parameter_keys: typing.Optional[typing.List[str]] = None
@@ -134,7 +108,6 @@ class ForLoopBlockYamlLoopBlocksItem_TextPrompt(UniversalBaseModel):
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
llm_key: typing.Optional[str] = None
prompt: str
@@ -157,7 +130,6 @@ class ForLoopBlockYamlLoopBlocksItem_DownloadToS3(UniversalBaseModel):
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
url: str
@@ -177,7 +149,6 @@ class ForLoopBlockYamlLoopBlocksItem_UploadToS3(UniversalBaseModel):
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
path: typing.Optional[str] = None
@@ -197,7 +168,6 @@ class ForLoopBlockYamlLoopBlocksItem_FileUpload(UniversalBaseModel):
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
storage_type: typing.Optional[FileStorageType] = None
s3bucket: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="s3_bucket")] = None
@@ -226,7 +196,6 @@ class ForLoopBlockYamlLoopBlocksItem_SendEmail(UniversalBaseModel):
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
smtp_host_secret_parameter_key: str
smtp_port_secret_parameter_key: str
@@ -254,7 +223,6 @@ class ForLoopBlockYamlLoopBlocksItem_FileUrlParser(UniversalBaseModel):
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
file_type: typing.Optional[FileType] = None
@@ -276,7 +244,6 @@ class ForLoopBlockYamlLoopBlocksItem_Validation(UniversalBaseModel):
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
complete_criterion: typing.Optional[str] = None
terminate_criterion: typing.Optional[str] = None
@@ -300,7 +267,6 @@ class ForLoopBlockYamlLoopBlocksItem_Action(UniversalBaseModel):
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
url: typing.Optional[str] = None
title: typing.Optional[str] = None
@@ -331,7 +297,6 @@ class ForLoopBlockYamlLoopBlocksItem_Navigation(UniversalBaseModel):
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
navigation_goal: str
url: typing.Optional[str] = None
@@ -367,7 +332,6 @@ class ForLoopBlockYamlLoopBlocksItem_Extraction(UniversalBaseModel):
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
data_extraction_goal: str
url: typing.Optional[str] = None
@@ -395,7 +359,6 @@ class ForLoopBlockYamlLoopBlocksItem_Login(UniversalBaseModel):
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
url: typing.Optional[str] = None
title: typing.Optional[str] = None
@@ -428,7 +391,6 @@ class ForLoopBlockYamlLoopBlocksItem_Wait(UniversalBaseModel):
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
wait_sec: typing.Optional[int] = None
@@ -448,7 +410,6 @@ class ForLoopBlockYamlLoopBlocksItem_HumanInteraction(UniversalBaseModel):
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
instructions: typing.Optional[str] = None
positive_descriptor: typing.Optional[str] = None
@@ -475,7 +436,6 @@ class ForLoopBlockYamlLoopBlocksItem_FileDownload(UniversalBaseModel):
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
navigation_goal: str
url: typing.Optional[str] = None
@@ -507,7 +467,6 @@ class ForLoopBlockYamlLoopBlocksItem_GotoUrl(UniversalBaseModel):
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
url: str
@@ -527,7 +486,6 @@ class ForLoopBlockYamlLoopBlocksItem_PdfParser(UniversalBaseModel):
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
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
@@ -548,7 +506,6 @@ class ForLoopBlockYamlLoopBlocksItem_TaskV2(UniversalBaseModel):
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
prompt: str
url: typing.Optional[str] = None
@@ -574,7 +531,6 @@ class ForLoopBlockYamlLoopBlocksItem_HttpRequest(UniversalBaseModel):
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
method: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -603,7 +559,6 @@ class ForLoopBlockYamlLoopBlocksItem_Conditional(UniversalBaseModel):
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
branch_conditions: typing.Optional[typing.List[BranchConditionYaml]] = None
@@ -623,7 +578,6 @@ class ForLoopBlockYamlLoopBlocksItem_PrintPage(UniversalBaseModel):
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
include_timestamp: typing.Optional[bool] = None
custom_filename: typing.Optional[str] = None
@@ -648,7 +602,6 @@ class ForLoopBlockYamlLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):
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
workflow_permanent_id: str
payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
@@ -667,48 +620,15 @@ class ForLoopBlockYamlLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):
extra = pydantic.Extra.allow
-class ForLoopBlockYamlLoopBlocksItem_GoogleSheetsRead(UniversalBaseModel):
- block_type: typing.Literal["google_sheets_read"] = "google_sheets_read"
- 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
- spreadsheet_url: str
- sheet_name: typing.Optional[str] = None
- range: typing.Optional[str] = None
- credential_id: typing.Optional[str] = None
- has_header_row: 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"
+class ForLoopBlockYamlLoopBlocksItem_WhileLoop(UniversalBaseModel):
+ block_type: typing.Literal["while_loop"] = "while_loop"
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
- spreadsheet_url: str
- sheet_name: typing.Optional[str] = None
- range: typing.Optional[str] = None
- credential_id: typing.Optional[str] = None
- write_mode: typing.Optional[GoogleSheetsWriteBlockYamlWriteMode] = None
- values: typing.Optional[str] = None
- column_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
- create_sheet_if_missing: typing.Optional[bool] = None
- parameter_keys: typing.Optional[typing.List[str]] = None
+ loop_blocks: typing.List["ForLoopBlockYamlLoopBlocksItem"]
+ condition: BranchCriteriaYaml
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -723,7 +643,6 @@ class ForLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite(UniversalBaseModel):
ForLoopBlockYamlLoopBlocksItem = typing.Union[
ForLoopBlockYamlLoopBlocksItem_Task,
ForLoopBlockYamlLoopBlocksItem_ForLoop,
- ForLoopBlockYamlLoopBlocksItem_WhileLoop,
ForLoopBlockYamlLoopBlocksItem_Code,
ForLoopBlockYamlLoopBlocksItem_TextPrompt,
ForLoopBlockYamlLoopBlocksItem_DownloadToS3,
@@ -745,27 +664,8 @@ ForLoopBlockYamlLoopBlocksItem = typing.Union[
ForLoopBlockYamlLoopBlocksItem_HttpRequest,
ForLoopBlockYamlLoopBlocksItem_Conditional,
ForLoopBlockYamlLoopBlocksItem_PrintPage,
+ ForLoopBlockYamlLoopBlocksItem_WhileLoop,
ForLoopBlockYamlLoopBlocksItem_WorkflowTrigger,
- ForLoopBlockYamlLoopBlocksItem_GoogleSheetsRead,
- ForLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite,
]
-# Manual patch: see for_loop_block.py header note.
-try:
- from .while_loop_block_yaml_loop_blocks_item import WhileLoopBlockYamlLoopBlocksItem # noqa: E402, F401, I001
-except ImportError:
- pass
-else:
- update_forward_refs(ForLoopBlockYamlLoopBlocksItem_ForLoop)
- update_forward_refs(ForLoopBlockYamlLoopBlocksItem_WhileLoop)
- from . import while_loop_block_yaml_loop_blocks_item as _wlylb
- _wlylb.ForLoopBlockYamlLoopBlocksItem = ForLoopBlockYamlLoopBlocksItem # type: ignore[attr-defined]
- update_forward_refs(_wlylb.WhileLoopBlockYamlLoopBlocksItem_ForLoop)
- update_forward_refs(_wlylb.WhileLoopBlockYamlLoopBlocksItem_WhileLoop)
- from . import for_loop_block_yaml as _flby
- _flby.ForLoopBlockYamlLoopBlocksItem = ForLoopBlockYamlLoopBlocksItem # type: ignore[attr-defined]
- _flby.WhileLoopBlockYamlLoopBlocksItem = WhileLoopBlockYamlLoopBlocksItem # type: ignore[attr-defined]
- update_forward_refs(_flby.ForLoopBlockYaml)
- from . import while_loop_block_yaml as _wlby
- _wlby.ForLoopBlockYamlLoopBlocksItem = ForLoopBlockYamlLoopBlocksItem # type: ignore[attr-defined]
- _wlby.WhileLoopBlockYamlLoopBlocksItem = WhileLoopBlockYamlLoopBlocksItem # type: ignore[attr-defined]
- update_forward_refs(_wlby.WhileLoopBlockYaml)
+update_forward_refs(ForLoopBlockYamlLoopBlocksItem_ForLoop)
+update_forward_refs(ForLoopBlockYamlLoopBlocksItem_WhileLoop)
diff --git a/skyvern/client/types/geo_target.py b/skyvern/client/types/geo_target.py
index a9428cbc2..592cc76d6 100644
--- a/skyvern/client/types/geo_target.py
+++ b/skyvern/client/types/geo_target.py
@@ -8,7 +8,17 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
class GeoTarget(UniversalBaseModel):
"""
- Granular proxy geo-targeting request with country, optional subdivision, and optional city.
+ Granular geographic targeting for proxy selection.
+
+ Supports country, subdivision (state/region), and city level targeting.
+ Uses ISO 3166-1 alpha-2 for countries, ISO 3166-2 for subdivisions,
+ and GeoNames English names for cities.
+
+ Examples:
+ - {"country": "US"} - United States (same as RESIDENTIAL)
+ - {"country": "US", "subdivision": "CA"} - California, US
+ - {"country": "US", "subdivision": "NY", "city": "New York"} - New York City
+ - {"country": "GB", "city": "London"} - London, UK
"""
country: str = pydantic.Field()
diff --git a/skyvern/client/types/get_run_response.py b/skyvern/client/types/get_run_response.py
index 2933c6095..8898a7cb7 100644
--- a/skyvern/client/types/get_run_response.py
+++ b/skyvern/client/types/get_run_response.py
@@ -10,9 +10,9 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .file_info import FileInfo
from .run_status import RunStatus
from .script_run_response import ScriptRunResponse
-from .task_run_request_output import TaskRunRequestOutput
+from .task_run_request import TaskRunRequest
from .task_run_response_output import TaskRunResponseOutput
-from .workflow_run_request_output import WorkflowRunRequestOutput
+from .workflow_run_request import WorkflowRunRequest
from .workflow_run_response_output import WorkflowRunResponseOutput
@@ -23,7 +23,6 @@ class GetRunResponse_TaskV1(UniversalBaseModel):
output: typing.Optional[TaskRunResponseOutput] = None
downloaded_files: typing.Optional[typing.List[FileInfo]] = None
recording_url: typing.Optional[str] = None
- recording_archived: typing.Optional[bool] = None
screenshot_urls: typing.Optional[typing.List[str]] = None
failure_reason: typing.Optional[str] = None
created_at: dt.datetime
@@ -38,7 +37,7 @@ class GetRunResponse_TaskV1(UniversalBaseModel):
script_run: typing.Optional[ScriptRunResponse] = None
errors: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None
step_count: typing.Optional[int] = None
- run_request: typing.Optional[TaskRunRequestOutput] = None
+ run_request: typing.Optional[TaskRunRequest] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -57,7 +56,6 @@ class GetRunResponse_TaskV2(UniversalBaseModel):
output: typing.Optional[TaskRunResponseOutput] = None
downloaded_files: typing.Optional[typing.List[FileInfo]] = None
recording_url: typing.Optional[str] = None
- recording_archived: typing.Optional[bool] = None
screenshot_urls: typing.Optional[typing.List[str]] = None
failure_reason: typing.Optional[str] = None
created_at: dt.datetime
@@ -72,7 +70,7 @@ class GetRunResponse_TaskV2(UniversalBaseModel):
script_run: typing.Optional[ScriptRunResponse] = None
errors: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None
step_count: typing.Optional[int] = None
- run_request: typing.Optional[TaskRunRequestOutput] = None
+ run_request: typing.Optional[TaskRunRequest] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -91,7 +89,6 @@ class GetRunResponse_OpenaiCua(UniversalBaseModel):
output: typing.Optional[TaskRunResponseOutput] = None
downloaded_files: typing.Optional[typing.List[FileInfo]] = None
recording_url: typing.Optional[str] = None
- recording_archived: typing.Optional[bool] = None
screenshot_urls: typing.Optional[typing.List[str]] = None
failure_reason: typing.Optional[str] = None
created_at: dt.datetime
@@ -106,7 +103,7 @@ class GetRunResponse_OpenaiCua(UniversalBaseModel):
script_run: typing.Optional[ScriptRunResponse] = None
errors: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None
step_count: typing.Optional[int] = None
- run_request: typing.Optional[TaskRunRequestOutput] = None
+ run_request: typing.Optional[TaskRunRequest] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -125,7 +122,6 @@ class GetRunResponse_AnthropicCua(UniversalBaseModel):
output: typing.Optional[TaskRunResponseOutput] = None
downloaded_files: typing.Optional[typing.List[FileInfo]] = None
recording_url: typing.Optional[str] = None
- recording_archived: typing.Optional[bool] = None
screenshot_urls: typing.Optional[typing.List[str]] = None
failure_reason: typing.Optional[str] = None
created_at: dt.datetime
@@ -140,7 +136,7 @@ class GetRunResponse_AnthropicCua(UniversalBaseModel):
script_run: typing.Optional[ScriptRunResponse] = None
errors: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None
step_count: typing.Optional[int] = None
- run_request: typing.Optional[TaskRunRequestOutput] = None
+ run_request: typing.Optional[TaskRunRequest] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -159,7 +155,6 @@ class GetRunResponse_UiTars(UniversalBaseModel):
output: typing.Optional[TaskRunResponseOutput] = None
downloaded_files: typing.Optional[typing.List[FileInfo]] = None
recording_url: typing.Optional[str] = None
- recording_archived: typing.Optional[bool] = None
screenshot_urls: typing.Optional[typing.List[str]] = None
failure_reason: typing.Optional[str] = None
created_at: dt.datetime
@@ -174,41 +169,7 @@ class GetRunResponse_UiTars(UniversalBaseModel):
script_run: typing.Optional[ScriptRunResponse] = None
errors: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None
step_count: typing.Optional[int] = None
- run_request: typing.Optional[TaskRunRequestOutput] = 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 GetRunResponse_YutoriNavigator(UniversalBaseModel):
- run_type: typing.Literal["yutori_navigator"] = "yutori_navigator"
- run_id: str
- status: RunStatus
- output: typing.Optional[TaskRunResponseOutput] = None
- downloaded_files: typing.Optional[typing.List[FileInfo]] = None
- recording_url: typing.Optional[str] = None
- recording_archived: typing.Optional[bool] = None
- screenshot_urls: typing.Optional[typing.List[str]] = None
- failure_reason: typing.Optional[str] = None
- created_at: dt.datetime
- modified_at: dt.datetime
- queued_at: typing.Optional[dt.datetime] = None
- started_at: typing.Optional[dt.datetime] = None
- finished_at: typing.Optional[dt.datetime] = None
- app_url: typing.Optional[str] = None
- browser_session_id: typing.Optional[str] = None
- browser_profile_id: typing.Optional[str] = None
- max_screenshot_scrolls: typing.Optional[int] = None
- script_run: typing.Optional[ScriptRunResponse] = None
- errors: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None
- step_count: typing.Optional[int] = None
- run_request: typing.Optional[TaskRunRequestOutput] = None
+ run_request: typing.Optional[TaskRunRequest] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -227,7 +188,6 @@ class GetRunResponse_WorkflowRun(UniversalBaseModel):
output: typing.Optional[WorkflowRunResponseOutput] = None
downloaded_files: typing.Optional[typing.List[FileInfo]] = None
recording_url: typing.Optional[str] = None
- recording_archived: typing.Optional[bool] = None
screenshot_urls: typing.Optional[typing.List[str]] = None
failure_reason: typing.Optional[str] = None
created_at: dt.datetime
@@ -244,8 +204,7 @@ class GetRunResponse_WorkflowRun(UniversalBaseModel):
step_count: typing.Optional[int] = None
run_with: typing.Optional[str] = None
ai_fallback: typing.Optional[bool] = None
- script_id: typing.Optional[str] = None
- run_request: typing.Optional[WorkflowRunRequestOutput] = None
+ run_request: typing.Optional[WorkflowRunRequest] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -263,6 +222,5 @@ GetRunResponse = typing.Union[
GetRunResponse_OpenaiCua,
GetRunResponse_AnthropicCua,
GetRunResponse_UiTars,
- GetRunResponse_YutoriNavigator,
GetRunResponse_WorkflowRun,
]
diff --git a/skyvern/client/types/google_sheets_read_block.py b/skyvern/client/types/google_sheets_read_block.py
deleted file mode 100644
index 127aa0394..000000000
--- a/skyvern/client/types/google_sheets_read_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 .google_sheets_read_block_parameters_item import GoogleSheetsReadBlockParametersItem
-from .output_parameter import OutputParameter
-
-
-class GoogleSheetsReadBlock(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
- spreadsheet_url: str
- sheet_name: typing.Optional[str] = None
- range: typing.Optional[str] = None
- credential_id: typing.Optional[str] = None
- has_header_row: typing.Optional[bool] = None
- parameters: typing.Optional[typing.List[GoogleSheetsReadBlockParametersItem]] = 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(GoogleSheetsReadBlock)
diff --git a/skyvern/client/types/google_sheets_read_block_parameters_item.py b/skyvern/client/types/google_sheets_read_block_parameters_item.py
deleted file mode 100644
index d06af1366..000000000
--- a/skyvern/client/types/google_sheets_read_block_parameters_item.py
+++ /dev/null
@@ -1,277 +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 GoogleSheetsReadBlockParametersItem_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 GoogleSheetsReadBlockParametersItem_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 GoogleSheetsReadBlockParametersItem_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 GoogleSheetsReadBlockParametersItem_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 GoogleSheetsReadBlockParametersItem_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 GoogleSheetsReadBlockParametersItem_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 GoogleSheetsReadBlockParametersItem_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 GoogleSheetsReadBlockParametersItem_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
- 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 GoogleSheetsReadBlockParametersItem_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 GoogleSheetsReadBlockParametersItem_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 GoogleSheetsReadBlockParametersItem_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
-
-
-GoogleSheetsReadBlockParametersItem = typing.Union[
- GoogleSheetsReadBlockParametersItem_AwsSecret,
- GoogleSheetsReadBlockParametersItem_AzureSecret,
- GoogleSheetsReadBlockParametersItem_AzureVaultCredential,
- GoogleSheetsReadBlockParametersItem_BitwardenCreditCardData,
- GoogleSheetsReadBlockParametersItem_BitwardenLoginCredential,
- GoogleSheetsReadBlockParametersItem_BitwardenSensitiveInformation,
- GoogleSheetsReadBlockParametersItem_Context,
- GoogleSheetsReadBlockParametersItem_Credential,
- GoogleSheetsReadBlockParametersItem_Onepassword,
- GoogleSheetsReadBlockParametersItem_Output,
- GoogleSheetsReadBlockParametersItem_Workflow,
-]
-update_forward_refs(GoogleSheetsReadBlockParametersItem_Context)
diff --git a/skyvern/client/types/google_sheets_read_block_yaml.py b/skyvern/client/types/google_sheets_read_block_yaml.py
deleted file mode 100644
index 43b16ee0e..000000000
--- a/skyvern/client/types/google_sheets_read_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
-
-
-class GoogleSheetsReadBlockYaml(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
- spreadsheet_url: str
- sheet_name: typing.Optional[str] = None
- range: typing.Optional[str] = None
- credential_id: typing.Optional[str] = None
- has_header_row: 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/google_sheets_write_block.py b/skyvern/client/types/google_sheets_write_block.py
deleted file mode 100644
index c9c0edc64..000000000
--- a/skyvern/client/types/google_sheets_write_block.py
+++ /dev/null
@@ -1,53 +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 .google_sheets_write_block_parameters_item import GoogleSheetsWriteBlockParametersItem
-from .google_sheets_write_block_write_mode import GoogleSheetsWriteBlockWriteMode
-from .output_parameter import OutputParameter
-
-
-class GoogleSheetsWriteBlock(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
- spreadsheet_url: str
- sheet_name: typing.Optional[str] = None
- range: typing.Optional[str] = None
- credential_id: typing.Optional[str] = None
- write_mode: typing.Optional[GoogleSheetsWriteBlockWriteMode] = None
- values: typing.Optional[str] = None
- column_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
- create_sheet_if_missing: typing.Optional[bool] = None
- parameters: typing.Optional[typing.List[GoogleSheetsWriteBlockParametersItem]] = 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(GoogleSheetsWriteBlock)
diff --git a/skyvern/client/types/google_sheets_write_block_parameters_item.py b/skyvern/client/types/google_sheets_write_block_parameters_item.py
deleted file mode 100644
index 0497c61a0..000000000
--- a/skyvern/client/types/google_sheets_write_block_parameters_item.py
+++ /dev/null
@@ -1,277 +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 GoogleSheetsWriteBlockParametersItem_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 GoogleSheetsWriteBlockParametersItem_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 GoogleSheetsWriteBlockParametersItem_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 GoogleSheetsWriteBlockParametersItem_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 GoogleSheetsWriteBlockParametersItem_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 GoogleSheetsWriteBlockParametersItem_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 GoogleSheetsWriteBlockParametersItem_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 GoogleSheetsWriteBlockParametersItem_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
- 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 GoogleSheetsWriteBlockParametersItem_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 GoogleSheetsWriteBlockParametersItem_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 GoogleSheetsWriteBlockParametersItem_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
-
-
-GoogleSheetsWriteBlockParametersItem = typing.Union[
- GoogleSheetsWriteBlockParametersItem_AwsSecret,
- GoogleSheetsWriteBlockParametersItem_AzureSecret,
- GoogleSheetsWriteBlockParametersItem_AzureVaultCredential,
- GoogleSheetsWriteBlockParametersItem_BitwardenCreditCardData,
- GoogleSheetsWriteBlockParametersItem_BitwardenLoginCredential,
- GoogleSheetsWriteBlockParametersItem_BitwardenSensitiveInformation,
- GoogleSheetsWriteBlockParametersItem_Context,
- GoogleSheetsWriteBlockParametersItem_Credential,
- GoogleSheetsWriteBlockParametersItem_Onepassword,
- GoogleSheetsWriteBlockParametersItem_Output,
- GoogleSheetsWriteBlockParametersItem_Workflow,
-]
-update_forward_refs(GoogleSheetsWriteBlockParametersItem_Context)
diff --git a/skyvern/client/types/google_sheets_write_block_write_mode.py b/skyvern/client/types/google_sheets_write_block_write_mode.py
deleted file mode 100644
index a31e12174..000000000
--- a/skyvern/client/types/google_sheets_write_block_write_mode.py
+++ /dev/null
@@ -1,5 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-GoogleSheetsWriteBlockWriteMode = typing.Union[typing.Literal["append", "update"], typing.Any]
diff --git a/skyvern/client/types/google_sheets_write_block_yaml.py b/skyvern/client/types/google_sheets_write_block_yaml.py
deleted file mode 100644
index c4e1abea7..000000000
--- a/skyvern/client/types/google_sheets_write_block_yaml.py
+++ /dev/null
@@ -1,42 +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 .google_sheets_write_block_yaml_write_mode import GoogleSheetsWriteBlockYamlWriteMode
-
-
-class GoogleSheetsWriteBlockYaml(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
- spreadsheet_url: str
- sheet_name: typing.Optional[str] = None
- range: typing.Optional[str] = None
- credential_id: typing.Optional[str] = None
- write_mode: typing.Optional[GoogleSheetsWriteBlockYamlWriteMode] = None
- values: typing.Optional[str] = None
- column_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
- create_sheet_if_missing: 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/google_sheets_write_block_yaml_write_mode.py b/skyvern/client/types/google_sheets_write_block_yaml_write_mode.py
deleted file mode 100644
index f1ef4fd5e..000000000
--- a/skyvern/client/types/google_sheets_write_block_yaml_write_mode.py
+++ /dev/null
@@ -1,5 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-GoogleSheetsWriteBlockYamlWriteMode = typing.Union[typing.Literal["append", "update"], typing.Any]
diff --git a/skyvern/client/types/http_request_block.py b/skyvern/client/types/http_request_block.py
index 4fc1e6e8f..319258549 100644
--- a/skyvern/client/types/http_request_block.py
+++ b/skyvern/client/types/http_request_block.py
@@ -25,7 +25,6 @@ class HttpRequestBlock(UniversalBaseModel):
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
method: typing.Optional[str] = None
url: typing.Optional[str] = None
diff --git a/skyvern/client/types/http_request_block_yaml.py b/skyvern/client/types/http_request_block_yaml.py
index b2bd6ae15..7d6ef8eb3 100644
--- a/skyvern/client/types/http_request_block_yaml.py
+++ b/skyvern/client/types/http_request_block_yaml.py
@@ -19,7 +19,6 @@ class HttpRequestBlockYaml(UniversalBaseModel):
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
method: typing.Optional[str] = None
url: typing.Optional[str] = None
diff --git a/skyvern/client/types/human_interaction_block.py b/skyvern/client/types/human_interaction_block.py
index 6c1879ee3..e1e74a138 100644
--- a/skyvern/client/types/human_interaction_block.py
+++ b/skyvern/client/types/human_interaction_block.py
@@ -39,7 +39,6 @@ class HumanInteractionBlock(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -61,7 +60,6 @@ class HumanInteractionBlock(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
instructions: typing.Optional[str] = None
positive_descriptor: typing.Optional[str] = None
negative_descriptor: typing.Optional[str] = None
diff --git a/skyvern/client/types/human_interaction_block_yaml.py b/skyvern/client/types/human_interaction_block_yaml.py
index c3c38d91e..efccee61d 100644
--- a/skyvern/client/types/human_interaction_block_yaml.py
+++ b/skyvern/client/types/human_interaction_block_yaml.py
@@ -19,7 +19,6 @@ class HumanInteractionBlockYaml(UniversalBaseModel):
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
instructions: typing.Optional[str] = None
positive_descriptor: typing.Optional[str] = None
diff --git a/skyvern/client/types/login_block.py b/skyvern/client/types/login_block.py
index 3675e1928..b832bb35a 100644
--- a/skyvern/client/types/login_block.py
+++ b/skyvern/client/types/login_block.py
@@ -27,7 +27,6 @@ class LoginBlock(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -49,7 +48,6 @@ class LoginBlock(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: 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/login_block_yaml.py b/skyvern/client/types/login_block_yaml.py
index b64f4e033..480f43c18 100644
--- a/skyvern/client/types/login_block_yaml.py
+++ b/skyvern/client/types/login_block_yaml.py
@@ -20,7 +20,6 @@ class LoginBlockYaml(UniversalBaseModel):
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
url: typing.Optional[str] = None
title: typing.Optional[str] = None
diff --git a/skyvern/client/types/navigation_block.py b/skyvern/client/types/navigation_block.py
index 31c59b8f7..ccdea0568 100644
--- a/skyvern/client/types/navigation_block.py
+++ b/skyvern/client/types/navigation_block.py
@@ -27,7 +27,6 @@ class NavigationBlock(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -49,7 +48,6 @@ class NavigationBlock(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: 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/navigation_block_yaml.py b/skyvern/client/types/navigation_block_yaml.py
index 574143688..c0bf45ff2 100644
--- a/skyvern/client/types/navigation_block_yaml.py
+++ b/skyvern/client/types/navigation_block_yaml.py
@@ -20,7 +20,6 @@ class NavigationBlockYaml(UniversalBaseModel):
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
navigation_goal: str
url: typing.Optional[str] = None
diff --git a/skyvern/client/types/pdf_parser_block.py b/skyvern/client/types/pdf_parser_block.py
index cca9067f4..898dfb4f1 100644
--- a/skyvern/client/types/pdf_parser_block.py
+++ b/skyvern/client/types/pdf_parser_block.py
@@ -27,7 +27,6 @@ class PdfParserBlock(UniversalBaseModel):
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
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
diff --git a/skyvern/client/types/pdf_parser_block_yaml.py b/skyvern/client/types/pdf_parser_block_yaml.py
index c5ff77881..89f336765 100644
--- a/skyvern/client/types/pdf_parser_block_yaml.py
+++ b/skyvern/client/types/pdf_parser_block_yaml.py
@@ -19,7 +19,6 @@ class PdfParserBlockYaml(UniversalBaseModel):
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
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
diff --git a/skyvern/client/types/print_page_block.py b/skyvern/client/types/print_page_block.py
index aa5735af0..608de8d78 100644
--- a/skyvern/client/types/print_page_block.py
+++ b/skyvern/client/types/print_page_block.py
@@ -25,7 +25,6 @@ class PrintPageBlock(UniversalBaseModel):
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
include_timestamp: typing.Optional[bool] = None
custom_filename: typing.Optional[str] = None
diff --git a/skyvern/client/types/print_page_block_yaml.py b/skyvern/client/types/print_page_block_yaml.py
index 08d896726..489415ecb 100644
--- a/skyvern/client/types/print_page_block_yaml.py
+++ b/skyvern/client/types/print_page_block_yaml.py
@@ -20,7 +20,6 @@ class PrintPageBlockYaml(UniversalBaseModel):
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
include_timestamp: typing.Optional[bool] = None
custom_filename: typing.Optional[str] = None
diff --git a/skyvern/client/types/run_engine.py b/skyvern/client/types/run_engine.py
index 71e78ecc6..15900a49d 100644
--- a/skyvern/client/types/run_engine.py
+++ b/skyvern/client/types/run_engine.py
@@ -3,6 +3,5 @@
import typing
RunEngine = typing.Union[
- typing.Literal["skyvern-1.0", "skyvern-2.0", "openai-cua", "anthropic-cua", "ui-tars", "yutori-navigator"],
- typing.Any,
+ typing.Literal["skyvern-1.0", "skyvern-2.0", "openai-cua", "anthropic-cua", "ui-tars", "yutori-navigator"], typing.Any
]
diff --git a/skyvern/client/types/run_webhook_replay_response.py b/skyvern/client/types/run_webhook_replay_response.py
deleted file mode 100644
index 3bb0083d2..000000000
--- a/skyvern/client/types/run_webhook_replay_response.py
+++ /dev/null
@@ -1,67 +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 RunWebhookReplayResponse(UniversalBaseModel):
- run_id: str = pydantic.Field()
- """
- Identifier of the run that was replayed
- """
-
- run_type: str = pydantic.Field()
- """
- Run type associated with the payload
- """
-
- default_webhook_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- Webhook URL stored on the original run configuration
- """
-
- target_webhook_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- Webhook URL that the replay attempted to reach
- """
-
- payload: str = pydantic.Field()
- """
- JSON payload that was delivered during the replay attempt
- """
-
- headers: typing.Dict[str, str] = pydantic.Field()
- """
- Signed headers that were generated for the replay attempt
- """
-
- status_code: typing.Optional[int] = pydantic.Field(default=None)
- """
- HTTP status code returned by the webhook receiver, if available
- """
-
- latency_ms: typing.Optional[int] = pydantic.Field(default=None)
- """
- Round-trip latency in milliseconds for the replay attempt
- """
-
- response_body: typing.Optional[str] = pydantic.Field(default=None)
- """
- Body returned by the webhook receiver (truncated to 2KB)
- """
-
- error: typing.Optional[str] = pydantic.Field(default=None)
- """
- Error message if the replay attempt failed
- """
-
- 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/send_email_block.py b/skyvern/client/types/send_email_block.py
index 389fae4c6..02253f692 100644
--- a/skyvern/client/types/send_email_block.py
+++ b/skyvern/client/types/send_email_block.py
@@ -23,7 +23,6 @@ class SendEmailBlock(UniversalBaseModel):
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
smtp_host: AwsSecretParameter
smtp_port: AwsSecretParameter
diff --git a/skyvern/client/types/send_email_block_yaml.py b/skyvern/client/types/send_email_block_yaml.py
index be1b4dd36..3ade6fdf3 100644
--- a/skyvern/client/types/send_email_block_yaml.py
+++ b/skyvern/client/types/send_email_block_yaml.py
@@ -19,7 +19,6 @@ class SendEmailBlockYaml(UniversalBaseModel):
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
smtp_host_secret_parameter_key: str
smtp_port_secret_parameter_key: str
diff --git a/skyvern/client/types/skyvern_schemas_credential_type_credential_type.py b/skyvern/client/types/skyvern_schemas_run_blocks_credential_type.py
similarity index 73%
rename from skyvern/client/types/skyvern_schemas_credential_type_credential_type.py
rename to skyvern/client/types/skyvern_schemas_run_blocks_credential_type.py
index 4341fec22..e153f92ec 100644
--- a/skyvern/client/types/skyvern_schemas_credential_type_credential_type.py
+++ b/skyvern/client/types/skyvern_schemas_run_blocks_credential_type.py
@@ -2,6 +2,6 @@
import typing
-SkyvernSchemasCredentialTypeCredentialType = typing.Union[
+SkyvernSchemasRunBlocksCredentialType = typing.Union[
typing.Literal["skyvern", "bitwarden", "1password", "azure_vault"], typing.Any
]
diff --git a/skyvern/client/types/task_block.py b/skyvern/client/types/task_block.py
index 39c3db001..afeb98698 100644
--- a/skyvern/client/types/task_block.py
+++ b/skyvern/client/types/task_block.py
@@ -27,7 +27,6 @@ class TaskBlock(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -49,7 +48,6 @@ class TaskBlock(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: 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/task_block_yaml.py b/skyvern/client/types/task_block_yaml.py
index 0a1d42bdc..f55bd08ee 100644
--- a/skyvern/client/types/task_block_yaml.py
+++ b/skyvern/client/types/task_block_yaml.py
@@ -21,7 +21,6 @@ class TaskBlockYaml(UniversalBaseModel):
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
url: typing.Optional[str] = None
title: typing.Optional[str] = None
diff --git a/skyvern/client/types/task_run_list_item.py b/skyvern/client/types/task_run_list_item.py
index f816909de..f5b629da2 100644
--- a/skyvern/client/types/task_run_list_item.py
+++ b/skyvern/client/types/task_run_list_item.py
@@ -21,7 +21,7 @@ class TaskRunListItem(UniversalBaseModel):
finished_at: typing.Optional[dt.datetime] = None
created_at: dt.datetime
workflow_permanent_id: typing.Optional[str] = None
- workflow_deleted: typing.Optional[bool] = None
+ workflow_deleted: bool = False
script_run: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
diff --git a/skyvern/client/types/task_run_request_output.py b/skyvern/client/types/task_run_request.py
similarity index 84%
rename from skyvern/client/types/task_run_request_output.py
rename to skyvern/client/types/task_run_request.py
index 7bb105976..cf280707b 100644
--- a/skyvern/client/types/task_run_request_output.py
+++ b/skyvern/client/types/task_run_request.py
@@ -5,11 +5,11 @@ import typing
import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .run_engine import RunEngine
-from .task_run_request_output_data_extraction_schema import TaskRunRequestOutputDataExtractionSchema
-from .task_run_request_output_proxy_location import TaskRunRequestOutputProxyLocation
+from .task_run_request_data_extraction_schema import TaskRunRequestDataExtractionSchema
+from .task_run_request_proxy_location import TaskRunRequestProxyLocation
-class TaskRunRequestOutput(UniversalBaseModel):
+class TaskRunRequest(UniversalBaseModel):
prompt: str = pydantic.Field()
"""
@@ -33,7 +33,7 @@ class TaskRunRequestOutput(UniversalBaseModel):
The title for the task
"""
- proxy_location: typing.Optional[TaskRunRequestOutputProxyLocation] = pydantic.Field(default=None)
+ proxy_location: typing.Optional[TaskRunRequestProxyLocation] = pydantic.Field(default=None)
"""
Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
@@ -50,7 +50,6 @@ class TaskRunRequestOutput(UniversalBaseModel):
- 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
@@ -67,12 +66,10 @@ class TaskRunRequestOutput(UniversalBaseModel):
- 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[TaskRunRequestOutputDataExtractionSchema] = pydantic.Field(default=None)
+ data_extraction_schema: typing.Optional[TaskRunRequestDataExtractionSchema] = pydantic.Field(default=None)
"""
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/.
@@ -125,11 +122,6 @@ class TaskRunRequestOutput(UniversalBaseModel):
The extra HTTP headers for the requests in browser.
"""
- cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = pydantic.Field(default=None)
- """
- 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] = pydantic.Field(default=None)
"""
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.
diff --git a/skyvern/client/types/action_output.py b/skyvern/client/types/task_run_request_data_extraction_schema.py
similarity index 77%
rename from skyvern/client/types/action_output.py
rename to skyvern/client/types/task_run_request_data_extraction_schema.py
index 07f0cbc26..d315a4c22 100644
--- a/skyvern/client/types/action_output.py
+++ b/skyvern/client/types/task_run_request_data_extraction_schema.py
@@ -2,6 +2,6 @@
import typing
-ActionOutput = typing.Union[
+TaskRunRequestDataExtractionSchema = typing.Union[
typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str
]
diff --git a/skyvern/client/types/task_run_request_input_data_extraction_schema.py b/skyvern/client/types/task_run_request_input_data_extraction_schema.py
deleted file mode 100644
index d41ea0abd..000000000
--- a/skyvern/client/types/task_run_request_input_data_extraction_schema.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-TaskRunRequestInputDataExtractionSchema = typing.Union[
- typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str
-]
diff --git a/skyvern/client/types/task_run_request_output_data_extraction_schema.py b/skyvern/client/types/task_run_request_output_data_extraction_schema.py
deleted file mode 100644
index 9e291122b..000000000
--- a/skyvern/client/types/task_run_request_output_data_extraction_schema.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-TaskRunRequestOutputDataExtractionSchema = typing.Union[
- typing.Dict[str, typing.Optional[typing.Any]], typing.List[typing.Optional[typing.Any]], str
-]
diff --git a/skyvern/client/types/task_run_request_input_proxy_location.py b/skyvern/client/types/task_run_request_proxy_location.py
similarity index 56%
rename from skyvern/client/types/task_run_request_input_proxy_location.py
rename to skyvern/client/types/task_run_request_proxy_location.py
index a20845410..7f67743ae 100644
--- a/skyvern/client/types/task_run_request_input_proxy_location.py
+++ b/skyvern/client/types/task_run_request_proxy_location.py
@@ -5,4 +5,4 @@ import typing
from .geo_target import GeoTarget
from .proxy_location import ProxyLocation
-TaskRunRequestInputProxyLocation = typing.Union[ProxyLocation, GeoTarget, typing.Dict[str, typing.Optional[typing.Any]]]
+TaskRunRequestProxyLocation = typing.Union[ProxyLocation, GeoTarget, typing.Dict[str, typing.Optional[typing.Any]]]
diff --git a/skyvern/client/types/task_run_response.py b/skyvern/client/types/task_run_response.py
index 702bb6c9f..623125ba4 100644
--- a/skyvern/client/types/task_run_response.py
+++ b/skyvern/client/types/task_run_response.py
@@ -8,7 +8,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .file_info import FileInfo
from .run_status import RunStatus
from .script_run_response import ScriptRunResponse
-from .task_run_request_output import TaskRunRequestOutput
+from .task_run_request import TaskRunRequest
from .task_run_response_output import TaskRunResponseOutput
@@ -38,11 +38,6 @@ class TaskRunResponse(UniversalBaseModel):
URL to the recording of the run
"""
- recording_archived: typing.Optional[bool] = pydantic.Field(default=None)
- """
- True when the recording exists but has been archived to cold storage and is not currently accessible.
- """
-
screenshot_urls: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
"""
List of last n screenshot URLs in reverse chronological order - the first one the list is the latest screenshot.
@@ -113,7 +108,7 @@ class TaskRunResponse(UniversalBaseModel):
Total number of steps executed in this run
"""
- run_request: typing.Optional[TaskRunRequestOutput] = pydantic.Field(default=None)
+ run_request: typing.Optional[TaskRunRequest] = pydantic.Field(default=None)
"""
The original request parameters used to start this task run
"""
diff --git a/skyvern/client/types/task_v2block.py b/skyvern/client/types/task_v2block.py
index 68592b304..fd25ffcbf 100644
--- a/skyvern/client/types/task_v2block.py
+++ b/skyvern/client/types/task_v2block.py
@@ -22,7 +22,6 @@ class TaskV2Block(UniversalBaseModel):
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
prompt: str
url: typing.Optional[str] = None
diff --git a/skyvern/client/types/task_v2block_yaml.py b/skyvern/client/types/task_v2block_yaml.py
index 3a93f1d35..3536eb193 100644
--- a/skyvern/client/types/task_v2block_yaml.py
+++ b/skyvern/client/types/task_v2block_yaml.py
@@ -19,7 +19,6 @@ class TaskV2BlockYaml(UniversalBaseModel):
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
prompt: str
url: typing.Optional[str] = None
diff --git a/skyvern/client/types/text_prompt_block.py b/skyvern/client/types/text_prompt_block.py
index 6101df694..9e54f308e 100644
--- a/skyvern/client/types/text_prompt_block.py
+++ b/skyvern/client/types/text_prompt_block.py
@@ -25,7 +25,6 @@ class TextPromptBlock(UniversalBaseModel):
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
llm_key: typing.Optional[str] = None
prompt: str
diff --git a/skyvern/client/types/text_prompt_block_yaml.py b/skyvern/client/types/text_prompt_block_yaml.py
index eda1414d5..627f85514 100644
--- a/skyvern/client/types/text_prompt_block_yaml.py
+++ b/skyvern/client/types/text_prompt_block_yaml.py
@@ -19,7 +19,6 @@ class TextPromptBlockYaml(UniversalBaseModel):
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
llm_key: typing.Optional[str] = None
prompt: str
diff --git a/skyvern/client/types/thought.py b/skyvern/client/types/thought.py
index e5e67b1b3..c632dba88 100644
--- a/skyvern/client/types/thought.py
+++ b/skyvern/client/types/thought.py
@@ -29,7 +29,6 @@ class Thought(UniversalBaseModel):
reasoning_token_count: typing.Optional[int] = None
cached_token_count: typing.Optional[int] = None
thought_cost: typing.Optional[float] = None
- last_llm_model: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
diff --git a/skyvern/client/types/upload_to_s3block.py b/skyvern/client/types/upload_to_s3block.py
index f1c9e2e96..e7dac9eca 100644
--- a/skyvern/client/types/upload_to_s3block.py
+++ b/skyvern/client/types/upload_to_s3block.py
@@ -22,7 +22,6 @@ class UploadToS3Block(UniversalBaseModel):
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
path: typing.Optional[str] = None
diff --git a/skyvern/client/types/upload_to_s3block_yaml.py b/skyvern/client/types/upload_to_s3block_yaml.py
index 52ea30e07..c904e0d44 100644
--- a/skyvern/client/types/upload_to_s3block_yaml.py
+++ b/skyvern/client/types/upload_to_s3block_yaml.py
@@ -19,7 +19,6 @@ class UploadToS3BlockYaml(UniversalBaseModel):
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
path: typing.Optional[str] = None
diff --git a/skyvern/client/types/url_block.py b/skyvern/client/types/url_block.py
index f29461d27..20166c711 100644
--- a/skyvern/client/types/url_block.py
+++ b/skyvern/client/types/url_block.py
@@ -27,7 +27,6 @@ class UrlBlock(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: str
@@ -49,7 +48,6 @@ class UrlBlock(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: 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/url_block_yaml.py b/skyvern/client/types/url_block_yaml.py
index dc3d3d213..c4d7e2042 100644
--- a/skyvern/client/types/url_block_yaml.py
+++ b/skyvern/client/types/url_block_yaml.py
@@ -19,7 +19,6 @@ class UrlBlockYaml(UniversalBaseModel):
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
url: str
diff --git a/skyvern/client/types/user_defined_error.py b/skyvern/client/types/user_defined_error.py
index 85732e98a..4dcd2e01a 100644
--- a/skyvern/client/types/user_defined_error.py
+++ b/skyvern/client/types/user_defined_error.py
@@ -10,7 +10,6 @@ class UserDefinedError(UniversalBaseModel):
error_code: str
reasoning: str
confidence_float: float
- error_type: typing.Optional[typing.Literal["USER_DEFINED_ERROR"]] = 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.py b/skyvern/client/types/validation_block.py
index 8b9869c65..5d6166633 100644
--- a/skyvern/client/types/validation_block.py
+++ b/skyvern/client/types/validation_block.py
@@ -27,7 +27,6 @@ class ValidationBlock(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -49,7 +48,6 @@ class ValidationBlock(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: 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_yaml.py b/skyvern/client/types/validation_block_yaml.py
index ff9ba78a4..4bdd9434d 100644
--- a/skyvern/client/types/validation_block_yaml.py
+++ b/skyvern/client/types/validation_block_yaml.py
@@ -19,7 +19,6 @@ class ValidationBlockYaml(UniversalBaseModel):
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
complete_criterion: typing.Optional[str] = None
terminate_criterion: typing.Optional[str] = None
diff --git a/skyvern/client/types/wait_block.py b/skyvern/client/types/wait_block.py
index fdc10986d..79947b709 100644
--- a/skyvern/client/types/wait_block.py
+++ b/skyvern/client/types/wait_block.py
@@ -25,7 +25,6 @@ class WaitBlock(UniversalBaseModel):
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
wait_sec: int
parameters: typing.Optional[typing.List[WaitBlockParametersItem]] = None
diff --git a/skyvern/client/types/wait_block_yaml.py b/skyvern/client/types/wait_block_yaml.py
index 299776248..a5354594a 100644
--- a/skyvern/client/types/wait_block_yaml.py
+++ b/skyvern/client/types/wait_block_yaml.py
@@ -19,7 +19,6 @@ class WaitBlockYaml(UniversalBaseModel):
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
wait_sec: typing.Optional[int] = None
diff --git a/skyvern/client/types/while_loop_block.py b/skyvern/client/types/while_loop_block.py
index 597f51bf9..af4f30334 100644
--- a/skyvern/client/types/while_loop_block.py
+++ b/skyvern/client/types/while_loop_block.py
@@ -11,17 +11,6 @@ from .while_loop_block_condition import WhileLoopBlockCondition
class WhileLoopBlock(UniversalBaseModel):
- """
- Loop block driven by a runtime condition. Iterates while ``condition`` evaluates truthy.
-
- Top-of-loop semantics: the condition is evaluated *before* each iteration (including the
- first). If the condition is false on the first check, the body never runs and the block
- returns success with an empty output list.
-
- Safety: the loop is capped at ``DEFAULT_MAX_LOOP_ITERATIONS`` (500). Reaching the cap is
- treated as a failure so that a misbehaving condition can never spin forever.
- """
-
label: str = pydantic.Field()
"""
Author-facing identifier for a block; unique within a workflow.
@@ -36,7 +25,6 @@ class WhileLoopBlock(UniversalBaseModel):
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
loop_blocks: typing.List["WhileLoopBlockLoopBlocksItem"]
condition: WhileLoopBlockCondition
@@ -52,13 +40,6 @@ class WhileLoopBlock(UniversalBaseModel):
from .context_parameter import ContextParameter # noqa: E402, F401, I001
-
-# Manual patch: Fern v4.31.1 emits bottom-cross-imports that deadlock at module
-# load. See for_loop_block.py for the explanation.
-try:
- from .for_loop_block import ForLoopBlock # noqa: E402, F401, I001
- from .while_loop_block_loop_blocks_item import WhileLoopBlockLoopBlocksItem # noqa: E402, F401, I001
-except ImportError:
- pass
+from .while_loop_block_loop_blocks_item import WhileLoopBlockLoopBlocksItem # noqa: E402, F401, I001
update_forward_refs(WhileLoopBlock)
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 59d2a0672..fd62a87e0 100644
--- a/skyvern/client/types/while_loop_block_loop_blocks_item.py
+++ b/skyvern/client/types/while_loop_block_loop_blocks_item.py
@@ -21,9 +21,6 @@ from .file_storage_type import FileStorageType
from .file_type import FileType
from .for_loop_block_data_schema import ForLoopBlockDataSchema
from .for_loop_block_loop_over import ForLoopBlockLoopOver
-from .google_sheets_read_block_parameters_item import GoogleSheetsReadBlockParametersItem
-from .google_sheets_write_block_parameters_item import GoogleSheetsWriteBlockParametersItem
-from .google_sheets_write_block_write_mode import GoogleSheetsWriteBlockWriteMode
from .http_request_block_parameters_item import HttpRequestBlockParametersItem
from .human_interaction_block_data_schema import HumanInteractionBlockDataSchema
from .human_interaction_block_parameters_item import HumanInteractionBlockParametersItem
@@ -54,7 +51,6 @@ class WhileLoopBlockLoopBlocksItem_Action(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -76,7 +72,6 @@ class WhileLoopBlockLoopBlocksItem_Action(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -96,7 +91,6 @@ class WhileLoopBlockLoopBlocksItem_Code(UniversalBaseModel):
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
code: str
parameters: typing.Optional[typing.List[CodeBlockParametersItem]] = None
@@ -119,7 +113,6 @@ class WhileLoopBlockLoopBlocksItem_Conditional(UniversalBaseModel):
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
branch_conditions: typing.Optional[typing.List[BranchCondition]] = None
@@ -141,7 +134,6 @@ class WhileLoopBlockLoopBlocksItem_DownloadToS3(UniversalBaseModel):
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
url: str
@@ -163,7 +155,6 @@ class WhileLoopBlockLoopBlocksItem_Extraction(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -185,7 +176,6 @@ class WhileLoopBlockLoopBlocksItem_Extraction(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -205,7 +195,6 @@ class WhileLoopBlockLoopBlocksItem_FileDownload(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -227,7 +216,6 @@ class WhileLoopBlockLoopBlocksItem_FileDownload(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -247,7 +235,6 @@ class WhileLoopBlockLoopBlocksItem_FileUpload(UniversalBaseModel):
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
storage_type: typing.Optional[FileStorageType] = None
s3bucket: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="s3_bucket")] = None
@@ -277,7 +264,6 @@ class WhileLoopBlockLoopBlocksItem_FileUrlParser(UniversalBaseModel):
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
file_type: typing.Optional[FileType] = None
@@ -301,9 +287,8 @@ class WhileLoopBlockLoopBlocksItem_ForLoop(UniversalBaseModel):
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
- loop_blocks: typing.List["ForLoopBlockLoopBlocksItem"]
+ loop_blocks: typing.List["WhileLoopBlockLoopBlocksItem"]
loop_over: typing.Optional[ForLoopBlockLoopOver] = None
loop_variable_reference: typing.Optional[str] = None
complete_if_empty: typing.Optional[bool] = None
@@ -319,61 +304,7 @@ class WhileLoopBlockLoopBlocksItem_ForLoop(UniversalBaseModel):
extra = pydantic.Extra.allow
-class WhileLoopBlockLoopBlocksItem_GoogleSheetsRead(UniversalBaseModel):
- block_type: typing.Literal["google_sheets_read"] = "google_sheets_read"
- 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
- spreadsheet_url: str
- sheet_name: typing.Optional[str] = None
- range: typing.Optional[str] = None
- credential_id: typing.Optional[str] = None
- has_header_row: typing.Optional[bool] = None
- parameters: typing.Optional[typing.List[GoogleSheetsReadBlockParametersItem]] = 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_GoogleSheetsWrite(UniversalBaseModel):
- block_type: typing.Literal["google_sheets_write"] = "google_sheets_write"
- 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
- spreadsheet_url: str
- sheet_name: typing.Optional[str] = None
- range: typing.Optional[str] = None
- credential_id: typing.Optional[str] = None
- write_mode: typing.Optional[GoogleSheetsWriteBlockWriteMode] = None
- values: typing.Optional[str] = None
- column_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
- create_sheet_if_missing: typing.Optional[bool] = None
- parameters: typing.Optional[typing.List[GoogleSheetsWriteBlockParametersItem]] = 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 .for_loop_block import ForLoopBlock # noqa: E402, F401, I001
class WhileLoopBlockLoopBlocksItem_GotoUrl(UniversalBaseModel):
@@ -384,7 +315,6 @@ class WhileLoopBlockLoopBlocksItem_GotoUrl(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: str
@@ -406,7 +336,6 @@ class WhileLoopBlockLoopBlocksItem_GotoUrl(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -426,7 +355,6 @@ class WhileLoopBlockLoopBlocksItem_HttpRequest(UniversalBaseModel):
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
method: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -457,7 +385,6 @@ class WhileLoopBlockLoopBlocksItem_HumanInteraction(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -479,7 +406,6 @@ class WhileLoopBlockLoopBlocksItem_HumanInteraction(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
instructions: typing.Optional[str] = None
positive_descriptor: typing.Optional[str] = None
negative_descriptor: typing.Optional[str] = None
@@ -507,7 +433,6 @@ class WhileLoopBlockLoopBlocksItem_Login(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -529,7 +454,6 @@ class WhileLoopBlockLoopBlocksItem_Login(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -549,7 +473,6 @@ class WhileLoopBlockLoopBlocksItem_Navigation(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -571,7 +494,6 @@ class WhileLoopBlockLoopBlocksItem_Navigation(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -591,7 +513,6 @@ class WhileLoopBlockLoopBlocksItem_PdfParser(UniversalBaseModel):
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
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
@@ -614,7 +535,6 @@ class WhileLoopBlockLoopBlocksItem_PrintPage(UniversalBaseModel):
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
include_timestamp: typing.Optional[bool] = None
custom_filename: typing.Optional[str] = None
@@ -641,7 +561,6 @@ class WhileLoopBlockLoopBlocksItem_SendEmail(UniversalBaseModel):
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
smtp_host: AwsSecretParameter
smtp_port: AwsSecretParameter
@@ -671,7 +590,6 @@ class WhileLoopBlockLoopBlocksItem_Task(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -693,7 +611,6 @@ class WhileLoopBlockLoopBlocksItem_Task(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -713,7 +630,6 @@ class WhileLoopBlockLoopBlocksItem_TaskV2(UniversalBaseModel):
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
prompt: str
url: typing.Optional[str] = None
@@ -740,7 +656,6 @@ class WhileLoopBlockLoopBlocksItem_TextPrompt(UniversalBaseModel):
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
llm_key: typing.Optional[str] = None
prompt: str
@@ -765,7 +680,6 @@ class WhileLoopBlockLoopBlocksItem_UploadToS3(UniversalBaseModel):
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
path: typing.Optional[str] = None
@@ -787,7 +701,6 @@ class WhileLoopBlockLoopBlocksItem_Validation(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -809,7 +722,6 @@ class WhileLoopBlockLoopBlocksItem_Validation(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -829,7 +741,6 @@ class WhileLoopBlockLoopBlocksItem_Wait(UniversalBaseModel):
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
wait_sec: int
parameters: typing.Optional[typing.List[WaitBlockParametersItem]] = None
@@ -844,18 +755,21 @@ class WhileLoopBlockLoopBlocksItem_Wait(UniversalBaseModel):
extra = pydantic.Extra.allow
-class WhileLoopBlockLoopBlocksItem_WhileLoop(UniversalBaseModel):
- block_type: typing.Literal["while_loop"] = "while_loop"
+class WhileLoopBlockLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):
+ block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"
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
- loop_blocks: typing.List["WhileLoopBlockLoopBlocksItem"]
- condition: WhileLoopBlockCondition
+ workflow_permanent_id: str
+ payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
+ wait_for_completion: typing.Optional[bool] = None
+ browser_session_id: typing.Optional[str] = None
+ use_parent_browser_session: typing.Optional[bool] = None
+ parameters: typing.Optional[typing.List[WorkflowTriggerBlockParametersItem]] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -867,26 +781,17 @@ class WhileLoopBlockLoopBlocksItem_WhileLoop(UniversalBaseModel):
extra = pydantic.Extra.allow
-from .for_loop_block import ForLoopBlock # noqa: E402, F401, I001
-from .while_loop_block import WhileLoopBlock # noqa: E402, F401, I001
-
-
-class WhileLoopBlockLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):
- block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"
+class WhileLoopBlockLoopBlocksItem_WhileLoop(UniversalBaseModel):
+ block_type: typing.Literal["while_loop"] = "while_loop"
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
- workflow_permanent_id: str
- payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- wait_for_completion: typing.Optional[bool] = None
- browser_session_id: typing.Optional[str] = None
- use_parent_browser_session: typing.Optional[bool] = None
- parameters: typing.Optional[typing.List[WorkflowTriggerBlockParametersItem]] = None
+ loop_blocks: typing.List["WhileLoopBlockLoopBlocksItem"]
+ condition: WhileLoopBlockCondition
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -910,8 +815,6 @@ WhileLoopBlockLoopBlocksItem = typing.Union[
WhileLoopBlockLoopBlocksItem_FileUpload,
WhileLoopBlockLoopBlocksItem_FileUrlParser,
WhileLoopBlockLoopBlocksItem_ForLoop,
- WhileLoopBlockLoopBlocksItem_GoogleSheetsRead,
- WhileLoopBlockLoopBlocksItem_GoogleSheetsWrite,
WhileLoopBlockLoopBlocksItem_GotoUrl,
WhileLoopBlockLoopBlocksItem_HttpRequest,
WhileLoopBlockLoopBlocksItem_HumanInteraction,
@@ -929,64 +832,20 @@ WhileLoopBlockLoopBlocksItem = typing.Union[
WhileLoopBlockLoopBlocksItem_WhileLoop,
WhileLoopBlockLoopBlocksItem_WorkflowTrigger,
]
-# Manual patch: see for_loop_block.py header note.
-try:
- from .for_loop_block_loop_blocks_item import ForLoopBlockLoopBlocksItem # noqa: E402, F401, I001
-except ImportError:
- pass
-else:
- for _cls in (
- WhileLoopBlockLoopBlocksItem_Action,
- WhileLoopBlockLoopBlocksItem_Code,
- WhileLoopBlockLoopBlocksItem_Extraction,
- WhileLoopBlockLoopBlocksItem_FileDownload,
- WhileLoopBlockLoopBlocksItem_ForLoop,
- WhileLoopBlockLoopBlocksItem_GoogleSheetsRead,
- WhileLoopBlockLoopBlocksItem_GoogleSheetsWrite,
- WhileLoopBlockLoopBlocksItem_GotoUrl,
- WhileLoopBlockLoopBlocksItem_HttpRequest,
- WhileLoopBlockLoopBlocksItem_HumanInteraction,
- WhileLoopBlockLoopBlocksItem_Login,
- WhileLoopBlockLoopBlocksItem_Navigation,
- WhileLoopBlockLoopBlocksItem_PrintPage,
- WhileLoopBlockLoopBlocksItem_Task,
- WhileLoopBlockLoopBlocksItem_TextPrompt,
- WhileLoopBlockLoopBlocksItem_Validation,
- WhileLoopBlockLoopBlocksItem_Wait,
- WhileLoopBlockLoopBlocksItem_WhileLoop,
- WhileLoopBlockLoopBlocksItem_WorkflowTrigger,
- ):
- update_forward_refs(_cls)
- # Back-resolve everything that couldn't resolve mid-chain.
- from . import for_loop_block_loop_blocks_item as _fllb
- _fllb.WhileLoopBlockLoopBlocksItem = WhileLoopBlockLoopBlocksItem # type: ignore[attr-defined]
- for _cls in (
- _fllb.ForLoopBlockLoopBlocksItem_Action,
- _fllb.ForLoopBlockLoopBlocksItem_Code,
- _fllb.ForLoopBlockLoopBlocksItem_Extraction,
- _fllb.ForLoopBlockLoopBlocksItem_FileDownload,
- _fllb.ForLoopBlockLoopBlocksItem_ForLoop,
- _fllb.ForLoopBlockLoopBlocksItem_GoogleSheetsRead,
- _fllb.ForLoopBlockLoopBlocksItem_GoogleSheetsWrite,
- _fllb.ForLoopBlockLoopBlocksItem_GotoUrl,
- _fllb.ForLoopBlockLoopBlocksItem_HttpRequest,
- _fllb.ForLoopBlockLoopBlocksItem_HumanInteraction,
- _fllb.ForLoopBlockLoopBlocksItem_Login,
- _fllb.ForLoopBlockLoopBlocksItem_Navigation,
- _fllb.ForLoopBlockLoopBlocksItem_PrintPage,
- _fllb.ForLoopBlockLoopBlocksItem_Task,
- _fllb.ForLoopBlockLoopBlocksItem_TextPrompt,
- _fllb.ForLoopBlockLoopBlocksItem_Validation,
- _fllb.ForLoopBlockLoopBlocksItem_Wait,
- _fllb.ForLoopBlockLoopBlocksItem_WhileLoop,
- _fllb.ForLoopBlockLoopBlocksItem_WorkflowTrigger,
- ):
- update_forward_refs(_cls)
- from . import for_loop_block as _flb
- _flb.ForLoopBlockLoopBlocksItem = ForLoopBlockLoopBlocksItem # type: ignore[attr-defined]
- _flb.WhileLoopBlockLoopBlocksItem = WhileLoopBlockLoopBlocksItem # type: ignore[attr-defined]
- update_forward_refs(_flb.ForLoopBlock)
- from . import while_loop_block as _wlb
- _wlb.ForLoopBlockLoopBlocksItem = ForLoopBlockLoopBlocksItem # type: ignore[attr-defined]
- _wlb.WhileLoopBlockLoopBlocksItem = WhileLoopBlockLoopBlocksItem # type: ignore[attr-defined]
- update_forward_refs(_wlb.WhileLoopBlock)
+update_forward_refs(WhileLoopBlockLoopBlocksItem_Action)
+update_forward_refs(WhileLoopBlockLoopBlocksItem_Code)
+update_forward_refs(WhileLoopBlockLoopBlocksItem_Extraction)
+update_forward_refs(WhileLoopBlockLoopBlocksItem_FileDownload)
+update_forward_refs(WhileLoopBlockLoopBlocksItem_ForLoop)
+update_forward_refs(WhileLoopBlockLoopBlocksItem_GotoUrl)
+update_forward_refs(WhileLoopBlockLoopBlocksItem_HttpRequest)
+update_forward_refs(WhileLoopBlockLoopBlocksItem_HumanInteraction)
+update_forward_refs(WhileLoopBlockLoopBlocksItem_Login)
+update_forward_refs(WhileLoopBlockLoopBlocksItem_Navigation)
+update_forward_refs(WhileLoopBlockLoopBlocksItem_PrintPage)
+update_forward_refs(WhileLoopBlockLoopBlocksItem_Task)
+update_forward_refs(WhileLoopBlockLoopBlocksItem_TextPrompt)
+update_forward_refs(WhileLoopBlockLoopBlocksItem_Validation)
+update_forward_refs(WhileLoopBlockLoopBlocksItem_Wait)
+update_forward_refs(WhileLoopBlockLoopBlocksItem_WhileLoop)
+update_forward_refs(WhileLoopBlockLoopBlocksItem_WorkflowTrigger)
diff --git a/skyvern/client/types/while_loop_block_yaml.py b/skyvern/client/types/while_loop_block_yaml.py
index a58e8eeab..76fcb45ee 100644
--- a/skyvern/client/types/while_loop_block_yaml.py
+++ b/skyvern/client/types/while_loop_block_yaml.py
@@ -22,7 +22,6 @@ class WhileLoopBlockYaml(UniversalBaseModel):
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
loop_blocks: typing.List["WhileLoopBlockYamlLoopBlocksItem"]
condition: BranchCriteriaYaml
@@ -37,12 +36,6 @@ class WhileLoopBlockYaml(UniversalBaseModel):
extra = pydantic.Extra.allow
-# Manual patch: Fern v4.31.1 emits bottom-cross-imports that deadlock at module
-# load. See for_loop_block.py for the explanation.
-try:
- from .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001
- from .while_loop_block_yaml_loop_blocks_item import WhileLoopBlockYamlLoopBlocksItem # noqa: E402, F401, I001
-except ImportError:
- pass
+from .while_loop_block_yaml_loop_blocks_item import WhileLoopBlockYamlLoopBlocksItem # noqa: E402, F401, I001
update_forward_refs(WhileLoopBlockYaml)
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 0c4480b18..c604507f9 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
@@ -14,7 +14,6 @@ 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_format import PdfFormat
from .run_engine import RunEngine
from .task_block_yaml_data_schema import TaskBlockYamlDataSchema
@@ -26,7 +25,6 @@ class WhileLoopBlockYamlLoopBlocksItem_Task(UniversalBaseModel):
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
url: typing.Optional[str] = None
title: typing.Optional[str] = None
@@ -64,9 +62,8 @@ class WhileLoopBlockYamlLoopBlocksItem_ForLoop(UniversalBaseModel):
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
- loop_blocks: typing.List["ForLoopBlockYamlLoopBlocksItem"]
+ loop_blocks: typing.List["WhileLoopBlockYamlLoopBlocksItem"]
loop_over_parameter_key: typing.Optional[str] = None
loop_variable_reference: typing.Optional[str] = None
complete_if_empty: typing.Optional[bool] = None
@@ -82,29 +79,7 @@ class WhileLoopBlockYamlLoopBlocksItem_ForLoop(UniversalBaseModel):
extra = pydantic.Extra.allow
-class WhileLoopBlockYamlLoopBlocksItem_WhileLoop(UniversalBaseModel):
- block_type: typing.Literal["while_loop"] = "while_loop"
- 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
- loop_blocks: typing.List["WhileLoopBlockYamlLoopBlocksItem"]
- condition: BranchCriteriaYaml
-
- 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 .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001
-from .while_loop_block_yaml import WhileLoopBlockYaml # noqa: E402, F401, I001
class WhileLoopBlockYamlLoopBlocksItem_Code(UniversalBaseModel):
@@ -113,7 +88,6 @@ class WhileLoopBlockYamlLoopBlocksItem_Code(UniversalBaseModel):
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
code: str
parameter_keys: typing.Optional[typing.List[str]] = None
@@ -134,7 +108,6 @@ class WhileLoopBlockYamlLoopBlocksItem_TextPrompt(UniversalBaseModel):
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
llm_key: typing.Optional[str] = None
prompt: str
@@ -157,7 +130,6 @@ class WhileLoopBlockYamlLoopBlocksItem_DownloadToS3(UniversalBaseModel):
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
url: str
@@ -177,7 +149,6 @@ class WhileLoopBlockYamlLoopBlocksItem_UploadToS3(UniversalBaseModel):
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
path: typing.Optional[str] = None
@@ -197,7 +168,6 @@ class WhileLoopBlockYamlLoopBlocksItem_FileUpload(UniversalBaseModel):
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
storage_type: typing.Optional[FileStorageType] = None
s3bucket: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="s3_bucket")] = None
@@ -226,7 +196,6 @@ class WhileLoopBlockYamlLoopBlocksItem_SendEmail(UniversalBaseModel):
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
smtp_host_secret_parameter_key: str
smtp_port_secret_parameter_key: str
@@ -254,7 +223,6 @@ class WhileLoopBlockYamlLoopBlocksItem_FileUrlParser(UniversalBaseModel):
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
file_type: typing.Optional[FileType] = None
@@ -276,7 +244,6 @@ class WhileLoopBlockYamlLoopBlocksItem_Validation(UniversalBaseModel):
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
complete_criterion: typing.Optional[str] = None
terminate_criterion: typing.Optional[str] = None
@@ -300,7 +267,6 @@ class WhileLoopBlockYamlLoopBlocksItem_Action(UniversalBaseModel):
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
url: typing.Optional[str] = None
title: typing.Optional[str] = None
@@ -331,7 +297,6 @@ class WhileLoopBlockYamlLoopBlocksItem_Navigation(UniversalBaseModel):
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
navigation_goal: str
url: typing.Optional[str] = None
@@ -367,7 +332,6 @@ class WhileLoopBlockYamlLoopBlocksItem_Extraction(UniversalBaseModel):
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
data_extraction_goal: str
url: typing.Optional[str] = None
@@ -395,7 +359,6 @@ class WhileLoopBlockYamlLoopBlocksItem_Login(UniversalBaseModel):
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
url: typing.Optional[str] = None
title: typing.Optional[str] = None
@@ -428,7 +391,6 @@ class WhileLoopBlockYamlLoopBlocksItem_Wait(UniversalBaseModel):
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
wait_sec: typing.Optional[int] = None
@@ -448,7 +410,6 @@ class WhileLoopBlockYamlLoopBlocksItem_HumanInteraction(UniversalBaseModel):
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
instructions: typing.Optional[str] = None
positive_descriptor: typing.Optional[str] = None
@@ -475,7 +436,6 @@ class WhileLoopBlockYamlLoopBlocksItem_FileDownload(UniversalBaseModel):
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
navigation_goal: str
url: typing.Optional[str] = None
@@ -507,7 +467,6 @@ class WhileLoopBlockYamlLoopBlocksItem_GotoUrl(UniversalBaseModel):
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
url: str
@@ -527,7 +486,6 @@ class WhileLoopBlockYamlLoopBlocksItem_PdfParser(UniversalBaseModel):
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
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
@@ -548,7 +506,6 @@ class WhileLoopBlockYamlLoopBlocksItem_TaskV2(UniversalBaseModel):
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
prompt: str
url: typing.Optional[str] = None
@@ -574,7 +531,6 @@ class WhileLoopBlockYamlLoopBlocksItem_HttpRequest(UniversalBaseModel):
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
method: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -603,7 +559,6 @@ class WhileLoopBlockYamlLoopBlocksItem_Conditional(UniversalBaseModel):
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
branch_conditions: typing.Optional[typing.List[BranchConditionYaml]] = None
@@ -623,7 +578,6 @@ class WhileLoopBlockYamlLoopBlocksItem_PrintPage(UniversalBaseModel):
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
include_timestamp: typing.Optional[bool] = None
custom_filename: typing.Optional[str] = None
@@ -648,7 +602,6 @@ class WhileLoopBlockYamlLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):
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
workflow_permanent_id: str
payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
@@ -667,48 +620,15 @@ class WhileLoopBlockYamlLoopBlocksItem_WorkflowTrigger(UniversalBaseModel):
extra = pydantic.Extra.allow
-class WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsRead(UniversalBaseModel):
- block_type: typing.Literal["google_sheets_read"] = "google_sheets_read"
- 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
- spreadsheet_url: str
- sheet_name: typing.Optional[str] = None
- range: typing.Optional[str] = None
- credential_id: typing.Optional[str] = None
- has_header_row: 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"
+class WhileLoopBlockYamlLoopBlocksItem_WhileLoop(UniversalBaseModel):
+ block_type: typing.Literal["while_loop"] = "while_loop"
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
- spreadsheet_url: str
- sheet_name: typing.Optional[str] = None
- range: typing.Optional[str] = None
- credential_id: typing.Optional[str] = None
- write_mode: typing.Optional[GoogleSheetsWriteBlockYamlWriteMode] = None
- values: typing.Optional[str] = None
- column_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
- create_sheet_if_missing: typing.Optional[bool] = None
- parameter_keys: typing.Optional[typing.List[str]] = None
+ loop_blocks: typing.List["WhileLoopBlockYamlLoopBlocksItem"]
+ condition: BranchCriteriaYaml
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -723,7 +643,6 @@ class WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite(UniversalBaseModel):
WhileLoopBlockYamlLoopBlocksItem = typing.Union[
WhileLoopBlockYamlLoopBlocksItem_Task,
WhileLoopBlockYamlLoopBlocksItem_ForLoop,
- WhileLoopBlockYamlLoopBlocksItem_WhileLoop,
WhileLoopBlockYamlLoopBlocksItem_Code,
WhileLoopBlockYamlLoopBlocksItem_TextPrompt,
WhileLoopBlockYamlLoopBlocksItem_DownloadToS3,
@@ -745,27 +664,8 @@ WhileLoopBlockYamlLoopBlocksItem = typing.Union[
WhileLoopBlockYamlLoopBlocksItem_HttpRequest,
WhileLoopBlockYamlLoopBlocksItem_Conditional,
WhileLoopBlockYamlLoopBlocksItem_PrintPage,
+ WhileLoopBlockYamlLoopBlocksItem_WhileLoop,
WhileLoopBlockYamlLoopBlocksItem_WorkflowTrigger,
- WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsRead,
- WhileLoopBlockYamlLoopBlocksItem_GoogleSheetsWrite,
]
-# Manual patch: see for_loop_block.py header note.
-try:
- from .for_loop_block_yaml_loop_blocks_item import ForLoopBlockYamlLoopBlocksItem # noqa: E402, F401, I001
-except ImportError:
- pass
-else:
- update_forward_refs(WhileLoopBlockYamlLoopBlocksItem_ForLoop)
- update_forward_refs(WhileLoopBlockYamlLoopBlocksItem_WhileLoop)
- from . import for_loop_block_yaml_loop_blocks_item as _flylb
- _flylb.WhileLoopBlockYamlLoopBlocksItem = WhileLoopBlockYamlLoopBlocksItem # type: ignore[attr-defined]
- update_forward_refs(_flylb.ForLoopBlockYamlLoopBlocksItem_ForLoop)
- update_forward_refs(_flylb.ForLoopBlockYamlLoopBlocksItem_WhileLoop)
- from . import for_loop_block_yaml as _flby
- _flby.ForLoopBlockYamlLoopBlocksItem = ForLoopBlockYamlLoopBlocksItem # type: ignore[attr-defined]
- _flby.WhileLoopBlockYamlLoopBlocksItem = WhileLoopBlockYamlLoopBlocksItem # type: ignore[attr-defined]
- update_forward_refs(_flby.ForLoopBlockYaml)
- from . import while_loop_block_yaml as _wlby
- _wlby.ForLoopBlockYamlLoopBlocksItem = ForLoopBlockYamlLoopBlocksItem # type: ignore[attr-defined]
- _wlby.WhileLoopBlockYamlLoopBlocksItem = WhileLoopBlockYamlLoopBlocksItem # type: ignore[attr-defined]
- update_forward_refs(_wlby.WhileLoopBlockYaml)
+update_forward_refs(WhileLoopBlockYamlLoopBlocksItem_ForLoop)
+update_forward_refs(WhileLoopBlockYamlLoopBlocksItem_WhileLoop)
diff --git a/skyvern/client/types/workflow.py b/skyvern/client/types/workflow.py
index 99bec408d..9b4af933e 100644
--- a/skyvern/client/types/workflow.py
+++ b/skyvern/client/types/workflow.py
@@ -27,13 +27,10 @@ class Workflow(UniversalBaseModel):
totp_verification_url: typing.Optional[str] = None
totp_identifier: typing.Optional[str] = None
persist_browser_session: typing.Optional[bool] = None
- browser_profile_id: 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
- max_elapsed_time_minutes: typing.Optional[int] = None
extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
- cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
run_with: typing.Optional[str] = None
ai_fallback: typing.Optional[bool] = None
cache_key: typing.Optional[str] = None
@@ -44,8 +41,6 @@ class Workflow(UniversalBaseModel):
sequential_key: typing.Optional[str] = None
folder_id: typing.Optional[str] = None
import_error: typing.Optional[str] = None
- created_by: typing.Optional[str] = None
- edited_by: typing.Optional[str] = None
created_at: dt.datetime
modified_at: dt.datetime
deleted_at: typing.Optional[dt.datetime] = None
@@ -62,6 +57,5 @@ class Workflow(UniversalBaseModel):
from .context_parameter import ContextParameter # noqa: E402, F401, I001
from .for_loop_block import ForLoopBlock # noqa: E402, F401, I001
-from .while_loop_block import WhileLoopBlock # noqa: E402, F401, I001
update_forward_refs(Workflow)
diff --git a/skyvern/client/types/workflow_create_yaml_request.py b/skyvern/client/types/workflow_create_yaml_request.py
index d97f912a1..e30c75e13 100644
--- a/skyvern/client/types/workflow_create_yaml_request.py
+++ b/skyvern/client/types/workflow_create_yaml_request.py
@@ -19,14 +19,11 @@ class WorkflowCreateYamlRequest(UniversalBaseModel):
totp_verification_url: typing.Optional[str] = None
totp_identifier: typing.Optional[str] = None
persist_browser_session: typing.Optional[bool] = None
- browser_profile_id: 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
max_screenshot_scrolls: typing.Optional[int] = None
- max_elapsed_time_minutes: typing.Optional[int] = None
extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
- cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
status: typing.Optional[WorkflowStatus] = None
run_with: typing.Optional[str] = None
ai_fallback: typing.Optional[bool] = None
@@ -49,6 +46,5 @@ class WorkflowCreateYamlRequest(UniversalBaseModel):
from .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001
-from .while_loop_block_yaml import WhileLoopBlockYaml # noqa: E402, F401, I001
update_forward_refs(WorkflowCreateYamlRequest)
diff --git a/skyvern/client/types/workflow_definition.py b/skyvern/client/types/workflow_definition.py
index 72c4bdde4..55d611f8e 100644
--- a/skyvern/client/types/workflow_definition.py
+++ b/skyvern/client/types/workflow_definition.py
@@ -15,8 +15,6 @@ class WorkflowDefinition(UniversalBaseModel):
parameters: typing.List[WorkflowDefinitionParametersItem]
blocks: typing.List[WorkflowDefinitionBlocksItem]
finally_block_label: typing.Optional[str] = None
- error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
- workflow_system_prompt: typing.Optional[str] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -30,6 +28,5 @@ class WorkflowDefinition(UniversalBaseModel):
from .context_parameter import ContextParameter # noqa: E402, F401, I001
from .for_loop_block import ForLoopBlock # noqa: E402, F401, I001
-from .while_loop_block import WhileLoopBlock # noqa: E402, F401, I001
update_forward_refs(WorkflowDefinition)
diff --git a/skyvern/client/types/workflow_definition_blocks_item.py b/skyvern/client/types/workflow_definition_blocks_item.py
index f36781f02..b7f8a85b0 100644
--- a/skyvern/client/types/workflow_definition_blocks_item.py
+++ b/skyvern/client/types/workflow_definition_blocks_item.py
@@ -21,9 +21,6 @@ from .file_storage_type import FileStorageType
from .file_type import FileType
from .for_loop_block_data_schema import ForLoopBlockDataSchema
from .for_loop_block_loop_over import ForLoopBlockLoopOver
-from .google_sheets_read_block_parameters_item import GoogleSheetsReadBlockParametersItem
-from .google_sheets_write_block_parameters_item import GoogleSheetsWriteBlockParametersItem
-from .google_sheets_write_block_write_mode import GoogleSheetsWriteBlockWriteMode
from .http_request_block_parameters_item import HttpRequestBlockParametersItem
from .human_interaction_block_data_schema import HumanInteractionBlockDataSchema
from .human_interaction_block_parameters_item import HumanInteractionBlockParametersItem
@@ -54,7 +51,6 @@ class WorkflowDefinitionBlocksItem_Action(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -76,7 +72,6 @@ class WorkflowDefinitionBlocksItem_Action(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -96,7 +91,6 @@ class WorkflowDefinitionBlocksItem_Code(UniversalBaseModel):
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
code: str
parameters: typing.Optional[typing.List[CodeBlockParametersItem]] = None
@@ -119,7 +113,6 @@ class WorkflowDefinitionBlocksItem_Conditional(UniversalBaseModel):
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
branch_conditions: typing.Optional[typing.List[BranchCondition]] = None
@@ -141,7 +134,6 @@ class WorkflowDefinitionBlocksItem_DownloadToS3(UniversalBaseModel):
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
url: str
@@ -163,7 +155,6 @@ class WorkflowDefinitionBlocksItem_Extraction(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -185,7 +176,6 @@ class WorkflowDefinitionBlocksItem_Extraction(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -205,7 +195,6 @@ class WorkflowDefinitionBlocksItem_FileDownload(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -227,7 +216,6 @@ class WorkflowDefinitionBlocksItem_FileDownload(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -247,7 +235,6 @@ class WorkflowDefinitionBlocksItem_FileUpload(UniversalBaseModel):
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
storage_type: typing.Optional[FileStorageType] = None
s3bucket: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="s3_bucket")] = None
@@ -277,7 +264,6 @@ class WorkflowDefinitionBlocksItem_FileUrlParser(UniversalBaseModel):
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
file_type: typing.Optional[FileType] = None
@@ -301,7 +287,6 @@ class WorkflowDefinitionBlocksItem_ForLoop(UniversalBaseModel):
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
loop_blocks: typing.List["ForLoopBlockLoopBlocksItem"]
loop_over: typing.Optional[ForLoopBlockLoopOver] = None
@@ -319,66 +304,10 @@ class WorkflowDefinitionBlocksItem_ForLoop(UniversalBaseModel):
extra = pydantic.Extra.allow
+from .for_loop_block import ForLoopBlock # noqa: E402, F401, I001
from .for_loop_block_loop_blocks_item import ForLoopBlockLoopBlocksItem # noqa: E402, F401, I001
-class WorkflowDefinitionBlocksItem_GoogleSheetsRead(UniversalBaseModel):
- block_type: typing.Literal["google_sheets_read"] = "google_sheets_read"
- 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
- spreadsheet_url: str
- sheet_name: typing.Optional[str] = None
- range: typing.Optional[str] = None
- credential_id: typing.Optional[str] = None
- has_header_row: typing.Optional[bool] = None
- parameters: typing.Optional[typing.List[GoogleSheetsReadBlockParametersItem]] = 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_GoogleSheetsWrite(UniversalBaseModel):
- block_type: typing.Literal["google_sheets_write"] = "google_sheets_write"
- 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
- spreadsheet_url: str
- sheet_name: typing.Optional[str] = None
- range: typing.Optional[str] = None
- credential_id: typing.Optional[str] = None
- write_mode: typing.Optional[GoogleSheetsWriteBlockWriteMode] = None
- values: typing.Optional[str] = None
- column_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
- create_sheet_if_missing: typing.Optional[bool] = None
- parameters: typing.Optional[typing.List[GoogleSheetsWriteBlockParametersItem]] = 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_GotoUrl(UniversalBaseModel):
block_type: typing.Literal["goto_url"] = "goto_url"
label: str
@@ -387,7 +316,6 @@ class WorkflowDefinitionBlocksItem_GotoUrl(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: str
@@ -409,7 +337,6 @@ class WorkflowDefinitionBlocksItem_GotoUrl(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -429,7 +356,6 @@ class WorkflowDefinitionBlocksItem_HttpRequest(UniversalBaseModel):
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
method: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -460,7 +386,6 @@ class WorkflowDefinitionBlocksItem_HumanInteraction(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -482,7 +407,6 @@ class WorkflowDefinitionBlocksItem_HumanInteraction(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
instructions: typing.Optional[str] = None
positive_descriptor: typing.Optional[str] = None
negative_descriptor: typing.Optional[str] = None
@@ -510,7 +434,6 @@ class WorkflowDefinitionBlocksItem_Login(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -532,7 +455,6 @@ class WorkflowDefinitionBlocksItem_Login(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -552,7 +474,6 @@ class WorkflowDefinitionBlocksItem_Navigation(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -574,7 +495,6 @@ class WorkflowDefinitionBlocksItem_Navigation(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -594,7 +514,6 @@ class WorkflowDefinitionBlocksItem_PdfParser(UniversalBaseModel):
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
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
@@ -617,7 +536,6 @@ class WorkflowDefinitionBlocksItem_PrintPage(UniversalBaseModel):
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
include_timestamp: typing.Optional[bool] = None
custom_filename: typing.Optional[str] = None
@@ -644,7 +562,6 @@ class WorkflowDefinitionBlocksItem_SendEmail(UniversalBaseModel):
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
smtp_host: AwsSecretParameter
smtp_port: AwsSecretParameter
@@ -674,7 +591,6 @@ class WorkflowDefinitionBlocksItem_Task(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -696,7 +612,6 @@ class WorkflowDefinitionBlocksItem_Task(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -716,7 +631,6 @@ class WorkflowDefinitionBlocksItem_TaskV2(UniversalBaseModel):
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
prompt: str
url: typing.Optional[str] = None
@@ -743,7 +657,6 @@ class WorkflowDefinitionBlocksItem_TextPrompt(UniversalBaseModel):
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
llm_key: typing.Optional[str] = None
prompt: str
@@ -768,7 +681,6 @@ class WorkflowDefinitionBlocksItem_UploadToS3(UniversalBaseModel):
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
path: typing.Optional[str] = None
@@ -790,7 +702,6 @@ class WorkflowDefinitionBlocksItem_Validation(UniversalBaseModel):
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
task_type: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -812,7 +723,6 @@ class WorkflowDefinitionBlocksItem_Validation(UniversalBaseModel):
complete_verification: typing.Optional[bool] = None
include_action_history_in_verification: typing.Optional[bool] = None
download_timeout: typing.Optional[float] = None
- include_extracted_text: typing.Optional[bool] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -832,7 +742,6 @@ class WorkflowDefinitionBlocksItem_Wait(UniversalBaseModel):
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
wait_sec: int
parameters: typing.Optional[typing.List[WaitBlockParametersItem]] = None
@@ -847,18 +756,21 @@ class WorkflowDefinitionBlocksItem_Wait(UniversalBaseModel):
extra = pydantic.Extra.allow
-class WorkflowDefinitionBlocksItem_WhileLoop(UniversalBaseModel):
- block_type: typing.Literal["while_loop"] = "while_loop"
+class WorkflowDefinitionBlocksItem_WorkflowTrigger(UniversalBaseModel):
+ block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"
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
- loop_blocks: typing.List["WhileLoopBlockLoopBlocksItem"]
- condition: WhileLoopBlockCondition
+ workflow_permanent_id: str
+ payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
+ wait_for_completion: typing.Optional[bool] = None
+ browser_session_id: typing.Optional[str] = None
+ use_parent_browser_session: typing.Optional[bool] = None
+ parameters: typing.Optional[typing.List[WorkflowTriggerBlockParametersItem]] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -870,27 +782,17 @@ class WorkflowDefinitionBlocksItem_WhileLoop(UniversalBaseModel):
extra = pydantic.Extra.allow
-from .for_loop_block import ForLoopBlock # noqa: E402, F401, I001
-from .while_loop_block import WhileLoopBlock # noqa: E402, F401, I001
-from .while_loop_block_loop_blocks_item import WhileLoopBlockLoopBlocksItem # noqa: E402, F401, I001
-
-
-class WorkflowDefinitionBlocksItem_WorkflowTrigger(UniversalBaseModel):
- block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"
+class WorkflowDefinitionBlocksItem_WhileLoop(UniversalBaseModel):
+ block_type: typing.Literal["while_loop"] = "while_loop"
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
- workflow_permanent_id: str
- payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- wait_for_completion: typing.Optional[bool] = None
- browser_session_id: typing.Optional[str] = None
- use_parent_browser_session: typing.Optional[bool] = None
- parameters: typing.Optional[typing.List[WorkflowTriggerBlockParametersItem]] = None
+ loop_blocks: typing.List["WorkflowDefinitionBlocksItem"]
+ condition: WhileLoopBlockCondition
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -914,8 +816,6 @@ WorkflowDefinitionBlocksItem = typing.Union[
WorkflowDefinitionBlocksItem_FileUpload,
WorkflowDefinitionBlocksItem_FileUrlParser,
WorkflowDefinitionBlocksItem_ForLoop,
- WorkflowDefinitionBlocksItem_GoogleSheetsRead,
- WorkflowDefinitionBlocksItem_GoogleSheetsWrite,
WorkflowDefinitionBlocksItem_GotoUrl,
WorkflowDefinitionBlocksItem_HttpRequest,
WorkflowDefinitionBlocksItem_HumanInteraction,
@@ -938,8 +838,6 @@ update_forward_refs(WorkflowDefinitionBlocksItem_Code)
update_forward_refs(WorkflowDefinitionBlocksItem_Extraction)
update_forward_refs(WorkflowDefinitionBlocksItem_FileDownload)
update_forward_refs(WorkflowDefinitionBlocksItem_ForLoop)
-update_forward_refs(WorkflowDefinitionBlocksItem_GoogleSheetsRead)
-update_forward_refs(WorkflowDefinitionBlocksItem_GoogleSheetsWrite)
update_forward_refs(WorkflowDefinitionBlocksItem_GotoUrl)
update_forward_refs(WorkflowDefinitionBlocksItem_HttpRequest)
update_forward_refs(WorkflowDefinitionBlocksItem_HumanInteraction)
diff --git a/skyvern/client/types/workflow_definition_yaml.py b/skyvern/client/types/workflow_definition_yaml.py
index be5309f08..b59071b12 100644
--- a/skyvern/client/types/workflow_definition_yaml.py
+++ b/skyvern/client/types/workflow_definition_yaml.py
@@ -15,8 +15,6 @@ class WorkflowDefinitionYaml(UniversalBaseModel):
parameters: typing.List[WorkflowDefinitionYamlParametersItem]
blocks: typing.List[WorkflowDefinitionYamlBlocksItem]
finally_block_label: typing.Optional[str] = None
- error_code_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
- workflow_system_prompt: typing.Optional[str] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -29,6 +27,5 @@ class WorkflowDefinitionYaml(UniversalBaseModel):
from .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001
-from .while_loop_block_yaml import WhileLoopBlockYaml # noqa: E402, F401, I001
update_forward_refs(WorkflowDefinitionYaml)
diff --git a/skyvern/client/types/workflow_definition_yaml_blocks_item.py b/skyvern/client/types/workflow_definition_yaml_blocks_item.py
index 5c0b65fd4..e43eee71b 100644
--- a/skyvern/client/types/workflow_definition_yaml_blocks_item.py
+++ b/skyvern/client/types/workflow_definition_yaml_blocks_item.py
@@ -14,7 +14,6 @@ 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_format import PdfFormat
from .run_engine import RunEngine
from .task_block_yaml_data_schema import TaskBlockYamlDataSchema
@@ -26,7 +25,6 @@ class WorkflowDefinitionYamlBlocksItem_Action(UniversalBaseModel):
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
url: typing.Optional[str] = None
title: typing.Optional[str] = None
@@ -57,7 +55,6 @@ class WorkflowDefinitionYamlBlocksItem_Code(UniversalBaseModel):
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
code: str
parameter_keys: typing.Optional[typing.List[str]] = None
@@ -78,7 +75,6 @@ class WorkflowDefinitionYamlBlocksItem_Conditional(UniversalBaseModel):
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
branch_conditions: typing.Optional[typing.List[BranchConditionYaml]] = None
@@ -98,7 +94,6 @@ class WorkflowDefinitionYamlBlocksItem_DownloadToS3(UniversalBaseModel):
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
url: str
@@ -118,7 +113,6 @@ class WorkflowDefinitionYamlBlocksItem_Extraction(UniversalBaseModel):
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
data_extraction_goal: str
url: typing.Optional[str] = None
@@ -146,7 +140,6 @@ class WorkflowDefinitionYamlBlocksItem_FileDownload(UniversalBaseModel):
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
navigation_goal: str
url: typing.Optional[str] = None
@@ -178,7 +171,6 @@ class WorkflowDefinitionYamlBlocksItem_FileUpload(UniversalBaseModel):
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
storage_type: typing.Optional[FileStorageType] = None
s3bucket: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="s3_bucket")] = None
@@ -207,7 +199,6 @@ class WorkflowDefinitionYamlBlocksItem_FileUrlParser(UniversalBaseModel):
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
file_type: typing.Optional[FileType] = None
@@ -229,7 +220,6 @@ class WorkflowDefinitionYamlBlocksItem_ForLoop(UniversalBaseModel):
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
loop_blocks: typing.List["ForLoopBlockYamlLoopBlocksItem"]
loop_over_parameter_key: typing.Optional[str] = None
@@ -247,69 +237,16 @@ class WorkflowDefinitionYamlBlocksItem_ForLoop(UniversalBaseModel):
extra = pydantic.Extra.allow
+from .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001
from .for_loop_block_yaml_loop_blocks_item import ForLoopBlockYamlLoopBlocksItem # noqa: E402, F401, I001
-class WorkflowDefinitionYamlBlocksItem_GoogleSheetsRead(UniversalBaseModel):
- block_type: typing.Literal["google_sheets_read"] = "google_sheets_read"
- 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
- spreadsheet_url: str
- sheet_name: typing.Optional[str] = None
- range: typing.Optional[str] = None
- credential_id: typing.Optional[str] = None
- has_header_row: 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_GoogleSheetsWrite(UniversalBaseModel):
- block_type: typing.Literal["google_sheets_write"] = "google_sheets_write"
- 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
- spreadsheet_url: str
- sheet_name: typing.Optional[str] = None
- range: typing.Optional[str] = None
- credential_id: typing.Optional[str] = None
- write_mode: typing.Optional[GoogleSheetsWriteBlockYamlWriteMode] = None
- values: typing.Optional[str] = None
- column_mapping: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
- create_sheet_if_missing: 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_GotoUrl(UniversalBaseModel):
block_type: typing.Literal["goto_url"] = "goto_url"
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
url: str
@@ -329,7 +266,6 @@ class WorkflowDefinitionYamlBlocksItem_HttpRequest(UniversalBaseModel):
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
method: typing.Optional[str] = None
url: typing.Optional[str] = None
@@ -358,7 +294,6 @@ class WorkflowDefinitionYamlBlocksItem_HumanInteraction(UniversalBaseModel):
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
instructions: typing.Optional[str] = None
positive_descriptor: typing.Optional[str] = None
@@ -385,7 +320,6 @@ class WorkflowDefinitionYamlBlocksItem_Login(UniversalBaseModel):
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
url: typing.Optional[str] = None
title: typing.Optional[str] = None
@@ -418,7 +352,6 @@ class WorkflowDefinitionYamlBlocksItem_Navigation(UniversalBaseModel):
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
navigation_goal: str
url: typing.Optional[str] = None
@@ -454,7 +387,6 @@ class WorkflowDefinitionYamlBlocksItem_PdfParser(UniversalBaseModel):
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
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
@@ -475,7 +407,6 @@ class WorkflowDefinitionYamlBlocksItem_PrintPage(UniversalBaseModel):
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
include_timestamp: typing.Optional[bool] = None
custom_filename: typing.Optional[str] = None
@@ -500,7 +431,6 @@ class WorkflowDefinitionYamlBlocksItem_SendEmail(UniversalBaseModel):
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
smtp_host_secret_parameter_key: str
smtp_port_secret_parameter_key: str
@@ -528,7 +458,6 @@ class WorkflowDefinitionYamlBlocksItem_Task(UniversalBaseModel):
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
url: typing.Optional[str] = None
title: typing.Optional[str] = None
@@ -566,7 +495,6 @@ class WorkflowDefinitionYamlBlocksItem_TaskV2(UniversalBaseModel):
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
prompt: str
url: typing.Optional[str] = None
@@ -592,7 +520,6 @@ class WorkflowDefinitionYamlBlocksItem_TextPrompt(UniversalBaseModel):
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
llm_key: typing.Optional[str] = None
prompt: str
@@ -615,7 +542,6 @@ class WorkflowDefinitionYamlBlocksItem_UploadToS3(UniversalBaseModel):
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
path: typing.Optional[str] = None
@@ -635,7 +561,6 @@ class WorkflowDefinitionYamlBlocksItem_Validation(UniversalBaseModel):
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
complete_criterion: typing.Optional[str] = None
terminate_criterion: typing.Optional[str] = None
@@ -659,7 +584,6 @@ class WorkflowDefinitionYamlBlocksItem_Wait(UniversalBaseModel):
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
wait_sec: typing.Optional[int] = None
@@ -673,16 +597,19 @@ class WorkflowDefinitionYamlBlocksItem_Wait(UniversalBaseModel):
extra = pydantic.Extra.allow
-class WorkflowDefinitionYamlBlocksItem_WhileLoop(UniversalBaseModel):
- block_type: typing.Literal["while_loop"] = "while_loop"
+class WorkflowDefinitionYamlBlocksItem_WorkflowTrigger(UniversalBaseModel):
+ block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"
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
- loop_blocks: typing.List["WhileLoopBlockYamlLoopBlocksItem"]
- condition: BranchCriteriaYaml
+ workflow_permanent_id: str
+ payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
+ wait_for_completion: typing.Optional[bool] = None
+ browser_session_id: typing.Optional[str] = None
+ use_parent_browser_session: 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
@@ -694,25 +621,15 @@ class WorkflowDefinitionYamlBlocksItem_WhileLoop(UniversalBaseModel):
extra = pydantic.Extra.allow
-from .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001
-from .while_loop_block_yaml import WhileLoopBlockYaml # noqa: E402, F401, I001
-from .while_loop_block_yaml_loop_blocks_item import WhileLoopBlockYamlLoopBlocksItem # noqa: E402, F401, I001
-
-
-class WorkflowDefinitionYamlBlocksItem_WorkflowTrigger(UniversalBaseModel):
- block_type: typing.Literal["workflow_trigger"] = "workflow_trigger"
+class WorkflowDefinitionYamlBlocksItem_WhileLoop(UniversalBaseModel):
+ block_type: typing.Literal["while_loop"] = "while_loop"
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
- workflow_permanent_id: str
- payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- wait_for_completion: typing.Optional[bool] = None
- browser_session_id: typing.Optional[str] = None
- use_parent_browser_session: typing.Optional[bool] = None
- parameter_keys: typing.Optional[typing.List[str]] = None
+ loop_blocks: typing.List["WorkflowDefinitionYamlBlocksItem"]
+ condition: BranchCriteriaYaml
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -734,8 +651,6 @@ WorkflowDefinitionYamlBlocksItem = typing.Union[
WorkflowDefinitionYamlBlocksItem_FileUpload,
WorkflowDefinitionYamlBlocksItem_FileUrlParser,
WorkflowDefinitionYamlBlocksItem_ForLoop,
- WorkflowDefinitionYamlBlocksItem_GoogleSheetsRead,
- WorkflowDefinitionYamlBlocksItem_GoogleSheetsWrite,
WorkflowDefinitionYamlBlocksItem_GotoUrl,
WorkflowDefinitionYamlBlocksItem_HttpRequest,
WorkflowDefinitionYamlBlocksItem_HumanInteraction,
diff --git a/skyvern/client/types/workflow_request.py b/skyvern/client/types/workflow_request.py
index b21566e65..bfe77684e 100644
--- a/skyvern/client/types/workflow_request.py
+++ b/skyvern/client/types/workflow_request.py
@@ -31,6 +31,5 @@ class WorkflowRequest(UniversalBaseModel):
from .for_loop_block_yaml import ForLoopBlockYaml # noqa: E402, F401, I001
-from .while_loop_block_yaml import WhileLoopBlockYaml # noqa: E402, F401, I001
update_forward_refs(WorkflowRequest)
diff --git a/skyvern/client/types/workflow_run.py b/skyvern/client/types/workflow_run.py
index a201c2188..c1bb8e7ab 100644
--- a/skyvern/client/types/workflow_run.py
+++ b/skyvern/client/types/workflow_run.py
@@ -21,7 +21,6 @@ class WorkflowRun(UniversalBaseModel):
debug_session_id: typing.Optional[str] = None
status: WorkflowRunStatus
extra_http_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
- cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
proxy_location: typing.Optional[WorkflowRunProxyLocation] = None
webhook_callback_url: typing.Optional[str] = None
webhook_failure_reason: typing.Optional[str] = None
@@ -32,7 +31,6 @@ class WorkflowRun(UniversalBaseModel):
parent_workflow_run_id: typing.Optional[str] = None
workflow_title: typing.Optional[str] = None
max_screenshot_scrolls: typing.Optional[int] = None
- max_elapsed_time_minutes: typing.Optional[int] = None
browser_address: typing.Optional[str] = None
run_with: typing.Optional[str] = None
script_run: typing.Optional[ScriptRunResponse] = None
@@ -43,10 +41,6 @@ class WorkflowRun(UniversalBaseModel):
code_gen: typing.Optional[bool] = None
trigger_type: typing.Optional[WorkflowRunTriggerType] = None
workflow_schedule_id: typing.Optional[str] = None
- ignore_inherited_workflow_system_prompt: typing.Optional[bool] = None
- copilot_session_id: typing.Optional[str] = None
- credits_used: typing.Optional[int] = None
- cached_credits_used: typing.Optional[int] = None
queued_at: typing.Optional[dt.datetime] = None
started_at: typing.Optional[dt.datetime] = None
finished_at: typing.Optional[dt.datetime] = None
diff --git a/skyvern/client/types/workflow_run_block.py b/skyvern/client/types/workflow_run_block.py
index 22d32371b..b47642342 100644
--- a/skyvern/client/types/workflow_run_block.py
+++ b/skyvern/client/types/workflow_run_block.py
@@ -41,7 +41,6 @@ class WorkflowRunBlock(UniversalBaseModel):
created_at: dt.datetime
modified_at: dt.datetime
include_action_history_in_verification: typing.Optional[bool] = None
- include_extracted_text: typing.Optional[bool] = None
duration: typing.Optional[float] = None
loop_values: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None
current_value: typing.Optional[str] = None
diff --git a/skyvern/client/types/workflow_run_request_output.py b/skyvern/client/types/workflow_run_request.py
similarity index 81%
rename from skyvern/client/types/workflow_run_request_output.py
rename to skyvern/client/types/workflow_run_request.py
index 5c6a2ba49..57fdb1cd2 100644
--- a/skyvern/client/types/workflow_run_request_output.py
+++ b/skyvern/client/types/workflow_run_request.py
@@ -4,10 +4,10 @@ import typing
import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
-from .workflow_run_request_output_proxy_location import WorkflowRunRequestOutputProxyLocation
+from .workflow_run_request_proxy_location import WorkflowRunRequestProxyLocation
-class WorkflowRunRequestOutput(UniversalBaseModel):
+class WorkflowRunRequest(UniversalBaseModel):
workflow_id: str = pydantic.Field()
"""
ID of the workflow to run. Workflow ID starts with `wpid_`.
@@ -23,7 +23,7 @@ class WorkflowRunRequestOutput(UniversalBaseModel):
The title for this workflow run
"""
- proxy_location: typing.Optional[WorkflowRunRequestOutputProxyLocation] = pydantic.Field(default=None)
+ proxy_location: typing.Optional[WorkflowRunRequestProxyLocation] = pydantic.Field(default=None)
"""
Geographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.
@@ -40,7 +40,6 @@ class WorkflowRunRequestOutput(UniversalBaseModel):
- 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
@@ -57,8 +56,6 @@ class WorkflowRunRequestOutput(UniversalBaseModel):
- 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"}
"""
@@ -104,11 +101,6 @@ class WorkflowRunRequestOutput(UniversalBaseModel):
The extra HTTP headers for the requests in browser.
"""
- cdp_connect_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = pydantic.Field(default=None)
- """
- 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] = pydantic.Field(default=None)
"""
The CDP address for the workflow run.
@@ -124,7 +116,7 @@ class WorkflowRunRequestOutput(UniversalBaseModel):
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]]] = pydantic.Field(default=None)
+ run_metadata: typing.Optional[typing.Dict[str, str]] = pydantic.Field(default=None)
"""
String key/value metadata to attach to this workflow run for analytics tag filtering.
"""
diff --git a/skyvern/client/types/workflow_run_request_input_proxy_location.py b/skyvern/client/types/workflow_run_request_input_proxy_location.py
deleted file mode 100644
index f9bba1334..000000000
--- a/skyvern/client/types/workflow_run_request_input_proxy_location.py
+++ /dev/null
@@ -1,10 +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
-
-WorkflowRunRequestInputProxyLocation = typing.Union[
- ProxyLocation, GeoTarget, typing.Dict[str, typing.Optional[typing.Any]]
-]
diff --git a/skyvern/client/types/workflow_run_request_output_proxy_location.py b/skyvern/client/types/workflow_run_request_output_proxy_location.py
deleted file mode 100644
index 2415bee9c..000000000
--- a/skyvern/client/types/workflow_run_request_output_proxy_location.py
+++ /dev/null
@@ -1,10 +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
-
-WorkflowRunRequestOutputProxyLocation = typing.Union[
- ProxyLocation, GeoTarget, typing.Dict[str, typing.Optional[typing.Any]]
-]
diff --git a/skyvern/client/types/task_run_request_output_proxy_location.py b/skyvern/client/types/workflow_run_request_proxy_location.py
similarity index 55%
rename from skyvern/client/types/task_run_request_output_proxy_location.py
rename to skyvern/client/types/workflow_run_request_proxy_location.py
index d1f420057..b1218e399 100644
--- a/skyvern/client/types/task_run_request_output_proxy_location.py
+++ b/skyvern/client/types/workflow_run_request_proxy_location.py
@@ -5,6 +5,4 @@ import typing
from .geo_target import GeoTarget
from .proxy_location import ProxyLocation
-TaskRunRequestOutputProxyLocation = typing.Union[
- ProxyLocation, GeoTarget, typing.Dict[str, typing.Optional[typing.Any]]
-]
+WorkflowRunRequestProxyLocation = typing.Union[ProxyLocation, GeoTarget, typing.Dict[str, typing.Optional[typing.Any]]]
diff --git a/skyvern/client/types/workflow_run_response.py b/skyvern/client/types/workflow_run_response.py
index 9bcb192f9..b0476102b 100644
--- a/skyvern/client/types/workflow_run_response.py
+++ b/skyvern/client/types/workflow_run_response.py
@@ -8,7 +8,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .file_info import FileInfo
from .run_status import RunStatus
from .script_run_response import ScriptRunResponse
-from .workflow_run_request_output import WorkflowRunRequestOutput
+from .workflow_run_request import WorkflowRunRequest
from .workflow_run_response_output import WorkflowRunResponseOutput
@@ -38,11 +38,6 @@ class WorkflowRunResponse(UniversalBaseModel):
URL to the recording of the run
"""
- recording_archived: typing.Optional[bool] = pydantic.Field(default=None)
- """
- True when the recording exists but has been archived to cold storage and is not currently accessible.
- """
-
screenshot_urls: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
"""
List of last n screenshot URLs in reverse chronological order - the first one the list is the latest screenshot.
@@ -123,12 +118,7 @@ class WorkflowRunResponse(UniversalBaseModel):
Whether to fallback to AI if code run fails.
"""
- script_id: typing.Optional[str] = pydantic.Field(default=None)
- """
- ID of the cached script used for this workflow run, if any.
- """
-
- run_request: typing.Optional[WorkflowRunRequestOutput] = pydantic.Field(default=None)
+ run_request: typing.Optional[WorkflowRunRequest] = pydantic.Field(default=None)
"""
The original request parameters used to start this workflow run
"""
diff --git a/skyvern/client/types/workflow_trigger_block.py b/skyvern/client/types/workflow_trigger_block.py
index 2938083f3..6fac10299 100644
--- a/skyvern/client/types/workflow_trigger_block.py
+++ b/skyvern/client/types/workflow_trigger_block.py
@@ -25,7 +25,6 @@ class WorkflowTriggerBlock(UniversalBaseModel):
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
workflow_permanent_id: str
payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
diff --git a/skyvern/client/types/workflow_trigger_block_yaml.py b/skyvern/client/types/workflow_trigger_block_yaml.py
index 73945b571..94d24c387 100644
--- a/skyvern/client/types/workflow_trigger_block_yaml.py
+++ b/skyvern/client/types/workflow_trigger_block_yaml.py
@@ -19,7 +19,6 @@ class WorkflowTriggerBlockYaml(UniversalBaseModel):
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
workflow_permanent_id: str
payload: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
diff --git a/skyvern/client/workflows/__init__.py b/skyvern/client/workflows/__init__.py
deleted file mode 100644
index 5cde0202d..000000000
--- a/skyvern/client/workflows/__init__.py
+++ /dev/null
@@ -1,4 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-# isort: skip_file
-
diff --git a/skyvern/client/workflows/client.py b/skyvern/client/workflows/client.py
deleted file mode 100644
index ce7c2c376..000000000
--- a/skyvern/client/workflows/client.py
+++ /dev/null
@@ -1,115 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
-from ..core.request_options import RequestOptions
-from .raw_client import AsyncRawWorkflowsClient, RawWorkflowsClient
-
-
-class WorkflowsClient:
- def __init__(self, *, client_wrapper: SyncClientWrapper):
- self._raw_client = RawWorkflowsClient(client_wrapper=client_wrapper)
-
- @property
- def with_raw_response(self) -> RawWorkflowsClient:
- """
- Retrieves a raw implementation of this client that returns raw responses.
-
- Returns
- -------
- RawWorkflowsClient
- """
- return self._raw_client
-
- def reset_workflow_browser_profile(
- self, workflow_permanent_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> None:
- """
- Clear the persisted browser profile for a workflow that uses `Save & Reuse Session`. The next run will start from a fresh browser state. Use when a saved profile is corrupted.
-
- Parameters
- ----------
- workflow_permanent_id : str
- The permanent ID of the workflow. Starts with `wpid_`.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- None
-
- Examples
- --------
- from skyvern import Skyvern
-
- client = Skyvern(
- api_key="YOUR_API_KEY",
- )
- client.workflows.reset_workflow_browser_profile(
- workflow_permanent_id="wpid_123",
- )
- """
- _response = self._raw_client.reset_workflow_browser_profile(
- workflow_permanent_id, request_options=request_options
- )
- return _response.data
-
-
-class AsyncWorkflowsClient:
- def __init__(self, *, client_wrapper: AsyncClientWrapper):
- self._raw_client = AsyncRawWorkflowsClient(client_wrapper=client_wrapper)
-
- @property
- def with_raw_response(self) -> AsyncRawWorkflowsClient:
- """
- Retrieves a raw implementation of this client that returns raw responses.
-
- Returns
- -------
- AsyncRawWorkflowsClient
- """
- return self._raw_client
-
- async def reset_workflow_browser_profile(
- self, workflow_permanent_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> None:
- """
- Clear the persisted browser profile for a workflow that uses `Save & Reuse Session`. The next run will start from a fresh browser state. Use when a saved profile is corrupted.
-
- Parameters
- ----------
- workflow_permanent_id : str
- The permanent ID of the workflow. Starts with `wpid_`.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- None
-
- Examples
- --------
- import asyncio
-
- from skyvern import AsyncSkyvern
-
- client = AsyncSkyvern(
- api_key="YOUR_API_KEY",
- )
-
-
- async def main() -> None:
- await client.workflows.reset_workflow_browser_profile(
- workflow_permanent_id="wpid_123",
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.reset_workflow_browser_profile(
- workflow_permanent_id, request_options=request_options
- )
- return _response.data
diff --git a/skyvern/client/workflows/raw_client.py b/skyvern/client/workflows/raw_client.py
deleted file mode 100644
index 75aa6b882..000000000
--- a/skyvern/client/workflows/raw_client.py
+++ /dev/null
@@ -1,152 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-from json.decoder import JSONDecodeError
-
-from ..core.api_error import ApiError
-from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
-from ..core.http_response import AsyncHttpResponse, HttpResponse
-from ..core.jsonable_encoder import jsonable_encoder
-from ..core.pydantic_utilities import parse_obj_as
-from ..core.request_options import RequestOptions
-from ..errors.internal_server_error import InternalServerError
-from ..errors.not_found_error import NotFoundError
-from ..errors.unprocessable_entity_error import UnprocessableEntityError
-
-
-class RawWorkflowsClient:
- def __init__(self, *, client_wrapper: SyncClientWrapper):
- self._client_wrapper = client_wrapper
-
- def reset_workflow_browser_profile(
- self, workflow_permanent_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> HttpResponse[None]:
- """
- Clear the persisted browser profile for a workflow that uses `Save & Reuse Session`. The next run will start from a fresh browser state. Use when a saved profile is corrupted.
-
- Parameters
- ----------
- workflow_permanent_id : str
- The permanent ID of the workflow. Starts with `wpid_`.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[None]
- """
- _response = self._client_wrapper.httpx_client.request(
- f"v1/workflows/{jsonable_encoder(workflow_permanent_id)}/browser_session/reset_profile",
- method="POST",
- 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(),
- ),
- ),
- )
- 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(),
- ),
- ),
- )
- if _response.status_code == 500:
- raise InternalServerError(
- 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 AsyncRawWorkflowsClient:
- def __init__(self, *, client_wrapper: AsyncClientWrapper):
- self._client_wrapper = client_wrapper
-
- async def reset_workflow_browser_profile(
- self, workflow_permanent_id: str, *, request_options: typing.Optional[RequestOptions] = None
- ) -> AsyncHttpResponse[None]:
- """
- Clear the persisted browser profile for a workflow that uses `Save & Reuse Session`. The next run will start from a fresh browser state. Use when a saved profile is corrupted.
-
- Parameters
- ----------
- workflow_permanent_id : str
- The permanent ID of the workflow. Starts with `wpid_`.
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- AsyncHttpResponse[None]
- """
- _response = await self._client_wrapper.httpx_client.request(
- f"v1/workflows/{jsonable_encoder(workflow_permanent_id)}/browser_session/reset_profile",
- method="POST",
- request_options=request_options,
- )
- try:
- if 200 <= _response.status_code < 300:
- return AsyncHttpResponse(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(),
- ),
- ),
- )
- 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(),
- ),
- ),
- )
- if _response.status_code == 500:
- raise InternalServerError(
- 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)
diff --git a/tests/unit/test_mcp_block_type_parity.py b/tests/unit/test_mcp_block_type_parity.py
index 9ee5c6fee..13935260e 100644
--- a/tests/unit/test_mcp_block_type_parity.py
+++ b/tests/unit/test_mcp_block_type_parity.py
@@ -94,7 +94,22 @@ class BlockDriftEntry:
# Allowlist: block types present in the backend but not yet regenerated into
# 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, ...] = ()
+_KNOWN_DRIFT_ALLOWLIST: tuple[BlockDriftEntry, ...] = (
+ BlockDriftEntry(
+ block_type="google_sheets_read",
+ ticket="SKY-9227",
+ owner="@wintonzheng",
+ added_at=date(2026, 4, 23),
+ notes="Clears with `google_sheets_write` at the next Fern SDK regeneration.",
+ ),
+ BlockDriftEntry(
+ block_type="google_sheets_write",
+ ticket="SKY-9227",
+ owner="@wintonzheng",
+ added_at=date(2026, 4, 23),
+ notes="Clears with `google_sheets_read` at the next Fern SDK regeneration.",
+ ),
+)
def _allowlisted_block_types() -> set[str]:
diff --git a/tests/unit/test_sdk_run_metadata.py b/tests/unit/test_sdk_run_metadata.py
index 11e7a2e93..dc7c8589c 100644
--- a/tests/unit/test_sdk_run_metadata.py
+++ b/tests/unit/test_sdk_run_metadata.py
@@ -5,7 +5,7 @@ import httpx
import pytest
from skyvern.client import AsyncSkyvern, Skyvern
-from skyvern.client.types.workflow_run_request_output import WorkflowRunRequestOutput as WorkflowRunRequest
+from skyvern.client.types.workflow_run_request import WorkflowRunRequest
def test_workflow_run_request_accepts_run_metadata() -> None:
diff --git a/uv.lock b/uv.lock
index d43dad90a..088286ea1 100644
--- a/uv.lock
+++ b/uv.lock
@@ -5715,7 +5715,7 @@ wheels = [
[[package]]
name = "skyvern"
-version = "1.0.37"
+version = "1.0.36"
source = { editable = "." }
dependencies = [
{ name = "cachetools" },