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,1247 @@
|
|
|
1
|
+
"""Custom types and enums for the Network domain (generated)."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass
|
|
5
|
+
from enum import Enum
|
|
6
|
+
from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Literal, Optional
|
|
7
|
+
|
|
8
|
+
from ..mixins.datatype import DataType, FieldMeta, register
|
|
9
|
+
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from ..io.types import StreamHandle as IO_StreamHandle
|
|
12
|
+
from ..runtime.types import StackTrace as Runtime_StackTrace
|
|
13
|
+
from ..security.types import CertificateId as Security_CertificateId
|
|
14
|
+
from ..security.types import MixedContentType as Security_MixedContentType
|
|
15
|
+
from ..security.types import SecurityState as Security_SecurityState
|
|
16
|
+
|
|
17
|
+
@register("Network.ResourceType")
|
|
18
|
+
class ResourceType(str, Enum):
|
|
19
|
+
"""Resource type as it was perceived by the rendering engine."""
|
|
20
|
+
DOCUMENT = 'Document'
|
|
21
|
+
STYLESHEET = 'Stylesheet'
|
|
22
|
+
IMAGE = 'Image'
|
|
23
|
+
MEDIA = 'Media'
|
|
24
|
+
FONT = 'Font'
|
|
25
|
+
SCRIPT = 'Script'
|
|
26
|
+
TEXTTRACK = 'TextTrack'
|
|
27
|
+
XHR = 'XHR'
|
|
28
|
+
FETCH = 'Fetch'
|
|
29
|
+
PREFETCH = 'Prefetch'
|
|
30
|
+
EVENTSOURCE = 'EventSource'
|
|
31
|
+
WEBSOCKET = 'WebSocket'
|
|
32
|
+
MANIFEST = 'Manifest'
|
|
33
|
+
SIGNEDEXCHANGE = 'SignedExchange'
|
|
34
|
+
PING = 'Ping'
|
|
35
|
+
CSPVIOLATIONREPORT = 'CSPViolationReport'
|
|
36
|
+
PREFLIGHT = 'Preflight'
|
|
37
|
+
FEDCM = 'FedCM'
|
|
38
|
+
OTHER = 'Other'
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
type LoaderId = str # Unique loader identifier.
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
type RequestId = str # Unique network request identifier.
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
type InterceptionId = str # Unique intercepted request identifier.
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@register("Network.ErrorReason")
|
|
51
|
+
class ErrorReason(str, Enum):
|
|
52
|
+
"""Network level fetch failure reason."""
|
|
53
|
+
FAILED = 'Failed'
|
|
54
|
+
ABORTED = 'Aborted'
|
|
55
|
+
TIMEDOUT = 'TimedOut'
|
|
56
|
+
ACCESSDENIED = 'AccessDenied'
|
|
57
|
+
CONNECTIONCLOSED = 'ConnectionClosed'
|
|
58
|
+
CONNECTIONRESET = 'ConnectionReset'
|
|
59
|
+
CONNECTIONREFUSED = 'ConnectionRefused'
|
|
60
|
+
CONNECTIONABORTED = 'ConnectionAborted'
|
|
61
|
+
CONNECTIONFAILED = 'ConnectionFailed'
|
|
62
|
+
NAMENOTRESOLVED = 'NameNotResolved'
|
|
63
|
+
INTERNETDISCONNECTED = 'InternetDisconnected'
|
|
64
|
+
ADDRESSUNREACHABLE = 'AddressUnreachable'
|
|
65
|
+
BLOCKEDBYCLIENT = 'BlockedByClient'
|
|
66
|
+
BLOCKEDBYRESPONSE = 'BlockedByResponse'
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
type TimeSinceEpoch = float # UTC time in seconds, counted from January 1, 1970.
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
type MonotonicTime = float # Monotonically increasing time in seconds since an arbitrary point in the past.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
type Headers = Dict[str, Any] # Request / response headers as keys / values of JSON object.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
@register("Network.ConnectionType")
|
|
79
|
+
class ConnectionType(str, Enum):
|
|
80
|
+
"""The underlying connection technology that the browser is supposedly using."""
|
|
81
|
+
NONE = 'none'
|
|
82
|
+
CELLULAR2G = 'cellular2g'
|
|
83
|
+
CELLULAR3G = 'cellular3g'
|
|
84
|
+
CELLULAR4G = 'cellular4g'
|
|
85
|
+
BLUETOOTH = 'bluetooth'
|
|
86
|
+
ETHERNET = 'ethernet'
|
|
87
|
+
WIFI = 'wifi'
|
|
88
|
+
WIMAX = 'wimax'
|
|
89
|
+
OTHER = 'other'
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
@register("Network.CookieSameSite")
|
|
93
|
+
class CookieSameSite(str, Enum):
|
|
94
|
+
"""
|
|
95
|
+
Represents the cookie's 'SameSite' status:
|
|
96
|
+
https://tools.ietf.org/html/draft-west-first-party-cookies
|
|
97
|
+
"""
|
|
98
|
+
STRICT = 'Strict'
|
|
99
|
+
LAX = 'Lax'
|
|
100
|
+
NONE = 'None'
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
@register("Network.CookiePriority")
|
|
104
|
+
class CookiePriority(str, Enum):
|
|
105
|
+
"""
|
|
106
|
+
Represents the cookie's 'Priority' status:
|
|
107
|
+
https://tools.ietf.org/html/draft-west-cookie-priority-00
|
|
108
|
+
"""
|
|
109
|
+
LOW = 'Low'
|
|
110
|
+
MEDIUM = 'Medium'
|
|
111
|
+
HIGH = 'High'
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
@register("Network.CookieSourceScheme")
|
|
115
|
+
class CookieSourceScheme(str, Enum):
|
|
116
|
+
"""
|
|
117
|
+
Represents the source scheme of the origin that originally set the cookie.
|
|
118
|
+
A value of "Unset" allows protocol clients to emulate legacy cookie scope for the scheme.
|
|
119
|
+
This is a temporary ability and it will be removed in the future.
|
|
120
|
+
"""
|
|
121
|
+
UNSET = 'Unset'
|
|
122
|
+
NONSECURE = 'NonSecure'
|
|
123
|
+
SECURE = 'Secure'
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
@register("Network.ResourceTiming")
|
|
127
|
+
@dataclass
|
|
128
|
+
class ResourceTiming(DataType):
|
|
129
|
+
"""Timing information for the request."""
|
|
130
|
+
request_time: float
|
|
131
|
+
proxy_start: float
|
|
132
|
+
proxy_end: float
|
|
133
|
+
dns_start: float
|
|
134
|
+
dns_end: float
|
|
135
|
+
connect_start: float
|
|
136
|
+
connect_end: float
|
|
137
|
+
ssl_start: float
|
|
138
|
+
ssl_end: float
|
|
139
|
+
worker_start: float
|
|
140
|
+
worker_ready: float
|
|
141
|
+
worker_fetch_start: float
|
|
142
|
+
worker_respond_with_settled: float
|
|
143
|
+
send_start: float
|
|
144
|
+
send_end: float
|
|
145
|
+
push_start: float
|
|
146
|
+
push_end: float
|
|
147
|
+
receive_headers_start: float
|
|
148
|
+
receive_headers_end: float
|
|
149
|
+
worker_router_evaluation_start: Optional[float] = None
|
|
150
|
+
worker_cache_lookup_start: Optional[float] = None
|
|
151
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
152
|
+
FieldMeta('request_time', 'requestTime', False, 'primitive'),
|
|
153
|
+
FieldMeta('proxy_start', 'proxyStart', False, 'primitive'),
|
|
154
|
+
FieldMeta('proxy_end', 'proxyEnd', False, 'primitive'),
|
|
155
|
+
FieldMeta('dns_start', 'dnsStart', False, 'primitive'),
|
|
156
|
+
FieldMeta('dns_end', 'dnsEnd', False, 'primitive'),
|
|
157
|
+
FieldMeta('connect_start', 'connectStart', False, 'primitive'),
|
|
158
|
+
FieldMeta('connect_end', 'connectEnd', False, 'primitive'),
|
|
159
|
+
FieldMeta('ssl_start', 'sslStart', False, 'primitive'),
|
|
160
|
+
FieldMeta('ssl_end', 'sslEnd', False, 'primitive'),
|
|
161
|
+
FieldMeta('worker_start', 'workerStart', False, 'primitive'),
|
|
162
|
+
FieldMeta('worker_ready', 'workerReady', False, 'primitive'),
|
|
163
|
+
FieldMeta('worker_fetch_start', 'workerFetchStart', False, 'primitive'),
|
|
164
|
+
FieldMeta('worker_respond_with_settled', 'workerRespondWithSettled', False, 'primitive'),
|
|
165
|
+
FieldMeta('send_start', 'sendStart', False, 'primitive'),
|
|
166
|
+
FieldMeta('send_end', 'sendEnd', False, 'primitive'),
|
|
167
|
+
FieldMeta('push_start', 'pushStart', False, 'primitive'),
|
|
168
|
+
FieldMeta('push_end', 'pushEnd', False, 'primitive'),
|
|
169
|
+
FieldMeta('receive_headers_start', 'receiveHeadersStart', False, 'primitive'),
|
|
170
|
+
FieldMeta('receive_headers_end', 'receiveHeadersEnd', False, 'primitive'),
|
|
171
|
+
FieldMeta('worker_router_evaluation_start', 'workerRouterEvaluationStart', True, 'primitive'),
|
|
172
|
+
FieldMeta('worker_cache_lookup_start', 'workerCacheLookupStart', True, 'primitive'),
|
|
173
|
+
)
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
@register("Network.ResourcePriority")
|
|
177
|
+
class ResourcePriority(str, Enum):
|
|
178
|
+
"""Loading priority of a resource request."""
|
|
179
|
+
VERYLOW = 'VeryLow'
|
|
180
|
+
LOW = 'Low'
|
|
181
|
+
MEDIUM = 'Medium'
|
|
182
|
+
HIGH = 'High'
|
|
183
|
+
VERYHIGH = 'VeryHigh'
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
@register("Network.PostDataEntry")
|
|
187
|
+
@dataclass
|
|
188
|
+
class PostDataEntry(DataType):
|
|
189
|
+
"""Post data entry for HTTP request"""
|
|
190
|
+
bytes: Optional[str] = None
|
|
191
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
192
|
+
FieldMeta('bytes', 'bytes', True, 'primitive'),
|
|
193
|
+
)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
@register("Network.Request")
|
|
197
|
+
@dataclass
|
|
198
|
+
class Request(DataType):
|
|
199
|
+
"""HTTP request data."""
|
|
200
|
+
url: str
|
|
201
|
+
method: str
|
|
202
|
+
headers: Headers
|
|
203
|
+
initial_priority: ResourcePriority
|
|
204
|
+
referrer_policy: Literal['unsafe-url', 'no-referrer-when-downgrade', 'no-referrer', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin']
|
|
205
|
+
url_fragment: Optional[str] = None
|
|
206
|
+
post_data: Optional[str] = None
|
|
207
|
+
has_post_data: Optional[bool] = None
|
|
208
|
+
post_data_entries: Optional[List[PostDataEntry]] = None
|
|
209
|
+
mixed_content_type: Optional[Security_MixedContentType] = None
|
|
210
|
+
is_link_preload: Optional[bool] = None
|
|
211
|
+
trust_token_params: Optional[TrustTokenParams] = None
|
|
212
|
+
is_same_site: Optional[bool] = None
|
|
213
|
+
is_ad_related: Optional[bool] = None
|
|
214
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
215
|
+
FieldMeta('url', 'url', False, 'primitive'),
|
|
216
|
+
FieldMeta('method', 'method', False, 'primitive'),
|
|
217
|
+
FieldMeta('headers', 'headers', False, 'primitive'),
|
|
218
|
+
FieldMeta('initial_priority', 'initialPriority', False, 'enum', ref='Network.ResourcePriority'),
|
|
219
|
+
FieldMeta('referrer_policy', 'referrerPolicy', False, 'primitive'),
|
|
220
|
+
FieldMeta('url_fragment', 'urlFragment', True, 'primitive'),
|
|
221
|
+
FieldMeta('post_data', 'postData', True, 'primitive'),
|
|
222
|
+
FieldMeta('has_post_data', 'hasPostData', True, 'primitive'),
|
|
223
|
+
FieldMeta('post_data_entries', 'postDataEntries', True, 'array', inner=FieldMeta('', '', False, 'object', ref='Network.PostDataEntry')),
|
|
224
|
+
FieldMeta('mixed_content_type', 'mixedContentType', True, 'enum', ref='Security.MixedContentType'),
|
|
225
|
+
FieldMeta('is_link_preload', 'isLinkPreload', True, 'primitive'),
|
|
226
|
+
FieldMeta('trust_token_params', 'trustTokenParams', True, 'object', ref='Network.TrustTokenParams'),
|
|
227
|
+
FieldMeta('is_same_site', 'isSameSite', True, 'primitive'),
|
|
228
|
+
FieldMeta('is_ad_related', 'isAdRelated', True, 'primitive'),
|
|
229
|
+
)
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
@register("Network.SignedCertificateTimestamp")
|
|
233
|
+
@dataclass
|
|
234
|
+
class SignedCertificateTimestamp(DataType):
|
|
235
|
+
"""Details of a signed certificate timestamp (SCT)."""
|
|
236
|
+
status: str
|
|
237
|
+
origin: str
|
|
238
|
+
log_description: str
|
|
239
|
+
log_id: str
|
|
240
|
+
timestamp: float
|
|
241
|
+
hash_algorithm: str
|
|
242
|
+
signature_algorithm: str
|
|
243
|
+
signature_data: str
|
|
244
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
245
|
+
FieldMeta('status', 'status', False, 'primitive'),
|
|
246
|
+
FieldMeta('origin', 'origin', False, 'primitive'),
|
|
247
|
+
FieldMeta('log_description', 'logDescription', False, 'primitive'),
|
|
248
|
+
FieldMeta('log_id', 'logId', False, 'primitive'),
|
|
249
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
250
|
+
FieldMeta('hash_algorithm', 'hashAlgorithm', False, 'primitive'),
|
|
251
|
+
FieldMeta('signature_algorithm', 'signatureAlgorithm', False, 'primitive'),
|
|
252
|
+
FieldMeta('signature_data', 'signatureData', False, 'primitive'),
|
|
253
|
+
)
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
@register("Network.SecurityDetails")
|
|
257
|
+
@dataclass
|
|
258
|
+
class SecurityDetails(DataType):
|
|
259
|
+
"""Security details about a request."""
|
|
260
|
+
protocol: str
|
|
261
|
+
key_exchange: str
|
|
262
|
+
cipher: str
|
|
263
|
+
certificate_id: Security_CertificateId
|
|
264
|
+
subject_name: str
|
|
265
|
+
san_list: List[str]
|
|
266
|
+
issuer: str
|
|
267
|
+
valid_from: TimeSinceEpoch
|
|
268
|
+
valid_to: TimeSinceEpoch
|
|
269
|
+
signed_certificate_timestamp_list: List[SignedCertificateTimestamp]
|
|
270
|
+
certificate_transparency_compliance: CertificateTransparencyCompliance
|
|
271
|
+
encrypted_client_hello: bool
|
|
272
|
+
key_exchange_group: Optional[str] = None
|
|
273
|
+
mac: Optional[str] = None
|
|
274
|
+
server_signature_algorithm: Optional[int] = None
|
|
275
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
276
|
+
FieldMeta('protocol', 'protocol', False, 'primitive'),
|
|
277
|
+
FieldMeta('key_exchange', 'keyExchange', False, 'primitive'),
|
|
278
|
+
FieldMeta('cipher', 'cipher', False, 'primitive'),
|
|
279
|
+
FieldMeta('certificate_id', 'certificateId', False, 'primitive'),
|
|
280
|
+
FieldMeta('subject_name', 'subjectName', False, 'primitive'),
|
|
281
|
+
FieldMeta('san_list', 'sanList', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
282
|
+
FieldMeta('issuer', 'issuer', False, 'primitive'),
|
|
283
|
+
FieldMeta('valid_from', 'validFrom', False, 'primitive'),
|
|
284
|
+
FieldMeta('valid_to', 'validTo', False, 'primitive'),
|
|
285
|
+
FieldMeta('signed_certificate_timestamp_list', 'signedCertificateTimestampList', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Network.SignedCertificateTimestamp')),
|
|
286
|
+
FieldMeta('certificate_transparency_compliance', 'certificateTransparencyCompliance', False, 'enum', ref='Network.CertificateTransparencyCompliance'),
|
|
287
|
+
FieldMeta('encrypted_client_hello', 'encryptedClientHello', False, 'primitive'),
|
|
288
|
+
FieldMeta('key_exchange_group', 'keyExchangeGroup', True, 'primitive'),
|
|
289
|
+
FieldMeta('mac', 'mac', True, 'primitive'),
|
|
290
|
+
FieldMeta('server_signature_algorithm', 'serverSignatureAlgorithm', True, 'primitive'),
|
|
291
|
+
)
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
@register("Network.CertificateTransparencyCompliance")
|
|
295
|
+
class CertificateTransparencyCompliance(str, Enum):
|
|
296
|
+
"""Whether the request complied with Certificate Transparency policy."""
|
|
297
|
+
UNKNOWN = 'unknown'
|
|
298
|
+
NOT_COMPLIANT = 'not-compliant'
|
|
299
|
+
COMPLIANT = 'compliant'
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
@register("Network.BlockedReason")
|
|
303
|
+
class BlockedReason(str, Enum):
|
|
304
|
+
"""The reason why request was blocked."""
|
|
305
|
+
OTHER = 'other'
|
|
306
|
+
CSP = 'csp'
|
|
307
|
+
MIXED_CONTENT = 'mixed-content'
|
|
308
|
+
ORIGIN = 'origin'
|
|
309
|
+
INSPECTOR = 'inspector'
|
|
310
|
+
INTEGRITY = 'integrity'
|
|
311
|
+
SUBRESOURCE_FILTER = 'subresource-filter'
|
|
312
|
+
CONTENT_TYPE = 'content-type'
|
|
313
|
+
COEP_FRAME_RESOURCE_NEEDS_COEP_HEADER = 'coep-frame-resource-needs-coep-header'
|
|
314
|
+
COOP_SANDBOXED_IFRAME_CANNOT_NAVIGATE_TO_COOP_PAGE = 'coop-sandboxed-iframe-cannot-navigate-to-coop-page'
|
|
315
|
+
CORP_NOT_SAME_ORIGIN = 'corp-not-same-origin'
|
|
316
|
+
CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_COEP = 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep'
|
|
317
|
+
CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_DIP = 'corp-not-same-origin-after-defaulted-to-same-origin-by-dip'
|
|
318
|
+
CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_COEP_AND_DIP = 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip'
|
|
319
|
+
CORP_NOT_SAME_SITE = 'corp-not-same-site'
|
|
320
|
+
SRI_MESSAGE_SIGNATURE_MISMATCH = 'sri-message-signature-mismatch'
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
@register("Network.CorsError")
|
|
324
|
+
class CorsError(str, Enum):
|
|
325
|
+
"""The reason why request was blocked."""
|
|
326
|
+
DISALLOWEDBYMODE = 'DisallowedByMode'
|
|
327
|
+
INVALIDRESPONSE = 'InvalidResponse'
|
|
328
|
+
WILDCARDORIGINNOTALLOWED = 'WildcardOriginNotAllowed'
|
|
329
|
+
MISSINGALLOWORIGINHEADER = 'MissingAllowOriginHeader'
|
|
330
|
+
MULTIPLEALLOWORIGINVALUES = 'MultipleAllowOriginValues'
|
|
331
|
+
INVALIDALLOWORIGINVALUE = 'InvalidAllowOriginValue'
|
|
332
|
+
ALLOWORIGINMISMATCH = 'AllowOriginMismatch'
|
|
333
|
+
INVALIDALLOWCREDENTIALS = 'InvalidAllowCredentials'
|
|
334
|
+
CORSDISABLEDSCHEME = 'CorsDisabledScheme'
|
|
335
|
+
PREFLIGHTINVALIDSTATUS = 'PreflightInvalidStatus'
|
|
336
|
+
PREFLIGHTDISALLOWEDREDIRECT = 'PreflightDisallowedRedirect'
|
|
337
|
+
PREFLIGHTWILDCARDORIGINNOTALLOWED = 'PreflightWildcardOriginNotAllowed'
|
|
338
|
+
PREFLIGHTMISSINGALLOWORIGINHEADER = 'PreflightMissingAllowOriginHeader'
|
|
339
|
+
PREFLIGHTMULTIPLEALLOWORIGINVALUES = 'PreflightMultipleAllowOriginValues'
|
|
340
|
+
PREFLIGHTINVALIDALLOWORIGINVALUE = 'PreflightInvalidAllowOriginValue'
|
|
341
|
+
PREFLIGHTALLOWORIGINMISMATCH = 'PreflightAllowOriginMismatch'
|
|
342
|
+
PREFLIGHTINVALIDALLOWCREDENTIALS = 'PreflightInvalidAllowCredentials'
|
|
343
|
+
PREFLIGHTMISSINGALLOWEXTERNAL = 'PreflightMissingAllowExternal'
|
|
344
|
+
PREFLIGHTINVALIDALLOWEXTERNAL = 'PreflightInvalidAllowExternal'
|
|
345
|
+
PREFLIGHTMISSINGALLOWPRIVATENETWORK = 'PreflightMissingAllowPrivateNetwork'
|
|
346
|
+
PREFLIGHTINVALIDALLOWPRIVATENETWORK = 'PreflightInvalidAllowPrivateNetwork'
|
|
347
|
+
INVALIDALLOWMETHODSPREFLIGHTRESPONSE = 'InvalidAllowMethodsPreflightResponse'
|
|
348
|
+
INVALIDALLOWHEADERSPREFLIGHTRESPONSE = 'InvalidAllowHeadersPreflightResponse'
|
|
349
|
+
METHODDISALLOWEDBYPREFLIGHTRESPONSE = 'MethodDisallowedByPreflightResponse'
|
|
350
|
+
HEADERDISALLOWEDBYPREFLIGHTRESPONSE = 'HeaderDisallowedByPreflightResponse'
|
|
351
|
+
REDIRECTCONTAINSCREDENTIALS = 'RedirectContainsCredentials'
|
|
352
|
+
INSECUREPRIVATENETWORK = 'InsecurePrivateNetwork'
|
|
353
|
+
INVALIDPRIVATENETWORKACCESS = 'InvalidPrivateNetworkAccess'
|
|
354
|
+
UNEXPECTEDPRIVATENETWORKACCESS = 'UnexpectedPrivateNetworkAccess'
|
|
355
|
+
NOCORSREDIRECTMODENOTFOLLOW = 'NoCorsRedirectModeNotFollow'
|
|
356
|
+
PREFLIGHTMISSINGPRIVATENETWORKACCESSID = 'PreflightMissingPrivateNetworkAccessId'
|
|
357
|
+
PREFLIGHTMISSINGPRIVATENETWORKACCESSNAME = 'PreflightMissingPrivateNetworkAccessName'
|
|
358
|
+
PRIVATENETWORKACCESSPERMISSIONUNAVAILABLE = 'PrivateNetworkAccessPermissionUnavailable'
|
|
359
|
+
PRIVATENETWORKACCESSPERMISSIONDENIED = 'PrivateNetworkAccessPermissionDenied'
|
|
360
|
+
LOCALNETWORKACCESSPERMISSIONDENIED = 'LocalNetworkAccessPermissionDenied'
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
@register("Network.CorsErrorStatus")
|
|
364
|
+
@dataclass
|
|
365
|
+
class CorsErrorStatus(DataType):
|
|
366
|
+
cors_error: CorsError
|
|
367
|
+
failed_parameter: str
|
|
368
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
369
|
+
FieldMeta('cors_error', 'corsError', False, 'enum', ref='Network.CorsError'),
|
|
370
|
+
FieldMeta('failed_parameter', 'failedParameter', False, 'primitive'),
|
|
371
|
+
)
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
@register("Network.ServiceWorkerResponseSource")
|
|
375
|
+
class ServiceWorkerResponseSource(str, Enum):
|
|
376
|
+
"""Source of serviceworker response."""
|
|
377
|
+
CACHE_STORAGE = 'cache-storage'
|
|
378
|
+
HTTP_CACHE = 'http-cache'
|
|
379
|
+
FALLBACK_CODE = 'fallback-code'
|
|
380
|
+
NETWORK = 'network'
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
@register("Network.TrustTokenParams")
|
|
384
|
+
@dataclass
|
|
385
|
+
class TrustTokenParams(DataType):
|
|
386
|
+
"""
|
|
387
|
+
Determines what type of Trust Token operation is executed and
|
|
388
|
+
depending on the type, some additional parameters. The values
|
|
389
|
+
are specified in third_party/blink/renderer/core/fetch/trust_token.idl.
|
|
390
|
+
"""
|
|
391
|
+
operation: TrustTokenOperationType
|
|
392
|
+
refresh_policy: Literal['UseCached', 'Refresh']
|
|
393
|
+
issuers: Optional[List[str]] = None
|
|
394
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
395
|
+
FieldMeta('operation', 'operation', False, 'enum', ref='Network.TrustTokenOperationType'),
|
|
396
|
+
FieldMeta('refresh_policy', 'refreshPolicy', False, 'primitive'),
|
|
397
|
+
FieldMeta('issuers', 'issuers', True, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
398
|
+
)
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
@register("Network.TrustTokenOperationType")
|
|
402
|
+
class TrustTokenOperationType(str, Enum):
|
|
403
|
+
ISSUANCE = 'Issuance'
|
|
404
|
+
REDEMPTION = 'Redemption'
|
|
405
|
+
SIGNING = 'Signing'
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
@register("Network.AlternateProtocolUsage")
|
|
409
|
+
class AlternateProtocolUsage(str, Enum):
|
|
410
|
+
"""The reason why Chrome uses a specific transport protocol for HTTP semantics."""
|
|
411
|
+
ALTERNATIVEJOBWONWITHOUTRACE = 'alternativeJobWonWithoutRace'
|
|
412
|
+
ALTERNATIVEJOBWONRACE = 'alternativeJobWonRace'
|
|
413
|
+
MAINJOBWONRACE = 'mainJobWonRace'
|
|
414
|
+
MAPPINGMISSING = 'mappingMissing'
|
|
415
|
+
BROKEN = 'broken'
|
|
416
|
+
DNSALPNH3JOBWONWITHOUTRACE = 'dnsAlpnH3JobWonWithoutRace'
|
|
417
|
+
DNSALPNH3JOBWONRACE = 'dnsAlpnH3JobWonRace'
|
|
418
|
+
UNSPECIFIEDREASON = 'unspecifiedReason'
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
@register("Network.ServiceWorkerRouterSource")
|
|
422
|
+
class ServiceWorkerRouterSource(str, Enum):
|
|
423
|
+
"""Source of service worker router."""
|
|
424
|
+
NETWORK = 'network'
|
|
425
|
+
CACHE = 'cache'
|
|
426
|
+
FETCH_EVENT = 'fetch-event'
|
|
427
|
+
RACE_NETWORK_AND_FETCH_HANDLER = 'race-network-and-fetch-handler'
|
|
428
|
+
RACE_NETWORK_AND_CACHE = 'race-network-and-cache'
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
@register("Network.ServiceWorkerRouterInfo")
|
|
432
|
+
@dataclass
|
|
433
|
+
class ServiceWorkerRouterInfo(DataType):
|
|
434
|
+
rule_id_matched: Optional[int] = None
|
|
435
|
+
matched_source_type: Optional[ServiceWorkerRouterSource] = None
|
|
436
|
+
actual_source_type: Optional[ServiceWorkerRouterSource] = None
|
|
437
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
438
|
+
FieldMeta('rule_id_matched', 'ruleIdMatched', True, 'primitive'),
|
|
439
|
+
FieldMeta('matched_source_type', 'matchedSourceType', True, 'enum', ref='Network.ServiceWorkerRouterSource'),
|
|
440
|
+
FieldMeta('actual_source_type', 'actualSourceType', True, 'enum', ref='Network.ServiceWorkerRouterSource'),
|
|
441
|
+
)
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
@register("Network.Response")
|
|
445
|
+
@dataclass
|
|
446
|
+
class Response(DataType):
|
|
447
|
+
"""HTTP response data."""
|
|
448
|
+
url: str
|
|
449
|
+
status: int
|
|
450
|
+
status_text: str
|
|
451
|
+
headers: Headers
|
|
452
|
+
mime_type: str
|
|
453
|
+
charset: str
|
|
454
|
+
connection_reused: bool
|
|
455
|
+
connection_id: float
|
|
456
|
+
encoded_data_length: float
|
|
457
|
+
security_state: Security_SecurityState
|
|
458
|
+
headers_text: Optional[str] = None
|
|
459
|
+
request_headers: Optional[Headers] = None
|
|
460
|
+
request_headers_text: Optional[str] = None
|
|
461
|
+
remote_ip_address: Optional[str] = None
|
|
462
|
+
remote_port: Optional[int] = None
|
|
463
|
+
from_disk_cache: Optional[bool] = None
|
|
464
|
+
from_service_worker: Optional[bool] = None
|
|
465
|
+
from_prefetch_cache: Optional[bool] = None
|
|
466
|
+
from_early_hints: Optional[bool] = None
|
|
467
|
+
service_worker_router_info: Optional[ServiceWorkerRouterInfo] = None
|
|
468
|
+
timing: Optional[ResourceTiming] = None
|
|
469
|
+
service_worker_response_source: Optional[ServiceWorkerResponseSource] = None
|
|
470
|
+
response_time: Optional[TimeSinceEpoch] = None
|
|
471
|
+
cache_storage_cache_name: Optional[str] = None
|
|
472
|
+
protocol: Optional[str] = None
|
|
473
|
+
alternate_protocol_usage: Optional[AlternateProtocolUsage] = None
|
|
474
|
+
security_details: Optional[SecurityDetails] = None
|
|
475
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
476
|
+
FieldMeta('url', 'url', False, 'primitive'),
|
|
477
|
+
FieldMeta('status', 'status', False, 'primitive'),
|
|
478
|
+
FieldMeta('status_text', 'statusText', False, 'primitive'),
|
|
479
|
+
FieldMeta('headers', 'headers', False, 'primitive'),
|
|
480
|
+
FieldMeta('mime_type', 'mimeType', False, 'primitive'),
|
|
481
|
+
FieldMeta('charset', 'charset', False, 'primitive'),
|
|
482
|
+
FieldMeta('connection_reused', 'connectionReused', False, 'primitive'),
|
|
483
|
+
FieldMeta('connection_id', 'connectionId', False, 'primitive'),
|
|
484
|
+
FieldMeta('encoded_data_length', 'encodedDataLength', False, 'primitive'),
|
|
485
|
+
FieldMeta('security_state', 'securityState', False, 'enum', ref='Security.SecurityState'),
|
|
486
|
+
FieldMeta('headers_text', 'headersText', True, 'primitive'),
|
|
487
|
+
FieldMeta('request_headers', 'requestHeaders', True, 'primitive'),
|
|
488
|
+
FieldMeta('request_headers_text', 'requestHeadersText', True, 'primitive'),
|
|
489
|
+
FieldMeta('remote_ip_address', 'remoteIPAddress', True, 'primitive'),
|
|
490
|
+
FieldMeta('remote_port', 'remotePort', True, 'primitive'),
|
|
491
|
+
FieldMeta('from_disk_cache', 'fromDiskCache', True, 'primitive'),
|
|
492
|
+
FieldMeta('from_service_worker', 'fromServiceWorker', True, 'primitive'),
|
|
493
|
+
FieldMeta('from_prefetch_cache', 'fromPrefetchCache', True, 'primitive'),
|
|
494
|
+
FieldMeta('from_early_hints', 'fromEarlyHints', True, 'primitive'),
|
|
495
|
+
FieldMeta('service_worker_router_info', 'serviceWorkerRouterInfo', True, 'object', ref='Network.ServiceWorkerRouterInfo'),
|
|
496
|
+
FieldMeta('timing', 'timing', True, 'object', ref='Network.ResourceTiming'),
|
|
497
|
+
FieldMeta('service_worker_response_source', 'serviceWorkerResponseSource', True, 'enum', ref='Network.ServiceWorkerResponseSource'),
|
|
498
|
+
FieldMeta('response_time', 'responseTime', True, 'primitive'),
|
|
499
|
+
FieldMeta('cache_storage_cache_name', 'cacheStorageCacheName', True, 'primitive'),
|
|
500
|
+
FieldMeta('protocol', 'protocol', True, 'primitive'),
|
|
501
|
+
FieldMeta('alternate_protocol_usage', 'alternateProtocolUsage', True, 'enum', ref='Network.AlternateProtocolUsage'),
|
|
502
|
+
FieldMeta('security_details', 'securityDetails', True, 'object', ref='Network.SecurityDetails'),
|
|
503
|
+
)
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
@register("Network.WebSocketRequest")
|
|
507
|
+
@dataclass
|
|
508
|
+
class WebSocketRequest(DataType):
|
|
509
|
+
"""WebSocket request data."""
|
|
510
|
+
headers: Headers
|
|
511
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
512
|
+
FieldMeta('headers', 'headers', False, 'primitive'),
|
|
513
|
+
)
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
@register("Network.WebSocketResponse")
|
|
517
|
+
@dataclass
|
|
518
|
+
class WebSocketResponse(DataType):
|
|
519
|
+
"""WebSocket response data."""
|
|
520
|
+
status: int
|
|
521
|
+
status_text: str
|
|
522
|
+
headers: Headers
|
|
523
|
+
headers_text: Optional[str] = None
|
|
524
|
+
request_headers: Optional[Headers] = None
|
|
525
|
+
request_headers_text: Optional[str] = None
|
|
526
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
527
|
+
FieldMeta('status', 'status', False, 'primitive'),
|
|
528
|
+
FieldMeta('status_text', 'statusText', False, 'primitive'),
|
|
529
|
+
FieldMeta('headers', 'headers', False, 'primitive'),
|
|
530
|
+
FieldMeta('headers_text', 'headersText', True, 'primitive'),
|
|
531
|
+
FieldMeta('request_headers', 'requestHeaders', True, 'primitive'),
|
|
532
|
+
FieldMeta('request_headers_text', 'requestHeadersText', True, 'primitive'),
|
|
533
|
+
)
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
@register("Network.WebSocketFrame")
|
|
537
|
+
@dataclass
|
|
538
|
+
class WebSocketFrame(DataType):
|
|
539
|
+
"""WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests."""
|
|
540
|
+
opcode: float
|
|
541
|
+
mask: bool
|
|
542
|
+
payload_data: str
|
|
543
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
544
|
+
FieldMeta('opcode', 'opcode', False, 'primitive'),
|
|
545
|
+
FieldMeta('mask', 'mask', False, 'primitive'),
|
|
546
|
+
FieldMeta('payload_data', 'payloadData', False, 'primitive'),
|
|
547
|
+
)
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
@register("Network.CachedResource")
|
|
551
|
+
@dataclass
|
|
552
|
+
class CachedResource(DataType):
|
|
553
|
+
"""Information about the cached resource."""
|
|
554
|
+
url: str
|
|
555
|
+
type_: ResourceType
|
|
556
|
+
body_size: float
|
|
557
|
+
response: Optional[Response] = None
|
|
558
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
559
|
+
FieldMeta('url', 'url', False, 'primitive'),
|
|
560
|
+
FieldMeta('type_', 'type', False, 'enum', ref='Network.ResourceType'),
|
|
561
|
+
FieldMeta('body_size', 'bodySize', False, 'primitive'),
|
|
562
|
+
FieldMeta('response', 'response', True, 'object', ref='Network.Response'),
|
|
563
|
+
)
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
@register("Network.Initiator")
|
|
567
|
+
@dataclass
|
|
568
|
+
class Initiator(DataType):
|
|
569
|
+
"""Information about the request initiator."""
|
|
570
|
+
type_: Literal['parser', 'script', 'preload', 'SignedExchange', 'preflight', 'FedCM', 'other']
|
|
571
|
+
stack: Optional[Runtime_StackTrace] = None
|
|
572
|
+
url: Optional[str] = None
|
|
573
|
+
line_number: Optional[float] = None
|
|
574
|
+
column_number: Optional[float] = None
|
|
575
|
+
request_id: Optional[RequestId] = None
|
|
576
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
577
|
+
FieldMeta('type_', 'type', False, 'primitive'),
|
|
578
|
+
FieldMeta('stack', 'stack', True, 'object', ref='Runtime.StackTrace'),
|
|
579
|
+
FieldMeta('url', 'url', True, 'primitive'),
|
|
580
|
+
FieldMeta('line_number', 'lineNumber', True, 'primitive'),
|
|
581
|
+
FieldMeta('column_number', 'columnNumber', True, 'primitive'),
|
|
582
|
+
FieldMeta('request_id', 'requestId', True, 'primitive'),
|
|
583
|
+
)
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
@register("Network.CookiePartitionKey")
|
|
587
|
+
@dataclass
|
|
588
|
+
class CookiePartitionKey(DataType):
|
|
589
|
+
"""
|
|
590
|
+
cookiePartitionKey object
|
|
591
|
+
The representation of the components of the key that are created by the cookiePartitionKey class contained in net/cookies/cookie_partition_key.h.
|
|
592
|
+
"""
|
|
593
|
+
top_level_site: str
|
|
594
|
+
has_cross_site_ancestor: bool
|
|
595
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
596
|
+
FieldMeta('top_level_site', 'topLevelSite', False, 'primitive'),
|
|
597
|
+
FieldMeta('has_cross_site_ancestor', 'hasCrossSiteAncestor', False, 'primitive'),
|
|
598
|
+
)
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
@register("Network.Cookie")
|
|
602
|
+
@dataclass
|
|
603
|
+
class Cookie(DataType):
|
|
604
|
+
"""Cookie object"""
|
|
605
|
+
name: str
|
|
606
|
+
value: str
|
|
607
|
+
domain: str
|
|
608
|
+
path: str
|
|
609
|
+
expires: float
|
|
610
|
+
size: int
|
|
611
|
+
http_only: bool
|
|
612
|
+
secure: bool
|
|
613
|
+
session: bool
|
|
614
|
+
priority: CookiePriority
|
|
615
|
+
same_party: bool
|
|
616
|
+
source_scheme: CookieSourceScheme
|
|
617
|
+
source_port: int
|
|
618
|
+
same_site: Optional[CookieSameSite] = None
|
|
619
|
+
partition_key: Optional[CookiePartitionKey] = None
|
|
620
|
+
partition_key_opaque: Optional[bool] = None
|
|
621
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
622
|
+
FieldMeta('name', 'name', False, 'primitive'),
|
|
623
|
+
FieldMeta('value', 'value', False, 'primitive'),
|
|
624
|
+
FieldMeta('domain', 'domain', False, 'primitive'),
|
|
625
|
+
FieldMeta('path', 'path', False, 'primitive'),
|
|
626
|
+
FieldMeta('expires', 'expires', False, 'primitive'),
|
|
627
|
+
FieldMeta('size', 'size', False, 'primitive'),
|
|
628
|
+
FieldMeta('http_only', 'httpOnly', False, 'primitive'),
|
|
629
|
+
FieldMeta('secure', 'secure', False, 'primitive'),
|
|
630
|
+
FieldMeta('session', 'session', False, 'primitive'),
|
|
631
|
+
FieldMeta('priority', 'priority', False, 'enum', ref='Network.CookiePriority'),
|
|
632
|
+
FieldMeta('same_party', 'sameParty', False, 'primitive'),
|
|
633
|
+
FieldMeta('source_scheme', 'sourceScheme', False, 'enum', ref='Network.CookieSourceScheme'),
|
|
634
|
+
FieldMeta('source_port', 'sourcePort', False, 'primitive'),
|
|
635
|
+
FieldMeta('same_site', 'sameSite', True, 'enum', ref='Network.CookieSameSite'),
|
|
636
|
+
FieldMeta('partition_key', 'partitionKey', True, 'object', ref='Network.CookiePartitionKey'),
|
|
637
|
+
FieldMeta('partition_key_opaque', 'partitionKeyOpaque', True, 'primitive'),
|
|
638
|
+
)
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
@register("Network.SetCookieBlockedReason")
|
|
642
|
+
class SetCookieBlockedReason(str, Enum):
|
|
643
|
+
"""Types of reasons why a cookie may not be stored from a response."""
|
|
644
|
+
SECUREONLY = 'SecureOnly'
|
|
645
|
+
SAMESITESTRICT = 'SameSiteStrict'
|
|
646
|
+
SAMESITELAX = 'SameSiteLax'
|
|
647
|
+
SAMESITEUNSPECIFIEDTREATEDASLAX = 'SameSiteUnspecifiedTreatedAsLax'
|
|
648
|
+
SAMESITENONEINSECURE = 'SameSiteNoneInsecure'
|
|
649
|
+
USERPREFERENCES = 'UserPreferences'
|
|
650
|
+
THIRDPARTYPHASEOUT = 'ThirdPartyPhaseout'
|
|
651
|
+
THIRDPARTYBLOCKEDINFIRSTPARTYSET = 'ThirdPartyBlockedInFirstPartySet'
|
|
652
|
+
SYNTAXERROR = 'SyntaxError'
|
|
653
|
+
SCHEMENOTSUPPORTED = 'SchemeNotSupported'
|
|
654
|
+
OVERWRITESECURE = 'OverwriteSecure'
|
|
655
|
+
INVALIDDOMAIN = 'InvalidDomain'
|
|
656
|
+
INVALIDPREFIX = 'InvalidPrefix'
|
|
657
|
+
UNKNOWNERROR = 'UnknownError'
|
|
658
|
+
SCHEMEFULSAMESITESTRICT = 'SchemefulSameSiteStrict'
|
|
659
|
+
SCHEMEFULSAMESITELAX = 'SchemefulSameSiteLax'
|
|
660
|
+
SCHEMEFULSAMESITEUNSPECIFIEDTREATEDASLAX = 'SchemefulSameSiteUnspecifiedTreatedAsLax'
|
|
661
|
+
SAMEPARTYFROMCROSSPARTYCONTEXT = 'SamePartyFromCrossPartyContext'
|
|
662
|
+
SAMEPARTYCONFLICTSWITHOTHERATTRIBUTES = 'SamePartyConflictsWithOtherAttributes'
|
|
663
|
+
NAMEVALUEPAIREXCEEDSMAXSIZE = 'NameValuePairExceedsMaxSize'
|
|
664
|
+
DISALLOWEDCHARACTER = 'DisallowedCharacter'
|
|
665
|
+
NOCOOKIECONTENT = 'NoCookieContent'
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
@register("Network.CookieBlockedReason")
|
|
669
|
+
class CookieBlockedReason(str, Enum):
|
|
670
|
+
"""Types of reasons why a cookie may not be sent with a request."""
|
|
671
|
+
SECUREONLY = 'SecureOnly'
|
|
672
|
+
NOTONPATH = 'NotOnPath'
|
|
673
|
+
DOMAINMISMATCH = 'DomainMismatch'
|
|
674
|
+
SAMESITESTRICT = 'SameSiteStrict'
|
|
675
|
+
SAMESITELAX = 'SameSiteLax'
|
|
676
|
+
SAMESITEUNSPECIFIEDTREATEDASLAX = 'SameSiteUnspecifiedTreatedAsLax'
|
|
677
|
+
SAMESITENONEINSECURE = 'SameSiteNoneInsecure'
|
|
678
|
+
USERPREFERENCES = 'UserPreferences'
|
|
679
|
+
THIRDPARTYPHASEOUT = 'ThirdPartyPhaseout'
|
|
680
|
+
THIRDPARTYBLOCKEDINFIRSTPARTYSET = 'ThirdPartyBlockedInFirstPartySet'
|
|
681
|
+
UNKNOWNERROR = 'UnknownError'
|
|
682
|
+
SCHEMEFULSAMESITESTRICT = 'SchemefulSameSiteStrict'
|
|
683
|
+
SCHEMEFULSAMESITELAX = 'SchemefulSameSiteLax'
|
|
684
|
+
SCHEMEFULSAMESITEUNSPECIFIEDTREATEDASLAX = 'SchemefulSameSiteUnspecifiedTreatedAsLax'
|
|
685
|
+
SAMEPARTYFROMCROSSPARTYCONTEXT = 'SamePartyFromCrossPartyContext'
|
|
686
|
+
NAMEVALUEPAIREXCEEDSMAXSIZE = 'NameValuePairExceedsMaxSize'
|
|
687
|
+
PORTMISMATCH = 'PortMismatch'
|
|
688
|
+
SCHEMEMISMATCH = 'SchemeMismatch'
|
|
689
|
+
ANONYMOUSCONTEXT = 'AnonymousContext'
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
@register("Network.CookieExemptionReason")
|
|
693
|
+
class CookieExemptionReason(str, Enum):
|
|
694
|
+
"""Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request."""
|
|
695
|
+
NONE = 'None'
|
|
696
|
+
USERSETTING = 'UserSetting'
|
|
697
|
+
TPCDMETADATA = 'TPCDMetadata'
|
|
698
|
+
TPCDDEPRECATIONTRIAL = 'TPCDDeprecationTrial'
|
|
699
|
+
TOPLEVELTPCDDEPRECATIONTRIAL = 'TopLevelTPCDDeprecationTrial'
|
|
700
|
+
TPCDHEURISTICS = 'TPCDHeuristics'
|
|
701
|
+
ENTERPRISEPOLICY = 'EnterprisePolicy'
|
|
702
|
+
STORAGEACCESS = 'StorageAccess'
|
|
703
|
+
TOPLEVELSTORAGEACCESS = 'TopLevelStorageAccess'
|
|
704
|
+
SCHEME = 'Scheme'
|
|
705
|
+
SAMESITENONECOOKIESINSANDBOX = 'SameSiteNoneCookiesInSandbox'
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
@register("Network.BlockedSetCookieWithReason")
|
|
709
|
+
@dataclass
|
|
710
|
+
class BlockedSetCookieWithReason(DataType):
|
|
711
|
+
"""A cookie which was not stored from a response with the corresponding reason."""
|
|
712
|
+
blocked_reasons: List[SetCookieBlockedReason]
|
|
713
|
+
cookie_line: str
|
|
714
|
+
cookie: Optional[Cookie] = None
|
|
715
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
716
|
+
FieldMeta('blocked_reasons', 'blockedReasons', False, 'array', inner=FieldMeta('', '', False, 'enum', ref='Network.SetCookieBlockedReason')),
|
|
717
|
+
FieldMeta('cookie_line', 'cookieLine', False, 'primitive'),
|
|
718
|
+
FieldMeta('cookie', 'cookie', True, 'object', ref='Network.Cookie'),
|
|
719
|
+
)
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
@register("Network.ExemptedSetCookieWithReason")
|
|
723
|
+
@dataclass
|
|
724
|
+
class ExemptedSetCookieWithReason(DataType):
|
|
725
|
+
"""
|
|
726
|
+
A cookie should have been blocked by 3PCD but is exempted and stored from a response with the
|
|
727
|
+
corresponding reason. A cookie could only have at most one exemption reason.
|
|
728
|
+
"""
|
|
729
|
+
exemption_reason: CookieExemptionReason
|
|
730
|
+
cookie_line: str
|
|
731
|
+
cookie: Cookie
|
|
732
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
733
|
+
FieldMeta('exemption_reason', 'exemptionReason', False, 'enum', ref='Network.CookieExemptionReason'),
|
|
734
|
+
FieldMeta('cookie_line', 'cookieLine', False, 'primitive'),
|
|
735
|
+
FieldMeta('cookie', 'cookie', False, 'object', ref='Network.Cookie'),
|
|
736
|
+
)
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
@register("Network.AssociatedCookie")
|
|
740
|
+
@dataclass
|
|
741
|
+
class AssociatedCookie(DataType):
|
|
742
|
+
"""
|
|
743
|
+
A cookie associated with the request which may or may not be sent with it.
|
|
744
|
+
Includes the cookies itself and reasons for blocking or exemption.
|
|
745
|
+
"""
|
|
746
|
+
cookie: Cookie
|
|
747
|
+
blocked_reasons: List[CookieBlockedReason]
|
|
748
|
+
exemption_reason: Optional[CookieExemptionReason] = None
|
|
749
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
750
|
+
FieldMeta('cookie', 'cookie', False, 'object', ref='Network.Cookie'),
|
|
751
|
+
FieldMeta('blocked_reasons', 'blockedReasons', False, 'array', inner=FieldMeta('', '', False, 'enum', ref='Network.CookieBlockedReason')),
|
|
752
|
+
FieldMeta('exemption_reason', 'exemptionReason', True, 'enum', ref='Network.CookieExemptionReason'),
|
|
753
|
+
)
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
@register("Network.CookieParam")
|
|
757
|
+
@dataclass
|
|
758
|
+
class CookieParam(DataType):
|
|
759
|
+
"""Cookie parameter object"""
|
|
760
|
+
name: str
|
|
761
|
+
value: str
|
|
762
|
+
url: Optional[str] = None
|
|
763
|
+
domain: Optional[str] = None
|
|
764
|
+
path: Optional[str] = None
|
|
765
|
+
secure: Optional[bool] = None
|
|
766
|
+
http_only: Optional[bool] = None
|
|
767
|
+
same_site: Optional[CookieSameSite] = None
|
|
768
|
+
expires: Optional[TimeSinceEpoch] = None
|
|
769
|
+
priority: Optional[CookiePriority] = None
|
|
770
|
+
same_party: Optional[bool] = None
|
|
771
|
+
source_scheme: Optional[CookieSourceScheme] = None
|
|
772
|
+
source_port: Optional[int] = None
|
|
773
|
+
partition_key: Optional[CookiePartitionKey] = None
|
|
774
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
775
|
+
FieldMeta('name', 'name', False, 'primitive'),
|
|
776
|
+
FieldMeta('value', 'value', False, 'primitive'),
|
|
777
|
+
FieldMeta('url', 'url', True, 'primitive'),
|
|
778
|
+
FieldMeta('domain', 'domain', True, 'primitive'),
|
|
779
|
+
FieldMeta('path', 'path', True, 'primitive'),
|
|
780
|
+
FieldMeta('secure', 'secure', True, 'primitive'),
|
|
781
|
+
FieldMeta('http_only', 'httpOnly', True, 'primitive'),
|
|
782
|
+
FieldMeta('same_site', 'sameSite', True, 'enum', ref='Network.CookieSameSite'),
|
|
783
|
+
FieldMeta('expires', 'expires', True, 'primitive'),
|
|
784
|
+
FieldMeta('priority', 'priority', True, 'enum', ref='Network.CookiePriority'),
|
|
785
|
+
FieldMeta('same_party', 'sameParty', True, 'primitive'),
|
|
786
|
+
FieldMeta('source_scheme', 'sourceScheme', True, 'enum', ref='Network.CookieSourceScheme'),
|
|
787
|
+
FieldMeta('source_port', 'sourcePort', True, 'primitive'),
|
|
788
|
+
FieldMeta('partition_key', 'partitionKey', True, 'object', ref='Network.CookiePartitionKey'),
|
|
789
|
+
)
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
@register("Network.AuthChallenge")
|
|
793
|
+
@dataclass
|
|
794
|
+
class AuthChallenge(DataType):
|
|
795
|
+
"""Authorization challenge for HTTP status code 401 or 407."""
|
|
796
|
+
origin: str
|
|
797
|
+
scheme: str
|
|
798
|
+
realm: str
|
|
799
|
+
source: Optional[Literal['Server', 'Proxy']] = None
|
|
800
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
801
|
+
FieldMeta('origin', 'origin', False, 'primitive'),
|
|
802
|
+
FieldMeta('scheme', 'scheme', False, 'primitive'),
|
|
803
|
+
FieldMeta('realm', 'realm', False, 'primitive'),
|
|
804
|
+
FieldMeta('source', 'source', True, 'primitive'),
|
|
805
|
+
)
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
@register("Network.AuthChallengeResponse")
|
|
809
|
+
@dataclass
|
|
810
|
+
class AuthChallengeResponse(DataType):
|
|
811
|
+
"""Response to an AuthChallenge."""
|
|
812
|
+
response: Literal['Default', 'CancelAuth', 'ProvideCredentials']
|
|
813
|
+
username: Optional[str] = None
|
|
814
|
+
password: Optional[str] = None
|
|
815
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
816
|
+
FieldMeta('response', 'response', False, 'primitive'),
|
|
817
|
+
FieldMeta('username', 'username', True, 'primitive'),
|
|
818
|
+
FieldMeta('password', 'password', True, 'primitive'),
|
|
819
|
+
)
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
@register("Network.InterceptionStage")
|
|
823
|
+
class InterceptionStage(str, Enum):
|
|
824
|
+
"""
|
|
825
|
+
Stages of the interception to begin intercepting. Request will intercept before the request is
|
|
826
|
+
sent. Response will intercept after the response is received.
|
|
827
|
+
"""
|
|
828
|
+
REQUEST = 'Request'
|
|
829
|
+
HEADERSRECEIVED = 'HeadersReceived'
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
@register("Network.RequestPattern")
|
|
833
|
+
@dataclass
|
|
834
|
+
class RequestPattern(DataType):
|
|
835
|
+
"""Request pattern for interception."""
|
|
836
|
+
url_pattern: Optional[str] = None
|
|
837
|
+
resource_type: Optional[ResourceType] = None
|
|
838
|
+
interception_stage: Optional[InterceptionStage] = None
|
|
839
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
840
|
+
FieldMeta('url_pattern', 'urlPattern', True, 'primitive'),
|
|
841
|
+
FieldMeta('resource_type', 'resourceType', True, 'enum', ref='Network.ResourceType'),
|
|
842
|
+
FieldMeta('interception_stage', 'interceptionStage', True, 'enum', ref='Network.InterceptionStage'),
|
|
843
|
+
)
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
@register("Network.SignedExchangeSignature")
|
|
847
|
+
@dataclass
|
|
848
|
+
class SignedExchangeSignature(DataType):
|
|
849
|
+
"""
|
|
850
|
+
Information about a signed exchange signature.
|
|
851
|
+
https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1
|
|
852
|
+
"""
|
|
853
|
+
label: str
|
|
854
|
+
signature: str
|
|
855
|
+
integrity: str
|
|
856
|
+
validity_url: str
|
|
857
|
+
date: int
|
|
858
|
+
expires: int
|
|
859
|
+
cert_url: Optional[str] = None
|
|
860
|
+
cert_sha256: Optional[str] = None
|
|
861
|
+
certificates: Optional[List[str]] = None
|
|
862
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
863
|
+
FieldMeta('label', 'label', False, 'primitive'),
|
|
864
|
+
FieldMeta('signature', 'signature', False, 'primitive'),
|
|
865
|
+
FieldMeta('integrity', 'integrity', False, 'primitive'),
|
|
866
|
+
FieldMeta('validity_url', 'validityUrl', False, 'primitive'),
|
|
867
|
+
FieldMeta('date', 'date', False, 'primitive'),
|
|
868
|
+
FieldMeta('expires', 'expires', False, 'primitive'),
|
|
869
|
+
FieldMeta('cert_url', 'certUrl', True, 'primitive'),
|
|
870
|
+
FieldMeta('cert_sha256', 'certSha256', True, 'primitive'),
|
|
871
|
+
FieldMeta('certificates', 'certificates', True, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
872
|
+
)
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
@register("Network.SignedExchangeHeader")
|
|
876
|
+
@dataclass
|
|
877
|
+
class SignedExchangeHeader(DataType):
|
|
878
|
+
"""
|
|
879
|
+
Information about a signed exchange header.
|
|
880
|
+
https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation
|
|
881
|
+
"""
|
|
882
|
+
request_url: str
|
|
883
|
+
response_code: int
|
|
884
|
+
response_headers: Headers
|
|
885
|
+
signatures: List[SignedExchangeSignature]
|
|
886
|
+
header_integrity: str
|
|
887
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
888
|
+
FieldMeta('request_url', 'requestUrl', False, 'primitive'),
|
|
889
|
+
FieldMeta('response_code', 'responseCode', False, 'primitive'),
|
|
890
|
+
FieldMeta('response_headers', 'responseHeaders', False, 'primitive'),
|
|
891
|
+
FieldMeta('signatures', 'signatures', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Network.SignedExchangeSignature')),
|
|
892
|
+
FieldMeta('header_integrity', 'headerIntegrity', False, 'primitive'),
|
|
893
|
+
)
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
@register("Network.SignedExchangeErrorField")
|
|
897
|
+
class SignedExchangeErrorField(str, Enum):
|
|
898
|
+
"""Field type for a signed exchange related error."""
|
|
899
|
+
SIGNATURESIG = 'signatureSig'
|
|
900
|
+
SIGNATUREINTEGRITY = 'signatureIntegrity'
|
|
901
|
+
SIGNATURECERTURL = 'signatureCertUrl'
|
|
902
|
+
SIGNATURECERTSHA256 = 'signatureCertSha256'
|
|
903
|
+
SIGNATUREVALIDITYURL = 'signatureValidityUrl'
|
|
904
|
+
SIGNATURETIMESTAMPS = 'signatureTimestamps'
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
@register("Network.SignedExchangeError")
|
|
908
|
+
@dataclass
|
|
909
|
+
class SignedExchangeError(DataType):
|
|
910
|
+
"""Information about a signed exchange response."""
|
|
911
|
+
message: str
|
|
912
|
+
signature_index: Optional[int] = None
|
|
913
|
+
error_field: Optional[SignedExchangeErrorField] = None
|
|
914
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
915
|
+
FieldMeta('message', 'message', False, 'primitive'),
|
|
916
|
+
FieldMeta('signature_index', 'signatureIndex', True, 'primitive'),
|
|
917
|
+
FieldMeta('error_field', 'errorField', True, 'enum', ref='Network.SignedExchangeErrorField'),
|
|
918
|
+
)
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
@register("Network.SignedExchangeInfo")
|
|
922
|
+
@dataclass
|
|
923
|
+
class SignedExchangeInfo(DataType):
|
|
924
|
+
"""Information about a signed exchange response."""
|
|
925
|
+
outer_response: Response
|
|
926
|
+
has_extra_info: bool
|
|
927
|
+
header: Optional[SignedExchangeHeader] = None
|
|
928
|
+
security_details: Optional[SecurityDetails] = None
|
|
929
|
+
errors: Optional[List[SignedExchangeError]] = None
|
|
930
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
931
|
+
FieldMeta('outer_response', 'outerResponse', False, 'object', ref='Network.Response'),
|
|
932
|
+
FieldMeta('has_extra_info', 'hasExtraInfo', False, 'primitive'),
|
|
933
|
+
FieldMeta('header', 'header', True, 'object', ref='Network.SignedExchangeHeader'),
|
|
934
|
+
FieldMeta('security_details', 'securityDetails', True, 'object', ref='Network.SecurityDetails'),
|
|
935
|
+
FieldMeta('errors', 'errors', True, 'array', inner=FieldMeta('', '', False, 'object', ref='Network.SignedExchangeError')),
|
|
936
|
+
)
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
@register("Network.ContentEncoding")
|
|
940
|
+
class ContentEncoding(str, Enum):
|
|
941
|
+
"""List of content encodings supported by the backend."""
|
|
942
|
+
DEFLATE = 'deflate'
|
|
943
|
+
GZIP = 'gzip'
|
|
944
|
+
BR = 'br'
|
|
945
|
+
ZSTD = 'zstd'
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
@register("Network.NetworkConditions")
|
|
949
|
+
@dataclass
|
|
950
|
+
class NetworkConditions(DataType):
|
|
951
|
+
url_pattern: str
|
|
952
|
+
latency: float
|
|
953
|
+
download_throughput: float
|
|
954
|
+
upload_throughput: float
|
|
955
|
+
connection_type: Optional[ConnectionType] = None
|
|
956
|
+
packet_loss: Optional[float] = None
|
|
957
|
+
packet_queue_length: Optional[int] = None
|
|
958
|
+
packet_reordering: Optional[bool] = None
|
|
959
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
960
|
+
FieldMeta('url_pattern', 'urlPattern', False, 'primitive'),
|
|
961
|
+
FieldMeta('latency', 'latency', False, 'primitive'),
|
|
962
|
+
FieldMeta('download_throughput', 'downloadThroughput', False, 'primitive'),
|
|
963
|
+
FieldMeta('upload_throughput', 'uploadThroughput', False, 'primitive'),
|
|
964
|
+
FieldMeta('connection_type', 'connectionType', True, 'enum', ref='Network.ConnectionType'),
|
|
965
|
+
FieldMeta('packet_loss', 'packetLoss', True, 'primitive'),
|
|
966
|
+
FieldMeta('packet_queue_length', 'packetQueueLength', True, 'primitive'),
|
|
967
|
+
FieldMeta('packet_reordering', 'packetReordering', True, 'primitive'),
|
|
968
|
+
)
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
@register("Network.BlockPattern")
|
|
972
|
+
@dataclass
|
|
973
|
+
class BlockPattern(DataType):
|
|
974
|
+
url_pattern: str
|
|
975
|
+
block: bool
|
|
976
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
977
|
+
FieldMeta('url_pattern', 'urlPattern', False, 'primitive'),
|
|
978
|
+
FieldMeta('block', 'block', False, 'primitive'),
|
|
979
|
+
)
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
@register("Network.DirectSocketDnsQueryType")
|
|
983
|
+
class DirectSocketDnsQueryType(str, Enum):
|
|
984
|
+
IPV4 = 'ipv4'
|
|
985
|
+
IPV6 = 'ipv6'
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
@register("Network.DirectTCPSocketOptions")
|
|
989
|
+
@dataclass
|
|
990
|
+
class DirectTCPSocketOptions(DataType):
|
|
991
|
+
no_delay: bool
|
|
992
|
+
keep_alive_delay: Optional[float] = None
|
|
993
|
+
send_buffer_size: Optional[float] = None
|
|
994
|
+
receive_buffer_size: Optional[float] = None
|
|
995
|
+
dns_query_type: Optional[DirectSocketDnsQueryType] = None
|
|
996
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
997
|
+
FieldMeta('no_delay', 'noDelay', False, 'primitive'),
|
|
998
|
+
FieldMeta('keep_alive_delay', 'keepAliveDelay', True, 'primitive'),
|
|
999
|
+
FieldMeta('send_buffer_size', 'sendBufferSize', True, 'primitive'),
|
|
1000
|
+
FieldMeta('receive_buffer_size', 'receiveBufferSize', True, 'primitive'),
|
|
1001
|
+
FieldMeta('dns_query_type', 'dnsQueryType', True, 'enum', ref='Network.DirectSocketDnsQueryType'),
|
|
1002
|
+
)
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
@register("Network.DirectUDPSocketOptions")
|
|
1006
|
+
@dataclass
|
|
1007
|
+
class DirectUDPSocketOptions(DataType):
|
|
1008
|
+
remote_addr: Optional[str] = None
|
|
1009
|
+
remote_port: Optional[int] = None
|
|
1010
|
+
local_addr: Optional[str] = None
|
|
1011
|
+
local_port: Optional[int] = None
|
|
1012
|
+
dns_query_type: Optional[DirectSocketDnsQueryType] = None
|
|
1013
|
+
send_buffer_size: Optional[float] = None
|
|
1014
|
+
receive_buffer_size: Optional[float] = None
|
|
1015
|
+
multicast_loopback: Optional[bool] = None
|
|
1016
|
+
multicast_time_to_live: Optional[int] = None
|
|
1017
|
+
multicast_allow_address_sharing: Optional[bool] = None
|
|
1018
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
1019
|
+
FieldMeta('remote_addr', 'remoteAddr', True, 'primitive'),
|
|
1020
|
+
FieldMeta('remote_port', 'remotePort', True, 'primitive'),
|
|
1021
|
+
FieldMeta('local_addr', 'localAddr', True, 'primitive'),
|
|
1022
|
+
FieldMeta('local_port', 'localPort', True, 'primitive'),
|
|
1023
|
+
FieldMeta('dns_query_type', 'dnsQueryType', True, 'enum', ref='Network.DirectSocketDnsQueryType'),
|
|
1024
|
+
FieldMeta('send_buffer_size', 'sendBufferSize', True, 'primitive'),
|
|
1025
|
+
FieldMeta('receive_buffer_size', 'receiveBufferSize', True, 'primitive'),
|
|
1026
|
+
FieldMeta('multicast_loopback', 'multicastLoopback', True, 'primitive'),
|
|
1027
|
+
FieldMeta('multicast_time_to_live', 'multicastTimeToLive', True, 'primitive'),
|
|
1028
|
+
FieldMeta('multicast_allow_address_sharing', 'multicastAllowAddressSharing', True, 'primitive'),
|
|
1029
|
+
)
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
@register("Network.DirectUDPMessage")
|
|
1033
|
+
@dataclass
|
|
1034
|
+
class DirectUDPMessage(DataType):
|
|
1035
|
+
data: str
|
|
1036
|
+
remote_addr: Optional[str] = None
|
|
1037
|
+
remote_port: Optional[int] = None
|
|
1038
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
1039
|
+
FieldMeta('data', 'data', False, 'primitive'),
|
|
1040
|
+
FieldMeta('remote_addr', 'remoteAddr', True, 'primitive'),
|
|
1041
|
+
FieldMeta('remote_port', 'remotePort', True, 'primitive'),
|
|
1042
|
+
)
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
@register("Network.PrivateNetworkRequestPolicy")
|
|
1046
|
+
class PrivateNetworkRequestPolicy(str, Enum):
|
|
1047
|
+
ALLOW = 'Allow'
|
|
1048
|
+
BLOCKFROMINSECURETOMOREPRIVATE = 'BlockFromInsecureToMorePrivate'
|
|
1049
|
+
WARNFROMINSECURETOMOREPRIVATE = 'WarnFromInsecureToMorePrivate'
|
|
1050
|
+
PERMISSIONBLOCK = 'PermissionBlock'
|
|
1051
|
+
PERMISSIONWARN = 'PermissionWarn'
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
@register("Network.IPAddressSpace")
|
|
1055
|
+
class IPAddressSpace(str, Enum):
|
|
1056
|
+
LOOPBACK = 'Loopback'
|
|
1057
|
+
LOCAL = 'Local'
|
|
1058
|
+
PUBLIC = 'Public'
|
|
1059
|
+
UNKNOWN = 'Unknown'
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
@register("Network.ConnectTiming")
|
|
1063
|
+
@dataclass
|
|
1064
|
+
class ConnectTiming(DataType):
|
|
1065
|
+
request_time: float
|
|
1066
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
1067
|
+
FieldMeta('request_time', 'requestTime', False, 'primitive'),
|
|
1068
|
+
)
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
@register("Network.ClientSecurityState")
|
|
1072
|
+
@dataclass
|
|
1073
|
+
class ClientSecurityState(DataType):
|
|
1074
|
+
initiator_is_secure_context: bool
|
|
1075
|
+
initiator_ip_address_space: IPAddressSpace
|
|
1076
|
+
private_network_request_policy: PrivateNetworkRequestPolicy
|
|
1077
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
1078
|
+
FieldMeta('initiator_is_secure_context', 'initiatorIsSecureContext', False, 'primitive'),
|
|
1079
|
+
FieldMeta('initiator_ip_address_space', 'initiatorIPAddressSpace', False, 'enum', ref='Network.IPAddressSpace'),
|
|
1080
|
+
FieldMeta('private_network_request_policy', 'privateNetworkRequestPolicy', False, 'enum', ref='Network.PrivateNetworkRequestPolicy'),
|
|
1081
|
+
)
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
@register("Network.CrossOriginOpenerPolicyValue")
|
|
1085
|
+
class CrossOriginOpenerPolicyValue(str, Enum):
|
|
1086
|
+
SAMEORIGIN = 'SameOrigin'
|
|
1087
|
+
SAMEORIGINALLOWPOPUPS = 'SameOriginAllowPopups'
|
|
1088
|
+
RESTRICTPROPERTIES = 'RestrictProperties'
|
|
1089
|
+
UNSAFENONE = 'UnsafeNone'
|
|
1090
|
+
SAMEORIGINPLUSCOEP = 'SameOriginPlusCoep'
|
|
1091
|
+
RESTRICTPROPERTIESPLUSCOEP = 'RestrictPropertiesPlusCoep'
|
|
1092
|
+
NOOPENERALLOWPOPUPS = 'NoopenerAllowPopups'
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
@register("Network.CrossOriginOpenerPolicyStatus")
|
|
1096
|
+
@dataclass
|
|
1097
|
+
class CrossOriginOpenerPolicyStatus(DataType):
|
|
1098
|
+
value: CrossOriginOpenerPolicyValue
|
|
1099
|
+
report_only_value: CrossOriginOpenerPolicyValue
|
|
1100
|
+
reporting_endpoint: Optional[str] = None
|
|
1101
|
+
report_only_reporting_endpoint: Optional[str] = None
|
|
1102
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
1103
|
+
FieldMeta('value', 'value', False, 'enum', ref='Network.CrossOriginOpenerPolicyValue'),
|
|
1104
|
+
FieldMeta('report_only_value', 'reportOnlyValue', False, 'enum', ref='Network.CrossOriginOpenerPolicyValue'),
|
|
1105
|
+
FieldMeta('reporting_endpoint', 'reportingEndpoint', True, 'primitive'),
|
|
1106
|
+
FieldMeta('report_only_reporting_endpoint', 'reportOnlyReportingEndpoint', True, 'primitive'),
|
|
1107
|
+
)
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
@register("Network.CrossOriginEmbedderPolicyValue")
|
|
1111
|
+
class CrossOriginEmbedderPolicyValue(str, Enum):
|
|
1112
|
+
NONE = 'None'
|
|
1113
|
+
CREDENTIALLESS = 'Credentialless'
|
|
1114
|
+
REQUIRECORP = 'RequireCorp'
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
@register("Network.CrossOriginEmbedderPolicyStatus")
|
|
1118
|
+
@dataclass
|
|
1119
|
+
class CrossOriginEmbedderPolicyStatus(DataType):
|
|
1120
|
+
value: CrossOriginEmbedderPolicyValue
|
|
1121
|
+
report_only_value: CrossOriginEmbedderPolicyValue
|
|
1122
|
+
reporting_endpoint: Optional[str] = None
|
|
1123
|
+
report_only_reporting_endpoint: Optional[str] = None
|
|
1124
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
1125
|
+
FieldMeta('value', 'value', False, 'enum', ref='Network.CrossOriginEmbedderPolicyValue'),
|
|
1126
|
+
FieldMeta('report_only_value', 'reportOnlyValue', False, 'enum', ref='Network.CrossOriginEmbedderPolicyValue'),
|
|
1127
|
+
FieldMeta('reporting_endpoint', 'reportingEndpoint', True, 'primitive'),
|
|
1128
|
+
FieldMeta('report_only_reporting_endpoint', 'reportOnlyReportingEndpoint', True, 'primitive'),
|
|
1129
|
+
)
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
@register("Network.ContentSecurityPolicySource")
|
|
1133
|
+
class ContentSecurityPolicySource(str, Enum):
|
|
1134
|
+
HTTP = 'HTTP'
|
|
1135
|
+
META = 'Meta'
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
@register("Network.ContentSecurityPolicyStatus")
|
|
1139
|
+
@dataclass
|
|
1140
|
+
class ContentSecurityPolicyStatus(DataType):
|
|
1141
|
+
effective_directives: str
|
|
1142
|
+
is_enforced: bool
|
|
1143
|
+
source: ContentSecurityPolicySource
|
|
1144
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
1145
|
+
FieldMeta('effective_directives', 'effectiveDirectives', False, 'primitive'),
|
|
1146
|
+
FieldMeta('is_enforced', 'isEnforced', False, 'primitive'),
|
|
1147
|
+
FieldMeta('source', 'source', False, 'enum', ref='Network.ContentSecurityPolicySource'),
|
|
1148
|
+
)
|
|
1149
|
+
|
|
1150
|
+
|
|
1151
|
+
@register("Network.SecurityIsolationStatus")
|
|
1152
|
+
@dataclass
|
|
1153
|
+
class SecurityIsolationStatus(DataType):
|
|
1154
|
+
coop: Optional[CrossOriginOpenerPolicyStatus] = None
|
|
1155
|
+
coep: Optional[CrossOriginEmbedderPolicyStatus] = None
|
|
1156
|
+
csp: Optional[List[ContentSecurityPolicyStatus]] = None
|
|
1157
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
1158
|
+
FieldMeta('coop', 'coop', True, 'object', ref='Network.CrossOriginOpenerPolicyStatus'),
|
|
1159
|
+
FieldMeta('coep', 'coep', True, 'object', ref='Network.CrossOriginEmbedderPolicyStatus'),
|
|
1160
|
+
FieldMeta('csp', 'csp', True, 'array', inner=FieldMeta('', '', False, 'object', ref='Network.ContentSecurityPolicyStatus')),
|
|
1161
|
+
)
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
@register("Network.ReportStatus")
|
|
1165
|
+
class ReportStatus(str, Enum):
|
|
1166
|
+
"""The status of a Reporting API report."""
|
|
1167
|
+
QUEUED = 'Queued'
|
|
1168
|
+
PENDING = 'Pending'
|
|
1169
|
+
MARKEDFORREMOVAL = 'MarkedForRemoval'
|
|
1170
|
+
SUCCESS = 'Success'
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
type ReportId = str
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
@register("Network.ReportingApiReport")
|
|
1177
|
+
@dataclass
|
|
1178
|
+
class ReportingApiReport(DataType):
|
|
1179
|
+
"""An object representing a report generated by the Reporting API."""
|
|
1180
|
+
id: ReportId
|
|
1181
|
+
initiator_url: str
|
|
1182
|
+
destination: str
|
|
1183
|
+
type_: str
|
|
1184
|
+
timestamp: TimeSinceEpoch
|
|
1185
|
+
depth: int
|
|
1186
|
+
completed_attempts: int
|
|
1187
|
+
body: Dict[str, Any]
|
|
1188
|
+
status: ReportStatus
|
|
1189
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
1190
|
+
FieldMeta('id', 'id', False, 'primitive'),
|
|
1191
|
+
FieldMeta('initiator_url', 'initiatorUrl', False, 'primitive'),
|
|
1192
|
+
FieldMeta('destination', 'destination', False, 'primitive'),
|
|
1193
|
+
FieldMeta('type_', 'type', False, 'primitive'),
|
|
1194
|
+
FieldMeta('timestamp', 'timestamp', False, 'primitive'),
|
|
1195
|
+
FieldMeta('depth', 'depth', False, 'primitive'),
|
|
1196
|
+
FieldMeta('completed_attempts', 'completedAttempts', False, 'primitive'),
|
|
1197
|
+
FieldMeta('body', 'body', False, 'primitive'),
|
|
1198
|
+
FieldMeta('status', 'status', False, 'enum', ref='Network.ReportStatus'),
|
|
1199
|
+
)
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
@register("Network.ReportingApiEndpoint")
|
|
1203
|
+
@dataclass
|
|
1204
|
+
class ReportingApiEndpoint(DataType):
|
|
1205
|
+
url: str
|
|
1206
|
+
group_name: str
|
|
1207
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
1208
|
+
FieldMeta('url', 'url', False, 'primitive'),
|
|
1209
|
+
FieldMeta('group_name', 'groupName', False, 'primitive'),
|
|
1210
|
+
)
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
@register("Network.LoadNetworkResourcePageResult")
|
|
1214
|
+
@dataclass
|
|
1215
|
+
class LoadNetworkResourcePageResult(DataType):
|
|
1216
|
+
"""An object providing the result of a network resource load."""
|
|
1217
|
+
success: bool
|
|
1218
|
+
net_error: Optional[float] = None
|
|
1219
|
+
net_error_name: Optional[str] = None
|
|
1220
|
+
http_status_code: Optional[float] = None
|
|
1221
|
+
stream: Optional[IO_StreamHandle] = None
|
|
1222
|
+
headers: Optional[Headers] = None
|
|
1223
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
1224
|
+
FieldMeta('success', 'success', False, 'primitive'),
|
|
1225
|
+
FieldMeta('net_error', 'netError', True, 'primitive'),
|
|
1226
|
+
FieldMeta('net_error_name', 'netErrorName', True, 'primitive'),
|
|
1227
|
+
FieldMeta('http_status_code', 'httpStatusCode', True, 'primitive'),
|
|
1228
|
+
FieldMeta('stream', 'stream', True, 'primitive'),
|
|
1229
|
+
FieldMeta('headers', 'headers', True, 'primitive'),
|
|
1230
|
+
)
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
@register("Network.LoadNetworkResourceOptions")
|
|
1234
|
+
@dataclass
|
|
1235
|
+
class LoadNetworkResourceOptions(DataType):
|
|
1236
|
+
"""
|
|
1237
|
+
An options object that may be extended later to better support CORS,
|
|
1238
|
+
CORB and streaming.
|
|
1239
|
+
"""
|
|
1240
|
+
disable_cache: bool
|
|
1241
|
+
include_credentials: bool
|
|
1242
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
1243
|
+
FieldMeta('disable_cache', 'disableCache', False, 'primitive'),
|
|
1244
|
+
FieldMeta('include_credentials', 'includeCredentials', False, 'primitive'),
|
|
1245
|
+
)
|
|
1246
|
+
|
|
1247
|
+
__all__ = ["AlternateProtocolUsage", "AssociatedCookie", "AuthChallenge", "AuthChallengeResponse", "BlockPattern", "BlockedReason", "BlockedSetCookieWithReason", "CachedResource", "CertificateTransparencyCompliance", "ClientSecurityState", "ConnectTiming", "ConnectionType", "ContentEncoding", "ContentSecurityPolicySource", "ContentSecurityPolicyStatus", "Cookie", "CookieBlockedReason", "CookieExemptionReason", "CookieParam", "CookiePartitionKey", "CookiePriority", "CookieSameSite", "CookieSourceScheme", "CorsError", "CorsErrorStatus", "CrossOriginEmbedderPolicyStatus", "CrossOriginEmbedderPolicyValue", "CrossOriginOpenerPolicyStatus", "CrossOriginOpenerPolicyValue", "DirectSocketDnsQueryType", "DirectTCPSocketOptions", "DirectUDPMessage", "DirectUDPSocketOptions", "ErrorReason", "ExemptedSetCookieWithReason", "Headers", "IPAddressSpace", "Initiator", "InterceptionId", "InterceptionStage", "LoadNetworkResourceOptions", "LoadNetworkResourcePageResult", "LoaderId", "MonotonicTime", "NetworkConditions", "PostDataEntry", "PrivateNetworkRequestPolicy", "ReportId", "ReportStatus", "ReportingApiEndpoint", "ReportingApiReport", "Request", "RequestId", "RequestPattern", "ResourcePriority", "ResourceTiming", "ResourceType", "Response", "SecurityDetails", "SecurityIsolationStatus", "ServiceWorkerResponseSource", "ServiceWorkerRouterInfo", "ServiceWorkerRouterSource", "SetCookieBlockedReason", "SignedCertificateTimestamp", "SignedExchangeError", "SignedExchangeErrorField", "SignedExchangeHeader", "SignedExchangeInfo", "SignedExchangeSignature", "TimeSinceEpoch", "TrustTokenOperationType", "TrustTokenParams", "WebSocketFrame", "WebSocketRequest", "WebSocketResponse"]
|