chromedeveloperprotocol-client 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 (476) hide show
  1. cdp/__init__.py +4 -0
  2. cdp/domains.py +582 -0
  3. cdp/generator/__init__.py +3 -0
  4. cdp/generator/client_generator.py +246 -0
  5. cdp/generator/constant.py +4 -0
  6. cdp/generator/domain_generator.py +149 -0
  7. cdp/generator/event_generator.py +202 -0
  8. cdp/generator/method_generator.py +215 -0
  9. cdp/generator/service.py +153 -0
  10. cdp/generator/type_generator.py +231 -0
  11. cdp/protocol/__init__.py +0 -0
  12. cdp/protocol/accessibility/__init__.py +0 -0
  13. cdp/protocol/accessibility/events/__init__.py +0 -0
  14. cdp/protocol/accessibility/events/service.py +37 -0
  15. cdp/protocol/accessibility/events/types.py +14 -0
  16. cdp/protocol/accessibility/methods/__init__.py +0 -0
  17. cdp/protocol/accessibility/methods/service.py +109 -0
  18. cdp/protocol/accessibility/methods/types.py +70 -0
  19. cdp/protocol/accessibility/service.py +21 -0
  20. cdp/protocol/accessibility/types.py +89 -0
  21. cdp/protocol/animation/__init__.py +0 -0
  22. cdp/protocol/animation/events/__init__.py +0 -0
  23. cdp/protocol/animation/events/service.py +53 -0
  24. cdp/protocol/animation/events/types.py +20 -0
  25. cdp/protocol/animation/methods/__init__.py +0 -0
  26. cdp/protocol/animation/methods/service.py +131 -0
  27. cdp/protocol/animation/methods/types.py +52 -0
  28. cdp/protocol/animation/service.py +21 -0
  29. cdp/protocol/animation/types.py +79 -0
  30. cdp/protocol/audits/__init__.py +0 -0
  31. cdp/protocol/audits/events/__init__.py +0 -0
  32. cdp/protocol/audits/events/service.py +29 -0
  33. cdp/protocol/audits/events/types.py +10 -0
  34. cdp/protocol/audits/methods/__init__.py +0 -0
  35. cdp/protocol/audits/methods/service.py +76 -0
  36. cdp/protocol/audits/methods/types.py +36 -0
  37. cdp/protocol/audits/service.py +21 -0
  38. cdp/protocol/audits/types.py +293 -0
  39. cdp/protocol/autofill/__init__.py +0 -0
  40. cdp/protocol/autofill/events/__init__.py +0 -0
  41. cdp/protocol/autofill/events/service.py +29 -0
  42. cdp/protocol/autofill/events/types.py +14 -0
  43. cdp/protocol/autofill/methods/__init__.py +0 -0
  44. cdp/protocol/autofill/methods/service.py +65 -0
  45. cdp/protocol/autofill/methods/types.py +22 -0
  46. cdp/protocol/autofill/service.py +21 -0
  47. cdp/protocol/autofill/types.py +54 -0
  48. cdp/protocol/background_service/__init__.py +0 -0
  49. cdp/protocol/background_service/events/__init__.py +0 -0
  50. cdp/protocol/background_service/events/service.py +37 -0
  51. cdp/protocol/background_service/events/types.py +14 -0
  52. cdp/protocol/background_service/methods/__init__.py +0 -0
  53. cdp/protocol/background_service/methods/service.py +65 -0
  54. cdp/protocol/background_service/methods/types.py +17 -0
  55. cdp/protocol/background_service/service.py +21 -0
  56. cdp/protocol/background_service/types.py +32 -0
  57. cdp/protocol/bluetooth_emulation/__init__.py +0 -0
  58. cdp/protocol/bluetooth_emulation/events/__init__.py +0 -0
  59. cdp/protocol/bluetooth_emulation/events/service.py +45 -0
  60. cdp/protocol/bluetooth_emulation/events/types.py +23 -0
  61. cdp/protocol/bluetooth_emulation/methods/__init__.py +0 -0
  62. cdp/protocol/bluetooth_emulation/methods/service.py +186 -0
  63. cdp/protocol/bluetooth_emulation/methods/types.py +81 -0
  64. cdp/protocol/bluetooth_emulation/service.py +21 -0
  65. cdp/protocol/bluetooth_emulation/types.py +45 -0
  66. cdp/protocol/browser/__init__.py +0 -0
  67. cdp/protocol/browser/events/__init__.py +0 -0
  68. cdp/protocol/browser/events/service.py +37 -0
  69. cdp/protocol/browser/events/types.py +28 -0
  70. cdp/protocol/browser/methods/__init__.py +0 -0
  71. cdp/protocol/browser/methods/service.py +230 -0
  72. cdp/protocol/browser/methods/types.py +126 -0
  73. cdp/protocol/browser/service.py +21 -0
  74. cdp/protocol/browser/types.py +57 -0
  75. cdp/protocol/cache_storage/__init__.py +0 -0
  76. cdp/protocol/cache_storage/events/__init__.py +0 -0
  77. cdp/protocol/cache_storage/events/service.py +20 -0
  78. cdp/protocol/cache_storage/events/types.py +3 -0
  79. cdp/protocol/cache_storage/methods/__init__.py +0 -0
  80. cdp/protocol/cache_storage/methods/service.py +76 -0
  81. cdp/protocol/cache_storage/methods/types.py +57 -0
  82. cdp/protocol/cache_storage/service.py +21 -0
  83. cdp/protocol/cache_storage/types.py +49 -0
  84. cdp/protocol/cast/__init__.py +0 -0
  85. cdp/protocol/cast/events/__init__.py +0 -0
  86. cdp/protocol/cast/events/service.py +37 -0
  87. cdp/protocol/cast/events/types.py +12 -0
  88. cdp/protocol/cast/methods/__init__.py +0 -0
  89. cdp/protocol/cast/methods/service.py +87 -0
  90. cdp/protocol/cast/methods/types.py +15 -0
  91. cdp/protocol/cast/service.py +21 -0
  92. cdp/protocol/cast/types.py +9 -0
  93. cdp/protocol/css/__init__.py +0 -0
  94. cdp/protocol/css/events/__init__.py +0 -0
  95. cdp/protocol/css/events/service.py +69 -0
  96. cdp/protocol/css/events/types.py +27 -0
  97. cdp/protocol/css/methods/__init__.py +0 -0
  98. cdp/protocol/css/methods/service.py +428 -0
  99. cdp/protocol/css/methods/types.py +278 -0
  100. cdp/protocol/css/service.py +21 -0
  101. cdp/protocol/css/types.py +451 -0
  102. cdp/protocol/debugger/__init__.py +0 -0
  103. cdp/protocol/debugger/events/__init__.py +0 -0
  104. cdp/protocol/debugger/events/service.py +53 -0
  105. cdp/protocol/debugger/events/types.py +112 -0
  106. cdp/protocol/debugger/methods/__init__.py +0 -0
  107. cdp/protocol/debugger/methods/service.py +362 -0
  108. cdp/protocol/debugger/methods/types.py +250 -0
  109. cdp/protocol/debugger/service.py +21 -0
  110. cdp/protocol/debugger/types.py +91 -0
  111. cdp/protocol/device_access/__init__.py +0 -0
  112. cdp/protocol/device_access/events/__init__.py +0 -0
  113. cdp/protocol/device_access/events/service.py +29 -0
  114. cdp/protocol/device_access/events/types.py +12 -0
  115. cdp/protocol/device_access/methods/__init__.py +0 -0
  116. cdp/protocol/device_access/methods/service.py +65 -0
  117. cdp/protocol/device_access/methods/types.py +16 -0
  118. cdp/protocol/device_access/service.py +21 -0
  119. cdp/protocol/device_access/types.py +13 -0
  120. cdp/protocol/device_orientation/__init__.py +0 -0
  121. cdp/protocol/device_orientation/events/__init__.py +0 -0
  122. cdp/protocol/device_orientation/events/service.py +20 -0
  123. cdp/protocol/device_orientation/events/types.py +3 -0
  124. cdp/protocol/device_orientation/methods/__init__.py +0 -0
  125. cdp/protocol/device_orientation/methods/service.py +43 -0
  126. cdp/protocol/device_orientation/methods/types.py +12 -0
  127. cdp/protocol/device_orientation/service.py +21 -0
  128. cdp/protocol/device_orientation/types.py +3 -0
  129. cdp/protocol/dom/__init__.py +0 -0
  130. cdp/protocol/dom/events/__init__.py +0 -0
  131. cdp/protocol/dom/events/service.py +165 -0
  132. cdp/protocol/dom/events/types.py +97 -0
  133. cdp/protocol/dom/methods/__init__.py +0 -0
  134. cdp/protocol/dom/methods/service.py +593 -0
  135. cdp/protocol/dom/methods/types.py +384 -0
  136. cdp/protocol/dom/service.py +21 -0
  137. cdp/protocol/dom/types.py +151 -0
  138. cdp/protocol/dom_debugger/__init__.py +0 -0
  139. cdp/protocol/dom_debugger/events/__init__.py +0 -0
  140. cdp/protocol/dom_debugger/events/service.py +20 -0
  141. cdp/protocol/dom_debugger/events/types.py +3 -0
  142. cdp/protocol/dom_debugger/methods/__init__.py +0 -0
  143. cdp/protocol/dom_debugger/methods/service.py +109 -0
  144. cdp/protocol/dom_debugger/methods/types.py +51 -0
  145. cdp/protocol/dom_debugger/service.py +21 -0
  146. cdp/protocol/dom_debugger/types.py +36 -0
  147. cdp/protocol/dom_snapshot/__init__.py +0 -0
  148. cdp/protocol/dom_snapshot/events/__init__.py +0 -0
  149. cdp/protocol/dom_snapshot/events/service.py +20 -0
  150. cdp/protocol/dom_snapshot/events/types.py +3 -0
  151. cdp/protocol/dom_snapshot/methods/__init__.py +0 -0
  152. cdp/protocol/dom_snapshot/methods/service.py +54 -0
  153. cdp/protocol/dom_snapshot/methods/types.py +28 -0
  154. cdp/protocol/dom_snapshot/service.py +21 -0
  155. cdp/protocol/dom_snapshot/types.py +220 -0
  156. cdp/protocol/dom_storage/__init__.py +0 -0
  157. cdp/protocol/dom_storage/events/__init__.py +0 -0
  158. cdp/protocol/dom_storage/events/service.py +53 -0
  159. cdp/protocol/dom_storage/events/types.py +22 -0
  160. cdp/protocol/dom_storage/methods/__init__.py +0 -0
  161. cdp/protocol/dom_storage/methods/service.py +87 -0
  162. cdp/protocol/dom_storage/methods/types.py +27 -0
  163. cdp/protocol/dom_storage/service.py +21 -0
  164. cdp/protocol/dom_storage/types.py +15 -0
  165. cdp/protocol/emulation/__init__.py +0 -0
  166. cdp/protocol/emulation/events/__init__.py +0 -0
  167. cdp/protocol/emulation/events/service.py +29 -0
  168. cdp/protocol/emulation/events/types.py +6 -0
  169. cdp/protocol/emulation/methods/__init__.py +0 -0
  170. cdp/protocol/emulation/methods/service.py +494 -0
  171. cdp/protocol/emulation/methods/types.py +261 -0
  172. cdp/protocol/emulation/service.py +21 -0
  173. cdp/protocol/emulation/types.py +132 -0
  174. cdp/protocol/event_breakpoints/__init__.py +0 -0
  175. cdp/protocol/event_breakpoints/events/__init__.py +0 -0
  176. cdp/protocol/event_breakpoints/events/service.py +20 -0
  177. cdp/protocol/event_breakpoints/events/types.py +3 -0
  178. cdp/protocol/event_breakpoints/methods/__init__.py +0 -0
  179. cdp/protocol/event_breakpoints/methods/service.py +54 -0
  180. cdp/protocol/event_breakpoints/methods/types.py +10 -0
  181. cdp/protocol/event_breakpoints/service.py +21 -0
  182. cdp/protocol/event_breakpoints/types.py +3 -0
  183. cdp/protocol/extensions/__init__.py +0 -0
  184. cdp/protocol/extensions/events/__init__.py +0 -0
  185. cdp/protocol/extensions/events/service.py +20 -0
  186. cdp/protocol/extensions/events/types.py +3 -0
  187. cdp/protocol/extensions/methods/__init__.py +0 -0
  188. cdp/protocol/extensions/methods/service.py +87 -0
  189. cdp/protocol/extensions/methods/types.py +46 -0
  190. cdp/protocol/extensions/service.py +21 -0
  191. cdp/protocol/extensions/types.py +6 -0
  192. cdp/protocol/fed_cm/__init__.py +0 -0
  193. cdp/protocol/fed_cm/events/__init__.py +0 -0
  194. cdp/protocol/fed_cm/events/service.py +37 -0
  195. cdp/protocol/fed_cm/events/types.py +18 -0
  196. cdp/protocol/fed_cm/methods/__init__.py +0 -0
  197. cdp/protocol/fed_cm/methods/service.py +98 -0
  198. cdp/protocol/fed_cm/methods/types.py +26 -0
  199. cdp/protocol/fed_cm/service.py +21 -0
  200. cdp/protocol/fed_cm/types.py +25 -0
  201. cdp/protocol/fetch/__init__.py +0 -0
  202. cdp/protocol/fetch/events/__init__.py +0 -0
  203. cdp/protocol/fetch/events/service.py +37 -0
  204. cdp/protocol/fetch/events/types.py +47 -0
  205. cdp/protocol/fetch/methods/__init__.py +0 -0
  206. cdp/protocol/fetch/methods/service.py +120 -0
  207. cdp/protocol/fetch/methods/types.py +85 -0
  208. cdp/protocol/fetch/service.py +21 -0
  209. cdp/protocol/fetch/types.py +41 -0
  210. cdp/protocol/file_system/__init__.py +0 -0
  211. cdp/protocol/file_system/events/__init__.py +0 -0
  212. cdp/protocol/file_system/events/service.py +20 -0
  213. cdp/protocol/file_system/events/types.py +3 -0
  214. cdp/protocol/file_system/methods/__init__.py +0 -0
  215. cdp/protocol/file_system/methods/service.py +32 -0
  216. cdp/protocol/file_system/methods/types.py +14 -0
  217. cdp/protocol/file_system/service.py +21 -0
  218. cdp/protocol/file_system/types.py +28 -0
  219. cdp/protocol/headless_experimental/__init__.py +0 -0
  220. cdp/protocol/headless_experimental/events/__init__.py +0 -0
  221. cdp/protocol/headless_experimental/events/service.py +20 -0
  222. cdp/protocol/headless_experimental/events/types.py +3 -0
  223. cdp/protocol/headless_experimental/methods/__init__.py +0 -0
  224. cdp/protocol/headless_experimental/methods/service.py +32 -0
  225. cdp/protocol/headless_experimental/methods/types.py +22 -0
  226. cdp/protocol/headless_experimental/service.py +21 -0
  227. cdp/protocol/headless_experimental/types.py +12 -0
  228. cdp/protocol/heap_profiler/__init__.py +0 -0
  229. cdp/protocol/heap_profiler/events/__init__.py +0 -0
  230. cdp/protocol/heap_profiler/events/service.py +61 -0
  231. cdp/protocol/heap_profiler/events/types.py +18 -0
  232. cdp/protocol/heap_profiler/methods/__init__.py +0 -0
  233. cdp/protocol/heap_profiler/methods/service.py +153 -0
  234. cdp/protocol/heap_profiler/methods/types.py +73 -0
  235. cdp/protocol/heap_profiler/service.py +21 -0
  236. cdp/protocol/heap_profiler/types.py +32 -0
  237. cdp/protocol/indexed_db/__init__.py +0 -0
  238. cdp/protocol/indexed_db/events/__init__.py +0 -0
  239. cdp/protocol/indexed_db/events/service.py +20 -0
  240. cdp/protocol/indexed_db/events/types.py +3 -0
  241. cdp/protocol/indexed_db/methods/__init__.py +0 -0
  242. cdp/protocol/indexed_db/methods/service.py +120 -0
  243. cdp/protocol/indexed_db/methods/types.py +111 -0
  244. cdp/protocol/indexed_db/service.py +21 -0
  245. cdp/protocol/indexed_db/types.py +74 -0
  246. cdp/protocol/input/__init__.py +0 -0
  247. cdp/protocol/input/events/__init__.py +0 -0
  248. cdp/protocol/input/events/service.py +29 -0
  249. cdp/protocol/input/events/types.py +10 -0
  250. cdp/protocol/input/methods/__init__.py +0 -0
  251. cdp/protocol/input/methods/service.py +164 -0
  252. cdp/protocol/input/methods/types.py +181 -0
  253. cdp/protocol/input/service.py +21 -0
  254. cdp/protocol/input/types.py +46 -0
  255. cdp/protocol/inspector/__init__.py +0 -0
  256. cdp/protocol/inspector/events/__init__.py +0 -0
  257. cdp/protocol/inspector/events/service.py +53 -0
  258. cdp/protocol/inspector/events/types.py +13 -0
  259. cdp/protocol/inspector/methods/__init__.py +0 -0
  260. cdp/protocol/inspector/methods/service.py +43 -0
  261. cdp/protocol/inspector/methods/types.py +3 -0
  262. cdp/protocol/inspector/service.py +21 -0
  263. cdp/protocol/inspector/types.py +3 -0
  264. cdp/protocol/io/__init__.py +0 -0
  265. cdp/protocol/io/events/__init__.py +0 -0
  266. cdp/protocol/io/events/service.py +20 -0
  267. cdp/protocol/io/events/types.py +3 -0
  268. cdp/protocol/io/methods/__init__.py +0 -0
  269. cdp/protocol/io/methods/service.py +54 -0
  270. cdp/protocol/io/methods/types.py +33 -0
  271. cdp/protocol/io/service.py +21 -0
  272. cdp/protocol/io/types.py +6 -0
  273. cdp/protocol/layer_tree/__init__.py +0 -0
  274. cdp/protocol/layer_tree/events/__init__.py +0 -0
  275. cdp/protocol/layer_tree/events/service.py +37 -0
  276. cdp/protocol/layer_tree/events/types.py +18 -0
  277. cdp/protocol/layer_tree/methods/__init__.py +0 -0
  278. cdp/protocol/layer_tree/methods/service.py +120 -0
  279. cdp/protocol/layer_tree/methods/types.py +70 -0
  280. cdp/protocol/layer_tree/service.py +21 -0
  281. cdp/protocol/layer_tree/types.py +73 -0
  282. cdp/protocol/log/__init__.py +0 -0
  283. cdp/protocol/log/events/__init__.py +0 -0
  284. cdp/protocol/log/events/service.py +29 -0
  285. cdp/protocol/log/events/types.py +11 -0
  286. cdp/protocol/log/methods/__init__.py +0 -0
  287. cdp/protocol/log/methods/service.py +76 -0
  288. cdp/protocol/log/methods/types.py +14 -0
  289. cdp/protocol/log/service.py +21 -0
  290. cdp/protocol/log/types.py +40 -0
  291. cdp/protocol/media/__init__.py +0 -0
  292. cdp/protocol/media/events/__init__.py +0 -0
  293. cdp/protocol/media/events/service.py +61 -0
  294. cdp/protocol/media/events/types.py +27 -0
  295. cdp/protocol/media/methods/__init__.py +0 -0
  296. cdp/protocol/media/methods/service.py +43 -0
  297. cdp/protocol/media/methods/types.py +3 -0
  298. cdp/protocol/media/service.py +21 -0
  299. cdp/protocol/media/types.py +42 -0
  300. cdp/protocol/memory/__init__.py +0 -0
  301. cdp/protocol/memory/events/__init__.py +0 -0
  302. cdp/protocol/memory/events/service.py +20 -0
  303. cdp/protocol/memory/events/types.py +3 -0
  304. cdp/protocol/memory/methods/__init__.py +0 -0
  305. cdp/protocol/memory/methods/service.py +142 -0
  306. cdp/protocol/memory/methods/types.py +48 -0
  307. cdp/protocol/memory/service.py +21 -0
  308. cdp/protocol/memory/types.py +34 -0
  309. cdp/protocol/network/__init__.py +0 -0
  310. cdp/protocol/network/events/__init__.py +0 -0
  311. cdp/protocol/network/events/service.py +365 -0
  312. cdp/protocol/network/events/types.py +360 -0
  313. cdp/protocol/network/methods/__init__.py +0 -0
  314. cdp/protocol/network/methods/service.py +384 -0
  315. cdp/protocol/network/methods/types.py +252 -0
  316. cdp/protocol/network/service.py +21 -0
  317. cdp/protocol/network/types.py +691 -0
  318. cdp/protocol/overlay/__init__.py +0 -0
  319. cdp/protocol/overlay/events/__init__.py +0 -0
  320. cdp/protocol/overlay/events/service.py +53 -0
  321. cdp/protocol/overlay/events/types.py +20 -0
  322. cdp/protocol/overlay/methods/__init__.py +0 -0
  323. cdp/protocol/overlay/methods/service.py +307 -0
  324. cdp/protocol/overlay/methods/types.py +144 -0
  325. cdp/protocol/overlay/service.py +21 -0
  326. cdp/protocol/overlay/types.py +198 -0
  327. cdp/protocol/page/__init__.py +0 -0
  328. cdp/protocol/page/events/__init__.py +0 -0
  329. cdp/protocol/page/events/service.py +213 -0
  330. cdp/protocol/page/events/types.py +147 -0
  331. cdp/protocol/page/methods/__init__.py +0 -0
  332. cdp/protocol/page/methods/service.py +560 -0
  333. cdp/protocol/page/methods/types.py +346 -0
  334. cdp/protocol/page/service.py +21 -0
  335. cdp/protocol/page/types.py +379 -0
  336. cdp/protocol/performance/__init__.py +0 -0
  337. cdp/protocol/performance/events/__init__.py +0 -0
  338. cdp/protocol/performance/events/service.py +29 -0
  339. cdp/protocol/performance/events/types.py +13 -0
  340. cdp/protocol/performance/methods/__init__.py +0 -0
  341. cdp/protocol/performance/methods/service.py +54 -0
  342. cdp/protocol/performance/methods/types.py +18 -0
  343. cdp/protocol/performance/service.py +21 -0
  344. cdp/protocol/performance/types.py +10 -0
  345. cdp/protocol/performance_timeline/__init__.py +0 -0
  346. cdp/protocol/performance_timeline/events/__init__.py +0 -0
  347. cdp/protocol/performance_timeline/events/service.py +29 -0
  348. cdp/protocol/performance_timeline/events/types.py +10 -0
  349. cdp/protocol/performance_timeline/methods/__init__.py +0 -0
  350. cdp/protocol/performance_timeline/methods/service.py +32 -0
  351. cdp/protocol/performance_timeline/methods/types.py +7 -0
  352. cdp/protocol/performance_timeline/service.py +21 -0
  353. cdp/protocol/performance_timeline/types.py +46 -0
  354. cdp/protocol/preload/__init__.py +0 -0
  355. cdp/protocol/preload/events/__init__.py +0 -0
  356. cdp/protocol/preload/events/service.py +69 -0
  357. cdp/protocol/preload/events/types.py +49 -0
  358. cdp/protocol/preload/methods/__init__.py +0 -0
  359. cdp/protocol/preload/methods/service.py +43 -0
  360. cdp/protocol/preload/methods/types.py +3 -0
  361. cdp/protocol/preload/service.py +21 -0
  362. cdp/protocol/preload/types.py +56 -0
  363. cdp/protocol/profiler/__init__.py +0 -0
  364. cdp/protocol/profiler/events/__init__.py +0 -0
  365. cdp/protocol/profiler/events/service.py +45 -0
  366. cdp/protocol/profiler/events/types.py +30 -0
  367. cdp/protocol/profiler/methods/__init__.py +0 -0
  368. cdp/protocol/profiler/methods/service.py +120 -0
  369. cdp/protocol/profiler/methods/types.py +45 -0
  370. cdp/protocol/profiler/service.py +21 -0
  371. cdp/protocol/profiler/types.py +65 -0
  372. cdp/protocol/pwa/__init__.py +0 -0
  373. cdp/protocol/pwa/events/__init__.py +0 -0
  374. cdp/protocol/pwa/events/service.py +20 -0
  375. cdp/protocol/pwa/events/types.py +3 -0
  376. cdp/protocol/pwa/methods/__init__.py +0 -0
  377. cdp/protocol/pwa/methods/service.py +98 -0
  378. cdp/protocol/pwa/methods/types.py +43 -0
  379. cdp/protocol/pwa/service.py +21 -0
  380. cdp/protocol/pwa/types.py +15 -0
  381. cdp/protocol/py.typed +0 -0
  382. cdp/protocol/runtime/__init__.py +0 -0
  383. cdp/protocol/runtime/events/__init__.py +0 -0
  384. cdp/protocol/runtime/events/service.py +85 -0
  385. cdp/protocol/runtime/events/types.py +55 -0
  386. cdp/protocol/runtime/methods/__init__.py +0 -0
  387. cdp/protocol/runtime/methods/service.py +274 -0
  388. cdp/protocol/runtime/methods/types.py +226 -0
  389. cdp/protocol/runtime/service.py +21 -0
  390. cdp/protocol/runtime/types.py +194 -0
  391. cdp/protocol/security/__init__.py +0 -0
  392. cdp/protocol/security/events/__init__.py +0 -0
  393. cdp/protocol/security/events/service.py +29 -0
  394. cdp/protocol/security/events/types.py +11 -0
  395. cdp/protocol/security/methods/__init__.py +0 -0
  396. cdp/protocol/security/methods/service.py +54 -0
  397. cdp/protocol/security/methods/types.py +9 -0
  398. cdp/protocol/security/service.py +21 -0
  399. cdp/protocol/security/types.py +102 -0
  400. cdp/protocol/service_worker/__init__.py +0 -0
  401. cdp/protocol/service_worker/events/__init__.py +0 -0
  402. cdp/protocol/service_worker/events/service.py +45 -0
  403. cdp/protocol/service_worker/events/types.py +16 -0
  404. cdp/protocol/service_worker/methods/__init__.py +0 -0
  405. cdp/protocol/service_worker/methods/service.py +153 -0
  406. cdp/protocol/service_worker/methods/types.py +36 -0
  407. cdp/protocol/service_worker/service.py +21 -0
  408. cdp/protocol/service_worker/types.py +38 -0
  409. cdp/protocol/storage/__init__.py +0 -0
  410. cdp/protocol/storage/events/__init__.py +0 -0
  411. cdp/protocol/storage/events/service.py +141 -0
  412. cdp/protocol/storage/events/types.py +139 -0
  413. cdp/protocol/storage/methods/__init__.py +0 -0
  414. cdp/protocol/storage/methods/service.py +428 -0
  415. cdp/protocol/storage/methods/types.py +184 -0
  416. cdp/protocol/storage/service.py +21 -0
  417. cdp/protocol/storage/types.py +236 -0
  418. cdp/protocol/system_info/__init__.py +0 -0
  419. cdp/protocol/system_info/events/__init__.py +0 -0
  420. cdp/protocol/system_info/events/service.py +20 -0
  421. cdp/protocol/system_info/events/types.py +3 -0
  422. cdp/protocol/system_info/methods/__init__.py +0 -0
  423. cdp/protocol/system_info/methods/service.py +54 -0
  424. cdp/protocol/system_info/methods/types.py +27 -0
  425. cdp/protocol/system_info/service.py +21 -0
  426. cdp/protocol/system_info/types.py +71 -0
  427. cdp/protocol/target/__init__.py +0 -0
  428. cdp/protocol/target/events/__init__.py +0 -0
  429. cdp/protocol/target/events/service.py +77 -0
  430. cdp/protocol/target/events/types.py +38 -0
  431. cdp/protocol/target/methods/__init__.py +0 -0
  432. cdp/protocol/target/methods/service.py +219 -0
  433. cdp/protocol/target/methods/types.py +148 -0
  434. cdp/protocol/target/service.py +21 -0
  435. cdp/protocol/target/types.py +44 -0
  436. cdp/protocol/tethering/__init__.py +0 -0
  437. cdp/protocol/tethering/events/__init__.py +0 -0
  438. cdp/protocol/tethering/events/service.py +29 -0
  439. cdp/protocol/tethering/events/types.py +9 -0
  440. cdp/protocol/tethering/methods/__init__.py +0 -0
  441. cdp/protocol/tethering/methods/service.py +43 -0
  442. cdp/protocol/tethering/methods/types.py +10 -0
  443. cdp/protocol/tethering/service.py +21 -0
  444. cdp/protocol/tethering/types.py +3 -0
  445. cdp/protocol/tracing/__init__.py +0 -0
  446. cdp/protocol/tracing/events/__init__.py +0 -0
  447. cdp/protocol/tracing/events/service.py +45 -0
  448. cdp/protocol/tracing/events/types.py +28 -0
  449. cdp/protocol/tracing/methods/__init__.py +0 -0
  450. cdp/protocol/tracing/methods/service.py +87 -0
  451. cdp/protocol/tracing/methods/types.py +54 -0
  452. cdp/protocol/tracing/service.py +21 -0
  453. cdp/protocol/tracing/types.py +34 -0
  454. cdp/protocol/web_audio/__init__.py +0 -0
  455. cdp/protocol/web_audio/events/__init__.py +0 -0
  456. cdp/protocol/web_audio/events/service.py +125 -0
  457. cdp/protocol/web_audio/events/types.py +56 -0
  458. cdp/protocol/web_audio/methods/__init__.py +0 -0
  459. cdp/protocol/web_audio/methods/service.py +54 -0
  460. cdp/protocol/web_audio/methods/types.py +17 -0
  461. cdp/protocol/web_audio/service.py +21 -0
  462. cdp/protocol/web_audio/types.py +66 -0
  463. cdp/protocol/web_authn/__init__.py +0 -0
  464. cdp/protocol/web_authn/events/__init__.py +0 -0
  465. cdp/protocol/web_authn/events/service.py +53 -0
  466. cdp/protocol/web_authn/events/types.py +21 -0
  467. cdp/protocol/web_authn/methods/__init__.py +0 -0
  468. cdp/protocol/web_authn/methods/service.py +164 -0
  469. cdp/protocol/web_authn/methods/types.py +61 -0
  470. cdp/protocol/web_authn/service.py +21 -0
  471. cdp/protocol/web_authn/types.py +54 -0
  472. cdp/py.typed +0 -0
  473. cdp/service.py +184 -0
  474. chromedeveloperprotocol_client-0.1.0.dist-info/METADATA +15 -0
  475. chromedeveloperprotocol_client-0.1.0.dist-info/RECORD +476 -0
  476. chromedeveloperprotocol_client-0.1.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,236 @@
1
+ """CDP Storage Types"""
2
+
3
+ from typing import TypedDict, NotRequired, Required, Literal, Any, Dict, Union, Optional, List, Set, Tuple
4
+
5
+ from typing import TYPE_CHECKING
6
+ if TYPE_CHECKING:
7
+ from cdp.protocol.network.types import TimeSinceEpoch
8
+ from cdp.protocol.target.types import TargetID
9
+
10
+ SerializedStorageKey = str
11
+ StorageType = Literal['cookies','file_systems','indexeddb','local_storage','shader_cache','websql','service_workers','cache_storage','interest_groups','shared_storage','storage_buckets','all','other']
12
+ """Enum of possible storage types."""
13
+ class UsageForType(TypedDict, total=True):
14
+ """Usage for a storage type."""
15
+ storageType: 'StorageType'
16
+ """Name of storage type."""
17
+ usage: 'float'
18
+ """Storage usage (bytes)."""
19
+ class TrustTokens(TypedDict, total=True):
20
+ """Pair of issuer origin and number of available (signed, but not used) Trust Tokens from that issuer."""
21
+ issuerOrigin: 'str'
22
+ count: 'float'
23
+ InterestGroupAuctionId = str
24
+ """Protected audience interest group auction identifier."""
25
+ InterestGroupAccessType = Literal['join','leave','update','loaded','bid','win','additionalBid','additionalBidWin','topLevelBid','topLevelAdditionalBid','clear']
26
+ """Enum of interest group access types."""
27
+ InterestGroupAuctionEventType = Literal['started','configResolved']
28
+ """Enum of auction events."""
29
+ InterestGroupAuctionFetchType = Literal['bidderJs','bidderWasm','sellerJs','bidderTrustedSignals','sellerTrustedSignals']
30
+ """Enum of network fetches auctions can do."""
31
+ SharedStorageAccessScope = Literal['window','sharedStorageWorklet','protectedAudienceWorklet','header']
32
+ """Enum of shared storage access scopes."""
33
+ SharedStorageAccessMethod = Literal['addModule','createWorklet','selectURL','run','batchUpdate','set','append','delete','clear','get','keys','values','entries','length','remainingBudget']
34
+ """Enum of shared storage access methods."""
35
+ class SharedStorageEntry(TypedDict, total=True):
36
+ """Struct for a single key-value pair in an origin's shared storage."""
37
+ key: 'str'
38
+ value: 'str'
39
+ class SharedStorageMetadata(TypedDict, total=True):
40
+ """Details for an origin's shared storage."""
41
+ creationTime: 'TimeSinceEpoch'
42
+ """Time when the origin's shared storage was last created."""
43
+ length: 'int'
44
+ """Number of key-value pairs stored in origin's shared storage."""
45
+ remainingBudget: 'float'
46
+ """Current amount of bits of entropy remaining in the navigation budget."""
47
+ bytesUsed: 'int'
48
+ """Total number of bytes stored as key-value pairs in origin's shared storage."""
49
+ class SharedStoragePrivateAggregationConfig(TypedDict, total=True):
50
+ """Represents a dictionary object passed in as privateAggregationConfig to run or selectURL."""
51
+ filteringIdMaxBytes: 'int'
52
+ """Configures the maximum size allowed for filtering IDs."""
53
+ aggregationCoordinatorOrigin: NotRequired['str']
54
+ """The chosen aggregation service deployment."""
55
+ contextId: NotRequired['str']
56
+ """The context ID provided."""
57
+ maxContributions: NotRequired['int']
58
+ """The limit on the number of contributions in the final report."""
59
+ class SharedStorageReportingMetadata(TypedDict, total=True):
60
+ """Pair of reporting metadata details for a candidate URL for selectURL()."""
61
+ eventType: 'str'
62
+ reportingUrl: 'str'
63
+ class SharedStorageUrlWithMetadata(TypedDict, total=True):
64
+ """Bundles a candidate URL with its reporting metadata."""
65
+ url: 'str'
66
+ """Spec of candidate URL."""
67
+ reportingMetadata: 'List[SharedStorageReportingMetadata]'
68
+ """Any associated reporting metadata."""
69
+ class SharedStorageAccessParams(TypedDict, total=False):
70
+ """Bundles the parameters for shared storage access events whose presence/absence can vary according to SharedStorageAccessType."""
71
+ scriptSourceUrl: NotRequired['str']
72
+ """Spec of the module script URL. Present only for SharedStorageAccessMethods: addModule and createWorklet."""
73
+ dataOrigin: NotRequired['str']
74
+ """String denoting "context-origin", "script-origin", or a custom origin to be used as the worklet's data origin. Present only for SharedStorageAccessMethod: createWorklet."""
75
+ operationName: NotRequired['str']
76
+ """Name of the registered operation to be run. Present only for SharedStorageAccessMethods: run and selectURL."""
77
+ operationId: NotRequired['str']
78
+ """ID of the operation call. Present only for SharedStorageAccessMethods: run and selectURL."""
79
+ keepAlive: NotRequired['bool']
80
+ """Whether or not to keep the worket alive for future run or selectURL calls. Present only for SharedStorageAccessMethods: run and selectURL."""
81
+ privateAggregationConfig: NotRequired['SharedStoragePrivateAggregationConfig']
82
+ """Configures the private aggregation options. Present only for SharedStorageAccessMethods: run and selectURL."""
83
+ serializedData: NotRequired['str']
84
+ """The operation's serialized data in bytes (converted to a string). Present only for SharedStorageAccessMethods: run and selectURL. TODO(crbug.com/401011862): Consider updating this parameter to binary."""
85
+ urlsWithMetadata: NotRequired['List[SharedStorageUrlWithMetadata]']
86
+ """Array of candidate URLs' specs, along with any associated metadata. Present only for SharedStorageAccessMethod: selectURL."""
87
+ urnUuid: NotRequired['str']
88
+ """Spec of the URN:UUID generated for a selectURL call. Present only for SharedStorageAccessMethod: selectURL."""
89
+ key: NotRequired['str']
90
+ """Key for a specific entry in an origin's shared storage. Present only for SharedStorageAccessMethods: set, append, delete, and get."""
91
+ value: NotRequired['str']
92
+ """Value for a specific entry in an origin's shared storage. Present only for SharedStorageAccessMethods: set and append."""
93
+ ignoreIfPresent: NotRequired['bool']
94
+ """Whether or not to set an entry for a key if that key is already present. Present only for SharedStorageAccessMethod: set."""
95
+ workletOrdinal: NotRequired['int']
96
+ """A number denoting the (0-based) order of the worklet's creation relative to all other shared storage worklets created by documents using the current storage partition. Present only for SharedStorageAccessMethods: addModule, createWorklet."""
97
+ workletTargetId: NotRequired['TargetID']
98
+ """Hex representation of the DevTools token used as the TargetID for the associated shared storage worklet. Present only for SharedStorageAccessMethods: addModule, createWorklet, run, selectURL, and any other SharedStorageAccessMethod when the SharedStorageAccessScope is sharedStorageWorklet."""
99
+ withLock: NotRequired['str']
100
+ """Name of the lock to be acquired, if present. Optionally present only for SharedStorageAccessMethods: batchUpdate, set, append, delete, and clear."""
101
+ batchUpdateId: NotRequired['str']
102
+ """If the method has been called as part of a batchUpdate, then this number identifies the batch to which it belongs. Optionally present only for SharedStorageAccessMethods: batchUpdate (required), set, append, delete, and clear."""
103
+ batchSize: NotRequired['int']
104
+ """Number of modifier methods sent in batch. Present only for SharedStorageAccessMethod: batchUpdate."""
105
+ StorageBucketsDurability = Literal['relaxed','strict']
106
+ class StorageBucket(TypedDict, total=True):
107
+ storageKey: 'SerializedStorageKey'
108
+ name: NotRequired['str']
109
+ """If not specified, it is the default bucket of the storageKey."""
110
+ class StorageBucketInfo(TypedDict, total=True):
111
+ bucket: 'StorageBucket'
112
+ id: 'str'
113
+ expiration: 'TimeSinceEpoch'
114
+ quota: 'float'
115
+ """Storage quota (bytes)."""
116
+ persistent: 'bool'
117
+ durability: 'StorageBucketsDurability'
118
+ AttributionReportingSourceType = Literal['navigation','event']
119
+ UnsignedInt64AsBase10 = str
120
+ UnsignedInt128AsBase16 = str
121
+ SignedInt64AsBase10 = str
122
+ class AttributionReportingFilterDataEntry(TypedDict, total=True):
123
+ key: 'str'
124
+ values: 'List[str]'
125
+ class AttributionReportingFilterConfig(TypedDict, total=True):
126
+ filterValues: 'List[AttributionReportingFilterDataEntry]'
127
+ lookbackWindow: NotRequired['int']
128
+ """duration in seconds"""
129
+ class AttributionReportingFilterPair(TypedDict, total=True):
130
+ filters: 'List[AttributionReportingFilterConfig]'
131
+ notFilters: 'List[AttributionReportingFilterConfig]'
132
+ class AttributionReportingAggregationKeysEntry(TypedDict, total=True):
133
+ key: 'str'
134
+ value: 'UnsignedInt128AsBase16'
135
+ class AttributionReportingEventReportWindows(TypedDict, total=True):
136
+ start: 'int'
137
+ """duration in seconds"""
138
+ ends: 'List[int]'
139
+ """duration in seconds"""
140
+ AttributionReportingTriggerDataMatching = Literal['exact','modulus']
141
+ class AttributionReportingAggregatableDebugReportingData(TypedDict, total=True):
142
+ keyPiece: 'UnsignedInt128AsBase16'
143
+ value: 'float'
144
+ """number instead of integer because not all uint32 can be represented by int"""
145
+ types: 'List[str]'
146
+ class AttributionReportingAggregatableDebugReportingConfig(TypedDict, total=True):
147
+ keyPiece: 'UnsignedInt128AsBase16'
148
+ debugData: 'List[AttributionReportingAggregatableDebugReportingData]'
149
+ budget: NotRequired['float']
150
+ """number instead of integer because not all uint32 can be represented by int, only present for source registrations"""
151
+ aggregationCoordinatorOrigin: NotRequired['str']
152
+ class AttributionScopesData(TypedDict, total=True):
153
+ values: 'List[str]'
154
+ limit: 'float'
155
+ """number instead of integer because not all uint32 can be represented by int"""
156
+ maxEventStates: 'float'
157
+ class AttributionReportingNamedBudgetDef(TypedDict, total=True):
158
+ name: 'str'
159
+ budget: 'int'
160
+ class AttributionReportingSourceRegistration(TypedDict, total=True):
161
+ time: 'TimeSinceEpoch'
162
+ expiry: 'int'
163
+ """duration in seconds"""
164
+ triggerData: 'List[float]'
165
+ """number instead of integer because not all uint32 can be represented by int"""
166
+ eventReportWindows: 'AttributionReportingEventReportWindows'
167
+ aggregatableReportWindow: 'int'
168
+ """duration in seconds"""
169
+ type: 'AttributionReportingSourceType'
170
+ sourceOrigin: 'str'
171
+ reportingOrigin: 'str'
172
+ destinationSites: 'List[str]'
173
+ eventId: 'UnsignedInt64AsBase10'
174
+ priority: 'SignedInt64AsBase10'
175
+ filterData: 'List[AttributionReportingFilterDataEntry]'
176
+ aggregationKeys: 'List[AttributionReportingAggregationKeysEntry]'
177
+ triggerDataMatching: 'AttributionReportingTriggerDataMatching'
178
+ destinationLimitPriority: 'SignedInt64AsBase10'
179
+ aggregatableDebugReportingConfig: 'AttributionReportingAggregatableDebugReportingConfig'
180
+ maxEventLevelReports: 'int'
181
+ namedBudgets: 'List[AttributionReportingNamedBudgetDef]'
182
+ debugReporting: 'bool'
183
+ eventLevelEpsilon: 'float'
184
+ debugKey: NotRequired['UnsignedInt64AsBase10']
185
+ scopesData: NotRequired['AttributionScopesData']
186
+ AttributionReportingSourceRegistrationResult = Literal['success','internalError','insufficientSourceCapacity','insufficientUniqueDestinationCapacity','excessiveReportingOrigins','prohibitedByBrowserPolicy','successNoised','destinationReportingLimitReached','destinationGlobalLimitReached','destinationBothLimitsReached','reportingOriginsPerSiteLimitReached','exceedsMaxChannelCapacity','exceedsMaxScopesChannelCapacity','exceedsMaxTriggerStateCardinality','exceedsMaxEventStatesLimit','destinationPerDayReportingLimitReached']
187
+ AttributionReportingSourceRegistrationTimeConfig = Literal['include','exclude']
188
+ class AttributionReportingAggregatableValueDictEntry(TypedDict, total=True):
189
+ key: 'str'
190
+ value: 'float'
191
+ """number instead of integer because not all uint32 can be represented by int"""
192
+ filteringId: 'UnsignedInt64AsBase10'
193
+ class AttributionReportingAggregatableValueEntry(TypedDict, total=True):
194
+ values: 'List[AttributionReportingAggregatableValueDictEntry]'
195
+ filters: 'AttributionReportingFilterPair'
196
+ class AttributionReportingEventTriggerData(TypedDict, total=True):
197
+ data: 'UnsignedInt64AsBase10'
198
+ priority: 'SignedInt64AsBase10'
199
+ filters: 'AttributionReportingFilterPair'
200
+ dedupKey: NotRequired['UnsignedInt64AsBase10']
201
+ class AttributionReportingAggregatableTriggerData(TypedDict, total=True):
202
+ keyPiece: 'UnsignedInt128AsBase16'
203
+ sourceKeys: 'List[str]'
204
+ filters: 'AttributionReportingFilterPair'
205
+ class AttributionReportingAggregatableDedupKey(TypedDict, total=True):
206
+ filters: 'AttributionReportingFilterPair'
207
+ dedupKey: NotRequired['UnsignedInt64AsBase10']
208
+ class AttributionReportingNamedBudgetCandidate(TypedDict, total=True):
209
+ filters: 'AttributionReportingFilterPair'
210
+ name: NotRequired['str']
211
+ class AttributionReportingTriggerRegistration(TypedDict, total=True):
212
+ filters: 'AttributionReportingFilterPair'
213
+ aggregatableDedupKeys: 'List[AttributionReportingAggregatableDedupKey]'
214
+ eventTriggerData: 'List[AttributionReportingEventTriggerData]'
215
+ aggregatableTriggerData: 'List[AttributionReportingAggregatableTriggerData]'
216
+ aggregatableValues: 'List[AttributionReportingAggregatableValueEntry]'
217
+ aggregatableFilteringIdMaxBytes: 'int'
218
+ debugReporting: 'bool'
219
+ sourceRegistrationTimeConfig: 'AttributionReportingSourceRegistrationTimeConfig'
220
+ aggregatableDebugReportingConfig: 'AttributionReportingAggregatableDebugReportingConfig'
221
+ scopes: 'List[str]'
222
+ namedBudgets: 'List[AttributionReportingNamedBudgetCandidate]'
223
+ debugKey: NotRequired['UnsignedInt64AsBase10']
224
+ aggregationCoordinatorOrigin: NotRequired['str']
225
+ triggerContextId: NotRequired['str']
226
+ AttributionReportingEventLevelResult = Literal['success','successDroppedLowerPriority','internalError','noCapacityForAttributionDestination','noMatchingSources','deduplicated','excessiveAttributions','priorityTooLow','neverAttributedSource','excessiveReportingOrigins','noMatchingSourceFilterData','prohibitedByBrowserPolicy','noMatchingConfigurations','excessiveReports','falselyAttributedSource','reportWindowPassed','notRegistered','reportWindowNotStarted','noMatchingTriggerData']
227
+ AttributionReportingAggregatableResult = Literal['success','internalError','noCapacityForAttributionDestination','noMatchingSources','excessiveAttributions','excessiveReportingOrigins','noHistograms','insufficientBudget','insufficientNamedBudget','noMatchingSourceFilterData','notRegistered','prohibitedByBrowserPolicy','deduplicated','reportWindowPassed','excessiveReports']
228
+ AttributionReportingReportResult = Literal['sent','prohibited','failedToAssemble','expired']
229
+ class RelatedWebsiteSet(TypedDict, total=True):
230
+ """A single Related Website Set object."""
231
+ primarySites: 'List[str]'
232
+ """The primary site of this set, along with the ccTLDs if there is any."""
233
+ associatedSites: 'List[str]'
234
+ """The associated sites of this set, along with the ccTLDs if there is any."""
235
+ serviceSites: 'List[str]'
236
+ """The service sites of this set, along with the ccTLDs if there is any."""
File without changes
File without changes
@@ -0,0 +1,20 @@
1
+ """CDP SystemInfo Domain Events"""
2
+ from ..types import *
3
+ from .types import *
4
+ from typing import Optional, Dict, Any, Callable, TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from ....service import Client
8
+
9
+ class SystemInfoEvents:
10
+ """
11
+ Events for the SystemInfo domain.
12
+ """
13
+ def __init__(self, client: "Client"):
14
+ """
15
+ Initialize the SystemInfo events.
16
+
17
+ Args:
18
+ client ("Client"): The parent CDP client instance.
19
+ """
20
+ self.client = client
@@ -0,0 +1,3 @@
1
+ """CDP SystemInfo Events"""
2
+
3
+ from typing import TypedDict, NotRequired, Required, Literal, Any, Dict, Union, Optional, List, Set, Tuple
File without changes
@@ -0,0 +1,54 @@
1
+ """CDP SystemInfo Domain Methods"""
2
+ from ..types import *
3
+ from .types import *
4
+ from typing import Optional, Dict, Any, Callable, TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from ....service import Client
8
+
9
+ class SystemInfoMethods:
10
+ """
11
+ Methods for the SystemInfo domain.
12
+ """
13
+ def __init__(self, client: "Client"):
14
+ """
15
+ Initialize the SystemInfo methods.
16
+
17
+ Args:
18
+ client ("Client"): The parent CDP client instance.
19
+ """
20
+ self.client = client
21
+
22
+ async def get_info(self, params: None=None,session_id: Optional[str] = None) -> getInfoReturns:
23
+ """
24
+ Returns information about the system.
25
+ Args:
26
+ params (None, optional): Parameters for the getInfo method.
27
+ session_id (str, optional): Target session ID for flat protocol usage.
28
+
29
+ Returns:
30
+ getInfoReturns: The result of the getInfo call.
31
+ """
32
+ return await self.client.send(method="SystemInfo.getInfo", params=params,session_id=session_id)
33
+ async def get_feature_state(self, params: Optional[getFeatureStateParameters]=None,session_id: Optional[str] = None) -> getFeatureStateReturns:
34
+ """
35
+ Returns information about the feature state.
36
+ Args:
37
+ params (getFeatureStateParameters, optional): Parameters for the getFeatureState method.
38
+ session_id (str, optional): Target session ID for flat protocol usage.
39
+
40
+ Returns:
41
+ getFeatureStateReturns: The result of the getFeatureState call.
42
+ """
43
+ return await self.client.send(method="SystemInfo.getFeatureState", params=params,session_id=session_id)
44
+ async def get_process_info(self, params: None=None,session_id: Optional[str] = None) -> getProcessInfoReturns:
45
+ """
46
+ Returns information about all running processes.
47
+ Args:
48
+ params (None, optional): Parameters for the getProcessInfo method.
49
+ session_id (str, optional): Target session ID for flat protocol usage.
50
+
51
+ Returns:
52
+ getProcessInfoReturns: The result of the getProcessInfo call.
53
+ """
54
+ return await self.client.send(method="SystemInfo.getProcessInfo", params=params,session_id=session_id)
@@ -0,0 +1,27 @@
1
+ """CDP SystemInfo Methods Types"""
2
+
3
+ from typing import TypedDict, NotRequired, Required, Literal, Any, Dict, Union, Optional, List, Set, Tuple
4
+
5
+ from typing import TYPE_CHECKING
6
+ if TYPE_CHECKING:
7
+ from cdp.protocol.system_info.types import GPUInfo
8
+ from cdp.protocol.system_info.types import ProcessInfo
9
+
10
+
11
+ class getFeatureStateParameters(TypedDict, total=True):
12
+ featureState: 'str'
13
+
14
+ class getInfoReturns(TypedDict):
15
+ gpu: 'GPUInfo'
16
+ """Information about the GPUs on the system."""
17
+ modelName: 'str'
18
+ """A platform-dependent description of the model of the machine. On Mac OS, this is, for example, 'MacBookPro'. Will be the empty string if not supported."""
19
+ modelVersion: 'str'
20
+ """A platform-dependent description of the version of the machine. On Mac OS, this is, for example, '10.1'. Will be the empty string if not supported."""
21
+ commandLine: 'str'
22
+ """The command line string used to launch the browser. Will be the empty string if not supported."""
23
+ class getFeatureStateReturns(TypedDict):
24
+ featureEnabled: 'bool'
25
+ class getProcessInfoReturns(TypedDict):
26
+ processInfo: 'List[ProcessInfo]'
27
+ """An array of process info blocks."""
@@ -0,0 +1,21 @@
1
+ """CDP SystemInfo Domain"""
2
+ from typing import TYPE_CHECKING
3
+ from .methods.service import SystemInfoMethods
4
+ from .events.service import SystemInfoEvents
5
+
6
+ if TYPE_CHECKING:
7
+ from ...service import Client
8
+
9
+ class SystemInfo(SystemInfoMethods, SystemInfoEvents):
10
+ """
11
+ The SystemInfo domain defines methods and events for querying low-level system information.
12
+ """
13
+ def __init__(self, client: "Client"):
14
+ """
15
+ Initialize the SystemInfo domain.
16
+
17
+ Args:
18
+ client ("Client"): The parent CDP client instance.
19
+ """
20
+ SystemInfoMethods.__init__(self, client)
21
+ SystemInfoEvents.__init__(self, client)
@@ -0,0 +1,71 @@
1
+ """CDP SystemInfo Types"""
2
+
3
+ from typing import TypedDict, NotRequired, Required, Literal, Any, Dict, Union, Optional, List, Set, Tuple
4
+
5
+ class GPUDevice(TypedDict, total=True):
6
+ """Describes a single graphics processor (GPU)."""
7
+ vendorId: 'float'
8
+ """PCI ID of the GPU vendor, if available; 0 otherwise."""
9
+ deviceId: 'float'
10
+ """PCI ID of the GPU device, if available; 0 otherwise."""
11
+ vendorString: 'str'
12
+ """String description of the GPU vendor, if the PCI ID is not available."""
13
+ deviceString: 'str'
14
+ """String description of the GPU device, if the PCI ID is not available."""
15
+ driverVendor: 'str'
16
+ """String description of the GPU driver vendor."""
17
+ driverVersion: 'str'
18
+ """String description of the GPU driver version."""
19
+ subSysId: NotRequired['float']
20
+ """Sub sys ID of the GPU, only available on Windows."""
21
+ revision: NotRequired['float']
22
+ """Revision of the GPU, only available on Windows."""
23
+ class Size(TypedDict, total=True):
24
+ """Describes the width and height dimensions of an entity."""
25
+ width: 'int'
26
+ """Width in pixels."""
27
+ height: 'int'
28
+ """Height in pixels."""
29
+ class VideoDecodeAcceleratorCapability(TypedDict, total=True):
30
+ """Describes a supported video decoding profile with its associated minimum and maximum resolutions."""
31
+ profile: 'str'
32
+ """Video codec profile that is supported, e.g. VP9 Profile 2."""
33
+ maxResolution: 'Size'
34
+ """Maximum video dimensions in pixels supported for this |profile|."""
35
+ minResolution: 'Size'
36
+ """Minimum video dimensions in pixels supported for this |profile|."""
37
+ class VideoEncodeAcceleratorCapability(TypedDict, total=True):
38
+ """Describes a supported video encoding profile with its associated maximum resolution and maximum framerate."""
39
+ profile: 'str'
40
+ """Video codec profile that is supported, e.g H264 Main."""
41
+ maxResolution: 'Size'
42
+ """Maximum video dimensions in pixels supported for this |profile|."""
43
+ maxFramerateNumerator: 'int'
44
+ """Maximum encoding framerate in frames per second supported for this |profile|, as fraction's numerator and denominator, e.g. 24/1 fps, 24000/1001 fps, etc."""
45
+ maxFramerateDenominator: 'int'
46
+ SubsamplingFormat = Literal['yuv420','yuv422','yuv444']
47
+ """YUV subsampling type of the pixels of a given image."""
48
+ ImageType = Literal['jpeg','webp','unknown']
49
+ """Image format of a given image."""
50
+ class GPUInfo(TypedDict, total=True):
51
+ """Provides information about the GPU(s) on the system."""
52
+ devices: 'List[GPUDevice]'
53
+ """The graphics devices on the system. Element 0 is the primary GPU."""
54
+ driverBugWorkarounds: 'List[str]'
55
+ """An optional array of GPU driver bug workarounds."""
56
+ videoDecoding: 'List[VideoDecodeAcceleratorCapability]'
57
+ """Supported accelerated video decoding capabilities."""
58
+ videoEncoding: 'List[VideoEncodeAcceleratorCapability]'
59
+ """Supported accelerated video encoding capabilities."""
60
+ auxAttributes: NotRequired['Dict[str, Any]']
61
+ """An optional dictionary of additional GPU related attributes."""
62
+ featureStatus: NotRequired['Dict[str, Any]']
63
+ """An optional dictionary of graphics features and their status."""
64
+ class ProcessInfo(TypedDict, total=True):
65
+ """Represents process info."""
66
+ type: 'str'
67
+ """Specifies process type."""
68
+ id: 'int'
69
+ """Specifies process id."""
70
+ cpuTime: 'float'
71
+ """Specifies cumulative CPU usage in seconds across all threads of the process since the process start."""
File without changes
File without changes
@@ -0,0 +1,77 @@
1
+ """CDP Target Domain Events"""
2
+ from ..types import *
3
+ from .types import *
4
+ from typing import Optional, Dict, Any, Callable, TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from ....service import Client
8
+
9
+ class TargetEvents:
10
+ """
11
+ Events for the Target domain.
12
+ """
13
+ def __init__(self, client: "Client"):
14
+ """
15
+ Initialize the Target events.
16
+
17
+ Args:
18
+ client ("Client"): The parent CDP client instance.
19
+ """
20
+ self.client = client
21
+
22
+ def on_attached_to_target(self, callback: Callable[[attachedToTargetEvent,Optional[str]], None]=None) -> None:
23
+ """
24
+ Issued when attached to target because of auto-attach or `attachToTarget` command.
25
+ Args:
26
+ callback (callable, optional): Function called when the event is fired.
27
+ The callback receives (params: attachedToTargetEvent, session_id: Optional[str]).
28
+ """
29
+ self.client.on('Target.attachedToTarget', callback)
30
+ def on_detached_from_target(self, callback: Callable[[detachedFromTargetEvent,Optional[str]], None]=None) -> None:
31
+ """
32
+ Issued when detached from target for any reason (including `detachFromTarget` command). Can be issued multiple times per target if multiple sessions have been attached to it.
33
+ Args:
34
+ callback (callable, optional): Function called when the event is fired.
35
+ The callback receives (params: detachedFromTargetEvent, session_id: Optional[str]).
36
+ """
37
+ self.client.on('Target.detachedFromTarget', callback)
38
+ def on_received_message_from_target(self, callback: Callable[[receivedMessageFromTargetEvent,Optional[str]], None]=None) -> None:
39
+ """
40
+ Notifies about a new protocol message received from the session (as reported in `attachedToTarget` event).
41
+ Args:
42
+ callback (callable, optional): Function called when the event is fired.
43
+ The callback receives (params: receivedMessageFromTargetEvent, session_id: Optional[str]).
44
+ """
45
+ self.client.on('Target.receivedMessageFromTarget', callback)
46
+ def on_target_created(self, callback: Callable[[targetCreatedEvent,Optional[str]], None]=None) -> None:
47
+ """
48
+ Issued when a possible inspection target is created.
49
+ Args:
50
+ callback (callable, optional): Function called when the event is fired.
51
+ The callback receives (params: targetCreatedEvent, session_id: Optional[str]).
52
+ """
53
+ self.client.on('Target.targetCreated', callback)
54
+ def on_target_destroyed(self, callback: Callable[[targetDestroyedEvent,Optional[str]], None]=None) -> None:
55
+ """
56
+ Issued when a target is destroyed.
57
+ Args:
58
+ callback (callable, optional): Function called when the event is fired.
59
+ The callback receives (params: targetDestroyedEvent, session_id: Optional[str]).
60
+ """
61
+ self.client.on('Target.targetDestroyed', callback)
62
+ def on_target_crashed(self, callback: Callable[[targetCrashedEvent,Optional[str]], None]=None) -> None:
63
+ """
64
+ Issued when a target has crashed.
65
+ Args:
66
+ callback (callable, optional): Function called when the event is fired.
67
+ The callback receives (params: targetCrashedEvent, session_id: Optional[str]).
68
+ """
69
+ self.client.on('Target.targetCrashed', callback)
70
+ def on_target_info_changed(self, callback: Callable[[targetInfoChangedEvent,Optional[str]], None]=None) -> None:
71
+ """
72
+ Issued when some information about a target has changed. This only happens between `targetCreated` and `targetDestroyed`.
73
+ Args:
74
+ callback (callable, optional): Function called when the event is fired.
75
+ The callback receives (params: targetInfoChangedEvent, session_id: Optional[str]).
76
+ """
77
+ self.client.on('Target.targetInfoChanged', callback)
@@ -0,0 +1,38 @@
1
+ """CDP Target Events"""
2
+
3
+ from typing import TypedDict, NotRequired, Required, Literal, Any, Dict, Union, Optional, List, Set, Tuple
4
+
5
+ from typing import TYPE_CHECKING
6
+ if TYPE_CHECKING:
7
+ from cdp.protocol.target.types import SessionID
8
+ from cdp.protocol.target.types import TargetID
9
+ from cdp.protocol.target.types import TargetInfo
10
+
11
+ class attachedToTargetEvent(TypedDict, total=True):
12
+ sessionId: 'SessionID'
13
+ """Identifier assigned to the session used to send/receive messages."""
14
+ targetInfo: 'TargetInfo'
15
+ waitingForDebugger: 'bool'
16
+ class detachedFromTargetEvent(TypedDict, total=True):
17
+ sessionId: 'SessionID'
18
+ """Detached session identifier."""
19
+ targetId: NotRequired['TargetID']
20
+ """Deprecated."""
21
+ class receivedMessageFromTargetEvent(TypedDict, total=True):
22
+ sessionId: 'SessionID'
23
+ """Identifier of a session which sends a message."""
24
+ message: 'str'
25
+ targetId: NotRequired['TargetID']
26
+ """Deprecated."""
27
+ class targetCreatedEvent(TypedDict, total=True):
28
+ targetInfo: 'TargetInfo'
29
+ class targetDestroyedEvent(TypedDict, total=True):
30
+ targetId: 'TargetID'
31
+ class targetCrashedEvent(TypedDict, total=True):
32
+ targetId: 'TargetID'
33
+ status: 'str'
34
+ """Termination status type."""
35
+ errorCode: 'int'
36
+ """Termination error code."""
37
+ class targetInfoChangedEvent(TypedDict, total=True):
38
+ targetInfo: 'TargetInfo'
File without changes