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,362 @@
1
+ """CDP Debugger 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 DebuggerMethods:
10
+ """
11
+ Methods for the Debugger domain.
12
+ """
13
+ def __init__(self, client: "Client"):
14
+ """
15
+ Initialize the Debugger methods.
16
+
17
+ Args:
18
+ client ("Client"): The parent CDP client instance.
19
+ """
20
+ self.client = client
21
+
22
+ async def continue_to_location(self, params: Optional[continueToLocationParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
23
+ """
24
+ Continues execution until specific location is reached.
25
+ Args:
26
+ params (continueToLocationParameters, optional): Parameters for the continueToLocation method.
27
+ session_id (str, optional): Target session ID for flat protocol usage.
28
+
29
+ Returns:
30
+ Dict[str, Any]: The result of the continueToLocation call.
31
+ """
32
+ return await self.client.send(method="Debugger.continueToLocation", params=params,session_id=session_id)
33
+ async def disable(self, params: None=None,session_id: Optional[str] = None) -> Dict[str, Any]:
34
+ """
35
+ Disables debugger for given page.
36
+ Args:
37
+ params (None, optional): Parameters for the disable method.
38
+ session_id (str, optional): Target session ID for flat protocol usage.
39
+
40
+ Returns:
41
+ Dict[str, Any]: The result of the disable call.
42
+ """
43
+ return await self.client.send(method="Debugger.disable", params=params,session_id=session_id)
44
+ async def enable(self, params: Optional[enableParameters]=None,session_id: Optional[str] = None) -> enableReturns:
45
+ """
46
+ Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
47
+ Args:
48
+ params (enableParameters, optional): Parameters for the enable method.
49
+ session_id (str, optional): Target session ID for flat protocol usage.
50
+
51
+ Returns:
52
+ enableReturns: The result of the enable call.
53
+ """
54
+ return await self.client.send(method="Debugger.enable", params=params,session_id=session_id)
55
+ async def evaluate_on_call_frame(self, params: Optional[evaluateOnCallFrameParameters]=None,session_id: Optional[str] = None) -> evaluateOnCallFrameReturns:
56
+ """
57
+ Evaluates expression on a given call frame.
58
+ Args:
59
+ params (evaluateOnCallFrameParameters, optional): Parameters for the evaluateOnCallFrame method.
60
+ session_id (str, optional): Target session ID for flat protocol usage.
61
+
62
+ Returns:
63
+ evaluateOnCallFrameReturns: The result of the evaluateOnCallFrame call.
64
+ """
65
+ return await self.client.send(method="Debugger.evaluateOnCallFrame", params=params,session_id=session_id)
66
+ async def get_possible_breakpoints(self, params: Optional[getPossibleBreakpointsParameters]=None,session_id: Optional[str] = None) -> getPossibleBreakpointsReturns:
67
+ """
68
+ Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
69
+ Args:
70
+ params (getPossibleBreakpointsParameters, optional): Parameters for the getPossibleBreakpoints method.
71
+ session_id (str, optional): Target session ID for flat protocol usage.
72
+
73
+ Returns:
74
+ getPossibleBreakpointsReturns: The result of the getPossibleBreakpoints call.
75
+ """
76
+ return await self.client.send(method="Debugger.getPossibleBreakpoints", params=params,session_id=session_id)
77
+ async def get_script_source(self, params: Optional[getScriptSourceParameters]=None,session_id: Optional[str] = None) -> getScriptSourceReturns:
78
+ """
79
+ Returns source for the script with given id.
80
+ Args:
81
+ params (getScriptSourceParameters, optional): Parameters for the getScriptSource method.
82
+ session_id (str, optional): Target session ID for flat protocol usage.
83
+
84
+ Returns:
85
+ getScriptSourceReturns: The result of the getScriptSource call.
86
+ """
87
+ return await self.client.send(method="Debugger.getScriptSource", params=params,session_id=session_id)
88
+ async def disassemble_wasm_module(self, params: Optional[disassembleWasmModuleParameters]=None,session_id: Optional[str] = None) -> disassembleWasmModuleReturns:
89
+ """
90
+ No description available for disassembleWasmModule.
91
+ Args:
92
+ params (disassembleWasmModuleParameters, optional): Parameters for the disassembleWasmModule method.
93
+ session_id (str, optional): Target session ID for flat protocol usage.
94
+
95
+ Returns:
96
+ disassembleWasmModuleReturns: The result of the disassembleWasmModule call.
97
+ """
98
+ return await self.client.send(method="Debugger.disassembleWasmModule", params=params,session_id=session_id)
99
+ async def next_wasm_disassembly_chunk(self, params: Optional[nextWasmDisassemblyChunkParameters]=None,session_id: Optional[str] = None) -> nextWasmDisassemblyChunkReturns:
100
+ """
101
+ Disassemble the next chunk of lines for the module corresponding to the stream. If disassembly is complete, this API will invalidate the streamId and return an empty chunk. Any subsequent calls for the now invalid stream will return errors.
102
+ Args:
103
+ params (nextWasmDisassemblyChunkParameters, optional): Parameters for the nextWasmDisassemblyChunk method.
104
+ session_id (str, optional): Target session ID for flat protocol usage.
105
+
106
+ Returns:
107
+ nextWasmDisassemblyChunkReturns: The result of the nextWasmDisassemblyChunk call.
108
+ """
109
+ return await self.client.send(method="Debugger.nextWasmDisassemblyChunk", params=params,session_id=session_id)
110
+ async def get_stack_trace(self, params: Optional[getStackTraceParameters]=None,session_id: Optional[str] = None) -> getStackTraceReturns:
111
+ """
112
+ Returns stack trace with given `stackTraceId`.
113
+ Args:
114
+ params (getStackTraceParameters, optional): Parameters for the getStackTrace method.
115
+ session_id (str, optional): Target session ID for flat protocol usage.
116
+
117
+ Returns:
118
+ getStackTraceReturns: The result of the getStackTrace call.
119
+ """
120
+ return await self.client.send(method="Debugger.getStackTrace", params=params,session_id=session_id)
121
+ async def pause(self, params: None=None,session_id: Optional[str] = None) -> Dict[str, Any]:
122
+ """
123
+ Stops on the next JavaScript statement.
124
+ Args:
125
+ params (None, optional): Parameters for the pause method.
126
+ session_id (str, optional): Target session ID for flat protocol usage.
127
+
128
+ Returns:
129
+ Dict[str, Any]: The result of the pause call.
130
+ """
131
+ return await self.client.send(method="Debugger.pause", params=params,session_id=session_id)
132
+ async def remove_breakpoint(self, params: Optional[removeBreakpointParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
133
+ """
134
+ Removes JavaScript breakpoint.
135
+ Args:
136
+ params (removeBreakpointParameters, optional): Parameters for the removeBreakpoint method.
137
+ session_id (str, optional): Target session ID for flat protocol usage.
138
+
139
+ Returns:
140
+ Dict[str, Any]: The result of the removeBreakpoint call.
141
+ """
142
+ return await self.client.send(method="Debugger.removeBreakpoint", params=params,session_id=session_id)
143
+ async def restart_frame(self, params: Optional[restartFrameParameters]=None,session_id: Optional[str] = None) -> restartFrameReturns:
144
+ """
145
+ Restarts particular call frame from the beginning. The old, deprecated behavior of `restartFrame` is to stay paused and allow further CDP commands after a restart was scheduled. This can cause problems with restarting, so we now continue execution immediatly after it has been scheduled until we reach the beginning of the restarted frame. To stay back-wards compatible, `restartFrame` now expects a `mode` parameter to be present. If the `mode` parameter is missing, `restartFrame` errors out. The various return values are deprecated and `callFrames` is always empty. Use the call frames from the `Debugger#paused` events instead, that fires once V8 pauses at the beginning of the restarted function.
146
+ Args:
147
+ params (restartFrameParameters, optional): Parameters for the restartFrame method.
148
+ session_id (str, optional): Target session ID for flat protocol usage.
149
+
150
+ Returns:
151
+ restartFrameReturns: The result of the restartFrame call.
152
+ """
153
+ return await self.client.send(method="Debugger.restartFrame", params=params,session_id=session_id)
154
+ async def resume(self, params: Optional[resumeParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
155
+ """
156
+ Resumes JavaScript execution.
157
+ Args:
158
+ params (resumeParameters, optional): Parameters for the resume method.
159
+ session_id (str, optional): Target session ID for flat protocol usage.
160
+
161
+ Returns:
162
+ Dict[str, Any]: The result of the resume call.
163
+ """
164
+ return await self.client.send(method="Debugger.resume", params=params,session_id=session_id)
165
+ async def search_in_content(self, params: Optional[searchInContentParameters]=None,session_id: Optional[str] = None) -> searchInContentReturns:
166
+ """
167
+ Searches for given string in script content.
168
+ Args:
169
+ params (searchInContentParameters, optional): Parameters for the searchInContent method.
170
+ session_id (str, optional): Target session ID for flat protocol usage.
171
+
172
+ Returns:
173
+ searchInContentReturns: The result of the searchInContent call.
174
+ """
175
+ return await self.client.send(method="Debugger.searchInContent", params=params,session_id=session_id)
176
+ async def set_async_call_stack_depth(self, params: Optional[setAsyncCallStackDepthParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
177
+ """
178
+ Enables or disables async call stacks tracking.
179
+ Args:
180
+ params (setAsyncCallStackDepthParameters, optional): Parameters for the setAsyncCallStackDepth method.
181
+ session_id (str, optional): Target session ID for flat protocol usage.
182
+
183
+ Returns:
184
+ Dict[str, Any]: The result of the setAsyncCallStackDepth call.
185
+ """
186
+ return await self.client.send(method="Debugger.setAsyncCallStackDepth", params=params,session_id=session_id)
187
+ async def set_blackbox_execution_contexts(self, params: Optional[setBlackboxExecutionContextsParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
188
+ """
189
+ Replace previous blackbox execution contexts with passed ones. Forces backend to skip stepping/pausing in scripts in these execution contexts. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
190
+ Args:
191
+ params (setBlackboxExecutionContextsParameters, optional): Parameters for the setBlackboxExecutionContexts method.
192
+ session_id (str, optional): Target session ID for flat protocol usage.
193
+
194
+ Returns:
195
+ Dict[str, Any]: The result of the setBlackboxExecutionContexts call.
196
+ """
197
+ return await self.client.send(method="Debugger.setBlackboxExecutionContexts", params=params,session_id=session_id)
198
+ async def set_blackbox_patterns(self, params: Optional[setBlackboxPatternsParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
199
+ """
200
+ Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
201
+ Args:
202
+ params (setBlackboxPatternsParameters, optional): Parameters for the setBlackboxPatterns method.
203
+ session_id (str, optional): Target session ID for flat protocol usage.
204
+
205
+ Returns:
206
+ Dict[str, Any]: The result of the setBlackboxPatterns call.
207
+ """
208
+ return await self.client.send(method="Debugger.setBlackboxPatterns", params=params,session_id=session_id)
209
+ async def set_blackboxed_ranges(self, params: Optional[setBlackboxedRangesParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
210
+ """
211
+ Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted.
212
+ Args:
213
+ params (setBlackboxedRangesParameters, optional): Parameters for the setBlackboxedRanges method.
214
+ session_id (str, optional): Target session ID for flat protocol usage.
215
+
216
+ Returns:
217
+ Dict[str, Any]: The result of the setBlackboxedRanges call.
218
+ """
219
+ return await self.client.send(method="Debugger.setBlackboxedRanges", params=params,session_id=session_id)
220
+ async def set_breakpoint(self, params: Optional[setBreakpointParameters]=None,session_id: Optional[str] = None) -> setBreakpointReturns:
221
+ """
222
+ Sets JavaScript breakpoint at a given location.
223
+ Args:
224
+ params (setBreakpointParameters, optional): Parameters for the setBreakpoint method.
225
+ session_id (str, optional): Target session ID for flat protocol usage.
226
+
227
+ Returns:
228
+ setBreakpointReturns: The result of the setBreakpoint call.
229
+ """
230
+ return await self.client.send(method="Debugger.setBreakpoint", params=params,session_id=session_id)
231
+ async def set_instrumentation_breakpoint(self, params: Optional[setInstrumentationBreakpointParameters]=None,session_id: Optional[str] = None) -> setInstrumentationBreakpointReturns:
232
+ """
233
+ Sets instrumentation breakpoint.
234
+ Args:
235
+ params (setInstrumentationBreakpointParameters, optional): Parameters for the setInstrumentationBreakpoint method.
236
+ session_id (str, optional): Target session ID for flat protocol usage.
237
+
238
+ Returns:
239
+ setInstrumentationBreakpointReturns: The result of the setInstrumentationBreakpoint call.
240
+ """
241
+ return await self.client.send(method="Debugger.setInstrumentationBreakpoint", params=params,session_id=session_id)
242
+ async def set_breakpoint_by_url(self, params: Optional[setBreakpointByUrlParameters]=None,session_id: Optional[str] = None) -> setBreakpointByUrlReturns:
243
+ """
244
+ Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in `locations` property. Further matching script parsing will result in subsequent `breakpointResolved` events issued. This logical breakpoint will survive page reloads.
245
+ Args:
246
+ params (setBreakpointByUrlParameters, optional): Parameters for the setBreakpointByUrl method.
247
+ session_id (str, optional): Target session ID for flat protocol usage.
248
+
249
+ Returns:
250
+ setBreakpointByUrlReturns: The result of the setBreakpointByUrl call.
251
+ """
252
+ return await self.client.send(method="Debugger.setBreakpointByUrl", params=params,session_id=session_id)
253
+ async def set_breakpoint_on_function_call(self, params: Optional[setBreakpointOnFunctionCallParameters]=None,session_id: Optional[str] = None) -> setBreakpointOnFunctionCallReturns:
254
+ """
255
+ Sets JavaScript breakpoint before each call to the given function. If another function was created from the same source as a given one, calling it will also trigger the breakpoint.
256
+ Args:
257
+ params (setBreakpointOnFunctionCallParameters, optional): Parameters for the setBreakpointOnFunctionCall method.
258
+ session_id (str, optional): Target session ID for flat protocol usage.
259
+
260
+ Returns:
261
+ setBreakpointOnFunctionCallReturns: The result of the setBreakpointOnFunctionCall call.
262
+ """
263
+ return await self.client.send(method="Debugger.setBreakpointOnFunctionCall", params=params,session_id=session_id)
264
+ async def set_breakpoints_active(self, params: Optional[setBreakpointsActiveParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
265
+ """
266
+ Activates / deactivates all breakpoints on the page.
267
+ Args:
268
+ params (setBreakpointsActiveParameters, optional): Parameters for the setBreakpointsActive method.
269
+ session_id (str, optional): Target session ID for flat protocol usage.
270
+
271
+ Returns:
272
+ Dict[str, Any]: The result of the setBreakpointsActive call.
273
+ """
274
+ return await self.client.send(method="Debugger.setBreakpointsActive", params=params,session_id=session_id)
275
+ async def set_pause_on_exceptions(self, params: Optional[setPauseOnExceptionsParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
276
+ """
277
+ Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions, or caught exceptions, no exceptions. Initial pause on exceptions state is `none`.
278
+ Args:
279
+ params (setPauseOnExceptionsParameters, optional): Parameters for the setPauseOnExceptions method.
280
+ session_id (str, optional): Target session ID for flat protocol usage.
281
+
282
+ Returns:
283
+ Dict[str, Any]: The result of the setPauseOnExceptions call.
284
+ """
285
+ return await self.client.send(method="Debugger.setPauseOnExceptions", params=params,session_id=session_id)
286
+ async def set_return_value(self, params: Optional[setReturnValueParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
287
+ """
288
+ Changes return value in top frame. Available only at return break position.
289
+ Args:
290
+ params (setReturnValueParameters, optional): Parameters for the setReturnValue method.
291
+ session_id (str, optional): Target session ID for flat protocol usage.
292
+
293
+ Returns:
294
+ Dict[str, Any]: The result of the setReturnValue call.
295
+ """
296
+ return await self.client.send(method="Debugger.setReturnValue", params=params,session_id=session_id)
297
+ async def set_script_source(self, params: Optional[setScriptSourceParameters]=None,session_id: Optional[str] = None) -> setScriptSourceReturns:
298
+ """
299
+ Edits JavaScript source live. In general, functions that are currently on the stack can not be edited with a single exception: If the edited function is the top-most stack frame and that is the only activation of that function on the stack. In this case the live edit will be successful and a `Debugger.restartFrame` for the top-most function is automatically triggered.
300
+ Args:
301
+ params (setScriptSourceParameters, optional): Parameters for the setScriptSource method.
302
+ session_id (str, optional): Target session ID for flat protocol usage.
303
+
304
+ Returns:
305
+ setScriptSourceReturns: The result of the setScriptSource call.
306
+ """
307
+ return await self.client.send(method="Debugger.setScriptSource", params=params,session_id=session_id)
308
+ async def set_skip_all_pauses(self, params: Optional[setSkipAllPausesParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
309
+ """
310
+ Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
311
+ Args:
312
+ params (setSkipAllPausesParameters, optional): Parameters for the setSkipAllPauses method.
313
+ session_id (str, optional): Target session ID for flat protocol usage.
314
+
315
+ Returns:
316
+ Dict[str, Any]: The result of the setSkipAllPauses call.
317
+ """
318
+ return await self.client.send(method="Debugger.setSkipAllPauses", params=params,session_id=session_id)
319
+ async def set_variable_value(self, params: Optional[setVariableValueParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
320
+ """
321
+ Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
322
+ Args:
323
+ params (setVariableValueParameters, optional): Parameters for the setVariableValue method.
324
+ session_id (str, optional): Target session ID for flat protocol usage.
325
+
326
+ Returns:
327
+ Dict[str, Any]: The result of the setVariableValue call.
328
+ """
329
+ return await self.client.send(method="Debugger.setVariableValue", params=params,session_id=session_id)
330
+ async def step_into(self, params: Optional[stepIntoParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
331
+ """
332
+ Steps into the function call.
333
+ Args:
334
+ params (stepIntoParameters, optional): Parameters for the stepInto method.
335
+ session_id (str, optional): Target session ID for flat protocol usage.
336
+
337
+ Returns:
338
+ Dict[str, Any]: The result of the stepInto call.
339
+ """
340
+ return await self.client.send(method="Debugger.stepInto", params=params,session_id=session_id)
341
+ async def step_out(self, params: None=None,session_id: Optional[str] = None) -> Dict[str, Any]:
342
+ """
343
+ Steps out of the function call.
344
+ Args:
345
+ params (None, optional): Parameters for the stepOut method.
346
+ session_id (str, optional): Target session ID for flat protocol usage.
347
+
348
+ Returns:
349
+ Dict[str, Any]: The result of the stepOut call.
350
+ """
351
+ return await self.client.send(method="Debugger.stepOut", params=params,session_id=session_id)
352
+ async def step_over(self, params: Optional[stepOverParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
353
+ """
354
+ Steps over the statement.
355
+ Args:
356
+ params (stepOverParameters, optional): Parameters for the stepOver method.
357
+ session_id (str, optional): Target session ID for flat protocol usage.
358
+
359
+ Returns:
360
+ Dict[str, Any]: The result of the stepOver call.
361
+ """
362
+ return await self.client.send(method="Debugger.stepOver", params=params,session_id=session_id)
@@ -0,0 +1,250 @@
1
+ """CDP Debugger 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.debugger.types import BreakLocation
8
+ from cdp.protocol.debugger.types import BreakpointId
9
+ from cdp.protocol.debugger.types import CallFrame
10
+ from cdp.protocol.debugger.types import CallFrameId
11
+ from cdp.protocol.debugger.types import Location
12
+ from cdp.protocol.debugger.types import LocationRange
13
+ from cdp.protocol.debugger.types import ScriptPosition
14
+ from cdp.protocol.debugger.types import SearchMatch
15
+ from cdp.protocol.debugger.types import WasmDisassemblyChunk
16
+ from cdp.protocol.runtime.types import CallArgument
17
+ from cdp.protocol.runtime.types import ExceptionDetails
18
+ from cdp.protocol.runtime.types import RemoteObject
19
+ from cdp.protocol.runtime.types import RemoteObjectId
20
+ from cdp.protocol.runtime.types import ScriptId
21
+ from cdp.protocol.runtime.types import StackTrace
22
+ from cdp.protocol.runtime.types import StackTraceId
23
+ from cdp.protocol.runtime.types import TimeDelta
24
+ from cdp.protocol.runtime.types import UniqueDebuggerId
25
+
26
+ class continueToLocationParameters(TypedDict, total=True):
27
+ location: 'Location'
28
+ """Location to continue to."""
29
+ targetCallFrames: NotRequired['Literal["any", "current"]']
30
+
31
+ class enableParameters(TypedDict, total=False):
32
+ maxScriptsCacheSize: NotRequired['float']
33
+ """The maximum size in bytes of collected scripts (not referenced by other heap objects) the debugger can hold. Puts no limit if parameter is omitted."""
34
+ class evaluateOnCallFrameParameters(TypedDict, total=True):
35
+ callFrameId: 'CallFrameId'
36
+ """Call frame identifier to evaluate on."""
37
+ expression: 'str'
38
+ """Expression to evaluate."""
39
+ objectGroup: NotRequired['str']
40
+ """String object group name to put result into (allows rapid releasing resulting object handles using releaseObjectGroup)."""
41
+ includeCommandLineAPI: NotRequired['bool']
42
+ """Specifies whether command line API should be available to the evaluated expression, defaults to false."""
43
+ silent: NotRequired['bool']
44
+ """In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state."""
45
+ returnByValue: NotRequired['bool']
46
+ """Whether the result is expected to be a JSON object that should be sent by value."""
47
+ generatePreview: NotRequired['bool']
48
+ """Whether preview should be generated for the result."""
49
+ throwOnSideEffect: NotRequired['bool']
50
+ """Whether to throw an exception if side effect cannot be ruled out during evaluation."""
51
+ timeout: NotRequired['TimeDelta']
52
+ """Terminate execution after timing out (number of milliseconds)."""
53
+ class getPossibleBreakpointsParameters(TypedDict, total=True):
54
+ start: 'Location'
55
+ """Start of range to search possible breakpoint locations in."""
56
+ end: NotRequired['Location']
57
+ """End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range."""
58
+ restrictToFunction: NotRequired['bool']
59
+ """Only consider locations which are in the same (non-nested) function as start."""
60
+ class getScriptSourceParameters(TypedDict, total=True):
61
+ scriptId: 'ScriptId'
62
+ """Id of the script to get source for."""
63
+ class disassembleWasmModuleParameters(TypedDict, total=True):
64
+ scriptId: 'ScriptId'
65
+ """Id of the script to disassemble"""
66
+ class nextWasmDisassemblyChunkParameters(TypedDict, total=True):
67
+ streamId: 'str'
68
+ class getStackTraceParameters(TypedDict, total=True):
69
+ stackTraceId: 'StackTraceId'
70
+
71
+ class removeBreakpointParameters(TypedDict, total=True):
72
+ breakpointId: 'BreakpointId'
73
+ class restartFrameParameters(TypedDict, total=True):
74
+ callFrameId: 'CallFrameId'
75
+ """Call frame identifier to evaluate on."""
76
+ mode: NotRequired['Literal["StepInto"]']
77
+ """The mode parameter must be present and set to 'StepInto', otherwise restartFrame will error out."""
78
+ class resumeParameters(TypedDict, total=False):
79
+ terminateOnResume: NotRequired['bool']
80
+ """Set to true to terminate execution upon resuming execution. In contrast to Runtime.terminateExecution, this will allows to execute further JavaScript (i.e. via evaluation) until execution of the paused code is actually resumed, at which point termination is triggered. If execution is currently not paused, this parameter has no effect."""
81
+ class searchInContentParameters(TypedDict, total=True):
82
+ scriptId: 'ScriptId'
83
+ """Id of the script to search in."""
84
+ query: 'str'
85
+ """String to search for."""
86
+ caseSensitive: NotRequired['bool']
87
+ """If true, search is case sensitive."""
88
+ isRegex: NotRequired['bool']
89
+ """If true, treats string parameter as regex."""
90
+ class setAsyncCallStackDepthParameters(TypedDict, total=True):
91
+ maxDepth: 'int'
92
+ """Maximum depth of async call stacks. Setting to 0 will effectively disable collecting async call stacks (default)."""
93
+ class setBlackboxExecutionContextsParameters(TypedDict, total=True):
94
+ uniqueIds: 'List[str]'
95
+ """Array of execution context unique ids for the debugger to ignore."""
96
+ class setBlackboxPatternsParameters(TypedDict, total=True):
97
+ patterns: 'List[str]'
98
+ """Array of regexps that will be used to check script url for blackbox state."""
99
+ skipAnonymous: NotRequired['bool']
100
+ """If true, also ignore scripts with no source url."""
101
+ class setBlackboxedRangesParameters(TypedDict, total=True):
102
+ scriptId: 'ScriptId'
103
+ """Id of the script."""
104
+ positions: 'List[ScriptPosition]'
105
+ class setBreakpointParameters(TypedDict, total=True):
106
+ location: 'Location'
107
+ """Location to set breakpoint in."""
108
+ condition: NotRequired['str']
109
+ """Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true."""
110
+ class setInstrumentationBreakpointParameters(TypedDict, total=True):
111
+ instrumentation: 'Literal["beforeScriptExecution", "beforeScriptWithSourceMapExecution"]'
112
+ """Instrumentation name."""
113
+ class setBreakpointByUrlParameters(TypedDict, total=True):
114
+ lineNumber: 'int'
115
+ """Line number to set breakpoint at."""
116
+ url: NotRequired['str']
117
+ """URL of the resources to set breakpoint on."""
118
+ urlRegex: NotRequired['str']
119
+ """Regex pattern for the URLs of the resources to set breakpoints on. Either url or urlRegex must be specified."""
120
+ scriptHash: NotRequired['str']
121
+ """Script hash of the resources to set breakpoint on."""
122
+ columnNumber: NotRequired['int']
123
+ """Offset in the line to set breakpoint at."""
124
+ condition: NotRequired['str']
125
+ """Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true."""
126
+ class setBreakpointOnFunctionCallParameters(TypedDict, total=True):
127
+ objectId: 'RemoteObjectId'
128
+ """Function object id."""
129
+ condition: NotRequired['str']
130
+ """Expression to use as a breakpoint condition. When specified, debugger will stop on the breakpoint if this expression evaluates to true."""
131
+ class setBreakpointsActiveParameters(TypedDict, total=True):
132
+ active: 'bool'
133
+ """New value for breakpoints active state."""
134
+ class setPauseOnExceptionsParameters(TypedDict, total=True):
135
+ state: 'Literal["none", "caught", "uncaught", "all"]'
136
+ """Pause on exceptions mode."""
137
+ class setReturnValueParameters(TypedDict, total=True):
138
+ newValue: 'CallArgument'
139
+ """New return value."""
140
+ class setScriptSourceParameters(TypedDict, total=True):
141
+ scriptId: 'ScriptId'
142
+ """Id of the script to edit."""
143
+ scriptSource: 'str'
144
+ """New content of the script."""
145
+ dryRun: NotRequired['bool']
146
+ """If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code."""
147
+ allowTopFrameEditing: NotRequired['bool']
148
+ """If true, then scriptSource is allowed to change the function on top of the stack as long as the top-most stack frame is the only activation of that function."""
149
+ class setSkipAllPausesParameters(TypedDict, total=True):
150
+ skip: 'bool'
151
+ """New value for skip pauses state."""
152
+ class setVariableValueParameters(TypedDict, total=True):
153
+ scopeNumber: 'int'
154
+ """0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually."""
155
+ variableName: 'str'
156
+ """Variable name."""
157
+ newValue: 'CallArgument'
158
+ """New variable value."""
159
+ callFrameId: 'CallFrameId'
160
+ """Id of callframe that holds variable."""
161
+ class stepIntoParameters(TypedDict, total=False):
162
+ breakOnAsyncCall: NotRequired['bool']
163
+ """Debugger will pause on the execution of the first async task which was scheduled before next pause."""
164
+ skipList: NotRequired['List[LocationRange]']
165
+ """The skipList specifies location ranges that should be skipped on step into."""
166
+
167
+ class stepOverParameters(TypedDict, total=False):
168
+ skipList: NotRequired['List[LocationRange]']
169
+ """The skipList specifies location ranges that should be skipped on step over."""
170
+
171
+
172
+ class enableReturns(TypedDict):
173
+ debuggerId: 'UniqueDebuggerId'
174
+ """Unique identifier of the debugger."""
175
+ class evaluateOnCallFrameReturns(TypedDict):
176
+ result: 'RemoteObject'
177
+ """Object wrapper for the evaluation result."""
178
+ exceptionDetails: 'ExceptionDetails'
179
+ """Exception details."""
180
+ class getPossibleBreakpointsReturns(TypedDict):
181
+ locations: 'List[BreakLocation]'
182
+ """List of the possible breakpoint locations."""
183
+ class getScriptSourceReturns(TypedDict):
184
+ scriptSource: 'str'
185
+ """Script source (empty in case of Wasm bytecode)."""
186
+ bytecode: 'str'
187
+ """Wasm bytecode. (Encoded as a base64 string when passed over JSON)"""
188
+ class disassembleWasmModuleReturns(TypedDict):
189
+ streamId: 'str'
190
+ """For large modules, return a stream from which additional chunks of disassembly can be read successively."""
191
+ totalNumberOfLines: 'int'
192
+ """The total number of lines in the disassembly text."""
193
+ functionBodyOffsets: 'List[int]'
194
+ """The offsets of all function bodies, in the format [start1, end1, start2, end2, ...] where all ends are exclusive."""
195
+ chunk: 'WasmDisassemblyChunk'
196
+ """The first chunk of disassembly."""
197
+ class nextWasmDisassemblyChunkReturns(TypedDict):
198
+ chunk: 'WasmDisassemblyChunk'
199
+ """The next chunk of disassembly."""
200
+ class getStackTraceReturns(TypedDict):
201
+ stackTrace: 'StackTrace'
202
+
203
+
204
+ class restartFrameReturns(TypedDict):
205
+ callFrames: 'List[CallFrame]'
206
+ """New stack trace."""
207
+ asyncStackTrace: 'StackTrace'
208
+ """Async stack trace, if any."""
209
+ asyncStackTraceId: 'StackTraceId'
210
+ """Async stack trace, if any."""
211
+
212
+ class searchInContentReturns(TypedDict):
213
+ result: 'List[SearchMatch]'
214
+ """List of search matches."""
215
+
216
+
217
+
218
+
219
+ class setBreakpointReturns(TypedDict):
220
+ breakpointId: 'BreakpointId'
221
+ """Id of the created breakpoint for further reference."""
222
+ actualLocation: 'Location'
223
+ """Location this breakpoint resolved into."""
224
+ class setInstrumentationBreakpointReturns(TypedDict):
225
+ breakpointId: 'BreakpointId'
226
+ """Id of the created breakpoint for further reference."""
227
+ class setBreakpointByUrlReturns(TypedDict):
228
+ breakpointId: 'BreakpointId'
229
+ """Id of the created breakpoint for further reference."""
230
+ locations: 'List[Location]'
231
+ """List of the locations this breakpoint resolved into upon addition."""
232
+ class setBreakpointOnFunctionCallReturns(TypedDict):
233
+ breakpointId: 'BreakpointId'
234
+ """Id of the created breakpoint for further reference."""
235
+
236
+
237
+
238
+ class setScriptSourceReturns(TypedDict):
239
+ callFrames: 'List[CallFrame]'
240
+ """New stack trace in case editing has happened while VM was stopped."""
241
+ stackChanged: 'bool'
242
+ """Whether current call stack was modified after applying the changes."""
243
+ asyncStackTrace: 'StackTrace'
244
+ """Async stack trace, if any."""
245
+ asyncStackTraceId: 'StackTraceId'
246
+ """Async stack trace, if any."""
247
+ status: 'Literal["Ok", "CompileError", "BlockedByActiveGenerator", "BlockedByActiveFunction", "BlockedByTopLevelEsModuleChange"]'
248
+ """Whether the operation was successful or not. Only Ok denotes a successful live edit while the other enum variants denote why the live edit failed."""
249
+ exceptionDetails: 'ExceptionDetails'
250
+ """Exception details if any. Only present when status is CompileError."""
@@ -0,0 +1,21 @@
1
+ """CDP Debugger Domain"""
2
+ from typing import TYPE_CHECKING
3
+ from .methods.service import DebuggerMethods
4
+ from .events.service import DebuggerEvents
5
+
6
+ if TYPE_CHECKING:
7
+ from ...service import Client
8
+
9
+ class Debugger(DebuggerMethods, DebuggerEvents):
10
+ """
11
+ Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.
12
+ """
13
+ def __init__(self, client: "Client"):
14
+ """
15
+ Initialize the Debugger domain.
16
+
17
+ Args:
18
+ client ("Client"): The parent CDP client instance.
19
+ """
20
+ DebuggerMethods.__init__(self, client)
21
+ DebuggerEvents.__init__(self, client)