{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/skyvern-com/json-schema/skyvern-com-workflow-schema.json",
  "title": "Workflow",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/skyvern-com-openapi.json#/components/schemas/Workflow",
  "properties": {
    "workflow_id": {
      "type": "string",
      "title": "Workflow Id"
    },
    "organization_id": {
      "type": "string",
      "title": "Organization Id"
    },
    "title": {
      "type": "string",
      "title": "Title"
    },
    "workflow_permanent_id": {
      "type": "string",
      "title": "Workflow Permanent Id"
    },
    "version": {
      "type": "integer",
      "title": "Version"
    },
    "is_saved_task": {
      "type": "boolean",
      "title": "Is Saved Task"
    },
    "is_template": {
      "type": "boolean",
      "title": "Is Template",
      "default": false
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "workflow_definition": {
      "$ref": "#/$defs/WorkflowDefinition"
    },
    "proxy_location": {
      "anyOf": [
        {
          "$ref": "#/$defs/ProxyLocation"
        },
        {
          "$ref": "#/$defs/GeoTarget"
        },
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Proxy Location"
    },
    "webhook_callback_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Webhook Callback Url"
    },
    "totp_verification_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Totp Verification Url"
    },
    "totp_identifier": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Totp Identifier"
    },
    "persist_browser_session": {
      "type": "boolean",
      "title": "Persist Browser Session",
      "default": false
    },
    "reuse_browser_session": {
      "type": "boolean",
      "title": "Reuse Browser Session",
      "default": false
    },
    "mask_secrets": {
      "type": "boolean",
      "title": "Mask Secrets",
      "default": false
    },
    "pin_saved_session_ip": {
      "type": "boolean",
      "title": "Pin Saved Session Ip",
      "default": false
    },
    "browser_profile_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Browser Profile Id"
    },
    "browser_profile_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Browser Profile Key"
    },
    "model": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model"
    },
    "status": {
      "$ref": "#/$defs/WorkflowStatus",
      "default": "published"
    },
    "max_screenshot_scrolls": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Screenshot Scrolls"
    },
    "max_elapsed_time_minutes": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Elapsed Time Minutes"
    },
    "extra_http_headers": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Extra Http Headers"
    },
    "cdp_connect_headers": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cdp Connect Headers"
    },
    "run_with": {
      "type": "string",
      "title": "Run With",
      "default": "agent"
    },
    "browser_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Browser Type"
    },
    "ai_fallback": {
      "type": "boolean",
      "title": "Ai Fallback",
      "default": true
    },
    "cache_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cache Key"
    },
    "adaptive_caching": {
      "type": "boolean",
      "title": "Adaptive Caching",
      "default": false
    },
    "enable_self_healing": {
      "type": "boolean",
      "title": "Enable Self Healing",
      "default": false
    },
    "code_version": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Code Version"
    },
    "generate_script_on_terminal": {
      "type": "boolean",
      "title": "Generate Script On Terminal",
      "default": false
    },
    "run_sequentially": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Run Sequentially"
    },
    "sequential_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sequential Key"
    },
    "folder_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Folder Id"
    },
    "import_error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Import Error"
    },
    "created_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created By"
    },
    "edited_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Edited By"
    },
    "build_source": {
      "anyOf": [
        {
          "$ref": "#/$defs/WorkflowBuildSource"
        },
        {
          "type": "null"
        }
      ],
      "description": "Which surface wrote this version: ui, copilot (Ember), mcp, cli, api, or internal. Null before tracking began."
    },
    "copilot_authored": {
      "type": "boolean",
      "title": "Copilot Authored",
      "default": false
    },
    "effective_default_engine": {
      "anyOf": [
        {
          "$ref": "#/$defs/RunEngine"
        },
        {
          "type": "null"
        }
      ],
      "description": "The engine a task block with no `engine` set runs on in this agent, or null when engine routing decides it. Populated by the detail endpoint only."
    },
    "original_created_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Original Created By",
      "description": "Who created the agent's first version. Populated by the list and detail endpoints only."
    },
    "original_created_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Original Created At",
      "description": "When the agent's first version was created. Populated by the list endpoint only."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "modified_at": {
      "type": "string",
      "format": "date-time",
      "title": "Modified At"
    },
    "deleted_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Deleted At"
    },
    "agent_id": {
      "type": "string",
      "title": "Agent Id",
      "description": "Alias of `workflow_permanent_id` — the stable agent identifier (starts with `wpid_`).",
      "readOnly": true
    }
  },
  "type": "object",
  "required": [
    "workflow_id",
    "organization_id",
    "title",
    "workflow_permanent_id",
    "version",
    "is_saved_task",
    "workflow_definition",
    "created_at",
    "modified_at",
    "agent_id"
  ],
  "$defs": {
    "AIFallbackMode": {
      "type": "string",
      "enum": [
        "fallback",
        "proactive"
      ],
      "title": "AIFallbackMode",
      "description": "Controls how an action block uses a CSS/XPath selector relative to AI.\n\n- `fallback`: attempt the selector first; fall back to AI on failure.\n- `proactive`: always use AI; the selector (if any) is a hint only.\n\nWhen `selector` is None, both modes degrade to AI-only — the difference\nis purely semantic (whether the author expected to have a selector here)."
    },
    "AWSSecretParameter": {
      "properties": {
        "parameter_type": {
          "type": "string",
          "const": "aws_secret",
          "title": "Parameter Type",
          "default": "aws_secret"
        },
        "key": {
          "type": "string",
          "title": "Key"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "aws_secret_parameter_id": {
          "type": "string",
          "title": "Aws Secret Parameter Id"
        },
        "workflow_id": {
          "type": "string",
          "title": "Workflow Id"
        },
        "aws_key": {
          "type": "string",
          "title": "Aws Key"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "modified_at": {
          "type": "string",
          "format": "date-time",
          "title": "Modified At"
        },
        "deleted_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted At"
        }
      },
      "type": "object",
      "required": [
        "key",
        "aws_secret_parameter_id",
        "workflow_id",
        "aws_key",
        "created_at",
        "modified_at"
      ],
      "title": "AWSSecretParameter"
    },
    "ActionBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "action",
          "title": "Block Type",
          "default": "action"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "task_type": {
          "type": "string",
          "title": "Task Type",
          "default": "general"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "title": {
          "type": "string",
          "title": "Title",
          "default": ""
        },
        "engine": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunEngine"
            },
            {
              "type": "null"
            }
          ]
        },
        "engine_pinned": {
          "type": "boolean",
          "title": "Engine Pinned",
          "default": false
        },
        "complete_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Complete Criterion"
        },
        "complete_criterion_is_untrusted": {
          "type": "boolean",
          "title": "Complete Criterion Is Untrusted",
          "default": false
        },
        "terminate_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Terminate Criterion"
        },
        "navigation_goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Navigation Goal"
        },
        "data_extraction_goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Extraction Goal"
        },
        "data_schema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "items": {},
              "type": "array"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Schema"
        },
        "error_code_mapping": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Code Mapping"
        },
        "max_retries": {
          "type": "integer",
          "title": "Max Retries",
          "default": 0
        },
        "max_steps_per_run": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Steps Per Run"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        },
        "complete_on_download": {
          "type": "boolean",
          "title": "Complete On Download",
          "default": false
        },
        "download_suffix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Suffix"
        },
        "totp_verification_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Verification Url"
        },
        "totp_identifier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Identifier"
        },
        "complete_verification": {
          "type": "boolean",
          "title": "Complete Verification",
          "default": true
        },
        "include_action_history_in_verification": {
          "type": "boolean",
          "title": "Include Action History In Verification",
          "default": false
        },
        "download_timeout": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Timeout"
        },
        "include_extracted_text": {
          "type": "boolean",
          "title": "Include Extracted Text",
          "default": true
        },
        "selector": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Selector"
        },
        "ai_fallback": {
          "$ref": "#/$defs/AIFallbackMode",
          "default": "fallback"
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter"
      ],
      "title": "ActionBlock"
    },
    "ActionType": {
      "type": "string",
      "enum": [
        "click",
        "input_text",
        "paste_text",
        "upload_file",
        "download_file",
        "select_option",
        "checkbox",
        "wait",
        "hover",
        "null_action",
        "solve_captcha",
        "terminate",
        "complete",
        "reload_page",
        "close_page",
        "new_tab",
        "switch_tab",
        "extract",
        "verification_code",
        "goto_url",
        "go_back",
        "go_forward",
        "scroll",
        "keypress",
        "move",
        "drag",
        "left_mouse",
        "execute_js"
      ],
      "title": "ActionType"
    },
    "AgentStepBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "agent_step",
          "title": "Block Type",
          "default": "agent_step"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "prompt": {
          "type": "string",
          "title": "Prompt"
        },
        "data_schema": {
          "additionalProperties": true,
          "type": "object",
          "title": "Data Schema"
        },
        "max_turns": {
          "type": "integer",
          "title": "Max Turns",
          "default": 25
        },
        "tools": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tools"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "prompt",
        "data_schema"
      ],
      "title": "AgentStepBlock"
    },
    "AzureSecretParameter": {
      "properties": {
        "parameter_type": {
          "type": "string",
          "const": "azure_secret",
          "title": "Parameter Type",
          "default": "azure_secret"
        },
        "key": {
          "type": "string",
          "title": "Key"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "azure_secret_parameter_id": {
          "type": "string",
          "title": "Azure Secret Parameter Id"
        },
        "workflow_id": {
          "type": "string",
          "title": "Workflow Id"
        },
        "azure_key": {
          "type": "string",
          "title": "Azure Key"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "modified_at": {
          "type": "string",
          "format": "date-time",
          "title": "Modified At"
        },
        "deleted_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted At"
        }
      },
      "type": "object",
      "required": [
        "key",
        "azure_secret_parameter_id",
        "workflow_id",
        "azure_key",
        "created_at",
        "modified_at"
      ],
      "title": "AzureSecretParameter"
    },
    "AzureVaultCredentialParameter": {
      "properties": {
        "parameter_type": {
          "type": "string",
          "const": "azure_vault_credential",
          "title": "Parameter Type",
          "default": "azure_vault_credential"
        },
        "key": {
          "type": "string",
          "title": "Key"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "azure_vault_credential_parameter_id": {
          "type": "string",
          "title": "Azure Vault Credential Parameter Id"
        },
        "workflow_id": {
          "type": "string",
          "title": "Workflow Id"
        },
        "vault_name": {
          "type": "string",
          "title": "Vault Name"
        },
        "username_key": {
          "type": "string",
          "title": "Username Key"
        },
        "password_key": {
          "type": "string",
          "title": "Password Key"
        },
        "totp_secret_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Secret Key"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "modified_at": {
          "type": "string",
          "format": "date-time",
          "title": "Modified At"
        },
        "deleted_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted At"
        }
      },
      "type": "object",
      "required": [
        "key",
        "azure_vault_credential_parameter_id",
        "workflow_id",
        "vault_name",
        "username_key",
        "password_key",
        "created_at",
        "modified_at"
      ],
      "title": "AzureVaultCredentialParameter"
    },
    "BitwardenCreditCardDataParameter": {
      "properties": {
        "parameter_type": {
          "type": "string",
          "const": "bitwarden_credit_card_data",
          "title": "Parameter Type",
          "default": "bitwarden_credit_card_data"
        },
        "key": {
          "type": "string",
          "title": "Key"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "bitwarden_credit_card_data_parameter_id": {
          "type": "string",
          "title": "Bitwarden Credit Card Data Parameter Id"
        },
        "workflow_id": {
          "type": "string",
          "title": "Workflow Id"
        },
        "bitwarden_client_id_aws_secret_key": {
          "type": "string",
          "title": "Bitwarden Client Id Aws Secret Key"
        },
        "bitwarden_client_secret_aws_secret_key": {
          "type": "string",
          "title": "Bitwarden Client Secret Aws Secret Key"
        },
        "bitwarden_master_password_aws_secret_key": {
          "type": "string",
          "title": "Bitwarden Master Password Aws Secret Key"
        },
        "bitwarden_collection_id": {
          "type": "string",
          "title": "Bitwarden Collection Id"
        },
        "bitwarden_item_id": {
          "type": "string",
          "title": "Bitwarden Item Id"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "modified_at": {
          "type": "string",
          "format": "date-time",
          "title": "Modified At"
        },
        "deleted_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted At"
        }
      },
      "type": "object",
      "required": [
        "key",
        "bitwarden_credit_card_data_parameter_id",
        "workflow_id",
        "bitwarden_client_id_aws_secret_key",
        "bitwarden_client_secret_aws_secret_key",
        "bitwarden_master_password_aws_secret_key",
        "bitwarden_collection_id",
        "bitwarden_item_id",
        "created_at",
        "modified_at"
      ],
      "title": "BitwardenCreditCardDataParameter"
    },
    "BitwardenLoginCredentialParameter": {
      "properties": {
        "parameter_type": {
          "type": "string",
          "const": "bitwarden_login_credential",
          "title": "Parameter Type",
          "default": "bitwarden_login_credential"
        },
        "key": {
          "type": "string",
          "title": "Key"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "bitwarden_login_credential_parameter_id": {
          "type": "string",
          "title": "Bitwarden Login Credential Parameter Id"
        },
        "workflow_id": {
          "type": "string",
          "title": "Workflow Id"
        },
        "bitwarden_client_id_aws_secret_key": {
          "type": "string",
          "title": "Bitwarden Client Id Aws Secret Key"
        },
        "bitwarden_client_secret_aws_secret_key": {
          "type": "string",
          "title": "Bitwarden Client Secret Aws Secret Key"
        },
        "bitwarden_master_password_aws_secret_key": {
          "type": "string",
          "title": "Bitwarden Master Password Aws Secret Key"
        },
        "url_parameter_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url Parameter Key"
        },
        "bitwarden_collection_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bitwarden Collection Id"
        },
        "bitwarden_item_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bitwarden Item Id"
        },
        "totp_identifier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Identifier"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "modified_at": {
          "type": "string",
          "format": "date-time",
          "title": "Modified At"
        },
        "deleted_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted At"
        }
      },
      "type": "object",
      "required": [
        "key",
        "bitwarden_login_credential_parameter_id",
        "workflow_id",
        "bitwarden_client_id_aws_secret_key",
        "bitwarden_client_secret_aws_secret_key",
        "bitwarden_master_password_aws_secret_key",
        "created_at",
        "modified_at"
      ],
      "title": "BitwardenLoginCredentialParameter"
    },
    "BitwardenSensitiveInformationParameter": {
      "properties": {
        "parameter_type": {
          "type": "string",
          "const": "bitwarden_sensitive_information",
          "title": "Parameter Type",
          "default": "bitwarden_sensitive_information"
        },
        "key": {
          "type": "string",
          "title": "Key"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "bitwarden_sensitive_information_parameter_id": {
          "type": "string",
          "title": "Bitwarden Sensitive Information Parameter Id"
        },
        "workflow_id": {
          "type": "string",
          "title": "Workflow Id"
        },
        "bitwarden_client_id_aws_secret_key": {
          "type": "string",
          "title": "Bitwarden Client Id Aws Secret Key"
        },
        "bitwarden_client_secret_aws_secret_key": {
          "type": "string",
          "title": "Bitwarden Client Secret Aws Secret Key"
        },
        "bitwarden_master_password_aws_secret_key": {
          "type": "string",
          "title": "Bitwarden Master Password Aws Secret Key"
        },
        "bitwarden_collection_id": {
          "type": "string",
          "title": "Bitwarden Collection Id"
        },
        "bitwarden_identity_key": {
          "type": "string",
          "title": "Bitwarden Identity Key"
        },
        "bitwarden_identity_fields": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Bitwarden Identity Fields"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "modified_at": {
          "type": "string",
          "format": "date-time",
          "title": "Modified At"
        },
        "deleted_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted At"
        }
      },
      "type": "object",
      "required": [
        "key",
        "bitwarden_sensitive_information_parameter_id",
        "workflow_id",
        "bitwarden_client_id_aws_secret_key",
        "bitwarden_client_secret_aws_secret_key",
        "bitwarden_master_password_aws_secret_key",
        "bitwarden_collection_id",
        "bitwarden_identity_key",
        "bitwarden_identity_fields",
        "created_at",
        "modified_at"
      ],
      "title": "BitwardenSensitiveInformationParameter"
    },
    "BranchCondition": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "criteria": {
          "anyOf": [
            {
              "oneOf": [
                {
                  "$ref": "#/$defs/JinjaBranchCriteria"
                },
                {
                  "$ref": "#/$defs/PromptBranchCriteria"
                }
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Criteria"
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "is_default": {
          "type": "boolean",
          "title": "Is Default",
          "default": false
        }
      },
      "type": "object",
      "title": "BranchCondition",
      "description": "Represents a single conditional branch edge within a ConditionalBlock."
    },
    "BrowserSettings": {
      "properties": {
        "timezone_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Timezone Id",
          "description": "IANA timezone the browser reports to pages, for example `America/New_York`. Applied when a browser is created and takes precedence over any timezone implied by the proxy location. Offsets such as `+03:00` are rejected. Omit or set to null to keep the default behavior."
        }
      },
      "type": "object",
      "title": "BrowserSettings"
    },
    "CodeBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "code",
          "title": "Block Type",
          "default": "code"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "code": {
          "type": "string",
          "title": "Code"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        },
        "error_code_mapping": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Code Mapping"
        },
        "prompt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Prompt"
        },
        "steps": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/CodeBlockStep"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Steps"
        },
        "data_schema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "items": {},
              "type": "array"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Schema"
        },
        "user_owned_goal": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "User Owned Goal"
        },
        "goal_needs_regeneration": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Goal Needs Regeneration"
        },
        "code_edited_by_hand": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Code Edited By Hand"
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "code"
      ],
      "title": "CodeBlock"
    },
    "CodeBlockStep": {
      "properties": {
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "action_type": {
          "$ref": "#/$defs/ActionType",
          "default": "null_action"
        },
        "line_start": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Line Start"
        },
        "line_end": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Line End"
        }
      },
      "type": "object",
      "title": "CodeBlockStep"
    },
    "ConditionalBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "conditional",
          "title": "Block Type",
          "default": "conditional"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "branch_conditions": {
          "items": {
            "$ref": "#/$defs/BranchCondition"
          },
          "type": "array",
          "title": "Branch Conditions"
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter"
      ],
      "title": "ConditionalBlock",
      "description": "Branching block that selects the next block label based on list-ordered conditions."
    },
    "ContextParameter": {
      "properties": {
        "parameter_type": {
          "type": "string",
          "const": "context",
          "title": "Parameter Type",
          "default": "context"
        },
        "key": {
          "type": "string",
          "title": "Key"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "source": {
          "anyOf": [
            {
              "$ref": "#/$defs/WorkflowParameter"
            },
            {
              "$ref": "#/$defs/ContextParameter"
            },
            {
              "$ref": "#/$defs/AWSSecretParameter"
            },
            {
              "$ref": "#/$defs/AzureSecretParameter"
            },
            {
              "$ref": "#/$defs/BitwardenLoginCredentialParameter"
            },
            {
              "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
            },
            {
              "$ref": "#/$defs/BitwardenCreditCardDataParameter"
            },
            {
              "$ref": "#/$defs/OnePasswordCredentialParameter"
            },
            {
              "$ref": "#/$defs/AzureVaultCredentialParameter"
            },
            {
              "$ref": "#/$defs/OutputParameter"
            },
            {
              "$ref": "#/$defs/CredentialParameter"
            }
          ],
          "title": "Source"
        },
        "value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "integer"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "items": {},
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Value"
        }
      },
      "type": "object",
      "required": [
        "key",
        "source"
      ],
      "title": "ContextParameter"
    },
    "CredentialParameter": {
      "properties": {
        "parameter_type": {
          "type": "string",
          "const": "credential",
          "title": "Parameter Type",
          "default": "credential"
        },
        "key": {
          "type": "string",
          "title": "Key"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "credential_parameter_id": {
          "type": "string",
          "title": "Credential Parameter Id"
        },
        "workflow_id": {
          "type": "string",
          "title": "Workflow Id"
        },
        "credential_id": {
          "type": "string",
          "title": "Credential Id"
        },
        "credential_ids": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Credential Ids"
        },
        "selection_strategy": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Selection Strategy"
        },
        "fallback_credential_ids": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fallback Credential Ids"
        },
        "fallback_trigger": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fallback Trigger"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "modified_at": {
          "type": "string",
          "format": "date-time",
          "title": "Modified At"
        },
        "deleted_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted At"
        }
      },
      "type": "object",
      "required": [
        "key",
        "credential_parameter_id",
        "workflow_id",
        "credential_id",
        "created_at",
        "modified_at"
      ],
      "title": "CredentialParameter"
    },
    "DataExportBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "data_export",
          "title": "Block Type",
          "default": "data_export"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "data": {
          "type": "string",
          "title": "Data"
        },
        "data_schema": {
          "additionalProperties": true,
          "type": "object",
          "title": "Data Schema"
        },
        "file_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "File Name"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "data",
        "data_schema"
      ],
      "title": "DataExportBlock"
    },
    "DownloadToS3Block": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "download_to_s3",
          "title": "Block Type",
          "default": "download_to_s3"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "url": {
          "type": "string",
          "title": "Url"
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "url"
      ],
      "title": "DownloadToS3Block"
    },
    "EmailBodyFormat": {
      "type": "string",
      "enum": [
        "text",
        "html"
      ],
      "title": "EmailBodyFormat"
    },
    "EmailInboxBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "email_inbox",
          "title": "Block Type",
          "default": "email_inbox"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "email_client": {
          "type": "string",
          "enum": [
            "gmail",
            "outlook"
          ],
          "title": "Email Client"
        },
        "credential_source": {
          "type": "string",
          "enum": [
            "native",
            "nango"
          ],
          "title": "Credential Source",
          "default": "native"
        },
        "connection_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Connection Id"
        },
        "credential_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Credential Id"
        },
        "message_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Message Id"
        },
        "folder": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Folder"
        },
        "prompt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Prompt"
        },
        "sender": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sender"
        },
        "subject": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Subject"
        },
        "newer_than_days": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Newer Than Days"
        },
        "max_results": {
          "type": "integer",
          "title": "Max Results",
          "default": 25
        },
        "include_body": {
          "type": "boolean",
          "title": "Include Body",
          "default": true
        },
        "download_attachments": {
          "type": "boolean",
          "title": "Download Attachments",
          "default": false
        },
        "organize_action": {
          "anyOf": [
            {
              "$ref": "#/$defs/EmailOrganizeAction"
            },
            {
              "type": "null"
            }
          ]
        },
        "organize_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Organize Label"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "email_client"
      ],
      "title": "EmailInboxBlock"
    },
    "EmailOrganizeAction": {
      "type": "string",
      "enum": [
        "label",
        "archive",
        "move",
        "mark_read"
      ],
      "title": "EmailOrganizeAction",
      "description": "One change an Email Inbox block applies to every email it matched."
    },
    "EmailTransport": {
      "type": "string",
      "enum": [
        "smtp",
        "gmail"
      ],
      "title": "EmailTransport"
    },
    "ExtractionBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "extraction",
          "title": "Block Type",
          "default": "extraction"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "task_type": {
          "type": "string",
          "title": "Task Type",
          "default": "general"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "title": {
          "type": "string",
          "title": "Title",
          "default": ""
        },
        "engine": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunEngine"
            },
            {
              "type": "null"
            }
          ]
        },
        "engine_pinned": {
          "type": "boolean",
          "title": "Engine Pinned",
          "default": false
        },
        "complete_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Complete Criterion"
        },
        "complete_criterion_is_untrusted": {
          "type": "boolean",
          "title": "Complete Criterion Is Untrusted",
          "default": false
        },
        "terminate_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Terminate Criterion"
        },
        "navigation_goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Navigation Goal"
        },
        "data_extraction_goal": {
          "type": "string",
          "title": "Data Extraction Goal"
        },
        "data_schema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "items": {},
              "type": "array"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Schema"
        },
        "error_code_mapping": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Code Mapping"
        },
        "max_retries": {
          "type": "integer",
          "title": "Max Retries",
          "default": 0
        },
        "max_steps_per_run": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Steps Per Run"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        },
        "complete_on_download": {
          "type": "boolean",
          "title": "Complete On Download",
          "default": false
        },
        "download_suffix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Suffix"
        },
        "totp_verification_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Verification Url"
        },
        "totp_identifier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Identifier"
        },
        "complete_verification": {
          "type": "boolean",
          "title": "Complete Verification",
          "default": true
        },
        "include_action_history_in_verification": {
          "type": "boolean",
          "title": "Include Action History In Verification",
          "default": false
        },
        "download_timeout": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Timeout"
        },
        "include_extracted_text": {
          "type": "boolean",
          "title": "Include Extracted Text",
          "default": false
        },
        "export_enabled": {
          "type": "boolean",
          "title": "Export Enabled",
          "default": false
        },
        "export_data_schema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Export Data Schema"
        },
        "export_file_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Export File Name"
        },
        "export_records": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Export Records"
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "data_extraction_goal"
      ],
      "title": "ExtractionBlock"
    },
    "FileDownloadBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "file_download",
          "title": "Block Type",
          "default": "file_download"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "s3_bucket": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "S3 Bucket"
        },
        "aws_access_key_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Aws Access Key Id"
        },
        "aws_secret_access_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Aws Secret Access Key"
        },
        "region_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Region Name"
        },
        "endpoint_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Endpoint Url"
        },
        "azure_storage_account_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Azure Storage Account Name"
        },
        "azure_storage_account_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Azure Storage Account Key"
        },
        "azure_blob_container_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Azure Blob Container Name"
        },
        "google_credential_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Google Credential Id"
        },
        "google_drive_folder_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Google Drive Folder Id"
        },
        "sftp_host": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sftp Host"
        },
        "sftp_port": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sftp Port"
        },
        "sftp_username": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sftp Username"
        },
        "sftp_password": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sftp Password"
        },
        "sftp_private_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sftp Private Key"
        },
        "sftp_private_key_passphrase": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sftp Private Key Passphrase"
        },
        "sftp_remote_path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sftp Remote Path"
        },
        "sftp_host_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sftp Host Key"
        },
        "prompt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Prompt",
          "description": "Optional natural-language control over which downloaded files are uploaded; empty means upload all."
        },
        "path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Path"
        },
        "continue_on_empty": {
          "type": "boolean",
          "title": "Continue On Empty",
          "description": "When the run download directory has no files, allow the empty upload only after confirming no registered, browser-session, or alternate candidate downloads exist (False, default). Set True to always allow an empty upload.",
          "default": false
        },
        "task_type": {
          "type": "string",
          "title": "Task Type",
          "default": "general"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "title": {
          "type": "string",
          "title": "Title",
          "default": ""
        },
        "engine": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunEngine"
            },
            {
              "type": "null"
            }
          ]
        },
        "engine_pinned": {
          "type": "boolean",
          "title": "Engine Pinned",
          "default": false
        },
        "complete_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Complete Criterion"
        },
        "complete_criterion_is_untrusted": {
          "type": "boolean",
          "title": "Complete Criterion Is Untrusted",
          "default": false
        },
        "terminate_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Terminate Criterion"
        },
        "navigation_goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Navigation Goal"
        },
        "data_extraction_goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Extraction Goal"
        },
        "data_schema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "items": {},
              "type": "array"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Schema"
        },
        "error_code_mapping": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Code Mapping"
        },
        "max_retries": {
          "type": "integer",
          "title": "Max Retries",
          "default": 0
        },
        "max_steps_per_run": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Steps Per Run"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        },
        "complete_on_download": {
          "type": "boolean",
          "title": "Complete On Download",
          "default": false
        },
        "download_suffix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Suffix"
        },
        "totp_verification_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Verification Url"
        },
        "totp_identifier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Identifier"
        },
        "complete_verification": {
          "type": "boolean",
          "title": "Complete Verification",
          "default": true
        },
        "include_action_history_in_verification": {
          "type": "boolean",
          "title": "Include Action History In Verification",
          "default": false
        },
        "download_timeout": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Timeout"
        },
        "include_extracted_text": {
          "type": "boolean",
          "title": "Include Extracted Text",
          "default": true
        },
        "download_target": {
          "$ref": "#/$defs/FileDownloadTarget",
          "default": "website"
        },
        "sftp_source_path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sftp Source Path"
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter"
      ],
      "title": "FileDownloadBlock"
    },
    "FileDownloadTarget": {
      "type": "string",
      "enum": [
        "website",
        "s3",
        "azure",
        "google_drive",
        "sftp"
      ],
      "title": "FileDownloadTarget"
    },
    "FileParserBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "file_url_parser",
          "title": "Block Type",
          "default": "file_url_parser"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "file_url": {
          "type": "string",
          "title": "File Url"
        },
        "file_type": {
          "$ref": "#/$defs/FileType",
          "default": "auto_detect"
        },
        "json_schema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Json Schema"
        },
        "worksheet": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Worksheet"
        },
        "force_ocr": {
          "type": "boolean",
          "title": "Force Ocr",
          "description": "PDF only: ignore the PDF's embedded text layer and read the pages with vision OCR instead. Use it when a PDF's text layer is unreadable in a way Skyvern does not detect on its own. OCR reads at most the first 50 pages, so a longer PDF loses the rest; leave this off unless the text layer is unusable.",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "file_url"
      ],
      "title": "FileParserBlock"
    },
    "FileStorageType": {
      "type": "string",
      "enum": [
        "s3",
        "azure",
        "google_drive",
        "sftp"
      ],
      "title": "FileStorageType"
    },
    "FileType": {
      "type": "string",
      "enum": [
        "auto_detect",
        "csv",
        "excel",
        "pdf",
        "image",
        "docx",
        "zip"
      ],
      "title": "FileType"
    },
    "FileUploadBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "file_upload",
          "title": "Block Type",
          "default": "file_upload"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "s3_bucket": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "S3 Bucket"
        },
        "aws_access_key_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Aws Access Key Id"
        },
        "aws_secret_access_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Aws Secret Access Key"
        },
        "region_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Region Name"
        },
        "endpoint_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Endpoint Url"
        },
        "azure_storage_account_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Azure Storage Account Name"
        },
        "azure_storage_account_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Azure Storage Account Key"
        },
        "azure_blob_container_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Azure Blob Container Name"
        },
        "google_credential_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Google Credential Id"
        },
        "google_drive_folder_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Google Drive Folder Id"
        },
        "sftp_host": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sftp Host"
        },
        "sftp_port": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sftp Port"
        },
        "sftp_username": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sftp Username"
        },
        "sftp_password": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sftp Password"
        },
        "sftp_private_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sftp Private Key"
        },
        "sftp_private_key_passphrase": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sftp Private Key Passphrase"
        },
        "sftp_remote_path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sftp Remote Path"
        },
        "sftp_host_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sftp Host Key"
        },
        "prompt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Prompt",
          "description": "Optional natural-language control over which downloaded files are uploaded; empty means upload all."
        },
        "path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Path"
        },
        "continue_on_empty": {
          "type": "boolean",
          "title": "Continue On Empty",
          "description": "When the run download directory has no files, allow the empty upload only after confirming no registered, browser-session, or alternate candidate downloads exist (False, default). Set True to always allow an empty upload.",
          "default": false
        },
        "storage_type": {
          "$ref": "#/$defs/FileStorageType",
          "default": "s3"
        },
        "google_drive_save_as_sheet": {
          "type": "boolean",
          "title": "Google Drive Save As Sheet",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter"
      ],
      "title": "FileUploadBlock"
    },
    "ForLoopBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "for_loop",
          "title": "Block Type",
          "default": "for_loop"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "loop_blocks": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/ConditionalBlock"
              },
              {
                "$ref": "#/$defs/ForLoopBlock"
              },
              {
                "$ref": "#/$defs/WhileLoopBlock"
              },
              {
                "$ref": "#/$defs/TaskBlock"
              },
              {
                "$ref": "#/$defs/CodeBlock"
              },
              {
                "$ref": "#/$defs/TextPromptBlock"
              },
              {
                "$ref": "#/$defs/DownloadToS3Block"
              },
              {
                "$ref": "#/$defs/UploadToS3Block"
              },
              {
                "$ref": "#/$defs/SendEmailBlock"
              },
              {
                "$ref": "#/$defs/FileParserBlock"
              },
              {
                "$ref": "#/$defs/PDFParserBlock"
              },
              {
                "$ref": "#/$defs/ValidationBlock"
              },
              {
                "$ref": "#/$defs/ActionBlock"
              },
              {
                "$ref": "#/$defs/NavigationBlock"
              },
              {
                "$ref": "#/$defs/ExtractionBlock"
              },
              {
                "$ref": "#/$defs/LoginBlock"
              },
              {
                "$ref": "#/$defs/WaitBlock"
              },
              {
                "$ref": "#/$defs/HumanInteractionBlock"
              },
              {
                "$ref": "#/$defs/FileDownloadBlock"
              },
              {
                "$ref": "#/$defs/UrlBlock"
              },
              {
                "$ref": "#/$defs/TaskV2Block"
              },
              {
                "$ref": "#/$defs/FileUploadBlock"
              },
              {
                "$ref": "#/$defs/HttpRequestBlock"
              },
              {
                "$ref": "#/$defs/WebSearchBlock"
              },
              {
                "$ref": "#/$defs/PrintPageBlock"
              },
              {
                "$ref": "#/$defs/WorkflowTriggerBlock"
              },
              {
                "$ref": "#/$defs/GoogleSheetsReadBlock"
              },
              {
                "$ref": "#/$defs/EmailInboxBlock"
              },
              {
                "$ref": "#/$defs/GoogleSheetsWriteBlock"
              },
              {
                "$ref": "#/$defs/PowerBIQueryBlock"
              },
              {
                "$ref": "#/$defs/IntegrationActionBlock"
              },
              {
                "$ref": "#/$defs/PdfFillBlock"
              },
              {
                "$ref": "#/$defs/SplitPdfBlock"
              },
              {
                "$ref": "#/$defs/DataExportBlock"
              },
              {
                "$ref": "#/$defs/TerminateBlock"
              },
              {
                "$ref": "#/$defs/AgentStepBlock"
              }
            ]
          },
          "type": "array",
          "title": "Loop Blocks"
        },
        "loop_over": {
          "anyOf": [
            {
              "oneOf": [
                {
                  "$ref": "#/$defs/WorkflowParameter"
                },
                {
                  "$ref": "#/$defs/ContextParameter"
                },
                {
                  "$ref": "#/$defs/AWSSecretParameter"
                },
                {
                  "$ref": "#/$defs/AzureSecretParameter"
                },
                {
                  "$ref": "#/$defs/BitwardenLoginCredentialParameter"
                },
                {
                  "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
                },
                {
                  "$ref": "#/$defs/BitwardenCreditCardDataParameter"
                },
                {
                  "$ref": "#/$defs/OnePasswordCredentialParameter"
                },
                {
                  "$ref": "#/$defs/AzureVaultCredentialParameter"
                },
                {
                  "$ref": "#/$defs/OutputParameter"
                },
                {
                  "$ref": "#/$defs/CredentialParameter"
                }
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Loop Over"
        },
        "loop_variable_reference": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Loop Variable Reference"
        },
        "complete_if_empty": {
          "type": "boolean",
          "title": "Complete If Empty",
          "default": false
        },
        "data_schema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Schema"
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "loop_blocks"
      ],
      "title": "ForLoopBlock"
    },
    "GeoTarget": {
      "properties": {
        "country": {
          "type": "string",
          "maxLength": 2,
          "minLength": 2,
          "title": "Country",
          "description": "ISO 3166-1 alpha-2 country code (e.g., 'US', 'GB', 'DE')"
        },
        "subdivision": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 10
            },
            {
              "type": "null"
            }
          ],
          "title": "Subdivision",
          "description": "ISO 3166-2 subdivision code without country prefix (e.g., 'CA' for California, 'NY' for New York)"
        },
        "city": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 100
            },
            {
              "type": "null"
            }
          ],
          "title": "City",
          "description": "City name in English from GeoNames (e.g., 'New York', 'Los Angeles', 'London')"
        },
        "isISP": {
          "type": "boolean",
          "title": "Isisp",
          "description": "Whether this geo target is marked as an ISP proxy location.",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "country"
      ],
      "title": "GeoTarget",
      "description": "Granular proxy geo-targeting request with country, optional subdivision, and optional city."
    },
    "GoogleSheetsReadBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "google_sheets_read",
          "title": "Block Type",
          "default": "google_sheets_read"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "spreadsheet_url": {
          "type": "string",
          "title": "Spreadsheet Url"
        },
        "sheet_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sheet Name"
        },
        "range": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Range"
        },
        "credential_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Credential Id"
        },
        "has_header_row": {
          "type": "boolean",
          "title": "Has Header Row",
          "default": true
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "spreadsheet_url"
      ],
      "title": "GoogleSheetsReadBlock"
    },
    "GoogleSheetsWriteBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "google_sheets_write",
          "title": "Block Type",
          "default": "google_sheets_write"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "spreadsheet_url": {
          "type": "string",
          "title": "Spreadsheet Url"
        },
        "sheet_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sheet Name"
        },
        "range": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Range"
        },
        "credential_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Credential Id"
        },
        "write_mode": {
          "type": "string",
          "enum": [
            "append",
            "update"
          ],
          "title": "Write Mode",
          "default": "append"
        },
        "values": {
          "type": "string",
          "title": "Values",
          "default": ""
        },
        "column_mapping": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Column Mapping"
        },
        "create_sheet_if_missing": {
          "type": "boolean",
          "title": "Create Sheet If Missing",
          "default": false
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "spreadsheet_url"
      ],
      "title": "GoogleSheetsWriteBlock"
    },
    "HttpRequestBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "http_request",
          "title": "Block Type",
          "default": "http_request"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "method": {
          "type": "string",
          "title": "Method",
          "default": "GET"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "headers": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Headers"
        },
        "body": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Body"
        },
        "files": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Files"
        },
        "timeout": {
          "type": "integer",
          "minimum": 1.0,
          "title": "Timeout",
          "default": 30
        },
        "follow_redirects": {
          "type": "boolean",
          "title": "Follow Redirects",
          "default": true
        },
        "download_filename": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Filename"
        },
        "save_response_as_file": {
          "type": "boolean",
          "title": "Save Response As File",
          "default": false
        },
        "secret_response_paths": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Secret Response Paths"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter"
      ],
      "title": "HttpRequestBlock"
    },
    "HumanInteractionBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "human_interaction",
          "title": "Block Type",
          "default": "human_interaction"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "task_type": {
          "type": "string",
          "title": "Task Type",
          "default": "general"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "title": {
          "type": "string",
          "title": "Title",
          "default": ""
        },
        "engine": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunEngine"
            },
            {
              "type": "null"
            }
          ],
          "default": "skyvern-1.0"
        },
        "engine_pinned": {
          "type": "boolean",
          "title": "Engine Pinned",
          "default": false
        },
        "complete_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Complete Criterion"
        },
        "complete_criterion_is_untrusted": {
          "type": "boolean",
          "title": "Complete Criterion Is Untrusted",
          "default": false
        },
        "terminate_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Terminate Criterion"
        },
        "navigation_goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Navigation Goal"
        },
        "data_extraction_goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Extraction Goal"
        },
        "data_schema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "items": {},
              "type": "array"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Schema"
        },
        "error_code_mapping": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Code Mapping"
        },
        "max_retries": {
          "type": "integer",
          "title": "Max Retries",
          "default": 0
        },
        "max_steps_per_run": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Steps Per Run"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        },
        "complete_on_download": {
          "type": "boolean",
          "title": "Complete On Download",
          "default": false
        },
        "download_suffix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Suffix"
        },
        "totp_verification_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Verification Url"
        },
        "totp_identifier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Identifier"
        },
        "complete_verification": {
          "type": "boolean",
          "title": "Complete Verification",
          "default": true
        },
        "include_action_history_in_verification": {
          "type": "boolean",
          "title": "Include Action History In Verification",
          "default": false
        },
        "download_timeout": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Timeout"
        },
        "include_extracted_text": {
          "type": "boolean",
          "title": "Include Extracted Text",
          "default": true
        },
        "instructions": {
          "type": "string",
          "title": "Instructions",
          "default": "Please review and approve or reject to continue the workflow."
        },
        "positive_descriptor": {
          "type": "string",
          "title": "Positive Descriptor",
          "default": "Approve"
        },
        "negative_descriptor": {
          "type": "string",
          "title": "Negative Descriptor",
          "default": "Reject"
        },
        "timeout_seconds": {
          "type": "integer",
          "title": "Timeout Seconds",
          "default": 7200
        },
        "sender": {
          "type": "string",
          "title": "Sender",
          "default": "hello@skyvern.com"
        },
        "recipients": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Recipients",
          "default": []
        },
        "subject": {
          "type": "string",
          "title": "Subject",
          "default": "Human interaction required for workflow run"
        },
        "body": {
          "type": "string",
          "title": "Body",
          "default": "Your interaction is required for a workflow run!"
        },
        "body_format": {
          "$ref": "#/$defs/EmailBodyFormat",
          "default": "text"
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter"
      ],
      "title": "HumanInteractionBlock",
      "description": "A block for human/agent interaction.\n\nFor the first pass at this, the implicit behaviour is that the user is given a single binary\nchoice (a go//no-go).\n\nIf the human:\n  - chooses positively, the workflow continues\n  - chooses negatively, the workflow is terminated\n  - does not respond within the timeout period, the workflow terminates"
    },
    "IntegrationActionBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "integration_action",
          "title": "Block Type",
          "default": "integration_action"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "integration_id": {
          "type": "string",
          "title": "Integration Id"
        },
        "action_id": {
          "type": "string",
          "title": "Action Id"
        },
        "connection_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Connection Id"
        },
        "inputs": {
          "additionalProperties": true,
          "type": "object",
          "title": "Inputs",
          "default": {}
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "integration_id",
        "action_id"
      ],
      "title": "IntegrationActionBlock"
    },
    "JinjaBranchCriteria": {
      "properties": {
        "criteria_type": {
          "type": "string",
          "const": "jinja2_template",
          "title": "Criteria Type",
          "default": "jinja2_template"
        },
        "expression": {
          "type": "string",
          "title": "Expression"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        }
      },
      "type": "object",
      "required": [
        "expression"
      ],
      "title": "JinjaBranchCriteria",
      "description": "Jinja2-templated branch criteria (only supported criteria type for now)."
    },
    "LoginBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "login",
          "title": "Block Type",
          "default": "login"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "task_type": {
          "type": "string",
          "title": "Task Type",
          "default": "general"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "title": {
          "type": "string",
          "title": "Title",
          "default": ""
        },
        "engine": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunEngine"
            },
            {
              "type": "null"
            }
          ]
        },
        "engine_pinned": {
          "type": "boolean",
          "title": "Engine Pinned",
          "default": false
        },
        "complete_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Complete Criterion"
        },
        "complete_criterion_is_untrusted": {
          "type": "boolean",
          "title": "Complete Criterion Is Untrusted",
          "default": false
        },
        "terminate_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Terminate Criterion"
        },
        "navigation_goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Navigation Goal"
        },
        "data_extraction_goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Extraction Goal"
        },
        "data_schema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "items": {},
              "type": "array"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Schema"
        },
        "error_code_mapping": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Code Mapping"
        },
        "max_retries": {
          "type": "integer",
          "title": "Max Retries",
          "default": 0
        },
        "max_steps_per_run": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Steps Per Run"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        },
        "complete_on_download": {
          "type": "boolean",
          "title": "Complete On Download",
          "default": false
        },
        "download_suffix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Suffix"
        },
        "totp_verification_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Verification Url"
        },
        "totp_identifier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Identifier"
        },
        "complete_verification": {
          "type": "boolean",
          "title": "Complete Verification",
          "default": true
        },
        "include_action_history_in_verification": {
          "type": "boolean",
          "title": "Include Action History In Verification",
          "default": false
        },
        "download_timeout": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Timeout"
        },
        "include_extracted_text": {
          "type": "boolean",
          "title": "Include Extracted Text",
          "default": true
        },
        "skip_saved_profile": {
          "type": "boolean",
          "title": "Skip Saved Profile",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter"
      ],
      "title": "LoginBlock"
    },
    "NavigationBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "navigation",
          "title": "Block Type",
          "default": "navigation"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "task_type": {
          "type": "string",
          "title": "Task Type",
          "default": "general"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "title": {
          "type": "string",
          "title": "Title",
          "default": ""
        },
        "engine": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunEngine"
            },
            {
              "type": "null"
            }
          ]
        },
        "engine_pinned": {
          "type": "boolean",
          "title": "Engine Pinned",
          "default": false
        },
        "complete_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Complete Criterion"
        },
        "complete_criterion_is_untrusted": {
          "type": "boolean",
          "title": "Complete Criterion Is Untrusted",
          "default": false
        },
        "terminate_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Terminate Criterion"
        },
        "navigation_goal": {
          "type": "string",
          "title": "Navigation Goal"
        },
        "data_extraction_goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Extraction Goal"
        },
        "data_schema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "items": {},
              "type": "array"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Schema"
        },
        "error_code_mapping": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Code Mapping"
        },
        "max_retries": {
          "type": "integer",
          "title": "Max Retries",
          "default": 0
        },
        "max_steps_per_run": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Steps Per Run"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        },
        "complete_on_download": {
          "type": "boolean",
          "title": "Complete On Download",
          "default": false
        },
        "download_suffix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Suffix"
        },
        "totp_verification_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Verification Url"
        },
        "totp_identifier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Identifier"
        },
        "complete_verification": {
          "type": "boolean",
          "title": "Complete Verification",
          "default": true
        },
        "include_action_history_in_verification": {
          "type": "boolean",
          "title": "Include Action History In Verification",
          "default": false
        },
        "download_timeout": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Timeout"
        },
        "include_extracted_text": {
          "type": "boolean",
          "title": "Include Extracted Text",
          "default": true
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "navigation_goal"
      ],
      "title": "NavigationBlock"
    },
    "OnePasswordCredentialParameter": {
      "properties": {
        "parameter_type": {
          "type": "string",
          "const": "onepassword",
          "title": "Parameter Type",
          "default": "onepassword"
        },
        "key": {
          "type": "string",
          "title": "Key"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "onepassword_credential_parameter_id": {
          "type": "string",
          "title": "Onepassword Credential Parameter Id"
        },
        "workflow_id": {
          "type": "string",
          "title": "Workflow Id"
        },
        "vault_id": {
          "type": "string",
          "title": "Vault Id"
        },
        "item_id": {
          "type": "string",
          "title": "Item Id"
        },
        "totp_field_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Field Name"
        },
        "totp_identifier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Identifier"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "modified_at": {
          "type": "string",
          "format": "date-time",
          "title": "Modified At"
        },
        "deleted_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted At"
        }
      },
      "type": "object",
      "required": [
        "key",
        "onepassword_credential_parameter_id",
        "workflow_id",
        "vault_id",
        "item_id",
        "created_at",
        "modified_at"
      ],
      "title": "OnePasswordCredentialParameter"
    },
    "OutputParameter": {
      "properties": {
        "parameter_type": {
          "type": "string",
          "const": "output",
          "title": "Parameter Type",
          "default": "output"
        },
        "key": {
          "type": "string",
          "title": "Key"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "output_parameter_id": {
          "type": "string",
          "title": "Output Parameter Id"
        },
        "workflow_id": {
          "type": "string",
          "title": "Workflow Id"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "modified_at": {
          "type": "string",
          "format": "date-time",
          "title": "Modified At"
        },
        "deleted_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted At"
        }
      },
      "type": "object",
      "required": [
        "key",
        "output_parameter_id",
        "workflow_id",
        "created_at",
        "modified_at"
      ],
      "title": "OutputParameter"
    },
    "PDFParserBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "pdf_parser",
          "title": "Block Type",
          "default": "pdf_parser"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "file_url": {
          "type": "string",
          "title": "File Url"
        },
        "json_schema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Json Schema"
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "file_url"
      ],
      "title": "PDFParserBlock",
      "description": "DEPRECATED: Use FileParserBlock with file_type=FileType.PDF instead.\nThis block will be removed in a future version."
    },
    "PdfFillBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "pdf_fill",
          "title": "Block Type",
          "default": "pdf_fill"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "file_url": {
          "type": "string",
          "title": "File Url"
        },
        "prompt": {
          "type": "string",
          "title": "Prompt"
        },
        "payload": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "items": {},
              "type": "array"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Payload"
        },
        "llm_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Llm Key"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "file_url",
        "prompt"
      ],
      "title": "PdfFillBlock"
    },
    "PowerBIQueryBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "powerbi_query",
          "title": "Block Type",
          "default": "powerbi_query"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "connection_id": {
          "type": "string",
          "title": "Connection Id"
        },
        "credential_source": {
          "type": "string",
          "enum": [
            "nango",
            "native"
          ],
          "title": "Credential Source",
          "default": "nango"
        },
        "dataset_id": {
          "type": "string",
          "title": "Dataset Id"
        },
        "query": {
          "type": "string",
          "title": "Query"
        },
        "max_rows": {
          "type": "integer",
          "maximum": 100000.0,
          "minimum": 1.0,
          "title": "Max Rows",
          "default": 1000
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "connection_id",
        "dataset_id",
        "query"
      ],
      "title": "PowerBIQueryBlock"
    },
    "PrintPageBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "print_page",
          "title": "Block Type",
          "default": "print_page"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "include_timestamp": {
          "type": "boolean",
          "title": "Include Timestamp",
          "default": true
        },
        "custom_filename": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Custom Filename"
        },
        "format": {
          "type": "string",
          "title": "Format",
          "default": "A4"
        },
        "landscape": {
          "type": "boolean",
          "title": "Landscape",
          "default": false
        },
        "print_background": {
          "type": "boolean",
          "title": "Print Background",
          "default": true
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter"
      ],
      "title": "PrintPageBlock"
    },
    "PromptBranchCriteria": {
      "properties": {
        "criteria_type": {
          "type": "string",
          "const": "prompt",
          "title": "Criteria Type",
          "default": "prompt"
        },
        "expression": {
          "type": "string",
          "title": "Expression"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        }
      },
      "type": "object",
      "required": [
        "expression"
      ],
      "title": "PromptBranchCriteria",
      "description": "Natural language branch criteria."
    },
    "ProxyLocation": {
      "type": "string",
      "enum": [
        "RESIDENTIAL",
        "US-CA",
        "US-NY",
        "US-TX",
        "US-FL",
        "US-WA",
        "RESIDENTIAL_ES",
        "RESIDENTIAL_IE",
        "RESIDENTIAL_GB",
        "RESIDENTIAL_IN",
        "RESIDENTIAL_JP",
        "RESIDENTIAL_FR",
        "RESIDENTIAL_DE",
        "RESIDENTIAL_NZ",
        "RESIDENTIAL_ZA",
        "RESIDENTIAL_AR",
        "RESIDENTIAL_AU",
        "RESIDENTIAL_BR",
        "RESIDENTIAL_TR",
        "RESIDENTIAL_CA",
        "RESIDENTIAL_MX",
        "RESIDENTIAL_IT",
        "RESIDENTIAL_NL",
        "RESIDENTIAL_PH",
        "RESIDENTIAL_KR",
        "RESIDENTIAL_SA",
        "RESIDENTIAL_ISP",
        "NONE"
      ],
      "title": "ProxyLocation"
    },
    "RunEngine": {
      "type": "string",
      "enum": [
        "skyvern-1.0",
        "skyvern-2.0",
        "skyvern-3.0",
        "openai-cua",
        "anthropic-cua",
        "ui-tars"
      ],
      "title": "RunEngine"
    },
    "SendEmailBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "send_email",
          "title": "Block Type",
          "default": "send_email"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "smtp_host": {
          "$ref": "#/$defs/AWSSecretParameter"
        },
        "smtp_port": {
          "$ref": "#/$defs/AWSSecretParameter"
        },
        "smtp_username": {
          "$ref": "#/$defs/AWSSecretParameter"
        },
        "smtp_password": {
          "$ref": "#/$defs/AWSSecretParameter"
        },
        "sender": {
          "type": "string",
          "title": "Sender"
        },
        "recipients": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Recipients"
        },
        "subject": {
          "type": "string",
          "title": "Subject"
        },
        "body": {
          "type": "string",
          "title": "Body"
        },
        "body_format": {
          "$ref": "#/$defs/EmailBodyFormat",
          "default": "text"
        },
        "file_attachments": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "File Attachments",
          "default": []
        },
        "custom_smtp_host": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Custom Smtp Host"
        },
        "custom_smtp_port": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Custom Smtp Port"
        },
        "custom_smtp_username": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Custom Smtp Username"
        },
        "custom_smtp_password": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Custom Smtp Password"
        },
        "transport": {
          "anyOf": [
            {
              "$ref": "#/$defs/EmailTransport"
            },
            {
              "type": "null"
            }
          ]
        },
        "credential_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Credential Id"
        },
        "credential_source": {
          "type": "string",
          "enum": [
            "native",
            "nango"
          ],
          "title": "Credential Source",
          "default": "native"
        },
        "connection_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Connection Id"
        },
        "reply_to_message_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reply To Message Id"
        },
        "cc": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Cc",
          "default": []
        },
        "bcc": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Bcc",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "smtp_host",
        "smtp_port",
        "smtp_username",
        "smtp_password",
        "sender",
        "recipients",
        "subject",
        "body"
      ],
      "title": "SendEmailBlock"
    },
    "SplitPdfBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "split_pdf",
          "title": "Block Type",
          "default": "split_pdf"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "file_url": {
          "type": "string",
          "title": "File Url"
        },
        "prompt": {
          "type": "string",
          "title": "Prompt"
        },
        "llm_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Llm Key"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "file_url",
        "prompt"
      ],
      "title": "SplitPdfBlock"
    },
    "TaskBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "task",
          "title": "Block Type",
          "default": "task"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "task_type": {
          "type": "string",
          "title": "Task Type",
          "default": "general"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "title": {
          "type": "string",
          "title": "Title",
          "default": ""
        },
        "engine": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunEngine"
            },
            {
              "type": "null"
            }
          ]
        },
        "engine_pinned": {
          "type": "boolean",
          "title": "Engine Pinned",
          "default": false
        },
        "complete_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Complete Criterion"
        },
        "complete_criterion_is_untrusted": {
          "type": "boolean",
          "title": "Complete Criterion Is Untrusted",
          "default": false
        },
        "terminate_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Terminate Criterion"
        },
        "navigation_goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Navigation Goal"
        },
        "data_extraction_goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Extraction Goal"
        },
        "data_schema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "items": {},
              "type": "array"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Schema"
        },
        "error_code_mapping": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Code Mapping"
        },
        "max_retries": {
          "type": "integer",
          "title": "Max Retries",
          "default": 0
        },
        "max_steps_per_run": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Steps Per Run"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        },
        "complete_on_download": {
          "type": "boolean",
          "title": "Complete On Download",
          "default": false
        },
        "download_suffix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Suffix"
        },
        "totp_verification_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Verification Url"
        },
        "totp_identifier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Identifier"
        },
        "complete_verification": {
          "type": "boolean",
          "title": "Complete Verification",
          "default": true
        },
        "include_action_history_in_verification": {
          "type": "boolean",
          "title": "Include Action History In Verification",
          "default": false
        },
        "download_timeout": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Timeout"
        },
        "include_extracted_text": {
          "type": "boolean",
          "title": "Include Extracted Text",
          "default": true
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter"
      ],
      "title": "TaskBlock"
    },
    "TaskV2Block": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "task_v2",
          "title": "Block Type",
          "default": "task_v2"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "prompt": {
          "type": "string",
          "title": "Prompt"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "totp_verification_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Verification Url"
        },
        "totp_identifier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Identifier"
        },
        "max_iterations": {
          "type": "integer",
          "title": "Max Iterations",
          "default": 50
        },
        "max_steps": {
          "type": "integer",
          "title": "Max Steps",
          "default": 25
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "prompt"
      ],
      "title": "TaskV2Block"
    },
    "TerminateBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "terminate",
          "title": "Block Type",
          "default": "terminate"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "reason": {
          "type": "string",
          "title": "Reason"
        },
        "error_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Code"
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "reason"
      ],
      "title": "TerminateBlock"
    },
    "TextPromptBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "text_prompt",
          "title": "Block Type",
          "default": "text_prompt"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "llm_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Llm Key"
        },
        "prompt": {
          "type": "string",
          "title": "Prompt"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        },
        "json_schema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Json Schema"
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "prompt"
      ],
      "title": "TextPromptBlock"
    },
    "UploadToS3Block": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "upload_to_s3",
          "title": "Block Type",
          "default": "upload_to_s3"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Path"
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter"
      ],
      "title": "UploadToS3Block"
    },
    "UrlBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "goto_url",
          "title": "Block Type",
          "default": "goto_url"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "task_type": {
          "type": "string",
          "title": "Task Type",
          "default": "general"
        },
        "url": {
          "type": "string",
          "title": "Url"
        },
        "title": {
          "type": "string",
          "title": "Title",
          "default": ""
        },
        "engine": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunEngine"
            },
            {
              "type": "null"
            }
          ],
          "default": "skyvern-1.0"
        },
        "engine_pinned": {
          "type": "boolean",
          "title": "Engine Pinned",
          "default": false
        },
        "complete_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Complete Criterion"
        },
        "complete_criterion_is_untrusted": {
          "type": "boolean",
          "title": "Complete Criterion Is Untrusted",
          "default": false
        },
        "terminate_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Terminate Criterion"
        },
        "navigation_goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Navigation Goal"
        },
        "data_extraction_goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Extraction Goal"
        },
        "data_schema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "items": {},
              "type": "array"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Schema"
        },
        "error_code_mapping": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Code Mapping"
        },
        "max_retries": {
          "type": "integer",
          "title": "Max Retries",
          "default": 0
        },
        "max_steps_per_run": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Steps Per Run"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        },
        "complete_on_download": {
          "type": "boolean",
          "title": "Complete On Download",
          "default": false
        },
        "download_suffix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Suffix"
        },
        "totp_verification_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Verification Url"
        },
        "totp_identifier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Identifier"
        },
        "complete_verification": {
          "type": "boolean",
          "title": "Complete Verification",
          "default": true
        },
        "include_action_history_in_verification": {
          "type": "boolean",
          "title": "Include Action History In Verification",
          "default": false
        },
        "download_timeout": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Timeout"
        },
        "include_extracted_text": {
          "type": "boolean",
          "title": "Include Extracted Text",
          "default": true
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "url"
      ],
      "title": "UrlBlock"
    },
    "ValidationBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "validation",
          "title": "Block Type",
          "default": "validation"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "task_type": {
          "type": "string",
          "title": "Task Type",
          "default": "general"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "title": {
          "type": "string",
          "title": "Title",
          "default": ""
        },
        "engine": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunEngine"
            },
            {
              "type": "null"
            }
          ]
        },
        "engine_pinned": {
          "type": "boolean",
          "title": "Engine Pinned",
          "default": false
        },
        "complete_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Complete Criterion"
        },
        "complete_criterion_is_untrusted": {
          "type": "boolean",
          "title": "Complete Criterion Is Untrusted",
          "default": false
        },
        "terminate_criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Terminate Criterion"
        },
        "navigation_goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Navigation Goal"
        },
        "data_extraction_goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Extraction Goal"
        },
        "data_schema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "items": {},
              "type": "array"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Schema"
        },
        "error_code_mapping": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Code Mapping"
        },
        "max_retries": {
          "type": "integer",
          "title": "Max Retries",
          "default": 0
        },
        "max_steps_per_run": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Steps Per Run"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        },
        "complete_on_download": {
          "type": "boolean",
          "title": "Complete On Download",
          "default": false
        },
        "download_suffix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Suffix"
        },
        "totp_verification_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Verification Url"
        },
        "totp_identifier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totp Identifier"
        },
        "complete_verification": {
          "type": "boolean",
          "title": "Complete Verification",
          "default": true
        },
        "include_action_history_in_verification": {
          "type": "boolean",
          "title": "Include Action History In Verification",
          "default": false
        },
        "download_timeout": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Timeout"
        },
        "include_extracted_text": {
          "type": "boolean",
          "title": "Include Extracted Text",
          "default": true
        },
        "without_page_information": {
          "type": "boolean",
          "title": "Without Page Information",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter"
      ],
      "title": "ValidationBlock"
    },
    "WaitBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "wait",
          "title": "Block Type",
          "default": "wait"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "wait_sec": {
          "type": "integer",
          "title": "Wait Sec"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "wait_sec"
      ],
      "title": "WaitBlock"
    },
    "WebSearchBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "web_search",
          "title": "Block Type",
          "default": "web_search"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "query": {
          "type": "string",
          "minLength": 1,
          "title": "Query"
        },
        "provider": {
          "type": "string",
          "enum": [
            "auto",
            "google",
            "exa"
          ],
          "title": "Provider",
          "default": "auto"
        },
        "num_results": {
          "type": "integer",
          "maximum": 100.0,
          "minimum": 1.0,
          "title": "Num Results",
          "default": 10
        },
        "no_results_error_code": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 100,
              "minLength": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "No Results Error Code",
          "description": "Deprecated. Use error_code_mapping.",
          "deprecated": true
        },
        "no_match_error_code": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 100,
              "minLength": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "No Match Error Code",
          "description": "Deprecated. Use error_code_mapping.",
          "deprecated": true
        },
        "error_code_mapping": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Code Mapping"
        },
        "prompt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Prompt"
        },
        "json_schema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Json Schema"
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "query"
      ],
      "title": "WebSearchBlock"
    },
    "WhileLoopBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "while_loop",
          "title": "Block Type",
          "default": "while_loop"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "loop_blocks": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/ConditionalBlock"
              },
              {
                "$ref": "#/$defs/ForLoopBlock"
              },
              {
                "$ref": "#/$defs/WhileLoopBlock"
              },
              {
                "$ref": "#/$defs/TaskBlock"
              },
              {
                "$ref": "#/$defs/CodeBlock"
              },
              {
                "$ref": "#/$defs/TextPromptBlock"
              },
              {
                "$ref": "#/$defs/DownloadToS3Block"
              },
              {
                "$ref": "#/$defs/UploadToS3Block"
              },
              {
                "$ref": "#/$defs/SendEmailBlock"
              },
              {
                "$ref": "#/$defs/FileParserBlock"
              },
              {
                "$ref": "#/$defs/PDFParserBlock"
              },
              {
                "$ref": "#/$defs/ValidationBlock"
              },
              {
                "$ref": "#/$defs/ActionBlock"
              },
              {
                "$ref": "#/$defs/NavigationBlock"
              },
              {
                "$ref": "#/$defs/ExtractionBlock"
              },
              {
                "$ref": "#/$defs/LoginBlock"
              },
              {
                "$ref": "#/$defs/WaitBlock"
              },
              {
                "$ref": "#/$defs/HumanInteractionBlock"
              },
              {
                "$ref": "#/$defs/FileDownloadBlock"
              },
              {
                "$ref": "#/$defs/UrlBlock"
              },
              {
                "$ref": "#/$defs/TaskV2Block"
              },
              {
                "$ref": "#/$defs/FileUploadBlock"
              },
              {
                "$ref": "#/$defs/HttpRequestBlock"
              },
              {
                "$ref": "#/$defs/WebSearchBlock"
              },
              {
                "$ref": "#/$defs/PrintPageBlock"
              },
              {
                "$ref": "#/$defs/WorkflowTriggerBlock"
              },
              {
                "$ref": "#/$defs/GoogleSheetsReadBlock"
              },
              {
                "$ref": "#/$defs/EmailInboxBlock"
              },
              {
                "$ref": "#/$defs/GoogleSheetsWriteBlock"
              },
              {
                "$ref": "#/$defs/PowerBIQueryBlock"
              },
              {
                "$ref": "#/$defs/IntegrationActionBlock"
              },
              {
                "$ref": "#/$defs/PdfFillBlock"
              },
              {
                "$ref": "#/$defs/SplitPdfBlock"
              },
              {
                "$ref": "#/$defs/DataExportBlock"
              },
              {
                "$ref": "#/$defs/TerminateBlock"
              },
              {
                "$ref": "#/$defs/AgentStepBlock"
              }
            ]
          },
          "type": "array",
          "title": "Loop Blocks"
        },
        "condition": {
          "oneOf": [
            {
              "$ref": "#/$defs/JinjaBranchCriteria"
            },
            {
              "$ref": "#/$defs/PromptBranchCriteria"
            }
          ],
          "title": "Condition"
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "loop_blocks",
        "condition"
      ],
      "title": "WhileLoopBlock",
      "description": "Loop block driven by a runtime condition. Iterates while ``condition`` evaluates truthy.\n\nTop-of-loop semantics: the condition is evaluated *before* each iteration (including the\nfirst). If the condition is false on the first check, the body never runs and the block\nreturns success with an empty output list.\n\nSafety: the loop is capped at ``DEFAULT_MAX_LOOP_ITERATIONS`` (1000). Reaching the cap is\ntreated as a failure so that a misbehaving condition can never spin forever."
    },
    "WorkflowBuildSource": {
      "type": "string",
      "enum": [
        "ui",
        "copilot",
        "mcp",
        "cli",
        "api",
        "internal"
      ],
      "title": "WorkflowBuildSource",
      "description": "Which surface wrote a workflow version.\n\n- ui: the Skyvern app\n- copilot: Ember, Skyvern's agent builder (the value keeps the old name)\n- mcp: a first-party MCP client\n- cli: the Skyvern CLI\n- api: any other API or SDK caller\n- internal: a workflow Skyvern creates for its own runs (task v2, login, credential tests)"
    },
    "WorkflowDefinition": {
      "properties": {
        "version": {
          "type": "integer",
          "title": "Version",
          "default": 1
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters"
        },
        "blocks": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/ConditionalBlock"
              },
              {
                "$ref": "#/$defs/ForLoopBlock"
              },
              {
                "$ref": "#/$defs/WhileLoopBlock"
              },
              {
                "$ref": "#/$defs/TaskBlock"
              },
              {
                "$ref": "#/$defs/CodeBlock"
              },
              {
                "$ref": "#/$defs/TextPromptBlock"
              },
              {
                "$ref": "#/$defs/DownloadToS3Block"
              },
              {
                "$ref": "#/$defs/UploadToS3Block"
              },
              {
                "$ref": "#/$defs/SendEmailBlock"
              },
              {
                "$ref": "#/$defs/FileParserBlock"
              },
              {
                "$ref": "#/$defs/PDFParserBlock"
              },
              {
                "$ref": "#/$defs/ValidationBlock"
              },
              {
                "$ref": "#/$defs/ActionBlock"
              },
              {
                "$ref": "#/$defs/NavigationBlock"
              },
              {
                "$ref": "#/$defs/ExtractionBlock"
              },
              {
                "$ref": "#/$defs/LoginBlock"
              },
              {
                "$ref": "#/$defs/WaitBlock"
              },
              {
                "$ref": "#/$defs/HumanInteractionBlock"
              },
              {
                "$ref": "#/$defs/FileDownloadBlock"
              },
              {
                "$ref": "#/$defs/UrlBlock"
              },
              {
                "$ref": "#/$defs/TaskV2Block"
              },
              {
                "$ref": "#/$defs/FileUploadBlock"
              },
              {
                "$ref": "#/$defs/HttpRequestBlock"
              },
              {
                "$ref": "#/$defs/WebSearchBlock"
              },
              {
                "$ref": "#/$defs/PrintPageBlock"
              },
              {
                "$ref": "#/$defs/WorkflowTriggerBlock"
              },
              {
                "$ref": "#/$defs/GoogleSheetsReadBlock"
              },
              {
                "$ref": "#/$defs/EmailInboxBlock"
              },
              {
                "$ref": "#/$defs/GoogleSheetsWriteBlock"
              },
              {
                "$ref": "#/$defs/PowerBIQueryBlock"
              },
              {
                "$ref": "#/$defs/IntegrationActionBlock"
              },
              {
                "$ref": "#/$defs/PdfFillBlock"
              },
              {
                "$ref": "#/$defs/SplitPdfBlock"
              },
              {
                "$ref": "#/$defs/DataExportBlock"
              },
              {
                "$ref": "#/$defs/TerminateBlock"
              },
              {
                "$ref": "#/$defs/AgentStepBlock"
              }
            ]
          },
          "type": "array",
          "title": "Blocks"
        },
        "finally_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Finally Block Label"
        },
        "error_code_mapping": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Code Mapping"
        },
        "retry_policy": {
          "anyOf": [
            {
              "$ref": "#/$defs/WorkflowRetryPolicy"
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional policy for retrying eligible terminal workflow runs"
        },
        "workflow_system_prompt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Workflow System Prompt"
        },
        "completion_contract": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Completion Contract",
          "description": "Copilot-managed: what a run of this workflow must produce, graded at run finalization. Derived from the request when a workflow is accepted; not intended to be authored by hand."
        },
        "browser_settings": {
          "anyOf": [
            {
              "$ref": "#/$defs/BrowserSettings"
            },
            {
              "type": "null"
            }
          ],
          "description": "Settings applied to every browser this workflow version creates."
        }
      },
      "type": "object",
      "required": [
        "parameters",
        "blocks"
      ],
      "title": "WorkflowDefinition"
    },
    "WorkflowParameter": {
      "properties": {
        "parameter_type": {
          "type": "string",
          "const": "workflow",
          "title": "Parameter Type",
          "default": "workflow"
        },
        "key": {
          "type": "string",
          "title": "Key"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "workflow_parameter_id": {
          "type": "string",
          "title": "Workflow Parameter Id"
        },
        "workflow_parameter_type": {
          "$ref": "#/$defs/WorkflowParameterType"
        },
        "workflow_id": {
          "type": "string",
          "title": "Workflow Id"
        },
        "default_value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "integer"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "items": {},
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Default Value"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "modified_at": {
          "type": "string",
          "format": "date-time",
          "title": "Modified At"
        },
        "deleted_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted At"
        }
      },
      "type": "object",
      "required": [
        "key",
        "workflow_parameter_id",
        "workflow_parameter_type",
        "workflow_id",
        "created_at",
        "modified_at"
      ],
      "title": "WorkflowParameter"
    },
    "WorkflowParameterType": {
      "type": "string",
      "enum": [
        "string",
        "integer",
        "float",
        "boolean",
        "json",
        "file_url",
        "credential_id"
      ],
      "title": "WorkflowParameterType"
    },
    "WorkflowRetryPolicy": {
      "properties": {
        "max_retries": {
          "type": "integer",
          "maximum": 5.0,
          "minimum": 1.0,
          "title": "Max Retries",
          "description": "Maximum number of retries after the initial attempt",
          "default": 1
        },
        "delay_seconds": {
          "type": "integer",
          "maximum": 3600.0,
          "minimum": 0.0,
          "title": "Delay Seconds",
          "description": "Fixed delay before the next attempt, in seconds",
          "default": 0
        },
        "webhook_on_retry": {
          "type": "string",
          "enum": [
            "final_only",
            "every_attempt"
          ],
          "title": "Webhook On Retry",
          "description": "Whether to send a webhook for every attempt or only the final attempt",
          "default": "final_only"
        },
        "retry_on": {
          "items": {
            "$ref": "#/$defs/WorkflowRetryRule"
          },
          "type": "array",
          "minItems": 1,
          "title": "Retry On",
          "description": "Terminal status rules that enable retries"
        }
      },
      "type": "object",
      "required": [
        "retry_on"
      ],
      "title": "WorkflowRetryPolicy"
    },
    "WorkflowRetryRule": {
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "completed",
            "failed",
            "terminated",
            "canceled",
            "timed_out"
          ],
          "title": "Status",
          "description": "Terminal status that triggers a retry rule; canceled is accepted for forward compatibility, but a canceled run never retries in the current runtime, including explicit API/UI cancels."
        },
        "error_codes": {
          "anyOf": [
            {
              "items": {
                "type": "string",
                "minLength": 1
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Codes",
          "description": "Optional error codes. The rule matches when any listed code is present."
        }
      },
      "type": "object",
      "required": [
        "status"
      ],
      "title": "WorkflowRetryRule"
    },
    "WorkflowStatus": {
      "type": "string",
      "enum": [
        "published",
        "draft",
        "auto_generated",
        "importing",
        "import_failed"
      ],
      "title": "WorkflowStatus"
    },
    "WorkflowTriggerBlock": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label",
          "description": "Author-facing identifier for a block; unique within a workflow."
        },
        "next_block_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Block Label",
          "description": "Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted."
        },
        "block_type": {
          "type": "string",
          "const": "workflow_trigger",
          "title": "Block Type",
          "default": "workflow_trigger"
        },
        "output_parameter": {
          "$ref": "#/$defs/OutputParameter"
        },
        "continue_on_failure": {
          "type": "boolean",
          "title": "Continue On Failure",
          "default": false
        },
        "model": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "disable_cache": {
          "type": "boolean",
          "title": "Disable Cache",
          "default": false
        },
        "ignore_workflow_system_prompt": {
          "type": "boolean",
          "title": "Ignore Workflow System Prompt",
          "default": false
        },
        "next_loop_on_failure": {
          "type": "boolean",
          "title": "Next Loop On Failure",
          "default": false
        },
        "workflow_permanent_id": {
          "type": "string",
          "title": "Workflow Permanent Id"
        },
        "payload": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Payload"
        },
        "wait_for_completion": {
          "type": "boolean",
          "title": "Wait For Completion",
          "default": true
        },
        "browser_session_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Browser Session Id"
        },
        "use_parent_browser_session": {
          "type": "boolean",
          "title": "Use Parent Browser Session",
          "default": false
        },
        "parameters": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/WorkflowParameter"
              },
              {
                "$ref": "#/$defs/ContextParameter"
              },
              {
                "$ref": "#/$defs/AWSSecretParameter"
              },
              {
                "$ref": "#/$defs/AzureSecretParameter"
              },
              {
                "$ref": "#/$defs/BitwardenLoginCredentialParameter"
              },
              {
                "$ref": "#/$defs/BitwardenSensitiveInformationParameter"
              },
              {
                "$ref": "#/$defs/BitwardenCreditCardDataParameter"
              },
              {
                "$ref": "#/$defs/OnePasswordCredentialParameter"
              },
              {
                "$ref": "#/$defs/AzureVaultCredentialParameter"
              },
              {
                "$ref": "#/$defs/OutputParameter"
              },
              {
                "$ref": "#/$defs/CredentialParameter"
              }
            ]
          },
          "type": "array",
          "title": "Parameters",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label",
        "output_parameter",
        "workflow_permanent_id"
      ],
      "title": "WorkflowTriggerBlock"
    }
  }
}