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

from __future__ import annotations

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

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

__all__ = ["OpportunityCreateParams", "Fields", "Relationships"]


class OpportunityCreateParams(TypedDict, total=False):
    fields: Required[Fields]

    relationships: Required[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: Required[Annotated[str, PropertyInfo(alias="$name")]]

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


class Relationships(TypedDict, total=False, extra_items=Union[str, SequenceNotStr[str]]):  # type: ignore[call-arg]
    account: Required[Annotated[Union[str, SequenceNotStr[str]], PropertyInfo(alias="$account")]]

    champion: Annotated[Union[str, SequenceNotStr[str]], PropertyInfo(alias="$champion")]

    created_by: Annotated[Union[str, SequenceNotStr[str]], PropertyInfo(alias="$createdBy")]

    evaluator: Annotated[Union[str, SequenceNotStr[str]], PropertyInfo(alias="$evaluator")]

    owner: Annotated[Union[str, SequenceNotStr[str]], PropertyInfo(alias="$owner")]
