# 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 BrowserUse Domain Events"""

from typing_extensions import NotRequired, TypedDict

from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from ..target.types import TargetID

"""Captcha solving started."""


class CaptchaSolverStartedEvent(TypedDict):
    targetId: "TargetID"
    vendor: "str"
    url: "str"
    startedAt: "int"
    """Unix millis"""
    eventTimeout: "NotRequired[float]"


"""Captcha solving finished."""


class CaptchaSolverFinishedEvent(TypedDict):
    targetId: "TargetID"
    vendor: "str"
    url: "str"
    durationMs: "int"
    finishedAt: "int"
    """Unix millis"""
    success: "bool"
    """Whether the captcha was solved successfully"""
    eventTimeout: "NotRequired[float]"


"""Fired when a target is activated via Target.activateTarget."""


class ActiveTargetChangedEvent(TypedDict):
    targetId: "TargetID"
    eventTimeout: "NotRequired[float]"
