# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing import Dict, Union, Iterable, Optional
from typing_extensions import Annotated, TypedDict

from .._types import SequenceNotStr
from .._utils import PropertyInfo

__all__ = [
    "OpportunityUpdateParams",
    "Fields",
    "Relationships",
    "RelationshipsChampion",
    "RelationshipsEvaluator",
    "RelationshipsOwner",
    "Relationship",
]


class OpportunityUpdateParams(TypedDict, total=False):
    fields: Fields

    relationships: Relationships


class Fields(
    TypedDict,
    total=False,
    extra_items=Union[
        str,
        float,
        bool,
        SequenceNotStr[Union[str, float, bool, Iterable[object], Dict[str, object], None]],
        Dict[str, Union[str, float, bool, Iterable[object], Dict[str, object], None]],
        None,
    ],
):  # type: ignore[call-arg]
    name: Annotated[Optional[str], PropertyInfo(alias="$name")]

    stage: Annotated[Optional[str], PropertyInfo(alias="$stage")]


class RelationshipsChampion(TypedDict, total=False):
    add: Union[str, SequenceNotStr[str]]

    remove: Union[str, SequenceNotStr[str]]

    replace: Union[str, SequenceNotStr[str]]


class RelationshipsEvaluator(TypedDict, total=False):
    add: Union[str, SequenceNotStr[str]]

    remove: Union[str, SequenceNotStr[str]]

    replace: Union[str, SequenceNotStr[str]]


class RelationshipsOwner(TypedDict, total=False):
    add: Union[str, SequenceNotStr[str]]

    remove: Union[str, SequenceNotStr[str]]

    replace: Union[str, SequenceNotStr[str]]


class Relationship(TypedDict, total=False):
    add: Union[str, SequenceNotStr[str]]

    remove: Union[str, SequenceNotStr[str]]

    replace: Union[str, SequenceNotStr[str]]


class Relationships(TypedDict, total=False, extra_items=Relationship):  # type: ignore[call-arg]
    champion: Annotated[RelationshipsChampion, PropertyInfo(alias="$champion")]

    evaluator: Annotated[RelationshipsEvaluator, PropertyInfo(alias="$evaluator")]

    owner: Annotated[RelationshipsOwner, PropertyInfo(alias="$owner")]
