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,29 @@
1
+ """CDP Input 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 InputEvents:
10
+ """
11
+ Events for the Input domain.
12
+ """
13
+ def __init__(self, client: "Client"):
14
+ """
15
+ Initialize the Input events.
16
+
17
+ Args:
18
+ client ("Client"): The parent CDP client instance.
19
+ """
20
+ self.client = client
21
+
22
+ def on_drag_intercepted(self, callback: Callable[[dragInterceptedEvent,Optional[str]], None]=None) -> None:
23
+ """
24
+ Emitted only when `Input.setInterceptDrags` is enabled. Use this data with `Input.dispatchDragEvent` to restore normal drag and drop behavior.
25
+ Args:
26
+ callback (callable, optional): Function called when the event is fired.
27
+ The callback receives (params: dragInterceptedEvent, session_id: Optional[str]).
28
+ """
29
+ self.client.on('Input.dragIntercepted', callback)
@@ -0,0 +1,10 @@
1
+ """CDP Input 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.input.types import DragData
8
+
9
+ class dragInterceptedEvent(TypedDict, total=True):
10
+ data: 'DragData'
File without changes
@@ -0,0 +1,164 @@
1
+ """CDP Input 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 InputMethods:
10
+ """
11
+ Methods for the Input domain.
12
+ """
13
+ def __init__(self, client: "Client"):
14
+ """
15
+ Initialize the Input methods.
16
+
17
+ Args:
18
+ client ("Client"): The parent CDP client instance.
19
+ """
20
+ self.client = client
21
+
22
+ async def dispatch_drag_event(self, params: Optional[dispatchDragEventParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
23
+ """
24
+ Dispatches a drag event into the page.
25
+ Args:
26
+ params (dispatchDragEventParameters, optional): Parameters for the dispatchDragEvent method.
27
+ session_id (str, optional): Target session ID for flat protocol usage.
28
+
29
+ Returns:
30
+ Dict[str, Any]: The result of the dispatchDragEvent call.
31
+ """
32
+ return await self.client.send(method="Input.dispatchDragEvent", params=params,session_id=session_id)
33
+ async def dispatch_key_event(self, params: Optional[dispatchKeyEventParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
34
+ """
35
+ Dispatches a key event to the page.
36
+ Args:
37
+ params (dispatchKeyEventParameters, optional): Parameters for the dispatchKeyEvent method.
38
+ session_id (str, optional): Target session ID for flat protocol usage.
39
+
40
+ Returns:
41
+ Dict[str, Any]: The result of the dispatchKeyEvent call.
42
+ """
43
+ return await self.client.send(method="Input.dispatchKeyEvent", params=params,session_id=session_id)
44
+ async def insert_text(self, params: Optional[insertTextParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
45
+ """
46
+ This method emulates inserting text that doesn't come from a key press, for example an emoji keyboard or an IME.
47
+ Args:
48
+ params (insertTextParameters, optional): Parameters for the insertText method.
49
+ session_id (str, optional): Target session ID for flat protocol usage.
50
+
51
+ Returns:
52
+ Dict[str, Any]: The result of the insertText call.
53
+ """
54
+ return await self.client.send(method="Input.insertText", params=params,session_id=session_id)
55
+ async def ime_set_composition(self, params: Optional[imeSetCompositionParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
56
+ """
57
+ This method sets the current candidate text for IME. Use imeCommitComposition to commit the final text. Use imeSetComposition with empty string as text to cancel composition.
58
+ Args:
59
+ params (imeSetCompositionParameters, optional): Parameters for the imeSetComposition method.
60
+ session_id (str, optional): Target session ID for flat protocol usage.
61
+
62
+ Returns:
63
+ Dict[str, Any]: The result of the imeSetComposition call.
64
+ """
65
+ return await self.client.send(method="Input.imeSetComposition", params=params,session_id=session_id)
66
+ async def dispatch_mouse_event(self, params: Optional[dispatchMouseEventParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
67
+ """
68
+ Dispatches a mouse event to the page.
69
+ Args:
70
+ params (dispatchMouseEventParameters, optional): Parameters for the dispatchMouseEvent method.
71
+ session_id (str, optional): Target session ID for flat protocol usage.
72
+
73
+ Returns:
74
+ Dict[str, Any]: The result of the dispatchMouseEvent call.
75
+ """
76
+ return await self.client.send(method="Input.dispatchMouseEvent", params=params,session_id=session_id)
77
+ async def dispatch_touch_event(self, params: Optional[dispatchTouchEventParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
78
+ """
79
+ Dispatches a touch event to the page.
80
+ Args:
81
+ params (dispatchTouchEventParameters, optional): Parameters for the dispatchTouchEvent method.
82
+ session_id (str, optional): Target session ID for flat protocol usage.
83
+
84
+ Returns:
85
+ Dict[str, Any]: The result of the dispatchTouchEvent call.
86
+ """
87
+ return await self.client.send(method="Input.dispatchTouchEvent", params=params,session_id=session_id)
88
+ async def cancel_dragging(self, params: None=None,session_id: Optional[str] = None) -> Dict[str, Any]:
89
+ """
90
+ Cancels any active dragging in the page.
91
+ Args:
92
+ params (None, optional): Parameters for the cancelDragging method.
93
+ session_id (str, optional): Target session ID for flat protocol usage.
94
+
95
+ Returns:
96
+ Dict[str, Any]: The result of the cancelDragging call.
97
+ """
98
+ return await self.client.send(method="Input.cancelDragging", params=params,session_id=session_id)
99
+ async def emulate_touch_from_mouse_event(self, params: Optional[emulateTouchFromMouseEventParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
100
+ """
101
+ Emulates touch event from the mouse event parameters.
102
+ Args:
103
+ params (emulateTouchFromMouseEventParameters, optional): Parameters for the emulateTouchFromMouseEvent method.
104
+ session_id (str, optional): Target session ID for flat protocol usage.
105
+
106
+ Returns:
107
+ Dict[str, Any]: The result of the emulateTouchFromMouseEvent call.
108
+ """
109
+ return await self.client.send(method="Input.emulateTouchFromMouseEvent", params=params,session_id=session_id)
110
+ async def set_ignore_input_events(self, params: Optional[setIgnoreInputEventsParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
111
+ """
112
+ Ignores input events (useful while auditing page).
113
+ Args:
114
+ params (setIgnoreInputEventsParameters, optional): Parameters for the setIgnoreInputEvents method.
115
+ session_id (str, optional): Target session ID for flat protocol usage.
116
+
117
+ Returns:
118
+ Dict[str, Any]: The result of the setIgnoreInputEvents call.
119
+ """
120
+ return await self.client.send(method="Input.setIgnoreInputEvents", params=params,session_id=session_id)
121
+ async def set_intercept_drags(self, params: Optional[setInterceptDragsParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
122
+ """
123
+ Prevents default drag and drop behavior and instead emits `Input.dragIntercepted` events. Drag and drop behavior can be directly controlled via `Input.dispatchDragEvent`.
124
+ Args:
125
+ params (setInterceptDragsParameters, optional): Parameters for the setInterceptDrags method.
126
+ session_id (str, optional): Target session ID for flat protocol usage.
127
+
128
+ Returns:
129
+ Dict[str, Any]: The result of the setInterceptDrags call.
130
+ """
131
+ return await self.client.send(method="Input.setInterceptDrags", params=params,session_id=session_id)
132
+ async def synthesize_pinch_gesture(self, params: Optional[synthesizePinchGestureParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
133
+ """
134
+ Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
135
+ Args:
136
+ params (synthesizePinchGestureParameters, optional): Parameters for the synthesizePinchGesture method.
137
+ session_id (str, optional): Target session ID for flat protocol usage.
138
+
139
+ Returns:
140
+ Dict[str, Any]: The result of the synthesizePinchGesture call.
141
+ """
142
+ return await self.client.send(method="Input.synthesizePinchGesture", params=params,session_id=session_id)
143
+ async def synthesize_scroll_gesture(self, params: Optional[synthesizeScrollGestureParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
144
+ """
145
+ Synthesizes a scroll gesture over a time period by issuing appropriate touch events.
146
+ Args:
147
+ params (synthesizeScrollGestureParameters, optional): Parameters for the synthesizeScrollGesture method.
148
+ session_id (str, optional): Target session ID for flat protocol usage.
149
+
150
+ Returns:
151
+ Dict[str, Any]: The result of the synthesizeScrollGesture call.
152
+ """
153
+ return await self.client.send(method="Input.synthesizeScrollGesture", params=params,session_id=session_id)
154
+ async def synthesize_tap_gesture(self, params: Optional[synthesizeTapGestureParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
155
+ """
156
+ Synthesizes a tap gesture over a time period by issuing appropriate touch events.
157
+ Args:
158
+ params (synthesizeTapGestureParameters, optional): Parameters for the synthesizeTapGesture method.
159
+ session_id (str, optional): Target session ID for flat protocol usage.
160
+
161
+ Returns:
162
+ Dict[str, Any]: The result of the synthesizeTapGesture call.
163
+ """
164
+ return await self.client.send(method="Input.synthesizeTapGesture", params=params,session_id=session_id)
@@ -0,0 +1,181 @@
1
+ """CDP Input 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.input.types import DragData
8
+ from cdp.protocol.input.types import GestureSourceType
9
+ from cdp.protocol.input.types import MouseButton
10
+ from cdp.protocol.input.types import TimeSinceEpoch
11
+ from cdp.protocol.input.types import TouchPoint
12
+
13
+ class dispatchDragEventParameters(TypedDict, total=True):
14
+ type: 'Literal["dragEnter", "dragOver", "drop", "dragCancel"]'
15
+ """Type of the drag event."""
16
+ x: 'float'
17
+ """X coordinate of the event relative to the main frame's viewport in CSS pixels."""
18
+ y: 'float'
19
+ """Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."""
20
+ data: 'DragData'
21
+ modifiers: NotRequired['int']
22
+ """Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)."""
23
+ class dispatchKeyEventParameters(TypedDict, total=True):
24
+ type: 'Literal["keyDown", "keyUp", "rawKeyDown", "char"]'
25
+ """Type of the key event."""
26
+ modifiers: NotRequired['int']
27
+ """Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)."""
28
+ timestamp: NotRequired['TimeSinceEpoch']
29
+ """Time at which the event occurred."""
30
+ text: NotRequired['str']
31
+ """Text as generated by processing a virtual key code with a keyboard layout. Not needed for for keyUp and rawKeyDown events (default: "")"""
32
+ unmodifiedText: NotRequired['str']
33
+ """Text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: "")."""
34
+ keyIdentifier: NotRequired['str']
35
+ """Unique key identifier (e.g., 'U+0041') (default: "")."""
36
+ code: NotRequired['str']
37
+ """Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: "")."""
38
+ key: NotRequired['str']
39
+ """Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: "")."""
40
+ windowsVirtualKeyCode: NotRequired['int']
41
+ """Windows virtual key code (default: 0)."""
42
+ nativeVirtualKeyCode: NotRequired['int']
43
+ """Native virtual key code (default: 0)."""
44
+ autoRepeat: NotRequired['bool']
45
+ """Whether the event was generated from auto repeat (default: false)."""
46
+ isKeypad: NotRequired['bool']
47
+ """Whether the event was generated from the keypad (default: false)."""
48
+ isSystemKey: NotRequired['bool']
49
+ """Whether the event was a system key event (default: false)."""
50
+ location: NotRequired['int']
51
+ """Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default: 0)."""
52
+ commands: NotRequired['List[str]']
53
+ """Editing commands to send with the key event (e.g., 'selectAll') (default: []). These are related to but not equal the command names used in document.execCommand and NSStandardKeyBindingResponding. See https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names."""
54
+ class insertTextParameters(TypedDict, total=True):
55
+ text: 'str'
56
+ """The text to insert."""
57
+ class imeSetCompositionParameters(TypedDict, total=True):
58
+ text: 'str'
59
+ """The text to insert"""
60
+ selectionStart: 'int'
61
+ """selection start"""
62
+ selectionEnd: 'int'
63
+ """selection end"""
64
+ replacementStart: NotRequired['int']
65
+ """replacement start"""
66
+ replacementEnd: NotRequired['int']
67
+ """replacement end"""
68
+ class dispatchMouseEventParameters(TypedDict, total=True):
69
+ type: 'Literal["mousePressed", "mouseReleased", "mouseMoved", "mouseWheel"]'
70
+ """Type of the mouse event."""
71
+ x: 'float'
72
+ """X coordinate of the event relative to the main frame's viewport in CSS pixels."""
73
+ y: 'float'
74
+ """Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."""
75
+ modifiers: NotRequired['int']
76
+ """Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)."""
77
+ timestamp: NotRequired['TimeSinceEpoch']
78
+ """Time at which the event occurred."""
79
+ button: NotRequired['MouseButton']
80
+ """Mouse button (default: "none")."""
81
+ buttons: NotRequired['int']
82
+ """A number indicating which buttons are pressed on the mouse when a mouse event is triggered. Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0."""
83
+ clickCount: NotRequired['int']
84
+ """Number of times the mouse button was clicked (default: 0)."""
85
+ force: NotRequired['float']
86
+ """The normalized pressure, which has a range of [0,1] (default: 0)."""
87
+ tangentialPressure: NotRequired['float']
88
+ """The normalized tangential pressure, which has a range of [-1,1] (default: 0)."""
89
+ tiltX: NotRequired['float']
90
+ """The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0)."""
91
+ tiltY: NotRequired['float']
92
+ """The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0)."""
93
+ twist: NotRequired['int']
94
+ """The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0)."""
95
+ deltaX: NotRequired['float']
96
+ """X delta in CSS pixels for mouse wheel event (default: 0)."""
97
+ deltaY: NotRequired['float']
98
+ """Y delta in CSS pixels for mouse wheel event (default: 0)."""
99
+ pointerType: NotRequired['Literal["mouse", "pen"]']
100
+ """Pointer type (default: "mouse")."""
101
+ class dispatchTouchEventParameters(TypedDict, total=True):
102
+ type: 'Literal["touchStart", "touchEnd", "touchMove", "touchCancel"]'
103
+ """Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one."""
104
+ touchPoints: 'List[TouchPoint]'
105
+ """Active touch points on the touch device. One event per any changed point (compared to previous touch event in a sequence) is generated, emulating pressing/moving/releasing points one by one."""
106
+ modifiers: NotRequired['int']
107
+ """Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)."""
108
+ timestamp: NotRequired['TimeSinceEpoch']
109
+ """Time at which the event occurred."""
110
+
111
+ class emulateTouchFromMouseEventParameters(TypedDict, total=True):
112
+ type: 'Literal["mousePressed", "mouseReleased", "mouseMoved", "mouseWheel"]'
113
+ """Type of the mouse event."""
114
+ x: 'int'
115
+ """X coordinate of the mouse pointer in DIP."""
116
+ y: 'int'
117
+ """Y coordinate of the mouse pointer in DIP."""
118
+ button: 'MouseButton'
119
+ """Mouse button. Only "none", "left", "right" are supported."""
120
+ timestamp: NotRequired['TimeSinceEpoch']
121
+ """Time at which the event occurred (default: current time)."""
122
+ deltaX: NotRequired['float']
123
+ """X delta in DIP for mouse wheel event (default: 0)."""
124
+ deltaY: NotRequired['float']
125
+ """Y delta in DIP for mouse wheel event (default: 0)."""
126
+ modifiers: NotRequired['int']
127
+ """Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)."""
128
+ clickCount: NotRequired['int']
129
+ """Number of times the mouse button was clicked (default: 0)."""
130
+ class setIgnoreInputEventsParameters(TypedDict, total=True):
131
+ ignore: 'bool'
132
+ """Ignores input events processing when set to true."""
133
+ class setInterceptDragsParameters(TypedDict, total=True):
134
+ enabled: 'bool'
135
+ class synthesizePinchGestureParameters(TypedDict, total=True):
136
+ x: 'float'
137
+ """X coordinate of the start of the gesture in CSS pixels."""
138
+ y: 'float'
139
+ """Y coordinate of the start of the gesture in CSS pixels."""
140
+ scaleFactor: 'float'
141
+ """Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out)."""
142
+ relativeSpeed: NotRequired['int']
143
+ """Relative pointer speed in pixels per second (default: 800)."""
144
+ gestureSourceType: NotRequired['GestureSourceType']
145
+ """Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type)."""
146
+ class synthesizeScrollGestureParameters(TypedDict, total=True):
147
+ x: 'float'
148
+ """X coordinate of the start of the gesture in CSS pixels."""
149
+ y: 'float'
150
+ """Y coordinate of the start of the gesture in CSS pixels."""
151
+ xDistance: NotRequired['float']
152
+ """The distance to scroll along the X axis (positive to scroll left)."""
153
+ yDistance: NotRequired['float']
154
+ """The distance to scroll along the Y axis (positive to scroll up)."""
155
+ xOverscroll: NotRequired['float']
156
+ """The number of additional pixels to scroll back along the X axis, in addition to the given distance."""
157
+ yOverscroll: NotRequired['float']
158
+ """The number of additional pixels to scroll back along the Y axis, in addition to the given distance."""
159
+ preventFling: NotRequired['bool']
160
+ """Prevent fling (default: true)."""
161
+ speed: NotRequired['int']
162
+ """Swipe speed in pixels per second (default: 800)."""
163
+ gestureSourceType: NotRequired['GestureSourceType']
164
+ """Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type)."""
165
+ repeatCount: NotRequired['int']
166
+ """The number of times to repeat the gesture (default: 0)."""
167
+ repeatDelayMs: NotRequired['int']
168
+ """The number of milliseconds delay between each repeat. (default: 250)."""
169
+ interactionMarkerName: NotRequired['str']
170
+ """The name of the interaction markers to generate, if not empty (default: "")."""
171
+ class synthesizeTapGestureParameters(TypedDict, total=True):
172
+ x: 'float'
173
+ """X coordinate of the start of the gesture in CSS pixels."""
174
+ y: 'float'
175
+ """Y coordinate of the start of the gesture in CSS pixels."""
176
+ duration: NotRequired['int']
177
+ """Duration between touchdown and touchup events in ms (default: 50)."""
178
+ tapCount: NotRequired['int']
179
+ """Number of times to perform the tap (e.g. 2 for double tap, default: 1)."""
180
+ gestureSourceType: NotRequired['GestureSourceType']
181
+ """Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type)."""
@@ -0,0 +1,21 @@
1
+ """CDP Input Domain"""
2
+ from typing import TYPE_CHECKING
3
+ from .methods.service import InputMethods
4
+ from .events.service import InputEvents
5
+
6
+ if TYPE_CHECKING:
7
+ from ...service import Client
8
+
9
+ class Input(InputMethods, InputEvents):
10
+ """
11
+ Access the Input domain.
12
+ """
13
+ def __init__(self, client: "Client"):
14
+ """
15
+ Initialize the Input domain.
16
+
17
+ Args:
18
+ client ("Client"): The parent CDP client instance.
19
+ """
20
+ InputMethods.__init__(self, client)
21
+ InputEvents.__init__(self, client)
@@ -0,0 +1,46 @@
1
+ """CDP Input Types"""
2
+
3
+ from typing import TypedDict, NotRequired, Required, Literal, Any, Dict, Union, Optional, List, Set, Tuple
4
+
5
+ class TouchPoint(TypedDict, total=True):
6
+ x: 'float'
7
+ """X coordinate of the event relative to the main frame's viewport in CSS pixels."""
8
+ y: 'float'
9
+ """Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."""
10
+ radiusX: NotRequired['float']
11
+ """X radius of the touch area (default: 1.0)."""
12
+ radiusY: NotRequired['float']
13
+ """Y radius of the touch area (default: 1.0)."""
14
+ rotationAngle: NotRequired['float']
15
+ """Rotation angle (default: 0.0)."""
16
+ force: NotRequired['float']
17
+ """Force (default: 1.0)."""
18
+ tangentialPressure: NotRequired['float']
19
+ """The normalized tangential pressure, which has a range of [-1,1] (default: 0)."""
20
+ tiltX: NotRequired['float']
21
+ """The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0)"""
22
+ tiltY: NotRequired['float']
23
+ """The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0)."""
24
+ twist: NotRequired['int']
25
+ """The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0)."""
26
+ id: NotRequired['float']
27
+ """Identifier used to track touch sources between events, must be unique within an event."""
28
+ GestureSourceType = Literal['default','touch','mouse']
29
+ MouseButton = Literal['none','left','middle','right','back','forward']
30
+ TimeSinceEpoch = float
31
+ """UTC time in seconds, counted from January 1, 1970."""
32
+ class DragDataItem(TypedDict, total=True):
33
+ mimeType: 'str'
34
+ """Mime type of the dragged data."""
35
+ data: 'str'
36
+ """Depending of the value of mimeType, it contains the dragged link, text, HTML markup or any other data."""
37
+ title: NotRequired['str']
38
+ """Title associated with a link. Only valid when mimeType == "text/uri-list"."""
39
+ baseURL: NotRequired['str']
40
+ """Stores the base URL for the contained markup. Only valid when mimeType == "text/html"."""
41
+ class DragData(TypedDict, total=True):
42
+ items: 'List[DragDataItem]'
43
+ dragOperationsMask: 'int'
44
+ """Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16"""
45
+ files: NotRequired['List[str]']
46
+ """List of filenames that should be included when dropping"""
File without changes
File without changes
@@ -0,0 +1,53 @@
1
+ """CDP Inspector 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 InspectorEvents:
10
+ """
11
+ Events for the Inspector domain.
12
+ """
13
+ def __init__(self, client: "Client"):
14
+ """
15
+ Initialize the Inspector events.
16
+
17
+ Args:
18
+ client ("Client"): The parent CDP client instance.
19
+ """
20
+ self.client = client
21
+
22
+ def on_detached(self, callback: Callable[[detachedEvent,Optional[str]], None]=None) -> None:
23
+ """
24
+ Fired when remote debugging connection is about to be terminated. Contains detach reason.
25
+ Args:
26
+ callback (callable, optional): Function called when the event is fired.
27
+ The callback receives (params: detachedEvent, session_id: Optional[str]).
28
+ """
29
+ self.client.on('Inspector.detached', callback)
30
+ def on_target_crashed(self, callback: Callable[[targetCrashedEvent,Optional[str]], None]=None) -> None:
31
+ """
32
+ Fired when debugging target has crashed
33
+ Args:
34
+ callback (callable, optional): Function called when the event is fired.
35
+ The callback receives (params: targetCrashedEvent, session_id: Optional[str]).
36
+ """
37
+ self.client.on('Inspector.targetCrashed', callback)
38
+ def on_target_reloaded_after_crash(self, callback: Callable[[targetReloadedAfterCrashEvent,Optional[str]], None]=None) -> None:
39
+ """
40
+ Fired when debugging target has reloaded after crash
41
+ Args:
42
+ callback (callable, optional): Function called when the event is fired.
43
+ The callback receives (params: targetReloadedAfterCrashEvent, session_id: Optional[str]).
44
+ """
45
+ self.client.on('Inspector.targetReloadedAfterCrash', callback)
46
+ def on_worker_script_loaded(self, callback: Callable[[workerScriptLoadedEvent,Optional[str]], None]=None) -> None:
47
+ """
48
+ Fired on worker targets when main worker script and any imported scripts have been evaluated.
49
+ Args:
50
+ callback (callable, optional): Function called when the event is fired.
51
+ The callback receives (params: workerScriptLoadedEvent, session_id: Optional[str]).
52
+ """
53
+ self.client.on('Inspector.workerScriptLoaded', callback)
@@ -0,0 +1,13 @@
1
+ """CDP Inspector Events"""
2
+
3
+ from typing import TypedDict, NotRequired, Required, Literal, Any, Dict, Union, Optional, List, Set, Tuple
4
+
5
+ class detachedEvent(TypedDict, total=True):
6
+ reason: 'str'
7
+ """The reason why connection has been terminated."""
8
+ class targetCrashedEvent(TypedDict, total=True):
9
+ pass
10
+ class targetReloadedAfterCrashEvent(TypedDict, total=True):
11
+ pass
12
+ class workerScriptLoadedEvent(TypedDict, total=True):
13
+ pass
File without changes
@@ -0,0 +1,43 @@
1
+ """CDP Inspector 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 InspectorMethods:
10
+ """
11
+ Methods for the Inspector domain.
12
+ """
13
+ def __init__(self, client: "Client"):
14
+ """
15
+ Initialize the Inspector methods.
16
+
17
+ Args:
18
+ client ("Client"): The parent CDP client instance.
19
+ """
20
+ self.client = client
21
+
22
+ async def disable(self, params: None=None,session_id: Optional[str] = None) -> Dict[str, Any]:
23
+ """
24
+ Disables inspector domain notifications.
25
+ Args:
26
+ params (None, optional): Parameters for the disable method.
27
+ session_id (str, optional): Target session ID for flat protocol usage.
28
+
29
+ Returns:
30
+ Dict[str, Any]: The result of the disable call.
31
+ """
32
+ return await self.client.send(method="Inspector.disable", params=params,session_id=session_id)
33
+ async def enable(self, params: None=None,session_id: Optional[str] = None) -> Dict[str, Any]:
34
+ """
35
+ Enables inspector domain notifications.
36
+ Args:
37
+ params (None, optional): Parameters for the enable method.
38
+ session_id (str, optional): Target session ID for flat protocol usage.
39
+
40
+ Returns:
41
+ Dict[str, Any]: The result of the enable call.
42
+ """
43
+ return await self.client.send(method="Inspector.enable", params=params,session_id=session_id)
@@ -0,0 +1,3 @@
1
+ """CDP Inspector Methods Types"""
2
+
3
+ from typing import TypedDict, NotRequired, Required, Literal, Any, Dict, Union, Optional, List, Set, Tuple
@@ -0,0 +1,21 @@
1
+ """CDP Inspector Domain"""
2
+ from typing import TYPE_CHECKING
3
+ from .methods.service import InspectorMethods
4
+ from .events.service import InspectorEvents
5
+
6
+ if TYPE_CHECKING:
7
+ from ...service import Client
8
+
9
+ class Inspector(InspectorMethods, InspectorEvents):
10
+ """
11
+ Access the Inspector domain.
12
+ """
13
+ def __init__(self, client: "Client"):
14
+ """
15
+ Initialize the Inspector domain.
16
+
17
+ Args:
18
+ client ("Client"): The parent CDP client instance.
19
+ """
20
+ InspectorMethods.__init__(self, client)
21
+ InspectorEvents.__init__(self, client)
@@ -0,0 +1,3 @@
1
+ """CDP Inspector Types"""
2
+
3
+ from typing import TypedDict, NotRequired, Required, Literal, Any, Dict, Union, Optional, List, Set, Tuple
File without changes
File without changes
@@ -0,0 +1,20 @@
1
+ """CDP IO 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 IOEvents:
10
+ """
11
+ Events for the IO domain.
12
+ """
13
+ def __init__(self, client: "Client"):
14
+ """
15
+ Initialize the IO events.
16
+
17
+ Args:
18
+ client ("Client"): The parent CDP client instance.
19
+ """
20
+ self.client = client
@@ -0,0 +1,3 @@
1
+ """CDP IO Events"""
2
+
3
+ from typing import TypedDict, NotRequired, Required, Literal, Any, Dict, Union, Optional, List, Set, Tuple
File without changes