parsek-cdp 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- parsek_cdp/__init__.py +55 -0
- parsek_cdp/_logging.py +49 -0
- parsek_cdp/cdp/__init__.py +247 -0
- parsek_cdp/cdp/accessibility/__init__.py +15 -0
- parsek_cdp/cdp/accessibility/events.py +35 -0
- parsek_cdp/cdp/accessibility/functions.py +202 -0
- parsek_cdp/cdp/accessibility/types.py +235 -0
- parsek_cdp/cdp/animation/__init__.py +15 -0
- parsek_cdp/cdp/animation/events.py +52 -0
- parsek_cdp/cdp/animation/functions.py +140 -0
- parsek_cdp/cdp/animation/types.py +113 -0
- parsek_cdp/cdp/audits/__init__.py +15 -0
- parsek_cdp/cdp/audits/events.py +21 -0
- parsek_cdp/cdp/audits/functions.py +95 -0
- parsek_cdp/cdp/audits/types.py +1051 -0
- parsek_cdp/cdp/autofill/__init__.py +15 -0
- parsek_cdp/cdp/autofill/events.py +27 -0
- parsek_cdp/cdp/autofill/functions.py +64 -0
- parsek_cdp/cdp/autofill/types.py +108 -0
- parsek_cdp/cdp/backgroundservice/__init__.py +15 -0
- parsek_cdp/cdp/backgroundservice/events.py +40 -0
- parsek_cdp/cdp/backgroundservice/functions.py +59 -0
- parsek_cdp/cdp/backgroundservice/types.py +63 -0
- parsek_cdp/cdp/bluetoothemulation/__init__.py +15 -0
- parsek_cdp/cdp/bluetoothemulation/events.py +70 -0
- parsek_cdp/cdp/bluetoothemulation/functions.py +247 -0
- parsek_cdp/cdp/bluetoothemulation/types.py +120 -0
- parsek_cdp/cdp/browser/__init__.py +15 -0
- parsek_cdp/cdp/browser/events.py +46 -0
- parsek_cdp/cdp/browser/functions.py +350 -0
- parsek_cdp/cdp/browser/types.py +158 -0
- parsek_cdp/cdp/cachestorage/__init__.py +15 -0
- parsek_cdp/cdp/cachestorage/events.py +13 -0
- parsek_cdp/cdp/cachestorage/functions.py +126 -0
- parsek_cdp/cdp/cachestorage/types.py +89 -0
- parsek_cdp/cdp/cast/__init__.py +15 -0
- parsek_cdp/cdp/cast/events.py +38 -0
- parsek_cdp/cdp/cast/functions.py +77 -0
- parsek_cdp/cdp/cast/types.py +23 -0
- parsek_cdp/cdp/console/__init__.py +15 -0
- parsek_cdp/cdp/console/events.py +22 -0
- parsek_cdp/cdp/console/functions.py +36 -0
- parsek_cdp/cdp/console/types.py +30 -0
- parsek_cdp/cdp/css/__init__.py +15 -0
- parsek_cdp/cdp/css/events.py +79 -0
- parsek_cdp/cdp/css/functions.py +788 -0
- parsek_cdp/cdp/css/types.py +742 -0
- parsek_cdp/cdp/debugger/__init__.py +15 -0
- parsek_cdp/cdp/debugger/events.py +164 -0
- parsek_cdp/cdp/debugger/functions.py +663 -0
- parsek_cdp/cdp/debugger/types.py +171 -0
- parsek_cdp/cdp/deviceaccess/__init__.py +15 -0
- parsek_cdp/cdp/deviceaccess/events.py +30 -0
- parsek_cdp/cdp/deviceaccess/functions.py +54 -0
- parsek_cdp/cdp/deviceaccess/types.py +28 -0
- parsek_cdp/cdp/deviceorientation/__init__.py +15 -0
- parsek_cdp/cdp/deviceorientation/events.py +13 -0
- parsek_cdp/cdp/deviceorientation/functions.py +35 -0
- parsek_cdp/cdp/deviceorientation/types.py +10 -0
- parsek_cdp/cdp/dom/__init__.py +15 -0
- parsek_cdp/cdp/dom/events.py +228 -0
- parsek_cdp/cdp/dom/functions.py +1033 -0
- parsek_cdp/cdp/dom/types.py +293 -0
- parsek_cdp/cdp/domdebugger/__init__.py +15 -0
- parsek_cdp/cdp/domdebugger/events.py +13 -0
- parsek_cdp/cdp/domdebugger/functions.py +155 -0
- parsek_cdp/cdp/domdebugger/types.py +57 -0
- parsek_cdp/cdp/domsnapshot/__init__.py +15 -0
- parsek_cdp/cdp/domsnapshot/events.py +13 -0
- parsek_cdp/cdp/domsnapshot/functions.py +111 -0
- parsek_cdp/cdp/domsnapshot/types.py +312 -0
- parsek_cdp/cdp/domstorage/__init__.py +15 -0
- parsek_cdp/cdp/domstorage/events.py +60 -0
- parsek_cdp/cdp/domstorage/functions.py +79 -0
- parsek_cdp/cdp/domstorage/types.py +30 -0
- parsek_cdp/cdp/emulation/__init__.py +15 -0
- parsek_cdp/cdp/emulation/events.py +17 -0
- parsek_cdp/cdp/emulation/functions.py +688 -0
- parsek_cdp/cdp/emulation/types.py +305 -0
- parsek_cdp/cdp/eventbreakpoints/__init__.py +15 -0
- parsek_cdp/cdp/eventbreakpoints/events.py +13 -0
- parsek_cdp/cdp/eventbreakpoints/functions.py +41 -0
- parsek_cdp/cdp/eventbreakpoints/types.py +10 -0
- parsek_cdp/cdp/extensions/__init__.py +15 -0
- parsek_cdp/cdp/extensions/events.py +13 -0
- parsek_cdp/cdp/extensions/functions.py +118 -0
- parsek_cdp/cdp/extensions/types.py +19 -0
- parsek_cdp/cdp/fedcm/__init__.py +15 -0
- parsek_cdp/cdp/fedcm/events.py +45 -0
- parsek_cdp/cdp/fedcm/functions.py +93 -0
- parsek_cdp/cdp/fedcm/types.py +72 -0
- parsek_cdp/cdp/fetch/__init__.py +15 -0
- parsek_cdp/cdp/fetch/events.py +82 -0
- parsek_cdp/cdp/fetch/functions.py +215 -0
- parsek_cdp/cdp/fetch/types.py +81 -0
- parsek_cdp/cdp/filesystem/__init__.py +15 -0
- parsek_cdp/cdp/filesystem/events.py +13 -0
- parsek_cdp/cdp/filesystem/functions.py +36 -0
- parsek_cdp/cdp/filesystem/types.py +54 -0
- parsek_cdp/cdp/headlessexperimental/__init__.py +15 -0
- parsek_cdp/cdp/headlessexperimental/events.py +13 -0
- parsek_cdp/cdp/headlessexperimental/functions.py +77 -0
- parsek_cdp/cdp/headlessexperimental/types.py +24 -0
- parsek_cdp/cdp/heapprofiler/__init__.py +15 -0
- parsek_cdp/cdp/heapprofiler/events.py +65 -0
- parsek_cdp/cdp/heapprofiler/functions.py +193 -0
- parsek_cdp/cdp/heapprofiler/types.py +57 -0
- parsek_cdp/cdp/indexeddb/__init__.py +15 -0
- parsek_cdp/cdp/indexeddb/events.py +13 -0
- parsek_cdp/cdp/indexeddb/functions.py +232 -0
- parsek_cdp/cdp/indexeddb/types.py +120 -0
- parsek_cdp/cdp/input/__init__.py +15 -0
- parsek_cdp/cdp/input/events.py +25 -0
- parsek_cdp/cdp/input/functions.py +361 -0
- parsek_cdp/cdp/input/types.py +87 -0
- parsek_cdp/cdp/inspector/__init__.py +15 -0
- parsek_cdp/cdp/inspector/events.py +41 -0
- parsek_cdp/cdp/inspector/functions.py +27 -0
- parsek_cdp/cdp/inspector/types.py +10 -0
- parsek_cdp/cdp/io/__init__.py +15 -0
- parsek_cdp/cdp/io/events.py +13 -0
- parsek_cdp/cdp/io/functions.py +77 -0
- parsek_cdp/cdp/io/types.py +13 -0
- parsek_cdp/cdp/layertree/__init__.py +15 -0
- parsek_cdp/cdp/layertree/events.py +36 -0
- parsek_cdp/cdp/layertree/functions.py +178 -0
- parsek_cdp/cdp/layertree/types.py +104 -0
- parsek_cdp/cdp/log/__init__.py +15 -0
- parsek_cdp/cdp/log/events.py +22 -0
- parsek_cdp/cdp/log/functions.py +54 -0
- parsek_cdp/cdp/log/types.py +57 -0
- parsek_cdp/cdp/media/__init__.py +15 -0
- parsek_cdp/cdp/media/events.py +87 -0
- parsek_cdp/cdp/media/functions.py +27 -0
- parsek_cdp/cdp/media/types.py +101 -0
- parsek_cdp/cdp/memory/__init__.py +15 -0
- parsek_cdp/cdp/memory/events.py +13 -0
- parsek_cdp/cdp/memory/functions.py +164 -0
- parsek_cdp/cdp/memory/types.py +71 -0
- parsek_cdp/cdp/mixins/__init__.py +21 -0
- parsek_cdp/cdp/mixins/datatype.py +123 -0
- parsek_cdp/cdp/mixins/event.py +78 -0
- parsek_cdp/cdp/mixins/namespace.py +31 -0
- parsek_cdp/cdp/network/__init__.py +15 -0
- parsek_cdp/cdp/network/events.py +726 -0
- parsek_cdp/cdp/network/functions.py +734 -0
- parsek_cdp/cdp/network/types.py +1247 -0
- parsek_cdp/cdp/overlay/__init__.py +15 -0
- parsek_cdp/cdp/overlay/events.py +54 -0
- parsek_cdp/cdp/overlay/functions.py +407 -0
- parsek_cdp/cdp/overlay/types.py +328 -0
- parsek_cdp/cdp/page/__init__.py +15 -0
- parsek_cdp/cdp/page/events.py +416 -0
- parsek_cdp/cdp/page/functions.py +1081 -0
- parsek_cdp/cdp/page/types.py +1088 -0
- parsek_cdp/cdp/performance/__init__.py +15 -0
- parsek_cdp/cdp/performance/events.py +24 -0
- parsek_cdp/cdp/performance/functions.py +63 -0
- parsek_cdp/cdp/performance/types.py +22 -0
- parsek_cdp/cdp/performancetimeline/__init__.py +15 -0
- parsek_cdp/cdp/performancetimeline/events.py +22 -0
- parsek_cdp/cdp/performancetimeline/functions.py +30 -0
- parsek_cdp/cdp/performancetimeline/types.py +85 -0
- parsek_cdp/cdp/preload/__init__.py +15 -0
- parsek_cdp/cdp/preload/events.py +116 -0
- parsek_cdp/cdp/preload/functions.py +25 -0
- parsek_cdp/cdp/preload/types.py +267 -0
- parsek_cdp/cdp/profiler/__init__.py +15 -0
- parsek_cdp/cdp/profiler/events.py +64 -0
- parsek_cdp/cdp/profiler/functions.py +134 -0
- parsek_cdp/cdp/profiler/types.py +105 -0
- parsek_cdp/cdp/pwa/__init__.py +15 -0
- parsek_cdp/cdp/pwa/events.py +13 -0
- parsek_cdp/cdp/pwa/functions.py +196 -0
- parsek_cdp/cdp/pwa/types.py +45 -0
- parsek_cdp/cdp/runtime/__init__.py +15 -0
- parsek_cdp/cdp/runtime/events.py +123 -0
- parsek_cdp/cdp/runtime/functions.py +552 -0
- parsek_cdp/cdp/runtime/types.py +319 -0
- parsek_cdp/cdp/schema/__init__.py +15 -0
- parsek_cdp/cdp/schema/events.py +13 -0
- parsek_cdp/cdp/schema/functions.py +32 -0
- parsek_cdp/cdp/schema/types.py +22 -0
- parsek_cdp/cdp/security/__init__.py +15 -0
- parsek_cdp/cdp/security/events.py +64 -0
- parsek_cdp/cdp/security/functions.py +66 -0
- parsek_cdp/cdp/security/types.py +168 -0
- parsek_cdp/cdp/serviceworker/__init__.py +15 -0
- parsek_cdp/cdp/serviceworker/events.py +43 -0
- parsek_cdp/cdp/serviceworker/functions.py +115 -0
- parsek_cdp/cdp/serviceworker/types.py +95 -0
- parsek_cdp/cdp/storage/__init__.py +15 -0
- parsek_cdp/cdp/storage/events.py +288 -0
- parsek_cdp/cdp/storage/functions.py +571 -0
- parsek_cdp/cdp/storage/types.py +656 -0
- parsek_cdp/cdp/systeminfo/__init__.py +15 -0
- parsek_cdp/cdp/systeminfo/events.py +13 -0
- parsek_cdp/cdp/systeminfo/functions.py +75 -0
- parsek_cdp/cdp/systeminfo/types.py +132 -0
- parsek_cdp/cdp/target/__init__.py +15 -0
- parsek_cdp/cdp/target/events.py +109 -0
- parsek_cdp/cdp/target/functions.py +424 -0
- parsek_cdp/cdp/target/types.py +83 -0
- parsek_cdp/cdp/tethering/__init__.py +15 -0
- parsek_cdp/cdp/tethering/events.py +22 -0
- parsek_cdp/cdp/tethering/functions.py +35 -0
- parsek_cdp/cdp/tethering/types.py +10 -0
- parsek_cdp/cdp/tracing/__init__.py +15 -0
- parsek_cdp/cdp/tracing/events.py +61 -0
- parsek_cdp/cdp/tracing/functions.py +119 -0
- parsek_cdp/cdp/tracing/types.py +81 -0
- parsek_cdp/cdp/webaudio/__init__.py +15 -0
- parsek_cdp/cdp/webaudio/events.py +184 -0
- parsek_cdp/cdp/webaudio/functions.py +51 -0
- parsek_cdp/cdp/webaudio/types.py +155 -0
- parsek_cdp/cdp/webauthn/__init__.py +15 -0
- parsek_cdp/cdp/webauthn/events.py +69 -0
- parsek_cdp/cdp/webauthn/functions.py +214 -0
- parsek_cdp/cdp/webauthn/types.py +96 -0
- parsek_cdp/core/__init__.py +18 -0
- parsek_cdp/core/browser.py +240 -0
- parsek_cdp/core/browser_context.py +58 -0
- parsek_cdp/core/element.py +405 -0
- parsek_cdp/core/feature.py +376 -0
- parsek_cdp/core/frame.py +351 -0
- parsek_cdp/core/pagable.py +175 -0
- parsek_cdp/core/page.py +163 -0
- parsek_cdp/core/target.py +490 -0
- parsek_cdp/features/__init__.py +14 -0
- parsek_cdp/features/request_listener/__init__.py +256 -0
- parsek_cdp/features/request_listener/events.py +48 -0
- parsek_cdp/features/request_listener/types.py +235 -0
- parsek_cdp/generate.py +642 -0
- parsek_cdp/parsek/__init__.py +18 -0
- parsek_cdp/parsek/events.py +38 -0
- parsek_cdp/parsek/types.py +36 -0
- parsek_cdp/py.typed +0 -0
- parsek_cdp-0.1.0.dist-info/METADATA +277 -0
- parsek_cdp-0.1.0.dist-info/RECORD +242 -0
- parsek_cdp-0.1.0.dist-info/WHEEL +5 -0
- parsek_cdp-0.1.0.dist-info/licenses/LICENSE +201 -0
- parsek_cdp-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,726 @@
|
|
|
1
|
+
"""Events for the Network domain (generated)."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass
|
|
5
|
+
from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Literal, Optional
|
|
6
|
+
|
|
7
|
+
from ..mixins.datatype import FieldMeta
|
|
8
|
+
from ..mixins.event import Event, register_event
|
|
9
|
+
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from .types import (
|
|
12
|
+
AssociatedCookie,
|
|
13
|
+
AuthChallenge,
|
|
14
|
+
BlockedReason,
|
|
15
|
+
BlockedSetCookieWithReason,
|
|
16
|
+
ClientSecurityState,
|
|
17
|
+
ConnectTiming,
|
|
18
|
+
CookiePartitionKey,
|
|
19
|
+
CorsErrorStatus,
|
|
20
|
+
DirectTCPSocketOptions,
|
|
21
|
+
DirectUDPMessage,
|
|
22
|
+
DirectUDPSocketOptions,
|
|
23
|
+
ErrorReason,
|
|
24
|
+
ExemptedSetCookieWithReason,
|
|
25
|
+
Headers,
|
|
26
|
+
IPAddressSpace,
|
|
27
|
+
Initiator,
|
|
28
|
+
InterceptionId,
|
|
29
|
+
LoaderId,
|
|
30
|
+
MonotonicTime,
|
|
31
|
+
ReportingApiEndpoint,
|
|
32
|
+
ReportingApiReport,
|
|
33
|
+
Request,
|
|
34
|
+
RequestId,
|
|
35
|
+
ResourcePriority,
|
|
36
|
+
ResourceType,
|
|
37
|
+
Response,
|
|
38
|
+
SignedExchangeInfo,
|
|
39
|
+
TimeSinceEpoch,
|
|
40
|
+
TrustTokenOperationType,
|
|
41
|
+
WebSocketFrame,
|
|
42
|
+
WebSocketRequest,
|
|
43
|
+
WebSocketResponse,
|
|
44
|
+
)
|
|
45
|
+
from ..page.types import FrameId as Page_FrameId
|
|
46
|
+
|
|
47
|
+
@register_event("Network.dataReceived")
|
|
48
|
+
@dataclass
|
|
49
|
+
class DataReceived(Event):
|
|
50
|
+
"""Fired when data chunk was received over the network."""
|
|
51
|
+
request_id: RequestId
|
|
52
|
+
timestamp: MonotonicTime
|
|
53
|
+
data_length: int
|
|
54
|
+
encoded_data_length: int
|
|
55
|
+
data: Optional[str] = None
|
|
56
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
57
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
58
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
59
|
+
FieldMeta('data_length', 'dataLength', False, 'primitive'),
|
|
60
|
+
FieldMeta('encoded_data_length', 'encodedDataLength', False, 'primitive'),
|
|
61
|
+
FieldMeta('data', 'data', True, 'primitive'),
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@register_event("Network.eventSourceMessageReceived")
|
|
66
|
+
@dataclass
|
|
67
|
+
class EventSourceMessageReceived(Event):
|
|
68
|
+
"""Fired when EventSource message is received."""
|
|
69
|
+
request_id: RequestId
|
|
70
|
+
timestamp: MonotonicTime
|
|
71
|
+
event_name: str
|
|
72
|
+
event_id: str
|
|
73
|
+
data: str
|
|
74
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
75
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
76
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
77
|
+
FieldMeta('event_name', 'eventName', False, 'primitive'),
|
|
78
|
+
FieldMeta('event_id', 'eventId', False, 'primitive'),
|
|
79
|
+
FieldMeta('data', 'data', False, 'primitive'),
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
@register_event("Network.loadingFailed")
|
|
84
|
+
@dataclass
|
|
85
|
+
class LoadingFailed(Event):
|
|
86
|
+
"""Fired when HTTP request has failed to load."""
|
|
87
|
+
request_id: RequestId
|
|
88
|
+
timestamp: MonotonicTime
|
|
89
|
+
type_: ResourceType
|
|
90
|
+
error_text: str
|
|
91
|
+
canceled: Optional[bool] = None
|
|
92
|
+
blocked_reason: Optional[BlockedReason] = None
|
|
93
|
+
cors_error_status: Optional[CorsErrorStatus] = None
|
|
94
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
95
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
96
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
97
|
+
FieldMeta('type_', 'type', False, 'enum', ref='Network.ResourceType'),
|
|
98
|
+
FieldMeta('error_text', 'errorText', False, 'primitive'),
|
|
99
|
+
FieldMeta('canceled', 'canceled', True, 'primitive'),
|
|
100
|
+
FieldMeta('blocked_reason', 'blockedReason', True, 'enum', ref='Network.BlockedReason'),
|
|
101
|
+
FieldMeta('cors_error_status', 'corsErrorStatus', True, 'object', ref='Network.CorsErrorStatus'),
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
@register_event("Network.loadingFinished")
|
|
106
|
+
@dataclass
|
|
107
|
+
class LoadingFinished(Event):
|
|
108
|
+
"""Fired when HTTP request has finished loading."""
|
|
109
|
+
request_id: RequestId
|
|
110
|
+
timestamp: MonotonicTime
|
|
111
|
+
encoded_data_length: float
|
|
112
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
113
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
114
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
115
|
+
FieldMeta('encoded_data_length', 'encodedDataLength', False, 'primitive'),
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
@register_event("Network.requestIntercepted")
|
|
120
|
+
@dataclass
|
|
121
|
+
class RequestIntercepted(Event):
|
|
122
|
+
"""
|
|
123
|
+
Details of an intercepted HTTP request, which must be either allowed, blocked, modified or
|
|
124
|
+
mocked.
|
|
125
|
+
Deprecated, use Fetch.requestPaused instead.
|
|
126
|
+
"""
|
|
127
|
+
interception_id: InterceptionId
|
|
128
|
+
request: Request
|
|
129
|
+
frame_id: Page_FrameId
|
|
130
|
+
resource_type: ResourceType
|
|
131
|
+
is_navigation_request: bool
|
|
132
|
+
is_download: Optional[bool] = None
|
|
133
|
+
redirect_url: Optional[str] = None
|
|
134
|
+
auth_challenge: Optional[AuthChallenge] = None
|
|
135
|
+
response_error_reason: Optional[ErrorReason] = None
|
|
136
|
+
response_status_code: Optional[int] = None
|
|
137
|
+
response_headers: Optional[Headers] = None
|
|
138
|
+
request_id: Optional[RequestId] = None
|
|
139
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
140
|
+
FieldMeta('interception_id', 'interceptionId', False, 'primitive'),
|
|
141
|
+
FieldMeta('request', 'request', False, 'object', ref='Network.Request'),
|
|
142
|
+
FieldMeta('frame_id', 'frameId', False, 'primitive'),
|
|
143
|
+
FieldMeta('resource_type', 'resourceType', False, 'enum', ref='Network.ResourceType'),
|
|
144
|
+
FieldMeta('is_navigation_request', 'isNavigationRequest', False, 'primitive'),
|
|
145
|
+
FieldMeta('is_download', 'isDownload', True, 'primitive'),
|
|
146
|
+
FieldMeta('redirect_url', 'redirectUrl', True, 'primitive'),
|
|
147
|
+
FieldMeta('auth_challenge', 'authChallenge', True, 'object', ref='Network.AuthChallenge'),
|
|
148
|
+
FieldMeta('response_error_reason', 'responseErrorReason', True, 'enum', ref='Network.ErrorReason'),
|
|
149
|
+
FieldMeta('response_status_code', 'responseStatusCode', True, 'primitive'),
|
|
150
|
+
FieldMeta('response_headers', 'responseHeaders', True, 'primitive'),
|
|
151
|
+
FieldMeta('request_id', 'requestId', True, 'primitive'),
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
@register_event("Network.requestServedFromCache")
|
|
156
|
+
@dataclass
|
|
157
|
+
class RequestServedFromCache(Event):
|
|
158
|
+
"""Fired if request ended up loading from cache."""
|
|
159
|
+
request_id: RequestId
|
|
160
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
161
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
@register_event("Network.requestWillBeSent")
|
|
166
|
+
@dataclass
|
|
167
|
+
class RequestWillBeSent(Event):
|
|
168
|
+
"""Fired when page is about to send HTTP request."""
|
|
169
|
+
request_id: RequestId
|
|
170
|
+
loader_id: LoaderId
|
|
171
|
+
document_url: str
|
|
172
|
+
request: Request
|
|
173
|
+
timestamp: MonotonicTime
|
|
174
|
+
wall_time: TimeSinceEpoch
|
|
175
|
+
initiator: Initiator
|
|
176
|
+
redirect_has_extra_info: bool
|
|
177
|
+
redirect_response: Optional[Response] = None
|
|
178
|
+
type_: Optional[ResourceType] = None
|
|
179
|
+
frame_id: Optional[Page_FrameId] = None
|
|
180
|
+
has_user_gesture: Optional[bool] = None
|
|
181
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
182
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
183
|
+
FieldMeta('loader_id', 'loaderId', False, 'primitive'),
|
|
184
|
+
FieldMeta('document_url', 'documentURL', False, 'primitive'),
|
|
185
|
+
FieldMeta('request', 'request', False, 'object', ref='Network.Request'),
|
|
186
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
187
|
+
FieldMeta('wall_time', 'wallTime', False, 'primitive'),
|
|
188
|
+
FieldMeta('initiator', 'initiator', False, 'object', ref='Network.Initiator'),
|
|
189
|
+
FieldMeta('redirect_has_extra_info', 'redirectHasExtraInfo', False, 'primitive'),
|
|
190
|
+
FieldMeta('redirect_response', 'redirectResponse', True, 'object', ref='Network.Response'),
|
|
191
|
+
FieldMeta('type_', 'type', True, 'enum', ref='Network.ResourceType'),
|
|
192
|
+
FieldMeta('frame_id', 'frameId', True, 'primitive'),
|
|
193
|
+
FieldMeta('has_user_gesture', 'hasUserGesture', True, 'primitive'),
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
@register_event("Network.resourceChangedPriority")
|
|
198
|
+
@dataclass
|
|
199
|
+
class ResourceChangedPriority(Event):
|
|
200
|
+
"""Fired when resource loading priority is changed"""
|
|
201
|
+
request_id: RequestId
|
|
202
|
+
new_priority: ResourcePriority
|
|
203
|
+
timestamp: MonotonicTime
|
|
204
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
205
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
206
|
+
FieldMeta('new_priority', 'newPriority', False, 'enum', ref='Network.ResourcePriority'),
|
|
207
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
@register_event("Network.signedExchangeReceived")
|
|
212
|
+
@dataclass
|
|
213
|
+
class SignedExchangeReceived(Event):
|
|
214
|
+
"""Fired when a signed exchange was received over the network"""
|
|
215
|
+
request_id: RequestId
|
|
216
|
+
info: SignedExchangeInfo
|
|
217
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
218
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
219
|
+
FieldMeta('info', 'info', False, 'object', ref='Network.SignedExchangeInfo'),
|
|
220
|
+
)
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
@register_event("Network.responseReceived")
|
|
224
|
+
@dataclass
|
|
225
|
+
class ResponseReceived(Event):
|
|
226
|
+
"""Fired when HTTP response is available."""
|
|
227
|
+
request_id: RequestId
|
|
228
|
+
loader_id: LoaderId
|
|
229
|
+
timestamp: MonotonicTime
|
|
230
|
+
type_: ResourceType
|
|
231
|
+
response: Response
|
|
232
|
+
has_extra_info: bool
|
|
233
|
+
frame_id: Optional[Page_FrameId] = None
|
|
234
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
235
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
236
|
+
FieldMeta('loader_id', 'loaderId', False, 'primitive'),
|
|
237
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
238
|
+
FieldMeta('type_', 'type', False, 'enum', ref='Network.ResourceType'),
|
|
239
|
+
FieldMeta('response', 'response', False, 'object', ref='Network.Response'),
|
|
240
|
+
FieldMeta('has_extra_info', 'hasExtraInfo', False, 'primitive'),
|
|
241
|
+
FieldMeta('frame_id', 'frameId', True, 'primitive'),
|
|
242
|
+
)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
@register_event("Network.webSocketClosed")
|
|
246
|
+
@dataclass
|
|
247
|
+
class WebSocketClosed(Event):
|
|
248
|
+
"""Fired when WebSocket is closed."""
|
|
249
|
+
request_id: RequestId
|
|
250
|
+
timestamp: MonotonicTime
|
|
251
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
252
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
253
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
254
|
+
)
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
@register_event("Network.webSocketCreated")
|
|
258
|
+
@dataclass
|
|
259
|
+
class WebSocketCreated(Event):
|
|
260
|
+
"""Fired upon WebSocket creation."""
|
|
261
|
+
request_id: RequestId
|
|
262
|
+
url: str
|
|
263
|
+
initiator: Optional[Initiator] = None
|
|
264
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
265
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
266
|
+
FieldMeta('url', 'url', False, 'primitive'),
|
|
267
|
+
FieldMeta('initiator', 'initiator', True, 'object', ref='Network.Initiator'),
|
|
268
|
+
)
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
@register_event("Network.webSocketFrameError")
|
|
272
|
+
@dataclass
|
|
273
|
+
class WebSocketFrameError(Event):
|
|
274
|
+
"""Fired when WebSocket message error occurs."""
|
|
275
|
+
request_id: RequestId
|
|
276
|
+
timestamp: MonotonicTime
|
|
277
|
+
error_message: str
|
|
278
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
279
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
280
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
281
|
+
FieldMeta('error_message', 'errorMessage', False, 'primitive'),
|
|
282
|
+
)
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
@register_event("Network.webSocketFrameReceived")
|
|
286
|
+
@dataclass
|
|
287
|
+
class WebSocketFrameReceived(Event):
|
|
288
|
+
"""Fired when WebSocket message is received."""
|
|
289
|
+
request_id: RequestId
|
|
290
|
+
timestamp: MonotonicTime
|
|
291
|
+
response: WebSocketFrame
|
|
292
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
293
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
294
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
295
|
+
FieldMeta('response', 'response', False, 'object', ref='Network.WebSocketFrame'),
|
|
296
|
+
)
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
@register_event("Network.webSocketFrameSent")
|
|
300
|
+
@dataclass
|
|
301
|
+
class WebSocketFrameSent(Event):
|
|
302
|
+
"""Fired when WebSocket message is sent."""
|
|
303
|
+
request_id: RequestId
|
|
304
|
+
timestamp: MonotonicTime
|
|
305
|
+
response: WebSocketFrame
|
|
306
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
307
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
308
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
309
|
+
FieldMeta('response', 'response', False, 'object', ref='Network.WebSocketFrame'),
|
|
310
|
+
)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
@register_event("Network.webSocketHandshakeResponseReceived")
|
|
314
|
+
@dataclass
|
|
315
|
+
class WebSocketHandshakeResponseReceived(Event):
|
|
316
|
+
"""Fired when WebSocket handshake response becomes available."""
|
|
317
|
+
request_id: RequestId
|
|
318
|
+
timestamp: MonotonicTime
|
|
319
|
+
response: WebSocketResponse
|
|
320
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
321
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
322
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
323
|
+
FieldMeta('response', 'response', False, 'object', ref='Network.WebSocketResponse'),
|
|
324
|
+
)
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
@register_event("Network.webSocketWillSendHandshakeRequest")
|
|
328
|
+
@dataclass
|
|
329
|
+
class WebSocketWillSendHandshakeRequest(Event):
|
|
330
|
+
"""Fired when WebSocket is about to initiate handshake."""
|
|
331
|
+
request_id: RequestId
|
|
332
|
+
timestamp: MonotonicTime
|
|
333
|
+
wall_time: TimeSinceEpoch
|
|
334
|
+
request: WebSocketRequest
|
|
335
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
336
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
337
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
338
|
+
FieldMeta('wall_time', 'wallTime', False, 'primitive'),
|
|
339
|
+
FieldMeta('request', 'request', False, 'object', ref='Network.WebSocketRequest'),
|
|
340
|
+
)
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
@register_event("Network.webTransportCreated")
|
|
344
|
+
@dataclass
|
|
345
|
+
class WebTransportCreated(Event):
|
|
346
|
+
"""Fired upon WebTransport creation."""
|
|
347
|
+
transport_id: RequestId
|
|
348
|
+
url: str
|
|
349
|
+
timestamp: MonotonicTime
|
|
350
|
+
initiator: Optional[Initiator] = None
|
|
351
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
352
|
+
FieldMeta('transport_id', 'transportId', False, 'primitive'),
|
|
353
|
+
FieldMeta('url', 'url', False, 'primitive'),
|
|
354
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
355
|
+
FieldMeta('initiator', 'initiator', True, 'object', ref='Network.Initiator'),
|
|
356
|
+
)
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
@register_event("Network.webTransportConnectionEstablished")
|
|
360
|
+
@dataclass
|
|
361
|
+
class WebTransportConnectionEstablished(Event):
|
|
362
|
+
"""Fired when WebTransport handshake is finished."""
|
|
363
|
+
transport_id: RequestId
|
|
364
|
+
timestamp: MonotonicTime
|
|
365
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
366
|
+
FieldMeta('transport_id', 'transportId', False, 'primitive'),
|
|
367
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
368
|
+
)
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
@register_event("Network.webTransportClosed")
|
|
372
|
+
@dataclass
|
|
373
|
+
class WebTransportClosed(Event):
|
|
374
|
+
"""Fired when WebTransport is disposed."""
|
|
375
|
+
transport_id: RequestId
|
|
376
|
+
timestamp: MonotonicTime
|
|
377
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
378
|
+
FieldMeta('transport_id', 'transportId', False, 'primitive'),
|
|
379
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
380
|
+
)
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
@register_event("Network.directTCPSocketCreated")
|
|
384
|
+
@dataclass
|
|
385
|
+
class DirectTCPSocketCreated(Event):
|
|
386
|
+
"""Fired upon direct_socket.TCPSocket creation."""
|
|
387
|
+
identifier: RequestId
|
|
388
|
+
remote_addr: str
|
|
389
|
+
remote_port: int
|
|
390
|
+
options: DirectTCPSocketOptions
|
|
391
|
+
timestamp: MonotonicTime
|
|
392
|
+
initiator: Optional[Initiator] = None
|
|
393
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
394
|
+
FieldMeta('identifier', 'identifier', False, 'primitive'),
|
|
395
|
+
FieldMeta('remote_addr', 'remoteAddr', False, 'primitive'),
|
|
396
|
+
FieldMeta('remote_port', 'remotePort', False, 'primitive'),
|
|
397
|
+
FieldMeta('options', 'options', False, 'object', ref='Network.DirectTCPSocketOptions'),
|
|
398
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
399
|
+
FieldMeta('initiator', 'initiator', True, 'object', ref='Network.Initiator'),
|
|
400
|
+
)
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
@register_event("Network.directTCPSocketOpened")
|
|
404
|
+
@dataclass
|
|
405
|
+
class DirectTCPSocketOpened(Event):
|
|
406
|
+
"""Fired when direct_socket.TCPSocket connection is opened."""
|
|
407
|
+
identifier: RequestId
|
|
408
|
+
remote_addr: str
|
|
409
|
+
remote_port: int
|
|
410
|
+
timestamp: MonotonicTime
|
|
411
|
+
local_addr: Optional[str] = None
|
|
412
|
+
local_port: Optional[int] = None
|
|
413
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
414
|
+
FieldMeta('identifier', 'identifier', False, 'primitive'),
|
|
415
|
+
FieldMeta('remote_addr', 'remoteAddr', False, 'primitive'),
|
|
416
|
+
FieldMeta('remote_port', 'remotePort', False, 'primitive'),
|
|
417
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
418
|
+
FieldMeta('local_addr', 'localAddr', True, 'primitive'),
|
|
419
|
+
FieldMeta('local_port', 'localPort', True, 'primitive'),
|
|
420
|
+
)
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
@register_event("Network.directTCPSocketAborted")
|
|
424
|
+
@dataclass
|
|
425
|
+
class DirectTCPSocketAborted(Event):
|
|
426
|
+
"""Fired when direct_socket.TCPSocket is aborted."""
|
|
427
|
+
identifier: RequestId
|
|
428
|
+
error_message: str
|
|
429
|
+
timestamp: MonotonicTime
|
|
430
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
431
|
+
FieldMeta('identifier', 'identifier', False, 'primitive'),
|
|
432
|
+
FieldMeta('error_message', 'errorMessage', False, 'primitive'),
|
|
433
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
434
|
+
)
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
@register_event("Network.directTCPSocketClosed")
|
|
438
|
+
@dataclass
|
|
439
|
+
class DirectTCPSocketClosed(Event):
|
|
440
|
+
"""Fired when direct_socket.TCPSocket is closed."""
|
|
441
|
+
identifier: RequestId
|
|
442
|
+
timestamp: MonotonicTime
|
|
443
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
444
|
+
FieldMeta('identifier', 'identifier', False, 'primitive'),
|
|
445
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
446
|
+
)
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
@register_event("Network.directTCPSocketChunkSent")
|
|
450
|
+
@dataclass
|
|
451
|
+
class DirectTCPSocketChunkSent(Event):
|
|
452
|
+
"""Fired when data is sent to tcp direct socket stream."""
|
|
453
|
+
identifier: RequestId
|
|
454
|
+
data: str
|
|
455
|
+
timestamp: MonotonicTime
|
|
456
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
457
|
+
FieldMeta('identifier', 'identifier', False, 'primitive'),
|
|
458
|
+
FieldMeta('data', 'data', False, 'primitive'),
|
|
459
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
460
|
+
)
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
@register_event("Network.directTCPSocketChunkReceived")
|
|
464
|
+
@dataclass
|
|
465
|
+
class DirectTCPSocketChunkReceived(Event):
|
|
466
|
+
"""Fired when data is received from tcp direct socket stream."""
|
|
467
|
+
identifier: RequestId
|
|
468
|
+
data: str
|
|
469
|
+
timestamp: MonotonicTime
|
|
470
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
471
|
+
FieldMeta('identifier', 'identifier', False, 'primitive'),
|
|
472
|
+
FieldMeta('data', 'data', False, 'primitive'),
|
|
473
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
474
|
+
)
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
@register_event("Network.directUDPSocketJoinedMulticastGroup")
|
|
478
|
+
@dataclass
|
|
479
|
+
class DirectUDPSocketJoinedMulticastGroup(Event):
|
|
480
|
+
identifier: RequestId
|
|
481
|
+
ip_address: str
|
|
482
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
483
|
+
FieldMeta('identifier', 'identifier', False, 'primitive'),
|
|
484
|
+
FieldMeta('ip_address', 'IPAddress', False, 'primitive'),
|
|
485
|
+
)
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
@register_event("Network.directUDPSocketLeftMulticastGroup")
|
|
489
|
+
@dataclass
|
|
490
|
+
class DirectUDPSocketLeftMulticastGroup(Event):
|
|
491
|
+
identifier: RequestId
|
|
492
|
+
ip_address: str
|
|
493
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
494
|
+
FieldMeta('identifier', 'identifier', False, 'primitive'),
|
|
495
|
+
FieldMeta('ip_address', 'IPAddress', False, 'primitive'),
|
|
496
|
+
)
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
@register_event("Network.directUDPSocketCreated")
|
|
500
|
+
@dataclass
|
|
501
|
+
class DirectUDPSocketCreated(Event):
|
|
502
|
+
"""Fired upon direct_socket.UDPSocket creation."""
|
|
503
|
+
identifier: RequestId
|
|
504
|
+
options: DirectUDPSocketOptions
|
|
505
|
+
timestamp: MonotonicTime
|
|
506
|
+
initiator: Optional[Initiator] = None
|
|
507
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
508
|
+
FieldMeta('identifier', 'identifier', False, 'primitive'),
|
|
509
|
+
FieldMeta('options', 'options', False, 'object', ref='Network.DirectUDPSocketOptions'),
|
|
510
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
511
|
+
FieldMeta('initiator', 'initiator', True, 'object', ref='Network.Initiator'),
|
|
512
|
+
)
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
@register_event("Network.directUDPSocketOpened")
|
|
516
|
+
@dataclass
|
|
517
|
+
class DirectUDPSocketOpened(Event):
|
|
518
|
+
"""Fired when direct_socket.UDPSocket connection is opened."""
|
|
519
|
+
identifier: RequestId
|
|
520
|
+
local_addr: str
|
|
521
|
+
local_port: int
|
|
522
|
+
timestamp: MonotonicTime
|
|
523
|
+
remote_addr: Optional[str] = None
|
|
524
|
+
remote_port: Optional[int] = None
|
|
525
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
526
|
+
FieldMeta('identifier', 'identifier', False, 'primitive'),
|
|
527
|
+
FieldMeta('local_addr', 'localAddr', False, 'primitive'),
|
|
528
|
+
FieldMeta('local_port', 'localPort', False, 'primitive'),
|
|
529
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
530
|
+
FieldMeta('remote_addr', 'remoteAddr', True, 'primitive'),
|
|
531
|
+
FieldMeta('remote_port', 'remotePort', True, 'primitive'),
|
|
532
|
+
)
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
@register_event("Network.directUDPSocketAborted")
|
|
536
|
+
@dataclass
|
|
537
|
+
class DirectUDPSocketAborted(Event):
|
|
538
|
+
"""Fired when direct_socket.UDPSocket is aborted."""
|
|
539
|
+
identifier: RequestId
|
|
540
|
+
error_message: str
|
|
541
|
+
timestamp: MonotonicTime
|
|
542
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
543
|
+
FieldMeta('identifier', 'identifier', False, 'primitive'),
|
|
544
|
+
FieldMeta('error_message', 'errorMessage', False, 'primitive'),
|
|
545
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
546
|
+
)
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
@register_event("Network.directUDPSocketClosed")
|
|
550
|
+
@dataclass
|
|
551
|
+
class DirectUDPSocketClosed(Event):
|
|
552
|
+
"""Fired when direct_socket.UDPSocket is closed."""
|
|
553
|
+
identifier: RequestId
|
|
554
|
+
timestamp: MonotonicTime
|
|
555
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
556
|
+
FieldMeta('identifier', 'identifier', False, 'primitive'),
|
|
557
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
558
|
+
)
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
@register_event("Network.directUDPSocketChunkSent")
|
|
562
|
+
@dataclass
|
|
563
|
+
class DirectUDPSocketChunkSent(Event):
|
|
564
|
+
"""Fired when message is sent to udp direct socket stream."""
|
|
565
|
+
identifier: RequestId
|
|
566
|
+
message: DirectUDPMessage
|
|
567
|
+
timestamp: MonotonicTime
|
|
568
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
569
|
+
FieldMeta('identifier', 'identifier', False, 'primitive'),
|
|
570
|
+
FieldMeta('message', 'message', False, 'object', ref='Network.DirectUDPMessage'),
|
|
571
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
572
|
+
)
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
@register_event("Network.directUDPSocketChunkReceived")
|
|
576
|
+
@dataclass
|
|
577
|
+
class DirectUDPSocketChunkReceived(Event):
|
|
578
|
+
"""Fired when message is received from udp direct socket stream."""
|
|
579
|
+
identifier: RequestId
|
|
580
|
+
message: DirectUDPMessage
|
|
581
|
+
timestamp: MonotonicTime
|
|
582
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
583
|
+
FieldMeta('identifier', 'identifier', False, 'primitive'),
|
|
584
|
+
FieldMeta('message', 'message', False, 'object', ref='Network.DirectUDPMessage'),
|
|
585
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
586
|
+
)
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
@register_event("Network.requestWillBeSentExtraInfo")
|
|
590
|
+
@dataclass
|
|
591
|
+
class RequestWillBeSentExtraInfo(Event):
|
|
592
|
+
"""
|
|
593
|
+
Fired when additional information about a requestWillBeSent event is available from the
|
|
594
|
+
network stack. Not every requestWillBeSent event will have an additional
|
|
595
|
+
requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent
|
|
596
|
+
or requestWillBeSentExtraInfo will be fired first for the same request.
|
|
597
|
+
"""
|
|
598
|
+
request_id: RequestId
|
|
599
|
+
associated_cookies: List[AssociatedCookie]
|
|
600
|
+
headers: Headers
|
|
601
|
+
connect_timing: ConnectTiming
|
|
602
|
+
client_security_state: Optional[ClientSecurityState] = None
|
|
603
|
+
site_has_cookie_in_other_partition: Optional[bool] = None
|
|
604
|
+
applied_network_conditions_id: Optional[str] = None
|
|
605
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
606
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
607
|
+
FieldMeta('associated_cookies', 'associatedCookies', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Network.AssociatedCookie')),
|
|
608
|
+
FieldMeta('headers', 'headers', False, 'primitive'),
|
|
609
|
+
FieldMeta('connect_timing', 'connectTiming', False, 'object', ref='Network.ConnectTiming'),
|
|
610
|
+
FieldMeta('client_security_state', 'clientSecurityState', True, 'object', ref='Network.ClientSecurityState'),
|
|
611
|
+
FieldMeta('site_has_cookie_in_other_partition', 'siteHasCookieInOtherPartition', True, 'primitive'),
|
|
612
|
+
FieldMeta('applied_network_conditions_id', 'appliedNetworkConditionsId', True, 'primitive'),
|
|
613
|
+
)
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
@register_event("Network.responseReceivedExtraInfo")
|
|
617
|
+
@dataclass
|
|
618
|
+
class ResponseReceivedExtraInfo(Event):
|
|
619
|
+
"""
|
|
620
|
+
Fired when additional information about a responseReceived event is available from the network
|
|
621
|
+
stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for
|
|
622
|
+
it, and responseReceivedExtraInfo may be fired before or after responseReceived.
|
|
623
|
+
"""
|
|
624
|
+
request_id: RequestId
|
|
625
|
+
blocked_cookies: List[BlockedSetCookieWithReason]
|
|
626
|
+
headers: Headers
|
|
627
|
+
resource_ip_address_space: IPAddressSpace
|
|
628
|
+
status_code: int
|
|
629
|
+
headers_text: Optional[str] = None
|
|
630
|
+
cookie_partition_key: Optional[CookiePartitionKey] = None
|
|
631
|
+
cookie_partition_key_opaque: Optional[bool] = None
|
|
632
|
+
exempted_cookies: Optional[List[ExemptedSetCookieWithReason]] = None
|
|
633
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
634
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
635
|
+
FieldMeta('blocked_cookies', 'blockedCookies', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Network.BlockedSetCookieWithReason')),
|
|
636
|
+
FieldMeta('headers', 'headers', False, 'primitive'),
|
|
637
|
+
FieldMeta('resource_ip_address_space', 'resourceIPAddressSpace', False, 'enum', ref='Network.IPAddressSpace'),
|
|
638
|
+
FieldMeta('status_code', 'statusCode', False, 'primitive'),
|
|
639
|
+
FieldMeta('headers_text', 'headersText', True, 'primitive'),
|
|
640
|
+
FieldMeta('cookie_partition_key', 'cookiePartitionKey', True, 'object', ref='Network.CookiePartitionKey'),
|
|
641
|
+
FieldMeta('cookie_partition_key_opaque', 'cookiePartitionKeyOpaque', True, 'primitive'),
|
|
642
|
+
FieldMeta('exempted_cookies', 'exemptedCookies', True, 'array', inner=FieldMeta('', '', False, 'object', ref='Network.ExemptedSetCookieWithReason')),
|
|
643
|
+
)
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
@register_event("Network.responseReceivedEarlyHints")
|
|
647
|
+
@dataclass
|
|
648
|
+
class ResponseReceivedEarlyHints(Event):
|
|
649
|
+
"""
|
|
650
|
+
Fired when 103 Early Hints headers is received in addition to the common response.
|
|
651
|
+
Not every responseReceived event will have an responseReceivedEarlyHints fired.
|
|
652
|
+
Only one responseReceivedEarlyHints may be fired for eached responseReceived event.
|
|
653
|
+
"""
|
|
654
|
+
request_id: RequestId
|
|
655
|
+
headers: Headers
|
|
656
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
657
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
658
|
+
FieldMeta('headers', 'headers', False, 'primitive'),
|
|
659
|
+
)
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
@register_event("Network.trustTokenOperationDone")
|
|
663
|
+
@dataclass
|
|
664
|
+
class TrustTokenOperationDone(Event):
|
|
665
|
+
"""
|
|
666
|
+
Fired exactly once for each Trust Token operation. Depending on
|
|
667
|
+
the type of the operation and whether the operation succeeded or
|
|
668
|
+
failed, the event is fired before the corresponding request was sent
|
|
669
|
+
or after the response was received.
|
|
670
|
+
"""
|
|
671
|
+
status: Literal['Ok', 'InvalidArgument', 'MissingIssuerKeys', 'FailedPrecondition', 'ResourceExhausted', 'AlreadyExists', 'ResourceLimited', 'Unauthorized', 'BadResponse', 'InternalError', 'UnknownError', 'FulfilledLocally', 'SiteIssuerLimit']
|
|
672
|
+
type_: TrustTokenOperationType
|
|
673
|
+
request_id: RequestId
|
|
674
|
+
top_level_origin: Optional[str] = None
|
|
675
|
+
issuer_origin: Optional[str] = None
|
|
676
|
+
issued_token_count: Optional[int] = None
|
|
677
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
678
|
+
FieldMeta('status', 'status', False, 'primitive'),
|
|
679
|
+
FieldMeta('type_', 'type', False, 'enum', ref='Network.TrustTokenOperationType'),
|
|
680
|
+
FieldMeta('request_id', 'requestId', False, 'primitive'),
|
|
681
|
+
FieldMeta('top_level_origin', 'topLevelOrigin', True, 'primitive'),
|
|
682
|
+
FieldMeta('issuer_origin', 'issuerOrigin', True, 'primitive'),
|
|
683
|
+
FieldMeta('issued_token_count', 'issuedTokenCount', True, 'primitive'),
|
|
684
|
+
)
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
@register_event("Network.policyUpdated")
|
|
688
|
+
@dataclass
|
|
689
|
+
class PolicyUpdated(Event):
|
|
690
|
+
"""Fired once security policy has been updated."""
|
|
691
|
+
__FIELDS__: ClassVar[tuple] = ()
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
@register_event("Network.reportingApiReportAdded")
|
|
695
|
+
@dataclass
|
|
696
|
+
class ReportingApiReportAdded(Event):
|
|
697
|
+
"""
|
|
698
|
+
Is sent whenever a new report is added.
|
|
699
|
+
And after 'enableReportingApi' for all existing reports.
|
|
700
|
+
"""
|
|
701
|
+
report: ReportingApiReport
|
|
702
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
703
|
+
FieldMeta('report', 'report', False, 'object', ref='Network.ReportingApiReport'),
|
|
704
|
+
)
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
@register_event("Network.reportingApiReportUpdated")
|
|
708
|
+
@dataclass
|
|
709
|
+
class ReportingApiReportUpdated(Event):
|
|
710
|
+
report: ReportingApiReport
|
|
711
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
712
|
+
FieldMeta('report', 'report', False, 'object', ref='Network.ReportingApiReport'),
|
|
713
|
+
)
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
@register_event("Network.reportingApiEndpointsChangedForOrigin")
|
|
717
|
+
@dataclass
|
|
718
|
+
class ReportingApiEndpointsChangedForOrigin(Event):
|
|
719
|
+
origin: str
|
|
720
|
+
endpoints: List[ReportingApiEndpoint]
|
|
721
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
722
|
+
FieldMeta('origin', 'origin', False, 'primitive'),
|
|
723
|
+
FieldMeta('endpoints', 'endpoints', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Network.ReportingApiEndpoint')),
|
|
724
|
+
)
|
|
725
|
+
|
|
726
|
+
__all__ = ["DataReceived", "DirectTCPSocketAborted", "DirectTCPSocketChunkReceived", "DirectTCPSocketChunkSent", "DirectTCPSocketClosed", "DirectTCPSocketCreated", "DirectTCPSocketOpened", "DirectUDPSocketAborted", "DirectUDPSocketChunkReceived", "DirectUDPSocketChunkSent", "DirectUDPSocketClosed", "DirectUDPSocketCreated", "DirectUDPSocketJoinedMulticastGroup", "DirectUDPSocketLeftMulticastGroup", "DirectUDPSocketOpened", "EventSourceMessageReceived", "LoadingFailed", "LoadingFinished", "PolicyUpdated", "ReportingApiEndpointsChangedForOrigin", "ReportingApiReportAdded", "ReportingApiReportUpdated", "RequestIntercepted", "RequestServedFromCache", "RequestWillBeSent", "RequestWillBeSentExtraInfo", "ResourceChangedPriority", "ResponseReceived", "ResponseReceivedEarlyHints", "ResponseReceivedExtraInfo", "SignedExchangeReceived", "TrustTokenOperationDone", "WebSocketClosed", "WebSocketCreated", "WebSocketFrameError", "WebSocketFrameReceived", "WebSocketFrameSent", "WebSocketHandshakeResponseReceived", "WebSocketWillSendHandshakeRequest", "WebTransportClosed", "WebTransportConnectionEstablished", "WebTransportCreated"]
|