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

import typing_extensions
from ..core.serialization import FieldMetadata
from ..types.conditional_step_definition_config_conditions_item_operation import (
    ConditionalStepDefinitionConfigConditionsItemOperation,
)
from ..types.conditional_step_definition_config_conditions_item_type import (
    ConditionalStepDefinitionConfigConditionsItemType,
)


class ConditionalStepDefinitionConfigConditionsItemParams(typing_extensions.TypedDict):
    id: str
    """
    Unique ID for this condition branch.
    """

    type: ConditionalStepDefinitionConfigConditionsItemType
    operation: typing_extensions.NotRequired[ConditionalStepDefinitionConfigConditionsItemOperation]
    """
    The comparison operation for this branch.
    
    See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
    """

    left_operand: typing_extensions.NotRequired[typing_extensions.Annotated[str, FieldMetadata(alias="leftOperand")]]
    """
    The left operand expression. This is typically a workflow variable or dynamic expression.
    
    See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
    """

    right_operand: typing_extensions.NotRequired[typing_extensions.Annotated[str, FieldMetadata(alias="rightOperand")]]
    """
    The right operand value. This is typically a literal comparison value and is omitted for fallback branches like `ELSE`.
    
    See the [Conditional step docs](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api#conditional-step).
    """
