# This file was auto-generated by Fern from our API Definition.

import typing_extensions
from ..core.serialization import FieldMetadata
from ..types.external_data_validation_step_definition_config_failure_behavior import (
    ExternalDataValidationStepDefinitionConfigFailureBehavior,
)
from .external_data_validation_step_definition_config_request_options import (
    ExternalDataValidationStepDefinitionConfigRequestOptionsParams,
)


class ExternalDataValidationStepDefinitionConfigParams(typing_extensions.TypedDict):
    """
    Optional on create/update. Required before the workflow can be deployed. Omitted in responses when the step is not yet configured.
    """

    request_options: typing_extensions.Annotated[
        ExternalDataValidationStepDefinitionConfigRequestOptionsParams, FieldMetadata(alias="requestOptions")
    ]
    """
    HTTP request configuration for the external validation call.
    
    See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#external-data-validation-step).
    """

    failure_behavior: typing_extensions.NotRequired[
        typing_extensions.Annotated[
            ExternalDataValidationStepDefinitionConfigFailureBehavior, FieldMetadata(alias="failureBehavior")
        ]
    ]
    """
    Whether to continue or exit the workflow on validation failure. Defaults to `CONTINUE`.
    
    See the [External Data Validation step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#external-data-validation-step).
    """
