# This file is auto-generated by the CDP protocol generator.
# Do not edit this file manually as your changes will be overwritten.
# Generated from Chrome DevTools Protocol specifications.

"""CDP FedCm Domain Commands"""

from typing_extensions import NotRequired, TypedDict

from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from .types import AccountUrlType
    from .types import DialogButton


class EnableParameters(TypedDict, total=False):
    disableRejectionDelay: "bool"
    """Allows callers to disable the promise rejection delay that would
normally happen, if this is unimportant to what's being tested.
(step 4 of https://fedidcg.github.io/FedCM/#browser-api-rp-sign-in)"""


class SelectAccountParameters(TypedDict):
    dialogId: "str"
    accountIndex: "int"


class ClickDialogButtonParameters(TypedDict):
    dialogId: "str"
    dialogButton: "DialogButton"


class OpenUrlParameters(TypedDict):
    dialogId: "str"
    accountIndex: "int"
    accountUrlType: "AccountUrlType"


class DismissDialogParameters(TypedDict):
    dialogId: "str"
    triggerCooldown: "NotRequired[bool]"
