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.
Files changed (242) hide show
  1. parsek_cdp/__init__.py +55 -0
  2. parsek_cdp/_logging.py +49 -0
  3. parsek_cdp/cdp/__init__.py +247 -0
  4. parsek_cdp/cdp/accessibility/__init__.py +15 -0
  5. parsek_cdp/cdp/accessibility/events.py +35 -0
  6. parsek_cdp/cdp/accessibility/functions.py +202 -0
  7. parsek_cdp/cdp/accessibility/types.py +235 -0
  8. parsek_cdp/cdp/animation/__init__.py +15 -0
  9. parsek_cdp/cdp/animation/events.py +52 -0
  10. parsek_cdp/cdp/animation/functions.py +140 -0
  11. parsek_cdp/cdp/animation/types.py +113 -0
  12. parsek_cdp/cdp/audits/__init__.py +15 -0
  13. parsek_cdp/cdp/audits/events.py +21 -0
  14. parsek_cdp/cdp/audits/functions.py +95 -0
  15. parsek_cdp/cdp/audits/types.py +1051 -0
  16. parsek_cdp/cdp/autofill/__init__.py +15 -0
  17. parsek_cdp/cdp/autofill/events.py +27 -0
  18. parsek_cdp/cdp/autofill/functions.py +64 -0
  19. parsek_cdp/cdp/autofill/types.py +108 -0
  20. parsek_cdp/cdp/backgroundservice/__init__.py +15 -0
  21. parsek_cdp/cdp/backgroundservice/events.py +40 -0
  22. parsek_cdp/cdp/backgroundservice/functions.py +59 -0
  23. parsek_cdp/cdp/backgroundservice/types.py +63 -0
  24. parsek_cdp/cdp/bluetoothemulation/__init__.py +15 -0
  25. parsek_cdp/cdp/bluetoothemulation/events.py +70 -0
  26. parsek_cdp/cdp/bluetoothemulation/functions.py +247 -0
  27. parsek_cdp/cdp/bluetoothemulation/types.py +120 -0
  28. parsek_cdp/cdp/browser/__init__.py +15 -0
  29. parsek_cdp/cdp/browser/events.py +46 -0
  30. parsek_cdp/cdp/browser/functions.py +350 -0
  31. parsek_cdp/cdp/browser/types.py +158 -0
  32. parsek_cdp/cdp/cachestorage/__init__.py +15 -0
  33. parsek_cdp/cdp/cachestorage/events.py +13 -0
  34. parsek_cdp/cdp/cachestorage/functions.py +126 -0
  35. parsek_cdp/cdp/cachestorage/types.py +89 -0
  36. parsek_cdp/cdp/cast/__init__.py +15 -0
  37. parsek_cdp/cdp/cast/events.py +38 -0
  38. parsek_cdp/cdp/cast/functions.py +77 -0
  39. parsek_cdp/cdp/cast/types.py +23 -0
  40. parsek_cdp/cdp/console/__init__.py +15 -0
  41. parsek_cdp/cdp/console/events.py +22 -0
  42. parsek_cdp/cdp/console/functions.py +36 -0
  43. parsek_cdp/cdp/console/types.py +30 -0
  44. parsek_cdp/cdp/css/__init__.py +15 -0
  45. parsek_cdp/cdp/css/events.py +79 -0
  46. parsek_cdp/cdp/css/functions.py +788 -0
  47. parsek_cdp/cdp/css/types.py +742 -0
  48. parsek_cdp/cdp/debugger/__init__.py +15 -0
  49. parsek_cdp/cdp/debugger/events.py +164 -0
  50. parsek_cdp/cdp/debugger/functions.py +663 -0
  51. parsek_cdp/cdp/debugger/types.py +171 -0
  52. parsek_cdp/cdp/deviceaccess/__init__.py +15 -0
  53. parsek_cdp/cdp/deviceaccess/events.py +30 -0
  54. parsek_cdp/cdp/deviceaccess/functions.py +54 -0
  55. parsek_cdp/cdp/deviceaccess/types.py +28 -0
  56. parsek_cdp/cdp/deviceorientation/__init__.py +15 -0
  57. parsek_cdp/cdp/deviceorientation/events.py +13 -0
  58. parsek_cdp/cdp/deviceorientation/functions.py +35 -0
  59. parsek_cdp/cdp/deviceorientation/types.py +10 -0
  60. parsek_cdp/cdp/dom/__init__.py +15 -0
  61. parsek_cdp/cdp/dom/events.py +228 -0
  62. parsek_cdp/cdp/dom/functions.py +1033 -0
  63. parsek_cdp/cdp/dom/types.py +293 -0
  64. parsek_cdp/cdp/domdebugger/__init__.py +15 -0
  65. parsek_cdp/cdp/domdebugger/events.py +13 -0
  66. parsek_cdp/cdp/domdebugger/functions.py +155 -0
  67. parsek_cdp/cdp/domdebugger/types.py +57 -0
  68. parsek_cdp/cdp/domsnapshot/__init__.py +15 -0
  69. parsek_cdp/cdp/domsnapshot/events.py +13 -0
  70. parsek_cdp/cdp/domsnapshot/functions.py +111 -0
  71. parsek_cdp/cdp/domsnapshot/types.py +312 -0
  72. parsek_cdp/cdp/domstorage/__init__.py +15 -0
  73. parsek_cdp/cdp/domstorage/events.py +60 -0
  74. parsek_cdp/cdp/domstorage/functions.py +79 -0
  75. parsek_cdp/cdp/domstorage/types.py +30 -0
  76. parsek_cdp/cdp/emulation/__init__.py +15 -0
  77. parsek_cdp/cdp/emulation/events.py +17 -0
  78. parsek_cdp/cdp/emulation/functions.py +688 -0
  79. parsek_cdp/cdp/emulation/types.py +305 -0
  80. parsek_cdp/cdp/eventbreakpoints/__init__.py +15 -0
  81. parsek_cdp/cdp/eventbreakpoints/events.py +13 -0
  82. parsek_cdp/cdp/eventbreakpoints/functions.py +41 -0
  83. parsek_cdp/cdp/eventbreakpoints/types.py +10 -0
  84. parsek_cdp/cdp/extensions/__init__.py +15 -0
  85. parsek_cdp/cdp/extensions/events.py +13 -0
  86. parsek_cdp/cdp/extensions/functions.py +118 -0
  87. parsek_cdp/cdp/extensions/types.py +19 -0
  88. parsek_cdp/cdp/fedcm/__init__.py +15 -0
  89. parsek_cdp/cdp/fedcm/events.py +45 -0
  90. parsek_cdp/cdp/fedcm/functions.py +93 -0
  91. parsek_cdp/cdp/fedcm/types.py +72 -0
  92. parsek_cdp/cdp/fetch/__init__.py +15 -0
  93. parsek_cdp/cdp/fetch/events.py +82 -0
  94. parsek_cdp/cdp/fetch/functions.py +215 -0
  95. parsek_cdp/cdp/fetch/types.py +81 -0
  96. parsek_cdp/cdp/filesystem/__init__.py +15 -0
  97. parsek_cdp/cdp/filesystem/events.py +13 -0
  98. parsek_cdp/cdp/filesystem/functions.py +36 -0
  99. parsek_cdp/cdp/filesystem/types.py +54 -0
  100. parsek_cdp/cdp/headlessexperimental/__init__.py +15 -0
  101. parsek_cdp/cdp/headlessexperimental/events.py +13 -0
  102. parsek_cdp/cdp/headlessexperimental/functions.py +77 -0
  103. parsek_cdp/cdp/headlessexperimental/types.py +24 -0
  104. parsek_cdp/cdp/heapprofiler/__init__.py +15 -0
  105. parsek_cdp/cdp/heapprofiler/events.py +65 -0
  106. parsek_cdp/cdp/heapprofiler/functions.py +193 -0
  107. parsek_cdp/cdp/heapprofiler/types.py +57 -0
  108. parsek_cdp/cdp/indexeddb/__init__.py +15 -0
  109. parsek_cdp/cdp/indexeddb/events.py +13 -0
  110. parsek_cdp/cdp/indexeddb/functions.py +232 -0
  111. parsek_cdp/cdp/indexeddb/types.py +120 -0
  112. parsek_cdp/cdp/input/__init__.py +15 -0
  113. parsek_cdp/cdp/input/events.py +25 -0
  114. parsek_cdp/cdp/input/functions.py +361 -0
  115. parsek_cdp/cdp/input/types.py +87 -0
  116. parsek_cdp/cdp/inspector/__init__.py +15 -0
  117. parsek_cdp/cdp/inspector/events.py +41 -0
  118. parsek_cdp/cdp/inspector/functions.py +27 -0
  119. parsek_cdp/cdp/inspector/types.py +10 -0
  120. parsek_cdp/cdp/io/__init__.py +15 -0
  121. parsek_cdp/cdp/io/events.py +13 -0
  122. parsek_cdp/cdp/io/functions.py +77 -0
  123. parsek_cdp/cdp/io/types.py +13 -0
  124. parsek_cdp/cdp/layertree/__init__.py +15 -0
  125. parsek_cdp/cdp/layertree/events.py +36 -0
  126. parsek_cdp/cdp/layertree/functions.py +178 -0
  127. parsek_cdp/cdp/layertree/types.py +104 -0
  128. parsek_cdp/cdp/log/__init__.py +15 -0
  129. parsek_cdp/cdp/log/events.py +22 -0
  130. parsek_cdp/cdp/log/functions.py +54 -0
  131. parsek_cdp/cdp/log/types.py +57 -0
  132. parsek_cdp/cdp/media/__init__.py +15 -0
  133. parsek_cdp/cdp/media/events.py +87 -0
  134. parsek_cdp/cdp/media/functions.py +27 -0
  135. parsek_cdp/cdp/media/types.py +101 -0
  136. parsek_cdp/cdp/memory/__init__.py +15 -0
  137. parsek_cdp/cdp/memory/events.py +13 -0
  138. parsek_cdp/cdp/memory/functions.py +164 -0
  139. parsek_cdp/cdp/memory/types.py +71 -0
  140. parsek_cdp/cdp/mixins/__init__.py +21 -0
  141. parsek_cdp/cdp/mixins/datatype.py +123 -0
  142. parsek_cdp/cdp/mixins/event.py +78 -0
  143. parsek_cdp/cdp/mixins/namespace.py +31 -0
  144. parsek_cdp/cdp/network/__init__.py +15 -0
  145. parsek_cdp/cdp/network/events.py +726 -0
  146. parsek_cdp/cdp/network/functions.py +734 -0
  147. parsek_cdp/cdp/network/types.py +1247 -0
  148. parsek_cdp/cdp/overlay/__init__.py +15 -0
  149. parsek_cdp/cdp/overlay/events.py +54 -0
  150. parsek_cdp/cdp/overlay/functions.py +407 -0
  151. parsek_cdp/cdp/overlay/types.py +328 -0
  152. parsek_cdp/cdp/page/__init__.py +15 -0
  153. parsek_cdp/cdp/page/events.py +416 -0
  154. parsek_cdp/cdp/page/functions.py +1081 -0
  155. parsek_cdp/cdp/page/types.py +1088 -0
  156. parsek_cdp/cdp/performance/__init__.py +15 -0
  157. parsek_cdp/cdp/performance/events.py +24 -0
  158. parsek_cdp/cdp/performance/functions.py +63 -0
  159. parsek_cdp/cdp/performance/types.py +22 -0
  160. parsek_cdp/cdp/performancetimeline/__init__.py +15 -0
  161. parsek_cdp/cdp/performancetimeline/events.py +22 -0
  162. parsek_cdp/cdp/performancetimeline/functions.py +30 -0
  163. parsek_cdp/cdp/performancetimeline/types.py +85 -0
  164. parsek_cdp/cdp/preload/__init__.py +15 -0
  165. parsek_cdp/cdp/preload/events.py +116 -0
  166. parsek_cdp/cdp/preload/functions.py +25 -0
  167. parsek_cdp/cdp/preload/types.py +267 -0
  168. parsek_cdp/cdp/profiler/__init__.py +15 -0
  169. parsek_cdp/cdp/profiler/events.py +64 -0
  170. parsek_cdp/cdp/profiler/functions.py +134 -0
  171. parsek_cdp/cdp/profiler/types.py +105 -0
  172. parsek_cdp/cdp/pwa/__init__.py +15 -0
  173. parsek_cdp/cdp/pwa/events.py +13 -0
  174. parsek_cdp/cdp/pwa/functions.py +196 -0
  175. parsek_cdp/cdp/pwa/types.py +45 -0
  176. parsek_cdp/cdp/runtime/__init__.py +15 -0
  177. parsek_cdp/cdp/runtime/events.py +123 -0
  178. parsek_cdp/cdp/runtime/functions.py +552 -0
  179. parsek_cdp/cdp/runtime/types.py +319 -0
  180. parsek_cdp/cdp/schema/__init__.py +15 -0
  181. parsek_cdp/cdp/schema/events.py +13 -0
  182. parsek_cdp/cdp/schema/functions.py +32 -0
  183. parsek_cdp/cdp/schema/types.py +22 -0
  184. parsek_cdp/cdp/security/__init__.py +15 -0
  185. parsek_cdp/cdp/security/events.py +64 -0
  186. parsek_cdp/cdp/security/functions.py +66 -0
  187. parsek_cdp/cdp/security/types.py +168 -0
  188. parsek_cdp/cdp/serviceworker/__init__.py +15 -0
  189. parsek_cdp/cdp/serviceworker/events.py +43 -0
  190. parsek_cdp/cdp/serviceworker/functions.py +115 -0
  191. parsek_cdp/cdp/serviceworker/types.py +95 -0
  192. parsek_cdp/cdp/storage/__init__.py +15 -0
  193. parsek_cdp/cdp/storage/events.py +288 -0
  194. parsek_cdp/cdp/storage/functions.py +571 -0
  195. parsek_cdp/cdp/storage/types.py +656 -0
  196. parsek_cdp/cdp/systeminfo/__init__.py +15 -0
  197. parsek_cdp/cdp/systeminfo/events.py +13 -0
  198. parsek_cdp/cdp/systeminfo/functions.py +75 -0
  199. parsek_cdp/cdp/systeminfo/types.py +132 -0
  200. parsek_cdp/cdp/target/__init__.py +15 -0
  201. parsek_cdp/cdp/target/events.py +109 -0
  202. parsek_cdp/cdp/target/functions.py +424 -0
  203. parsek_cdp/cdp/target/types.py +83 -0
  204. parsek_cdp/cdp/tethering/__init__.py +15 -0
  205. parsek_cdp/cdp/tethering/events.py +22 -0
  206. parsek_cdp/cdp/tethering/functions.py +35 -0
  207. parsek_cdp/cdp/tethering/types.py +10 -0
  208. parsek_cdp/cdp/tracing/__init__.py +15 -0
  209. parsek_cdp/cdp/tracing/events.py +61 -0
  210. parsek_cdp/cdp/tracing/functions.py +119 -0
  211. parsek_cdp/cdp/tracing/types.py +81 -0
  212. parsek_cdp/cdp/webaudio/__init__.py +15 -0
  213. parsek_cdp/cdp/webaudio/events.py +184 -0
  214. parsek_cdp/cdp/webaudio/functions.py +51 -0
  215. parsek_cdp/cdp/webaudio/types.py +155 -0
  216. parsek_cdp/cdp/webauthn/__init__.py +15 -0
  217. parsek_cdp/cdp/webauthn/events.py +69 -0
  218. parsek_cdp/cdp/webauthn/functions.py +214 -0
  219. parsek_cdp/cdp/webauthn/types.py +96 -0
  220. parsek_cdp/core/__init__.py +18 -0
  221. parsek_cdp/core/browser.py +240 -0
  222. parsek_cdp/core/browser_context.py +58 -0
  223. parsek_cdp/core/element.py +405 -0
  224. parsek_cdp/core/feature.py +376 -0
  225. parsek_cdp/core/frame.py +351 -0
  226. parsek_cdp/core/pagable.py +175 -0
  227. parsek_cdp/core/page.py +163 -0
  228. parsek_cdp/core/target.py +490 -0
  229. parsek_cdp/features/__init__.py +14 -0
  230. parsek_cdp/features/request_listener/__init__.py +256 -0
  231. parsek_cdp/features/request_listener/events.py +48 -0
  232. parsek_cdp/features/request_listener/types.py +235 -0
  233. parsek_cdp/generate.py +642 -0
  234. parsek_cdp/parsek/__init__.py +18 -0
  235. parsek_cdp/parsek/events.py +38 -0
  236. parsek_cdp/parsek/types.py +36 -0
  237. parsek_cdp/py.typed +0 -0
  238. parsek_cdp-0.1.0.dist-info/METADATA +277 -0
  239. parsek_cdp-0.1.0.dist-info/RECORD +242 -0
  240. parsek_cdp-0.1.0.dist-info/WHEEL +5 -0
  241. parsek_cdp-0.1.0.dist-info/licenses/LICENSE +201 -0
  242. parsek_cdp-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1051 @@
1
+ """Custom types and enums for the Audits 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 ..dom.types import BackendNodeId as DOM_BackendNodeId
12
+ from ..network.types import ClientSecurityState as Network_ClientSecurityState
13
+ from ..network.types import CorsErrorStatus as Network_CorsErrorStatus
14
+ from ..network.types import IPAddressSpace as Network_IPAddressSpace
15
+ from ..network.types import LoaderId as Network_LoaderId
16
+ from ..network.types import RequestId as Network_RequestId
17
+ from ..page.types import FrameId as Page_FrameId
18
+ from ..runtime.types import ScriptId as Runtime_ScriptId
19
+
20
+ @register("Audits.AffectedCookie")
21
+ @dataclass
22
+ class AffectedCookie(DataType):
23
+ """Information about a cookie that is affected by an inspector issue."""
24
+ name: str
25
+ path: str
26
+ domain: str
27
+ __FIELDS__: ClassVar[tuple] = (
28
+ FieldMeta('name', 'name', False, 'primitive'),
29
+ FieldMeta('path', 'path', False, 'primitive'),
30
+ FieldMeta('domain', 'domain', False, 'primitive'),
31
+ )
32
+
33
+
34
+ @register("Audits.AffectedRequest")
35
+ @dataclass
36
+ class AffectedRequest(DataType):
37
+ """Information about a request that is affected by an inspector issue."""
38
+ url: str
39
+ request_id: Optional[Network_RequestId] = None
40
+ __FIELDS__: ClassVar[tuple] = (
41
+ FieldMeta('url', 'url', False, 'primitive'),
42
+ FieldMeta('request_id', 'requestId', True, 'primitive'),
43
+ )
44
+
45
+
46
+ @register("Audits.AffectedFrame")
47
+ @dataclass
48
+ class AffectedFrame(DataType):
49
+ """Information about the frame affected by an inspector issue."""
50
+ frame_id: Page_FrameId
51
+ __FIELDS__: ClassVar[tuple] = (
52
+ FieldMeta('frame_id', 'frameId', False, 'primitive'),
53
+ )
54
+
55
+
56
+ @register("Audits.CookieExclusionReason")
57
+ class CookieExclusionReason(str, Enum):
58
+ EXCLUDESAMESITEUNSPECIFIEDTREATEDASLAX = 'ExcludeSameSiteUnspecifiedTreatedAsLax'
59
+ EXCLUDESAMESITENONEINSECURE = 'ExcludeSameSiteNoneInsecure'
60
+ EXCLUDESAMESITELAX = 'ExcludeSameSiteLax'
61
+ EXCLUDESAMESITESTRICT = 'ExcludeSameSiteStrict'
62
+ EXCLUDEINVALIDSAMEPARTY = 'ExcludeInvalidSameParty'
63
+ EXCLUDESAMEPARTYCROSSPARTYCONTEXT = 'ExcludeSamePartyCrossPartyContext'
64
+ EXCLUDEDOMAINNONASCII = 'ExcludeDomainNonASCII'
65
+ EXCLUDETHIRDPARTYCOOKIEBLOCKEDINFIRSTPARTYSET = 'ExcludeThirdPartyCookieBlockedInFirstPartySet'
66
+ EXCLUDETHIRDPARTYPHASEOUT = 'ExcludeThirdPartyPhaseout'
67
+ EXCLUDEPORTMISMATCH = 'ExcludePortMismatch'
68
+ EXCLUDESCHEMEMISMATCH = 'ExcludeSchemeMismatch'
69
+
70
+
71
+ @register("Audits.CookieWarningReason")
72
+ class CookieWarningReason(str, Enum):
73
+ WARNSAMESITEUNSPECIFIEDCROSSSITECONTEXT = 'WarnSameSiteUnspecifiedCrossSiteContext'
74
+ WARNSAMESITENONEINSECURE = 'WarnSameSiteNoneInsecure'
75
+ WARNSAMESITEUNSPECIFIEDLAXALLOWUNSAFE = 'WarnSameSiteUnspecifiedLaxAllowUnsafe'
76
+ WARNSAMESITESTRICTLAXDOWNGRADESTRICT = 'WarnSameSiteStrictLaxDowngradeStrict'
77
+ WARNSAMESITESTRICTCROSSDOWNGRADESTRICT = 'WarnSameSiteStrictCrossDowngradeStrict'
78
+ WARNSAMESITESTRICTCROSSDOWNGRADELAX = 'WarnSameSiteStrictCrossDowngradeLax'
79
+ WARNSAMESITELAXCROSSDOWNGRADESTRICT = 'WarnSameSiteLaxCrossDowngradeStrict'
80
+ WARNSAMESITELAXCROSSDOWNGRADELAX = 'WarnSameSiteLaxCrossDowngradeLax'
81
+ WARNATTRIBUTEVALUEEXCEEDSMAXSIZE = 'WarnAttributeValueExceedsMaxSize'
82
+ WARNDOMAINNONASCII = 'WarnDomainNonASCII'
83
+ WARNTHIRDPARTYPHASEOUT = 'WarnThirdPartyPhaseout'
84
+ WARNCROSSSITEREDIRECTDOWNGRADECHANGESINCLUSION = 'WarnCrossSiteRedirectDowngradeChangesInclusion'
85
+ WARNDEPRECATIONTRIALMETADATA = 'WarnDeprecationTrialMetadata'
86
+ WARNTHIRDPARTYCOOKIEHEURISTIC = 'WarnThirdPartyCookieHeuristic'
87
+
88
+
89
+ @register("Audits.CookieOperation")
90
+ class CookieOperation(str, Enum):
91
+ SETCOOKIE = 'SetCookie'
92
+ READCOOKIE = 'ReadCookie'
93
+
94
+
95
+ @register("Audits.InsightType")
96
+ class InsightType(str, Enum):
97
+ """Represents the category of insight that a cookie issue falls under."""
98
+ GITHUBRESOURCE = 'GitHubResource'
99
+ GRACEPERIOD = 'GracePeriod'
100
+ HEURISTICS = 'Heuristics'
101
+
102
+
103
+ @register("Audits.CookieIssueInsight")
104
+ @dataclass
105
+ class CookieIssueInsight(DataType):
106
+ """Information about the suggested solution to a cookie issue."""
107
+ type_: InsightType
108
+ table_entry_url: Optional[str] = None
109
+ __FIELDS__: ClassVar[tuple] = (
110
+ FieldMeta('type_', 'type', False, 'enum', ref='Audits.InsightType'),
111
+ FieldMeta('table_entry_url', 'tableEntryUrl', True, 'primitive'),
112
+ )
113
+
114
+
115
+ @register("Audits.CookieIssueDetails")
116
+ @dataclass
117
+ class CookieIssueDetails(DataType):
118
+ """
119
+ This information is currently necessary, as the front-end has a difficult
120
+ time finding a specific cookie. With this, we can convey specific error
121
+ information without the cookie.
122
+ """
123
+ cookie_warning_reasons: List[CookieWarningReason]
124
+ cookie_exclusion_reasons: List[CookieExclusionReason]
125
+ operation: CookieOperation
126
+ cookie: Optional[AffectedCookie] = None
127
+ raw_cookie_line: Optional[str] = None
128
+ site_for_cookies: Optional[str] = None
129
+ cookie_url: Optional[str] = None
130
+ request: Optional[AffectedRequest] = None
131
+ insight: Optional[CookieIssueInsight] = None
132
+ __FIELDS__: ClassVar[tuple] = (
133
+ FieldMeta('cookie_warning_reasons', 'cookieWarningReasons', False, 'array', inner=FieldMeta('', '', False, 'enum', ref='Audits.CookieWarningReason')),
134
+ FieldMeta('cookie_exclusion_reasons', 'cookieExclusionReasons', False, 'array', inner=FieldMeta('', '', False, 'enum', ref='Audits.CookieExclusionReason')),
135
+ FieldMeta('operation', 'operation', False, 'enum', ref='Audits.CookieOperation'),
136
+ FieldMeta('cookie', 'cookie', True, 'object', ref='Audits.AffectedCookie'),
137
+ FieldMeta('raw_cookie_line', 'rawCookieLine', True, 'primitive'),
138
+ FieldMeta('site_for_cookies', 'siteForCookies', True, 'primitive'),
139
+ FieldMeta('cookie_url', 'cookieUrl', True, 'primitive'),
140
+ FieldMeta('request', 'request', True, 'object', ref='Audits.AffectedRequest'),
141
+ FieldMeta('insight', 'insight', True, 'object', ref='Audits.CookieIssueInsight'),
142
+ )
143
+
144
+
145
+ @register("Audits.MixedContentResolutionStatus")
146
+ class MixedContentResolutionStatus(str, Enum):
147
+ MIXEDCONTENTBLOCKED = 'MixedContentBlocked'
148
+ MIXEDCONTENTAUTOMATICALLYUPGRADED = 'MixedContentAutomaticallyUpgraded'
149
+ MIXEDCONTENTWARNING = 'MixedContentWarning'
150
+
151
+
152
+ @register("Audits.MixedContentResourceType")
153
+ class MixedContentResourceType(str, Enum):
154
+ ATTRIBUTIONSRC = 'AttributionSrc'
155
+ AUDIO = 'Audio'
156
+ BEACON = 'Beacon'
157
+ CSPREPORT = 'CSPReport'
158
+ DOWNLOAD = 'Download'
159
+ EVENTSOURCE = 'EventSource'
160
+ FAVICON = 'Favicon'
161
+ FONT = 'Font'
162
+ FORM = 'Form'
163
+ FRAME = 'Frame'
164
+ IMAGE = 'Image'
165
+ IMPORT = 'Import'
166
+ JSON = 'JSON'
167
+ MANIFEST = 'Manifest'
168
+ PING = 'Ping'
169
+ PLUGINDATA = 'PluginData'
170
+ PLUGINRESOURCE = 'PluginResource'
171
+ PREFETCH = 'Prefetch'
172
+ RESOURCE = 'Resource'
173
+ SCRIPT = 'Script'
174
+ SERVICEWORKER = 'ServiceWorker'
175
+ SHAREDWORKER = 'SharedWorker'
176
+ SPECULATIONRULES = 'SpeculationRules'
177
+ STYLESHEET = 'Stylesheet'
178
+ TRACK = 'Track'
179
+ VIDEO = 'Video'
180
+ WORKER = 'Worker'
181
+ XMLHTTPREQUEST = 'XMLHttpRequest'
182
+ XSLT = 'XSLT'
183
+
184
+
185
+ @register("Audits.MixedContentIssueDetails")
186
+ @dataclass
187
+ class MixedContentIssueDetails(DataType):
188
+ resolution_status: MixedContentResolutionStatus
189
+ insecure_url: str
190
+ main_resource_url: str
191
+ resource_type: Optional[MixedContentResourceType] = None
192
+ request: Optional[AffectedRequest] = None
193
+ frame: Optional[AffectedFrame] = None
194
+ __FIELDS__: ClassVar[tuple] = (
195
+ FieldMeta('resolution_status', 'resolutionStatus', False, 'enum', ref='Audits.MixedContentResolutionStatus'),
196
+ FieldMeta('insecure_url', 'insecureURL', False, 'primitive'),
197
+ FieldMeta('main_resource_url', 'mainResourceURL', False, 'primitive'),
198
+ FieldMeta('resource_type', 'resourceType', True, 'enum', ref='Audits.MixedContentResourceType'),
199
+ FieldMeta('request', 'request', True, 'object', ref='Audits.AffectedRequest'),
200
+ FieldMeta('frame', 'frame', True, 'object', ref='Audits.AffectedFrame'),
201
+ )
202
+
203
+
204
+ @register("Audits.BlockedByResponseReason")
205
+ class BlockedByResponseReason(str, Enum):
206
+ """
207
+ Enum indicating the reason a response has been blocked. These reasons are
208
+ refinements of the net error BLOCKED_BY_RESPONSE.
209
+ """
210
+ COEPFRAMERESOURCENEEDSCOEPHEADER = 'CoepFrameResourceNeedsCoepHeader'
211
+ COOPSANDBOXEDIFRAMECANNOTNAVIGATETOCOOPPAGE = 'CoopSandboxedIFrameCannotNavigateToCoopPage'
212
+ CORPNOTSAMEORIGIN = 'CorpNotSameOrigin'
213
+ CORPNOTSAMEORIGINAFTERDEFAULTEDTOSAMEORIGINBYCOEP = 'CorpNotSameOriginAfterDefaultedToSameOriginByCoep'
214
+ CORPNOTSAMEORIGINAFTERDEFAULTEDTOSAMEORIGINBYDIP = 'CorpNotSameOriginAfterDefaultedToSameOriginByDip'
215
+ CORPNOTSAMEORIGINAFTERDEFAULTEDTOSAMEORIGINBYCOEPANDDIP = 'CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip'
216
+ CORPNOTSAMESITE = 'CorpNotSameSite'
217
+ SRIMESSAGESIGNATUREMISMATCH = 'SRIMessageSignatureMismatch'
218
+
219
+
220
+ @register("Audits.BlockedByResponseIssueDetails")
221
+ @dataclass
222
+ class BlockedByResponseIssueDetails(DataType):
223
+ """
224
+ Details for a request that has been blocked with the BLOCKED_BY_RESPONSE
225
+ code. Currently only used for COEP/COOP, but may be extended to include
226
+ some CSP errors in the future.
227
+ """
228
+ request: AffectedRequest
229
+ reason: BlockedByResponseReason
230
+ parent_frame: Optional[AffectedFrame] = None
231
+ blocked_frame: Optional[AffectedFrame] = None
232
+ __FIELDS__: ClassVar[tuple] = (
233
+ FieldMeta('request', 'request', False, 'object', ref='Audits.AffectedRequest'),
234
+ FieldMeta('reason', 'reason', False, 'enum', ref='Audits.BlockedByResponseReason'),
235
+ FieldMeta('parent_frame', 'parentFrame', True, 'object', ref='Audits.AffectedFrame'),
236
+ FieldMeta('blocked_frame', 'blockedFrame', True, 'object', ref='Audits.AffectedFrame'),
237
+ )
238
+
239
+
240
+ @register("Audits.HeavyAdResolutionStatus")
241
+ class HeavyAdResolutionStatus(str, Enum):
242
+ HEAVYADBLOCKED = 'HeavyAdBlocked'
243
+ HEAVYADWARNING = 'HeavyAdWarning'
244
+
245
+
246
+ @register("Audits.HeavyAdReason")
247
+ class HeavyAdReason(str, Enum):
248
+ NETWORKTOTALLIMIT = 'NetworkTotalLimit'
249
+ CPUTOTALLIMIT = 'CpuTotalLimit'
250
+ CPUPEAKLIMIT = 'CpuPeakLimit'
251
+
252
+
253
+ @register("Audits.HeavyAdIssueDetails")
254
+ @dataclass
255
+ class HeavyAdIssueDetails(DataType):
256
+ resolution: HeavyAdResolutionStatus
257
+ reason: HeavyAdReason
258
+ frame: AffectedFrame
259
+ __FIELDS__: ClassVar[tuple] = (
260
+ FieldMeta('resolution', 'resolution', False, 'enum', ref='Audits.HeavyAdResolutionStatus'),
261
+ FieldMeta('reason', 'reason', False, 'enum', ref='Audits.HeavyAdReason'),
262
+ FieldMeta('frame', 'frame', False, 'object', ref='Audits.AffectedFrame'),
263
+ )
264
+
265
+
266
+ @register("Audits.ContentSecurityPolicyViolationType")
267
+ class ContentSecurityPolicyViolationType(str, Enum):
268
+ KINLINEVIOLATION = 'kInlineViolation'
269
+ KEVALVIOLATION = 'kEvalViolation'
270
+ KURLVIOLATION = 'kURLViolation'
271
+ KSRIVIOLATION = 'kSRIViolation'
272
+ KTRUSTEDTYPESSINKVIOLATION = 'kTrustedTypesSinkViolation'
273
+ KTRUSTEDTYPESPOLICYVIOLATION = 'kTrustedTypesPolicyViolation'
274
+ KWASMEVALVIOLATION = 'kWasmEvalViolation'
275
+
276
+
277
+ @register("Audits.SourceCodeLocation")
278
+ @dataclass
279
+ class SourceCodeLocation(DataType):
280
+ url: str
281
+ line_number: int
282
+ column_number: int
283
+ script_id: Optional[Runtime_ScriptId] = None
284
+ __FIELDS__: ClassVar[tuple] = (
285
+ FieldMeta('url', 'url', False, 'primitive'),
286
+ FieldMeta('line_number', 'lineNumber', False, 'primitive'),
287
+ FieldMeta('column_number', 'columnNumber', False, 'primitive'),
288
+ FieldMeta('script_id', 'scriptId', True, 'primitive'),
289
+ )
290
+
291
+
292
+ @register("Audits.ContentSecurityPolicyIssueDetails")
293
+ @dataclass
294
+ class ContentSecurityPolicyIssueDetails(DataType):
295
+ violated_directive: str
296
+ is_report_only: bool
297
+ content_security_policy_violation_type: ContentSecurityPolicyViolationType
298
+ blocked_url: Optional[str] = None
299
+ frame_ancestor: Optional[AffectedFrame] = None
300
+ source_code_location: Optional[SourceCodeLocation] = None
301
+ violating_node_id: Optional[DOM_BackendNodeId] = None
302
+ __FIELDS__: ClassVar[tuple] = (
303
+ FieldMeta('violated_directive', 'violatedDirective', False, 'primitive'),
304
+ FieldMeta('is_report_only', 'isReportOnly', False, 'primitive'),
305
+ FieldMeta('content_security_policy_violation_type', 'contentSecurityPolicyViolationType', False, 'enum', ref='Audits.ContentSecurityPolicyViolationType'),
306
+ FieldMeta('blocked_url', 'blockedURL', True, 'primitive'),
307
+ FieldMeta('frame_ancestor', 'frameAncestor', True, 'object', ref='Audits.AffectedFrame'),
308
+ FieldMeta('source_code_location', 'sourceCodeLocation', True, 'object', ref='Audits.SourceCodeLocation'),
309
+ FieldMeta('violating_node_id', 'violatingNodeId', True, 'primitive'),
310
+ )
311
+
312
+
313
+ @register("Audits.SharedArrayBufferIssueType")
314
+ class SharedArrayBufferIssueType(str, Enum):
315
+ TRANSFERISSUE = 'TransferIssue'
316
+ CREATIONISSUE = 'CreationIssue'
317
+
318
+
319
+ @register("Audits.SharedArrayBufferIssueDetails")
320
+ @dataclass
321
+ class SharedArrayBufferIssueDetails(DataType):
322
+ """
323
+ Details for a issue arising from an SAB being instantiated in, or
324
+ transferred to a context that is not cross-origin isolated.
325
+ """
326
+ source_code_location: SourceCodeLocation
327
+ is_warning: bool
328
+ type_: SharedArrayBufferIssueType
329
+ __FIELDS__: ClassVar[tuple] = (
330
+ FieldMeta('source_code_location', 'sourceCodeLocation', False, 'object', ref='Audits.SourceCodeLocation'),
331
+ FieldMeta('is_warning', 'isWarning', False, 'primitive'),
332
+ FieldMeta('type_', 'type', False, 'enum', ref='Audits.SharedArrayBufferIssueType'),
333
+ )
334
+
335
+
336
+ @register("Audits.LowTextContrastIssueDetails")
337
+ @dataclass
338
+ class LowTextContrastIssueDetails(DataType):
339
+ violating_node_id: DOM_BackendNodeId
340
+ violating_node_selector: str
341
+ contrast_ratio: float
342
+ threshold_aa: float
343
+ threshold_aaa: float
344
+ font_size: str
345
+ font_weight: str
346
+ __FIELDS__: ClassVar[tuple] = (
347
+ FieldMeta('violating_node_id', 'violatingNodeId', False, 'primitive'),
348
+ FieldMeta('violating_node_selector', 'violatingNodeSelector', False, 'primitive'),
349
+ FieldMeta('contrast_ratio', 'contrastRatio', False, 'primitive'),
350
+ FieldMeta('threshold_aa', 'thresholdAA', False, 'primitive'),
351
+ FieldMeta('threshold_aaa', 'thresholdAAA', False, 'primitive'),
352
+ FieldMeta('font_size', 'fontSize', False, 'primitive'),
353
+ FieldMeta('font_weight', 'fontWeight', False, 'primitive'),
354
+ )
355
+
356
+
357
+ @register("Audits.CorsIssueDetails")
358
+ @dataclass
359
+ class CorsIssueDetails(DataType):
360
+ """
361
+ Details for a CORS related issue, e.g. a warning or error related to
362
+ CORS RFC1918 enforcement.
363
+ """
364
+ cors_error_status: Network_CorsErrorStatus
365
+ is_warning: bool
366
+ request: AffectedRequest
367
+ location: Optional[SourceCodeLocation] = None
368
+ initiator_origin: Optional[str] = None
369
+ resource_ip_address_space: Optional[Network_IPAddressSpace] = None
370
+ client_security_state: Optional[Network_ClientSecurityState] = None
371
+ __FIELDS__: ClassVar[tuple] = (
372
+ FieldMeta('cors_error_status', 'corsErrorStatus', False, 'object', ref='Network.CorsErrorStatus'),
373
+ FieldMeta('is_warning', 'isWarning', False, 'primitive'),
374
+ FieldMeta('request', 'request', False, 'object', ref='Audits.AffectedRequest'),
375
+ FieldMeta('location', 'location', True, 'object', ref='Audits.SourceCodeLocation'),
376
+ FieldMeta('initiator_origin', 'initiatorOrigin', True, 'primitive'),
377
+ FieldMeta('resource_ip_address_space', 'resourceIPAddressSpace', True, 'enum', ref='Network.IPAddressSpace'),
378
+ FieldMeta('client_security_state', 'clientSecurityState', True, 'object', ref='Network.ClientSecurityState'),
379
+ )
380
+
381
+
382
+ @register("Audits.AttributionReportingIssueType")
383
+ class AttributionReportingIssueType(str, Enum):
384
+ PERMISSIONPOLICYDISABLED = 'PermissionPolicyDisabled'
385
+ UNTRUSTWORTHYREPORTINGORIGIN = 'UntrustworthyReportingOrigin'
386
+ INSECURECONTEXT = 'InsecureContext'
387
+ INVALIDHEADER = 'InvalidHeader'
388
+ INVALIDREGISTERTRIGGERHEADER = 'InvalidRegisterTriggerHeader'
389
+ SOURCEANDTRIGGERHEADERS = 'SourceAndTriggerHeaders'
390
+ SOURCEIGNORED = 'SourceIgnored'
391
+ TRIGGERIGNORED = 'TriggerIgnored'
392
+ OSSOURCEIGNORED = 'OsSourceIgnored'
393
+ OSTRIGGERIGNORED = 'OsTriggerIgnored'
394
+ INVALIDREGISTEROSSOURCEHEADER = 'InvalidRegisterOsSourceHeader'
395
+ INVALIDREGISTEROSTRIGGERHEADER = 'InvalidRegisterOsTriggerHeader'
396
+ WEBANDOSHEADERS = 'WebAndOsHeaders'
397
+ NOWEBOROSSUPPORT = 'NoWebOrOsSupport'
398
+ NAVIGATIONREGISTRATIONWITHOUTTRANSIENTUSERACTIVATION = 'NavigationRegistrationWithoutTransientUserActivation'
399
+ INVALIDINFOHEADER = 'InvalidInfoHeader'
400
+ NOREGISTERSOURCEHEADER = 'NoRegisterSourceHeader'
401
+ NOREGISTERTRIGGERHEADER = 'NoRegisterTriggerHeader'
402
+ NOREGISTEROSSOURCEHEADER = 'NoRegisterOsSourceHeader'
403
+ NOREGISTEROSTRIGGERHEADER = 'NoRegisterOsTriggerHeader'
404
+ NAVIGATIONREGISTRATIONUNIQUESCOPEALREADYSET = 'NavigationRegistrationUniqueScopeAlreadySet'
405
+
406
+
407
+ @register("Audits.SharedDictionaryError")
408
+ class SharedDictionaryError(str, Enum):
409
+ USEERRORCROSSORIGINNOCORSREQUEST = 'UseErrorCrossOriginNoCorsRequest'
410
+ USEERRORDICTIONARYLOADFAILURE = 'UseErrorDictionaryLoadFailure'
411
+ USEERRORMATCHINGDICTIONARYNOTUSED = 'UseErrorMatchingDictionaryNotUsed'
412
+ USEERRORUNEXPECTEDCONTENTDICTIONARYHEADER = 'UseErrorUnexpectedContentDictionaryHeader'
413
+ WRITEERRORCOSSORIGINNOCORSREQUEST = 'WriteErrorCossOriginNoCorsRequest'
414
+ WRITEERRORDISALLOWEDBYSETTINGS = 'WriteErrorDisallowedBySettings'
415
+ WRITEERROREXPIREDRESPONSE = 'WriteErrorExpiredResponse'
416
+ WRITEERRORFEATUREDISABLED = 'WriteErrorFeatureDisabled'
417
+ WRITEERRORINSUFFICIENTRESOURCES = 'WriteErrorInsufficientResources'
418
+ WRITEERRORINVALIDMATCHFIELD = 'WriteErrorInvalidMatchField'
419
+ WRITEERRORINVALIDSTRUCTUREDHEADER = 'WriteErrorInvalidStructuredHeader'
420
+ WRITEERRORINVALIDTTLFIELD = 'WriteErrorInvalidTTLField'
421
+ WRITEERRORNAVIGATIONREQUEST = 'WriteErrorNavigationRequest'
422
+ WRITEERRORNOMATCHFIELD = 'WriteErrorNoMatchField'
423
+ WRITEERRORNONINTEGERTTLFIELD = 'WriteErrorNonIntegerTTLField'
424
+ WRITEERRORNONLISTMATCHDESTFIELD = 'WriteErrorNonListMatchDestField'
425
+ WRITEERRORNONSECURECONTEXT = 'WriteErrorNonSecureContext'
426
+ WRITEERRORNONSTRINGIDFIELD = 'WriteErrorNonStringIdField'
427
+ WRITEERRORNONSTRINGINMATCHDESTLIST = 'WriteErrorNonStringInMatchDestList'
428
+ WRITEERRORNONSTRINGMATCHFIELD = 'WriteErrorNonStringMatchField'
429
+ WRITEERRORNONTOKENTYPEFIELD = 'WriteErrorNonTokenTypeField'
430
+ WRITEERRORREQUESTABORTED = 'WriteErrorRequestAborted'
431
+ WRITEERRORSHUTTINGDOWN = 'WriteErrorShuttingDown'
432
+ WRITEERRORTOOLONGIDFIELD = 'WriteErrorTooLongIdField'
433
+ WRITEERRORUNSUPPORTEDTYPE = 'WriteErrorUnsupportedType'
434
+
435
+
436
+ @register("Audits.SRIMessageSignatureError")
437
+ class SRIMessageSignatureError(str, Enum):
438
+ MISSINGSIGNATUREHEADER = 'MissingSignatureHeader'
439
+ MISSINGSIGNATUREINPUTHEADER = 'MissingSignatureInputHeader'
440
+ INVALIDSIGNATUREHEADER = 'InvalidSignatureHeader'
441
+ INVALIDSIGNATUREINPUTHEADER = 'InvalidSignatureInputHeader'
442
+ SIGNATUREHEADERVALUEISNOTBYTESEQUENCE = 'SignatureHeaderValueIsNotByteSequence'
443
+ SIGNATUREHEADERVALUEISPARAMETERIZED = 'SignatureHeaderValueIsParameterized'
444
+ SIGNATUREHEADERVALUEISINCORRECTLENGTH = 'SignatureHeaderValueIsIncorrectLength'
445
+ SIGNATUREINPUTHEADERMISSINGLABEL = 'SignatureInputHeaderMissingLabel'
446
+ SIGNATUREINPUTHEADERVALUENOTINNERLIST = 'SignatureInputHeaderValueNotInnerList'
447
+ SIGNATUREINPUTHEADERVALUEMISSINGCOMPONENTS = 'SignatureInputHeaderValueMissingComponents'
448
+ SIGNATUREINPUTHEADERINVALIDCOMPONENTTYPE = 'SignatureInputHeaderInvalidComponentType'
449
+ SIGNATUREINPUTHEADERINVALIDCOMPONENTNAME = 'SignatureInputHeaderInvalidComponentName'
450
+ SIGNATUREINPUTHEADERINVALIDHEADERCOMPONENTPARAMETER = 'SignatureInputHeaderInvalidHeaderComponentParameter'
451
+ SIGNATUREINPUTHEADERINVALIDDERIVEDCOMPONENTPARAMETER = 'SignatureInputHeaderInvalidDerivedComponentParameter'
452
+ SIGNATUREINPUTHEADERKEYIDLENGTH = 'SignatureInputHeaderKeyIdLength'
453
+ SIGNATUREINPUTHEADERINVALIDPARAMETER = 'SignatureInputHeaderInvalidParameter'
454
+ SIGNATUREINPUTHEADERMISSINGREQUIREDPARAMETERS = 'SignatureInputHeaderMissingRequiredParameters'
455
+ VALIDATIONFAILEDSIGNATUREEXPIRED = 'ValidationFailedSignatureExpired'
456
+ VALIDATIONFAILEDINVALIDLENGTH = 'ValidationFailedInvalidLength'
457
+ VALIDATIONFAILEDSIGNATUREMISMATCH = 'ValidationFailedSignatureMismatch'
458
+ VALIDATIONFAILEDINTEGRITYMISMATCH = 'ValidationFailedIntegrityMismatch'
459
+
460
+
461
+ @register("Audits.UnencodedDigestError")
462
+ class UnencodedDigestError(str, Enum):
463
+ MALFORMEDDICTIONARY = 'MalformedDictionary'
464
+ UNKNOWNALGORITHM = 'UnknownAlgorithm'
465
+ INCORRECTDIGESTTYPE = 'IncorrectDigestType'
466
+ INCORRECTDIGESTLENGTH = 'IncorrectDigestLength'
467
+
468
+
469
+ @register("Audits.AttributionReportingIssueDetails")
470
+ @dataclass
471
+ class AttributionReportingIssueDetails(DataType):
472
+ """
473
+ Details for issues around "Attribution Reporting API" usage.
474
+ Explainer: https://github.com/WICG/attribution-reporting-api
475
+ """
476
+ violation_type: AttributionReportingIssueType
477
+ request: Optional[AffectedRequest] = None
478
+ violating_node_id: Optional[DOM_BackendNodeId] = None
479
+ invalid_parameter: Optional[str] = None
480
+ __FIELDS__: ClassVar[tuple] = (
481
+ FieldMeta('violation_type', 'violationType', False, 'enum', ref='Audits.AttributionReportingIssueType'),
482
+ FieldMeta('request', 'request', True, 'object', ref='Audits.AffectedRequest'),
483
+ FieldMeta('violating_node_id', 'violatingNodeId', True, 'primitive'),
484
+ FieldMeta('invalid_parameter', 'invalidParameter', True, 'primitive'),
485
+ )
486
+
487
+
488
+ @register("Audits.QuirksModeIssueDetails")
489
+ @dataclass
490
+ class QuirksModeIssueDetails(DataType):
491
+ """
492
+ Details for issues about documents in Quirks Mode
493
+ or Limited Quirks Mode that affects page layouting.
494
+ """
495
+ is_limited_quirks_mode: bool
496
+ document_node_id: DOM_BackendNodeId
497
+ url: str
498
+ frame_id: Page_FrameId
499
+ loader_id: Network_LoaderId
500
+ __FIELDS__: ClassVar[tuple] = (
501
+ FieldMeta('is_limited_quirks_mode', 'isLimitedQuirksMode', False, 'primitive'),
502
+ FieldMeta('document_node_id', 'documentNodeId', False, 'primitive'),
503
+ FieldMeta('url', 'url', False, 'primitive'),
504
+ FieldMeta('frame_id', 'frameId', False, 'primitive'),
505
+ FieldMeta('loader_id', 'loaderId', False, 'primitive'),
506
+ )
507
+
508
+
509
+ @register("Audits.NavigatorUserAgentIssueDetails")
510
+ @dataclass
511
+ class NavigatorUserAgentIssueDetails(DataType):
512
+ url: str
513
+ location: Optional[SourceCodeLocation] = None
514
+ __FIELDS__: ClassVar[tuple] = (
515
+ FieldMeta('url', 'url', False, 'primitive'),
516
+ FieldMeta('location', 'location', True, 'object', ref='Audits.SourceCodeLocation'),
517
+ )
518
+
519
+
520
+ @register("Audits.SharedDictionaryIssueDetails")
521
+ @dataclass
522
+ class SharedDictionaryIssueDetails(DataType):
523
+ shared_dictionary_error: SharedDictionaryError
524
+ request: AffectedRequest
525
+ __FIELDS__: ClassVar[tuple] = (
526
+ FieldMeta('shared_dictionary_error', 'sharedDictionaryError', False, 'enum', ref='Audits.SharedDictionaryError'),
527
+ FieldMeta('request', 'request', False, 'object', ref='Audits.AffectedRequest'),
528
+ )
529
+
530
+
531
+ @register("Audits.SRIMessageSignatureIssueDetails")
532
+ @dataclass
533
+ class SRIMessageSignatureIssueDetails(DataType):
534
+ error: SRIMessageSignatureError
535
+ signature_base: str
536
+ integrity_assertions: List[str]
537
+ request: AffectedRequest
538
+ __FIELDS__: ClassVar[tuple] = (
539
+ FieldMeta('error', 'error', False, 'enum', ref='Audits.SRIMessageSignatureError'),
540
+ FieldMeta('signature_base', 'signatureBase', False, 'primitive'),
541
+ FieldMeta('integrity_assertions', 'integrityAssertions', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
542
+ FieldMeta('request', 'request', False, 'object', ref='Audits.AffectedRequest'),
543
+ )
544
+
545
+
546
+ @register("Audits.UnencodedDigestIssueDetails")
547
+ @dataclass
548
+ class UnencodedDigestIssueDetails(DataType):
549
+ error: UnencodedDigestError
550
+ request: AffectedRequest
551
+ __FIELDS__: ClassVar[tuple] = (
552
+ FieldMeta('error', 'error', False, 'enum', ref='Audits.UnencodedDigestError'),
553
+ FieldMeta('request', 'request', False, 'object', ref='Audits.AffectedRequest'),
554
+ )
555
+
556
+
557
+ @register("Audits.GenericIssueErrorType")
558
+ class GenericIssueErrorType(str, Enum):
559
+ FORMLABELFORNAMEERROR = 'FormLabelForNameError'
560
+ FORMDUPLICATEIDFORINPUTERROR = 'FormDuplicateIdForInputError'
561
+ FORMINPUTWITHNOLABELERROR = 'FormInputWithNoLabelError'
562
+ FORMAUTOCOMPLETEATTRIBUTEEMPTYERROR = 'FormAutocompleteAttributeEmptyError'
563
+ FORMEMPTYIDANDNAMEATTRIBUTESFORINPUTERROR = 'FormEmptyIdAndNameAttributesForInputError'
564
+ FORMARIALABELLEDBYTONONEXISTINGIDERROR = 'FormAriaLabelledByToNonExistingIdError'
565
+ FORMINPUTASSIGNEDAUTOCOMPLETEVALUETOIDORNAMEATTRIBUTEERROR = 'FormInputAssignedAutocompleteValueToIdOrNameAttributeError'
566
+ FORMLABELHASNEITHERFORNORNESTEDINPUTERROR = 'FormLabelHasNeitherForNorNestedInputError'
567
+ FORMLABELFORMATCHESNONEXISTINGIDERROR = 'FormLabelForMatchesNonExistingIdError'
568
+ FORMINPUTHASWRONGBUTWELLINTENDEDAUTOCOMPLETEVALUEERROR = 'FormInputHasWrongButWellIntendedAutocompleteValueError'
569
+ RESPONSEWASBLOCKEDBYORB = 'ResponseWasBlockedByORB'
570
+ NAVIGATIONENTRYMARKEDSKIPPABLE = 'NavigationEntryMarkedSkippable'
571
+
572
+
573
+ @register("Audits.GenericIssueDetails")
574
+ @dataclass
575
+ class GenericIssueDetails(DataType):
576
+ """Depending on the concrete errorType, different properties are set."""
577
+ error_type: GenericIssueErrorType
578
+ frame_id: Optional[Page_FrameId] = None
579
+ violating_node_id: Optional[DOM_BackendNodeId] = None
580
+ violating_node_attribute: Optional[str] = None
581
+ request: Optional[AffectedRequest] = None
582
+ __FIELDS__: ClassVar[tuple] = (
583
+ FieldMeta('error_type', 'errorType', False, 'enum', ref='Audits.GenericIssueErrorType'),
584
+ FieldMeta('frame_id', 'frameId', True, 'primitive'),
585
+ FieldMeta('violating_node_id', 'violatingNodeId', True, 'primitive'),
586
+ FieldMeta('violating_node_attribute', 'violatingNodeAttribute', True, 'primitive'),
587
+ FieldMeta('request', 'request', True, 'object', ref='Audits.AffectedRequest'),
588
+ )
589
+
590
+
591
+ @register("Audits.DeprecationIssueDetails")
592
+ @dataclass
593
+ class DeprecationIssueDetails(DataType):
594
+ """
595
+ This issue tracks information needed to print a deprecation message.
596
+ https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/third_party/blink/renderer/core/frame/deprecation/README.md
597
+ """
598
+ source_code_location: SourceCodeLocation
599
+ type_: str
600
+ affected_frame: Optional[AffectedFrame] = None
601
+ __FIELDS__: ClassVar[tuple] = (
602
+ FieldMeta('source_code_location', 'sourceCodeLocation', False, 'object', ref='Audits.SourceCodeLocation'),
603
+ FieldMeta('type_', 'type', False, 'primitive'),
604
+ FieldMeta('affected_frame', 'affectedFrame', True, 'object', ref='Audits.AffectedFrame'),
605
+ )
606
+
607
+
608
+ @register("Audits.BounceTrackingIssueDetails")
609
+ @dataclass
610
+ class BounceTrackingIssueDetails(DataType):
611
+ """
612
+ This issue warns about sites in the redirect chain of a finished navigation
613
+ that may be flagged as trackers and have their state cleared if they don't
614
+ receive a user interaction. Note that in this context 'site' means eTLD+1.
615
+ For example, if the URL `https://example.test:80/bounce` was in the
616
+ redirect chain, the site reported would be `example.test`.
617
+ """
618
+ tracking_sites: List[str]
619
+ __FIELDS__: ClassVar[tuple] = (
620
+ FieldMeta('tracking_sites', 'trackingSites', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
621
+ )
622
+
623
+
624
+ @register("Audits.CookieDeprecationMetadataIssueDetails")
625
+ @dataclass
626
+ class CookieDeprecationMetadataIssueDetails(DataType):
627
+ """
628
+ This issue warns about third-party sites that are accessing cookies on the
629
+ current page, and have been permitted due to having a global metadata grant.
630
+ Note that in this context 'site' means eTLD+1. For example, if the URL
631
+ `https://example.test:80/web_page` was accessing cookies, the site reported
632
+ would be `example.test`.
633
+ """
634
+ allowed_sites: List[str]
635
+ opt_out_percentage: float
636
+ is_opt_out_top_level: bool
637
+ operation: CookieOperation
638
+ __FIELDS__: ClassVar[tuple] = (
639
+ FieldMeta('allowed_sites', 'allowedSites', False, 'array', inner=FieldMeta('', '', False, 'primitive')),
640
+ FieldMeta('opt_out_percentage', 'optOutPercentage', False, 'primitive'),
641
+ FieldMeta('is_opt_out_top_level', 'isOptOutTopLevel', False, 'primitive'),
642
+ FieldMeta('operation', 'operation', False, 'enum', ref='Audits.CookieOperation'),
643
+ )
644
+
645
+
646
+ @register("Audits.ClientHintIssueReason")
647
+ class ClientHintIssueReason(str, Enum):
648
+ METATAGALLOWLISTINVALIDORIGIN = 'MetaTagAllowListInvalidOrigin'
649
+ METATAGMODIFIEDHTML = 'MetaTagModifiedHTML'
650
+
651
+
652
+ @register("Audits.FederatedAuthRequestIssueDetails")
653
+ @dataclass
654
+ class FederatedAuthRequestIssueDetails(DataType):
655
+ federated_auth_request_issue_reason: FederatedAuthRequestIssueReason
656
+ __FIELDS__: ClassVar[tuple] = (
657
+ FieldMeta('federated_auth_request_issue_reason', 'federatedAuthRequestIssueReason', False, 'enum', ref='Audits.FederatedAuthRequestIssueReason'),
658
+ )
659
+
660
+
661
+ @register("Audits.FederatedAuthRequestIssueReason")
662
+ class FederatedAuthRequestIssueReason(str, Enum):
663
+ """
664
+ Represents the failure reason when a federated authentication reason fails.
665
+ Should be updated alongside RequestIdTokenStatus in
666
+ third_party/blink/public/mojom/devtools/inspector_issue.mojom to include
667
+ all cases except for success.
668
+ """
669
+ SHOULDEMBARGO = 'ShouldEmbargo'
670
+ TOOMANYREQUESTS = 'TooManyRequests'
671
+ WELLKNOWNHTTPNOTFOUND = 'WellKnownHttpNotFound'
672
+ WELLKNOWNNORESPONSE = 'WellKnownNoResponse'
673
+ WELLKNOWNINVALIDRESPONSE = 'WellKnownInvalidResponse'
674
+ WELLKNOWNLISTEMPTY = 'WellKnownListEmpty'
675
+ WELLKNOWNINVALIDCONTENTTYPE = 'WellKnownInvalidContentType'
676
+ CONFIGNOTINWELLKNOWN = 'ConfigNotInWellKnown'
677
+ WELLKNOWNTOOBIG = 'WellKnownTooBig'
678
+ CONFIGHTTPNOTFOUND = 'ConfigHttpNotFound'
679
+ CONFIGNORESPONSE = 'ConfigNoResponse'
680
+ CONFIGINVALIDRESPONSE = 'ConfigInvalidResponse'
681
+ CONFIGINVALIDCONTENTTYPE = 'ConfigInvalidContentType'
682
+ CLIENTMETADATAHTTPNOTFOUND = 'ClientMetadataHttpNotFound'
683
+ CLIENTMETADATANORESPONSE = 'ClientMetadataNoResponse'
684
+ CLIENTMETADATAINVALIDRESPONSE = 'ClientMetadataInvalidResponse'
685
+ CLIENTMETADATAINVALIDCONTENTTYPE = 'ClientMetadataInvalidContentType'
686
+ IDPNOTPOTENTIALLYTRUSTWORTHY = 'IdpNotPotentiallyTrustworthy'
687
+ DISABLEDINSETTINGS = 'DisabledInSettings'
688
+ DISABLEDINFLAGS = 'DisabledInFlags'
689
+ ERRORFETCHINGSIGNIN = 'ErrorFetchingSignin'
690
+ INVALIDSIGNINRESPONSE = 'InvalidSigninResponse'
691
+ ACCOUNTSHTTPNOTFOUND = 'AccountsHttpNotFound'
692
+ ACCOUNTSNORESPONSE = 'AccountsNoResponse'
693
+ ACCOUNTSINVALIDRESPONSE = 'AccountsInvalidResponse'
694
+ ACCOUNTSLISTEMPTY = 'AccountsListEmpty'
695
+ ACCOUNTSINVALIDCONTENTTYPE = 'AccountsInvalidContentType'
696
+ IDTOKENHTTPNOTFOUND = 'IdTokenHttpNotFound'
697
+ IDTOKENNORESPONSE = 'IdTokenNoResponse'
698
+ IDTOKENINVALIDRESPONSE = 'IdTokenInvalidResponse'
699
+ IDTOKENIDPERRORRESPONSE = 'IdTokenIdpErrorResponse'
700
+ IDTOKENCROSSSITEIDPERRORRESPONSE = 'IdTokenCrossSiteIdpErrorResponse'
701
+ IDTOKENINVALIDREQUEST = 'IdTokenInvalidRequest'
702
+ IDTOKENINVALIDCONTENTTYPE = 'IdTokenInvalidContentType'
703
+ ERRORIDTOKEN = 'ErrorIdToken'
704
+ CANCELED = 'Canceled'
705
+ RPPAGENOTVISIBLE = 'RpPageNotVisible'
706
+ SILENTMEDIATIONFAILURE = 'SilentMediationFailure'
707
+ THIRDPARTYCOOKIESBLOCKED = 'ThirdPartyCookiesBlocked'
708
+ NOTSIGNEDINWITHIDP = 'NotSignedInWithIdp'
709
+ MISSINGTRANSIENTUSERACTIVATION = 'MissingTransientUserActivation'
710
+ REPLACEDBYACTIVEMODE = 'ReplacedByActiveMode'
711
+ INVALIDFIELDSSPECIFIED = 'InvalidFieldsSpecified'
712
+ RELYINGPARTYORIGINISOPAQUE = 'RelyingPartyOriginIsOpaque'
713
+ TYPENOTMATCHING = 'TypeNotMatching'
714
+ UIDISMISSEDNOEMBARGO = 'UiDismissedNoEmbargo'
715
+ CORSERROR = 'CorsError'
716
+ SUPPRESSEDBYSEGMENTATIONPLATFORM = 'SuppressedBySegmentationPlatform'
717
+
718
+
719
+ @register("Audits.FederatedAuthUserInfoRequestIssueDetails")
720
+ @dataclass
721
+ class FederatedAuthUserInfoRequestIssueDetails(DataType):
722
+ federated_auth_user_info_request_issue_reason: FederatedAuthUserInfoRequestIssueReason
723
+ __FIELDS__: ClassVar[tuple] = (
724
+ FieldMeta('federated_auth_user_info_request_issue_reason', 'federatedAuthUserInfoRequestIssueReason', False, 'enum', ref='Audits.FederatedAuthUserInfoRequestIssueReason'),
725
+ )
726
+
727
+
728
+ @register("Audits.FederatedAuthUserInfoRequestIssueReason")
729
+ class FederatedAuthUserInfoRequestIssueReason(str, Enum):
730
+ """
731
+ Represents the failure reason when a getUserInfo() call fails.
732
+ Should be updated alongside FederatedAuthUserInfoRequestResult in
733
+ third_party/blink/public/mojom/devtools/inspector_issue.mojom.
734
+ """
735
+ NOTSAMEORIGIN = 'NotSameOrigin'
736
+ NOTIFRAME = 'NotIframe'
737
+ NOTPOTENTIALLYTRUSTWORTHY = 'NotPotentiallyTrustworthy'
738
+ NOAPIPERMISSION = 'NoApiPermission'
739
+ NOTSIGNEDINWITHIDP = 'NotSignedInWithIdp'
740
+ NOACCOUNTSHARINGPERMISSION = 'NoAccountSharingPermission'
741
+ INVALIDCONFIGORWELLKNOWN = 'InvalidConfigOrWellKnown'
742
+ INVALIDACCOUNTSRESPONSE = 'InvalidAccountsResponse'
743
+ NORETURNINGUSERFROMFETCHEDACCOUNTS = 'NoReturningUserFromFetchedAccounts'
744
+
745
+
746
+ @register("Audits.ClientHintIssueDetails")
747
+ @dataclass
748
+ class ClientHintIssueDetails(DataType):
749
+ """
750
+ This issue tracks client hints related issues. It's used to deprecate old
751
+ features, encourage the use of new ones, and provide general guidance.
752
+ """
753
+ source_code_location: SourceCodeLocation
754
+ client_hint_issue_reason: ClientHintIssueReason
755
+ __FIELDS__: ClassVar[tuple] = (
756
+ FieldMeta('source_code_location', 'sourceCodeLocation', False, 'object', ref='Audits.SourceCodeLocation'),
757
+ FieldMeta('client_hint_issue_reason', 'clientHintIssueReason', False, 'enum', ref='Audits.ClientHintIssueReason'),
758
+ )
759
+
760
+
761
+ @register("Audits.FailedRequestInfo")
762
+ @dataclass
763
+ class FailedRequestInfo(DataType):
764
+ url: str
765
+ failure_message: str
766
+ request_id: Optional[Network_RequestId] = None
767
+ __FIELDS__: ClassVar[tuple] = (
768
+ FieldMeta('url', 'url', False, 'primitive'),
769
+ FieldMeta('failure_message', 'failureMessage', False, 'primitive'),
770
+ FieldMeta('request_id', 'requestId', True, 'primitive'),
771
+ )
772
+
773
+
774
+ @register("Audits.PartitioningBlobURLInfo")
775
+ class PartitioningBlobURLInfo(str, Enum):
776
+ BLOCKEDCROSSPARTITIONFETCHING = 'BlockedCrossPartitionFetching'
777
+ ENFORCENOOPENERFORNAVIGATION = 'EnforceNoopenerForNavigation'
778
+
779
+
780
+ @register("Audits.PartitioningBlobURLIssueDetails")
781
+ @dataclass
782
+ class PartitioningBlobURLIssueDetails(DataType):
783
+ url: str
784
+ partitioning_blob_url_info: PartitioningBlobURLInfo
785
+ __FIELDS__: ClassVar[tuple] = (
786
+ FieldMeta('url', 'url', False, 'primitive'),
787
+ FieldMeta('partitioning_blob_url_info', 'partitioningBlobURLInfo', False, 'enum', ref='Audits.PartitioningBlobURLInfo'),
788
+ )
789
+
790
+
791
+ @register("Audits.ElementAccessibilityIssueReason")
792
+ class ElementAccessibilityIssueReason(str, Enum):
793
+ DISALLOWEDSELECTCHILD = 'DisallowedSelectChild'
794
+ DISALLOWEDOPTGROUPCHILD = 'DisallowedOptGroupChild'
795
+ NONPHRASINGCONTENTOPTIONCHILD = 'NonPhrasingContentOptionChild'
796
+ INTERACTIVECONTENTOPTIONCHILD = 'InteractiveContentOptionChild'
797
+ INTERACTIVECONTENTLEGENDCHILD = 'InteractiveContentLegendChild'
798
+ INTERACTIVECONTENTSUMMARYDESCENDANT = 'InteractiveContentSummaryDescendant'
799
+
800
+
801
+ @register("Audits.ElementAccessibilityIssueDetails")
802
+ @dataclass
803
+ class ElementAccessibilityIssueDetails(DataType):
804
+ """This issue warns about errors in the select or summary element content model."""
805
+ node_id: DOM_BackendNodeId
806
+ element_accessibility_issue_reason: ElementAccessibilityIssueReason
807
+ has_disallowed_attributes: bool
808
+ __FIELDS__: ClassVar[tuple] = (
809
+ FieldMeta('node_id', 'nodeId', False, 'primitive'),
810
+ FieldMeta('element_accessibility_issue_reason', 'elementAccessibilityIssueReason', False, 'enum', ref='Audits.ElementAccessibilityIssueReason'),
811
+ FieldMeta('has_disallowed_attributes', 'hasDisallowedAttributes', False, 'primitive'),
812
+ )
813
+
814
+
815
+ @register("Audits.StyleSheetLoadingIssueReason")
816
+ class StyleSheetLoadingIssueReason(str, Enum):
817
+ LATEIMPORTRULE = 'LateImportRule'
818
+ REQUESTFAILED = 'RequestFailed'
819
+
820
+
821
+ @register("Audits.StylesheetLoadingIssueDetails")
822
+ @dataclass
823
+ class StylesheetLoadingIssueDetails(DataType):
824
+ """This issue warns when a referenced stylesheet couldn't be loaded."""
825
+ source_code_location: SourceCodeLocation
826
+ style_sheet_loading_issue_reason: StyleSheetLoadingIssueReason
827
+ failed_request_info: Optional[FailedRequestInfo] = None
828
+ __FIELDS__: ClassVar[tuple] = (
829
+ FieldMeta('source_code_location', 'sourceCodeLocation', False, 'object', ref='Audits.SourceCodeLocation'),
830
+ FieldMeta('style_sheet_loading_issue_reason', 'styleSheetLoadingIssueReason', False, 'enum', ref='Audits.StyleSheetLoadingIssueReason'),
831
+ FieldMeta('failed_request_info', 'failedRequestInfo', True, 'object', ref='Audits.FailedRequestInfo'),
832
+ )
833
+
834
+
835
+ @register("Audits.PropertyRuleIssueReason")
836
+ class PropertyRuleIssueReason(str, Enum):
837
+ INVALIDSYNTAX = 'InvalidSyntax'
838
+ INVALIDINITIALVALUE = 'InvalidInitialValue'
839
+ INVALIDINHERITS = 'InvalidInherits'
840
+ INVALIDNAME = 'InvalidName'
841
+
842
+
843
+ @register("Audits.PropertyRuleIssueDetails")
844
+ @dataclass
845
+ class PropertyRuleIssueDetails(DataType):
846
+ """
847
+ This issue warns about errors in property rules that lead to property
848
+ registrations being ignored.
849
+ """
850
+ source_code_location: SourceCodeLocation
851
+ property_rule_issue_reason: PropertyRuleIssueReason
852
+ property_value: Optional[str] = None
853
+ __FIELDS__: ClassVar[tuple] = (
854
+ FieldMeta('source_code_location', 'sourceCodeLocation', False, 'object', ref='Audits.SourceCodeLocation'),
855
+ FieldMeta('property_rule_issue_reason', 'propertyRuleIssueReason', False, 'enum', ref='Audits.PropertyRuleIssueReason'),
856
+ FieldMeta('property_value', 'propertyValue', True, 'primitive'),
857
+ )
858
+
859
+
860
+ @register("Audits.UserReidentificationIssueType")
861
+ class UserReidentificationIssueType(str, Enum):
862
+ BLOCKEDFRAMENAVIGATION = 'BlockedFrameNavigation'
863
+ BLOCKEDSUBRESOURCE = 'BlockedSubresource'
864
+ NOISEDCANVASREADBACK = 'NoisedCanvasReadback'
865
+
866
+
867
+ @register("Audits.UserReidentificationIssueDetails")
868
+ @dataclass
869
+ class UserReidentificationIssueDetails(DataType):
870
+ """
871
+ This issue warns about uses of APIs that may be considered misuse to
872
+ re-identify users.
873
+ """
874
+ type_: UserReidentificationIssueType
875
+ request: Optional[AffectedRequest] = None
876
+ source_code_location: Optional[SourceCodeLocation] = None
877
+ __FIELDS__: ClassVar[tuple] = (
878
+ FieldMeta('type_', 'type', False, 'enum', ref='Audits.UserReidentificationIssueType'),
879
+ FieldMeta('request', 'request', True, 'object', ref='Audits.AffectedRequest'),
880
+ FieldMeta('source_code_location', 'sourceCodeLocation', True, 'object', ref='Audits.SourceCodeLocation'),
881
+ )
882
+
883
+
884
+ @register("Audits.PermissionElementIssueType")
885
+ class PermissionElementIssueType(str, Enum):
886
+ INVALIDTYPE = 'InvalidType'
887
+ FENCEDFRAMEDISALLOWED = 'FencedFrameDisallowed'
888
+ CSPFRAMEANCESTORSMISSING = 'CspFrameAncestorsMissing'
889
+ PERMISSIONSPOLICYBLOCKED = 'PermissionsPolicyBlocked'
890
+ PADDINGRIGHTUNSUPPORTED = 'PaddingRightUnsupported'
891
+ PADDINGBOTTOMUNSUPPORTED = 'PaddingBottomUnsupported'
892
+ INSETBOXSHADOWUNSUPPORTED = 'InsetBoxShadowUnsupported'
893
+ REQUESTINPROGRESS = 'RequestInProgress'
894
+ UNTRUSTEDEVENT = 'UntrustedEvent'
895
+ REGISTRATIONFAILED = 'RegistrationFailed'
896
+ TYPENOTSUPPORTED = 'TypeNotSupported'
897
+ INVALIDTYPEACTIVATION = 'InvalidTypeActivation'
898
+ SECURITYCHECKSFAILED = 'SecurityChecksFailed'
899
+ ACTIVATIONDISABLED = 'ActivationDisabled'
900
+ GEOLOCATIONDEPRECATED = 'GeolocationDeprecated'
901
+ INVALIDDISPLAYSTYLE = 'InvalidDisplayStyle'
902
+ NONOPAQUECOLOR = 'NonOpaqueColor'
903
+ LOWCONTRAST = 'LowContrast'
904
+ FONTSIZETOOSMALL = 'FontSizeTooSmall'
905
+ FONTSIZETOOLARGE = 'FontSizeTooLarge'
906
+ INVALIDSIZEVALUE = 'InvalidSizeValue'
907
+
908
+
909
+ @register("Audits.PermissionElementIssueDetails")
910
+ @dataclass
911
+ class PermissionElementIssueDetails(DataType):
912
+ """This issue warns about improper usage of the <permission> element."""
913
+ issue_type: PermissionElementIssueType
914
+ type_: Optional[str] = None
915
+ node_id: Optional[DOM_BackendNodeId] = None
916
+ is_warning: Optional[bool] = None
917
+ permission_name: Optional[str] = None
918
+ occluder_node_info: Optional[str] = None
919
+ occluder_parent_node_info: Optional[str] = None
920
+ disable_reason: Optional[str] = None
921
+ __FIELDS__: ClassVar[tuple] = (
922
+ FieldMeta('issue_type', 'issueType', False, 'enum', ref='Audits.PermissionElementIssueType'),
923
+ FieldMeta('type_', 'type', True, 'primitive'),
924
+ FieldMeta('node_id', 'nodeId', True, 'primitive'),
925
+ FieldMeta('is_warning', 'isWarning', True, 'primitive'),
926
+ FieldMeta('permission_name', 'permissionName', True, 'primitive'),
927
+ FieldMeta('occluder_node_info', 'occluderNodeInfo', True, 'primitive'),
928
+ FieldMeta('occluder_parent_node_info', 'occluderParentNodeInfo', True, 'primitive'),
929
+ FieldMeta('disable_reason', 'disableReason', True, 'primitive'),
930
+ )
931
+
932
+
933
+ @register("Audits.InspectorIssueCode")
934
+ class InspectorIssueCode(str, Enum):
935
+ """
936
+ A unique identifier for the type of issue. Each type may use one of the
937
+ optional fields in InspectorIssueDetails to convey more specific
938
+ information about the kind of issue.
939
+ """
940
+ COOKIEISSUE = 'CookieIssue'
941
+ MIXEDCONTENTISSUE = 'MixedContentIssue'
942
+ BLOCKEDBYRESPONSEISSUE = 'BlockedByResponseIssue'
943
+ HEAVYADISSUE = 'HeavyAdIssue'
944
+ CONTENTSECURITYPOLICYISSUE = 'ContentSecurityPolicyIssue'
945
+ SHAREDARRAYBUFFERISSUE = 'SharedArrayBufferIssue'
946
+ LOWTEXTCONTRASTISSUE = 'LowTextContrastIssue'
947
+ CORSISSUE = 'CorsIssue'
948
+ ATTRIBUTIONREPORTINGISSUE = 'AttributionReportingIssue'
949
+ QUIRKSMODEISSUE = 'QuirksModeIssue'
950
+ PARTITIONINGBLOBURLISSUE = 'PartitioningBlobURLIssue'
951
+ NAVIGATORUSERAGENTISSUE = 'NavigatorUserAgentIssue'
952
+ GENERICISSUE = 'GenericIssue'
953
+ DEPRECATIONISSUE = 'DeprecationIssue'
954
+ CLIENTHINTISSUE = 'ClientHintIssue'
955
+ FEDERATEDAUTHREQUESTISSUE = 'FederatedAuthRequestIssue'
956
+ BOUNCETRACKINGISSUE = 'BounceTrackingIssue'
957
+ COOKIEDEPRECATIONMETADATAISSUE = 'CookieDeprecationMetadataIssue'
958
+ STYLESHEETLOADINGISSUE = 'StylesheetLoadingIssue'
959
+ FEDERATEDAUTHUSERINFOREQUESTISSUE = 'FederatedAuthUserInfoRequestIssue'
960
+ PROPERTYRULEISSUE = 'PropertyRuleIssue'
961
+ SHAREDDICTIONARYISSUE = 'SharedDictionaryIssue'
962
+ ELEMENTACCESSIBILITYISSUE = 'ElementAccessibilityIssue'
963
+ SRIMESSAGESIGNATUREISSUE = 'SRIMessageSignatureIssue'
964
+ UNENCODEDDIGESTISSUE = 'UnencodedDigestIssue'
965
+ USERREIDENTIFICATIONISSUE = 'UserReidentificationIssue'
966
+ PERMISSIONELEMENTISSUE = 'PermissionElementIssue'
967
+
968
+
969
+ @register("Audits.InspectorIssueDetails")
970
+ @dataclass
971
+ class InspectorIssueDetails(DataType):
972
+ """
973
+ This struct holds a list of optional fields with additional information
974
+ specific to the kind of issue. When adding a new issue code, please also
975
+ add a new optional field to this type.
976
+ """
977
+ cookie_issue_details: Optional[CookieIssueDetails] = None
978
+ mixed_content_issue_details: Optional[MixedContentIssueDetails] = None
979
+ blocked_by_response_issue_details: Optional[BlockedByResponseIssueDetails] = None
980
+ heavy_ad_issue_details: Optional[HeavyAdIssueDetails] = None
981
+ content_security_policy_issue_details: Optional[ContentSecurityPolicyIssueDetails] = None
982
+ shared_array_buffer_issue_details: Optional[SharedArrayBufferIssueDetails] = None
983
+ low_text_contrast_issue_details: Optional[LowTextContrastIssueDetails] = None
984
+ cors_issue_details: Optional[CorsIssueDetails] = None
985
+ attribution_reporting_issue_details: Optional[AttributionReportingIssueDetails] = None
986
+ quirks_mode_issue_details: Optional[QuirksModeIssueDetails] = None
987
+ partitioning_blob_url_issue_details: Optional[PartitioningBlobURLIssueDetails] = None
988
+ navigator_user_agent_issue_details: Optional[NavigatorUserAgentIssueDetails] = None
989
+ generic_issue_details: Optional[GenericIssueDetails] = None
990
+ deprecation_issue_details: Optional[DeprecationIssueDetails] = None
991
+ client_hint_issue_details: Optional[ClientHintIssueDetails] = None
992
+ federated_auth_request_issue_details: Optional[FederatedAuthRequestIssueDetails] = None
993
+ bounce_tracking_issue_details: Optional[BounceTrackingIssueDetails] = None
994
+ cookie_deprecation_metadata_issue_details: Optional[CookieDeprecationMetadataIssueDetails] = None
995
+ stylesheet_loading_issue_details: Optional[StylesheetLoadingIssueDetails] = None
996
+ property_rule_issue_details: Optional[PropertyRuleIssueDetails] = None
997
+ federated_auth_user_info_request_issue_details: Optional[FederatedAuthUserInfoRequestIssueDetails] = None
998
+ shared_dictionary_issue_details: Optional[SharedDictionaryIssueDetails] = None
999
+ element_accessibility_issue_details: Optional[ElementAccessibilityIssueDetails] = None
1000
+ sri_message_signature_issue_details: Optional[SRIMessageSignatureIssueDetails] = None
1001
+ unencoded_digest_issue_details: Optional[UnencodedDigestIssueDetails] = None
1002
+ user_reidentification_issue_details: Optional[UserReidentificationIssueDetails] = None
1003
+ permission_element_issue_details: Optional[PermissionElementIssueDetails] = None
1004
+ __FIELDS__: ClassVar[tuple] = (
1005
+ FieldMeta('cookie_issue_details', 'cookieIssueDetails', True, 'object', ref='Audits.CookieIssueDetails'),
1006
+ FieldMeta('mixed_content_issue_details', 'mixedContentIssueDetails', True, 'object', ref='Audits.MixedContentIssueDetails'),
1007
+ FieldMeta('blocked_by_response_issue_details', 'blockedByResponseIssueDetails', True, 'object', ref='Audits.BlockedByResponseIssueDetails'),
1008
+ FieldMeta('heavy_ad_issue_details', 'heavyAdIssueDetails', True, 'object', ref='Audits.HeavyAdIssueDetails'),
1009
+ FieldMeta('content_security_policy_issue_details', 'contentSecurityPolicyIssueDetails', True, 'object', ref='Audits.ContentSecurityPolicyIssueDetails'),
1010
+ FieldMeta('shared_array_buffer_issue_details', 'sharedArrayBufferIssueDetails', True, 'object', ref='Audits.SharedArrayBufferIssueDetails'),
1011
+ FieldMeta('low_text_contrast_issue_details', 'lowTextContrastIssueDetails', True, 'object', ref='Audits.LowTextContrastIssueDetails'),
1012
+ FieldMeta('cors_issue_details', 'corsIssueDetails', True, 'object', ref='Audits.CorsIssueDetails'),
1013
+ FieldMeta('attribution_reporting_issue_details', 'attributionReportingIssueDetails', True, 'object', ref='Audits.AttributionReportingIssueDetails'),
1014
+ FieldMeta('quirks_mode_issue_details', 'quirksModeIssueDetails', True, 'object', ref='Audits.QuirksModeIssueDetails'),
1015
+ FieldMeta('partitioning_blob_url_issue_details', 'partitioningBlobURLIssueDetails', True, 'object', ref='Audits.PartitioningBlobURLIssueDetails'),
1016
+ FieldMeta('navigator_user_agent_issue_details', 'navigatorUserAgentIssueDetails', True, 'object', ref='Audits.NavigatorUserAgentIssueDetails'),
1017
+ FieldMeta('generic_issue_details', 'genericIssueDetails', True, 'object', ref='Audits.GenericIssueDetails'),
1018
+ FieldMeta('deprecation_issue_details', 'deprecationIssueDetails', True, 'object', ref='Audits.DeprecationIssueDetails'),
1019
+ FieldMeta('client_hint_issue_details', 'clientHintIssueDetails', True, 'object', ref='Audits.ClientHintIssueDetails'),
1020
+ FieldMeta('federated_auth_request_issue_details', 'federatedAuthRequestIssueDetails', True, 'object', ref='Audits.FederatedAuthRequestIssueDetails'),
1021
+ FieldMeta('bounce_tracking_issue_details', 'bounceTrackingIssueDetails', True, 'object', ref='Audits.BounceTrackingIssueDetails'),
1022
+ FieldMeta('cookie_deprecation_metadata_issue_details', 'cookieDeprecationMetadataIssueDetails', True, 'object', ref='Audits.CookieDeprecationMetadataIssueDetails'),
1023
+ FieldMeta('stylesheet_loading_issue_details', 'stylesheetLoadingIssueDetails', True, 'object', ref='Audits.StylesheetLoadingIssueDetails'),
1024
+ FieldMeta('property_rule_issue_details', 'propertyRuleIssueDetails', True, 'object', ref='Audits.PropertyRuleIssueDetails'),
1025
+ FieldMeta('federated_auth_user_info_request_issue_details', 'federatedAuthUserInfoRequestIssueDetails', True, 'object', ref='Audits.FederatedAuthUserInfoRequestIssueDetails'),
1026
+ FieldMeta('shared_dictionary_issue_details', 'sharedDictionaryIssueDetails', True, 'object', ref='Audits.SharedDictionaryIssueDetails'),
1027
+ FieldMeta('element_accessibility_issue_details', 'elementAccessibilityIssueDetails', True, 'object', ref='Audits.ElementAccessibilityIssueDetails'),
1028
+ FieldMeta('sri_message_signature_issue_details', 'sriMessageSignatureIssueDetails', True, 'object', ref='Audits.SRIMessageSignatureIssueDetails'),
1029
+ FieldMeta('unencoded_digest_issue_details', 'unencodedDigestIssueDetails', True, 'object', ref='Audits.UnencodedDigestIssueDetails'),
1030
+ FieldMeta('user_reidentification_issue_details', 'userReidentificationIssueDetails', True, 'object', ref='Audits.UserReidentificationIssueDetails'),
1031
+ FieldMeta('permission_element_issue_details', 'permissionElementIssueDetails', True, 'object', ref='Audits.PermissionElementIssueDetails'),
1032
+ )
1033
+
1034
+
1035
+ type IssueId = str # A unique id for a DevTools inspector issue. Allows other entities (e.g.
1036
+
1037
+
1038
+ @register("Audits.InspectorIssue")
1039
+ @dataclass
1040
+ class InspectorIssue(DataType):
1041
+ """An inspector issue reported from the back-end."""
1042
+ code: InspectorIssueCode
1043
+ details: InspectorIssueDetails
1044
+ issue_id: Optional[IssueId] = None
1045
+ __FIELDS__: ClassVar[tuple] = (
1046
+ FieldMeta('code', 'code', False, 'enum', ref='Audits.InspectorIssueCode'),
1047
+ FieldMeta('details', 'details', False, 'object', ref='Audits.InspectorIssueDetails'),
1048
+ FieldMeta('issue_id', 'issueId', True, 'primitive'),
1049
+ )
1050
+
1051
+ __all__ = ["AffectedCookie", "AffectedFrame", "AffectedRequest", "AttributionReportingIssueDetails", "AttributionReportingIssueType", "BlockedByResponseIssueDetails", "BlockedByResponseReason", "BounceTrackingIssueDetails", "ClientHintIssueDetails", "ClientHintIssueReason", "ContentSecurityPolicyIssueDetails", "ContentSecurityPolicyViolationType", "CookieDeprecationMetadataIssueDetails", "CookieExclusionReason", "CookieIssueDetails", "CookieIssueInsight", "CookieOperation", "CookieWarningReason", "CorsIssueDetails", "DeprecationIssueDetails", "ElementAccessibilityIssueDetails", "ElementAccessibilityIssueReason", "FailedRequestInfo", "FederatedAuthRequestIssueDetails", "FederatedAuthRequestIssueReason", "FederatedAuthUserInfoRequestIssueDetails", "FederatedAuthUserInfoRequestIssueReason", "GenericIssueDetails", "GenericIssueErrorType", "HeavyAdIssueDetails", "HeavyAdReason", "HeavyAdResolutionStatus", "InsightType", "InspectorIssue", "InspectorIssueCode", "InspectorIssueDetails", "IssueId", "LowTextContrastIssueDetails", "MixedContentIssueDetails", "MixedContentResolutionStatus", "MixedContentResourceType", "NavigatorUserAgentIssueDetails", "PartitioningBlobURLInfo", "PartitioningBlobURLIssueDetails", "PermissionElementIssueDetails", "PermissionElementIssueType", "PropertyRuleIssueDetails", "PropertyRuleIssueReason", "QuirksModeIssueDetails", "SRIMessageSignatureError", "SRIMessageSignatureIssueDetails", "SharedArrayBufferIssueDetails", "SharedArrayBufferIssueType", "SharedDictionaryError", "SharedDictionaryIssueDetails", "SourceCodeLocation", "StyleSheetLoadingIssueReason", "StylesheetLoadingIssueDetails", "UnencodedDigestError", "UnencodedDigestIssueDetails", "UserReidentificationIssueDetails", "UserReidentificationIssueType"]