> ## Documentation Index
> Fetch the complete documentation index at: https://skyvern.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a new agent

> Create a new agent



## OpenAPI

````yaml /api-reference/openapi.json post /v1/agents
openapi: 3.1.0
info:
  title: Skyvern API
  description: API for Skyvern
  version: 1.0.0
servers:
  - url: https://api.skyvern.com
    x-fern-server-name: Cloud
  - url: https://api-staging.skyvern.com
    x-fern-server-name: Staging
  - url: http://localhost:8000
    x-fern-server-name: Local
security: []
paths:
  /v1/agents:
    post:
      tags:
        - Agents
      summary: Create a new agent
      description: Create a new agent
      operationId: create_workflow_v1_agents_post
      parameters:
        - name: folder_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Optional folder ID to assign the workflow to
            title: Folder Id
          description: Optional folder ID to assign the workflow to
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Skyvern API key for authentication. API key can be found at
              https://app.skyvern.com/settings.
            title: X-Api-Key
          description: >-
            Skyvern API key for authentication. API key can be found at
            https://app.skyvern.com/settings.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkflowRequest'
      responses:
        '200':
          description: Successfully created agent
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Workflow'
        '422':
          description: Invalid agent definition
components:
  schemas:
    WorkflowRequest:
      properties:
        json_definition:
          anyOf:
            - $ref: '#/components/schemas/WorkflowCreateYAMLRequest'
            - type: 'null'
          description: Workflow definition in JSON format
        yaml_definition:
          anyOf:
            - type: string
            - type: 'null'
          title: Yaml Definition
          description: Workflow definition in YAML format
      type: object
      title: WorkflowRequest
    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: '#/components/schemas/WorkflowDefinition'
        proxy_location:
          anyOf:
            - $ref: '#/components/schemas/ProxyLocation'
            - $ref: '#/components/schemas/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
        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: '#/components/schemas/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
        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
        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
        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
      title: Workflow
    WorkflowCreateYAMLRequest:
      properties:
        title:
          type: string
          title: Title
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        proxy_location:
          anyOf:
            - $ref: '#/components/schemas/ProxyLocation'
            - $ref: '#/components/schemas/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
        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
        workflow_definition:
          $ref: '#/components/schemas/WorkflowDefinitionYAML'
        is_saved_task:
          type: boolean
          title: Is Saved Task
          default: false
        max_screenshot_scrolls:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Screenshot Scrolls
        max_elapsed_time_minutes:
          anyOf:
            - type: integer
              maximum: 480
              minimum: 1
            - 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
        status:
          $ref: '#/components/schemas/WorkflowStatus'
          default: published
        run_with:
          type: string
          title: Run With
          default: agent
        ai_fallback:
          type: boolean
          title: Ai Fallback
          default: true
        cache_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Cache Key
          default: default
        adaptive_caching:
          type: boolean
          title: Adaptive Caching
          default: false
        code_version:
          anyOf:
            - type: integer
              maximum: 2
              minimum: 1
            - type: 'null'
          title: Code Version
        generate_script_on_terminal:
          type: boolean
          title: Generate Script On Terminal
          default: false
        run_sequentially:
          type: boolean
          title: Prevent Overlapping Runs
          default: false
        sequential_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Sequential Key
        folder_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Folder Id
      type: object
      required:
        - title
        - workflow_definition
      title: WorkflowCreateYAMLRequest
    WorkflowDefinition:
      properties:
        version:
          type: integer
          title: Version
          default: 1
        parameters:
          items:
            oneOf:
              - $ref: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          type: array
          title: Parameters
        blocks:
          items:
            oneOf:
              - $ref: '#/components/schemas/ConditionalBlock'
              - $ref: '#/components/schemas/ForLoopBlock'
              - $ref: '#/components/schemas/WhileLoopBlock'
              - $ref: '#/components/schemas/TaskBlock'
              - $ref: '#/components/schemas/CodeBlock'
              - $ref: '#/components/schemas/TextPromptBlock'
              - $ref: '#/components/schemas/DownloadToS3Block'
              - $ref: '#/components/schemas/UploadToS3Block'
              - $ref: '#/components/schemas/SendEmailBlock'
              - $ref: '#/components/schemas/FileParserBlock'
              - $ref: '#/components/schemas/PDFParserBlock'
              - $ref: '#/components/schemas/ValidationBlock'
              - $ref: '#/components/schemas/ActionBlock'
              - $ref: '#/components/schemas/NavigationBlock'
              - $ref: '#/components/schemas/ExtractionBlock'
              - $ref: '#/components/schemas/LoginBlock'
              - $ref: '#/components/schemas/WaitBlock'
              - $ref: '#/components/schemas/HumanInteractionBlock'
              - $ref: '#/components/schemas/FileDownloadBlock'
              - $ref: '#/components/schemas/UrlBlock'
              - $ref: '#/components/schemas/TaskV2Block'
              - $ref: '#/components/schemas/FileUploadBlock'
              - $ref: '#/components/schemas/HttpRequestBlock'
              - $ref: '#/components/schemas/PrintPageBlock'
              - $ref: '#/components/schemas/WorkflowTriggerBlock'
              - $ref: '#/components/schemas/GoogleSheetsReadBlock'
              - $ref: '#/components/schemas/GoogleSheetsWriteBlock'
              - $ref: '#/components/schemas/PdfFillBlock'
            discriminator:
              propertyName: block_type
              mapping:
                action:
                  $ref: '#/components/schemas/ActionBlock'
                code:
                  $ref: '#/components/schemas/CodeBlock'
                conditional:
                  $ref: '#/components/schemas/ConditionalBlock'
                download_to_s3:
                  $ref: '#/components/schemas/DownloadToS3Block'
                extraction:
                  $ref: '#/components/schemas/ExtractionBlock'
                file_download:
                  $ref: '#/components/schemas/FileDownloadBlock'
                file_upload:
                  $ref: '#/components/schemas/FileUploadBlock'
                file_url_parser:
                  $ref: '#/components/schemas/FileParserBlock'
                for_loop:
                  $ref: '#/components/schemas/ForLoopBlock'
                google_sheets_read:
                  $ref: '#/components/schemas/GoogleSheetsReadBlock'
                google_sheets_write:
                  $ref: '#/components/schemas/GoogleSheetsWriteBlock'
                goto_url:
                  $ref: '#/components/schemas/UrlBlock'
                http_request:
                  $ref: '#/components/schemas/HttpRequestBlock'
                human_interaction:
                  $ref: '#/components/schemas/HumanInteractionBlock'
                login:
                  $ref: '#/components/schemas/LoginBlock'
                navigation:
                  $ref: '#/components/schemas/NavigationBlock'
                pdf_fill:
                  $ref: '#/components/schemas/PdfFillBlock'
                pdf_parser:
                  $ref: '#/components/schemas/PDFParserBlock'
                print_page:
                  $ref: '#/components/schemas/PrintPageBlock'
                send_email:
                  $ref: '#/components/schemas/SendEmailBlock'
                task:
                  $ref: '#/components/schemas/TaskBlock'
                task_v2:
                  $ref: '#/components/schemas/TaskV2Block'
                text_prompt:
                  $ref: '#/components/schemas/TextPromptBlock'
                upload_to_s3:
                  $ref: '#/components/schemas/UploadToS3Block'
                validation:
                  $ref: '#/components/schemas/ValidationBlock'
                wait:
                  $ref: '#/components/schemas/WaitBlock'
                while_loop:
                  $ref: '#/components/schemas/WhileLoopBlock'
                workflow_trigger:
                  $ref: '#/components/schemas/WorkflowTriggerBlock'
          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
        workflow_system_prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: Workflow System Prompt
      type: object
      required:
        - parameters
        - blocks
      title: WorkflowDefinition
    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
    GeoTarget:
      properties:
        country:
          type: string
          maxLength: 2
          minLength: 2
          title: Country
          description: ISO 3166-1 alpha-2 country code (e.g., 'US', 'GB', 'DE')
          examples:
            - US
            - GB
            - DE
            - FR
        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)
          examples:
            - CA
            - NY
            - TX
            - ENG
        city:
          anyOf:
            - type: string
              maxLength: 100
            - type: 'null'
          title: City
          description: >-
            City name in English from GeoNames (e.g., 'New York', 'Los Angeles',
            'London')
          examples:
            - New York
            - Los Angeles
            - London
            - Berlin
      type: object
      required:
        - country
      title: GeoTarget
      description: >-
        Granular proxy geo-targeting request with country, optional subdivision,
        and optional city.
    WorkflowStatus:
      type: string
      enum:
        - published
        - draft
        - auto_generated
        - importing
        - import_failed
      title: WorkflowStatus
    WorkflowDefinitionYAML:
      properties:
        version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Version
        parameters:
          items:
            oneOf:
              - $ref: '#/components/schemas/AWSSecretParameterYAML'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameterYAML'
              - $ref: >-
                  #/components/schemas/BitwardenSensitiveInformationParameterYAML
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameterYAML'
              - $ref: '#/components/schemas/OnePasswordCredentialParameterYAML'
              - $ref: '#/components/schemas/AzureVaultCredentialParameterYAML'
              - $ref: '#/components/schemas/WorkflowParameterYAML'
              - $ref: '#/components/schemas/ContextParameterYAML'
              - $ref: '#/components/schemas/OutputParameterYAML'
              - $ref: '#/components/schemas/CredentialParameterYAML'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameterYAML'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameterYAML'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameterYAML'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameterYAML'
                bitwarden_sensitive_information:
                  $ref: >-
                    #/components/schemas/BitwardenSensitiveInformationParameterYAML
                context:
                  $ref: '#/components/schemas/ContextParameterYAML'
                credential:
                  $ref: '#/components/schemas/CredentialParameterYAML'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameterYAML'
                output:
                  $ref: '#/components/schemas/OutputParameterYAML'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameterYAML'
          type: array
          title: Parameters
        blocks:
          items:
            oneOf:
              - $ref: '#/components/schemas/TaskBlockYAML'
              - $ref: '#/components/schemas/ForLoopBlockYAML'
              - $ref: '#/components/schemas/WhileLoopBlockYAML'
              - $ref: '#/components/schemas/CodeBlockYAML'
              - $ref: '#/components/schemas/TextPromptBlockYAML'
              - $ref: '#/components/schemas/DownloadToS3BlockYAML'
              - $ref: '#/components/schemas/UploadToS3BlockYAML'
              - $ref: '#/components/schemas/FileUploadBlockYAML'
              - $ref: '#/components/schemas/SendEmailBlockYAML'
              - $ref: '#/components/schemas/FileParserBlockYAML'
              - $ref: '#/components/schemas/ValidationBlockYAML'
              - $ref: '#/components/schemas/ActionBlockYAML'
              - $ref: '#/components/schemas/NavigationBlockYAML'
              - $ref: '#/components/schemas/ExtractionBlockYAML'
              - $ref: '#/components/schemas/LoginBlockYAML'
              - $ref: '#/components/schemas/WaitBlockYAML'
              - $ref: '#/components/schemas/HumanInteractionBlockYAML'
              - $ref: '#/components/schemas/FileDownloadBlockYAML'
              - $ref: '#/components/schemas/UrlBlockYAML'
              - $ref: '#/components/schemas/PDFParserBlockYAML'
              - $ref: '#/components/schemas/TaskV2BlockYAML'
              - $ref: '#/components/schemas/HttpRequestBlockYAML'
              - $ref: '#/components/schemas/ConditionalBlockYAML'
              - $ref: '#/components/schemas/PrintPageBlockYAML'
              - $ref: '#/components/schemas/PdfFillBlockYAML'
              - $ref: '#/components/schemas/WorkflowTriggerBlockYAML'
              - $ref: '#/components/schemas/GoogleSheetsReadBlockYAML'
              - $ref: '#/components/schemas/GoogleSheetsWriteBlockYAML'
            discriminator:
              propertyName: block_type
              mapping:
                action:
                  $ref: '#/components/schemas/ActionBlockYAML'
                code:
                  $ref: '#/components/schemas/CodeBlockYAML'
                conditional:
                  $ref: '#/components/schemas/ConditionalBlockYAML'
                download_to_s3:
                  $ref: '#/components/schemas/DownloadToS3BlockYAML'
                extraction:
                  $ref: '#/components/schemas/ExtractionBlockYAML'
                file_download:
                  $ref: '#/components/schemas/FileDownloadBlockYAML'
                file_upload:
                  $ref: '#/components/schemas/FileUploadBlockYAML'
                file_url_parser:
                  $ref: '#/components/schemas/FileParserBlockYAML'
                for_loop:
                  $ref: '#/components/schemas/ForLoopBlockYAML'
                google_sheets_read:
                  $ref: '#/components/schemas/GoogleSheetsReadBlockYAML'
                google_sheets_write:
                  $ref: '#/components/schemas/GoogleSheetsWriteBlockYAML'
                goto_url:
                  $ref: '#/components/schemas/UrlBlockYAML'
                http_request:
                  $ref: '#/components/schemas/HttpRequestBlockYAML'
                human_interaction:
                  $ref: '#/components/schemas/HumanInteractionBlockYAML'
                login:
                  $ref: '#/components/schemas/LoginBlockYAML'
                navigation:
                  $ref: '#/components/schemas/NavigationBlockYAML'
                pdf_fill:
                  $ref: '#/components/schemas/PdfFillBlockYAML'
                pdf_parser:
                  $ref: '#/components/schemas/PDFParserBlockYAML'
                print_page:
                  $ref: '#/components/schemas/PrintPageBlockYAML'
                send_email:
                  $ref: '#/components/schemas/SendEmailBlockYAML'
                task:
                  $ref: '#/components/schemas/TaskBlockYAML'
                task_v2:
                  $ref: '#/components/schemas/TaskV2BlockYAML'
                text_prompt:
                  $ref: '#/components/schemas/TextPromptBlockYAML'
                upload_to_s3:
                  $ref: '#/components/schemas/UploadToS3BlockYAML'
                validation:
                  $ref: '#/components/schemas/ValidationBlockYAML'
                wait:
                  $ref: '#/components/schemas/WaitBlockYAML'
                while_loop:
                  $ref: '#/components/schemas/WhileLoopBlockYAML'
                workflow_trigger:
                  $ref: '#/components/schemas/WorkflowTriggerBlockYAML'
          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
        workflow_system_prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: Workflow System Prompt
      type: object
      required:
        - parameters
        - blocks
      title: WorkflowDefinitionYAML
    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: '#/components/schemas/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
    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: '#/components/schemas/WorkflowParameter'
            - $ref: '#/components/schemas/ContextParameter'
            - $ref: '#/components/schemas/AWSSecretParameter'
            - $ref: '#/components/schemas/AzureSecretParameter'
            - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
            - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
            - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
            - $ref: '#/components/schemas/OnePasswordCredentialParameter'
            - $ref: '#/components/schemas/AzureVaultCredentialParameter'
            - $ref: '#/components/schemas/OutputParameter'
            - $ref: '#/components/schemas/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
    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
    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
    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
        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
    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
    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
        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
    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
    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
    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
        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
    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: '#/components/schemas/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: '#/components/schemas/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.
    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: '#/components/schemas/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: '#/components/schemas/ConditionalBlock'
              - $ref: '#/components/schemas/ForLoopBlock'
              - $ref: '#/components/schemas/WhileLoopBlock'
              - $ref: '#/components/schemas/TaskBlock'
              - $ref: '#/components/schemas/CodeBlock'
              - $ref: '#/components/schemas/TextPromptBlock'
              - $ref: '#/components/schemas/DownloadToS3Block'
              - $ref: '#/components/schemas/UploadToS3Block'
              - $ref: '#/components/schemas/SendEmailBlock'
              - $ref: '#/components/schemas/FileParserBlock'
              - $ref: '#/components/schemas/PDFParserBlock'
              - $ref: '#/components/schemas/ValidationBlock'
              - $ref: '#/components/schemas/ActionBlock'
              - $ref: '#/components/schemas/NavigationBlock'
              - $ref: '#/components/schemas/ExtractionBlock'
              - $ref: '#/components/schemas/LoginBlock'
              - $ref: '#/components/schemas/WaitBlock'
              - $ref: '#/components/schemas/HumanInteractionBlock'
              - $ref: '#/components/schemas/FileDownloadBlock'
              - $ref: '#/components/schemas/UrlBlock'
              - $ref: '#/components/schemas/TaskV2Block'
              - $ref: '#/components/schemas/FileUploadBlock'
              - $ref: '#/components/schemas/HttpRequestBlock'
              - $ref: '#/components/schemas/PrintPageBlock'
              - $ref: '#/components/schemas/WorkflowTriggerBlock'
              - $ref: '#/components/schemas/GoogleSheetsReadBlock'
              - $ref: '#/components/schemas/GoogleSheetsWriteBlock'
              - $ref: '#/components/schemas/PdfFillBlock'
            discriminator:
              propertyName: block_type
              mapping:
                action:
                  $ref: '#/components/schemas/ActionBlock'
                code:
                  $ref: '#/components/schemas/CodeBlock'
                conditional:
                  $ref: '#/components/schemas/ConditionalBlock'
                download_to_s3:
                  $ref: '#/components/schemas/DownloadToS3Block'
                extraction:
                  $ref: '#/components/schemas/ExtractionBlock'
                file_download:
                  $ref: '#/components/schemas/FileDownloadBlock'
                file_upload:
                  $ref: '#/components/schemas/FileUploadBlock'
                file_url_parser:
                  $ref: '#/components/schemas/FileParserBlock'
                for_loop:
                  $ref: '#/components/schemas/ForLoopBlock'
                google_sheets_read:
                  $ref: '#/components/schemas/GoogleSheetsReadBlock'
                google_sheets_write:
                  $ref: '#/components/schemas/GoogleSheetsWriteBlock'
                goto_url:
                  $ref: '#/components/schemas/UrlBlock'
                http_request:
                  $ref: '#/components/schemas/HttpRequestBlock'
                human_interaction:
                  $ref: '#/components/schemas/HumanInteractionBlock'
                login:
                  $ref: '#/components/schemas/LoginBlock'
                navigation:
                  $ref: '#/components/schemas/NavigationBlock'
                pdf_fill:
                  $ref: '#/components/schemas/PdfFillBlock'
                pdf_parser:
                  $ref: '#/components/schemas/PDFParserBlock'
                print_page:
                  $ref: '#/components/schemas/PrintPageBlock'
                send_email:
                  $ref: '#/components/schemas/SendEmailBlock'
                task:
                  $ref: '#/components/schemas/TaskBlock'
                task_v2:
                  $ref: '#/components/schemas/TaskV2Block'
                text_prompt:
                  $ref: '#/components/schemas/TextPromptBlock'
                upload_to_s3:
                  $ref: '#/components/schemas/UploadToS3Block'
                validation:
                  $ref: '#/components/schemas/ValidationBlock'
                wait:
                  $ref: '#/components/schemas/WaitBlock'
                while_loop:
                  $ref: '#/components/schemas/WhileLoopBlock'
                workflow_trigger:
                  $ref: '#/components/schemas/WorkflowTriggerBlock'
          type: array
          title: Loop Blocks
        loop_over:
          anyOf:
            - oneOf:
                - $ref: '#/components/schemas/WorkflowParameter'
                - $ref: '#/components/schemas/ContextParameter'
                - $ref: '#/components/schemas/AWSSecretParameter'
                - $ref: '#/components/schemas/AzureSecretParameter'
                - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                - $ref: '#/components/schemas/OnePasswordCredentialParameter'
                - $ref: '#/components/schemas/AzureVaultCredentialParameter'
                - $ref: '#/components/schemas/OutputParameter'
                - $ref: '#/components/schemas/CredentialParameter'
              discriminator:
                propertyName: parameter_type
                mapping:
                  aws_secret:
                    $ref: '#/components/schemas/AWSSecretParameter'
                  azure_secret:
                    $ref: '#/components/schemas/AzureSecretParameter'
                  azure_vault_credential:
                    $ref: '#/components/schemas/AzureVaultCredentialParameter'
                  bitwarden_credit_card_data:
                    $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                  bitwarden_login_credential:
                    $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                  bitwarden_sensitive_information:
                    $ref: >-
                      #/components/schemas/BitwardenSensitiveInformationParameter
                  context:
                    $ref: '#/components/schemas/ContextParameter'
                  credential:
                    $ref: '#/components/schemas/CredentialParameter'
                  onepassword:
                    $ref: '#/components/schemas/OnePasswordCredentialParameter'
                  output:
                    $ref: '#/components/schemas/OutputParameter'
                  workflow:
                    $ref: '#/components/schemas/WorkflowParameter'
            - 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
    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: '#/components/schemas/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: '#/components/schemas/ConditionalBlock'
              - $ref: '#/components/schemas/ForLoopBlock'
              - $ref: '#/components/schemas/WhileLoopBlock'
              - $ref: '#/components/schemas/TaskBlock'
              - $ref: '#/components/schemas/CodeBlock'
              - $ref: '#/components/schemas/TextPromptBlock'
              - $ref: '#/components/schemas/DownloadToS3Block'
              - $ref: '#/components/schemas/UploadToS3Block'
              - $ref: '#/components/schemas/SendEmailBlock'
              - $ref: '#/components/schemas/FileParserBlock'
              - $ref: '#/components/schemas/PDFParserBlock'
              - $ref: '#/components/schemas/ValidationBlock'
              - $ref: '#/components/schemas/ActionBlock'
              - $ref: '#/components/schemas/NavigationBlock'
              - $ref: '#/components/schemas/ExtractionBlock'
              - $ref: '#/components/schemas/LoginBlock'
              - $ref: '#/components/schemas/WaitBlock'
              - $ref: '#/components/schemas/HumanInteractionBlock'
              - $ref: '#/components/schemas/FileDownloadBlock'
              - $ref: '#/components/schemas/UrlBlock'
              - $ref: '#/components/schemas/TaskV2Block'
              - $ref: '#/components/schemas/FileUploadBlock'
              - $ref: '#/components/schemas/HttpRequestBlock'
              - $ref: '#/components/schemas/PrintPageBlock'
              - $ref: '#/components/schemas/WorkflowTriggerBlock'
              - $ref: '#/components/schemas/GoogleSheetsReadBlock'
              - $ref: '#/components/schemas/GoogleSheetsWriteBlock'
              - $ref: '#/components/schemas/PdfFillBlock'
            discriminator:
              propertyName: block_type
              mapping:
                action:
                  $ref: '#/components/schemas/ActionBlock'
                code:
                  $ref: '#/components/schemas/CodeBlock'
                conditional:
                  $ref: '#/components/schemas/ConditionalBlock'
                download_to_s3:
                  $ref: '#/components/schemas/DownloadToS3Block'
                extraction:
                  $ref: '#/components/schemas/ExtractionBlock'
                file_download:
                  $ref: '#/components/schemas/FileDownloadBlock'
                file_upload:
                  $ref: '#/components/schemas/FileUploadBlock'
                file_url_parser:
                  $ref: '#/components/schemas/FileParserBlock'
                for_loop:
                  $ref: '#/components/schemas/ForLoopBlock'
                google_sheets_read:
                  $ref: '#/components/schemas/GoogleSheetsReadBlock'
                google_sheets_write:
                  $ref: '#/components/schemas/GoogleSheetsWriteBlock'
                goto_url:
                  $ref: '#/components/schemas/UrlBlock'
                http_request:
                  $ref: '#/components/schemas/HttpRequestBlock'
                human_interaction:
                  $ref: '#/components/schemas/HumanInteractionBlock'
                login:
                  $ref: '#/components/schemas/LoginBlock'
                navigation:
                  $ref: '#/components/schemas/NavigationBlock'
                pdf_fill:
                  $ref: '#/components/schemas/PdfFillBlock'
                pdf_parser:
                  $ref: '#/components/schemas/PDFParserBlock'
                print_page:
                  $ref: '#/components/schemas/PrintPageBlock'
                send_email:
                  $ref: '#/components/schemas/SendEmailBlock'
                task:
                  $ref: '#/components/schemas/TaskBlock'
                task_v2:
                  $ref: '#/components/schemas/TaskV2Block'
                text_prompt:
                  $ref: '#/components/schemas/TextPromptBlock'
                upload_to_s3:
                  $ref: '#/components/schemas/UploadToS3Block'
                validation:
                  $ref: '#/components/schemas/ValidationBlock'
                wait:
                  $ref: '#/components/schemas/WaitBlock'
                while_loop:
                  $ref: '#/components/schemas/WhileLoopBlock'
                workflow_trigger:
                  $ref: '#/components/schemas/WorkflowTriggerBlock'
          type: array
          title: Loop Blocks
        condition:
          oneOf:
            - $ref: '#/components/schemas/JinjaBranchCriteria'
            - $ref: '#/components/schemas/PromptBranchCriteria'
          title: Condition
          discriminator:
            propertyName: criteria_type
            mapping:
              jinja2_template:
                $ref: '#/components/schemas/JinjaBranchCriteria'
              prompt:
                $ref: '#/components/schemas/PromptBranchCriteria'
      type: object
      required:
        - label
        - output_parameter
        - loop_blocks
        - condition
      title: WhileLoopBlock
      description: >-
        Loop block driven by a runtime condition. Iterates while ``condition``
        evaluates truthy.


        Top-of-loop semantics: the condition is evaluated *before* each
        iteration (including the

        first). If the condition is false on the first check, the body never
        runs and the block

        returns success with an empty output list.


        Safety: the loop is capped at ``DEFAULT_MAX_LOOP_ITERATIONS`` (500).
        Reaching the cap is

        treated as a failure so that a misbehaving condition can never spin
        forever.
    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: '#/components/schemas/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:
          $ref: '#/components/schemas/RunEngine'
          default: skyvern-1.0
        complete_criterion:
          anyOf:
            - type: string
            - type: 'null'
          title: Complete Criterion
        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: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          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
    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: '#/components/schemas/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: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          type: array
          title: Parameters
          default: []
        prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: Prompt
        steps:
          anyOf:
            - items:
                $ref: '#/components/schemas/CodeBlockStep'
              type: array
            - type: 'null'
          title: Steps
      type: object
      required:
        - label
        - output_parameter
        - code
      title: CodeBlock
    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: '#/components/schemas/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: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          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
    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: '#/components/schemas/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
    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: '#/components/schemas/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
    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: '#/components/schemas/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: '#/components/schemas/AWSSecretParameter'
        smtp_port:
          $ref: '#/components/schemas/AWSSecretParameter'
        smtp_username:
          $ref: '#/components/schemas/AWSSecretParameter'
        smtp_password:
          $ref: '#/components/schemas/AWSSecretParameter'
        sender:
          type: string
          title: Sender
        recipients:
          items:
            type: string
          type: array
          title: Recipients
        subject:
          type: string
          title: Subject
        body:
          type: string
          title: Body
        file_attachments:
          items:
            type: string
          type: array
          title: File Attachments
          default: []
      type: object
      required:
        - label
        - output_parameter
        - smtp_host
        - smtp_port
        - smtp_username
        - smtp_password
        - sender
        - recipients
        - subject
        - body
      title: SendEmailBlock
    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: '#/components/schemas/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: '#/components/schemas/FileType'
          default: auto_detect
        json_schema:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Json Schema
      type: object
      required:
        - label
        - output_parameter
        - file_url
      title: FileParserBlock
    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: '#/components/schemas/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.
        This block will be removed in a future version.
    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: '#/components/schemas/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:
          $ref: '#/components/schemas/RunEngine'
          default: skyvern-1.0
        complete_criterion:
          anyOf:
            - type: string
            - type: 'null'
          title: Complete Criterion
        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: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          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: ValidationBlock
    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: '#/components/schemas/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:
          $ref: '#/components/schemas/RunEngine'
          default: skyvern-1.0
        complete_criterion:
          anyOf:
            - type: string
            - type: 'null'
          title: Complete Criterion
        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: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          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: '#/components/schemas/AIFallbackMode'
          default: fallback
      type: object
      required:
        - label
        - output_parameter
      title: ActionBlock
    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: '#/components/schemas/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:
          $ref: '#/components/schemas/RunEngine'
          default: skyvern-1.0
        complete_criterion:
          anyOf:
            - type: string
            - type: 'null'
          title: Complete Criterion
        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: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          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
    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: '#/components/schemas/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:
          $ref: '#/components/schemas/RunEngine'
          default: skyvern-1.0
        complete_criterion:
          anyOf:
            - type: string
            - type: 'null'
          title: Complete Criterion
        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: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          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
      type: object
      required:
        - label
        - output_parameter
        - data_extraction_goal
      title: ExtractionBlock
    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: '#/components/schemas/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:
          $ref: '#/components/schemas/RunEngine'
          default: skyvern-1.0
        complete_criterion:
          anyOf:
            - type: string
            - type: 'null'
          title: Complete Criterion
        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: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          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
    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: '#/components/schemas/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: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          type: array
          title: Parameters
          default: []
      type: object
      required:
        - label
        - output_parameter
        - wait_sec
      title: WaitBlock
    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: '#/components/schemas/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:
          $ref: '#/components/schemas/RunEngine'
          default: skyvern-1.0
        complete_criterion:
          anyOf:
            - type: string
            - type: 'null'
          title: Complete Criterion
        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: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          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!
      type: object
      required:
        - label
        - output_parameter
      title: HumanInteractionBlock
      description: >-
        A block for human/agent interaction.


        For the first pass at this, the implicit behaviour is that the user is
        given a single binary

        choice (a go//no-go).


        If the human:
          - chooses positively, the workflow continues
          - chooses negatively, the workflow is terminated
          - does not respond within the timeout period, the workflow terminates
    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: '#/components/schemas/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:
          $ref: '#/components/schemas/RunEngine'
          default: skyvern-1.0
        complete_criterion:
          anyOf:
            - type: string
            - type: 'null'
          title: Complete Criterion
        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: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          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: FileDownloadBlock
    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: '#/components/schemas/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:
          $ref: '#/components/schemas/RunEngine'
          default: skyvern-1.0
        complete_criterion:
          anyOf:
            - type: string
            - type: 'null'
          title: Complete Criterion
        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: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          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
    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: '#/components/schemas/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
    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: '#/components/schemas/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
        storage_type:
          $ref: '#/components/schemas/FileStorageType'
          default: s3
        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
        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
        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
      type: object
      required:
        - label
        - output_parameter
      title: FileUploadBlock
    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: '#/components/schemas/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
          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
        parameters:
          items:
            oneOf:
              - $ref: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          type: array
          title: Parameters
          default: []
      type: object
      required:
        - label
        - output_parameter
      title: HttpRequestBlock
    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: '#/components/schemas/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: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          type: array
          title: Parameters
          default: []
      type: object
      required:
        - label
        - output_parameter
      title: PrintPageBlock
    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: '#/components/schemas/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: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          type: array
          title: Parameters
          default: []
      type: object
      required:
        - label
        - output_parameter
        - workflow_permanent_id
      title: WorkflowTriggerBlock
    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: '#/components/schemas/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: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          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: '#/components/schemas/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: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          type: array
          title: Parameters
          default: []
      type: object
      required:
        - label
        - output_parameter
        - spreadsheet_url
      title: GoogleSheetsWriteBlock
    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: '#/components/schemas/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: '#/components/schemas/WorkflowParameter'
              - $ref: '#/components/schemas/ContextParameter'
              - $ref: '#/components/schemas/AWSSecretParameter'
              - $ref: '#/components/schemas/AzureSecretParameter'
              - $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
              - $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
              - $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
              - $ref: '#/components/schemas/OnePasswordCredentialParameter'
              - $ref: '#/components/schemas/AzureVaultCredentialParameter'
              - $ref: '#/components/schemas/OutputParameter'
              - $ref: '#/components/schemas/CredentialParameter'
            discriminator:
              propertyName: parameter_type
              mapping:
                aws_secret:
                  $ref: '#/components/schemas/AWSSecretParameter'
                azure_secret:
                  $ref: '#/components/schemas/AzureSecretParameter'
                azure_vault_credential:
                  $ref: '#/components/schemas/AzureVaultCredentialParameter'
                bitwarden_credit_card_data:
                  $ref: '#/components/schemas/BitwardenCreditCardDataParameter'
                bitwarden_login_credential:
                  $ref: '#/components/schemas/BitwardenLoginCredentialParameter'
                bitwarden_sensitive_information:
                  $ref: '#/components/schemas/BitwardenSensitiveInformationParameter'
                context:
                  $ref: '#/components/schemas/ContextParameter'
                credential:
                  $ref: '#/components/schemas/CredentialParameter'
                onepassword:
                  $ref: '#/components/schemas/OnePasswordCredentialParameter'
                output:
                  $ref: '#/components/schemas/OutputParameter'
                workflow:
                  $ref: '#/components/schemas/WorkflowParameter'
          type: array
          title: Parameters
          default: []
      type: object
      required:
        - label
        - output_parameter
        - file_url
        - prompt
      title: PdfFillBlock
    AWSSecretParameterYAML:
      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_key:
          type: string
          title: Aws Key
      type: object
      required:
        - key
        - aws_key
      title: AWSSecretParameterYAML
    BitwardenLoginCredentialParameterYAML:
      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_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
      type: object
      required:
        - key
        - bitwarden_client_id_aws_secret_key
        - bitwarden_client_secret_aws_secret_key
        - bitwarden_master_password_aws_secret_key
      title: BitwardenLoginCredentialParameterYAML
    BitwardenSensitiveInformationParameterYAML:
      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_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
      type: object
      required:
        - key
        - 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
      title: BitwardenSensitiveInformationParameterYAML
    BitwardenCreditCardDataParameterYAML:
      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_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
      type: object
      required:
        - key
        - bitwarden_client_id_aws_secret_key
        - bitwarden_client_secret_aws_secret_key
        - bitwarden_master_password_aws_secret_key
        - bitwarden_collection_id
        - bitwarden_item_id
      title: BitwardenCreditCardDataParameterYAML
    OnePasswordCredentialParameterYAML:
      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
        vault_id:
          type: string
          title: Vault Id
        item_id:
          type: string
          title: Item Id
      type: object
      required:
        - key
        - vault_id
        - item_id
      title: OnePasswordCredentialParameterYAML
    AzureVaultCredentialParameterYAML:
      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
        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
      type: object
      required:
        - key
        - vault_name
        - username_key
        - password_key
      title: AzureVaultCredentialParameterYAML
    WorkflowParameterYAML:
      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_type:
          $ref: '#/components/schemas/WorkflowParameterType'
        default_value:
          anyOf:
            - type: string
            - type: integer
            - type: number
            - type: boolean
            - additionalProperties: true
              type: object
            - items: {}
              type: array
            - type: 'null'
          title: Default Value
      type: object
      required:
        - key
        - workflow_parameter_type
      title: WorkflowParameterYAML
    ContextParameterYAML:
      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_parameter_key:
          type: string
          title: Source Parameter Key
      type: object
      required:
        - key
        - source_parameter_key
      title: ContextParameterYAML
    OutputParameterYAML:
      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
      type: object
      required:
        - key
      title: OutputParameterYAML
    CredentialParameterYAML:
      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_id:
          type: string
          title: Credential Id
      type: object
      required:
        - key
        - credential_id
      title: CredentialParameterYAML
    TaskBlockYAML:
      properties:
        block_type:
          type: string
          const: task
          title: Block Type
          default: task
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        title:
          type: string
          title: Title
          default: ''
        engine:
          $ref: '#/components/schemas/RunEngine'
          default: skyvern-1.0
        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
        parameter_keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Parameter Keys
        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
        disable_cache:
          type: boolean
          title: Disable Cache
          default: false
        complete_criterion:
          anyOf:
            - type: string
            - type: 'null'
          title: Complete Criterion
        terminate_criterion:
          anyOf:
            - type: string
            - type: 'null'
          title: Terminate Criterion
        complete_verification:
          type: boolean
          title: Complete Verification
          default: true
        include_action_history_in_verification:
          type: boolean
          title: Include Action History In Verification
          default: false
      type: object
      required:
        - label
      title: TaskBlockYAML
    ForLoopBlockYAML:
      properties:
        block_type:
          type: string
          const: for_loop
          title: Block Type
          default: for_loop
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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:
            anyOf:
              - $ref: '#/components/schemas/TaskBlockYAML'
              - $ref: '#/components/schemas/ForLoopBlockYAML'
              - $ref: '#/components/schemas/WhileLoopBlockYAML'
              - $ref: '#/components/schemas/CodeBlockYAML'
              - $ref: '#/components/schemas/TextPromptBlockYAML'
              - $ref: '#/components/schemas/DownloadToS3BlockYAML'
              - $ref: '#/components/schemas/UploadToS3BlockYAML'
              - $ref: '#/components/schemas/FileUploadBlockYAML'
              - $ref: '#/components/schemas/SendEmailBlockYAML'
              - $ref: '#/components/schemas/FileParserBlockYAML'
              - $ref: '#/components/schemas/ValidationBlockYAML'
              - $ref: '#/components/schemas/ActionBlockYAML'
              - $ref: '#/components/schemas/NavigationBlockYAML'
              - $ref: '#/components/schemas/ExtractionBlockYAML'
              - $ref: '#/components/schemas/LoginBlockYAML'
              - $ref: '#/components/schemas/WaitBlockYAML'
              - $ref: '#/components/schemas/HumanInteractionBlockYAML'
              - $ref: '#/components/schemas/FileDownloadBlockYAML'
              - $ref: '#/components/schemas/UrlBlockYAML'
              - $ref: '#/components/schemas/PDFParserBlockYAML'
              - $ref: '#/components/schemas/TaskV2BlockYAML'
              - $ref: '#/components/schemas/HttpRequestBlockYAML'
              - $ref: '#/components/schemas/ConditionalBlockYAML'
              - $ref: '#/components/schemas/PrintPageBlockYAML'
              - $ref: '#/components/schemas/PdfFillBlockYAML'
              - $ref: '#/components/schemas/WorkflowTriggerBlockYAML'
              - $ref: '#/components/schemas/GoogleSheetsReadBlockYAML'
              - $ref: '#/components/schemas/GoogleSheetsWriteBlockYAML'
          type: array
          title: Loop Blocks
        loop_over_parameter_key:
          type: string
          title: Loop Over Parameter Key
          default: ''
        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
        - loop_blocks
      title: ForLoopBlockYAML
    WhileLoopBlockYAML:
      properties:
        block_type:
          type: string
          const: while_loop
          title: Block Type
          default: while_loop
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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:
            anyOf:
              - $ref: '#/components/schemas/TaskBlockYAML'
              - $ref: '#/components/schemas/ForLoopBlockYAML'
              - $ref: '#/components/schemas/WhileLoopBlockYAML'
              - $ref: '#/components/schemas/CodeBlockYAML'
              - $ref: '#/components/schemas/TextPromptBlockYAML'
              - $ref: '#/components/schemas/DownloadToS3BlockYAML'
              - $ref: '#/components/schemas/UploadToS3BlockYAML'
              - $ref: '#/components/schemas/FileUploadBlockYAML'
              - $ref: '#/components/schemas/SendEmailBlockYAML'
              - $ref: '#/components/schemas/FileParserBlockYAML'
              - $ref: '#/components/schemas/ValidationBlockYAML'
              - $ref: '#/components/schemas/ActionBlockYAML'
              - $ref: '#/components/schemas/NavigationBlockYAML'
              - $ref: '#/components/schemas/ExtractionBlockYAML'
              - $ref: '#/components/schemas/LoginBlockYAML'
              - $ref: '#/components/schemas/WaitBlockYAML'
              - $ref: '#/components/schemas/HumanInteractionBlockYAML'
              - $ref: '#/components/schemas/FileDownloadBlockYAML'
              - $ref: '#/components/schemas/UrlBlockYAML'
              - $ref: '#/components/schemas/PDFParserBlockYAML'
              - $ref: '#/components/schemas/TaskV2BlockYAML'
              - $ref: '#/components/schemas/HttpRequestBlockYAML'
              - $ref: '#/components/schemas/ConditionalBlockYAML'
              - $ref: '#/components/schemas/PrintPageBlockYAML'
              - $ref: '#/components/schemas/PdfFillBlockYAML'
              - $ref: '#/components/schemas/WorkflowTriggerBlockYAML'
              - $ref: '#/components/schemas/GoogleSheetsReadBlockYAML'
              - $ref: '#/components/schemas/GoogleSheetsWriteBlockYAML'
          type: array
          title: Loop Blocks
        condition:
          $ref: '#/components/schemas/BranchCriteriaYAML'
      type: object
      required:
        - label
        - loop_blocks
        - condition
      title: WhileLoopBlockYAML
    CodeBlockYAML:
      properties:
        block_type:
          type: string
          const: code
          title: Block Type
          default: code
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
        parameter_keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Parameter Keys
        prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: Prompt
        steps:
          anyOf:
            - items:
                $ref: '#/components/schemas/CodeBlockStepYAML'
              type: array
            - type: 'null'
          title: Steps
      type: object
      required:
        - label
        - code
      title: CodeBlockYAML
    TextPromptBlockYAML:
      properties:
        block_type:
          type: string
          const: text_prompt
          title: Block Type
          default: text_prompt
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
        parameter_keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Parameter Keys
        json_schema:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Json Schema
      type: object
      required:
        - label
        - prompt
      title: TextPromptBlockYAML
    DownloadToS3BlockYAML:
      properties:
        block_type:
          type: string
          const: download_to_s3
          title: Block Type
          default: download_to_s3
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
        - url
      title: DownloadToS3BlockYAML
    UploadToS3BlockYAML:
      properties:
        block_type:
          type: string
          const: upload_to_s3
          title: Block Type
          default: upload_to_s3
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
      title: UploadToS3BlockYAML
    FileUploadBlockYAML:
      properties:
        block_type:
          type: string
          const: file_upload
          title: Block Type
          default: file_upload
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
        storage_type:
          $ref: '#/components/schemas/FileStorageType'
          default: s3
        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
        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
        azure_folder_path:
          anyOf:
            - type: string
            - type: 'null'
          title: Azure Folder Path
        path:
          anyOf:
            - type: string
            - type: 'null'
          title: Path
      type: object
      required:
        - label
      title: FileUploadBlockYAML
    SendEmailBlockYAML:
      properties:
        block_type:
          type: string
          const: send_email
          title: Block Type
          default: send_email
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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_secret_parameter_key:
          type: string
          title: Smtp Host Secret Parameter Key
        smtp_port_secret_parameter_key:
          type: string
          title: Smtp Port Secret Parameter Key
        smtp_username_secret_parameter_key:
          type: string
          title: Smtp Username Secret Parameter Key
        smtp_password_secret_parameter_key:
          type: string
          title: Smtp Password Secret Parameter Key
        sender:
          type: string
          title: Sender
        recipients:
          items:
            type: string
          type: array
          title: Recipients
        subject:
          type: string
          title: Subject
        body:
          type: string
          title: Body
        file_attachments:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: File Attachments
      type: object
      required:
        - label
        - smtp_host_secret_parameter_key
        - smtp_port_secret_parameter_key
        - smtp_username_secret_parameter_key
        - smtp_password_secret_parameter_key
        - sender
        - recipients
        - subject
        - body
      title: SendEmailBlockYAML
    FileParserBlockYAML:
      properties:
        block_type:
          type: string
          const: file_url_parser
          title: Block Type
          default: file_url_parser
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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: '#/components/schemas/FileType'
          default: auto_detect
        json_schema:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Json Schema
      type: object
      required:
        - label
        - file_url
      title: FileParserBlockYAML
    ValidationBlockYAML:
      properties:
        block_type:
          type: string
          const: validation
          title: Block Type
          default: validation
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
        complete_criterion:
          anyOf:
            - type: string
            - type: 'null'
          title: Complete Criterion
        terminate_criterion:
          anyOf:
            - type: string
            - type: 'null'
          title: Terminate Criterion
        error_code_mapping:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Error Code Mapping
        parameter_keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Parameter Keys
        disable_cache:
          type: boolean
          title: Disable Cache
          default: false
      type: object
      required:
        - label
      title: ValidationBlockYAML
    ActionBlockYAML:
      properties:
        block_type:
          type: string
          const: action
          title: Block Type
          default: action
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        title:
          type: string
          title: Title
          default: ''
        engine:
          $ref: '#/components/schemas/RunEngine'
          default: skyvern-1.0
        navigation_goal:
          anyOf:
            - type: string
            - type: 'null'
          title: Navigation Goal
        selector:
          anyOf:
            - type: string
            - type: 'null'
          title: Selector
        ai_fallback:
          $ref: '#/components/schemas/AIFallbackMode'
          default: fallback
        error_code_mapping:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Error Code Mapping
        max_retries:
          type: integer
          title: Max Retries
          default: 0
        parameter_keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Parameter Keys
        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
        disable_cache:
          type: boolean
          title: Disable Cache
          default: false
      type: object
      required:
        - label
      title: ActionBlockYAML
    NavigationBlockYAML:
      properties:
        block_type:
          type: string
          const: navigation
          title: Block Type
          default: navigation
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
        navigation_goal:
          type: string
          title: Navigation Goal
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        title:
          type: string
          title: Title
          default: ''
        engine:
          $ref: '#/components/schemas/RunEngine'
          default: skyvern-1.0
        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
        parameter_keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Parameter Keys
        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
        disable_cache:
          type: boolean
          title: Disable Cache
          default: false
        complete_criterion:
          anyOf:
            - type: string
            - type: 'null'
          title: Complete Criterion
        terminate_criterion:
          anyOf:
            - type: string
            - type: 'null'
          title: Terminate Criterion
        complete_verification:
          type: boolean
          title: Complete Verification
          default: true
        include_action_history_in_verification:
          type: boolean
          title: Include Action History In Verification
          default: false
      type: object
      required:
        - label
        - navigation_goal
      title: NavigationBlockYAML
    ExtractionBlockYAML:
      properties:
        block_type:
          type: string
          const: extraction
          title: Block Type
          default: extraction
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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_extraction_goal:
          type: string
          title: Data Extraction Goal
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        title:
          type: string
          title: Title
          default: ''
        engine:
          $ref: '#/components/schemas/RunEngine'
          default: skyvern-1.0
        data_schema:
          anyOf:
            - additionalProperties: true
              type: object
            - items: {}
              type: array
            - type: string
            - type: 'null'
          title: Data Schema
        max_retries:
          type: integer
          title: Max Retries
          default: 0
        max_steps_per_run:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Steps Per Run
        parameter_keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Parameter Keys
        disable_cache:
          type: boolean
          title: Disable Cache
          default: false
      type: object
      required:
        - label
        - data_extraction_goal
      title: ExtractionBlockYAML
    LoginBlockYAML:
      properties:
        block_type:
          type: string
          const: login
          title: Block Type
          default: login
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        title:
          type: string
          title: Title
          default: ''
        engine:
          $ref: '#/components/schemas/RunEngine'
          default: skyvern-1.0
        navigation_goal:
          anyOf:
            - type: string
            - type: 'null'
          title: Navigation Goal
        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
        parameter_keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Parameter Keys
        totp_verification_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Totp Verification Url
        totp_identifier:
          anyOf:
            - type: string
            - type: 'null'
          title: Totp Identifier
        disable_cache:
          type: boolean
          title: Disable Cache
          default: false
        complete_criterion:
          anyOf:
            - type: string
            - type: 'null'
          title: Complete Criterion
        terminate_criterion:
          anyOf:
            - type: string
            - type: 'null'
          title: Terminate Criterion
        complete_verification:
          type: boolean
          title: Complete Verification
          default: true
        skip_saved_profile:
          type: boolean
          title: Skip Saved Profile
          default: false
      type: object
      required:
        - label
      title: LoginBlockYAML
    WaitBlockYAML:
      properties:
        block_type:
          type: string
          const: wait
          title: Block Type
          default: wait
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
          default: 0
      type: object
      required:
        - label
      title: WaitBlockYAML
    HumanInteractionBlockYAML:
      properties:
        block_type:
          type: string
          const: human_interaction
          title: Block Type
          default: human_interaction
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
        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
        sender:
          type: string
          title: Sender
        recipients:
          items:
            type: string
          type: array
          title: Recipients
        subject:
          type: string
          title: Subject
        body:
          type: string
          title: Body
      type: object
      required:
        - label
        - timeout_seconds
        - sender
        - recipients
        - subject
        - body
      title: HumanInteractionBlockYAML
    FileDownloadBlockYAML:
      properties:
        block_type:
          type: string
          const: file_download
          title: Block Type
          default: file_download
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
        navigation_goal:
          type: string
          title: Navigation Goal
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        title:
          type: string
          title: Title
          default: ''
        engine:
          $ref: '#/components/schemas/RunEngine'
          default: skyvern-1.0
        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
        parameter_keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Parameter Keys
        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
        disable_cache:
          type: boolean
          title: Disable Cache
          default: false
        download_timeout:
          anyOf:
            - type: number
            - type: 'null'
          title: Download Timeout
      type: object
      required:
        - label
        - navigation_goal
      title: FileDownloadBlockYAML
    UrlBlockYAML:
      properties:
        block_type:
          type: string
          const: goto_url
          title: Block Type
          default: goto_url
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
        - url
      title: UrlBlockYAML
    PDFParserBlockYAML:
      properties:
        block_type:
          type: string
          const: pdf_parser
          title: Block Type
          default: pdf_parser
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
        - file_url
      title: PDFParserBlockYAML
    TaskV2BlockYAML:
      properties:
        block_type:
          type: string
          const: task_v2
          title: Block Type
          default: task_v2
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
        disable_cache:
          type: boolean
          title: Disable Cache
          default: false
      type: object
      required:
        - label
        - prompt
      title: TaskV2BlockYAML
    HttpRequestBlockYAML:
      properties:
        block_type:
          type: string
          const: http_request
          title: Block Type
          default: http_request
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
          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
        parameter_keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Parameter Keys
      type: object
      required:
        - label
      title: HttpRequestBlockYAML
    ConditionalBlockYAML:
      properties:
        block_type:
          type: string
          const: conditional
          title: Block Type
          default: conditional
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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: '#/components/schemas/BranchConditionYAML'
          type: array
          title: Branch Conditions
      type: object
      required:
        - label
      title: ConditionalBlockYAML
    PrintPageBlockYAML:
      properties:
        block_type:
          type: string
          const: print_page
          title: Block Type
          default: print_page
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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:
          $ref: '#/components/schemas/PDFFormat'
          default: A4
        landscape:
          type: boolean
          title: Landscape
          default: false
        print_background:
          type: boolean
          title: Print Background
          default: true
        parameter_keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Parameter Keys
      type: object
      required:
        - label
      title: PrintPageBlockYAML
    PdfFillBlockYAML:
      properties:
        block_type:
          type: string
          const: pdf_fill
          title: Block Type
          default: pdf_fill
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
        parameter_keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Parameter Keys
      type: object
      required:
        - label
        - file_url
        - prompt
      title: PdfFillBlockYAML
    WorkflowTriggerBlockYAML:
      properties:
        block_type:
          type: string
          const: workflow_trigger
          title: Block Type
          default: workflow_trigger
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
        parameter_keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Parameter Keys
      type: object
      required:
        - label
        - workflow_permanent_id
      title: WorkflowTriggerBlockYAML
    GoogleSheetsReadBlockYAML:
      properties:
        block_type:
          type: string
          const: google_sheets_read
          title: Block Type
          default: google_sheets_read
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
        parameter_keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Parameter Keys
      type: object
      required:
        - label
        - spreadsheet_url
      title: GoogleSheetsReadBlockYAML
    GoogleSheetsWriteBlockYAML:
      properties:
        block_type:
          type: string
          const: google_sheets_write
          title: Block Type
          default: google_sheets_write
        label:
          type: string
          title: Label
          description: Author-facing identifier; must be unique per workflow.
        next_block_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Block Label
          description: >-
            Optional pointer to the label of the next block. When omitted, it
            will default to sequential order. See [[s-4bnl]].
        continue_on_failure:
          type: boolean
          title: Continue On Failure
          default: false
        model:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model
        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
        parameter_keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Parameter Keys
      type: object
      required:
        - label
        - spreadsheet_url
      title: GoogleSheetsWriteBlockYAML
    WorkflowParameterType:
      type: string
      enum:
        - string
        - integer
        - float
        - boolean
        - json
        - file_url
        - credential_id
      title: WorkflowParameterType
    BranchCondition:
      properties:
        id:
          type: string
          title: Id
        criteria:
          anyOf:
            - oneOf:
                - $ref: '#/components/schemas/JinjaBranchCriteria'
                - $ref: '#/components/schemas/PromptBranchCriteria'
              discriminator:
                propertyName: criteria_type
                mapping:
                  jinja2_template:
                    $ref: '#/components/schemas/JinjaBranchCriteria'
                  prompt:
                    $ref: '#/components/schemas/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.
    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).
    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.
    RunEngine:
      type: string
      enum:
        - skyvern-1.0
        - skyvern-2.0
        - openai-cua
        - anthropic-cua
        - ui-tars
        - yutori-navigator
      title: RunEngine
    CodeBlockStep:
      properties:
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        action_type:
          $ref: '#/components/schemas/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
    FileType:
      type: string
      enum:
        - auto_detect
        - csv
        - excel
        - pdf
        - image
        - docx
      title: FileType
    AIFallbackMode:
      type: string
      enum:
        - fallback
        - proactive
      title: AIFallbackMode
      description: >-
        Controls how an action block uses a CSS/XPath selector relative to AI.


        - `fallback`: attempt the selector first; fall back to AI on failure.

        - `proactive`: always use AI; the selector (if any) is a hint only.


        When `selector` is None, both modes degrade to AI-only — the difference

        is purely semantic (whether the author expected to have a selector
        here).
    FileStorageType:
      type: string
      enum:
        - s3
        - azure
      title: FileStorageType
    BranchCriteriaYAML:
      properties:
        criteria_type:
          type: string
          enum:
            - jinja2_template
            - prompt
          title: Criteria Type
          default: jinja2_template
        expression:
          type: string
          title: Expression
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
      type: object
      required:
        - expression
      title: BranchCriteriaYAML
    CodeBlockStepYAML:
      properties:
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        action_type:
          type: string
          title: Action Type
          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: CodeBlockStepYAML
    BranchConditionYAML:
      properties:
        criteria:
          anyOf:
            - $ref: '#/components/schemas/BranchCriteriaYAML'
            - type: 'null'
        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: BranchConditionYAML
    PDFFormat:
      type: string
      enum:
        - A4
        - Letter
        - Legal
        - Tabloid
      title: PDFFormat
    ActionType:
      type: string
      enum:
        - click
        - input_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

````